Documentation
¶
Overview ¶
Package toolenv is the environment of the processes Orb's tools start: bash, MCP servers, extension hosts and external agents.
Index ¶
Constants ¶
const Allow = "ORB_TOOL_ENV"
Allow names the ORB_TOOL_ENV variable: a comma-separated allowlist of the variables tool processes inherit. Unset, they inherit Orb's whole environment, as pi's do; a team agent sets it so its credentials stay with Orb.
Variables ¶
This section is empty.
Functions ¶
func Environ ¶
func Environ() []string
Environ is os.Environ narrowed to the ORB_TOOL_ENV allowlist when one is set, plus the exported variables, which win over Orb's own.
func Export ¶ added in v0.17.6
func Export(name, value string)
Export adds name=value to every tool process's environment from now on, whatever the allowlist says and whenever it is set: how a component hands its tools something, such as a socket to call it back on, without widening what they inherit from Orb.
Types ¶
This section is empty.