Documentation
¶
Overview ¶
Package transcripts rebuilds receipts from existing Claude Code transcripts so the first report can attribute leftovers. It reads tool-call metadata only (paths and commands); message text and file contents are never decoded.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFile ¶
ParseFile reads complete JSONL lines of a Claude transcript starting at offset and emits receipts: one session-start (only when offset is 0, so a resumed parse never restarts a session), "created" receipts for interesting outputs, and one session-end. It returns the offset just past the last complete line read.
func Reconstruct ¶
Reconstruct reads Claude transcripts newest first and appends receipts to st, resuming from <StateDir>/reconstruct.json. It returns done=true when every transcript has been read to its current size. If another Reconstruct holds the lock it returns (false, nil) without touching anything.
Types ¶
This section is empty.