transcripts

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func ParseFile(e env.Env, path string, offset int64, emit func(receipts.Receipt)) (int64, error)

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

func Reconstruct(ctx context.Context, e env.Env, st *receipts.Store) (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL