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, always, 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§

budget_notice
The notice on the prompt that uses the run’s asking budget.
choice
The choice o as every interface offers it: its key, its fixed number and its label.
confirm_text
The text a terminal shows for a bug’s reproductions: each with its statement, file, test and how it failed, then the digest the answer is bound to.
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.
object_lines
The object’s lines: what a decision covers, shown in full.
present
Builds what the person sees.
scope_text
What “for the task” or “for this run” covers, by kind: always this exact object.
shell_quote
The argv as a person would type it.
source_lines
The source lines of a request.