export

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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