Documentation
¶
Overview ¶
Package featuregate gates capabilities whose corresponding backend support has not yet shipped. Each Feature constant maps 1:1 to a product capability and stays inert until its entry is added to the allowlist below.
Bypass for internal dogfooding: pass --override-gate on the CLI or set STEPSECURITY_OVERRIDE_GATE=1 in the environment. The env-var form is the only way to flip the gate before cli.Parse runs, which the _hook hot path relies on (main returns before Parse for that subcommand).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableOverride ¶
func EnableOverride()
EnableOverride turns on the global override. main calls this when --override-gate is present on the command line.
func UnavailableMessage ¶
UnavailableMessage returns the user-facing string printed when a gated command is invoked. Kept here so the wording stays identical across every visible command site.
Types ¶
type Feature ¶
type Feature string
const ( FeatureAIAgentHooks Feature = "ai-agent-hooks" FeatureNPMRCAudit Feature = "npmrc-audit" FeaturePipConfigAudit Feature = "pipconfig-audit" FeaturePnpmConfigAudit Feature = "pnpm-config-audit" FeatureBunConfigAudit Feature = "bun-config-audit" FeatureYarnConfigAudit Feature = "yarn-config-audit" )