diff --git a/.daemon/logs/signet-2026-02-21.log b/.daemon/logs/signet-2026-02-21.log index 5634361d8..5eaf3437c 100644 --- a/.daemon/logs/signet-2026-02-21.log +++ b/.daemon/logs/signet-2026-02-21.log @@ -10861,3 +10861,18 @@ {"timestamp":"2026-02-21T20:16:37.584Z","level":"info","category":"hooks","message":"Session start hook","data":{"harness":"claude-code","project":"/home/nicholai/signet/signetai/packages/daemon"}} {"timestamp":"2026-02-21T20:16:37.585Z","level":"info","category":"hooks","message":"Session start completed","data":{"memoryCount":9,"durationMs":1}} {"timestamp":"2026-02-21T20:16:37.586Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}} +{"timestamp":"2026-02-21T20:16:42.913Z","level":"info","category":"git","message":"Auto-committed","data":{"message":"2026-02-21T20-16-42_auto_memory/memories.db-wal, memory/memories.db-wal, me","filesChanged":3}} +{"timestamp":"2026-02-21T20:16:48.504Z","level":"info","category":"summary-worker","message":"Wrote session summary","data":{"path":"/home/nicholai/.agents/memory/2026-02-21-timeline-api-endpoint-implementation.md"}} +{"timestamp":"2026-02-21T20:16:48.507Z","level":"info","category":"summary-worker","message":"Inserted session facts","data":{"total":9,"saved":9,"deduplicated":0}} +{"timestamp":"2026-02-21T20:16:48.507Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}} +{"timestamp":"2026-02-21T20:16:48.508Z","level":"info","category":"watcher","message":"File added","data":{"path":"/home/nicholai/.agents/memory/2026-02-21-timeline-api-endpoint-implementation.md"}} +{"timestamp":"2026-02-21T20:16:49.400Z","level":"info","category":"memory","message":"Memory saved","data":{"id":"2f9fdc9e-cb92-4961-8919-e9de25cf0d09","type":"fact","pinned":false,"embedded":true}} +{"timestamp":"2026-02-21T20:16:49.401Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}} +{"timestamp":"2026-02-21T20:16:49.413Z","level":"info","category":"memory","message":"Memory saved","data":{"id":"437d1950-ca01-479b-af48-dfbac34d145e","type":"fact","pinned":false,"embedded":true}} +{"timestamp":"2026-02-21T20:16:49.424Z","level":"info","category":"memory","message":"Memory saved","data":{"id":"0341bb8b-03ed-4427-a816-b980990694f8","type":"fact","pinned":false,"embedded":true}} +{"timestamp":"2026-02-21T20:16:49.434Z","level":"info","category":"memory","message":"Memory saved","data":{"id":"d70eda84-6b97-44d5-9ecb-82aa860e284b","type":"fact","pinned":false,"embedded":true}} +{"timestamp":"2026-02-21T20:16:49.434Z","level":"info","category":"watcher","message":"Ingested memory file","data":{"path":"/home/nicholai/.agents/memory/2026-02-21-timeline-api-endpoint-implementation.md","chunks":4,"sections":4,"filename":"2026-02-21-timeline-api-endpoint-implementation"}} +{"timestamp":"2026-02-21T20:16:49.902Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}} +{"timestamp":"2026-02-21T20:16:53.522Z","level":"info","category":"hooks","message":"Session start hook","data":{"harness":"claude-code","project":"/home/nicholai/signet/signetai/packages/daemon"}} +{"timestamp":"2026-02-21T20:16:53.523Z","level":"info","category":"hooks","message":"Session start completed","data":{"memoryCount":9,"durationMs":1}} +{"timestamp":"2026-02-21T20:16:53.524Z","level":"info","category":"watcher","message":"File changed","data":{"path":"/home/nicholai/.agents/memory/memories.db-wal"}} diff --git a/memory/2026-02-21-timeline-api-endpoint-implementation.md b/memory/2026-02-21-timeline-api-endpoint-implementation.md new file mode 100644 index 000000000..230578da2 --- /dev/null +++ b/memory/2026-02-21-timeline-api-endpoint-implementation.md @@ -0,0 +1,22 @@ +# 2026-02-21 Session Notes + +## Timeline API Endpoint Implementation + +Added a new GET /api/timeline endpoint to the Signet daemon to expose recent memory activity for a dashboard timeline view. The endpoint leverages the existing timeline builder at packages/daemon/src/timeline.ts, which aggregates events from memory_history, memories, and connectors tables into a unified feed. + +### Endpoint Design + +The endpoint accepts optional query parameters for pagination and filtering: +- `limit` (default: 50) — number of events to return +- `offset` (default: 0) — pagination offset +- `type` filter — filter by event category (memories, connectors, system) + +Response format: `{ events: [{id, type, timestamp, summary, details}], total, hasMore }` + +### Key Decisions + +Included memory extraction events from the pipeline worker (extraction_complete, decision_applied) as requested. All timestamps use ISO 8601 format, maintaining consistency with the rest of the Signet API. + +### Deferred Work + +Frontend implementation deferred to next session. Will involve adding a new route in packages/cli/dashboard/src/routes/ and a SvelteKit timeline component to consume the endpoint. \ No newline at end of file diff --git a/memory/memories.db-wal b/memory/memories.db-wal index 56c6f3de3..8e23205c7 100644 Binary files a/memory/memories.db-wal and b/memory/memories.db-wal differ