Documentation
¶
Overview ¶
Package shellbwrap provides tool/shell-bwrap: a tool/shell-bash compatible shell (the bash tool + the /shell command) whose sandbox view and bwrap wrapping are delegated to a sandbox/bwrap instance (runtime/sandbox) — the view config has a single source shared by shell / ACP subprocesses and in-process fs enforcement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
WorkDir string `json:"workDir"`
TimeoutSeconds int `json:"timeoutSeconds"`
Commands map[string][]string `json:"commands"`
// MaxOutputBytes caps the collected stdout/stderr bytes each; excess is
// truncated and marked. <=0 uses the built-in default (1 MiB). Prevents a
// command with unbounded output from blowing up runner memory.
MaxOutputBytes int `json:"maxOutputBytes"`
}
Config configures tool/shell-bwrap (the sandbox view config lives on the sandbox/bwrap instance).
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
SetDefaults implements pluginkit.Defaulter.
type Deps ¶
type Deps struct {
Workspace workspace.Service `json:"workspace"`
Credentials credentials.Store `json:"credentials,omitempty"`
Sandbox capsandbox.Service `json:"sandbox"`
}
Deps for tool/shell-bwrap.
type ShellInput ¶
type ShellInput struct {
Command string `json:"command" jsonschema:"Shell command to execute"`
}
ShellInput is the bash tool input (same schema as tool/shell-bash).
type ShellOutput ¶
type ShellOutput struct {
ExitCode int `json:"exitCode"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
ShellOutput is the bash tool output (same schema as tool/shell-bash).
Click to show internal directories.
Click to hide internal directories.