Versions in this module Expand all Collapse all v0 v0.1.1 Jul 7, 2026 Changes in this version + func BuildRuntimeCatalog(options RuntimeCatalogOptions) []protocol.RuntimeCapability + func DeleteSessionTranscript(sessionID, cwd string) error + func EvaluateSessionConfig(ctx SessionConfigContext, cfg protocol.SessionConfigPayload) sessionConfigDecision + func ListDirectoryEntries(path, query string, limit int, recursive bool) (string, []protocol.DirEntry, error) + func ListSlashCommandsForRuntime(runtimeID, currentDir, query string) ([]protocol.SlashCommandEntry, error) + func ResolveDirectoryWithinUserHome(rawPath, relativeBase string, emptyUsesHome bool) (string, error) + func Run(cfg *Config) error + type AttachedCodexBootstrap struct + Model string + ThreadID string + WorkingDir string + type AttachedCodexController struct + func NewAttachedCodexController(service *Service, wsURL string, cfg AttachedCodexControllerConfig) *AttachedCodexController + func (c *AttachedCodexController) ApplyConfig(cfg protocol.SessionConfigPayload) error + func (c *AttachedCodexController) Close() error + func (c *AttachedCodexController) CurrentDir() string + func (c *AttachedCodexController) CurrentModel() string + func (c *AttachedCodexController) CurrentPermissionMode() string + func (c *AttachedCodexController) CurrentSandboxMode() string + func (c *AttachedCodexController) Done() <-chan struct{} + func (c *AttachedCodexController) Err() error + func (c *AttachedCodexController) ForwardProxyClientMessage(messageType int, data []byte, reply func([]byte) error) error + func (c *AttachedCodexController) Interrupt() error + func (c *AttachedCodexController) RecordForwardedInput(content string) + func (c *AttachedCodexController) ResolvePermissionResponse(resp protocol.PermissionResponsePayload) bool + func (c *AttachedCodexController) RuntimeSessionID() string + func (c *AttachedCodexController) SendInput(content string) error + func (c *AttachedCodexController) SetProxyForwarder(forward func([]byte) error) + func (c *AttachedCodexController) Start() (AttachedCodexBootstrap, error) + func (c *AttachedCodexController) StartPassive() error + func (c *AttachedCodexController) SyncInitialSnapshot() + type AttachedCodexControllerConfig struct + Model string + PermissionMode string + Resume bool + RuntimeSessionID string + SandboxMode string + SessionID string + WorkingDir string + type AttachedCodexRolloutMirror struct + func NewAttachedCodexRolloutMirror(cwd string) *AttachedCodexRolloutMirror + func (m *AttachedCodexRolloutMirror) BeginTurn() error + func (m *AttachedCodexRolloutMirror) Poll(handlers AttachedCodexRolloutMirrorHandlers) error + type AttachedCodexRolloutMirrorHandlers struct + HandleAssistantLine func(string) error + HandleRuntimeSessionID func(string) error + HandleTurnComplete func() error + type AttachedHandlers struct + ApplyConfig func(protocol.SessionConfigPayload) error + Interrupt func() error + SendInput func(string) error + type AttachedSessionStateUpdate struct + ApplyModel bool + ApplyPermission bool + ApplySandbox bool + Model string + PermissionMode string + RuntimeSessionID string + SandboxMode string + WorkingDir string + type AttachedTranscriptMirror struct + func NewAttachedTranscriptMirror(sessionID, cwd string) *AttachedTranscriptMirror + func (m *AttachedTranscriptMirror) Poll(handlers AttachedTranscriptMirrorHandlers) error + type AttachedTranscriptMirrorHandlers struct + HandleLine func(string) error + HandlePermissionRequest func(AttachedTranscriptToolUse) error + HandlePermissionResolved func(string) error + HandleResult func(map[string]any) error + type AttachedTranscriptToolUse struct + Input map[string]any + RequestID string + Tool string + type ClaudeSessionResolution struct + AdoptedRecentSession bool + ReplacedRequestedSession bool + Resume bool + SessionID string + TranscriptPath string + func ResolveClaudeSessionStart(requestedSessionID, cwd string, resume bool) (ClaudeSessionResolution, error) + type CodexLocalSession struct + CLIVersion string + Cwd string + LineCount int + ModTime time.Time + ModelProvider string + Originator string + Path string + RuntimeSessionID string + SessionTime time.Time + Source string + func ListCodexLocalSessions(cwd string, includeAll bool) ([]CodexLocalSession, error) + type CodexSessionResolution struct + AdoptedRecentSession bool + ReplacedRequestedSession bool + Resume bool + RolloutPath string + RuntimeSessionID string + func ResolveCodexSessionStart(requestedRuntimeSessionID, cwd string, resume bool) (CodexSessionResolution, error) + type Config struct + Args []string + ClaudeCommand string + ClaudeEnabled bool + CodexCommand string + CodexEnabled bool + Command string + HostID string + Management bool + Model string + PermissionMode string + Resume bool + RuntimeCatalog []protocol.RuntimeCapability + RuntimeSessionID string + SandboxMode string + ServerURL string + SessionID string + Token string + WorkingDir string + type DisplayParser struct + func NewDisplayParser() *DisplayParser + func (p *DisplayParser) ParseTextPayload(payload protocol.TextPayload) []protocol.SessionHistoryMessage + type RuntimeCatalogOptions struct + ClaudeEnabled bool + CodexEnabled bool + type Service struct + func NewService() *Service + func (s *Service) AddMessageObserver(observer func(protocol.Message) error) func() + func (s *Service) ApplySessionConfig(cfg protocol.SessionConfigPayload) error + func (s *Service) AutoReconnectEnabled() bool + func (s *Service) CancelReconnects() + func (s *Service) ClearAttachedPermissionRequest(requestID string) + func (s *Service) CodexAppServerURL() string + func (s *Service) CommandPath() string + func (s *Service) CurrentDir() string + func (s *Service) CurrentModel() string + func (s *Service) CurrentPermissionMode() string + func (s *Service) CurrentSandboxMode() string + func (s *Service) DeleteSession(sessionID string) error + func (s *Service) EmitAttachedPermissionRequest(requestID, tool string, input map[string]any) error + func (s *Service) EmitStructuredTextLine(line string) error + func (s *Service) EmitTerminalText(content string) error + func (s *Service) FinishAttachedTurn(status string) error + func (s *Service) FinishAttachedTurnFromResult(event map[string]any) error + func (s *Service) ForgetSession(sessionID string) bool + func (s *Service) HasActiveTurn() bool + func (s *Service) HasAttachedPermissionRequest() bool + func (s *Service) Interrupt() error + func (s *Service) IsManagementRunning() bool + func (s *Service) IsRunning() bool + func (s *Service) LocalMode() bool + func (s *Service) LocalSessionIDs() []string + func (s *Service) MarkAttachedInterruptRequested() + func (s *Service) PauseSession(sessionID string) error + func (s *Service) ResetAttachedSessionState() + func (s *Service) RespondPermission(resp protocol.PermissionResponsePayload) error + func (s *Service) RuntimeID() string + func (s *Service) RuntimeSessionID() string + func (s *Service) SendCurrentKeepalive() error + func (s *Service) SendInput(content string) error + func (s *Service) SessionID() string + func (s *Service) SetAttachedPermissionResponseHandler(handler func(protocol.PermissionResponsePayload) bool) + func (s *Service) SetAutoReconnectEnabled(enabled bool) + func (s *Service) SetChildStartedHook(hook func(*Service, Config)) + func (s *Service) ShouldAutoApproveTool(toolName string, input map[string]any) bool + func (s *Service) Start(cfg *Config) (string, error) + func (s *Service) StartAttached(cfg *Config, handlers AttachedHandlers) (string, error) + func (s *Service) StartAttachedTurn() error + func (s *Service) StartLocal(cfg *Config, sink func(protocol.Message) error) (string, error) + func (s *Service) StartManagement(cfg *Config) (string, error) + func (s *Service) StartProxy(cfg *Config) (string, error) + func (s *Service) Stop() error + func (s *Service) StopWithReason(reason string) error + func (s *Service) UpdateAttachedSessionState(update AttachedSessionStateUpdate) + func (s *Service) UpdateRuntimeSelection(claudeEnabled, codexEnabled bool, claudeCommand, codexCommand string, ...) + type SessionConfigContext struct + CurrentModel string + CurrentPermissionMode string + CurrentSandboxMode string + CurrentWorkingDir string + Runtime string v0.1.0 Jul 6, 2026