Help us shape the future of Go! Take the 2026 Go Developer Survey

toolenv

package
v0.19.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package toolenv is the environment of the processes Orb's tools start: bash, MCP servers, extension hosts and external agents.

Index

Constants

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

func Get(env []string, name string) string

Get returns name's last value in env; win32 matches names case-insensitively.

func LookPath added in v0.19.1

func LookPath(name string, env []string) (string, error)

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 Merge added in v0.19.1

func Merge(base []string, layers ...map[string]string) []string

Merge overlays layers on base, later layers winning, sorted by name.

func PrependPath added in v0.19.1

func PrependPath(dir, value string) string

PrependPath puts dir first on the search list value unless it is already there.

func Set added in v0.19.1

func Set(env []string, name, value string) []string

Set replaces every entry for name in env with one name=value, keeping the spelling env already uses (Windows' Path stays Path), so a later lookup by that spelling finds it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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