Skip to main content

Module db

Module db 

Source

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
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 tasks primary key. Callers should run ingest_new_events first if they want to see the latest JSONL state.
upsert_task_from_event