features

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

View Source
const FeatureClaudeManagedAgents = "claude_managed_agents"

FeatureClaudeManagedAgents enables the managed-agents chat experience on a per-organization basis until the integration is generally available.

View Source
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 Exists

func Exists(id string) bool

func IsReleased

func IsReleased(id string) bool

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.

Types

type Feature

type Feature struct {
	ID          string
	Label       string
	Description string
	Released    *bool
}

func All

func All() []Feature

func Get

func Get(id string) (Feature, bool)

Jump to

Keyboard shortcuts

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