@the-open-engine/zeroshot 6.40.0 → 6.41.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/README.md +6 -0
- package/lib/cluster/connection-types.d.cts +2 -2
- package/lib/cluster/connection-types.d.mts +2 -2
- package/lib/cluster/connection-types.d.ts +2 -2
- package/lib/cluster/generated/protocol-schema.cjs +1 -1
- package/lib/cluster/generated/protocol-schema.mjs +1 -1
- package/lib/cluster/generated/protocol.cjs +4 -4
- package/lib/cluster/generated/protocol.d.cts +271 -9
- package/lib/cluster/generated/protocol.d.mts +271 -9
- package/lib/cluster/generated/protocol.d.ts +271 -9
- package/lib/cluster/generated/protocol.mjs +4 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -15
- package/scripts/generate-cluster-types.js +16 -1
- package/scripts/node-release-analyzer.js +17 -0
- package/scripts/node-release-commits.js +82 -0
- package/scripts/opcore-introduced-check.js +1 -1
- package/scripts/release-dry-run.js +1 -1
- package/scripts/release-preflight.js +3 -3
- package/scripts/semantic-release-notes.js +8 -2
- package/src/cluster/connection-types.ts +2 -2
- package/src/cluster/generated/protocol-schema.ts +1 -1
- package/src/cluster/generated/protocol.ts +67 -5
- package/scripts/rust-distribution.js +0 -924
|
@@ -5,14 +5,14 @@ export const JSON_RPC_VERSION = "2.0" as const;
|
|
|
5
5
|
export const PROTOCOL_VERSION = "openengine.cluster/v1" as const;
|
|
6
6
|
export const SUBSCRIPTION_QUEUE_CAPACITY = 1024 as const;
|
|
7
7
|
export const MAX_FRAME_BYTES = 1048576 as const;
|
|
8
|
-
export const CLUSTER_METHODS = ["initialize","plan","apply","update","stop","retry","resubmit","delete","get","watch","logs","agent/attach"] as const;
|
|
8
|
+
export const CLUSTER_METHODS = ["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"] as const;
|
|
9
9
|
export type ClusterMethod = (typeof CLUSTER_METHODS)[number];
|
|
10
10
|
|
|
11
|
-
export const UNARY_METHODS = ["initialize","plan","apply","update","stop","retry","resubmit","delete","get"] as const;
|
|
11
|
+
export const UNARY_METHODS = ["initialize","plan","apply","update","stop","retry","resubmit","delete","get","run/submit","run/list","run/status","run/force"] as const;
|
|
12
12
|
export type UnaryClusterMethod = (typeof UNARY_METHODS)[number];
|
|
13
|
-
export const SUBSCRIPTION_METHODS = ["watch","logs","agent/attach"] as const;
|
|
13
|
+
export const SUBSCRIPTION_METHODS = ["watch","logs","agent/attach","run/watch","run/logs","run/attach"] as const;
|
|
14
14
|
export type SubscriptionMethod = (typeof SUBSCRIPTION_METHODS)[number];
|
|
15
|
-
export const METHOD_RESULT_DEFINITIONS = {"initialize":"InitializeResult","plan":"PlanResult","apply":"ApplyResult","update":"UpdateResult","stop":"StopResult","retry":"RetryResult","resubmit":"ResubmitResult","delete":"DeleteResult","get":"GetResult","watch":"WatchResult","logs":"LogsResult","agent/attach":"AgentAttachResult"} as const;
|
|
15
|
+
export const METHOD_RESULT_DEFINITIONS = {"initialize":"InitializeResult","plan":"PlanResult","apply":"ApplyResult","update":"UpdateResult","stop":"StopResult","retry":"RetryResult","resubmit":"ResubmitResult","delete":"DeleteResult","get":"GetResult","watch":"WatchResult","logs":"LogsResult","agent/attach":"AgentAttachResult","run/submit":"RunSubmitResult","run/list":"RunListResult","run/status":"RunStatusResult","run/watch":"RunWatchResult","run/logs":"RunLogsResult","run/attach":"RunAttachResult","run/force":"RunForceResult"} as const;
|
|
16
16
|
|
|
17
17
|
export const JSON_RPC_ERROR_CODES = {
|
|
18
18
|
PARSE_ERROR: -32700,
|
|
@@ -25,6 +25,7 @@ export const JSON_RPC_ERROR_CODES = {
|
|
|
25
25
|
|
|
26
26
|
export const DOMAIN_ERROR_CODES = ["NOT_FOUND","GONE","SLOW_CONSUMER","UNSUPPORTED_PROTOCOL_VERSION","INTERNAL_ERROR"] as const;
|
|
27
27
|
|
|
28
|
+
export type ActiveExecution = { readonly "execution": string; readonly "node": string; };
|
|
28
29
|
export type AdmissionTransition = { readonly "runId": string; readonly "seedInput": unknown; readonly "spec": GraphSpec; };
|
|
29
30
|
export type AgentAttachClosedNotification = { readonly "reason": SubscriptionCloseReason; readonly "subscriptionId": string; };
|
|
30
31
|
export type AgentAttachEvent = { readonly "type": "working"; } | { readonly "text": string; readonly "type": "output"; } | { readonly "type": "settled"; };
|
|
@@ -41,10 +42,13 @@ export type BackendFault = BackendFaultWire;
|
|
|
41
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; };
|
|
42
43
|
export type CancelRequestParams = { readonly "id": RequestId; };
|
|
43
44
|
export type ChoiceBranch = { readonly "node": GraphNode; readonly "when": Guard; };
|
|
45
|
+
export type ClaudeProvider = "anthropic" | "openrouter";
|
|
44
46
|
export type ClusterStatus = { readonly "atCursor"?: string | null; readonly "currentRunId"?: string | null; readonly "observedGeneration"?: number | null; readonly "operational"?: OperationalStatus | null; readonly "phase": Phase; };
|
|
47
|
+
export type CodexProvider = "openai" | "openrouter";
|
|
45
48
|
export type ControlSelector = { readonly "field"?: string | null; readonly "name": string; readonly "source": ControlSource; };
|
|
46
49
|
export type ControlSource = "signal" | "error" | "group";
|
|
47
50
|
export type DataSelector = { readonly "path": ReadonlyArray<string>; readonly "source": "state"; } | { readonly "path": ReadonlyArray<string>; readonly "source": "item"; };
|
|
51
|
+
export type DeclaredEnvironment = ReadonlyArray<string>;
|
|
48
52
|
export type DeleteParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "ifRunId"?: string | null; };
|
|
49
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; };
|
|
50
54
|
export type DiagnosticPathSegment = { readonly "kind": "field"; readonly "name": string; } | { readonly "index": number; readonly "kind": "index"; } | { readonly "kind": "node"; readonly "name": string; };
|
|
@@ -63,7 +67,7 @@ export type GetResult = { readonly "atCursor"?: string | null; readonly "spec"?:
|
|
|
63
67
|
export type GraphDiagnostic = { readonly "code": GraphDiagnosticCode; readonly "message": string; readonly "path": ReadonlyArray<DiagnosticPathSegment>; readonly "relatedNodes": ReadonlyArray<string>; readonly "severity": DiagnosticSeverity; };
|
|
64
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";
|
|
65
69
|
export type GraphDiff = { readonly "added": ReadonlyArray<string>; readonly "changed": ReadonlyArray<string>; readonly "removed": ReadonlyArray<string>; };
|
|
66
|
-
export type GraphNode = { readonly "attempts": number; readonly "input": PayloadType; readonly "inputBindings": ReadonlyArray<InputBinding>; 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 "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"
|
|
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; };
|
|
67
71
|
export type GraphProfile = "openengine.graph.full/v1" | "openengine.graph.single-worker/v1";
|
|
68
72
|
export type GraphSpec = { readonly "initialInput": PayloadType; readonly "policy": PolicyBinding; readonly "profile": GraphProfile; readonly "root": GraphNode; };
|
|
69
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; };
|
|
@@ -74,6 +78,8 @@ export type Join = { readonly "kind": "all"; } | { readonly "kind": "any"; } | {
|
|
|
74
78
|
export type JsonRpcError = { readonly "code": number; readonly "data"?: DomainErrorData | null; readonly "message": string; };
|
|
75
79
|
export type JsonRpcErrorResponse = { readonly "error": JsonRpcError; readonly "id"?: RequestId | null; readonly "jsonrpc": string; };
|
|
76
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; };
|
|
77
83
|
export type JsonRpcNotification2 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": SubscriptionCancelParams; };
|
|
78
84
|
export type JsonRpcNotification3 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": SubscriptionClosedNotification; };
|
|
79
85
|
export type JsonRpcNotification4 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": CancelRequestParams; };
|
|
@@ -81,10 +87,18 @@ export type JsonRpcNotification5 = { readonly "jsonrpc": string; readonly "metho
|
|
|
81
87
|
export type JsonRpcNotification6 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": LogsClosedNotification; };
|
|
82
88
|
export type JsonRpcNotification7 = { readonly "jsonrpc": string; readonly "method": string; readonly "params": AgentAttachEventNotification; };
|
|
83
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; };
|
|
84
91
|
export type JsonRpcRequest = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": InitializeParams; };
|
|
85
92
|
export type JsonRpcRequest10 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": WatchParams; };
|
|
86
93
|
export type JsonRpcRequest11 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": LogsParams; };
|
|
87
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; };
|
|
88
102
|
export type JsonRpcRequest2 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": PlanParams; };
|
|
89
103
|
export type JsonRpcRequest3 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": ApplyParams; };
|
|
90
104
|
export type JsonRpcRequest4 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "method": string; readonly "params": GetParams; };
|
|
@@ -97,6 +111,13 @@ export type JsonRpcResponse = JsonRpcSuccess | JsonRpcErrorResponse;
|
|
|
97
111
|
export type JsonRpcResponse10 = JsonRpcSuccess10 | JsonRpcErrorResponse;
|
|
98
112
|
export type JsonRpcResponse11 = JsonRpcSuccess11 | JsonRpcErrorResponse;
|
|
99
113
|
export type JsonRpcResponse12 = JsonRpcSuccess12 | JsonRpcErrorResponse;
|
|
114
|
+
export type JsonRpcResponse13 = JsonRpcSuccess13 | JsonRpcErrorResponse;
|
|
115
|
+
export type JsonRpcResponse14 = JsonRpcSuccess14 | JsonRpcErrorResponse;
|
|
116
|
+
export type JsonRpcResponse15 = JsonRpcSuccess15 | JsonRpcErrorResponse;
|
|
117
|
+
export type JsonRpcResponse16 = JsonRpcSuccess16 | JsonRpcErrorResponse;
|
|
118
|
+
export type JsonRpcResponse17 = JsonRpcSuccess17 | JsonRpcErrorResponse;
|
|
119
|
+
export type JsonRpcResponse18 = JsonRpcSuccess18 | JsonRpcErrorResponse;
|
|
120
|
+
export type JsonRpcResponse19 = JsonRpcSuccess19 | JsonRpcErrorResponse;
|
|
100
121
|
export type JsonRpcResponse2 = JsonRpcSuccess2 | JsonRpcErrorResponse;
|
|
101
122
|
export type JsonRpcResponse3 = JsonRpcSuccess3 | JsonRpcErrorResponse;
|
|
102
123
|
export type JsonRpcResponse4 = JsonRpcSuccess4 | JsonRpcErrorResponse;
|
|
@@ -109,6 +130,13 @@ export type JsonRpcSuccess = { readonly "id": RequestId; readonly "jsonrpc": str
|
|
|
109
130
|
export type JsonRpcSuccess10 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": WatchResult; };
|
|
110
131
|
export type JsonRpcSuccess11 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": LogsResult; };
|
|
111
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; };
|
|
112
140
|
export type JsonRpcSuccess2 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": PlanResult; };
|
|
113
141
|
export type JsonRpcSuccess3 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": ApplyResult; };
|
|
114
142
|
export type JsonRpcSuccess4 = { readonly "id": RequestId; readonly "jsonrpc": string; readonly "result": GetResult; };
|
|
@@ -126,8 +154,10 @@ export type LogsClosedNotification = { readonly "reason": SubscriptionCloseReaso
|
|
|
126
154
|
export type LogsParams = Record<string, never>;
|
|
127
155
|
export type LogsResult = { readonly "subscriptionId": string; };
|
|
128
156
|
export type NodeAddress = { readonly "attempt": number; readonly "node": string; };
|
|
157
|
+
export type NodeInstructions = string;
|
|
129
158
|
export type NodeOutputChannel = "out" | "signal" | "diagnostic";
|
|
130
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"; };
|
|
131
161
|
export type NonEmptyVec_of_ChoiceBranch = ReadonlyArray<ChoiceBranch>;
|
|
132
162
|
export type NonEmptyVec_of_ControlSelector = ReadonlyArray<ControlSelector>;
|
|
133
163
|
export type NonEmptyVec_of_FieldPath = ReadonlyArray<ReadonlyArray<string>>;
|
|
@@ -141,14 +171,38 @@ export type PlanParams = { readonly "graph": GraphSpec; };
|
|
|
141
171
|
export type PlanResult = { readonly "bounds"?: StructuralBounds | null; readonly "diagnostics": ReadonlyArray<GraphDiagnostic>; readonly "ok": boolean; };
|
|
142
172
|
export type PolicyBinding = { readonly "default": PolicyDefault; readonly "policy": string; };
|
|
143
173
|
export type PolicyDefault = "deny";
|
|
174
|
+
export type ReasoningEffort = "low" | "medium" | "high" | "xhigh" | "max";
|
|
144
175
|
export type RecordField = { readonly "required": boolean; readonly "type": PayloadType; };
|
|
145
176
|
export type RedactionClass = "public" | "internal" | "confidential" | "restricted";
|
|
146
177
|
export type RequestId = string | number;
|
|
178
|
+
export type ResolvedSource = { readonly "branch": string; readonly "repository": string; readonly "revision": string; };
|
|
147
179
|
export type ResubmitParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "ifRunId": string; readonly "replacementInput"?: unknown; };
|
|
148
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; };
|
|
149
181
|
export type RetryParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; };
|
|
150
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; };
|
|
184
|
+
export type RunAttachParams = { readonly "execution": string; readonly "runId": string; };
|
|
185
|
+
export type RunAttachResult = { readonly "execution": string; readonly "runId": string; readonly "subscriptionId": string; };
|
|
186
|
+
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; };
|
|
188
|
+
export type RunListParams = Record<string, never>;
|
|
189
|
+
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; };
|
|
193
|
+
export type RunSize = "tiny" | "small" | "standard" | "large";
|
|
194
|
+
export type RunStatus = { readonly "phase": "admitted"; } | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>; readonly "phase": "running"; } | { readonly "activeExecutions": ReadonlyArray<ActiveExecution>; readonly "phase": "stopping"; } | { readonly "phase": "finished"; readonly "terminalResult": TerminalResult; };
|
|
195
|
+
export type RunStatusParams = { readonly "runId": string; };
|
|
196
|
+
export type RunStatusResult = { readonly "atCursor": string; readonly "runId": string; readonly "size": RunSize; readonly "source": ResolvedSource; readonly "status": RunStatus; readonly "title": string; };
|
|
197
|
+
export type RunSubmission = { readonly "graph": GraphSpec; readonly "initialInput": unknown; readonly "runtime": RuntimePlan; readonly "source": ResolvedSource; readonly "submissionKey": string; readonly "title": string; };
|
|
198
|
+
export type RunSubmitParams = { readonly "runId": string; readonly "submission": RunSubmission; };
|
|
199
|
+
export type RunSubmitResult = { readonly "runId": string; };
|
|
200
|
+
export type RunWatchEventNotification = { readonly "cursor": string; readonly "runId": string; readonly "size": RunSize; readonly "source": ResolvedSource; readonly "status": RunStatus; readonly "subscriptionId": string; readonly "title": string; };
|
|
201
|
+
export type RunWatchParams = { readonly "fromCursor"?: string | null; readonly "runId": string; };
|
|
202
|
+
export type RunWatchResult = { readonly "atCursor": string; readonly "runId": string; readonly "subscriptionId": string; };
|
|
203
|
+
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; };
|
|
151
204
|
export type ServerCapabilities = { readonly "agentAttach"?: boolean; readonly "graphProfiles"?: ReadonlyArray<GraphProfile>; readonly "logs"?: boolean; };
|
|
205
|
+
export type SessionScope = "execution" | "node_instance";
|
|
152
206
|
export type StopMode = "drain" | "force";
|
|
153
207
|
export type StopParams = { readonly "idempotencyKey": string; readonly "ifGeneration": number; readonly "mode": StopMode; };
|
|
154
208
|
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; };
|
|
@@ -174,6 +228,10 @@ export interface ClusterMethodParams {
|
|
|
174
228
|
readonly update: UpdateParams; readonly stop: StopParams; readonly retry: RetryParams;
|
|
175
229
|
readonly resubmit: ResubmitParams; readonly delete: DeleteParams; readonly get: GetParams;
|
|
176
230
|
readonly watch: WatchParams; readonly logs: LogsParams; readonly 'agent/attach': AgentAttachParams;
|
|
231
|
+
readonly 'run/submit': RunSubmitParams; readonly 'run/list': RunListParams;
|
|
232
|
+
readonly 'run/status': RunStatusParams; readonly 'run/watch': RunWatchParams;
|
|
233
|
+
readonly 'run/logs': RunLogsParams; readonly 'run/attach': RunAttachParams;
|
|
234
|
+
readonly 'run/force': RunForceParams;
|
|
177
235
|
}
|
|
178
236
|
|
|
179
237
|
export interface ClusterMethodResults {
|
|
@@ -181,4 +239,8 @@ export interface ClusterMethodResults {
|
|
|
181
239
|
readonly update: UpdateResult; readonly stop: StopResult; readonly retry: RetryResult;
|
|
182
240
|
readonly resubmit: ResubmitResult; readonly delete: DeleteResult; readonly get: GetResult;
|
|
183
241
|
readonly watch: WatchResult; readonly logs: LogsResult; readonly 'agent/attach': AgentAttachResult;
|
|
242
|
+
readonly 'run/submit': RunSubmitResult; readonly 'run/list': RunListResult;
|
|
243
|
+
readonly 'run/status': RunStatusResult; readonly 'run/watch': RunWatchResult;
|
|
244
|
+
readonly 'run/logs': RunLogsResult; readonly 'run/attach': RunAttachResult;
|
|
245
|
+
readonly 'run/force': RunForceResult;
|
|
184
246
|
}
|