Summary
The Claude plugin stop hook added in #229 saves raw Claude session transcripts as claude-transcript_<session_id>.jsonl under .evolve/trajectories/. However, the current trajectory viz loaders in altk_evolve/viz/data.py only read *.json files and expect single-object JSON, so these .jsonl files are not surfaced in /api/trajectories.
What needs to be done
Update altk_evolve/viz/data.py (and any related loaders / API endpoints) to:
- Discover
claude-transcript_*.jsonl files in the trajectories directory.
- Parse the JSONL format (one JSON object per line) correctly.
- Expose them through the
/api/trajectories endpoint so they appear in the UI.
Context
Summary
The Claude plugin stop hook added in #229 saves raw Claude session transcripts as
claude-transcript_<session_id>.jsonlunder.evolve/trajectories/. However, the current trajectory viz loaders inaltk_evolve/viz/data.pyonly read*.jsonfiles and expect single-object JSON, so these.jsonlfiles are not surfaced in/api/trajectories.What needs to be done
Update
altk_evolve/viz/data.py(and any related loaders / API endpoints) to:claude-transcript_*.jsonlfiles in the trajectories directory./api/trajectoriesendpoint so they appear in the UI.Context