UNPKG

@code-yeongyu/senpi

Version:

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

21 lines • 1.32 kB
import type { AgentSession } from "../../core/agent-session.ts"; import type { RunBackgroundStopOutcome } from "../../core/run-background-jobs.ts"; export declare function availableModelsData(session: AgentSession): Promise<{ models: readonly object[]; }>; /** The refusal of a level the active model cannot run; callers match this text. */ export declare function unsupportedThinkingLevel(level: unknown): string; export interface InterruptOutcome { readonly interrupted: boolean; readonly turnId?: string; /** Present when the caller asked `background: "stop"`: the interrupted turn's background jobs it stopped. */ readonly background?: RunBackgroundStopOutcome; } /** * `interrupt { turnId?, background? }`: stops the running turn and only that. An idle session answers * `interrupted: false`; so does a `turnId` naming a turn that is no longer the running one, which * then answers the running turn's id. `stop` resolves once the turn has stopped; with `background: * "stop"` the background jobs that turn started are stopped after it, and the answer names them. */ export declare function interruptRunningTurn(session: AgentSession, requestedTurnId: unknown, stop: () => Promise<void>, background?: unknown): Promise<InterruptOutcome>; //# sourceMappingURL=session-control-actions-data.d.ts.map