Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidAgentNames = []string{
"claude",
"codex",
"copilot",
"gemini",
"kiro",
}
ValidAgentNames lists the supported insight agent names in display order. ValidAgents is a lookup set derived from it.
View Source
var ValidAgents = func() map[string]bool { m := make(map[string]bool, len(ValidAgentNames)) for _, name := range ValidAgentNames { m[name] = true } return m }()
ValidAgents is the set of supported insight agent names.
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.
Click to show internal directories.
Click to hide internal directories.