import { type WorkflowRun } from '../../domains/engine/runtime.js'; import type { ApplicationIdentity } from '../../domains/workflow-application/index.js'; export interface RuntimeCommandOptions { request?: string; workflow?: string[]; application?: string; applicationFile?: string; rootDir?: string; projectRoot?: string; path?: string; json?: boolean; details?: boolean; } export interface RuntimeCommandHost { invocationCwd?: string; environment?: Readonly>; /** 仅 CLI 使用紧凑展示;response.data 始终保留完整 SDK Run。 */ output?: 'full' | 'compact'; /** CLI 可在内置 Native 验收回报后生成报告,仍保留用户接受步骤。 */ completeNativeReport?: boolean; } export type RuntimeCommandResponse = { protocolVersion: 1; requestId: string; recovery?: unknown; } & ({ status: 'succeeded'; data: WorkflowRun; warning?: { code: string; message: string; }; application?: ApplicationIdentity; skillWork?: unknown[]; waitSkillWork?: unknown[]; } | { status: 'failed'; error: { code: string; message: string; }; }); export interface RuntimeCommandResult { exitCode: number; response: RuntimeCommandResponse; cliResponse?: unknown; } export declare function runtimeCommandFailure(error: unknown, requestId?: string): RuntimeCommandResult; export declare function runtimeDispatchCommand(options: RuntimeCommandOptions, host?: RuntimeCommandHost): Promise; //# sourceMappingURL=runtime.d.ts.map