Documentation
¶
Overview ¶
Package exec provides shared workspace-bound terminal and code execution. It must not import pkg/capability (capability/core and agent tools call into this package).
Index ¶
Constants ¶
View Source
const ( // DefaultTimeout limits run_terminal and run_code when unset. DefaultTimeout = 60 * time.Second // MaxCodeBytes rejects run_code source above this size. MaxCodeBytes = 256 << 10 // DefaultMaxOutput truncates combined output beyond this byte count. DefaultMaxOutput = 8192 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Workspace is the absolute workspace root.
Workspace string
// Env performs filesystem and process operations; nil uses env.Default().
Env env.ExecutionEnv
// Timeout limits execution; zero uses DefaultTimeout.
Timeout time.Duration
// MaxOutput truncates Output; zero uses DefaultMaxOutput.
MaxOutput int
}
Config bounds execution to a workspace root and an ExecutionEnv (OS or sandbox).
Click to show internal directories.
Click to hide internal directories.