import type { NativeCheckPlan } from './native-check-executor.js'; import { type NativeSupervisorIntegrationCheck, type NativeSupervisorState, type NativeSupervisorVerificationEvidence } from './native-supervisor.js'; import type { NativePortableCheckSummary, NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; interface RunnerBuilderInput { kind: 'builder-handoff'; summary: string; addressed_acceptance_ids: string[]; checks: Array<{ name: string; result: 'passed' | 'failed' | 'not-run'; note: string | null; }>; known_limits: string[]; review: { status: 'passed'; summary: string; reviewer_execution_ref: string; }; } interface RunnerDispatchInput { kind: 'dispatch-verifier'; checks: NativeCheckPlan[]; } interface RunnerVerifierInput { kind: 'verifier-response'; response: unknown; } interface RunnerExecutionErrorInput { kind: 'verifier-execution-error'; summary: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; } interface RunnerVerifierUnavailableInput { kind: 'verifier-unavailable'; summary: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; } interface RunnerSupervisorBuilderInput { kind: 'supervisor-builder-result'; child: string; runId: string; candidateCommit: string; } interface RunnerSupervisorBuilderFailureInput { kind: 'supervisor-builder-failure'; child: string; runId: string; reason: string; } interface RunnerSupervisorReconnectInput { kind: 'supervisor-reconnect'; child: string; runId: string; } interface RunnerSupervisorCancelInput { kind: 'supervisor-cancel'; child: string; runId: string; reason: string; } interface RunnerSupervisorVerifierInput { kind: 'supervisor-verifier-result'; child: string; runId: string; verdict: 'pass' | 'fail' | 'incomplete'; evidence: NativeSupervisorVerificationEvidence; } interface RunnerSupervisorIntegrateInput { kind: 'supervisor-integrate'; child: string; checks: NativeSupervisorIntegrationCheck[]; } export type NativeRunnerInput = RunnerBuilderInput | RunnerDispatchInput | RunnerVerifierInput | RunnerExecutionErrorInput | RunnerVerifierUnavailableInput | RunnerSupervisorBuilderInput | RunnerSupervisorBuilderFailureInput | RunnerSupervisorReconnectInput | RunnerSupervisorCancelInput | RunnerSupervisorVerifierInput | RunnerSupervisorIntegrateInput; export declare function parseNativeRunnerInput(value: unknown): NativeRunnerInput; export declare function readNativeRunnerInput(file: string, projectRoot: string): Promise; export declare function applyNativeRunnerInput(options: { paths: NativeProjectPaths; name: string; input: NativeRunnerInput; maxVerifyFailures: number; }): Promise<{ state: NativePortableState; supervisorTask: import("./native-supervisor.js").NativeSupervisorTask; checks: never[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; supervisorState: NativeSupervisorState; supervisorTask: null; checks: never[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; supervisorState: NativeSupervisorState; supervisorTask: null; checks: NativeSupervisorIntegrationCheck[]; requestChecks: null; verifierDispatch: null; parentAdvance: import("./native-portable-runtime.js").NativeSupervisorParentAdvance; continuation: import("./native-portable-continuation.js").NativePortableContinuation; } | { state: NativePortableState; checks: NativePortableCheckSummary[]; requestChecks: null; verifierDispatch: { builderReview: { status: "passed"; summary: import("./native-portable-types.js").NativePortableText; }; runtimeChecks: { id: string; name: import("./native-portable-types.js").NativePortableText; argv_display: import("./native-portable-types.js").NativePortableText[]; argv_truncated: boolean; cwd_ref: string; status: "passed" | "failed" | "interrupted"; exit_code: number | null; duration_ms: number; }[]; recoveryContext?: import("./native-portable-types.js").NativePortableText | undefined; coordination: "skill-coordinated"; change: string; candidateId: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; projectRoot: string; verificationRoot: string; changeDir: string; supervisorStateRef: string | null; briefRef: "brief.md"; specRefs: { capability: string; operation: "create" | "remove" | "modify"; ref: string | null; }[]; acceptanceCount: number; scopeIds: string[]; detailsPageArgs: string[]; }; continuation: import("./native-portable-continuation.js").NativePortableContinuation; supervisorState?: undefined; supervisorTask?: undefined; parentAdvance?: undefined; } | { state: NativePortableState; checks: NativePortableCheckSummary[]; requestChecks: null; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; supervisorState?: undefined; supervisorTask?: undefined; parentAdvance?: undefined; } | { supervisorState: NativeSupervisorState; verifierDispatch: null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; state: NativePortableState; response: import("./native-verifier-protocol.js").NativeVerifierResponse; checks: NativePortableCheckSummary[]; requestChecks: import("./native-portable-runtime.js").NativePortableRequestChecksOutcome | null; supervisorTask?: undefined; parentAdvance?: undefined; } | { verifierDispatch: { builderReview: { status: "passed"; summary: import("./native-portable-types.js").NativePortableText; }; runtimeChecks: { id: string; name: import("./native-portable-types.js").NativePortableText; argv_display: import("./native-portable-types.js").NativePortableText[]; argv_truncated: boolean; cwd_ref: string; status: "passed" | "failed" | "interrupted"; exit_code: number | null; duration_ms: number; }[]; recoveryContext?: import("./native-portable-types.js").NativePortableText | undefined; coordination: "skill-coordinated"; change: string; candidateId: string; stateVersion: number; iteration: number; attempt: number; verifierExecutionRef: string; projectRoot: string; verificationRoot: string; changeDir: string; supervisorStateRef: string | null; briefRef: "brief.md"; specRefs: { capability: string; operation: "create" | "remove" | "modify"; ref: string | null; }[]; acceptanceCount: number; scopeIds: string[]; detailsPageArgs: string[]; } | null; continuation: import("./native-portable-continuation.js").NativePortableContinuation; state: NativePortableState; response: import("./native-verifier-protocol.js").NativeVerifierResponse; checks: NativePortableCheckSummary[]; requestChecks: import("./native-portable-runtime.js").NativePortableRequestChecksOutcome | null; supervisorState?: undefined; supervisorTask?: undefined; parentAdvance?: undefined; }>; export {}; //# sourceMappingURL=native-runner-input.d.ts.map