UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

13 lines • 1.05 kB
import type { AssistantMessage } from "@earendil-works/pi-ai/compat"; import type { AgentAbortSource } from "../../core/agent-abort-provenance.ts"; export declare function abortedMessageForRendering(message: AssistantMessage, retryAttempt: number, abortSource: AgentAbortSource | undefined): AssistantMessage; /** Result text for a tool call the model emitted but that never ran because the turn ended (senpi#5064). */ export declare const UNRUN_AFTER_ERROR = "Not run: the request failed."; /** * `rendered` has been through `abortedMessageForRendering`. An abort keeps its label: when the turn ends in a * tool call, the card is the abort's only notice. An error stop shows its classified notice once elsewhere, so the * card never repeats the raw provider error. */ export declare function unrunToolCallText(rendered: AssistantMessage): string; export declare function abortedErrorLabel(persisted: string | undefined, retryAttempt: number, abortSource: AgentAbortSource | undefined): string; //# sourceMappingURL=aborted-error-label.d.ts.map