@the-open-engine/zeroshot 6.45.0 → 6.46.0

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.
@@ -26,87 +26,491 @@ export const JSON_RPC_ERROR_CODES = {
26
26
  export const DOMAIN_ERROR_CODES = ["NOT_FOUND","GONE","SLOW_CONSUMER","UNSUPPORTED_PROTOCOL_VERSION","INTERNAL_ERROR"] as const;
27
27
 
28
28
  export type ActiveExecution = { readonly "execution": string; readonly "node": string; };
29
- export type AdmissionTransition = { readonly "runId": string; readonly "seedInput": unknown; readonly "spec": GraphSpec; };
30
- export type AgentAttachClosedNotification = { readonly "reason": SubscriptionCloseReason; readonly "subscriptionId": string; };
31
- export type AgentAttachEvent = { readonly "type": "working"; } | { readonly "text": string; readonly "type": "output"; } | { readonly "type": "settled"; };
29
+ export type AdmissionTransition =
30
+ { readonly "runId": string;
31
+ readonly "seedInput": unknown;
32
+ readonly "spec": GraphSpec;
33
+ };
34
+ export type AgentAttachClosedNotification =
35
+ { readonly "reason": SubscriptionCloseReason;
36
+ readonly "subscriptionId": string;
37
+ };
38
+ export type AgentAttachEvent =
39
+ { readonly "type": "working";
40
+ }
41
+ | { readonly "text": string;
42
+ readonly "type": "output";
43
+ }
44
+ | { readonly "type": "settled";
45
+ };
32
46
  export type AgentAttachEventNotification = AgentAttachEventNotificationWire;
33
- export type AgentAttachEventNotificationWire = { readonly "event": AgentAttachEvent; readonly "subscriptionId": string; };
47
+ export type AgentAttachEventNotificationWire =
48
+ { readonly "event": AgentAttachEvent;
49
+ readonly "subscriptionId": string;
50
+ };
34
51
  export type AgentAttachParams = { readonly "execution": string; };
35
52
  export type AgentAttachResult = { readonly "subscriptionId": string; };
36
- export type ApplyParams = { readonly "dryRun"?: boolean; readonly "graph": GraphSpec; readonly "idempotencyKey"?: string; readonly "ifGeneration"?: number; readonly "input"?: unknown; };
37
- export type ApplyResult = { readonly "deduped": boolean; readonly "diff"?: GraphDiff | null; readonly "generation"?: number | null; readonly "phase": Phase; readonly "runId"?: string | null; };
53
+ export type ApplyParams =
54
+ { readonly "dryRun"?: boolean;
55
+ readonly "graph": GraphSpec;
56
+ readonly "idempotencyKey"?: string;
57
+ readonly "ifGeneration"?: number;
58
+ readonly "input"?: unknown;
59
+ };
60
+ export type ApplyResult =
61
+ { readonly "deduped": boolean;
62
+ readonly "diff"?: GraphDiff
63
+ | null;
64
+ readonly "generation"?: number
65
+ | null;
66
+ readonly "phase": Phase;
67
+ readonly "runId"?: string
68
+ | null;
69
+ };
38
70
  export type ArtifactLineage = { readonly "attempt": number; readonly "generation": number; readonly "runId": string; };
39
71
  export type ArtifactProducer = { readonly "node": string; readonly "worker": string; };
40
- export type ArtifactRef = { readonly "artifactId": string; readonly "byteLength": number; readonly "lineage": ArtifactLineage; readonly "mediaType": string; readonly "producer": ArtifactProducer; readonly "redaction": RedactionClass; readonly "sha256": string; readonly "typeId": string; };
72
+ export type ArtifactRef =
73
+ { readonly "artifactId": string;
74
+ readonly "byteLength": number;
75
+ readonly "lineage": ArtifactLineage;
76
+ readonly "mediaType": string;
77
+ readonly "producer": ArtifactProducer;
78
+ readonly "redaction": RedactionClass;
79
+ readonly "sha256": string;
80
+ readonly "typeId": string;
81
+ };
41
82
  export type BackendFault = BackendFaultWire;
42
- export type BackendFaultWire = { readonly "action": FaultAction; readonly "code": FaultCode; readonly "consequence": FaultConsequence; readonly "eventId": string; readonly "executionRef"?: string | null; readonly "retry": FaultRetryDisposition; readonly "severity": FaultSeverity; readonly "source": ReadonlyArray<FaultSourceFrame>; readonly "summary": string; };
83
+ export type BackendFaultWire =
84
+ { readonly "action": FaultAction;
85
+ readonly "code": FaultCode;
86
+ readonly "consequence": FaultConsequence;
87
+ readonly "eventId": string;
88
+ readonly "executionRef"?: string
89
+ | null;
90
+ readonly "retry": FaultRetryDisposition;
91
+ readonly "severity": FaultSeverity;
92
+ readonly "source": ReadonlyArray<FaultSourceFrame>;
93
+ readonly "summary": string;
94
+ };
43
95
  export type CancelRequestParams = { readonly "id": RequestId; };
44
96
  export type ChoiceBranch = { readonly "node": GraphNode; readonly "when": Guard; };
45
97
  export type ClaudeProvider = "anthropic" | "openrouter";
46
- export type ClusterStatus = { readonly "atCursor"?: string | null; readonly "currentRunId"?: string | null; readonly "observedGeneration"?: number | null; readonly "operational"?: OperationalStatus | null; readonly "phase": Phase; };
98
+ export type ClusterStatus =
99
+ { readonly "atCursor"?: string
100
+ | null;
101
+ readonly "currentRunId"?: string
102
+ | null;
103
+ readonly "observedGeneration"?: number
104
+ | null;
105
+ readonly "operational"?: OperationalStatus
106
+ | null;
107
+ readonly "phase": Phase;
108
+ };
47
109
  export type CodexProvider = "openai" | "openrouter";
48
- export type ControlSelector = { readonly "field"?: string | null; readonly "name": string; readonly "source": ControlSource; };
110
+ export type ControlSelector =
111
+ { readonly "field"?: string
112
+ | null;
113
+ readonly "name": string;
114
+ readonly "source": ControlSource;
115
+ };
49
116
  export type ControlSource = "signal" | "error" | "group";
50
- export type DataSelector = { readonly "path": ReadonlyArray<string>; readonly "source": "state"; } | { readonly "path": ReadonlyArray<string>; readonly "source": "item"; };
117
+ export type DataSelector =
118
+ { readonly "path": ReadonlyArray<string>;
119
+ readonly "source": "state";
120
+ }
121
+ | { readonly "path": ReadonlyArray<string>;
122
+ readonly "source": "item";
123
+ };
124
+ export type DeclaredConnections = { readonly [key: string]: DeclaredEnvironment };
51
125
  export type DeclaredEnvironment = ReadonlyArray<string>;
52
- export type DeleteParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "ifRunId"?: string | null; };
53
- export type DeleteResult = { readonly "atCursor"?: string | null; readonly "deduped": boolean; readonly "deleted": boolean; readonly "generation"?: number | null; readonly "phase": Phase; readonly "runId"?: string | null; };
54
- export type DiagnosticPathSegment = { readonly "kind": "field"; readonly "name": string; } | { readonly "index": number; readonly "kind": "index"; } | { readonly "kind": "node"; readonly "name": string; };
126
+ export type DeleteParams =
127
+ { readonly "idempotencyKey": string;
128
+ readonly "ifGeneration": number;
129
+ readonly "ifRunId"?: string
130
+ | null;
131
+ };
132
+ export type DeleteResult =
133
+ { readonly "atCursor"?: string
134
+ | null;
135
+ readonly "deduped": boolean;
136
+ readonly "deleted": boolean;
137
+ readonly "generation"?: number
138
+ | null;
139
+ readonly "phase": Phase;
140
+ readonly "runId"?: string
141
+ | null;
142
+ };
143
+ export type DiagnosticPathSegment =
144
+ { readonly "kind": "field";
145
+ readonly "name": string;
146
+ }
147
+ | { readonly "index": number;
148
+ readonly "kind": "index";
149
+ }
150
+ | { readonly "kind": "node";
151
+ readonly "name": string;
152
+ };
55
153
  export type DiagnosticSeverity = "error" | "warning" | "info";
56
154
  export type DispatchState = "active" | "suspended" | "draining" | "force_stopping" | "stopped";
57
155
  export type DomainErrorData = { readonly "code": string; readonly "details"?: unknown; };
58
- export type EventNotification = { readonly "cursor": string; readonly "event": WatchEvent; readonly "runId": string; readonly "subscriptionId": string; };
156
+ export type EventNotification =
157
+ { readonly "cursor": string;
158
+ readonly "event": WatchEvent;
159
+ readonly "runId": string;
160
+ readonly "subscriptionId": string;
161
+ };
59
162
  export type FaultAction = "none" | "retry" | "wait" | "escalate" | "abort";
60
- export type FaultCode = "unavailable" | "resource_exhausted" | "deadline_exceeded" | "permission_denied" | "failed_precondition" | "not_found" | "aborted" | "internal" | "unknown";
163
+ export type FaultCode =
164
+ "unavailable"
165
+ | "resource_exhausted"
166
+ | "deadline_exceeded"
167
+ | "permission_denied"
168
+ | "failed_precondition"
169
+ | "not_found"
170
+ | "aborted"
171
+ | "internal"
172
+ | "unknown";
61
173
  export type FaultConsequence = "turn_failed" | "run_failed" | "run_degraded" | "no_observable_effect";
62
174
  export type FaultRetryDisposition = "retryable" | "retryable_after_backoff" | "not_retryable" | "indeterminate";
63
175
  export type FaultSeverity = "info" | "warning" | "error" | "critical";
64
176
  export type FaultSourceFrame = { readonly "component": string; };
65
177
  export type GetParams = { readonly "atCursor"?: string | null; };
66
- export type GetResult = { readonly "atCursor"?: string | null; readonly "spec"?: GraphSpec | null; readonly "status": ClusterStatus; readonly "terminalResult"?: TerminalResult | null; };
67
- export type GraphDiagnostic = { readonly "code": GraphDiagnosticCode; readonly "message": string; readonly "path": ReadonlyArray<DiagnosticPathSegment>; readonly "relatedNodes": ReadonlyArray<string>; readonly "severity": DiagnosticSeverity; };
68
- export type GraphDiagnosticCode = "schema_safety" | "reachability" | "choice_exhaustiveness" | "loop_exit_satisfiability" | "missing_bound" | "write_conflict" | "ceiling_exceeded" | "cyclic_reference" | "undefined_read" | "invalid_graph_shape";
69
- export type GraphDiff = { readonly "added": ReadonlyArray<string>; readonly "changed": ReadonlyArray<string>; readonly "removed": ReadonlyArray<string>; };
70
- export type GraphNode = ({ readonly "attempts": number; readonly "input": PayloadType; readonly "inputBindings": ReadonlyArray<InputBinding>; readonly "instructions"?: NodeInstructions | null; readonly "kind": "step"; readonly "name": string; readonly "output": PayloadType; readonly "timeoutMs": number; readonly "worker": string; readonly "writeBindings": ReadonlyArray<WriteBinding>; }) | ({ readonly "attempts": number; readonly "diagnostic": PayloadType; readonly "input": PayloadType; readonly "inputBindings": ReadonlyArray<InputBinding>; readonly "instructions"?: NodeInstructions | null; readonly "kind": "verifier"; readonly "name": string; readonly "output": PayloadType; readonly "signals": { readonly [key: string]: ReadonlyArray<string> }; readonly "timeoutMs": number; readonly "worker": string; readonly "writeBindings": ReadonlyArray<WriteBinding>; }) | { readonly "children": NonEmptyVec_of_GraphNode; readonly "kind": "seq"; readonly "name": string; readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>; readonly "state": PayloadType; } | ({ readonly "branches": NonEmptyVec_of_ChoiceBranch; readonly "kind": "choice"; readonly "name": string; readonly "otherwise"?: GraphNode | null; readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>; readonly "state": PayloadType; }) | { readonly "branches": NonEmptyVec_of_GraphNode; readonly "join": Join; readonly "kind": "par"; readonly "name": string; readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>; readonly "state": PayloadType; } | ({ readonly "body": GraphNode; readonly "kind": "loop"; readonly "maxIterations": number; readonly "name": string; readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>; readonly "state": PayloadType; readonly "until"?: Guard | null; }) | { readonly "body": GraphNode; readonly "kind": "map"; readonly "maxItems": number; readonly "name": string; readonly "over": DataSelector; readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>; readonly "state": PayloadType; } | { readonly "bindings": ReadonlyArray<InputBinding>; readonly "kind": "succeed"; readonly "name": string; readonly "output": PayloadType; } | { readonly "kind": "fail"; readonly "name": string; readonly "reason": string; };
178
+ export type GetResult =
179
+ { readonly "atCursor"?: string
180
+ | null;
181
+ readonly "spec"?: GraphSpec
182
+ | null;
183
+ readonly "status": ClusterStatus;
184
+ readonly "terminalResult"?: TerminalResult
185
+ | null;
186
+ };
187
+ export type GraphDiagnostic =
188
+ { readonly "code": GraphDiagnosticCode;
189
+ readonly "message": string;
190
+ readonly "path": ReadonlyArray<DiagnosticPathSegment>;
191
+ readonly "relatedNodes": ReadonlyArray<string>;
192
+ readonly "severity": DiagnosticSeverity;
193
+ };
194
+ export type GraphDiagnosticCode =
195
+ "schema_safety"
196
+ | "reachability"
197
+ | "choice_exhaustiveness"
198
+ | "loop_exit_satisfiability"
199
+ | "missing_bound"
200
+ | "write_conflict"
201
+ | "ceiling_exceeded"
202
+ | "cyclic_reference"
203
+ | "undefined_read"
204
+ | "invalid_graph_shape";
205
+ export type GraphDiff =
206
+ { readonly "added": ReadonlyArray<string>;
207
+ readonly "changed": ReadonlyArray<string>;
208
+ readonly "removed": ReadonlyArray<string>;
209
+ };
210
+ export type GraphNode =
211
+ ({ readonly "attempts": number;
212
+ readonly "input": PayloadType;
213
+ readonly "inputBindings": ReadonlyArray<InputBinding>;
214
+ readonly "instructions"?: NodeInstructions
215
+ | null;
216
+ readonly "kind": "step";
217
+ readonly "name": string;
218
+ readonly "output": PayloadType;
219
+ readonly "timeoutMs": number;
220
+ readonly "worker": string;
221
+ readonly "writeBindings": ReadonlyArray<WriteBinding>;
222
+ })
223
+ | ({ readonly "attempts": number;
224
+ readonly "diagnostic": PayloadType;
225
+ readonly "input": PayloadType;
226
+ readonly "inputBindings": ReadonlyArray<InputBinding>;
227
+ readonly "instructions"?: NodeInstructions
228
+ | null;
229
+ readonly "kind": "verifier";
230
+ readonly "name": string;
231
+ readonly "output": PayloadType;
232
+ readonly "signals": { readonly [key: string]: ReadonlyArray<string> };
233
+ readonly "timeoutMs": number;
234
+ readonly "worker": string;
235
+ readonly "writeBindings": ReadonlyArray<WriteBinding>;
236
+ })
237
+ | { readonly "children": NonEmptyVec_of_GraphNode;
238
+ readonly "kind": "seq";
239
+ readonly "name": string;
240
+ readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
241
+ readonly "state": PayloadType;
242
+ }
243
+ | ({ readonly "branches": NonEmptyVec_of_ChoiceBranch;
244
+ readonly "kind": "choice";
245
+ readonly "name": string;
246
+ readonly "otherwise"?: GraphNode
247
+ | null;
248
+ readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
249
+ readonly "state": PayloadType;
250
+ })
251
+ | { readonly "branches": NonEmptyVec_of_GraphNode;
252
+ readonly "join": Join;
253
+ readonly "kind": "par";
254
+ readonly "name": string;
255
+ readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
256
+ readonly "state": PayloadType;
257
+ }
258
+ | ({ readonly "body": GraphNode;
259
+ readonly "kind": "loop";
260
+ readonly "maxIterations": number;
261
+ readonly "name": string;
262
+ readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
263
+ readonly "state": PayloadType;
264
+ readonly "until"?: Guard
265
+ | null;
266
+ })
267
+ | { readonly "body": GraphNode;
268
+ readonly "kind": "map";
269
+ readonly "maxItems": number;
270
+ readonly "name": string;
271
+ readonly "over": DataSelector;
272
+ readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
273
+ readonly "state": PayloadType;
274
+ }
275
+ | { readonly "bindings": ReadonlyArray<InputBinding>;
276
+ readonly "kind": "succeed";
277
+ readonly "name": string;
278
+ readonly "output": PayloadType;
279
+ }
280
+ | { readonly "kind": "fail";
281
+ readonly "name": string;
282
+ readonly "reason": string;
283
+ };
71
284
  export type GraphProfile = "openengine.graph.full/v1" | "openengine.graph.single-worker/v1";
72
- export type GraphSpec = { readonly "initialInput": PayloadType; readonly "policy": PolicyBinding; readonly "profile": GraphProfile; readonly "root": GraphNode; };
73
- export type Guard = { readonly "kind": "in"; readonly "labels": ReadonlyArray<string>; readonly "value": ControlSelector; } | { readonly "guards": NonEmptyVec_of_Guard; readonly "kind": "all"; } | { readonly "guards": NonEmptyVec_of_Guard; readonly "kind": "any"; } | { readonly "guard": Guard; readonly "kind": "not"; } | { readonly "count": number; readonly "kind": "k_of_n"; readonly "labels": ReadonlyArray<string>; readonly "values": NonEmptyVec_of_ControlSelector; } | { readonly "count": number; readonly "kind": "k_of_map"; readonly "labels": ReadonlyArray<string>; readonly "value": ControlSelector; };
285
+ export type GraphSpec =
286
+ { readonly "initialInput": PayloadType;
287
+ readonly "policy": PolicyBinding;
288
+ readonly "profile": GraphProfile;
289
+ readonly "root": GraphNode;
290
+ };
291
+ export type Guard =
292
+ { readonly "kind": "in";
293
+ readonly "labels": ReadonlyArray<string>;
294
+ readonly "value": ControlSelector;
295
+ }
296
+ | { readonly "guards": NonEmptyVec_of_Guard;
297
+ readonly "kind": "all";
298
+ }
299
+ | { readonly "guards": NonEmptyVec_of_Guard;
300
+ readonly "kind": "any";
301
+ }
302
+ | { readonly "guard": Guard;
303
+ readonly "kind": "not";
304
+ }
305
+ | { readonly "count": number;
306
+ readonly "kind": "k_of_n";
307
+ readonly "labels": ReadonlyArray<string>;
308
+ readonly "values": NonEmptyVec_of_ControlSelector;
309
+ }
310
+ | { readonly "count": number;
311
+ readonly "kind": "k_of_map";
312
+ readonly "labels": ReadonlyArray<string>;
313
+ readonly "value": ControlSelector;
314
+ };
74
315
  export type InitializeParams = { readonly "protocolVersion": "openengine.cluster/v1"; };
75
- export type InitializeResult = { readonly "capabilities": ServerCapabilities; readonly "protocolVersion": "openengine.cluster/v1"; readonly "status": ClusterStatus; };
316
+ export type InitializeResult =
317
+ { readonly "capabilities": ServerCapabilities;
318
+ readonly "protocolVersion": "openengine.cluster/v1";
319
+ readonly "status": ClusterStatus;
320
+ };
76
321
  export type InputBinding = { readonly "target": ReadonlyArray<string>; readonly "value": DataSelector; };
77
- export type Join = { readonly "kind": "all"; } | { readonly "kind": "any"; } | { readonly "count": number; readonly "kind": "quorum"; } | { readonly "kind": "first"; readonly "when": Guard; };
78
- export type JsonRpcError = { readonly "code": number; readonly "data"?: DomainErrorData | null; readonly "message": string; };
79
- export type JsonRpcErrorResponse = { readonly "error": JsonRpcError; readonly "id"?: RequestId | null; readonly "jsonrpc": string; };
80
- export type JsonRpcNotification = { readonly "jsonrpc": string; readonly "method": string; readonly "params": EventNotification; };
81
- export type JsonRpcNotification10 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": RunLogEventNotification; };
82
- export type JsonRpcNotification11 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": RunAttachEventNotification; };
83
- export type JsonRpcNotification2 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": SubscriptionCancelParams; };
84
- export type JsonRpcNotification3 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": SubscriptionClosedNotification; };
85
- export type JsonRpcNotification4 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": CancelRequestParams; };
86
- export type JsonRpcNotification5 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": LogEventNotification; };
87
- export type JsonRpcNotification6 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": LogsClosedNotification; };
88
- export type JsonRpcNotification7 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": AgentAttachEventNotification; };
89
- export type JsonRpcNotification8 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": AgentAttachClosedNotification; };
90
- export type JsonRpcNotification9 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": RunWatchEventNotification; };
91
- export type JsonRpcRequest = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": InitializeParams; };
92
- export type JsonRpcRequest10 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": WatchParams; };
93
- export type JsonRpcRequest11 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": LogsParams; };
94
- export type JsonRpcRequest12 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": AgentAttachParams; };
95
- export type JsonRpcRequest13 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunSubmitParams; };
96
- export type JsonRpcRequest14 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunListParams; };
97
- export type JsonRpcRequest15 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunStatusParams; };
98
- export type JsonRpcRequest16 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunWatchParams; };
99
- export type JsonRpcRequest17 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunLogsParams; };
100
- export type JsonRpcRequest18 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunAttachParams; };
101
- export type JsonRpcRequest19 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RunForceParams; };
102
- export type JsonRpcRequest2 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": PlanParams; };
103
- export type JsonRpcRequest3 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": ApplyParams; };
104
- export type JsonRpcRequest4 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": GetParams; };
105
- export type JsonRpcRequest5 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": UpdateParams; };
106
- export type JsonRpcRequest6 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": StopParams; };
107
- export type JsonRpcRequest7 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": RetryParams; };
108
- export type JsonRpcRequest8 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": ResubmitParams; };
109
- export type JsonRpcRequest9 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": DeleteParams; };
322
+ export type Join =
323
+ { readonly "kind": "all";
324
+ }
325
+ | { readonly "kind": "any";
326
+ }
327
+ | { readonly "count": number;
328
+ readonly "kind": "quorum";
329
+ }
330
+ | { readonly "kind": "first";
331
+ readonly "when": Guard;
332
+ };
333
+ export type JsonRpcError =
334
+ { readonly "code": number;
335
+ readonly "data"?: DomainErrorData
336
+ | null;
337
+ readonly "message": string;
338
+ };
339
+ export type JsonRpcErrorResponse =
340
+ { readonly "error": JsonRpcError;
341
+ readonly "id"?: RequestId
342
+ | null;
343
+ readonly "jsonrpc": string;
344
+ };
345
+ export type JsonRpcNotification =
346
+ { readonly "jsonrpc": string;
347
+ readonly "method": string;
348
+ readonly "params": EventNotification;
349
+ };
350
+ export type JsonRpcNotification10 =
351
+ { readonly "jsonrpc": string;
352
+ readonly "method": string;
353
+ readonly "params": RunLogEventNotification;
354
+ };
355
+ export type JsonRpcNotification11 =
356
+ { readonly "jsonrpc": string;
357
+ readonly "method": string;
358
+ readonly "params": RunAttachEventNotification;
359
+ };
360
+ export type JsonRpcNotification2 =
361
+ { readonly "jsonrpc": string;
362
+ readonly "method": string;
363
+ readonly "params": SubscriptionCancelParams;
364
+ };
365
+ export type JsonRpcNotification3 =
366
+ { readonly "jsonrpc": string;
367
+ readonly "method": string;
368
+ readonly "params": SubscriptionClosedNotification;
369
+ };
370
+ export type JsonRpcNotification4 =
371
+ { readonly "jsonrpc": string;
372
+ readonly "method": string;
373
+ readonly "params": CancelRequestParams;
374
+ };
375
+ export type JsonRpcNotification5 =
376
+ { readonly "jsonrpc": string;
377
+ readonly "method": string;
378
+ readonly "params": LogEventNotification;
379
+ };
380
+ export type JsonRpcNotification6 =
381
+ { readonly "jsonrpc": string;
382
+ readonly "method": string;
383
+ readonly "params": LogsClosedNotification;
384
+ };
385
+ export type JsonRpcNotification7 =
386
+ { readonly "jsonrpc": string;
387
+ readonly "method": string;
388
+ readonly "params": AgentAttachEventNotification;
389
+ };
390
+ export type JsonRpcNotification8 =
391
+ { readonly "jsonrpc": string;
392
+ readonly "method": string;
393
+ readonly "params": AgentAttachClosedNotification;
394
+ };
395
+ export type JsonRpcNotification9 =
396
+ { readonly "jsonrpc": string;
397
+ readonly "method": string;
398
+ readonly "params": RunWatchEventNotification;
399
+ };
400
+ export type JsonRpcRequest =
401
+ { readonly "id": RequestId;
402
+ readonly "jsonrpc": string;
403
+ readonly "method": string;
404
+ readonly "params": InitializeParams;
405
+ };
406
+ export type JsonRpcRequest10 =
407
+ { readonly "id": RequestId;
408
+ readonly "jsonrpc": string;
409
+ readonly "method": string;
410
+ readonly "params": WatchParams;
411
+ };
412
+ export type JsonRpcRequest11 =
413
+ { readonly "id": RequestId;
414
+ readonly "jsonrpc": string;
415
+ readonly "method": string;
416
+ readonly "params": LogsParams;
417
+ };
418
+ export type JsonRpcRequest12 =
419
+ { readonly "id": RequestId;
420
+ readonly "jsonrpc": string;
421
+ readonly "method": string;
422
+ readonly "params": AgentAttachParams;
423
+ };
424
+ export type JsonRpcRequest13 =
425
+ { readonly "id": RequestId;
426
+ readonly "jsonrpc": string;
427
+ readonly "method": string;
428
+ readonly "params": RunSubmitParams;
429
+ };
430
+ export type JsonRpcRequest14 =
431
+ { readonly "id": RequestId;
432
+ readonly "jsonrpc": string;
433
+ readonly "method": string;
434
+ readonly "params": RunListParams;
435
+ };
436
+ export type JsonRpcRequest15 =
437
+ { readonly "id": RequestId;
438
+ readonly "jsonrpc": string;
439
+ readonly "method": string;
440
+ readonly "params": RunStatusParams;
441
+ };
442
+ export type JsonRpcRequest16 =
443
+ { readonly "id": RequestId;
444
+ readonly "jsonrpc": string;
445
+ readonly "method": string;
446
+ readonly "params": RunWatchParams;
447
+ };
448
+ export type JsonRpcRequest17 =
449
+ { readonly "id": RequestId;
450
+ readonly "jsonrpc": string;
451
+ readonly "method": string;
452
+ readonly "params": RunLogsParams;
453
+ };
454
+ export type JsonRpcRequest18 =
455
+ { readonly "id": RequestId;
456
+ readonly "jsonrpc": string;
457
+ readonly "method": string;
458
+ readonly "params": RunAttachParams;
459
+ };
460
+ export type JsonRpcRequest19 =
461
+ { readonly "id": RequestId;
462
+ readonly "jsonrpc": string;
463
+ readonly "method": string;
464
+ readonly "params": RunForceParams;
465
+ };
466
+ export type JsonRpcRequest2 =
467
+ { readonly "id": RequestId;
468
+ readonly "jsonrpc": string;
469
+ readonly "method": string;
470
+ readonly "params": PlanParams;
471
+ };
472
+ export type JsonRpcRequest3 =
473
+ { readonly "id": RequestId;
474
+ readonly "jsonrpc": string;
475
+ readonly "method": string;
476
+ readonly "params": ApplyParams;
477
+ };
478
+ export type JsonRpcRequest4 =
479
+ { readonly "id": RequestId;
480
+ readonly "jsonrpc": string;
481
+ readonly "method": string;
482
+ readonly "params": GetParams;
483
+ };
484
+ export type JsonRpcRequest5 =
485
+ { readonly "id": RequestId;
486
+ readonly "jsonrpc": string;
487
+ readonly "method": string;
488
+ readonly "params": UpdateParams;
489
+ };
490
+ export type JsonRpcRequest6 =
491
+ { readonly "id": RequestId;
492
+ readonly "jsonrpc": string;
493
+ readonly "method": string;
494
+ readonly "params": StopParams;
495
+ };
496
+ export type JsonRpcRequest7 =
497
+ { readonly "id": RequestId;
498
+ readonly "jsonrpc": string;
499
+ readonly "method": string;
500
+ readonly "params": RetryParams;
501
+ };
502
+ export type JsonRpcRequest8 =
503
+ { readonly "id": RequestId;
504
+ readonly "jsonrpc": string;
505
+ readonly "method": string;
506
+ readonly "params": ResubmitParams;
507
+ };
508
+ export type JsonRpcRequest9 =
509
+ { readonly "id": RequestId;
510
+ readonly "jsonrpc": string;
511
+ readonly "method": string;
512
+ readonly "params": DeleteParams;
513
+ };
110
514
  export type JsonRpcResponse = JsonRpcSuccess | JsonRpcErrorResponse;
111
515
  export type JsonRpcResponse10 = JsonRpcSuccess10 | JsonRpcErrorResponse;
112
516
  export type JsonRpcResponse11 = JsonRpcSuccess11 | JsonRpcErrorResponse;
@@ -126,25 +530,77 @@ export type JsonRpcResponse6 = JsonRpcSuccess6 | JsonRpcErrorResponse;
126
530
  export type JsonRpcResponse7 = JsonRpcSuccess7 | JsonRpcErrorResponse;
127
531
  export type JsonRpcResponse8 = JsonRpcSuccess8 | JsonRpcErrorResponse;
128
532
  export type JsonRpcResponse9 = JsonRpcSuccess9 | JsonRpcErrorResponse;
129
- export type JsonRpcSuccess = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": InitializeResult; };
130
- export type JsonRpcSuccess10 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": WatchResult; };
533
+ export type JsonRpcSuccess =
534
+ { readonly "id": RequestId;
535
+ readonly "jsonrpc": string;
536
+ readonly "result": InitializeResult;
537
+ };
538
+ export type JsonRpcSuccess10 =
539
+ { readonly "id": RequestId;
540
+ readonly "jsonrpc": string;
541
+ readonly "result": WatchResult;
542
+ };
131
543
  export type JsonRpcSuccess11 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": LogsResult; };
132
- export type JsonRpcSuccess12 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": AgentAttachResult; };
133
- export type JsonRpcSuccess13 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunSubmitResult; };
134
- export type JsonRpcSuccess14 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunListResult; };
135
- export type JsonRpcSuccess15 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunStatusResult; };
136
- export type JsonRpcSuccess16 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunWatchResult; };
137
- export type JsonRpcSuccess17 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunLogsResult; };
138
- export type JsonRpcSuccess18 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunAttachResult; };
139
- export type JsonRpcSuccess19 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RunForceResult; };
544
+ export type JsonRpcSuccess12 =
545
+ { readonly "id": RequestId;
546
+ readonly "jsonrpc": string;
547
+ readonly "result": AgentAttachResult;
548
+ };
549
+ export type JsonRpcSuccess13 =
550
+ { readonly "id": RequestId;
551
+ readonly "jsonrpc": string;
552
+ readonly "result": RunSubmitResult;
553
+ };
554
+ export type JsonRpcSuccess14 =
555
+ { readonly "id": RequestId;
556
+ readonly "jsonrpc": string;
557
+ readonly "result": RunListResult;
558
+ };
559
+ export type JsonRpcSuccess15 =
560
+ { readonly "id": RequestId;
561
+ readonly "jsonrpc": string;
562
+ readonly "result": RunStatusResult;
563
+ };
564
+ export type JsonRpcSuccess16 =
565
+ { readonly "id": RequestId;
566
+ readonly "jsonrpc": string;
567
+ readonly "result": RunWatchResult;
568
+ };
569
+ export type JsonRpcSuccess17 =
570
+ { readonly "id": RequestId;
571
+ readonly "jsonrpc": string;
572
+ readonly "result": RunLogsResult;
573
+ };
574
+ export type JsonRpcSuccess18 =
575
+ { readonly "id": RequestId;
576
+ readonly "jsonrpc": string;
577
+ readonly "result": RunAttachResult;
578
+ };
579
+ export type JsonRpcSuccess19 =
580
+ { readonly "id": RequestId;
581
+ readonly "jsonrpc": string;
582
+ readonly "result": RunForceResult;
583
+ };
140
584
  export type JsonRpcSuccess2 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": PlanResult; };
141
585
  export type JsonRpcSuccess3 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": ApplyResult; };
142
586
  export type JsonRpcSuccess4 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": GetResult; };
143
- export type JsonRpcSuccess5 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": UpdateResult; };
587
+ export type JsonRpcSuccess5 =
588
+ { readonly "id": RequestId;
589
+ readonly "jsonrpc": string;
590
+ readonly "result": UpdateResult;
591
+ };
144
592
  export type JsonRpcSuccess6 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": StopResult; };
145
593
  export type JsonRpcSuccess7 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": RetryResult; };
146
- export type JsonRpcSuccess8 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": ResubmitResult; };
147
- export type JsonRpcSuccess9 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": DeleteResult; };
594
+ export type JsonRpcSuccess8 =
595
+ { readonly "id": RequestId;
596
+ readonly "jsonrpc": string;
597
+ readonly "result": ResubmitResult;
598
+ };
599
+ export type JsonRpcSuccess9 =
600
+ { readonly "id": RequestId;
601
+ readonly "jsonrpc": string;
602
+ readonly "result": DeleteResult;
603
+ };
148
604
  export type Labels = { readonly [key: string]: string };
149
605
  export type LogEventNotification = LogEventNotificationWire;
150
606
  export type LogEventNotificationWire = { readonly "record": LogRecord; readonly "subscriptionId": string; };
@@ -156,19 +612,64 @@ export type LogsResult = { readonly "subscriptionId": string; };
156
612
  export type NodeAddress = { readonly "attempt": number; readonly "node": string; };
157
613
  export type NodeInstructions = string;
158
614
  export type NodeOutputChannel = "out" | "signal" | "diagnostic";
159
- export type NodeOutputSelector = { readonly "channel": NodeOutputChannel; readonly "node": string; readonly "path": ReadonlyArray<string>; };
160
- export type NodeRuntimeBinding = ({ readonly "effort"?: ReasoningEffort | null; readonly "env"?: DeclaredEnvironment; readonly "kind": "agent"; readonly "model": string; readonly "sessionScope"?: SessionScope; }) | { readonly "env"?: DeclaredEnvironment; readonly "kind": "git_delivery"; };
615
+ export type NodeOutputSelector =
616
+ { readonly "channel": NodeOutputChannel;
617
+ readonly "node": string;
618
+ readonly "path": ReadonlyArray<string>;
619
+ };
620
+ export type NodeRuntimeBinding =
621
+ ({ readonly "connections"?: DeclaredConnections;
622
+ readonly "effort"?: ReasoningEffort
623
+ | null;
624
+ readonly "kind": "agent";
625
+ readonly "model": string;
626
+ readonly "sessionScope"?: SessionScope;
627
+ })
628
+ | { readonly "connections"?: DeclaredConnections;
629
+ readonly "kind": "git_delivery";
630
+ };
161
631
  export type NonEmptyVec_of_ChoiceBranch = ReadonlyArray<ChoiceBranch>;
162
632
  export type NonEmptyVec_of_ControlSelector = ReadonlyArray<ControlSelector>;
163
633
  export type NonEmptyVec_of_FieldPath = ReadonlyArray<ReadonlyArray<string>>;
164
634
  export type NonEmptyVec_of_GraphNode = ReadonlyArray<GraphNode>;
165
635
  export type NonEmptyVec_of_Guard = ReadonlyArray<Guard>;
166
636
  export type NonEmptyVec_of_NodeName = ReadonlyArray<string>;
167
- export type OperationalStatus = { readonly "dispatchState": DispatchState; readonly "inFlight": number; readonly "labels": Labels; readonly "logLevel": LogLevel; readonly "stopMode"?: StopMode | null; };
168
- export type PayloadType = { readonly "kind": "null"; } | { readonly "kind": "boolean"; } | { readonly "kind": "integer"; } | { readonly "kind": "number"; } | { readonly "kind": "string"; } | { readonly "fields": { readonly [key: string]: RecordField }; readonly "kind": "record"; } | { readonly "items": PayloadType; readonly "kind": "array"; } | { readonly "kind": "enum"; readonly "values": ReadonlyArray<string>; };
637
+ export type OperationalStatus =
638
+ { readonly "dispatchState": DispatchState;
639
+ readonly "inFlight": number;
640
+ readonly "labels": Labels;
641
+ readonly "logLevel": LogLevel;
642
+ readonly "stopMode"?: StopMode
643
+ | null;
644
+ };
645
+ export type PayloadType =
646
+ { readonly "kind": "null";
647
+ }
648
+ | { readonly "kind": "boolean";
649
+ }
650
+ | { readonly "kind": "integer";
651
+ }
652
+ | { readonly "kind": "number";
653
+ }
654
+ | { readonly "kind": "string";
655
+ }
656
+ | { readonly "fields": { readonly [key: string]: RecordField };
657
+ readonly "kind": "record";
658
+ }
659
+ | { readonly "items": PayloadType;
660
+ readonly "kind": "array";
661
+ }
662
+ | { readonly "kind": "enum";
663
+ readonly "values": ReadonlyArray<string>;
664
+ };
169
665
  export type Phase = "empty" | "admitting" | "running" | "finished" | "deleting";
170
666
  export type PlanParams = { readonly "graph": GraphSpec; };
171
- export type PlanResult = { readonly "bounds"?: StructuralBounds | null; readonly "diagnostics": ReadonlyArray<GraphDiagnostic>; readonly "ok": boolean; };
667
+ export type PlanResult =
668
+ { readonly "bounds"?: StructuralBounds
669
+ | null;
670
+ readonly "diagnostics": ReadonlyArray<GraphDiagnostic>;
671
+ readonly "ok": boolean;
672
+ };
172
673
  export type PolicyBinding = { readonly "default": PolicyDefault; readonly "policy": string; };
173
674
  export type PolicyDefault = "deny";
174
675
  export type ReasoningEffort = "low" | "medium" | "high" | "xhigh" | "max";
@@ -176,53 +677,270 @@ export type RecordField = { readonly "required": boolean; readonly "type": Paylo
176
677
  export type RedactionClass = "public" | "internal" | "confidential" | "restricted";
177
678
  export type RequestId = string | number;
178
679
  export type ResolvedSource = { readonly "branch": string; readonly "repository": string; readonly "revision": string; };
179
- export type ResubmitParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "ifRunId": string; readonly "replacementInput"?: unknown; };
180
- export type ResubmitResult = { readonly "atCursor": string; readonly "deduped": boolean; readonly "generation": number; readonly "operational": OperationalStatus; readonly "phase": Phase; readonly "priorRunId": string; readonly "runId": string; };
680
+ export type ResubmitParams =
681
+ { readonly "idempotencyKey": string;
682
+ readonly "ifGeneration": number;
683
+ readonly "ifRunId": string;
684
+ readonly "replacementInput"?: unknown;
685
+ };
686
+ export type ResubmitResult =
687
+ { readonly "atCursor": string;
688
+ readonly "deduped": boolean;
689
+ readonly "generation": number;
690
+ readonly "operational": OperationalStatus;
691
+ readonly "phase": Phase;
692
+ readonly "priorRunId": string;
693
+ readonly "runId": string;
694
+ };
181
695
  export type RetryParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; };
182
- export type RetryResult = { readonly "atCursor": string; readonly "deduped": boolean; readonly "generation": number; readonly "operational": OperationalStatus; readonly "phase": Phase; readonly "retriedTurnId": string; readonly "retryTurnId": string; readonly "runId": string; };
183
- export type RunAttachEventNotification = { readonly "event": AgentAttachEvent; readonly "execution": string; readonly "runId": string; readonly "subscriptionId": string; };
696
+ export type RetryResult =
697
+ { readonly "atCursor": string;
698
+ readonly "deduped": boolean;
699
+ readonly "generation": number;
700
+ readonly "operational": OperationalStatus;
701
+ readonly "phase": Phase;
702
+ readonly "retriedTurnId": string;
703
+ readonly "retryTurnId": string;
704
+ readonly "runId": string;
705
+ };
706
+ export type RunAttachEventNotification =
707
+ { readonly "event": AgentAttachEvent;
708
+ readonly "execution": string;
709
+ readonly "runId": string;
710
+ readonly "subscriptionId": string;
711
+ };
184
712
  export type RunAttachParams = { readonly "execution": string; readonly "runId": string; };
185
- export type RunAttachResult = { readonly "execution": string; readonly "runId": string; readonly "subscriptionId": string; };
713
+ export type RunAttachResult =
714
+ { readonly "execution": string;
715
+ readonly "runId": string;
716
+ readonly "subscriptionId": string;
717
+ };
186
718
  export type RunForceParams = { readonly "runId": string; };
187
- export type RunForceResult = { readonly "atCursor": string; readonly "runId": string; readonly "size": RunSize; readonly "source": ResolvedSource; readonly "status": RunStatus; readonly "title": string; };
719
+ export type RunForceResult =
720
+ { readonly "atCursor": string;
721
+ readonly "runId": string;
722
+ readonly "size": RunSize;
723
+ readonly "source": ResolvedSource;
724
+ readonly "status": RunStatus;
725
+ readonly "title": string;
726
+ };
188
727
  export type RunListParams = Record<string, never>;
189
728
  export type RunListResult = { readonly "runs": ReadonlyArray<RunStatusResult>; };
190
- export type RunLogEventNotification = { readonly "cursor": string; readonly "execution"?: string | null; readonly "record": LogRecord; readonly "runId": string; readonly "subscriptionId": string; };
191
- export type RunLogsParams = { readonly "execution"?: string | null; readonly "fromCursor"?: string | null; readonly "runId": string; };
192
- export type RunLogsResult = { readonly "atCursor": string; readonly "runId": string; readonly "subscriptionId": string; };
729
+ export type RunLogEventNotification =
730
+ { readonly "cursor": string;
731
+ readonly "execution"?: string
732
+ | null;
733
+ readonly "record": LogRecord;
734
+ readonly "runId": string;
735
+ readonly "subscriptionId": string;
736
+ };
737
+ export type RunLogsParams =
738
+ { readonly "execution"?: string
739
+ | null;
740
+ readonly "fromCursor"?: string
741
+ | null;
742
+ readonly "runId": string;
743
+ };
744
+ export type RunLogsResult =
745
+ { readonly "atCursor": string;
746
+ readonly "runId": string;
747
+ readonly "subscriptionId": string;
748
+ };
193
749
  export type RunMetadata = { readonly "tokenUsage"?: TokenUsage | null; };
194
- export type RunSize = "tiny" | "small" | "standard" | "large";
195
- export type RunStatus = { readonly "phase": "admitted"; } | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>; readonly "phase": "running"; } | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>; readonly "phase": "stopping"; } | { readonly "metadata"?: RunMetadata; readonly "phase": "finished"; readonly "terminalResult": TerminalResult; };
750
+ export type RunSize = "small" | "medium" | "large";
751
+ export type RunStatus =
752
+ { readonly "phase": "admitted";
753
+ }
754
+ | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>;
755
+ readonly "phase": "running";
756
+ }
757
+ | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>;
758
+ readonly "phase": "stopping";
759
+ }
760
+ | { readonly "metadata"?: RunMetadata;
761
+ readonly "phase": "finished";
762
+ readonly "terminalResult": TerminalResult;
763
+ };
196
764
  export type RunStatusParams = { readonly "runId": string; };
197
- export type RunStatusResult = { readonly "atCursor": string; readonly "runId": string; readonly "size": RunSize; readonly "source": ResolvedSource; readonly "status": RunStatus; readonly "title": string; };
198
- export type RunSubmission = { readonly "graph": GraphSpec; readonly "initialInput": unknown; readonly "runtime": RuntimePlan; readonly "source": ResolvedSource; readonly "submissionKey": string; readonly "title": string; };
765
+ export type RunStatusResult =
766
+ { readonly "atCursor": string;
767
+ readonly "runId": string;
768
+ readonly "size": RunSize;
769
+ readonly "source": ResolvedSource;
770
+ readonly "status": RunStatus;
771
+ readonly "title": string;
772
+ };
773
+ export type RunSubmission =
774
+ { readonly "graph": GraphSpec;
775
+ readonly "initialInput": unknown;
776
+ readonly "runtime": RuntimePlan;
777
+ readonly "source": ResolvedSource;
778
+ readonly "submissionKey": string;
779
+ readonly "title": string;
780
+ };
199
781
  export type RunSubmitParams = { readonly "runId": string; readonly "submission": RunSubmission; };
200
782
  export type RunSubmitResult = { readonly "runId": string; };
201
- export type RunWatchEventNotification = { readonly "cursor": string; readonly "runId": string; readonly "size": RunSize; readonly "source": ResolvedSource; readonly "status": RunStatus; readonly "subscriptionId": string; readonly "title": string; };
783
+ export type RunWatchEventNotification =
784
+ { readonly "cursor": string;
785
+ readonly "runId": string;
786
+ readonly "size": RunSize;
787
+ readonly "source": ResolvedSource;
788
+ readonly "status": RunStatus;
789
+ readonly "subscriptionId": string;
790
+ readonly "title": string;
791
+ };
202
792
  export type RunWatchParams = { readonly "fromCursor"?: string | null; readonly "runId": string; };
203
- export type RunWatchResult = { readonly "atCursor": string; readonly "runId": string; readonly "subscriptionId": string; };
204
- export type RuntimePlan = { readonly "harness": "codex"; readonly "nodes": Record<string, never>; readonly "provider": CodexProvider; readonly "size": RunSize; } | { readonly "harness": "claude"; readonly "nodes": Record<string, never>; readonly "provider": ClaudeProvider; readonly "size": RunSize; };
205
- export type ServerCapabilities = { readonly "agentAttach"?: boolean; readonly "graphProfiles"?: ReadonlyArray<GraphProfile>; readonly "logs"?: boolean; };
793
+ export type RunWatchResult =
794
+ { readonly "atCursor": string;
795
+ readonly "runId": string;
796
+ readonly "subscriptionId": string;
797
+ };
798
+ export type RuntimePlan =
799
+ { readonly "harness": "codex";
800
+ readonly "nodes": Record<string, never>;
801
+ readonly "provider": CodexProvider;
802
+ readonly "size": RunSize;
803
+ }
804
+ | { readonly "harness": "claude";
805
+ readonly "nodes": Record<string, never>;
806
+ readonly "provider": ClaudeProvider;
807
+ readonly "size": RunSize;
808
+ };
809
+ export type ServerCapabilities =
810
+ { readonly "agentAttach"?: boolean;
811
+ readonly "graphProfiles"?: ReadonlyArray<GraphProfile>;
812
+ readonly "logs"?: boolean;
813
+ };
206
814
  export type SessionScope = "execution" | "node_instance";
207
815
  export type StopMode = "drain" | "force";
208
- export type StopParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "mode": StopMode; };
209
- export type StopResult = { readonly "acceptedMode": StopMode; readonly "atCursor": string; readonly "deduped": boolean; readonly "effectiveMode": StopMode; readonly "generation": number; readonly "operational": OperationalStatus; readonly "phase": Phase; readonly "runId": string; };
210
- export type StructuralBounds = { readonly "attemptsPerNode": { readonly [key: string]: number }; readonly "maxNodeExecutions": number; readonly "peakConcurrency": number; readonly "termination": TerminationWitness; };
816
+ export type StopParams =
817
+ { readonly "idempotencyKey": string;
818
+ readonly "ifGeneration": number;
819
+ readonly "mode": StopMode;
820
+ };
821
+ export type StopResult =
822
+ { readonly "acceptedMode": StopMode;
823
+ readonly "atCursor": string;
824
+ readonly "deduped": boolean;
825
+ readonly "effectiveMode": StopMode;
826
+ readonly "generation": number;
827
+ readonly "operational": OperationalStatus;
828
+ readonly "phase": Phase;
829
+ readonly "runId": string;
830
+ };
831
+ export type StructuralBounds =
832
+ { readonly "attemptsPerNode": { readonly [key: string]: number };
833
+ readonly "maxNodeExecutions": number;
834
+ readonly "peakConcurrency": number;
835
+ readonly "termination": TerminationWitness;
836
+ };
211
837
  export type SubscriptionCancelParams = { readonly "subscriptionId": string; };
212
838
  export type SubscriptionCloseReason = "done" | "SLOW_CONSUMER";
213
- export type SubscriptionClosedNotification = { readonly "lastDeliveredCursor"?: string | null; readonly "reason": SubscriptionCloseReason; readonly "subscriptionId": string; };
214
- export type TerminalResult = { readonly "output": unknown; readonly "status": "succeeded"; } | { readonly "reason": string; readonly "status": "failed"; };
215
- export type TerminationWitness = { readonly "kind": "acyclic"; readonly "order": NonEmptyVec_of_NodeName; } | { readonly "kind": "bounded"; readonly "maxIterations": number; readonly "ranking": NonEmptyVec_of_FieldPath; };
216
- export type TokenUsage = { readonly "cacheCreationInputTokens"?: number | null; readonly "cacheReadInputTokens"?: number | null; readonly "complete": boolean; readonly "inputTokens": number; readonly "outputTokens": number; };
217
- export type UpdateParams = ({ readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "labels"?: Labels; readonly "logLevel"?: LogLevel; readonly "suspended"?: boolean; }) & ({ readonly "labels": unknown; } | { readonly "logLevel": unknown; } | { readonly "suspended": unknown; });
218
- export type UpdateResult = { readonly "atCursor": string; readonly "deduped": boolean; readonly "generation": number; readonly "operational": OperationalStatus; readonly "phase": Phase; readonly "runId": string; };
219
- export type WatchEvent = ({ readonly "admission"?: AdmissionTransition | null; readonly "status": ClusterStatus; readonly "type": "phase"; }) | { readonly "input": unknown; readonly "node": NodeAddress; readonly "type": "node_begin"; } | { readonly "node": NodeAddress; readonly "outcome": WorkerOutcome; readonly "type": "node_end"; } | { readonly "type": "bookmark"; } | { readonly "fault": BackendFault; readonly "type": "fault"; } | ({ readonly "final_status": ClusterStatus; readonly "stop_mode"?: StopMode | null; readonly "type": "finished"; });
839
+ export type SubscriptionClosedNotification =
840
+ { readonly "lastDeliveredCursor"?: string
841
+ | null;
842
+ readonly "reason": SubscriptionCloseReason;
843
+ readonly "subscriptionId": string;
844
+ };
845
+ export type TerminalResult =
846
+ { readonly "output": unknown;
847
+ readonly "status": "succeeded";
848
+ }
849
+ | { readonly "reason": string;
850
+ readonly "status": "failed";
851
+ };
852
+ export type TerminationWitness =
853
+ { readonly "kind": "acyclic";
854
+ readonly "order": NonEmptyVec_of_NodeName;
855
+ }
856
+ | { readonly "kind": "bounded";
857
+ readonly "maxIterations": number;
858
+ readonly "ranking": NonEmptyVec_of_FieldPath;
859
+ };
860
+ export type TokenUsage =
861
+ { readonly "cacheCreationInputTokens"?: number
862
+ | null;
863
+ readonly "cacheReadInputTokens"?: number
864
+ | null;
865
+ readonly "complete": boolean;
866
+ readonly "inputTokens": number;
867
+ readonly "outputTokens": number;
868
+ };
869
+ export type UpdateParams =
870
+ ({ readonly "idempotencyKey": string;
871
+ readonly "ifGeneration": number;
872
+ readonly "labels"?: Labels;
873
+ readonly "logLevel"?: LogLevel;
874
+ readonly "suspended"?: boolean;
875
+ }) & ({ readonly "labels": unknown;
876
+ }
877
+ | { readonly "logLevel": unknown;
878
+ }
879
+ | { readonly "suspended": unknown;
880
+ });
881
+ export type UpdateResult =
882
+ { readonly "atCursor": string;
883
+ readonly "deduped": boolean;
884
+ readonly "generation": number;
885
+ readonly "operational": OperationalStatus;
886
+ readonly "phase": Phase;
887
+ readonly "runId": string;
888
+ };
889
+ export type WatchEvent =
890
+ ({ readonly "admission"?: AdmissionTransition
891
+ | null;
892
+ readonly "status": ClusterStatus;
893
+ readonly "type": "phase";
894
+ })
895
+ | { readonly "input": unknown;
896
+ readonly "node": NodeAddress;
897
+ readonly "type": "node_begin";
898
+ }
899
+ | { readonly "node": NodeAddress;
900
+ readonly "outcome": WorkerOutcome;
901
+ readonly "type": "node_end";
902
+ }
903
+ | { readonly "type": "bookmark";
904
+ }
905
+ | { readonly "fault": BackendFault;
906
+ readonly "type": "fault";
907
+ }
908
+ | ({ readonly "final_status": ClusterStatus;
909
+ readonly "stop_mode"?: StopMode
910
+ | null;
911
+ readonly "type": "finished";
912
+ });
220
913
  export type WatchParams = { readonly "fromCursor"?: string | null; readonly "runId"?: string | null; };
221
- export type WatchResult = { readonly "atCursor"?: string | null; readonly "runId"?: string | null; readonly "subscriptionId": string; };
914
+ export type WatchResult =
915
+ { readonly "atCursor"?: string
916
+ | null;
917
+ readonly "runId"?: string
918
+ | null;
919
+ readonly "subscriptionId": string;
920
+ };
222
921
  export type WorkerErrorCode = "timeout" | "crash" | "malformed" | "refusal";
223
- export type WorkerFailureReason = "declared_failure" | "policy_denied" | "interactive_input_required" | "authentication_required" | "malformed_result";
922
+ export type WorkerFailureReason =
923
+ "declared_failure"
924
+ | "policy_denied"
925
+ | "interactive_input_required"
926
+ | "authentication_required"
927
+ | "malformed_result";
224
928
  export type WorkerOutcome = WorkerOutcomeWire & unknown;
225
- export type WorkerOutcomeWire = { readonly "artifacts": ReadonlyArray<ArtifactRef>; readonly "output": unknown; readonly "status": "verified"; } | { readonly "artifacts": ReadonlyArray<ArtifactRef>; readonly "diagnostic": unknown; readonly "output": unknown; readonly "signals": { readonly [key: string]: string }; readonly "status": "verifier"; } | { readonly "code": WorkerErrorCode; readonly "reason": WorkerFailureReason; readonly "status": "error"; };
929
+ export type WorkerOutcomeWire =
930
+ { readonly "artifacts": ReadonlyArray<ArtifactRef>;
931
+ readonly "output": unknown;
932
+ readonly "status": "verified";
933
+ }
934
+ | { readonly "artifacts": ReadonlyArray<ArtifactRef>;
935
+ readonly "diagnostic": unknown;
936
+ readonly "output": unknown;
937
+ readonly "signals": { readonly [key: string]: string };
938
+ readonly "status": "verifier";
939
+ }
940
+ | { readonly "code": WorkerErrorCode;
941
+ readonly "reason": WorkerFailureReason;
942
+ readonly "status": "error";
943
+ };
226
944
  export type WriteBinding = { readonly "target": ReadonlyArray<string>; readonly "value": NodeOutputSelector; };
227
945
 
228
946
  export interface ClusterMethodParams {