feat(session-historian): cross-platform session history agent and /ce-sessions skill (#534)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
tests/fixtures/session-history/claude-session.jsonl
vendored
Normal file
10
tests/fixtures/session-history/claude-session.jsonl
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{"parentUuid":null,"type":"user","message":{"role":"user","content":"fix the auth bug"},"uuid":"aaa","timestamp":"2026-04-05T10:00:00.000Z","gitBranch":"feat/auth-fix","sessionId":"test-claude-session-1","cwd":"/Users/test/Code/my-repo"}
|
||||
{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"I'll investigate the auth module."},{"type":"tool_use","name":"Read","input":{"file_path":"/Users/test/Code/my-repo/src/auth.ts"}}]},"timestamp":"2026-04-05T10:00:05.000Z"}
|
||||
{"type":"user","message":{"role":"user","content":[{"type":"tool_result","tool_use_id":"t1","is_error":false,"content":"file contents here"}]},"timestamp":"2026-04-05T10:00:06.000Z"}
|
||||
{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"Found the issue. The token validation is missing."},{"type":"tool_use","name":"Edit","input":{"file_path":"/Users/test/Code/my-repo/src/auth.ts","old_string":"validate()","new_string":"validateToken()"}}]},"timestamp":"2026-04-05T10:00:10.000Z"}
|
||||
{"type":"user","message":{"role":"user","content":[{"type":"tool_result","tool_use_id":"t2","is_error":true,"content":"Error: String to replace not found in file"}]},"timestamp":"2026-04-05T10:00:11.000Z"}
|
||||
{"type":"user","message":{"role":"user","content":"no, that's not the right approach. check the middleware instead"},"timestamp":"2026-04-05T10:00:15.000Z"}
|
||||
{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"<local-command-stdout>Server restarted</local-command-stdout>"}]},"timestamp":"2026-04-05T10:00:16.000Z"}
|
||||
{"type":"user","message":{"role":"user","content":"<task-notification><task-id>abc123</task-id><tool-use-id>t3</tool-use-id><status>completed</status></task-notification>"},"timestamp":"2026-04-05T10:00:20.000Z"}
|
||||
{"type":"user","message":{"role":"user","content":"<local-command-caveat>Caveat: The messages below were generated by the user while running local commands.</local-command-caveat>"},"timestamp":"2026-04-05T10:00:21.000Z"}
|
||||
{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"The middleware fix is applied and working."}]},"timestamp":"2026-04-05T10:05:00.000Z"}
|
||||
Reference in New Issue
Block a user