jg-agent-hq 2.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 (155) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +14 -14
  3. package/api/README.md +97 -65
  4. package/dist/actions/actions.js +15 -0
  5. package/dist/cli/cli.js +28 -5
  6. package/dist/cli/utilities.d.ts +3 -0
  7. package/dist/cli/utilities.js +13 -0
  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 +9 -11
  15. package/dist/contracts/index.js +6 -8
  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 +551 -1035
  25. package/dist/contracts/types.js +32 -0
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +1 -1
  28. package/dist/plans/admission.d.ts +6 -6
  29. package/dist/plans/admission.js +1 -1
  30. package/dist/plans/authority.d.ts +2 -0
  31. package/dist/plans/authority.js +23 -13
  32. package/dist/plans/documents.d.ts +20 -17
  33. package/dist/plans/documents.js +29 -63
  34. package/dist/plans/files.d.ts +2 -2
  35. package/dist/plans/files.js +5 -5
  36. package/dist/plans/finalization.d.ts +6 -8
  37. package/dist/plans/finalization.js +25 -26
  38. package/dist/plans/index.d.ts +2 -3
  39. package/dist/plans/index.js +1 -2
  40. package/dist/plans/plans.d.ts +8 -8
  41. package/dist/plans/plans.js +36 -83
  42. package/dist/plans/projections.d.ts +2 -2
  43. package/dist/plans/projections.js +44 -82
  44. package/dist/plans/revisions.d.ts +4 -5
  45. package/dist/plans/revisions.js +5 -44
  46. package/dist/plans/types.d.ts +5 -281
  47. package/dist/plans/types.js +2 -30
  48. package/dist/plans/utilities.js +2 -11
  49. package/dist/providers/claude/agents/agents.d.ts +16 -0
  50. package/dist/providers/claude/agents/agents.js +80 -0
  51. package/dist/providers/claude/agents/constants.d.ts +3 -0
  52. package/dist/providers/claude/agents/constants.js +4 -0
  53. package/dist/providers/claude/agents/index.d.ts +1 -0
  54. package/dist/providers/claude/agents/index.js +2 -0
  55. package/dist/providers/claude/agents/types.d.ts +14 -0
  56. package/dist/providers/claude/agents/types.js +9 -0
  57. package/dist/providers/claude/claude.js +2 -0
  58. package/dist/providers/claude/history/history.model.js +2 -0
  59. package/dist/providers/claude/history/types.d.ts +115 -368
  60. package/dist/providers/claude/index.d.ts +1 -0
  61. package/dist/providers/claude/index.js +2 -0
  62. package/dist/providers/claude/transformers.js +14 -1
  63. package/dist/providers/codex/adapter.d.ts +1 -1
  64. package/dist/providers/codex/adapter.js +26 -3
  65. package/dist/providers/codex/codex.js +51 -18
  66. package/dist/providers/codex/events.d.ts +2 -1
  67. package/dist/providers/codex/events.js +8 -3
  68. package/dist/providers/codex/index.d.ts +1 -1
  69. package/dist/providers/codex/index.js +1 -1
  70. package/dist/providers/codex/rpc.d.ts +9 -4
  71. package/dist/providers/codex/rpc.js +109 -47
  72. package/dist/providers/codex/skill-roots/constants.d.ts +4 -0
  73. package/dist/providers/codex/skill-roots/constants.js +7 -0
  74. package/dist/providers/codex/skill-roots/index.d.ts +2 -0
  75. package/dist/providers/codex/skill-roots/index.js +4 -0
  76. package/dist/providers/codex/skill-roots/skill-roots.d.ts +35 -0
  77. package/dist/providers/codex/skill-roots/skill-roots.js +93 -0
  78. package/dist/providers/codex/transformers.d.ts +3 -1
  79. package/dist/providers/codex/transformers.js +41 -3
  80. package/dist/providers/codex/types.d.ts +38 -1
  81. package/dist/providers/codex/types.js +15 -3
  82. package/dist/providers/codex/websocket/constants.d.ts +11 -0
  83. package/dist/providers/codex/websocket/constants.js +18 -0
  84. package/dist/providers/codex/websocket/index.d.ts +1 -0
  85. package/dist/providers/codex/websocket/index.js +2 -0
  86. package/dist/providers/codex/websocket/websocket.d.ts +7 -0
  87. package/dist/providers/codex/websocket/websocket.js +219 -0
  88. package/dist/providers/index.d.ts +2 -2
  89. package/dist/providers/index.js +1 -1
  90. package/dist/providers/process.d.ts +2 -2
  91. package/dist/providers/process.js +37 -4
  92. package/dist/providers/registry/registry.js +2 -1
  93. package/dist/providers/types.d.ts +25 -2
  94. package/dist/runtime/runtime.js +11 -3
  95. package/dist/runtime/state/index.d.ts +1 -1
  96. package/dist/runtime/state/index.js +1 -1
  97. package/dist/runtime/state/state.d.ts +15 -0
  98. package/dist/runtime/state/state.js +92 -1
  99. package/dist/runtime/types.d.ts +0 -2
  100. package/dist/runtime/types.js +0 -3
  101. package/dist/sessions/sessions.js +2 -0
  102. package/dist/snapshots/archive/archive.d.ts +29 -0
  103. package/dist/snapshots/archive/archive.js +342 -0
  104. package/dist/snapshots/archive/constants.d.ts +5 -0
  105. package/dist/snapshots/archive/constants.js +8 -0
  106. package/dist/snapshots/archive/index.d.ts +1 -0
  107. package/dist/snapshots/archive/index.js +2 -0
  108. package/dist/snapshots/artifacts.d.ts +10 -1
  109. package/dist/snapshots/artifacts.js +38 -13
  110. package/dist/snapshots/capture.d.ts +15 -0
  111. package/dist/snapshots/capture.js +158 -0
  112. package/dist/snapshots/database.d.ts +2 -0
  113. package/dist/snapshots/database.js +35 -55
  114. package/dist/snapshots/fences.d.ts +10 -0
  115. package/dist/snapshots/fences.js +51 -0
  116. package/dist/snapshots/index.d.ts +1 -0
  117. package/dist/snapshots/index.js +2 -0
  118. package/dist/snapshots/snapshots.d.ts +7 -3
  119. package/dist/snapshots/snapshots.js +31 -117
  120. package/dist/snapshots/snapshots.worker.js +5 -1
  121. package/dist/snapshots/types.d.ts +35 -3
  122. package/dist/snapshots/types.js +19 -4
  123. package/dist/storage/index.d.ts +2 -1
  124. package/dist/storage/index.js +2 -1
  125. package/dist/storage/schema/constants.d.ts +2 -0
  126. package/dist/storage/schema/constants.js +9 -0
  127. package/dist/storage/schema/index.d.ts +3 -0
  128. package/dist/storage/schema/index.js +6 -0
  129. package/dist/storage/schema/schema.d.ts +18 -0
  130. package/dist/storage/schema/schema.js +59 -0
  131. package/dist/storage/schema/types.d.ts +7 -0
  132. package/dist/storage/schema/types.js +8 -0
  133. package/dist/storage/storage.d.ts +1 -1
  134. package/dist/storage/storage.js +2 -2
  135. package/dist/storage/types.d.ts +0 -5
  136. package/dist/storage/types.js +0 -6
  137. package/dist/store/collaboration/collaboration.model.d.ts +2 -2
  138. package/dist/store/control/types.d.ts +16 -16
  139. package/dist/store/plans/plans.model.d.ts +3 -105
  140. package/dist/store/plans/plans.model.js +6 -46
  141. package/dist/store/schema.js +7 -35
  142. package/dist/store/schema.sql +91 -16
  143. package/dist/store/sessions/index.d.ts +1 -0
  144. package/dist/store/sessions/index.js +2 -0
  145. package/dist/store/sessions/sessions.model.d.ts +28 -0
  146. package/dist/store/sessions/sessions.model.js +105 -0
  147. package/dist/store/store.js +13 -7
  148. package/dist/store/store.worker.js +16 -11
  149. package/dist/store/types.d.ts +134 -513
  150. package/dist/store/types.js +21 -7
  151. package/docs/recovery.md +8 -4
  152. package/errors/README.md +3 -3
  153. package/package.json +2 -2
  154. package/dist/plans/reconciliation.d.ts +0 -34
  155. package/dist/plans/reconciliation.js +0 -246
@@ -6,16 +6,6 @@ export declare const PlanRevisionSchema: z.ZodObject<{
6
6
  }, z.core.$strict>;
7
7
  export type IPlanRevision = z.infer<typeof PlanRevisionSchema>;
8
8
  export declare const PlanMetadataSchema: z.ZodObject<{
9
- scope: z.ZodString;
10
- repositories: z.ZodArray<z.ZodString>;
11
- errorReservations: z.ZodArray<z.ZodObject<{
12
- repository: z.ZodString;
13
- namespace: z.ZodString;
14
- start: z.ZodNumber;
15
- end: z.ZodNumber;
16
- registryPath: z.ZodString;
17
- purpose: z.ZodString;
18
- }, z.core.$strict>>;
19
9
  extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
20
10
  }, z.core.$strict>;
21
11
  export type IPlanMetadata = z.infer<typeof PlanMetadataSchema>;
@@ -106,7 +96,7 @@ export declare const PlanCompletionSchema: z.ZodObject<{
106
96
  reference: z.ZodString;
107
97
  }, z.core.$strict>>;
108
98
  completedAt: z.ZodNumber;
109
- reopenActionId: z.ZodNullable<z.ZodUUID>;
99
+ reopenedBy: z.ZodNullable<z.ZodUUID>;
110
100
  }, z.core.$strict>;
111
101
  export type IPlanCompletion = z.infer<typeof PlanCompletionSchema>;
112
102
  export declare const PlanSnapshotMilestoneSchema: z.ZodObject<{
@@ -157,87 +147,6 @@ export declare const PlanCheckpointSchema: z.ZodObject<{
157
147
  isQuiescent: z.ZodBoolean;
158
148
  }, z.core.$strict>;
159
149
  export type IPlanCheckpoint = z.infer<typeof PlanCheckpointSchema>;
160
- export declare const PlanCorrespondenceSchema: z.ZodObject<{
161
- sourceIds: z.ZodArray<z.ZodUUID>;
162
- targetIds: z.ZodArray<z.ZodUUID>;
163
- relation: z.ZodEnum<{
164
- equivalent: "equivalent";
165
- "requirements-changed": "requirements-changed";
166
- omitted: "omitted";
167
- reopened: "reopened";
168
- }>;
169
- retainedPairs: z.ZodArray<z.ZodObject<{
170
- sourceId: z.ZodUUID;
171
- targetId: z.ZodUUID;
172
- }, z.core.$strict>>;
173
- }, z.core.$strict>;
174
- export type IPlanCorrespondence = z.infer<typeof PlanCorrespondenceSchema>;
175
- export declare const PlanDraftMilestoneSchema: z.ZodObject<{
176
- ordinal: z.ZodNumber;
177
- title: z.ZodString;
178
- status: z.ZodEnum<{
179
- pending: "pending";
180
- "in progress": "in progress";
181
- done: "done";
182
- }>;
183
- id: z.ZodUUID;
184
- contractDigest: z.ZodString;
185
- contract: z.ZodString;
186
- sharedDigest: z.ZodString;
187
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
188
- }, z.core.$strip>;
189
- export type IPlanDraftMilestone = z.infer<typeof PlanDraftMilestoneSchema>;
190
- export declare const PlanProposalSchema: z.ZodObject<{
191
- id: z.ZodUUID;
192
- revision: z.ZodObject<{
193
- planDigest: z.ZodString;
194
- breakdownDigest: z.ZodNullable<z.ZodString>;
195
- }, z.core.$strict>;
196
- inspectionHash: z.ZodNullable<z.ZodString>;
197
- drafts: z.ZodArray<z.ZodObject<{
198
- ordinal: z.ZodNumber;
199
- title: z.ZodString;
200
- status: z.ZodEnum<{
201
- pending: "pending";
202
- "in progress": "in progress";
203
- done: "done";
204
- }>;
205
- id: z.ZodUUID;
206
- contractDigest: z.ZodString;
207
- contract: z.ZodString;
208
- sharedDigest: z.ZodString;
209
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
210
- }, z.core.$strip>>;
211
- unmatchedSourceIds: z.ZodArray<z.ZodUUID>;
212
- confirmation: z.ZodNullable<z.ZodObject<{
213
- action: z.ZodObject<{
214
- id: z.ZodUUID;
215
- operatorId: z.ZodString;
216
- source: z.ZodObject<{
217
- kind: z.ZodEnum<{
218
- "user-action": "user-action";
219
- "user-message": "user-message";
220
- }>;
221
- reference: z.ZodString;
222
- }, z.core.$strict>;
223
- }, z.core.$strict>;
224
- decisions: z.ZodArray<z.ZodObject<{
225
- sourceIds: z.ZodArray<z.ZodUUID>;
226
- targetIds: z.ZodArray<z.ZodUUID>;
227
- relation: z.ZodEnum<{
228
- equivalent: "equivalent";
229
- "requirements-changed": "requirements-changed";
230
- omitted: "omitted";
231
- reopened: "reopened";
232
- }>;
233
- retainedPairs: z.ZodArray<z.ZodObject<{
234
- sourceId: z.ZodUUID;
235
- targetId: z.ZodUUID;
236
- }, z.core.$strict>>;
237
- }, z.core.$strict>>;
238
- }, z.core.$strict>>;
239
- }, z.core.$strict>;
240
- export type IPlanProposal = z.infer<typeof PlanProposalSchema>;
241
150
  export declare const PlanRevisionWorkflowSchema: z.ZodObject<{
242
151
  id: z.ZodUUID;
243
152
  action: z.ZodObject<{
@@ -267,7 +176,6 @@ export declare const PlanRevisionWorkflowSchema: z.ZodObject<{
267
176
  phase: z.ZodEnum<{
268
177
  quiescing: "quiescing";
269
178
  editing: "editing";
270
- reconciling: "reconciling";
271
179
  "awaiting-approval": "awaiting-approval";
272
180
  blocked: "blocked";
273
181
  finished: "finished";
@@ -330,109 +238,10 @@ export declare const PlanRevisionWorkflowSchema: z.ZodObject<{
330
238
  "jg-breakdown": "jg-breakdown";
331
239
  }>;
332
240
  }, z.core.$strict>>;
333
- proposal: z.ZodNullable<z.ZodObject<{
334
- id: z.ZodUUID;
335
- revision: z.ZodObject<{
336
- planDigest: z.ZodString;
337
- breakdownDigest: z.ZodNullable<z.ZodString>;
338
- }, z.core.$strict>;
339
- inspectionHash: z.ZodNullable<z.ZodString>;
340
- drafts: z.ZodArray<z.ZodObject<{
341
- ordinal: z.ZodNumber;
342
- title: z.ZodString;
343
- status: z.ZodEnum<{
344
- pending: "pending";
345
- "in progress": "in progress";
346
- done: "done";
347
- }>;
348
- id: z.ZodUUID;
349
- contractDigest: z.ZodString;
350
- contract: z.ZodString;
351
- sharedDigest: z.ZodString;
352
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
353
- }, z.core.$strip>>;
354
- unmatchedSourceIds: z.ZodArray<z.ZodUUID>;
355
- confirmation: z.ZodNullable<z.ZodObject<{
356
- action: z.ZodObject<{
357
- id: z.ZodUUID;
358
- operatorId: z.ZodString;
359
- source: z.ZodObject<{
360
- kind: z.ZodEnum<{
361
- "user-action": "user-action";
362
- "user-message": "user-message";
363
- }>;
364
- reference: z.ZodString;
365
- }, z.core.$strict>;
366
- }, z.core.$strict>;
367
- decisions: z.ZodArray<z.ZodObject<{
368
- sourceIds: z.ZodArray<z.ZodUUID>;
369
- targetIds: z.ZodArray<z.ZodUUID>;
370
- relation: z.ZodEnum<{
371
- equivalent: "equivalent";
372
- "requirements-changed": "requirements-changed";
373
- omitted: "omitted";
374
- reopened: "reopened";
375
- }>;
376
- retainedPairs: z.ZodArray<z.ZodObject<{
377
- sourceId: z.ZodUUID;
378
- targetId: z.ZodUUID;
379
- }, z.core.$strict>>;
380
- }, z.core.$strict>>;
381
- }, z.core.$strict>>;
382
- }, z.core.$strict>>;
383
241
  createdAt: z.ZodNumber;
384
242
  hasUncertainEffects: z.ZodBoolean;
385
243
  }, z.core.$strict>;
386
244
  export type IPlanRevisionWorkflow = z.infer<typeof PlanRevisionWorkflowSchema>;
387
- export declare const PlanCorrespondenceRecordSchema: z.ZodObject<{
388
- id: z.ZodUUID;
389
- action: z.ZodObject<{
390
- id: z.ZodUUID;
391
- operatorId: z.ZodString;
392
- source: z.ZodObject<{
393
- kind: z.ZodEnum<{
394
- "user-action": "user-action";
395
- "user-message": "user-message";
396
- }>;
397
- reference: z.ZodString;
398
- }, z.core.$strict>;
399
- }, z.core.$strict>;
400
- revision: z.ZodObject<{
401
- planDigest: z.ZodString;
402
- breakdownDigest: z.ZodNullable<z.ZodString>;
403
- }, z.core.$strict>;
404
- sources: z.ZodArray<z.ZodObject<{
405
- ordinal: z.ZodNumber;
406
- title: z.ZodString;
407
- status: z.ZodEnum<{
408
- pending: "pending";
409
- "in progress": "in progress";
410
- done: "done";
411
- }>;
412
- id: z.ZodUUID;
413
- contractDigest: z.ZodString;
414
- contract: z.ZodString;
415
- sharedDigest: z.ZodString;
416
- }, z.core.$strip>>;
417
- targets: z.ZodArray<z.ZodObject<{
418
- id: z.ZodUUID;
419
- contractDigest: z.ZodString;
420
- status: z.ZodEnum<{
421
- pending: "pending";
422
- "in progress": "in progress";
423
- done: "done";
424
- }>;
425
- }, z.core.$strict>>;
426
- relation: z.ZodEnum<{
427
- equivalent: "equivalent";
428
- "requirements-changed": "requirements-changed";
429
- omitted: "omitted";
430
- reopened: "reopened";
431
- }>;
432
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
433
- recordedAt: z.ZodNumber;
434
- }, z.core.$strict>;
435
- export type IPlanCorrespondenceRecord = z.infer<typeof PlanCorrespondenceRecordSchema>;
436
245
  export declare const PlanCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
246
  kind: z.ZodLiteral<"status">;
438
247
  target: z.ZodObject<{
@@ -446,23 +255,11 @@ export declare const PlanCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
446
255
  limit: z.ZodDefault<z.ZodNumber>;
447
256
  cursor: z.ZodOptional<z.ZodString>;
448
257
  }, z.core.$strict>, z.ZodObject<{
449
- confirmation: z.ZodOptional<z.ZodObject<{
450
- proposalId: z.ZodUUID;
451
- decisions: z.ZodArray<z.ZodObject<{
452
- sourceIds: z.ZodArray<z.ZodUUID>;
453
- targetIds: z.ZodArray<z.ZodUUID>;
454
- relation: z.ZodEnum<{
455
- equivalent: "equivalent";
456
- "requirements-changed": "requirements-changed";
457
- omitted: "omitted";
458
- reopened: "reopened";
459
- }>;
460
- retainedPairs: z.ZodArray<z.ZodObject<{
461
- sourceId: z.ZodUUID;
462
- targetId: z.ZodUUID;
463
- }, z.core.$strict>>;
464
- }, z.core.$strict>>;
465
- }, z.core.$strict>>;
258
+ kind: z.ZodLiteral<"register">;
259
+ target: z.ZodObject<{
260
+ directory: z.ZodString;
261
+ }, z.core.$strict>;
262
+ }, z.core.$strict>, z.ZodObject<{
466
263
  target: z.ZodObject<{
467
264
  directory: z.ZodString;
468
265
  }, z.core.$strict>;
@@ -570,19 +367,6 @@ export declare const PlanCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
570
367
  breakdownDigest: z.ZodNullable<z.ZodString>;
571
368
  }, z.core.$strict>;
572
369
  kind: z.ZodLiteral<"revision-invoke">;
573
- }, z.core.$strict>, z.ZodObject<{
574
- kind: z.ZodLiteral<"reconciliation">;
575
- target: z.ZodObject<{
576
- directory: z.ZodString;
577
- }, z.core.$strict>;
578
- collection: z.ZodEnum<{
579
- drafts: "drafts";
580
- sources: "sources";
581
- evidence: "evidence";
582
- correspondences: "correspondences";
583
- }>;
584
- limit: z.ZodDefault<z.ZodNumber>;
585
- cursor: z.ZodOptional<z.ZodString>;
586
370
  }, z.core.$strict>, z.ZodObject<{
587
371
  scope: z.ZodEnum<{
588
372
  plan: "plan";
@@ -761,55 +545,8 @@ export declare const PlanFinalizationSchema: z.ZodObject<{
761
545
  fileHash: z.ZodNullable<z.ZodString>;
762
546
  createdAt: z.ZodNumber;
763
547
  }, z.core.$strict>;
764
- export declare const PlanComparisonSchema: z.ZodObject<{
765
- sourceRevision: z.ZodObject<{
766
- planDigest: z.ZodString;
767
- breakdownDigest: z.ZodNullable<z.ZodString>;
768
- }, z.core.$strict>;
769
- targetDirectory: z.ZodString;
770
- targetRevision: z.ZodObject<{
771
- planDigest: z.ZodString;
772
- breakdownDigest: z.ZodNullable<z.ZodString>;
773
- }, z.core.$strict>;
774
- verdict: z.ZodEnum<{
775
- compatible: "compatible";
776
- contradiction: "contradiction";
777
- }>;
778
- reason: z.ZodString;
779
- reviewer: z.ZodObject<{
780
- provider: z.ZodString;
781
- cliVersion: z.ZodString;
782
- model: z.ZodNullable<z.ZodString>;
783
- reference: z.ZodString;
784
- }, z.core.$strict>;
785
- reviewedAt: z.ZodNumber;
786
- }, z.core.$strict>;
787
- export type IPlanComparison = z.infer<typeof PlanComparisonSchema>;
788
548
  export declare const PlanCoordinationSchema: z.ZodObject<{
789
549
  schemaVersion: z.ZodLiteral<1>;
790
- comparisons: z.ZodArray<z.ZodObject<{
791
- sourceRevision: z.ZodObject<{
792
- planDigest: z.ZodString;
793
- breakdownDigest: z.ZodNullable<z.ZodString>;
794
- }, z.core.$strict>;
795
- targetDirectory: z.ZodString;
796
- targetRevision: z.ZodObject<{
797
- planDigest: z.ZodString;
798
- breakdownDigest: z.ZodNullable<z.ZodString>;
799
- }, z.core.$strict>;
800
- verdict: z.ZodEnum<{
801
- compatible: "compatible";
802
- contradiction: "contradiction";
803
- }>;
804
- reason: z.ZodString;
805
- reviewer: z.ZodObject<{
806
- provider: z.ZodString;
807
- cliVersion: z.ZodString;
808
- model: z.ZodNullable<z.ZodString>;
809
- reference: z.ZodString;
810
- }, z.core.$strict>;
811
- reviewedAt: z.ZodNumber;
812
- }, z.core.$strict>>;
813
550
  finalized: z.ZodNullable<z.ZodObject<{
814
551
  action: z.ZodObject<{
815
552
  id: z.ZodUUID;
@@ -962,55 +699,7 @@ export declare const PlanCoordinationSchema: z.ZodObject<{
962
699
  reference: z.ZodString;
963
700
  }, z.core.$strict>>;
964
701
  completedAt: z.ZodNumber;
965
- reopenActionId: z.ZodNullable<z.ZodUUID>;
966
- }, z.core.$strict>>;
967
- correspondences: z.ZodArray<z.ZodObject<{
968
- id: z.ZodUUID;
969
- action: z.ZodObject<{
970
- id: z.ZodUUID;
971
- operatorId: z.ZodString;
972
- source: z.ZodObject<{
973
- kind: z.ZodEnum<{
974
- "user-action": "user-action";
975
- "user-message": "user-message";
976
- }>;
977
- reference: z.ZodString;
978
- }, z.core.$strict>;
979
- }, z.core.$strict>;
980
- revision: z.ZodObject<{
981
- planDigest: z.ZodString;
982
- breakdownDigest: z.ZodNullable<z.ZodString>;
983
- }, z.core.$strict>;
984
- sources: z.ZodArray<z.ZodObject<{
985
- ordinal: z.ZodNumber;
986
- title: z.ZodString;
987
- status: z.ZodEnum<{
988
- pending: "pending";
989
- "in progress": "in progress";
990
- done: "done";
991
- }>;
992
- id: z.ZodUUID;
993
- contractDigest: z.ZodString;
994
- contract: z.ZodString;
995
- sharedDigest: z.ZodString;
996
- }, z.core.$strip>>;
997
- targets: z.ZodArray<z.ZodObject<{
998
- id: z.ZodUUID;
999
- contractDigest: z.ZodString;
1000
- status: z.ZodEnum<{
1001
- pending: "pending";
1002
- "in progress": "in progress";
1003
- done: "done";
1004
- }>;
1005
- }, z.core.$strict>>;
1006
- relation: z.ZodEnum<{
1007
- equivalent: "equivalent";
1008
- "requirements-changed": "requirements-changed";
1009
- omitted: "omitted";
1010
- reopened: "reopened";
1011
- }>;
1012
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
1013
- recordedAt: z.ZodNumber;
702
+ reopenedBy: z.ZodNullable<z.ZodUUID>;
1014
703
  }, z.core.$strict>>;
1015
704
  revision: z.ZodNullable<z.ZodObject<{
1016
705
  id: z.ZodUUID;
@@ -1041,7 +730,6 @@ export declare const PlanCoordinationSchema: z.ZodObject<{
1041
730
  phase: z.ZodEnum<{
1042
731
  quiescing: "quiescing";
1043
732
  editing: "editing";
1044
- reconciling: "reconciling";
1045
733
  "awaiting-approval": "awaiting-approval";
1046
734
  blocked: "blocked";
1047
735
  finished: "finished";
@@ -1104,56 +792,6 @@ export declare const PlanCoordinationSchema: z.ZodObject<{
1104
792
  "jg-breakdown": "jg-breakdown";
1105
793
  }>;
1106
794
  }, z.core.$strict>>;
1107
- proposal: z.ZodNullable<z.ZodObject<{
1108
- id: z.ZodUUID;
1109
- revision: z.ZodObject<{
1110
- planDigest: z.ZodString;
1111
- breakdownDigest: z.ZodNullable<z.ZodString>;
1112
- }, z.core.$strict>;
1113
- inspectionHash: z.ZodNullable<z.ZodString>;
1114
- drafts: z.ZodArray<z.ZodObject<{
1115
- ordinal: z.ZodNumber;
1116
- title: z.ZodString;
1117
- status: z.ZodEnum<{
1118
- pending: "pending";
1119
- "in progress": "in progress";
1120
- done: "done";
1121
- }>;
1122
- id: z.ZodUUID;
1123
- contractDigest: z.ZodString;
1124
- contract: z.ZodString;
1125
- sharedDigest: z.ZodString;
1126
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
1127
- }, z.core.$strip>>;
1128
- unmatchedSourceIds: z.ZodArray<z.ZodUUID>;
1129
- confirmation: z.ZodNullable<z.ZodObject<{
1130
- action: z.ZodObject<{
1131
- id: z.ZodUUID;
1132
- operatorId: z.ZodString;
1133
- source: z.ZodObject<{
1134
- kind: z.ZodEnum<{
1135
- "user-action": "user-action";
1136
- "user-message": "user-message";
1137
- }>;
1138
- reference: z.ZodString;
1139
- }, z.core.$strict>;
1140
- }, z.core.$strict>;
1141
- decisions: z.ZodArray<z.ZodObject<{
1142
- sourceIds: z.ZodArray<z.ZodUUID>;
1143
- targetIds: z.ZodArray<z.ZodUUID>;
1144
- relation: z.ZodEnum<{
1145
- equivalent: "equivalent";
1146
- "requirements-changed": "requirements-changed";
1147
- omitted: "omitted";
1148
- reopened: "reopened";
1149
- }>;
1150
- retainedPairs: z.ZodArray<z.ZodObject<{
1151
- sourceId: z.ZodUUID;
1152
- targetId: z.ZodUUID;
1153
- }, z.core.$strict>>;
1154
- }, z.core.$strict>>;
1155
- }, z.core.$strict>>;
1156
- }, z.core.$strict>>;
1157
795
  createdAt: z.ZodNumber;
1158
796
  hasUncertainEffects: z.ZodBoolean;
1159
797
  }, z.core.$strict>>;
@@ -1347,8 +985,13 @@ export declare const PlanCoordinationSummarySchema: z.ZodObject<{
1347
985
  closeActionId: z.ZodUUID;
1348
986
  }, z.core.$strict>>;
1349
987
  }, z.core.$strict>>;
1350
- comparisonCount: z.ZodNumber;
1351
988
  completionCount: z.ZodNumber;
989
+ unmatchedEvidence: z.ZodArray<z.ZodObject<{
990
+ title: z.ZodString;
991
+ id: z.ZodUUID;
992
+ milestoneId: z.ZodNullable<z.ZodUUID>;
993
+ completedAt: z.ZodNumber;
994
+ }, z.core.$strict>>;
1352
995
  revision: z.ZodNullable<z.ZodObject<{
1353
996
  createdAt: z.ZodNumber;
1354
997
  reason: z.ZodNullable<z.ZodString>;
@@ -1374,7 +1017,6 @@ export declare const PlanCoordinationSummarySchema: z.ZodObject<{
1374
1017
  phase: z.ZodEnum<{
1375
1018
  quiescing: "quiescing";
1376
1019
  editing: "editing";
1377
- reconciling: "reconciling";
1378
1020
  "awaiting-approval": "awaiting-approval";
1379
1021
  blocked: "blocked";
1380
1022
  finished: "finished";
@@ -1398,9 +1040,6 @@ export declare const PlanCoordinationSummarySchema: z.ZodObject<{
1398
1040
  }, z.core.$strict>>;
1399
1041
  hasUncertainEffects: z.ZodBoolean;
1400
1042
  hasCheckpoint: z.ZodBoolean;
1401
- hasProposal: z.ZodBoolean;
1402
- proposalId: z.ZodNullable<z.ZodUUID>;
1403
- unmatchedCount: z.ZodNumber;
1404
1043
  }, z.core.$strict>>;
1405
1044
  }, z.core.$strict>;
1406
1045
  export declare const PlanStatusSchema: z.ZodObject<{
@@ -1570,8 +1209,13 @@ export declare const PlanStatusSchema: z.ZodObject<{
1570
1209
  closeActionId: z.ZodUUID;
1571
1210
  }, z.core.$strict>>;
1572
1211
  }, z.core.$strict>>;
1573
- comparisonCount: z.ZodNumber;
1574
1212
  completionCount: z.ZodNumber;
1213
+ unmatchedEvidence: z.ZodArray<z.ZodObject<{
1214
+ title: z.ZodString;
1215
+ id: z.ZodUUID;
1216
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1217
+ completedAt: z.ZodNumber;
1218
+ }, z.core.$strict>>;
1575
1219
  revision: z.ZodNullable<z.ZodObject<{
1576
1220
  createdAt: z.ZodNumber;
1577
1221
  reason: z.ZodNullable<z.ZodString>;
@@ -1597,7 +1241,6 @@ export declare const PlanStatusSchema: z.ZodObject<{
1597
1241
  phase: z.ZodEnum<{
1598
1242
  quiescing: "quiescing";
1599
1243
  editing: "editing";
1600
- reconciling: "reconciling";
1601
1244
  "awaiting-approval": "awaiting-approval";
1602
1245
  blocked: "blocked";
1603
1246
  finished: "finished";
@@ -1621,184 +1264,17 @@ export declare const PlanStatusSchema: z.ZodObject<{
1621
1264
  }, z.core.$strict>>;
1622
1265
  hasUncertainEffects: z.ZodBoolean;
1623
1266
  hasCheckpoint: z.ZodBoolean;
1624
- hasProposal: z.ZodBoolean;
1625
- proposalId: z.ZodNullable<z.ZodUUID>;
1626
- unmatchedCount: z.ZodNumber;
1627
1267
  }, z.core.$strict>>;
1628
1268
  }, z.core.$strict>;
1629
1269
  }, z.core.$strip>;
1630
1270
  export type IPlanStatus = z.infer<typeof PlanStatusSchema>;
1631
- export declare const PlanCorrespondenceSummarySchema: z.ZodObject<{
1632
- id: z.ZodUUID;
1633
- action: z.ZodObject<{
1634
- id: z.ZodUUID;
1635
- operatorId: z.ZodString;
1636
- source: z.ZodObject<{
1637
- kind: z.ZodEnum<{
1638
- "user-action": "user-action";
1639
- "user-message": "user-message";
1640
- }>;
1641
- reference: z.ZodString;
1642
- }, z.core.$strict>;
1643
- }, z.core.$strict>;
1644
- revision: z.ZodObject<{
1645
- planDigest: z.ZodString;
1646
- breakdownDigest: z.ZodNullable<z.ZodString>;
1647
- }, z.core.$strict>;
1648
- relation: z.ZodEnum<{
1649
- equivalent: "equivalent";
1650
- "requirements-changed": "requirements-changed";
1651
- omitted: "omitted";
1652
- reopened: "reopened";
1653
- }>;
1654
- targets: z.ZodArray<z.ZodObject<{
1655
- id: z.ZodUUID;
1656
- contractDigest: z.ZodString;
1657
- status: z.ZodEnum<{
1658
- pending: "pending";
1659
- "in progress": "in progress";
1660
- done: "done";
1661
- }>;
1662
- }, z.core.$strict>>;
1663
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
1664
- recordedAt: z.ZodNumber;
1665
- sources: z.ZodArray<z.ZodObject<{
1666
- id: z.ZodUUID;
1667
- status: z.ZodEnum<{
1668
- pending: "pending";
1669
- "in progress": "in progress";
1670
- done: "done";
1671
- }>;
1672
- contractDigest: z.ZodString;
1673
- }, z.core.$strip>>;
1674
- }, z.core.$strict>;
1675
- export declare const PlanReconciliationEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1676
- kind: z.ZodLiteral<"source">;
1677
- entry: z.ZodObject<{
1678
- ordinal: z.ZodNumber;
1679
- title: z.ZodString;
1680
- status: z.ZodEnum<{
1681
- pending: "pending";
1682
- "in progress": "in progress";
1683
- done: "done";
1684
- }>;
1685
- id: z.ZodUUID;
1686
- contractDigest: z.ZodString;
1687
- contract: z.ZodString;
1688
- sharedDigest: z.ZodString;
1689
- }, z.core.$strip>;
1690
- }, z.core.$strip>, z.ZodObject<{
1691
- kind: z.ZodLiteral<"draft">;
1692
- entry: z.ZodObject<{
1693
- ordinal: z.ZodNumber;
1694
- title: z.ZodString;
1695
- status: z.ZodEnum<{
1696
- pending: "pending";
1697
- "in progress": "in progress";
1698
- done: "done";
1699
- }>;
1700
- id: z.ZodUUID;
1701
- contractDigest: z.ZodString;
1702
- contract: z.ZodString;
1703
- sharedDigest: z.ZodString;
1704
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
1705
- }, z.core.$strip>;
1706
- }, z.core.$strip>, z.ZodObject<{
1707
- kind: z.ZodLiteral<"evidence">;
1708
- entry: z.ZodObject<{
1709
- id: z.ZodUUID;
1710
- action: z.ZodObject<{
1711
- id: z.ZodUUID;
1712
- operatorId: z.ZodString;
1713
- source: z.ZodObject<{
1714
- kind: z.ZodEnum<{
1715
- "user-action": "user-action";
1716
- "user-message": "user-message";
1717
- }>;
1718
- reference: z.ZodString;
1719
- }, z.core.$strict>;
1720
- }, z.core.$strict>;
1721
- milestoneId: z.ZodNullable<z.ZodUUID>;
1722
- revision: z.ZodObject<{
1723
- planDigest: z.ZodString;
1724
- breakdownDigest: z.ZodNullable<z.ZodString>;
1725
- }, z.core.$strict>;
1726
- contractDigest: z.ZodString;
1727
- title: z.ZodString;
1728
- contract: z.ZodString;
1729
- sharedDigest: z.ZodNullable<z.ZodString>;
1730
- checkouts: z.ZodArray<z.ZodObject<{
1731
- repository: z.ZodString;
1732
- directory: z.ZodString;
1733
- claimReference: z.ZodString;
1734
- paths: z.ZodArray<z.ZodString>;
1735
- branch: z.ZodNullable<z.ZodString>;
1736
- head: z.ZodString;
1737
- fingerprint: z.ZodString;
1738
- }, z.core.$strict>>;
1739
- checks: z.ZodArray<z.ZodObject<{
1740
- command: z.ZodString;
1741
- outcome: z.ZodLiteral<"passed">;
1742
- reference: z.ZodString;
1743
- }, z.core.$strict>>;
1744
- completedAt: z.ZodNumber;
1745
- reopenActionId: z.ZodNullable<z.ZodUUID>;
1746
- }, z.core.$strict>;
1747
- }, z.core.$strip>, z.ZodObject<{
1748
- kind: z.ZodLiteral<"correspondence">;
1749
- entry: z.ZodObject<{
1750
- id: z.ZodUUID;
1751
- action: z.ZodObject<{
1752
- id: z.ZodUUID;
1753
- operatorId: z.ZodString;
1754
- source: z.ZodObject<{
1755
- kind: z.ZodEnum<{
1756
- "user-action": "user-action";
1757
- "user-message": "user-message";
1758
- }>;
1759
- reference: z.ZodString;
1760
- }, z.core.$strict>;
1761
- }, z.core.$strict>;
1762
- revision: z.ZodObject<{
1763
- planDigest: z.ZodString;
1764
- breakdownDigest: z.ZodNullable<z.ZodString>;
1765
- }, z.core.$strict>;
1766
- relation: z.ZodEnum<{
1767
- equivalent: "equivalent";
1768
- "requirements-changed": "requirements-changed";
1769
- omitted: "omitted";
1770
- reopened: "reopened";
1771
- }>;
1772
- targets: z.ZodArray<z.ZodObject<{
1773
- id: z.ZodUUID;
1774
- contractDigest: z.ZodString;
1775
- status: z.ZodEnum<{
1776
- pending: "pending";
1777
- "in progress": "in progress";
1778
- done: "done";
1779
- }>;
1780
- }, z.core.$strict>>;
1781
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
1782
- recordedAt: z.ZodNumber;
1783
- sources: z.ZodArray<z.ZodObject<{
1784
- id: z.ZodUUID;
1785
- status: z.ZodEnum<{
1786
- pending: "pending";
1787
- "in progress": "in progress";
1788
- done: "done";
1789
- }>;
1790
- contractDigest: z.ZodString;
1791
- }, z.core.$strip>>;
1792
- }, z.core.$strict>;
1793
- }, z.core.$strip>], "kind">;
1794
- export type IPlanReconciliationEntry = z.infer<typeof PlanReconciliationEntrySchema>;
1795
- export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1796
- kind: z.ZodLiteral<"status">;
1797
- result: z.ZodObject<{
1798
- directory: z.ZodString;
1799
- revision: z.ZodObject<{
1800
- planDigest: z.ZodString;
1801
- breakdownDigest: z.ZodNullable<z.ZodString>;
1271
+ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1272
+ kind: z.ZodLiteral<"status">;
1273
+ result: z.ZodObject<{
1274
+ directory: z.ZodString;
1275
+ revision: z.ZodObject<{
1276
+ planDigest: z.ZodString;
1277
+ breakdownDigest: z.ZodNullable<z.ZodString>;
1802
1278
  }, z.core.$strict>;
1803
1279
  inspection: z.ZodObject<{
1804
1280
  plan: z.ZodString;
@@ -1961,234 +1437,13 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1961
1437
  closeActionId: z.ZodUUID;
1962
1438
  }, z.core.$strict>>;
1963
1439
  }, z.core.$strict>>;
1964
- comparisonCount: z.ZodNumber;
1965
1440
  completionCount: z.ZodNumber;
1966
- revision: z.ZodNullable<z.ZodObject<{
1967
- createdAt: z.ZodNumber;
1968
- reason: z.ZodNullable<z.ZodString>;
1969
- id: z.ZodUUID;
1970
- action: z.ZodObject<{
1971
- id: z.ZodUUID;
1972
- operatorId: z.ZodString;
1973
- source: z.ZodObject<{
1974
- kind: z.ZodEnum<{
1975
- "user-action": "user-action";
1976
- "user-message": "user-message";
1977
- }>;
1978
- reference: z.ZodString;
1979
- }, z.core.$strict>;
1980
- }, z.core.$strict>;
1981
- threadIds: z.ZodArray<z.ZodUUID>;
1982
- intent: z.ZodEnum<{
1983
- plan: "plan";
1984
- breakdown: "breakdown";
1985
- }>;
1986
- phaseActionId: z.ZodUUID;
1987
- ownerRuntimeEpoch: z.ZodUUID;
1988
- phase: z.ZodEnum<{
1989
- quiescing: "quiescing";
1990
- editing: "editing";
1991
- reconciling: "reconciling";
1992
- "awaiting-approval": "awaiting-approval";
1993
- blocked: "blocked";
1994
- finished: "finished";
1995
- }>;
1996
- invocation: z.ZodNullable<z.ZodObject<{
1997
- action: z.ZodObject<{
1998
- id: z.ZodUUID;
1999
- operatorId: z.ZodString;
2000
- source: z.ZodObject<{
2001
- kind: z.ZodEnum<{
2002
- "user-action": "user-action";
2003
- "user-message": "user-message";
2004
- }>;
2005
- reference: z.ZodString;
2006
- }, z.core.$strict>;
2007
- }, z.core.$strict>;
2008
- skill: z.ZodEnum<{
2009
- "jg-plan": "jg-plan";
2010
- "jg-breakdown": "jg-breakdown";
2011
- }>;
2012
- }, z.core.$strict>>;
2013
- hasUncertainEffects: z.ZodBoolean;
2014
- hasCheckpoint: z.ZodBoolean;
2015
- hasProposal: z.ZodBoolean;
2016
- proposalId: z.ZodNullable<z.ZodUUID>;
2017
- unmatchedCount: z.ZodNumber;
2018
- }, z.core.$strict>>;
2019
- }, z.core.$strict>;
2020
- }, z.core.$strip>;
2021
- }, z.core.$strip>, z.ZodObject<{
2022
- kind: z.ZodLiteral<"reconciliation-required">;
2023
- result: z.ZodObject<{
2024
- directory: z.ZodString;
2025
- revision: z.ZodObject<{
2026
- planDigest: z.ZodString;
2027
- breakdownDigest: z.ZodNullable<z.ZodString>;
2028
- }, z.core.$strict>;
2029
- inspection: z.ZodObject<{
2030
- plan: z.ZodString;
2031
- milestones: z.ZodNullable<z.ZodString>;
2032
- coordination: z.ZodNullable<z.ZodString>;
2033
- }, z.core.$strip>;
2034
- state: z.ZodEnum<{
2035
- ready: "ready";
2036
- completed: "completed";
2037
- blocked: "blocked";
2038
- "plan-approval-required": "plan-approval-required";
2039
- "breakdown-required": "breakdown-required";
2040
- "sequence-approval-required": "sequence-approval-required";
2041
- "in-progress": "in-progress";
2042
- revising: "revising";
2043
- }>;
2044
- pendingActionId: z.ZodNullable<z.ZodUUID>;
2045
- skillsBinding: z.ZodEnum<{
2046
- absent: "absent";
2047
- current: "current";
2048
- stale: "stale";
2049
- }>;
2050
- isFinalized: z.ZodBoolean;
2051
- isPlanApproved: z.ZodBoolean;
2052
- isSequenceApproved: z.ZodBoolean;
2053
- milestoneCount: z.ZodNumber;
2054
- coordination: z.ZodObject<{
2055
- execution: z.ZodNullable<z.ZodObject<{
2056
- runtimeEpoch: z.ZodUUID;
2057
- action: z.ZodObject<{
2058
- id: z.ZodUUID;
2059
- operatorId: z.ZodString;
2060
- source: z.ZodObject<{
2061
- kind: z.ZodEnum<{
2062
- "user-action": "user-action";
2063
- "user-message": "user-message";
2064
- }>;
2065
- reference: z.ZodString;
2066
- }, z.core.$strict>;
2067
- }, z.core.$strict>;
2068
- revision: z.ZodObject<{
2069
- planDigest: z.ZodString;
2070
- breakdownDigest: z.ZodNullable<z.ZodString>;
2071
- }, z.core.$strict>;
2072
- mode: z.ZodEnum<{
2073
- supervised: "supervised";
2074
- auto: "auto";
2075
- }>;
2076
- milestoneIds: z.ZodArray<z.ZodUUID>;
2077
- createdAt: z.ZodNumber;
2078
- revokedBy: z.ZodNullable<z.ZodObject<{
2079
- id: z.ZodUUID;
2080
- operatorId: z.ZodString;
2081
- source: z.ZodObject<{
2082
- kind: z.ZodEnum<{
2083
- "user-action": "user-action";
2084
- "user-message": "user-message";
2085
- }>;
2086
- reference: z.ZodString;
2087
- }, z.core.$strict>;
2088
- }, z.core.$strict>>;
2089
- }, z.core.$strict>>;
2090
- schemaVersion: z.ZodLiteral<1>;
2091
- finalized: z.ZodNullable<z.ZodObject<{
2092
- action: z.ZodObject<{
2093
- id: z.ZodUUID;
2094
- operatorId: z.ZodString;
2095
- source: z.ZodObject<{
2096
- kind: z.ZodEnum<{
2097
- "user-action": "user-action";
2098
- "user-message": "user-message";
2099
- }>;
2100
- reference: z.ZodString;
2101
- }, z.core.$strict>;
2102
- }, z.core.$strict>;
2103
- revision: z.ZodObject<{
2104
- planDigest: z.ZodString;
2105
- breakdownDigest: z.ZodNullable<z.ZodString>;
2106
- }, z.core.$strict>;
2107
- fileHash: z.ZodNullable<z.ZodString>;
2108
- createdAt: z.ZodNumber;
2109
- }, z.core.$strict>>;
2110
- planApproval: z.ZodNullable<z.ZodObject<{
2111
- action: z.ZodObject<{
2112
- id: z.ZodUUID;
2113
- operatorId: z.ZodString;
2114
- source: z.ZodObject<{
2115
- kind: z.ZodEnum<{
2116
- "user-action": "user-action";
2117
- "user-message": "user-message";
2118
- }>;
2119
- reference: z.ZodString;
2120
- }, z.core.$strict>;
2121
- }, z.core.$strict>;
2122
- revision: z.ZodObject<{
2123
- planDigest: z.ZodString;
2124
- breakdownDigest: z.ZodNullable<z.ZodString>;
2125
- }, z.core.$strict>;
2126
- presentationHash: z.ZodString;
2127
- createdAt: z.ZodNumber;
2128
- revokedBy: z.ZodNullable<z.ZodObject<{
2129
- id: z.ZodUUID;
2130
- operatorId: z.ZodString;
2131
- source: z.ZodObject<{
2132
- kind: z.ZodEnum<{
2133
- "user-action": "user-action";
2134
- "user-message": "user-message";
2135
- }>;
2136
- reference: z.ZodString;
2137
- }, z.core.$strict>;
2138
- }, z.core.$strict>>;
2139
- }, z.core.$strict>>;
2140
- sequenceApproval: z.ZodNullable<z.ZodObject<{
2141
- action: z.ZodObject<{
2142
- id: z.ZodUUID;
2143
- operatorId: z.ZodString;
2144
- source: z.ZodObject<{
2145
- kind: z.ZodEnum<{
2146
- "user-action": "user-action";
2147
- "user-message": "user-message";
2148
- }>;
2149
- reference: z.ZodString;
2150
- }, z.core.$strict>;
2151
- }, z.core.$strict>;
2152
- revision: z.ZodObject<{
2153
- planDigest: z.ZodString;
2154
- breakdownDigest: z.ZodNullable<z.ZodString>;
2155
- }, z.core.$strict>;
2156
- presentationHash: z.ZodString;
2157
- createdAt: z.ZodNumber;
2158
- revokedBy: z.ZodNullable<z.ZodObject<{
2159
- id: z.ZodUUID;
2160
- operatorId: z.ZodString;
2161
- source: z.ZodObject<{
2162
- kind: z.ZodEnum<{
2163
- "user-action": "user-action";
2164
- "user-message": "user-message";
2165
- }>;
2166
- reference: z.ZodString;
2167
- }, z.core.$strict>;
2168
- }, z.core.$strict>>;
2169
- }, z.core.$strict>>;
2170
- lastActionId: z.ZodNullable<z.ZodUUID>;
2171
- observedConflict: z.ZodNullable<z.ZodObject<{
1441
+ unmatchedEvidence: z.ZodArray<z.ZodObject<{
1442
+ title: z.ZodString;
2172
1443
  id: z.ZodUUID;
2173
- revision: z.ZodNullable<z.ZodObject<{
2174
- planDigest: z.ZodString;
2175
- breakdownDigest: z.ZodNullable<z.ZodString>;
2176
- }, z.core.$strict>>;
2177
- observedAt: z.ZodNumber;
2178
- ownerRuntimeEpoch: z.ZodUUID;
2179
- phase: z.ZodEnum<{
2180
- quiescing: "quiescing";
2181
- blocked: "blocked";
2182
- quiescent: "quiescent";
2183
- }>;
2184
- controls: z.ZodArray<z.ZodObject<{
2185
- threadId: z.ZodUUID;
2186
- interruptActionId: z.ZodUUID;
2187
- closeActionId: z.ZodUUID;
2188
- }, z.core.$strict>>;
1444
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1445
+ completedAt: z.ZodNumber;
2189
1446
  }, z.core.$strict>>;
2190
- comparisonCount: z.ZodNumber;
2191
- completionCount: z.ZodNumber;
2192
1447
  revision: z.ZodNullable<z.ZodObject<{
2193
1448
  createdAt: z.ZodNumber;
2194
1449
  reason: z.ZodNullable<z.ZodString>;
@@ -2214,7 +1469,6 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2214
1469
  phase: z.ZodEnum<{
2215
1470
  quiescing: "quiescing";
2216
1471
  editing: "editing";
2217
- reconciling: "reconciling";
2218
1472
  "awaiting-approval": "awaiting-approval";
2219
1473
  blocked: "blocked";
2220
1474
  finished: "finished";
@@ -2238,135 +1492,13 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2238
1492
  }, z.core.$strict>>;
2239
1493
  hasUncertainEffects: z.ZodBoolean;
2240
1494
  hasCheckpoint: z.ZodBoolean;
2241
- hasProposal: z.ZodBoolean;
2242
- proposalId: z.ZodNullable<z.ZodUUID>;
2243
- unmatchedCount: z.ZodNumber;
2244
1495
  }, z.core.$strict>>;
2245
1496
  }, z.core.$strict>;
2246
1497
  }, z.core.$strip>;
2247
1498
  }, z.core.$strip>, z.ZodObject<{
2248
- kind: z.ZodLiteral<"reconciliation">;
1499
+ kind: z.ZodLiteral<"registered">;
2249
1500
  result: z.ZodObject<{
2250
- data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2251
- kind: z.ZodLiteral<"source">;
2252
- entry: z.ZodObject<{
2253
- ordinal: z.ZodNumber;
2254
- title: z.ZodString;
2255
- status: z.ZodEnum<{
2256
- pending: "pending";
2257
- "in progress": "in progress";
2258
- done: "done";
2259
- }>;
2260
- id: z.ZodUUID;
2261
- contractDigest: z.ZodString;
2262
- contract: z.ZodString;
2263
- sharedDigest: z.ZodString;
2264
- }, z.core.$strip>;
2265
- }, z.core.$strip>, z.ZodObject<{
2266
- kind: z.ZodLiteral<"draft">;
2267
- entry: z.ZodObject<{
2268
- ordinal: z.ZodNumber;
2269
- title: z.ZodString;
2270
- status: z.ZodEnum<{
2271
- pending: "pending";
2272
- "in progress": "in progress";
2273
- done: "done";
2274
- }>;
2275
- id: z.ZodUUID;
2276
- contractDigest: z.ZodString;
2277
- contract: z.ZodString;
2278
- sharedDigest: z.ZodString;
2279
- matchedSourceId: z.ZodNullable<z.ZodUUID>;
2280
- }, z.core.$strip>;
2281
- }, z.core.$strip>, z.ZodObject<{
2282
- kind: z.ZodLiteral<"evidence">;
2283
- entry: z.ZodObject<{
2284
- id: z.ZodUUID;
2285
- action: z.ZodObject<{
2286
- id: z.ZodUUID;
2287
- operatorId: z.ZodString;
2288
- source: z.ZodObject<{
2289
- kind: z.ZodEnum<{
2290
- "user-action": "user-action";
2291
- "user-message": "user-message";
2292
- }>;
2293
- reference: z.ZodString;
2294
- }, z.core.$strict>;
2295
- }, z.core.$strict>;
2296
- milestoneId: z.ZodNullable<z.ZodUUID>;
2297
- revision: z.ZodObject<{
2298
- planDigest: z.ZodString;
2299
- breakdownDigest: z.ZodNullable<z.ZodString>;
2300
- }, z.core.$strict>;
2301
- contractDigest: z.ZodString;
2302
- title: z.ZodString;
2303
- contract: z.ZodString;
2304
- sharedDigest: z.ZodNullable<z.ZodString>;
2305
- checkouts: z.ZodArray<z.ZodObject<{
2306
- repository: z.ZodString;
2307
- directory: z.ZodString;
2308
- claimReference: z.ZodString;
2309
- paths: z.ZodArray<z.ZodString>;
2310
- branch: z.ZodNullable<z.ZodString>;
2311
- head: z.ZodString;
2312
- fingerprint: z.ZodString;
2313
- }, z.core.$strict>>;
2314
- checks: z.ZodArray<z.ZodObject<{
2315
- command: z.ZodString;
2316
- outcome: z.ZodLiteral<"passed">;
2317
- reference: z.ZodString;
2318
- }, z.core.$strict>>;
2319
- completedAt: z.ZodNumber;
2320
- reopenActionId: z.ZodNullable<z.ZodUUID>;
2321
- }, z.core.$strict>;
2322
- }, z.core.$strip>, z.ZodObject<{
2323
- kind: z.ZodLiteral<"correspondence">;
2324
- entry: z.ZodObject<{
2325
- id: z.ZodUUID;
2326
- action: z.ZodObject<{
2327
- id: z.ZodUUID;
2328
- operatorId: z.ZodString;
2329
- source: z.ZodObject<{
2330
- kind: z.ZodEnum<{
2331
- "user-action": "user-action";
2332
- "user-message": "user-message";
2333
- }>;
2334
- reference: z.ZodString;
2335
- }, z.core.$strict>;
2336
- }, z.core.$strict>;
2337
- revision: z.ZodObject<{
2338
- planDigest: z.ZodString;
2339
- breakdownDigest: z.ZodNullable<z.ZodString>;
2340
- }, z.core.$strict>;
2341
- relation: z.ZodEnum<{
2342
- equivalent: "equivalent";
2343
- "requirements-changed": "requirements-changed";
2344
- omitted: "omitted";
2345
- reopened: "reopened";
2346
- }>;
2347
- targets: z.ZodArray<z.ZodObject<{
2348
- id: z.ZodUUID;
2349
- contractDigest: z.ZodString;
2350
- status: z.ZodEnum<{
2351
- pending: "pending";
2352
- "in progress": "in progress";
2353
- done: "done";
2354
- }>;
2355
- }, z.core.$strict>>;
2356
- invalidatedReceiptIds: z.ZodArray<z.ZodUUID>;
2357
- recordedAt: z.ZodNumber;
2358
- sources: z.ZodArray<z.ZodObject<{
2359
- id: z.ZodUUID;
2360
- status: z.ZodEnum<{
2361
- pending: "pending";
2362
- "in progress": "in progress";
2363
- done: "done";
2364
- }>;
2365
- contractDigest: z.ZodString;
2366
- }, z.core.$strip>>;
2367
- }, z.core.$strict>;
2368
- }, z.core.$strip>], "kind">>;
2369
- nextCursor: z.ZodNullable<z.ZodString>;
1501
+ directory: z.ZodString;
2370
1502
  }, z.core.$strip>;
2371
1503
  }, z.core.$strip>, z.ZodObject<{
2372
1504
  kind: z.ZodLiteral<"finalized">;
@@ -2537,8 +1669,13 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2537
1669
  closeActionId: z.ZodUUID;
2538
1670
  }, z.core.$strict>>;
2539
1671
  }, z.core.$strict>>;
2540
- comparisonCount: z.ZodNumber;
2541
1672
  completionCount: z.ZodNumber;
1673
+ unmatchedEvidence: z.ZodArray<z.ZodObject<{
1674
+ title: z.ZodString;
1675
+ id: z.ZodUUID;
1676
+ milestoneId: z.ZodNullable<z.ZodUUID>;
1677
+ completedAt: z.ZodNumber;
1678
+ }, z.core.$strict>>;
2542
1679
  revision: z.ZodNullable<z.ZodObject<{
2543
1680
  createdAt: z.ZodNumber;
2544
1681
  reason: z.ZodNullable<z.ZodString>;
@@ -2564,7 +1701,6 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2564
1701
  phase: z.ZodEnum<{
2565
1702
  quiescing: "quiescing";
2566
1703
  editing: "editing";
2567
- reconciling: "reconciling";
2568
1704
  "awaiting-approval": "awaiting-approval";
2569
1705
  blocked: "blocked";
2570
1706
  finished: "finished";
@@ -2588,9 +1724,6 @@ export declare const PlanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2588
1724
  }, z.core.$strict>>;
2589
1725
  hasUncertainEffects: z.ZodBoolean;
2590
1726
  hasCheckpoint: z.ZodBoolean;
2591
- hasProposal: z.ZodBoolean;
2592
- proposalId: z.ZodNullable<z.ZodUUID>;
2593
- unmatchedCount: z.ZodNumber;
2594
1727
  }, z.core.$strict>>;
2595
1728
  }, z.core.$strict>;
2596
1729
  }, z.core.$strip>;