devcontour-harness 0.1.0-alpha.34 → 0.1.0-alpha.37

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 (125) hide show
  1. package/README.md +22 -2
  2. package/docs/contracts.md +309 -35
  3. package/docs/release-notes/0.1.0-alpha.35.md +27 -0
  4. package/docs/release-notes/0.1.0-alpha.36.md +26 -0
  5. package/docs/release-notes/0.1.0-alpha.37.md +40 -0
  6. package/docs/standalone.md +20 -0
  7. package/docs/toolchains.md +57 -2
  8. package/docs/upgrade.md +143 -0
  9. package/lib/agents/cli-adapter.d.ts +10 -1
  10. package/lib/agents/cli-adapter.js +38 -7
  11. package/lib/agents/schemas.d.ts +84 -2
  12. package/lib/agents/schemas.js +49 -1
  13. package/lib/agents/usage.d.ts +9 -0
  14. package/lib/agents/usage.js +22 -1
  15. package/lib/cli.js +149 -1
  16. package/lib/contracts/cli.d.ts +1544 -171
  17. package/lib/contracts/cli.js +233 -2
  18. package/lib/contracts/diagnosis.d.ts +10 -4
  19. package/lib/contracts/diagnosis.js +4 -0
  20. package/lib/contracts/errors.d.ts +9 -1
  21. package/lib/contracts/errors.js +8 -0
  22. package/lib/contracts/events.d.ts +468 -60
  23. package/lib/contracts/events.js +79 -0
  24. package/lib/contracts/execution.d.ts +301 -50
  25. package/lib/contracts/execution.js +60 -0
  26. package/lib/contracts/failure.d.ts +20 -3
  27. package/lib/contracts/failure.js +14 -2
  28. package/lib/contracts/handoff.d.ts +79 -20
  29. package/lib/contracts/handoff.js +42 -1
  30. package/lib/contracts/index.d.ts +1 -0
  31. package/lib/contracts/index.js +1 -0
  32. package/lib/contracts/input-state.d.ts +13 -0
  33. package/lib/contracts/input-state.js +32 -0
  34. package/lib/contracts/input.d.ts +442 -0
  35. package/lib/contracts/input.js +321 -0
  36. package/lib/contracts/planning.d.ts +4 -0
  37. package/lib/contracts/policy.d.ts +17 -2
  38. package/lib/contracts/policy.js +31 -2
  39. package/lib/contracts/ports.d.ts +64 -2
  40. package/lib/contracts/project.d.ts +127 -0
  41. package/lib/contracts/project.js +99 -0
  42. package/lib/contracts/published.d.ts +631 -92
  43. package/lib/contracts/published.js +4 -1
  44. package/lib/contracts/repair-policy.d.ts +30 -1
  45. package/lib/contracts/repair-policy.js +52 -0
  46. package/lib/contracts/report.d.ts +55 -21
  47. package/lib/contracts/report.js +33 -2
  48. package/lib/contracts/result.d.ts +28 -24
  49. package/lib/contracts/review.d.ts +47 -8
  50. package/lib/contracts/review.js +21 -1
  51. package/lib/control/harness.d.ts +2555 -51
  52. package/lib/control/harness.js +112 -6
  53. package/lib/control/recovery.d.ts +2 -2
  54. package/lib/control/report.js +1 -0
  55. package/lib/control/status.d.ts +30 -22
  56. package/lib/control/status.js +11 -1
  57. package/lib/control/workflow.d.ts +8 -8
  58. package/lib/engine/budget.d.ts +86 -3
  59. package/lib/engine/budget.js +45 -10
  60. package/lib/engine/classify.js +1 -1
  61. package/lib/engine/engine.d.ts +3091 -83
  62. package/lib/engine/engine.js +1209 -101
  63. package/lib/engine/failure.d.ts +1 -1
  64. package/lib/engine/failure.js +1 -1
  65. package/lib/engine/input-policy.d.ts +68 -0
  66. package/lib/engine/input-policy.js +285 -0
  67. package/lib/engine/input-requests.d.ts +64 -0
  68. package/lib/engine/input-requests.js +187 -0
  69. package/lib/engine/measured.d.ts +6 -1
  70. package/lib/engine/measured.js +12 -1
  71. package/lib/engine/prompt.d.ts +4 -2
  72. package/lib/engine/prompt.js +13 -1
  73. package/lib/engine/property-recovery.js +4 -0
  74. package/lib/engine/repair.d.ts +2 -0
  75. package/lib/engine/repair.js +13 -4
  76. package/lib/engine/reuse.js +2 -0
  77. package/lib/engine/runner.d.ts +33 -4
  78. package/lib/engine/runner.js +275 -23
  79. package/lib/environment/lifecycle.d.ts +8 -0
  80. package/lib/environment/lifecycle.js +15 -2
  81. package/lib/explain/state.d.ts +16 -2
  82. package/lib/explain/state.js +262 -79
  83. package/lib/handoff/markdown.js +10 -0
  84. package/lib/handoff/pack.js +42 -1
  85. package/lib/index.d.ts +11 -1
  86. package/lib/index.js +11 -1
  87. package/lib/init/inspect.d.ts +34 -0
  88. package/lib/init/inspect.js +292 -0
  89. package/lib/init/project.js +14 -31
  90. package/lib/integrations/connector/commands.d.ts +12 -12
  91. package/lib/integrations/connector/config.d.ts +4 -4
  92. package/lib/integrations/connector/delivery.d.ts +1 -1
  93. package/lib/integrations/relay-v2/protocol.d.ts +4 -4
  94. package/lib/profiles/resolve.d.ts +2 -1
  95. package/lib/projections/enums.d.ts +1 -1
  96. package/lib/projections/enums.js +4 -0
  97. package/lib/projections/index.d.ts +1 -0
  98. package/lib/projections/index.js +1 -0
  99. package/lib/projections/input.d.ts +17 -0
  100. package/lib/projections/input.js +28 -0
  101. package/lib/projections/stop.d.ts +42 -1
  102. package/lib/projections/stop.js +117 -6
  103. package/lib/report/compute.d.ts +4 -1
  104. package/lib/report/compute.js +26 -0
  105. package/lib/report/document.js +2 -1
  106. package/lib/storage/document.d.ts +68 -28
  107. package/lib/testing/index.d.ts +1 -1
  108. package/lib/testing/index.js +1 -1
  109. package/lib/testing/store-contract.d.ts +8 -1
  110. package/lib/testing/store-contract.js +194 -1
  111. package/lib/verification/confirm.d.ts +3 -3
  112. package/lib/verification/corpus.d.ts +9 -9
  113. package/lib/verification/gates.d.ts +119 -0
  114. package/lib/verification/gates.js +311 -4
  115. package/package.json +1 -1
  116. package/schemas/execution-document.schema.json +141 -0
  117. package/schemas/execution-policy.schema.json +26 -0
  118. package/schemas/handoff-pack.schema.json +155 -4
  119. package/schemas/input-request.schema.json +665 -0
  120. package/schemas/project-facts.schema.json +393 -0
  121. package/schemas/result-envelope.schema.json +2 -0
  122. package/schemas/run-event.schema.json +628 -0
  123. package/schemas/run-result.schema.json +2 -0
  124. package/schemas/stop-diagnosis.schema.json +7 -1
  125. package/schemas/value-report.schema.json +79 -7
@@ -13,10 +13,10 @@ import { z } from 'zod';
13
13
  */
14
14
  export declare const workStatuses: readonly ["draft", "ready", "running", "verifying", "reviewing", "integrating", "done", "failed", "cancelled"];
15
15
  export declare const workStatusSchema: z.ZodEnum<{
16
- ready: "ready";
17
- failed: "failed";
18
16
  cancelled: "cancelled";
19
17
  draft: "draft";
18
+ ready: "ready";
19
+ failed: "failed";
20
20
  running: "running";
21
21
  verifying: "verifying";
22
22
  reviewing: "reviewing";
@@ -24,7 +24,7 @@ export declare const workStatusSchema: z.ZodEnum<{
24
24
  done: "done";
25
25
  }>;
26
26
  export type WorkStatus = (typeof workStatuses)[number];
27
- export declare const failureKinds: readonly ["provider-auth", "environment", "timeout", "stalled", "stale-base", "empty-result", "unfinished", "scope-violation", "gate", "review", "review-protocol", "merge", "cancelled", "budget", "needs-lead", "unknown"];
27
+ export declare const failureKinds: readonly ["provider-auth", "environment", "timeout", "stalled", "context-exhausted", "stale-base", "empty-result", "unfinished", "scope-violation", "gate", "review", "review-protocol", "merge", "cancelled", "budget", "needs-lead", "needs-input", "unknown"];
28
28
  export declare const failureKindSchema: z.ZodEnum<{
29
29
  gate: "gate";
30
30
  unknown: "unknown";
@@ -34,6 +34,7 @@ export declare const failureKindSchema: z.ZodEnum<{
34
34
  timeout: "timeout";
35
35
  "provider-auth": "provider-auth";
36
36
  stalled: "stalled";
37
+ "context-exhausted": "context-exhausted";
37
38
  "stale-base": "stale-base";
38
39
  "empty-result": "empty-result";
39
40
  unfinished: "unfinished";
@@ -42,8 +43,22 @@ export declare const failureKindSchema: z.ZodEnum<{
42
43
  merge: "merge";
43
44
  budget: "budget";
44
45
  "needs-lead": "needs-lead";
46
+ "needs-input": "needs-input";
45
47
  }>;
46
48
  export type FailureKind = (typeof failureKinds)[number];
49
+ /**
50
+ * Какой предел окна контекста сообщил runtime у отказа `context-exhausted`:
51
+ * `prompt-too-long` — запрос отклонён (claude `terminal_reason:
52
+ * prompt_too_long`, уже одна реплика больше окна; повтор только удлинит
53
+ * подсказку), `blocking-limit` — ход остановлен у предела окна (claude
54
+ * `blocking_limit`).
55
+ */
56
+ export declare const contextLimits: readonly ["prompt-too-long", "blocking-limit"];
57
+ export declare const contextLimitSchema: z.ZodEnum<{
58
+ "prompt-too-long": "prompt-too-long";
59
+ "blocking-limit": "blocking-limit";
60
+ }>;
61
+ export type ContextLimit = (typeof contextLimits)[number];
47
62
  /**
48
63
  * Живость исполняющейся попытки по периодическому обходу controller
49
64
  * (`stallSweep` политики): `active` — движение было недавно, `quiet` — нет
@@ -62,8 +77,8 @@ export type LivenessState = (typeof livenessStates)[number];
62
77
  export declare const activitySchema: z.ZodObject<{
63
78
  kind: z.ZodEnum<{
64
79
  gate: "gate";
65
- command: "command";
66
80
  agent: "agent";
81
+ command: "command";
67
82
  step: "step";
68
83
  }>;
69
84
  label: z.ZodString;
@@ -86,8 +101,8 @@ export declare const attemptLivenessSchema: z.ZodObject<{
86
101
  activity: z.ZodOptional<z.ZodObject<{
87
102
  kind: z.ZodEnum<{
88
103
  gate: "gate";
89
- command: "command";
90
104
  agent: "agent";
105
+ command: "command";
91
106
  step: "step";
92
107
  }>;
93
108
  label: z.ZodString;
@@ -102,8 +117,8 @@ export type AttemptLiveness = z.infer<typeof attemptLivenessSchema>;
102
117
  /** Техническое согласование, привязанное к digest проверенного предложения. */
103
118
  export declare const technicalApprovalSchema: z.ZodObject<{
104
119
  actor: z.ZodEnum<{
105
- agent: "agent";
106
120
  operator: "operator";
121
+ agent: "agent";
107
122
  }>;
108
123
  authorRuntime: z.ZodOptional<z.ZodEnum<{
109
124
  codex: "codex";
@@ -260,9 +275,9 @@ export declare const reviewInspectionSchema: z.ZodObject<{
260
275
  }, z.core.$strict>], "type">>>;
261
276
  status: z.ZodOptional<z.ZodEnum<{
262
277
  error: "error";
278
+ cancelled: "cancelled";
263
279
  passed: "passed";
264
280
  failed: "failed";
265
- cancelled: "cancelled";
266
281
  completed: "completed";
267
282
  timeout: "timeout";
268
283
  }>>;
@@ -306,8 +321,8 @@ export declare const evidenceFindingSchema: z.ZodObject<{
306
321
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
307
322
  id: z.ZodOptional<z.ZodString>;
308
323
  status: z.ZodOptional<z.ZodEnum<{
309
- open: "open";
310
324
  closed: "closed";
325
+ open: "open";
311
326
  withdrawn: "withdrawn";
312
327
  }>>;
313
328
  }, z.core.$strict>;
@@ -315,8 +330,8 @@ export declare const evidenceRecordSchema: z.ZodObject<{
315
330
  id: z.ZodString;
316
331
  runId: z.ZodString;
317
332
  kind: z.ZodEnum<{
318
- test: "test";
319
333
  review: "review";
334
+ test: "test";
320
335
  }>;
321
336
  phase: z.ZodEnum<{
322
337
  candidate: "candidate";
@@ -364,9 +379,9 @@ export declare const evidenceRecordSchema: z.ZodObject<{
364
379
  }, z.core.$strict>], "type">>>;
365
380
  status: z.ZodOptional<z.ZodEnum<{
366
381
  error: "error";
382
+ cancelled: "cancelled";
367
383
  passed: "passed";
368
384
  failed: "failed";
369
- cancelled: "cancelled";
370
385
  completed: "completed";
371
386
  timeout: "timeout";
372
387
  }>>;
@@ -410,8 +425,8 @@ export declare const evidenceRecordSchema: z.ZodObject<{
410
425
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
411
426
  id: z.ZodOptional<z.ZodString>;
412
427
  status: z.ZodOptional<z.ZodEnum<{
413
- open: "open";
414
428
  closed: "closed";
429
+ open: "open";
415
430
  withdrawn: "withdrawn";
416
431
  }>>;
417
432
  }, z.core.$strict>>>;
@@ -442,13 +457,13 @@ export declare const evidenceRecordSchema: z.ZodObject<{
442
457
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
443
458
  id: z.ZodString;
444
459
  from: z.ZodEnum<{
445
- open: "open";
446
460
  closed: "closed";
461
+ open: "open";
447
462
  withdrawn: "withdrawn";
448
463
  }>;
449
464
  to: z.ZodEnum<{
450
- open: "open";
451
465
  closed: "closed";
466
+ open: "open";
452
467
  withdrawn: "withdrawn";
453
468
  }>;
454
469
  basis: z.ZodString;
@@ -658,6 +673,7 @@ export declare const continuationSchema: z.ZodObject<{
658
673
  timeout: "timeout";
659
674
  "provider-auth": "provider-auth";
660
675
  stalled: "stalled";
676
+ "context-exhausted": "context-exhausted";
661
677
  "stale-base": "stale-base";
662
678
  "empty-result": "empty-result";
663
679
  unfinished: "unfinished";
@@ -666,6 +682,7 @@ export declare const continuationSchema: z.ZodObject<{
666
682
  merge: "merge";
667
683
  budget: "budget";
668
684
  "needs-lead": "needs-lead";
685
+ "needs-input": "needs-input";
669
686
  }>>;
670
687
  respecified: z.ZodOptional<z.ZodBoolean>;
671
688
  applied: z.ZodBoolean;
@@ -709,17 +726,17 @@ export declare const attemptStateSchema: z.ZodObject<{
709
726
  reviewerEffort: z.ZodOptional<z.ZodString>;
710
727
  policyDigest: z.ZodString;
711
728
  status: z.ZodEnum<{
712
- failed: "failed";
713
729
  cancelled: "cancelled";
730
+ failed: "failed";
714
731
  active: "active";
715
732
  expired: "expired";
716
733
  succeeded: "succeeded";
717
734
  }>;
718
735
  phase: z.ZodEnum<{
719
- ready: "ready";
720
- failed: "failed";
721
736
  cancelled: "cancelled";
722
737
  draft: "draft";
738
+ ready: "ready";
739
+ failed: "failed";
723
740
  running: "running";
724
741
  verifying: "verifying";
725
742
  reviewing: "reviewing";
@@ -744,6 +761,7 @@ export declare const attemptStateSchema: z.ZodObject<{
744
761
  timeout: "timeout";
745
762
  "provider-auth": "provider-auth";
746
763
  stalled: "stalled";
764
+ "context-exhausted": "context-exhausted";
747
765
  "stale-base": "stale-base";
748
766
  "empty-result": "empty-result";
749
767
  unfinished: "unfinished";
@@ -752,6 +770,11 @@ export declare const attemptStateSchema: z.ZodObject<{
752
770
  merge: "merge";
753
771
  budget: "budget";
754
772
  "needs-lead": "needs-lead";
773
+ "needs-input": "needs-input";
774
+ }>>;
775
+ contextLimit: z.ZodOptional<z.ZodEnum<{
776
+ "prompt-too-long": "prompt-too-long";
777
+ "blocking-limit": "blocking-limit";
755
778
  }>>;
756
779
  failureFingerprint: z.ZodOptional<z.ZodString>;
757
780
  requiredGates: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -857,6 +880,7 @@ export declare const attemptStateSchema: z.ZodObject<{
857
880
  timeout: "timeout";
858
881
  "provider-auth": "provider-auth";
859
882
  stalled: "stalled";
883
+ "context-exhausted": "context-exhausted";
860
884
  "stale-base": "stale-base";
861
885
  "empty-result": "empty-result";
862
886
  unfinished: "unfinished";
@@ -865,11 +889,39 @@ export declare const attemptStateSchema: z.ZodObject<{
865
889
  merge: "merge";
866
890
  budget: "budget";
867
891
  "needs-lead": "needs-lead";
892
+ "needs-input": "needs-input";
868
893
  }>>;
869
894
  respecified: z.ZodOptional<z.ZodBoolean>;
870
895
  applied: z.ZodBoolean;
871
896
  files: z.ZodArray<z.ZodString>;
872
897
  }, z.core.$strict>>;
898
+ inputPolicy: z.ZodOptional<z.ZodObject<{
899
+ threshold: z.ZodDefault<z.ZodNumber>;
900
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
901
+ }, z.core.$strict>>;
902
+ assumptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
+ question: z.ZodString;
904
+ chosen: z.ZodString;
905
+ rationale: z.ZodString;
906
+ severity: z.ZodNumber;
907
+ affects: z.ZodArray<z.ZodEnum<{
908
+ acceptance: "acceptance";
909
+ contract: "contract";
910
+ product: "product";
911
+ api: "api";
912
+ migration: "migration";
913
+ }>>;
914
+ effectiveSeverity: z.ZodNumber;
915
+ floors: z.ZodArray<z.ZodEnum<{
916
+ declared: "declared";
917
+ "critical-path": "critical-path";
918
+ }>>;
919
+ }, z.core.$strict>>>;
920
+ input: z.ZodOptional<z.ZodObject<{
921
+ requestId: z.ZodString;
922
+ answerDigest: z.ZodString;
923
+ targetDigest: z.ZodString;
924
+ }, z.core.$strict>>;
873
925
  callsRecorded: z.ZodOptional<z.ZodLiteral<true>>;
874
926
  dispatch: z.ZodOptional<z.ZodObject<{
875
927
  policy: z.ZodLiteral<"fifo-ready-v1">;
@@ -898,8 +950,8 @@ export declare const attemptStateSchema: z.ZodObject<{
898
950
  activity: z.ZodOptional<z.ZodObject<{
899
951
  kind: z.ZodEnum<{
900
952
  gate: "gate";
901
- command: "command";
902
953
  agent: "agent";
954
+ command: "command";
903
955
  step: "step";
904
956
  }>;
905
957
  label: z.ZodString;
@@ -930,6 +982,7 @@ export declare const attemptStateSchema: z.ZodObject<{
930
982
  ref: z.ZodString;
931
983
  revision: z.ZodString;
932
984
  }, z.core.$strict>;
985
+ contextDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
986
  }, z.core.$strict>>;
934
987
  engineVersion: z.ZodOptional<z.ZodString>;
935
988
  consumerVersion: z.ZodOptional<z.ZodString>;
@@ -937,8 +990,8 @@ export declare const attemptStateSchema: z.ZodObject<{
937
990
  id: z.ZodString;
938
991
  runId: z.ZodString;
939
992
  kind: z.ZodEnum<{
940
- test: "test";
941
993
  review: "review";
994
+ test: "test";
942
995
  }>;
943
996
  phase: z.ZodEnum<{
944
997
  candidate: "candidate";
@@ -986,9 +1039,9 @@ export declare const attemptStateSchema: z.ZodObject<{
986
1039
  }, z.core.$strict>], "type">>>;
987
1040
  status: z.ZodOptional<z.ZodEnum<{
988
1041
  error: "error";
1042
+ cancelled: "cancelled";
989
1043
  passed: "passed";
990
1044
  failed: "failed";
991
- cancelled: "cancelled";
992
1045
  completed: "completed";
993
1046
  timeout: "timeout";
994
1047
  }>>;
@@ -1032,8 +1085,8 @@ export declare const attemptStateSchema: z.ZodObject<{
1032
1085
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1033
1086
  id: z.ZodOptional<z.ZodString>;
1034
1087
  status: z.ZodOptional<z.ZodEnum<{
1035
- open: "open";
1036
1088
  closed: "closed";
1089
+ open: "open";
1037
1090
  withdrawn: "withdrawn";
1038
1091
  }>>;
1039
1092
  }, z.core.$strict>>>;
@@ -1064,13 +1117,13 @@ export declare const attemptStateSchema: z.ZodObject<{
1064
1117
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1065
1118
  id: z.ZodString;
1066
1119
  from: z.ZodEnum<{
1067
- open: "open";
1068
1120
  closed: "closed";
1121
+ open: "open";
1069
1122
  withdrawn: "withdrawn";
1070
1123
  }>;
1071
1124
  to: z.ZodEnum<{
1072
- open: "open";
1073
1125
  closed: "closed";
1126
+ open: "open";
1074
1127
  withdrawn: "withdrawn";
1075
1128
  }>;
1076
1129
  basis: z.ZodString;
@@ -1324,10 +1377,10 @@ export declare const workStateSchema: z.ZodObject<{
1324
1377
  context: z.ZodDefault<z.ZodArray<z.ZodString>>;
1325
1378
  }, z.core.$strict>;
1326
1379
  status: z.ZodEnum<{
1327
- ready: "ready";
1328
- failed: "failed";
1329
1380
  cancelled: "cancelled";
1330
1381
  draft: "draft";
1382
+ ready: "ready";
1383
+ failed: "failed";
1331
1384
  running: "running";
1332
1385
  verifying: "verifying";
1333
1386
  reviewing: "reviewing";
@@ -1347,6 +1400,7 @@ export declare const workStateSchema: z.ZodObject<{
1347
1400
  timeout: "timeout";
1348
1401
  "provider-auth": "provider-auth";
1349
1402
  stalled: "stalled";
1403
+ "context-exhausted": "context-exhausted";
1350
1404
  "stale-base": "stale-base";
1351
1405
  "empty-result": "empty-result";
1352
1406
  unfinished: "unfinished";
@@ -1355,6 +1409,7 @@ export declare const workStateSchema: z.ZodObject<{
1355
1409
  merge: "merge";
1356
1410
  budget: "budget";
1357
1411
  "needs-lead": "needs-lead";
1412
+ "needs-input": "needs-input";
1358
1413
  }>>;
1359
1414
  failureFingerprint: z.ZodOptional<z.ZodString>;
1360
1415
  approvedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -1362,8 +1417,8 @@ export declare const workStateSchema: z.ZodObject<{
1362
1417
  approvedScope: z.ZodOptional<z.ZodString>;
1363
1418
  approval: z.ZodOptional<z.ZodObject<{
1364
1419
  actor: z.ZodEnum<{
1365
- agent: "agent";
1366
1420
  operator: "operator";
1421
+ agent: "agent";
1367
1422
  }>;
1368
1423
  authorRuntime: z.ZodOptional<z.ZodEnum<{
1369
1424
  codex: "codex";
@@ -1573,8 +1628,8 @@ export declare const graphStateSchema: z.ZodObject<{
1573
1628
  policyDigest: z.ZodString;
1574
1629
  approval: z.ZodOptional<z.ZodObject<{
1575
1630
  actor: z.ZodEnum<{
1576
- agent: "agent";
1577
1631
  operator: "operator";
1632
+ agent: "agent";
1578
1633
  }>;
1579
1634
  authorRuntime: z.ZodOptional<z.ZodEnum<{
1580
1635
  codex: "codex";
@@ -1607,8 +1662,8 @@ export type PauseReason = (typeof pauseReasons)[number];
1607
1662
  export declare const controlStateSchema: z.ZodObject<{
1608
1663
  paused: z.ZodBoolean;
1609
1664
  pauseReason: z.ZodOptional<z.ZodEnum<{
1610
- runtime: "runtime";
1611
1665
  operator: "operator";
1666
+ runtime: "runtime";
1612
1667
  shutdown: "shutdown";
1613
1668
  "base-check": "base-check";
1614
1669
  reconfigure: "reconfigure";
@@ -1624,6 +1679,7 @@ export declare const controlStateSchema: z.ZodObject<{
1624
1679
  timeout: "timeout";
1625
1680
  "provider-auth": "provider-auth";
1626
1681
  stalled: "stalled";
1682
+ "context-exhausted": "context-exhausted";
1627
1683
  "stale-base": "stale-base";
1628
1684
  "empty-result": "empty-result";
1629
1685
  unfinished: "unfinished";
@@ -1632,6 +1688,7 @@ export declare const controlStateSchema: z.ZodObject<{
1632
1688
  merge: "merge";
1633
1689
  budget: "budget";
1634
1690
  "needs-lead": "needs-lead";
1691
+ "needs-input": "needs-input";
1635
1692
  }>>>;
1636
1693
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1637
1694
  kind: z.ZodEnum<{
@@ -1883,10 +1940,10 @@ export declare const checkSuiteSchema: z.ZodObject<{
1883
1940
  version: z.ZodOptional<z.ZodNumber>;
1884
1941
  origin: z.ZodObject<{
1885
1942
  kind: z.ZodEnum<{
1886
- review: "review";
1887
- agent: "agent";
1888
1943
  operator: "operator";
1889
1944
  lead: "lead";
1945
+ review: "review";
1946
+ agent: "agent";
1890
1947
  }>;
1891
1948
  runtime: z.ZodOptional<z.ZodString>;
1892
1949
  }, z.core.$strict>;
@@ -1959,11 +2016,11 @@ export declare const workflowJobSchema: z.ZodObject<{
1959
2016
  stage: z.ZodNumber;
1960
2017
  attempts: z.ZodNumber;
1961
2018
  status: z.ZodEnum<{
2019
+ stale: "stale";
1962
2020
  failed: "failed";
1963
2021
  completed: "completed";
1964
2022
  running: "running";
1965
2023
  queued: "queued";
1966
- stale: "stale";
1967
2024
  }>;
1968
2025
  repairs: z.ZodOptional<z.ZodNumber>;
1969
2026
  token: z.ZodOptional<z.ZodString>;
@@ -2185,9 +2242,9 @@ export declare const localSchemas: {
2185
2242
  key: z.ZodString;
2186
2243
  revision: z.ZodString;
2187
2244
  status: z.ZodEnum<{
2188
- failed: "failed";
2189
2245
  pending: "pending";
2190
2246
  delivered: "delivered";
2247
+ failed: "failed";
2191
2248
  conflict: "conflict";
2192
2249
  uncertain: "uncertain";
2193
2250
  }>;
@@ -2202,8 +2259,8 @@ export declare const localSchemas: {
2202
2259
  readonly reviews: z.ZodObject<{
2203
2260
  id: z.ZodString;
2204
2261
  kind: z.ZodEnum<{
2205
- plan: "plan";
2206
2262
  contract: "contract";
2263
+ plan: "plan";
2207
2264
  }>;
2208
2265
  subject: z.ZodString;
2209
2266
  digest: z.ZodString;
@@ -2237,8 +2294,8 @@ export declare const localSchemas: {
2237
2294
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2238
2295
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2239
2296
  status: z.ZodEnum<{
2240
- open: "open";
2241
2297
  closed: "closed";
2298
+ open: "open";
2242
2299
  withdrawn: "withdrawn";
2243
2300
  }>;
2244
2301
  openedIn: z.ZodNumber;
@@ -2324,10 +2381,10 @@ export declare const localSchemas: {
2324
2381
  version: z.ZodOptional<z.ZodNumber>;
2325
2382
  origin: z.ZodObject<{
2326
2383
  kind: z.ZodEnum<{
2327
- review: "review";
2328
- agent: "agent";
2329
2384
  operator: "operator";
2330
2385
  lead: "lead";
2386
+ review: "review";
2387
+ agent: "agent";
2331
2388
  }>;
2332
2389
  runtime: z.ZodOptional<z.ZodString>;
2333
2390
  }, z.core.$strict>;
@@ -2393,11 +2450,11 @@ export declare const localSchemas: {
2393
2450
  stage: z.ZodNumber;
2394
2451
  attempts: z.ZodNumber;
2395
2452
  status: z.ZodEnum<{
2453
+ stale: "stale";
2396
2454
  failed: "failed";
2397
2455
  completed: "completed";
2398
2456
  running: "running";
2399
2457
  queued: "queued";
2400
- stale: "stale";
2401
2458
  }>;
2402
2459
  repairs: z.ZodOptional<z.ZodNumber>;
2403
2460
  token: z.ZodOptional<z.ZodString>;
@@ -2597,6 +2654,160 @@ export declare const localSchemas: {
2597
2654
  }, z.core.$strict>>;
2598
2655
  }, z.core.$strict>>;
2599
2656
  }, z.core.$strict>;
2657
+ /**
2658
+ * Вопросы исполнителей и ответы на них (`InputRequest`) по владельцу —
2659
+ * репозиторию поручения. Вопрос и основание неизменяемы, ответы только
2660
+ * дополняются, `version` — CAS записи: это правила движка (все записи —
2661
+ * через его операции); хранилище хранит запись целиком, как записана, и
2662
+ * отдаёт её в списке без владельца с `owner` и `key` (`executionStoreContract`).
2663
+ */
2664
+ readonly 'input-requests': z.ZodObject<{
2665
+ id: z.ZodString;
2666
+ kind: z.ZodEnum<{
2667
+ question: "question";
2668
+ "follow-up": "follow-up";
2669
+ }>;
2670
+ blocking: z.ZodBoolean;
2671
+ workId: z.ZodString;
2672
+ graphId: z.ZodString;
2673
+ runId: z.ZodString;
2674
+ attempt: z.ZodNumber;
2675
+ callId: z.ZodNullable<z.ZodString>;
2676
+ question: z.ZodObject<{
2677
+ question: z.ZodString;
2678
+ options: z.ZodArray<z.ZodObject<{
2679
+ id: z.ZodString;
2680
+ label: z.ZodString;
2681
+ consequence: z.ZodNullable<z.ZodString>;
2682
+ }, z.core.$strict>>;
2683
+ recommended: z.ZodNullable<z.ZodString>;
2684
+ severity: z.ZodNumber;
2685
+ rationale: z.ZodString;
2686
+ affects: z.ZodArray<z.ZodEnum<{
2687
+ acceptance: "acceptance";
2688
+ contract: "contract";
2689
+ product: "product";
2690
+ api: "api";
2691
+ migration: "migration";
2692
+ }>>;
2693
+ }, z.core.$strict>;
2694
+ effectiveSeverity: z.ZodNumber;
2695
+ floors: z.ZodArray<z.ZodEnum<{
2696
+ declared: "declared";
2697
+ "critical-path": "critical-path";
2698
+ }>>;
2699
+ criticalHits: z.ZodArray<z.ZodString>;
2700
+ draft: z.ZodNullable<z.ZodObject<{
2701
+ digest: z.ZodString;
2702
+ files: z.ZodArray<z.ZodString>;
2703
+ }, z.core.$strict>>;
2704
+ createdAt: z.ZodISODateTime;
2705
+ originBasis: z.ZodObject<{
2706
+ source: z.ZodObject<{
2707
+ connector: z.ZodString;
2708
+ ref: z.ZodString;
2709
+ revision: z.ZodString;
2710
+ }, z.core.$strict>;
2711
+ graphId: z.ZodString;
2712
+ graphDigest: z.ZodString;
2713
+ orderDigest: z.ZodString;
2714
+ policyDigest: z.ZodString;
2715
+ contextDigest: z.ZodNullable<z.ZodString>;
2716
+ baseSha: z.ZodNullable<z.ZodString>;
2717
+ inputPolicy: z.ZodObject<{
2718
+ threshold: z.ZodDefault<z.ZodNumber>;
2719
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
2720
+ }, z.core.$strict>;
2721
+ contentDigest: z.ZodOptional<z.ZodString>;
2722
+ }, z.core.$strict>;
2723
+ lifecycle: z.ZodEnum<{
2724
+ pending: "pending";
2725
+ answered: "answered";
2726
+ applied: "applied";
2727
+ cancelled: "cancelled";
2728
+ superseded: "superseded";
2729
+ }>;
2730
+ answers: z.ZodArray<z.ZodObject<{
2731
+ revision: z.ZodNumber;
2732
+ text: z.ZodString;
2733
+ optionId: z.ZodNullable<z.ZodString>;
2734
+ kind: z.ZodEnum<{
2735
+ clarification: "clarification";
2736
+ "requirement-change": "requirement-change";
2737
+ }>;
2738
+ actor: z.ZodObject<{
2739
+ kind: z.ZodEnum<{
2740
+ operator: "operator";
2741
+ lead: "lead";
2742
+ host: "host";
2743
+ }>;
2744
+ id: z.ZodOptional<z.ZodString>;
2745
+ }, z.core.$strict>;
2746
+ messageRef: z.ZodOptional<z.ZodString>;
2747
+ digest: z.ZodString;
2748
+ at: z.ZodISODateTime;
2749
+ }, z.core.$strict>>;
2750
+ target: z.ZodOptional<z.ZodObject<{
2751
+ originDigest: z.ZodString;
2752
+ answerDigest: z.ZodString;
2753
+ graphDigest: z.ZodString;
2754
+ orderDigest: z.ZodString;
2755
+ contentDigest: z.ZodOptional<z.ZodString>;
2756
+ policyDigest: z.ZodString;
2757
+ contextDigest: z.ZodNullable<z.ZodString>;
2758
+ review: z.ZodNullable<z.ZodObject<{
2759
+ round: z.ZodNumber;
2760
+ approved: z.ZodBoolean;
2761
+ reviewerBinding: z.ZodNullable<z.ZodString>;
2762
+ }, z.core.$strict>>;
2763
+ actor: z.ZodEnum<{
2764
+ operator: "operator";
2765
+ agent: "agent";
2766
+ }>;
2767
+ digest: z.ZodString;
2768
+ }, z.core.$strict>>;
2769
+ delivered: z.ZodOptional<z.ZodObject<{
2770
+ runId: z.ZodString;
2771
+ callId: z.ZodString;
2772
+ at: z.ZodISODateTime;
2773
+ }, z.core.$strict>>;
2774
+ closed: z.ZodOptional<z.ZodObject<{
2775
+ at: z.ZodISODateTime;
2776
+ by: z.ZodEnum<{
2777
+ operator: "operator";
2778
+ lead: "lead";
2779
+ host: "host";
2780
+ controller: "controller";
2781
+ }>;
2782
+ reason: z.ZodString;
2783
+ successor: z.ZodOptional<z.ZodString>;
2784
+ carry: z.ZodOptional<z.ZodBoolean>;
2785
+ previous: z.ZodOptional<z.ZodObject<{
2786
+ at: z.ZodISODateTime;
2787
+ by: z.ZodEnum<{
2788
+ operator: "operator";
2789
+ lead: "lead";
2790
+ host: "host";
2791
+ controller: "controller";
2792
+ }>;
2793
+ reason: z.ZodString;
2794
+ successor: z.ZodOptional<z.ZodString>;
2795
+ carry: z.ZodOptional<z.ZodBoolean>;
2796
+ }, z.core.$strict>>;
2797
+ }, z.core.$strict>>;
2798
+ stale: z.ZodOptional<z.ZodObject<{
2799
+ targetDigest: z.ZodString;
2800
+ reason: z.ZodEnum<{
2801
+ context: "context";
2802
+ graph: "graph";
2803
+ order: "order";
2804
+ policy: "policy";
2805
+ }>;
2806
+ at: z.ZodISODateTime;
2807
+ }, z.core.$strict>>;
2808
+ normalized: z.ZodOptional<z.ZodArray<z.ZodString>>;
2809
+ version: z.ZodNumber;
2810
+ }, z.core.$strict>;
2600
2811
  };
2601
2812
  export type LocalNamespace = keyof typeof localSchemas;
2602
2813
  export type LocalValue<N extends LocalNamespace> = z.infer<(typeof localSchemas)[N]>;
@@ -2881,8 +3092,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
2881
3092
  policyDigest: z.ZodString;
2882
3093
  approval: z.ZodOptional<z.ZodObject<{
2883
3094
  actor: z.ZodEnum<{
2884
- agent: "agent";
2885
3095
  operator: "operator";
3096
+ agent: "agent";
2886
3097
  }>;
2887
3098
  authorRuntime: z.ZodOptional<z.ZodEnum<{
2888
3099
  codex: "codex";
@@ -2945,10 +3156,10 @@ export declare const executionDocumentSchema: z.ZodObject<{
2945
3156
  context: z.ZodDefault<z.ZodArray<z.ZodString>>;
2946
3157
  }, z.core.$strict>;
2947
3158
  status: z.ZodEnum<{
2948
- ready: "ready";
2949
- failed: "failed";
2950
3159
  cancelled: "cancelled";
2951
3160
  draft: "draft";
3161
+ ready: "ready";
3162
+ failed: "failed";
2952
3163
  running: "running";
2953
3164
  verifying: "verifying";
2954
3165
  reviewing: "reviewing";
@@ -2968,6 +3179,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
2968
3179
  timeout: "timeout";
2969
3180
  "provider-auth": "provider-auth";
2970
3181
  stalled: "stalled";
3182
+ "context-exhausted": "context-exhausted";
2971
3183
  "stale-base": "stale-base";
2972
3184
  "empty-result": "empty-result";
2973
3185
  unfinished: "unfinished";
@@ -2976,6 +3188,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
2976
3188
  merge: "merge";
2977
3189
  budget: "budget";
2978
3190
  "needs-lead": "needs-lead";
3191
+ "needs-input": "needs-input";
2979
3192
  }>>;
2980
3193
  failureFingerprint: z.ZodOptional<z.ZodString>;
2981
3194
  approvedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -2983,8 +3196,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
2983
3196
  approvedScope: z.ZodOptional<z.ZodString>;
2984
3197
  approval: z.ZodOptional<z.ZodObject<{
2985
3198
  actor: z.ZodEnum<{
2986
- agent: "agent";
2987
3199
  operator: "operator";
3200
+ agent: "agent";
2988
3201
  }>;
2989
3202
  authorRuntime: z.ZodOptional<z.ZodEnum<{
2990
3203
  codex: "codex";
@@ -3150,17 +3363,17 @@ export declare const executionDocumentSchema: z.ZodObject<{
3150
3363
  reviewerEffort: z.ZodOptional<z.ZodString>;
3151
3364
  policyDigest: z.ZodString;
3152
3365
  status: z.ZodEnum<{
3153
- failed: "failed";
3154
3366
  cancelled: "cancelled";
3367
+ failed: "failed";
3155
3368
  active: "active";
3156
3369
  expired: "expired";
3157
3370
  succeeded: "succeeded";
3158
3371
  }>;
3159
3372
  phase: z.ZodEnum<{
3160
- ready: "ready";
3161
- failed: "failed";
3162
3373
  cancelled: "cancelled";
3163
3374
  draft: "draft";
3375
+ ready: "ready";
3376
+ failed: "failed";
3164
3377
  running: "running";
3165
3378
  verifying: "verifying";
3166
3379
  reviewing: "reviewing";
@@ -3185,6 +3398,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
3185
3398
  timeout: "timeout";
3186
3399
  "provider-auth": "provider-auth";
3187
3400
  stalled: "stalled";
3401
+ "context-exhausted": "context-exhausted";
3188
3402
  "stale-base": "stale-base";
3189
3403
  "empty-result": "empty-result";
3190
3404
  unfinished: "unfinished";
@@ -3193,6 +3407,11 @@ export declare const executionDocumentSchema: z.ZodObject<{
3193
3407
  merge: "merge";
3194
3408
  budget: "budget";
3195
3409
  "needs-lead": "needs-lead";
3410
+ "needs-input": "needs-input";
3411
+ }>>;
3412
+ contextLimit: z.ZodOptional<z.ZodEnum<{
3413
+ "prompt-too-long": "prompt-too-long";
3414
+ "blocking-limit": "blocking-limit";
3196
3415
  }>>;
3197
3416
  failureFingerprint: z.ZodOptional<z.ZodString>;
3198
3417
  requiredGates: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -3298,6 +3517,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
3298
3517
  timeout: "timeout";
3299
3518
  "provider-auth": "provider-auth";
3300
3519
  stalled: "stalled";
3520
+ "context-exhausted": "context-exhausted";
3301
3521
  "stale-base": "stale-base";
3302
3522
  "empty-result": "empty-result";
3303
3523
  unfinished: "unfinished";
@@ -3306,11 +3526,39 @@ export declare const executionDocumentSchema: z.ZodObject<{
3306
3526
  merge: "merge";
3307
3527
  budget: "budget";
3308
3528
  "needs-lead": "needs-lead";
3529
+ "needs-input": "needs-input";
3309
3530
  }>>;
3310
3531
  respecified: z.ZodOptional<z.ZodBoolean>;
3311
3532
  applied: z.ZodBoolean;
3312
3533
  files: z.ZodArray<z.ZodString>;
3313
3534
  }, z.core.$strict>>;
3535
+ inputPolicy: z.ZodOptional<z.ZodObject<{
3536
+ threshold: z.ZodDefault<z.ZodNumber>;
3537
+ criticalPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
3538
+ }, z.core.$strict>>;
3539
+ assumptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3540
+ question: z.ZodString;
3541
+ chosen: z.ZodString;
3542
+ rationale: z.ZodString;
3543
+ severity: z.ZodNumber;
3544
+ affects: z.ZodArray<z.ZodEnum<{
3545
+ acceptance: "acceptance";
3546
+ contract: "contract";
3547
+ product: "product";
3548
+ api: "api";
3549
+ migration: "migration";
3550
+ }>>;
3551
+ effectiveSeverity: z.ZodNumber;
3552
+ floors: z.ZodArray<z.ZodEnum<{
3553
+ declared: "declared";
3554
+ "critical-path": "critical-path";
3555
+ }>>;
3556
+ }, z.core.$strict>>>;
3557
+ input: z.ZodOptional<z.ZodObject<{
3558
+ requestId: z.ZodString;
3559
+ answerDigest: z.ZodString;
3560
+ targetDigest: z.ZodString;
3561
+ }, z.core.$strict>>;
3314
3562
  callsRecorded: z.ZodOptional<z.ZodLiteral<true>>;
3315
3563
  dispatch: z.ZodOptional<z.ZodObject<{
3316
3564
  policy: z.ZodLiteral<"fifo-ready-v1">;
@@ -3339,8 +3587,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
3339
3587
  activity: z.ZodOptional<z.ZodObject<{
3340
3588
  kind: z.ZodEnum<{
3341
3589
  gate: "gate";
3342
- command: "command";
3343
3590
  agent: "agent";
3591
+ command: "command";
3344
3592
  step: "step";
3345
3593
  }>;
3346
3594
  label: z.ZodString;
@@ -3371,6 +3619,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
3371
3619
  ref: z.ZodString;
3372
3620
  revision: z.ZodString;
3373
3621
  }, z.core.$strict>;
3622
+ contextDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3374
3623
  }, z.core.$strict>>;
3375
3624
  engineVersion: z.ZodOptional<z.ZodString>;
3376
3625
  consumerVersion: z.ZodOptional<z.ZodString>;
@@ -3378,8 +3627,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
3378
3627
  id: z.ZodString;
3379
3628
  runId: z.ZodString;
3380
3629
  kind: z.ZodEnum<{
3381
- test: "test";
3382
3630
  review: "review";
3631
+ test: "test";
3383
3632
  }>;
3384
3633
  phase: z.ZodEnum<{
3385
3634
  candidate: "candidate";
@@ -3427,9 +3676,9 @@ export declare const executionDocumentSchema: z.ZodObject<{
3427
3676
  }, z.core.$strict>], "type">>>;
3428
3677
  status: z.ZodOptional<z.ZodEnum<{
3429
3678
  error: "error";
3679
+ cancelled: "cancelled";
3430
3680
  passed: "passed";
3431
3681
  failed: "failed";
3432
- cancelled: "cancelled";
3433
3682
  completed: "completed";
3434
3683
  timeout: "timeout";
3435
3684
  }>>;
@@ -3473,8 +3722,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
3473
3722
  line: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3474
3723
  id: z.ZodOptional<z.ZodString>;
3475
3724
  status: z.ZodOptional<z.ZodEnum<{
3476
- open: "open";
3477
3725
  closed: "closed";
3726
+ open: "open";
3478
3727
  withdrawn: "withdrawn";
3479
3728
  }>>;
3480
3729
  }, z.core.$strict>>>;
@@ -3505,13 +3754,13 @@ export declare const executionDocumentSchema: z.ZodObject<{
3505
3754
  transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3506
3755
  id: z.ZodString;
3507
3756
  from: z.ZodEnum<{
3508
- open: "open";
3509
3757
  closed: "closed";
3758
+ open: "open";
3510
3759
  withdrawn: "withdrawn";
3511
3760
  }>;
3512
3761
  to: z.ZodEnum<{
3513
- open: "open";
3514
3762
  closed: "closed";
3763
+ open: "open";
3515
3764
  withdrawn: "withdrawn";
3516
3765
  }>;
3517
3766
  basis: z.ZodString;
@@ -3849,8 +4098,8 @@ export declare const executionDocumentSchema: z.ZodObject<{
3849
4098
  control: z.ZodObject<{
3850
4099
  paused: z.ZodBoolean;
3851
4100
  pauseReason: z.ZodOptional<z.ZodEnum<{
3852
- runtime: "runtime";
3853
4101
  operator: "operator";
4102
+ runtime: "runtime";
3854
4103
  shutdown: "shutdown";
3855
4104
  "base-check": "base-check";
3856
4105
  reconfigure: "reconfigure";
@@ -3866,6 +4115,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
3866
4115
  timeout: "timeout";
3867
4116
  "provider-auth": "provider-auth";
3868
4117
  stalled: "stalled";
4118
+ "context-exhausted": "context-exhausted";
3869
4119
  "stale-base": "stale-base";
3870
4120
  "empty-result": "empty-result";
3871
4121
  unfinished: "unfinished";
@@ -3874,6 +4124,7 @@ export declare const executionDocumentSchema: z.ZodObject<{
3874
4124
  merge: "merge";
3875
4125
  budget: "budget";
3876
4126
  "needs-lead": "needs-lead";
4127
+ "needs-input": "needs-input";
3877
4128
  }>>>;
3878
4129
  waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
3879
4130
  kind: z.ZodEnum<{