import "../services/workflowExecution/index.cjs"; import "@agimon-ai/doompi-core/pi-extension"; import { EmbeddedWorkflowFeature } from "@agimon-ai/workflow-mcp"; import { Context } from "@deepseek-ai/cordis"; import "@earendil-works/pi-coding-agent"; //#region src/tui/workflowRuntime.d.ts /** Spawn a launcher and forget it, which is all a delegated run needs from us. */ export type DetachedSpawn = (command: string, args: readonly string[], options: { cwd: string; env: NodeJS.ProcessEnv; }) => Promise; export interface WorkflowPiExtensionOptions { /** Captured environment used for session lineage and external child processes. */ readonly environment: Readonly>; /** Package plugin context used to resolve session-scoped Cordis services. */ cordis?: Context; followIntervalMs?: number; monitorIntervalMs?: number; /** Initial session mode, used by the non-interactive dispatcher composition. */ initialMode?: boolean; /** Told about every mode change, so the leader menu can offer the way out rather than the way in. */ onModeChange?: (enabled: boolean) => void; featureFactory?: () => EmbeddedWorkflowFeature; /** Reject work inherited from a stale session or disposed package root. */ isActive?: () => boolean; runCleanup?: (operation: () => T) => T; /** Injected so a test can read the delegated command without running it. */ spawnDetached?: DetachedSpawn; launchAckPollMs?: number; launchAckTimeoutMs?: number; } //#endregion //# sourceMappingURL=workflowRuntime.d.cts.map