Versions in this module Expand all Collapse all v0 v0.5.1 Nov 22, 2026 v0.5.0 Nov 21, 2026 v0.4.1 Nov 21, 2026 v0.4.0 Nov 21, 2026 Changes in this version type StateBinder + SessionID string type StateStore + func (s *StateStore) ClearForSession(sessionID string) + func (s *StateStore) ClearSessionSpills(sessionID string) + func (s *StateStore) DeleteForSession(sessionID, key string) bool + func (s *StateStore) GetResolvedForSession(sessionID, key string) (val any, resolvedKey string, found bool) + func (s *StateStore) KeysForSession(sessionID string) []string + func (s *StateStore) SaveAutoSpillForSession(sessionID string, val any) string v0.3.0 Nov 21, 2026 Changes in this version + const DefaultDirectReadMaxBytes + const DefaultDirectReadMaxLines + const MaxDirectReadBytes + const MaxDirectReadImageBytes + const MaxSpillEntryBytes + type DirectReadRequest struct + ByteOffset int + Cwd string + EndLine int + LineNumbers *bool + MaxBytes int + Path string + StartLine int + Tail int + type DirectReadResult struct + ImageData string + ImageMIME string + IsImage bool + Text string + func ReadFileDirect(pol *policy.Engine, cwd string, req DirectReadRequest) (*DirectReadResult, error) type EditTxBinder + Events *events.Hub + Locks *FileLockTable + RunID string + SessionID string type FSSearchBinder + Events *events.Hub + Locks *FileLockTable + RunID string + SessionID string + type FileLockTable struct + func NewFileLockTable() *FileLockTable + func (l *FileLockTable) Acquire(ctx context.Context, ownerID string, paths ...string) (func(), error) + func (l *FileLockTable) AcquireIn(ctx context.Context, cwd, ownerID string, paths ...string) (func(), error) + func (l *FileLockTable) ReleaseOwner(ownerID string) type ShellGitBinder + Events *events.Hub + RunID string + SessionID string + type TasksBinder struct + Manager *tasks.Manager + Policy *policy.Engine + SessionID string + func (b *TasksBinder) Bind(env *sandbox.ExecutionEnv) error v0.2.0 Nov 21, 2026 Changes in this version + const DefaultShellTimeout + const MaxSandboxReadBytes + const MaxSearchLineBytes + const MaxShellTimeout + const MaxSpillTotalBytes + const MaxStateEntryBytes + const MaxStateTotalBytes + type ASTBinder struct + Policy *policy.Engine + func (b *ASTBinder) Bind(env *sandbox.ExecutionEnv) error + type EditHunk struct + EndLine int + Nth int + ReplaceAll bool + Replacement string + StartLine int + Symbol string + Target string + type EditTxBinder struct + Policy *policy.Engine + ShellRunner *ShellGitBinder + func (b *EditTxBinder) Bind(env *sandbox.ExecutionEnv) error + type FSSearchBinder struct + Policy *policy.Engine + func (b *FSSearchBinder) Bind(env *sandbox.ExecutionEnv) error + type FileEditSpec struct + Create *string + EOL string + Hunks []EditHunk + Overwrite bool + Path string + type FileOutline struct + Error string + File string + Symbols []SymbolInfo + TotalLines int + type MCPBridge struct + CacheDirs []string + ConfigPaths []string + IncludeAntigravityPaths bool + Policy *policy.Engine + SelfName string + WorkspaceDir string + func NewMCPBridge(pol *policy.Engine, workspaceDir string) *MCPBridge + func NewMCPBridgeWithOptions(pol *policy.Engine, workspaceDir string, opts MCPBridgeOptions) *MCPBridge + func (m *MCPBridge) Bind(env *sandbox.ExecutionEnv) error + func (m *MCPBridge) CallExternalTool(ctx context.Context, cwd, rawRef string, callArgs map[string]any) (any, error) + func (m *MCPBridge) Close() + func (m *MCPBridge) SetPolicy(pol *policy.Engine) + type MCPBridgeOptions struct + CacheDirs []string + ConfigPaths []string + IncludeAntigravityPaths bool + SelfName string + type SearchHit struct + After []string + Before []string + Column int + File string + Line int + Subtext string + Text string + type ShellGitBinder struct + Policy *policy.Engine + func (b *ShellGitBinder) Bind(env *sandbox.ExecutionEnv) error + func (b *ShellGitBinder) RunArgv(parentCtx context.Context, env *sandbox.ExecutionEnv, cwd, file string, ...) (map[string]any, error) + func (b *ShellGitBinder) RunChecksBatch(ctx context.Context, baseCwd string, args []any) (map[string]any, error) + func (b *ShellGitBinder) RunSingleCommand(parentCtx context.Context, cwd, cmdLine string, timeoutSec int, ...) (map[string]any, error) + func (b *ShellGitBinder) RunSingleCommandDuration(parentCtx context.Context, cwd, cmdLine string, timeoutDur time.Duration, ...) (map[string]any, error) + type StateBinder struct + Store *StateStore + func (b *StateBinder) Bind(env *sandbox.ExecutionEnv) error + type StateStore struct + func NewStateStore(dataDir, workspaceDir string) *StateStore + func (s *StateStore) Clear() + func (s *StateStore) Delete(key string) bool + func (s *StateStore) Flush() + func (s *StateStore) Get(key string) any + func (s *StateStore) GetResolved(key string) (val any, resolvedKey string, found bool) + func (s *StateStore) Keys() []string + func (s *StateStore) SaveAutoSpill(val any) string + func (s *StateStore) Set(key string, val any) error + type SymbolInfo struct + EndLine int + Kind string + Name string + Signature string + StartLine int + type ToolDescriptor struct + Description string + InputSchema map[string]any + Name string + Provider string + Ref string