9c16d337a2
* feat(web): add app status bar * feat(web): add app status bar visibility toggle * feat(web): persist status bar item order * fix(web): refine app status bar behavior * fix(web): polish app status bar presentation * test(web): split plugin slot coverage groups * fix(web): address status surface review feedback * fix(web): stabilize status bar overlay tests
77 lines
2.6 KiB
Go
77 lines
2.6 KiB
Go
package runtimeflags
|
|
|
|
var definitions = []RuntimeFlagDefinition{
|
|
{
|
|
Key: featureOfficeKey,
|
|
EnvVar: envFeaturesOffice,
|
|
Kind: KindFeature,
|
|
Label: "Office mode",
|
|
Description: "Enables autonomous agent office workflows and related settings.",
|
|
Stability: StabilityExperimental,
|
|
RiskLevel: RiskMedium,
|
|
RiskDescription: "Office mode is still evolving. Workflows, routes, and background automation " +
|
|
"may change between releases and should be reviewed before relying on them.",
|
|
RestartRequired: true,
|
|
Mutable: true,
|
|
},
|
|
{
|
|
Key: featurePluginsKey,
|
|
EnvVar: envFeaturesPlugins,
|
|
Kind: KindFeature,
|
|
Label: "Plugins",
|
|
Description: "Enables the extensible plugin system and related settings.",
|
|
Stability: StabilityExperimental,
|
|
RiskLevel: RiskMedium,
|
|
RiskDescription: "Plugins are still evolving. Loaded plugin code runs with backend " +
|
|
"privileges, and behavior may change between releases and should be reviewed " +
|
|
"before relying on it.",
|
|
RestartRequired: true,
|
|
Mutable: true,
|
|
},
|
|
{
|
|
Key: featureAppStatusBarKey,
|
|
EnvVar: envFeaturesAppStatusBar,
|
|
Kind: KindFeature,
|
|
Label: "App status bar",
|
|
Description: "Adds the global connection, optional host metrics, and plugin status surface.",
|
|
Stability: StabilityStable,
|
|
RiskLevel: RiskLow,
|
|
RiskDescription: "Changing this adds or removes the desktop and tablet status bar and the phone Status drawer entry " +
|
|
"after restart. It does not stop connections, metrics collection requested by other clients, or plugins.",
|
|
RestartRequired: true,
|
|
Mutable: true,
|
|
},
|
|
{
|
|
Key: debugDevModeKey,
|
|
EnvVar: envDebugDevMode,
|
|
Kind: KindDebug,
|
|
Label: "Debug mode",
|
|
Description: "Enables local diagnostic endpoints and agent message debug logs for troubleshooting backend, agent, and tool-call behavior.",
|
|
Stability: StabilityStable,
|
|
RiskLevel: RiskHigh,
|
|
RiskDescription: "Debug mode can expose local diagnostic endpoints and write prompt, file, " +
|
|
"and tool-call content to local debug logs. Enable it only on trusted machines.",
|
|
RestartRequired: true,
|
|
Mutable: true,
|
|
ImpliedEnvVars: []string{
|
|
envDebugPprofEnabled,
|
|
envDebugAgentMessages,
|
|
},
|
|
},
|
|
}
|
|
|
|
func Definitions() []RuntimeFlagDefinition {
|
|
out := make([]RuntimeFlagDefinition, len(definitions))
|
|
copy(out, definitions)
|
|
return out
|
|
}
|
|
|
|
func DefinitionByKey(key string) (RuntimeFlagDefinition, bool) {
|
|
for _, def := range definitions {
|
|
if def.Key == key {
|
|
return def, true
|
|
}
|
|
}
|
|
return RuntimeFlagDefinition{}, false
|
|
}
|