Documentation
¶
Index ¶
- Variables
- func ChatProxyToolCorrectionMessageForTest(blocked, names []string) string
- func CommandNeedsAgentRuntimeForTest(line string, cfg *config.Root) bool
- func CursorProxyToolCorrectionMessageForTest(blocked []string) string
- func NativeBridgeToolCorrectionUserMsgForTest() string
- func NewREPLReadline(defaultPrompt string) (*readline.Instance, func(string) (string, error), error)
- func ReadlinePrompt(rl *readline.Instance, prompt string) (string, error)
- func ResetSwitchModeCountdownForTest()
- func SetExecToolHookForTest(fn func(context.Context, tooling.Invocation) (any, error)) func()
- func SetSwitchModeCountdownForTest(d time.Duration, width int)
- func StdinIsTerminal() bool
- func StopAgentGenerationForTest()
- func StripCursorProxyInlineErrorsForTest(content string) (string, string)
- func SubagentDoneSystemMessageForTest(title, subchatID string) string
- func SwitchModeCountdownForTest(r *Runtime, ctx context.Context, target string) (cancelled bool, err error)
- func UsesExecInstallRestartAfterSystemInstallForTest() bool
- type NestedRunConfig
- type NestedRunResult
- type Runtime
- func (r *Runtime) ApplyCurrentModel(providerName, modelID string) error
- func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error
- func (r *Runtime) ApplyRewindCheckpoint(plan *checkpoint.RewindPlan) error
- func (r *Runtime) AugmentNestedCustomSystem(system string) (string, error)
- func (r *Runtime) CancelResearch(target string) error
- func (r *Runtime) Close() error
- func (r *Runtime) ControlSubagent(id, action string) error
- func (r *Runtime) ControlSubagentForTest(id, action string) error
- func (r *Runtime) CursorNativeToolsEnabled() bool
- func (r *Runtime) DeleteResearch(target string) error
- func (r *Runtime) FinalizeChatTitle(ctx context.Context, firstUserLine string) string
- func (r *Runtime) InitMCP(ctx context.Context)
- func (r *Runtime) ListResearch() ([]research.JobRecord, error)
- func (r *Runtime) PrintChatFileChangesForTest(seq int)
- func (r *Runtime) PrintCursorNativeToolEvent(rawJSON string)
- func (r *Runtime) ProxyCorrectionScreenMessageForTest() string
- func (r *Runtime) RecordChatFileChangesForTest(seq int, changes []filechanges.Change, commits []filechanges.Commit)
- func (r *Runtime) ReplCompleteCfg() *config.Root
- func (r *Runtime) ReplCompleteProjHex() string
- func (r *Runtime) ReplCompleteProjRoot() string
- func (r *Runtime) ReplCompleteShellFirst() bool
- func (r *Runtime) ReplCompleteSnapshotSession() *chatstore.Session
- func (r *Runtime) ResearchStatus(target string) (research.JobRecord, error)
- func (r *Runtime) ResearchStatusForProject(projectHex, target string) (research.JobRecord, error)
- func (r *Runtime) ResolveTurnInvocations(turn llm.AssistantTurnResult, legacySW *tooling.LegacyStreamWriter) (invs []tooling.Invocation, toolIDs []string, rejectNative bool, ...)
- func (r *Runtime) ResumeResearch(target string) (research.JobRecord, error)
- func (r *Runtime) Run(ctx context.Context) error
- func (r *Runtime) RunAgentTurnsForTest(ctx context.Context) error
- func (r *Runtime) RunGUISlash(ctx context.Context, line string) error
- func (r *Runtime) RunPromptOnce(ctx context.Context, line string) error
- func (r *Runtime) RunSubagentToolForTest(ctx context.Context, cfg NestedRunConfig) (NestedRunResult, error)
- func (r *Runtime) SaveTurnFileChangesForTest(seq int) error
- func (r *Runtime) SetMCPManager(manager *solomonmcp.Manager)
- func (r *Runtime) SetReplInputPrefillForTest(s string)
- func (r *Runtime) SnapshotSession() (*chatstore.Session, error)
- func (r *Runtime) StartResearchJob(query, category string) (research.JobRecord, error)
- func (r *Runtime) StartedAgentResourcesForTest() bool
- func (r *Runtime) StripCursorProxyInlineErrorsForTest(content string) (string, string)
- func (r *Runtime) SystemPromptForTest(disableThinking bool) (string, error)
- func (r *Runtime) TakeReplInputPrefillForTest() string
- func (r *Runtime) ToolEnvForInvocationForTest(inv tooling.Invocation) *agenttools.Env
- func (r *Runtime) ToolEnvForTest() *agenttools.Env
- func (r *Runtime) ToolInvocationCorrectionUserMsgForTest() string
- func (r *Runtime) WaitProviderReadyForTest(ctx context.Context) error
- func (r *Runtime) WaitReady(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
var ErrRestartSolomon = errors.New("restart solomon")
Functions ¶
func ChatProxyToolCorrectionMessageForTest ¶ added in v2026.1010.0
func CommandNeedsAgentRuntimeForTest ¶ added in v2026.1011.0
func CursorProxyToolCorrectionMessageForTest ¶ added in v2026.624.0
func NativeBridgeToolCorrectionUserMsgForTest ¶ added in v2026.624.0
func NativeBridgeToolCorrectionUserMsgForTest() string
func NewREPLReadline ¶
func ResetSwitchModeCountdownForTest ¶ added in v2026.610.0
func ResetSwitchModeCountdownForTest()
func SetExecToolHookForTest ¶ added in v2026.615.0
func SetSwitchModeCountdownForTest ¶ added in v2026.610.0
func StdinIsTerminal ¶
func StdinIsTerminal() bool
func StopAgentGenerationForTest ¶ added in v2026.615.0
func StopAgentGenerationForTest()
func StripCursorProxyInlineErrorsForTest ¶ added in v2026.624.0
func SubagentDoneSystemMessageForTest ¶ added in v2026.615.0
func SwitchModeCountdownForTest ¶ added in v2026.610.0
func UsesExecInstallRestartAfterSystemInstallForTest ¶ added in v2026.701.0
func UsesExecInstallRestartAfterSystemInstallForTest() bool
Types ¶
type NestedRunConfig ¶ added in v2026.615.0
type NestedRunConfig struct {
SysPromptPath string
Task string
ResumeID string
Interrupt bool
RunInBackground bool
ReasoningEffort string
ParentChatID string
ParentToolCallID string
ToolCall chatstore.ToolCall
SpawnTime time.Time
Origin string
ProjectHex string
SysPrompt string
RoleProvider string
RoleModel string
}
type NestedRunResult ¶ added in v2026.615.0
type Runtime ¶
type Runtime struct {
AuthorizeTool func(context.Context, tooling.Invocation) error
RL *readline.Instance
Client openai.Client
Backend llm.CompletionBackend
Model string
Cfg *config.Root
Prov *config.Provider
ProjHex string
ProjRoot string
Mode string
Session *chatstore.Session
CompactionThresholdTokens int64
EphemeralSession bool
Out io.Writer
MCP *solomonmcp.Manager
Cloak *cloak.Client
WebSearch search.Engine
WebFetch webfetch.Fetcher
ReplShellFirst bool
EventSink cievents.Sink
FailOnToolError bool
Surface string
LastFinishReason string
ToolOut *tooloutput.Service
Instructions *instructions.Loader
// contains filtered or unexported fields
}
func NewCommandRuntime ¶ added in v2026.1011.0
func NewCommandRuntime(ctx context.Context, cfg *config.Root, prov *config.Provider, projectID, root string, sess *chatstore.Session, line string) *Runtime
Local commands use the daemon dispatcher without starting agent resources.
func NewRuntime ¶
func NewTestRuntime ¶ added in v2026.615.0
func (*Runtime) ApplyCurrentModel ¶
func (*Runtime) ApplyGotoCheckpoint ¶
func (r *Runtime) ApplyGotoCheckpoint(id *checkpoint.FullCheckpointID) error
func (*Runtime) ApplyRewindCheckpoint ¶ added in v2026.621.0
func (r *Runtime) ApplyRewindCheckpoint(plan *checkpoint.RewindPlan) error
func (*Runtime) AugmentNestedCustomSystem ¶
func (*Runtime) CancelResearch ¶ added in v2026.617.0
func (*Runtime) ControlSubagent ¶ added in v2026.909.0
ControlSubagent exposes the same lifecycle operation used by the REPL to integrations that host a Runtime outside the terminal UI. Keeping the implementation here makes the daemon and the REPL share the exact same pause, cancel and resume semantics.
func (*Runtime) ControlSubagentForTest ¶ added in v2026.909.0
func (*Runtime) CursorNativeToolsEnabled ¶ added in v2026.606.0
func (*Runtime) DeleteResearch ¶ added in v2026.617.0
func (*Runtime) FinalizeChatTitle ¶ added in v2026.909.0
FinalizeChatTitle generates a title for an API-created chat while keeping its existing ID stable. The API needs a stable ID so the browser can keep its stream attached while the title is refined.
func (*Runtime) ListResearch ¶ added in v2026.617.0
func (*Runtime) PrintChatFileChangesForTest ¶ added in v2026.1023.0
func (*Runtime) PrintCursorNativeToolEvent ¶ added in v2026.606.0
func (*Runtime) ProxyCorrectionScreenMessageForTest ¶ added in v2026.1010.0
func (*Runtime) RecordChatFileChangesForTest ¶ added in v2026.1023.0
func (r *Runtime) RecordChatFileChangesForTest(seq int, changes []filechanges.Change, commits []filechanges.Commit)
func (*Runtime) ReplCompleteCfg ¶ added in v2026.608.0
func (*Runtime) ReplCompleteProjHex ¶ added in v2026.602.2
func (*Runtime) ReplCompleteProjRoot ¶ added in v2026.602.2
func (*Runtime) ReplCompleteShellFirst ¶ added in v2026.602.2
func (*Runtime) ReplCompleteSnapshotSession ¶ added in v2026.602.2
func (*Runtime) ResearchStatus ¶ added in v2026.617.0
func (*Runtime) ResearchStatusForProject ¶ added in v2026.617.0
func (*Runtime) ResolveTurnInvocations ¶
func (r *Runtime) ResolveTurnInvocations(turn llm.AssistantTurnResult, legacySW *tooling.LegacyStreamWriter) (invs []tooling.Invocation, toolIDs []string, rejectNative bool, malformed error)
func (*Runtime) ResumeResearch ¶ added in v2026.617.0
func (*Runtime) RunAgentTurnsForTest ¶ added in v2026.615.0
func (*Runtime) RunGUISlash ¶ added in v2026.1010.0
RunGUISlash uses the REPL dispatcher without reading from the daemon's stdin or placing skill prompts in an invisible terminal input buffer.
func (*Runtime) RunPromptOnce ¶
func (*Runtime) RunSubagentToolForTest ¶ added in v2026.909.0
func (r *Runtime) RunSubagentToolForTest(ctx context.Context, cfg NestedRunConfig) (NestedRunResult, error)
func (*Runtime) SaveTurnFileChangesForTest ¶ added in v2026.1023.0
func (*Runtime) SetMCPManager ¶ added in v2026.1031.0
func (r *Runtime) SetMCPManager(manager *solomonmcp.Manager)
func (*Runtime) SetReplInputPrefillForTest ¶ added in v2026.624.0
func (*Runtime) SnapshotSession ¶ added in v2026.1031.0
func (*Runtime) StartResearchJob ¶ added in v2026.617.0
func (*Runtime) StartedAgentResourcesForTest ¶ added in v2026.1011.0
func (*Runtime) StripCursorProxyInlineErrorsForTest ¶ added in v2026.1010.0
func (*Runtime) SystemPromptForTest ¶ added in v2026.930.0
func (*Runtime) TakeReplInputPrefillForTest ¶ added in v2026.624.0
func (*Runtime) ToolEnvForInvocationForTest ¶ added in v2026.1023.0
func (r *Runtime) ToolEnvForInvocationForTest(inv tooling.Invocation) *agenttools.Env
func (*Runtime) ToolEnvForTest ¶ added in v2026.930.0
func (r *Runtime) ToolEnvForTest() *agenttools.Env
func (*Runtime) ToolInvocationCorrectionUserMsgForTest ¶ added in v2026.1010.0
func (*Runtime) WaitProviderReadyForTest ¶ added in v2026.1011.0
Source Files
¶
- bridge.go
- checkpoint.go
- ci_run.go
- core.go
- cursor_native_display.go
- cursor_proxy_corrections.go
- cursor_sidecar.go
- deferred_chat_title.go
- exec.go
- file_changes.go
- file_changes_testexport.go
- gui_slash.go
- hook.go
- instructions.go
- legacy.go
- mcp.go
- nested.go
- nested_persist.go
- protocol.go
- regenerate.go
- rejected_tool.go
- repl_input.go
- repl_run.go
- replcomplete_runtime.go
- researchmanager.go
- restart.go
- role_backend.go
- settings.go
- slash_deps.go
- state.go
- stream.go
- subagent_args.go
- subagent_control.go
- subagent_delegate.go
- subagent_registry.go
- subagent_roles.go
- subagent_run.go
- switch_mode.go
- tool_print.go
- turns.go
- update.go
- updatetest.go
- usershell.go