Documentation
¶
Index ¶
- Constants
- func LoadConfiguredCLIPath(settingsPath string, settingKey string) string
- func LoadConfiguredStringMapSetting(settingsPath string, settingKey string) map[string]string
- func LoadConfiguredStringSetting(settingsPath string, settingKey string) string
- func LoadEnvCLIPath(envKey string) string
- func ResolveConfiguredCLIPath(settingsPath, settingKey, envKey, defaultPath string, ...) (string, error)
- type Agent
- type AgentRunner
- type AgentRunnerID
- type AgentRunnerInfo
- type AgentRunnerRegistry
- type AskOptions
- type DeltaCallback
- type FileChange
- type ModelInfo
- type Settings
- type ToolCallCallback
- type ToolCallEvent
Constants ¶
View Source
const ( CursorCLIPathSettingKey = "cursor_cli_path" CodexCLIPathSettingKey = "codex_cli_path" OpencodeCLIPathSettingKey = "opencode_cli_path" FakeCodexCLIPathSettingKey = "fake_codex_cli_path" CodexAPIKeySettingKey = "codex_api_key" AgentRunnerIDSettingKey = "agent_runner_id" KBDefaultAgentRunnerIDSettingKey = "kb_default_agent_runner_id" ModelSettingKey = "model" ModelsByAgentRunnerSettingKey = "models_by_agent_runner" )
View Source
const ( EnvCursorCLIPath = "AGENT_RUNNER_CURSOR_PATH" EnvCodexCLIPath = "AGENT_RUNNER_CODEX_PATH" EnvOpencodeCLIPath = "AGENT_RUNNER_OPENCODE_PATH" EnvFakeCodexCLIPath = "AGENT_RUNNER_FAKE_CODEX_PATH" )
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguredCLIPath ¶
func LoadEnvCLIPath ¶ added in v0.0.12
Types ¶
type AgentRunner ¶ added in v0.0.10
type AgentRunner struct {
ID AgentRunnerID
Name string
Agent Agent
}
type AgentRunnerID ¶ added in v0.0.12
type AgentRunnerID string
const ( AgentRunnerCodex AgentRunnerID = "codex" AgentRunnerOpencode AgentRunnerID = "opencode" AgentRunnerCursor AgentRunnerID = "cursor" AgentRunnerFakeCodex AgentRunnerID = "fake-codex" )
type AgentRunnerInfo ¶ added in v0.0.10
type AgentRunnerInfo struct {
ID AgentRunnerID `json:"id"`
Name string `json:"name"`
}
type AgentRunnerRegistry ¶ added in v0.0.10
type AgentRunnerRegistry struct {
// contains filtered or unexported fields
}
func NewAgentRunnerRegistry ¶ added in v0.0.10
func NewAgentRunnerRegistry(defaultID string, runners []AgentRunner) (*AgentRunnerRegistry, error)
func (*AgentRunnerRegistry) DefaultID ¶ added in v0.0.10
func (r *AgentRunnerRegistry) DefaultID() string
func (*AgentRunnerRegistry) List ¶ added in v0.0.10
func (r *AgentRunnerRegistry) List() []AgentRunnerInfo
func (*AgentRunnerRegistry) Resolve ¶ added in v0.0.10
func (r *AgentRunnerRegistry) Resolve(id string) (AgentRunner, error)
type AskOptions ¶
type DeltaCallback ¶
type DeltaCallback func(delta string)
type FileChange ¶
type Settings ¶
type Settings struct {
Model string `json:"model,omitempty"`
AgentID string `json:"agent_id,omitempty"`
AgentRunnerID string `json:"agent_runner_id,omitempty"`
KBDefaultAgentRunnerID string `json:"kb_default_agent_runner_id,omitempty"`
CursorCLIPath string `json:"cursor_cli_path,omitempty"`
CodexCLIPath string `json:"codex_cli_path,omitempty"`
OpencodeCLIPath string `json:"opencode_cli_path,omitempty"`
FakeCodexCLIPath string `json:"fake_codex_cli_path,omitempty"`
CodexAPIKey string `json:"codex_api_key,omitempty"`
DisableSubAgents bool `json:"disable_sub_agents,omitempty"`
ModelsByAgentRunner map[string]string `json:"models_by_agent_runner,omitempty"`
}
func LoadSettingsMap ¶
type ToolCallCallback ¶
type ToolCallCallback func(event ToolCallEvent)
type ToolCallEvent ¶
type ToolCallEvent struct {
Subtype string `json:"subtype"`
CallID string `json:"call_id,omitempty"`
ToolName string `json:"tool_name"`
Summary string `json:"summary"`
Kind string `json:"kind,omitempty"`
Status string `json:"status,omitempty"`
FileChanges []FileChange `json:"file_changes,omitempty"`
ReplaceSummary bool `json:"replace_summary,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.