UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 1.33 kB
import { TerminalManager } from "../../../core/extensions/builtin/terminal/manager.ts"; import type { TimeoutAction } from "../../../core/extensions/builtin/terminal/settings.ts"; import type { ToolChildJobHandler } from "./entry.ts"; import { TERMINAL_CHILD_JOB_KINDS as TERMINAL_JOB_KINDS } from "../../../core/extensions/builtin/terminal/tools/child-placement.ts"; export { TERMINAL_JOB_KINDS }; /** What the server sends with every terminal job: the tool's params and the session facts its body reads. */ export interface TerminalJobArgs { readonly params: unknown; readonly toolCallId: string; readonly cwd: string; readonly env: Readonly<Record<string, string>>; readonly shellPath?: string; readonly defaultCols: number; readonly defaultRows: number; readonly timeoutAction?: TimeoutAction; readonly redactSecretsInOutput?: boolean; readonly backgroundAutoReapMinutes?: number; } /** * The handlers. The child's one terminal manager (shared by every terminal job of this child) is made on the first job, * its ids scoped by this child's generation so they never collide with the server's or an earlier child's. */ export declare function createTerminalJobHandlers(injected?: TerminalManager): Readonly<Record<string, ToolChildJobHandler>>; //# sourceMappingURL=terminal-jobs.d.ts.map