Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHTML ¶
func BuildHTML(sessionName string, entries []json.RawMessage) (string, error)
BuildHTML assembles a self-contained HTML file from the session name and filtered entries.
func FilterTranscript ¶
func FilterTranscript(r io.Reader) ([]json.RawMessage, error)
FilterTranscript reads JSONL from r and returns only user and assistant entries as raw JSON. Uses bufio.Reader instead of bufio.Scanner to handle arbitrarily long lines (Claude transcripts can contain tool output blocks larger than 1MB).
Types ¶
type ExportData ¶
type ExportData struct {
SessionName string `json:"sessionName"`
Entries []json.RawMessage `json:"entries"`
}
ExportData is the top-level structure serialized to JSON and base64-encoded.
Click to show internal directories.
Click to hide internal directories.