Native terminal recording and replay for Vibe TUI sessions.
Recordings store exact terminal output bytes in chunked Erlang External Term
Format blocks, gzip-compressed by default. The native format keeps Vibe-only
events such as keys and resizes while export_asciinema/2 produces a
standard asciinema v2 .cast file from the same output stream.
Summary
Functions
Decodes a native cast block with the configured compression.
Encodes a native cast block with the configured compression.
Returns all decoded native events.
Exports a native recording to asciinema v2 JSONL format.
Finds times where a plain terminal snapshot contains text or a regex match.
Returns summary information about a cast.
Returns the native cast file magic bytes.
Opens a native Vibe TUI cast file.
Opens a native cast file and raises on failure.
Returns the path configured by CLI opts or environment variables.
Rebuilds the sidecar index for a native recording.
Returns a terminal snapshot at a time or semantic point.
Returns a terminal snapshot or raises.
Starts a native cast writer unless recording is disabled.
Returns the native cast format version.
Types
@type event() :: {:output, non_neg_integer(), binary()} | {:input, non_neg_integer(), binary()} | {:input_redacted, non_neg_integer(), non_neg_integer()} | {:key, non_neg_integer(), term()} | {:resize, non_neg_integer(), pos_integer(), pos_integer()} | {:app_event, non_neg_integer(), term()} | {:trace_frame, non_neg_integer(), term()} | {:trace_snapshot, non_neg_integer(), term()}
Functions
Decodes a native cast block with the configured compression.
Encodes a native cast block with the configured compression.
Returns all decoded native events.
Exports a native recording to asciinema v2 JSONL format.
@spec find(Path.t() | t(), binary() | Regex.t(), keyword()) :: [ %{time_ms: non_neg_integer(), match: binary()} ]
Finds times where a plain terminal snapshot contains text or a regex match.
Returns summary information about a cast.
Returns the native cast file magic bytes.
Opens a native Vibe TUI cast file.
Opens a native cast file and raises on failure.
Returns the path configured by CLI opts or environment variables.
Rebuilds the sidecar index for a native recording.
Returns a terminal snapshot at a time or semantic point.
Returns a terminal snapshot or raises.
Starts a native cast writer unless recording is disabled.
Returns the native cast format version.