Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ValidAgents lists the supported agent names. Copilot is excluded because its CLI does not support a verified read-only/no-tools mode equivalent to the other agents (--disable-builtin-mcps only blocks MCP tools).
Functions ¶
func BuildPrompt ¶
BuildPrompt queries sessions for the given date and assembles a prompt for the AI agent.
Types ¶
type GenerateFunc ¶
GenerateFunc is the signature for insight generation, allowing tests to substitute a stub.
type GenerateRequest ¶
type GenerateRequest struct {
Type string
DateFrom string
DateTo string
Project string
Prompt string
}
GenerateRequest describes what insight to generate.
type GenerateStreamFunc ¶ added in v0.10.0
type GenerateStreamFunc func( ctx context.Context, agent, prompt string, onLog LogFunc, ) (Result, error)
GenerateStreamFunc is like GenerateFunc but includes a log callback for streaming stdout/stderr events.
type LogEvent ¶ added in v0.10.0
LogEvent represents one log line emitted by an insight agent process.
type LogFunc ¶ added in v0.10.0
type LogFunc func(LogEvent)
LogFunc receives real-time log events from the agent subprocess.