compact

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 6 Imported by: 1 module, 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 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

type CondensedEntry struct {
	Type       string
	Content    string
	ToolName   string
	ToolDetail string
}

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.

Jump to

Keyboard shortcuts

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