Versions in this module Expand all Collapse all v0 v0.1.7 Mar 25, 2026 v0.1.6 Mar 24, 2026 v0.1.5 Mar 18, 2026 Changes in this version + type CommandRequest struct + Command string + Env map[string]string + Timeout time.Duration + Workdir string + type CommandResult struct + Duration time.Duration + ExitCode int + OutputFile string + Stderr string + Stdout string + type CommandStreamCallbacks struct + OnStderr func(string) + OnStdout func(string) + type EditRequest struct + NewText string + OldText string + Path string + ReplaceAll bool + type ExecutionEnvironment interface + CloseSession func(context.Context, *PreparedSession) error + EditFile func(context.Context, *PreparedSession, EditRequest) error + Glob func(context.Context, *PreparedSession, string) ([]string, error) + Grep func(context.Context, *PreparedSession, GrepRequest) ([]GrepMatch, error) + PrepareSession func(context.Context, SessionContext) (*PreparedSession, error) + ReadFile func(context.Context, *PreparedSession, string) ([]byte, error) + RunCommand func(context.Context, *PreparedSession, CommandRequest) (*CommandResult, error) + WriteFile func(context.Context, *PreparedSession, string, []byte) error + type GVisorOptions struct + AutoCreateSessionWorkspace bool + DefaultGuestCwd string + Enabled bool + HelperModeFlag string + Mounts []MountSpec + SessionWorkspaceBase string + type GovmOptions struct + AutoCreateSessionWorkspace bool + CPUs int + DefaultGuestCwd string + Enabled bool + Image string + MemoryMB int + Mounts []MountSpec + OfflineImage string + RuntimeHome string + SessionWorkspaceBase string + type GrepMatch struct + Column int + Line int + Path string + Preview string + type GrepRequest struct + CaseSensitive bool + Literal bool + Path string + Pattern string + type MountSpec struct + CreateIfMissing bool + GuestPath string + HostPath string + ReadOnly bool + type PreparedSession struct + GuestCwd string + Meta map[string]any + SandboxType string + SessionID string + type SessionContext struct + ProjectRoot string + SessionID string + type StreamingExecutionEnvironment interface + RunCommandStream func(context.Context, *PreparedSession, CommandRequest, CommandStreamCallbacks) (*CommandResult, error)