Documentation
¶
Index ¶
Constants ¶
const ( // AgentClaude is the supported public agent identifier for the Claude CLI. AgentClaude = common.AgentClaude // AgentGemini is the supported public agent identifier for the Gemini CLI. AgentGemini = common.AgentGemini // AgentCodex is the supported public agent identifier for the Codex CLI. AgentCodex = common.AgentCodex // AgentCodexOllama is the supported public agent identifier for Codex OSS mode via Ollama. AgentCodexOllama = common.AgentCodexOllama // DefaultClaudeModel is the default Claude model alias for demo runs. DefaultClaudeModel = common.ModelClaudeSonnet // DefaultGeminiModel is the default Gemini model alias for demo runs. DefaultGeminiModel = common.ModelGemini25Flash // DefaultCodexModel is the default Codex model alias for demo runs (empty uses Codex default). DefaultCodexModel = "" // DefaultAgentTimeout is the default maximum runtime for a demo agent invocation. DefaultAgentTimeout = 5 * time.Minute // TaskTemplateFile is the default task template file name for the task. TaskTemplateFile = "guided_tdd_workflow.yaml" )
Variables ¶
This section is empty.
Functions ¶
func NormalizeModelForAgent ¶ added in v0.4.0
NormalizeModelForAgent applies known CLI/internal aliases for one agent model.
func SelectedModelForExecution ¶ added in v0.4.0
func SelectedModelForExecution(opts AgentExecutionOptions) string
SelectedModelForExecution returns the persisted model/profile label for one normalized execution.
Types ¶
type AgentExecutionOptions ¶ added in v0.4.0
type AgentExecutionOptions struct {
Agent string
Model string
Profile string
CodexConfigPath string
}
AgentExecutionOptions configures one concrete agent invocation.
func NormalizeExecutionOptions ¶ added in v0.4.0
func NormalizeExecutionOptions(opts AgentExecutionOptions) (AgentExecutionOptions, error)
NormalizeExecutionOptions trims one execution config, applies per-agent defaults, and validates model/profile compatibility.
type DemoOptions ¶
type DemoOptions struct {
Execution AgentExecutionOptions
RootPath string
CentianBinaryPath string
Timeout time.Duration
OpenBrowser bool
Stdout io.Writer
Stderr io.Writer
}
DemoOptions configures a single demo run.
type DemoResult ¶
type DemoResult struct {
RootPath string
WorkspacePath string
ConfigPath string
PromptPath string
AgentStdout string
AgentStderr string
UIPublicURL string
MCPURL string
PID int
StopHint string
}
DemoResult describes the generated demo workspace and running Centian instance.
type DemoRunner ¶
type DemoRunner struct{}
DemoRunner provisions and launches a self-contained Centian demo workspace.
func (DemoRunner) RunDemo ¶
func (DemoRunner) RunDemo(ctx context.Context, opts *DemoOptions) (*DemoResult, error)
RunDemo creates the demo workspace, starts Centian, launches the selected agent, and leaves Centian running after the agent exits.
type RunOptions ¶ added in v0.4.0
type RunOptions struct {
Execution AgentExecutionOptions
ArtifactRoot string
WorkspacePath string
MCPURL string
Prompt string
Timeout time.Duration
Stdout io.Writer
Stderr io.Writer
}
RunOptions configures one headless agent invocation against a Centian MCP URL.