Documentation
¶
Overview ¶
Package compact provides the CLI's redaction-aware transcript conversion boundary and condensed transcript view.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compact ¶
func Compact(redacted redact.RedactedBytes, opts MetadataFields) ([]byte, error)
Compact converts a full.jsonl transcript into the Entire Transcript Format. The input must be pre-redacted (via redact.JSONLBytes or redact.AlreadyRedacted for trusted sources).
func FullWithBoundary ¶ added in v0.8.0
func FullWithBoundary(redacted redact.RedactedBytes, opts MetadataFields) ([]byte, int, error)
FullWithBoundary converts the full transcript and returns the compact-output line index at which this checkpoint's data begins. See transcriptlib.ConvertWithBoundary for the per-format offsets and inclusion rounding at streaming boundaries.
Types ¶
type CondensedEntry ¶ added in v0.5.4
func BuildCondensedEntries ¶ added in v0.5.4
func BuildCondensedEntries(content []byte) ([]CondensedEntry, error)
type MetadataFields ¶
type MetadataFields = transcriptlib.Options
MetadataFields provides metadata fields written to every output line.