Skip to main content

Module bash

Module bash 

Source
Expand description

Bash list surface adapter (R17, R20, R22).

List surface metadata and envelope builder for bash.output. Unit: lines. Reason: cap (ReasonKind::Selecting). Narrow: []. No narrow clause in rendered text. shown = output line count, total = Exact(input line count), both measured on the text the agent receives. dropped_by_class counts blocks and is NEVER a line-count source.

Constants§

LIST_ID
Registered list ID for bash text output.
NARROW
Narrowing parameters: bash accepts no narrowing parameter.
REASON
Registered reason for bash truncation.
REASON_KIND
Reason kind for bash cap.
UNIT
Registered unit for bash output.
WIRE_KEY
Wire serialization key at reply root beside output (R14, R21).

Functions§

append_envelope_trailer
Append the text-surface trailer and return its envelope when compression dropped lines.
attach_bash_output_envelope
Attach the bash output list envelope to a JSON response object beside output.
build_bash_output_envelope
Construct a truncation envelope for bash output if lines were dropped.
build_envelope_from_output
Construct a truncation envelope measured directly on the agent-facing output text and the compressor-reported input line count.
count_output_lines
Count lines in agent-facing output text.
envelope_trailer
Render a bash envelope through the authorized NDJSON trailer seam.
produce_bash_reply_data
Produce a bash reply data map containing output and optionally bash_output_list_envelope.
wire_key
Derive the wire key for serializing the bash envelope.