Documentation
¶
Index ¶
Constants ¶
const GatedToolName = "ref_ws_gated_tool"
GatedToolName is removed from the catalog until state marks the session unlocked.
const HeatToolPrefix = "ref_heat_"
HeatToolPrefix is blocked in the tool stream when LabelDenyHeat is active.
const ID = "ref-workspace-guard"
ID is the plugin id for ref-workspace-guard.
const LabelDenyHeat = "ref_deny_heat"
LabelDenyHeat enables the tool reactor heat prefix rule when set to "1" in the workspace view.
const StateKeyUnlocked = "unlocked"
StateKeyUnlocked is set by the request transform after each request.
Variables ¶
This section is empty.
Functions ¶
func NewCatalogFilter ¶
func NewCatalogFilter(cfg Config) toolcatalog.Filter
NewCatalogFilter removes GatedToolName until the session unlock transform has run.
func NewHeatReactor ¶
func NewHeatReactor(cfg Config) sdk.ToolReactor
NewHeatReactor enforces the workspace label policy on tool stream events.
func NewSessionUnlockTransform ¶
NewSessionUnlockTransform records session progress so a later request can expose gated tools.
func NewStaticResolver ¶
NewStaticResolver returns a fixed workspace view from config.