@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 1.54 kB
TypeScript
/**
* The bare "." manual-continue shortcut.
*
* Submitting "." alone on a session that already has messages resumes the
* agent's most recent intent: no user message is created or rendered. Instead
* the directive below is delivered as a hidden custom message
* (customType "manual-continue", display false) that drives the next turn —
* `AgentSession.prompt()` routes it through `sendCustomMessage`, so an idle
* session starts a turn and a streaming session steers or follows up.
*/
export declare const MANUAL_CONTINUE_CUSTOM_TYPE = "manual-continue";
/**
* Whether a submission is the manual-continue shortcut rather than user content.
*
* Shared by `AgentSession.prompt()` (which routes it as the hidden directive
* below) and the interactive submit boundary (which must not paint a user echo
* for a turn the transcript never receives). An empty session has no intent to
* resume, and a "." carrying images is the user sending the images, so both stay
* ordinary user input.
*/
export declare function isManualContinueSubmission(input: {
readonly text: string;
readonly hasMessages: boolean;
readonly hasImages: boolean;
}): boolean;
export declare const MANUAL_CONTINUE_DIRECTIVE = "<system-notice>\nContinue.\n\nResume the most recent intent and complete the unfinished work.\nIf you were interrupted mid-step, resume exactly where you stopped.\nNever pause to summarize progress, re-confirm the plan, or ask whether to proceed; continue.\n</system-notice>";
//# sourceMappingURL=manual-continue.d.ts.map