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 SystemRoots ¶
func SystemRoots() []string
func ValidKeyList ¶
func ValidSystemRoot ¶
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
Click to show internal directories.
Click to hide internal directories.