intentdna 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +227 -87
- package/dist/cli/commands/run-lifecycle.d.ts +61 -11
- package/dist/cli/commands/run-lifecycle.js +184 -50
- package/dist/cli/commands/run-observer.d.ts +15 -0
- package/dist/cli/commands/run-observer.js +210 -0
- package/dist/cli/commands/run.d.ts +16 -20
- package/dist/cli/commands/run.js +461 -659
- package/dist/cli/commands/sync.js +16 -12
- package/dist/cli/index.js +14 -5
- package/dist/compiler/compile.d.ts +1 -0
- package/dist/compiler/compile.js +1 -1
- package/dist/compiler/controller.d.ts +16 -0
- package/dist/compiler/controller.js +693 -0
- package/dist/compiler/input-resolver.d.ts +2 -0
- package/dist/compiler/input-resolver.js +22 -6
- package/dist/hooks/cli.d.ts +45 -0
- package/dist/hooks/cli.js +263 -31
- package/dist/hooks/host-event.d.ts +57 -0
- package/dist/hooks/host-event.js +187 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/protocol.d.ts +7 -0
- package/dist/hooks/schema.d.ts +1 -0
- package/dist/hooks/schema.js +89 -1
- package/dist/hooks/state.d.ts +23 -1
- package/dist/hooks/state.js +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/tools-run.d.ts +4 -0
- package/dist/mcp/tools-run.js +419 -0
- package/dist/mcp/tools-state.d.ts +1 -1
- package/dist/mcp/tools-state.js +13 -241
- package/dist/runtime/artifact-store.d.ts +146 -0
- package/dist/runtime/artifact-store.js +1436 -0
- package/dist/runtime/canonical-attempt-outcome.d.ts +12 -0
- package/dist/runtime/canonical-attempt-outcome.js +195 -0
- package/dist/runtime/canonical-json.d.ts +10 -0
- package/dist/runtime/canonical-json.js +105 -0
- package/dist/runtime/canonical-run-application.d.ts +93 -0
- package/dist/runtime/canonical-run-application.js +229 -0
- package/dist/runtime/canonical-run-service.d.ts +454 -0
- package/dist/runtime/canonical-run-service.js +4760 -0
- package/dist/runtime/canonical-runtime-composition.d.ts +22 -0
- package/dist/runtime/canonical-runtime-composition.js +34 -0
- package/dist/runtime/canonical-runtime-projection.d.ts +3 -0
- package/dist/runtime/canonical-runtime-projection.js +4 -0
- package/dist/runtime/canonical-target-compiler.d.ts +46 -0
- package/dist/runtime/canonical-target-compiler.js +514 -0
- package/dist/runtime/claude-agent-identity.d.ts +2 -0
- package/dist/runtime/claude-agent-identity.js +21 -0
- package/dist/runtime/executable-run-plan.d.ts +328 -0
- package/dist/runtime/executable-run-plan.js +1485 -0
- package/dist/runtime/execution-authority.d.ts +83 -0
- package/dist/runtime/execution-authority.js +98 -0
- package/dist/runtime/handoff-resolver.js +4 -1
- package/dist/runtime/harness-pull-adapter.d.ts +146 -0
- package/dist/runtime/harness-pull-adapter.js +315 -0
- package/dist/runtime/index.d.ts +39 -14
- package/dist/runtime/index.js +29 -7
- package/dist/runtime/local-execution-authority.d.ts +194 -0
- package/dist/runtime/local-execution-authority.js +2877 -0
- package/dist/runtime/local-execution-reconciliation.d.ts +20 -0
- package/dist/runtime/local-execution-reconciliation.js +107 -0
- package/dist/runtime/local-execution-supervisor-script.d.ts +7 -0
- package/dist/runtime/local-execution-supervisor-script.js +793 -0
- package/dist/runtime/local-provider-sandbox.d.ts +42 -0
- package/dist/runtime/local-provider-sandbox.js +154 -0
- package/dist/runtime/local-verifier-execution.d.ts +24 -0
- package/dist/runtime/local-verifier-execution.js +290 -0
- package/dist/runtime/local-windows-execution-supervisor-script.d.ts +6 -0
- package/dist/runtime/local-windows-execution-supervisor-script.js +771 -0
- package/dist/runtime/plan-store.d.ts +30 -0
- package/dist/runtime/plan-store.js +231 -0
- package/dist/runtime/process-tree.d.ts +9 -0
- package/dist/runtime/process-tree.js +97 -24
- package/dist/runtime/push-driver.d.ts +184 -0
- package/dist/runtime/push-driver.js +1002 -0
- package/dist/runtime/result-store.d.ts +34 -3
- package/dist/runtime/result-store.js +1073 -2
- package/dist/runtime/run-binding.d.ts +68 -0
- package/dist/runtime/run-binding.js +278 -0
- package/dist/runtime/run-contracts.d.ts +575 -0
- package/dist/runtime/run-contracts.js +58 -7
- package/dist/runtime/run-controller.d.ts +1 -6
- package/dist/runtime/run-controller.js +0 -41
- package/dist/runtime/run-store.d.ts +85 -7
- package/dist/runtime/run-store.js +2528 -186
- package/dist/runtime/skill-adapter.d.ts +18 -7
- package/dist/runtime/skill-adapter.js +100 -742
- package/dist/runtime/structured-output-validator.d.ts +44 -0
- package/dist/runtime/structured-output-validator.js +171 -0
- package/dist/runtime/verifier-command-binding.d.ts +22 -0
- package/dist/runtime/verifier-command-binding.js +162 -0
- package/dist/runtime/verifier.d.ts +46 -6
- package/dist/runtime/verifier.js +355 -53
- package/dist/runtime/windows-job-keeper.d.ts +47 -0
- package/dist/runtime/windows-job-keeper.js +231 -0
- package/dist/runtime/worker-executor.d.ts +17 -1
- package/dist/runtime/worker-executor.js +26 -5
- package/dist/runtime/workflow-plan-adapter.d.ts +19 -0
- package/dist/runtime/workflow-plan-adapter.js +502 -6
- package/dist/runtime/workflow-runtime-manifest.d.ts +1 -0
- package/dist/runtime/workflow-runtime-manifest.js +5 -0
- package/dist/runtime/workspace-isolation.d.ts +29 -2
- package/dist/runtime/workspace-isolation.js +488 -11
- package/dist/runtime/workspace-observation.d.ts +44 -0
- package/dist/runtime/workspace-observation.js +216 -0
- package/dist/schema/controller-registry.d.ts +0 -7
- package/dist/schema/controller-registry.js +0 -8
- package/dist/schema/types.d.ts +84 -10
- package/dist/schema/types.js +2 -0
- package/dist/schema/validate.js +151 -1
- package/dist/schema/validators/controllers.d.ts +1 -1
- package/dist/schema/validators/controllers.js +126 -41
- package/dist/schema/workflow-authoring-contract.js +2 -0
- package/dist/schema/yaml-parser.js +1 -1
- package/dist/templates/flutter-rewrite-new.dna.yaml +1 -0
- package/dist/templates/flutter-rewrite.dna.yaml +87 -60
- package/dist/templates/safe-refactoring.dna.yaml +1 -0
- package/native/windows-job-keeper/README.md +80 -0
- package/native/windows-job-keeper/bin/aarch64/intentdna-windows-job-keeper.exe +0 -0
- package/native/windows-job-keeper/bin/x86_64/intentdna-windows-job-keeper.exe +0 -0
- package/native/windows-job-keeper/keeper.c +979 -0
- package/native/windows-job-keeper/manifest.json +33 -0
- package/package.json +5 -1
- package/scripts/build-windows-job-keeper.mjs +172 -0
- package/scripts/verify-windows-job-keeper.mjs +184 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { type CanonicalJsonValue } from "./canonical-json.js";
|
|
2
|
+
export declare const EXECUTABLE_RUN_PLAN_SCHEMA_VERSION = "intentdna.executable_run_plan.v1";
|
|
3
|
+
export declare const STORED_EXECUTABLE_RUN_PLAN_SCHEMA_VERSION = "intentdna.stored_executable_run_plan.v1";
|
|
4
|
+
export declare const EXECUTABLE_RETRYABLE_OUTCOME_VALUES: readonly ["non_zero_exit", "malformed_result", "timeout", "cancelled", "signal", "launch_error"];
|
|
5
|
+
export type ExecutableRetryableOutcome = typeof EXECUTABLE_RETRYABLE_OUTCOME_VALUES[number];
|
|
6
|
+
export declare const EXECUTABLE_ARTIFACT_KIND_VALUES: readonly ["file", "directory", "test_result", "git_commit", "summary", "state"];
|
|
7
|
+
export type ExecutableArtifactKind = typeof EXECUTABLE_ARTIFACT_KIND_VALUES[number];
|
|
8
|
+
export type Sha256Digest = `sha256:${string}`;
|
|
9
|
+
export type JsonObject = {
|
|
10
|
+
readonly [key: string]: CanonicalJsonValue;
|
|
11
|
+
};
|
|
12
|
+
export interface RunInputDefinition {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly type: "string" | "number" | "boolean" | "json" | "reference" | "trusted_verifier_command";
|
|
15
|
+
readonly required: boolean;
|
|
16
|
+
readonly sensitive: boolean;
|
|
17
|
+
readonly description: string;
|
|
18
|
+
readonly default_value?: CanonicalJsonValue;
|
|
19
|
+
}
|
|
20
|
+
export interface RunInputContract {
|
|
21
|
+
readonly inputs: readonly RunInputDefinition[];
|
|
22
|
+
readonly allow_unknown_inputs: false;
|
|
23
|
+
}
|
|
24
|
+
export interface ExecutableNodeBase {
|
|
25
|
+
readonly node_id: string;
|
|
26
|
+
readonly depends_on: readonly string[];
|
|
27
|
+
}
|
|
28
|
+
export interface WorkerHandoffInputContract {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly source: "handoff" | "external";
|
|
31
|
+
readonly mode: "reference" | "quote" | "structured";
|
|
32
|
+
readonly artifact_kind: ExecutableArtifactKind;
|
|
33
|
+
readonly required: boolean;
|
|
34
|
+
readonly description: string;
|
|
35
|
+
readonly relative_path_template: string | null;
|
|
36
|
+
readonly schema_ref: string | null;
|
|
37
|
+
}
|
|
38
|
+
export interface WorkerOutputContract {
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly kind: "reference" | "text" | "structured";
|
|
41
|
+
readonly artifact_kind: ExecutableArtifactKind;
|
|
42
|
+
readonly required: boolean;
|
|
43
|
+
readonly description: string;
|
|
44
|
+
readonly relative_path_template: string | null;
|
|
45
|
+
readonly schema_ref: string | null;
|
|
46
|
+
}
|
|
47
|
+
export type WorkerResponseContract = {
|
|
48
|
+
readonly kind: "none";
|
|
49
|
+
} | {
|
|
50
|
+
readonly kind: "named";
|
|
51
|
+
readonly schema_ref: string;
|
|
52
|
+
} | {
|
|
53
|
+
readonly kind: "document";
|
|
54
|
+
readonly relative_path_template: string | null;
|
|
55
|
+
readonly required_sections: readonly string[];
|
|
56
|
+
readonly format: "markdown" | "pdf" | "docx" | "xlsx" | "json" | "csv" | null;
|
|
57
|
+
readonly converter_command: string | null;
|
|
58
|
+
};
|
|
59
|
+
export interface WorkerNode extends ExecutableNodeBase {
|
|
60
|
+
readonly kind: "worker";
|
|
61
|
+
readonly role: string;
|
|
62
|
+
readonly packet_template: {
|
|
63
|
+
readonly standalone_prompt: string;
|
|
64
|
+
readonly constraints: readonly string[];
|
|
65
|
+
readonly runtime_input_names: readonly string[];
|
|
66
|
+
readonly handoff_inputs: readonly WorkerHandoffInputContract[];
|
|
67
|
+
readonly output_contract: readonly WorkerOutputContract[];
|
|
68
|
+
readonly response_contract: WorkerResponseContract;
|
|
69
|
+
};
|
|
70
|
+
readonly workspace: {
|
|
71
|
+
readonly isolation: "none" | "worktree";
|
|
72
|
+
readonly relative_working_directory: string;
|
|
73
|
+
readonly read_only: boolean;
|
|
74
|
+
readonly readable_path_templates: readonly string[];
|
|
75
|
+
readonly writable_path_templates: readonly string[];
|
|
76
|
+
readonly scope_relaxation: {
|
|
77
|
+
readonly from_iteration: number;
|
|
78
|
+
readonly effect: "disable_path_scope";
|
|
79
|
+
} | null;
|
|
80
|
+
};
|
|
81
|
+
readonly tool_policy: {
|
|
82
|
+
readonly allow: readonly string[] | null;
|
|
83
|
+
readonly deny: readonly string[];
|
|
84
|
+
};
|
|
85
|
+
readonly attempt_policy: {
|
|
86
|
+
readonly timeout_ms: number | null;
|
|
87
|
+
readonly cancellation_grace_ms: number;
|
|
88
|
+
readonly max_attempts: number;
|
|
89
|
+
readonly backoff: "none" | "linear" | "exponential";
|
|
90
|
+
readonly initial_delay_ms: number;
|
|
91
|
+
readonly max_delay_ms: number | null;
|
|
92
|
+
readonly retryable_outcomes: readonly ExecutableRetryableOutcome[];
|
|
93
|
+
readonly retry_segment_id: string | null;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export interface SystemInputPort {
|
|
97
|
+
readonly name: string;
|
|
98
|
+
readonly source: "run_input" | "handoff";
|
|
99
|
+
}
|
|
100
|
+
export interface SystemResultOutputMapping {
|
|
101
|
+
readonly source_output_name: string;
|
|
102
|
+
readonly output_name: string;
|
|
103
|
+
}
|
|
104
|
+
export interface SystemSealCandidate {
|
|
105
|
+
readonly required_node_ids: readonly string[];
|
|
106
|
+
readonly outputs: readonly ({
|
|
107
|
+
readonly source_node_id: string;
|
|
108
|
+
} & SystemResultOutputMapping)[];
|
|
109
|
+
}
|
|
110
|
+
export type SystemOperation = {
|
|
111
|
+
readonly kind: "import_result";
|
|
112
|
+
readonly source_plan_input: string;
|
|
113
|
+
readonly source_result_input: string;
|
|
114
|
+
readonly output_name: string;
|
|
115
|
+
} | {
|
|
116
|
+
readonly kind: "adopt_artifact";
|
|
117
|
+
readonly source_reference_input: string;
|
|
118
|
+
readonly expected_digest_input: string;
|
|
119
|
+
readonly output_name: string;
|
|
120
|
+
} | {
|
|
121
|
+
readonly kind: "resolve_diagnosis_source";
|
|
122
|
+
readonly mode_input: string;
|
|
123
|
+
readonly output_name: string;
|
|
124
|
+
} | {
|
|
125
|
+
readonly kind: "adopt_artifact_bundle";
|
|
126
|
+
readonly artifacts: readonly {
|
|
127
|
+
readonly source_reference_input: string;
|
|
128
|
+
readonly expected_digest_input: string;
|
|
129
|
+
readonly output_name: string;
|
|
130
|
+
readonly artifact_kind: "file" | "directory";
|
|
131
|
+
}[];
|
|
132
|
+
} | {
|
|
133
|
+
readonly kind: "import_result_bundle";
|
|
134
|
+
readonly source_plan_input: string;
|
|
135
|
+
readonly source_result_input: string;
|
|
136
|
+
readonly required_outputs: readonly SystemResultOutputMapping[];
|
|
137
|
+
} | {
|
|
138
|
+
readonly kind: "import_review";
|
|
139
|
+
readonly source_plan_input: string;
|
|
140
|
+
readonly source_diagnosis_result_input: string;
|
|
141
|
+
readonly source_review_result_input: string;
|
|
142
|
+
readonly policy_id: string;
|
|
143
|
+
readonly required_outputs: readonly SystemResultOutputMapping[];
|
|
144
|
+
} | {
|
|
145
|
+
readonly kind: "seal_result_bundle";
|
|
146
|
+
readonly origin_output_name?: string;
|
|
147
|
+
readonly candidates: readonly SystemSealCandidate[];
|
|
148
|
+
} | {
|
|
149
|
+
readonly kind: "materialize_handoff";
|
|
150
|
+
readonly handoff_id: string;
|
|
151
|
+
};
|
|
152
|
+
export interface SystemNode extends ExecutableNodeBase {
|
|
153
|
+
readonly kind: "system";
|
|
154
|
+
readonly input_ports: readonly SystemInputPort[];
|
|
155
|
+
readonly output_contract?: readonly WorkerOutputContract[];
|
|
156
|
+
readonly operation: SystemOperation;
|
|
157
|
+
}
|
|
158
|
+
export interface GateNode extends ExecutableNodeBase {
|
|
159
|
+
readonly kind: "gate";
|
|
160
|
+
readonly verifier_ids: readonly string[];
|
|
161
|
+
readonly pass_route_ids: readonly string[];
|
|
162
|
+
readonly fail_route_id: string;
|
|
163
|
+
}
|
|
164
|
+
export interface DecisionNode extends ExecutableNodeBase {
|
|
165
|
+
readonly kind: "decision";
|
|
166
|
+
readonly source: {
|
|
167
|
+
readonly node_id: string;
|
|
168
|
+
readonly output_name: string;
|
|
169
|
+
readonly json_pointer: string;
|
|
170
|
+
};
|
|
171
|
+
readonly allowed_values: readonly string[];
|
|
172
|
+
}
|
|
173
|
+
export interface InteractionNode extends ExecutableNodeBase {
|
|
174
|
+
readonly kind: "interaction";
|
|
175
|
+
readonly interaction_id: string;
|
|
176
|
+
readonly prompt: string;
|
|
177
|
+
readonly response_schema_ref: string;
|
|
178
|
+
readonly requires_attested_human: true;
|
|
179
|
+
}
|
|
180
|
+
export interface TerminalNode extends ExecutableNodeBase {
|
|
181
|
+
readonly kind: "terminal";
|
|
182
|
+
readonly terminal_id: string;
|
|
183
|
+
}
|
|
184
|
+
export type ExecutableNode = WorkerNode | SystemNode | GateNode | DecisionNode | InteractionNode | TerminalNode;
|
|
185
|
+
export type RouteCondition = {
|
|
186
|
+
readonly kind: "always";
|
|
187
|
+
} | {
|
|
188
|
+
readonly kind: "gate";
|
|
189
|
+
readonly gate_node_id: string;
|
|
190
|
+
readonly outcome: "pass" | "fail";
|
|
191
|
+
} | {
|
|
192
|
+
readonly kind: "decision";
|
|
193
|
+
readonly decision_node_id: string;
|
|
194
|
+
readonly value: string;
|
|
195
|
+
} | {
|
|
196
|
+
readonly kind: "interaction";
|
|
197
|
+
readonly interaction_node_id: string;
|
|
198
|
+
readonly outcome: "submitted" | "cancelled";
|
|
199
|
+
};
|
|
200
|
+
export interface TypedRoute {
|
|
201
|
+
readonly route_id: string;
|
|
202
|
+
readonly from_node_id: string;
|
|
203
|
+
readonly to_node_id: string;
|
|
204
|
+
readonly condition: RouteCondition;
|
|
205
|
+
}
|
|
206
|
+
export interface RetrySegment {
|
|
207
|
+
readonly retry_segment_id: string;
|
|
208
|
+
readonly node_ids: readonly string[];
|
|
209
|
+
readonly retry_from_node_id: string;
|
|
210
|
+
readonly max_rounds: number;
|
|
211
|
+
readonly backoff: "none" | "linear" | "exponential";
|
|
212
|
+
readonly initial_delay_ms: number;
|
|
213
|
+
readonly max_delay_ms: number | null;
|
|
214
|
+
readonly retryable_outcomes: readonly ExecutableRetryableOutcome[];
|
|
215
|
+
/** A typed decision route that schedules the next segment round until exhausted. */
|
|
216
|
+
readonly continue_route_id?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface TerminalDefinition {
|
|
219
|
+
readonly terminal_id: string;
|
|
220
|
+
readonly status: "succeeded" | "failed" | "cancelled" | "unsupported";
|
|
221
|
+
readonly reason_code: string;
|
|
222
|
+
}
|
|
223
|
+
interface VerifierDefinitionBase {
|
|
224
|
+
readonly verifier_id: string;
|
|
225
|
+
readonly subject_node_id: string;
|
|
226
|
+
}
|
|
227
|
+
export type VerifierDefinition = VerifierDefinitionBase & {
|
|
228
|
+
readonly kind: "artifact_exists" | "artifact_non_empty";
|
|
229
|
+
readonly relative_path_template: string;
|
|
230
|
+
} | VerifierDefinitionBase & {
|
|
231
|
+
readonly kind: "artifact_contains";
|
|
232
|
+
readonly relative_path_template: string;
|
|
233
|
+
readonly pattern: string;
|
|
234
|
+
} | VerifierDefinitionBase & {
|
|
235
|
+
readonly kind: "evaluator_result";
|
|
236
|
+
readonly relative_path_template: string;
|
|
237
|
+
readonly require_score: boolean;
|
|
238
|
+
} | VerifierDefinitionBase & {
|
|
239
|
+
readonly kind: "structured_output";
|
|
240
|
+
readonly node_id: string;
|
|
241
|
+
readonly output_name: string;
|
|
242
|
+
readonly schema_ref: string;
|
|
243
|
+
} | VerifierDefinitionBase & {
|
|
244
|
+
readonly kind: "command";
|
|
245
|
+
readonly command: string;
|
|
246
|
+
readonly relative_working_directory: string;
|
|
247
|
+
readonly observation_policy?: "historical_execution" | "current_provenance";
|
|
248
|
+
} | VerifierDefinitionBase & {
|
|
249
|
+
readonly kind: "checkpoint";
|
|
250
|
+
readonly assertion: string;
|
|
251
|
+
readonly command: string | null;
|
|
252
|
+
readonly message: string;
|
|
253
|
+
readonly action: "block" | "warn";
|
|
254
|
+
readonly observation_policy?: "historical_execution" | "current_provenance";
|
|
255
|
+
};
|
|
256
|
+
export interface HandoffDefinition {
|
|
257
|
+
readonly handoff_id: string;
|
|
258
|
+
readonly from_node_id: string;
|
|
259
|
+
readonly output_name: string;
|
|
260
|
+
readonly to_node_id: string;
|
|
261
|
+
readonly input_name: string;
|
|
262
|
+
readonly mode: "reference" | "quote" | "structured";
|
|
263
|
+
readonly artifact_kind: ExecutableArtifactKind;
|
|
264
|
+
readonly required: boolean;
|
|
265
|
+
readonly schema_ref: string | null;
|
|
266
|
+
}
|
|
267
|
+
export interface WorkspacePolicy {
|
|
268
|
+
readonly default_isolation: "none" | "worktree";
|
|
269
|
+
readonly relative_workspace_root: string;
|
|
270
|
+
readonly allow_network: boolean;
|
|
271
|
+
readonly readable_path_templates: readonly string[];
|
|
272
|
+
readonly writable_path_templates: readonly string[];
|
|
273
|
+
}
|
|
274
|
+
export interface DriverCapabilities {
|
|
275
|
+
readonly worktree_isolation: boolean;
|
|
276
|
+
readonly parallelism: boolean;
|
|
277
|
+
readonly cancellation: boolean;
|
|
278
|
+
readonly hook_identity: boolean;
|
|
279
|
+
readonly caller_attestation: boolean;
|
|
280
|
+
readonly human_interaction: boolean;
|
|
281
|
+
readonly direct_structured_submission: boolean;
|
|
282
|
+
readonly network_policy_enforcement: boolean;
|
|
283
|
+
}
|
|
284
|
+
export interface PlanSourceProvenance {
|
|
285
|
+
readonly compiler: {
|
|
286
|
+
readonly name: string;
|
|
287
|
+
readonly version: string;
|
|
288
|
+
};
|
|
289
|
+
readonly sources: readonly {
|
|
290
|
+
readonly source_id: string;
|
|
291
|
+
readonly relative_ref: string;
|
|
292
|
+
readonly content_digest: Sha256Digest;
|
|
293
|
+
}[];
|
|
294
|
+
}
|
|
295
|
+
export interface ExecutableRunPlanPayload {
|
|
296
|
+
readonly schema_version: typeof EXECUTABLE_RUN_PLAN_SCHEMA_VERSION;
|
|
297
|
+
readonly target: {
|
|
298
|
+
readonly kind: "workflow" | "controller";
|
|
299
|
+
readonly key: string;
|
|
300
|
+
};
|
|
301
|
+
readonly input_contract: RunInputContract;
|
|
302
|
+
readonly nodes: readonly ExecutableNode[];
|
|
303
|
+
readonly routes: readonly TypedRoute[];
|
|
304
|
+
readonly retry_segments: readonly RetrySegment[];
|
|
305
|
+
readonly terminals: readonly TerminalDefinition[];
|
|
306
|
+
readonly verifier_plan: readonly VerifierDefinition[];
|
|
307
|
+
readonly handoff_plan: readonly HandoffDefinition[];
|
|
308
|
+
readonly workspace_policy: WorkspacePolicy;
|
|
309
|
+
readonly required_capabilities: DriverCapabilities;
|
|
310
|
+
readonly source_provenance: PlanSourceProvenance;
|
|
311
|
+
}
|
|
312
|
+
export interface StoredExecutableRunPlan {
|
|
313
|
+
readonly schema_version: typeof STORED_EXECUTABLE_RUN_PLAN_SCHEMA_VERSION;
|
|
314
|
+
readonly plan_id: Sha256Digest;
|
|
315
|
+
readonly plan_digest: Sha256Digest;
|
|
316
|
+
readonly plan: ExecutableRunPlanPayload;
|
|
317
|
+
}
|
|
318
|
+
export declare class ExecutableRunPlanError extends TypeError {
|
|
319
|
+
readonly path: string;
|
|
320
|
+
constructor(path: string, message: string);
|
|
321
|
+
}
|
|
322
|
+
export declare function deriveWorkerRuntimeInputNames(worker: WorkerNode, verifiers: readonly VerifierDefinition[], handoffs: readonly HandoffDefinition[], path?: string): readonly string[];
|
|
323
|
+
export declare function assertExecutableRunPlanPayload(value: unknown): asserts value is ExecutableRunPlanPayload;
|
|
324
|
+
export declare function parseExecutableRunPlanPayload(value: unknown): ExecutableRunPlanPayload;
|
|
325
|
+
export declare function executableRunPlanDigest(plan: ExecutableRunPlanPayload): Sha256Digest;
|
|
326
|
+
export declare function createStoredExecutableRunPlan(plan: ExecutableRunPlanPayload): StoredExecutableRunPlan;
|
|
327
|
+
export declare function parseStoredExecutableRunPlan(value: unknown): StoredExecutableRunPlan;
|
|
328
|
+
export {};
|