Structs§
- TaskRow
- One row of the task list rendered by the TUI: enough to render the
list view without round-tripping for each task.
event_countjoinsevents_indexso we don’t need a second query per row.
Functions§
- index_
event - ingest_
new_ events - Read only the tail of the JSONL log since the last call. The cheap path for hot loops (every MCP tool invocation): scan to the marker, ingest the rest, update the marker.
- list_
all_ projects - list_
tasks_ by_ project - All tasks for a project, ordered with open ones first (by recency) then closed ones. The TUI list view binds directly to this — there is no other consumer, so the shape is tuned for that callsite.
- open
- rebuild_
state - task_
exists - Returns whether a task with this id has been recorded in the derived
state. Cheap O(1) lookup against the
tasksprimary key. Callers should runingest_new_eventsfirst if they want to see the latest JSONL state. - task_
status - Status string for an existing task (e.g. “open”, “closed”). Returns
Nonewhen the task is unknown — caller decides whether that’s a hard error or a route-to-pending case. - upsert_
task_ from_ event