scope

package
v0.16.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package scope defines the canonical set of API permission scopes. All other packages (api, config, CLI) must reference this list rather than maintaining their own copies.

Index

Constants

This section is empty.

Variables

View Source
var Valid = map[string]struct{}{
	"admin":           {},
	"chat":            {},
	"sessions:read":   {},
	"costs:read":      {},
	"agents:read":     {},
	"agents:write":    {},
	"skills:read":     {},
	"skills:write":    {},
	"schedules:read":  {},
	"schedules:write": {},
	"approvals:read":  {},
	"approvals:write": {},
	"tools:read":      {},
	"tools:write":     {},
	"browser:read":    {},
	"browser:write":   {},
	"kv:read":         {},
	"kv:write":        {},
	"health":          {},
}

Valid is the authoritative set of API scope values. Every scope used in RequireScope, config validation, CLI flags, and the web dashboard must appear here.

Functions

func IsValid

func IsValid(s string) bool

IsValid reports whether s is a recognised scope.

func Names

func Names() []string

Names returns all valid scope names in sorted order.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL