Documentation
¶
Overview ¶
Package narrate turns tool events into the human-readable phrases the Now screen shows ("editing main.go", "running go test — 2nd attempt") and derives a session's health badge and plan progress. Pure functions, unit-tested; the UI and any future TUI render what this package says. See .ai/04-ui.md.
Index ¶
Constants ¶
const ( HealthWorking = "working" HealthIdle = "idle" HealthWaiting = "waiting-on-you" HealthLooping = "looping" HealthError = "error" HealthEnded = "ended" )
Health badges (spec: working / idle / waiting-on-you / looping? / error).
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activity ¶
type Activity struct {
Phrase string `json:"phrase"`
Tool string `json:"tool,omitempty"`
At time.Time `json:"at"`
Health string `json:"health"`
Plan *Plan `json:"plan,omitempty"`
// Repeats counts consecutive identical (tool, sample) calls ending at the latest event.
Repeats int `json:"repeats,omitempty"`
}
Activity is the current-activity summary for a session.