@drisp/protocol 0.6.0 → 0.6.2
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/dist/chunk-HMYWICNI.js +202 -0
- package/dist/domain-B-kg2pa_.d.ts +376 -0
- package/dist/index.d.ts +2 -377
- package/dist/index.js +153 -319
- package/dist/v2.d.ts +1283 -0
- package/dist/v2.js +613 -0
- package/package.json +56 -51
- package/schema/v2/checkpoint.json +566 -0
- package/schema/v2/client.json +479 -0
- package/schema/v2/command.json +388 -0
- package/schema/v2/connectAlreadyConnected.json +30 -0
- package/schema/v2/connectApproveRequest.json +26 -0
- package/schema/v2/connectCode.json +20 -0
- package/schema/v2/connectCodeRequest.json +13 -0
- package/schema/v2/connectDenyRequest.json +15 -0
- package/schema/v2/connectPending.json +33 -0
- package/schema/v2/connectPollRequest.json +15 -0
- package/schema/v2/connectRedeem.json +52 -0
- package/schema/v2/connectRedeemRequest.json +39 -0
- package/schema/v2/connectStart.json +37 -0
- package/schema/v2/connectStartRequest.json +33 -0
- package/schema/v2/grant.json +337 -0
- package/schema/v2/permissionAnswer.json +26 -0
- package/schema/v2/run.json +620 -0
- package/schema/v2/runner.json +1090 -0
- package/schema/v2/runnerAdoptRequest.json +13 -0
- package/schema/v2/runnerDisconnect.json +20 -0
- package/schema/v2/runnerDisconnectPreview.json +58 -0
- package/schema/v2/runnerDisconnectRequest.json +13 -0
- package/schema/v2/runnerList.json +459 -0
- package/schema/v2/runnerUpdateRequest.json +29 -0
- package/schema/v2/teamDefaultRequest.json +63 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { A as AssignmentRejectedReason, a as AssignmentRejectedReasonSchema, b as Attachment, c as AttachmentSchema, E as ExhaustedCap, d as ExhaustedCapSchema, H as HardFailureCode, e as HardFailureCodeSchema, I as InstalledWorkflow, f as InstalledWorkflowSchema, g as InstalledWorkflowSource, h as InstalledWorkflowSourceSchema, i as Interruption, j as InterruptionSchema, R as Run, k as RunSchema, l as RunSpec, m as RunSpecSchema, n as RunStatus, o as RunStatusSchema, p as RuntimeDecision, q as RuntimeDecisionSchema, r as RuntimeIntent, s as RuntimeIntentSchema, T as Turn, t as TurnContinuation, u as TurnContinuationSchema, v as TurnOutcome, w as TurnOutcomeSchema, x as TurnSchema } from './domain-B-kg2pa_.js';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -12,380 +13,6 @@ import { z } from 'zod';
|
|
|
12
13
|
declare const PROTOCOL_VERSION: 1;
|
|
13
14
|
type ProtocolVersion = typeof PROTOCOL_VERSION;
|
|
14
15
|
|
|
15
|
-
/**
|
|
16
|
-
* Workflow-execution domain shapes as the domain docs define them
|
|
17
|
-
* (UBIQUITOUS_LANGUAGE.md, ADR 0014-0016): the Workflow Run, the Turn, and the
|
|
18
|
-
* Interruption a Run parks on when it needs a human. These are the values the
|
|
19
|
-
* frames in `frames.ts` carry; nothing here knows about the wire.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The outcome of a Workflow Run. Terminal: `completed`, `failed`, `cancelled`.
|
|
24
|
-
* Non-terminal: `running`, and `awaiting_attention` — suspended until a human
|
|
25
|
-
* replies. `blocked` and `exhausted` are no longer emitted (both route to
|
|
26
|
-
* `awaiting_attention`) but stay valid on historical rows.
|
|
27
|
-
*/
|
|
28
|
-
declare const RunStatusSchema: z.ZodEnum<{
|
|
29
|
-
running: "running";
|
|
30
|
-
awaiting_attention: "awaiting_attention";
|
|
31
|
-
completed: "completed";
|
|
32
|
-
blocked: "blocked";
|
|
33
|
-
exhausted: "exhausted";
|
|
34
|
-
failed: "failed";
|
|
35
|
-
cancelled: "cancelled";
|
|
36
|
-
}>;
|
|
37
|
-
type RunStatus = z.infer<typeof RunStatusSchema>;
|
|
38
|
-
/**
|
|
39
|
-
* One execution of a whole Workflow — the loop spanning every Turn from start
|
|
40
|
-
* to a terminal Run Status. Many per Athena Session.
|
|
41
|
-
*/
|
|
42
|
-
declare const RunSchema: z.ZodObject<{
|
|
43
|
-
runId: z.ZodString;
|
|
44
|
-
athenaSessionId: z.ZodString;
|
|
45
|
-
workflowName: z.ZodOptional<z.ZodString>;
|
|
46
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
47
|
-
iteration: z.ZodInt;
|
|
48
|
-
maxIterations: z.ZodOptional<z.ZodInt>;
|
|
49
|
-
status: z.ZodEnum<{
|
|
50
|
-
running: "running";
|
|
51
|
-
awaiting_attention: "awaiting_attention";
|
|
52
|
-
completed: "completed";
|
|
53
|
-
blocked: "blocked";
|
|
54
|
-
exhausted: "exhausted";
|
|
55
|
-
failed: "failed";
|
|
56
|
-
cancelled: "cancelled";
|
|
57
|
-
}>;
|
|
58
|
-
stopReason: z.ZodOptional<z.ZodString>;
|
|
59
|
-
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
60
|
-
startedAt: z.ZodNumber;
|
|
61
|
-
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
type Run = z.infer<typeof RunSchema>;
|
|
64
|
-
/**
|
|
65
|
-
* How a Turn relates to the Agent Session before it: a fresh spawn, a resume
|
|
66
|
-
* of the prior Agent Session (Nudge / Retry / human reply), or reuse of the
|
|
67
|
-
* one already running.
|
|
68
|
-
*/
|
|
69
|
-
declare const TurnContinuationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
-
mode: z.ZodLiteral<"fresh">;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
mode: z.ZodLiteral<"resume">;
|
|
73
|
-
handle: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
mode: z.ZodLiteral<"reuse-current">;
|
|
76
|
-
}, z.core.$strip>], "mode">;
|
|
77
|
-
type TurnContinuation = z.infer<typeof TurnContinuationSchema>;
|
|
78
|
-
/**
|
|
79
|
-
* The Terminal Outcome after a Turn: continue looping, stop with a terminal
|
|
80
|
-
* Run Status, or suspend in `awaiting_attention` (ADR 0004, ADR 0014 §7).
|
|
81
|
-
*/
|
|
82
|
-
declare const TurnOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
-
kind: z.ZodLiteral<"continue">;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
kind: z.ZodLiteral<"stop">;
|
|
86
|
-
status: z.ZodEnum<{
|
|
87
|
-
running: "running";
|
|
88
|
-
awaiting_attention: "awaiting_attention";
|
|
89
|
-
completed: "completed";
|
|
90
|
-
blocked: "blocked";
|
|
91
|
-
exhausted: "exhausted";
|
|
92
|
-
failed: "failed";
|
|
93
|
-
cancelled: "cancelled";
|
|
94
|
-
}>;
|
|
95
|
-
stopReason: z.ZodOptional<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
-
kind: z.ZodLiteral<"suspend">;
|
|
98
|
-
status: z.ZodEnum<{
|
|
99
|
-
running: "running";
|
|
100
|
-
awaiting_attention: "awaiting_attention";
|
|
101
|
-
completed: "completed";
|
|
102
|
-
blocked: "blocked";
|
|
103
|
-
exhausted: "exhausted";
|
|
104
|
-
failed: "failed";
|
|
105
|
-
cancelled: "cancelled";
|
|
106
|
-
}>;
|
|
107
|
-
stopReason: z.ZodString;
|
|
108
|
-
}, z.core.$strip>], "kind">;
|
|
109
|
-
type TurnOutcome = z.infer<typeof TurnOutcomeSchema>;
|
|
110
|
-
/**
|
|
111
|
-
* One agent execution — a single `claude -p` invocation / one Codex
|
|
112
|
-
* `thread.run` — numbered by its Iteration within the Run.
|
|
113
|
-
*/
|
|
114
|
-
declare const TurnSchema: z.ZodObject<{
|
|
115
|
-
runId: z.ZodString;
|
|
116
|
-
iteration: z.ZodInt;
|
|
117
|
-
continuation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
118
|
-
mode: z.ZodLiteral<"fresh">;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
mode: z.ZodLiteral<"resume">;
|
|
121
|
-
handle: z.ZodString;
|
|
122
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
-
mode: z.ZodLiteral<"reuse-current">;
|
|
124
|
-
}, z.core.$strip>], "mode">;
|
|
125
|
-
adapterSessionId: z.ZodOptional<z.ZodString>;
|
|
126
|
-
startedAt: z.ZodNumber;
|
|
127
|
-
endedAt: z.ZodOptional<z.ZodNumber>;
|
|
128
|
-
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
129
|
-
kind: z.ZodLiteral<"continue">;
|
|
130
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
-
kind: z.ZodLiteral<"stop">;
|
|
132
|
-
status: z.ZodEnum<{
|
|
133
|
-
running: "running";
|
|
134
|
-
awaiting_attention: "awaiting_attention";
|
|
135
|
-
completed: "completed";
|
|
136
|
-
blocked: "blocked";
|
|
137
|
-
exhausted: "exhausted";
|
|
138
|
-
failed: "failed";
|
|
139
|
-
cancelled: "cancelled";
|
|
140
|
-
}>;
|
|
141
|
-
stopReason: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
-
kind: z.ZodLiteral<"suspend">;
|
|
144
|
-
status: z.ZodEnum<{
|
|
145
|
-
running: "running";
|
|
146
|
-
awaiting_attention: "awaiting_attention";
|
|
147
|
-
completed: "completed";
|
|
148
|
-
blocked: "blocked";
|
|
149
|
-
exhausted: "exhausted";
|
|
150
|
-
failed: "failed";
|
|
151
|
-
cancelled: "cancelled";
|
|
152
|
-
}>;
|
|
153
|
-
stopReason: z.ZodString;
|
|
154
|
-
}, z.core.$strip>], "kind">>;
|
|
155
|
-
}, z.core.$strip>;
|
|
156
|
-
type Turn = z.infer<typeof TurnSchema>;
|
|
157
|
-
/** A hard (non-transient) Turn failure class — see `failureTaxonomy.ts`. */
|
|
158
|
-
declare const HardFailureCodeSchema: z.ZodEnum<{
|
|
159
|
-
auth: "auth";
|
|
160
|
-
billing: "billing";
|
|
161
|
-
invalid_request: "invalid_request";
|
|
162
|
-
model_not_found: "model_not_found";
|
|
163
|
-
unclassified: "unclassified";
|
|
164
|
-
}>;
|
|
165
|
-
type HardFailureCode = z.infer<typeof HardFailureCodeSchema>;
|
|
166
|
-
/**
|
|
167
|
-
* A Run budget that can be exhausted (ADR 0014 §3-§4, §7; ADR 0018 §2, §10):
|
|
168
|
-
* the Retry cap, the Nudge cap, `maxIterations`, the Handover cap — a streak
|
|
169
|
-
* of unproductive Handovers — and the opt-in cumulative token budget.
|
|
170
|
-
*/
|
|
171
|
-
declare const ExhaustedCapSchema: z.ZodEnum<{
|
|
172
|
-
retry: "retry";
|
|
173
|
-
nudge: "nudge";
|
|
174
|
-
iterations: "iterations";
|
|
175
|
-
handover: "handover";
|
|
176
|
-
tokens: "tokens";
|
|
177
|
-
}>;
|
|
178
|
-
type ExhaustedCap = z.infer<typeof ExhaustedCapSchema>;
|
|
179
|
-
/**
|
|
180
|
-
* Why a Run parked in `awaiting_attention` — the payload of a Needs-attention
|
|
181
|
-
* escalation. One of: a declared `NEEDS_HUMAN` marker (spelled
|
|
182
|
-
* `WORKFLOW_BLOCKED` before 0.6), an elicitation the agent raised
|
|
183
|
-
* (`AskUserQuestion`), a hard failure, or an exhausted cap/ceiling.
|
|
184
|
-
* Resolved by a human reply (`answer` for a question, `steer` otherwise),
|
|
185
|
-
* which resumes the intact Agent Session.
|
|
186
|
-
*/
|
|
187
|
-
declare const InterruptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
188
|
-
kind: z.ZodLiteral<"blocked">;
|
|
189
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
190
|
-
message: z.ZodString;
|
|
191
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
192
|
-
kind: z.ZodLiteral<"question">;
|
|
193
|
-
requestId: z.ZodOptional<z.ZodString>;
|
|
194
|
-
question: z.ZodOptional<z.ZodString>;
|
|
195
|
-
message: z.ZodString;
|
|
196
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
197
|
-
kind: z.ZodLiteral<"hard_failure">;
|
|
198
|
-
code: z.ZodEnum<{
|
|
199
|
-
auth: "auth";
|
|
200
|
-
billing: "billing";
|
|
201
|
-
invalid_request: "invalid_request";
|
|
202
|
-
model_not_found: "model_not_found";
|
|
203
|
-
unclassified: "unclassified";
|
|
204
|
-
}>;
|
|
205
|
-
message: z.ZodString;
|
|
206
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
-
kind: z.ZodLiteral<"cap_exhausted">;
|
|
208
|
-
cap: z.ZodEnum<{
|
|
209
|
-
retry: "retry";
|
|
210
|
-
nudge: "nudge";
|
|
211
|
-
iterations: "iterations";
|
|
212
|
-
handover: "handover";
|
|
213
|
-
tokens: "tokens";
|
|
214
|
-
}>;
|
|
215
|
-
limit: z.ZodOptional<z.ZodInt>;
|
|
216
|
-
resource: z.ZodOptional<z.ZodObject<{
|
|
217
|
-
cause: z.ZodEnum<{
|
|
218
|
-
iterations: "iterations";
|
|
219
|
-
tokens: "tokens";
|
|
220
|
-
context: "context";
|
|
221
|
-
restart: "restart";
|
|
222
|
-
}>;
|
|
223
|
-
limit: z.ZodNumber;
|
|
224
|
-
used: z.ZodNumber;
|
|
225
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
226
|
-
checkpointPath: z.ZodOptional<z.ZodString>;
|
|
227
|
-
fresh: z.ZodBoolean;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
message: z.ZodString;
|
|
230
|
-
}, z.core.$strip>], "kind">;
|
|
231
|
-
type Interruption = z.infer<typeof InterruptionSchema>;
|
|
232
|
-
/**
|
|
233
|
-
* The requested shape of a Run, owned by the hub; the runner owns its
|
|
234
|
-
* realization. Every field is optional *on the wire* and unknown fields are
|
|
235
|
-
* kept (protocol §15): the runner's admission gate — not frame parsing — is
|
|
236
|
-
* where a missing `prompt` becomes a first-class `malformed_assignment`
|
|
237
|
-
* rejection, and orthogonal readers (artifact capture) read the raw spec.
|
|
238
|
-
*/
|
|
239
|
-
declare const RunSpecSchema: z.ZodObject<{
|
|
240
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
241
|
-
athenaSessionId: z.ZodOptional<z.ZodString>;
|
|
242
|
-
adapterResumeSessionId: z.ZodOptional<z.ZodString>;
|
|
243
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
244
|
-
projectDir: z.ZodOptional<z.ZodString>;
|
|
245
|
-
workflow: z.ZodOptional<z.ZodObject<{
|
|
246
|
-
source: z.ZodOptional<z.ZodString>;
|
|
247
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
248
|
-
version: z.ZodOptional<z.ZodString>;
|
|
249
|
-
}, z.core.$loose>>;
|
|
250
|
-
harness: z.ZodOptional<z.ZodString>;
|
|
251
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
252
|
-
timeoutSec: z.ZodOptional<z.ZodNumber>;
|
|
253
|
-
/** Per-run callback channel minted by the hub; both or neither. */
|
|
254
|
-
callbackWsUrl: z.ZodOptional<z.ZodString>;
|
|
255
|
-
callbackToken: z.ZodOptional<z.ZodString>;
|
|
256
|
-
}, z.core.$loose>;
|
|
257
|
-
type RunSpec = z.infer<typeof RunSpecSchema>;
|
|
258
|
-
/** Typed semantic intent of a decision — the adapter maps it to hook output. */
|
|
259
|
-
declare const RuntimeIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
260
|
-
kind: z.ZodLiteral<"permission_allow">;
|
|
261
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
262
|
-
kind: z.ZodLiteral<"permission_deny">;
|
|
263
|
-
reason: z.ZodString;
|
|
264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
-
kind: z.ZodLiteral<"question_answer">;
|
|
266
|
-
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
267
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
-
kind: z.ZodLiteral<"pre_tool_allow">;
|
|
269
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
270
|
-
kind: z.ZodLiteral<"pre_tool_deny">;
|
|
271
|
-
reason: z.ZodString;
|
|
272
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
-
kind: z.ZodLiteral<"stop_block">;
|
|
274
|
-
reason: z.ZodString;
|
|
275
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
276
|
-
kind: z.ZodLiteral<"compact_block">;
|
|
277
|
-
reason: z.ZodString;
|
|
278
|
-
}, z.core.$strip>], "kind">;
|
|
279
|
-
type RuntimeIntent = z.infer<typeof RuntimeIntentSchema>;
|
|
280
|
-
/**
|
|
281
|
-
* A delayed answer that resolves a prior runtime event needing user input
|
|
282
|
-
* (a permission request, a question). Correlated by `requestId` on the frame.
|
|
283
|
-
*/
|
|
284
|
-
declare const RuntimeDecisionSchema: z.ZodObject<{
|
|
285
|
-
type: z.ZodEnum<{
|
|
286
|
-
passthrough: "passthrough";
|
|
287
|
-
block: "block";
|
|
288
|
-
json: "json";
|
|
289
|
-
}>;
|
|
290
|
-
source: z.ZodEnum<{
|
|
291
|
-
user: "user";
|
|
292
|
-
timeout: "timeout";
|
|
293
|
-
rule: "rule";
|
|
294
|
-
}>;
|
|
295
|
-
intent: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
296
|
-
kind: z.ZodLiteral<"permission_allow">;
|
|
297
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
298
|
-
kind: z.ZodLiteral<"permission_deny">;
|
|
299
|
-
reason: z.ZodString;
|
|
300
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
-
kind: z.ZodLiteral<"question_answer">;
|
|
302
|
-
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
303
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
-
kind: z.ZodLiteral<"pre_tool_allow">;
|
|
305
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
-
kind: z.ZodLiteral<"pre_tool_deny">;
|
|
307
|
-
reason: z.ZodString;
|
|
308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
-
kind: z.ZodLiteral<"stop_block">;
|
|
310
|
-
reason: z.ZodString;
|
|
311
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
-
kind: z.ZodLiteral<"compact_block">;
|
|
313
|
-
reason: z.ZodString;
|
|
314
|
-
}, z.core.$strip>], "kind">>;
|
|
315
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
316
|
-
data: z.ZodOptional<z.ZodUnknown>;
|
|
317
|
-
}, z.core.$strip>;
|
|
318
|
-
type RuntimeDecision = z.infer<typeof RuntimeDecisionSchema>;
|
|
319
|
-
/**
|
|
320
|
-
* The binding between a paired runner instance and one hub-side runner.
|
|
321
|
-
* Owned by the hub; the runner only mirrors it.
|
|
322
|
-
*/
|
|
323
|
-
declare const AttachmentSchema: z.ZodObject<{
|
|
324
|
-
runnerId: z.ZodString;
|
|
325
|
-
name: z.ZodOptional<z.ZodString>;
|
|
326
|
-
slug: z.ZodOptional<z.ZodString>;
|
|
327
|
-
executionTarget: z.ZodOptional<z.ZodString>;
|
|
328
|
-
remoteInstanceId: z.ZodOptional<z.ZodString>;
|
|
329
|
-
}, z.core.$strip>;
|
|
330
|
-
type Attachment = z.infer<typeof AttachmentSchema>;
|
|
331
|
-
/**
|
|
332
|
-
* Where an installed Workflow came from, as the runner's Workflow store
|
|
333
|
-
* records it: shipped with the CLI (`builtin`), installed from a remote
|
|
334
|
-
* marketplace (`marketplace-remote`, by ref), from a marketplace checkout on
|
|
335
|
-
* disk (`marketplace-local`), copied from a path (`filesystem`), or installed
|
|
336
|
-
* by a CLI that did not record a source (`unknown`).
|
|
337
|
-
*/
|
|
338
|
-
declare const InstalledWorkflowSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
339
|
-
kind: z.ZodLiteral<"builtin">;
|
|
340
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
-
kind: z.ZodLiteral<"marketplace-remote">;
|
|
342
|
-
ref: z.ZodString;
|
|
343
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
344
|
-
kind: z.ZodLiteral<"marketplace-local">;
|
|
345
|
-
repoDir: z.ZodString;
|
|
346
|
-
workflowName: z.ZodString;
|
|
347
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
349
|
-
path: z.ZodString;
|
|
350
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"unknown">;
|
|
352
|
-
}, z.core.$strip>], "kind">;
|
|
353
|
-
type InstalledWorkflowSource = z.infer<typeof InstalledWorkflowSourceSchema>;
|
|
354
|
-
/**
|
|
355
|
-
* One Workflow a runner can run: reported on the runner's `hello` and
|
|
356
|
-
* replaced wholesale by `workflows.changed` (protocol §17.4). `version` is
|
|
357
|
-
* absent when the Workflow declares none.
|
|
358
|
-
*/
|
|
359
|
-
declare const InstalledWorkflowSchema: z.ZodObject<{
|
|
360
|
-
name: z.ZodString;
|
|
361
|
-
version: z.ZodOptional<z.ZodString>;
|
|
362
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
363
|
-
kind: z.ZodLiteral<"builtin">;
|
|
364
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
365
|
-
kind: z.ZodLiteral<"marketplace-remote">;
|
|
366
|
-
ref: z.ZodString;
|
|
367
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
368
|
-
kind: z.ZodLiteral<"marketplace-local">;
|
|
369
|
-
repoDir: z.ZodString;
|
|
370
|
-
workflowName: z.ZodString;
|
|
371
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
372
|
-
kind: z.ZodLiteral<"filesystem">;
|
|
373
|
-
path: z.ZodString;
|
|
374
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
-
kind: z.ZodLiteral<"unknown">;
|
|
376
|
-
}, z.core.$strip>], "kind">;
|
|
377
|
-
}, z.core.$strip>;
|
|
378
|
-
type InstalledWorkflow = z.infer<typeof InstalledWorkflowSchema>;
|
|
379
|
-
/** Why a runner declined a delivered assignment (protocol §10). */
|
|
380
|
-
declare const AssignmentRejectedReasonSchema: z.ZodEnum<{
|
|
381
|
-
local_capacity: "local_capacity";
|
|
382
|
-
duplicate: "duplicate";
|
|
383
|
-
malformed_assignment: "malformed_assignment";
|
|
384
|
-
workspace_unresolved: "workspace_unresolved";
|
|
385
|
-
workspace_invalid: "workspace_invalid";
|
|
386
|
-
}>;
|
|
387
|
-
type AssignmentRejectedReason = z.infer<typeof AssignmentRejectedReasonSchema>;
|
|
388
|
-
|
|
389
16
|
/**
|
|
390
17
|
* The event stream shapes (protocol §11): the canonical FeedEvent channel and
|
|
391
18
|
* the compatibility run-event channel. Both ride the `event` frame,
|
|
@@ -432,7 +59,6 @@ declare const FeedEventSchema: z.ZodObject<{
|
|
|
432
59
|
seq: z.ZodInt;
|
|
433
60
|
ts: z.ZodNumber;
|
|
434
61
|
session_id: z.ZodString;
|
|
435
|
-
/** A Feed Run id (`{session_id}:R{n}`) — unrelated to a Workflow Run id. */
|
|
436
62
|
run_id: z.ZodString;
|
|
437
63
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
438
64
|
effort_level: z.ZodOptional<z.ZodString>;
|
|
@@ -551,7 +177,6 @@ declare const FeedEnvelopeSchema: z.ZodObject<{
|
|
|
551
177
|
seq: z.ZodInt;
|
|
552
178
|
ts: z.ZodNumber;
|
|
553
179
|
session_id: z.ZodString;
|
|
554
|
-
/** A Feed Run id (`{session_id}:R{n}`) — unrelated to a Workflow Run id. */
|
|
555
180
|
run_id: z.ZodString;
|
|
556
181
|
prompt_id: z.ZodOptional<z.ZodString>;
|
|
557
182
|
effort_level: z.ZodOptional<z.ZodString>;
|
|
@@ -3185,4 +2810,4 @@ declare function jsonSchemaId(name: JsonSchemaName): string;
|
|
|
3185
2810
|
/** Generate every JSON Schema document, keyed by file stem. */
|
|
3186
2811
|
declare function buildJsonSchemas(): Record<JsonSchemaName, JsonSchemaDocument>;
|
|
3187
2812
|
|
|
3188
|
-
export { type AnswerFrame, AnswerFrameSchema, type AssignmentAcceptedFrame, AssignmentAcceptedFrameSchema, type AssignmentRejectedFrame, AssignmentRejectedFrameSchema, type
|
|
2813
|
+
export { type AnswerFrame, AnswerFrameSchema, type AssignmentAcceptedFrame, AssignmentAcceptedFrameSchema, type AssignmentRejectedFrame, AssignmentRejectedFrameSchema, type AttachmentsChangedFrame, AttachmentsChangedFrameSchema, type CancelFrame, CancelFrameSchema, type CanonicalFrame, CanonicalFrameSchema, type CanonicalFrameType, type DashboardDecisionFrame, DashboardDecisionFrameSchema, type DecisionAckFrame, DecisionAckFrameSchema, type EmittableLegacyFrame, type ErrorFrame, ErrorFrameSchema, type EventFrame, EventFrameSchema, FRAME_NAME_MAP, type FeedAckFrame, FeedAckFrameSchema, type FeedEnvelope, FeedEnvelopeSchema, type FeedEvent, type FeedEventCause, FeedEventCauseSchema, type FeedEventFrame, FeedEventFrameSchema, type FeedEventLevel, FeedEventLevelSchema, FeedEventSchema, type FeedOrigin, FeedOriginSchema, type FeedStreamEventFrame, FeedStreamEventFrameSchema, type Frame, type FrameNameMap, FrameSchema, type FrameType, type HelloFrame, HelloFrameSchema, JSON_SCHEMA_SOURCES, type JobAssignmentFrame, JobAssignmentFrameSchema, type JsonSchemaDocument, type JsonSchemaName, type LegacyFrame, LegacyFrameSchema, type LegacyFrameType, type NeedsHumanFrame, NeedsHumanFrameSchema, type NewOnlyFrame, PHASE_FEED_EVENT_KIND, PROTOCOL_VERSION, type PhaseEvent, PhaseEventSchema, type PhaseFeedEvent, PhaseFeedEventSchema, type PingFrame, PingFrameSchema, type PongFrame, PongFrameSchema, type ProtocolVersion, type RunEventFrame, RunEventFrameSchema, type RunStartFrame, RunStartFrameSchema, type RunStreamEvent, type RunStreamEventFrame, RunStreamEventFrameSchema, RunStreamEventSchema, type SteerFrame, SteerFrameSchema, type StopFrame, StopFrameSchema, type WorkflowsChangedFrame, WorkflowsChangedFrameSchema, buildJsonSchemas, hello, jsonSchemaId, normalizeFrame, safeNormalizeFrame, toLegacyFrame };
|