import { type RuntimeAction, type RuntimeExecutor, type RuntimeValue, type WorkflowRun } from '../engine/runtime.js'; import { type NativePortableContinuation } from './native-portable-continuation.js'; import { type NativePortableState } from './native-portable-types.js'; import { type inspectNativeSdkCancellation } from './native-sdk-cancellation.js'; /** 调度与展示使用同一顺序;终态不再暴露可领取的遗留 Action。 */ export declare function nativeSdkPendingActions(run: WorkflowRun): RuntimeAction[]; /** 推进和投影共享审批、未知结果及归档串行边界,不猜测在途任务已经结束。 */ export declare function nativeSdkNextAction(run: WorkflowRun, state: NativePortableState): RuntimeAction | undefined; /** 高层入口保留完整业务结果字段,领取身份通过命令中的 Action 和真实会话绑定。 */ export declare function nativeSdkTaskResultTemplate(run: WorkflowRun, action: RuntimeAction): { status: "succeeded"; output: { acceptance: { source: string; text: string; }[]; }; } | { status: "succeeded"; output: RuntimeValue; }; /** CLI 只省略无关 Run 历史,当前 Action、输入和状态保持完整。 */ export declare function projectNativeSdkDispatchResult(options: { run: WorkflowRun; state: NativePortableState; actionId: string; projectRoot: string; applicationId?: string; skillExecutors?: readonly RuntimeExecutor[]; }): Promise<{ inspection: { commandArgs: string[]; request: { operation: string; runId: string; }; }; activeActions?: ({ markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; })[] | undefined; continuation: { recovery?: import("./native-recovery.js").NativeRecovery; schema: "comet.native.continuation.v2"; skill: "comet-native"; change: string; phase: NativePortableState["phase"]; status: NativePortableState["status"] | "cancelling" | "cancelled"; stateVersion: number; disposition: "continue" | "await-user" | "blocked" | "done"; mode: import("../workflow-contract/output-envelope.js").CliContinuationMode; cwd?: string; requiresUserDecision: boolean; action: "prepare-shape-confirmation" | "confirm-shape" | "confirm-skill-coordinated-pass" | "confirm-verifier-unavailable" | "resolve-verifier-blocker" | "resolve-loop-stop" | "advance-children" | "builder-handoff" | "dispatch-verifier" | "retry-checks" | "await-verifier" | "repair" | "review-edit" | "retry-verifier" | "archive" | "none"; commandArgs: string[] | null; requiredInputs: string[]; inputOptions: { name: string; flag: string; valueKind: "text" | "confirmation" | "choice" | "json-file"; required: boolean; template: unknown | null; choices?: string[]; exclusiveGroup?: string; description?: string; }[]; commandAlternatives?: { name: string; stateVersion: number; expectedAction: import("./native-portable-requirements.js").NativePortableExpectedContinuationAction | "archive-preview" | "archive"; commandArgs: string[] | null; requiredInputs: string[]; inputOptions: { name: string; flag: string; valueKind: "text" | "confirmation" | "choice" | "json-file"; required: boolean; template: unknown | null; choices?: string[]; exclusiveGroup?: string; description?: string; }[]; description?: string; }[]; runnerAction: import("./native-portable-continuation.js").NativePortableRunnerAction; userCommunication: import("./native-portable-continuation.js").NativePortableUserCommunication; }; cancellation: { status: "cancelled" | "cancelling"; reason: string | null; quiescent: boolean; cleanupRequired: boolean; cleanup: { reason: string; inspectionCommand: string; repairCommand: string; finishCommand: string; } | null; outstandingActions: { runId: string; actionId: string; stepId: string; attempt: number; inputHash: string; reason: string; }[]; outstandingRuns: string[]; }; state: NativePortableState; action: RuntimeAction; acceptanceEvidence?: { runId: string; candidateId: string | null; candidateCommit: string | null; projectRoot: string; child: string; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | { previousCandidate?: { candidateId: string; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | undefined; runId: string; candidateId: string | null; candidateCommit: string | null; projectRoot: string; child: null; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | undefined; acceptanceEvidenceInstruction?: string | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; resultRequest?: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null | undefined; originalRequest?: { source: string; text: string; } | undefined; requestReviewInstruction?: string | undefined; schema: "comet.native.dispatch-result.v1"; runId: string; revision: number; workflow: import("../engine/workflow-run.js").WorkflowRef & { hash: string; }; status: "running" | "failed" | "cancelled" | "waiting" | "completed"; workspace: { projectRoot: string; }; } | { inspection: { commandArgs: string[]; request: { operation: string; runId: string; }; }; activeActions?: ({ markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { inputRef: string; outcomeRequestRef: string; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; })[] | undefined; continuation: { recovery?: import("./native-recovery.js").NativeRecovery; schema: "comet.native.continuation.v2"; skill: "comet-native"; change: string; phase: NativePortableState["phase"]; status: NativePortableState["status"] | "cancelling" | "cancelled"; stateVersion: number; disposition: "continue" | "await-user" | "blocked" | "done"; mode: import("../workflow-contract/output-envelope.js").CliContinuationMode; cwd?: string; requiresUserDecision: boolean; action: "prepare-shape-confirmation" | "confirm-shape" | "confirm-skill-coordinated-pass" | "confirm-verifier-unavailable" | "resolve-verifier-blocker" | "resolve-loop-stop" | "advance-children" | "builder-handoff" | "dispatch-verifier" | "retry-checks" | "await-verifier" | "repair" | "review-edit" | "retry-verifier" | "archive" | "none"; commandArgs: string[] | null; requiredInputs: string[]; inputOptions: { name: string; flag: string; valueKind: "text" | "confirmation" | "choice" | "json-file"; required: boolean; template: unknown | null; choices?: string[]; exclusiveGroup?: string; description?: string; }[]; commandAlternatives?: { name: string; stateVersion: number; expectedAction: import("./native-portable-requirements.js").NativePortableExpectedContinuationAction | "archive-preview" | "archive"; commandArgs: string[] | null; requiredInputs: string[]; inputOptions: { name: string; flag: string; valueKind: "text" | "confirmation" | "choice" | "json-file"; required: boolean; template: unknown | null; choices?: string[]; exclusiveGroup?: string; description?: string; }[]; description?: string; }[]; runnerAction: import("./native-portable-continuation.js").NativePortableRunnerAction; userCommunication: import("./native-portable-continuation.js").NativePortableUserCommunication; }; pendingRequirementDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; commandArgs: string[]; message: string; }[] | undefined; pendingVerifierDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; }[] | undefined; pendingBuilderDecisions?: { waitId: string; stepId: string; proposalHash: string; commandArgs: string[]; }[] | undefined; pendingEvidenceWaits?: { commandArgs: string[]; evidenceRequest: { operation: string; runId: string; expectedRevision: number; evidenceId: string; kind: string; ref: string; contentHash: string; submissionId: string; }; id: string; stepId: string; sequence: number; kind: string; status: "pending" | "resolved" | "invalidated" | "cancelled"; results: Record; receipt?: { ref: string; contentHash: string; submissionId: string; }; invalidation?: { ref: string; contentHash: string; submissionId: string; reason: string; }; }[] | undefined; pendingWaits?: { commandArgs: string[]; decisionRequests: { reason?: string | undefined; operation: string; runId: string; expectedRevision: number; waitId: string; proposalHash: string; decisionId: string; choice: string; }[]; choices: string[]; id: string; stepId: string; sequence: number; status: "pending" | "resolved" | "cancelled"; proposal: RuntimeValue; proposalHash: string; results: Record; decision?: { id: string; choice: string; proposalHash: string; reason?: string; }; }[] | undefined; pendingAction?: { inputRef?: string | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; } | undefined; pendingActions?: { input?: RuntimeValue | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; }[] | undefined; state: NativePortableState; action: RuntimeAction; acceptanceEvidence?: { runId: string; candidateId: string | null; candidateCommit: string | null; projectRoot: string; child: string; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | { previousCandidate?: { candidateId: string; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | undefined; runId: string; candidateId: string | null; candidateCommit: string | null; projectRoot: string; child: null; items: { id: string; source: string; text: string; result: import("./native-portable-types.js").NativePortableAcceptanceResult; reason: string | null; evidence: string[]; builderStatus: "implemented-with-evidence" | "implemented-no-evidence" | "not-implemented" | "known-fail" | null; builderNote: string | null; checks: ({ reason?: string | undefined; acceptanceIds?: string[] | undefined; name: string; result: "timeout" | "unknown" | "failed" | "passed" | "not-run"; note: string | null; } & { stage: "build" | "verify"; })[]; gap: "no-candidate" | "no-linked-evidence" | null; }[]; } | undefined; acceptanceEvidenceInstruction?: string | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | { contextMode: "snapshot"; commandArgs: string[]; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; resultRequest?: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null | undefined; originalRequest?: { source: string; text: string; } | undefined; requestReviewInstruction?: string | undefined; schema: "comet.native.dispatch-result.v1"; runId: string; revision: number; workflow: import("../engine/workflow-run.js").WorkflowRef & { hash: string; }; status: "running" | "failed" | "cancelled" | "waiting" | "completed"; workspace: { projectRoot: string; }; }>; export declare function nativeSdkEvidenceInstruction(language: NativePortableState['language'], verifier: boolean): string; /** 从同一 Run 投影下一步;SDK 不使用 compat Runner 输入或 workspace finish 决定。 */ export declare function projectNativeSdkContinuation(options: Parameters[0]): Promise<{ continuation: NativePortableContinuation; cancellation: { status: "cancelled" | "cancelling"; reason: string | null; quiescent: boolean; cleanupRequired: boolean; cleanup: { reason: string; inspectionCommand: string; repairCommand: string; finishCommand: string; } | null; outstandingActions: { runId: string; actionId: string; stepId: string; attempt: number; inputHash: string; reason: string; }[]; outstandingRuns: string[]; }; } | { pendingRequirementDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; commandArgs: string[]; message: string; }[] | undefined; pendingVerifierDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; }[] | undefined; pendingBuilderDecisions?: { waitId: string; stepId: string; proposalHash: string; commandArgs: string[]; }[] | undefined; pendingEvidenceWaits?: { commandArgs: string[]; evidenceRequest: { operation: string; runId: string; expectedRevision: number; evidenceId: string; kind: string; ref: string; contentHash: string; submissionId: string; }; id: string; stepId: string; sequence: number; kind: string; status: "pending" | "resolved" | "invalidated" | "cancelled"; results: Record; receipt?: { ref: string; contentHash: string; submissionId: string; }; invalidation?: { ref: string; contentHash: string; submissionId: string; reason: string; }; }[] | undefined; pendingWaits?: { commandArgs: string[]; decisionRequests: { reason?: string | undefined; operation: string; runId: string; expectedRevision: number; waitId: string; proposalHash: string; decisionId: string; choice: string; }[]; choices: string[]; id: string; stepId: string; sequence: number; status: "pending" | "resolved" | "cancelled"; proposal: RuntimeValue; proposalHash: string; results: Record; decision?: { id: string; choice: string; proposalHash: string; reason?: string; }; }[] | undefined; pendingAction?: { inputRef?: string | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; } | undefined; pendingActions?: { input?: RuntimeValue | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; }[] | undefined; activeActions?: ({ markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; })[] | undefined; continuation: NativePortableContinuation; }>; /** Task and diagnostic responses use the same context for the committed claim. */ export declare function nativeSdkActionContextRequest(action: RuntimeAction, state: NativePortableState, projectRoot: string): { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; }; declare function projectNativeSdkContinuationValue(options: { run: WorkflowRun; state: NativePortableState; projectRoot: string; applicationId?: string; implementationRevisionAvailable?: boolean; skillExecutors?: readonly RuntimeExecutor[]; cancellationObservation?: Awaited>; }): Promise<{ continuation: NativePortableContinuation; cancellation: { status: "cancelled" | "cancelling"; reason: string | null; quiescent: boolean; cleanupRequired: boolean; cleanup: { reason: string; inspectionCommand: string; repairCommand: string; finishCommand: string; } | null; outstandingActions: { runId: string; actionId: string; stepId: string; attempt: number; inputHash: string; reason: string; }[]; outstandingRuns: string[]; }; } | { pendingRequirementDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; commandArgs: string[]; message: string; }[] | undefined; pendingVerifierDecisions?: { waitId: string; proposalHash: string; proposal: RuntimeValue; }[] | undefined; pendingBuilderDecisions?: { waitId: string; stepId: string; proposalHash: string; commandArgs: string[]; }[] | undefined; pendingEvidenceWaits?: { commandArgs: string[]; evidenceRequest: { operation: string; runId: string; expectedRevision: number; evidenceId: string; kind: string; ref: string; contentHash: string; submissionId: string; }; id: string; stepId: string; sequence: number; kind: string; status: "pending" | "resolved" | "invalidated" | "cancelled"; results: Record; receipt?: { ref: string; contentHash: string; submissionId: string; }; invalidation?: { ref: string; contentHash: string; submissionId: string; reason: string; }; }[] | undefined; pendingWaits?: { commandArgs: string[]; decisionRequests: { reason?: string | undefined; operation: string; runId: string; expectedRevision: number; waitId: string; proposalHash: string; decisionId: string; choice: string; }[]; choices: string[]; id: string; stepId: string; sequence: number; status: "pending" | "resolved" | "cancelled"; proposal: RuntimeValue; proposalHash: string; results: Record; decision?: { id: string; choice: string; proposalHash: string; reason?: string; }; }[] | undefined; pendingAction?: { inputRef?: string | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; } | undefined; pendingActions?: { input?: RuntimeValue | undefined; executeRequest?: { operation: string; runId: string; expectedRevision: number; actionId: string; executorId: string; } | null | undefined; claimRequest?: { operation: string; runId: string; actionId: string; attempt: number; inputHash: string; executorId: string; sessionId: string; claimToken: string; } | undefined; sessionRequirements?: { independent: boolean; readOnly: boolean; mustDifferFromSessionId: string | null; resumeCommandArgs: string[]; instruction: string; } | undefined; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; commandArgs: string[]; originalRequest?: { source: string; text: string; } | undefined; id: string; stepId: string; type: string; ref: string | undefined; attempt: number; inputHash: string; mechanism: string; }[] | undefined; activeActions?: ({ markUnknownRequest?: undefined; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { markUnknownRequest: { reason: string; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; retryRequest?: undefined; requiredInputs?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; } | { retryRequest: { reconciliation: { resolution: string; evidence: null; }; runId: string; expectedRevision: number; actionId: string; attempt: number; operation: string; }; requiredInputs: string[]; markUnknownRequest?: undefined; resultRequest: { operation: "record-outcome"; receipt: string; result: { status: string; output: RuntimeValue; }; } | null; commandArgs: string[]; contextRequest?: { contextMode: "snapshot"; commandArgs: string[]; instruction: string; task?: string | undefined; operation?: "verify" | "edit" | undefined; phase: string; } | undefined; reason?: string | undefined; id: string; stepId: string; status: import("../engine/runtime-action.js").RuntimeActionStatus; attempt: number; inputHash: string; input: RuntimeValue; type: string; ref: string | undefined; claim: import("../engine/runtime-action.js").RuntimeClaim | undefined; })[] | undefined; continuation: NativePortableContinuation; }>; export {}; //# sourceMappingURL=native-sdk-continuation.d.ts.map