Documentation
¶
Overview ¶
Package toolenv is the environment of the processes Orb's tools start: bash, MCP servers, extension hosts and external agents.
Index ¶
- Constants
- func Environ() []string
- func Export(name, value string)
- func Get(env []string, name string) string
- func LookPath(name string, env []string) (string, error)
- func Merge(base []string, layers ...map[string]string) []string
- func PrependPath(dir, value string) string
- func Set(env []string, name, value string) []string
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.
func Get ¶ added in v0.19.1
Get returns name's last value in env; win32 matches names case-insensitively.
func LookPath ¶ added in v0.19.1
LookPath finds the executable name runs under env: a name with a path separator as is, any other through env's PATH, never a relative entry.
func PrependPath ¶ added in v0.19.1
PrependPath puts dir first on the search list value unless it is already there.
Types ¶
This section is empty.