@interf/compiler 0.33.0 → 0.50.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 (234) hide show
  1. package/README.md +122 -226
  2. package/dist/cli/commands/agents.js +1 -32
  3. package/dist/cli/commands/benchmark.d.ts +2 -3
  4. package/dist/cli/commands/benchmark.js +1 -31
  5. package/dist/cli/commands/build-plan.js +26 -50
  6. package/dist/cli/commands/build.d.ts +2 -3
  7. package/dist/cli/commands/build.js +1 -31
  8. package/dist/cli/commands/graphs.js +177 -32
  9. package/dist/cli/commands/mcp.d.ts +1 -0
  10. package/dist/cli/commands/mcp.js +223 -126
  11. package/dist/cli/commands/project.js +10 -36
  12. package/dist/cli/commands/reset.d.ts +2 -3
  13. package/dist/cli/commands/reset.js +1 -22
  14. package/dist/cli/commands/runs.js +86 -33
  15. package/dist/cli/commands/status.js +3 -24
  16. package/dist/cli/commands/traces.js +1 -29
  17. package/dist/cli/commands/wizard.js +17 -29
  18. package/dist/cli/lib/http-client.d.ts +39 -0
  19. package/dist/cli/lib/http-client.js +73 -0
  20. package/dist/packages/build-plans/authoring/brief.d.ts +25 -4
  21. package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +42 -1
  22. package/dist/packages/build-plans/authoring/build-plan-authoring.js +470 -63
  23. package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +9 -0
  24. package/dist/packages/build-plans/authoring/build-plan-edit-session.js +27 -10
  25. package/dist/packages/build-plans/authoring/build-plan-improvement.js +62 -8
  26. package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.d.ts +1 -0
  27. package/dist/packages/build-plans/package/build-plan-definitions.d.ts +0 -1
  28. package/dist/packages/build-plans/package/build-plan-definitions.js +5 -3
  29. package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +1 -0
  30. package/dist/packages/build-plans/package/build-plan-stage-runner.js +2 -1
  31. package/dist/packages/build-plans/package/builtin-build-plan.d.ts +2 -2
  32. package/dist/packages/build-plans/package/builtin-build-plan.js +3 -3
  33. package/dist/packages/build-plans/package/context-interface.d.ts +3 -0
  34. package/dist/packages/build-plans/package/context-interface.js +5 -5
  35. package/dist/packages/build-plans/package/interf-build-plan-package.js +22 -22
  36. package/dist/packages/build-plans/package/local-build-plans.d.ts +10 -5
  37. package/dist/packages/build-plans/package/local-build-plans.js +57 -32
  38. package/dist/packages/contracts/index.d.ts +4 -3
  39. package/dist/packages/contracts/index.js +2 -1
  40. package/dist/packages/contracts/lib/context-graph-layer.d.ts +161 -0
  41. package/dist/packages/contracts/lib/context-graph-layer.js +216 -0
  42. package/dist/packages/contracts/lib/project-paths.d.ts +7 -0
  43. package/dist/packages/contracts/lib/project-paths.js +9 -0
  44. package/dist/packages/contracts/lib/project-schema.d.ts +264 -1
  45. package/dist/packages/contracts/lib/project-schema.js +38 -13
  46. package/dist/packages/contracts/lib/schema.d.ts +556 -23
  47. package/dist/packages/contracts/lib/schema.js +279 -18
  48. package/dist/packages/contracts/utils/filesystem.d.ts +1 -0
  49. package/dist/packages/contracts/utils/filesystem.js +29 -1
  50. package/dist/packages/projects/lib/schema.d.ts +6 -8
  51. package/dist/packages/projects/lib/schema.js +3 -1
  52. package/dist/packages/projects/source-config.d.ts +0 -5
  53. package/dist/packages/projects/source-config.js +9 -22
  54. package/dist/packages/runtime/actions/fields.d.ts +4 -0
  55. package/dist/packages/runtime/actions/form-builders.js +79 -31
  56. package/dist/packages/runtime/actions/form-validators.js +9 -3
  57. package/dist/packages/runtime/actions/helpers.js +3 -3
  58. package/dist/packages/runtime/actions/registry.d.ts +1 -1
  59. package/dist/packages/runtime/actions/registry.js +1 -1
  60. package/dist/packages/runtime/actions/requests.d.ts +1 -1
  61. package/dist/packages/runtime/actions/requests.js +12 -6
  62. package/dist/packages/runtime/actions/schemas.d.ts +7 -0
  63. package/dist/packages/runtime/actions/schemas.js +1 -0
  64. package/dist/packages/runtime/agent-handoff.js +8 -7
  65. package/dist/packages/runtime/agents/lib/execution-profile.d.ts +14 -0
  66. package/dist/packages/runtime/agents/lib/execution-profile.js +23 -0
  67. package/dist/packages/runtime/agents/lib/execution.js +14 -8
  68. package/dist/packages/runtime/agents/lib/executors.d.ts +1 -0
  69. package/dist/packages/runtime/agents/lib/executors.js +11 -2
  70. package/dist/packages/runtime/agents/lib/logs.d.ts +10 -0
  71. package/dist/packages/runtime/agents/lib/logs.js +32 -8
  72. package/dist/packages/runtime/agents/lib/preflight.js +4 -1
  73. package/dist/packages/runtime/agents/lib/render.d.ts +18 -0
  74. package/dist/packages/runtime/agents/lib/render.js +44 -18
  75. package/dist/packages/runtime/agents/lib/shell-templates.js +105 -63
  76. package/dist/packages/runtime/agents/lib/shells.d.ts +29 -0
  77. package/dist/packages/runtime/agents/lib/shells.js +158 -32
  78. package/dist/packages/runtime/agents/lib/source-context-scan.d.ts +10 -0
  79. package/dist/packages/runtime/agents/lib/source-context-scan.js +388 -0
  80. package/dist/packages/runtime/agents/lib/status.js +1 -14
  81. package/dist/packages/runtime/agents/lib/string-utils.d.ts +16 -0
  82. package/dist/packages/runtime/agents/lib/string-utils.js +36 -0
  83. package/dist/packages/runtime/agents/lib/types.d.ts +1 -0
  84. package/dist/packages/runtime/agents/providers/codex.js +2 -0
  85. package/dist/packages/runtime/agents/role-executors.js +2 -1
  86. package/dist/packages/runtime/auth/session-store.js +11 -3
  87. package/dist/packages/runtime/benchmark-question-draft.d.ts +3 -0
  88. package/dist/packages/runtime/benchmark-question-draft.js +57 -28
  89. package/dist/packages/runtime/build/artifact-status.d.ts +1 -1
  90. package/dist/packages/runtime/build/artifact-status.js +1 -1
  91. package/dist/packages/runtime/build/build-evidence.d.ts +2 -1
  92. package/dist/packages/runtime/build/build-evidence.js +11 -5
  93. package/dist/packages/runtime/build/build-pipeline.js +89 -5
  94. package/dist/packages/runtime/build/build-stage-plan.js +3 -1
  95. package/dist/packages/runtime/build/build-stage-runner.js +169 -32
  96. package/dist/packages/runtime/build/build-target.d.ts +3 -0
  97. package/dist/packages/runtime/build/build-target.js +25 -1
  98. package/dist/packages/runtime/build/check-evaluator.d.ts +1 -1
  99. package/dist/packages/runtime/build/check-evaluator.js +655 -4
  100. package/dist/packages/runtime/build/context-graph-paths.d.ts +13 -0
  101. package/dist/packages/runtime/build/context-graph-paths.js +27 -0
  102. package/dist/packages/runtime/build/index.d.ts +2 -2
  103. package/dist/packages/runtime/build/index.js +2 -2
  104. package/dist/packages/runtime/build/inspect-map.d.ts +10 -0
  105. package/dist/packages/runtime/build/inspect-map.js +270 -0
  106. package/dist/packages/runtime/build/lib/schema.d.ts +246 -53
  107. package/dist/packages/runtime/build/lib/schema.js +173 -15
  108. package/dist/packages/runtime/build/native-entrypoint.d.ts +2 -0
  109. package/dist/packages/runtime/build/native-entrypoint.js +286 -0
  110. package/dist/packages/runtime/build/runtime-contracts.js +9 -3
  111. package/dist/packages/runtime/build/runtime-log-paths.d.ts +3 -0
  112. package/dist/packages/runtime/build/runtime-log-paths.js +16 -0
  113. package/dist/packages/runtime/build/runtime-prompt.js +6 -4
  114. package/dist/packages/runtime/build/runtime-runs.js +63 -10
  115. package/dist/packages/runtime/build/runtime-types.d.ts +4 -1
  116. package/dist/packages/runtime/build/runtime.d.ts +3 -1
  117. package/dist/packages/runtime/build/runtime.js +3 -1
  118. package/dist/packages/runtime/build/source-files.js +11 -2
  119. package/dist/packages/runtime/build/source-inventory.d.ts +1 -0
  120. package/dist/packages/runtime/build/source-inventory.js +246 -7
  121. package/dist/packages/runtime/build/source-manifest.d.ts +11 -0
  122. package/dist/packages/runtime/build/source-manifest.js +30 -2
  123. package/dist/packages/runtime/build/stage-evidence.js +80 -11
  124. package/dist/packages/runtime/build/stage-manifest.d.ts +45 -0
  125. package/dist/packages/runtime/build/stage-manifest.js +1125 -0
  126. package/dist/packages/runtime/build/stage-reuse.js +12 -0
  127. package/dist/packages/runtime/build/stage-session.d.ts +81 -0
  128. package/dist/packages/runtime/build/stage-session.js +308 -0
  129. package/dist/packages/runtime/build/state-io.js +10 -11
  130. package/dist/packages/runtime/build/state-view.js +1 -1
  131. package/dist/packages/runtime/build/state.d.ts +1 -1
  132. package/dist/packages/runtime/build/state.js +1 -1
  133. package/dist/packages/runtime/build/summary-coverage-index.d.ts +21 -0
  134. package/dist/packages/runtime/build/summary-coverage-index.js +189 -0
  135. package/dist/packages/runtime/build/traces.js +3 -3
  136. package/dist/packages/runtime/build/validate-context-graph.d.ts +1 -1
  137. package/dist/packages/runtime/build/validate-context-graph.js +5 -5
  138. package/dist/packages/runtime/build/validate.d.ts +1 -1
  139. package/dist/packages/runtime/build/validate.js +1 -1
  140. package/dist/packages/runtime/client.d.ts +3 -3
  141. package/dist/packages/runtime/client.js +8 -13
  142. package/dist/packages/runtime/context-checks.js +13 -0
  143. package/dist/packages/runtime/context-graph-scaffold.js +2 -1
  144. package/dist/packages/runtime/context-graph-semantic-graph.d.ts +9 -0
  145. package/dist/packages/runtime/context-graph-semantic-graph.js +416 -0
  146. package/dist/packages/runtime/execution/lib/schema.d.ts +34 -31
  147. package/dist/packages/runtime/index.d.ts +2 -2
  148. package/dist/packages/runtime/index.js +1 -1
  149. package/dist/packages/runtime/native-run-handlers.d.ts +38 -0
  150. package/dist/packages/runtime/native-run-handlers.js +52 -33
  151. package/dist/packages/runtime/plan-artifact-contract.js +1 -1
  152. package/dist/packages/runtime/project-source-state.d.ts +4 -4
  153. package/dist/packages/runtime/project-source-state.js +5 -2
  154. package/dist/packages/runtime/project-store.d.ts +5 -0
  155. package/dist/packages/runtime/project-store.js +30 -3
  156. package/dist/packages/runtime/requested-artifacts.js +1 -1
  157. package/dist/packages/runtime/run-observability.js +9 -4
  158. package/dist/packages/runtime/runtime-action-proposals.js +3 -3
  159. package/dist/packages/runtime/runtime-build-plans.js +47 -3
  160. package/dist/packages/runtime/runtime-build-runs.js +9 -16
  161. package/dist/packages/runtime/runtime-caches.d.ts +26 -0
  162. package/dist/packages/runtime/runtime-caches.js +47 -0
  163. package/dist/packages/runtime/runtime-jobs.js +6 -6
  164. package/dist/packages/runtime/runtime-project-mutations.js +1 -0
  165. package/dist/packages/runtime/runtime-project-reads.d.ts +4 -1
  166. package/dist/packages/runtime/runtime-project-reads.js +229 -36
  167. package/dist/packages/runtime/runtime-proposal-helpers.js +6 -6
  168. package/dist/packages/runtime/runtime-resource-builders.d.ts +4 -2
  169. package/dist/packages/runtime/runtime-resource-builders.js +16 -14
  170. package/dist/packages/runtime/runtime-status.d.ts +14 -0
  171. package/dist/packages/runtime/runtime-status.js +15 -0
  172. package/dist/packages/runtime/runtime-verify-runs.js +6 -5
  173. package/dist/packages/runtime/runtime.d.ts +439 -22
  174. package/dist/packages/runtime/runtime.js +16 -2
  175. package/dist/packages/runtime/schemas/actions.d.ts +24 -0
  176. package/dist/packages/runtime/schemas/agents.d.ts +28 -0
  177. package/dist/packages/runtime/schemas/agents.js +33 -0
  178. package/dist/packages/runtime/schemas/build-plans.d.ts +181 -8
  179. package/dist/packages/runtime/schemas/build-plans.js +36 -2
  180. package/dist/packages/runtime/schemas/context-graphs.d.ts +1522 -0
  181. package/dist/packages/runtime/schemas/context-graphs.js +110 -0
  182. package/dist/packages/runtime/schemas/files.d.ts +7 -347
  183. package/dist/packages/runtime/schemas/files.js +1 -24
  184. package/dist/packages/runtime/schemas/index.d.ts +1 -0
  185. package/dist/packages/runtime/schemas/index.js +1 -0
  186. package/dist/packages/runtime/schemas/jobs.js +4 -0
  187. package/dist/packages/runtime/schemas/projects.d.ts +48 -21
  188. package/dist/packages/runtime/schemas/projects.js +34 -10
  189. package/dist/packages/runtime/schemas/runs.d.ts +1009 -240
  190. package/dist/packages/runtime/schemas/runs.js +17 -0
  191. package/dist/packages/runtime/service/openapi.js +1 -0
  192. package/dist/packages/runtime/service/operations.d.ts +1666 -145
  193. package/dist/packages/runtime/service/operations.js +147 -17
  194. package/dist/packages/runtime/service/routes.d.ts +11 -3
  195. package/dist/packages/runtime/service/routes.js +11 -3
  196. package/dist/packages/runtime/service/server-app-boot.js +2 -2
  197. package/dist/packages/runtime/service/server-helpers.d.ts +11 -0
  198. package/dist/packages/runtime/service/server-helpers.js +19 -0
  199. package/dist/packages/runtime/service/server-routes-action-proposals.js +4 -2
  200. package/dist/packages/runtime/service/server-routes-agents.js +19 -85
  201. package/dist/packages/runtime/service/server-routes-build-plans.js +14 -11
  202. package/dist/packages/runtime/service/server-routes-project-context.js +102 -7
  203. package/dist/packages/runtime/service/server-routes-project-jobs.js +19 -12
  204. package/dist/packages/runtime/service/server-routes-project-runs.js +5 -2
  205. package/dist/packages/runtime/service/server-routes-projects.js +6 -2
  206. package/dist/packages/runtime/service/server-routes-runs.js +11 -4
  207. package/dist/packages/runtime/verify/lib/schema.js +12 -0
  208. package/dist/packages/runtime/verify/test-file-guard.d.ts +2 -0
  209. package/dist/packages/runtime/verify/test-file-guard.js +29 -0
  210. package/dist/packages/runtime/verify/verify-execution.d.ts +7 -0
  211. package/dist/packages/runtime/verify/verify-execution.js +109 -35
  212. package/dist/packages/runtime/verify/verify-paths.d.ts +1 -0
  213. package/dist/packages/runtime/verify/verify-paths.js +4 -0
  214. package/dist/packages/runtime/verify/verify-specs.js +49 -39
  215. package/dist/packages/runtime/wire-schemas.d.ts +1 -1
  216. package/dist/packages/runtime/wire-schemas.js +1 -1
  217. package/package.json +2 -8
  218. package/public-repo/CONTRIBUTING.md +10 -3
  219. package/public-repo/README.md +122 -226
  220. package/public-repo/build-plans/interf-default/README.md +15 -12
  221. package/public-repo/build-plans/interf-default/build/stages/entrypoint/SKILL.md +74 -0
  222. package/public-repo/build-plans/interf-default/build/stages/knowledge/SKILL.md +95 -0
  223. package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +38 -5
  224. package/public-repo/build-plans/interf-default/build-plan.json +27 -23
  225. package/public-repo/build-plans/interf-default/build-plan.schema.json +24 -20
  226. package/public-repo/build-plans/interf-default/use/query/SKILL.md +8 -7
  227. package/public-repo/openapi/local-service.openapi.json +11637 -4213
  228. package/public-repo/skills/interf/SKILL.md +174 -134
  229. package/dist/packages/runtime/build/runtime-paths.d.ts +0 -8
  230. package/dist/packages/runtime/build/runtime-paths.js +0 -26
  231. package/dist/packages/runtime/build/state-paths.d.ts +0 -7
  232. package/dist/packages/runtime/build/state-paths.js +0 -22
  233. package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +0 -34
  234. package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +0 -28
@@ -8,6 +8,14 @@ export declare const BuildRunCreateRequestSchema: z.ZodObject<{
8
8
  always: "always";
9
9
  }>>;
10
10
  }, z.core.$strict>;
11
+ export declare const ProjectBuildRunCreateRequestSchema: z.ZodObject<{
12
+ max_loops: z.ZodOptional<z.ZodNumber>;
13
+ max_attempts: z.ZodOptional<z.ZodNumber>;
14
+ preserve_stage_shells: z.ZodOptional<z.ZodEnum<{
15
+ "on-failure": "on-failure";
16
+ always: "always";
17
+ }>>;
18
+ }, z.core.$strict>;
11
19
  export declare const BuildRunSummarySchema: z.ZodObject<{
12
20
  run_id: z.ZodString;
13
21
  status: z.ZodEnum<{
@@ -177,14 +185,14 @@ export declare const BuildRunSummarySchema: z.ZodObject<{
177
185
  generated_at: z.ZodString;
178
186
  project: z.ZodString;
179
187
  status: z.ZodEnum<{
180
- failed: "failed";
181
188
  ready: "ready";
189
+ "not-ready": "not-ready";
190
+ failed: "failed";
182
191
  "not-configured": "not-configured";
183
192
  "not-built": "not-built";
184
193
  building: "building";
185
194
  built: "built";
186
195
  checking: "checking";
187
- "not-ready": "not-ready";
188
196
  stale: "stale";
189
197
  }>;
190
198
  ready: z.ZodBoolean;
@@ -204,14 +212,14 @@ export declare const BuildRunSummarySchema: z.ZodObject<{
204
212
  }>;
205
213
  ok: z.ZodBoolean;
206
214
  status: z.ZodOptional<z.ZodEnum<{
207
- failed: "failed";
208
215
  ready: "ready";
216
+ "not-ready": "not-ready";
217
+ failed: "failed";
209
218
  "not-configured": "not-configured";
210
219
  "not-built": "not-built";
211
220
  building: "building";
212
221
  built: "built";
213
222
  checking: "checking";
214
- "not-ready": "not-ready";
215
223
  stale: "stale";
216
224
  }>>;
217
225
  summary: z.ZodString;
@@ -253,14 +261,14 @@ export declare const BuildRunSummarySchema: z.ZodObject<{
253
261
  }>;
254
262
  ok: z.ZodBoolean;
255
263
  status: z.ZodOptional<z.ZodEnum<{
256
- failed: "failed";
257
264
  ready: "ready";
265
+ "not-ready": "not-ready";
266
+ failed: "failed";
258
267
  "not-configured": "not-configured";
259
268
  "not-built": "not-built";
260
269
  building: "building";
261
270
  built: "built";
262
271
  checking: "checking";
263
- "not-ready": "not-ready";
264
272
  stale: "stale";
265
273
  }>>;
266
274
  summary: z.ZodString;
@@ -560,14 +568,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
560
568
  generated_at: z.ZodString;
561
569
  project: z.ZodString;
562
570
  status: z.ZodEnum<{
563
- failed: "failed";
564
571
  ready: "ready";
572
+ "not-ready": "not-ready";
573
+ failed: "failed";
565
574
  "not-configured": "not-configured";
566
575
  "not-built": "not-built";
567
576
  building: "building";
568
577
  built: "built";
569
578
  checking: "checking";
570
- "not-ready": "not-ready";
571
579
  stale: "stale";
572
580
  }>;
573
581
  ready: z.ZodBoolean;
@@ -587,14 +595,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
587
595
  }>;
588
596
  ok: z.ZodBoolean;
589
597
  status: z.ZodOptional<z.ZodEnum<{
590
- failed: "failed";
591
598
  ready: "ready";
599
+ "not-ready": "not-ready";
600
+ failed: "failed";
592
601
  "not-configured": "not-configured";
593
602
  "not-built": "not-built";
594
603
  building: "building";
595
604
  built: "built";
596
605
  checking: "checking";
597
- "not-ready": "not-ready";
598
606
  stale: "stale";
599
607
  }>>;
600
608
  summary: z.ZodString;
@@ -636,14 +644,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
636
644
  }>;
637
645
  ok: z.ZodBoolean;
638
646
  status: z.ZodOptional<z.ZodEnum<{
639
- failed: "failed";
640
647
  ready: "ready";
648
+ "not-ready": "not-ready";
649
+ failed: "failed";
641
650
  "not-configured": "not-configured";
642
651
  "not-built": "not-built";
643
652
  building: "building";
644
653
  built: "built";
645
654
  checking: "checking";
646
- "not-ready": "not-ready";
647
655
  stale: "stale";
648
656
  }>>;
649
657
  summary: z.ZodString;
@@ -686,14 +694,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
686
694
  generated_at: z.ZodString;
687
695
  project: z.ZodString;
688
696
  status: z.ZodEnum<{
689
- failed: "failed";
690
697
  ready: "ready";
698
+ "not-ready": "not-ready";
699
+ failed: "failed";
691
700
  "not-configured": "not-configured";
692
701
  "not-built": "not-built";
693
702
  building: "building";
694
703
  built: "built";
695
704
  checking: "checking";
696
- "not-ready": "not-ready";
697
705
  stale: "stale";
698
706
  }>;
699
707
  ready: z.ZodBoolean;
@@ -713,14 +721,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
713
721
  }>;
714
722
  ok: z.ZodBoolean;
715
723
  status: z.ZodOptional<z.ZodEnum<{
716
- failed: "failed";
717
724
  ready: "ready";
725
+ "not-ready": "not-ready";
726
+ failed: "failed";
718
727
  "not-configured": "not-configured";
719
728
  "not-built": "not-built";
720
729
  building: "building";
721
730
  built: "built";
722
731
  checking: "checking";
723
- "not-ready": "not-ready";
724
732
  stale: "stale";
725
733
  }>>;
726
734
  summary: z.ZodString;
@@ -762,14 +770,14 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
762
770
  }>;
763
771
  ok: z.ZodBoolean;
764
772
  status: z.ZodOptional<z.ZodEnum<{
765
- failed: "failed";
766
773
  ready: "ready";
774
+ "not-ready": "not-ready";
775
+ failed: "failed";
767
776
  "not-configured": "not-configured";
768
777
  "not-built": "not-built";
769
778
  building: "building";
770
779
  built: "built";
771
780
  checking: "checking";
772
- "not-ready": "not-ready";
773
781
  stale: "stale";
774
782
  }>>;
775
783
  summary: z.ZodString;
@@ -798,9 +806,9 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
798
806
  artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
799
807
  artifact_id: z.ZodString;
800
808
  status: z.ZodEnum<{
809
+ ready: "ready";
801
810
  failed: "failed";
802
811
  skipped: "skipped";
803
- ready: "ready";
804
812
  not_ready: "not_ready";
805
813
  }>;
806
814
  built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -817,6 +825,9 @@ export declare const BuildRunResourceSchema: z.ZodObject<{
817
825
  frontmatter_required_keys: "frontmatter_required_keys";
818
826
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
819
827
  source_refs_required: "source_refs_required";
828
+ summary_backlinks_present: "summary_backlinks_present";
829
+ knowledge_web_connectivity: "knowledge_web_connectivity";
830
+ graph_notes_connected: "graph_notes_connected";
820
831
  wikilinks_valid: "wikilinks_valid";
821
832
  must_not_contain: "must_not_contain";
822
833
  must_contain: "must_contain";
@@ -1094,14 +1105,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1094
1105
  generated_at: z.ZodString;
1095
1106
  project: z.ZodString;
1096
1107
  status: z.ZodEnum<{
1097
- failed: "failed";
1098
1108
  ready: "ready";
1109
+ "not-ready": "not-ready";
1110
+ failed: "failed";
1099
1111
  "not-configured": "not-configured";
1100
1112
  "not-built": "not-built";
1101
1113
  building: "building";
1102
1114
  built: "built";
1103
1115
  checking: "checking";
1104
- "not-ready": "not-ready";
1105
1116
  stale: "stale";
1106
1117
  }>;
1107
1118
  ready: z.ZodBoolean;
@@ -1121,14 +1132,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1121
1132
  }>;
1122
1133
  ok: z.ZodBoolean;
1123
1134
  status: z.ZodOptional<z.ZodEnum<{
1124
- failed: "failed";
1125
1135
  ready: "ready";
1136
+ "not-ready": "not-ready";
1137
+ failed: "failed";
1126
1138
  "not-configured": "not-configured";
1127
1139
  "not-built": "not-built";
1128
1140
  building: "building";
1129
1141
  built: "built";
1130
1142
  checking: "checking";
1131
- "not-ready": "not-ready";
1132
1143
  stale: "stale";
1133
1144
  }>>;
1134
1145
  summary: z.ZodString;
@@ -1170,14 +1181,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1170
1181
  }>;
1171
1182
  ok: z.ZodBoolean;
1172
1183
  status: z.ZodOptional<z.ZodEnum<{
1173
- failed: "failed";
1174
1184
  ready: "ready";
1185
+ "not-ready": "not-ready";
1186
+ failed: "failed";
1175
1187
  "not-configured": "not-configured";
1176
1188
  "not-built": "not-built";
1177
1189
  building: "building";
1178
1190
  built: "built";
1179
1191
  checking: "checking";
1180
- "not-ready": "not-ready";
1181
1192
  stale: "stale";
1182
1193
  }>>;
1183
1194
  summary: z.ZodString;
@@ -1220,14 +1231,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1220
1231
  generated_at: z.ZodString;
1221
1232
  project: z.ZodString;
1222
1233
  status: z.ZodEnum<{
1223
- failed: "failed";
1224
1234
  ready: "ready";
1235
+ "not-ready": "not-ready";
1236
+ failed: "failed";
1225
1237
  "not-configured": "not-configured";
1226
1238
  "not-built": "not-built";
1227
1239
  building: "building";
1228
1240
  built: "built";
1229
1241
  checking: "checking";
1230
- "not-ready": "not-ready";
1231
1242
  stale: "stale";
1232
1243
  }>;
1233
1244
  ready: z.ZodBoolean;
@@ -1247,14 +1258,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1247
1258
  }>;
1248
1259
  ok: z.ZodBoolean;
1249
1260
  status: z.ZodOptional<z.ZodEnum<{
1250
- failed: "failed";
1251
1261
  ready: "ready";
1262
+ "not-ready": "not-ready";
1263
+ failed: "failed";
1252
1264
  "not-configured": "not-configured";
1253
1265
  "not-built": "not-built";
1254
1266
  building: "building";
1255
1267
  built: "built";
1256
1268
  checking: "checking";
1257
- "not-ready": "not-ready";
1258
1269
  stale: "stale";
1259
1270
  }>>;
1260
1271
  summary: z.ZodString;
@@ -1296,14 +1307,14 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1296
1307
  }>;
1297
1308
  ok: z.ZodBoolean;
1298
1309
  status: z.ZodOptional<z.ZodEnum<{
1299
- failed: "failed";
1300
1310
  ready: "ready";
1311
+ "not-ready": "not-ready";
1312
+ failed: "failed";
1301
1313
  "not-configured": "not-configured";
1302
1314
  "not-built": "not-built";
1303
1315
  building: "building";
1304
1316
  built: "built";
1305
1317
  checking: "checking";
1306
- "not-ready": "not-ready";
1307
1318
  stale: "stale";
1308
1319
  }>>;
1309
1320
  summary: z.ZodString;
@@ -1332,9 +1343,9 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1332
1343
  artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1333
1344
  artifact_id: z.ZodString;
1334
1345
  status: z.ZodEnum<{
1346
+ ready: "ready";
1335
1347
  failed: "failed";
1336
1348
  skipped: "skipped";
1337
- ready: "ready";
1338
1349
  not_ready: "not_ready";
1339
1350
  }>;
1340
1351
  built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1351,6 +1362,9 @@ export declare const BuildRunListResponseSchema: z.ZodObject<{
1351
1362
  frontmatter_required_keys: "frontmatter_required_keys";
1352
1363
  frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
1353
1364
  source_refs_required: "source_refs_required";
1365
+ summary_backlinks_present: "summary_backlinks_present";
1366
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1367
+ graph_notes_connected: "graph_notes_connected";
1354
1368
  wikilinks_valid: "wikilinks_valid";
1355
1369
  must_not_contain: "must_not_contain";
1356
1370
  must_contain: "must_contain";
@@ -1390,6 +1404,14 @@ export declare const VerifyRunCreateRequestSchema: z.ZodObject<{
1390
1404
  }>>;
1391
1405
  agent_name: z.ZodOptional<z.ZodString>;
1392
1406
  }, z.core.$strict>;
1407
+ export declare const ProjectVerifyRunCreateRequestSchema: z.ZodObject<{
1408
+ target: z.ZodDefault<z.ZodEnum<{
1409
+ "source-files": "source-files";
1410
+ "context-graph": "context-graph";
1411
+ both: "both";
1412
+ }>>;
1413
+ agent_name: z.ZodOptional<z.ZodString>;
1414
+ }, z.core.$strict>;
1393
1415
  export declare const VerifyRunBatchSummarySchema: z.ZodObject<{
1394
1416
  child_run_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
1395
1417
  total_agents: z.ZodNumber;
@@ -1541,14 +1563,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1541
1563
  generated_at: z.ZodString;
1542
1564
  project: z.ZodString;
1543
1565
  status: z.ZodEnum<{
1544
- failed: "failed";
1545
1566
  ready: "ready";
1567
+ "not-ready": "not-ready";
1568
+ failed: "failed";
1546
1569
  "not-configured": "not-configured";
1547
1570
  "not-built": "not-built";
1548
1571
  building: "building";
1549
1572
  built: "built";
1550
1573
  checking: "checking";
1551
- "not-ready": "not-ready";
1552
1574
  stale: "stale";
1553
1575
  }>;
1554
1576
  ready: z.ZodBoolean;
@@ -1568,14 +1590,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1568
1590
  }>;
1569
1591
  ok: z.ZodBoolean;
1570
1592
  status: z.ZodOptional<z.ZodEnum<{
1571
- failed: "failed";
1572
1593
  ready: "ready";
1594
+ "not-ready": "not-ready";
1595
+ failed: "failed";
1573
1596
  "not-configured": "not-configured";
1574
1597
  "not-built": "not-built";
1575
1598
  building: "building";
1576
1599
  built: "built";
1577
1600
  checking: "checking";
1578
- "not-ready": "not-ready";
1579
1601
  stale: "stale";
1580
1602
  }>>;
1581
1603
  summary: z.ZodString;
@@ -1617,14 +1639,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1617
1639
  }>;
1618
1640
  ok: z.ZodBoolean;
1619
1641
  status: z.ZodOptional<z.ZodEnum<{
1620
- failed: "failed";
1621
1642
  ready: "ready";
1643
+ "not-ready": "not-ready";
1644
+ failed: "failed";
1622
1645
  "not-configured": "not-configured";
1623
1646
  "not-built": "not-built";
1624
1647
  building: "building";
1625
1648
  built: "built";
1626
1649
  checking: "checking";
1627
- "not-ready": "not-ready";
1628
1650
  stale: "stale";
1629
1651
  }>>;
1630
1652
  summary: z.ZodString;
@@ -1788,14 +1810,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1788
1810
  generated_at: z.ZodString;
1789
1811
  project: z.ZodString;
1790
1812
  status: z.ZodEnum<{
1791
- failed: "failed";
1792
1813
  ready: "ready";
1814
+ "not-ready": "not-ready";
1815
+ failed: "failed";
1793
1816
  "not-configured": "not-configured";
1794
1817
  "not-built": "not-built";
1795
1818
  building: "building";
1796
1819
  built: "built";
1797
1820
  checking: "checking";
1798
- "not-ready": "not-ready";
1799
1821
  stale: "stale";
1800
1822
  }>;
1801
1823
  ready: z.ZodBoolean;
@@ -1815,14 +1837,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1815
1837
  }>;
1816
1838
  ok: z.ZodBoolean;
1817
1839
  status: z.ZodOptional<z.ZodEnum<{
1818
- failed: "failed";
1819
1840
  ready: "ready";
1841
+ "not-ready": "not-ready";
1842
+ failed: "failed";
1820
1843
  "not-configured": "not-configured";
1821
1844
  "not-built": "not-built";
1822
1845
  building: "building";
1823
1846
  built: "built";
1824
1847
  checking: "checking";
1825
- "not-ready": "not-ready";
1826
1848
  stale: "stale";
1827
1849
  }>>;
1828
1850
  summary: z.ZodString;
@@ -1864,14 +1886,14 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1864
1886
  }>;
1865
1887
  ok: z.ZodBoolean;
1866
1888
  status: z.ZodOptional<z.ZodEnum<{
1867
- failed: "failed";
1868
1889
  ready: "ready";
1890
+ "not-ready": "not-ready";
1891
+ failed: "failed";
1869
1892
  "not-configured": "not-configured";
1870
1893
  "not-built": "not-built";
1871
1894
  building: "building";
1872
1895
  built: "built";
1873
1896
  checking: "checking";
1874
- "not-ready": "not-ready";
1875
1897
  stale: "stale";
1876
1898
  }>>;
1877
1899
  summary: z.ZodString;
@@ -1883,132 +1905,620 @@ export declare const VerifyRunResourceSchema: z.ZodObject<{
1883
1905
  }, z.core.$strict>], "type">>>;
1884
1906
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1885
1907
  }, z.core.$strict>;
1886
- /** `/v1/runs` projection the unified observable run view across all run kinds. */
1887
- export declare const RunObservabilityResourceSchema: z.ZodObject<{
1888
- kind: z.ZodLiteral<"interf-run-observability">;
1889
- version: z.ZodLiteral<1>;
1890
- run_id: z.ZodString;
1891
- run_type: z.ZodEnum<{
1892
- build: "build";
1893
- verify: "verify";
1894
- "benchmark-question-draft": "benchmark-question-draft";
1895
- "build-plan-draft": "build-plan-draft";
1896
- "build-plan-improvement": "build-plan-improvement";
1897
- job: "job";
1898
- }>;
1899
- title: z.ZodString;
1900
- status: z.ZodEnum<{
1901
- running: "running";
1902
- failed: "failed";
1903
- cancelled: "cancelled";
1904
- queued: "queued";
1905
- succeeded: "succeeded";
1906
- }>;
1907
- project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1908
- build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1909
- source_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1910
- output_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1911
- executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1912
- kind: z.ZodEnum<{
1913
- "local-agent": "local-agent";
1914
- "connected-provider": "connected-provider";
1915
- managed: "managed";
1916
- }>;
1917
- name: z.ZodString;
1918
- display_name: z.ZodString;
1919
- command: z.ZodNullable<z.ZodString>;
1920
- model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1921
- effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1922
- profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1923
- timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1924
- }, z.core.$strip>>>;
1925
- agent_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1926
- created_at: z.ZodString;
1927
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
- finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1929
- metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1930
- label: z.ZodString;
1931
- value: z.ZodString;
1932
- detail: z.ZodOptional<z.ZodString>;
1933
- }, z.core.$strict>>>;
1934
- artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1935
- path: z.ZodString;
1936
- role: z.ZodEnum<{
1937
- runtime: "runtime";
1938
- output: "output";
1939
- source: "source";
1940
- evidence: "evidence";
1941
- benchmark: "benchmark";
1942
- }>;
1943
- stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1944
- label: z.ZodOptional<z.ZodString>;
1945
- sha256: z.ZodOptional<z.ZodString>;
1946
- }, z.core.$strict>>>;
1947
- checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1948
- id: z.ZodString;
1949
- label: z.ZodString;
1950
- ok: z.ZodBoolean;
1951
- detail: z.ZodOptional<z.ZodString>;
1952
- }, z.core.$strict>>>;
1953
- context_checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1954
- id: z.ZodString;
1955
- label: z.ZodString;
1956
- description: z.ZodOptional<z.ZodString>;
1957
- backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
1958
- required: z.ZodDefault<z.ZodBoolean>;
1959
- evidence_expectation: z.ZodOptional<z.ZodString>;
1960
- status: z.ZodOptional<z.ZodEnum<{
1961
- passed: "passed";
1962
- pending: "pending";
1963
- running: "running";
1964
- failed: "failed";
1965
- skipped: "skipped";
1966
- }>>;
1967
- evidence: z.ZodOptional<z.ZodString>;
1968
- issue: z.ZodOptional<z.ZodString>;
1969
- }, z.core.$strict>>>;
1970
- readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1971
- kind: z.ZodLiteral<"interf-readiness-state">;
1972
- version: z.ZodLiteral<1>;
1973
- generated_at: z.ZodString;
1974
- project: z.ZodString;
1908
+ export declare const VerifyRunListResponseSchema: z.ZodObject<{
1909
+ runs: z.ZodArray<z.ZodObject<{
1910
+ run_id: z.ZodString;
1975
1911
  status: z.ZodEnum<{
1912
+ running: "running";
1976
1913
  failed: "failed";
1977
- ready: "ready";
1978
- "not-configured": "not-configured";
1979
- "not-built": "not-built";
1980
- building: "building";
1981
- built: "built";
1982
- checking: "checking";
1983
- "not-ready": "not-ready";
1984
- stale: "stale";
1914
+ cancelled: "cancelled";
1915
+ queued: "queued";
1916
+ succeeded: "succeeded";
1985
1917
  }>;
1986
- ready: z.ZodBoolean;
1987
- summary: z.ZodString;
1918
+ project: z.ZodString;
1919
+ target: z.ZodOptional<z.ZodEnum<{
1920
+ "source-files": "source-files";
1921
+ "context-graph": "context-graph";
1922
+ both: "both";
1923
+ }>>;
1924
+ source_path: z.ZodString;
1988
1925
  context_graph_path: z.ZodNullable<z.ZodString>;
1989
- latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1990
- latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1991
- build: z.ZodNullable<z.ZodObject<{
1992
- gate: z.ZodEnum<{
1926
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1927
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1929
+ kind: z.ZodEnum<{
1930
+ "local-agent": "local-agent";
1931
+ "connected-provider": "connected-provider";
1932
+ managed: "managed";
1933
+ }>;
1934
+ name: z.ZodString;
1935
+ display_name: z.ZodString;
1936
+ command: z.ZodNullable<z.ZodString>;
1937
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1938
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1939
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1940
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1941
+ }, z.core.$strip>>>;
1942
+ agent_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1943
+ parent_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1944
+ batch: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1945
+ child_run_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
1946
+ total_agents: z.ZodNumber;
1947
+ completed_agents: z.ZodNumber;
1948
+ succeeded_agents: z.ZodNumber;
1949
+ failed_agents: z.ZodNumber;
1950
+ }, z.core.$strict>>>;
1951
+ benchmark_run: z.ZodNullable<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1952
+ kind: z.ZodLiteral<"interf-benchmark-run">;
1953
+ version: z.ZodLiteral<1>;
1954
+ generated_at: z.ZodString;
1955
+ mode: z.ZodEnum<{
1956
+ "source-files": "source-files";
1993
1957
  "context-graph": "context-graph";
1994
- "project-config": "project-config";
1995
- "build-run": "build-run";
1996
- "artifact-diagnostics": "artifact-diagnostics";
1997
- "context-checks": "context-checks";
1998
- benchmarks: "benchmarks";
1999
- "benchmarks-current": "benchmarks-current";
1958
+ both: "both";
2000
1959
  }>;
2001
- ok: z.ZodBoolean;
2002
- status: z.ZodOptional<z.ZodEnum<{
2003
- failed: "failed";
2004
- ready: "ready";
2005
- "not-configured": "not-configured";
2006
- "not-built": "not-built";
2007
- building: "building";
2008
- built: "built";
2009
- checking: "checking";
2010
- "not-ready": "not-ready";
2011
- stale: "stale";
1960
+ source_path: z.ZodString;
1961
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
1962
+ project: z.ZodObject<{
1963
+ name: z.ZodString;
1964
+ context_graph_path: z.ZodNullable<z.ZodString>;
1965
+ }, z.core.$strip>;
1966
+ source_files: z.ZodNullable<z.ZodObject<{
1967
+ label: z.ZodString;
1968
+ run_path: z.ZodString;
1969
+ ok: z.ZodBoolean;
1970
+ passed_cases: z.ZodNumber;
1971
+ total_cases: z.ZodNumber;
1972
+ passed_checks: z.ZodNumber;
1973
+ total_checks: z.ZodNumber;
1974
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1975
+ kind: z.ZodEnum<{
1976
+ "local-agent": "local-agent";
1977
+ "connected-provider": "connected-provider";
1978
+ managed: "managed";
1979
+ }>;
1980
+ name: z.ZodString;
1981
+ display_name: z.ZodString;
1982
+ command: z.ZodNullable<z.ZodString>;
1983
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1984
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1985
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1987
+ }, z.core.$strip>>>;
1988
+ source_usage: z.ZodDefault<z.ZodEnum<{
1989
+ unknown: "unknown";
1990
+ "source-baseline": "source-baseline";
1991
+ "graph-only": "graph-only";
1992
+ "graph-source-verified": "graph-source-verified";
1993
+ }>>;
1994
+ target: z.ZodObject<{
1995
+ type: z.ZodEnum<{
1996
+ "source-files": "source-files";
1997
+ "context-graph": "context-graph";
1998
+ }>;
1999
+ name: z.ZodString;
2000
+ path: z.ZodString;
2001
+ build_plan: z.ZodString;
2002
+ }, z.core.$strip>;
2003
+ }, z.core.$strip>>;
2004
+ context_graph: z.ZodNullable<z.ZodObject<{
2005
+ label: z.ZodString;
2006
+ run_path: z.ZodString;
2007
+ ok: z.ZodBoolean;
2008
+ passed_cases: z.ZodNumber;
2009
+ total_cases: z.ZodNumber;
2010
+ passed_checks: z.ZodNumber;
2011
+ total_checks: z.ZodNumber;
2012
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2013
+ kind: z.ZodEnum<{
2014
+ "local-agent": "local-agent";
2015
+ "connected-provider": "connected-provider";
2016
+ managed: "managed";
2017
+ }>;
2018
+ name: z.ZodString;
2019
+ display_name: z.ZodString;
2020
+ command: z.ZodNullable<z.ZodString>;
2021
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2023
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2025
+ }, z.core.$strip>>>;
2026
+ source_usage: z.ZodDefault<z.ZodEnum<{
2027
+ unknown: "unknown";
2028
+ "source-baseline": "source-baseline";
2029
+ "graph-only": "graph-only";
2030
+ "graph-source-verified": "graph-source-verified";
2031
+ }>>;
2032
+ target: z.ZodObject<{
2033
+ type: z.ZodEnum<{
2034
+ "source-files": "source-files";
2035
+ "context-graph": "context-graph";
2036
+ }>;
2037
+ name: z.ZodString;
2038
+ path: z.ZodString;
2039
+ build_plan: z.ZodString;
2040
+ }, z.core.$strip>;
2041
+ }, z.core.$strip>>;
2042
+ summary: z.ZodObject<{
2043
+ source_files_pass_rate: z.ZodNullable<z.ZodNumber>;
2044
+ context_graph_pass_rate: z.ZodNullable<z.ZodNumber>;
2045
+ }, z.core.$strip>;
2046
+ }, z.core.$strip>>>;
2047
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2048
+ kind: z.ZodLiteral<"interf-readiness-state">;
2049
+ version: z.ZodLiteral<1>;
2050
+ generated_at: z.ZodString;
2051
+ project: z.ZodString;
2052
+ status: z.ZodEnum<{
2053
+ ready: "ready";
2054
+ "not-ready": "not-ready";
2055
+ failed: "failed";
2056
+ "not-configured": "not-configured";
2057
+ "not-built": "not-built";
2058
+ building: "building";
2059
+ built: "built";
2060
+ checking: "checking";
2061
+ stale: "stale";
2062
+ }>;
2063
+ ready: z.ZodBoolean;
2064
+ summary: z.ZodString;
2065
+ context_graph_path: z.ZodNullable<z.ZodString>;
2066
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2068
+ build: z.ZodNullable<z.ZodObject<{
2069
+ gate: z.ZodEnum<{
2070
+ "context-graph": "context-graph";
2071
+ "project-config": "project-config";
2072
+ "build-run": "build-run";
2073
+ "artifact-diagnostics": "artifact-diagnostics";
2074
+ "context-checks": "context-checks";
2075
+ benchmarks: "benchmarks";
2076
+ "benchmarks-current": "benchmarks-current";
2077
+ }>;
2078
+ ok: z.ZodBoolean;
2079
+ status: z.ZodOptional<z.ZodEnum<{
2080
+ ready: "ready";
2081
+ "not-ready": "not-ready";
2082
+ failed: "failed";
2083
+ "not-configured": "not-configured";
2084
+ "not-built": "not-built";
2085
+ building: "building";
2086
+ built: "built";
2087
+ checking: "checking";
2088
+ stale: "stale";
2089
+ }>>;
2090
+ summary: z.ZodString;
2091
+ detail: z.ZodOptional<z.ZodString>;
2092
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2093
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2094
+ }, z.core.$strict>>;
2095
+ check_results: z.ZodObject<{
2096
+ configured: z.ZodNumber;
2097
+ fingerprint: z.ZodNullable<z.ZodString>;
2098
+ source_files: z.ZodNullable<z.ZodObject<{
2099
+ passed: z.ZodNumber;
2100
+ total: z.ZodNumber;
2101
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2102
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2103
+ stale: z.ZodDefault<z.ZodBoolean>;
2104
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2105
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2106
+ }, z.core.$strict>>;
2107
+ context_graph: z.ZodNullable<z.ZodObject<{
2108
+ passed: z.ZodNumber;
2109
+ total: z.ZodNumber;
2110
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2111
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2112
+ stale: z.ZodDefault<z.ZodBoolean>;
2113
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2114
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2115
+ }, z.core.$strict>>;
2116
+ }, z.core.$strict>;
2117
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2118
+ gate: z.ZodEnum<{
2119
+ "context-graph": "context-graph";
2120
+ "project-config": "project-config";
2121
+ "build-run": "build-run";
2122
+ "artifact-diagnostics": "artifact-diagnostics";
2123
+ "context-checks": "context-checks";
2124
+ benchmarks: "benchmarks";
2125
+ "benchmarks-current": "benchmarks-current";
2126
+ }>;
2127
+ ok: z.ZodBoolean;
2128
+ status: z.ZodOptional<z.ZodEnum<{
2129
+ ready: "ready";
2130
+ "not-ready": "not-ready";
2131
+ failed: "failed";
2132
+ "not-configured": "not-configured";
2133
+ "not-built": "not-built";
2134
+ building: "building";
2135
+ built: "built";
2136
+ checking: "checking";
2137
+ stale: "stale";
2138
+ }>>;
2139
+ summary: z.ZodString;
2140
+ detail: z.ZodOptional<z.ZodString>;
2141
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2142
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2143
+ }, z.core.$strict>>>;
2144
+ }, z.core.$strict>>>;
2145
+ events: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2146
+ event_id: z.ZodString;
2147
+ run_id: z.ZodString;
2148
+ timestamp: z.ZodString;
2149
+ type: z.ZodLiteral<"run.started">;
2150
+ project: z.ZodString;
2151
+ build_plan: z.ZodOptional<z.ZodString>;
2152
+ context_graph_path: z.ZodOptional<z.ZodString>;
2153
+ backend: z.ZodEnum<{
2154
+ native: "native";
2155
+ }>;
2156
+ }, z.core.$strict>, z.ZodObject<{
2157
+ event_id: z.ZodString;
2158
+ run_id: z.ZodString;
2159
+ timestamp: z.ZodString;
2160
+ type: z.ZodLiteral<"stage.started">;
2161
+ stage_id: z.ZodString;
2162
+ stage_index: z.ZodOptional<z.ZodNumber>;
2163
+ stage_total: z.ZodOptional<z.ZodNumber>;
2164
+ logs: z.ZodOptional<z.ZodObject<{
2165
+ prompt_path: z.ZodOptional<z.ZodString>;
2166
+ event_stream_path: z.ZodOptional<z.ZodString>;
2167
+ status_path: z.ZodOptional<z.ZodString>;
2168
+ contract_path: z.ZodOptional<z.ZodString>;
2169
+ evidence_path: z.ZodOptional<z.ZodString>;
2170
+ }, z.core.$strict>>;
2171
+ }, z.core.$strict>, z.ZodObject<{
2172
+ event_id: z.ZodString;
2173
+ run_id: z.ZodString;
2174
+ timestamp: z.ZodString;
2175
+ type: z.ZodLiteral<"file.processed">;
2176
+ stage_id: z.ZodString;
2177
+ path: z.ZodString;
2178
+ }, z.core.$strict>, z.ZodObject<{
2179
+ event_id: z.ZodString;
2180
+ run_id: z.ZodString;
2181
+ timestamp: z.ZodString;
2182
+ type: z.ZodLiteral<"artifact.written">;
2183
+ stage_id: z.ZodString;
2184
+ artifact: z.ZodObject<{
2185
+ path: z.ZodString;
2186
+ role: z.ZodEnum<{
2187
+ runtime: "runtime";
2188
+ output: "output";
2189
+ source: "source";
2190
+ evidence: "evidence";
2191
+ benchmark: "benchmark";
2192
+ }>;
2193
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2194
+ label: z.ZodOptional<z.ZodString>;
2195
+ sha256: z.ZodOptional<z.ZodString>;
2196
+ }, z.core.$strict>;
2197
+ }, z.core.$strict>, z.ZodObject<{
2198
+ event_id: z.ZodString;
2199
+ run_id: z.ZodString;
2200
+ timestamp: z.ZodString;
2201
+ type: z.ZodLiteral<"evidence.updated">;
2202
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2203
+ evidence: z.ZodObject<{
2204
+ id: z.ZodString;
2205
+ run_id: z.ZodString;
2206
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2207
+ generated_at: z.ZodString;
2208
+ summary: z.ZodString;
2209
+ files_processed: z.ZodOptional<z.ZodNumber>;
2210
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2211
+ path: z.ZodString;
2212
+ role: z.ZodEnum<{
2213
+ runtime: "runtime";
2214
+ output: "output";
2215
+ source: "source";
2216
+ evidence: "evidence";
2217
+ benchmark: "benchmark";
2218
+ }>;
2219
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2220
+ label: z.ZodOptional<z.ZodString>;
2221
+ sha256: z.ZodOptional<z.ZodString>;
2222
+ }, z.core.$strict>>>;
2223
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2224
+ id: z.ZodString;
2225
+ label: z.ZodString;
2226
+ ok: z.ZodBoolean;
2227
+ detail: z.ZodOptional<z.ZodString>;
2228
+ }, z.core.$strict>>>;
2229
+ }, z.core.$strict>;
2230
+ }, z.core.$strict>, z.ZodObject<{
2231
+ event_id: z.ZodString;
2232
+ run_id: z.ZodString;
2233
+ timestamp: z.ZodString;
2234
+ type: z.ZodLiteral<"log.appended">;
2235
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2236
+ stream: z.ZodEnum<{
2237
+ status: "status";
2238
+ trace: "trace";
2239
+ system: "system";
2240
+ }>;
2241
+ message: z.ZodString;
2242
+ }, z.core.$strict>, z.ZodObject<{
2243
+ event_id: z.ZodString;
2244
+ run_id: z.ZodString;
2245
+ timestamp: z.ZodString;
2246
+ type: z.ZodLiteral<"stage.passed">;
2247
+ stage_id: z.ZodString;
2248
+ summary: z.ZodOptional<z.ZodString>;
2249
+ }, z.core.$strict>, z.ZodObject<{
2250
+ event_id: z.ZodString;
2251
+ run_id: z.ZodString;
2252
+ timestamp: z.ZodString;
2253
+ type: z.ZodLiteral<"stage.failed">;
2254
+ stage_id: z.ZodString;
2255
+ error: z.ZodString;
2256
+ }, z.core.$strict>, z.ZodObject<{
2257
+ event_id: z.ZodString;
2258
+ run_id: z.ZodString;
2259
+ timestamp: z.ZodString;
2260
+ type: z.ZodLiteral<"run.completed">;
2261
+ summary: z.ZodOptional<z.ZodString>;
2262
+ }, z.core.$strict>, z.ZodObject<{
2263
+ event_id: z.ZodString;
2264
+ run_id: z.ZodString;
2265
+ timestamp: z.ZodString;
2266
+ type: z.ZodLiteral<"run.failed">;
2267
+ error: z.ZodString;
2268
+ }, z.core.$strict>, z.ZodObject<{
2269
+ event_id: z.ZodString;
2270
+ run_id: z.ZodString;
2271
+ timestamp: z.ZodString;
2272
+ type: z.ZodLiteral<"run.cancelled">;
2273
+ reason: z.ZodOptional<z.ZodString>;
2274
+ }, z.core.$strict>, z.ZodObject<{
2275
+ event_id: z.ZodString;
2276
+ run_id: z.ZodString;
2277
+ timestamp: z.ZodString;
2278
+ type: z.ZodLiteral<"checks.evaluated">;
2279
+ passed: z.ZodNumber;
2280
+ total: z.ZodNumber;
2281
+ target: z.ZodOptional<z.ZodEnum<{
2282
+ "source-files": "source-files";
2283
+ "context-graph": "context-graph";
2284
+ }>>;
2285
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
2286
+ stale: z.ZodOptional<z.ZodBoolean>;
2287
+ test_run_id: z.ZodOptional<z.ZodString>;
2288
+ }, z.core.$strict>, z.ZodObject<{
2289
+ event_id: z.ZodString;
2290
+ run_id: z.ZodString;
2291
+ timestamp: z.ZodString;
2292
+ type: z.ZodLiteral<"readiness.updated">;
2293
+ project: z.ZodString;
2294
+ readiness: z.ZodObject<{
2295
+ kind: z.ZodLiteral<"interf-readiness-state">;
2296
+ version: z.ZodLiteral<1>;
2297
+ generated_at: z.ZodString;
2298
+ project: z.ZodString;
2299
+ status: z.ZodEnum<{
2300
+ ready: "ready";
2301
+ "not-ready": "not-ready";
2302
+ failed: "failed";
2303
+ "not-configured": "not-configured";
2304
+ "not-built": "not-built";
2305
+ building: "building";
2306
+ built: "built";
2307
+ checking: "checking";
2308
+ stale: "stale";
2309
+ }>;
2310
+ ready: z.ZodBoolean;
2311
+ summary: z.ZodString;
2312
+ context_graph_path: z.ZodNullable<z.ZodString>;
2313
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2314
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2315
+ build: z.ZodNullable<z.ZodObject<{
2316
+ gate: z.ZodEnum<{
2317
+ "context-graph": "context-graph";
2318
+ "project-config": "project-config";
2319
+ "build-run": "build-run";
2320
+ "artifact-diagnostics": "artifact-diagnostics";
2321
+ "context-checks": "context-checks";
2322
+ benchmarks: "benchmarks";
2323
+ "benchmarks-current": "benchmarks-current";
2324
+ }>;
2325
+ ok: z.ZodBoolean;
2326
+ status: z.ZodOptional<z.ZodEnum<{
2327
+ ready: "ready";
2328
+ "not-ready": "not-ready";
2329
+ failed: "failed";
2330
+ "not-configured": "not-configured";
2331
+ "not-built": "not-built";
2332
+ building: "building";
2333
+ built: "built";
2334
+ checking: "checking";
2335
+ stale: "stale";
2336
+ }>>;
2337
+ summary: z.ZodString;
2338
+ detail: z.ZodOptional<z.ZodString>;
2339
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2340
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2341
+ }, z.core.$strict>>;
2342
+ check_results: z.ZodObject<{
2343
+ configured: z.ZodNumber;
2344
+ fingerprint: z.ZodNullable<z.ZodString>;
2345
+ source_files: z.ZodNullable<z.ZodObject<{
2346
+ passed: z.ZodNumber;
2347
+ total: z.ZodNumber;
2348
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2349
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2350
+ stale: z.ZodDefault<z.ZodBoolean>;
2351
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2352
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2353
+ }, z.core.$strict>>;
2354
+ context_graph: z.ZodNullable<z.ZodObject<{
2355
+ passed: z.ZodNumber;
2356
+ total: z.ZodNumber;
2357
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2358
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2359
+ stale: z.ZodDefault<z.ZodBoolean>;
2360
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2361
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2362
+ }, z.core.$strict>>;
2363
+ }, z.core.$strict>;
2364
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2365
+ gate: z.ZodEnum<{
2366
+ "context-graph": "context-graph";
2367
+ "project-config": "project-config";
2368
+ "build-run": "build-run";
2369
+ "artifact-diagnostics": "artifact-diagnostics";
2370
+ "context-checks": "context-checks";
2371
+ benchmarks: "benchmarks";
2372
+ "benchmarks-current": "benchmarks-current";
2373
+ }>;
2374
+ ok: z.ZodBoolean;
2375
+ status: z.ZodOptional<z.ZodEnum<{
2376
+ ready: "ready";
2377
+ "not-ready": "not-ready";
2378
+ failed: "failed";
2379
+ "not-configured": "not-configured";
2380
+ "not-built": "not-built";
2381
+ building: "building";
2382
+ built: "built";
2383
+ checking: "checking";
2384
+ stale: "stale";
2385
+ }>>;
2386
+ summary: z.ZodString;
2387
+ detail: z.ZodOptional<z.ZodString>;
2388
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2389
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2390
+ }, z.core.$strict>>>;
2391
+ }, z.core.$strict>;
2392
+ }, z.core.$strict>], "type">>>;
2393
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2394
+ }, z.core.$strict>>;
2395
+ }, z.core.$strict>;
2396
+ /** `/v1/runs` projection — the unified observable run view across all run kinds. */
2397
+ export declare const RunObservabilityResourceSchema: z.ZodObject<{
2398
+ kind: z.ZodLiteral<"interf-run-observability">;
2399
+ version: z.ZodLiteral<1>;
2400
+ run_id: z.ZodString;
2401
+ run_type: z.ZodEnum<{
2402
+ build: "build";
2403
+ verify: "verify";
2404
+ "benchmark-question-draft": "benchmark-question-draft";
2405
+ "build-plan-draft": "build-plan-draft";
2406
+ "build-plan-improvement": "build-plan-improvement";
2407
+ job: "job";
2408
+ }>;
2409
+ title: z.ZodString;
2410
+ status: z.ZodEnum<{
2411
+ running: "running";
2412
+ failed: "failed";
2413
+ cancelled: "cancelled";
2414
+ queued: "queued";
2415
+ succeeded: "succeeded";
2416
+ }>;
2417
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2418
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2419
+ source_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2420
+ output_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2421
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2422
+ kind: z.ZodEnum<{
2423
+ "local-agent": "local-agent";
2424
+ "connected-provider": "connected-provider";
2425
+ managed: "managed";
2426
+ }>;
2427
+ name: z.ZodString;
2428
+ display_name: z.ZodString;
2429
+ command: z.ZodNullable<z.ZodString>;
2430
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2431
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2433
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2434
+ }, z.core.$strip>>>;
2435
+ agent_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2436
+ created_at: z.ZodString;
2437
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2438
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2439
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2440
+ label: z.ZodString;
2441
+ value: z.ZodString;
2442
+ detail: z.ZodOptional<z.ZodString>;
2443
+ }, z.core.$strict>>>;
2444
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2445
+ path: z.ZodString;
2446
+ role: z.ZodEnum<{
2447
+ runtime: "runtime";
2448
+ output: "output";
2449
+ source: "source";
2450
+ evidence: "evidence";
2451
+ benchmark: "benchmark";
2452
+ }>;
2453
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
+ label: z.ZodOptional<z.ZodString>;
2455
+ sha256: z.ZodOptional<z.ZodString>;
2456
+ }, z.core.$strict>>>;
2457
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2458
+ id: z.ZodString;
2459
+ label: z.ZodString;
2460
+ ok: z.ZodBoolean;
2461
+ detail: z.ZodOptional<z.ZodString>;
2462
+ }, z.core.$strict>>>;
2463
+ context_checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ label: z.ZodString;
2466
+ description: z.ZodOptional<z.ZodString>;
2467
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
2468
+ required: z.ZodDefault<z.ZodBoolean>;
2469
+ evidence_expectation: z.ZodOptional<z.ZodString>;
2470
+ status: z.ZodOptional<z.ZodEnum<{
2471
+ passed: "passed";
2472
+ pending: "pending";
2473
+ running: "running";
2474
+ failed: "failed";
2475
+ skipped: "skipped";
2476
+ }>>;
2477
+ evidence: z.ZodOptional<z.ZodString>;
2478
+ issue: z.ZodOptional<z.ZodString>;
2479
+ }, z.core.$strict>>>;
2480
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2481
+ kind: z.ZodLiteral<"interf-readiness-state">;
2482
+ version: z.ZodLiteral<1>;
2483
+ generated_at: z.ZodString;
2484
+ project: z.ZodString;
2485
+ status: z.ZodEnum<{
2486
+ ready: "ready";
2487
+ "not-ready": "not-ready";
2488
+ failed: "failed";
2489
+ "not-configured": "not-configured";
2490
+ "not-built": "not-built";
2491
+ building: "building";
2492
+ built: "built";
2493
+ checking: "checking";
2494
+ stale: "stale";
2495
+ }>;
2496
+ ready: z.ZodBoolean;
2497
+ summary: z.ZodString;
2498
+ context_graph_path: z.ZodNullable<z.ZodString>;
2499
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2500
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2501
+ build: z.ZodNullable<z.ZodObject<{
2502
+ gate: z.ZodEnum<{
2503
+ "context-graph": "context-graph";
2504
+ "project-config": "project-config";
2505
+ "build-run": "build-run";
2506
+ "artifact-diagnostics": "artifact-diagnostics";
2507
+ "context-checks": "context-checks";
2508
+ benchmarks: "benchmarks";
2509
+ "benchmarks-current": "benchmarks-current";
2510
+ }>;
2511
+ ok: z.ZodBoolean;
2512
+ status: z.ZodOptional<z.ZodEnum<{
2513
+ ready: "ready";
2514
+ "not-ready": "not-ready";
2515
+ failed: "failed";
2516
+ "not-configured": "not-configured";
2517
+ "not-built": "not-built";
2518
+ building: "building";
2519
+ built: "built";
2520
+ checking: "checking";
2521
+ stale: "stale";
2012
2522
  }>>;
2013
2523
  summary: z.ZodString;
2014
2524
  detail: z.ZodOptional<z.ZodString>;
@@ -2049,14 +2559,14 @@ export declare const RunObservabilityResourceSchema: z.ZodObject<{
2049
2559
  }>;
2050
2560
  ok: z.ZodBoolean;
2051
2561
  status: z.ZodOptional<z.ZodEnum<{
2052
- failed: "failed";
2053
2562
  ready: "ready";
2563
+ "not-ready": "not-ready";
2564
+ failed: "failed";
2054
2565
  "not-configured": "not-configured";
2055
2566
  "not-built": "not-built";
2056
2567
  building: "building";
2057
2568
  built: "built";
2058
2569
  checking: "checking";
2059
- "not-ready": "not-ready";
2060
2570
  stale: "stale";
2061
2571
  }>>;
2062
2572
  summary: z.ZodString;
@@ -2218,14 +2728,14 @@ export declare const RunObservabilityListResponseSchema: z.ZodObject<{
2218
2728
  generated_at: z.ZodString;
2219
2729
  project: z.ZodString;
2220
2730
  status: z.ZodEnum<{
2221
- failed: "failed";
2222
2731
  ready: "ready";
2732
+ "not-ready": "not-ready";
2733
+ failed: "failed";
2223
2734
  "not-configured": "not-configured";
2224
2735
  "not-built": "not-built";
2225
2736
  building: "building";
2226
2737
  built: "built";
2227
2738
  checking: "checking";
2228
- "not-ready": "not-ready";
2229
2739
  stale: "stale";
2230
2740
  }>;
2231
2741
  ready: z.ZodBoolean;
@@ -2245,14 +2755,14 @@ export declare const RunObservabilityListResponseSchema: z.ZodObject<{
2245
2755
  }>;
2246
2756
  ok: z.ZodBoolean;
2247
2757
  status: z.ZodOptional<z.ZodEnum<{
2248
- failed: "failed";
2249
2758
  ready: "ready";
2759
+ "not-ready": "not-ready";
2760
+ failed: "failed";
2250
2761
  "not-configured": "not-configured";
2251
2762
  "not-built": "not-built";
2252
2763
  building: "building";
2253
2764
  built: "built";
2254
2765
  checking: "checking";
2255
- "not-ready": "not-ready";
2256
2766
  stale: "stale";
2257
2767
  }>>;
2258
2768
  summary: z.ZodString;
@@ -2294,14 +2804,14 @@ export declare const RunObservabilityListResponseSchema: z.ZodObject<{
2294
2804
  }>;
2295
2805
  ok: z.ZodBoolean;
2296
2806
  status: z.ZodOptional<z.ZodEnum<{
2297
- failed: "failed";
2298
2807
  ready: "ready";
2808
+ "not-ready": "not-ready";
2809
+ failed: "failed";
2299
2810
  "not-configured": "not-configured";
2300
2811
  "not-built": "not-built";
2301
2812
  building: "building";
2302
2813
  built: "built";
2303
2814
  checking: "checking";
2304
- "not-ready": "not-ready";
2305
2815
  stale: "stale";
2306
2816
  }>>;
2307
2817
  summary: z.ZodString;
@@ -2413,14 +2923,14 @@ export declare const RunStatusResourceSchema: z.ZodObject<{
2413
2923
  generated_at: z.ZodString;
2414
2924
  project: z.ZodString;
2415
2925
  status: z.ZodEnum<{
2416
- failed: "failed";
2417
2926
  ready: "ready";
2927
+ "not-ready": "not-ready";
2928
+ failed: "failed";
2418
2929
  "not-configured": "not-configured";
2419
2930
  "not-built": "not-built";
2420
2931
  building: "building";
2421
2932
  built: "built";
2422
2933
  checking: "checking";
2423
- "not-ready": "not-ready";
2424
2934
  stale: "stale";
2425
2935
  }>;
2426
2936
  ready: z.ZodBoolean;
@@ -2440,14 +2950,14 @@ export declare const RunStatusResourceSchema: z.ZodObject<{
2440
2950
  }>;
2441
2951
  ok: z.ZodBoolean;
2442
2952
  status: z.ZodOptional<z.ZodEnum<{
2443
- failed: "failed";
2444
2953
  ready: "ready";
2954
+ "not-ready": "not-ready";
2955
+ failed: "failed";
2445
2956
  "not-configured": "not-configured";
2446
2957
  "not-built": "not-built";
2447
2958
  building: "building";
2448
2959
  built: "built";
2449
2960
  checking: "checking";
2450
- "not-ready": "not-ready";
2451
2961
  stale: "stale";
2452
2962
  }>>;
2453
2963
  summary: z.ZodString;
@@ -2489,14 +2999,14 @@ export declare const RunStatusResourceSchema: z.ZodObject<{
2489
2999
  }>;
2490
3000
  ok: z.ZodBoolean;
2491
3001
  status: z.ZodOptional<z.ZodEnum<{
2492
- failed: "failed";
2493
3002
  ready: "ready";
3003
+ "not-ready": "not-ready";
3004
+ failed: "failed";
2494
3005
  "not-configured": "not-configured";
2495
3006
  "not-built": "not-built";
2496
3007
  building: "building";
2497
3008
  built: "built";
2498
3009
  checking: "checking";
2499
- "not-ready": "not-ready";
2500
3010
  stale: "stale";
2501
3011
  }>>;
2502
3012
  summary: z.ZodString;
@@ -2504,59 +3014,332 @@ export declare const RunStatusResourceSchema: z.ZodObject<{
2504
3014
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2505
3015
  artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2506
3016
  }, z.core.$strict>>>;
2507
- }, z.core.$strict>>>;
2508
- latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2509
- latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2510
- detail_hint: z.ZodString;
3017
+ }, z.core.$strict>>>;
3018
+ latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3019
+ latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3020
+ detail_hint: z.ZodString;
3021
+ }, z.core.$strict>;
3022
+ export declare const RunStatusListResponseSchema: z.ZodObject<{
3023
+ runs: z.ZodArray<z.ZodObject<{
3024
+ kind: z.ZodLiteral<"interf-run-status">;
3025
+ version: z.ZodLiteral<1>;
3026
+ run_id: z.ZodString;
3027
+ run_type: z.ZodEnum<{
3028
+ build: "build";
3029
+ verify: "verify";
3030
+ "benchmark-question-draft": "benchmark-question-draft";
3031
+ "build-plan-draft": "build-plan-draft";
3032
+ "build-plan-improvement": "build-plan-improvement";
3033
+ job: "job";
3034
+ }>;
3035
+ title: z.ZodString;
3036
+ status: z.ZodEnum<{
3037
+ running: "running";
3038
+ failed: "failed";
3039
+ cancelled: "cancelled";
3040
+ queued: "queued";
3041
+ succeeded: "succeeded";
3042
+ }>;
3043
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3044
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3045
+ created_at: z.ZodString;
3046
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3047
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3048
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
3049
+ label: z.ZodString;
3050
+ value: z.ZodString;
3051
+ detail: z.ZodOptional<z.ZodString>;
3052
+ }, z.core.$strict>>>;
3053
+ artifact_count: z.ZodNumber;
3054
+ check_count: z.ZodNumber;
3055
+ context_check_count: z.ZodNumber;
3056
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3057
+ kind: z.ZodLiteral<"interf-readiness-state">;
3058
+ version: z.ZodLiteral<1>;
3059
+ generated_at: z.ZodString;
3060
+ project: z.ZodString;
3061
+ status: z.ZodEnum<{
3062
+ ready: "ready";
3063
+ "not-ready": "not-ready";
3064
+ failed: "failed";
3065
+ "not-configured": "not-configured";
3066
+ "not-built": "not-built";
3067
+ building: "building";
3068
+ built: "built";
3069
+ checking: "checking";
3070
+ stale: "stale";
3071
+ }>;
3072
+ ready: z.ZodBoolean;
3073
+ summary: z.ZodString;
3074
+ context_graph_path: z.ZodNullable<z.ZodString>;
3075
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3076
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3077
+ build: z.ZodNullable<z.ZodObject<{
3078
+ gate: z.ZodEnum<{
3079
+ "context-graph": "context-graph";
3080
+ "project-config": "project-config";
3081
+ "build-run": "build-run";
3082
+ "artifact-diagnostics": "artifact-diagnostics";
3083
+ "context-checks": "context-checks";
3084
+ benchmarks: "benchmarks";
3085
+ "benchmarks-current": "benchmarks-current";
3086
+ }>;
3087
+ ok: z.ZodBoolean;
3088
+ status: z.ZodOptional<z.ZodEnum<{
3089
+ ready: "ready";
3090
+ "not-ready": "not-ready";
3091
+ failed: "failed";
3092
+ "not-configured": "not-configured";
3093
+ "not-built": "not-built";
3094
+ building: "building";
3095
+ built: "built";
3096
+ checking: "checking";
3097
+ stale: "stale";
3098
+ }>>;
3099
+ summary: z.ZodString;
3100
+ detail: z.ZodOptional<z.ZodString>;
3101
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3102
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3103
+ }, z.core.$strict>>;
3104
+ check_results: z.ZodObject<{
3105
+ configured: z.ZodNumber;
3106
+ fingerprint: z.ZodNullable<z.ZodString>;
3107
+ source_files: z.ZodNullable<z.ZodObject<{
3108
+ passed: z.ZodNumber;
3109
+ total: z.ZodNumber;
3110
+ pass_rate: z.ZodNullable<z.ZodNumber>;
3111
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3112
+ stale: z.ZodDefault<z.ZodBoolean>;
3113
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3114
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3115
+ }, z.core.$strict>>;
3116
+ context_graph: z.ZodNullable<z.ZodObject<{
3117
+ passed: z.ZodNumber;
3118
+ total: z.ZodNumber;
3119
+ pass_rate: z.ZodNullable<z.ZodNumber>;
3120
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3121
+ stale: z.ZodDefault<z.ZodBoolean>;
3122
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3123
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3124
+ }, z.core.$strict>>;
3125
+ }, z.core.$strict>;
3126
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
3127
+ gate: z.ZodEnum<{
3128
+ "context-graph": "context-graph";
3129
+ "project-config": "project-config";
3130
+ "build-run": "build-run";
3131
+ "artifact-diagnostics": "artifact-diagnostics";
3132
+ "context-checks": "context-checks";
3133
+ benchmarks: "benchmarks";
3134
+ "benchmarks-current": "benchmarks-current";
3135
+ }>;
3136
+ ok: z.ZodBoolean;
3137
+ status: z.ZodOptional<z.ZodEnum<{
3138
+ ready: "ready";
3139
+ "not-ready": "not-ready";
3140
+ failed: "failed";
3141
+ "not-configured": "not-configured";
3142
+ "not-built": "not-built";
3143
+ building: "building";
3144
+ built: "built";
3145
+ checking: "checking";
3146
+ stale: "stale";
3147
+ }>>;
3148
+ summary: z.ZodString;
3149
+ detail: z.ZodOptional<z.ZodString>;
3150
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3151
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3152
+ }, z.core.$strict>>>;
3153
+ }, z.core.$strict>>>;
3154
+ latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3155
+ latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3156
+ detail_hint: z.ZodString;
3157
+ }, z.core.$strict>>;
2511
3158
  }, z.core.$strict>;
2512
- export declare const RunStatusListResponseSchema: z.ZodObject<{
2513
- runs: z.ZodArray<z.ZodObject<{
2514
- kind: z.ZodLiteral<"interf-run-status">;
2515
- version: z.ZodLiteral<1>;
3159
+ export declare const RunArtifactsResponseSchema: z.ZodObject<{
3160
+ artifacts: z.ZodArray<z.ZodObject<{
3161
+ path: z.ZodString;
3162
+ role: z.ZodEnum<{
3163
+ runtime: "runtime";
3164
+ output: "output";
3165
+ source: "source";
3166
+ evidence: "evidence";
3167
+ benchmark: "benchmark";
3168
+ }>;
3169
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3170
+ label: z.ZodOptional<z.ZodString>;
3171
+ sha256: z.ZodOptional<z.ZodString>;
3172
+ }, z.core.$strict>>;
3173
+ }, z.core.$strict>;
3174
+ /**
3175
+ * `GET /v1/runs/<run-id>/events` — the durable event log for a Build run. Same
3176
+ * shape the server emits at server-routes-runs.ts; reused by the CLI
3177
+ * `runs events` reader and MCP so the event stream stays one definition.
3178
+ */
3179
+ export declare const RunEventsResponseSchema: z.ZodObject<{
3180
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3181
+ event_id: z.ZodString;
2516
3182
  run_id: z.ZodString;
2517
- run_type: z.ZodEnum<{
2518
- build: "build";
2519
- verify: "verify";
2520
- "benchmark-question-draft": "benchmark-question-draft";
2521
- "build-plan-draft": "build-plan-draft";
2522
- "build-plan-improvement": "build-plan-improvement";
2523
- job: "job";
3183
+ timestamp: z.ZodString;
3184
+ type: z.ZodLiteral<"run.started">;
3185
+ project: z.ZodString;
3186
+ build_plan: z.ZodOptional<z.ZodString>;
3187
+ context_graph_path: z.ZodOptional<z.ZodString>;
3188
+ backend: z.ZodEnum<{
3189
+ native: "native";
2524
3190
  }>;
2525
- title: z.ZodString;
2526
- status: z.ZodEnum<{
2527
- running: "running";
2528
- failed: "failed";
2529
- cancelled: "cancelled";
2530
- queued: "queued";
2531
- succeeded: "succeeded";
3191
+ }, z.core.$strict>, z.ZodObject<{
3192
+ event_id: z.ZodString;
3193
+ run_id: z.ZodString;
3194
+ timestamp: z.ZodString;
3195
+ type: z.ZodLiteral<"stage.started">;
3196
+ stage_id: z.ZodString;
3197
+ stage_index: z.ZodOptional<z.ZodNumber>;
3198
+ stage_total: z.ZodOptional<z.ZodNumber>;
3199
+ logs: z.ZodOptional<z.ZodObject<{
3200
+ prompt_path: z.ZodOptional<z.ZodString>;
3201
+ event_stream_path: z.ZodOptional<z.ZodString>;
3202
+ status_path: z.ZodOptional<z.ZodString>;
3203
+ contract_path: z.ZodOptional<z.ZodString>;
3204
+ evidence_path: z.ZodOptional<z.ZodString>;
3205
+ }, z.core.$strict>>;
3206
+ }, z.core.$strict>, z.ZodObject<{
3207
+ event_id: z.ZodString;
3208
+ run_id: z.ZodString;
3209
+ timestamp: z.ZodString;
3210
+ type: z.ZodLiteral<"file.processed">;
3211
+ stage_id: z.ZodString;
3212
+ path: z.ZodString;
3213
+ }, z.core.$strict>, z.ZodObject<{
3214
+ event_id: z.ZodString;
3215
+ run_id: z.ZodString;
3216
+ timestamp: z.ZodString;
3217
+ type: z.ZodLiteral<"artifact.written">;
3218
+ stage_id: z.ZodString;
3219
+ artifact: z.ZodObject<{
3220
+ path: z.ZodString;
3221
+ role: z.ZodEnum<{
3222
+ runtime: "runtime";
3223
+ output: "output";
3224
+ source: "source";
3225
+ evidence: "evidence";
3226
+ benchmark: "benchmark";
3227
+ }>;
3228
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3229
+ label: z.ZodOptional<z.ZodString>;
3230
+ sha256: z.ZodOptional<z.ZodString>;
3231
+ }, z.core.$strict>;
3232
+ }, z.core.$strict>, z.ZodObject<{
3233
+ event_id: z.ZodString;
3234
+ run_id: z.ZodString;
3235
+ timestamp: z.ZodString;
3236
+ type: z.ZodLiteral<"evidence.updated">;
3237
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3238
+ evidence: z.ZodObject<{
3239
+ id: z.ZodString;
3240
+ run_id: z.ZodString;
3241
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3242
+ generated_at: z.ZodString;
3243
+ summary: z.ZodString;
3244
+ files_processed: z.ZodOptional<z.ZodNumber>;
3245
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
3246
+ path: z.ZodString;
3247
+ role: z.ZodEnum<{
3248
+ runtime: "runtime";
3249
+ output: "output";
3250
+ source: "source";
3251
+ evidence: "evidence";
3252
+ benchmark: "benchmark";
3253
+ }>;
3254
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3255
+ label: z.ZodOptional<z.ZodString>;
3256
+ sha256: z.ZodOptional<z.ZodString>;
3257
+ }, z.core.$strict>>>;
3258
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
3259
+ id: z.ZodString;
3260
+ label: z.ZodString;
3261
+ ok: z.ZodBoolean;
3262
+ detail: z.ZodOptional<z.ZodString>;
3263
+ }, z.core.$strict>>>;
3264
+ }, z.core.$strict>;
3265
+ }, z.core.$strict>, z.ZodObject<{
3266
+ event_id: z.ZodString;
3267
+ run_id: z.ZodString;
3268
+ timestamp: z.ZodString;
3269
+ type: z.ZodLiteral<"log.appended">;
3270
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3271
+ stream: z.ZodEnum<{
3272
+ status: "status";
3273
+ trace: "trace";
3274
+ system: "system";
2532
3275
  }>;
2533
- project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2534
- build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2535
- created_at: z.ZodString;
2536
- started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2537
- finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2538
- metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2539
- label: z.ZodString;
2540
- value: z.ZodString;
2541
- detail: z.ZodOptional<z.ZodString>;
2542
- }, z.core.$strict>>>;
2543
- artifact_count: z.ZodNumber;
2544
- check_count: z.ZodNumber;
2545
- context_check_count: z.ZodNumber;
2546
- readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3276
+ message: z.ZodString;
3277
+ }, z.core.$strict>, z.ZodObject<{
3278
+ event_id: z.ZodString;
3279
+ run_id: z.ZodString;
3280
+ timestamp: z.ZodString;
3281
+ type: z.ZodLiteral<"stage.passed">;
3282
+ stage_id: z.ZodString;
3283
+ summary: z.ZodOptional<z.ZodString>;
3284
+ }, z.core.$strict>, z.ZodObject<{
3285
+ event_id: z.ZodString;
3286
+ run_id: z.ZodString;
3287
+ timestamp: z.ZodString;
3288
+ type: z.ZodLiteral<"stage.failed">;
3289
+ stage_id: z.ZodString;
3290
+ error: z.ZodString;
3291
+ }, z.core.$strict>, z.ZodObject<{
3292
+ event_id: z.ZodString;
3293
+ run_id: z.ZodString;
3294
+ timestamp: z.ZodString;
3295
+ type: z.ZodLiteral<"run.completed">;
3296
+ summary: z.ZodOptional<z.ZodString>;
3297
+ }, z.core.$strict>, z.ZodObject<{
3298
+ event_id: z.ZodString;
3299
+ run_id: z.ZodString;
3300
+ timestamp: z.ZodString;
3301
+ type: z.ZodLiteral<"run.failed">;
3302
+ error: z.ZodString;
3303
+ }, z.core.$strict>, z.ZodObject<{
3304
+ event_id: z.ZodString;
3305
+ run_id: z.ZodString;
3306
+ timestamp: z.ZodString;
3307
+ type: z.ZodLiteral<"run.cancelled">;
3308
+ reason: z.ZodOptional<z.ZodString>;
3309
+ }, z.core.$strict>, z.ZodObject<{
3310
+ event_id: z.ZodString;
3311
+ run_id: z.ZodString;
3312
+ timestamp: z.ZodString;
3313
+ type: z.ZodLiteral<"checks.evaluated">;
3314
+ passed: z.ZodNumber;
3315
+ total: z.ZodNumber;
3316
+ target: z.ZodOptional<z.ZodEnum<{
3317
+ "source-files": "source-files";
3318
+ "context-graph": "context-graph";
3319
+ }>>;
3320
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
3321
+ stale: z.ZodOptional<z.ZodBoolean>;
3322
+ test_run_id: z.ZodOptional<z.ZodString>;
3323
+ }, z.core.$strict>, z.ZodObject<{
3324
+ event_id: z.ZodString;
3325
+ run_id: z.ZodString;
3326
+ timestamp: z.ZodString;
3327
+ type: z.ZodLiteral<"readiness.updated">;
3328
+ project: z.ZodString;
3329
+ readiness: z.ZodObject<{
2547
3330
  kind: z.ZodLiteral<"interf-readiness-state">;
2548
3331
  version: z.ZodLiteral<1>;
2549
3332
  generated_at: z.ZodString;
2550
3333
  project: z.ZodString;
2551
3334
  status: z.ZodEnum<{
2552
- failed: "failed";
2553
3335
  ready: "ready";
3336
+ "not-ready": "not-ready";
3337
+ failed: "failed";
2554
3338
  "not-configured": "not-configured";
2555
3339
  "not-built": "not-built";
2556
3340
  building: "building";
2557
3341
  built: "built";
2558
3342
  checking: "checking";
2559
- "not-ready": "not-ready";
2560
3343
  stale: "stale";
2561
3344
  }>;
2562
3345
  ready: z.ZodBoolean;
@@ -2576,14 +3359,14 @@ export declare const RunStatusListResponseSchema: z.ZodObject<{
2576
3359
  }>;
2577
3360
  ok: z.ZodBoolean;
2578
3361
  status: z.ZodOptional<z.ZodEnum<{
2579
- failed: "failed";
2580
3362
  ready: "ready";
3363
+ "not-ready": "not-ready";
3364
+ failed: "failed";
2581
3365
  "not-configured": "not-configured";
2582
3366
  "not-built": "not-built";
2583
3367
  building: "building";
2584
3368
  built: "built";
2585
3369
  checking: "checking";
2586
- "not-ready": "not-ready";
2587
3370
  stale: "stale";
2588
3371
  }>>;
2589
3372
  summary: z.ZodString;
@@ -2625,14 +3408,14 @@ export declare const RunStatusListResponseSchema: z.ZodObject<{
2625
3408
  }>;
2626
3409
  ok: z.ZodBoolean;
2627
3410
  status: z.ZodOptional<z.ZodEnum<{
2628
- failed: "failed";
2629
3411
  ready: "ready";
3412
+ "not-ready": "not-ready";
3413
+ failed: "failed";
2630
3414
  "not-configured": "not-configured";
2631
3415
  "not-built": "not-built";
2632
3416
  building: "building";
2633
3417
  built: "built";
2634
3418
  checking: "checking";
2635
- "not-ready": "not-ready";
2636
3419
  stale: "stale";
2637
3420
  }>>;
2638
3421
  summary: z.ZodString;
@@ -2640,37 +3423,23 @@ export declare const RunStatusListResponseSchema: z.ZodObject<{
2640
3423
  run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2641
3424
  artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2642
3425
  }, z.core.$strict>>>;
2643
- }, z.core.$strict>>>;
2644
- latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2645
- latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2646
- detail_hint: z.ZodString;
2647
- }, z.core.$strict>>;
2648
- }, z.core.$strict>;
2649
- export declare const RunArtifactsResponseSchema: z.ZodObject<{
2650
- artifacts: z.ZodArray<z.ZodObject<{
2651
- path: z.ZodString;
2652
- role: z.ZodEnum<{
2653
- runtime: "runtime";
2654
- output: "output";
2655
- source: "source";
2656
- evidence: "evidence";
2657
- benchmark: "benchmark";
2658
- }>;
2659
- stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2660
- label: z.ZodOptional<z.ZodString>;
2661
- sha256: z.ZodOptional<z.ZodString>;
2662
- }, z.core.$strict>>;
3426
+ }, z.core.$strict>;
3427
+ }, z.core.$strict>], "type">>;
2663
3428
  }, z.core.$strict>;
2664
3429
  export type BuildRunCreateRequest = z.infer<typeof BuildRunCreateRequestSchema>;
3430
+ export type ProjectBuildRunCreateRequest = z.infer<typeof ProjectBuildRunCreateRequestSchema>;
2665
3431
  export type BuildRunSummary = z.infer<typeof BuildRunSummarySchema>;
2666
3432
  export type BuildRunResource = z.infer<typeof BuildRunResourceSchema>;
2667
3433
  export type BuildRunListResponse = z.infer<typeof BuildRunListResponseSchema>;
2668
3434
  export type VerifyRunStatus = z.infer<typeof VerifyRunStatusSchema>;
2669
3435
  export type VerifyRunCreateRequest = z.infer<typeof VerifyRunCreateRequestSchema>;
3436
+ export type ProjectVerifyRunCreateRequest = z.infer<typeof ProjectVerifyRunCreateRequestSchema>;
2670
3437
  export type VerifyRunBatchSummary = z.infer<typeof VerifyRunBatchSummarySchema>;
2671
3438
  export type VerifyRunResource = z.infer<typeof VerifyRunResourceSchema>;
3439
+ export type VerifyRunListResponse = z.infer<typeof VerifyRunListResponseSchema>;
2672
3440
  export type RunObservabilityResource = z.infer<typeof RunObservabilityResourceSchema>;
2673
3441
  export type RunObservabilityListResponse = z.infer<typeof RunObservabilityListResponseSchema>;
2674
3442
  export type RunStatusResource = z.infer<typeof RunStatusResourceSchema>;
2675
3443
  export type RunStatusListResponse = z.infer<typeof RunStatusListResponseSchema>;
2676
3444
  export type RunArtifactsResponse = z.infer<typeof RunArtifactsResponseSchema>;
3445
+ export type RunEventsResponse = z.infer<typeof RunEventsResponseSchema>;