featurecap

package
v3.20.9 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package featurecap defines capabilities for GraphJin-owned features.

These are deliberately separate from sourcecap: sources are external graph providers, while system roots and workflows are built into GraphJin.

Index

Constants

View Source
const (
	ModeDev     = "dev"
	ModeProd    = "prod"
	ModeAgentic = "agentic"
)
View Source
const (
	KindSystem    = "system"
	KindWorkflows = "workflows"
)
View Source
const (
	ActionRead    = "read"
	ActionWrite   = "write"
	ActionExecute = "execute"
	ActionReload  = "reload"
	ActionQuery   = "query"
	ActionMutate  = "mutate"
)
View Source
const (
	MCPAllowConfigUpdates   = "allow_config_updates"
	MCPAllowSchemaReload    = "allow_schema_reload"
	MCPAllowSchemaUpdates   = "allow_schema_updates"
	MCPAllowRawQueries      = "allow_raw_queries"
	MCPAllowMutations       = "allow_mutations"
	MCPAllowDevTools        = "allow_dev_tools"
	MCPLegacyDiscovery      = "legacy_discovery"
	MCPAllowWorkflowUpdates = "allow_workflow_updates"
)
View Source
const (
	KeyCatalogRead         = "catalog.read"
	KeySecurityRead        = "security.read"
	KeyConfigRead          = "config.read"
	KeyConfigWrite         = "config.write"
	KeyRuntimeRead         = "runtime.read"
	KeyRawGraphQLQuery     = "raw_graphql.query"
	KeyRawGraphQLMutate    = "raw_graphql.mutate"
	KeySchemaReload        = "schema.reload"
	KeySchemaWrite         = "schema.write"
	KeyDevToolsRead        = "dev_tools.read"
	KeyLegacyDiscoveryRead = "legacy_discovery.read"

	KeyWorkflowExecute = "execute"
	KeyWorkflowRead    = "read"
	KeyWorkflowWrite   = "write"
)
View Source
const EnforcementRuntime = "runtime"

Variables

This section is empty.

Functions

func CapabilityMap

func CapabilityMap() map[string][]string

func Kinds

func Kinds() []string

func SystemRoots

func SystemRoots() []string

func ValidKeyList

func ValidKeyList(kind string) string

func ValidKeys

func ValidKeys(kind string) []string

func ValidSystemRoot

func ValidSystemRoot(root string) bool

Types

type Definition

type Definition struct {
	Kind           string
	Key            string
	Action         string
	Summary        string
	Reason         string
	Recommendation string
	Severity       string
	Enforcement    string
	ReadOnlyBlocks bool
	DefaultDev     bool
	DefaultProd    bool
	DefaultAgentic bool
	MCPFlag        string
	ExampleValue   string
}

Definition is the source of truth for a public feature capability.

func Definitions

func Definitions(kind string) []Definition

func Lookup

func Lookup(kind, key string) (Definition, bool)

func SortedDefinitions

func SortedDefinitions() []Definition

func (Definition) Default

func (d Definition) Default(mode string) bool

Jump to

Keyboard shortcuts

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