Expand description
Transcript streamer — reads Claude Code JSONL transcripts and formats them for Nexus ingest.
Ported from letta-ai/claude-subconscious/scripts/transcript_utils.ts.
Structs§
- Ingest
Entry - Formatted entry ready for Nexus ingest-hook-event.
- Tool
Call - Tool
Result - Transcript
Entry - A parsed entry from a Claude Code JSONL transcript.
Functions§
- build_
ingest_ payload - Build a JSON payload for
nexus ingest-hook-eventfrom transcript entries. - format_
for_ ingest - Format transcript entries for Nexus ingest.
Produces a single concatenated string suitable for
nexus ingest-hook-event. - read_
transcript - Read a Claude Code JSONL transcript file and parse entries.
- read_
transcript_ from - Read only entries strictly after
start_index(exclusive) for incremental sync. PassNoneto read all entries (never synced).