@interf/compiler 0.22.2 → 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 (616) hide show
  1. package/README.md +119 -282
  2. package/dist/bin-mcp.d.ts +2 -0
  3. package/dist/bin-mcp.js +63 -0
  4. package/dist/bin-runtime.d.ts +2 -0
  5. package/dist/bin-runtime.js +111 -0
  6. package/dist/cli/commands/agents.js +4 -35
  7. package/dist/cli/commands/auth.d.ts +20 -0
  8. package/dist/cli/commands/auth.js +161 -0
  9. package/dist/cli/commands/benchmark.d.ts +9 -0
  10. package/dist/cli/commands/benchmark.js +58 -0
  11. package/dist/cli/commands/build-plan.js +107 -139
  12. package/dist/cli/commands/build.d.ts +3 -4
  13. package/dist/cli/commands/build.js +16 -45
  14. package/dist/cli/commands/doctor.js +3 -3
  15. package/dist/cli/commands/graphs.d.ts +2 -0
  16. package/dist/cli/commands/graphs.js +344 -0
  17. package/dist/cli/commands/login.js +4 -6
  18. package/dist/cli/commands/logout.js +1 -1
  19. package/dist/cli/commands/mcp.d.ts +4 -2
  20. package/dist/cli/commands/mcp.js +846 -232
  21. package/dist/cli/commands/project.d.ts +2 -0
  22. package/dist/cli/commands/project.js +176 -0
  23. package/dist/cli/commands/reset.d.ts +3 -4
  24. package/dist/cli/commands/reset.js +10 -31
  25. package/dist/cli/commands/runs.js +136 -57
  26. package/dist/cli/commands/runtime.d.ts +24 -0
  27. package/dist/cli/commands/runtime.js +373 -0
  28. package/dist/cli/commands/status.d.ts +1 -0
  29. package/dist/cli/commands/status.js +35 -45
  30. package/dist/cli/commands/traces.d.ts +2 -0
  31. package/dist/cli/commands/traces.js +97 -0
  32. package/dist/cli/commands/wizard.js +171 -178
  33. package/dist/cli/index.d.ts +7 -4
  34. package/dist/cli/index.js +13 -7
  35. package/dist/cli/lib/http-client.d.ts +39 -0
  36. package/dist/cli/lib/http-client.js +73 -0
  37. package/dist/index.d.ts +2 -2
  38. package/dist/index.js +2 -2
  39. package/dist/packages/build-plans/authoring/brief.d.ts +538 -0
  40. package/dist/packages/build-plans/authoring/brief.js +89 -0
  41. package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +52 -11
  42. package/dist/packages/build-plans/authoring/build-plan-authoring.js +493 -46
  43. package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +10 -1
  44. package/dist/packages/build-plans/authoring/build-plan-edit-session.js +27 -4
  45. package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +9 -6
  46. package/dist/packages/build-plans/authoring/build-plan-improvement.js +97 -46
  47. package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.d.ts +1 -0
  48. package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.js +7 -7
  49. package/dist/packages/build-plans/build-plan-resolution.d.ts +1 -1
  50. package/dist/packages/build-plans/build-plan-resolution.js +3 -3
  51. package/dist/packages/build-plans/index.d.ts +1 -1
  52. package/dist/packages/build-plans/index.js +1 -1
  53. package/dist/packages/build-plans/package/build-plan-definitions.d.ts +14 -13
  54. package/dist/packages/build-plans/package/build-plan-definitions.js +45 -42
  55. package/dist/packages/build-plans/package/build-plan-helpers.d.ts +3 -2
  56. package/dist/packages/build-plans/package/build-plan-helpers.js +27 -13
  57. package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +5 -5
  58. package/dist/packages/build-plans/package/build-plan-review-paths.js +15 -15
  59. package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +5 -4
  60. package/dist/packages/build-plans/package/build-plan-stage-runner.js +23 -11
  61. package/dist/packages/build-plans/package/builtin-build-plan.d.ts +7 -8
  62. package/dist/packages/build-plans/package/builtin-build-plan.js +10 -11
  63. package/dist/packages/build-plans/package/context-interface.d.ts +14 -9
  64. package/dist/packages/build-plans/package/context-interface.js +14 -33
  65. package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +6 -17
  66. package/dist/packages/build-plans/package/interf-build-plan-package.js +68 -64
  67. package/dist/packages/build-plans/package/local-build-plans.d.ts +21 -14
  68. package/dist/packages/build-plans/package/local-build-plans.js +105 -55
  69. package/dist/packages/build-plans/package/user-build-plans.js +1 -1
  70. package/dist/packages/contracts/index.d.ts +5 -2
  71. package/dist/packages/contracts/index.js +3 -1
  72. package/dist/packages/contracts/lib/context-graph-layer.d.ts +161 -0
  73. package/dist/packages/contracts/lib/context-graph-layer.js +216 -0
  74. package/dist/packages/contracts/lib/project-paths.d.ts +144 -0
  75. package/dist/packages/contracts/lib/project-paths.js +220 -0
  76. package/dist/packages/contracts/lib/project-schema.d.ts +423 -0
  77. package/dist/packages/contracts/lib/project-schema.js +138 -0
  78. package/dist/packages/contracts/lib/schema.d.ts +1273 -81
  79. package/dist/packages/contracts/lib/schema.js +675 -79
  80. package/dist/packages/contracts/utils/filesystem.d.ts +1 -0
  81. package/dist/packages/contracts/utils/filesystem.js +29 -1
  82. package/dist/packages/contracts/utils/parse.js +67 -0
  83. package/dist/packages/projects/index.d.ts +6 -0
  84. package/dist/packages/{project → projects}/index.js +0 -3
  85. package/dist/packages/{project → projects}/interf-detect.d.ts +12 -12
  86. package/dist/packages/{project → projects}/interf-detect.js +56 -50
  87. package/dist/packages/projects/interf.d.ts +2 -0
  88. package/dist/packages/projects/interf.js +1 -0
  89. package/dist/packages/projects/lib/schema.d.ts +77 -0
  90. package/dist/packages/projects/lib/schema.js +91 -0
  91. package/dist/packages/projects/source-config.d.ts +53 -0
  92. package/dist/packages/projects/source-config.js +339 -0
  93. package/dist/packages/projects/source-folders.d.ts +11 -0
  94. package/dist/packages/{project → projects}/source-folders.js +26 -26
  95. package/dist/packages/{engine → runtime}/action-planner.d.ts +1 -1
  96. package/dist/packages/{engine → runtime}/action-planner.js +20 -22
  97. package/dist/packages/runtime/action-values.d.ts +1 -0
  98. package/dist/packages/runtime/action-values.js +1 -0
  99. package/dist/packages/runtime/actions/errors.d.ts +2 -0
  100. package/dist/packages/runtime/actions/errors.js +12 -0
  101. package/dist/packages/runtime/actions/fields.d.ts +86 -0
  102. package/dist/packages/runtime/actions/form-builders.d.ts +14 -0
  103. package/dist/packages/runtime/actions/form-builders.js +667 -0
  104. package/dist/packages/runtime/actions/form-validators.d.ts +8 -0
  105. package/dist/packages/runtime/actions/form-validators.js +134 -0
  106. package/dist/packages/runtime/actions/helpers.d.ts +11 -0
  107. package/dist/packages/runtime/actions/helpers.js +80 -0
  108. package/dist/packages/runtime/actions/index.d.ts +8 -0
  109. package/dist/packages/runtime/actions/index.js +11 -0
  110. package/dist/packages/runtime/actions/registry.d.ts +64 -0
  111. package/dist/packages/runtime/actions/registry.js +62 -0
  112. package/dist/packages/runtime/actions/requests.d.ts +45 -0
  113. package/dist/packages/runtime/actions/requests.js +164 -0
  114. package/dist/packages/runtime/actions/schemas.d.ts +161 -0
  115. package/dist/packages/runtime/actions/schemas.js +37 -0
  116. package/dist/packages/runtime/agent-handoff.d.ts +11 -0
  117. package/dist/packages/runtime/agent-handoff.js +102 -0
  118. package/dist/packages/{engine → runtime}/agents/index.d.ts +1 -2
  119. package/dist/packages/{engine → runtime}/agents/index.js +1 -2
  120. package/dist/packages/runtime/agents/lib/args.d.ts +14 -0
  121. package/dist/packages/runtime/agents/lib/args.js +24 -0
  122. package/dist/packages/{engine → runtime}/agents/lib/constants.d.ts +4 -1
  123. package/dist/packages/runtime/agents/lib/constants.js +13 -0
  124. package/dist/packages/runtime/agents/lib/context-graph-bootstrap.d.ts +3 -0
  125. package/dist/packages/{engine/agents/lib/verifiable-context-bootstrap.js → runtime/agents/lib/context-graph-bootstrap.js} +5 -6
  126. package/dist/packages/{engine → runtime}/agents/lib/detection.d.ts +5 -0
  127. package/dist/packages/{engine → runtime}/agents/lib/detection.js +16 -7
  128. package/dist/packages/{engine → runtime}/agents/lib/execution-profile.d.ts +14 -0
  129. package/dist/packages/{engine → runtime}/agents/lib/execution-profile.js +31 -14
  130. package/dist/packages/{engine → runtime}/agents/lib/execution.js +22 -6
  131. package/dist/packages/{engine → runtime}/agents/lib/executors.d.ts +1 -0
  132. package/dist/packages/{engine → runtime}/agents/lib/executors.js +11 -2
  133. package/dist/packages/runtime/agents/lib/logs.d.ts +12 -0
  134. package/dist/packages/runtime/agents/lib/logs.js +41 -0
  135. package/dist/packages/{engine → runtime}/agents/lib/preflight.js +19 -14
  136. package/dist/packages/runtime/agents/lib/render.d.ts +26 -0
  137. package/dist/packages/{engine → runtime}/agents/lib/render.js +48 -22
  138. package/dist/packages/runtime/agents/lib/shell-fs.d.ts +18 -0
  139. package/dist/packages/runtime/agents/lib/shell-fs.js +190 -0
  140. package/dist/packages/runtime/agents/lib/shell-paths.d.ts +16 -0
  141. package/dist/packages/runtime/agents/lib/shell-paths.js +63 -0
  142. package/dist/packages/runtime/agents/lib/shell-projection.d.ts +25 -0
  143. package/dist/packages/runtime/agents/lib/shell-projection.js +314 -0
  144. package/dist/packages/runtime/agents/lib/shell-templates.d.ts +30 -0
  145. package/dist/packages/runtime/agents/lib/shell-templates.js +494 -0
  146. package/dist/packages/runtime/agents/lib/shell-workspace.d.ts +17 -0
  147. package/dist/packages/runtime/agents/lib/shell-workspace.js +70 -0
  148. package/dist/packages/runtime/agents/lib/shells.d.ts +92 -0
  149. package/dist/packages/runtime/agents/lib/shells.js +509 -0
  150. package/dist/packages/runtime/agents/lib/source-context-scan.d.ts +10 -0
  151. package/dist/packages/runtime/agents/lib/source-context-scan.js +388 -0
  152. package/dist/packages/{engine → runtime}/agents/lib/status.js +1 -14
  153. package/dist/packages/runtime/agents/lib/string-utils.d.ts +16 -0
  154. package/dist/packages/runtime/agents/lib/string-utils.js +36 -0
  155. package/dist/packages/{engine → runtime}/agents/lib/types.d.ts +1 -0
  156. package/dist/packages/{engine → runtime}/agents/lib/user-config.d.ts +8 -2
  157. package/dist/packages/{engine → runtime}/agents/lib/user-config.js +8 -2
  158. package/dist/packages/runtime/agents/providers/claude-code.d.ts +13 -0
  159. package/dist/packages/runtime/agents/providers/claude-code.js +45 -0
  160. package/dist/packages/runtime/agents/providers/codex.d.ts +17 -0
  161. package/dist/packages/runtime/agents/providers/codex.js +66 -0
  162. package/dist/packages/runtime/agents/providers/cursor.d.ts +9 -0
  163. package/dist/packages/runtime/agents/providers/cursor.js +24 -0
  164. package/dist/packages/runtime/agents/providers/index.d.ts +9 -0
  165. package/dist/packages/runtime/agents/providers/index.js +31 -0
  166. package/dist/packages/runtime/agents/providers/types.d.ts +50 -0
  167. package/dist/packages/{engine → runtime}/agents/registry.d.ts +13 -2
  168. package/dist/packages/{engine → runtime}/agents/registry.js +48 -10
  169. package/dist/packages/{engine → runtime}/agents/role-executors.d.ts +1 -1
  170. package/dist/packages/{engine → runtime}/agents/role-executors.js +9 -7
  171. package/dist/packages/{engine → runtime}/agents/role-router.js +7 -5
  172. package/dist/packages/runtime/auth/account-context.d.ts +52 -0
  173. package/dist/packages/runtime/auth/account-context.js +68 -0
  174. package/dist/packages/runtime/auth/auth-flow.d.ts +73 -0
  175. package/dist/packages/runtime/auth/auth-flow.js +189 -0
  176. package/dist/packages/runtime/auth/jwt-validator.d.ts +58 -0
  177. package/dist/packages/runtime/auth/jwt-validator.js +86 -0
  178. package/dist/packages/runtime/auth/keychain.d.ts +35 -0
  179. package/dist/packages/runtime/auth/keychain.js +85 -0
  180. package/dist/packages/runtime/auth/session-store.d.ts +38 -0
  181. package/dist/packages/runtime/auth/session-store.js +96 -0
  182. package/dist/packages/runtime/auth/workos-client.d.ts +58 -0
  183. package/dist/packages/runtime/auth/workos-client.js +87 -0
  184. package/dist/packages/runtime/benchmark-question-draft.d.ts +23 -0
  185. package/dist/packages/runtime/benchmark-question-draft.js +153 -0
  186. package/dist/packages/runtime/build/artifact-counts.d.ts +1 -0
  187. package/dist/packages/{engine → runtime}/build/artifact-counts.js +5 -9
  188. package/dist/packages/{engine → runtime}/build/artifact-status.d.ts +6 -6
  189. package/dist/packages/{engine → runtime}/build/artifact-status.js +26 -24
  190. package/dist/packages/runtime/build/atomic-fs.d.ts +3 -0
  191. package/dist/packages/runtime/build/atomic-fs.js +95 -0
  192. package/dist/packages/runtime/build/billing-events.d.ts +78 -0
  193. package/dist/packages/{engine → runtime}/build/billing-events.js +17 -19
  194. package/dist/packages/runtime/build/build-evidence.d.ts +16 -0
  195. package/dist/packages/runtime/build/build-evidence.js +179 -0
  196. package/dist/packages/{engine → runtime}/build/build-pipeline.d.ts +12 -8
  197. package/dist/packages/runtime/build/build-pipeline.js +388 -0
  198. package/dist/packages/{engine → runtime}/build/build-plan-primitives.d.ts +1 -1
  199. package/dist/packages/{engine → runtime}/build/build-plan-primitives.js +0 -1
  200. package/dist/packages/runtime/build/build-plan-runs.d.ts +14 -0
  201. package/dist/packages/runtime/build/build-plan-runs.js +31 -0
  202. package/dist/packages/runtime/build/build-stage-plan.d.ts +16 -0
  203. package/dist/packages/runtime/build/build-stage-plan.js +101 -0
  204. package/dist/packages/{engine → runtime}/build/build-stage-runner.d.ts +2 -1
  205. package/dist/packages/runtime/build/build-stage-runner.js +302 -0
  206. package/dist/packages/{engine → runtime}/build/build-target.d.ts +7 -4
  207. package/dist/packages/runtime/build/build-target.js +40 -0
  208. package/dist/packages/{engine → runtime}/build/check-evaluator.d.ts +14 -16
  209. package/dist/packages/runtime/build/check-evaluator.js +1226 -0
  210. package/dist/packages/runtime/build/context-graph-paths.d.ts +64 -0
  211. package/dist/packages/runtime/build/context-graph-paths.js +160 -0
  212. package/dist/packages/runtime/build/context-graph-schema.d.ts +19 -0
  213. package/dist/packages/runtime/build/context-graph-schema.js +39 -0
  214. package/dist/packages/{engine → runtime}/build/discovery.d.ts +2 -2
  215. package/dist/packages/{engine → runtime}/build/discovery.js +4 -4
  216. package/dist/packages/{engine → runtime}/build/index.d.ts +7 -5
  217. package/dist/packages/{engine → runtime}/build/index.js +7 -5
  218. package/dist/packages/runtime/build/inspect-map.d.ts +10 -0
  219. package/dist/packages/runtime/build/inspect-map.js +270 -0
  220. package/dist/packages/{engine → runtime}/build/lib/schema.d.ts +449 -123
  221. package/dist/packages/runtime/build/lib/schema.js +494 -0
  222. package/dist/packages/runtime/build/native-entrypoint.d.ts +2 -0
  223. package/dist/packages/runtime/build/native-entrypoint.js +286 -0
  224. package/dist/packages/runtime/build/reset.d.ts +2 -0
  225. package/dist/packages/runtime/build/reset.js +62 -0
  226. package/dist/packages/{engine → runtime}/build/runtime-contracts.js +13 -7
  227. package/dist/packages/runtime/build/runtime-inventory.d.ts +7 -0
  228. package/dist/packages/{engine → runtime}/build/runtime-inventory.js +3 -3
  229. package/dist/packages/runtime/build/runtime-log-paths.d.ts +3 -0
  230. package/dist/packages/runtime/build/runtime-log-paths.js +16 -0
  231. package/dist/packages/{engine → runtime}/build/runtime-prompt.js +12 -9
  232. package/dist/packages/{engine → runtime}/build/runtime-reconcile.d.ts +1 -1
  233. package/dist/packages/{engine → runtime}/build/runtime-reconcile.js +25 -21
  234. package/dist/packages/runtime/build/runtime-runs.d.ts +10 -0
  235. package/dist/packages/runtime/build/runtime-runs.js +318 -0
  236. package/dist/packages/{engine → runtime}/build/runtime-types.d.ts +9 -6
  237. package/dist/packages/runtime/build/runtime-types.js +1 -0
  238. package/dist/packages/runtime/build/runtime.d.ts +8 -0
  239. package/dist/packages/runtime/build/runtime.js +7 -0
  240. package/dist/packages/runtime/build/source-files.d.ts +58 -0
  241. package/dist/packages/runtime/build/source-files.js +193 -0
  242. package/dist/packages/runtime/build/source-inventory.d.ts +28 -0
  243. package/dist/packages/runtime/build/source-inventory.js +512 -0
  244. package/dist/packages/runtime/build/source-manifest.d.ts +63 -0
  245. package/dist/packages/runtime/build/source-manifest.js +220 -0
  246. package/dist/packages/runtime/build/stage-evidence.d.ts +22 -0
  247. package/dist/packages/runtime/build/stage-evidence.js +386 -0
  248. package/dist/packages/runtime/build/stage-manifest.d.ts +45 -0
  249. package/dist/packages/runtime/build/stage-manifest.js +1125 -0
  250. package/dist/packages/runtime/build/stage-reuse.d.ts +11 -0
  251. package/dist/packages/runtime/build/stage-reuse.js +154 -0
  252. package/dist/packages/runtime/build/stage-session.d.ts +81 -0
  253. package/dist/packages/runtime/build/stage-session.js +308 -0
  254. package/dist/packages/runtime/build/state-artifacts.d.ts +9 -0
  255. package/dist/packages/runtime/build/state-artifacts.js +14 -0
  256. package/dist/packages/runtime/build/state-health.d.ts +4 -0
  257. package/dist/packages/{engine → runtime}/build/state-health.js +21 -26
  258. package/dist/packages/runtime/build/state-io.d.ts +12 -0
  259. package/dist/packages/runtime/build/state-io.js +118 -0
  260. package/dist/packages/runtime/build/state-view.d.ts +5 -0
  261. package/dist/packages/runtime/build/state-view.js +121 -0
  262. package/dist/packages/runtime/build/state.d.ts +7 -0
  263. package/dist/packages/runtime/build/state.js +12 -0
  264. package/dist/packages/runtime/build/summary-coverage-index.d.ts +21 -0
  265. package/dist/packages/runtime/build/summary-coverage-index.js +189 -0
  266. package/dist/packages/runtime/build/traces.d.ts +30 -0
  267. package/dist/packages/runtime/build/traces.js +133 -0
  268. package/dist/packages/{engine/build/validate-verifiable-context.d.ts → runtime/build/validate-context-graph.d.ts} +6 -6
  269. package/dist/packages/{engine/build/validate-verifiable-context.js → runtime/build/validate-context-graph.js} +49 -36
  270. package/dist/packages/{engine → runtime}/build/validate.d.ts +5 -5
  271. package/dist/packages/{engine → runtime}/build/validate.js +26 -26
  272. package/dist/packages/{engine → runtime}/client.d.ts +18 -18
  273. package/dist/packages/{engine → runtime}/client.js +48 -36
  274. package/dist/packages/{engine → runtime}/connection-config.d.ts +3 -2
  275. package/dist/packages/{engine → runtime}/connection-config.js +9 -8
  276. package/dist/packages/runtime/context-checks.d.ts +10 -0
  277. package/dist/packages/runtime/context-checks.js +127 -0
  278. package/dist/packages/runtime/context-graph-scaffold.d.ts +9 -0
  279. package/dist/packages/runtime/context-graph-scaffold.js +135 -0
  280. package/dist/packages/runtime/context-graph-semantic-graph.d.ts +9 -0
  281. package/dist/packages/runtime/context-graph-semantic-graph.js +416 -0
  282. package/dist/packages/runtime/entitlement-guard.d.ts +43 -0
  283. package/dist/packages/runtime/entitlement-guard.js +70 -0
  284. package/dist/packages/{engine → runtime}/execution/index.d.ts +2 -2
  285. package/dist/packages/{engine → runtime}/execution/index.js +1 -1
  286. package/dist/packages/{engine → runtime}/execution/lib/schema.d.ts +272 -191
  287. package/dist/packages/{engine → runtime}/execution/lib/schema.js +35 -32
  288. package/dist/packages/runtime/index.d.ts +29 -0
  289. package/dist/packages/runtime/index.js +21 -0
  290. package/dist/packages/runtime/instance-paths.d.ts +30 -0
  291. package/dist/packages/runtime/instance-paths.js +29 -0
  292. package/dist/packages/runtime/native-run-handlers.d.ts +63 -0
  293. package/dist/packages/{engine → runtime}/native-run-handlers.js +217 -166
  294. package/dist/packages/runtime/plan-artifact-contract.d.ts +17 -0
  295. package/dist/packages/runtime/plan-artifact-contract.js +42 -0
  296. package/dist/packages/runtime/project-entries.d.ts +11 -0
  297. package/dist/packages/runtime/project-entries.js +49 -0
  298. package/dist/packages/runtime/project-source-state.d.ts +26 -0
  299. package/dist/packages/runtime/project-source-state.js +56 -0
  300. package/dist/packages/runtime/project-store.d.ts +90 -0
  301. package/dist/packages/runtime/project-store.js +195 -0
  302. package/dist/packages/runtime/requested-artifacts.d.ts +7 -0
  303. package/dist/packages/{engine → runtime}/requested-artifacts.js +23 -1
  304. package/dist/packages/{engine → runtime}/run-observability.d.ts +2 -1
  305. package/dist/packages/{engine → runtime}/run-observability.js +174 -87
  306. package/dist/packages/runtime/runtime-action-proposals.d.ts +7 -0
  307. package/dist/packages/runtime/runtime-action-proposals.js +542 -0
  308. package/dist/packages/runtime/runtime-build-plans.d.ts +5 -0
  309. package/dist/packages/runtime/runtime-build-plans.js +175 -0
  310. package/dist/packages/runtime/runtime-build-runs.d.ts +47 -0
  311. package/dist/packages/runtime/runtime-build-runs.js +555 -0
  312. package/dist/packages/runtime/runtime-caches.d.ts +117 -0
  313. package/dist/packages/runtime/runtime-caches.js +266 -0
  314. package/dist/packages/{engine → runtime}/runtime-event-applier.d.ts +3 -1
  315. package/dist/packages/{engine → runtime}/runtime-event-applier.js +53 -17
  316. package/dist/packages/runtime/runtime-executor.d.ts +22 -0
  317. package/dist/packages/runtime/runtime-executor.js +131 -0
  318. package/dist/packages/runtime/runtime-jobs.d.ts +13 -0
  319. package/dist/packages/runtime/runtime-jobs.js +463 -0
  320. package/dist/packages/runtime/runtime-observability.d.ts +11 -0
  321. package/dist/packages/runtime/runtime-observability.js +39 -0
  322. package/dist/packages/{engine → runtime}/runtime-persistence.d.ts +9 -18
  323. package/dist/packages/{engine → runtime}/runtime-persistence.js +25 -25
  324. package/dist/packages/runtime/runtime-project-mutations.d.ts +7 -0
  325. package/dist/packages/runtime/runtime-project-mutations.js +65 -0
  326. package/dist/packages/runtime/runtime-project-reads.d.ts +18 -0
  327. package/dist/packages/runtime/runtime-project-reads.js +574 -0
  328. package/dist/packages/runtime/runtime-proposal-helpers.d.ts +22 -0
  329. package/dist/packages/runtime/runtime-proposal-helpers.js +223 -0
  330. package/dist/packages/{engine → runtime}/runtime-resource-builders.d.ts +23 -16
  331. package/dist/packages/{engine → runtime}/runtime-resource-builders.js +58 -46
  332. package/dist/packages/runtime/runtime-status.d.ts +14 -0
  333. package/dist/packages/runtime/runtime-status.js +15 -0
  334. package/dist/packages/runtime/runtime-verify-runs.d.ts +84 -0
  335. package/dist/packages/runtime/runtime-verify-runs.js +296 -0
  336. package/dist/packages/runtime/runtime.d.ts +1582 -0
  337. package/dist/packages/runtime/runtime.js +431 -0
  338. package/dist/packages/runtime/schemas/actions.d.ts +1206 -0
  339. package/dist/packages/runtime/schemas/actions.js +117 -0
  340. package/dist/packages/runtime/schemas/agents.d.ts +104 -0
  341. package/dist/packages/runtime/schemas/agents.js +74 -0
  342. package/dist/packages/runtime/schemas/build-plans.d.ts +1132 -0
  343. package/dist/packages/runtime/schemas/build-plans.js +141 -0
  344. package/dist/packages/runtime/schemas/context-graphs.d.ts +1522 -0
  345. package/dist/packages/runtime/schemas/context-graphs.js +110 -0
  346. package/dist/packages/runtime/schemas/files.d.ts +227 -0
  347. package/dist/packages/runtime/schemas/files.js +28 -0
  348. package/dist/packages/runtime/schemas/index.d.ts +9 -0
  349. package/dist/packages/runtime/schemas/index.js +13 -0
  350. package/dist/packages/runtime/schemas/instance.d.ts +141 -0
  351. package/dist/packages/runtime/schemas/instance.js +143 -0
  352. package/dist/packages/runtime/schemas/jobs.d.ts +339 -0
  353. package/dist/packages/runtime/schemas/jobs.js +107 -0
  354. package/dist/packages/runtime/schemas/projects.d.ts +366 -0
  355. package/dist/packages/runtime/schemas/projects.js +160 -0
  356. package/dist/packages/runtime/schemas/runs.d.ts +3445 -0
  357. package/dist/packages/runtime/schemas/runs.js +115 -0
  358. package/dist/packages/runtime/service/index.d.ts +3 -0
  359. package/dist/packages/runtime/service/index.js +3 -0
  360. package/dist/packages/runtime/service/openapi.d.ts +7 -0
  361. package/dist/packages/runtime/service/openapi.js +118 -0
  362. package/dist/packages/runtime/service/operations.d.ts +3011 -0
  363. package/dist/packages/runtime/service/operations.js +375 -0
  364. package/dist/packages/runtime/service/routes.d.ts +114 -0
  365. package/dist/packages/runtime/service/routes.js +128 -0
  366. package/dist/packages/runtime/service/server-api-files.d.ts +10 -0
  367. package/dist/packages/runtime/service/server-api-files.js +85 -0
  368. package/dist/packages/runtime/service/server-app-boot.d.ts +4 -0
  369. package/dist/packages/runtime/service/server-app-boot.js +46 -0
  370. package/dist/packages/runtime/service/server-guards.d.ts +63 -0
  371. package/dist/packages/runtime/service/server-guards.js +181 -0
  372. package/dist/packages/runtime/service/server-helpers.d.ts +38 -0
  373. package/dist/packages/runtime/service/server-helpers.js +108 -0
  374. package/dist/packages/runtime/service/server-instance-helpers.d.ts +30 -0
  375. package/dist/packages/runtime/service/server-instance-helpers.js +114 -0
  376. package/dist/packages/runtime/service/server-routes-action-proposals.d.ts +3 -0
  377. package/dist/packages/runtime/service/server-routes-action-proposals.js +45 -0
  378. package/dist/packages/runtime/service/server-routes-agents.d.ts +4 -0
  379. package/dist/packages/runtime/service/server-routes-agents.js +132 -0
  380. package/dist/packages/runtime/service/server-routes-auth.d.ts +33 -0
  381. package/dist/packages/runtime/service/server-routes-auth.js +138 -0
  382. package/dist/packages/runtime/service/server-routes-build-plans.d.ts +3 -0
  383. package/dist/packages/runtime/service/server-routes-build-plans.js +86 -0
  384. package/dist/packages/runtime/service/server-routes-discovery.d.ts +4 -0
  385. package/dist/packages/runtime/service/server-routes-discovery.js +196 -0
  386. package/dist/packages/runtime/service/server-routes-events.d.ts +5 -0
  387. package/dist/packages/runtime/service/server-routes-events.js +99 -0
  388. package/dist/packages/runtime/service/server-routes-project-context.d.ts +9 -0
  389. package/dist/packages/runtime/service/server-routes-project-context.js +287 -0
  390. package/dist/packages/runtime/service/server-routes-project-jobs.d.ts +9 -0
  391. package/dist/packages/runtime/service/server-routes-project-jobs.js +137 -0
  392. package/dist/packages/runtime/service/server-routes-project-runs.d.ts +14 -0
  393. package/dist/packages/runtime/service/server-routes-project-runs.js +88 -0
  394. package/dist/packages/runtime/service/server-routes-projects.d.ts +4 -0
  395. package/dist/packages/runtime/service/server-routes-projects.js +96 -0
  396. package/dist/packages/runtime/service/server-routes-runs.d.ts +3 -0
  397. package/dist/packages/runtime/service/server-routes-runs.js +119 -0
  398. package/dist/packages/runtime/service/server.d.ts +37 -0
  399. package/dist/packages/runtime/service/server.js +300 -0
  400. package/dist/packages/{engine → runtime/service}/service-registry.d.ts +5 -5
  401. package/dist/packages/{engine → runtime/service}/service-registry.js +7 -7
  402. package/dist/packages/runtime/verify/benchmark-run.d.ts +81 -0
  403. package/dist/packages/runtime/verify/benchmark-run.js +303 -0
  404. package/dist/packages/{engine → runtime}/verify/index.d.ts +2 -2
  405. package/dist/packages/{engine → runtime}/verify/index.js +1 -1
  406. package/dist/packages/{engine → runtime}/verify/lib/schema.d.ts +83 -16
  407. package/dist/packages/{engine → runtime}/verify/lib/schema.js +38 -18
  408. package/dist/packages/runtime/verify/test-file-guard.d.ts +2 -0
  409. package/dist/packages/runtime/verify/test-file-guard.js +29 -0
  410. package/dist/packages/{engine → runtime}/verify/verify-execution.d.ts +7 -0
  411. package/dist/packages/{engine → runtime}/verify/verify-execution.js +119 -45
  412. package/dist/packages/{engine → runtime}/verify/verify-paths.d.ts +5 -4
  413. package/dist/packages/runtime/verify/verify-paths.js +65 -0
  414. package/dist/packages/{engine → runtime}/verify/verify-sandbox.d.ts +1 -1
  415. package/dist/packages/runtime/verify/verify-sandbox.js +88 -0
  416. package/dist/packages/{engine → runtime}/verify/verify-specs.d.ts +2 -0
  417. package/dist/packages/runtime/verify/verify-specs.js +126 -0
  418. package/dist/packages/runtime/verify/verify-targets.d.ts +5 -0
  419. package/dist/packages/{engine → runtime}/verify/verify-targets.js +12 -12
  420. package/dist/packages/runtime/verify/verify-types.js +1 -0
  421. package/dist/packages/{engine → runtime}/verify/verify.d.ts +1 -1
  422. package/dist/packages/{engine → runtime}/verify/verify.js +1 -1
  423. package/dist/packages/runtime/wire-schemas.d.ts +18 -0
  424. package/dist/packages/runtime/wire-schemas.js +27 -0
  425. package/package.json +32 -30
  426. package/public-repo/CONTRIBUTING.md +16 -18
  427. package/public-repo/README.md +119 -282
  428. package/public-repo/SECURITY.md +3 -4
  429. package/public-repo/build-plans/interf-default/README.md +24 -16
  430. package/public-repo/build-plans/interf-default/build/stages/entrypoint/SKILL.md +74 -0
  431. package/public-repo/build-plans/interf-default/build/stages/knowledge/SKILL.md +95 -0
  432. package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +49 -4
  433. package/public-repo/build-plans/interf-default/build-plan.json +49 -39
  434. package/public-repo/build-plans/interf-default/build-plan.schema.json +59 -33
  435. package/public-repo/build-plans/interf-default/improve/SKILL.md +3 -3
  436. package/public-repo/build-plans/interf-default/use/query/SKILL.md +18 -11
  437. package/public-repo/openapi/local-service.openapi.json +14227 -0
  438. package/public-repo/skills/interf/SKILL.md +508 -187
  439. package/dist/cli/commands/prep.d.ts +0 -2
  440. package/dist/cli/commands/prep.js +0 -240
  441. package/dist/cli/commands/test.d.ts +0 -10
  442. package/dist/cli/commands/test.js +0 -85
  443. package/dist/cli/commands/web.d.ts +0 -2
  444. package/dist/cli/commands/web.js +0 -286
  445. package/dist/interf-ui/404.html +0 -1
  446. package/dist/interf-ui/__next.__PAGE__.txt +0 -10
  447. package/dist/interf-ui/__next._full.txt +0 -20
  448. package/dist/interf-ui/__next._head.txt +0 -5
  449. package/dist/interf-ui/__next._index.txt +0 -5
  450. package/dist/interf-ui/__next._tree.txt +0 -5
  451. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_buildManifest.js +0 -11
  452. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_clientMiddlewareManifest.js +0 -1
  453. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_ssgManifest.js +0 -1
  454. package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +0 -3
  455. package/dist/interf-ui/_next/static/chunks/03~yq9q893hmn.js +0 -1
  456. package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +0 -1
  457. package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +0 -1
  458. package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +0 -1
  459. package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +0 -1
  460. package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +0 -1
  461. package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +0 -1
  462. package/dist/interf-ui/_next/static/chunks/0s77gt_o4jwtx.js +0 -1
  463. package/dist/interf-ui/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -5
  464. package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +0 -116
  465. package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +0 -31
  466. package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +0 -1
  467. package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +0 -1
  468. package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +0 -91
  469. package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +0 -5
  470. package/dist/interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js +0 -1
  471. package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +0 -1
  472. package/dist/interf-ui/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -1
  473. package/dist/interf-ui/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  474. package/dist/interf-ui/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  475. package/dist/interf-ui/_next/static/media/worker.102zas1s52_pf.js +0 -109
  476. package/dist/interf-ui/_not-found/__next._full.txt +0 -15
  477. package/dist/interf-ui/_not-found/__next._head.txt +0 -5
  478. package/dist/interf-ui/_not-found/__next._index.txt +0 -5
  479. package/dist/interf-ui/_not-found/__next._not-found.__PAGE__.txt +0 -5
  480. package/dist/interf-ui/_not-found/__next._not-found.txt +0 -5
  481. package/dist/interf-ui/_not-found/__next._tree.txt +0 -2
  482. package/dist/interf-ui/_not-found.html +0 -1
  483. package/dist/interf-ui/_not-found.txt +0 -15
  484. package/dist/interf-ui/index.html +0 -1
  485. package/dist/interf-ui/index.txt +0 -20
  486. package/dist/packages/contracts/lib/preparation-paths.d.ts +0 -117
  487. package/dist/packages/contracts/lib/preparation-paths.js +0 -177
  488. package/dist/packages/engine/action-definitions.d.ts +0 -407
  489. package/dist/packages/engine/action-definitions.js +0 -1158
  490. package/dist/packages/engine/action-values.d.ts +0 -1
  491. package/dist/packages/engine/action-values.js +0 -1
  492. package/dist/packages/engine/agents/lib/args.d.ts +0 -4
  493. package/dist/packages/engine/agents/lib/args.js +0 -52
  494. package/dist/packages/engine/agents/lib/chart-guidance.d.ts +0 -1
  495. package/dist/packages/engine/agents/lib/chart-guidance.js +0 -8
  496. package/dist/packages/engine/agents/lib/constants.js +0 -28
  497. package/dist/packages/engine/agents/lib/logs.d.ts +0 -2
  498. package/dist/packages/engine/agents/lib/logs.js +0 -17
  499. package/dist/packages/engine/agents/lib/render.d.ts +0 -8
  500. package/dist/packages/engine/agents/lib/schema.d.ts +0 -8
  501. package/dist/packages/engine/agents/lib/schema.js +0 -7
  502. package/dist/packages/engine/agents/lib/shells.d.ts +0 -74
  503. package/dist/packages/engine/agents/lib/shells.js +0 -1052
  504. package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +0 -3
  505. package/dist/packages/engine/build/artifact-counts.d.ts +0 -1
  506. package/dist/packages/engine/build/billing-events.d.ts +0 -89
  507. package/dist/packages/engine/build/build-pipeline.js +0 -175
  508. package/dist/packages/engine/build/build-plan-runs.d.ts +0 -14
  509. package/dist/packages/engine/build/build-plan-runs.js +0 -31
  510. package/dist/packages/engine/build/build-stage-plan.d.ts +0 -16
  511. package/dist/packages/engine/build/build-stage-plan.js +0 -100
  512. package/dist/packages/engine/build/build-stage-runner.js +0 -94
  513. package/dist/packages/engine/build/build-target.js +0 -16
  514. package/dist/packages/engine/build/check-evaluator.js +0 -298
  515. package/dist/packages/engine/build/lib/schema.js +0 -316
  516. package/dist/packages/engine/build/reset.d.ts +0 -2
  517. package/dist/packages/engine/build/reset.js +0 -74
  518. package/dist/packages/engine/build/runtime-inventory.d.ts +0 -7
  519. package/dist/packages/engine/build/runtime-paths.d.ts +0 -8
  520. package/dist/packages/engine/build/runtime-paths.js +0 -26
  521. package/dist/packages/engine/build/runtime-runs.d.ts +0 -10
  522. package/dist/packages/engine/build/runtime-runs.js +0 -224
  523. package/dist/packages/engine/build/runtime.d.ts +0 -5
  524. package/dist/packages/engine/build/runtime.js +0 -4
  525. package/dist/packages/engine/build/source-files.d.ts +0 -46
  526. package/dist/packages/engine/build/source-files.js +0 -149
  527. package/dist/packages/engine/build/state-artifacts.d.ts +0 -9
  528. package/dist/packages/engine/build/state-artifacts.js +0 -14
  529. package/dist/packages/engine/build/state-health.d.ts +0 -4
  530. package/dist/packages/engine/build/state-io.d.ts +0 -11
  531. package/dist/packages/engine/build/state-io.js +0 -82
  532. package/dist/packages/engine/build/state-paths.d.ts +0 -5
  533. package/dist/packages/engine/build/state-paths.js +0 -16
  534. package/dist/packages/engine/build/state-view.d.ts +0 -5
  535. package/dist/packages/engine/build/state-view.js +0 -94
  536. package/dist/packages/engine/build/state.d.ts +0 -7
  537. package/dist/packages/engine/build/state.js +0 -12
  538. package/dist/packages/engine/build/validate-helpers.d.ts +0 -12
  539. package/dist/packages/engine/build/validate-helpers.js +0 -41
  540. package/dist/packages/engine/build/verifiable-context-paths.d.ts +0 -47
  541. package/dist/packages/engine/build/verifiable-context-paths.js +0 -121
  542. package/dist/packages/engine/build/verifiable-context-schema.d.ts +0 -21
  543. package/dist/packages/engine/build/verifiable-context-schema.js +0 -126
  544. package/dist/packages/engine/cloud-seams.d.ts +0 -115
  545. package/dist/packages/engine/cloud-seams.js +0 -84
  546. package/dist/packages/engine/index.d.ts +0 -22
  547. package/dist/packages/engine/index.js +0 -15
  548. package/dist/packages/engine/instance-paths.d.ts +0 -106
  549. package/dist/packages/engine/instance-paths.js +0 -171
  550. package/dist/packages/engine/lib/schema.d.ts +0 -6304
  551. package/dist/packages/engine/lib/schema.js +0 -730
  552. package/dist/packages/engine/native-run-handlers.d.ts +0 -25
  553. package/dist/packages/engine/preparation-store.d.ts +0 -105
  554. package/dist/packages/engine/preparation-store.js +0 -213
  555. package/dist/packages/engine/readiness-check-draft.d.ts +0 -20
  556. package/dist/packages/engine/readiness-check-draft.js +0 -111
  557. package/dist/packages/engine/requested-artifacts.d.ts +0 -5
  558. package/dist/packages/engine/routes.d.ts +0 -85
  559. package/dist/packages/engine/routes.js +0 -99
  560. package/dist/packages/engine/runtime-caches.d.ts +0 -76
  561. package/dist/packages/engine/runtime-caches.js +0 -191
  562. package/dist/packages/engine/runtime-proposal-helpers.d.ts +0 -35
  563. package/dist/packages/engine/runtime-proposal-helpers.js +0 -247
  564. package/dist/packages/engine/runtime.d.ts +0 -371
  565. package/dist/packages/engine/runtime.js +0 -2463
  566. package/dist/packages/engine/server.d.ts +0 -58
  567. package/dist/packages/engine/server.js +0 -1399
  568. package/dist/packages/engine/verify/readiness-check-run.d.ts +0 -82
  569. package/dist/packages/engine/verify/readiness-check-run.js +0 -265
  570. package/dist/packages/engine/verify/verify-paths.js +0 -61
  571. package/dist/packages/engine/verify/verify-sandbox.js +0 -88
  572. package/dist/packages/engine/verify/verify-specs.js +0 -114
  573. package/dist/packages/engine/verify/verify-targets.d.ts +0 -5
  574. package/dist/packages/engine/wire-schemas.d.ts +0 -547
  575. package/dist/packages/engine/wire-schemas.js +0 -59
  576. package/dist/packages/project/index.d.ts +0 -9
  577. package/dist/packages/project/interf-bootstrap.d.ts +0 -1
  578. package/dist/packages/project/interf-bootstrap.js +0 -1
  579. package/dist/packages/project/interf-scaffold.d.ts +0 -3
  580. package/dist/packages/project/interf-scaffold.js +0 -136
  581. package/dist/packages/project/interf.d.ts +0 -4
  582. package/dist/packages/project/interf.js +0 -3
  583. package/dist/packages/project/lib/schema.d.ts +0 -328
  584. package/dist/packages/project/lib/schema.js +0 -136
  585. package/dist/packages/project/preparation-entries.d.ts +0 -11
  586. package/dist/packages/project/preparation-entries.js +0 -49
  587. package/dist/packages/project/source-config.d.ts +0 -46
  588. package/dist/packages/project/source-config.js +0 -394
  589. package/dist/packages/project/source-folders.d.ts +0 -11
  590. package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +0 -27
  591. package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +0 -21
  592. package/public-repo/plugins/README.md +0 -9
  593. package/public-repo/plugins/interf/.claude-plugin/plugin.json +0 -21
  594. package/public-repo/plugins/interf/.mcp.json +0 -12
  595. package/public-repo/plugins/interf/README.md +0 -32
  596. package/public-repo/plugins/interf/skills/interf/SKILL.md +0 -376
  597. /package/dist/packages/{engine/agents/lib/types.js → runtime/actions/fields.js} +0 -0
  598. /package/dist/packages/{engine → runtime}/agents/lib/agents.d.ts +0 -0
  599. /package/dist/packages/{engine → runtime}/agents/lib/agents.js +0 -0
  600. /package/dist/packages/{engine → runtime}/agents/lib/execution.d.ts +0 -0
  601. /package/dist/packages/{engine → runtime}/agents/lib/preflight.d.ts +0 -0
  602. /package/dist/packages/{engine → runtime}/agents/lib/status.d.ts +0 -0
  603. /package/dist/packages/{engine/build/runtime-types.js → runtime/agents/lib/types.js} +0 -0
  604. /package/dist/packages/{engine/verify/verify-types.js → runtime/agents/providers/types.js} +0 -0
  605. /package/dist/packages/{engine → runtime}/agents/role-router.d.ts +0 -0
  606. /package/dist/packages/{engine → runtime}/build/build-execution.d.ts +0 -0
  607. /package/dist/packages/{engine → runtime}/build/build-execution.js +0 -0
  608. /package/dist/packages/{engine → runtime}/build/runtime-contracts.d.ts +0 -0
  609. /package/dist/packages/{engine → runtime}/build/runtime-prompt.d.ts +0 -0
  610. /package/dist/packages/{engine → runtime}/execution/adapters.d.ts +0 -0
  611. /package/dist/packages/{engine → runtime}/execution/adapters.js +0 -0
  612. /package/dist/packages/{engine → runtime}/execution/events.d.ts +0 -0
  613. /package/dist/packages/{engine → runtime}/execution/events.js +0 -0
  614. /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.d.ts +0 -0
  615. /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.js +0 -0
  616. /package/dist/packages/{engine → runtime}/verify/verify-types.d.ts +0 -0
@@ -0,0 +1,3011 @@
1
+ import { z, type ZodType } from "zod";
2
+ export type ServiceOperationVisibility = "public" | "app" | "admin" | "internal";
3
+ export type HttpMethod = "GET" | "POST" | "PATCH" | "DELETE";
4
+ export interface ServiceOperationParameter {
5
+ name: string;
6
+ in: "path" | "query" | "header";
7
+ required: boolean;
8
+ description: string;
9
+ schema: ZodType;
10
+ }
11
+ export interface ServiceOperation {
12
+ id: string;
13
+ method: HttpMethod;
14
+ path: string;
15
+ tags: string[];
16
+ summary: string;
17
+ description: string;
18
+ visibility: ServiceOperationVisibility;
19
+ workflow_step?: number;
20
+ request_schema?: ZodType;
21
+ response_schema?: ZodType;
22
+ response_content_type?: "application/json" | "text/plain" | "application/octet-stream";
23
+ success_status: number;
24
+ parameters?: ServiceOperationParameter[];
25
+ }
26
+ declare const EmptyObjectSchema: z.ZodObject<{}, z.core.$strict>;
27
+ export declare const SERVICE_OPERATIONS: readonly [{
28
+ readonly id: "getHealth";
29
+ readonly method: "GET";
30
+ readonly path: "/health";
31
+ readonly tags: ["Instance"];
32
+ readonly summary: "Check local service health";
33
+ readonly description: "Small tokenless liveness probe for local clients.";
34
+ readonly visibility: "public";
35
+ readonly response_schema: z.ZodObject<{
36
+ kind: z.ZodLiteral<"interf-local-service-health">;
37
+ version: z.ZodLiteral<1>;
38
+ status: z.ZodLiteral<"ok">;
39
+ host: z.ZodString;
40
+ port: z.ZodNumber;
41
+ service_url: z.ZodString;
42
+ control_path: z.ZodOptional<z.ZodString>;
43
+ source_folder_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ started_at: z.ZodOptional<z.ZodString>;
45
+ package_version: z.ZodOptional<z.ZodString>;
46
+ instance_started_at: z.ZodOptional<z.ZodString>;
47
+ active_runs: z.ZodDefault<z.ZodNumber>;
48
+ idle_for_seconds: z.ZodDefault<z.ZodNumber>;
49
+ }, z.core.$strict>;
50
+ readonly success_status: 200;
51
+ }, {
52
+ readonly id: "getInstance";
53
+ readonly method: "GET";
54
+ readonly path: "/v1/instance";
55
+ readonly tags: ["Instance"];
56
+ readonly summary: "Get instance metadata";
57
+ readonly description: "Return local service metadata without Project or Source contents.";
58
+ readonly visibility: "public";
59
+ readonly response_schema: z.ZodObject<{
60
+ kind: z.ZodLiteral<"interf-instance">;
61
+ version: z.ZodLiteral<1>;
62
+ url: z.ZodString;
63
+ host: z.ZodString;
64
+ port: z.ZodNumber;
65
+ pid: z.ZodOptional<z.ZodNumber>;
66
+ started_at: z.ZodString;
67
+ uptime_seconds: z.ZodOptional<z.ZodNumber>;
68
+ package_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ project_count: z.ZodNumber;
70
+ active_run_count: z.ZodNumber;
71
+ idle_for_seconds: z.ZodNumber;
72
+ auth_required: z.ZodBoolean;
73
+ owner_kind: z.ZodOptional<z.ZodEnum<{
74
+ "desktop-app": "desktop-app";
75
+ headless: "headless";
76
+ }>>;
77
+ owner_pid: z.ZodOptional<z.ZodNumber>;
78
+ agent_count: z.ZodOptional<z.ZodNumber>;
79
+ default_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ connection_kind: z.ZodOptional<z.ZodEnum<{
81
+ local: "local";
82
+ remote: "remote";
83
+ }>>;
84
+ }, z.core.$strict>;
85
+ readonly success_status: 200;
86
+ }, {
87
+ readonly id: "getOpenApi";
88
+ readonly method: "GET";
89
+ readonly path: "/v1/openapi.json";
90
+ readonly tags: ["Instance"];
91
+ readonly summary: "Get OpenAPI contract";
92
+ readonly description: "Return the generated OpenAPI document for the local service API.";
93
+ readonly visibility: "public";
94
+ readonly response_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
95
+ readonly success_status: 200;
96
+ }, {
97
+ readonly id: "listProjects";
98
+ readonly method: "GET";
99
+ readonly path: "/v1/projects";
100
+ readonly tags: ["Projects"];
101
+ readonly summary: "List Projects";
102
+ readonly description: "Return Projects registered on this instance with Source bindings, intent, Build Plan selection, and Context Graph locators.";
103
+ readonly visibility: "app";
104
+ readonly response_schema: z.ZodObject<{
105
+ projects: z.ZodArray<z.ZodObject<{
106
+ id: z.ZodString;
107
+ project_id: z.ZodOptional<z.ZodString>;
108
+ source: z.ZodObject<{
109
+ kind: z.ZodEnum<{
110
+ "local-folder": "local-folder";
111
+ }>;
112
+ locator: z.ZodString;
113
+ }, z.core.$strict>;
114
+ intent: z.ZodString;
115
+ build_plan_id: z.ZodNullable<z.ZodString>;
116
+ config_path: z.ZodString;
117
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ context_graph: z.ZodObject<{
119
+ kind: z.ZodEnum<{
120
+ "local-path": "local-path";
121
+ "remote-url": "remote-url";
122
+ "api-served": "api-served";
123
+ }>;
124
+ value: z.ZodString;
125
+ }, z.core.$strict>;
126
+ context_graph_path: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strict>>;
128
+ }, z.core.$strict>;
129
+ readonly success_status: 200;
130
+ }, {
131
+ readonly id: "createProject";
132
+ readonly method: "POST";
133
+ readonly path: "/v1/projects";
134
+ readonly tags: ["Projects"];
135
+ readonly summary: "Create Project";
136
+ readonly description: "Create a Project bound to one Source and one agent task intent. Project ids may be generated by clients.";
137
+ readonly visibility: "app";
138
+ readonly workflow_step: 1;
139
+ readonly request_schema: z.ZodObject<{
140
+ id: z.ZodString;
141
+ source: z.ZodObject<{
142
+ kind: z.ZodEnum<{
143
+ "local-folder": "local-folder";
144
+ }>;
145
+ locator: z.ZodString;
146
+ }, z.core.$strict>;
147
+ intent: z.ZodString;
148
+ build_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ }, z.core.$strict>;
150
+ readonly response_schema: z.ZodObject<{
151
+ id: z.ZodString;
152
+ project_id: z.ZodOptional<z.ZodString>;
153
+ source: z.ZodObject<{
154
+ kind: z.ZodEnum<{
155
+ "local-folder": "local-folder";
156
+ }>;
157
+ locator: z.ZodString;
158
+ }, z.core.$strict>;
159
+ intent: z.ZodString;
160
+ build_plan_id: z.ZodNullable<z.ZodString>;
161
+ config_path: z.ZodString;
162
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ context_graph: z.ZodObject<{
164
+ kind: z.ZodEnum<{
165
+ "local-path": "local-path";
166
+ "remote-url": "remote-url";
167
+ "api-served": "api-served";
168
+ }>;
169
+ value: z.ZodString;
170
+ }, z.core.$strict>;
171
+ context_graph_path: z.ZodOptional<z.ZodString>;
172
+ }, z.core.$strict>;
173
+ readonly success_status: 201;
174
+ }, {
175
+ readonly id: "getProject";
176
+ readonly method: "GET";
177
+ readonly path: "/v1/projects/{project_id}";
178
+ readonly tags: ["Projects"];
179
+ readonly summary: "Get Project";
180
+ readonly description: "Read one Project to confirm its Source binding, selected Build Plan, readiness, and latest Context Graph.";
181
+ readonly visibility: "app";
182
+ readonly parameters: [ServiceOperationParameter];
183
+ readonly response_schema: z.ZodObject<{
184
+ id: z.ZodString;
185
+ name: z.ZodString;
186
+ source: z.ZodObject<{
187
+ kind: z.ZodEnum<{
188
+ "local-folder": "local-folder";
189
+ }>;
190
+ locator: z.ZodString;
191
+ }, z.core.$strict>;
192
+ intent: z.ZodString;
193
+ config: z.ZodObject<{
194
+ id: z.ZodOptional<z.ZodString>;
195
+ name: z.ZodString;
196
+ intent: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
197
+ path: z.ZodString;
198
+ build_plan: z.ZodOptional<z.ZodString>;
199
+ latest_context_graph_run_id: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>;
201
+ config_path: z.ZodString;
202
+ source_path: z.ZodString;
203
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ build_plan_id: z.ZodNullable<z.ZodString>;
205
+ context_graph: z.ZodObject<{
206
+ project: z.ZodString;
207
+ path: z.ZodNullable<z.ZodString>;
208
+ exists: z.ZodBoolean;
209
+ intent: z.ZodString;
210
+ build_plan_id: z.ZodNullable<z.ZodString>;
211
+ latest_build_run_id: z.ZodNullable<z.ZodString>;
212
+ latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
213
+ }, z.core.$strict>;
214
+ context_graph_path: z.ZodNullable<z.ZodString>;
215
+ readiness: z.ZodObject<{
216
+ kind: z.ZodLiteral<"interf-readiness-state">;
217
+ version: z.ZodLiteral<1>;
218
+ generated_at: z.ZodString;
219
+ project: z.ZodString;
220
+ status: z.ZodEnum<{
221
+ ready: "ready";
222
+ "not-ready": "not-ready";
223
+ failed: "failed";
224
+ "not-configured": "not-configured";
225
+ "not-built": "not-built";
226
+ building: "building";
227
+ built: "built";
228
+ checking: "checking";
229
+ stale: "stale";
230
+ }>;
231
+ ready: z.ZodBoolean;
232
+ summary: z.ZodString;
233
+ context_graph_path: z.ZodNullable<z.ZodString>;
234
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ build: z.ZodNullable<z.ZodObject<{
237
+ gate: z.ZodEnum<{
238
+ "context-graph": "context-graph";
239
+ "project-config": "project-config";
240
+ "build-run": "build-run";
241
+ "artifact-diagnostics": "artifact-diagnostics";
242
+ "context-checks": "context-checks";
243
+ benchmarks: "benchmarks";
244
+ "benchmarks-current": "benchmarks-current";
245
+ }>;
246
+ ok: z.ZodBoolean;
247
+ status: z.ZodOptional<z.ZodEnum<{
248
+ ready: "ready";
249
+ "not-ready": "not-ready";
250
+ failed: "failed";
251
+ "not-configured": "not-configured";
252
+ "not-built": "not-built";
253
+ building: "building";
254
+ built: "built";
255
+ checking: "checking";
256
+ stale: "stale";
257
+ }>>;
258
+ summary: z.ZodString;
259
+ detail: z.ZodOptional<z.ZodString>;
260
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ }, z.core.$strict>>;
263
+ check_results: z.ZodObject<{
264
+ configured: z.ZodNumber;
265
+ fingerprint: z.ZodNullable<z.ZodString>;
266
+ source_files: z.ZodNullable<z.ZodObject<{
267
+ passed: z.ZodNumber;
268
+ total: z.ZodNumber;
269
+ pass_rate: z.ZodNullable<z.ZodNumber>;
270
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ stale: z.ZodDefault<z.ZodBoolean>;
272
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ }, z.core.$strict>>;
275
+ context_graph: z.ZodNullable<z.ZodObject<{
276
+ passed: z.ZodNumber;
277
+ total: z.ZodNumber;
278
+ pass_rate: z.ZodNullable<z.ZodNumber>;
279
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
+ stale: z.ZodDefault<z.ZodBoolean>;
281
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ }, z.core.$strict>>;
284
+ }, z.core.$strict>;
285
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
286
+ gate: z.ZodEnum<{
287
+ "context-graph": "context-graph";
288
+ "project-config": "project-config";
289
+ "build-run": "build-run";
290
+ "artifact-diagnostics": "artifact-diagnostics";
291
+ "context-checks": "context-checks";
292
+ benchmarks: "benchmarks";
293
+ "benchmarks-current": "benchmarks-current";
294
+ }>;
295
+ ok: z.ZodBoolean;
296
+ status: z.ZodOptional<z.ZodEnum<{
297
+ ready: "ready";
298
+ "not-ready": "not-ready";
299
+ failed: "failed";
300
+ "not-configured": "not-configured";
301
+ "not-built": "not-built";
302
+ building: "building";
303
+ built: "built";
304
+ checking: "checking";
305
+ stale: "stale";
306
+ }>>;
307
+ summary: z.ZodString;
308
+ detail: z.ZodOptional<z.ZodString>;
309
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ }, z.core.$strict>>>;
312
+ }, z.core.$strict>;
313
+ runs: z.ZodObject<{
314
+ latest_build_run_id: z.ZodNullable<z.ZodString>;
315
+ latest_benchmark_run_id: z.ZodNullable<z.ZodString>;
316
+ }, z.core.$strict>;
317
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
320
+ artifact_id: z.ZodString;
321
+ status: z.ZodEnum<{
322
+ ready: "ready";
323
+ failed: "failed";
324
+ skipped: "skipped";
325
+ not_ready: "not_ready";
326
+ }>;
327
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
328
+ check_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
329
+ check_id: z.ZodString;
330
+ kind: z.ZodEnum<{
331
+ file_exists: "file_exists";
332
+ source_manifest_valid: "source_manifest_valid";
333
+ min_file_count: "min_file_count";
334
+ min_file_count_matches_source: "min_file_count_matches_source";
335
+ source_summary_folders: "source_summary_folders";
336
+ source_page_coverage: "source_page_coverage";
337
+ frontmatter_valid: "frontmatter_valid";
338
+ frontmatter_required_keys: "frontmatter_required_keys";
339
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
340
+ source_refs_required: "source_refs_required";
341
+ summary_backlinks_present: "summary_backlinks_present";
342
+ knowledge_web_connectivity: "knowledge_web_connectivity";
343
+ graph_notes_connected: "graph_notes_connected";
344
+ wikilinks_valid: "wikilinks_valid";
345
+ must_not_contain: "must_not_contain";
346
+ must_contain: "must_contain";
347
+ qa_match: "qa_match";
348
+ }>;
349
+ passed: z.ZodBoolean;
350
+ required: z.ZodBoolean;
351
+ summary: z.ZodString;
352
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
353
+ evaluated_at: z.ZodString;
354
+ }, z.core.$strict>>>;
355
+ summary: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strict>>>;
357
+ }, z.core.$strict>;
358
+ readonly success_status: 200;
359
+ }, {
360
+ readonly id: "prepareBuildPlan";
361
+ readonly method: "POST";
362
+ readonly path: "/v1/projects/{project_id}/build-plan-drafts";
363
+ readonly tags: ["Build Plans"];
364
+ readonly summary: "Prepare Build Plan";
365
+ readonly description: "Draft a Build Plan from the Project intent, requested outputs, and coverage expectations. This does not run a Build.";
366
+ readonly visibility: "app";
367
+ readonly workflow_step: 2;
368
+ readonly parameters: [ServiceOperationParameter];
369
+ readonly request_schema: z.ZodObject<{
370
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
371
+ id: z.ZodOptional<z.ZodString>;
372
+ label: z.ZodString;
373
+ description: z.ZodOptional<z.ZodString>;
374
+ evidence: z.ZodOptional<z.ZodString>;
375
+ evidence_expectation: z.ZodOptional<z.ZodString>;
376
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
377
+ required: z.ZodDefault<z.ZodBoolean>;
378
+ }, z.core.$strict>>>;
379
+ label: z.ZodString;
380
+ context_checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
381
+ id: z.ZodOptional<z.ZodString>;
382
+ label: z.ZodString;
383
+ description: z.ZodOptional<z.ZodString>;
384
+ evidence: z.ZodOptional<z.ZodString>;
385
+ evidence_expectation: z.ZodOptional<z.ZodString>;
386
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
387
+ required: z.ZodDefault<z.ZodBoolean>;
388
+ }, z.core.$strict>>>;
389
+ requested_artifacts: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
390
+ id: z.ZodOptional<z.ZodString>;
391
+ title: z.ZodString;
392
+ purpose: z.ZodOptional<z.ZodString>;
393
+ description: z.ZodOptional<z.ZodString>;
394
+ checks: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
395
+ label: z.ZodString;
396
+ }, z.core.$strict>]>>>;
397
+ output: z.ZodOptional<z.ZodObject<{
398
+ path: z.ZodOptional<z.ZodString>;
399
+ shape: z.ZodOptional<z.ZodObject<{
400
+ kind: z.ZodLiteral<"path">;
401
+ path: z.ZodString;
402
+ artifact_kind: z.ZodEnum<{
403
+ file: "file";
404
+ directory: "directory";
405
+ }>;
406
+ }, z.core.$strict>>;
407
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
408
+ id: z.ZodString;
409
+ kind: z.ZodEnum<{
410
+ file_exists: "file_exists";
411
+ source_manifest_valid: "source_manifest_valid";
412
+ min_file_count: "min_file_count";
413
+ min_file_count_matches_source: "min_file_count_matches_source";
414
+ source_summary_folders: "source_summary_folders";
415
+ source_page_coverage: "source_page_coverage";
416
+ frontmatter_valid: "frontmatter_valid";
417
+ frontmatter_required_keys: "frontmatter_required_keys";
418
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
419
+ source_refs_required: "source_refs_required";
420
+ summary_backlinks_present: "summary_backlinks_present";
421
+ knowledge_web_connectivity: "knowledge_web_connectivity";
422
+ graph_notes_connected: "graph_notes_connected";
423
+ wikilinks_valid: "wikilinks_valid";
424
+ must_not_contain: "must_not_contain";
425
+ must_contain: "must_contain";
426
+ qa_match: "qa_match";
427
+ }>;
428
+ description: z.ZodOptional<z.ZodString>;
429
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
+ required: z.ZodDefault<z.ZodBoolean>;
431
+ }, z.core.$strict>>>;
432
+ stage_hint: z.ZodOptional<z.ZodString>;
433
+ }, z.core.$strict>>;
434
+ }, z.core.$strict>>>>;
435
+ user_prep_instructions: z.ZodOptional<z.ZodString>;
436
+ source_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
437
+ summary: z.ZodOptional<z.ZodString>;
438
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
439
+ name: z.ZodOptional<z.ZodString>;
440
+ path: z.ZodOptional<z.ZodString>;
441
+ kind: z.ZodOptional<z.ZodString>;
442
+ page_count: z.ZodOptional<z.ZodNumber>;
443
+ note: z.ZodOptional<z.ZodString>;
444
+ }, z.core.$strict>>>;
445
+ observations: z.ZodDefault<z.ZodArray<z.ZodString>>;
446
+ limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
447
+ }, z.core.$strict>>>;
448
+ artifact_requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ description: z.ZodOptional<z.ZodString>;
451
+ shape: z.ZodObject<{
452
+ kind: z.ZodLiteral<"path">;
453
+ path: z.ZodString;
454
+ artifact_kind: z.ZodEnum<{
455
+ file: "file";
456
+ directory: "directory";
457
+ }>;
458
+ }, z.core.$strict>;
459
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
460
+ id: z.ZodString;
461
+ kind: z.ZodEnum<{
462
+ file_exists: "file_exists";
463
+ source_manifest_valid: "source_manifest_valid";
464
+ min_file_count: "min_file_count";
465
+ min_file_count_matches_source: "min_file_count_matches_source";
466
+ source_summary_folders: "source_summary_folders";
467
+ source_page_coverage: "source_page_coverage";
468
+ frontmatter_valid: "frontmatter_valid";
469
+ frontmatter_required_keys: "frontmatter_required_keys";
470
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
471
+ source_refs_required: "source_refs_required";
472
+ summary_backlinks_present: "summary_backlinks_present";
473
+ knowledge_web_connectivity: "knowledge_web_connectivity";
474
+ graph_notes_connected: "graph_notes_connected";
475
+ wikilinks_valid: "wikilinks_valid";
476
+ must_not_contain: "must_not_contain";
477
+ must_contain: "must_contain";
478
+ qa_match: "qa_match";
479
+ }>;
480
+ description: z.ZodOptional<z.ZodString>;
481
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
+ required: z.ZodDefault<z.ZodBoolean>;
483
+ }, z.core.$strict>>>;
484
+ stage_hint: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strict>>>;
486
+ build_plan_id: z.ZodString;
487
+ hint: z.ZodOptional<z.ZodString>;
488
+ base_build_plan_id: z.ZodOptional<z.ZodString>;
489
+ reference_build_plan_id: z.ZodOptional<z.ZodString>;
490
+ intent: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strict>;
492
+ readonly response_schema: z.ZodObject<{
493
+ kind: z.ZodLiteral<"interf-local-job-run">;
494
+ version: z.ZodLiteral<1>;
495
+ run_id: z.ZodString;
496
+ job_type: z.ZodEnum<{
497
+ "benchmark-question-draft": "benchmark-question-draft";
498
+ "build-plan-draft": "build-plan-draft";
499
+ "build-plan-improvement": "build-plan-improvement";
500
+ }>;
501
+ status: z.ZodEnum<{
502
+ running: "running";
503
+ failed: "failed";
504
+ cancelled: "cancelled";
505
+ queued: "queued";
506
+ succeeded: "succeeded";
507
+ }>;
508
+ title: z.ZodString;
509
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
510
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
511
+ source_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
512
+ output_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
+ agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
514
+ name: z.ZodString;
515
+ display_name: z.ZodString;
516
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
+ }, z.core.$strict>>>;
518
+ created_at: z.ZodString;
519
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
520
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
521
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ label: z.ZodString;
524
+ status: z.ZodEnum<{
525
+ running: "running";
526
+ failed: "failed";
527
+ cancelled: "cancelled";
528
+ queued: "queued";
529
+ succeeded: "succeeded";
530
+ }>;
531
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
535
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
536
+ }, z.core.$strict>>>;
537
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
538
+ event_id: z.ZodString;
539
+ run_id: z.ZodString;
540
+ timestamp: z.ZodString;
541
+ type: z.ZodEnum<{
542
+ "artifact.written": "artifact.written";
543
+ "log.appended": "log.appended";
544
+ "job.started": "job.started";
545
+ "step.started": "step.started";
546
+ "step.completed": "step.completed";
547
+ "step.failed": "step.failed";
548
+ "job.completed": "job.completed";
549
+ "job.failed": "job.failed";
550
+ }>;
551
+ step_id: z.ZodOptional<z.ZodString>;
552
+ message: z.ZodOptional<z.ZodString>;
553
+ artifact: z.ZodOptional<z.ZodObject<{
554
+ path: z.ZodString;
555
+ role: z.ZodEnum<{
556
+ runtime: "runtime";
557
+ output: "output";
558
+ source: "source";
559
+ evidence: "evidence";
560
+ benchmark: "benchmark";
561
+ }>;
562
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ label: z.ZodOptional<z.ZodString>;
564
+ sha256: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strict>>;
566
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
567
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
568
+ }, z.core.$strict>>>;
569
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
570
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
+ }, z.core.$strict>;
572
+ readonly success_status: 202;
573
+ }, {
574
+ readonly id: "runBuild";
575
+ readonly method: "POST";
576
+ readonly path: "/v1/projects/{project_id}/build-runs";
577
+ readonly tags: ["Build Runs"];
578
+ readonly summary: "Run Build";
579
+ readonly description: "Run the selected Build Plan and create an isolated Context Graph folder. Use only after Build Plan approval or explicit autonomy.";
580
+ readonly visibility: "app";
581
+ readonly workflow_step: 3;
582
+ readonly parameters: [ServiceOperationParameter];
583
+ readonly request_schema: z.ZodDefault<z.ZodObject<{
584
+ max_loops: z.ZodOptional<z.ZodNumber>;
585
+ max_attempts: z.ZodOptional<z.ZodNumber>;
586
+ preserve_stage_shells: z.ZodOptional<z.ZodEnum<{
587
+ "on-failure": "on-failure";
588
+ always: "always";
589
+ }>>;
590
+ }, z.core.$strict>>;
591
+ readonly response_schema: z.ZodObject<{
592
+ run: z.ZodObject<{
593
+ kind: z.ZodLiteral<"interf-build-run">;
594
+ version: z.ZodLiteral<1>;
595
+ run_id: z.ZodString;
596
+ status: z.ZodEnum<{
597
+ running: "running";
598
+ failed: "failed";
599
+ cancelled: "cancelled";
600
+ queued: "queued";
601
+ succeeded: "succeeded";
602
+ }>;
603
+ project: z.ZodString;
604
+ build_plan: z.ZodString;
605
+ backend: z.ZodEnum<{
606
+ native: "native";
607
+ }>;
608
+ source_path: z.ZodString;
609
+ context_graph_path: z.ZodString;
610
+ created_at: z.ZodString;
611
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
614
+ run_id: z.ZodString;
615
+ stage_id: z.ZodString;
616
+ stage_label: z.ZodOptional<z.ZodString>;
617
+ stage_index: z.ZodOptional<z.ZodNumber>;
618
+ stage_total: z.ZodOptional<z.ZodNumber>;
619
+ status: z.ZodEnum<{
620
+ running: "running";
621
+ failed: "failed";
622
+ queued: "queued";
623
+ succeeded: "succeeded";
624
+ }>;
625
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
+ contract: z.ZodOptional<z.ZodObject<{
629
+ stage_label: z.ZodOptional<z.ZodString>;
630
+ stage_index: z.ZodOptional<z.ZodNumber>;
631
+ stage_total: z.ZodOptional<z.ZodNumber>;
632
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
633
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
634
+ }, z.core.$strict>>;
635
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
636
+ kind: z.ZodEnum<{
637
+ "local-agent": "local-agent";
638
+ "connected-provider": "connected-provider";
639
+ managed: "managed";
640
+ }>;
641
+ name: z.ZodString;
642
+ display_name: z.ZodString;
643
+ command: z.ZodNullable<z.ZodString>;
644
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
648
+ }, z.core.$strip>>>;
649
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
650
+ path: z.ZodString;
651
+ role: z.ZodEnum<{
652
+ runtime: "runtime";
653
+ output: "output";
654
+ source: "source";
655
+ evidence: "evidence";
656
+ benchmark: "benchmark";
657
+ }>;
658
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
+ label: z.ZodOptional<z.ZodString>;
660
+ sha256: z.ZodOptional<z.ZodString>;
661
+ }, z.core.$strict>>>;
662
+ logs: z.ZodOptional<z.ZodObject<{
663
+ prompt_path: z.ZodOptional<z.ZodString>;
664
+ event_stream_path: z.ZodOptional<z.ZodString>;
665
+ status_path: z.ZodOptional<z.ZodString>;
666
+ contract_path: z.ZodOptional<z.ZodString>;
667
+ evidence_path: z.ZodOptional<z.ZodString>;
668
+ }, z.core.$strict>>;
669
+ latest_evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
670
+ id: z.ZodString;
671
+ run_id: z.ZodString;
672
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ generated_at: z.ZodString;
674
+ summary: z.ZodString;
675
+ files_processed: z.ZodOptional<z.ZodNumber>;
676
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
677
+ path: z.ZodString;
678
+ role: z.ZodEnum<{
679
+ runtime: "runtime";
680
+ output: "output";
681
+ source: "source";
682
+ evidence: "evidence";
683
+ benchmark: "benchmark";
684
+ }>;
685
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
+ label: z.ZodOptional<z.ZodString>;
687
+ sha256: z.ZodOptional<z.ZodString>;
688
+ }, z.core.$strict>>>;
689
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
690
+ id: z.ZodString;
691
+ label: z.ZodString;
692
+ ok: z.ZodBoolean;
693
+ detail: z.ZodOptional<z.ZodString>;
694
+ }, z.core.$strict>>>;
695
+ }, z.core.$strict>>>;
696
+ failure: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
+ }, z.core.$strict>>>;
698
+ events: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
699
+ event_id: z.ZodString;
700
+ run_id: z.ZodString;
701
+ timestamp: z.ZodString;
702
+ type: z.ZodLiteral<"run.started">;
703
+ project: z.ZodString;
704
+ build_plan: z.ZodOptional<z.ZodString>;
705
+ context_graph_path: z.ZodOptional<z.ZodString>;
706
+ backend: z.ZodEnum<{
707
+ native: "native";
708
+ }>;
709
+ }, z.core.$strict>, z.ZodObject<{
710
+ event_id: z.ZodString;
711
+ run_id: z.ZodString;
712
+ timestamp: z.ZodString;
713
+ type: z.ZodLiteral<"stage.started">;
714
+ stage_id: z.ZodString;
715
+ stage_index: z.ZodOptional<z.ZodNumber>;
716
+ stage_total: z.ZodOptional<z.ZodNumber>;
717
+ logs: z.ZodOptional<z.ZodObject<{
718
+ prompt_path: z.ZodOptional<z.ZodString>;
719
+ event_stream_path: z.ZodOptional<z.ZodString>;
720
+ status_path: z.ZodOptional<z.ZodString>;
721
+ contract_path: z.ZodOptional<z.ZodString>;
722
+ evidence_path: z.ZodOptional<z.ZodString>;
723
+ }, z.core.$strict>>;
724
+ }, z.core.$strict>, z.ZodObject<{
725
+ event_id: z.ZodString;
726
+ run_id: z.ZodString;
727
+ timestamp: z.ZodString;
728
+ type: z.ZodLiteral<"file.processed">;
729
+ stage_id: z.ZodString;
730
+ path: z.ZodString;
731
+ }, z.core.$strict>, z.ZodObject<{
732
+ event_id: z.ZodString;
733
+ run_id: z.ZodString;
734
+ timestamp: z.ZodString;
735
+ type: z.ZodLiteral<"artifact.written">;
736
+ stage_id: z.ZodString;
737
+ artifact: z.ZodObject<{
738
+ path: z.ZodString;
739
+ role: z.ZodEnum<{
740
+ runtime: "runtime";
741
+ output: "output";
742
+ source: "source";
743
+ evidence: "evidence";
744
+ benchmark: "benchmark";
745
+ }>;
746
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ label: z.ZodOptional<z.ZodString>;
748
+ sha256: z.ZodOptional<z.ZodString>;
749
+ }, z.core.$strict>;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ event_id: z.ZodString;
752
+ run_id: z.ZodString;
753
+ timestamp: z.ZodString;
754
+ type: z.ZodLiteral<"evidence.updated">;
755
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ evidence: z.ZodObject<{
757
+ id: z.ZodString;
758
+ run_id: z.ZodString;
759
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
+ generated_at: z.ZodString;
761
+ summary: z.ZodString;
762
+ files_processed: z.ZodOptional<z.ZodNumber>;
763
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
764
+ path: z.ZodString;
765
+ role: z.ZodEnum<{
766
+ runtime: "runtime";
767
+ output: "output";
768
+ source: "source";
769
+ evidence: "evidence";
770
+ benchmark: "benchmark";
771
+ }>;
772
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
773
+ label: z.ZodOptional<z.ZodString>;
774
+ sha256: z.ZodOptional<z.ZodString>;
775
+ }, z.core.$strict>>>;
776
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
777
+ id: z.ZodString;
778
+ label: z.ZodString;
779
+ ok: z.ZodBoolean;
780
+ detail: z.ZodOptional<z.ZodString>;
781
+ }, z.core.$strict>>>;
782
+ }, z.core.$strict>;
783
+ }, z.core.$strict>, z.ZodObject<{
784
+ event_id: z.ZodString;
785
+ run_id: z.ZodString;
786
+ timestamp: z.ZodString;
787
+ type: z.ZodLiteral<"log.appended">;
788
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
+ stream: z.ZodEnum<{
790
+ status: "status";
791
+ trace: "trace";
792
+ system: "system";
793
+ }>;
794
+ message: z.ZodString;
795
+ }, z.core.$strict>, z.ZodObject<{
796
+ event_id: z.ZodString;
797
+ run_id: z.ZodString;
798
+ timestamp: z.ZodString;
799
+ type: z.ZodLiteral<"stage.passed">;
800
+ stage_id: z.ZodString;
801
+ summary: z.ZodOptional<z.ZodString>;
802
+ }, z.core.$strict>, z.ZodObject<{
803
+ event_id: z.ZodString;
804
+ run_id: z.ZodString;
805
+ timestamp: z.ZodString;
806
+ type: z.ZodLiteral<"stage.failed">;
807
+ stage_id: z.ZodString;
808
+ error: z.ZodString;
809
+ }, z.core.$strict>, z.ZodObject<{
810
+ event_id: z.ZodString;
811
+ run_id: z.ZodString;
812
+ timestamp: z.ZodString;
813
+ type: z.ZodLiteral<"run.completed">;
814
+ summary: z.ZodOptional<z.ZodString>;
815
+ }, z.core.$strict>, z.ZodObject<{
816
+ event_id: z.ZodString;
817
+ run_id: z.ZodString;
818
+ timestamp: z.ZodString;
819
+ type: z.ZodLiteral<"run.failed">;
820
+ error: z.ZodString;
821
+ }, z.core.$strict>, z.ZodObject<{
822
+ event_id: z.ZodString;
823
+ run_id: z.ZodString;
824
+ timestamp: z.ZodString;
825
+ type: z.ZodLiteral<"run.cancelled">;
826
+ reason: z.ZodOptional<z.ZodString>;
827
+ }, z.core.$strict>, z.ZodObject<{
828
+ event_id: z.ZodString;
829
+ run_id: z.ZodString;
830
+ timestamp: z.ZodString;
831
+ type: z.ZodLiteral<"checks.evaluated">;
832
+ passed: z.ZodNumber;
833
+ total: z.ZodNumber;
834
+ target: z.ZodOptional<z.ZodEnum<{
835
+ "source-files": "source-files";
836
+ "context-graph": "context-graph";
837
+ }>>;
838
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
839
+ stale: z.ZodOptional<z.ZodBoolean>;
840
+ test_run_id: z.ZodOptional<z.ZodString>;
841
+ }, z.core.$strict>, z.ZodObject<{
842
+ event_id: z.ZodString;
843
+ run_id: z.ZodString;
844
+ timestamp: z.ZodString;
845
+ type: z.ZodLiteral<"readiness.updated">;
846
+ project: z.ZodString;
847
+ readiness: z.ZodObject<{
848
+ kind: z.ZodLiteral<"interf-readiness-state">;
849
+ version: z.ZodLiteral<1>;
850
+ generated_at: z.ZodString;
851
+ project: z.ZodString;
852
+ status: z.ZodEnum<{
853
+ ready: "ready";
854
+ "not-ready": "not-ready";
855
+ failed: "failed";
856
+ "not-configured": "not-configured";
857
+ "not-built": "not-built";
858
+ building: "building";
859
+ built: "built";
860
+ checking: "checking";
861
+ stale: "stale";
862
+ }>;
863
+ ready: z.ZodBoolean;
864
+ summary: z.ZodString;
865
+ context_graph_path: z.ZodNullable<z.ZodString>;
866
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
868
+ build: z.ZodNullable<z.ZodObject<{
869
+ gate: z.ZodEnum<{
870
+ "context-graph": "context-graph";
871
+ "project-config": "project-config";
872
+ "build-run": "build-run";
873
+ "artifact-diagnostics": "artifact-diagnostics";
874
+ "context-checks": "context-checks";
875
+ benchmarks: "benchmarks";
876
+ "benchmarks-current": "benchmarks-current";
877
+ }>;
878
+ ok: z.ZodBoolean;
879
+ status: z.ZodOptional<z.ZodEnum<{
880
+ ready: "ready";
881
+ "not-ready": "not-ready";
882
+ failed: "failed";
883
+ "not-configured": "not-configured";
884
+ "not-built": "not-built";
885
+ building: "building";
886
+ built: "built";
887
+ checking: "checking";
888
+ stale: "stale";
889
+ }>>;
890
+ summary: z.ZodString;
891
+ detail: z.ZodOptional<z.ZodString>;
892
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ }, z.core.$strict>>;
895
+ check_results: z.ZodObject<{
896
+ configured: z.ZodNumber;
897
+ fingerprint: z.ZodNullable<z.ZodString>;
898
+ source_files: z.ZodNullable<z.ZodObject<{
899
+ passed: z.ZodNumber;
900
+ total: z.ZodNumber;
901
+ pass_rate: z.ZodNullable<z.ZodNumber>;
902
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
903
+ stale: z.ZodDefault<z.ZodBoolean>;
904
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
906
+ }, z.core.$strict>>;
907
+ context_graph: z.ZodNullable<z.ZodObject<{
908
+ passed: z.ZodNumber;
909
+ total: z.ZodNumber;
910
+ pass_rate: z.ZodNullable<z.ZodNumber>;
911
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
+ stale: z.ZodDefault<z.ZodBoolean>;
913
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
915
+ }, z.core.$strict>>;
916
+ }, z.core.$strict>;
917
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
918
+ gate: z.ZodEnum<{
919
+ "context-graph": "context-graph";
920
+ "project-config": "project-config";
921
+ "build-run": "build-run";
922
+ "artifact-diagnostics": "artifact-diagnostics";
923
+ "context-checks": "context-checks";
924
+ benchmarks: "benchmarks";
925
+ "benchmarks-current": "benchmarks-current";
926
+ }>;
927
+ ok: z.ZodBoolean;
928
+ status: z.ZodOptional<z.ZodEnum<{
929
+ ready: "ready";
930
+ "not-ready": "not-ready";
931
+ failed: "failed";
932
+ "not-configured": "not-configured";
933
+ "not-built": "not-built";
934
+ building: "building";
935
+ built: "built";
936
+ checking: "checking";
937
+ stale: "stale";
938
+ }>>;
939
+ summary: z.ZodString;
940
+ detail: z.ZodOptional<z.ZodString>;
941
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
943
+ }, z.core.$strict>>>;
944
+ }, z.core.$strict>;
945
+ }, z.core.$strict>], "type">>>;
946
+ latest_evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
947
+ id: z.ZodString;
948
+ run_id: z.ZodString;
949
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
+ generated_at: z.ZodString;
951
+ summary: z.ZodString;
952
+ files_processed: z.ZodOptional<z.ZodNumber>;
953
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
954
+ path: z.ZodString;
955
+ role: z.ZodEnum<{
956
+ runtime: "runtime";
957
+ output: "output";
958
+ source: "source";
959
+ evidence: "evidence";
960
+ benchmark: "benchmark";
961
+ }>;
962
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
+ label: z.ZodOptional<z.ZodString>;
964
+ sha256: z.ZodOptional<z.ZodString>;
965
+ }, z.core.$strict>>>;
966
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
967
+ id: z.ZodString;
968
+ label: z.ZodString;
969
+ ok: z.ZodBoolean;
970
+ detail: z.ZodOptional<z.ZodString>;
971
+ }, z.core.$strict>>>;
972
+ }, z.core.$strict>>>;
973
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
974
+ kind: z.ZodLiteral<"interf-readiness-state">;
975
+ version: z.ZodLiteral<1>;
976
+ generated_at: z.ZodString;
977
+ project: z.ZodString;
978
+ status: z.ZodEnum<{
979
+ ready: "ready";
980
+ "not-ready": "not-ready";
981
+ failed: "failed";
982
+ "not-configured": "not-configured";
983
+ "not-built": "not-built";
984
+ building: "building";
985
+ built: "built";
986
+ checking: "checking";
987
+ stale: "stale";
988
+ }>;
989
+ ready: z.ZodBoolean;
990
+ summary: z.ZodString;
991
+ context_graph_path: z.ZodNullable<z.ZodString>;
992
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
+ build: z.ZodNullable<z.ZodObject<{
995
+ gate: z.ZodEnum<{
996
+ "context-graph": "context-graph";
997
+ "project-config": "project-config";
998
+ "build-run": "build-run";
999
+ "artifact-diagnostics": "artifact-diagnostics";
1000
+ "context-checks": "context-checks";
1001
+ benchmarks: "benchmarks";
1002
+ "benchmarks-current": "benchmarks-current";
1003
+ }>;
1004
+ ok: z.ZodBoolean;
1005
+ status: z.ZodOptional<z.ZodEnum<{
1006
+ ready: "ready";
1007
+ "not-ready": "not-ready";
1008
+ failed: "failed";
1009
+ "not-configured": "not-configured";
1010
+ "not-built": "not-built";
1011
+ building: "building";
1012
+ built: "built";
1013
+ checking: "checking";
1014
+ stale: "stale";
1015
+ }>>;
1016
+ summary: z.ZodString;
1017
+ detail: z.ZodOptional<z.ZodString>;
1018
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1019
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1020
+ }, z.core.$strict>>;
1021
+ check_results: z.ZodObject<{
1022
+ configured: z.ZodNumber;
1023
+ fingerprint: z.ZodNullable<z.ZodString>;
1024
+ source_files: z.ZodNullable<z.ZodObject<{
1025
+ passed: z.ZodNumber;
1026
+ total: z.ZodNumber;
1027
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1028
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
+ stale: z.ZodDefault<z.ZodBoolean>;
1030
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1031
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ }, z.core.$strict>>;
1033
+ context_graph: z.ZodNullable<z.ZodObject<{
1034
+ passed: z.ZodNumber;
1035
+ total: z.ZodNumber;
1036
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1037
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1038
+ stale: z.ZodDefault<z.ZodBoolean>;
1039
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1040
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1041
+ }, z.core.$strict>>;
1042
+ }, z.core.$strict>;
1043
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1044
+ gate: z.ZodEnum<{
1045
+ "context-graph": "context-graph";
1046
+ "project-config": "project-config";
1047
+ "build-run": "build-run";
1048
+ "artifact-diagnostics": "artifact-diagnostics";
1049
+ "context-checks": "context-checks";
1050
+ benchmarks: "benchmarks";
1051
+ "benchmarks-current": "benchmarks-current";
1052
+ }>;
1053
+ ok: z.ZodBoolean;
1054
+ status: z.ZodOptional<z.ZodEnum<{
1055
+ ready: "ready";
1056
+ "not-ready": "not-ready";
1057
+ failed: "failed";
1058
+ "not-configured": "not-configured";
1059
+ "not-built": "not-built";
1060
+ building: "building";
1061
+ built: "built";
1062
+ checking: "checking";
1063
+ stale: "stale";
1064
+ }>>;
1065
+ summary: z.ZodString;
1066
+ detail: z.ZodOptional<z.ZodString>;
1067
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1069
+ }, z.core.$strict>>>;
1070
+ }, z.core.$strict>>>;
1071
+ context_checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1072
+ id: z.ZodString;
1073
+ label: z.ZodString;
1074
+ description: z.ZodOptional<z.ZodString>;
1075
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
1076
+ required: z.ZodDefault<z.ZodBoolean>;
1077
+ evidence_expectation: z.ZodOptional<z.ZodString>;
1078
+ status: z.ZodOptional<z.ZodEnum<{
1079
+ passed: "passed";
1080
+ pending: "pending";
1081
+ running: "running";
1082
+ failed: "failed";
1083
+ skipped: "skipped";
1084
+ }>>;
1085
+ evidence: z.ZodOptional<z.ZodString>;
1086
+ issue: z.ZodOptional<z.ZodString>;
1087
+ }, z.core.$strict>>>;
1088
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1089
+ artifact_id: z.ZodString;
1090
+ status: z.ZodEnum<{
1091
+ ready: "ready";
1092
+ failed: "failed";
1093
+ skipped: "skipped";
1094
+ not_ready: "not_ready";
1095
+ }>;
1096
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
1097
+ check_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
1098
+ check_id: z.ZodString;
1099
+ kind: z.ZodEnum<{
1100
+ file_exists: "file_exists";
1101
+ source_manifest_valid: "source_manifest_valid";
1102
+ min_file_count: "min_file_count";
1103
+ min_file_count_matches_source: "min_file_count_matches_source";
1104
+ source_summary_folders: "source_summary_folders";
1105
+ source_page_coverage: "source_page_coverage";
1106
+ frontmatter_valid: "frontmatter_valid";
1107
+ frontmatter_required_keys: "frontmatter_required_keys";
1108
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
1109
+ source_refs_required: "source_refs_required";
1110
+ summary_backlinks_present: "summary_backlinks_present";
1111
+ knowledge_web_connectivity: "knowledge_web_connectivity";
1112
+ graph_notes_connected: "graph_notes_connected";
1113
+ wikilinks_valid: "wikilinks_valid";
1114
+ must_not_contain: "must_not_contain";
1115
+ must_contain: "must_contain";
1116
+ qa_match: "qa_match";
1117
+ }>;
1118
+ passed: z.ZodBoolean;
1119
+ required: z.ZodBoolean;
1120
+ summary: z.ZodString;
1121
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1122
+ evaluated_at: z.ZodString;
1123
+ }, z.core.$strict>>>;
1124
+ summary: z.ZodOptional<z.ZodString>;
1125
+ }, z.core.$strict>>>;
1126
+ }, z.core.$strict>;
1127
+ }, z.core.$strict>;
1128
+ readonly success_status: 201;
1129
+ }, {
1130
+ readonly id: "getRunStatus";
1131
+ readonly method: "GET";
1132
+ readonly path: "/v1/runs/{run_id}/status";
1133
+ readonly tags: ["Runs"];
1134
+ readonly summary: "Get Run status";
1135
+ readonly description: "Read compact Run observability for polling. Detailed logs and artifacts are separate resources.";
1136
+ readonly visibility: "app";
1137
+ readonly parameters: [ServiceOperationParameter];
1138
+ readonly response_schema: z.ZodObject<{
1139
+ kind: z.ZodLiteral<"interf-run-status">;
1140
+ version: z.ZodLiteral<1>;
1141
+ run_id: z.ZodString;
1142
+ run_type: z.ZodEnum<{
1143
+ build: "build";
1144
+ verify: "verify";
1145
+ "benchmark-question-draft": "benchmark-question-draft";
1146
+ "build-plan-draft": "build-plan-draft";
1147
+ "build-plan-improvement": "build-plan-improvement";
1148
+ job: "job";
1149
+ }>;
1150
+ title: z.ZodString;
1151
+ status: z.ZodEnum<{
1152
+ running: "running";
1153
+ failed: "failed";
1154
+ cancelled: "cancelled";
1155
+ queued: "queued";
1156
+ succeeded: "succeeded";
1157
+ }>;
1158
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1160
+ created_at: z.ZodString;
1161
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1162
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1163
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1164
+ label: z.ZodString;
1165
+ value: z.ZodString;
1166
+ detail: z.ZodOptional<z.ZodString>;
1167
+ }, z.core.$strict>>>;
1168
+ artifact_count: z.ZodNumber;
1169
+ check_count: z.ZodNumber;
1170
+ context_check_count: z.ZodNumber;
1171
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1172
+ kind: z.ZodLiteral<"interf-readiness-state">;
1173
+ version: z.ZodLiteral<1>;
1174
+ generated_at: z.ZodString;
1175
+ project: z.ZodString;
1176
+ status: z.ZodEnum<{
1177
+ ready: "ready";
1178
+ "not-ready": "not-ready";
1179
+ failed: "failed";
1180
+ "not-configured": "not-configured";
1181
+ "not-built": "not-built";
1182
+ building: "building";
1183
+ built: "built";
1184
+ checking: "checking";
1185
+ stale: "stale";
1186
+ }>;
1187
+ ready: z.ZodBoolean;
1188
+ summary: z.ZodString;
1189
+ context_graph_path: z.ZodNullable<z.ZodString>;
1190
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ build: z.ZodNullable<z.ZodObject<{
1193
+ gate: z.ZodEnum<{
1194
+ "context-graph": "context-graph";
1195
+ "project-config": "project-config";
1196
+ "build-run": "build-run";
1197
+ "artifact-diagnostics": "artifact-diagnostics";
1198
+ "context-checks": "context-checks";
1199
+ benchmarks: "benchmarks";
1200
+ "benchmarks-current": "benchmarks-current";
1201
+ }>;
1202
+ ok: z.ZodBoolean;
1203
+ status: z.ZodOptional<z.ZodEnum<{
1204
+ ready: "ready";
1205
+ "not-ready": "not-ready";
1206
+ failed: "failed";
1207
+ "not-configured": "not-configured";
1208
+ "not-built": "not-built";
1209
+ building: "building";
1210
+ built: "built";
1211
+ checking: "checking";
1212
+ stale: "stale";
1213
+ }>>;
1214
+ summary: z.ZodString;
1215
+ detail: z.ZodOptional<z.ZodString>;
1216
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1217
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1218
+ }, z.core.$strict>>;
1219
+ check_results: z.ZodObject<{
1220
+ configured: z.ZodNumber;
1221
+ fingerprint: z.ZodNullable<z.ZodString>;
1222
+ source_files: z.ZodNullable<z.ZodObject<{
1223
+ passed: z.ZodNumber;
1224
+ total: z.ZodNumber;
1225
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1226
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
+ stale: z.ZodDefault<z.ZodBoolean>;
1228
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ }, z.core.$strict>>;
1231
+ context_graph: z.ZodNullable<z.ZodObject<{
1232
+ passed: z.ZodNumber;
1233
+ total: z.ZodNumber;
1234
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1235
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1236
+ stale: z.ZodDefault<z.ZodBoolean>;
1237
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1238
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1239
+ }, z.core.$strict>>;
1240
+ }, z.core.$strict>;
1241
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1242
+ gate: z.ZodEnum<{
1243
+ "context-graph": "context-graph";
1244
+ "project-config": "project-config";
1245
+ "build-run": "build-run";
1246
+ "artifact-diagnostics": "artifact-diagnostics";
1247
+ "context-checks": "context-checks";
1248
+ benchmarks: "benchmarks";
1249
+ "benchmarks-current": "benchmarks-current";
1250
+ }>;
1251
+ ok: z.ZodBoolean;
1252
+ status: z.ZodOptional<z.ZodEnum<{
1253
+ ready: "ready";
1254
+ "not-ready": "not-ready";
1255
+ failed: "failed";
1256
+ "not-configured": "not-configured";
1257
+ "not-built": "not-built";
1258
+ building: "building";
1259
+ built: "built";
1260
+ checking: "checking";
1261
+ stale: "stale";
1262
+ }>>;
1263
+ summary: z.ZodString;
1264
+ detail: z.ZodOptional<z.ZodString>;
1265
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1266
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
+ }, z.core.$strict>>>;
1268
+ }, z.core.$strict>>>;
1269
+ latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1270
+ latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1271
+ detail_hint: z.ZodString;
1272
+ }, z.core.$strict>;
1273
+ readonly success_status: 200;
1274
+ }, {
1275
+ readonly id: "getRunArtifacts";
1276
+ readonly method: "GET";
1277
+ readonly path: "/v1/runs/{run_id}/artifacts";
1278
+ readonly tags: ["Runs"];
1279
+ readonly summary: "Get Run artifacts";
1280
+ readonly description: "Read the bounded artifact manifest for a finished Build run. Use only when the compact status says the Run is terminal.";
1281
+ readonly visibility: "app";
1282
+ readonly parameters: [ServiceOperationParameter];
1283
+ readonly response_schema: z.ZodObject<{
1284
+ artifacts: z.ZodArray<z.ZodObject<{
1285
+ path: z.ZodString;
1286
+ role: z.ZodEnum<{
1287
+ runtime: "runtime";
1288
+ output: "output";
1289
+ source: "source";
1290
+ evidence: "evidence";
1291
+ benchmark: "benchmark";
1292
+ }>;
1293
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
+ label: z.ZodOptional<z.ZodString>;
1295
+ sha256: z.ZodOptional<z.ZodString>;
1296
+ }, z.core.$strict>>;
1297
+ }, z.core.$strict>;
1298
+ readonly success_status: 200;
1299
+ }, {
1300
+ readonly id: "getRunEvents";
1301
+ readonly method: "GET";
1302
+ readonly path: "/v1/runs/{run_id}/events";
1303
+ readonly tags: ["Runs"];
1304
+ readonly summary: "Get Run events";
1305
+ readonly description: "Read the durable event log for a Build run: stage start/pass/fail, files processed, artifacts written, evidence, checks, and readiness. Use compact status for polling; read events to inspect or replay what happened.";
1306
+ readonly visibility: "app";
1307
+ readonly parameters: [ServiceOperationParameter];
1308
+ readonly response_schema: z.ZodObject<{
1309
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1310
+ event_id: z.ZodString;
1311
+ run_id: z.ZodString;
1312
+ timestamp: z.ZodString;
1313
+ type: z.ZodLiteral<"run.started">;
1314
+ project: z.ZodString;
1315
+ build_plan: z.ZodOptional<z.ZodString>;
1316
+ context_graph_path: z.ZodOptional<z.ZodString>;
1317
+ backend: z.ZodEnum<{
1318
+ native: "native";
1319
+ }>;
1320
+ }, z.core.$strict>, z.ZodObject<{
1321
+ event_id: z.ZodString;
1322
+ run_id: z.ZodString;
1323
+ timestamp: z.ZodString;
1324
+ type: z.ZodLiteral<"stage.started">;
1325
+ stage_id: z.ZodString;
1326
+ stage_index: z.ZodOptional<z.ZodNumber>;
1327
+ stage_total: z.ZodOptional<z.ZodNumber>;
1328
+ logs: z.ZodOptional<z.ZodObject<{
1329
+ prompt_path: z.ZodOptional<z.ZodString>;
1330
+ event_stream_path: z.ZodOptional<z.ZodString>;
1331
+ status_path: z.ZodOptional<z.ZodString>;
1332
+ contract_path: z.ZodOptional<z.ZodString>;
1333
+ evidence_path: z.ZodOptional<z.ZodString>;
1334
+ }, z.core.$strict>>;
1335
+ }, z.core.$strict>, z.ZodObject<{
1336
+ event_id: z.ZodString;
1337
+ run_id: z.ZodString;
1338
+ timestamp: z.ZodString;
1339
+ type: z.ZodLiteral<"file.processed">;
1340
+ stage_id: z.ZodString;
1341
+ path: z.ZodString;
1342
+ }, z.core.$strict>, z.ZodObject<{
1343
+ event_id: z.ZodString;
1344
+ run_id: z.ZodString;
1345
+ timestamp: z.ZodString;
1346
+ type: z.ZodLiteral<"artifact.written">;
1347
+ stage_id: z.ZodString;
1348
+ artifact: z.ZodObject<{
1349
+ path: z.ZodString;
1350
+ role: z.ZodEnum<{
1351
+ runtime: "runtime";
1352
+ output: "output";
1353
+ source: "source";
1354
+ evidence: "evidence";
1355
+ benchmark: "benchmark";
1356
+ }>;
1357
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ label: z.ZodOptional<z.ZodString>;
1359
+ sha256: z.ZodOptional<z.ZodString>;
1360
+ }, z.core.$strict>;
1361
+ }, z.core.$strict>, z.ZodObject<{
1362
+ event_id: z.ZodString;
1363
+ run_id: z.ZodString;
1364
+ timestamp: z.ZodString;
1365
+ type: z.ZodLiteral<"evidence.updated">;
1366
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
+ evidence: z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ run_id: z.ZodString;
1370
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1371
+ generated_at: z.ZodString;
1372
+ summary: z.ZodString;
1373
+ files_processed: z.ZodOptional<z.ZodNumber>;
1374
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1375
+ path: z.ZodString;
1376
+ role: z.ZodEnum<{
1377
+ runtime: "runtime";
1378
+ output: "output";
1379
+ source: "source";
1380
+ evidence: "evidence";
1381
+ benchmark: "benchmark";
1382
+ }>;
1383
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1384
+ label: z.ZodOptional<z.ZodString>;
1385
+ sha256: z.ZodOptional<z.ZodString>;
1386
+ }, z.core.$strict>>>;
1387
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ label: z.ZodString;
1390
+ ok: z.ZodBoolean;
1391
+ detail: z.ZodOptional<z.ZodString>;
1392
+ }, z.core.$strict>>>;
1393
+ }, z.core.$strict>;
1394
+ }, z.core.$strict>, z.ZodObject<{
1395
+ event_id: z.ZodString;
1396
+ run_id: z.ZodString;
1397
+ timestamp: z.ZodString;
1398
+ type: z.ZodLiteral<"log.appended">;
1399
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
+ stream: z.ZodEnum<{
1401
+ status: "status";
1402
+ trace: "trace";
1403
+ system: "system";
1404
+ }>;
1405
+ message: z.ZodString;
1406
+ }, z.core.$strict>, z.ZodObject<{
1407
+ event_id: z.ZodString;
1408
+ run_id: z.ZodString;
1409
+ timestamp: z.ZodString;
1410
+ type: z.ZodLiteral<"stage.passed">;
1411
+ stage_id: z.ZodString;
1412
+ summary: z.ZodOptional<z.ZodString>;
1413
+ }, z.core.$strict>, z.ZodObject<{
1414
+ event_id: z.ZodString;
1415
+ run_id: z.ZodString;
1416
+ timestamp: z.ZodString;
1417
+ type: z.ZodLiteral<"stage.failed">;
1418
+ stage_id: z.ZodString;
1419
+ error: z.ZodString;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ event_id: z.ZodString;
1422
+ run_id: z.ZodString;
1423
+ timestamp: z.ZodString;
1424
+ type: z.ZodLiteral<"run.completed">;
1425
+ summary: z.ZodOptional<z.ZodString>;
1426
+ }, z.core.$strict>, z.ZodObject<{
1427
+ event_id: z.ZodString;
1428
+ run_id: z.ZodString;
1429
+ timestamp: z.ZodString;
1430
+ type: z.ZodLiteral<"run.failed">;
1431
+ error: z.ZodString;
1432
+ }, z.core.$strict>, z.ZodObject<{
1433
+ event_id: z.ZodString;
1434
+ run_id: z.ZodString;
1435
+ timestamp: z.ZodString;
1436
+ type: z.ZodLiteral<"run.cancelled">;
1437
+ reason: z.ZodOptional<z.ZodString>;
1438
+ }, z.core.$strict>, z.ZodObject<{
1439
+ event_id: z.ZodString;
1440
+ run_id: z.ZodString;
1441
+ timestamp: z.ZodString;
1442
+ type: z.ZodLiteral<"checks.evaluated">;
1443
+ passed: z.ZodNumber;
1444
+ total: z.ZodNumber;
1445
+ target: z.ZodOptional<z.ZodEnum<{
1446
+ "source-files": "source-files";
1447
+ "context-graph": "context-graph";
1448
+ }>>;
1449
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
1450
+ stale: z.ZodOptional<z.ZodBoolean>;
1451
+ test_run_id: z.ZodOptional<z.ZodString>;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ event_id: z.ZodString;
1454
+ run_id: z.ZodString;
1455
+ timestamp: z.ZodString;
1456
+ type: z.ZodLiteral<"readiness.updated">;
1457
+ project: z.ZodString;
1458
+ readiness: z.ZodObject<{
1459
+ kind: z.ZodLiteral<"interf-readiness-state">;
1460
+ version: z.ZodLiteral<1>;
1461
+ generated_at: z.ZodString;
1462
+ project: z.ZodString;
1463
+ status: z.ZodEnum<{
1464
+ ready: "ready";
1465
+ "not-ready": "not-ready";
1466
+ failed: "failed";
1467
+ "not-configured": "not-configured";
1468
+ "not-built": "not-built";
1469
+ building: "building";
1470
+ built: "built";
1471
+ checking: "checking";
1472
+ stale: "stale";
1473
+ }>;
1474
+ ready: z.ZodBoolean;
1475
+ summary: z.ZodString;
1476
+ context_graph_path: z.ZodNullable<z.ZodString>;
1477
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
+ build: z.ZodNullable<z.ZodObject<{
1480
+ gate: z.ZodEnum<{
1481
+ "context-graph": "context-graph";
1482
+ "project-config": "project-config";
1483
+ "build-run": "build-run";
1484
+ "artifact-diagnostics": "artifact-diagnostics";
1485
+ "context-checks": "context-checks";
1486
+ benchmarks: "benchmarks";
1487
+ "benchmarks-current": "benchmarks-current";
1488
+ }>;
1489
+ ok: z.ZodBoolean;
1490
+ status: z.ZodOptional<z.ZodEnum<{
1491
+ ready: "ready";
1492
+ "not-ready": "not-ready";
1493
+ failed: "failed";
1494
+ "not-configured": "not-configured";
1495
+ "not-built": "not-built";
1496
+ building: "building";
1497
+ built: "built";
1498
+ checking: "checking";
1499
+ stale: "stale";
1500
+ }>>;
1501
+ summary: z.ZodString;
1502
+ detail: z.ZodOptional<z.ZodString>;
1503
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ }, z.core.$strict>>;
1506
+ check_results: z.ZodObject<{
1507
+ configured: z.ZodNumber;
1508
+ fingerprint: z.ZodNullable<z.ZodString>;
1509
+ source_files: z.ZodNullable<z.ZodObject<{
1510
+ passed: z.ZodNumber;
1511
+ total: z.ZodNumber;
1512
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1513
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1514
+ stale: z.ZodDefault<z.ZodBoolean>;
1515
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1516
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1517
+ }, z.core.$strict>>;
1518
+ context_graph: z.ZodNullable<z.ZodObject<{
1519
+ passed: z.ZodNumber;
1520
+ total: z.ZodNumber;
1521
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1522
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1523
+ stale: z.ZodDefault<z.ZodBoolean>;
1524
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ }, z.core.$strict>>;
1527
+ }, z.core.$strict>;
1528
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1529
+ gate: z.ZodEnum<{
1530
+ "context-graph": "context-graph";
1531
+ "project-config": "project-config";
1532
+ "build-run": "build-run";
1533
+ "artifact-diagnostics": "artifact-diagnostics";
1534
+ "context-checks": "context-checks";
1535
+ benchmarks: "benchmarks";
1536
+ "benchmarks-current": "benchmarks-current";
1537
+ }>;
1538
+ ok: z.ZodBoolean;
1539
+ status: z.ZodOptional<z.ZodEnum<{
1540
+ ready: "ready";
1541
+ "not-ready": "not-ready";
1542
+ failed: "failed";
1543
+ "not-configured": "not-configured";
1544
+ "not-built": "not-built";
1545
+ building: "building";
1546
+ built: "built";
1547
+ checking: "checking";
1548
+ stale: "stale";
1549
+ }>>;
1550
+ summary: z.ZodString;
1551
+ detail: z.ZodOptional<z.ZodString>;
1552
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ }, z.core.$strict>>>;
1555
+ }, z.core.$strict>;
1556
+ }, z.core.$strict>], "type">>;
1557
+ }, z.core.$strict>;
1558
+ readonly success_status: 200;
1559
+ }, {
1560
+ readonly id: "readRunFile";
1561
+ readonly method: "GET";
1562
+ readonly path: "/v1/runs/{run_id}/files";
1563
+ readonly tags: ["Runs"];
1564
+ readonly summary: "Read Run file";
1565
+ readonly description: "Read a prompt log, status log, event stream, stage contract, or evidence file from the exact Build run output. Use this instead of latest Context Graph file reads when debugging historical runs.";
1566
+ readonly visibility: "app";
1567
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1568
+ readonly response_schema: z.ZodString;
1569
+ readonly response_content_type: "text/plain";
1570
+ readonly success_status: 200;
1571
+ }, {
1572
+ readonly id: "getLatestContextGraph";
1573
+ readonly method: "GET";
1574
+ readonly path: "/v1/projects/{project_id}/context-graph";
1575
+ readonly tags: ["Context Graphs"];
1576
+ readonly summary: "Get latest Context Graph";
1577
+ readonly description: "Return the latest successful Context Graph locator, GraphManifest, primary metrics, StageManifest summaries, entrypoints, and ready/not ready rollup for a Project.";
1578
+ readonly visibility: "app";
1579
+ readonly parameters: [ServiceOperationParameter];
1580
+ readonly response_schema: z.ZodObject<{
1581
+ kind: z.ZodLiteral<"interf-context-graph">;
1582
+ version: z.ZodLiteral<1>;
1583
+ graph_id: z.ZodOptional<z.ZodString>;
1584
+ project_id: z.ZodOptional<z.ZodString>;
1585
+ intent: z.ZodString;
1586
+ build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
+ source_manifest_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1588
+ created_at: z.ZodOptional<z.ZodString>;
1589
+ is_latest: z.ZodOptional<z.ZodBoolean>;
1590
+ project: z.ZodString;
1591
+ path: z.ZodString;
1592
+ exists: z.ZodBoolean;
1593
+ readiness: z.ZodObject<{
1594
+ kind: z.ZodLiteral<"interf-readiness-state">;
1595
+ version: z.ZodLiteral<1>;
1596
+ generated_at: z.ZodString;
1597
+ project: z.ZodString;
1598
+ status: z.ZodEnum<{
1599
+ ready: "ready";
1600
+ "not-ready": "not-ready";
1601
+ failed: "failed";
1602
+ "not-configured": "not-configured";
1603
+ "not-built": "not-built";
1604
+ building: "building";
1605
+ built: "built";
1606
+ checking: "checking";
1607
+ stale: "stale";
1608
+ }>;
1609
+ ready: z.ZodBoolean;
1610
+ summary: z.ZodString;
1611
+ context_graph_path: z.ZodNullable<z.ZodString>;
1612
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1613
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1614
+ build: z.ZodNullable<z.ZodObject<{
1615
+ gate: z.ZodEnum<{
1616
+ "context-graph": "context-graph";
1617
+ "project-config": "project-config";
1618
+ "build-run": "build-run";
1619
+ "artifact-diagnostics": "artifact-diagnostics";
1620
+ "context-checks": "context-checks";
1621
+ benchmarks: "benchmarks";
1622
+ "benchmarks-current": "benchmarks-current";
1623
+ }>;
1624
+ ok: z.ZodBoolean;
1625
+ status: z.ZodOptional<z.ZodEnum<{
1626
+ ready: "ready";
1627
+ "not-ready": "not-ready";
1628
+ failed: "failed";
1629
+ "not-configured": "not-configured";
1630
+ "not-built": "not-built";
1631
+ building: "building";
1632
+ built: "built";
1633
+ checking: "checking";
1634
+ stale: "stale";
1635
+ }>>;
1636
+ summary: z.ZodString;
1637
+ detail: z.ZodOptional<z.ZodString>;
1638
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1639
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1640
+ }, z.core.$strict>>;
1641
+ check_results: z.ZodObject<{
1642
+ configured: z.ZodNumber;
1643
+ fingerprint: z.ZodNullable<z.ZodString>;
1644
+ source_files: z.ZodNullable<z.ZodObject<{
1645
+ passed: z.ZodNumber;
1646
+ total: z.ZodNumber;
1647
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1648
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
+ stale: z.ZodDefault<z.ZodBoolean>;
1650
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
+ }, z.core.$strict>>;
1653
+ context_graph: z.ZodNullable<z.ZodObject<{
1654
+ passed: z.ZodNumber;
1655
+ total: z.ZodNumber;
1656
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1657
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1658
+ stale: z.ZodDefault<z.ZodBoolean>;
1659
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1660
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1661
+ }, z.core.$strict>>;
1662
+ }, z.core.$strict>;
1663
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1664
+ gate: z.ZodEnum<{
1665
+ "context-graph": "context-graph";
1666
+ "project-config": "project-config";
1667
+ "build-run": "build-run";
1668
+ "artifact-diagnostics": "artifact-diagnostics";
1669
+ "context-checks": "context-checks";
1670
+ benchmarks: "benchmarks";
1671
+ "benchmarks-current": "benchmarks-current";
1672
+ }>;
1673
+ ok: z.ZodBoolean;
1674
+ status: z.ZodOptional<z.ZodEnum<{
1675
+ ready: "ready";
1676
+ "not-ready": "not-ready";
1677
+ failed: "failed";
1678
+ "not-configured": "not-configured";
1679
+ "not-built": "not-built";
1680
+ building: "building";
1681
+ built: "built";
1682
+ checking: "checking";
1683
+ stale: "stale";
1684
+ }>>;
1685
+ summary: z.ZodString;
1686
+ detail: z.ZodOptional<z.ZodString>;
1687
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
+ }, z.core.$strict>>>;
1690
+ }, z.core.$strict>;
1691
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1693
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
+ entrypoint_artifact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1695
+ artifact_id: z.ZodOptional<z.ZodString>;
1696
+ label: z.ZodString;
1697
+ locator: z.ZodObject<{
1698
+ kind: z.ZodEnum<{
1699
+ "local-path": "local-path";
1700
+ "remote-url": "remote-url";
1701
+ "api-served": "api-served";
1702
+ }>;
1703
+ value: z.ZodString;
1704
+ }, z.core.$strict>;
1705
+ path: z.ZodOptional<z.ZodString>;
1706
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
1707
+ file: "file";
1708
+ directory: "directory";
1709
+ }>>;
1710
+ role: z.ZodDefault<z.ZodEnum<{
1711
+ entrypoint: "entrypoint";
1712
+ artifact: "artifact";
1713
+ guidance: "guidance";
1714
+ "source-index": "source-index";
1715
+ }>>;
1716
+ summary: z.ZodOptional<z.ZodString>;
1717
+ }, z.core.$strict>>>;
1718
+ artifact_handoffs: z.ZodDefault<z.ZodArray<z.ZodObject<{
1719
+ artifact_id: z.ZodOptional<z.ZodString>;
1720
+ label: z.ZodString;
1721
+ locator: z.ZodObject<{
1722
+ kind: z.ZodEnum<{
1723
+ "local-path": "local-path";
1724
+ "remote-url": "remote-url";
1725
+ "api-served": "api-served";
1726
+ }>;
1727
+ value: z.ZodString;
1728
+ }, z.core.$strict>;
1729
+ path: z.ZodOptional<z.ZodString>;
1730
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
1731
+ file: "file";
1732
+ directory: "directory";
1733
+ }>>;
1734
+ role: z.ZodDefault<z.ZodEnum<{
1735
+ entrypoint: "entrypoint";
1736
+ artifact: "artifact";
1737
+ guidance: "guidance";
1738
+ "source-index": "source-index";
1739
+ }>>;
1740
+ summary: z.ZodOptional<z.ZodString>;
1741
+ }, z.core.$strict>>>;
1742
+ portable_handoff: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1743
+ locator: z.ZodObject<{
1744
+ kind: z.ZodEnum<{
1745
+ "local-path": "local-path";
1746
+ "remote-url": "remote-url";
1747
+ "api-served": "api-served";
1748
+ }>;
1749
+ value: z.ZodString;
1750
+ }, z.core.$strict>;
1751
+ instructions: z.ZodOptional<z.ZodString>;
1752
+ }, z.core.$strict>>>;
1753
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1754
+ path: z.ZodString;
1755
+ role: z.ZodEnum<{
1756
+ runtime: "runtime";
1757
+ output: "output";
1758
+ source: "source";
1759
+ evidence: "evidence";
1760
+ benchmark: "benchmark";
1761
+ }>;
1762
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ label: z.ZodOptional<z.ZodString>;
1764
+ sha256: z.ZodOptional<z.ZodString>;
1765
+ }, z.core.$strict>>>;
1766
+ build_evidence: z.ZodOptional<z.ZodObject<{
1767
+ kind: z.ZodLiteral<"interf-build-evidence">;
1768
+ version: z.ZodLiteral<1>;
1769
+ generated_at: z.ZodString;
1770
+ project_id: z.ZodString;
1771
+ build_run_id: z.ZodNullable<z.ZodString>;
1772
+ ready: z.ZodBoolean;
1773
+ summary: z.ZodString;
1774
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1775
+ id: z.ZodString;
1776
+ assertion: z.ZodString;
1777
+ metric: z.ZodObject<{
1778
+ observed: z.ZodNumber;
1779
+ total: z.ZodOptional<z.ZodNumber>;
1780
+ unit: z.ZodOptional<z.ZodString>;
1781
+ }, z.core.$strict>;
1782
+ evidence: z.ZodObject<{
1783
+ kind: z.ZodEnum<{
1784
+ output: "output";
1785
+ "source-inventory": "source-inventory";
1786
+ "stage-record": "stage-record";
1787
+ validator: "validator";
1788
+ trace: "trace";
1789
+ "stage-evidence": "stage-evidence";
1790
+ }>;
1791
+ label: z.ZodString;
1792
+ ref: z.ZodOptional<z.ZodString>;
1793
+ path: z.ZodOptional<z.ZodString>;
1794
+ run_id: z.ZodOptional<z.ZodString>;
1795
+ stage_id: z.ZodOptional<z.ZodString>;
1796
+ artifact_id: z.ZodOptional<z.ZodString>;
1797
+ }, z.core.$strict>;
1798
+ issue_state: z.ZodOptional<z.ZodEnum<{
1799
+ pass: "pass";
1800
+ fail: "fail";
1801
+ missing: "missing";
1802
+ review: "review";
1803
+ }>>;
1804
+ issue: z.ZodOptional<z.ZodString>;
1805
+ }, z.core.$strict>>>;
1806
+ }, z.core.$strict>>;
1807
+ semantic_graph: z.ZodOptional<z.ZodObject<{
1808
+ kind: z.ZodLiteral<"interf-context-graph-semantic-graph">;
1809
+ version: z.ZodLiteral<1>;
1810
+ generated_at: z.ZodString;
1811
+ nodes: z.ZodArray<z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ kind: z.ZodEnum<{
1814
+ source: "source";
1815
+ index: "index";
1816
+ summary: "summary";
1817
+ project: "project";
1818
+ knowledge: "knowledge";
1819
+ artifact: "artifact";
1820
+ note: "note";
1821
+ home: "home";
1822
+ claim: "claim";
1823
+ entity: "entity";
1824
+ }>;
1825
+ label: z.ZodString;
1826
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1827
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1829
+ link_count: z.ZodDefault<z.ZodNumber>;
1830
+ backlink_count: z.ZodDefault<z.ZodNumber>;
1831
+ }, z.core.$strict>>;
1832
+ edges: z.ZodArray<z.ZodObject<{
1833
+ id: z.ZodString;
1834
+ kind: z.ZodEnum<{
1835
+ "links-to": "links-to";
1836
+ "source-ref": "source-ref";
1837
+ contains: "contains";
1838
+ handoff: "handoff";
1839
+ }>;
1840
+ source: z.ZodString;
1841
+ target: z.ZodString;
1842
+ label: z.ZodString;
1843
+ detail: z.ZodString;
1844
+ }, z.core.$strict>>;
1845
+ stats: z.ZodObject<{
1846
+ notes: z.ZodNumber;
1847
+ links: z.ZodNumber;
1848
+ source_refs: z.ZodNumber;
1849
+ unresolved_links: z.ZodNumber;
1850
+ }, z.core.$strict>;
1851
+ }, z.core.$strict>>;
1852
+ graph_manifest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1853
+ kind: z.ZodLiteral<"interf-graph-manifest">;
1854
+ version: z.ZodLiteral<1>;
1855
+ generated_at: z.ZodString;
1856
+ project: z.ZodString;
1857
+ graph_id: z.ZodString;
1858
+ run_id: z.ZodNullable<z.ZodString>;
1859
+ build_plan: z.ZodString;
1860
+ intent: z.ZodNullable<z.ZodString>;
1861
+ graph_path: z.ZodString;
1862
+ primary_metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1863
+ key: z.ZodString;
1864
+ label: z.ZodString;
1865
+ value: z.ZodNumber;
1866
+ total: z.ZodOptional<z.ZodNumber>;
1867
+ unit: z.ZodOptional<z.ZodString>;
1868
+ primary: z.ZodDefault<z.ZodBoolean>;
1869
+ issue_state: z.ZodOptional<z.ZodEnum<{
1870
+ pass: "pass";
1871
+ fail: "fail";
1872
+ missing: "missing";
1873
+ review: "review";
1874
+ }>>;
1875
+ detail: z.ZodOptional<z.ZodString>;
1876
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1877
+ }, z.core.$strict>>>;
1878
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
1879
+ stage_id: z.ZodString;
1880
+ stage_label: z.ZodString;
1881
+ role: z.ZodEnum<{
1882
+ source: "source";
1883
+ summary: "summary";
1884
+ other: "other";
1885
+ knowledge: "knowledge";
1886
+ entrypoint: "entrypoint";
1887
+ diagnostic: "diagnostic";
1888
+ }>;
1889
+ manifest_path: z.ZodString;
1890
+ summary: z.ZodString;
1891
+ produced_total: z.ZodNumber;
1892
+ missing_required_total: z.ZodNumber;
1893
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1894
+ key: z.ZodString;
1895
+ label: z.ZodString;
1896
+ value: z.ZodNumber;
1897
+ total: z.ZodOptional<z.ZodNumber>;
1898
+ unit: z.ZodOptional<z.ZodString>;
1899
+ primary: z.ZodDefault<z.ZodBoolean>;
1900
+ issue_state: z.ZodOptional<z.ZodEnum<{
1901
+ pass: "pass";
1902
+ fail: "fail";
1903
+ missing: "missing";
1904
+ review: "review";
1905
+ }>>;
1906
+ detail: z.ZodOptional<z.ZodString>;
1907
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1908
+ }, z.core.$strict>>>;
1909
+ }, z.core.$strict>>>;
1910
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
1911
+ id: z.ZodString;
1912
+ role: z.ZodEnum<{
1913
+ source: "source";
1914
+ summary: "summary";
1915
+ other: "other";
1916
+ knowledge: "knowledge";
1917
+ entrypoint: "entrypoint";
1918
+ diagnostic: "diagnostic";
1919
+ }>;
1920
+ kind: z.ZodString;
1921
+ label: z.ZodString;
1922
+ path: z.ZodOptional<z.ZodString>;
1923
+ locator: z.ZodOptional<z.ZodString>;
1924
+ stage_id: z.ZodOptional<z.ZodString>;
1925
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1926
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
1927
+ required: z.ZodDefault<z.ZodBoolean>;
1928
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1929
+ }, z.core.$strict>>>;
1930
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
1931
+ id: z.ZodString;
1932
+ role: z.ZodEnum<{
1933
+ source: "source";
1934
+ summary: "summary";
1935
+ other: "other";
1936
+ knowledge: "knowledge";
1937
+ entrypoint: "entrypoint";
1938
+ diagnostic: "diagnostic";
1939
+ }>;
1940
+ kind: z.ZodString;
1941
+ label: z.ZodString;
1942
+ path: z.ZodOptional<z.ZodString>;
1943
+ locator: z.ZodOptional<z.ZodString>;
1944
+ stage_id: z.ZodOptional<z.ZodString>;
1945
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1946
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
1947
+ required: z.ZodDefault<z.ZodBoolean>;
1948
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1949
+ }, z.core.$strict>>>;
1950
+ graph_outputs: z.ZodObject<{
1951
+ nodes: z.ZodNumber;
1952
+ edges: z.ZodNumber;
1953
+ notes: z.ZodNumber;
1954
+ links: z.ZodNumber;
1955
+ source_refs: z.ZodNumber;
1956
+ claims: z.ZodOptional<z.ZodNumber>;
1957
+ entities: z.ZodOptional<z.ZodNumber>;
1958
+ }, z.core.$strict>;
1959
+ readiness: z.ZodObject<{
1960
+ status: z.ZodEnum<{
1961
+ ready: "ready";
1962
+ "not-ready": "not-ready";
1963
+ }>;
1964
+ ready: z.ZodBoolean;
1965
+ summary: z.ZodString;
1966
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1967
+ missing_required_total: z.ZodNumber;
1968
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
1969
+ resource_id: z.ZodString;
1970
+ status: z.ZodEnum<{
1971
+ missing: "missing";
1972
+ blocked: "blocked";
1973
+ "not-relevant": "not-relevant";
1974
+ }>;
1975
+ reason: z.ZodString;
1976
+ }, z.core.$strict>>>;
1977
+ }, z.core.$strict>;
1978
+ }, z.core.$strict>>>;
1979
+ primary_metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
1980
+ key: z.ZodString;
1981
+ label: z.ZodString;
1982
+ value: z.ZodNumber;
1983
+ total: z.ZodOptional<z.ZodNumber>;
1984
+ unit: z.ZodOptional<z.ZodString>;
1985
+ primary: z.ZodDefault<z.ZodBoolean>;
1986
+ issue_state: z.ZodOptional<z.ZodEnum<{
1987
+ pass: "pass";
1988
+ fail: "fail";
1989
+ missing: "missing";
1990
+ review: "review";
1991
+ }>>;
1992
+ detail: z.ZodOptional<z.ZodString>;
1993
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1994
+ }, z.core.$strict>>>;
1995
+ stage_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1996
+ stage_id: z.ZodString;
1997
+ stage_label: z.ZodString;
1998
+ role: z.ZodEnum<{
1999
+ source: "source";
2000
+ summary: "summary";
2001
+ other: "other";
2002
+ knowledge: "knowledge";
2003
+ entrypoint: "entrypoint";
2004
+ diagnostic: "diagnostic";
2005
+ }>;
2006
+ manifest_path: z.ZodString;
2007
+ summary: z.ZodString;
2008
+ produced_total: z.ZodNumber;
2009
+ missing_required_total: z.ZodNumber;
2010
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2011
+ key: z.ZodString;
2012
+ label: z.ZodString;
2013
+ value: z.ZodNumber;
2014
+ total: z.ZodOptional<z.ZodNumber>;
2015
+ unit: z.ZodOptional<z.ZodString>;
2016
+ primary: z.ZodDefault<z.ZodBoolean>;
2017
+ issue_state: z.ZodOptional<z.ZodEnum<{
2018
+ pass: "pass";
2019
+ fail: "fail";
2020
+ missing: "missing";
2021
+ review: "review";
2022
+ }>>;
2023
+ detail: z.ZodOptional<z.ZodString>;
2024
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2025
+ }, z.core.$strict>>>;
2026
+ }, z.core.$strict>>>;
2027
+ entrypoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
2028
+ id: z.ZodString;
2029
+ role: z.ZodEnum<{
2030
+ source: "source";
2031
+ summary: "summary";
2032
+ other: "other";
2033
+ knowledge: "knowledge";
2034
+ entrypoint: "entrypoint";
2035
+ diagnostic: "diagnostic";
2036
+ }>;
2037
+ kind: z.ZodString;
2038
+ label: z.ZodString;
2039
+ path: z.ZodOptional<z.ZodString>;
2040
+ locator: z.ZodOptional<z.ZodString>;
2041
+ stage_id: z.ZodOptional<z.ZodString>;
2042
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2043
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2044
+ required: z.ZodDefault<z.ZodBoolean>;
2045
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2046
+ }, z.core.$strict>>>;
2047
+ resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
2048
+ id: z.ZodString;
2049
+ role: z.ZodEnum<{
2050
+ source: "source";
2051
+ summary: "summary";
2052
+ other: "other";
2053
+ knowledge: "knowledge";
2054
+ entrypoint: "entrypoint";
2055
+ diagnostic: "diagnostic";
2056
+ }>;
2057
+ kind: z.ZodString;
2058
+ label: z.ZodString;
2059
+ path: z.ZodOptional<z.ZodString>;
2060
+ locator: z.ZodOptional<z.ZodString>;
2061
+ stage_id: z.ZodOptional<z.ZodString>;
2062
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2063
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2064
+ required: z.ZodDefault<z.ZodBoolean>;
2065
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2066
+ }, z.core.$strict>>>;
2067
+ readiness_rollup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2068
+ status: z.ZodEnum<{
2069
+ ready: "ready";
2070
+ "not-ready": "not-ready";
2071
+ }>;
2072
+ ready: z.ZodBoolean;
2073
+ summary: z.ZodString;
2074
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2075
+ missing_required_total: z.ZodNumber;
2076
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
2077
+ resource_id: z.ZodString;
2078
+ status: z.ZodEnum<{
2079
+ missing: "missing";
2080
+ blocked: "blocked";
2081
+ "not-relevant": "not-relevant";
2082
+ }>;
2083
+ reason: z.ZodString;
2084
+ }, z.core.$strict>>>;
2085
+ }, z.core.$strict>>>;
2086
+ stage_sessions: z.ZodDefault<z.ZodArray<z.ZodObject<{
2087
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2088
+ version: z.ZodLiteral<1>;
2089
+ job_type: z.ZodDefault<z.ZodEnum<{
2090
+ stage: "stage";
2091
+ "source-inventory": "source-inventory";
2092
+ }>>;
2093
+ generated_at: z.ZodString;
2094
+ updated_at: z.ZodString;
2095
+ project: z.ZodString;
2096
+ project_intent: z.ZodNullable<z.ZodString>;
2097
+ context_graph_path: z.ZodString;
2098
+ build_plan: z.ZodString;
2099
+ build_run_id: z.ZodNullable<z.ZodString>;
2100
+ stage_id: z.ZodNullable<z.ZodString>;
2101
+ stage_label: z.ZodNullable<z.ZodString>;
2102
+ contract_type: z.ZodNullable<z.ZodString>;
2103
+ stage_run_id: z.ZodString;
2104
+ attempt: z.ZodNumber;
2105
+ status: z.ZodEnum<{
2106
+ running: "running";
2107
+ failed: "failed";
2108
+ succeeded: "succeeded";
2109
+ }>;
2110
+ executor: z.ZodObject<{
2111
+ kind: z.ZodEnum<{
2112
+ "local-agent": "local-agent";
2113
+ "connected-provider": "connected-provider";
2114
+ managed: "managed";
2115
+ }>;
2116
+ name: z.ZodString;
2117
+ display_name: z.ZodString;
2118
+ command: z.ZodNullable<z.ZodString>;
2119
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2120
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2121
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2122
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2123
+ }, z.core.$strip>;
2124
+ shell: z.ZodObject<{
2125
+ root_path: z.ZodString;
2126
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2127
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2128
+ replay_ready: z.ZodBoolean;
2129
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2130
+ }, z.core.$strict>;
2131
+ logs: z.ZodObject<{
2132
+ prompt_path: z.ZodNullable<z.ZodString>;
2133
+ event_stream_path: z.ZodNullable<z.ZodString>;
2134
+ status_path: z.ZodNullable<z.ZodString>;
2135
+ }, z.core.$strict>;
2136
+ runtime_files: z.ZodObject<{
2137
+ project_path: z.ZodNullable<z.ZodString>;
2138
+ contract_path: z.ZodNullable<z.ZodString>;
2139
+ paths_path: z.ZodNullable<z.ZodString>;
2140
+ source_locator_path: z.ZodNullable<z.ZodString>;
2141
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2142
+ source_state_path: z.ZodNullable<z.ZodString>;
2143
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2144
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2145
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2146
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2147
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2148
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2149
+ verifier_path: z.ZodNullable<z.ZodString>;
2150
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2151
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2152
+ }, z.core.$strict>;
2153
+ artifacts: z.ZodObject<{
2154
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2155
+ artifact_id: z.ZodString;
2156
+ artifact_path: z.ZodString;
2157
+ shell_root_path: z.ZodString;
2158
+ input_mount_path: z.ZodNullable<z.ZodString>;
2159
+ output_mount_path: z.ZodNullable<z.ZodString>;
2160
+ }, z.core.$strip>>>;
2161
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2162
+ artifact_id: z.ZodString;
2163
+ artifact_path: z.ZodString;
2164
+ shell_root_path: z.ZodString;
2165
+ input_mount_path: z.ZodNullable<z.ZodString>;
2166
+ output_mount_path: z.ZodNullable<z.ZodString>;
2167
+ }, z.core.$strip>>>;
2168
+ }, z.core.$strict>;
2169
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2170
+ attempt: z.ZodNumber;
2171
+ recorded_at: z.ZodString;
2172
+ status: z.ZodEnum<{
2173
+ failed: "failed";
2174
+ succeeded: "succeeded";
2175
+ }>;
2176
+ summary: z.ZodString;
2177
+ }, z.core.$strict>>>;
2178
+ summary: z.ZodNullable<z.ZodString>;
2179
+ error: z.ZodNullable<z.ZodString>;
2180
+ }, z.core.$strict>>>;
2181
+ }, z.core.$strict>;
2182
+ readonly success_status: 200;
2183
+ }, {
2184
+ readonly id: "listContextGraphStages";
2185
+ readonly method: "GET";
2186
+ readonly path: "/v1/projects/{project_id}/context-graph/stages";
2187
+ readonly tags: ["Context Graphs"];
2188
+ readonly summary: "List Context Graph StageManifests";
2189
+ readonly description: "Return StageManifest summaries for the latest Context Graph.";
2190
+ readonly visibility: "app";
2191
+ readonly parameters: [ServiceOperationParameter];
2192
+ readonly response_schema: z.ZodObject<{
2193
+ stages: z.ZodArray<z.ZodObject<{
2194
+ stage_id: z.ZodString;
2195
+ stage_label: z.ZodString;
2196
+ role: z.ZodEnum<{
2197
+ source: "source";
2198
+ summary: "summary";
2199
+ other: "other";
2200
+ knowledge: "knowledge";
2201
+ entrypoint: "entrypoint";
2202
+ diagnostic: "diagnostic";
2203
+ }>;
2204
+ manifest_path: z.ZodString;
2205
+ summary: z.ZodString;
2206
+ produced_total: z.ZodNumber;
2207
+ missing_required_total: z.ZodNumber;
2208
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2209
+ key: z.ZodString;
2210
+ label: z.ZodString;
2211
+ value: z.ZodNumber;
2212
+ total: z.ZodOptional<z.ZodNumber>;
2213
+ unit: z.ZodOptional<z.ZodString>;
2214
+ primary: z.ZodDefault<z.ZodBoolean>;
2215
+ issue_state: z.ZodOptional<z.ZodEnum<{
2216
+ pass: "pass";
2217
+ fail: "fail";
2218
+ missing: "missing";
2219
+ review: "review";
2220
+ }>>;
2221
+ detail: z.ZodOptional<z.ZodString>;
2222
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2223
+ }, z.core.$strict>>>;
2224
+ }, z.core.$strict>>;
2225
+ readiness: z.ZodNullable<z.ZodObject<{
2226
+ status: z.ZodEnum<{
2227
+ ready: "ready";
2228
+ "not-ready": "not-ready";
2229
+ }>;
2230
+ ready: z.ZodBoolean;
2231
+ summary: z.ZodString;
2232
+ context_graph_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2233
+ missing_required_total: z.ZodNumber;
2234
+ missing: z.ZodDefault<z.ZodArray<z.ZodObject<{
2235
+ resource_id: z.ZodString;
2236
+ status: z.ZodEnum<{
2237
+ missing: "missing";
2238
+ blocked: "blocked";
2239
+ "not-relevant": "not-relevant";
2240
+ }>;
2241
+ reason: z.ZodString;
2242
+ }, z.core.$strict>>>;
2243
+ }, z.core.$strict>>;
2244
+ primary_metrics: z.ZodArray<z.ZodObject<{
2245
+ key: z.ZodString;
2246
+ label: z.ZodString;
2247
+ value: z.ZodNumber;
2248
+ total: z.ZodOptional<z.ZodNumber>;
2249
+ unit: z.ZodOptional<z.ZodString>;
2250
+ primary: z.ZodDefault<z.ZodBoolean>;
2251
+ issue_state: z.ZodOptional<z.ZodEnum<{
2252
+ pass: "pass";
2253
+ fail: "fail";
2254
+ missing: "missing";
2255
+ review: "review";
2256
+ }>>;
2257
+ detail: z.ZodOptional<z.ZodString>;
2258
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2259
+ }, z.core.$strict>>;
2260
+ }, z.core.$strict>;
2261
+ readonly success_status: 200;
2262
+ }, {
2263
+ readonly id: "listContextGraphResources";
2264
+ readonly method: "GET";
2265
+ readonly path: "/v1/projects/{project_id}/context-graph/resources";
2266
+ readonly tags: ["Context Graphs"];
2267
+ readonly summary: "List Context Graph resources";
2268
+ readonly description: "Return the ResourceRef index from the latest GraphManifest.";
2269
+ readonly visibility: "app";
2270
+ readonly parameters: [ServiceOperationParameter];
2271
+ readonly response_schema: z.ZodObject<{
2272
+ resources: z.ZodArray<z.ZodObject<{
2273
+ id: z.ZodString;
2274
+ role: z.ZodEnum<{
2275
+ source: "source";
2276
+ summary: "summary";
2277
+ other: "other";
2278
+ knowledge: "knowledge";
2279
+ entrypoint: "entrypoint";
2280
+ diagnostic: "diagnostic";
2281
+ }>;
2282
+ kind: z.ZodString;
2283
+ label: z.ZodString;
2284
+ path: z.ZodOptional<z.ZodString>;
2285
+ locator: z.ZodOptional<z.ZodString>;
2286
+ stage_id: z.ZodOptional<z.ZodString>;
2287
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2288
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2289
+ required: z.ZodDefault<z.ZodBoolean>;
2290
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2291
+ }, z.core.$strict>>;
2292
+ entrypoints: z.ZodArray<z.ZodObject<{
2293
+ id: z.ZodString;
2294
+ role: z.ZodEnum<{
2295
+ source: "source";
2296
+ summary: "summary";
2297
+ other: "other";
2298
+ knowledge: "knowledge";
2299
+ entrypoint: "entrypoint";
2300
+ diagnostic: "diagnostic";
2301
+ }>;
2302
+ kind: z.ZodString;
2303
+ label: z.ZodString;
2304
+ path: z.ZodOptional<z.ZodString>;
2305
+ locator: z.ZodOptional<z.ZodString>;
2306
+ stage_id: z.ZodOptional<z.ZodString>;
2307
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2308
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2309
+ required: z.ZodDefault<z.ZodBoolean>;
2310
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2311
+ }, z.core.$strict>>;
2312
+ graph_outputs: z.ZodNullable<z.ZodObject<{
2313
+ nodes: z.ZodNumber;
2314
+ edges: z.ZodNumber;
2315
+ notes: z.ZodNumber;
2316
+ links: z.ZodNumber;
2317
+ source_refs: z.ZodNumber;
2318
+ claims: z.ZodOptional<z.ZodNumber>;
2319
+ entities: z.ZodOptional<z.ZodNumber>;
2320
+ }, z.core.$strict>>;
2321
+ }, z.core.$strict>;
2322
+ readonly success_status: 200;
2323
+ }, {
2324
+ readonly id: "listContextGraphSessions";
2325
+ readonly method: "GET";
2326
+ readonly path: "/v1/projects/{project_id}/context-graph/sessions";
2327
+ readonly tags: ["Context Graphs"];
2328
+ readonly summary: "List Context Graph execution sessions";
2329
+ readonly description: "Return replayable per-stage execution shell sessions for the latest Build run, including workspace, prompt, logs, validation attempts, and stage contract paths.";
2330
+ readonly visibility: "app";
2331
+ readonly parameters: [ServiceOperationParameter];
2332
+ readonly response_schema: z.ZodObject<{
2333
+ sessions: z.ZodArray<z.ZodObject<{
2334
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2335
+ version: z.ZodLiteral<1>;
2336
+ job_type: z.ZodDefault<z.ZodEnum<{
2337
+ stage: "stage";
2338
+ "source-inventory": "source-inventory";
2339
+ }>>;
2340
+ generated_at: z.ZodString;
2341
+ updated_at: z.ZodString;
2342
+ project: z.ZodString;
2343
+ project_intent: z.ZodNullable<z.ZodString>;
2344
+ context_graph_path: z.ZodString;
2345
+ build_plan: z.ZodString;
2346
+ build_run_id: z.ZodNullable<z.ZodString>;
2347
+ stage_id: z.ZodNullable<z.ZodString>;
2348
+ stage_label: z.ZodNullable<z.ZodString>;
2349
+ contract_type: z.ZodNullable<z.ZodString>;
2350
+ stage_run_id: z.ZodString;
2351
+ attempt: z.ZodNumber;
2352
+ status: z.ZodEnum<{
2353
+ running: "running";
2354
+ failed: "failed";
2355
+ succeeded: "succeeded";
2356
+ }>;
2357
+ executor: z.ZodObject<{
2358
+ kind: z.ZodEnum<{
2359
+ "local-agent": "local-agent";
2360
+ "connected-provider": "connected-provider";
2361
+ managed: "managed";
2362
+ }>;
2363
+ name: z.ZodString;
2364
+ display_name: z.ZodString;
2365
+ command: z.ZodNullable<z.ZodString>;
2366
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2367
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2368
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2369
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2370
+ }, z.core.$strip>;
2371
+ shell: z.ZodObject<{
2372
+ root_path: z.ZodString;
2373
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2374
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2375
+ replay_ready: z.ZodBoolean;
2376
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2377
+ }, z.core.$strict>;
2378
+ logs: z.ZodObject<{
2379
+ prompt_path: z.ZodNullable<z.ZodString>;
2380
+ event_stream_path: z.ZodNullable<z.ZodString>;
2381
+ status_path: z.ZodNullable<z.ZodString>;
2382
+ }, z.core.$strict>;
2383
+ runtime_files: z.ZodObject<{
2384
+ project_path: z.ZodNullable<z.ZodString>;
2385
+ contract_path: z.ZodNullable<z.ZodString>;
2386
+ paths_path: z.ZodNullable<z.ZodString>;
2387
+ source_locator_path: z.ZodNullable<z.ZodString>;
2388
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2389
+ source_state_path: z.ZodNullable<z.ZodString>;
2390
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2391
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2392
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2393
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2394
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2395
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2396
+ verifier_path: z.ZodNullable<z.ZodString>;
2397
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2398
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2399
+ }, z.core.$strict>;
2400
+ artifacts: z.ZodObject<{
2401
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2402
+ artifact_id: z.ZodString;
2403
+ artifact_path: z.ZodString;
2404
+ shell_root_path: z.ZodString;
2405
+ input_mount_path: z.ZodNullable<z.ZodString>;
2406
+ output_mount_path: z.ZodNullable<z.ZodString>;
2407
+ }, z.core.$strip>>>;
2408
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2409
+ artifact_id: z.ZodString;
2410
+ artifact_path: z.ZodString;
2411
+ shell_root_path: z.ZodString;
2412
+ input_mount_path: z.ZodNullable<z.ZodString>;
2413
+ output_mount_path: z.ZodNullable<z.ZodString>;
2414
+ }, z.core.$strip>>>;
2415
+ }, z.core.$strict>;
2416
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2417
+ attempt: z.ZodNumber;
2418
+ recorded_at: z.ZodString;
2419
+ status: z.ZodEnum<{
2420
+ failed: "failed";
2421
+ succeeded: "succeeded";
2422
+ }>;
2423
+ summary: z.ZodString;
2424
+ }, z.core.$strict>>>;
2425
+ summary: z.ZodNullable<z.ZodString>;
2426
+ error: z.ZodNullable<z.ZodString>;
2427
+ }, z.core.$strict>>;
2428
+ }, z.core.$strict>;
2429
+ readonly success_status: 200;
2430
+ }, {
2431
+ readonly id: "getContextGraphResource";
2432
+ readonly method: "GET";
2433
+ readonly path: "/v1/projects/{project_id}/context-graph/resources/{resource_id}";
2434
+ readonly tags: ["Context Graphs"];
2435
+ readonly summary: "Get Context Graph resource";
2436
+ readonly description: "Return one ResourceRef from the latest GraphManifest for inspector drilldown.";
2437
+ readonly visibility: "app";
2438
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
2439
+ readonly response_schema: z.ZodObject<{
2440
+ resource: z.ZodObject<{
2441
+ id: z.ZodString;
2442
+ role: z.ZodEnum<{
2443
+ source: "source";
2444
+ summary: "summary";
2445
+ other: "other";
2446
+ knowledge: "knowledge";
2447
+ entrypoint: "entrypoint";
2448
+ diagnostic: "diagnostic";
2449
+ }>;
2450
+ kind: z.ZodString;
2451
+ label: z.ZodString;
2452
+ path: z.ZodOptional<z.ZodString>;
2453
+ locator: z.ZodOptional<z.ZodString>;
2454
+ stage_id: z.ZodOptional<z.ZodString>;
2455
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2456
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2457
+ required: z.ZodDefault<z.ZodBoolean>;
2458
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2459
+ }, z.core.$strict>;
2460
+ stage: z.ZodNullable<z.ZodObject<{
2461
+ stage_id: z.ZodString;
2462
+ stage_label: z.ZodString;
2463
+ role: z.ZodEnum<{
2464
+ source: "source";
2465
+ summary: "summary";
2466
+ other: "other";
2467
+ knowledge: "knowledge";
2468
+ entrypoint: "entrypoint";
2469
+ diagnostic: "diagnostic";
2470
+ }>;
2471
+ manifest_path: z.ZodString;
2472
+ summary: z.ZodString;
2473
+ produced_total: z.ZodNumber;
2474
+ missing_required_total: z.ZodNumber;
2475
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
2476
+ key: z.ZodString;
2477
+ label: z.ZodString;
2478
+ value: z.ZodNumber;
2479
+ total: z.ZodOptional<z.ZodNumber>;
2480
+ unit: z.ZodOptional<z.ZodString>;
2481
+ primary: z.ZodDefault<z.ZodBoolean>;
2482
+ issue_state: z.ZodOptional<z.ZodEnum<{
2483
+ pass: "pass";
2484
+ fail: "fail";
2485
+ missing: "missing";
2486
+ review: "review";
2487
+ }>>;
2488
+ detail: z.ZodOptional<z.ZodString>;
2489
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2490
+ }, z.core.$strict>>>;
2491
+ }, z.core.$strict>>;
2492
+ linked_resources: z.ZodArray<z.ZodObject<{
2493
+ id: z.ZodString;
2494
+ role: z.ZodEnum<{
2495
+ source: "source";
2496
+ summary: "summary";
2497
+ other: "other";
2498
+ knowledge: "knowledge";
2499
+ entrypoint: "entrypoint";
2500
+ diagnostic: "diagnostic";
2501
+ }>;
2502
+ kind: z.ZodString;
2503
+ label: z.ZodString;
2504
+ path: z.ZodOptional<z.ZodString>;
2505
+ locator: z.ZodOptional<z.ZodString>;
2506
+ stage_id: z.ZodOptional<z.ZodString>;
2507
+ source_refs: z.ZodDefault<z.ZodArray<z.ZodString>>;
2508
+ links: z.ZodDefault<z.ZodArray<z.ZodString>>;
2509
+ required: z.ZodDefault<z.ZodBoolean>;
2510
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2511
+ }, z.core.$strict>>;
2512
+ }, z.core.$strict>;
2513
+ readonly success_status: 200;
2514
+ }, {
2515
+ readonly id: "getContextGraphSession";
2516
+ readonly method: "GET";
2517
+ readonly path: "/v1/projects/{project_id}/context-graph/sessions/{stage_run_id}";
2518
+ readonly tags: ["Context Graphs"];
2519
+ readonly summary: "Get Context Graph execution session";
2520
+ readonly description: "Return one replayable stage execution shell session for inspector drilldown.";
2521
+ readonly visibility: "app";
2522
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
2523
+ readonly response_schema: z.ZodObject<{
2524
+ session: z.ZodObject<{
2525
+ kind: z.ZodLiteral<"interf-stage-execution-session">;
2526
+ version: z.ZodLiteral<1>;
2527
+ job_type: z.ZodDefault<z.ZodEnum<{
2528
+ stage: "stage";
2529
+ "source-inventory": "source-inventory";
2530
+ }>>;
2531
+ generated_at: z.ZodString;
2532
+ updated_at: z.ZodString;
2533
+ project: z.ZodString;
2534
+ project_intent: z.ZodNullable<z.ZodString>;
2535
+ context_graph_path: z.ZodString;
2536
+ build_plan: z.ZodString;
2537
+ build_run_id: z.ZodNullable<z.ZodString>;
2538
+ stage_id: z.ZodNullable<z.ZodString>;
2539
+ stage_label: z.ZodNullable<z.ZodString>;
2540
+ contract_type: z.ZodNullable<z.ZodString>;
2541
+ stage_run_id: z.ZodString;
2542
+ attempt: z.ZodNumber;
2543
+ status: z.ZodEnum<{
2544
+ running: "running";
2545
+ failed: "failed";
2546
+ succeeded: "succeeded";
2547
+ }>;
2548
+ executor: z.ZodObject<{
2549
+ kind: z.ZodEnum<{
2550
+ "local-agent": "local-agent";
2551
+ "connected-provider": "connected-provider";
2552
+ managed: "managed";
2553
+ }>;
2554
+ name: z.ZodString;
2555
+ display_name: z.ZodString;
2556
+ command: z.ZodNullable<z.ZodString>;
2557
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2558
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2559
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2560
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2561
+ }, z.core.$strip>;
2562
+ shell: z.ZodObject<{
2563
+ root_path: z.ZodString;
2564
+ workspace_manifest_path: z.ZodNullable<z.ZodString>;
2565
+ preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
2566
+ replay_ready: z.ZodBoolean;
2567
+ retention_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2568
+ }, z.core.$strict>;
2569
+ logs: z.ZodObject<{
2570
+ prompt_path: z.ZodNullable<z.ZodString>;
2571
+ event_stream_path: z.ZodNullable<z.ZodString>;
2572
+ status_path: z.ZodNullable<z.ZodString>;
2573
+ }, z.core.$strict>;
2574
+ runtime_files: z.ZodObject<{
2575
+ project_path: z.ZodNullable<z.ZodString>;
2576
+ contract_path: z.ZodNullable<z.ZodString>;
2577
+ paths_path: z.ZodNullable<z.ZodString>;
2578
+ source_locator_path: z.ZodNullable<z.ZodString>;
2579
+ source_manifest_path: z.ZodNullable<z.ZodString>;
2580
+ source_state_path: z.ZodNullable<z.ZodString>;
2581
+ stage_inputs_path: z.ZodNullable<z.ZodString>;
2582
+ expected_inputs_path: z.ZodNullable<z.ZodString>;
2583
+ reviewed_inputs_path: z.ZodNullable<z.ZodString>;
2584
+ previous_attempts_path: z.ZodNullable<z.ZodString>;
2585
+ retry_feedback_path: z.ZodNullable<z.ZodString>;
2586
+ last_validation_failure_path: z.ZodNullable<z.ZodString>;
2587
+ verifier_path: z.ZodNullable<z.ZodString>;
2588
+ stage_evidence_path: z.ZodNullable<z.ZodString>;
2589
+ reasoning_path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2590
+ }, z.core.$strict>;
2591
+ artifacts: z.ZodObject<{
2592
+ reads: z.ZodDefault<z.ZodArray<z.ZodObject<{
2593
+ artifact_id: z.ZodString;
2594
+ artifact_path: z.ZodString;
2595
+ shell_root_path: z.ZodString;
2596
+ input_mount_path: z.ZodNullable<z.ZodString>;
2597
+ output_mount_path: z.ZodNullable<z.ZodString>;
2598
+ }, z.core.$strip>>>;
2599
+ writes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2600
+ artifact_id: z.ZodString;
2601
+ artifact_path: z.ZodString;
2602
+ shell_root_path: z.ZodString;
2603
+ input_mount_path: z.ZodNullable<z.ZodString>;
2604
+ output_mount_path: z.ZodNullable<z.ZodString>;
2605
+ }, z.core.$strip>>>;
2606
+ }, z.core.$strict>;
2607
+ validation_attempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2608
+ attempt: z.ZodNumber;
2609
+ recorded_at: z.ZodString;
2610
+ status: z.ZodEnum<{
2611
+ failed: "failed";
2612
+ succeeded: "succeeded";
2613
+ }>;
2614
+ summary: z.ZodString;
2615
+ }, z.core.$strict>>>;
2616
+ summary: z.ZodNullable<z.ZodString>;
2617
+ error: z.ZodNullable<z.ZodString>;
2618
+ }, z.core.$strict>;
2619
+ }, z.core.$strict>;
2620
+ readonly success_status: 200;
2621
+ }, {
2622
+ readonly id: "getProjectReadiness";
2623
+ readonly method: "GET";
2624
+ readonly path: "/v1/projects/{project_id}/readiness";
2625
+ readonly tags: ["Context Graphs"];
2626
+ readonly summary: "Get Project readiness";
2627
+ readonly description: "Read the ready/not ready verdict for the latest Context Graph against the Project intent.";
2628
+ readonly visibility: "app";
2629
+ readonly parameters: [ServiceOperationParameter];
2630
+ readonly response_schema: z.ZodObject<{
2631
+ kind: z.ZodLiteral<"interf-readiness-state">;
2632
+ version: z.ZodLiteral<1>;
2633
+ generated_at: z.ZodString;
2634
+ project: z.ZodString;
2635
+ status: z.ZodEnum<{
2636
+ ready: "ready";
2637
+ "not-ready": "not-ready";
2638
+ failed: "failed";
2639
+ "not-configured": "not-configured";
2640
+ "not-built": "not-built";
2641
+ building: "building";
2642
+ built: "built";
2643
+ checking: "checking";
2644
+ stale: "stale";
2645
+ }>;
2646
+ ready: z.ZodBoolean;
2647
+ summary: z.ZodString;
2648
+ context_graph_path: z.ZodNullable<z.ZodString>;
2649
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2650
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2651
+ build: z.ZodNullable<z.ZodObject<{
2652
+ gate: z.ZodEnum<{
2653
+ "context-graph": "context-graph";
2654
+ "project-config": "project-config";
2655
+ "build-run": "build-run";
2656
+ "artifact-diagnostics": "artifact-diagnostics";
2657
+ "context-checks": "context-checks";
2658
+ benchmarks: "benchmarks";
2659
+ "benchmarks-current": "benchmarks-current";
2660
+ }>;
2661
+ ok: z.ZodBoolean;
2662
+ status: z.ZodOptional<z.ZodEnum<{
2663
+ ready: "ready";
2664
+ "not-ready": "not-ready";
2665
+ failed: "failed";
2666
+ "not-configured": "not-configured";
2667
+ "not-built": "not-built";
2668
+ building: "building";
2669
+ built: "built";
2670
+ checking: "checking";
2671
+ stale: "stale";
2672
+ }>>;
2673
+ summary: z.ZodString;
2674
+ detail: z.ZodOptional<z.ZodString>;
2675
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2677
+ }, z.core.$strict>>;
2678
+ check_results: z.ZodObject<{
2679
+ configured: z.ZodNumber;
2680
+ fingerprint: z.ZodNullable<z.ZodString>;
2681
+ source_files: z.ZodNullable<z.ZodObject<{
2682
+ passed: z.ZodNumber;
2683
+ total: z.ZodNumber;
2684
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2685
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2686
+ stale: z.ZodDefault<z.ZodBoolean>;
2687
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2688
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2689
+ }, z.core.$strict>>;
2690
+ context_graph: z.ZodNullable<z.ZodObject<{
2691
+ passed: z.ZodNumber;
2692
+ total: z.ZodNumber;
2693
+ pass_rate: z.ZodNullable<z.ZodNumber>;
2694
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2695
+ stale: z.ZodDefault<z.ZodBoolean>;
2696
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2697
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2698
+ }, z.core.$strict>>;
2699
+ }, z.core.$strict>;
2700
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2701
+ gate: z.ZodEnum<{
2702
+ "context-graph": "context-graph";
2703
+ "project-config": "project-config";
2704
+ "build-run": "build-run";
2705
+ "artifact-diagnostics": "artifact-diagnostics";
2706
+ "context-checks": "context-checks";
2707
+ benchmarks: "benchmarks";
2708
+ "benchmarks-current": "benchmarks-current";
2709
+ }>;
2710
+ ok: z.ZodBoolean;
2711
+ status: z.ZodOptional<z.ZodEnum<{
2712
+ ready: "ready";
2713
+ "not-ready": "not-ready";
2714
+ failed: "failed";
2715
+ "not-configured": "not-configured";
2716
+ "not-built": "not-built";
2717
+ building: "building";
2718
+ built: "built";
2719
+ checking: "checking";
2720
+ stale: "stale";
2721
+ }>>;
2722
+ summary: z.ZodString;
2723
+ detail: z.ZodOptional<z.ZodString>;
2724
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2725
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ }, z.core.$strict>>>;
2727
+ }, z.core.$strict>;
2728
+ readonly success_status: 200;
2729
+ }, {
2730
+ readonly id: "listSourceFiles";
2731
+ readonly method: "GET";
2732
+ readonly path: "/v1/projects/{project_id}/source-files";
2733
+ readonly tags: ["Source"];
2734
+ readonly summary: "List Source Manifest projection";
2735
+ readonly description: "Return the latest Source Manifest projected as source file rows for compatibility clients. Use source-manifest as the canonical run authority.";
2736
+ readonly visibility: "app";
2737
+ readonly parameters: [ServiceOperationParameter];
2738
+ readonly response_schema: z.ZodObject<{
2739
+ source_files: z.ZodArray<z.ZodObject<{
2740
+ project: z.ZodString;
2741
+ source_manifest_id: z.ZodOptional<z.ZodString>;
2742
+ source_file_id: z.ZodOptional<z.ZodString>;
2743
+ path: z.ZodString;
2744
+ locator: z.ZodOptional<z.ZodString>;
2745
+ kind: z.ZodOptional<z.ZodEnum<{
2746
+ image: "image";
2747
+ pdf: "pdf";
2748
+ document: "document";
2749
+ spreadsheet: "spreadsheet";
2750
+ presentation: "presentation";
2751
+ text: "text";
2752
+ other: "other";
2753
+ }>>;
2754
+ absolute_path: z.ZodString;
2755
+ size_bytes: z.ZodNumber;
2756
+ modified_at: z.ZodNullable<z.ZodString>;
2757
+ source_folder_path: z.ZodString;
2758
+ }, z.core.$strict>>;
2759
+ }, z.core.$strict>;
2760
+ readonly success_status: 200;
2761
+ }, {
2762
+ readonly id: "getSourceManifest";
2763
+ readonly method: "GET";
2764
+ readonly path: "/v1/projects/{project_id}/source-manifest";
2765
+ readonly tags: ["Source"];
2766
+ readonly summary: "Get Source Manifest";
2767
+ readonly description: "Return the evidence-backed Source Manifest recorded for the latest Context Graph.";
2768
+ readonly visibility: "app";
2769
+ readonly parameters: [ServiceOperationParameter];
2770
+ readonly response_schema: z.ZodObject<{
2771
+ source_manifest: z.ZodObject<{
2772
+ kind: z.ZodLiteral<"interf-source-manifest">;
2773
+ version: z.ZodLiteral<1>;
2774
+ manifest_id: z.ZodString;
2775
+ generated_at: z.ZodString;
2776
+ run_id: z.ZodNullable<z.ZodString>;
2777
+ project: z.ZodString;
2778
+ source: z.ZodObject<{
2779
+ id: z.ZodString;
2780
+ kind: z.ZodEnum<{
2781
+ "local-folder": "local-folder";
2782
+ }>;
2783
+ locator: z.ZodString;
2784
+ }, z.core.$strict>;
2785
+ scanner: z.ZodObject<{
2786
+ executor: z.ZodString;
2787
+ agent_label: z.ZodString;
2788
+ attempt: z.ZodNumber;
2789
+ }, z.core.$strict>;
2790
+ source_total: z.ZodNumber;
2791
+ files: z.ZodArray<z.ZodObject<{
2792
+ id: z.ZodString;
2793
+ locator: z.ZodString;
2794
+ path: z.ZodString;
2795
+ kind: z.ZodDefault<z.ZodEnum<{
2796
+ image: "image";
2797
+ pdf: "pdf";
2798
+ document: "document";
2799
+ spreadsheet: "spreadsheet";
2800
+ presentation: "presentation";
2801
+ text: "text";
2802
+ other: "other";
2803
+ }>>;
2804
+ size_bytes: z.ZodOptional<z.ZodNumber>;
2805
+ content_hash: z.ZodOptional<z.ZodString>;
2806
+ page_count: z.ZodOptional<z.ZodNumber>;
2807
+ inspectable_units: z.ZodDefault<z.ZodArray<z.ZodObject<{
2808
+ kind: z.ZodEnum<{
2809
+ file: "file";
2810
+ page: "page";
2811
+ slide: "slide";
2812
+ sheet: "sheet";
2813
+ table: "table";
2814
+ image: "image";
2815
+ section: "section";
2816
+ }>;
2817
+ index: z.ZodOptional<z.ZodNumber>;
2818
+ label: z.ZodOptional<z.ZodString>;
2819
+ }, z.core.$strict>>>;
2820
+ confidence: z.ZodDefault<z.ZodEnum<{
2821
+ high: "high";
2822
+ medium: "medium";
2823
+ low: "low";
2824
+ }>>;
2825
+ evidence: z.ZodArray<z.ZodObject<{
2826
+ kind: z.ZodEnum<{
2827
+ "agent-observation": "agent-observation";
2828
+ "connector-metadata": "connector-metadata";
2829
+ "user-provided": "user-provided";
2830
+ }>;
2831
+ summary: z.ZodString;
2832
+ }, z.core.$strict>>;
2833
+ }, z.core.$strict>>;
2834
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
2835
+ }, z.core.$strict>;
2836
+ }, z.core.$strict>;
2837
+ readonly success_status: 200;
2838
+ }, {
2839
+ readonly id: "getContextGraphEntrypoint";
2840
+ readonly method: "GET";
2841
+ readonly path: "/v1/projects/{project_id}/context-graph/entrypoint";
2842
+ readonly tags: ["Context Graphs"];
2843
+ readonly summary: "Get Context Graph entrypoint";
2844
+ readonly description: "Return the primary downstream entrypoint for the latest Context Graph. Agents should start from home.md.";
2845
+ readonly visibility: "app";
2846
+ readonly parameters: [ServiceOperationParameter];
2847
+ readonly response_schema: z.ZodObject<{
2848
+ kind: z.ZodLiteral<"interf-context-graph-handoff">;
2849
+ version: z.ZodLiteral<1>;
2850
+ entrypoint: z.ZodObject<{
2851
+ artifact_id: z.ZodOptional<z.ZodString>;
2852
+ label: z.ZodString;
2853
+ locator: z.ZodObject<{
2854
+ kind: z.ZodEnum<{
2855
+ "local-path": "local-path";
2856
+ "remote-url": "remote-url";
2857
+ "api-served": "api-served";
2858
+ }>;
2859
+ value: z.ZodString;
2860
+ }, z.core.$strict>;
2861
+ path: z.ZodOptional<z.ZodString>;
2862
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
2863
+ file: "file";
2864
+ directory: "directory";
2865
+ }>>;
2866
+ role: z.ZodDefault<z.ZodEnum<{
2867
+ entrypoint: "entrypoint";
2868
+ artifact: "artifact";
2869
+ guidance: "guidance";
2870
+ "source-index": "source-index";
2871
+ }>>;
2872
+ summary: z.ZodOptional<z.ZodString>;
2873
+ }, z.core.$strict>;
2874
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2875
+ artifact_id: z.ZodOptional<z.ZodString>;
2876
+ label: z.ZodString;
2877
+ locator: z.ZodObject<{
2878
+ kind: z.ZodEnum<{
2879
+ "local-path": "local-path";
2880
+ "remote-url": "remote-url";
2881
+ "api-served": "api-served";
2882
+ }>;
2883
+ value: z.ZodString;
2884
+ }, z.core.$strict>;
2885
+ path: z.ZodOptional<z.ZodString>;
2886
+ artifact_kind: z.ZodOptional<z.ZodEnum<{
2887
+ file: "file";
2888
+ directory: "directory";
2889
+ }>>;
2890
+ role: z.ZodDefault<z.ZodEnum<{
2891
+ entrypoint: "entrypoint";
2892
+ artifact: "artifact";
2893
+ guidance: "guidance";
2894
+ "source-index": "source-index";
2895
+ }>>;
2896
+ summary: z.ZodOptional<z.ZodString>;
2897
+ }, z.core.$strict>>>;
2898
+ portable: z.ZodOptional<z.ZodObject<{
2899
+ locator: z.ZodObject<{
2900
+ kind: z.ZodEnum<{
2901
+ "local-path": "local-path";
2902
+ "remote-url": "remote-url";
2903
+ "api-served": "api-served";
2904
+ }>;
2905
+ value: z.ZodString;
2906
+ }, z.core.$strict>;
2907
+ instructions: z.ZodOptional<z.ZodString>;
2908
+ }, z.core.$strict>>;
2909
+ }, z.core.$strict>;
2910
+ readonly success_status: 200;
2911
+ }, {
2912
+ readonly id: "readContextGraphFile";
2913
+ readonly method: "GET";
2914
+ readonly path: "/v1/projects/{project_id}/context-graph/file";
2915
+ readonly tags: ["Context Graphs"];
2916
+ readonly summary: "Read Context Graph file";
2917
+ readonly description: "Read one file from the latest Context Graph by relative path. Start with home.md; use knowledge/ for task-specific notes and summaries/ for source-backed coverage.";
2918
+ readonly visibility: "app";
2919
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
2920
+ readonly response_schema: z.ZodString;
2921
+ readonly response_content_type: "text/plain";
2922
+ readonly success_status: 200;
2923
+ }, {
2924
+ readonly id: "getContextGraphTraces";
2925
+ readonly method: "GET";
2926
+ readonly path: "/v1/projects/{project_id}/context-graph/traces";
2927
+ readonly tags: ["Context Graphs"];
2928
+ readonly summary: "Get Context Graph traces";
2929
+ readonly description: "Read source-backed trace rollups for exact values and provenance checks.";
2930
+ readonly visibility: "app";
2931
+ readonly parameters: [ServiceOperationParameter];
2932
+ readonly response_schema: z.ZodObject<{
2933
+ kind: z.ZodLiteral<"interf-context-graph-traces">;
2934
+ version: z.ZodLiteral<1>;
2935
+ generated_at: z.ZodString;
2936
+ graph_id: z.ZodString;
2937
+ project_id: z.ZodString;
2938
+ files_processed: z.ZodNumber;
2939
+ files_total: z.ZodNumber;
2940
+ checks_passed: z.ZodNumber;
2941
+ checks_total: z.ZodNumber;
2942
+ ready: z.ZodBoolean;
2943
+ pages_read: z.ZodOptional<z.ZodNumber>;
2944
+ charts_extracted: z.ZodOptional<z.ZodNumber>;
2945
+ entities_found: z.ZodOptional<z.ZodNumber>;
2946
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
2947
+ kind: z.ZodString;
2948
+ label: z.ZodString;
2949
+ count: z.ZodOptional<z.ZodNumber>;
2950
+ total: z.ZodOptional<z.ZodNumber>;
2951
+ passed: z.ZodOptional<z.ZodBoolean>;
2952
+ detail: z.ZodOptional<z.ZodString>;
2953
+ }, z.core.$strict>>>;
2954
+ }, z.core.$strict>;
2955
+ readonly success_status: 200;
2956
+ }, {
2957
+ readonly id: "getBuildEvidence";
2958
+ readonly method: "GET";
2959
+ readonly path: "/v1/projects/{project_id}/context-graph/evidence";
2960
+ readonly tags: ["Context Graphs"];
2961
+ readonly summary: "Get graph diagnostics";
2962
+ readonly description: "Read supplemental diagnostic rows for the latest Context Graph. GraphManifest primary metrics are the authoritative coverage summary.";
2963
+ readonly visibility: "app";
2964
+ readonly parameters: [ServiceOperationParameter];
2965
+ readonly response_schema: z.ZodObject<{
2966
+ kind: z.ZodLiteral<"interf-build-evidence">;
2967
+ version: z.ZodLiteral<1>;
2968
+ generated_at: z.ZodString;
2969
+ project_id: z.ZodString;
2970
+ build_run_id: z.ZodNullable<z.ZodString>;
2971
+ ready: z.ZodBoolean;
2972
+ summary: z.ZodString;
2973
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
2974
+ id: z.ZodString;
2975
+ assertion: z.ZodString;
2976
+ metric: z.ZodObject<{
2977
+ observed: z.ZodNumber;
2978
+ total: z.ZodOptional<z.ZodNumber>;
2979
+ unit: z.ZodOptional<z.ZodString>;
2980
+ }, z.core.$strict>;
2981
+ evidence: z.ZodObject<{
2982
+ kind: z.ZodEnum<{
2983
+ output: "output";
2984
+ "source-inventory": "source-inventory";
2985
+ "stage-record": "stage-record";
2986
+ validator: "validator";
2987
+ trace: "trace";
2988
+ "stage-evidence": "stage-evidence";
2989
+ }>;
2990
+ label: z.ZodString;
2991
+ ref: z.ZodOptional<z.ZodString>;
2992
+ path: z.ZodOptional<z.ZodString>;
2993
+ run_id: z.ZodOptional<z.ZodString>;
2994
+ stage_id: z.ZodOptional<z.ZodString>;
2995
+ artifact_id: z.ZodOptional<z.ZodString>;
2996
+ }, z.core.$strict>;
2997
+ issue_state: z.ZodOptional<z.ZodEnum<{
2998
+ pass: "pass";
2999
+ fail: "fail";
3000
+ missing: "missing";
3001
+ review: "review";
3002
+ }>>;
3003
+ issue: z.ZodOptional<z.ZodString>;
3004
+ }, z.core.$strict>>>;
3005
+ }, z.core.$strict>;
3006
+ readonly success_status: 200;
3007
+ }];
3008
+ export type ServiceOperationId = typeof SERVICE_OPERATIONS[number]["id"];
3009
+ export declare const APP_PROFILE_OPERATION_IDS: ("createProject" | "listProjects" | "getProject" | "prepareBuildPlan" | "runBuild" | "getRunStatus" | "getRunArtifacts" | "getRunEvents" | "readRunFile" | "getLatestContextGraph" | "listContextGraphStages" | "listContextGraphResources" | "listContextGraphSessions" | "getContextGraphResource" | "getContextGraphSession" | "getProjectReadiness" | "listSourceFiles" | "getSourceManifest" | "getContextGraphEntrypoint" | "readContextGraphFile" | "getContextGraphTraces" | "getBuildEvidence")[];
3010
+ export declare function serviceOperationById(id: string): ServiceOperation | undefined;
3011
+ export { EmptyObjectSchema };