@the-open-engine/zeroshot 6.40.0 → 6.41.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.
@@ -2,11 +2,11 @@ export declare const JSON_RPC_VERSION: "2.0";
2
2
  export declare const PROTOCOL_VERSION: "openengine.cluster/v1";
3
3
  export declare const SUBSCRIPTION_QUEUE_CAPACITY: 1024;
4
4
  export declare const MAX_FRAME_BYTES: 1048576;
5
- export declare const CLUSTER_METHODS: readonly ["initialize", "plan", "apply", "update", "stop", "retry", "resubmit", "delete", "get", "watch", "logs", "agent/attach"];
5
+ export declare const CLUSTER_METHODS: readonly ["initialize", "plan", "apply", "update", "stop", "retry", "resubmit", "delete", "get", "watch", "logs", "agent/attach", "run/submit", "run/list", "run/status", "run/watch", "run/logs", "run/attach", "run/force"];
6
6
  export type ClusterMethod = (typeof CLUSTER_METHODS)[number];
7
- export declare const UNARY_METHODS: readonly ["initialize", "plan", "apply", "update", "stop", "retry", "resubmit", "delete", "get"];
7
+ export declare const UNARY_METHODS: readonly ["initialize", "plan", "apply", "update", "stop", "retry", "resubmit", "delete", "get", "run/submit", "run/list", "run/status", "run/force"];
8
8
  export type UnaryClusterMethod = (typeof UNARY_METHODS)[number];
9
- export declare const SUBSCRIPTION_METHODS: readonly ["watch", "logs", "agent/attach"];
9
+ export declare const SUBSCRIPTION_METHODS: readonly ["watch", "logs", "agent/attach", "run/watch", "run/logs", "run/attach"];
10
10
  export type SubscriptionMethod = (typeof SUBSCRIPTION_METHODS)[number];
11
11
  export declare const METHOD_RESULT_DEFINITIONS: {
12
12
  readonly initialize: "InitializeResult";
@@ -21,6 +21,13 @@ export declare const METHOD_RESULT_DEFINITIONS: {
21
21
  readonly watch: "WatchResult";
22
22
  readonly logs: "LogsResult";
23
23
  readonly "agent/attach": "AgentAttachResult";
24
+ readonly "run/submit": "RunSubmitResult";
25
+ readonly "run/list": "RunListResult";
26
+ readonly "run/status": "RunStatusResult";
27
+ readonly "run/watch": "RunWatchResult";
28
+ readonly "run/logs": "RunLogsResult";
29
+ readonly "run/attach": "RunAttachResult";
30
+ readonly "run/force": "RunForceResult";
24
31
  };
25
32
  export declare const JSON_RPC_ERROR_CODES: {
26
33
  readonly PARSE_ERROR: -32700;
@@ -31,6 +38,10 @@ export declare const JSON_RPC_ERROR_CODES: {
31
38
  readonly APPLICATION_ERROR: -32000;
32
39
  };
33
40
  export declare const DOMAIN_ERROR_CODES: readonly ["NOT_FOUND", "GONE", "SLOW_CONSUMER", "UNSUPPORTED_PROTOCOL_VERSION", "INTERNAL_ERROR"];
41
+ export type ActiveExecution = {
42
+ readonly "execution": string;
43
+ readonly "node": string;
44
+ };
34
45
  export type AdmissionTransition = {
35
46
  readonly "runId": string;
36
47
  readonly "seedInput": unknown;
@@ -111,6 +122,7 @@ export type ChoiceBranch = {
111
122
  readonly "node": GraphNode;
112
123
  readonly "when": Guard;
113
124
  };
125
+ export type ClaudeProvider = "anthropic" | "openrouter";
114
126
  export type ClusterStatus = {
115
127
  readonly "atCursor"?: string | null;
116
128
  readonly "currentRunId"?: string | null;
@@ -118,6 +130,7 @@ export type ClusterStatus = {
118
130
  readonly "operational"?: OperationalStatus | null;
119
131
  readonly "phase": Phase;
120
132
  };
133
+ export type CodexProvider = "openai" | "openrouter";
121
134
  export type ControlSelector = {
122
135
  readonly "field"?: string | null;
123
136
  readonly "name": string;
@@ -131,6 +144,7 @@ export type DataSelector = {
131
144
  readonly "path": ReadonlyArray<string>;
132
145
  readonly "source": "item";
133
146
  };
147
+ export type DeclaredEnvironment = ReadonlyArray<string>;
134
148
  export type DeleteParams = {
135
149
  readonly "idempotencyKey": string;
136
150
  readonly "ifGeneration": number;
@@ -196,21 +210,23 @@ export type GraphDiff = {
196
210
  readonly "changed": ReadonlyArray<string>;
197
211
  readonly "removed": ReadonlyArray<string>;
198
212
  };
199
- export type GraphNode = {
213
+ export type GraphNode = ({
200
214
  readonly "attempts": number;
201
215
  readonly "input": PayloadType;
202
216
  readonly "inputBindings": ReadonlyArray<InputBinding>;
217
+ readonly "instructions"?: NodeInstructions | null;
203
218
  readonly "kind": "step";
204
219
  readonly "name": string;
205
220
  readonly "output": PayloadType;
206
221
  readonly "timeoutMs": number;
207
222
  readonly "worker": string;
208
223
  readonly "writeBindings": ReadonlyArray<WriteBinding>;
209
- } | {
224
+ }) | ({
210
225
  readonly "attempts": number;
211
226
  readonly "diagnostic": PayloadType;
212
227
  readonly "input": PayloadType;
213
228
  readonly "inputBindings": ReadonlyArray<InputBinding>;
229
+ readonly "instructions"?: NodeInstructions | null;
214
230
  readonly "kind": "verifier";
215
231
  readonly "name": string;
216
232
  readonly "output": PayloadType;
@@ -220,7 +236,7 @@ export type GraphNode = {
220
236
  readonly "timeoutMs": number;
221
237
  readonly "worker": string;
222
238
  readonly "writeBindings": ReadonlyArray<WriteBinding>;
223
- } | {
239
+ }) | {
224
240
  readonly "children": NonEmptyVec_of_GraphNode;
225
241
  readonly "kind": "seq";
226
242
  readonly "name": string;
@@ -240,15 +256,15 @@ export type GraphNode = {
240
256
  readonly "name": string;
241
257
  readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
242
258
  readonly "state": PayloadType;
243
- } | {
259
+ } | ({
244
260
  readonly "body": GraphNode;
245
261
  readonly "kind": "loop";
246
262
  readonly "maxIterations": number;
247
263
  readonly "name": string;
248
264
  readonly "promotedStatePaths": ReadonlyArray<ReadonlyArray<string>>;
249
265
  readonly "state": PayloadType;
250
- readonly "until": Guard;
251
- } | {
266
+ readonly "until"?: Guard | null;
267
+ }) | {
252
268
  readonly "body": GraphNode;
253
269
  readonly "kind": "map";
254
270
  readonly "maxItems": number;
@@ -335,6 +351,16 @@ export type JsonRpcNotification = {
335
351
  readonly "method": string;
336
352
  readonly "params": EventNotification;
337
353
  };
354
+ export type JsonRpcNotification10 = {
355
+ readonly "jsonrpc": string;
356
+ readonly "method": string;
357
+ readonly "params": RunLogEventNotification;
358
+ };
359
+ export type JsonRpcNotification11 = {
360
+ readonly "jsonrpc": string;
361
+ readonly "method": string;
362
+ readonly "params": RunAttachEventNotification;
363
+ };
338
364
  export type JsonRpcNotification2 = {
339
365
  readonly "jsonrpc": string;
340
366
  readonly "method": string;
@@ -370,6 +396,11 @@ export type JsonRpcNotification8 = {
370
396
  readonly "method": string;
371
397
  readonly "params": AgentAttachClosedNotification;
372
398
  };
399
+ export type JsonRpcNotification9 = {
400
+ readonly "jsonrpc": string;
401
+ readonly "method": string;
402
+ readonly "params": RunWatchEventNotification;
403
+ };
373
404
  export type JsonRpcRequest = {
374
405
  readonly "id": RequestId;
375
406
  readonly "jsonrpc": string;
@@ -394,6 +425,48 @@ export type JsonRpcRequest12 = {
394
425
  readonly "method": string;
395
426
  readonly "params": AgentAttachParams;
396
427
  };
428
+ export type JsonRpcRequest13 = {
429
+ readonly "id": RequestId;
430
+ readonly "jsonrpc": string;
431
+ readonly "method": string;
432
+ readonly "params": RunSubmitParams;
433
+ };
434
+ export type JsonRpcRequest14 = {
435
+ readonly "id": RequestId;
436
+ readonly "jsonrpc": string;
437
+ readonly "method": string;
438
+ readonly "params": RunListParams;
439
+ };
440
+ export type JsonRpcRequest15 = {
441
+ readonly "id": RequestId;
442
+ readonly "jsonrpc": string;
443
+ readonly "method": string;
444
+ readonly "params": RunStatusParams;
445
+ };
446
+ export type JsonRpcRequest16 = {
447
+ readonly "id": RequestId;
448
+ readonly "jsonrpc": string;
449
+ readonly "method": string;
450
+ readonly "params": RunWatchParams;
451
+ };
452
+ export type JsonRpcRequest17 = {
453
+ readonly "id": RequestId;
454
+ readonly "jsonrpc": string;
455
+ readonly "method": string;
456
+ readonly "params": RunLogsParams;
457
+ };
458
+ export type JsonRpcRequest18 = {
459
+ readonly "id": RequestId;
460
+ readonly "jsonrpc": string;
461
+ readonly "method": string;
462
+ readonly "params": RunAttachParams;
463
+ };
464
+ export type JsonRpcRequest19 = {
465
+ readonly "id": RequestId;
466
+ readonly "jsonrpc": string;
467
+ readonly "method": string;
468
+ readonly "params": RunForceParams;
469
+ };
397
470
  export type JsonRpcRequest2 = {
398
471
  readonly "id": RequestId;
399
472
  readonly "jsonrpc": string;
@@ -446,6 +519,13 @@ export type JsonRpcResponse = JsonRpcSuccess | JsonRpcErrorResponse;
446
519
  export type JsonRpcResponse10 = JsonRpcSuccess10 | JsonRpcErrorResponse;
447
520
  export type JsonRpcResponse11 = JsonRpcSuccess11 | JsonRpcErrorResponse;
448
521
  export type JsonRpcResponse12 = JsonRpcSuccess12 | JsonRpcErrorResponse;
522
+ export type JsonRpcResponse13 = JsonRpcSuccess13 | JsonRpcErrorResponse;
523
+ export type JsonRpcResponse14 = JsonRpcSuccess14 | JsonRpcErrorResponse;
524
+ export type JsonRpcResponse15 = JsonRpcSuccess15 | JsonRpcErrorResponse;
525
+ export type JsonRpcResponse16 = JsonRpcSuccess16 | JsonRpcErrorResponse;
526
+ export type JsonRpcResponse17 = JsonRpcSuccess17 | JsonRpcErrorResponse;
527
+ export type JsonRpcResponse18 = JsonRpcSuccess18 | JsonRpcErrorResponse;
528
+ export type JsonRpcResponse19 = JsonRpcSuccess19 | JsonRpcErrorResponse;
449
529
  export type JsonRpcResponse2 = JsonRpcSuccess2 | JsonRpcErrorResponse;
450
530
  export type JsonRpcResponse3 = JsonRpcSuccess3 | JsonRpcErrorResponse;
451
531
  export type JsonRpcResponse4 = JsonRpcSuccess4 | JsonRpcErrorResponse;
@@ -474,6 +554,41 @@ export type JsonRpcSuccess12 = {
474
554
  readonly "jsonrpc": string;
475
555
  readonly "result": AgentAttachResult;
476
556
  };
557
+ export type JsonRpcSuccess13 = {
558
+ readonly "id": RequestId;
559
+ readonly "jsonrpc": string;
560
+ readonly "result": RunSubmitResult;
561
+ };
562
+ export type JsonRpcSuccess14 = {
563
+ readonly "id": RequestId;
564
+ readonly "jsonrpc": string;
565
+ readonly "result": RunListResult;
566
+ };
567
+ export type JsonRpcSuccess15 = {
568
+ readonly "id": RequestId;
569
+ readonly "jsonrpc": string;
570
+ readonly "result": RunStatusResult;
571
+ };
572
+ export type JsonRpcSuccess16 = {
573
+ readonly "id": RequestId;
574
+ readonly "jsonrpc": string;
575
+ readonly "result": RunWatchResult;
576
+ };
577
+ export type JsonRpcSuccess17 = {
578
+ readonly "id": RequestId;
579
+ readonly "jsonrpc": string;
580
+ readonly "result": RunLogsResult;
581
+ };
582
+ export type JsonRpcSuccess18 = {
583
+ readonly "id": RequestId;
584
+ readonly "jsonrpc": string;
585
+ readonly "result": RunAttachResult;
586
+ };
587
+ export type JsonRpcSuccess19 = {
588
+ readonly "id": RequestId;
589
+ readonly "jsonrpc": string;
590
+ readonly "result": RunForceResult;
591
+ };
477
592
  export type JsonRpcSuccess2 = {
478
593
  readonly "id": RequestId;
479
594
  readonly "jsonrpc": string;
@@ -540,12 +655,23 @@ export type NodeAddress = {
540
655
  readonly "attempt": number;
541
656
  readonly "node": string;
542
657
  };
658
+ export type NodeInstructions = string;
543
659
  export type NodeOutputChannel = "out" | "signal" | "diagnostic";
544
660
  export type NodeOutputSelector = {
545
661
  readonly "channel": NodeOutputChannel;
546
662
  readonly "node": string;
547
663
  readonly "path": ReadonlyArray<string>;
548
664
  };
665
+ export type NodeRuntimeBinding = ({
666
+ readonly "effort"?: ReasoningEffort | null;
667
+ readonly "env"?: DeclaredEnvironment;
668
+ readonly "kind": "agent";
669
+ readonly "model": string;
670
+ readonly "sessionScope"?: SessionScope;
671
+ }) | {
672
+ readonly "env"?: DeclaredEnvironment;
673
+ readonly "kind": "git_delivery";
674
+ };
549
675
  export type NonEmptyVec_of_ChoiceBranch = ReadonlyArray<ChoiceBranch>;
550
676
  export type NonEmptyVec_of_ControlSelector = ReadonlyArray<ControlSelector>;
551
677
  export type NonEmptyVec_of_FieldPath = ReadonlyArray<ReadonlyArray<string>>;
@@ -595,12 +721,18 @@ export type PolicyBinding = {
595
721
  readonly "policy": string;
596
722
  };
597
723
  export type PolicyDefault = "deny";
724
+ export type ReasoningEffort = "low" | "medium" | "high" | "xhigh" | "max";
598
725
  export type RecordField = {
599
726
  readonly "required": boolean;
600
727
  readonly "type": PayloadType;
601
728
  };
602
729
  export type RedactionClass = "public" | "internal" | "confidential" | "restricted";
603
730
  export type RequestId = string | number;
731
+ export type ResolvedSource = {
732
+ readonly "branch": string;
733
+ readonly "repository": string;
734
+ readonly "revision": string;
735
+ };
604
736
  export type ResubmitParams = {
605
737
  readonly "idempotencyKey": string;
606
738
  readonly "ifGeneration": number;
@@ -630,11 +762,127 @@ export type RetryResult = {
630
762
  readonly "retryTurnId": string;
631
763
  readonly "runId": string;
632
764
  };
765
+ export type RunAttachEventNotification = {
766
+ readonly "event": AgentAttachEvent;
767
+ readonly "execution": string;
768
+ readonly "runId": string;
769
+ readonly "subscriptionId": string;
770
+ };
771
+ export type RunAttachParams = {
772
+ readonly "execution": string;
773
+ readonly "runId": string;
774
+ };
775
+ export type RunAttachResult = {
776
+ readonly "execution": string;
777
+ readonly "runId": string;
778
+ readonly "subscriptionId": string;
779
+ };
780
+ export type RunForceParams = {
781
+ readonly "runId": string;
782
+ };
783
+ export type RunForceResult = {
784
+ readonly "atCursor": string;
785
+ readonly "runId": string;
786
+ readonly "size": RunSize;
787
+ readonly "source": ResolvedSource;
788
+ readonly "status": RunStatus;
789
+ readonly "title": string;
790
+ };
791
+ export type RunListParams = Record<string, never>;
792
+ export type RunListResult = {
793
+ readonly "runs": ReadonlyArray<RunStatusResult>;
794
+ };
795
+ export type RunLogEventNotification = {
796
+ readonly "cursor": string;
797
+ readonly "execution"?: string | null;
798
+ readonly "record": LogRecord;
799
+ readonly "runId": string;
800
+ readonly "subscriptionId": string;
801
+ };
802
+ export type RunLogsParams = {
803
+ readonly "execution"?: string | null;
804
+ readonly "fromCursor"?: string | null;
805
+ readonly "runId": string;
806
+ };
807
+ export type RunLogsResult = {
808
+ readonly "atCursor": string;
809
+ readonly "runId": string;
810
+ readonly "subscriptionId": string;
811
+ };
812
+ export type RunSize = "tiny" | "small" | "standard" | "large";
813
+ export type RunStatus = {
814
+ readonly "phase": "admitted";
815
+ } | {
816
+ readonly "activeExecutions": ReadonlyArray<ActiveExecution>;
817
+ readonly "phase": "running";
818
+ } | {
819
+ readonly "activeExecutions": ReadonlyArray<ActiveExecution>;
820
+ readonly "phase": "stopping";
821
+ } | {
822
+ readonly "phase": "finished";
823
+ readonly "terminalResult": TerminalResult;
824
+ };
825
+ export type RunStatusParams = {
826
+ readonly "runId": string;
827
+ };
828
+ export type RunStatusResult = {
829
+ readonly "atCursor": string;
830
+ readonly "runId": string;
831
+ readonly "size": RunSize;
832
+ readonly "source": ResolvedSource;
833
+ readonly "status": RunStatus;
834
+ readonly "title": string;
835
+ };
836
+ export type RunSubmission = {
837
+ readonly "graph": GraphSpec;
838
+ readonly "initialInput": unknown;
839
+ readonly "runtime": RuntimePlan;
840
+ readonly "source": ResolvedSource;
841
+ readonly "submissionKey": string;
842
+ readonly "title": string;
843
+ };
844
+ export type RunSubmitParams = {
845
+ readonly "runId": string;
846
+ readonly "submission": RunSubmission;
847
+ };
848
+ export type RunSubmitResult = {
849
+ readonly "runId": string;
850
+ };
851
+ export type RunWatchEventNotification = {
852
+ readonly "cursor": string;
853
+ readonly "runId": string;
854
+ readonly "size": RunSize;
855
+ readonly "source": ResolvedSource;
856
+ readonly "status": RunStatus;
857
+ readonly "subscriptionId": string;
858
+ readonly "title": string;
859
+ };
860
+ export type RunWatchParams = {
861
+ readonly "fromCursor"?: string | null;
862
+ readonly "runId": string;
863
+ };
864
+ export type RunWatchResult = {
865
+ readonly "atCursor": string;
866
+ readonly "runId": string;
867
+ readonly "subscriptionId": string;
868
+ };
869
+ export type RuntimePlan = {
870
+ readonly "harness": "codex";
871
+ readonly "nodes": Record<string, never>;
872
+ readonly "provider": CodexProvider;
873
+ readonly "size": RunSize;
874
+ } | {
875
+ readonly "harness": "claude";
876
+ readonly "nodes": Record<string, never>;
877
+ readonly "provider": ClaudeProvider;
878
+ readonly "size": RunSize;
879
+ };
633
880
  export type ServerCapabilities = {
634
881
  readonly "agentAttach"?: boolean;
635
882
  readonly "graphProfiles"?: ReadonlyArray<GraphProfile>;
636
883
  readonly "logs"?: boolean;
637
884
  };
885
+ export type SessionScope = "execution" | "node_instance";
638
886
  export type StopMode = "drain" | "force";
639
887
  export type StopParams = {
640
888
  readonly "idempotencyKey": string;
@@ -772,6 +1020,13 @@ export interface ClusterMethodParams {
772
1020
  readonly watch: WatchParams;
773
1021
  readonly logs: LogsParams;
774
1022
  readonly 'agent/attach': AgentAttachParams;
1023
+ readonly 'run/submit': RunSubmitParams;
1024
+ readonly 'run/list': RunListParams;
1025
+ readonly 'run/status': RunStatusParams;
1026
+ readonly 'run/watch': RunWatchParams;
1027
+ readonly 'run/logs': RunLogsParams;
1028
+ readonly 'run/attach': RunAttachParams;
1029
+ readonly 'run/force': RunForceParams;
775
1030
  }
776
1031
  export interface ClusterMethodResults {
777
1032
  readonly initialize: InitializeResult;
@@ -786,4 +1041,11 @@ export interface ClusterMethodResults {
786
1041
  readonly watch: WatchResult;
787
1042
  readonly logs: LogsResult;
788
1043
  readonly 'agent/attach': AgentAttachResult;
1044
+ readonly 'run/submit': RunSubmitResult;
1045
+ readonly 'run/list': RunListResult;
1046
+ readonly 'run/status': RunStatusResult;
1047
+ readonly 'run/watch': RunWatchResult;
1048
+ readonly 'run/logs': RunLogsResult;
1049
+ readonly 'run/attach': RunAttachResult;
1050
+ readonly 'run/force': RunForceResult;
789
1051
  }