Skip to main content

Module present

Module present 

Source
Expand description

What a person sees when a call needs them: built live from the journaled Request and what only the live run knows — the file as it is now, the sandbox — and never journaled itself, so replay does not depend on the worktree. The terminal prompt, editors (ACP), the approvals listing and the dashboard all render this one value.

Structs§

Choice
One choice: once, task, run, reject or stop.
PresentContext
What only the live run knows.
Presentation
The call as a person sees it.

Constants§

HEAD
Lines of a body shown before “v to view all”.

Functions§

diff
A unified diff with three lines of context and old/new line numbers.
escape
Model text made safe for a terminal: escape (\x1b) as ␛, other control characters as ^X; newlines and tabs kept.
present
Builds what the person sees.
scope_text
What “for the task” or “for this run” covers, by kind.
shell_quote
The argv as a person would type it.