Documentation
¶
Overview ¶
Package shell is the run_command tool: a shell jailed to one session's workspace as the host shows it on disk (package vfs/fuse). The jail uses Linux user, mount and pid namespaces.
The Temporal worker adds the tool to a turn when it mounts the workspace (worker.Config.FuseRoot); a host with its own mount adds RunCommand(dir) to AgentOptions.Tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
RunCommand is the run_command tool: /bin/sh -c in dir, the host directory that shows the session's tree, jailed so it sees nothing else. It asks for execute permission unless the host lists it in AgentOptions.AllowTools. It panics when the host cannot build the jail (no unprivileged user namespaces), so a missing jail fails at setup, not on the model's first call.
Types ¶
This section is empty.