/** * @deepseek-ai/dsh-code — the interactive terminal driver. The bundle patch * rides over dsh-base without Host, HTTP, or browser plugins; this runner * creates or resumes preset-composed Agents through the core registry, keeps * one Ink owner while the active session changes, folds submitted prompts * into the selected durable session, answers approval asks with a y/n bar, * dispatches slash commands, and on quit flushes and requests process exit. * * @module @deepseek-ai/dsh-code */ import type { Context } from '@deepseek-ai/cordis'; import z from '@deepseek-ai/schemastery'; export { planCycleDecision, type ModeCycleDecision } from './runner/mode-cycle.ts'; export { runQuitSequence, type QuitCleanupStep } from './runner/quit.ts'; export { exportSessionIdSuffix, resolveTarget } from './runner/session-target.ts'; export { applyQueueMutation, cancelPreservingQueue, queueEditContent, StartupInputGate, submissionBelongsToSession, type QueuedSubmission, type QueueMutationOutcome, } from './runner/submissions.ts'; export { subagentCatalogSeed } from './session/subagents.ts'; export { searchHitToRow } from './runner/search-rows.ts'; /** Stable Cordis plugin name. */ export declare const name = "tui-runner"; /** Core services required before the interactive session can start. */ export declare const inject: string[]; /** Plugin config: the startup resolved from this app's injected provider service. */ export interface Config { /** How this invocation obtains its session identity (validated loosely; narrowed in {@link apply}). */ startup: { kind: string; sessionId?: string; mode?: string; theme?: string; prompt?: string; images?: string[]; }; } export declare const Config: z; /** * Mount the interactive terminal driver. * @param ctx - plugin context carrying core services and the launcher-provided exit request. * @param config - validated startup config resolved from the tuiStartup provider. */ export declare function apply(ctx: Context, config: Config): void;