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