jg-agent-hq 0.3.0 → 0.4.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.
@@ -0,0 +1,2475 @@
1
+ import { z } from 'zod';
2
+ export declare const BrowserCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ kind: z.ZodLiteral<"native">;
4
+ action: z.ZodObject<{
5
+ id: z.ZodUUID;
6
+ runtimeEpoch: z.ZodUUID;
7
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
+ kind: z.ZodLiteral<"thread-create">;
9
+ provider: z.ZodEnum<{
10
+ claude: "claude";
11
+ codex: "codex";
12
+ }>;
13
+ workspaceRoot: z.ZodString;
14
+ name: z.ZodString;
15
+ }, z.core.$strict>, z.ZodObject<{
16
+ kind: z.ZodLiteral<"thread-adopt">;
17
+ provider: z.ZodEnum<{
18
+ claude: "claude";
19
+ codex: "codex";
20
+ }>;
21
+ workspaceRoot: z.ZodString;
22
+ nativeId: z.ZodString;
23
+ name: z.ZodString;
24
+ operatorConfirmation: z.ZodString;
25
+ }, z.core.$strict>, z.ZodObject<{
26
+ kind: z.ZodLiteral<"thread-resume">;
27
+ threadId: z.ZodUUID;
28
+ operatorConfirmation: z.ZodString;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ kind: z.ZodLiteral<"thread-close">;
31
+ threadId: z.ZodUUID;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ kind: z.ZodLiteral<"thread-recover">;
34
+ threadId: z.ZodUUID;
35
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
36
+ kind: z.ZodLiteral<"resume">;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ kind: z.ZodLiteral<"attach">;
39
+ nativeId: z.ZodString;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ kind: z.ZodLiteral<"create">;
42
+ }, z.core.$strict>], "kind">;
43
+ operatorConfirmation: z.ZodString;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"thread-rename">;
46
+ threadId: z.ZodUUID;
47
+ name: z.ZodString;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ kind: z.ZodLiteral<"message">;
50
+ threadId: z.ZodUUID;
51
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
+ kind: z.ZodLiteral<"text">;
53
+ text: z.ZodString;
54
+ }, z.core.$strict>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"skill">;
56
+ skillId: z.ZodString;
57
+ arguments: z.ZodString;
58
+ }, z.core.$strict>], "kind">;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ text: z.ZodString;
61
+ threadId: z.ZodUUID;
62
+ expectedTurnId: z.ZodString;
63
+ kind: z.ZodLiteral<"steer">;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
66
+ kind: z.ZodLiteral<"text">;
67
+ text: z.ZodString;
68
+ }, z.core.$strict>, z.ZodObject<{
69
+ kind: z.ZodLiteral<"skill">;
70
+ skillId: z.ZodString;
71
+ arguments: z.ZodString;
72
+ }, z.core.$strict>], "kind">;
73
+ threadId: z.ZodUUID;
74
+ expectedTurnId: z.ZodString;
75
+ kind: z.ZodLiteral<"queue">;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ threadId: z.ZodUUID;
78
+ expectedTurnId: z.ZodString;
79
+ kind: z.ZodLiteral<"interrupt">;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ kind: z.ZodLiteral<"queue-send">;
82
+ queuedActionId: z.ZodUUID;
83
+ }, z.core.$strict>, z.ZodObject<{
84
+ kind: z.ZodLiteral<"queue-cancel">;
85
+ queuedActionId: z.ZodUUID;
86
+ }, z.core.$strict>, z.ZodObject<{
87
+ approvalId: z.ZodUUID;
88
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ kind: z.ZodLiteral<"decision">;
90
+ decision: z.ZodEnum<{
91
+ accept: "accept";
92
+ acceptForSession: "acceptForSession";
93
+ decline: "decline";
94
+ cancel: "cancel";
95
+ }>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ kind: z.ZodLiteral<"permission">;
98
+ decision: z.ZodEnum<{
99
+ accept: "accept";
100
+ decline: "decline";
101
+ }>;
102
+ scope: z.ZodEnum<{
103
+ turn: "turn";
104
+ session: "session";
105
+ }>;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ kind: z.ZodLiteral<"answers">;
108
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>, z.ZodTransform<{
109
+ [k: string]: string[];
110
+ }, Record<string, string[]>>>;
111
+ }, z.core.$strict>], "kind">;
112
+ threadId: z.ZodUUID;
113
+ expectedTurnId: z.ZodString;
114
+ kind: z.ZodLiteral<"native-reply">;
115
+ }, z.core.$strict>], "kind">;
116
+ plan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ kind: z.ZodLiteral<"execution">;
118
+ authorizationId: z.ZodUUID;
119
+ milestoneId: z.ZodNullable<z.ZodUUID>;
120
+ mode: z.ZodEnum<{
121
+ supervised: "supervised";
122
+ auto: "auto";
123
+ }>;
124
+ revision: z.ZodObject<{
125
+ planDigest: z.ZodString;
126
+ breakdownDigest: z.ZodNullable<z.ZodString>;
127
+ }, z.core.$strict>;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"planning">;
130
+ revisionId: z.ZodUUID;
131
+ invocationId: z.ZodUUID;
132
+ }, z.core.$strict>], "kind">>;
133
+ expectedPlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
134
+ directory: z.ZodString;
135
+ scope: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
136
+ kind: z.ZodLiteral<"execution">;
137
+ authorizationId: z.ZodUUID;
138
+ milestoneId: z.ZodNullable<z.ZodUUID>;
139
+ mode: z.ZodEnum<{
140
+ supervised: "supervised";
141
+ auto: "auto";
142
+ }>;
143
+ revision: z.ZodObject<{
144
+ planDigest: z.ZodString;
145
+ breakdownDigest: z.ZodNullable<z.ZodString>;
146
+ }, z.core.$strict>;
147
+ }, z.core.$strict>, z.ZodObject<{
148
+ kind: z.ZodLiteral<"planning">;
149
+ revisionId: z.ZodUUID;
150
+ invocationId: z.ZodUUID;
151
+ }, z.core.$strict>], "kind">>;
152
+ observedRevision: z.ZodObject<{
153
+ planDigest: z.ZodString;
154
+ breakdownDigest: z.ZodNullable<z.ZodString>;
155
+ }, z.core.$strict>;
156
+ }, z.core.$strict>>>;
157
+ }, z.core.$strict>;
158
+ }, z.core.$strict>, z.ZodObject<{
159
+ kind: z.ZodLiteral<"plan">;
160
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
161
+ kind: z.ZodLiteral<"status">;
162
+ target: z.ZodObject<{
163
+ directory: z.ZodString;
164
+ }, z.core.$strict>;
165
+ }, z.core.$strict>, z.ZodObject<{
166
+ kind: z.ZodLiteral<"milestones">;
167
+ target: z.ZodObject<{
168
+ directory: z.ZodString;
169
+ }, z.core.$strict>;
170
+ limit: z.ZodDefault<z.ZodNumber>;
171
+ cursor: z.ZodOptional<z.ZodString>;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ confirmation: z.ZodOptional<z.ZodObject<{
174
+ proposalId: z.ZodUUID;
175
+ decisions: z.ZodArray<z.ZodObject<{
176
+ sourceIds: z.ZodArray<z.ZodUUID>;
177
+ targetIds: z.ZodArray<z.ZodUUID>;
178
+ relation: z.ZodEnum<{
179
+ equivalent: "equivalent";
180
+ "requirements-changed": "requirements-changed";
181
+ omitted: "omitted";
182
+ reopened: "reopened";
183
+ }>;
184
+ retainedPairs: z.ZodArray<z.ZodObject<{
185
+ sourceId: z.ZodUUID;
186
+ targetId: z.ZodUUID;
187
+ }, z.core.$strict>>;
188
+ }, z.core.$strict>>;
189
+ }, z.core.$strict>>;
190
+ target: z.ZodObject<{
191
+ directory: z.ZodString;
192
+ }, z.core.$strict>;
193
+ action: z.ZodObject<{
194
+ id: z.ZodUUID;
195
+ operatorId: z.ZodString;
196
+ source: z.ZodObject<{
197
+ kind: z.ZodEnum<{
198
+ "user-action": "user-action";
199
+ "user-message": "user-message";
200
+ }>;
201
+ reference: z.ZodString;
202
+ }, z.core.$strict>;
203
+ }, z.core.$strict>;
204
+ expected: z.ZodObject<{
205
+ planDigest: z.ZodString;
206
+ breakdownDigest: z.ZodNullable<z.ZodString>;
207
+ }, z.core.$strict>;
208
+ kind: z.ZodLiteral<"finalize">;
209
+ }, z.core.$strict>, z.ZodObject<{
210
+ milestoneId: z.ZodNullable<z.ZodUUID>;
211
+ checks: z.ZodArray<z.ZodObject<{
212
+ command: z.ZodString;
213
+ outcome: z.ZodLiteral<"passed">;
214
+ reference: z.ZodString;
215
+ }, z.core.$strict>>;
216
+ checkouts: z.ZodArray<z.ZodObject<{
217
+ repository: z.ZodString;
218
+ directory: z.ZodString;
219
+ claimReference: z.ZodString;
220
+ paths: z.ZodArray<z.ZodString>;
221
+ }, z.core.$strict>>;
222
+ target: z.ZodObject<{
223
+ directory: z.ZodString;
224
+ }, z.core.$strict>;
225
+ action: z.ZodObject<{
226
+ id: z.ZodUUID;
227
+ operatorId: z.ZodString;
228
+ source: z.ZodObject<{
229
+ kind: z.ZodEnum<{
230
+ "user-action": "user-action";
231
+ "user-message": "user-message";
232
+ }>;
233
+ reference: z.ZodString;
234
+ }, z.core.$strict>;
235
+ }, z.core.$strict>;
236
+ expected: z.ZodObject<{
237
+ planDigest: z.ZodString;
238
+ breakdownDigest: z.ZodNullable<z.ZodString>;
239
+ }, z.core.$strict>;
240
+ kind: z.ZodLiteral<"complete">;
241
+ }, z.core.$strict>, z.ZodObject<{
242
+ intent: z.ZodEnum<{
243
+ plan: "plan";
244
+ breakdown: "breakdown";
245
+ }>;
246
+ threadIds: z.ZodArray<z.ZodUUID>;
247
+ checkouts: z.ZodArray<z.ZodObject<{
248
+ repository: z.ZodString;
249
+ directory: z.ZodString;
250
+ claimReference: z.ZodString;
251
+ paths: z.ZodArray<z.ZodString>;
252
+ }, z.core.$strict>>;
253
+ target: z.ZodObject<{
254
+ directory: z.ZodString;
255
+ }, z.core.$strict>;
256
+ action: z.ZodObject<{
257
+ id: z.ZodUUID;
258
+ operatorId: z.ZodString;
259
+ source: z.ZodObject<{
260
+ kind: z.ZodEnum<{
261
+ "user-action": "user-action";
262
+ "user-message": "user-message";
263
+ }>;
264
+ reference: z.ZodString;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>;
267
+ expected: z.ZodObject<{
268
+ planDigest: z.ZodString;
269
+ breakdownDigest: z.ZodNullable<z.ZodString>;
270
+ }, z.core.$strict>;
271
+ kind: z.ZodLiteral<"begin-revision">;
272
+ }, z.core.$strict>, z.ZodObject<{
273
+ revisionId: z.ZodUUID;
274
+ skill: z.ZodEnum<{
275
+ "jg-plan": "jg-plan";
276
+ "jg-breakdown": "jg-breakdown";
277
+ }>;
278
+ target: z.ZodObject<{
279
+ directory: z.ZodString;
280
+ }, z.core.$strict>;
281
+ action: z.ZodObject<{
282
+ id: z.ZodUUID;
283
+ operatorId: z.ZodString;
284
+ source: z.ZodObject<{
285
+ kind: z.ZodEnum<{
286
+ "user-action": "user-action";
287
+ "user-message": "user-message";
288
+ }>;
289
+ reference: z.ZodString;
290
+ }, z.core.$strict>;
291
+ }, z.core.$strict>;
292
+ expected: z.ZodObject<{
293
+ planDigest: z.ZodString;
294
+ breakdownDigest: z.ZodNullable<z.ZodString>;
295
+ }, z.core.$strict>;
296
+ kind: z.ZodLiteral<"revision-invoke">;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"reconciliation">;
299
+ target: z.ZodObject<{
300
+ directory: z.ZodString;
301
+ }, z.core.$strict>;
302
+ collection: z.ZodEnum<{
303
+ drafts: "drafts";
304
+ sources: "sources";
305
+ evidence: "evidence";
306
+ correspondences: "correspondences";
307
+ }>;
308
+ limit: z.ZodDefault<z.ZodNumber>;
309
+ cursor: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strict>, z.ZodObject<{
311
+ scope: z.ZodEnum<{
312
+ plan: "plan";
313
+ sequence: "sequence";
314
+ }>;
315
+ presentationHash: z.ZodString;
316
+ target: z.ZodObject<{
317
+ directory: z.ZodString;
318
+ }, z.core.$strict>;
319
+ action: z.ZodObject<{
320
+ id: z.ZodUUID;
321
+ operatorId: z.ZodString;
322
+ source: z.ZodObject<{
323
+ kind: z.ZodEnum<{
324
+ "user-action": "user-action";
325
+ "user-message": "user-message";
326
+ }>;
327
+ reference: z.ZodString;
328
+ }, z.core.$strict>;
329
+ }, z.core.$strict>;
330
+ expected: z.ZodObject<{
331
+ planDigest: z.ZodString;
332
+ breakdownDigest: z.ZodNullable<z.ZodString>;
333
+ }, z.core.$strict>;
334
+ kind: z.ZodLiteral<"approve">;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ scope: z.ZodEnum<{
337
+ plan: "plan";
338
+ sequence: "sequence";
339
+ execution: "execution";
340
+ all: "all";
341
+ }>;
342
+ target: z.ZodObject<{
343
+ directory: z.ZodString;
344
+ }, z.core.$strict>;
345
+ action: z.ZodObject<{
346
+ id: z.ZodUUID;
347
+ operatorId: z.ZodString;
348
+ source: z.ZodObject<{
349
+ kind: z.ZodEnum<{
350
+ "user-action": "user-action";
351
+ "user-message": "user-message";
352
+ }>;
353
+ reference: z.ZodString;
354
+ }, z.core.$strict>;
355
+ }, z.core.$strict>;
356
+ expected: z.ZodObject<{
357
+ planDigest: z.ZodString;
358
+ breakdownDigest: z.ZodNullable<z.ZodString>;
359
+ }, z.core.$strict>;
360
+ kind: z.ZodLiteral<"revoke">;
361
+ }, z.core.$strict>, z.ZodObject<{
362
+ mode: z.ZodEnum<{
363
+ supervised: "supervised";
364
+ auto: "auto";
365
+ }>;
366
+ milestoneIds: z.ZodArray<z.ZodUUID>;
367
+ target: z.ZodObject<{
368
+ directory: z.ZodString;
369
+ }, z.core.$strict>;
370
+ action: z.ZodObject<{
371
+ id: z.ZodUUID;
372
+ operatorId: z.ZodString;
373
+ source: z.ZodObject<{
374
+ kind: z.ZodEnum<{
375
+ "user-action": "user-action";
376
+ "user-message": "user-message";
377
+ }>;
378
+ reference: z.ZodString;
379
+ }, z.core.$strict>;
380
+ }, z.core.$strict>;
381
+ expected: z.ZodObject<{
382
+ planDigest: z.ZodString;
383
+ breakdownDigest: z.ZodNullable<z.ZodString>;
384
+ }, z.core.$strict>;
385
+ kind: z.ZodLiteral<"authorize">;
386
+ }, z.core.$strict>, z.ZodObject<{
387
+ kind: z.ZodLiteral<"check-execution">;
388
+ target: z.ZodObject<{
389
+ directory: z.ZodString;
390
+ }, z.core.$strict>;
391
+ expected: z.ZodObject<{
392
+ planDigest: z.ZodString;
393
+ breakdownDigest: z.ZodNullable<z.ZodString>;
394
+ }, z.core.$strict>;
395
+ authorizationId: z.ZodUUID;
396
+ milestoneId: z.ZodNullable<z.ZodUUID>;
397
+ mode: z.ZodEnum<{
398
+ supervised: "supervised";
399
+ auto: "auto";
400
+ }>;
401
+ }, z.core.$strict>], "kind">;
402
+ }, z.core.$strict>, z.ZodObject<{
403
+ kind: z.ZodLiteral<"handoff">;
404
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ kind: z.ZodLiteral<"create">;
406
+ id: z.ZodUUID;
407
+ runtimeEpoch: z.ZodUUID;
408
+ sourceThreadId: z.ZodUUID;
409
+ purpose: z.ZodEnum<{
410
+ review: "review";
411
+ challenge: "challenge";
412
+ }>;
413
+ commit: z.ZodDefault<z.ZodNullable<z.ZodString>>;
414
+ }, z.core.$strict>, z.ZodObject<{
415
+ kind: z.ZodLiteral<"show">;
416
+ id: z.ZodUUID;
417
+ }, z.core.$strict>, z.ZodObject<{
418
+ kind: z.ZodLiteral<"preview">;
419
+ id: z.ZodUUID;
420
+ phase: z.ZodEnum<{
421
+ review: "review";
422
+ feedback: "feedback";
423
+ }>;
424
+ }, z.core.$strict>, z.ZodObject<{
425
+ kind: z.ZodLiteral<"send">;
426
+ id: z.ZodUUID;
427
+ phase: z.ZodEnum<{
428
+ review: "review";
429
+ feedback: "feedback";
430
+ }>;
431
+ expectedPreviewDigest: z.ZodString;
432
+ }, z.core.$strict>, z.ZodObject<{
433
+ kind: z.ZodLiteral<"collect">;
434
+ id: z.ZodUUID;
435
+ turnId: z.ZodString;
436
+ itemId: z.ZodString;
437
+ limit: z.ZodDefault<z.ZodNumber>;
438
+ cursor: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ kind: z.ZodLiteral<"list">;
441
+ workspaceRoot: z.ZodString;
442
+ sourceThreadId: z.ZodOptional<z.ZodUUID>;
443
+ limit: z.ZodDefault<z.ZodNumber>;
444
+ cursor: z.ZodOptional<z.ZodString>;
445
+ }, z.core.$strict>], "kind">;
446
+ }, z.core.$strict>, z.ZodObject<{
447
+ kind: z.ZodLiteral<"priority">;
448
+ target: z.ZodObject<{
449
+ directory: z.ZodString;
450
+ }, z.core.$strict>;
451
+ expectedRevision: z.ZodObject<{
452
+ planDigest: z.ZodString;
453
+ breakdownDigest: z.ZodNullable<z.ZodString>;
454
+ }, z.core.$strict>;
455
+ priority: z.ZodEnum<{
456
+ P0: "P0";
457
+ P1: "P1";
458
+ P2: "P2";
459
+ P3: "P3";
460
+ }>;
461
+ reason: z.ZodString;
462
+ }, z.core.$strict>, z.ZodObject<{
463
+ kind: z.ZodLiteral<"error-reservation">;
464
+ target: z.ZodObject<{
465
+ directory: z.ZodString;
466
+ }, z.core.$strict>;
467
+ expectedRevision: z.ZodObject<{
468
+ planDigest: z.ZodString;
469
+ breakdownDigest: z.ZodNullable<z.ZodString>;
470
+ }, z.core.$strict>;
471
+ reservation: z.ZodObject<{
472
+ repository: z.ZodString;
473
+ namespace: z.ZodString;
474
+ start: z.ZodNumber;
475
+ end: z.ZodNumber;
476
+ registryPath: z.ZodString;
477
+ purpose: z.ZodString;
478
+ }, z.core.$strict>;
479
+ release: z.ZodBoolean;
480
+ }, z.core.$strict>, z.ZodObject<{
481
+ kind: z.ZodLiteral<"publication-retry">;
482
+ expectedCommit: z.ZodString;
483
+ }, z.core.$strict>], "kind">;
484
+ export declare const BrowserActionSchema: z.ZodObject<{
485
+ id: z.ZodUUID;
486
+ runtimeEpoch: z.ZodUUID;
487
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
488
+ kind: z.ZodLiteral<"native">;
489
+ action: z.ZodObject<{
490
+ id: z.ZodUUID;
491
+ runtimeEpoch: z.ZodUUID;
492
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
493
+ kind: z.ZodLiteral<"thread-create">;
494
+ provider: z.ZodEnum<{
495
+ claude: "claude";
496
+ codex: "codex";
497
+ }>;
498
+ workspaceRoot: z.ZodString;
499
+ name: z.ZodString;
500
+ }, z.core.$strict>, z.ZodObject<{
501
+ kind: z.ZodLiteral<"thread-adopt">;
502
+ provider: z.ZodEnum<{
503
+ claude: "claude";
504
+ codex: "codex";
505
+ }>;
506
+ workspaceRoot: z.ZodString;
507
+ nativeId: z.ZodString;
508
+ name: z.ZodString;
509
+ operatorConfirmation: z.ZodString;
510
+ }, z.core.$strict>, z.ZodObject<{
511
+ kind: z.ZodLiteral<"thread-resume">;
512
+ threadId: z.ZodUUID;
513
+ operatorConfirmation: z.ZodString;
514
+ }, z.core.$strict>, z.ZodObject<{
515
+ kind: z.ZodLiteral<"thread-close">;
516
+ threadId: z.ZodUUID;
517
+ }, z.core.$strict>, z.ZodObject<{
518
+ kind: z.ZodLiteral<"thread-recover">;
519
+ threadId: z.ZodUUID;
520
+ recovery: z.ZodDiscriminatedUnion<[z.ZodObject<{
521
+ kind: z.ZodLiteral<"resume">;
522
+ }, z.core.$strict>, z.ZodObject<{
523
+ kind: z.ZodLiteral<"attach">;
524
+ nativeId: z.ZodString;
525
+ }, z.core.$strict>, z.ZodObject<{
526
+ kind: z.ZodLiteral<"create">;
527
+ }, z.core.$strict>], "kind">;
528
+ operatorConfirmation: z.ZodString;
529
+ }, z.core.$strict>, z.ZodObject<{
530
+ kind: z.ZodLiteral<"thread-rename">;
531
+ threadId: z.ZodUUID;
532
+ name: z.ZodString;
533
+ }, z.core.$strict>, z.ZodObject<{
534
+ kind: z.ZodLiteral<"message">;
535
+ threadId: z.ZodUUID;
536
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
537
+ kind: z.ZodLiteral<"text">;
538
+ text: z.ZodString;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"skill">;
541
+ skillId: z.ZodString;
542
+ arguments: z.ZodString;
543
+ }, z.core.$strict>], "kind">;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ text: z.ZodString;
546
+ threadId: z.ZodUUID;
547
+ expectedTurnId: z.ZodString;
548
+ kind: z.ZodLiteral<"steer">;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
551
+ kind: z.ZodLiteral<"text">;
552
+ text: z.ZodString;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ kind: z.ZodLiteral<"skill">;
555
+ skillId: z.ZodString;
556
+ arguments: z.ZodString;
557
+ }, z.core.$strict>], "kind">;
558
+ threadId: z.ZodUUID;
559
+ expectedTurnId: z.ZodString;
560
+ kind: z.ZodLiteral<"queue">;
561
+ }, z.core.$strict>, z.ZodObject<{
562
+ threadId: z.ZodUUID;
563
+ expectedTurnId: z.ZodString;
564
+ kind: z.ZodLiteral<"interrupt">;
565
+ }, z.core.$strict>, z.ZodObject<{
566
+ kind: z.ZodLiteral<"queue-send">;
567
+ queuedActionId: z.ZodUUID;
568
+ }, z.core.$strict>, z.ZodObject<{
569
+ kind: z.ZodLiteral<"queue-cancel">;
570
+ queuedActionId: z.ZodUUID;
571
+ }, z.core.$strict>, z.ZodObject<{
572
+ approvalId: z.ZodUUID;
573
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
574
+ kind: z.ZodLiteral<"decision">;
575
+ decision: z.ZodEnum<{
576
+ accept: "accept";
577
+ acceptForSession: "acceptForSession";
578
+ decline: "decline";
579
+ cancel: "cancel";
580
+ }>;
581
+ }, z.core.$strict>, z.ZodObject<{
582
+ kind: z.ZodLiteral<"permission">;
583
+ decision: z.ZodEnum<{
584
+ accept: "accept";
585
+ decline: "decline";
586
+ }>;
587
+ scope: z.ZodEnum<{
588
+ turn: "turn";
589
+ session: "session";
590
+ }>;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ kind: z.ZodLiteral<"answers">;
593
+ answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>, z.ZodTransform<{
594
+ [k: string]: string[];
595
+ }, Record<string, string[]>>>;
596
+ }, z.core.$strict>], "kind">;
597
+ threadId: z.ZodUUID;
598
+ expectedTurnId: z.ZodString;
599
+ kind: z.ZodLiteral<"native-reply">;
600
+ }, z.core.$strict>], "kind">;
601
+ plan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
602
+ kind: z.ZodLiteral<"execution">;
603
+ authorizationId: z.ZodUUID;
604
+ milestoneId: z.ZodNullable<z.ZodUUID>;
605
+ mode: z.ZodEnum<{
606
+ supervised: "supervised";
607
+ auto: "auto";
608
+ }>;
609
+ revision: z.ZodObject<{
610
+ planDigest: z.ZodString;
611
+ breakdownDigest: z.ZodNullable<z.ZodString>;
612
+ }, z.core.$strict>;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"planning">;
615
+ revisionId: z.ZodUUID;
616
+ invocationId: z.ZodUUID;
617
+ }, z.core.$strict>], "kind">>;
618
+ expectedPlan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
619
+ directory: z.ZodString;
620
+ scope: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
621
+ kind: z.ZodLiteral<"execution">;
622
+ authorizationId: z.ZodUUID;
623
+ milestoneId: z.ZodNullable<z.ZodUUID>;
624
+ mode: z.ZodEnum<{
625
+ supervised: "supervised";
626
+ auto: "auto";
627
+ }>;
628
+ revision: z.ZodObject<{
629
+ planDigest: z.ZodString;
630
+ breakdownDigest: z.ZodNullable<z.ZodString>;
631
+ }, z.core.$strict>;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ kind: z.ZodLiteral<"planning">;
634
+ revisionId: z.ZodUUID;
635
+ invocationId: z.ZodUUID;
636
+ }, z.core.$strict>], "kind">>;
637
+ observedRevision: z.ZodObject<{
638
+ planDigest: z.ZodString;
639
+ breakdownDigest: z.ZodNullable<z.ZodString>;
640
+ }, z.core.$strict>;
641
+ }, z.core.$strict>>>;
642
+ }, z.core.$strict>;
643
+ }, z.core.$strict>, z.ZodObject<{
644
+ kind: z.ZodLiteral<"plan">;
645
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
+ kind: z.ZodLiteral<"status">;
647
+ target: z.ZodObject<{
648
+ directory: z.ZodString;
649
+ }, z.core.$strict>;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ kind: z.ZodLiteral<"milestones">;
652
+ target: z.ZodObject<{
653
+ directory: z.ZodString;
654
+ }, z.core.$strict>;
655
+ limit: z.ZodDefault<z.ZodNumber>;
656
+ cursor: z.ZodOptional<z.ZodString>;
657
+ }, z.core.$strict>, z.ZodObject<{
658
+ confirmation: z.ZodOptional<z.ZodObject<{
659
+ proposalId: z.ZodUUID;
660
+ decisions: z.ZodArray<z.ZodObject<{
661
+ sourceIds: z.ZodArray<z.ZodUUID>;
662
+ targetIds: z.ZodArray<z.ZodUUID>;
663
+ relation: z.ZodEnum<{
664
+ equivalent: "equivalent";
665
+ "requirements-changed": "requirements-changed";
666
+ omitted: "omitted";
667
+ reopened: "reopened";
668
+ }>;
669
+ retainedPairs: z.ZodArray<z.ZodObject<{
670
+ sourceId: z.ZodUUID;
671
+ targetId: z.ZodUUID;
672
+ }, z.core.$strict>>;
673
+ }, z.core.$strict>>;
674
+ }, z.core.$strict>>;
675
+ target: z.ZodObject<{
676
+ directory: z.ZodString;
677
+ }, z.core.$strict>;
678
+ action: z.ZodObject<{
679
+ id: z.ZodUUID;
680
+ operatorId: z.ZodString;
681
+ source: z.ZodObject<{
682
+ kind: z.ZodEnum<{
683
+ "user-action": "user-action";
684
+ "user-message": "user-message";
685
+ }>;
686
+ reference: z.ZodString;
687
+ }, z.core.$strict>;
688
+ }, z.core.$strict>;
689
+ expected: z.ZodObject<{
690
+ planDigest: z.ZodString;
691
+ breakdownDigest: z.ZodNullable<z.ZodString>;
692
+ }, z.core.$strict>;
693
+ kind: z.ZodLiteral<"finalize">;
694
+ }, z.core.$strict>, z.ZodObject<{
695
+ milestoneId: z.ZodNullable<z.ZodUUID>;
696
+ checks: z.ZodArray<z.ZodObject<{
697
+ command: z.ZodString;
698
+ outcome: z.ZodLiteral<"passed">;
699
+ reference: z.ZodString;
700
+ }, z.core.$strict>>;
701
+ checkouts: z.ZodArray<z.ZodObject<{
702
+ repository: z.ZodString;
703
+ directory: z.ZodString;
704
+ claimReference: z.ZodString;
705
+ paths: z.ZodArray<z.ZodString>;
706
+ }, z.core.$strict>>;
707
+ target: z.ZodObject<{
708
+ directory: z.ZodString;
709
+ }, z.core.$strict>;
710
+ action: z.ZodObject<{
711
+ id: z.ZodUUID;
712
+ operatorId: z.ZodString;
713
+ source: z.ZodObject<{
714
+ kind: z.ZodEnum<{
715
+ "user-action": "user-action";
716
+ "user-message": "user-message";
717
+ }>;
718
+ reference: z.ZodString;
719
+ }, z.core.$strict>;
720
+ }, z.core.$strict>;
721
+ expected: z.ZodObject<{
722
+ planDigest: z.ZodString;
723
+ breakdownDigest: z.ZodNullable<z.ZodString>;
724
+ }, z.core.$strict>;
725
+ kind: z.ZodLiteral<"complete">;
726
+ }, z.core.$strict>, z.ZodObject<{
727
+ intent: z.ZodEnum<{
728
+ plan: "plan";
729
+ breakdown: "breakdown";
730
+ }>;
731
+ threadIds: z.ZodArray<z.ZodUUID>;
732
+ checkouts: z.ZodArray<z.ZodObject<{
733
+ repository: z.ZodString;
734
+ directory: z.ZodString;
735
+ claimReference: z.ZodString;
736
+ paths: z.ZodArray<z.ZodString>;
737
+ }, z.core.$strict>>;
738
+ target: z.ZodObject<{
739
+ directory: z.ZodString;
740
+ }, z.core.$strict>;
741
+ action: z.ZodObject<{
742
+ id: z.ZodUUID;
743
+ operatorId: z.ZodString;
744
+ source: z.ZodObject<{
745
+ kind: z.ZodEnum<{
746
+ "user-action": "user-action";
747
+ "user-message": "user-message";
748
+ }>;
749
+ reference: z.ZodString;
750
+ }, z.core.$strict>;
751
+ }, z.core.$strict>;
752
+ expected: z.ZodObject<{
753
+ planDigest: z.ZodString;
754
+ breakdownDigest: z.ZodNullable<z.ZodString>;
755
+ }, z.core.$strict>;
756
+ kind: z.ZodLiteral<"begin-revision">;
757
+ }, z.core.$strict>, z.ZodObject<{
758
+ revisionId: z.ZodUUID;
759
+ skill: z.ZodEnum<{
760
+ "jg-plan": "jg-plan";
761
+ "jg-breakdown": "jg-breakdown";
762
+ }>;
763
+ target: z.ZodObject<{
764
+ directory: z.ZodString;
765
+ }, z.core.$strict>;
766
+ action: z.ZodObject<{
767
+ id: z.ZodUUID;
768
+ operatorId: z.ZodString;
769
+ source: z.ZodObject<{
770
+ kind: z.ZodEnum<{
771
+ "user-action": "user-action";
772
+ "user-message": "user-message";
773
+ }>;
774
+ reference: z.ZodString;
775
+ }, z.core.$strict>;
776
+ }, z.core.$strict>;
777
+ expected: z.ZodObject<{
778
+ planDigest: z.ZodString;
779
+ breakdownDigest: z.ZodNullable<z.ZodString>;
780
+ }, z.core.$strict>;
781
+ kind: z.ZodLiteral<"revision-invoke">;
782
+ }, z.core.$strict>, z.ZodObject<{
783
+ kind: z.ZodLiteral<"reconciliation">;
784
+ target: z.ZodObject<{
785
+ directory: z.ZodString;
786
+ }, z.core.$strict>;
787
+ collection: z.ZodEnum<{
788
+ drafts: "drafts";
789
+ sources: "sources";
790
+ evidence: "evidence";
791
+ correspondences: "correspondences";
792
+ }>;
793
+ limit: z.ZodDefault<z.ZodNumber>;
794
+ cursor: z.ZodOptional<z.ZodString>;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ scope: z.ZodEnum<{
797
+ plan: "plan";
798
+ sequence: "sequence";
799
+ }>;
800
+ presentationHash: z.ZodString;
801
+ target: z.ZodObject<{
802
+ directory: z.ZodString;
803
+ }, z.core.$strict>;
804
+ action: z.ZodObject<{
805
+ id: z.ZodUUID;
806
+ operatorId: z.ZodString;
807
+ source: z.ZodObject<{
808
+ kind: z.ZodEnum<{
809
+ "user-action": "user-action";
810
+ "user-message": "user-message";
811
+ }>;
812
+ reference: z.ZodString;
813
+ }, z.core.$strict>;
814
+ }, z.core.$strict>;
815
+ expected: z.ZodObject<{
816
+ planDigest: z.ZodString;
817
+ breakdownDigest: z.ZodNullable<z.ZodString>;
818
+ }, z.core.$strict>;
819
+ kind: z.ZodLiteral<"approve">;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ scope: z.ZodEnum<{
822
+ plan: "plan";
823
+ sequence: "sequence";
824
+ execution: "execution";
825
+ all: "all";
826
+ }>;
827
+ target: z.ZodObject<{
828
+ directory: z.ZodString;
829
+ }, z.core.$strict>;
830
+ action: z.ZodObject<{
831
+ id: z.ZodUUID;
832
+ operatorId: z.ZodString;
833
+ source: z.ZodObject<{
834
+ kind: z.ZodEnum<{
835
+ "user-action": "user-action";
836
+ "user-message": "user-message";
837
+ }>;
838
+ reference: z.ZodString;
839
+ }, z.core.$strict>;
840
+ }, z.core.$strict>;
841
+ expected: z.ZodObject<{
842
+ planDigest: z.ZodString;
843
+ breakdownDigest: z.ZodNullable<z.ZodString>;
844
+ }, z.core.$strict>;
845
+ kind: z.ZodLiteral<"revoke">;
846
+ }, z.core.$strict>, z.ZodObject<{
847
+ mode: z.ZodEnum<{
848
+ supervised: "supervised";
849
+ auto: "auto";
850
+ }>;
851
+ milestoneIds: z.ZodArray<z.ZodUUID>;
852
+ target: z.ZodObject<{
853
+ directory: z.ZodString;
854
+ }, z.core.$strict>;
855
+ action: z.ZodObject<{
856
+ id: z.ZodUUID;
857
+ operatorId: z.ZodString;
858
+ source: z.ZodObject<{
859
+ kind: z.ZodEnum<{
860
+ "user-action": "user-action";
861
+ "user-message": "user-message";
862
+ }>;
863
+ reference: z.ZodString;
864
+ }, z.core.$strict>;
865
+ }, z.core.$strict>;
866
+ expected: z.ZodObject<{
867
+ planDigest: z.ZodString;
868
+ breakdownDigest: z.ZodNullable<z.ZodString>;
869
+ }, z.core.$strict>;
870
+ kind: z.ZodLiteral<"authorize">;
871
+ }, z.core.$strict>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"check-execution">;
873
+ target: z.ZodObject<{
874
+ directory: z.ZodString;
875
+ }, z.core.$strict>;
876
+ expected: z.ZodObject<{
877
+ planDigest: z.ZodString;
878
+ breakdownDigest: z.ZodNullable<z.ZodString>;
879
+ }, z.core.$strict>;
880
+ authorizationId: z.ZodUUID;
881
+ milestoneId: z.ZodNullable<z.ZodUUID>;
882
+ mode: z.ZodEnum<{
883
+ supervised: "supervised";
884
+ auto: "auto";
885
+ }>;
886
+ }, z.core.$strict>], "kind">;
887
+ }, z.core.$strict>, z.ZodObject<{
888
+ kind: z.ZodLiteral<"handoff">;
889
+ command: z.ZodDiscriminatedUnion<[z.ZodObject<{
890
+ kind: z.ZodLiteral<"create">;
891
+ id: z.ZodUUID;
892
+ runtimeEpoch: z.ZodUUID;
893
+ sourceThreadId: z.ZodUUID;
894
+ purpose: z.ZodEnum<{
895
+ review: "review";
896
+ challenge: "challenge";
897
+ }>;
898
+ commit: z.ZodDefault<z.ZodNullable<z.ZodString>>;
899
+ }, z.core.$strict>, z.ZodObject<{
900
+ kind: z.ZodLiteral<"show">;
901
+ id: z.ZodUUID;
902
+ }, z.core.$strict>, z.ZodObject<{
903
+ kind: z.ZodLiteral<"preview">;
904
+ id: z.ZodUUID;
905
+ phase: z.ZodEnum<{
906
+ review: "review";
907
+ feedback: "feedback";
908
+ }>;
909
+ }, z.core.$strict>, z.ZodObject<{
910
+ kind: z.ZodLiteral<"send">;
911
+ id: z.ZodUUID;
912
+ phase: z.ZodEnum<{
913
+ review: "review";
914
+ feedback: "feedback";
915
+ }>;
916
+ expectedPreviewDigest: z.ZodString;
917
+ }, z.core.$strict>, z.ZodObject<{
918
+ kind: z.ZodLiteral<"collect">;
919
+ id: z.ZodUUID;
920
+ turnId: z.ZodString;
921
+ itemId: z.ZodString;
922
+ limit: z.ZodDefault<z.ZodNumber>;
923
+ cursor: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strict>, z.ZodObject<{
925
+ kind: z.ZodLiteral<"list">;
926
+ workspaceRoot: z.ZodString;
927
+ sourceThreadId: z.ZodOptional<z.ZodUUID>;
928
+ limit: z.ZodDefault<z.ZodNumber>;
929
+ cursor: z.ZodOptional<z.ZodString>;
930
+ }, z.core.$strict>], "kind">;
931
+ }, z.core.$strict>, z.ZodObject<{
932
+ kind: z.ZodLiteral<"priority">;
933
+ target: z.ZodObject<{
934
+ directory: z.ZodString;
935
+ }, z.core.$strict>;
936
+ expectedRevision: z.ZodObject<{
937
+ planDigest: z.ZodString;
938
+ breakdownDigest: z.ZodNullable<z.ZodString>;
939
+ }, z.core.$strict>;
940
+ priority: z.ZodEnum<{
941
+ P0: "P0";
942
+ P1: "P1";
943
+ P2: "P2";
944
+ P3: "P3";
945
+ }>;
946
+ reason: z.ZodString;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ kind: z.ZodLiteral<"error-reservation">;
949
+ target: z.ZodObject<{
950
+ directory: z.ZodString;
951
+ }, z.core.$strict>;
952
+ expectedRevision: z.ZodObject<{
953
+ planDigest: z.ZodString;
954
+ breakdownDigest: z.ZodNullable<z.ZodString>;
955
+ }, z.core.$strict>;
956
+ reservation: z.ZodObject<{
957
+ repository: z.ZodString;
958
+ namespace: z.ZodString;
959
+ start: z.ZodNumber;
960
+ end: z.ZodNumber;
961
+ registryPath: z.ZodString;
962
+ purpose: z.ZodString;
963
+ }, z.core.$strict>;
964
+ release: z.ZodBoolean;
965
+ }, z.core.$strict>, z.ZodObject<{
966
+ kind: z.ZodLiteral<"publication-retry">;
967
+ expectedCommit: z.ZodString;
968
+ }, z.core.$strict>], "kind">;
969
+ }, z.core.$strict>;
970
+ export type IBrowserAction = z.infer<typeof BrowserActionSchema>;
971
+ export declare const BrowserReceiptSchema: z.ZodObject<{
972
+ id: z.ZodUUID;
973
+ runtimeEpoch: z.ZodUUID;
974
+ kind: z.ZodEnum<{
975
+ plan: "plan";
976
+ handoff: "handoff";
977
+ native: "native";
978
+ priority: "priority";
979
+ "error-reservation": "error-reservation";
980
+ "publication-retry": "publication-retry";
981
+ }>;
982
+ state: z.ZodEnum<{
983
+ submitted: "submitted";
984
+ acknowledged: "acknowledged";
985
+ uncertain: "uncertain";
986
+ }>;
987
+ nativeActionId: z.ZodUUID;
988
+ createdAt: z.ZodNumber;
989
+ updatedAt: z.ZodNumber;
990
+ native: z.ZodNullable<z.ZodObject<{
991
+ id: z.ZodUUID;
992
+ digest: z.ZodString;
993
+ runtimeEpoch: z.ZodUUID;
994
+ kind: z.ZodEnum<{
995
+ message: "message";
996
+ "thread-create": "thread-create";
997
+ "thread-adopt": "thread-adopt";
998
+ "thread-resume": "thread-resume";
999
+ "thread-close": "thread-close";
1000
+ "thread-recover": "thread-recover";
1001
+ "thread-rename": "thread-rename";
1002
+ steer: "steer";
1003
+ queue: "queue";
1004
+ interrupt: "interrupt";
1005
+ "queue-send": "queue-send";
1006
+ "queue-cancel": "queue-cancel";
1007
+ "native-reply": "native-reply";
1008
+ }>;
1009
+ threadId: z.ZodNullable<z.ZodUUID>;
1010
+ nativeTurnId: z.ZodNullable<z.ZodString>;
1011
+ nativeRequestId: z.ZodNullable<z.ZodString>;
1012
+ delivery: z.ZodEnum<{
1013
+ queued: "queued";
1014
+ submitted: "submitted";
1015
+ acknowledged: "acknowledged";
1016
+ uncertain: "uncertain";
1017
+ failed: "failed";
1018
+ canceled: "canceled";
1019
+ }>;
1020
+ completion: z.ZodNullable<z.ZodEnum<{
1021
+ completed: "completed";
1022
+ failed: "failed";
1023
+ interrupted: "interrupted";
1024
+ }>>;
1025
+ failure: z.ZodNullable<z.ZodEnum<{
1026
+ "state-conflict": "state-conflict";
1027
+ "access-denied": "access-denied";
1028
+ "agent-unavailable": "agent-unavailable";
1029
+ "operation-failed": "operation-failed";
1030
+ }>>;
1031
+ relatedActionId: z.ZodNullable<z.ZodUUID>;
1032
+ planContext: z.ZodNullable<z.ZodObject<{
1033
+ directory: z.ZodString;
1034
+ scope: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1035
+ kind: z.ZodLiteral<"execution">;
1036
+ authorizationId: z.ZodUUID;
1037
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1038
+ mode: z.ZodEnum<{
1039
+ supervised: "supervised";
1040
+ auto: "auto";
1041
+ }>;
1042
+ revision: z.ZodObject<{
1043
+ planDigest: z.ZodString;
1044
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1045
+ }, z.core.$strict>;
1046
+ }, z.core.$strict>, z.ZodObject<{
1047
+ kind: z.ZodLiteral<"planning">;
1048
+ revisionId: z.ZodUUID;
1049
+ invocationId: z.ZodUUID;
1050
+ }, z.core.$strict>], "kind">>;
1051
+ observedRevision: z.ZodObject<{
1052
+ planDigest: z.ZodString;
1053
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1054
+ }, z.core.$strict>;
1055
+ }, z.core.$strict>>;
1056
+ queuedText: z.ZodNullable<z.ZodString>;
1057
+ queuedSkill: z.ZodNullable<z.ZodObject<{
1058
+ name: z.ZodString;
1059
+ path: z.ZodNullable<z.ZodString>;
1060
+ }, z.core.$strip>>;
1061
+ createdAt: z.ZodNumber;
1062
+ updatedAt: z.ZodNumber;
1063
+ }, z.core.$strip>>;
1064
+ }, z.core.$strip>;
1065
+ export type IBrowserReceipt = z.infer<typeof BrowserReceiptSchema>;
1066
+ export declare const BrowserRepositorySchema: z.ZodObject<{
1067
+ name: z.ZodString;
1068
+ root: z.ZodNullable<z.ZodString>;
1069
+ purpose: z.ZodString;
1070
+ worktrees: z.ZodBoolean;
1071
+ }, z.core.$strip>;
1072
+ export declare const BrowserPlanSummarySchema: z.ZodObject<{
1073
+ id: z.ZodString;
1074
+ directory: z.ZodString;
1075
+ scope: z.ZodString;
1076
+ status: z.ZodEnum<{
1077
+ done: "done";
1078
+ "in-progress": "in-progress";
1079
+ planned: "planned";
1080
+ abandoned: "abandoned";
1081
+ }>;
1082
+ summary: z.ZodString;
1083
+ priority: z.ZodEnum<{
1084
+ P0: "P0";
1085
+ P1: "P1";
1086
+ P2: "P2";
1087
+ P3: "P3";
1088
+ }>;
1089
+ priorityReason: z.ZodString;
1090
+ repositories: z.ZodArray<z.ZodString>;
1091
+ errorReservations: z.ZodArray<z.ZodObject<{
1092
+ repository: z.ZodString;
1093
+ namespace: z.ZodString;
1094
+ start: z.ZodNumber;
1095
+ end: z.ZodNumber;
1096
+ registryPath: z.ZodString;
1097
+ purpose: z.ZodString;
1098
+ }, z.core.$strict>>;
1099
+ }, z.core.$strip>;
1100
+ export declare const BrowserPlanPageSchema: z.ZodObject<{
1101
+ data: z.ZodArray<z.ZodObject<{
1102
+ id: z.ZodString;
1103
+ directory: z.ZodString;
1104
+ scope: z.ZodString;
1105
+ status: z.ZodEnum<{
1106
+ done: "done";
1107
+ "in-progress": "in-progress";
1108
+ planned: "planned";
1109
+ abandoned: "abandoned";
1110
+ }>;
1111
+ summary: z.ZodString;
1112
+ priority: z.ZodEnum<{
1113
+ P0: "P0";
1114
+ P1: "P1";
1115
+ P2: "P2";
1116
+ P3: "P3";
1117
+ }>;
1118
+ priorityReason: z.ZodString;
1119
+ repositories: z.ZodArray<z.ZodString>;
1120
+ errorReservations: z.ZodArray<z.ZodObject<{
1121
+ repository: z.ZodString;
1122
+ namespace: z.ZodString;
1123
+ start: z.ZodNumber;
1124
+ end: z.ZodNumber;
1125
+ registryPath: z.ZodString;
1126
+ purpose: z.ZodString;
1127
+ }, z.core.$strict>>;
1128
+ }, z.core.$strip>>;
1129
+ nextCursor: z.ZodNullable<z.ZodString>;
1130
+ revision: z.ZodString;
1131
+ }, z.core.$strip>;
1132
+ export declare const BrowserPlanDetailSchema: z.ZodObject<{
1133
+ summary: z.ZodObject<{
1134
+ id: z.ZodString;
1135
+ directory: z.ZodString;
1136
+ scope: z.ZodString;
1137
+ status: z.ZodEnum<{
1138
+ done: "done";
1139
+ "in-progress": "in-progress";
1140
+ planned: "planned";
1141
+ abandoned: "abandoned";
1142
+ }>;
1143
+ summary: z.ZodString;
1144
+ priority: z.ZodEnum<{
1145
+ P0: "P0";
1146
+ P1: "P1";
1147
+ P2: "P2";
1148
+ P3: "P3";
1149
+ }>;
1150
+ priorityReason: z.ZodString;
1151
+ repositories: z.ZodArray<z.ZodString>;
1152
+ errorReservations: z.ZodArray<z.ZodObject<{
1153
+ repository: z.ZodString;
1154
+ namespace: z.ZodString;
1155
+ start: z.ZodNumber;
1156
+ end: z.ZodNumber;
1157
+ registryPath: z.ZodString;
1158
+ purpose: z.ZodString;
1159
+ }, z.core.$strict>>;
1160
+ }, z.core.$strip>;
1161
+ contract: z.ZodString;
1162
+ status: z.ZodObject<{
1163
+ directory: z.ZodString;
1164
+ revision: z.ZodObject<{
1165
+ planDigest: z.ZodString;
1166
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1167
+ }, z.core.$strict>;
1168
+ inspection: z.ZodObject<{
1169
+ plan: z.ZodString;
1170
+ milestones: z.ZodNullable<z.ZodString>;
1171
+ coordination: z.ZodNullable<z.ZodString>;
1172
+ }, z.core.$strip>;
1173
+ state: z.ZodEnum<{
1174
+ ready: "ready";
1175
+ blocked: "blocked";
1176
+ "plan-approval-required": "plan-approval-required";
1177
+ "breakdown-required": "breakdown-required";
1178
+ "sequence-approval-required": "sequence-approval-required";
1179
+ "in-progress": "in-progress";
1180
+ revising: "revising";
1181
+ completed: "completed";
1182
+ }>;
1183
+ pendingActionId: z.ZodNullable<z.ZodUUID>;
1184
+ isFinalized: z.ZodBoolean;
1185
+ isPlanApproved: z.ZodBoolean;
1186
+ isSequenceApproved: z.ZodBoolean;
1187
+ milestoneCount: z.ZodNumber;
1188
+ coordination: z.ZodObject<{
1189
+ execution: z.ZodNullable<z.ZodObject<{
1190
+ runtimeEpoch: z.ZodUUID;
1191
+ action: z.ZodObject<{
1192
+ id: z.ZodUUID;
1193
+ operatorId: z.ZodString;
1194
+ source: z.ZodObject<{
1195
+ kind: z.ZodEnum<{
1196
+ "user-action": "user-action";
1197
+ "user-message": "user-message";
1198
+ }>;
1199
+ reference: z.ZodString;
1200
+ }, z.core.$strict>;
1201
+ }, z.core.$strict>;
1202
+ revision: z.ZodObject<{
1203
+ planDigest: z.ZodString;
1204
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1205
+ }, z.core.$strict>;
1206
+ mode: z.ZodEnum<{
1207
+ supervised: "supervised";
1208
+ auto: "auto";
1209
+ }>;
1210
+ milestoneIds: z.ZodArray<z.ZodUUID>;
1211
+ createdAt: z.ZodNumber;
1212
+ revokedBy: z.ZodNullable<z.ZodObject<{
1213
+ id: z.ZodUUID;
1214
+ operatorId: z.ZodString;
1215
+ source: z.ZodObject<{
1216
+ kind: z.ZodEnum<{
1217
+ "user-action": "user-action";
1218
+ "user-message": "user-message";
1219
+ }>;
1220
+ reference: z.ZodString;
1221
+ }, z.core.$strict>;
1222
+ }, z.core.$strict>>;
1223
+ }, z.core.$strict>>;
1224
+ schemaVersion: z.ZodLiteral<1>;
1225
+ finalized: z.ZodNullable<z.ZodObject<{
1226
+ action: z.ZodObject<{
1227
+ id: z.ZodUUID;
1228
+ operatorId: z.ZodString;
1229
+ source: z.ZodObject<{
1230
+ kind: z.ZodEnum<{
1231
+ "user-action": "user-action";
1232
+ "user-message": "user-message";
1233
+ }>;
1234
+ reference: z.ZodString;
1235
+ }, z.core.$strict>;
1236
+ }, z.core.$strict>;
1237
+ revision: z.ZodObject<{
1238
+ planDigest: z.ZodString;
1239
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1240
+ }, z.core.$strict>;
1241
+ fileHash: z.ZodNullable<z.ZodString>;
1242
+ createdAt: z.ZodNumber;
1243
+ }, z.core.$strict>>;
1244
+ planApproval: z.ZodNullable<z.ZodObject<{
1245
+ action: z.ZodObject<{
1246
+ id: z.ZodUUID;
1247
+ operatorId: z.ZodString;
1248
+ source: z.ZodObject<{
1249
+ kind: z.ZodEnum<{
1250
+ "user-action": "user-action";
1251
+ "user-message": "user-message";
1252
+ }>;
1253
+ reference: z.ZodString;
1254
+ }, z.core.$strict>;
1255
+ }, z.core.$strict>;
1256
+ revision: z.ZodObject<{
1257
+ planDigest: z.ZodString;
1258
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1259
+ }, z.core.$strict>;
1260
+ presentationHash: z.ZodString;
1261
+ createdAt: z.ZodNumber;
1262
+ revokedBy: z.ZodNullable<z.ZodObject<{
1263
+ id: z.ZodUUID;
1264
+ operatorId: z.ZodString;
1265
+ source: z.ZodObject<{
1266
+ kind: z.ZodEnum<{
1267
+ "user-action": "user-action";
1268
+ "user-message": "user-message";
1269
+ }>;
1270
+ reference: z.ZodString;
1271
+ }, z.core.$strict>;
1272
+ }, z.core.$strict>>;
1273
+ }, z.core.$strict>>;
1274
+ sequenceApproval: z.ZodNullable<z.ZodObject<{
1275
+ action: z.ZodObject<{
1276
+ id: z.ZodUUID;
1277
+ operatorId: z.ZodString;
1278
+ source: z.ZodObject<{
1279
+ kind: z.ZodEnum<{
1280
+ "user-action": "user-action";
1281
+ "user-message": "user-message";
1282
+ }>;
1283
+ reference: z.ZodString;
1284
+ }, z.core.$strict>;
1285
+ }, z.core.$strict>;
1286
+ revision: z.ZodObject<{
1287
+ planDigest: z.ZodString;
1288
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1289
+ }, z.core.$strict>;
1290
+ presentationHash: z.ZodString;
1291
+ createdAt: z.ZodNumber;
1292
+ revokedBy: z.ZodNullable<z.ZodObject<{
1293
+ id: z.ZodUUID;
1294
+ operatorId: z.ZodString;
1295
+ source: z.ZodObject<{
1296
+ kind: z.ZodEnum<{
1297
+ "user-action": "user-action";
1298
+ "user-message": "user-message";
1299
+ }>;
1300
+ reference: z.ZodString;
1301
+ }, z.core.$strict>;
1302
+ }, z.core.$strict>>;
1303
+ }, z.core.$strict>>;
1304
+ lastActionId: z.ZodNullable<z.ZodUUID>;
1305
+ observedConflict: z.ZodNullable<z.ZodObject<{
1306
+ id: z.ZodUUID;
1307
+ revision: z.ZodNullable<z.ZodObject<{
1308
+ planDigest: z.ZodString;
1309
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1310
+ }, z.core.$strict>>;
1311
+ observedAt: z.ZodNumber;
1312
+ ownerRuntimeEpoch: z.ZodUUID;
1313
+ phase: z.ZodEnum<{
1314
+ quiescing: "quiescing";
1315
+ blocked: "blocked";
1316
+ quiescent: "quiescent";
1317
+ }>;
1318
+ controls: z.ZodArray<z.ZodObject<{
1319
+ threadId: z.ZodUUID;
1320
+ interruptActionId: z.ZodUUID;
1321
+ closeActionId: z.ZodUUID;
1322
+ }, z.core.$strict>>;
1323
+ }, z.core.$strict>>;
1324
+ comparisonCount: z.ZodNumber;
1325
+ completionCount: z.ZodNumber;
1326
+ revision: z.ZodNullable<z.ZodObject<{
1327
+ createdAt: z.ZodNumber;
1328
+ id: z.ZodUUID;
1329
+ action: z.ZodObject<{
1330
+ id: z.ZodUUID;
1331
+ operatorId: z.ZodString;
1332
+ source: z.ZodObject<{
1333
+ kind: z.ZodEnum<{
1334
+ "user-action": "user-action";
1335
+ "user-message": "user-message";
1336
+ }>;
1337
+ reference: z.ZodString;
1338
+ }, z.core.$strict>;
1339
+ }, z.core.$strict>;
1340
+ threadIds: z.ZodArray<z.ZodUUID>;
1341
+ intent: z.ZodEnum<{
1342
+ plan: "plan";
1343
+ breakdown: "breakdown";
1344
+ }>;
1345
+ phaseActionId: z.ZodUUID;
1346
+ ownerRuntimeEpoch: z.ZodUUID;
1347
+ phase: z.ZodEnum<{
1348
+ quiescing: "quiescing";
1349
+ editing: "editing";
1350
+ reconciling: "reconciling";
1351
+ "awaiting-approval": "awaiting-approval";
1352
+ blocked: "blocked";
1353
+ finished: "finished";
1354
+ }>;
1355
+ reason: z.ZodNullable<z.ZodString>;
1356
+ invocation: z.ZodNullable<z.ZodObject<{
1357
+ action: z.ZodObject<{
1358
+ id: z.ZodUUID;
1359
+ operatorId: z.ZodString;
1360
+ source: z.ZodObject<{
1361
+ kind: z.ZodEnum<{
1362
+ "user-action": "user-action";
1363
+ "user-message": "user-message";
1364
+ }>;
1365
+ reference: z.ZodString;
1366
+ }, z.core.$strict>;
1367
+ }, z.core.$strict>;
1368
+ skill: z.ZodEnum<{
1369
+ "jg-plan": "jg-plan";
1370
+ "jg-breakdown": "jg-breakdown";
1371
+ }>;
1372
+ }, z.core.$strict>>;
1373
+ hasUncertainEffects: z.ZodBoolean;
1374
+ hasCheckpoint: z.ZodBoolean;
1375
+ hasProposal: z.ZodBoolean;
1376
+ unmatchedCount: z.ZodNumber;
1377
+ }, z.core.$strict>>;
1378
+ }, z.core.$strict>;
1379
+ }, z.core.$strip>;
1380
+ presentation: z.ZodNullable<z.ZodString>;
1381
+ page: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1382
+ kind: z.ZodLiteral<"status">;
1383
+ result: z.ZodObject<{
1384
+ directory: z.ZodString;
1385
+ revision: z.ZodObject<{
1386
+ planDigest: z.ZodString;
1387
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1388
+ }, z.core.$strict>;
1389
+ inspection: z.ZodObject<{
1390
+ plan: z.ZodString;
1391
+ milestones: z.ZodNullable<z.ZodString>;
1392
+ coordination: z.ZodNullable<z.ZodString>;
1393
+ }, z.core.$strip>;
1394
+ state: z.ZodEnum<{
1395
+ ready: "ready";
1396
+ blocked: "blocked";
1397
+ "plan-approval-required": "plan-approval-required";
1398
+ "breakdown-required": "breakdown-required";
1399
+ "sequence-approval-required": "sequence-approval-required";
1400
+ "in-progress": "in-progress";
1401
+ revising: "revising";
1402
+ completed: "completed";
1403
+ }>;
1404
+ pendingActionId: z.ZodNullable<z.ZodUUID>;
1405
+ isFinalized: z.ZodBoolean;
1406
+ isPlanApproved: z.ZodBoolean;
1407
+ isSequenceApproved: z.ZodBoolean;
1408
+ milestoneCount: z.ZodNumber;
1409
+ coordination: z.ZodObject<{
1410
+ execution: z.ZodNullable<z.ZodObject<{
1411
+ runtimeEpoch: z.ZodUUID;
1412
+ action: z.ZodObject<{
1413
+ id: z.ZodUUID;
1414
+ operatorId: z.ZodString;
1415
+ source: z.ZodObject<{
1416
+ kind: z.ZodEnum<{
1417
+ "user-action": "user-action";
1418
+ "user-message": "user-message";
1419
+ }>;
1420
+ reference: z.ZodString;
1421
+ }, z.core.$strict>;
1422
+ }, z.core.$strict>;
1423
+ revision: z.ZodObject<{
1424
+ planDigest: z.ZodString;
1425
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1426
+ }, z.core.$strict>;
1427
+ mode: z.ZodEnum<{
1428
+ supervised: "supervised";
1429
+ auto: "auto";
1430
+ }>;
1431
+ milestoneIds: z.ZodArray<z.ZodUUID>;
1432
+ createdAt: z.ZodNumber;
1433
+ revokedBy: z.ZodNullable<z.ZodObject<{
1434
+ id: z.ZodUUID;
1435
+ operatorId: z.ZodString;
1436
+ source: z.ZodObject<{
1437
+ kind: z.ZodEnum<{
1438
+ "user-action": "user-action";
1439
+ "user-message": "user-message";
1440
+ }>;
1441
+ reference: z.ZodString;
1442
+ }, z.core.$strict>;
1443
+ }, z.core.$strict>>;
1444
+ }, z.core.$strict>>;
1445
+ schemaVersion: z.ZodLiteral<1>;
1446
+ finalized: z.ZodNullable<z.ZodObject<{
1447
+ action: z.ZodObject<{
1448
+ id: z.ZodUUID;
1449
+ operatorId: z.ZodString;
1450
+ source: z.ZodObject<{
1451
+ kind: z.ZodEnum<{
1452
+ "user-action": "user-action";
1453
+ "user-message": "user-message";
1454
+ }>;
1455
+ reference: z.ZodString;
1456
+ }, z.core.$strict>;
1457
+ }, z.core.$strict>;
1458
+ revision: z.ZodObject<{
1459
+ planDigest: z.ZodString;
1460
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1461
+ }, z.core.$strict>;
1462
+ fileHash: z.ZodNullable<z.ZodString>;
1463
+ createdAt: z.ZodNumber;
1464
+ }, z.core.$strict>>;
1465
+ planApproval: z.ZodNullable<z.ZodObject<{
1466
+ action: z.ZodObject<{
1467
+ id: z.ZodUUID;
1468
+ operatorId: z.ZodString;
1469
+ source: z.ZodObject<{
1470
+ kind: z.ZodEnum<{
1471
+ "user-action": "user-action";
1472
+ "user-message": "user-message";
1473
+ }>;
1474
+ reference: z.ZodString;
1475
+ }, z.core.$strict>;
1476
+ }, z.core.$strict>;
1477
+ revision: z.ZodObject<{
1478
+ planDigest: z.ZodString;
1479
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1480
+ }, z.core.$strict>;
1481
+ presentationHash: z.ZodString;
1482
+ createdAt: z.ZodNumber;
1483
+ revokedBy: z.ZodNullable<z.ZodObject<{
1484
+ id: z.ZodUUID;
1485
+ operatorId: z.ZodString;
1486
+ source: z.ZodObject<{
1487
+ kind: z.ZodEnum<{
1488
+ "user-action": "user-action";
1489
+ "user-message": "user-message";
1490
+ }>;
1491
+ reference: z.ZodString;
1492
+ }, z.core.$strict>;
1493
+ }, z.core.$strict>>;
1494
+ }, z.core.$strict>>;
1495
+ sequenceApproval: z.ZodNullable<z.ZodObject<{
1496
+ action: z.ZodObject<{
1497
+ id: z.ZodUUID;
1498
+ operatorId: z.ZodString;
1499
+ source: z.ZodObject<{
1500
+ kind: z.ZodEnum<{
1501
+ "user-action": "user-action";
1502
+ "user-message": "user-message";
1503
+ }>;
1504
+ reference: z.ZodString;
1505
+ }, z.core.$strict>;
1506
+ }, z.core.$strict>;
1507
+ revision: z.ZodObject<{
1508
+ planDigest: z.ZodString;
1509
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1510
+ }, z.core.$strict>;
1511
+ presentationHash: z.ZodString;
1512
+ createdAt: z.ZodNumber;
1513
+ revokedBy: z.ZodNullable<z.ZodObject<{
1514
+ id: z.ZodUUID;
1515
+ operatorId: z.ZodString;
1516
+ source: z.ZodObject<{
1517
+ kind: z.ZodEnum<{
1518
+ "user-action": "user-action";
1519
+ "user-message": "user-message";
1520
+ }>;
1521
+ reference: z.ZodString;
1522
+ }, z.core.$strict>;
1523
+ }, z.core.$strict>>;
1524
+ }, z.core.$strict>>;
1525
+ lastActionId: z.ZodNullable<z.ZodUUID>;
1526
+ observedConflict: z.ZodNullable<z.ZodObject<{
1527
+ id: z.ZodUUID;
1528
+ revision: z.ZodNullable<z.ZodObject<{
1529
+ planDigest: z.ZodString;
1530
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1531
+ }, z.core.$strict>>;
1532
+ observedAt: z.ZodNumber;
1533
+ ownerRuntimeEpoch: z.ZodUUID;
1534
+ phase: z.ZodEnum<{
1535
+ quiescing: "quiescing";
1536
+ blocked: "blocked";
1537
+ quiescent: "quiescent";
1538
+ }>;
1539
+ controls: z.ZodArray<z.ZodObject<{
1540
+ threadId: z.ZodUUID;
1541
+ interruptActionId: z.ZodUUID;
1542
+ closeActionId: z.ZodUUID;
1543
+ }, z.core.$strict>>;
1544
+ }, z.core.$strict>>;
1545
+ comparisonCount: z.ZodNumber;
1546
+ completionCount: z.ZodNumber;
1547
+ revision: z.ZodNullable<z.ZodObject<{
1548
+ createdAt: z.ZodNumber;
1549
+ id: z.ZodUUID;
1550
+ action: z.ZodObject<{
1551
+ id: z.ZodUUID;
1552
+ operatorId: z.ZodString;
1553
+ source: z.ZodObject<{
1554
+ kind: z.ZodEnum<{
1555
+ "user-action": "user-action";
1556
+ "user-message": "user-message";
1557
+ }>;
1558
+ reference: z.ZodString;
1559
+ }, z.core.$strict>;
1560
+ }, z.core.$strict>;
1561
+ threadIds: z.ZodArray<z.ZodUUID>;
1562
+ intent: z.ZodEnum<{
1563
+ plan: "plan";
1564
+ breakdown: "breakdown";
1565
+ }>;
1566
+ phaseActionId: z.ZodUUID;
1567
+ ownerRuntimeEpoch: z.ZodUUID;
1568
+ phase: z.ZodEnum<{
1569
+ quiescing: "quiescing";
1570
+ editing: "editing";
1571
+ reconciling: "reconciling";
1572
+ "awaiting-approval": "awaiting-approval";
1573
+ blocked: "blocked";
1574
+ finished: "finished";
1575
+ }>;
1576
+ reason: z.ZodNullable<z.ZodString>;
1577
+ invocation: z.ZodNullable<z.ZodObject<{
1578
+ action: z.ZodObject<{
1579
+ id: z.ZodUUID;
1580
+ operatorId: z.ZodString;
1581
+ source: z.ZodObject<{
1582
+ kind: z.ZodEnum<{
1583
+ "user-action": "user-action";
1584
+ "user-message": "user-message";
1585
+ }>;
1586
+ reference: z.ZodString;
1587
+ }, z.core.$strict>;
1588
+ }, z.core.$strict>;
1589
+ skill: z.ZodEnum<{
1590
+ "jg-plan": "jg-plan";
1591
+ "jg-breakdown": "jg-breakdown";
1592
+ }>;
1593
+ }, z.core.$strict>>;
1594
+ hasUncertainEffects: z.ZodBoolean;
1595
+ hasCheckpoint: z.ZodBoolean;
1596
+ hasProposal: z.ZodBoolean;
1597
+ unmatchedCount: z.ZodNumber;
1598
+ }, z.core.$strict>>;
1599
+ }, z.core.$strict>;
1600
+ }, z.core.$strip>;
1601
+ }, z.core.$strip>, z.ZodObject<{
1602
+ kind: z.ZodLiteral<"reconciliation-required">;
1603
+ result: z.ZodObject<{
1604
+ directory: z.ZodString;
1605
+ revision: z.ZodObject<{
1606
+ planDigest: z.ZodString;
1607
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1608
+ }, z.core.$strict>;
1609
+ inspection: z.ZodObject<{
1610
+ plan: z.ZodString;
1611
+ milestones: z.ZodNullable<z.ZodString>;
1612
+ coordination: z.ZodNullable<z.ZodString>;
1613
+ }, z.core.$strip>;
1614
+ state: z.ZodEnum<{
1615
+ ready: "ready";
1616
+ blocked: "blocked";
1617
+ "plan-approval-required": "plan-approval-required";
1618
+ "breakdown-required": "breakdown-required";
1619
+ "sequence-approval-required": "sequence-approval-required";
1620
+ "in-progress": "in-progress";
1621
+ revising: "revising";
1622
+ completed: "completed";
1623
+ }>;
1624
+ pendingActionId: z.ZodNullable<z.ZodUUID>;
1625
+ isFinalized: z.ZodBoolean;
1626
+ isPlanApproved: z.ZodBoolean;
1627
+ isSequenceApproved: z.ZodBoolean;
1628
+ milestoneCount: z.ZodNumber;
1629
+ coordination: z.ZodObject<{
1630
+ execution: z.ZodNullable<z.ZodObject<{
1631
+ runtimeEpoch: z.ZodUUID;
1632
+ action: z.ZodObject<{
1633
+ id: z.ZodUUID;
1634
+ operatorId: z.ZodString;
1635
+ source: z.ZodObject<{
1636
+ kind: z.ZodEnum<{
1637
+ "user-action": "user-action";
1638
+ "user-message": "user-message";
1639
+ }>;
1640
+ reference: z.ZodString;
1641
+ }, z.core.$strict>;
1642
+ }, z.core.$strict>;
1643
+ revision: z.ZodObject<{
1644
+ planDigest: z.ZodString;
1645
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1646
+ }, z.core.$strict>;
1647
+ mode: z.ZodEnum<{
1648
+ supervised: "supervised";
1649
+ auto: "auto";
1650
+ }>;
1651
+ milestoneIds: z.ZodArray<z.ZodUUID>;
1652
+ createdAt: z.ZodNumber;
1653
+ revokedBy: z.ZodNullable<z.ZodObject<{
1654
+ id: z.ZodUUID;
1655
+ operatorId: z.ZodString;
1656
+ source: z.ZodObject<{
1657
+ kind: z.ZodEnum<{
1658
+ "user-action": "user-action";
1659
+ "user-message": "user-message";
1660
+ }>;
1661
+ reference: z.ZodString;
1662
+ }, z.core.$strict>;
1663
+ }, z.core.$strict>>;
1664
+ }, z.core.$strict>>;
1665
+ schemaVersion: z.ZodLiteral<1>;
1666
+ finalized: z.ZodNullable<z.ZodObject<{
1667
+ action: z.ZodObject<{
1668
+ id: z.ZodUUID;
1669
+ operatorId: z.ZodString;
1670
+ source: z.ZodObject<{
1671
+ kind: z.ZodEnum<{
1672
+ "user-action": "user-action";
1673
+ "user-message": "user-message";
1674
+ }>;
1675
+ reference: z.ZodString;
1676
+ }, z.core.$strict>;
1677
+ }, z.core.$strict>;
1678
+ revision: z.ZodObject<{
1679
+ planDigest: z.ZodString;
1680
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1681
+ }, z.core.$strict>;
1682
+ fileHash: z.ZodNullable<z.ZodString>;
1683
+ createdAt: z.ZodNumber;
1684
+ }, z.core.$strict>>;
1685
+ planApproval: z.ZodNullable<z.ZodObject<{
1686
+ action: z.ZodObject<{
1687
+ id: z.ZodUUID;
1688
+ operatorId: z.ZodString;
1689
+ source: z.ZodObject<{
1690
+ kind: z.ZodEnum<{
1691
+ "user-action": "user-action";
1692
+ "user-message": "user-message";
1693
+ }>;
1694
+ reference: z.ZodString;
1695
+ }, z.core.$strict>;
1696
+ }, z.core.$strict>;
1697
+ revision: z.ZodObject<{
1698
+ planDigest: z.ZodString;
1699
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1700
+ }, z.core.$strict>;
1701
+ presentationHash: z.ZodString;
1702
+ createdAt: z.ZodNumber;
1703
+ revokedBy: z.ZodNullable<z.ZodObject<{
1704
+ id: z.ZodUUID;
1705
+ operatorId: z.ZodString;
1706
+ source: z.ZodObject<{
1707
+ kind: z.ZodEnum<{
1708
+ "user-action": "user-action";
1709
+ "user-message": "user-message";
1710
+ }>;
1711
+ reference: z.ZodString;
1712
+ }, z.core.$strict>;
1713
+ }, z.core.$strict>>;
1714
+ }, z.core.$strict>>;
1715
+ sequenceApproval: z.ZodNullable<z.ZodObject<{
1716
+ action: z.ZodObject<{
1717
+ id: z.ZodUUID;
1718
+ operatorId: z.ZodString;
1719
+ source: z.ZodObject<{
1720
+ kind: z.ZodEnum<{
1721
+ "user-action": "user-action";
1722
+ "user-message": "user-message";
1723
+ }>;
1724
+ reference: z.ZodString;
1725
+ }, z.core.$strict>;
1726
+ }, z.core.$strict>;
1727
+ revision: z.ZodObject<{
1728
+ planDigest: z.ZodString;
1729
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1730
+ }, z.core.$strict>;
1731
+ presentationHash: z.ZodString;
1732
+ createdAt: z.ZodNumber;
1733
+ revokedBy: z.ZodNullable<z.ZodObject<{
1734
+ id: z.ZodUUID;
1735
+ operatorId: z.ZodString;
1736
+ source: z.ZodObject<{
1737
+ kind: z.ZodEnum<{
1738
+ "user-action": "user-action";
1739
+ "user-message": "user-message";
1740
+ }>;
1741
+ reference: z.ZodString;
1742
+ }, z.core.$strict>;
1743
+ }, z.core.$strict>>;
1744
+ }, z.core.$strict>>;
1745
+ lastActionId: z.ZodNullable<z.ZodUUID>;
1746
+ observedConflict: z.ZodNullable<z.ZodObject<{
1747
+ id: z.ZodUUID;
1748
+ revision: z.ZodNullable<z.ZodObject<{
1749
+ planDigest: z.ZodString;
1750
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1751
+ }, z.core.$strict>>;
1752
+ observedAt: z.ZodNumber;
1753
+ ownerRuntimeEpoch: z.ZodUUID;
1754
+ phase: z.ZodEnum<{
1755
+ quiescing: "quiescing";
1756
+ blocked: "blocked";
1757
+ quiescent: "quiescent";
1758
+ }>;
1759
+ controls: z.ZodArray<z.ZodObject<{
1760
+ threadId: z.ZodUUID;
1761
+ interruptActionId: z.ZodUUID;
1762
+ closeActionId: z.ZodUUID;
1763
+ }, z.core.$strict>>;
1764
+ }, z.core.$strict>>;
1765
+ comparisonCount: z.ZodNumber;
1766
+ completionCount: z.ZodNumber;
1767
+ revision: z.ZodNullable<z.ZodObject<{
1768
+ createdAt: z.ZodNumber;
1769
+ id: z.ZodUUID;
1770
+ action: z.ZodObject<{
1771
+ id: z.ZodUUID;
1772
+ operatorId: z.ZodString;
1773
+ source: z.ZodObject<{
1774
+ kind: z.ZodEnum<{
1775
+ "user-action": "user-action";
1776
+ "user-message": "user-message";
1777
+ }>;
1778
+ reference: z.ZodString;
1779
+ }, z.core.$strict>;
1780
+ }, z.core.$strict>;
1781
+ threadIds: z.ZodArray<z.ZodUUID>;
1782
+ intent: z.ZodEnum<{
1783
+ plan: "plan";
1784
+ breakdown: "breakdown";
1785
+ }>;
1786
+ phaseActionId: z.ZodUUID;
1787
+ ownerRuntimeEpoch: z.ZodUUID;
1788
+ phase: z.ZodEnum<{
1789
+ quiescing: "quiescing";
1790
+ editing: "editing";
1791
+ reconciling: "reconciling";
1792
+ "awaiting-approval": "awaiting-approval";
1793
+ blocked: "blocked";
1794
+ finished: "finished";
1795
+ }>;
1796
+ reason: z.ZodNullable<z.ZodString>;
1797
+ invocation: z.ZodNullable<z.ZodObject<{
1798
+ action: z.ZodObject<{
1799
+ id: z.ZodUUID;
1800
+ operatorId: z.ZodString;
1801
+ source: z.ZodObject<{
1802
+ kind: z.ZodEnum<{
1803
+ "user-action": "user-action";
1804
+ "user-message": "user-message";
1805
+ }>;
1806
+ reference: z.ZodString;
1807
+ }, z.core.$strict>;
1808
+ }, z.core.$strict>;
1809
+ skill: z.ZodEnum<{
1810
+ "jg-plan": "jg-plan";
1811
+ "jg-breakdown": "jg-breakdown";
1812
+ }>;
1813
+ }, z.core.$strict>>;
1814
+ hasUncertainEffects: z.ZodBoolean;
1815
+ hasCheckpoint: z.ZodBoolean;
1816
+ hasProposal: z.ZodBoolean;
1817
+ unmatchedCount: z.ZodNumber;
1818
+ }, z.core.$strict>>;
1819
+ }, z.core.$strict>;
1820
+ }, z.core.$strip>;
1821
+ }, z.core.$strip>, z.ZodObject<{
1822
+ kind: z.ZodLiteral<"reconciliation">;
1823
+ result: z.ZodObject<{
1824
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1825
+ kind: z.ZodLiteral<"source">;
1826
+ entry: z.ZodObject<{
1827
+ ordinal: z.ZodNumber;
1828
+ title: z.ZodString;
1829
+ status: z.ZodEnum<{
1830
+ pending: "pending";
1831
+ "in progress": "in progress";
1832
+ done: "done";
1833
+ }>;
1834
+ id: z.ZodUUID;
1835
+ contractDigest: z.ZodString;
1836
+ contract: z.ZodString;
1837
+ sharedDigest: z.ZodString;
1838
+ }, z.core.$strip>;
1839
+ }, z.core.$strip>, z.ZodObject<{
1840
+ kind: z.ZodLiteral<"draft">;
1841
+ entry: z.ZodObject<{
1842
+ ordinal: z.ZodNumber;
1843
+ title: z.ZodString;
1844
+ status: z.ZodEnum<{
1845
+ pending: "pending";
1846
+ "in progress": "in progress";
1847
+ done: "done";
1848
+ }>;
1849
+ id: z.ZodUUID;
1850
+ contractDigest: z.ZodString;
1851
+ contract: z.ZodString;
1852
+ sharedDigest: z.ZodString;
1853
+ matchedSourceId: z.ZodNullable<z.ZodUUID>;
1854
+ }, z.core.$strip>;
1855
+ }, z.core.$strip>, z.ZodObject<{
1856
+ kind: z.ZodLiteral<"evidence">;
1857
+ entry: z.ZodObject<{
1858
+ id: z.ZodUUID;
1859
+ action: z.ZodObject<{
1860
+ id: z.ZodUUID;
1861
+ operatorId: z.ZodString;
1862
+ source: z.ZodObject<{
1863
+ kind: z.ZodEnum<{
1864
+ "user-action": "user-action";
1865
+ "user-message": "user-message";
1866
+ }>;
1867
+ reference: z.ZodString;
1868
+ }, z.core.$strict>;
1869
+ }, z.core.$strict>;
1870
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1871
+ revision: z.ZodObject<{
1872
+ planDigest: z.ZodString;
1873
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1874
+ }, z.core.$strict>;
1875
+ contractDigest: z.ZodString;
1876
+ title: z.ZodString;
1877
+ contract: z.ZodString;
1878
+ sharedDigest: z.ZodNullable<z.ZodString>;
1879
+ checkouts: z.ZodArray<z.ZodObject<{
1880
+ repository: z.ZodString;
1881
+ directory: z.ZodString;
1882
+ claimReference: z.ZodString;
1883
+ paths: z.ZodArray<z.ZodString>;
1884
+ branch: z.ZodNullable<z.ZodString>;
1885
+ head: z.ZodString;
1886
+ fingerprint: z.ZodString;
1887
+ }, z.core.$strict>>;
1888
+ checks: z.ZodArray<z.ZodObject<{
1889
+ command: z.ZodString;
1890
+ outcome: z.ZodLiteral<"passed">;
1891
+ reference: z.ZodString;
1892
+ }, z.core.$strict>>;
1893
+ completedAt: z.ZodNumber;
1894
+ reopenActionId: z.ZodNullable<z.ZodUUID>;
1895
+ }, z.core.$strict>;
1896
+ }, z.core.$strip>, z.ZodObject<{
1897
+ kind: z.ZodLiteral<"correspondence">;
1898
+ entry: z.ZodObject<{
1899
+ id: z.ZodUUID;
1900
+ action: z.ZodObject<{
1901
+ id: z.ZodUUID;
1902
+ operatorId: z.ZodString;
1903
+ source: z.ZodObject<{
1904
+ kind: z.ZodEnum<{
1905
+ "user-action": "user-action";
1906
+ "user-message": "user-message";
1907
+ }>;
1908
+ reference: z.ZodString;
1909
+ }, z.core.$strict>;
1910
+ }, z.core.$strict>;
1911
+ revision: z.ZodObject<{
1912
+ planDigest: z.ZodString;
1913
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1914
+ }, z.core.$strict>;
1915
+ relation: z.ZodEnum<{
1916
+ equivalent: "equivalent";
1917
+ "requirements-changed": "requirements-changed";
1918
+ omitted: "omitted";
1919
+ reopened: "reopened";
1920
+ }>;
1921
+ targets: z.ZodArray<z.ZodObject<{
1922
+ id: z.ZodUUID;
1923
+ contractDigest: z.ZodString;
1924
+ status: z.ZodEnum<{
1925
+ pending: "pending";
1926
+ "in progress": "in progress";
1927
+ done: "done";
1928
+ }>;
1929
+ }, z.core.$strict>>;
1930
+ invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
1931
+ recordedAt: z.ZodNumber;
1932
+ sources: z.ZodArray<z.ZodObject<{
1933
+ id: z.ZodUUID;
1934
+ status: z.ZodEnum<{
1935
+ pending: "pending";
1936
+ "in progress": "in progress";
1937
+ done: "done";
1938
+ }>;
1939
+ contractDigest: z.ZodString;
1940
+ }, z.core.$strip>>;
1941
+ }, z.core.$strict>;
1942
+ }, z.core.$strip>], "kind">>;
1943
+ nextCursor: z.ZodNullable<z.ZodString>;
1944
+ }, z.core.$strip>;
1945
+ }, z.core.$strip>, z.ZodObject<{
1946
+ kind: z.ZodLiteral<"finalized">;
1947
+ result: z.ZodObject<{
1948
+ directory: z.ZodString;
1949
+ revision: z.ZodObject<{
1950
+ planDigest: z.ZodString;
1951
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1952
+ }, z.core.$strict>;
1953
+ inspection: z.ZodObject<{
1954
+ plan: z.ZodString;
1955
+ milestones: z.ZodNullable<z.ZodString>;
1956
+ coordination: z.ZodNullable<z.ZodString>;
1957
+ }, z.core.$strip>;
1958
+ state: z.ZodEnum<{
1959
+ ready: "ready";
1960
+ blocked: "blocked";
1961
+ "plan-approval-required": "plan-approval-required";
1962
+ "breakdown-required": "breakdown-required";
1963
+ "sequence-approval-required": "sequence-approval-required";
1964
+ "in-progress": "in-progress";
1965
+ revising: "revising";
1966
+ completed: "completed";
1967
+ }>;
1968
+ pendingActionId: z.ZodNullable<z.ZodUUID>;
1969
+ isFinalized: z.ZodBoolean;
1970
+ isPlanApproved: z.ZodBoolean;
1971
+ isSequenceApproved: z.ZodBoolean;
1972
+ milestoneCount: z.ZodNumber;
1973
+ coordination: z.ZodObject<{
1974
+ execution: z.ZodNullable<z.ZodObject<{
1975
+ runtimeEpoch: z.ZodUUID;
1976
+ action: z.ZodObject<{
1977
+ id: z.ZodUUID;
1978
+ operatorId: z.ZodString;
1979
+ source: z.ZodObject<{
1980
+ kind: z.ZodEnum<{
1981
+ "user-action": "user-action";
1982
+ "user-message": "user-message";
1983
+ }>;
1984
+ reference: z.ZodString;
1985
+ }, z.core.$strict>;
1986
+ }, z.core.$strict>;
1987
+ revision: z.ZodObject<{
1988
+ planDigest: z.ZodString;
1989
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1990
+ }, z.core.$strict>;
1991
+ mode: z.ZodEnum<{
1992
+ supervised: "supervised";
1993
+ auto: "auto";
1994
+ }>;
1995
+ milestoneIds: z.ZodArray<z.ZodUUID>;
1996
+ createdAt: z.ZodNumber;
1997
+ revokedBy: z.ZodNullable<z.ZodObject<{
1998
+ id: z.ZodUUID;
1999
+ operatorId: z.ZodString;
2000
+ source: z.ZodObject<{
2001
+ kind: z.ZodEnum<{
2002
+ "user-action": "user-action";
2003
+ "user-message": "user-message";
2004
+ }>;
2005
+ reference: z.ZodString;
2006
+ }, z.core.$strict>;
2007
+ }, z.core.$strict>>;
2008
+ }, z.core.$strict>>;
2009
+ schemaVersion: z.ZodLiteral<1>;
2010
+ finalized: z.ZodNullable<z.ZodObject<{
2011
+ action: z.ZodObject<{
2012
+ id: z.ZodUUID;
2013
+ operatorId: z.ZodString;
2014
+ source: z.ZodObject<{
2015
+ kind: z.ZodEnum<{
2016
+ "user-action": "user-action";
2017
+ "user-message": "user-message";
2018
+ }>;
2019
+ reference: z.ZodString;
2020
+ }, z.core.$strict>;
2021
+ }, z.core.$strict>;
2022
+ revision: z.ZodObject<{
2023
+ planDigest: z.ZodString;
2024
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2025
+ }, z.core.$strict>;
2026
+ fileHash: z.ZodNullable<z.ZodString>;
2027
+ createdAt: z.ZodNumber;
2028
+ }, z.core.$strict>>;
2029
+ planApproval: z.ZodNullable<z.ZodObject<{
2030
+ action: z.ZodObject<{
2031
+ id: z.ZodUUID;
2032
+ operatorId: z.ZodString;
2033
+ source: z.ZodObject<{
2034
+ kind: z.ZodEnum<{
2035
+ "user-action": "user-action";
2036
+ "user-message": "user-message";
2037
+ }>;
2038
+ reference: z.ZodString;
2039
+ }, z.core.$strict>;
2040
+ }, z.core.$strict>;
2041
+ revision: z.ZodObject<{
2042
+ planDigest: z.ZodString;
2043
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2044
+ }, z.core.$strict>;
2045
+ presentationHash: z.ZodString;
2046
+ createdAt: z.ZodNumber;
2047
+ revokedBy: z.ZodNullable<z.ZodObject<{
2048
+ id: z.ZodUUID;
2049
+ operatorId: z.ZodString;
2050
+ source: z.ZodObject<{
2051
+ kind: z.ZodEnum<{
2052
+ "user-action": "user-action";
2053
+ "user-message": "user-message";
2054
+ }>;
2055
+ reference: z.ZodString;
2056
+ }, z.core.$strict>;
2057
+ }, z.core.$strict>>;
2058
+ }, z.core.$strict>>;
2059
+ sequenceApproval: z.ZodNullable<z.ZodObject<{
2060
+ action: z.ZodObject<{
2061
+ id: z.ZodUUID;
2062
+ operatorId: z.ZodString;
2063
+ source: z.ZodObject<{
2064
+ kind: z.ZodEnum<{
2065
+ "user-action": "user-action";
2066
+ "user-message": "user-message";
2067
+ }>;
2068
+ reference: z.ZodString;
2069
+ }, z.core.$strict>;
2070
+ }, z.core.$strict>;
2071
+ revision: z.ZodObject<{
2072
+ planDigest: z.ZodString;
2073
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2074
+ }, z.core.$strict>;
2075
+ presentationHash: z.ZodString;
2076
+ createdAt: z.ZodNumber;
2077
+ revokedBy: z.ZodNullable<z.ZodObject<{
2078
+ id: z.ZodUUID;
2079
+ operatorId: z.ZodString;
2080
+ source: z.ZodObject<{
2081
+ kind: z.ZodEnum<{
2082
+ "user-action": "user-action";
2083
+ "user-message": "user-message";
2084
+ }>;
2085
+ reference: z.ZodString;
2086
+ }, z.core.$strict>;
2087
+ }, z.core.$strict>>;
2088
+ }, z.core.$strict>>;
2089
+ lastActionId: z.ZodNullable<z.ZodUUID>;
2090
+ observedConflict: z.ZodNullable<z.ZodObject<{
2091
+ id: z.ZodUUID;
2092
+ revision: z.ZodNullable<z.ZodObject<{
2093
+ planDigest: z.ZodString;
2094
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2095
+ }, z.core.$strict>>;
2096
+ observedAt: z.ZodNumber;
2097
+ ownerRuntimeEpoch: z.ZodUUID;
2098
+ phase: z.ZodEnum<{
2099
+ quiescing: "quiescing";
2100
+ blocked: "blocked";
2101
+ quiescent: "quiescent";
2102
+ }>;
2103
+ controls: z.ZodArray<z.ZodObject<{
2104
+ threadId: z.ZodUUID;
2105
+ interruptActionId: z.ZodUUID;
2106
+ closeActionId: z.ZodUUID;
2107
+ }, z.core.$strict>>;
2108
+ }, z.core.$strict>>;
2109
+ comparisonCount: z.ZodNumber;
2110
+ completionCount: z.ZodNumber;
2111
+ revision: z.ZodNullable<z.ZodObject<{
2112
+ createdAt: z.ZodNumber;
2113
+ id: z.ZodUUID;
2114
+ action: z.ZodObject<{
2115
+ id: z.ZodUUID;
2116
+ operatorId: z.ZodString;
2117
+ source: z.ZodObject<{
2118
+ kind: z.ZodEnum<{
2119
+ "user-action": "user-action";
2120
+ "user-message": "user-message";
2121
+ }>;
2122
+ reference: z.ZodString;
2123
+ }, z.core.$strict>;
2124
+ }, z.core.$strict>;
2125
+ threadIds: z.ZodArray<z.ZodUUID>;
2126
+ intent: z.ZodEnum<{
2127
+ plan: "plan";
2128
+ breakdown: "breakdown";
2129
+ }>;
2130
+ phaseActionId: z.ZodUUID;
2131
+ ownerRuntimeEpoch: z.ZodUUID;
2132
+ phase: z.ZodEnum<{
2133
+ quiescing: "quiescing";
2134
+ editing: "editing";
2135
+ reconciling: "reconciling";
2136
+ "awaiting-approval": "awaiting-approval";
2137
+ blocked: "blocked";
2138
+ finished: "finished";
2139
+ }>;
2140
+ reason: z.ZodNullable<z.ZodString>;
2141
+ invocation: z.ZodNullable<z.ZodObject<{
2142
+ action: z.ZodObject<{
2143
+ id: z.ZodUUID;
2144
+ operatorId: z.ZodString;
2145
+ source: z.ZodObject<{
2146
+ kind: z.ZodEnum<{
2147
+ "user-action": "user-action";
2148
+ "user-message": "user-message";
2149
+ }>;
2150
+ reference: z.ZodString;
2151
+ }, z.core.$strict>;
2152
+ }, z.core.$strict>;
2153
+ skill: z.ZodEnum<{
2154
+ "jg-plan": "jg-plan";
2155
+ "jg-breakdown": "jg-breakdown";
2156
+ }>;
2157
+ }, z.core.$strict>>;
2158
+ hasUncertainEffects: z.ZodBoolean;
2159
+ hasCheckpoint: z.ZodBoolean;
2160
+ hasProposal: z.ZodBoolean;
2161
+ unmatchedCount: z.ZodNumber;
2162
+ }, z.core.$strict>>;
2163
+ }, z.core.$strict>;
2164
+ }, z.core.$strip>;
2165
+ content: z.ZodNullable<z.ZodString>;
2166
+ }, z.core.$strip>, z.ZodObject<{
2167
+ kind: z.ZodLiteral<"milestones">;
2168
+ result: z.ZodObject<{
2169
+ data: z.ZodArray<z.ZodObject<{
2170
+ id: z.ZodNullable<z.ZodUUID>;
2171
+ ordinal: z.ZodNumber;
2172
+ title: z.ZodString;
2173
+ status: z.ZodEnum<{
2174
+ pending: "pending";
2175
+ "in progress": "in progress";
2176
+ done: "done";
2177
+ }>;
2178
+ contractDigest: z.ZodNullable<z.ZodString>;
2179
+ }, z.core.$strip>>;
2180
+ nextCursor: z.ZodNullable<z.ZodString>;
2181
+ }, z.core.$strip>;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ kind: z.ZodLiteral<"execution-check">;
2184
+ result: z.ZodObject<{
2185
+ isAuthorized: z.ZodLiteral<true>;
2186
+ authorization: z.ZodObject<{
2187
+ runtimeEpoch: z.ZodUUID;
2188
+ action: z.ZodObject<{
2189
+ id: z.ZodUUID;
2190
+ operatorId: z.ZodString;
2191
+ source: z.ZodObject<{
2192
+ kind: z.ZodEnum<{
2193
+ "user-action": "user-action";
2194
+ "user-message": "user-message";
2195
+ }>;
2196
+ reference: z.ZodString;
2197
+ }, z.core.$strict>;
2198
+ }, z.core.$strict>;
2199
+ revision: z.ZodObject<{
2200
+ planDigest: z.ZodString;
2201
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2202
+ }, z.core.$strict>;
2203
+ mode: z.ZodEnum<{
2204
+ supervised: "supervised";
2205
+ auto: "auto";
2206
+ }>;
2207
+ milestoneIds: z.ZodArray<z.ZodUUID>;
2208
+ createdAt: z.ZodNumber;
2209
+ revokedBy: z.ZodNullable<z.ZodObject<{
2210
+ id: z.ZodUUID;
2211
+ operatorId: z.ZodString;
2212
+ source: z.ZodObject<{
2213
+ kind: z.ZodEnum<{
2214
+ "user-action": "user-action";
2215
+ "user-message": "user-message";
2216
+ }>;
2217
+ reference: z.ZodString;
2218
+ }, z.core.$strict>;
2219
+ }, z.core.$strict>>;
2220
+ }, z.core.$strict>;
2221
+ }, z.core.$strip>;
2222
+ }, z.core.$strip>], "kind">>;
2223
+ }, z.core.$strip>;
2224
+ export declare const BrowserSessionSchema: z.ZodObject<{
2225
+ operator: z.ZodObject<{
2226
+ id: z.ZodString;
2227
+ }, z.core.$strip>;
2228
+ runtimeEpoch: z.ZodUUID;
2229
+ capabilities: z.ZodObject<{
2230
+ native: z.ZodBoolean;
2231
+ plans: z.ZodBoolean;
2232
+ handoffs: z.ZodBoolean;
2233
+ priorities: z.ZodBoolean;
2234
+ errorReservations: z.ZodBoolean;
2235
+ publicationRetry: z.ZodBoolean;
2236
+ }, z.core.$strip>;
2237
+ }, z.core.$strip>;
2238
+ export declare const BrowserRepositoryPageSchema: z.ZodObject<{
2239
+ data: z.ZodArray<z.ZodObject<{
2240
+ name: z.ZodString;
2241
+ root: z.ZodNullable<z.ZodString>;
2242
+ purpose: z.ZodString;
2243
+ worktrees: z.ZodBoolean;
2244
+ }, z.core.$strip>>;
2245
+ nextCursor: z.ZodNullable<z.ZodString>;
2246
+ }, z.core.$strip>;
2247
+ export declare const BrowserSystemSchema: z.ZodObject<{
2248
+ runtime: z.ZodObject<{
2249
+ runtimeEpoch: z.ZodUUID;
2250
+ pid: z.ZodNumber;
2251
+ startedAt: z.ZodNumber;
2252
+ store: z.ZodEnum<{
2253
+ unavailable: "unavailable";
2254
+ ready: "ready";
2255
+ }>;
2256
+ codex: z.ZodObject<{
2257
+ state: z.ZodEnum<{
2258
+ unavailable: "unavailable";
2259
+ ready: "ready";
2260
+ }>;
2261
+ userAgent: z.ZodString;
2262
+ steering: z.ZodLiteral<"available">;
2263
+ }, z.core.$strip>;
2264
+ claude: z.ZodObject<{
2265
+ state: z.ZodEnum<{
2266
+ unavailable: "unavailable";
2267
+ ready: "ready";
2268
+ idle: "idle";
2269
+ }>;
2270
+ version: z.ZodNullable<z.ZodString>;
2271
+ steering: z.ZodLiteral<"unavailable">;
2272
+ }, z.core.$strip>;
2273
+ }, z.core.$strip>;
2274
+ publication: z.ZodObject<{
2275
+ state: z.ZodLiteral<"unavailable">;
2276
+ }, z.core.$strip>;
2277
+ resources: z.ZodObject<{
2278
+ state: z.ZodLiteral<"unavailable">;
2279
+ }, z.core.$strip>;
2280
+ service: z.ZodObject<{
2281
+ state: z.ZodLiteral<"unavailable">;
2282
+ }, z.core.$strip>;
2283
+ }, z.core.$strip>;
2284
+ export declare const BrowserThreadDetailSchema: z.ZodObject<{
2285
+ thread: z.ZodObject<{
2286
+ id: z.ZodUUID;
2287
+ provider: z.ZodEnum<{
2288
+ claude: "claude";
2289
+ codex: "codex";
2290
+ }>;
2291
+ nativeId: z.ZodNullable<z.ZodString>;
2292
+ name: z.ZodString;
2293
+ workspaceRoot: z.ZodString;
2294
+ ownership: z.ZodEnum<{
2295
+ uncertain: "uncertain";
2296
+ managed: "managed";
2297
+ }>;
2298
+ runtimeEpoch: z.ZodNullable<z.ZodUUID>;
2299
+ activeTurnId: z.ZodNullable<z.ZodString>;
2300
+ state: z.ZodEnum<{
2301
+ unknown: "unknown";
2302
+ completed: "completed";
2303
+ failed: "failed";
2304
+ interrupted: "interrupted";
2305
+ creating: "creating";
2306
+ inactive: "inactive";
2307
+ idle: "idle";
2308
+ starting: "starting";
2309
+ running: "running";
2310
+ "waiting-input": "waiting-input";
2311
+ "waiting-approval": "waiting-approval";
2312
+ stopping: "stopping";
2313
+ }>;
2314
+ createdAt: z.ZodNumber;
2315
+ updatedAt: z.ZodNumber;
2316
+ }, z.core.$strip>;
2317
+ plan: z.ZodNullable<z.ZodObject<{
2318
+ directory: z.ZodString;
2319
+ scope: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2320
+ kind: z.ZodLiteral<"execution">;
2321
+ authorizationId: z.ZodUUID;
2322
+ milestoneId: z.ZodNullable<z.ZodUUID>;
2323
+ mode: z.ZodEnum<{
2324
+ supervised: "supervised";
2325
+ auto: "auto";
2326
+ }>;
2327
+ revision: z.ZodObject<{
2328
+ planDigest: z.ZodString;
2329
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2330
+ }, z.core.$strict>;
2331
+ }, z.core.$strict>, z.ZodObject<{
2332
+ kind: z.ZodLiteral<"planning">;
2333
+ revisionId: z.ZodUUID;
2334
+ invocationId: z.ZodUUID;
2335
+ }, z.core.$strict>], "kind">>;
2336
+ observedRevision: z.ZodObject<{
2337
+ planDigest: z.ZodString;
2338
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2339
+ }, z.core.$strict>;
2340
+ }, z.core.$strict>>;
2341
+ approvals: z.ZodArray<z.ZodObject<{
2342
+ id: z.ZodUUID;
2343
+ threadId: z.ZodUUID;
2344
+ nativeTurnId: z.ZodString;
2345
+ runtimeEpoch: z.ZodUUID;
2346
+ kind: z.ZodEnum<{
2347
+ command: "command";
2348
+ permission: "permission";
2349
+ "file-change": "file-change";
2350
+ question: "question";
2351
+ }>;
2352
+ state: z.ZodEnum<{
2353
+ pending: "pending";
2354
+ answered: "answered";
2355
+ expired: "expired";
2356
+ }>;
2357
+ replyActionId: z.ZodNullable<z.ZodUUID>;
2358
+ isBlocking: z.ZodBoolean;
2359
+ title: z.ZodString;
2360
+ detail: z.ZodString;
2361
+ decisions: z.ZodArray<z.ZodEnum<{
2362
+ accept: "accept";
2363
+ acceptForSession: "acceptForSession";
2364
+ decline: "decline";
2365
+ cancel: "cancel";
2366
+ }>>;
2367
+ questions: z.ZodArray<z.ZodObject<{
2368
+ id: z.ZodString;
2369
+ header: z.ZodString;
2370
+ question: z.ZodString;
2371
+ isSecret: z.ZodBoolean;
2372
+ isOther: z.ZodBoolean;
2373
+ allowsMultiple: z.ZodBoolean;
2374
+ options: z.ZodNullable<z.ZodArray<z.ZodObject<{
2375
+ label: z.ZodString;
2376
+ description: z.ZodString;
2377
+ }, z.core.$strip>>>;
2378
+ }, z.core.$strip>>;
2379
+ }, z.core.$strip>>;
2380
+ live: z.ZodObject<{
2381
+ revision: z.ZodNumber;
2382
+ unchanged: z.ZodBoolean;
2383
+ data: z.ZodArray<z.ZodObject<{
2384
+ nativeId: z.ZodString;
2385
+ turnId: z.ZodString;
2386
+ nativeType: z.ZodString;
2387
+ kind: z.ZodEnum<{
2388
+ command: "command";
2389
+ "user-message": "user-message";
2390
+ "file-change": "file-change";
2391
+ "agent-message": "agent-message";
2392
+ unsupported: "unsupported";
2393
+ }>;
2394
+ text: z.ZodString;
2395
+ isTruncated: z.ZodBoolean;
2396
+ state: z.ZodEnum<{
2397
+ active: "active";
2398
+ "awaiting-flush": "awaiting-flush";
2399
+ }>;
2400
+ }, z.core.$strip>>;
2401
+ hasGap: z.ZodBoolean;
2402
+ }, z.core.$strip>;
2403
+ actions: z.ZodObject<{
2404
+ data: z.ZodArray<z.ZodObject<{
2405
+ createdAt: z.ZodNumber;
2406
+ kind: z.ZodEnum<{
2407
+ message: "message";
2408
+ "thread-create": "thread-create";
2409
+ "thread-adopt": "thread-adopt";
2410
+ "thread-resume": "thread-resume";
2411
+ "thread-close": "thread-close";
2412
+ "thread-recover": "thread-recover";
2413
+ "thread-rename": "thread-rename";
2414
+ steer: "steer";
2415
+ queue: "queue";
2416
+ interrupt: "interrupt";
2417
+ "queue-send": "queue-send";
2418
+ "queue-cancel": "queue-cancel";
2419
+ "native-reply": "native-reply";
2420
+ }>;
2421
+ id: z.ZodUUID;
2422
+ threadId: z.ZodNullable<z.ZodUUID>;
2423
+ runtimeEpoch: z.ZodUUID;
2424
+ digest: z.ZodString;
2425
+ nativeTurnId: z.ZodNullable<z.ZodString>;
2426
+ nativeRequestId: z.ZodNullable<z.ZodString>;
2427
+ delivery: z.ZodEnum<{
2428
+ queued: "queued";
2429
+ submitted: "submitted";
2430
+ acknowledged: "acknowledged";
2431
+ uncertain: "uncertain";
2432
+ failed: "failed";
2433
+ canceled: "canceled";
2434
+ }>;
2435
+ completion: z.ZodNullable<z.ZodEnum<{
2436
+ completed: "completed";
2437
+ failed: "failed";
2438
+ interrupted: "interrupted";
2439
+ }>>;
2440
+ failure: z.ZodNullable<z.ZodEnum<{
2441
+ "state-conflict": "state-conflict";
2442
+ "access-denied": "access-denied";
2443
+ "agent-unavailable": "agent-unavailable";
2444
+ "operation-failed": "operation-failed";
2445
+ }>>;
2446
+ relatedActionId: z.ZodNullable<z.ZodUUID>;
2447
+ planContext: z.ZodNullable<z.ZodObject<{
2448
+ directory: z.ZodString;
2449
+ scope: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2450
+ kind: z.ZodLiteral<"execution">;
2451
+ authorizationId: z.ZodUUID;
2452
+ milestoneId: z.ZodNullable<z.ZodUUID>;
2453
+ mode: z.ZodEnum<{
2454
+ supervised: "supervised";
2455
+ auto: "auto";
2456
+ }>;
2457
+ revision: z.ZodObject<{
2458
+ planDigest: z.ZodString;
2459
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2460
+ }, z.core.$strict>;
2461
+ }, z.core.$strict>, z.ZodObject<{
2462
+ kind: z.ZodLiteral<"planning">;
2463
+ revisionId: z.ZodUUID;
2464
+ invocationId: z.ZodUUID;
2465
+ }, z.core.$strict>], "kind">>;
2466
+ observedRevision: z.ZodObject<{
2467
+ planDigest: z.ZodString;
2468
+ breakdownDigest: z.ZodNullable<z.ZodString>;
2469
+ }, z.core.$strict>;
2470
+ }, z.core.$strict>>;
2471
+ updatedAt: z.ZodNumber;
2472
+ }, z.core.$strip>>;
2473
+ nextCursor: z.ZodNullable<z.ZodString>;
2474
+ }, z.core.$strip>;
2475
+ }, z.core.$strip>;