jg-agent-hq 3.0.0 → 4.0.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.
Files changed (159) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +13 -13
  3. package/api/README.md +91 -102
  4. package/dist/actions/actions.js +15 -0
  5. package/dist/cli/cli.js +26 -35
  6. package/dist/cli/utilities.d.ts +1 -1
  7. package/dist/cli/utilities.js +8 -25
  8. package/dist/collaboration/dispatch/types.d.ts +2 -2
  9. package/dist/contracts/actions/types.d.ts +4 -4
  10. package/dist/contracts/browser/index.d.ts +1 -3
  11. package/dist/contracts/browser/index.js +1 -3
  12. package/dist/contracts/browser/types.d.ts +15 -1447
  13. package/dist/contracts/browser/types.js +3 -112
  14. package/dist/contracts/index.d.ts +7 -9
  15. package/dist/contracts/index.js +5 -7
  16. package/dist/contracts/plans/index.d.ts +4 -6
  17. package/dist/contracts/plans/index.js +2 -4
  18. package/dist/contracts/plans/types.d.ts +38 -905
  19. package/dist/contracts/plans/types.js +13 -139
  20. package/dist/contracts/sessions/index.d.ts +2 -0
  21. package/dist/contracts/sessions/index.js +2 -0
  22. package/dist/contracts/sessions/types.d.ts +101 -0
  23. package/dist/contracts/sessions/types.js +43 -0
  24. package/dist/contracts/types.d.ts +461 -1047
  25. package/dist/contracts/types.js +8 -0
  26. package/dist/index.d.ts +2 -4
  27. package/dist/index.js +1 -3
  28. package/dist/plans/admission.d.ts +6 -6
  29. package/dist/plans/admission.js +1 -1
  30. package/dist/plans/authority.js +15 -13
  31. package/dist/plans/documents.d.ts +3 -17
  32. package/dist/plans/documents.js +6 -62
  33. package/dist/plans/files.d.ts +2 -2
  34. package/dist/plans/files.js +2 -4
  35. package/dist/plans/finalization.d.ts +6 -8
  36. package/dist/plans/finalization.js +25 -26
  37. package/dist/plans/index.d.ts +2 -3
  38. package/dist/plans/index.js +1 -2
  39. package/dist/plans/plans.d.ts +8 -8
  40. package/dist/plans/plans.js +33 -82
  41. package/dist/plans/projections.d.ts +2 -2
  42. package/dist/plans/projections.js +44 -82
  43. package/dist/plans/revisions.d.ts +4 -5
  44. package/dist/plans/revisions.js +5 -44
  45. package/dist/plans/types.d.ts +0 -281
  46. package/dist/plans/types.js +2 -30
  47. package/dist/plans/utilities.js +2 -11
  48. package/dist/providers/claude/agents/agents.d.ts +16 -0
  49. package/dist/providers/claude/agents/agents.js +80 -0
  50. package/dist/providers/claude/agents/constants.d.ts +3 -0
  51. package/dist/providers/claude/agents/constants.js +4 -0
  52. package/dist/providers/claude/agents/index.d.ts +1 -0
  53. package/dist/providers/claude/agents/index.js +2 -0
  54. package/dist/providers/claude/agents/types.d.ts +14 -0
  55. package/dist/providers/claude/agents/types.js +9 -0
  56. package/dist/providers/claude/history/history.model.js +2 -0
  57. package/dist/providers/claude/history/types.d.ts +92 -368
  58. package/dist/providers/claude/index.d.ts +1 -0
  59. package/dist/providers/claude/index.js +2 -0
  60. package/dist/providers/codex/adapter.d.ts +1 -1
  61. package/dist/providers/codex/adapter.js +26 -3
  62. package/dist/providers/codex/codex.js +47 -18
  63. package/dist/providers/codex/events.d.ts +2 -1
  64. package/dist/providers/codex/events.js +8 -3
  65. package/dist/providers/codex/index.d.ts +1 -1
  66. package/dist/providers/codex/index.js +1 -1
  67. package/dist/providers/codex/rpc.d.ts +9 -4
  68. package/dist/providers/codex/rpc.js +109 -47
  69. package/dist/providers/codex/skill-roots/constants.d.ts +4 -0
  70. package/dist/providers/codex/skill-roots/constants.js +7 -0
  71. package/dist/providers/codex/skill-roots/index.d.ts +2 -0
  72. package/dist/providers/codex/skill-roots/index.js +4 -0
  73. package/dist/providers/codex/skill-roots/skill-roots.d.ts +35 -0
  74. package/dist/providers/codex/skill-roots/skill-roots.js +93 -0
  75. package/dist/providers/codex/transformers.d.ts +3 -1
  76. package/dist/providers/codex/transformers.js +12 -1
  77. package/dist/providers/codex/types.d.ts +4 -0
  78. package/dist/providers/codex/types.js +4 -1
  79. package/dist/providers/codex/websocket/constants.d.ts +11 -0
  80. package/dist/providers/codex/websocket/constants.js +18 -0
  81. package/dist/providers/codex/websocket/index.d.ts +1 -0
  82. package/dist/providers/codex/websocket/index.js +2 -0
  83. package/dist/providers/codex/websocket/websocket.d.ts +7 -0
  84. package/dist/providers/codex/websocket/websocket.js +219 -0
  85. package/dist/providers/index.d.ts +2 -2
  86. package/dist/providers/index.js +1 -1
  87. package/dist/providers/process.d.ts +2 -2
  88. package/dist/providers/process.js +37 -4
  89. package/dist/providers/registry/registry.js +2 -1
  90. package/dist/providers/types.d.ts +25 -2
  91. package/dist/runtime/runtime.d.ts +0 -2
  92. package/dist/runtime/runtime.js +11 -5
  93. package/dist/runtime/state/state.d.ts +1 -1
  94. package/dist/runtime/state/state.js +2 -2
  95. package/dist/runtime/types.d.ts +0 -2
  96. package/dist/runtime/types.js +0 -3
  97. package/dist/sessions/sessions.js +2 -0
  98. package/dist/snapshots/archive/archive.d.ts +29 -0
  99. package/dist/snapshots/archive/archive.js +342 -0
  100. package/dist/snapshots/archive/constants.d.ts +5 -0
  101. package/dist/snapshots/archive/constants.js +8 -0
  102. package/dist/snapshots/archive/index.d.ts +1 -0
  103. package/dist/snapshots/archive/index.js +2 -0
  104. package/dist/snapshots/artifacts.d.ts +10 -1
  105. package/dist/snapshots/artifacts.js +38 -13
  106. package/dist/snapshots/capture.d.ts +3 -2
  107. package/dist/snapshots/capture.js +29 -13
  108. package/dist/snapshots/database.d.ts +2 -2
  109. package/dist/snapshots/database.js +30 -14
  110. package/dist/snapshots/fences.d.ts +4 -9
  111. package/dist/snapshots/fences.js +9 -22
  112. package/dist/snapshots/index.d.ts +1 -2
  113. package/dist/snapshots/index.js +2 -3
  114. package/dist/snapshots/snapshots.d.ts +6 -5
  115. package/dist/snapshots/snapshots.js +13 -13
  116. package/dist/snapshots/snapshots.worker.js +1 -1
  117. package/dist/snapshots/types.d.ts +26 -5
  118. package/dist/snapshots/types.js +15 -4
  119. package/dist/storage/schema/constants.d.ts +2 -2
  120. package/dist/storage/schema/constants.js +9 -3
  121. package/dist/storage/schema/index.d.ts +2 -3
  122. package/dist/storage/schema/index.js +4 -3
  123. package/dist/storage/schema/schema.d.ts +10 -8
  124. package/dist/storage/schema/schema.js +22 -36
  125. package/dist/storage/schema/types.d.ts +1 -11
  126. package/dist/storage/schema/types.js +2 -2
  127. package/dist/storage/storage.d.ts +1 -1
  128. package/dist/storage/storage.js +2 -2
  129. package/dist/store/collaboration/collaboration.model.d.ts +2 -2
  130. package/dist/store/control/types.d.ts +16 -16
  131. package/dist/store/plans/plans.model.d.ts +3 -105
  132. package/dist/store/plans/plans.model.js +6 -46
  133. package/dist/store/schema.d.ts +0 -2
  134. package/dist/store/schema.js +6 -25
  135. package/dist/store/schema.sql +90 -16
  136. package/dist/store/sessions/index.d.ts +1 -0
  137. package/dist/store/sessions/index.js +2 -0
  138. package/dist/store/sessions/sessions.model.d.ts +28 -0
  139. package/dist/store/sessions/sessions.model.js +105 -0
  140. package/dist/store/store.d.ts +0 -2
  141. package/dist/store/store.js +13 -9
  142. package/dist/store/store.worker.js +16 -11
  143. package/dist/store/types.d.ts +134 -513
  144. package/dist/store/types.js +21 -7
  145. package/docs/recovery.md +6 -16
  146. package/errors/README.md +30 -36
  147. package/package.json +1 -1
  148. package/dist/plans/reconciliation.d.ts +0 -34
  149. package/dist/plans/reconciliation.js +0 -246
  150. package/dist/storage/schema/v1-to-v2.sql +0 -1
  151. package/dist/storage/schema/v1.sql +0 -538
  152. package/dist/storage/upgrade/index.d.ts +0 -2
  153. package/dist/storage/upgrade/index.js +0 -2
  154. package/dist/storage/upgrade/types.d.ts +0 -61
  155. package/dist/storage/upgrade/types.js +0 -42
  156. package/dist/storage/upgrade/upgrade.d.ts +0 -33
  157. package/dist/storage/upgrade/upgrade.js +0 -196
  158. package/dist/storage/upgrade/upgrade.worker.d.ts +0 -1
  159. package/dist/storage/upgrade/upgrade.worker.js +0 -220
@@ -298,23 +298,11 @@ export declare const BrowserCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
298
298
  limit: z.ZodDefault<z.ZodNumber>;
299
299
  cursor: z.ZodOptional<z.ZodString>;
300
300
  }, z.core.$strict>, z.ZodObject<{
301
- confirmation: z.ZodOptional<z.ZodObject<{
302
- proposalId: z.ZodUUID;
303
- decisions: z.ZodArray<z.ZodObject<{
304
- sourceIds: z.ZodArray<z.ZodUUID>;
305
- targetIds: z.ZodArray<z.ZodUUID>;
306
- relation: z.ZodEnum<{
307
- equivalent: "equivalent";
308
- "requirements-changed": "requirements-changed";
309
- omitted: "omitted";
310
- reopened: "reopened";
311
- }>;
312
- retainedPairs: z.ZodArray<z.ZodObject<{
313
- sourceId: z.ZodUUID;
314
- targetId: z.ZodUUID;
315
- }, z.core.$strict>>;
316
- }, z.core.$strict>>;
317
- }, z.core.$strict>>;
301
+ kind: z.ZodLiteral<"register">;
302
+ target: z.ZodObject<{
303
+ directory: z.ZodString;
304
+ }, z.core.$strict>;
305
+ }, z.core.$strict>, z.ZodObject<{
318
306
  target: z.ZodObject<{
319
307
  directory: z.ZodString;
320
308
  }, z.core.$strict>;
@@ -422,19 +410,6 @@ export declare const BrowserCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
422
410
  breakdownDigest: z.ZodNullable<z.ZodString>;
423
411
  }, z.core.$strict>;
424
412
  kind: z.ZodLiteral<"revision-invoke">;
425
- }, z.core.$strict>, z.ZodObject<{
426
- kind: z.ZodLiteral<"reconciliation">;
427
- target: z.ZodObject<{
428
- directory: z.ZodString;
429
- }, z.core.$strict>;
430
- collection: z.ZodEnum<{
431
- drafts: "drafts";
432
- sources: "sources";
433
- evidence: "evidence";
434
- correspondences: "correspondences";
435
- }>;
436
- limit: z.ZodDefault<z.ZodNumber>;
437
- cursor: z.ZodOptional<z.ZodString>;
438
413
  }, z.core.$strict>, z.ZodObject<{
439
414
  scope: z.ZodEnum<{
440
415
  plan: "plan";
@@ -527,44 +502,6 @@ export declare const BrowserCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
527
502
  auto: "auto";
528
503
  }>;
529
504
  }, z.core.$strict>], "kind">;
530
- }, z.core.$strict>, z.ZodObject<{
531
- kind: z.ZodLiteral<"priority">;
532
- target: z.ZodObject<{
533
- directory: z.ZodString;
534
- }, z.core.$strict>;
535
- expectedRevision: z.ZodObject<{
536
- planDigest: z.ZodString;
537
- breakdownDigest: z.ZodNullable<z.ZodString>;
538
- }, z.core.$strict>;
539
- priority: z.ZodEnum<{
540
- P0: "P0";
541
- P1: "P1";
542
- P2: "P2";
543
- P3: "P3";
544
- }>;
545
- reason: z.ZodString;
546
- }, z.core.$strict>, z.ZodObject<{
547
- kind: z.ZodLiteral<"error-reservation">;
548
- target: z.ZodObject<{
549
- directory: z.ZodString;
550
- }, z.core.$strict>;
551
- expectedRevision: z.ZodObject<{
552
- planDigest: z.ZodString;
553
- breakdownDigest: z.ZodNullable<z.ZodString>;
554
- }, z.core.$strict>;
555
- reservation: z.ZodObject<{
556
- repository: z.ZodString;
557
- namespace: z.ZodString;
558
- start: z.ZodNumber;
559
- end: z.ZodNumber;
560
- registryPath: z.ZodString;
561
- purpose: z.ZodString;
562
- }, z.core.$strict>;
563
- release: z.ZodBoolean;
564
- }, z.core.$strict>, z.ZodObject<{
565
- kind: z.ZodLiteral<"publication-retry">;
566
- publicationId: z.ZodUUID;
567
- expectedCommit: z.ZodNullable<z.ZodString>;
568
505
  }, z.core.$strict>], "kind">;
569
506
  export declare const BrowserActionSchema: z.ZodObject<{
570
507
  id: z.ZodUUID;
@@ -868,23 +805,11 @@ export declare const BrowserActionSchema: z.ZodObject<{
868
805
  limit: z.ZodDefault<z.ZodNumber>;
869
806
  cursor: z.ZodOptional<z.ZodString>;
870
807
  }, z.core.$strict>, z.ZodObject<{
871
- confirmation: z.ZodOptional<z.ZodObject<{
872
- proposalId: z.ZodUUID;
873
- decisions: z.ZodArray<z.ZodObject<{
874
- sourceIds: z.ZodArray<z.ZodUUID>;
875
- targetIds: z.ZodArray<z.ZodUUID>;
876
- relation: z.ZodEnum<{
877
- equivalent: "equivalent";
878
- "requirements-changed": "requirements-changed";
879
- omitted: "omitted";
880
- reopened: "reopened";
881
- }>;
882
- retainedPairs: z.ZodArray<z.ZodObject<{
883
- sourceId: z.ZodUUID;
884
- targetId: z.ZodUUID;
885
- }, z.core.$strict>>;
886
- }, z.core.$strict>>;
887
- }, z.core.$strict>>;
808
+ kind: z.ZodLiteral<"register">;
809
+ target: z.ZodObject<{
810
+ directory: z.ZodString;
811
+ }, z.core.$strict>;
812
+ }, z.core.$strict>, z.ZodObject<{
888
813
  target: z.ZodObject<{
889
814
  directory: z.ZodString;
890
815
  }, z.core.$strict>;
@@ -992,19 +917,6 @@ export declare const BrowserActionSchema: z.ZodObject<{
992
917
  breakdownDigest: z.ZodNullable<z.ZodString>;
993
918
  }, z.core.$strict>;
994
919
  kind: z.ZodLiteral<"revision-invoke">;
995
- }, z.core.$strict>, z.ZodObject<{
996
- kind: z.ZodLiteral<"reconciliation">;
997
- target: z.ZodObject<{
998
- directory: z.ZodString;
999
- }, z.core.$strict>;
1000
- collection: z.ZodEnum<{
1001
- drafts: "drafts";
1002
- sources: "sources";
1003
- evidence: "evidence";
1004
- correspondences: "correspondences";
1005
- }>;
1006
- limit: z.ZodDefault<z.ZodNumber>;
1007
- cursor: z.ZodOptional<z.ZodString>;
1008
920
  }, z.core.$strict>, z.ZodObject<{
1009
921
  scope: z.ZodEnum<{
1010
922
  plan: "plan";
@@ -1097,44 +1009,6 @@ export declare const BrowserActionSchema: z.ZodObject<{
1097
1009
  auto: "auto";
1098
1010
  }>;
1099
1011
  }, z.core.$strict>], "kind">;
1100
- }, z.core.$strict>, z.ZodObject<{
1101
- kind: z.ZodLiteral<"priority">;
1102
- target: z.ZodObject<{
1103
- directory: z.ZodString;
1104
- }, z.core.$strict>;
1105
- expectedRevision: z.ZodObject<{
1106
- planDigest: z.ZodString;
1107
- breakdownDigest: z.ZodNullable<z.ZodString>;
1108
- }, z.core.$strict>;
1109
- priority: z.ZodEnum<{
1110
- P0: "P0";
1111
- P1: "P1";
1112
- P2: "P2";
1113
- P3: "P3";
1114
- }>;
1115
- reason: z.ZodString;
1116
- }, z.core.$strict>, z.ZodObject<{
1117
- kind: z.ZodLiteral<"error-reservation">;
1118
- target: z.ZodObject<{
1119
- directory: z.ZodString;
1120
- }, z.core.$strict>;
1121
- expectedRevision: z.ZodObject<{
1122
- planDigest: z.ZodString;
1123
- breakdownDigest: z.ZodNullable<z.ZodString>;
1124
- }, z.core.$strict>;
1125
- reservation: z.ZodObject<{
1126
- repository: z.ZodString;
1127
- namespace: z.ZodString;
1128
- start: z.ZodNumber;
1129
- end: z.ZodNumber;
1130
- registryPath: z.ZodString;
1131
- purpose: z.ZodString;
1132
- }, z.core.$strict>;
1133
- release: z.ZodBoolean;
1134
- }, z.core.$strict>, z.ZodObject<{
1135
- kind: z.ZodLiteral<"publication-retry">;
1136
- publicationId: z.ZodUUID;
1137
- expectedCommit: z.ZodNullable<z.ZodString>;
1138
1012
  }, z.core.$strict>], "kind">;
1139
1013
  }, z.core.$strict>;
1140
1014
  export type IBrowserAction = z.infer<typeof BrowserActionSchema>;
@@ -1144,14 +1018,11 @@ export declare const BrowserReceiptSchema: z.ZodObject<{
1144
1018
  kind: z.ZodEnum<{
1145
1019
  native: "native";
1146
1020
  plan: "plan";
1147
- priority: "priority";
1148
- "error-reservation": "error-reservation";
1149
- "publication-retry": "publication-retry";
1150
1021
  }>;
1151
1022
  state: z.ZodEnum<{
1023
+ uncertain: "uncertain";
1152
1024
  submitted: "submitted";
1153
1025
  acknowledged: "acknowledged";
1154
- uncertain: "uncertain";
1155
1026
  }>;
1156
1027
  nativeActionId: z.ZodUUID;
1157
1028
  createdAt: z.ZodNumber;
@@ -1201,10 +1072,10 @@ export declare const BrowserReceiptSchema: z.ZodObject<{
1201
1072
  delivery: z.ZodEnum<{
1202
1073
  failed: "failed";
1203
1074
  canceled: "canceled";
1075
+ uncertain: "uncertain";
1204
1076
  queued: "queued";
1205
1077
  submitted: "submitted";
1206
1078
  acknowledged: "acknowledged";
1207
- uncertain: "uncertain";
1208
1079
  }>;
1209
1080
  completion: z.ZodNullable<z.ZodEnum<{
1210
1081
  completed: "completed";
@@ -1301,1309 +1172,6 @@ export declare const BrowserReceiptSchema: z.ZodObject<{
1301
1172
  }, z.core.$strip>>;
1302
1173
  }, z.core.$strip>;
1303
1174
  export type IBrowserReceipt = z.infer<typeof BrowserReceiptSchema>;
1304
- export declare const BrowserRepositorySchema: z.ZodObject<{
1305
- name: z.ZodString;
1306
- root: z.ZodNullable<z.ZodString>;
1307
- purpose: z.ZodString;
1308
- worktrees: z.ZodBoolean;
1309
- }, z.core.$strip>;
1310
- export declare const BrowserPlanSummarySchema: z.ZodObject<{
1311
- id: z.ZodString;
1312
- directory: z.ZodString;
1313
- scope: z.ZodString;
1314
- status: z.ZodEnum<{
1315
- done: "done";
1316
- "in-progress": "in-progress";
1317
- planned: "planned";
1318
- abandoned: "abandoned";
1319
- }>;
1320
- summary: z.ZodString;
1321
- priority: z.ZodEnum<{
1322
- P0: "P0";
1323
- P1: "P1";
1324
- P2: "P2";
1325
- P3: "P3";
1326
- }>;
1327
- priorityReason: z.ZodString;
1328
- repositories: z.ZodArray<z.ZodString>;
1329
- errorReservations: z.ZodArray<z.ZodObject<{
1330
- repository: z.ZodString;
1331
- namespace: z.ZodString;
1332
- start: z.ZodNumber;
1333
- end: z.ZodNumber;
1334
- registryPath: z.ZodString;
1335
- purpose: z.ZodString;
1336
- }, z.core.$strict>>;
1337
- }, z.core.$strip>;
1338
- export declare const BrowserPlanPageSchema: z.ZodObject<{
1339
- data: z.ZodArray<z.ZodObject<{
1340
- id: z.ZodString;
1341
- directory: z.ZodString;
1342
- scope: z.ZodString;
1343
- status: z.ZodEnum<{
1344
- done: "done";
1345
- "in-progress": "in-progress";
1346
- planned: "planned";
1347
- abandoned: "abandoned";
1348
- }>;
1349
- summary: z.ZodString;
1350
- priority: z.ZodEnum<{
1351
- P0: "P0";
1352
- P1: "P1";
1353
- P2: "P2";
1354
- P3: "P3";
1355
- }>;
1356
- priorityReason: z.ZodString;
1357
- repositories: z.ZodArray<z.ZodString>;
1358
- errorReservations: z.ZodArray<z.ZodObject<{
1359
- repository: z.ZodString;
1360
- namespace: z.ZodString;
1361
- start: z.ZodNumber;
1362
- end: z.ZodNumber;
1363
- registryPath: z.ZodString;
1364
- purpose: z.ZodString;
1365
- }, z.core.$strict>>;
1366
- }, z.core.$strip>>;
1367
- nextCursor: z.ZodNullable<z.ZodString>;
1368
- revision: z.ZodString;
1369
- }, z.core.$strip>;
1370
- export declare const BrowserPlanDetailSchema: z.ZodObject<{
1371
- summary: z.ZodObject<{
1372
- id: z.ZodString;
1373
- directory: z.ZodString;
1374
- scope: z.ZodString;
1375
- status: z.ZodEnum<{
1376
- done: "done";
1377
- "in-progress": "in-progress";
1378
- planned: "planned";
1379
- abandoned: "abandoned";
1380
- }>;
1381
- summary: z.ZodString;
1382
- priority: z.ZodEnum<{
1383
- P0: "P0";
1384
- P1: "P1";
1385
- P2: "P2";
1386
- P3: "P3";
1387
- }>;
1388
- priorityReason: z.ZodString;
1389
- repositories: z.ZodArray<z.ZodString>;
1390
- errorReservations: z.ZodArray<z.ZodObject<{
1391
- repository: z.ZodString;
1392
- namespace: z.ZodString;
1393
- start: z.ZodNumber;
1394
- end: z.ZodNumber;
1395
- registryPath: z.ZodString;
1396
- purpose: z.ZodString;
1397
- }, z.core.$strict>>;
1398
- }, z.core.$strip>;
1399
- contract: z.ZodString;
1400
- status: z.ZodObject<{
1401
- directory: z.ZodString;
1402
- revision: z.ZodObject<{
1403
- planDigest: z.ZodString;
1404
- breakdownDigest: z.ZodNullable<z.ZodString>;
1405
- }, z.core.$strict>;
1406
- inspection: z.ZodObject<{
1407
- plan: z.ZodString;
1408
- milestones: z.ZodNullable<z.ZodString>;
1409
- coordination: z.ZodNullable<z.ZodString>;
1410
- }, z.core.$strip>;
1411
- state: z.ZodEnum<{
1412
- ready: "ready";
1413
- completed: "completed";
1414
- blocked: "blocked";
1415
- "plan-approval-required": "plan-approval-required";
1416
- "breakdown-required": "breakdown-required";
1417
- "sequence-approval-required": "sequence-approval-required";
1418
- "in-progress": "in-progress";
1419
- revising: "revising";
1420
- }>;
1421
- pendingActionId: z.ZodNullable<z.ZodUUID>;
1422
- skillsBinding: z.ZodEnum<{
1423
- absent: "absent";
1424
- current: "current";
1425
- stale: "stale";
1426
- }>;
1427
- isFinalized: z.ZodBoolean;
1428
- isPlanApproved: z.ZodBoolean;
1429
- isSequenceApproved: z.ZodBoolean;
1430
- milestoneCount: z.ZodNumber;
1431
- coordination: z.ZodObject<{
1432
- execution: z.ZodNullable<z.ZodObject<{
1433
- runtimeEpoch: z.ZodUUID;
1434
- action: z.ZodObject<{
1435
- id: z.ZodUUID;
1436
- operatorId: z.ZodString;
1437
- source: z.ZodObject<{
1438
- kind: z.ZodEnum<{
1439
- "user-action": "user-action";
1440
- "user-message": "user-message";
1441
- }>;
1442
- reference: z.ZodString;
1443
- }, z.core.$strict>;
1444
- }, z.core.$strict>;
1445
- revision: z.ZodObject<{
1446
- planDigest: z.ZodString;
1447
- breakdownDigest: z.ZodNullable<z.ZodString>;
1448
- }, z.core.$strict>;
1449
- mode: z.ZodEnum<{
1450
- supervised: "supervised";
1451
- auto: "auto";
1452
- }>;
1453
- milestoneIds: z.ZodArray<z.ZodUUID>;
1454
- createdAt: z.ZodNumber;
1455
- revokedBy: z.ZodNullable<z.ZodObject<{
1456
- id: z.ZodUUID;
1457
- operatorId: z.ZodString;
1458
- source: z.ZodObject<{
1459
- kind: z.ZodEnum<{
1460
- "user-action": "user-action";
1461
- "user-message": "user-message";
1462
- }>;
1463
- reference: z.ZodString;
1464
- }, z.core.$strict>;
1465
- }, z.core.$strict>>;
1466
- }, z.core.$strict>>;
1467
- schemaVersion: z.ZodLiteral<1>;
1468
- finalized: z.ZodNullable<z.ZodObject<{
1469
- action: z.ZodObject<{
1470
- id: z.ZodUUID;
1471
- operatorId: z.ZodString;
1472
- source: z.ZodObject<{
1473
- kind: z.ZodEnum<{
1474
- "user-action": "user-action";
1475
- "user-message": "user-message";
1476
- }>;
1477
- reference: z.ZodString;
1478
- }, z.core.$strict>;
1479
- }, z.core.$strict>;
1480
- revision: z.ZodObject<{
1481
- planDigest: z.ZodString;
1482
- breakdownDigest: z.ZodNullable<z.ZodString>;
1483
- }, z.core.$strict>;
1484
- fileHash: z.ZodNullable<z.ZodString>;
1485
- createdAt: z.ZodNumber;
1486
- }, z.core.$strict>>;
1487
- planApproval: z.ZodNullable<z.ZodObject<{
1488
- action: z.ZodObject<{
1489
- id: z.ZodUUID;
1490
- operatorId: z.ZodString;
1491
- source: z.ZodObject<{
1492
- kind: z.ZodEnum<{
1493
- "user-action": "user-action";
1494
- "user-message": "user-message";
1495
- }>;
1496
- reference: z.ZodString;
1497
- }, z.core.$strict>;
1498
- }, z.core.$strict>;
1499
- revision: z.ZodObject<{
1500
- planDigest: z.ZodString;
1501
- breakdownDigest: z.ZodNullable<z.ZodString>;
1502
- }, z.core.$strict>;
1503
- presentationHash: z.ZodString;
1504
- createdAt: z.ZodNumber;
1505
- revokedBy: z.ZodNullable<z.ZodObject<{
1506
- id: z.ZodUUID;
1507
- operatorId: z.ZodString;
1508
- source: z.ZodObject<{
1509
- kind: z.ZodEnum<{
1510
- "user-action": "user-action";
1511
- "user-message": "user-message";
1512
- }>;
1513
- reference: z.ZodString;
1514
- }, z.core.$strict>;
1515
- }, z.core.$strict>>;
1516
- }, z.core.$strict>>;
1517
- sequenceApproval: z.ZodNullable<z.ZodObject<{
1518
- action: z.ZodObject<{
1519
- id: z.ZodUUID;
1520
- operatorId: z.ZodString;
1521
- source: z.ZodObject<{
1522
- kind: z.ZodEnum<{
1523
- "user-action": "user-action";
1524
- "user-message": "user-message";
1525
- }>;
1526
- reference: z.ZodString;
1527
- }, z.core.$strict>;
1528
- }, z.core.$strict>;
1529
- revision: z.ZodObject<{
1530
- planDigest: z.ZodString;
1531
- breakdownDigest: z.ZodNullable<z.ZodString>;
1532
- }, z.core.$strict>;
1533
- presentationHash: z.ZodString;
1534
- createdAt: z.ZodNumber;
1535
- revokedBy: z.ZodNullable<z.ZodObject<{
1536
- id: z.ZodUUID;
1537
- operatorId: z.ZodString;
1538
- source: z.ZodObject<{
1539
- kind: z.ZodEnum<{
1540
- "user-action": "user-action";
1541
- "user-message": "user-message";
1542
- }>;
1543
- reference: z.ZodString;
1544
- }, z.core.$strict>;
1545
- }, z.core.$strict>>;
1546
- }, z.core.$strict>>;
1547
- lastActionId: z.ZodNullable<z.ZodUUID>;
1548
- observedConflict: z.ZodNullable<z.ZodObject<{
1549
- id: z.ZodUUID;
1550
- revision: z.ZodNullable<z.ZodObject<{
1551
- planDigest: z.ZodString;
1552
- breakdownDigest: z.ZodNullable<z.ZodString>;
1553
- }, z.core.$strict>>;
1554
- observedAt: z.ZodNumber;
1555
- ownerRuntimeEpoch: z.ZodUUID;
1556
- phase: z.ZodEnum<{
1557
- quiescing: "quiescing";
1558
- blocked: "blocked";
1559
- quiescent: "quiescent";
1560
- }>;
1561
- controls: z.ZodArray<z.ZodObject<{
1562
- threadId: z.ZodUUID;
1563
- interruptActionId: z.ZodUUID;
1564
- closeActionId: z.ZodUUID;
1565
- }, z.core.$strict>>;
1566
- }, z.core.$strict>>;
1567
- comparisonCount: z.ZodNumber;
1568
- completionCount: z.ZodNumber;
1569
- revision: z.ZodNullable<z.ZodObject<{
1570
- createdAt: z.ZodNumber;
1571
- reason: z.ZodNullable<z.ZodString>;
1572
- id: z.ZodUUID;
1573
- action: z.ZodObject<{
1574
- id: z.ZodUUID;
1575
- operatorId: z.ZodString;
1576
- source: z.ZodObject<{
1577
- kind: z.ZodEnum<{
1578
- "user-action": "user-action";
1579
- "user-message": "user-message";
1580
- }>;
1581
- reference: z.ZodString;
1582
- }, z.core.$strict>;
1583
- }, z.core.$strict>;
1584
- threadIds: z.ZodArray<z.ZodUUID>;
1585
- intent: z.ZodEnum<{
1586
- plan: "plan";
1587
- breakdown: "breakdown";
1588
- }>;
1589
- phaseActionId: z.ZodUUID;
1590
- ownerRuntimeEpoch: z.ZodUUID;
1591
- phase: z.ZodEnum<{
1592
- quiescing: "quiescing";
1593
- editing: "editing";
1594
- reconciling: "reconciling";
1595
- "awaiting-approval": "awaiting-approval";
1596
- blocked: "blocked";
1597
- finished: "finished";
1598
- }>;
1599
- invocation: z.ZodNullable<z.ZodObject<{
1600
- action: z.ZodObject<{
1601
- id: z.ZodUUID;
1602
- operatorId: z.ZodString;
1603
- source: z.ZodObject<{
1604
- kind: z.ZodEnum<{
1605
- "user-action": "user-action";
1606
- "user-message": "user-message";
1607
- }>;
1608
- reference: z.ZodString;
1609
- }, z.core.$strict>;
1610
- }, z.core.$strict>;
1611
- skill: z.ZodEnum<{
1612
- "jg-plan": "jg-plan";
1613
- "jg-breakdown": "jg-breakdown";
1614
- }>;
1615
- }, z.core.$strict>>;
1616
- hasUncertainEffects: z.ZodBoolean;
1617
- hasCheckpoint: z.ZodBoolean;
1618
- hasProposal: z.ZodBoolean;
1619
- proposalId: z.ZodNullable<z.ZodUUID>;
1620
- unmatchedCount: z.ZodNumber;
1621
- }, z.core.$strict>>;
1622
- }, z.core.$strict>;
1623
- }, z.core.$strip>;
1624
- presentation: z.ZodNullable<z.ZodString>;
1625
- page: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1626
- kind: z.ZodLiteral<"status">;
1627
- result: z.ZodObject<{
1628
- directory: z.ZodString;
1629
- revision: z.ZodObject<{
1630
- planDigest: z.ZodString;
1631
- breakdownDigest: z.ZodNullable<z.ZodString>;
1632
- }, z.core.$strict>;
1633
- inspection: z.ZodObject<{
1634
- plan: z.ZodString;
1635
- milestones: z.ZodNullable<z.ZodString>;
1636
- coordination: z.ZodNullable<z.ZodString>;
1637
- }, z.core.$strip>;
1638
- state: z.ZodEnum<{
1639
- ready: "ready";
1640
- completed: "completed";
1641
- blocked: "blocked";
1642
- "plan-approval-required": "plan-approval-required";
1643
- "breakdown-required": "breakdown-required";
1644
- "sequence-approval-required": "sequence-approval-required";
1645
- "in-progress": "in-progress";
1646
- revising: "revising";
1647
- }>;
1648
- pendingActionId: z.ZodNullable<z.ZodUUID>;
1649
- skillsBinding: z.ZodEnum<{
1650
- absent: "absent";
1651
- current: "current";
1652
- stale: "stale";
1653
- }>;
1654
- isFinalized: z.ZodBoolean;
1655
- isPlanApproved: z.ZodBoolean;
1656
- isSequenceApproved: z.ZodBoolean;
1657
- milestoneCount: z.ZodNumber;
1658
- coordination: z.ZodObject<{
1659
- execution: z.ZodNullable<z.ZodObject<{
1660
- runtimeEpoch: z.ZodUUID;
1661
- action: z.ZodObject<{
1662
- id: z.ZodUUID;
1663
- operatorId: z.ZodString;
1664
- source: z.ZodObject<{
1665
- kind: z.ZodEnum<{
1666
- "user-action": "user-action";
1667
- "user-message": "user-message";
1668
- }>;
1669
- reference: z.ZodString;
1670
- }, z.core.$strict>;
1671
- }, z.core.$strict>;
1672
- revision: z.ZodObject<{
1673
- planDigest: z.ZodString;
1674
- breakdownDigest: z.ZodNullable<z.ZodString>;
1675
- }, z.core.$strict>;
1676
- mode: z.ZodEnum<{
1677
- supervised: "supervised";
1678
- auto: "auto";
1679
- }>;
1680
- milestoneIds: z.ZodArray<z.ZodUUID>;
1681
- createdAt: z.ZodNumber;
1682
- revokedBy: z.ZodNullable<z.ZodObject<{
1683
- id: z.ZodUUID;
1684
- operatorId: z.ZodString;
1685
- source: z.ZodObject<{
1686
- kind: z.ZodEnum<{
1687
- "user-action": "user-action";
1688
- "user-message": "user-message";
1689
- }>;
1690
- reference: z.ZodString;
1691
- }, z.core.$strict>;
1692
- }, z.core.$strict>>;
1693
- }, z.core.$strict>>;
1694
- schemaVersion: z.ZodLiteral<1>;
1695
- finalized: z.ZodNullable<z.ZodObject<{
1696
- action: z.ZodObject<{
1697
- id: z.ZodUUID;
1698
- operatorId: z.ZodString;
1699
- source: z.ZodObject<{
1700
- kind: z.ZodEnum<{
1701
- "user-action": "user-action";
1702
- "user-message": "user-message";
1703
- }>;
1704
- reference: z.ZodString;
1705
- }, z.core.$strict>;
1706
- }, z.core.$strict>;
1707
- revision: z.ZodObject<{
1708
- planDigest: z.ZodString;
1709
- breakdownDigest: z.ZodNullable<z.ZodString>;
1710
- }, z.core.$strict>;
1711
- fileHash: z.ZodNullable<z.ZodString>;
1712
- createdAt: z.ZodNumber;
1713
- }, z.core.$strict>>;
1714
- planApproval: z.ZodNullable<z.ZodObject<{
1715
- action: z.ZodObject<{
1716
- id: z.ZodUUID;
1717
- operatorId: z.ZodString;
1718
- source: z.ZodObject<{
1719
- kind: z.ZodEnum<{
1720
- "user-action": "user-action";
1721
- "user-message": "user-message";
1722
- }>;
1723
- reference: z.ZodString;
1724
- }, z.core.$strict>;
1725
- }, z.core.$strict>;
1726
- revision: z.ZodObject<{
1727
- planDigest: z.ZodString;
1728
- breakdownDigest: z.ZodNullable<z.ZodString>;
1729
- }, z.core.$strict>;
1730
- presentationHash: z.ZodString;
1731
- createdAt: z.ZodNumber;
1732
- revokedBy: z.ZodNullable<z.ZodObject<{
1733
- id: z.ZodUUID;
1734
- operatorId: z.ZodString;
1735
- source: z.ZodObject<{
1736
- kind: z.ZodEnum<{
1737
- "user-action": "user-action";
1738
- "user-message": "user-message";
1739
- }>;
1740
- reference: z.ZodString;
1741
- }, z.core.$strict>;
1742
- }, z.core.$strict>>;
1743
- }, z.core.$strict>>;
1744
- sequenceApproval: z.ZodNullable<z.ZodObject<{
1745
- action: z.ZodObject<{
1746
- id: z.ZodUUID;
1747
- operatorId: z.ZodString;
1748
- source: z.ZodObject<{
1749
- kind: z.ZodEnum<{
1750
- "user-action": "user-action";
1751
- "user-message": "user-message";
1752
- }>;
1753
- reference: z.ZodString;
1754
- }, z.core.$strict>;
1755
- }, z.core.$strict>;
1756
- revision: z.ZodObject<{
1757
- planDigest: z.ZodString;
1758
- breakdownDigest: z.ZodNullable<z.ZodString>;
1759
- }, z.core.$strict>;
1760
- presentationHash: z.ZodString;
1761
- createdAt: z.ZodNumber;
1762
- revokedBy: z.ZodNullable<z.ZodObject<{
1763
- id: z.ZodUUID;
1764
- operatorId: z.ZodString;
1765
- source: z.ZodObject<{
1766
- kind: z.ZodEnum<{
1767
- "user-action": "user-action";
1768
- "user-message": "user-message";
1769
- }>;
1770
- reference: z.ZodString;
1771
- }, z.core.$strict>;
1772
- }, z.core.$strict>>;
1773
- }, z.core.$strict>>;
1774
- lastActionId: z.ZodNullable<z.ZodUUID>;
1775
- observedConflict: z.ZodNullable<z.ZodObject<{
1776
- id: z.ZodUUID;
1777
- revision: z.ZodNullable<z.ZodObject<{
1778
- planDigest: z.ZodString;
1779
- breakdownDigest: z.ZodNullable<z.ZodString>;
1780
- }, z.core.$strict>>;
1781
- observedAt: z.ZodNumber;
1782
- ownerRuntimeEpoch: z.ZodUUID;
1783
- phase: z.ZodEnum<{
1784
- quiescing: "quiescing";
1785
- blocked: "blocked";
1786
- quiescent: "quiescent";
1787
- }>;
1788
- controls: z.ZodArray<z.ZodObject<{
1789
- threadId: z.ZodUUID;
1790
- interruptActionId: z.ZodUUID;
1791
- closeActionId: z.ZodUUID;
1792
- }, z.core.$strict>>;
1793
- }, z.core.$strict>>;
1794
- comparisonCount: z.ZodNumber;
1795
- completionCount: z.ZodNumber;
1796
- revision: z.ZodNullable<z.ZodObject<{
1797
- createdAt: z.ZodNumber;
1798
- reason: z.ZodNullable<z.ZodString>;
1799
- id: z.ZodUUID;
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
- threadIds: z.ZodArray<z.ZodUUID>;
1812
- intent: z.ZodEnum<{
1813
- plan: "plan";
1814
- breakdown: "breakdown";
1815
- }>;
1816
- phaseActionId: z.ZodUUID;
1817
- ownerRuntimeEpoch: z.ZodUUID;
1818
- phase: z.ZodEnum<{
1819
- quiescing: "quiescing";
1820
- editing: "editing";
1821
- reconciling: "reconciling";
1822
- "awaiting-approval": "awaiting-approval";
1823
- blocked: "blocked";
1824
- finished: "finished";
1825
- }>;
1826
- invocation: z.ZodNullable<z.ZodObject<{
1827
- action: z.ZodObject<{
1828
- id: z.ZodUUID;
1829
- operatorId: z.ZodString;
1830
- source: z.ZodObject<{
1831
- kind: z.ZodEnum<{
1832
- "user-action": "user-action";
1833
- "user-message": "user-message";
1834
- }>;
1835
- reference: z.ZodString;
1836
- }, z.core.$strict>;
1837
- }, z.core.$strict>;
1838
- skill: z.ZodEnum<{
1839
- "jg-plan": "jg-plan";
1840
- "jg-breakdown": "jg-breakdown";
1841
- }>;
1842
- }, z.core.$strict>>;
1843
- hasUncertainEffects: z.ZodBoolean;
1844
- hasCheckpoint: z.ZodBoolean;
1845
- hasProposal: z.ZodBoolean;
1846
- proposalId: z.ZodNullable<z.ZodUUID>;
1847
- unmatchedCount: z.ZodNumber;
1848
- }, z.core.$strict>>;
1849
- }, z.core.$strict>;
1850
- }, z.core.$strip>;
1851
- }, z.core.$strip>, z.ZodObject<{
1852
- kind: z.ZodLiteral<"reconciliation-required">;
1853
- result: z.ZodObject<{
1854
- directory: z.ZodString;
1855
- revision: z.ZodObject<{
1856
- planDigest: z.ZodString;
1857
- breakdownDigest: z.ZodNullable<z.ZodString>;
1858
- }, z.core.$strict>;
1859
- inspection: z.ZodObject<{
1860
- plan: z.ZodString;
1861
- milestones: z.ZodNullable<z.ZodString>;
1862
- coordination: z.ZodNullable<z.ZodString>;
1863
- }, z.core.$strip>;
1864
- state: z.ZodEnum<{
1865
- ready: "ready";
1866
- completed: "completed";
1867
- blocked: "blocked";
1868
- "plan-approval-required": "plan-approval-required";
1869
- "breakdown-required": "breakdown-required";
1870
- "sequence-approval-required": "sequence-approval-required";
1871
- "in-progress": "in-progress";
1872
- revising: "revising";
1873
- }>;
1874
- pendingActionId: z.ZodNullable<z.ZodUUID>;
1875
- skillsBinding: z.ZodEnum<{
1876
- absent: "absent";
1877
- current: "current";
1878
- stale: "stale";
1879
- }>;
1880
- isFinalized: z.ZodBoolean;
1881
- isPlanApproved: z.ZodBoolean;
1882
- isSequenceApproved: z.ZodBoolean;
1883
- milestoneCount: z.ZodNumber;
1884
- coordination: z.ZodObject<{
1885
- execution: z.ZodNullable<z.ZodObject<{
1886
- runtimeEpoch: z.ZodUUID;
1887
- action: z.ZodObject<{
1888
- id: z.ZodUUID;
1889
- operatorId: z.ZodString;
1890
- source: z.ZodObject<{
1891
- kind: z.ZodEnum<{
1892
- "user-action": "user-action";
1893
- "user-message": "user-message";
1894
- }>;
1895
- reference: z.ZodString;
1896
- }, z.core.$strict>;
1897
- }, z.core.$strict>;
1898
- revision: z.ZodObject<{
1899
- planDigest: z.ZodString;
1900
- breakdownDigest: z.ZodNullable<z.ZodString>;
1901
- }, z.core.$strict>;
1902
- mode: z.ZodEnum<{
1903
- supervised: "supervised";
1904
- auto: "auto";
1905
- }>;
1906
- milestoneIds: z.ZodArray<z.ZodUUID>;
1907
- createdAt: z.ZodNumber;
1908
- revokedBy: z.ZodNullable<z.ZodObject<{
1909
- id: z.ZodUUID;
1910
- operatorId: z.ZodString;
1911
- source: z.ZodObject<{
1912
- kind: z.ZodEnum<{
1913
- "user-action": "user-action";
1914
- "user-message": "user-message";
1915
- }>;
1916
- reference: z.ZodString;
1917
- }, z.core.$strict>;
1918
- }, z.core.$strict>>;
1919
- }, z.core.$strict>>;
1920
- schemaVersion: z.ZodLiteral<1>;
1921
- finalized: z.ZodNullable<z.ZodObject<{
1922
- action: z.ZodObject<{
1923
- id: z.ZodUUID;
1924
- operatorId: z.ZodString;
1925
- source: z.ZodObject<{
1926
- kind: z.ZodEnum<{
1927
- "user-action": "user-action";
1928
- "user-message": "user-message";
1929
- }>;
1930
- reference: z.ZodString;
1931
- }, z.core.$strict>;
1932
- }, z.core.$strict>;
1933
- revision: z.ZodObject<{
1934
- planDigest: z.ZodString;
1935
- breakdownDigest: z.ZodNullable<z.ZodString>;
1936
- }, z.core.$strict>;
1937
- fileHash: z.ZodNullable<z.ZodString>;
1938
- createdAt: z.ZodNumber;
1939
- }, z.core.$strict>>;
1940
- planApproval: z.ZodNullable<z.ZodObject<{
1941
- action: z.ZodObject<{
1942
- id: z.ZodUUID;
1943
- operatorId: z.ZodString;
1944
- source: z.ZodObject<{
1945
- kind: z.ZodEnum<{
1946
- "user-action": "user-action";
1947
- "user-message": "user-message";
1948
- }>;
1949
- reference: z.ZodString;
1950
- }, z.core.$strict>;
1951
- }, z.core.$strict>;
1952
- revision: z.ZodObject<{
1953
- planDigest: z.ZodString;
1954
- breakdownDigest: z.ZodNullable<z.ZodString>;
1955
- }, z.core.$strict>;
1956
- presentationHash: z.ZodString;
1957
- createdAt: z.ZodNumber;
1958
- revokedBy: z.ZodNullable<z.ZodObject<{
1959
- id: z.ZodUUID;
1960
- operatorId: z.ZodString;
1961
- source: z.ZodObject<{
1962
- kind: z.ZodEnum<{
1963
- "user-action": "user-action";
1964
- "user-message": "user-message";
1965
- }>;
1966
- reference: z.ZodString;
1967
- }, z.core.$strict>;
1968
- }, z.core.$strict>>;
1969
- }, z.core.$strict>>;
1970
- sequenceApproval: z.ZodNullable<z.ZodObject<{
1971
- action: z.ZodObject<{
1972
- id: z.ZodUUID;
1973
- operatorId: z.ZodString;
1974
- source: z.ZodObject<{
1975
- kind: z.ZodEnum<{
1976
- "user-action": "user-action";
1977
- "user-message": "user-message";
1978
- }>;
1979
- reference: z.ZodString;
1980
- }, z.core.$strict>;
1981
- }, z.core.$strict>;
1982
- revision: z.ZodObject<{
1983
- planDigest: z.ZodString;
1984
- breakdownDigest: z.ZodNullable<z.ZodString>;
1985
- }, z.core.$strict>;
1986
- presentationHash: z.ZodString;
1987
- createdAt: z.ZodNumber;
1988
- revokedBy: z.ZodNullable<z.ZodObject<{
1989
- id: z.ZodUUID;
1990
- operatorId: z.ZodString;
1991
- source: z.ZodObject<{
1992
- kind: z.ZodEnum<{
1993
- "user-action": "user-action";
1994
- "user-message": "user-message";
1995
- }>;
1996
- reference: z.ZodString;
1997
- }, z.core.$strict>;
1998
- }, z.core.$strict>>;
1999
- }, z.core.$strict>>;
2000
- lastActionId: z.ZodNullable<z.ZodUUID>;
2001
- observedConflict: z.ZodNullable<z.ZodObject<{
2002
- id: z.ZodUUID;
2003
- revision: z.ZodNullable<z.ZodObject<{
2004
- planDigest: z.ZodString;
2005
- breakdownDigest: z.ZodNullable<z.ZodString>;
2006
- }, z.core.$strict>>;
2007
- observedAt: z.ZodNumber;
2008
- ownerRuntimeEpoch: z.ZodUUID;
2009
- phase: z.ZodEnum<{
2010
- quiescing: "quiescing";
2011
- blocked: "blocked";
2012
- quiescent: "quiescent";
2013
- }>;
2014
- controls: z.ZodArray<z.ZodObject<{
2015
- threadId: z.ZodUUID;
2016
- interruptActionId: z.ZodUUID;
2017
- closeActionId: z.ZodUUID;
2018
- }, z.core.$strict>>;
2019
- }, z.core.$strict>>;
2020
- comparisonCount: z.ZodNumber;
2021
- completionCount: z.ZodNumber;
2022
- revision: z.ZodNullable<z.ZodObject<{
2023
- createdAt: z.ZodNumber;
2024
- reason: z.ZodNullable<z.ZodString>;
2025
- id: z.ZodUUID;
2026
- action: z.ZodObject<{
2027
- id: z.ZodUUID;
2028
- operatorId: z.ZodString;
2029
- source: z.ZodObject<{
2030
- kind: z.ZodEnum<{
2031
- "user-action": "user-action";
2032
- "user-message": "user-message";
2033
- }>;
2034
- reference: z.ZodString;
2035
- }, z.core.$strict>;
2036
- }, z.core.$strict>;
2037
- threadIds: z.ZodArray<z.ZodUUID>;
2038
- intent: z.ZodEnum<{
2039
- plan: "plan";
2040
- breakdown: "breakdown";
2041
- }>;
2042
- phaseActionId: z.ZodUUID;
2043
- ownerRuntimeEpoch: z.ZodUUID;
2044
- phase: z.ZodEnum<{
2045
- quiescing: "quiescing";
2046
- editing: "editing";
2047
- reconciling: "reconciling";
2048
- "awaiting-approval": "awaiting-approval";
2049
- blocked: "blocked";
2050
- finished: "finished";
2051
- }>;
2052
- invocation: z.ZodNullable<z.ZodObject<{
2053
- action: z.ZodObject<{
2054
- id: z.ZodUUID;
2055
- operatorId: z.ZodString;
2056
- source: z.ZodObject<{
2057
- kind: z.ZodEnum<{
2058
- "user-action": "user-action";
2059
- "user-message": "user-message";
2060
- }>;
2061
- reference: z.ZodString;
2062
- }, z.core.$strict>;
2063
- }, z.core.$strict>;
2064
- skill: z.ZodEnum<{
2065
- "jg-plan": "jg-plan";
2066
- "jg-breakdown": "jg-breakdown";
2067
- }>;
2068
- }, z.core.$strict>>;
2069
- hasUncertainEffects: z.ZodBoolean;
2070
- hasCheckpoint: z.ZodBoolean;
2071
- hasProposal: z.ZodBoolean;
2072
- proposalId: z.ZodNullable<z.ZodUUID>;
2073
- unmatchedCount: z.ZodNumber;
2074
- }, z.core.$strict>>;
2075
- }, z.core.$strict>;
2076
- }, z.core.$strip>;
2077
- }, z.core.$strip>, z.ZodObject<{
2078
- kind: z.ZodLiteral<"reconciliation">;
2079
- result: z.ZodObject<{
2080
- data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2081
- kind: z.ZodLiteral<"source">;
2082
- entry: z.ZodObject<{
2083
- ordinal: z.ZodNumber;
2084
- title: z.ZodString;
2085
- status: z.ZodEnum<{
2086
- pending: "pending";
2087
- "in progress": "in progress";
2088
- done: "done";
2089
- }>;
2090
- id: z.ZodUUID;
2091
- contractDigest: z.ZodString;
2092
- contract: z.ZodString;
2093
- sharedDigest: z.ZodString;
2094
- }, z.core.$strip>;
2095
- }, z.core.$strip>, z.ZodObject<{
2096
- kind: z.ZodLiteral<"draft">;
2097
- entry: z.ZodObject<{
2098
- ordinal: z.ZodNumber;
2099
- title: z.ZodString;
2100
- status: z.ZodEnum<{
2101
- pending: "pending";
2102
- "in progress": "in progress";
2103
- done: "done";
2104
- }>;
2105
- id: z.ZodUUID;
2106
- contractDigest: z.ZodString;
2107
- contract: z.ZodString;
2108
- sharedDigest: z.ZodString;
2109
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
2110
- }, z.core.$strip>;
2111
- }, z.core.$strip>, z.ZodObject<{
2112
- kind: z.ZodLiteral<"evidence">;
2113
- entry: z.ZodObject<{
2114
- id: z.ZodUUID;
2115
- action: z.ZodObject<{
2116
- id: z.ZodUUID;
2117
- operatorId: z.ZodString;
2118
- source: z.ZodObject<{
2119
- kind: z.ZodEnum<{
2120
- "user-action": "user-action";
2121
- "user-message": "user-message";
2122
- }>;
2123
- reference: z.ZodString;
2124
- }, z.core.$strict>;
2125
- }, z.core.$strict>;
2126
- milestoneId: z.ZodNullable<z.ZodUUID>;
2127
- revision: z.ZodObject<{
2128
- planDigest: z.ZodString;
2129
- breakdownDigest: z.ZodNullable<z.ZodString>;
2130
- }, z.core.$strict>;
2131
- contractDigest: z.ZodString;
2132
- title: z.ZodString;
2133
- contract: z.ZodString;
2134
- sharedDigest: z.ZodNullable<z.ZodString>;
2135
- checkouts: z.ZodArray<z.ZodObject<{
2136
- repository: z.ZodString;
2137
- directory: z.ZodString;
2138
- claimReference: z.ZodString;
2139
- paths: z.ZodArray<z.ZodString>;
2140
- branch: z.ZodNullable<z.ZodString>;
2141
- head: z.ZodString;
2142
- fingerprint: z.ZodString;
2143
- }, z.core.$strict>>;
2144
- checks: z.ZodArray<z.ZodObject<{
2145
- command: z.ZodString;
2146
- outcome: z.ZodLiteral<"passed">;
2147
- reference: z.ZodString;
2148
- }, z.core.$strict>>;
2149
- completedAt: z.ZodNumber;
2150
- reopenActionId: z.ZodNullable<z.ZodUUID>;
2151
- }, z.core.$strict>;
2152
- }, z.core.$strip>, z.ZodObject<{
2153
- kind: z.ZodLiteral<"correspondence">;
2154
- entry: z.ZodObject<{
2155
- id: z.ZodUUID;
2156
- action: z.ZodObject<{
2157
- id: z.ZodUUID;
2158
- operatorId: z.ZodString;
2159
- source: z.ZodObject<{
2160
- kind: z.ZodEnum<{
2161
- "user-action": "user-action";
2162
- "user-message": "user-message";
2163
- }>;
2164
- reference: z.ZodString;
2165
- }, z.core.$strict>;
2166
- }, z.core.$strict>;
2167
- revision: z.ZodObject<{
2168
- planDigest: z.ZodString;
2169
- breakdownDigest: z.ZodNullable<z.ZodString>;
2170
- }, z.core.$strict>;
2171
- relation: z.ZodEnum<{
2172
- equivalent: "equivalent";
2173
- "requirements-changed": "requirements-changed";
2174
- omitted: "omitted";
2175
- reopened: "reopened";
2176
- }>;
2177
- targets: z.ZodArray<z.ZodObject<{
2178
- id: z.ZodUUID;
2179
- contractDigest: z.ZodString;
2180
- status: z.ZodEnum<{
2181
- pending: "pending";
2182
- "in progress": "in progress";
2183
- done: "done";
2184
- }>;
2185
- }, z.core.$strict>>;
2186
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
2187
- recordedAt: z.ZodNumber;
2188
- sources: z.ZodArray<z.ZodObject<{
2189
- id: z.ZodUUID;
2190
- status: z.ZodEnum<{
2191
- pending: "pending";
2192
- "in progress": "in progress";
2193
- done: "done";
2194
- }>;
2195
- contractDigest: z.ZodString;
2196
- }, z.core.$strip>>;
2197
- }, z.core.$strict>;
2198
- }, z.core.$strip>], "kind">>;
2199
- nextCursor: z.ZodNullable<z.ZodString>;
2200
- }, z.core.$strip>;
2201
- }, z.core.$strip>, z.ZodObject<{
2202
- kind: z.ZodLiteral<"finalized">;
2203
- result: z.ZodObject<{
2204
- directory: z.ZodString;
2205
- revision: z.ZodObject<{
2206
- planDigest: z.ZodString;
2207
- breakdownDigest: z.ZodNullable<z.ZodString>;
2208
- }, z.core.$strict>;
2209
- inspection: z.ZodObject<{
2210
- plan: z.ZodString;
2211
- milestones: z.ZodNullable<z.ZodString>;
2212
- coordination: z.ZodNullable<z.ZodString>;
2213
- }, z.core.$strip>;
2214
- state: z.ZodEnum<{
2215
- ready: "ready";
2216
- completed: "completed";
2217
- blocked: "blocked";
2218
- "plan-approval-required": "plan-approval-required";
2219
- "breakdown-required": "breakdown-required";
2220
- "sequence-approval-required": "sequence-approval-required";
2221
- "in-progress": "in-progress";
2222
- revising: "revising";
2223
- }>;
2224
- pendingActionId: z.ZodNullable<z.ZodUUID>;
2225
- skillsBinding: z.ZodEnum<{
2226
- absent: "absent";
2227
- current: "current";
2228
- stale: "stale";
2229
- }>;
2230
- isFinalized: z.ZodBoolean;
2231
- isPlanApproved: z.ZodBoolean;
2232
- isSequenceApproved: z.ZodBoolean;
2233
- milestoneCount: z.ZodNumber;
2234
- coordination: z.ZodObject<{
2235
- execution: z.ZodNullable<z.ZodObject<{
2236
- runtimeEpoch: z.ZodUUID;
2237
- action: z.ZodObject<{
2238
- id: z.ZodUUID;
2239
- operatorId: z.ZodString;
2240
- source: z.ZodObject<{
2241
- kind: z.ZodEnum<{
2242
- "user-action": "user-action";
2243
- "user-message": "user-message";
2244
- }>;
2245
- reference: z.ZodString;
2246
- }, z.core.$strict>;
2247
- }, z.core.$strict>;
2248
- revision: z.ZodObject<{
2249
- planDigest: z.ZodString;
2250
- breakdownDigest: z.ZodNullable<z.ZodString>;
2251
- }, z.core.$strict>;
2252
- mode: z.ZodEnum<{
2253
- supervised: "supervised";
2254
- auto: "auto";
2255
- }>;
2256
- milestoneIds: z.ZodArray<z.ZodUUID>;
2257
- createdAt: z.ZodNumber;
2258
- revokedBy: z.ZodNullable<z.ZodObject<{
2259
- id: z.ZodUUID;
2260
- operatorId: z.ZodString;
2261
- source: z.ZodObject<{
2262
- kind: z.ZodEnum<{
2263
- "user-action": "user-action";
2264
- "user-message": "user-message";
2265
- }>;
2266
- reference: z.ZodString;
2267
- }, z.core.$strict>;
2268
- }, z.core.$strict>>;
2269
- }, z.core.$strict>>;
2270
- schemaVersion: z.ZodLiteral<1>;
2271
- finalized: z.ZodNullable<z.ZodObject<{
2272
- action: z.ZodObject<{
2273
- id: z.ZodUUID;
2274
- operatorId: z.ZodString;
2275
- source: z.ZodObject<{
2276
- kind: z.ZodEnum<{
2277
- "user-action": "user-action";
2278
- "user-message": "user-message";
2279
- }>;
2280
- reference: z.ZodString;
2281
- }, z.core.$strict>;
2282
- }, z.core.$strict>;
2283
- revision: z.ZodObject<{
2284
- planDigest: z.ZodString;
2285
- breakdownDigest: z.ZodNullable<z.ZodString>;
2286
- }, z.core.$strict>;
2287
- fileHash: z.ZodNullable<z.ZodString>;
2288
- createdAt: z.ZodNumber;
2289
- }, z.core.$strict>>;
2290
- planApproval: z.ZodNullable<z.ZodObject<{
2291
- action: z.ZodObject<{
2292
- id: z.ZodUUID;
2293
- operatorId: z.ZodString;
2294
- source: z.ZodObject<{
2295
- kind: z.ZodEnum<{
2296
- "user-action": "user-action";
2297
- "user-message": "user-message";
2298
- }>;
2299
- reference: z.ZodString;
2300
- }, z.core.$strict>;
2301
- }, z.core.$strict>;
2302
- revision: z.ZodObject<{
2303
- planDigest: z.ZodString;
2304
- breakdownDigest: z.ZodNullable<z.ZodString>;
2305
- }, z.core.$strict>;
2306
- presentationHash: z.ZodString;
2307
- createdAt: z.ZodNumber;
2308
- revokedBy: z.ZodNullable<z.ZodObject<{
2309
- id: z.ZodUUID;
2310
- operatorId: z.ZodString;
2311
- source: z.ZodObject<{
2312
- kind: z.ZodEnum<{
2313
- "user-action": "user-action";
2314
- "user-message": "user-message";
2315
- }>;
2316
- reference: z.ZodString;
2317
- }, z.core.$strict>;
2318
- }, z.core.$strict>>;
2319
- }, z.core.$strict>>;
2320
- sequenceApproval: z.ZodNullable<z.ZodObject<{
2321
- action: z.ZodObject<{
2322
- id: z.ZodUUID;
2323
- operatorId: z.ZodString;
2324
- source: z.ZodObject<{
2325
- kind: z.ZodEnum<{
2326
- "user-action": "user-action";
2327
- "user-message": "user-message";
2328
- }>;
2329
- reference: z.ZodString;
2330
- }, z.core.$strict>;
2331
- }, z.core.$strict>;
2332
- revision: z.ZodObject<{
2333
- planDigest: z.ZodString;
2334
- breakdownDigest: z.ZodNullable<z.ZodString>;
2335
- }, z.core.$strict>;
2336
- presentationHash: z.ZodString;
2337
- createdAt: z.ZodNumber;
2338
- revokedBy: z.ZodNullable<z.ZodObject<{
2339
- id: z.ZodUUID;
2340
- operatorId: z.ZodString;
2341
- source: z.ZodObject<{
2342
- kind: z.ZodEnum<{
2343
- "user-action": "user-action";
2344
- "user-message": "user-message";
2345
- }>;
2346
- reference: z.ZodString;
2347
- }, z.core.$strict>;
2348
- }, z.core.$strict>>;
2349
- }, z.core.$strict>>;
2350
- lastActionId: z.ZodNullable<z.ZodUUID>;
2351
- observedConflict: z.ZodNullable<z.ZodObject<{
2352
- id: z.ZodUUID;
2353
- revision: z.ZodNullable<z.ZodObject<{
2354
- planDigest: z.ZodString;
2355
- breakdownDigest: z.ZodNullable<z.ZodString>;
2356
- }, z.core.$strict>>;
2357
- observedAt: z.ZodNumber;
2358
- ownerRuntimeEpoch: z.ZodUUID;
2359
- phase: z.ZodEnum<{
2360
- quiescing: "quiescing";
2361
- blocked: "blocked";
2362
- quiescent: "quiescent";
2363
- }>;
2364
- controls: z.ZodArray<z.ZodObject<{
2365
- threadId: z.ZodUUID;
2366
- interruptActionId: z.ZodUUID;
2367
- closeActionId: z.ZodUUID;
2368
- }, z.core.$strict>>;
2369
- }, z.core.$strict>>;
2370
- comparisonCount: z.ZodNumber;
2371
- completionCount: z.ZodNumber;
2372
- revision: z.ZodNullable<z.ZodObject<{
2373
- createdAt: z.ZodNumber;
2374
- reason: z.ZodNullable<z.ZodString>;
2375
- id: z.ZodUUID;
2376
- action: z.ZodObject<{
2377
- id: z.ZodUUID;
2378
- operatorId: z.ZodString;
2379
- source: z.ZodObject<{
2380
- kind: z.ZodEnum<{
2381
- "user-action": "user-action";
2382
- "user-message": "user-message";
2383
- }>;
2384
- reference: z.ZodString;
2385
- }, z.core.$strict>;
2386
- }, z.core.$strict>;
2387
- threadIds: z.ZodArray<z.ZodUUID>;
2388
- intent: z.ZodEnum<{
2389
- plan: "plan";
2390
- breakdown: "breakdown";
2391
- }>;
2392
- phaseActionId: z.ZodUUID;
2393
- ownerRuntimeEpoch: z.ZodUUID;
2394
- phase: z.ZodEnum<{
2395
- quiescing: "quiescing";
2396
- editing: "editing";
2397
- reconciling: "reconciling";
2398
- "awaiting-approval": "awaiting-approval";
2399
- blocked: "blocked";
2400
- finished: "finished";
2401
- }>;
2402
- invocation: z.ZodNullable<z.ZodObject<{
2403
- action: z.ZodObject<{
2404
- id: z.ZodUUID;
2405
- operatorId: z.ZodString;
2406
- source: z.ZodObject<{
2407
- kind: z.ZodEnum<{
2408
- "user-action": "user-action";
2409
- "user-message": "user-message";
2410
- }>;
2411
- reference: z.ZodString;
2412
- }, z.core.$strict>;
2413
- }, z.core.$strict>;
2414
- skill: z.ZodEnum<{
2415
- "jg-plan": "jg-plan";
2416
- "jg-breakdown": "jg-breakdown";
2417
- }>;
2418
- }, z.core.$strict>>;
2419
- hasUncertainEffects: z.ZodBoolean;
2420
- hasCheckpoint: z.ZodBoolean;
2421
- hasProposal: z.ZodBoolean;
2422
- proposalId: z.ZodNullable<z.ZodUUID>;
2423
- unmatchedCount: z.ZodNumber;
2424
- }, z.core.$strict>>;
2425
- }, z.core.$strict>;
2426
- }, z.core.$strip>;
2427
- content: z.ZodNullable<z.ZodString>;
2428
- }, z.core.$strip>, z.ZodObject<{
2429
- kind: z.ZodLiteral<"milestones">;
2430
- result: z.ZodObject<{
2431
- data: z.ZodArray<z.ZodObject<{
2432
- id: z.ZodNullable<z.ZodUUID>;
2433
- ordinal: z.ZodNumber;
2434
- title: z.ZodString;
2435
- status: z.ZodEnum<{
2436
- pending: "pending";
2437
- "in progress": "in progress";
2438
- done: "done";
2439
- }>;
2440
- contractDigest: z.ZodNullable<z.ZodString>;
2441
- }, z.core.$strip>>;
2442
- nextCursor: z.ZodNullable<z.ZodString>;
2443
- }, z.core.$strip>;
2444
- }, z.core.$strip>, z.ZodObject<{
2445
- kind: z.ZodLiteral<"execution-check">;
2446
- result: z.ZodObject<{
2447
- isAuthorized: z.ZodLiteral<true>;
2448
- authorization: z.ZodObject<{
2449
- runtimeEpoch: z.ZodUUID;
2450
- action: z.ZodObject<{
2451
- id: z.ZodUUID;
2452
- operatorId: z.ZodString;
2453
- source: z.ZodObject<{
2454
- kind: z.ZodEnum<{
2455
- "user-action": "user-action";
2456
- "user-message": "user-message";
2457
- }>;
2458
- reference: z.ZodString;
2459
- }, z.core.$strict>;
2460
- }, z.core.$strict>;
2461
- revision: z.ZodObject<{
2462
- planDigest: z.ZodString;
2463
- breakdownDigest: z.ZodNullable<z.ZodString>;
2464
- }, z.core.$strict>;
2465
- mode: z.ZodEnum<{
2466
- supervised: "supervised";
2467
- auto: "auto";
2468
- }>;
2469
- milestoneIds: z.ZodArray<z.ZodUUID>;
2470
- createdAt: z.ZodNumber;
2471
- revokedBy: z.ZodNullable<z.ZodObject<{
2472
- id: z.ZodUUID;
2473
- operatorId: z.ZodString;
2474
- source: z.ZodObject<{
2475
- kind: z.ZodEnum<{
2476
- "user-action": "user-action";
2477
- "user-message": "user-message";
2478
- }>;
2479
- reference: z.ZodString;
2480
- }, z.core.$strict>;
2481
- }, z.core.$strict>>;
2482
- }, z.core.$strict>;
2483
- }, z.core.$strip>;
2484
- }, z.core.$strip>], "kind">>;
2485
- }, z.core.$strip>;
2486
- export declare const BrowserSessionSchema: z.ZodObject<{
2487
- operator: z.ZodObject<{
2488
- id: z.ZodString;
2489
- }, z.core.$strip>;
2490
- runtimeEpoch: z.ZodUUID;
2491
- capabilities: z.ZodObject<{
2492
- native: z.ZodBoolean;
2493
- plans: z.ZodBoolean;
2494
- priorities: z.ZodBoolean;
2495
- errorReservations: z.ZodBoolean;
2496
- publicationRetry: z.ZodBoolean;
2497
- }, z.core.$strip>;
2498
- }, z.core.$strip>;
2499
- export declare const BrowserRepositoryPageSchema: z.ZodObject<{
2500
- data: z.ZodArray<z.ZodObject<{
2501
- name: z.ZodString;
2502
- root: z.ZodNullable<z.ZodString>;
2503
- purpose: z.ZodString;
2504
- worktrees: z.ZodBoolean;
2505
- }, z.core.$strip>>;
2506
- nextCursor: z.ZodNullable<z.ZodString>;
2507
- }, z.core.$strip>;
2508
- export declare const PublicationStatusSchema: z.ZodObject<{
2509
- id: z.ZodNullable<z.ZodUUID>;
2510
- state: z.ZodEnum<{
2511
- idle: "idle";
2512
- pending: "pending";
2513
- failed: "failed";
2514
- blocked: "blocked";
2515
- uncertain: "uncertain";
2516
- publishing: "publishing";
2517
- published: "published";
2518
- }>;
2519
- reason: z.ZodNullable<z.ZodEnum<{
2520
- owner: "owner";
2521
- configuration: "configuration";
2522
- editing: "editing";
2523
- clean: "clean";
2524
- enrolled: "enrolled";
2525
- changed: "changed";
2526
- git: "git";
2527
- signing: "signing";
2528
- verification: "verification";
2529
- transport: "transport";
2530
- rejected: "rejected";
2531
- "remote-changed": "remote-changed";
2532
- unpublished: "unpublished";
2533
- staged: "staged";
2534
- cleanup: "cleanup";
2535
- }>>;
2536
- dueAt: z.ZodNumber;
2537
- attemptedAt: z.ZodNullable<z.ZodNumber>;
2538
- succeededAt: z.ZodNullable<z.ZodNumber>;
2539
- commit: z.ZodNullable<z.ZodString>;
2540
- publishedCommit: z.ZodNullable<z.ZodString>;
2541
- queuedFiles: z.ZodNumber;
2542
- selectedFiles: z.ZodNumber;
2543
- }, z.core.$strip>;
2544
- export type IPublicationStatus = z.infer<typeof PublicationStatusSchema>;
2545
- export declare const BrowserSystemSchema: z.ZodObject<{
2546
- runtime: z.ZodObject<{
2547
- runtimeEpoch: z.ZodUUID;
2548
- pid: z.ZodNumber;
2549
- startedAt: z.ZodNumber;
2550
- store: z.ZodEnum<{
2551
- unavailable: "unavailable";
2552
- ready: "ready";
2553
- }>;
2554
- providers: z.ZodArray<z.ZodObject<{
2555
- provider: z.ZodString;
2556
- state: z.ZodEnum<{
2557
- unavailable: "unavailable";
2558
- idle: "idle";
2559
- ready: "ready";
2560
- }>;
2561
- version: z.ZodNullable<z.ZodString>;
2562
- }, z.core.$strip>>;
2563
- }, z.core.$strip>;
2564
- publication: z.ZodObject<{
2565
- id: z.ZodNullable<z.ZodUUID>;
2566
- state: z.ZodEnum<{
2567
- idle: "idle";
2568
- pending: "pending";
2569
- failed: "failed";
2570
- blocked: "blocked";
2571
- uncertain: "uncertain";
2572
- publishing: "publishing";
2573
- published: "published";
2574
- }>;
2575
- reason: z.ZodNullable<z.ZodEnum<{
2576
- owner: "owner";
2577
- configuration: "configuration";
2578
- editing: "editing";
2579
- clean: "clean";
2580
- enrolled: "enrolled";
2581
- changed: "changed";
2582
- git: "git";
2583
- signing: "signing";
2584
- verification: "verification";
2585
- transport: "transport";
2586
- rejected: "rejected";
2587
- "remote-changed": "remote-changed";
2588
- unpublished: "unpublished";
2589
- staged: "staged";
2590
- cleanup: "cleanup";
2591
- }>>;
2592
- dueAt: z.ZodNumber;
2593
- attemptedAt: z.ZodNullable<z.ZodNumber>;
2594
- succeededAt: z.ZodNullable<z.ZodNumber>;
2595
- commit: z.ZodNullable<z.ZodString>;
2596
- publishedCommit: z.ZodNullable<z.ZodString>;
2597
- queuedFiles: z.ZodNumber;
2598
- selectedFiles: z.ZodNumber;
2599
- }, z.core.$strip>;
2600
- resources: z.ZodObject<{
2601
- state: z.ZodLiteral<"unavailable">;
2602
- }, z.core.$strip>;
2603
- service: z.ZodObject<{
2604
- state: z.ZodLiteral<"unavailable">;
2605
- }, z.core.$strip>;
2606
- }, z.core.$strip>;
2607
1175
  export declare const BrowserThreadDetailSchema: z.ZodObject<{
2608
1176
  thread: z.ZodObject<{
2609
1177
  id: z.ZodUUID;
@@ -2619,8 +1187,8 @@ export declare const BrowserThreadDetailSchema: z.ZodObject<{
2619
1187
  name: z.ZodString;
2620
1188
  workspaceRoot: z.ZodString;
2621
1189
  ownership: z.ZodEnum<{
2622
- uncertain: "uncertain";
2623
1190
  managed: "managed";
1191
+ uncertain: "uncertain";
2624
1192
  }>;
2625
1193
  runtimeEpoch: z.ZodNullable<z.ZodUUID>;
2626
1194
  activeTurnId: z.ZodNullable<z.ZodString>;
@@ -2631,10 +1199,10 @@ export declare const BrowserThreadDetailSchema: z.ZodObject<{
2631
1199
  failed: "failed";
2632
1200
  interrupted: "interrupted";
2633
1201
  "waiting-input": "waiting-input";
1202
+ running: "running";
2634
1203
  creating: "creating";
2635
1204
  inactive: "inactive";
2636
1205
  starting: "starting";
2637
- running: "running";
2638
1206
  "waiting-approval": "waiting-approval";
2639
1207
  stopping: "stopping";
2640
1208
  }>;
@@ -2824,10 +1392,10 @@ export declare const BrowserThreadDetailSchema: z.ZodObject<{
2824
1392
  delivery: z.ZodEnum<{
2825
1393
  failed: "failed";
2826
1394
  canceled: "canceled";
1395
+ uncertain: "uncertain";
2827
1396
  queued: "queued";
2828
1397
  submitted: "submitted";
2829
1398
  acknowledged: "acknowledged";
2830
- uncertain: "uncertain";
2831
1399
  }>;
2832
1400
  digest: z.ZodString;
2833
1401
  controlState: z.ZodNullable<z.ZodEnum<{