Documentation
¶
Overview ¶
Package runner invokes local CLIs for CapGateway jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
type Cursor struct {
Binary string
// APIKey is CURSOR_API_KEY for the upstream Cursor CLI.
APIKey string
// FlowbotURL is injected for flowbot-agent as FLOWBOT_URL.
FlowbotURL string
// AgentAccessToken is injected for flowbot-agent as FLOWBOT_AGENT_TOKEN (agent:headless).
AgentAccessToken string
Timeout time.Duration
}
Cursor runs a headless coding CLI binary with Cursor-compatible flags. It may invoke Cursor's `agent` (CURSOR_API_KEY) or flowbot-agent (FLOWBOT_URL + FLOWBOT_AGENT_TOKEN) depending on Binary and child env.
func (*Cursor) WithFlowbotAgent ¶
WithFlowbotAgent injects Flowbot URL and agent:headless token for flowbot-agent.
type Unsupported ¶
type Unsupported struct {
Name string
}
Unsupported is a Runner that always fails (OpenCode placeholder).
func (Unsupported) Run ¶
func (u Unsupported) Run(context.Context, *types.GatewayJob, string) Result
Run implements Runner.
Click to show internal directories.
Click to hide internal directories.