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
outputand optionallybash_output_list_envelope. - wire_
key - Derive the wire key for serializing the bash envelope.