toolpath-pi 0.5.0

Derive Toolpath provenance documents from Pi (pi.dev) coding-agent session logs
Documentation
1
2
3
4
5
6
7
{"type":"session","version":3,"id":"019dabc6-8fef-7681-a054-b5bb75fcb97d","timestamp":"2026-06-01T10:00:00.000Z","cwd":"/work"}
{"type":"model_change","id":"model-1","parentId":null,"timestamp":"2026-06-01T10:00:00.500Z","provider":"anthropic","modelId":"claude-opus-4-6"}
{"type":"message","id":"u1","parentId":"model-1","timestamp":"2026-06-01T10:00:01.000Z","message":{"role":"user","content":[{"type":"text","text":"refactor the auth module"}],"timestamp":1722499201000}}
{"type":"message","id":"a1","parentId":"u1","timestamp":"2026-06-01T10:00:02.000Z","message":{"role":"assistant","content":[{"type":"text","text":"reading the current auth code"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-4-6","usage":{"input":300,"output":40,"cacheRead":0,"cacheWrite":0,"totalTokens":340,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"endTurn","timestamp":1722499202000,"responseId":"resp-1"}}
{"type":"compaction","id":"c1","parentId":"a1","timestamp":"2026-06-01T10:30:00.000Z","summary":"Earlier in this session: read src/auth.rs, identified that login() lacks session-token validation.","firstKeptEntryId":"a1","tokensBefore":180000,"fromHook":false}
{"type":"message","id":"u2","parentId":"c1","timestamp":"2026-06-01T10:31:00.000Z","message":{"role":"user","content":[{"type":"text","text":"now add session validation"}],"timestamp":1722500460000}}
{"type":"message","id":"a2","parentId":"u2","timestamp":"2026-06-01T10:31:01.000Z","message":{"role":"assistant","content":[{"type":"text","text":"added session validation to login()"}],"api":"anthropic-messages","provider":"anthropic","model":"claude-opus-4-6","usage":{"input":700,"output":20,"cacheRead":0,"cacheWrite":0,"totalTokens":720,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"endTurn","timestamp":1722500461000,"responseId":"resp-2"}}