Expand description
Transcript projection and presentation implementation.
Structs§
- Chat
Entry - Plan
Line - Terminal
Output Record - What one client-run terminal produced, as hel recorded it when the child
was reaped.
exit_codeandsignalmirror ACPTerminalExitStatus; both areNonewhen the terminal was released before a status was observed. - Tool
Call Presentation - Bounded presentation metadata derived from an ACP tool call.
- Transcript
Item - Transcript
Source - Handle on the transcript item an entry was derived from. Unchanged items
keep the same
Arcfrom one projection to the next, so a pointer comparison replaces re-reading the item and re-parsing its JSON.
Enums§
- Chat
Role - Plan
Status - Tool
Status - The ACP tool states needed to keep a compact tool block visually useful.
- Tool
Summary Source Kind - Where a tool’s compact presentation source came from.
- Transcript
Body - The current value of one logical transcript item. ACP structures whose schemas can grow are kept as JSON values, while logical item identity and lifecycle remain controller-owned and stable.
- Transcript
Role - What produced a transcript item, as a stable wire name.
Constants§
- HARNESS_
TURN_ ITEM_ PREFIX - HARNESS_
TURN_ TEXT - Marks the point where the harness resumed work with no prompt in flight.
- SESSION_
RESTART_ ITEM_ PREFIX - SESSION_
RESTART_ TEXT - TOOL_
SUMMARY_ VERSION - Parser-rule version stored with cached tool summaries.
Functions§
- apply_
runtime_ event_ to_ entries - Apply the transcript-visible part of one persisted runtime event. Returns the event again when it only configures the session surface, which is the chat view’s business rather than the transcript’s.
- apply_
session_ update_ to_ entries - Apply the transcript-visible part of one ACP session update. Returns the update again when it changes the session surface rather than the transcript, so the chat view handles those without decoding twice.
- compact_
tool_ call_ for_ retention - Reduce a tool call to what a reader still needs, once a verified checkpoint holds the whole of it.
- content_
block_ text - materialized_
chunks_ text - materialized_
content_ text - materialized_
tool_ call_ presentation - Use cached presentation data when it was produced by current parser rules, otherwise rebuild it from the complete stored call. This lets parser fixes repair existing transcripts while current summaries remain cheap to load.
- materialized_
tool_ diffstats - plan_
status - sanitize_
terminal_ text - Remove terminal controls while preserving user-visible whitespace.
- terminal_
output_ detail - One terminal’s output followed by how it ended.
- tool_
call_ presentation - Compute the stable presentation metadata for one complete ACP call.
- tool_
call_ update_ changes_ presentation - Whether a partial update changes inputs used to derive the tool summary.
- tool_
content_ details - tool_
diff_ paths - tool_
location_ details - tool_
status - transcript_
item_ role - transcript_
item_ text - One transcript item flattened to the text a reader would see.
- update_
tool_ call_ presentation - Apply the presentation-relevant portion of a partial ACP update to cached metadata. ACP updates replace only fields that are present, so a title update must not erase a summary selected from an earlier raw command.