Documentation
¶
Overview ¶
Package features holds the registry of experimental features that can be enabled per organization. The registry is the source of truth: feature IDs referenced by enable/disable APIs must exist here, and a feature can be graduated to all organizations by setting Released to a pointer to true.
Index ¶
Constants ¶
const FeatureClaudeManagedAgents = "claude_managed_agents"
FeatureClaudeManagedAgents enables the managed-agents chat experience on a per-organization basis until the integration is generally available.
const FeatureDashboards = "dashboards"
FeatureDashboards gates the per-canvas markdown dashboard until the feature is released or enabled for the organization.
Variables ¶
This section is empty.
Functions ¶
func IsReleased ¶
IsReleased reports whether the feature with the given id is in the registry and marked as released. Released features are considered enabled for every organization regardless of per-organization state.
func WithRegistryForTest ¶
func WithRegistryForTest(r []Feature) func()
WithRegistryForTest temporarily replaces the registry. Intended for tests that need to assert behavior of features not present in the production registry (e.g. released features). The returned function restores the previous registry and should be invoked from a t.Cleanup callback.