@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
26 lines • 1.69 kB
TypeScript
import type { SharedSections } from "../../../dynamic-prompt/types.ts";
export interface TerminalPromptOptions {
/** True when the session routes shell tools through eval cells, so call shapes must be `tool.<name>(`. */
readonly evalOnly: boolean;
/** Native bash replaces PTY bash, but monitor and its terminal companions remain available. */
readonly ptyBash?: boolean;
/** Seconds a foreground `bash` call blocks before it auto-detaches (`PI_BASH_FOREGROUND_SECONDS`). */
readonly foregroundWindowSeconds?: number;
/** `timeout` applied when a `bash` call sets none (`PI_BASH_DEFAULT_TIMEOUT_SECONDS`). */
readonly defaultTimeoutSeconds?: number;
/** `full` renders the pre-diet section, whose timeout facts live in the bash-timeout policy instead (senpi#5665). */
readonly sharedSections?: SharedSections;
}
/**
* System-prompt guidance for the persistent-terminal tool suite (CC-close, snake_case).
*
* `bash` and `monitor` leave the model's direct tool list whenever the session has an
* `eval` tool, so their call shapes are rendered per branch: a hardcoded direct shape
* would teach a call the model cannot make. The steering companions
* (`bash_output`/`bash_input`/`bash_resize`/`kill_bash`) stay callable by name in both; `bash_input` and
* `bash_resize` are search-exposed and activate on that first call (senpi#4446). This section is also
* the one home of the bash timeout facts (kill deadline, default, foreground auto-detach); the separate
* timeout policy section folded into it (senpi#5335).
*/
export declare function buildTerminalPromptSection(options: TerminalPromptOptions): string;
//# sourceMappingURL=prompt.d.ts.map