Versions in this module Expand all Collapse all v1 v1.1.0 Jun 15, 2026 Changes in this version + type EnvMode string + const EnvModeBlacklist + const EnvModePassthrough + const EnvModeWhitelist type ExecRequest + Args []string + Command string + WorkDir string + type LangDef struct + Args []string + Command string + Ext string + InitFiles map[string]string type ProcessConfig + EnvAllowList []string + EnvBlockList []string + EnvMode EnvMode v1.0.1 Jun 2, 2026 Changes in this version type ProcessConfig + PreloadEnv map[string]string v1.0.0 May 23, 2026 Changes in this version + func DefaultLangs() map[string]LangConfig + func FormatResult(r *ExecResult) string + func RegisterSandboxTools(registry *tools.ToolRegistry, sb Sandbox) error + type ExecRequest struct + Code string + Env map[string]string + Files []InputFile + Language string + Timeout time.Duration + type ExecResult struct + Duration time.Duration + ExitCode int + Stderr string + Stdout string + TimedOut bool + Truncated bool + type InputFile struct + Content string + Path string + type LangConfig struct + Args []string + Command string + Ext string + InitFiles map[string]string + type ProcessConfig struct + AllowedLangs map[string]LangConfig + DefaultTimeout time.Duration + MaxOutputBytes int + type ProcessSandbox struct + func NewProcessSandbox(config ProcessConfig) *ProcessSandbox + func (s *ProcessSandbox) AddLang(name string, config LangConfig) + func (s *ProcessSandbox) CheckLang(lang string) error + func (s *ProcessSandbox) Close() error + func (s *ProcessSandbox) Execute(ctx context.Context, req ExecRequest) (*ExecResult, error) + func (s *ProcessSandbox) ListLangs() []string + type Sandbox interface + CheckLang func(lang string) error + Close func() error + Execute func(ctx context.Context, req ExecRequest) (*ExecResult, error) + ListLangs func() []string