@interf/compiler 0.22.2 → 0.33.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 (575) hide show
  1. package/README.md +175 -234
  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 -4
  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 +10 -0
  10. package/dist/cli/commands/benchmark.js +88 -0
  11. package/dist/cli/commands/build-plan.js +95 -103
  12. package/dist/cli/commands/build.d.ts +1 -1
  13. package/dist/cli/commands/build.js +16 -15
  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 +199 -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 +3 -2
  20. package/dist/cli/commands/mcp.js +721 -204
  21. package/dist/cli/commands/project.d.ts +2 -0
  22. package/dist/cli/commands/project.js +202 -0
  23. package/dist/cli/commands/reset.d.ts +1 -1
  24. package/dist/cli/commands/reset.js +10 -10
  25. package/dist/cli/commands/runs.js +52 -26
  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 +33 -22
  30. package/dist/cli/commands/traces.d.ts +2 -0
  31. package/dist/cli/commands/traces.js +125 -0
  32. package/dist/cli/commands/wizard.js +155 -150
  33. package/dist/cli/index.d.ts +7 -4
  34. package/dist/cli/index.js +13 -7
  35. package/dist/index.d.ts +2 -2
  36. package/dist/index.js +2 -2
  37. package/dist/packages/build-plans/authoring/brief.d.ts +517 -0
  38. package/dist/packages/build-plans/authoring/brief.js +89 -0
  39. package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +10 -10
  40. package/dist/packages/build-plans/authoring/build-plan-authoring.js +66 -26
  41. package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +1 -1
  42. package/dist/packages/build-plans/authoring/build-plan-edit-session.js +8 -2
  43. package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +9 -6
  44. package/dist/packages/build-plans/authoring/build-plan-improvement.js +39 -42
  45. package/dist/packages/build-plans/authoring/lib/build-plan-edit-utils.js +7 -7
  46. package/dist/packages/build-plans/build-plan-resolution.d.ts +1 -1
  47. package/dist/packages/build-plans/build-plan-resolution.js +3 -3
  48. package/dist/packages/build-plans/index.d.ts +1 -1
  49. package/dist/packages/build-plans/index.js +1 -1
  50. package/dist/packages/build-plans/package/build-plan-definitions.d.ts +14 -12
  51. package/dist/packages/build-plans/package/build-plan-definitions.js +40 -39
  52. package/dist/packages/build-plans/package/build-plan-helpers.d.ts +3 -2
  53. package/dist/packages/build-plans/package/build-plan-helpers.js +27 -13
  54. package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +5 -5
  55. package/dist/packages/build-plans/package/build-plan-review-paths.js +15 -15
  56. package/dist/packages/build-plans/package/build-plan-stage-runner.d.ts +4 -4
  57. package/dist/packages/build-plans/package/build-plan-stage-runner.js +22 -11
  58. package/dist/packages/build-plans/package/builtin-build-plan.d.ts +5 -6
  59. package/dist/packages/build-plans/package/builtin-build-plan.js +7 -8
  60. package/dist/packages/build-plans/package/context-interface.d.ts +11 -9
  61. package/dist/packages/build-plans/package/context-interface.js +14 -33
  62. package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +6 -17
  63. package/dist/packages/build-plans/package/interf-build-plan-package.js +56 -52
  64. package/dist/packages/build-plans/package/local-build-plans.d.ts +12 -10
  65. package/dist/packages/build-plans/package/local-build-plans.js +56 -31
  66. package/dist/packages/build-plans/package/user-build-plans.js +1 -1
  67. package/dist/packages/contracts/index.d.ts +4 -2
  68. package/dist/packages/contracts/index.js +2 -1
  69. package/dist/packages/contracts/lib/project-paths.d.ts +137 -0
  70. package/dist/packages/contracts/lib/project-paths.js +211 -0
  71. package/dist/packages/contracts/lib/project-schema.d.ts +160 -0
  72. package/dist/packages/contracts/lib/project-schema.js +113 -0
  73. package/dist/packages/contracts/lib/schema.d.ts +739 -80
  74. package/dist/packages/contracts/lib/schema.js +410 -75
  75. package/dist/packages/contracts/utils/parse.js +67 -0
  76. package/dist/packages/projects/index.d.ts +6 -0
  77. package/dist/packages/{project → projects}/index.js +0 -3
  78. package/dist/packages/{project → projects}/interf-detect.d.ts +12 -12
  79. package/dist/packages/{project → projects}/interf-detect.js +56 -50
  80. package/dist/packages/projects/interf.d.ts +2 -0
  81. package/dist/packages/projects/interf.js +1 -0
  82. package/dist/packages/projects/lib/schema.d.ts +79 -0
  83. package/dist/packages/projects/lib/schema.js +89 -0
  84. package/dist/packages/projects/source-config.d.ts +58 -0
  85. package/dist/packages/projects/source-config.js +352 -0
  86. package/dist/packages/projects/source-folders.d.ts +11 -0
  87. package/dist/packages/{project → projects}/source-folders.js +26 -26
  88. package/dist/packages/{engine → runtime}/action-planner.d.ts +1 -1
  89. package/dist/packages/{engine → runtime}/action-planner.js +20 -22
  90. package/dist/packages/runtime/action-values.d.ts +1 -0
  91. package/dist/packages/runtime/action-values.js +1 -0
  92. package/dist/packages/runtime/actions/errors.d.ts +2 -0
  93. package/dist/packages/runtime/actions/errors.js +12 -0
  94. package/dist/packages/runtime/actions/fields.d.ts +82 -0
  95. package/dist/packages/runtime/actions/form-builders.d.ts +14 -0
  96. package/dist/packages/runtime/actions/form-builders.js +619 -0
  97. package/dist/packages/runtime/actions/form-validators.d.ts +8 -0
  98. package/dist/packages/runtime/actions/form-validators.js +128 -0
  99. package/dist/packages/runtime/actions/helpers.d.ts +11 -0
  100. package/dist/packages/runtime/actions/helpers.js +80 -0
  101. package/dist/packages/runtime/actions/index.d.ts +8 -0
  102. package/dist/packages/runtime/actions/index.js +11 -0
  103. package/dist/packages/runtime/actions/registry.d.ts +64 -0
  104. package/dist/packages/runtime/actions/registry.js +62 -0
  105. package/dist/packages/runtime/actions/requests.d.ts +45 -0
  106. package/dist/packages/runtime/actions/requests.js +158 -0
  107. package/dist/packages/runtime/actions/schemas.d.ts +154 -0
  108. package/dist/packages/runtime/actions/schemas.js +36 -0
  109. package/dist/packages/runtime/agent-handoff.d.ts +11 -0
  110. package/dist/packages/runtime/agent-handoff.js +101 -0
  111. package/dist/packages/{engine → runtime}/agents/index.d.ts +1 -2
  112. package/dist/packages/{engine → runtime}/agents/index.js +1 -2
  113. package/dist/packages/runtime/agents/lib/args.d.ts +14 -0
  114. package/dist/packages/runtime/agents/lib/args.js +24 -0
  115. package/dist/packages/{engine → runtime}/agents/lib/constants.d.ts +4 -1
  116. package/dist/packages/runtime/agents/lib/constants.js +13 -0
  117. package/dist/packages/runtime/agents/lib/context-graph-bootstrap.d.ts +3 -0
  118. package/dist/packages/{engine/agents/lib/verifiable-context-bootstrap.js → runtime/agents/lib/context-graph-bootstrap.js} +5 -6
  119. package/dist/packages/{engine → runtime}/agents/lib/detection.d.ts +5 -0
  120. package/dist/packages/{engine → runtime}/agents/lib/detection.js +16 -7
  121. package/dist/packages/{engine → runtime}/agents/lib/execution-profile.js +8 -14
  122. package/dist/packages/{engine → runtime}/agents/lib/execution.js +14 -4
  123. package/dist/packages/{engine → runtime}/agents/lib/preflight.js +15 -13
  124. package/dist/packages/{engine → runtime}/agents/lib/render.js +4 -4
  125. package/dist/packages/runtime/agents/lib/shell-fs.d.ts +18 -0
  126. package/dist/packages/runtime/agents/lib/shell-fs.js +190 -0
  127. package/dist/packages/runtime/agents/lib/shell-paths.d.ts +16 -0
  128. package/dist/packages/runtime/agents/lib/shell-paths.js +63 -0
  129. package/dist/packages/runtime/agents/lib/shell-projection.d.ts +25 -0
  130. package/dist/packages/runtime/agents/lib/shell-projection.js +314 -0
  131. package/dist/packages/runtime/agents/lib/shell-templates.d.ts +30 -0
  132. package/dist/packages/runtime/agents/lib/shell-templates.js +452 -0
  133. package/dist/packages/runtime/agents/lib/shell-workspace.d.ts +17 -0
  134. package/dist/packages/runtime/agents/lib/shell-workspace.js +70 -0
  135. package/dist/packages/runtime/agents/lib/shells.d.ts +63 -0
  136. package/dist/packages/runtime/agents/lib/shells.js +383 -0
  137. package/dist/packages/{engine → runtime}/agents/lib/user-config.d.ts +8 -2
  138. package/dist/packages/{engine → runtime}/agents/lib/user-config.js +8 -2
  139. package/dist/packages/runtime/agents/providers/claude-code.d.ts +13 -0
  140. package/dist/packages/runtime/agents/providers/claude-code.js +45 -0
  141. package/dist/packages/runtime/agents/providers/codex.d.ts +17 -0
  142. package/dist/packages/runtime/agents/providers/codex.js +64 -0
  143. package/dist/packages/runtime/agents/providers/cursor.d.ts +9 -0
  144. package/dist/packages/runtime/agents/providers/cursor.js +24 -0
  145. package/dist/packages/runtime/agents/providers/index.d.ts +9 -0
  146. package/dist/packages/runtime/agents/providers/index.js +31 -0
  147. package/dist/packages/runtime/agents/providers/types.d.ts +50 -0
  148. package/dist/packages/{engine → runtime}/agents/registry.d.ts +13 -2
  149. package/dist/packages/{engine → runtime}/agents/registry.js +48 -10
  150. package/dist/packages/{engine → runtime}/agents/role-executors.d.ts +1 -1
  151. package/dist/packages/{engine → runtime}/agents/role-executors.js +7 -6
  152. package/dist/packages/{engine → runtime}/agents/role-router.js +7 -5
  153. package/dist/packages/runtime/auth/account-context.d.ts +52 -0
  154. package/dist/packages/runtime/auth/account-context.js +68 -0
  155. package/dist/packages/runtime/auth/auth-flow.d.ts +73 -0
  156. package/dist/packages/runtime/auth/auth-flow.js +189 -0
  157. package/dist/packages/runtime/auth/jwt-validator.d.ts +58 -0
  158. package/dist/packages/runtime/auth/jwt-validator.js +86 -0
  159. package/dist/packages/runtime/auth/keychain.d.ts +35 -0
  160. package/dist/packages/runtime/auth/keychain.js +85 -0
  161. package/dist/packages/runtime/auth/session-store.d.ts +38 -0
  162. package/dist/packages/runtime/auth/session-store.js +88 -0
  163. package/dist/packages/runtime/auth/workos-client.d.ts +58 -0
  164. package/dist/packages/runtime/auth/workos-client.js +87 -0
  165. package/dist/packages/runtime/benchmark-question-draft.d.ts +20 -0
  166. package/dist/packages/runtime/benchmark-question-draft.js +124 -0
  167. package/dist/packages/runtime/build/artifact-counts.d.ts +1 -0
  168. package/dist/packages/{engine → runtime}/build/artifact-counts.js +5 -9
  169. package/dist/packages/{engine → runtime}/build/artifact-status.d.ts +5 -5
  170. package/dist/packages/{engine → runtime}/build/artifact-status.js +25 -23
  171. package/dist/packages/runtime/build/atomic-fs.d.ts +3 -0
  172. package/dist/packages/runtime/build/atomic-fs.js +95 -0
  173. package/dist/packages/runtime/build/billing-events.d.ts +78 -0
  174. package/dist/packages/{engine → runtime}/build/billing-events.js +17 -19
  175. package/dist/packages/runtime/build/build-evidence.d.ts +15 -0
  176. package/dist/packages/runtime/build/build-evidence.js +173 -0
  177. package/dist/packages/{engine → runtime}/build/build-pipeline.d.ts +12 -8
  178. package/dist/packages/runtime/build/build-pipeline.js +304 -0
  179. package/dist/packages/{engine → runtime}/build/build-plan-primitives.d.ts +1 -1
  180. package/dist/packages/{engine → runtime}/build/build-plan-primitives.js +0 -1
  181. package/dist/packages/runtime/build/build-plan-runs.d.ts +14 -0
  182. package/dist/packages/runtime/build/build-plan-runs.js +31 -0
  183. package/dist/packages/runtime/build/build-stage-plan.d.ts +16 -0
  184. package/dist/packages/{engine → runtime}/build/build-stage-plan.js +28 -29
  185. package/dist/packages/{engine → runtime}/build/build-stage-runner.d.ts +2 -1
  186. package/dist/packages/runtime/build/build-stage-runner.js +165 -0
  187. package/dist/packages/{engine → runtime}/build/build-target.d.ts +4 -4
  188. package/dist/packages/runtime/build/build-target.js +16 -0
  189. package/dist/packages/{engine → runtime}/build/check-evaluator.d.ts +14 -16
  190. package/dist/packages/runtime/build/check-evaluator.js +575 -0
  191. package/dist/packages/runtime/build/context-graph-paths.d.ts +51 -0
  192. package/dist/packages/runtime/build/context-graph-paths.js +133 -0
  193. package/dist/packages/runtime/build/context-graph-schema.d.ts +19 -0
  194. package/dist/packages/runtime/build/context-graph-schema.js +39 -0
  195. package/dist/packages/{engine → runtime}/build/discovery.d.ts +2 -2
  196. package/dist/packages/{engine → runtime}/build/discovery.js +4 -4
  197. package/dist/packages/{engine → runtime}/build/index.d.ts +5 -3
  198. package/dist/packages/{engine → runtime}/build/index.js +5 -3
  199. package/dist/packages/{engine → runtime}/build/lib/schema.d.ts +221 -88
  200. package/dist/packages/{engine → runtime}/build/lib/schema.js +61 -41
  201. package/dist/packages/runtime/build/reset.d.ts +2 -0
  202. package/dist/packages/runtime/build/reset.js +62 -0
  203. package/dist/packages/{engine → runtime}/build/runtime-contracts.js +5 -5
  204. package/dist/packages/runtime/build/runtime-inventory.d.ts +7 -0
  205. package/dist/packages/{engine → runtime}/build/runtime-inventory.js +3 -3
  206. package/dist/packages/{engine → runtime}/build/runtime-paths.js +6 -6
  207. package/dist/packages/{engine → runtime}/build/runtime-prompt.js +7 -6
  208. package/dist/packages/{engine → runtime}/build/runtime-reconcile.d.ts +1 -1
  209. package/dist/packages/{engine → runtime}/build/runtime-reconcile.js +25 -21
  210. package/dist/packages/runtime/build/runtime-runs.d.ts +10 -0
  211. package/dist/packages/runtime/build/runtime-runs.js +265 -0
  212. package/dist/packages/{engine → runtime}/build/runtime-types.d.ts +6 -6
  213. package/dist/packages/runtime/build/runtime-types.js +1 -0
  214. package/dist/packages/runtime/build/runtime.d.ts +6 -0
  215. package/dist/packages/runtime/build/runtime.js +5 -0
  216. package/dist/packages/runtime/build/source-files.d.ts +58 -0
  217. package/dist/packages/runtime/build/source-files.js +184 -0
  218. package/dist/packages/runtime/build/source-inventory.d.ts +27 -0
  219. package/dist/packages/runtime/build/source-inventory.js +273 -0
  220. package/dist/packages/runtime/build/source-manifest.d.ts +52 -0
  221. package/dist/packages/runtime/build/source-manifest.js +192 -0
  222. package/dist/packages/runtime/build/stage-evidence.d.ts +22 -0
  223. package/dist/packages/runtime/build/stage-evidence.js +317 -0
  224. package/dist/packages/runtime/build/stage-reuse.d.ts +11 -0
  225. package/dist/packages/runtime/build/stage-reuse.js +142 -0
  226. package/dist/packages/runtime/build/state-artifacts.d.ts +9 -0
  227. package/dist/packages/runtime/build/state-artifacts.js +14 -0
  228. package/dist/packages/runtime/build/state-health.d.ts +4 -0
  229. package/dist/packages/{engine → runtime}/build/state-health.js +21 -26
  230. package/dist/packages/runtime/build/state-io.d.ts +12 -0
  231. package/dist/packages/runtime/build/state-io.js +119 -0
  232. package/dist/packages/{engine → runtime}/build/state-paths.d.ts +3 -1
  233. package/dist/packages/runtime/build/state-paths.js +22 -0
  234. package/dist/packages/runtime/build/state-view.d.ts +5 -0
  235. package/dist/packages/{engine → runtime}/build/state-view.js +60 -33
  236. package/dist/packages/runtime/build/state.d.ts +7 -0
  237. package/dist/packages/runtime/build/state.js +12 -0
  238. package/dist/packages/runtime/build/traces.d.ts +30 -0
  239. package/dist/packages/runtime/build/traces.js +133 -0
  240. package/dist/packages/{engine/build/validate-verifiable-context.d.ts → runtime/build/validate-context-graph.d.ts} +6 -6
  241. package/dist/packages/{engine/build/validate-verifiable-context.js → runtime/build/validate-context-graph.js} +48 -35
  242. package/dist/packages/{engine → runtime}/build/validate.d.ts +5 -5
  243. package/dist/packages/{engine → runtime}/build/validate.js +26 -26
  244. package/dist/packages/{engine → runtime}/client.d.ts +15 -15
  245. package/dist/packages/{engine → runtime}/client.js +41 -24
  246. package/dist/packages/{engine → runtime}/connection-config.d.ts +3 -2
  247. package/dist/packages/{engine → runtime}/connection-config.js +9 -8
  248. package/dist/packages/runtime/context-checks.d.ts +10 -0
  249. package/dist/packages/runtime/context-checks.js +114 -0
  250. package/dist/packages/runtime/context-graph-scaffold.d.ts +9 -0
  251. package/dist/packages/runtime/context-graph-scaffold.js +134 -0
  252. package/dist/packages/runtime/entitlement-guard.d.ts +43 -0
  253. package/dist/packages/runtime/entitlement-guard.js +70 -0
  254. package/dist/packages/{engine → runtime}/execution/index.d.ts +2 -2
  255. package/dist/packages/{engine → runtime}/execution/index.js +1 -1
  256. package/dist/packages/{engine → runtime}/execution/lib/schema.d.ts +270 -192
  257. package/dist/packages/{engine → runtime}/execution/lib/schema.js +35 -32
  258. package/dist/packages/runtime/index.d.ts +29 -0
  259. package/dist/packages/runtime/index.js +21 -0
  260. package/dist/packages/runtime/instance-paths.d.ts +30 -0
  261. package/dist/packages/runtime/instance-paths.js +29 -0
  262. package/dist/packages/{engine → runtime}/native-run-handlers.d.ts +4 -4
  263. package/dist/packages/{engine → runtime}/native-run-handlers.js +184 -152
  264. package/dist/packages/runtime/plan-artifact-contract.d.ts +17 -0
  265. package/dist/packages/runtime/plan-artifact-contract.js +42 -0
  266. package/dist/packages/runtime/project-entries.d.ts +11 -0
  267. package/dist/packages/runtime/project-entries.js +49 -0
  268. package/dist/packages/runtime/project-source-state.d.ts +26 -0
  269. package/dist/packages/runtime/project-source-state.js +53 -0
  270. package/dist/packages/runtime/project-store.d.ts +85 -0
  271. package/dist/packages/runtime/project-store.js +168 -0
  272. package/dist/packages/runtime/requested-artifacts.d.ts +7 -0
  273. package/dist/packages/{engine → runtime}/requested-artifacts.js +23 -1
  274. package/dist/packages/{engine → runtime}/run-observability.d.ts +2 -1
  275. package/dist/packages/{engine → runtime}/run-observability.js +166 -84
  276. package/dist/packages/runtime/runtime-action-proposals.d.ts +7 -0
  277. package/dist/packages/runtime/runtime-action-proposals.js +542 -0
  278. package/dist/packages/runtime/runtime-build-plans.d.ts +5 -0
  279. package/dist/packages/runtime/runtime-build-plans.js +131 -0
  280. package/dist/packages/runtime/runtime-build-runs.d.ts +47 -0
  281. package/dist/packages/runtime/runtime-build-runs.js +562 -0
  282. package/dist/packages/runtime/runtime-caches.d.ts +91 -0
  283. package/dist/packages/{engine → runtime}/runtime-caches.js +77 -49
  284. package/dist/packages/{engine → runtime}/runtime-event-applier.d.ts +3 -1
  285. package/dist/packages/{engine → runtime}/runtime-event-applier.js +53 -17
  286. package/dist/packages/runtime/runtime-executor.d.ts +22 -0
  287. package/dist/packages/runtime/runtime-executor.js +131 -0
  288. package/dist/packages/runtime/runtime-jobs.d.ts +13 -0
  289. package/dist/packages/runtime/runtime-jobs.js +463 -0
  290. package/dist/packages/runtime/runtime-observability.d.ts +11 -0
  291. package/dist/packages/runtime/runtime-observability.js +39 -0
  292. package/dist/packages/{engine → runtime}/runtime-persistence.d.ts +9 -18
  293. package/dist/packages/{engine → runtime}/runtime-persistence.js +25 -25
  294. package/dist/packages/runtime/runtime-project-mutations.d.ts +7 -0
  295. package/dist/packages/runtime/runtime-project-mutations.js +64 -0
  296. package/dist/packages/runtime/runtime-project-reads.d.ts +15 -0
  297. package/dist/packages/runtime/runtime-project-reads.js +381 -0
  298. package/dist/packages/runtime/runtime-proposal-helpers.d.ts +22 -0
  299. package/dist/packages/runtime/runtime-proposal-helpers.js +223 -0
  300. package/dist/packages/{engine → runtime}/runtime-resource-builders.d.ts +21 -16
  301. package/dist/packages/{engine → runtime}/runtime-resource-builders.js +48 -38
  302. package/dist/packages/runtime/runtime-verify-runs.d.ts +84 -0
  303. package/dist/packages/runtime/runtime-verify-runs.js +295 -0
  304. package/dist/packages/runtime/runtime.d.ts +1165 -0
  305. package/dist/packages/runtime/runtime.js +417 -0
  306. package/dist/packages/runtime/schemas/actions.d.ts +1182 -0
  307. package/dist/packages/runtime/schemas/actions.js +117 -0
  308. package/dist/packages/runtime/schemas/agents.d.ts +76 -0
  309. package/dist/packages/runtime/schemas/agents.js +41 -0
  310. package/dist/packages/runtime/schemas/build-plans.d.ts +959 -0
  311. package/dist/packages/runtime/schemas/build-plans.js +107 -0
  312. package/dist/packages/runtime/schemas/files.d.ts +567 -0
  313. package/dist/packages/runtime/schemas/files.js +51 -0
  314. package/dist/packages/runtime/schemas/index.d.ts +8 -0
  315. package/dist/packages/runtime/schemas/index.js +12 -0
  316. package/dist/packages/runtime/schemas/instance.d.ts +141 -0
  317. package/dist/packages/runtime/schemas/instance.js +143 -0
  318. package/dist/packages/runtime/schemas/jobs.d.ts +339 -0
  319. package/dist/packages/runtime/schemas/jobs.js +103 -0
  320. package/dist/packages/runtime/schemas/projects.d.ts +339 -0
  321. package/dist/packages/runtime/schemas/projects.js +136 -0
  322. package/dist/packages/runtime/schemas/runs.d.ts +2676 -0
  323. package/dist/packages/runtime/schemas/runs.js +98 -0
  324. package/dist/packages/runtime/service/index.d.ts +3 -0
  325. package/dist/packages/runtime/service/index.js +3 -0
  326. package/dist/packages/runtime/service/openapi.d.ts +7 -0
  327. package/dist/packages/runtime/service/openapi.js +117 -0
  328. package/dist/packages/runtime/service/operations.d.ts +1490 -0
  329. package/dist/packages/runtime/service/operations.js +245 -0
  330. package/dist/packages/runtime/service/routes.d.ts +106 -0
  331. package/dist/packages/runtime/service/routes.js +120 -0
  332. package/dist/packages/runtime/service/server-api-files.d.ts +10 -0
  333. package/dist/packages/runtime/service/server-api-files.js +85 -0
  334. package/dist/packages/runtime/service/server-app-boot.d.ts +4 -0
  335. package/dist/packages/runtime/service/server-app-boot.js +46 -0
  336. package/dist/packages/runtime/service/server-guards.d.ts +63 -0
  337. package/dist/packages/runtime/service/server-guards.js +181 -0
  338. package/dist/packages/runtime/service/server-helpers.d.ts +27 -0
  339. package/dist/packages/runtime/service/server-helpers.js +89 -0
  340. package/dist/packages/runtime/service/server-instance-helpers.d.ts +30 -0
  341. package/dist/packages/runtime/service/server-instance-helpers.js +114 -0
  342. package/dist/packages/runtime/service/server-routes-action-proposals.d.ts +3 -0
  343. package/dist/packages/runtime/service/server-routes-action-proposals.js +43 -0
  344. package/dist/packages/runtime/service/server-routes-agents.d.ts +4 -0
  345. package/dist/packages/runtime/service/server-routes-agents.js +198 -0
  346. package/dist/packages/runtime/service/server-routes-auth.d.ts +33 -0
  347. package/dist/packages/runtime/service/server-routes-auth.js +138 -0
  348. package/dist/packages/runtime/service/server-routes-build-plans.d.ts +3 -0
  349. package/dist/packages/runtime/service/server-routes-build-plans.js +83 -0
  350. package/dist/packages/runtime/service/server-routes-discovery.d.ts +4 -0
  351. package/dist/packages/runtime/service/server-routes-discovery.js +196 -0
  352. package/dist/packages/runtime/service/server-routes-events.d.ts +5 -0
  353. package/dist/packages/runtime/service/server-routes-events.js +99 -0
  354. package/dist/packages/runtime/service/server-routes-project-context.d.ts +9 -0
  355. package/dist/packages/runtime/service/server-routes-project-context.js +192 -0
  356. package/dist/packages/runtime/service/server-routes-project-jobs.d.ts +9 -0
  357. package/dist/packages/runtime/service/server-routes-project-jobs.js +130 -0
  358. package/dist/packages/runtime/service/server-routes-project-runs.d.ts +14 -0
  359. package/dist/packages/runtime/service/server-routes-project-runs.js +85 -0
  360. package/dist/packages/runtime/service/server-routes-projects.d.ts +4 -0
  361. package/dist/packages/runtime/service/server-routes-projects.js +92 -0
  362. package/dist/packages/runtime/service/server-routes-runs.d.ts +3 -0
  363. package/dist/packages/runtime/service/server-routes-runs.js +112 -0
  364. package/dist/packages/runtime/service/server.d.ts +37 -0
  365. package/dist/packages/runtime/service/server.js +300 -0
  366. package/dist/packages/{engine → runtime/service}/service-registry.d.ts +5 -5
  367. package/dist/packages/{engine → runtime/service}/service-registry.js +7 -7
  368. package/dist/packages/runtime/verify/benchmark-run.d.ts +81 -0
  369. package/dist/packages/runtime/verify/benchmark-run.js +303 -0
  370. package/dist/packages/{engine → runtime}/verify/index.d.ts +2 -2
  371. package/dist/packages/{engine → runtime}/verify/index.js +1 -1
  372. package/dist/packages/{engine → runtime}/verify/lib/schema.d.ts +83 -16
  373. package/dist/packages/{engine → runtime}/verify/lib/schema.js +26 -18
  374. package/dist/packages/{engine → runtime}/verify/verify-execution.js +11 -11
  375. package/dist/packages/{engine → runtime}/verify/verify-paths.d.ts +4 -4
  376. package/dist/packages/runtime/verify/verify-paths.js +61 -0
  377. package/dist/packages/{engine → runtime}/verify/verify-sandbox.d.ts +1 -1
  378. package/dist/packages/runtime/verify/verify-sandbox.js +88 -0
  379. package/dist/packages/{engine → runtime}/verify/verify-specs.d.ts +2 -0
  380. package/dist/packages/{engine → runtime}/verify/verify-specs.js +5 -3
  381. package/dist/packages/runtime/verify/verify-targets.d.ts +5 -0
  382. package/dist/packages/{engine → runtime}/verify/verify-targets.js +12 -12
  383. package/dist/packages/runtime/verify/verify-types.js +1 -0
  384. package/dist/packages/{engine → runtime}/verify/verify.d.ts +1 -1
  385. package/dist/packages/{engine → runtime}/verify/verify.js +1 -1
  386. package/dist/packages/runtime/wire-schemas.d.ts +18 -0
  387. package/dist/packages/runtime/wire-schemas.js +27 -0
  388. package/package.json +39 -31
  389. package/public-repo/CONTRIBUTING.md +7 -16
  390. package/public-repo/README.md +175 -234
  391. package/public-repo/SECURITY.md +3 -4
  392. package/public-repo/build-plans/interf-default/README.md +19 -14
  393. package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +18 -11
  394. package/public-repo/build-plans/interf-default/build/stages/structure/SKILL.md +12 -5
  395. package/public-repo/build-plans/interf-default/build/stages/summarize/SKILL.md +16 -4
  396. package/public-repo/build-plans/interf-default/build-plan.json +34 -28
  397. package/public-repo/build-plans/interf-default/build-plan.schema.json +54 -32
  398. package/public-repo/build-plans/interf-default/improve/SKILL.md +3 -3
  399. package/public-repo/build-plans/interf-default/use/query/SKILL.md +17 -11
  400. package/public-repo/openapi/local-service.openapi.json +6803 -0
  401. package/public-repo/skills/interf/SKILL.md +460 -179
  402. package/dist/cli/commands/prep.d.ts +0 -2
  403. package/dist/cli/commands/prep.js +0 -240
  404. package/dist/cli/commands/test.d.ts +0 -10
  405. package/dist/cli/commands/test.js +0 -85
  406. package/dist/cli/commands/web.d.ts +0 -2
  407. package/dist/cli/commands/web.js +0 -286
  408. package/dist/interf-ui/404.html +0 -1
  409. package/dist/interf-ui/__next.__PAGE__.txt +0 -10
  410. package/dist/interf-ui/__next._full.txt +0 -20
  411. package/dist/interf-ui/__next._head.txt +0 -5
  412. package/dist/interf-ui/__next._index.txt +0 -5
  413. package/dist/interf-ui/__next._tree.txt +0 -5
  414. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_buildManifest.js +0 -11
  415. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_clientMiddlewareManifest.js +0 -1
  416. package/dist/interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6/_ssgManifest.js +0 -1
  417. package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +0 -3
  418. package/dist/interf-ui/_next/static/chunks/03~yq9q893hmn.js +0 -1
  419. package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +0 -1
  420. package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +0 -1
  421. package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +0 -1
  422. package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +0 -1
  423. package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +0 -1
  424. package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +0 -1
  425. package/dist/interf-ui/_next/static/chunks/0s77gt_o4jwtx.js +0 -1
  426. package/dist/interf-ui/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -5
  427. package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +0 -116
  428. package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +0 -31
  429. package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +0 -1
  430. package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +0 -1
  431. package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +0 -91
  432. package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +0 -5
  433. package/dist/interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js +0 -1
  434. package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +0 -1
  435. package/dist/interf-ui/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -1
  436. package/dist/interf-ui/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
  437. package/dist/interf-ui/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
  438. package/dist/interf-ui/_next/static/media/worker.102zas1s52_pf.js +0 -109
  439. package/dist/interf-ui/_not-found/__next._full.txt +0 -15
  440. package/dist/interf-ui/_not-found/__next._head.txt +0 -5
  441. package/dist/interf-ui/_not-found/__next._index.txt +0 -5
  442. package/dist/interf-ui/_not-found/__next._not-found.__PAGE__.txt +0 -5
  443. package/dist/interf-ui/_not-found/__next._not-found.txt +0 -5
  444. package/dist/interf-ui/_not-found/__next._tree.txt +0 -2
  445. package/dist/interf-ui/_not-found.html +0 -1
  446. package/dist/interf-ui/_not-found.txt +0 -15
  447. package/dist/interf-ui/index.html +0 -1
  448. package/dist/interf-ui/index.txt +0 -20
  449. package/dist/packages/contracts/lib/preparation-paths.d.ts +0 -117
  450. package/dist/packages/contracts/lib/preparation-paths.js +0 -177
  451. package/dist/packages/engine/action-definitions.d.ts +0 -407
  452. package/dist/packages/engine/action-definitions.js +0 -1158
  453. package/dist/packages/engine/action-values.d.ts +0 -1
  454. package/dist/packages/engine/action-values.js +0 -1
  455. package/dist/packages/engine/agents/lib/args.d.ts +0 -4
  456. package/dist/packages/engine/agents/lib/args.js +0 -52
  457. package/dist/packages/engine/agents/lib/chart-guidance.d.ts +0 -1
  458. package/dist/packages/engine/agents/lib/chart-guidance.js +0 -8
  459. package/dist/packages/engine/agents/lib/constants.js +0 -28
  460. package/dist/packages/engine/agents/lib/schema.d.ts +0 -8
  461. package/dist/packages/engine/agents/lib/schema.js +0 -7
  462. package/dist/packages/engine/agents/lib/shells.d.ts +0 -74
  463. package/dist/packages/engine/agents/lib/shells.js +0 -1052
  464. package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +0 -3
  465. package/dist/packages/engine/build/artifact-counts.d.ts +0 -1
  466. package/dist/packages/engine/build/billing-events.d.ts +0 -89
  467. package/dist/packages/engine/build/build-pipeline.js +0 -175
  468. package/dist/packages/engine/build/build-plan-runs.d.ts +0 -14
  469. package/dist/packages/engine/build/build-plan-runs.js +0 -31
  470. package/dist/packages/engine/build/build-stage-plan.d.ts +0 -16
  471. package/dist/packages/engine/build/build-stage-runner.js +0 -94
  472. package/dist/packages/engine/build/build-target.js +0 -16
  473. package/dist/packages/engine/build/check-evaluator.js +0 -298
  474. package/dist/packages/engine/build/reset.d.ts +0 -2
  475. package/dist/packages/engine/build/reset.js +0 -74
  476. package/dist/packages/engine/build/runtime-inventory.d.ts +0 -7
  477. package/dist/packages/engine/build/runtime-runs.d.ts +0 -10
  478. package/dist/packages/engine/build/runtime-runs.js +0 -224
  479. package/dist/packages/engine/build/runtime.d.ts +0 -5
  480. package/dist/packages/engine/build/runtime.js +0 -4
  481. package/dist/packages/engine/build/source-files.d.ts +0 -46
  482. package/dist/packages/engine/build/source-files.js +0 -149
  483. package/dist/packages/engine/build/state-artifacts.d.ts +0 -9
  484. package/dist/packages/engine/build/state-artifacts.js +0 -14
  485. package/dist/packages/engine/build/state-health.d.ts +0 -4
  486. package/dist/packages/engine/build/state-io.d.ts +0 -11
  487. package/dist/packages/engine/build/state-io.js +0 -82
  488. package/dist/packages/engine/build/state-paths.js +0 -16
  489. package/dist/packages/engine/build/state-view.d.ts +0 -5
  490. package/dist/packages/engine/build/state.d.ts +0 -7
  491. package/dist/packages/engine/build/state.js +0 -12
  492. package/dist/packages/engine/build/validate-helpers.d.ts +0 -12
  493. package/dist/packages/engine/build/validate-helpers.js +0 -41
  494. package/dist/packages/engine/build/verifiable-context-paths.d.ts +0 -47
  495. package/dist/packages/engine/build/verifiable-context-paths.js +0 -121
  496. package/dist/packages/engine/build/verifiable-context-schema.d.ts +0 -21
  497. package/dist/packages/engine/build/verifiable-context-schema.js +0 -126
  498. package/dist/packages/engine/cloud-seams.d.ts +0 -115
  499. package/dist/packages/engine/cloud-seams.js +0 -84
  500. package/dist/packages/engine/index.d.ts +0 -22
  501. package/dist/packages/engine/index.js +0 -15
  502. package/dist/packages/engine/instance-paths.d.ts +0 -106
  503. package/dist/packages/engine/instance-paths.js +0 -171
  504. package/dist/packages/engine/lib/schema.d.ts +0 -6304
  505. package/dist/packages/engine/lib/schema.js +0 -730
  506. package/dist/packages/engine/preparation-store.d.ts +0 -105
  507. package/dist/packages/engine/preparation-store.js +0 -213
  508. package/dist/packages/engine/readiness-check-draft.d.ts +0 -20
  509. package/dist/packages/engine/readiness-check-draft.js +0 -111
  510. package/dist/packages/engine/requested-artifacts.d.ts +0 -5
  511. package/dist/packages/engine/routes.d.ts +0 -85
  512. package/dist/packages/engine/routes.js +0 -99
  513. package/dist/packages/engine/runtime-caches.d.ts +0 -76
  514. package/dist/packages/engine/runtime-proposal-helpers.d.ts +0 -35
  515. package/dist/packages/engine/runtime-proposal-helpers.js +0 -247
  516. package/dist/packages/engine/runtime.d.ts +0 -371
  517. package/dist/packages/engine/runtime.js +0 -2463
  518. package/dist/packages/engine/server.d.ts +0 -58
  519. package/dist/packages/engine/server.js +0 -1399
  520. package/dist/packages/engine/verify/readiness-check-run.d.ts +0 -82
  521. package/dist/packages/engine/verify/readiness-check-run.js +0 -265
  522. package/dist/packages/engine/verify/verify-paths.js +0 -61
  523. package/dist/packages/engine/verify/verify-sandbox.js +0 -88
  524. package/dist/packages/engine/verify/verify-targets.d.ts +0 -5
  525. package/dist/packages/engine/wire-schemas.d.ts +0 -547
  526. package/dist/packages/engine/wire-schemas.js +0 -59
  527. package/dist/packages/project/index.d.ts +0 -9
  528. package/dist/packages/project/interf-bootstrap.d.ts +0 -1
  529. package/dist/packages/project/interf-bootstrap.js +0 -1
  530. package/dist/packages/project/interf-scaffold.d.ts +0 -3
  531. package/dist/packages/project/interf-scaffold.js +0 -136
  532. package/dist/packages/project/interf.d.ts +0 -4
  533. package/dist/packages/project/interf.js +0 -3
  534. package/dist/packages/project/lib/schema.d.ts +0 -328
  535. package/dist/packages/project/lib/schema.js +0 -136
  536. package/dist/packages/project/preparation-entries.d.ts +0 -11
  537. package/dist/packages/project/preparation-entries.js +0 -49
  538. package/dist/packages/project/source-config.d.ts +0 -46
  539. package/dist/packages/project/source-config.js +0 -394
  540. package/dist/packages/project/source-folders.d.ts +0 -11
  541. package/public-repo/plugins/README.md +0 -9
  542. package/public-repo/plugins/interf/.claude-plugin/plugin.json +0 -21
  543. package/public-repo/plugins/interf/.mcp.json +0 -12
  544. package/public-repo/plugins/interf/README.md +0 -32
  545. package/public-repo/plugins/interf/skills/interf/SKILL.md +0 -376
  546. /package/dist/packages/{engine/agents/lib/types.js → runtime/actions/fields.js} +0 -0
  547. /package/dist/packages/{engine → runtime}/agents/lib/agents.d.ts +0 -0
  548. /package/dist/packages/{engine → runtime}/agents/lib/agents.js +0 -0
  549. /package/dist/packages/{engine → runtime}/agents/lib/execution-profile.d.ts +0 -0
  550. /package/dist/packages/{engine → runtime}/agents/lib/execution.d.ts +0 -0
  551. /package/dist/packages/{engine → runtime}/agents/lib/executors.d.ts +0 -0
  552. /package/dist/packages/{engine → runtime}/agents/lib/executors.js +0 -0
  553. /package/dist/packages/{engine → runtime}/agents/lib/logs.d.ts +0 -0
  554. /package/dist/packages/{engine → runtime}/agents/lib/logs.js +0 -0
  555. /package/dist/packages/{engine → runtime}/agents/lib/preflight.d.ts +0 -0
  556. /package/dist/packages/{engine → runtime}/agents/lib/render.d.ts +0 -0
  557. /package/dist/packages/{engine → runtime}/agents/lib/status.d.ts +0 -0
  558. /package/dist/packages/{engine → runtime}/agents/lib/status.js +0 -0
  559. /package/dist/packages/{engine → runtime}/agents/lib/types.d.ts +0 -0
  560. /package/dist/packages/{engine/build/runtime-types.js → runtime/agents/lib/types.js} +0 -0
  561. /package/dist/packages/{engine/verify/verify-types.js → runtime/agents/providers/types.js} +0 -0
  562. /package/dist/packages/{engine → runtime}/agents/role-router.d.ts +0 -0
  563. /package/dist/packages/{engine → runtime}/build/build-execution.d.ts +0 -0
  564. /package/dist/packages/{engine → runtime}/build/build-execution.js +0 -0
  565. /package/dist/packages/{engine → runtime}/build/runtime-contracts.d.ts +0 -0
  566. /package/dist/packages/{engine → runtime}/build/runtime-paths.d.ts +0 -0
  567. /package/dist/packages/{engine → runtime}/build/runtime-prompt.d.ts +0 -0
  568. /package/dist/packages/{engine → runtime}/execution/adapters.d.ts +0 -0
  569. /package/dist/packages/{engine → runtime}/execution/adapters.js +0 -0
  570. /package/dist/packages/{engine → runtime}/execution/events.d.ts +0 -0
  571. /package/dist/packages/{engine → runtime}/execution/events.js +0 -0
  572. /package/dist/packages/{engine → runtime}/verify/verify-execution.d.ts +0 -0
  573. /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.d.ts +0 -0
  574. /package/dist/packages/{engine → runtime}/verify/verify-profile-presets.js +0 -0
  575. /package/dist/packages/{engine → runtime}/verify/verify-types.d.ts +0 -0
@@ -0,0 +1,1490 @@
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: "createProject";
98
+ readonly method: "POST";
99
+ readonly path: "/v1/projects";
100
+ readonly tags: ["Projects"];
101
+ readonly summary: "Create Project";
102
+ readonly description: "Create a Project bound to one Source. Project ids may be generated by clients.";
103
+ readonly visibility: "app";
104
+ readonly workflow_step: 1;
105
+ readonly request_schema: z.ZodObject<{
106
+ id: z.ZodString;
107
+ source: z.ZodObject<{
108
+ kind: z.ZodLiteral<"local-folder">;
109
+ locator: z.ZodString;
110
+ }, z.core.$strict>;
111
+ build_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ }, z.core.$strict>;
113
+ readonly response_schema: z.ZodObject<{
114
+ id: z.ZodString;
115
+ project_id: z.ZodOptional<z.ZodString>;
116
+ source: z.ZodObject<{
117
+ kind: z.ZodLiteral<"local-folder">;
118
+ locator: z.ZodString;
119
+ }, z.core.$strict>;
120
+ build_plan_id: z.ZodNullable<z.ZodString>;
121
+ config_path: z.ZodString;
122
+ context_graph: z.ZodObject<{
123
+ kind: z.ZodEnum<{
124
+ "local-path": "local-path";
125
+ "remote-url": "remote-url";
126
+ "api-served": "api-served";
127
+ }>;
128
+ value: z.ZodString;
129
+ }, z.core.$strict>;
130
+ context_graph_path: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strict>;
132
+ readonly success_status: 201;
133
+ }, {
134
+ readonly id: "getProject";
135
+ readonly method: "GET";
136
+ readonly path: "/v1/projects/{project_id}";
137
+ readonly tags: ["Projects"];
138
+ readonly summary: "Get Project";
139
+ readonly description: "Read one Project to confirm its Source binding, selected Build Plan, readiness, and latest Context Graph.";
140
+ readonly visibility: "app";
141
+ readonly parameters: [ServiceOperationParameter];
142
+ readonly response_schema: z.ZodObject<{
143
+ id: z.ZodString;
144
+ project_id: z.ZodOptional<z.ZodString>;
145
+ source: z.ZodObject<{
146
+ kind: z.ZodLiteral<"local-folder">;
147
+ locator: z.ZodString;
148
+ }, z.core.$strict>;
149
+ build_plan_id: z.ZodNullable<z.ZodString>;
150
+ config_path: z.ZodString;
151
+ context_graph: z.ZodObject<{
152
+ kind: z.ZodEnum<{
153
+ "local-path": "local-path";
154
+ "remote-url": "remote-url";
155
+ "api-served": "api-served";
156
+ }>;
157
+ value: z.ZodString;
158
+ }, z.core.$strict>;
159
+ context_graph_path: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strict>;
161
+ readonly success_status: 200;
162
+ }, {
163
+ readonly id: "prepareBuildPlan";
164
+ readonly method: "POST";
165
+ readonly path: "/v1/projects/{project_id}/build-plan-drafts";
166
+ readonly tags: ["Build Plans"];
167
+ readonly summary: "Prepare Build Plan";
168
+ readonly description: "Draft a Build Plan from the approved intent, Context Checks, and requested Artifacts. This does not run a Build.";
169
+ readonly visibility: "app";
170
+ readonly workflow_step: 2;
171
+ readonly parameters: [ServiceOperationParameter];
172
+ readonly request_schema: z.ZodObject<{
173
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
174
+ id: z.ZodOptional<z.ZodString>;
175
+ label: z.ZodString;
176
+ description: z.ZodOptional<z.ZodString>;
177
+ evidence: z.ZodOptional<z.ZodString>;
178
+ evidence_expectation: z.ZodOptional<z.ZodString>;
179
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
180
+ required: z.ZodDefault<z.ZodBoolean>;
181
+ }, z.core.$strict>>>;
182
+ label: z.ZodString;
183
+ context_checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
+ id: z.ZodOptional<z.ZodString>;
185
+ label: z.ZodString;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ evidence: z.ZodOptional<z.ZodString>;
188
+ evidence_expectation: z.ZodOptional<z.ZodString>;
189
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
190
+ required: z.ZodDefault<z.ZodBoolean>;
191
+ }, z.core.$strict>>>;
192
+ intent: z.ZodString;
193
+ requested_artifacts: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
194
+ id: z.ZodOptional<z.ZodString>;
195
+ title: z.ZodString;
196
+ purpose: z.ZodOptional<z.ZodString>;
197
+ description: z.ZodOptional<z.ZodString>;
198
+ checks: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
199
+ label: z.ZodString;
200
+ }, z.core.$strict>]>>>;
201
+ output: z.ZodOptional<z.ZodObject<{
202
+ path: z.ZodOptional<z.ZodString>;
203
+ shape: z.ZodOptional<z.ZodObject<{
204
+ kind: z.ZodLiteral<"path">;
205
+ path: z.ZodString;
206
+ artifact_kind: z.ZodEnum<{
207
+ file: "file";
208
+ directory: "directory";
209
+ }>;
210
+ }, z.core.$strict>>;
211
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ kind: z.ZodEnum<{
214
+ file_exists: "file_exists";
215
+ source_manifest_valid: "source_manifest_valid";
216
+ min_file_count: "min_file_count";
217
+ min_file_count_matches_source: "min_file_count_matches_source";
218
+ source_summary_folders: "source_summary_folders";
219
+ source_page_coverage: "source_page_coverage";
220
+ frontmatter_valid: "frontmatter_valid";
221
+ frontmatter_required_keys: "frontmatter_required_keys";
222
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
223
+ source_refs_required: "source_refs_required";
224
+ wikilinks_valid: "wikilinks_valid";
225
+ must_not_contain: "must_not_contain";
226
+ must_contain: "must_contain";
227
+ qa_match: "qa_match";
228
+ }>;
229
+ description: z.ZodOptional<z.ZodString>;
230
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
231
+ required: z.ZodDefault<z.ZodBoolean>;
232
+ }, z.core.$strict>>>;
233
+ stage_hint: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>>>>;
236
+ user_prep_instructions: z.ZodOptional<z.ZodString>;
237
+ source_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
238
+ summary: z.ZodOptional<z.ZodString>;
239
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
240
+ name: z.ZodOptional<z.ZodString>;
241
+ path: z.ZodOptional<z.ZodString>;
242
+ kind: z.ZodOptional<z.ZodString>;
243
+ page_count: z.ZodOptional<z.ZodNumber>;
244
+ note: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strict>>>;
246
+ observations: z.ZodDefault<z.ZodArray<z.ZodString>>;
247
+ limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
248
+ }, z.core.$strict>>>;
249
+ artifact_requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ id: z.ZodString;
251
+ description: z.ZodOptional<z.ZodString>;
252
+ shape: z.ZodObject<{
253
+ kind: z.ZodLiteral<"path">;
254
+ path: z.ZodString;
255
+ artifact_kind: z.ZodEnum<{
256
+ file: "file";
257
+ directory: "directory";
258
+ }>;
259
+ }, z.core.$strict>;
260
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ kind: z.ZodEnum<{
263
+ file_exists: "file_exists";
264
+ source_manifest_valid: "source_manifest_valid";
265
+ min_file_count: "min_file_count";
266
+ min_file_count_matches_source: "min_file_count_matches_source";
267
+ source_summary_folders: "source_summary_folders";
268
+ source_page_coverage: "source_page_coverage";
269
+ frontmatter_valid: "frontmatter_valid";
270
+ frontmatter_required_keys: "frontmatter_required_keys";
271
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
272
+ source_refs_required: "source_refs_required";
273
+ wikilinks_valid: "wikilinks_valid";
274
+ must_not_contain: "must_not_contain";
275
+ must_contain: "must_contain";
276
+ qa_match: "qa_match";
277
+ }>;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
280
+ required: z.ZodDefault<z.ZodBoolean>;
281
+ }, z.core.$strict>>>;
282
+ stage_hint: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$strict>>>;
284
+ build_plan_id: z.ZodString;
285
+ hint: z.ZodOptional<z.ZodString>;
286
+ base_build_plan_id: z.ZodOptional<z.ZodString>;
287
+ reference_build_plan_id: z.ZodOptional<z.ZodString>;
288
+ }, z.core.$strict>;
289
+ readonly response_schema: z.ZodObject<{
290
+ kind: z.ZodLiteral<"interf-local-job-run">;
291
+ version: z.ZodLiteral<1>;
292
+ run_id: z.ZodString;
293
+ job_type: z.ZodEnum<{
294
+ "benchmark-question-draft": "benchmark-question-draft";
295
+ "build-plan-draft": "build-plan-draft";
296
+ "build-plan-improvement": "build-plan-improvement";
297
+ }>;
298
+ status: z.ZodEnum<{
299
+ running: "running";
300
+ failed: "failed";
301
+ cancelled: "cancelled";
302
+ queued: "queued";
303
+ succeeded: "succeeded";
304
+ }>;
305
+ title: z.ZodString;
306
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ source_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ output_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ agent: z.ZodOptional<z.ZodNullable<z.ZodObject<{
311
+ name: z.ZodString;
312
+ display_name: z.ZodString;
313
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ }, z.core.$strict>>>;
315
+ created_at: z.ZodString;
316
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ steps: z.ZodDefault<z.ZodArray<z.ZodObject<{
319
+ id: z.ZodString;
320
+ label: z.ZodString;
321
+ status: z.ZodEnum<{
322
+ running: "running";
323
+ failed: "failed";
324
+ cancelled: "cancelled";
325
+ queued: "queued";
326
+ succeeded: "succeeded";
327
+ }>;
328
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
332
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
333
+ }, z.core.$strict>>>;
334
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
335
+ event_id: z.ZodString;
336
+ run_id: z.ZodString;
337
+ timestamp: z.ZodString;
338
+ type: z.ZodEnum<{
339
+ "artifact.written": "artifact.written";
340
+ "log.appended": "log.appended";
341
+ "job.started": "job.started";
342
+ "step.started": "step.started";
343
+ "step.completed": "step.completed";
344
+ "step.failed": "step.failed";
345
+ "job.completed": "job.completed";
346
+ "job.failed": "job.failed";
347
+ }>;
348
+ step_id: z.ZodOptional<z.ZodString>;
349
+ message: z.ZodOptional<z.ZodString>;
350
+ artifact: z.ZodOptional<z.ZodObject<{
351
+ path: z.ZodString;
352
+ role: z.ZodEnum<{
353
+ runtime: "runtime";
354
+ output: "output";
355
+ source: "source";
356
+ evidence: "evidence";
357
+ benchmark: "benchmark";
358
+ }>;
359
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ label: z.ZodOptional<z.ZodString>;
361
+ sha256: z.ZodOptional<z.ZodString>;
362
+ }, z.core.$strict>>;
363
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
364
+ output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
365
+ }, z.core.$strict>>>;
366
+ result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
367
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ }, z.core.$strict>;
369
+ readonly success_status: 202;
370
+ }, {
371
+ readonly id: "runBuild";
372
+ readonly method: "POST";
373
+ readonly path: "/v1/projects/{project_id}/build-runs";
374
+ readonly tags: ["Build Runs"];
375
+ readonly summary: "Run Build";
376
+ readonly description: "Run the selected Build Plan and create an isolated Context Graph folder. Use only after Build Plan approval or explicit autonomy.";
377
+ readonly visibility: "app";
378
+ readonly workflow_step: 3;
379
+ readonly parameters: [ServiceOperationParameter];
380
+ readonly request_schema: z.ZodDefault<z.ZodObject<{
381
+ max_attempts: z.ZodOptional<z.ZodNumber>;
382
+ max_loops: z.ZodOptional<z.ZodNumber>;
383
+ preserve_stage_shells: z.ZodOptional<z.ZodEnum<{
384
+ "on-failure": "on-failure";
385
+ always: "always";
386
+ }>>;
387
+ }, z.core.$strict>>;
388
+ readonly response_schema: z.ZodObject<{
389
+ run: z.ZodObject<{
390
+ kind: z.ZodLiteral<"interf-build-run">;
391
+ version: z.ZodLiteral<1>;
392
+ run_id: z.ZodString;
393
+ status: z.ZodEnum<{
394
+ running: "running";
395
+ failed: "failed";
396
+ cancelled: "cancelled";
397
+ queued: "queued";
398
+ succeeded: "succeeded";
399
+ }>;
400
+ project: z.ZodString;
401
+ build_plan: z.ZodString;
402
+ backend: z.ZodEnum<{
403
+ native: "native";
404
+ }>;
405
+ source_path: z.ZodString;
406
+ context_graph_path: z.ZodString;
407
+ created_at: z.ZodString;
408
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ stages: z.ZodDefault<z.ZodArray<z.ZodObject<{
411
+ run_id: z.ZodString;
412
+ stage_id: z.ZodString;
413
+ stage_label: z.ZodOptional<z.ZodString>;
414
+ stage_index: z.ZodOptional<z.ZodNumber>;
415
+ stage_total: z.ZodOptional<z.ZodNumber>;
416
+ status: z.ZodEnum<{
417
+ running: "running";
418
+ failed: "failed";
419
+ queued: "queued";
420
+ succeeded: "succeeded";
421
+ }>;
422
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
425
+ contract: z.ZodOptional<z.ZodObject<{
426
+ stage_label: z.ZodOptional<z.ZodString>;
427
+ stage_index: z.ZodOptional<z.ZodNumber>;
428
+ stage_total: z.ZodOptional<z.ZodNumber>;
429
+ reads: z.ZodDefault<z.ZodArray<z.ZodString>>;
430
+ writes: z.ZodDefault<z.ZodArray<z.ZodString>>;
431
+ }, z.core.$strict>>;
432
+ executor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
433
+ kind: z.ZodEnum<{
434
+ "local-agent": "local-agent";
435
+ "connected-provider": "connected-provider";
436
+ managed: "managed";
437
+ }>;
438
+ name: z.ZodString;
439
+ display_name: z.ZodString;
440
+ command: z.ZodNullable<z.ZodString>;
441
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
+ profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
445
+ }, z.core.$strip>>>;
446
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
+ path: z.ZodString;
448
+ role: z.ZodEnum<{
449
+ runtime: "runtime";
450
+ output: "output";
451
+ source: "source";
452
+ evidence: "evidence";
453
+ benchmark: "benchmark";
454
+ }>;
455
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
+ label: z.ZodOptional<z.ZodString>;
457
+ sha256: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strict>>>;
459
+ logs: z.ZodOptional<z.ZodObject<{
460
+ prompt_path: z.ZodOptional<z.ZodString>;
461
+ event_stream_path: z.ZodOptional<z.ZodString>;
462
+ status_path: z.ZodOptional<z.ZodString>;
463
+ contract_path: z.ZodOptional<z.ZodString>;
464
+ evidence_path: z.ZodOptional<z.ZodString>;
465
+ }, z.core.$strict>>;
466
+ latest_evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
467
+ id: z.ZodString;
468
+ run_id: z.ZodString;
469
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ generated_at: z.ZodString;
471
+ summary: z.ZodString;
472
+ files_processed: z.ZodOptional<z.ZodNumber>;
473
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
474
+ path: z.ZodString;
475
+ role: z.ZodEnum<{
476
+ runtime: "runtime";
477
+ output: "output";
478
+ source: "source";
479
+ evidence: "evidence";
480
+ benchmark: "benchmark";
481
+ }>;
482
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ label: z.ZodOptional<z.ZodString>;
484
+ sha256: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strict>>>;
486
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
487
+ id: z.ZodString;
488
+ label: z.ZodString;
489
+ ok: z.ZodBoolean;
490
+ detail: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strict>>>;
492
+ }, z.core.$strict>>>;
493
+ failure: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
+ }, z.core.$strict>>>;
495
+ events: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
496
+ event_id: z.ZodString;
497
+ run_id: z.ZodString;
498
+ timestamp: z.ZodString;
499
+ type: z.ZodLiteral<"run.started">;
500
+ project: z.ZodString;
501
+ build_plan: z.ZodOptional<z.ZodString>;
502
+ context_graph_path: z.ZodOptional<z.ZodString>;
503
+ backend: z.ZodEnum<{
504
+ native: "native";
505
+ }>;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ event_id: z.ZodString;
508
+ run_id: z.ZodString;
509
+ timestamp: z.ZodString;
510
+ type: z.ZodLiteral<"stage.started">;
511
+ stage_id: z.ZodString;
512
+ stage_index: z.ZodOptional<z.ZodNumber>;
513
+ stage_total: z.ZodOptional<z.ZodNumber>;
514
+ logs: z.ZodOptional<z.ZodObject<{
515
+ prompt_path: z.ZodOptional<z.ZodString>;
516
+ event_stream_path: z.ZodOptional<z.ZodString>;
517
+ status_path: z.ZodOptional<z.ZodString>;
518
+ contract_path: z.ZodOptional<z.ZodString>;
519
+ evidence_path: z.ZodOptional<z.ZodString>;
520
+ }, z.core.$strict>>;
521
+ }, z.core.$strict>, z.ZodObject<{
522
+ event_id: z.ZodString;
523
+ run_id: z.ZodString;
524
+ timestamp: z.ZodString;
525
+ type: z.ZodLiteral<"file.processed">;
526
+ stage_id: z.ZodString;
527
+ path: z.ZodString;
528
+ }, z.core.$strict>, z.ZodObject<{
529
+ event_id: z.ZodString;
530
+ run_id: z.ZodString;
531
+ timestamp: z.ZodString;
532
+ type: z.ZodLiteral<"artifact.written">;
533
+ stage_id: z.ZodString;
534
+ artifact: z.ZodObject<{
535
+ path: z.ZodString;
536
+ role: z.ZodEnum<{
537
+ runtime: "runtime";
538
+ output: "output";
539
+ source: "source";
540
+ evidence: "evidence";
541
+ benchmark: "benchmark";
542
+ }>;
543
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ label: z.ZodOptional<z.ZodString>;
545
+ sha256: z.ZodOptional<z.ZodString>;
546
+ }, z.core.$strict>;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ event_id: z.ZodString;
549
+ run_id: z.ZodString;
550
+ timestamp: z.ZodString;
551
+ type: z.ZodLiteral<"evidence.updated">;
552
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
+ evidence: z.ZodObject<{
554
+ id: z.ZodString;
555
+ run_id: z.ZodString;
556
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ generated_at: z.ZodString;
558
+ summary: z.ZodString;
559
+ files_processed: z.ZodOptional<z.ZodNumber>;
560
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
561
+ path: z.ZodString;
562
+ role: z.ZodEnum<{
563
+ runtime: "runtime";
564
+ output: "output";
565
+ source: "source";
566
+ evidence: "evidence";
567
+ benchmark: "benchmark";
568
+ }>;
569
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
570
+ label: z.ZodOptional<z.ZodString>;
571
+ sha256: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strict>>>;
573
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
574
+ id: z.ZodString;
575
+ label: z.ZodString;
576
+ ok: z.ZodBoolean;
577
+ detail: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strict>>>;
579
+ }, z.core.$strict>;
580
+ }, z.core.$strict>, z.ZodObject<{
581
+ event_id: z.ZodString;
582
+ run_id: z.ZodString;
583
+ timestamp: z.ZodString;
584
+ type: z.ZodLiteral<"log.appended">;
585
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
+ stream: z.ZodEnum<{
587
+ status: "status";
588
+ trace: "trace";
589
+ system: "system";
590
+ }>;
591
+ message: z.ZodString;
592
+ }, z.core.$strict>, z.ZodObject<{
593
+ event_id: z.ZodString;
594
+ run_id: z.ZodString;
595
+ timestamp: z.ZodString;
596
+ type: z.ZodLiteral<"stage.passed">;
597
+ stage_id: z.ZodString;
598
+ summary: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ event_id: z.ZodString;
601
+ run_id: z.ZodString;
602
+ timestamp: z.ZodString;
603
+ type: z.ZodLiteral<"stage.failed">;
604
+ stage_id: z.ZodString;
605
+ error: z.ZodString;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ event_id: z.ZodString;
608
+ run_id: z.ZodString;
609
+ timestamp: z.ZodString;
610
+ type: z.ZodLiteral<"run.completed">;
611
+ summary: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strict>, z.ZodObject<{
613
+ event_id: z.ZodString;
614
+ run_id: z.ZodString;
615
+ timestamp: z.ZodString;
616
+ type: z.ZodLiteral<"run.failed">;
617
+ error: z.ZodString;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ event_id: z.ZodString;
620
+ run_id: z.ZodString;
621
+ timestamp: z.ZodString;
622
+ type: z.ZodLiteral<"run.cancelled">;
623
+ reason: z.ZodOptional<z.ZodString>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ event_id: z.ZodString;
626
+ run_id: z.ZodString;
627
+ timestamp: z.ZodString;
628
+ type: z.ZodLiteral<"checks.evaluated">;
629
+ passed: z.ZodNumber;
630
+ total: z.ZodNumber;
631
+ target: z.ZodOptional<z.ZodEnum<{
632
+ "source-files": "source-files";
633
+ "context-graph": "context-graph";
634
+ }>>;
635
+ checks_fingerprint: z.ZodOptional<z.ZodString>;
636
+ stale: z.ZodOptional<z.ZodBoolean>;
637
+ test_run_id: z.ZodOptional<z.ZodString>;
638
+ }, z.core.$strict>, z.ZodObject<{
639
+ event_id: z.ZodString;
640
+ run_id: z.ZodString;
641
+ timestamp: z.ZodString;
642
+ type: z.ZodLiteral<"readiness.updated">;
643
+ project: z.ZodString;
644
+ readiness: z.ZodObject<{
645
+ kind: z.ZodLiteral<"interf-readiness-state">;
646
+ version: z.ZodLiteral<1>;
647
+ generated_at: z.ZodString;
648
+ project: z.ZodString;
649
+ status: z.ZodEnum<{
650
+ failed: "failed";
651
+ ready: "ready";
652
+ "not-configured": "not-configured";
653
+ "not-built": "not-built";
654
+ building: "building";
655
+ built: "built";
656
+ checking: "checking";
657
+ "not-ready": "not-ready";
658
+ stale: "stale";
659
+ }>;
660
+ ready: z.ZodBoolean;
661
+ summary: z.ZodString;
662
+ context_graph_path: z.ZodNullable<z.ZodString>;
663
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
664
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
+ build: z.ZodNullable<z.ZodObject<{
666
+ gate: z.ZodEnum<{
667
+ "context-graph": "context-graph";
668
+ "project-config": "project-config";
669
+ "build-run": "build-run";
670
+ "artifact-diagnostics": "artifact-diagnostics";
671
+ "context-checks": "context-checks";
672
+ benchmarks: "benchmarks";
673
+ "benchmarks-current": "benchmarks-current";
674
+ }>;
675
+ ok: z.ZodBoolean;
676
+ status: z.ZodOptional<z.ZodEnum<{
677
+ failed: "failed";
678
+ ready: "ready";
679
+ "not-configured": "not-configured";
680
+ "not-built": "not-built";
681
+ building: "building";
682
+ built: "built";
683
+ checking: "checking";
684
+ "not-ready": "not-ready";
685
+ stale: "stale";
686
+ }>>;
687
+ summary: z.ZodString;
688
+ detail: z.ZodOptional<z.ZodString>;
689
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ }, z.core.$strict>>;
692
+ check_results: z.ZodObject<{
693
+ configured: z.ZodNumber;
694
+ fingerprint: z.ZodNullable<z.ZodString>;
695
+ source_files: z.ZodNullable<z.ZodObject<{
696
+ passed: z.ZodNumber;
697
+ total: z.ZodNumber;
698
+ pass_rate: z.ZodNullable<z.ZodNumber>;
699
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
+ stale: z.ZodDefault<z.ZodBoolean>;
701
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ }, z.core.$strict>>;
704
+ context_graph: z.ZodNullable<z.ZodObject<{
705
+ passed: z.ZodNumber;
706
+ total: z.ZodNumber;
707
+ pass_rate: z.ZodNullable<z.ZodNumber>;
708
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
+ stale: z.ZodDefault<z.ZodBoolean>;
710
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
+ }, z.core.$strict>>;
713
+ }, z.core.$strict>;
714
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
715
+ gate: z.ZodEnum<{
716
+ "context-graph": "context-graph";
717
+ "project-config": "project-config";
718
+ "build-run": "build-run";
719
+ "artifact-diagnostics": "artifact-diagnostics";
720
+ "context-checks": "context-checks";
721
+ benchmarks: "benchmarks";
722
+ "benchmarks-current": "benchmarks-current";
723
+ }>;
724
+ ok: z.ZodBoolean;
725
+ status: z.ZodOptional<z.ZodEnum<{
726
+ failed: "failed";
727
+ ready: "ready";
728
+ "not-configured": "not-configured";
729
+ "not-built": "not-built";
730
+ building: "building";
731
+ built: "built";
732
+ checking: "checking";
733
+ "not-ready": "not-ready";
734
+ stale: "stale";
735
+ }>>;
736
+ summary: z.ZodString;
737
+ detail: z.ZodOptional<z.ZodString>;
738
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
739
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
740
+ }, z.core.$strict>>>;
741
+ }, z.core.$strict>;
742
+ }, z.core.$strict>], "type">>>;
743
+ latest_evidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
744
+ id: z.ZodString;
745
+ run_id: z.ZodString;
746
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ generated_at: z.ZodString;
748
+ summary: z.ZodString;
749
+ files_processed: z.ZodOptional<z.ZodNumber>;
750
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
751
+ path: z.ZodString;
752
+ role: z.ZodEnum<{
753
+ runtime: "runtime";
754
+ output: "output";
755
+ source: "source";
756
+ evidence: "evidence";
757
+ benchmark: "benchmark";
758
+ }>;
759
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
+ label: z.ZodOptional<z.ZodString>;
761
+ sha256: z.ZodOptional<z.ZodString>;
762
+ }, z.core.$strict>>>;
763
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
764
+ id: z.ZodString;
765
+ label: z.ZodString;
766
+ ok: z.ZodBoolean;
767
+ detail: z.ZodOptional<z.ZodString>;
768
+ }, z.core.$strict>>>;
769
+ }, z.core.$strict>>>;
770
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
771
+ kind: z.ZodLiteral<"interf-readiness-state">;
772
+ version: z.ZodLiteral<1>;
773
+ generated_at: z.ZodString;
774
+ project: z.ZodString;
775
+ status: z.ZodEnum<{
776
+ failed: "failed";
777
+ ready: "ready";
778
+ "not-configured": "not-configured";
779
+ "not-built": "not-built";
780
+ building: "building";
781
+ built: "built";
782
+ checking: "checking";
783
+ "not-ready": "not-ready";
784
+ stale: "stale";
785
+ }>;
786
+ ready: z.ZodBoolean;
787
+ summary: z.ZodString;
788
+ context_graph_path: z.ZodNullable<z.ZodString>;
789
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
+ build: z.ZodNullable<z.ZodObject<{
792
+ gate: z.ZodEnum<{
793
+ "context-graph": "context-graph";
794
+ "project-config": "project-config";
795
+ "build-run": "build-run";
796
+ "artifact-diagnostics": "artifact-diagnostics";
797
+ "context-checks": "context-checks";
798
+ benchmarks: "benchmarks";
799
+ "benchmarks-current": "benchmarks-current";
800
+ }>;
801
+ ok: z.ZodBoolean;
802
+ status: z.ZodOptional<z.ZodEnum<{
803
+ failed: "failed";
804
+ ready: "ready";
805
+ "not-configured": "not-configured";
806
+ "not-built": "not-built";
807
+ building: "building";
808
+ built: "built";
809
+ checking: "checking";
810
+ "not-ready": "not-ready";
811
+ stale: "stale";
812
+ }>>;
813
+ summary: z.ZodString;
814
+ detail: z.ZodOptional<z.ZodString>;
815
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
816
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
+ }, z.core.$strict>>;
818
+ check_results: z.ZodObject<{
819
+ configured: z.ZodNumber;
820
+ fingerprint: z.ZodNullable<z.ZodString>;
821
+ source_files: z.ZodNullable<z.ZodObject<{
822
+ passed: z.ZodNumber;
823
+ total: z.ZodNumber;
824
+ pass_rate: z.ZodNullable<z.ZodNumber>;
825
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
+ stale: z.ZodDefault<z.ZodBoolean>;
827
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
+ }, z.core.$strict>>;
830
+ context_graph: z.ZodNullable<z.ZodObject<{
831
+ passed: z.ZodNumber;
832
+ total: z.ZodNumber;
833
+ pass_rate: z.ZodNullable<z.ZodNumber>;
834
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ stale: z.ZodDefault<z.ZodBoolean>;
836
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ }, z.core.$strict>>;
839
+ }, z.core.$strict>;
840
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
841
+ gate: z.ZodEnum<{
842
+ "context-graph": "context-graph";
843
+ "project-config": "project-config";
844
+ "build-run": "build-run";
845
+ "artifact-diagnostics": "artifact-diagnostics";
846
+ "context-checks": "context-checks";
847
+ benchmarks: "benchmarks";
848
+ "benchmarks-current": "benchmarks-current";
849
+ }>;
850
+ ok: z.ZodBoolean;
851
+ status: z.ZodOptional<z.ZodEnum<{
852
+ failed: "failed";
853
+ ready: "ready";
854
+ "not-configured": "not-configured";
855
+ "not-built": "not-built";
856
+ building: "building";
857
+ built: "built";
858
+ checking: "checking";
859
+ "not-ready": "not-ready";
860
+ stale: "stale";
861
+ }>>;
862
+ summary: z.ZodString;
863
+ detail: z.ZodOptional<z.ZodString>;
864
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
865
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
+ }, z.core.$strict>>>;
867
+ }, z.core.$strict>>>;
868
+ context_checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
869
+ id: z.ZodString;
870
+ label: z.ZodString;
871
+ description: z.ZodOptional<z.ZodString>;
872
+ backed_by_artifact_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
873
+ required: z.ZodDefault<z.ZodBoolean>;
874
+ evidence_expectation: z.ZodOptional<z.ZodString>;
875
+ status: z.ZodOptional<z.ZodEnum<{
876
+ passed: "passed";
877
+ pending: "pending";
878
+ running: "running";
879
+ failed: "failed";
880
+ skipped: "skipped";
881
+ }>>;
882
+ evidence: z.ZodOptional<z.ZodString>;
883
+ issue: z.ZodOptional<z.ZodString>;
884
+ }, z.core.$strict>>>;
885
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
886
+ artifact_id: z.ZodString;
887
+ status: z.ZodEnum<{
888
+ failed: "failed";
889
+ skipped: "skipped";
890
+ ready: "ready";
891
+ not_ready: "not_ready";
892
+ }>;
893
+ built_by_stages: z.ZodDefault<z.ZodArray<z.ZodString>>;
894
+ check_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
895
+ check_id: z.ZodString;
896
+ kind: z.ZodEnum<{
897
+ file_exists: "file_exists";
898
+ source_manifest_valid: "source_manifest_valid";
899
+ min_file_count: "min_file_count";
900
+ min_file_count_matches_source: "min_file_count_matches_source";
901
+ source_summary_folders: "source_summary_folders";
902
+ source_page_coverage: "source_page_coverage";
903
+ frontmatter_valid: "frontmatter_valid";
904
+ frontmatter_required_keys: "frontmatter_required_keys";
905
+ frontmatter_nonempty_keys: "frontmatter_nonempty_keys";
906
+ source_refs_required: "source_refs_required";
907
+ wikilinks_valid: "wikilinks_valid";
908
+ must_not_contain: "must_not_contain";
909
+ must_contain: "must_contain";
910
+ qa_match: "qa_match";
911
+ }>;
912
+ passed: z.ZodBoolean;
913
+ required: z.ZodBoolean;
914
+ summary: z.ZodString;
915
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
916
+ evaluated_at: z.ZodString;
917
+ }, z.core.$strict>>>;
918
+ summary: z.ZodOptional<z.ZodString>;
919
+ }, z.core.$strict>>>;
920
+ }, z.core.$strict>;
921
+ }, z.core.$strict>;
922
+ readonly success_status: 201;
923
+ }, {
924
+ readonly id: "getRunStatus";
925
+ readonly method: "GET";
926
+ readonly path: "/v1/runs/{run_id}/status";
927
+ readonly tags: ["Runs"];
928
+ readonly summary: "Get Run status";
929
+ readonly description: "Read compact Run observability for polling. Detailed logs and artifacts are separate resources.";
930
+ readonly visibility: "app";
931
+ readonly parameters: [ServiceOperationParameter];
932
+ readonly response_schema: z.ZodObject<{
933
+ kind: z.ZodLiteral<"interf-run-status">;
934
+ version: z.ZodLiteral<1>;
935
+ run_id: z.ZodString;
936
+ run_type: z.ZodEnum<{
937
+ build: "build";
938
+ verify: "verify";
939
+ "benchmark-question-draft": "benchmark-question-draft";
940
+ "build-plan-draft": "build-plan-draft";
941
+ "build-plan-improvement": "build-plan-improvement";
942
+ job: "job";
943
+ }>;
944
+ title: z.ZodString;
945
+ status: z.ZodEnum<{
946
+ running: "running";
947
+ failed: "failed";
948
+ cancelled: "cancelled";
949
+ queued: "queued";
950
+ succeeded: "succeeded";
951
+ }>;
952
+ project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
953
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ created_at: z.ZodString;
955
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ metrics: z.ZodDefault<z.ZodArray<z.ZodObject<{
958
+ label: z.ZodString;
959
+ value: z.ZodString;
960
+ detail: z.ZodOptional<z.ZodString>;
961
+ }, z.core.$strict>>>;
962
+ artifact_count: z.ZodNumber;
963
+ check_count: z.ZodNumber;
964
+ context_check_count: z.ZodNumber;
965
+ readiness: z.ZodOptional<z.ZodNullable<z.ZodObject<{
966
+ kind: z.ZodLiteral<"interf-readiness-state">;
967
+ version: z.ZodLiteral<1>;
968
+ generated_at: z.ZodString;
969
+ project: z.ZodString;
970
+ status: z.ZodEnum<{
971
+ failed: "failed";
972
+ ready: "ready";
973
+ "not-configured": "not-configured";
974
+ "not-built": "not-built";
975
+ building: "building";
976
+ built: "built";
977
+ checking: "checking";
978
+ "not-ready": "not-ready";
979
+ stale: "stale";
980
+ }>;
981
+ ready: z.ZodBoolean;
982
+ summary: z.ZodString;
983
+ context_graph_path: z.ZodNullable<z.ZodString>;
984
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
985
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ build: z.ZodNullable<z.ZodObject<{
987
+ gate: z.ZodEnum<{
988
+ "context-graph": "context-graph";
989
+ "project-config": "project-config";
990
+ "build-run": "build-run";
991
+ "artifact-diagnostics": "artifact-diagnostics";
992
+ "context-checks": "context-checks";
993
+ benchmarks: "benchmarks";
994
+ "benchmarks-current": "benchmarks-current";
995
+ }>;
996
+ ok: z.ZodBoolean;
997
+ status: z.ZodOptional<z.ZodEnum<{
998
+ failed: "failed";
999
+ ready: "ready";
1000
+ "not-configured": "not-configured";
1001
+ "not-built": "not-built";
1002
+ building: "building";
1003
+ built: "built";
1004
+ checking: "checking";
1005
+ "not-ready": "not-ready";
1006
+ stale: "stale";
1007
+ }>>;
1008
+ summary: z.ZodString;
1009
+ detail: z.ZodOptional<z.ZodString>;
1010
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1012
+ }, z.core.$strict>>;
1013
+ check_results: z.ZodObject<{
1014
+ configured: z.ZodNumber;
1015
+ fingerprint: z.ZodNullable<z.ZodString>;
1016
+ source_files: z.ZodNullable<z.ZodObject<{
1017
+ passed: z.ZodNumber;
1018
+ total: z.ZodNumber;
1019
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1020
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
+ stale: z.ZodDefault<z.ZodBoolean>;
1022
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1023
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1024
+ }, z.core.$strict>>;
1025
+ context_graph: z.ZodNullable<z.ZodObject<{
1026
+ passed: z.ZodNumber;
1027
+ total: z.ZodNumber;
1028
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1029
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1030
+ stale: z.ZodDefault<z.ZodBoolean>;
1031
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1033
+ }, z.core.$strict>>;
1034
+ }, z.core.$strict>;
1035
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1036
+ gate: z.ZodEnum<{
1037
+ "context-graph": "context-graph";
1038
+ "project-config": "project-config";
1039
+ "build-run": "build-run";
1040
+ "artifact-diagnostics": "artifact-diagnostics";
1041
+ "context-checks": "context-checks";
1042
+ benchmarks: "benchmarks";
1043
+ "benchmarks-current": "benchmarks-current";
1044
+ }>;
1045
+ ok: z.ZodBoolean;
1046
+ status: z.ZodOptional<z.ZodEnum<{
1047
+ failed: "failed";
1048
+ ready: "ready";
1049
+ "not-configured": "not-configured";
1050
+ "not-built": "not-built";
1051
+ building: "building";
1052
+ built: "built";
1053
+ checking: "checking";
1054
+ "not-ready": "not-ready";
1055
+ stale: "stale";
1056
+ }>>;
1057
+ summary: z.ZodString;
1058
+ detail: z.ZodOptional<z.ZodString>;
1059
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1061
+ }, z.core.$strict>>>;
1062
+ }, z.core.$strict>>>;
1063
+ latest_event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1064
+ latest_log: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1065
+ detail_hint: z.ZodString;
1066
+ }, z.core.$strict>;
1067
+ readonly success_status: 200;
1068
+ }, {
1069
+ readonly id: "getRunArtifacts";
1070
+ readonly method: "GET";
1071
+ readonly path: "/v1/runs/{run_id}/artifacts";
1072
+ readonly tags: ["Runs"];
1073
+ readonly summary: "Get Run artifacts";
1074
+ readonly description: "Read the bounded artifact manifest for a finished Build run. Use only when the compact status says the Run is terminal.";
1075
+ readonly visibility: "app";
1076
+ readonly parameters: [ServiceOperationParameter];
1077
+ readonly response_schema: z.ZodObject<{
1078
+ artifacts: z.ZodArray<z.ZodObject<{
1079
+ path: z.ZodString;
1080
+ role: z.ZodEnum<{
1081
+ runtime: "runtime";
1082
+ output: "output";
1083
+ source: "source";
1084
+ evidence: "evidence";
1085
+ benchmark: "benchmark";
1086
+ }>;
1087
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1088
+ label: z.ZodOptional<z.ZodString>;
1089
+ sha256: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$strict>>;
1091
+ }, z.core.$strict>;
1092
+ readonly success_status: 200;
1093
+ }, {
1094
+ readonly id: "readRunFile";
1095
+ readonly method: "GET";
1096
+ readonly path: "/v1/runs/{run_id}/files";
1097
+ readonly tags: ["Runs"];
1098
+ readonly summary: "Read Run file";
1099
+ 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.";
1100
+ readonly visibility: "app";
1101
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1102
+ readonly response_schema: z.ZodString;
1103
+ readonly response_content_type: "text/plain";
1104
+ readonly success_status: 200;
1105
+ }, {
1106
+ readonly id: "getLatestContextGraph";
1107
+ readonly method: "GET";
1108
+ readonly path: "/v1/projects/{project_id}/context-graph";
1109
+ readonly tags: ["Context Graphs"];
1110
+ readonly summary: "Get latest Context Graph";
1111
+ readonly description: "Return the latest successful Context Graph locator and readiness state for a Project. This is a compact locator/status read; read artifacts/ handoff files before answering.";
1112
+ readonly visibility: "app";
1113
+ readonly parameters: [ServiceOperationParameter];
1114
+ readonly response_schema: z.ZodObject<{
1115
+ kind: z.ZodOptional<z.ZodLiteral<"interf-context-graph">>;
1116
+ version: z.ZodOptional<z.ZodLiteral<1>>;
1117
+ graph_id: z.ZodOptional<z.ZodString>;
1118
+ project_id: z.ZodOptional<z.ZodString>;
1119
+ build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ created_at: z.ZodOptional<z.ZodString>;
1121
+ is_latest: z.ZodOptional<z.ZodBoolean>;
1122
+ project: z.ZodString;
1123
+ path: z.ZodString;
1124
+ exists: z.ZodBoolean;
1125
+ readiness: z.ZodObject<{
1126
+ kind: z.ZodLiteral<"interf-readiness-state">;
1127
+ version: z.ZodLiteral<1>;
1128
+ generated_at: z.ZodString;
1129
+ project: z.ZodString;
1130
+ status: z.ZodEnum<{
1131
+ failed: "failed";
1132
+ ready: "ready";
1133
+ "not-configured": "not-configured";
1134
+ "not-built": "not-built";
1135
+ building: "building";
1136
+ built: "built";
1137
+ checking: "checking";
1138
+ "not-ready": "not-ready";
1139
+ stale: "stale";
1140
+ }>;
1141
+ ready: z.ZodBoolean;
1142
+ summary: z.ZodString;
1143
+ context_graph_path: z.ZodNullable<z.ZodString>;
1144
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1145
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ build: z.ZodNullable<z.ZodObject<{
1147
+ gate: z.ZodEnum<{
1148
+ "context-graph": "context-graph";
1149
+ "project-config": "project-config";
1150
+ "build-run": "build-run";
1151
+ "artifact-diagnostics": "artifact-diagnostics";
1152
+ "context-checks": "context-checks";
1153
+ benchmarks: "benchmarks";
1154
+ "benchmarks-current": "benchmarks-current";
1155
+ }>;
1156
+ ok: z.ZodBoolean;
1157
+ status: z.ZodOptional<z.ZodEnum<{
1158
+ failed: "failed";
1159
+ ready: "ready";
1160
+ "not-configured": "not-configured";
1161
+ "not-built": "not-built";
1162
+ building: "building";
1163
+ built: "built";
1164
+ checking: "checking";
1165
+ "not-ready": "not-ready";
1166
+ stale: "stale";
1167
+ }>>;
1168
+ summary: z.ZodString;
1169
+ detail: z.ZodOptional<z.ZodString>;
1170
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1171
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
+ }, z.core.$strict>>;
1173
+ check_results: z.ZodObject<{
1174
+ configured: z.ZodNumber;
1175
+ fingerprint: z.ZodNullable<z.ZodString>;
1176
+ source_files: z.ZodNullable<z.ZodObject<{
1177
+ passed: z.ZodNumber;
1178
+ total: z.ZodNumber;
1179
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1180
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
+ stale: z.ZodDefault<z.ZodBoolean>;
1182
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1184
+ }, z.core.$strict>>;
1185
+ context_graph: z.ZodNullable<z.ZodObject<{
1186
+ passed: z.ZodNumber;
1187
+ total: z.ZodNumber;
1188
+ pass_rate: z.ZodNullable<z.ZodNumber>;
1189
+ checks_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
+ stale: z.ZodDefault<z.ZodBoolean>;
1191
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1193
+ }, z.core.$strict>>;
1194
+ }, z.core.$strict>;
1195
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1196
+ gate: z.ZodEnum<{
1197
+ "context-graph": "context-graph";
1198
+ "project-config": "project-config";
1199
+ "build-run": "build-run";
1200
+ "artifact-diagnostics": "artifact-diagnostics";
1201
+ "context-checks": "context-checks";
1202
+ benchmarks: "benchmarks";
1203
+ "benchmarks-current": "benchmarks-current";
1204
+ }>;
1205
+ ok: z.ZodBoolean;
1206
+ status: z.ZodOptional<z.ZodEnum<{
1207
+ failed: "failed";
1208
+ ready: "ready";
1209
+ "not-configured": "not-configured";
1210
+ "not-built": "not-built";
1211
+ building: "building";
1212
+ built: "built";
1213
+ checking: "checking";
1214
+ "not-ready": "not-ready";
1215
+ stale: "stale";
1216
+ }>>;
1217
+ summary: z.ZodString;
1218
+ detail: z.ZodOptional<z.ZodString>;
1219
+ run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ artifact_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ }, z.core.$strict>>>;
1222
+ }, z.core.$strict>;
1223
+ build_plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1224
+ latest_build_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1225
+ latest_benchmark_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1226
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1227
+ path: z.ZodString;
1228
+ role: z.ZodEnum<{
1229
+ runtime: "runtime";
1230
+ output: "output";
1231
+ source: "source";
1232
+ evidence: "evidence";
1233
+ benchmark: "benchmark";
1234
+ }>;
1235
+ stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1236
+ label: z.ZodOptional<z.ZodString>;
1237
+ sha256: z.ZodOptional<z.ZodString>;
1238
+ }, z.core.$strict>>>;
1239
+ build_evidence: z.ZodOptional<z.ZodObject<{
1240
+ kind: z.ZodLiteral<"interf-build-evidence">;
1241
+ version: z.ZodLiteral<1>;
1242
+ generated_at: z.ZodString;
1243
+ project_id: z.ZodString;
1244
+ build_run_id: z.ZodNullable<z.ZodString>;
1245
+ ready: z.ZodBoolean;
1246
+ summary: z.ZodString;
1247
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1248
+ id: z.ZodString;
1249
+ assertion: z.ZodString;
1250
+ metric: z.ZodObject<{
1251
+ observed: z.ZodNumber;
1252
+ total: z.ZodOptional<z.ZodNumber>;
1253
+ unit: z.ZodOptional<z.ZodString>;
1254
+ }, z.core.$strict>;
1255
+ evidence: z.ZodObject<{
1256
+ kind: z.ZodEnum<{
1257
+ output: "output";
1258
+ "source-inventory": "source-inventory";
1259
+ "stage-record": "stage-record";
1260
+ validator: "validator";
1261
+ trace: "trace";
1262
+ "stage-evidence": "stage-evidence";
1263
+ }>;
1264
+ label: z.ZodString;
1265
+ ref: z.ZodOptional<z.ZodString>;
1266
+ path: z.ZodOptional<z.ZodString>;
1267
+ run_id: z.ZodOptional<z.ZodString>;
1268
+ stage_id: z.ZodOptional<z.ZodString>;
1269
+ artifact_id: z.ZodOptional<z.ZodString>;
1270
+ }, z.core.$strict>;
1271
+ issue_state: z.ZodOptional<z.ZodEnum<{
1272
+ pass: "pass";
1273
+ fail: "fail";
1274
+ missing: "missing";
1275
+ review: "review";
1276
+ }>>;
1277
+ issue: z.ZodOptional<z.ZodString>;
1278
+ }, z.core.$strict>>>;
1279
+ }, z.core.$strict>>;
1280
+ }, z.core.$strict>;
1281
+ readonly success_status: 200;
1282
+ }, {
1283
+ readonly id: "listSourceFiles";
1284
+ readonly method: "GET";
1285
+ readonly path: "/v1/projects/{project_id}/source-files";
1286
+ readonly tags: ["Source"];
1287
+ readonly summary: "List Source Manifest projection";
1288
+ readonly description: "Return the latest Source Manifest projected as source file rows for compatibility clients. Use source-manifest as the canonical run authority.";
1289
+ readonly visibility: "app";
1290
+ readonly parameters: [ServiceOperationParameter];
1291
+ readonly response_schema: z.ZodObject<{
1292
+ source_files: z.ZodArray<z.ZodObject<{
1293
+ project: z.ZodString;
1294
+ source_manifest_id: z.ZodOptional<z.ZodString>;
1295
+ source_file_id: z.ZodOptional<z.ZodString>;
1296
+ path: z.ZodString;
1297
+ locator: z.ZodOptional<z.ZodString>;
1298
+ kind: z.ZodOptional<z.ZodEnum<{
1299
+ image: "image";
1300
+ pdf: "pdf";
1301
+ document: "document";
1302
+ spreadsheet: "spreadsheet";
1303
+ presentation: "presentation";
1304
+ text: "text";
1305
+ other: "other";
1306
+ }>>;
1307
+ absolute_path: z.ZodString;
1308
+ size_bytes: z.ZodNumber;
1309
+ modified_at: z.ZodNullable<z.ZodString>;
1310
+ source_folder_path: z.ZodString;
1311
+ }, z.core.$strict>>;
1312
+ }, z.core.$strict>;
1313
+ readonly success_status: 200;
1314
+ }, {
1315
+ readonly id: "getSourceManifest";
1316
+ readonly method: "GET";
1317
+ readonly path: "/v1/projects/{project_id}/source-manifest";
1318
+ readonly tags: ["Source"];
1319
+ readonly summary: "Get Source Manifest";
1320
+ readonly description: "Return the evidence-backed Source Manifest recorded for the latest Context Graph.";
1321
+ readonly visibility: "app";
1322
+ readonly parameters: [ServiceOperationParameter];
1323
+ readonly response_schema: z.ZodObject<{
1324
+ source_manifest: z.ZodObject<{
1325
+ kind: z.ZodLiteral<"interf-source-manifest">;
1326
+ version: z.ZodLiteral<1>;
1327
+ manifest_id: z.ZodString;
1328
+ generated_at: z.ZodString;
1329
+ run_id: z.ZodNullable<z.ZodString>;
1330
+ project: z.ZodString;
1331
+ source: z.ZodObject<{
1332
+ id: z.ZodString;
1333
+ kind: z.ZodEnum<{
1334
+ "local-folder": "local-folder";
1335
+ }>;
1336
+ locator: z.ZodString;
1337
+ }, z.core.$strict>;
1338
+ scanner: z.ZodObject<{
1339
+ executor: z.ZodString;
1340
+ agent_label: z.ZodString;
1341
+ attempt: z.ZodNumber;
1342
+ }, z.core.$strict>;
1343
+ source_total: z.ZodNumber;
1344
+ files: z.ZodArray<z.ZodObject<{
1345
+ id: z.ZodString;
1346
+ locator: z.ZodString;
1347
+ path: z.ZodString;
1348
+ kind: z.ZodDefault<z.ZodEnum<{
1349
+ image: "image";
1350
+ pdf: "pdf";
1351
+ document: "document";
1352
+ spreadsheet: "spreadsheet";
1353
+ presentation: "presentation";
1354
+ text: "text";
1355
+ other: "other";
1356
+ }>>;
1357
+ size_bytes: z.ZodOptional<z.ZodNumber>;
1358
+ content_hash: z.ZodOptional<z.ZodString>;
1359
+ page_count: z.ZodOptional<z.ZodNumber>;
1360
+ inspectable_units: z.ZodDefault<z.ZodArray<z.ZodObject<{
1361
+ kind: z.ZodEnum<{
1362
+ page: "page";
1363
+ slide: "slide";
1364
+ sheet: "sheet";
1365
+ table: "table";
1366
+ image: "image";
1367
+ section: "section";
1368
+ }>;
1369
+ index: z.ZodOptional<z.ZodNumber>;
1370
+ label: z.ZodOptional<z.ZodString>;
1371
+ }, z.core.$strict>>>;
1372
+ confidence: z.ZodDefault<z.ZodEnum<{
1373
+ high: "high";
1374
+ medium: "medium";
1375
+ low: "low";
1376
+ }>>;
1377
+ evidence: z.ZodArray<z.ZodObject<{
1378
+ kind: z.ZodEnum<{
1379
+ "agent-observation": "agent-observation";
1380
+ "connector-metadata": "connector-metadata";
1381
+ "user-provided": "user-provided";
1382
+ }>;
1383
+ summary: z.ZodString;
1384
+ }, z.core.$strict>>;
1385
+ }, z.core.$strict>>;
1386
+ warnings: z.ZodDefault<z.ZodArray<z.ZodString>>;
1387
+ }, z.core.$strict>;
1388
+ }, z.core.$strict>;
1389
+ readonly success_status: 200;
1390
+ }, {
1391
+ readonly id: "readContextGraphFile";
1392
+ readonly method: "GET";
1393
+ readonly path: "/v1/projects/{project_id}/context-graph/file";
1394
+ readonly tags: ["Context Graphs"];
1395
+ readonly summary: "Read Context Graph file";
1396
+ readonly description: "Read one file from the latest Context Graph by relative path. Start with artifacts/ task handoffs; use summaries/ for coverage proof and knowledge/ for drilldown.";
1397
+ readonly visibility: "app";
1398
+ readonly parameters: [ServiceOperationParameter, ServiceOperationParameter];
1399
+ readonly response_schema: z.ZodString;
1400
+ readonly response_content_type: "text/plain";
1401
+ readonly success_status: 200;
1402
+ }, {
1403
+ readonly id: "getContextGraphTraces";
1404
+ readonly method: "GET";
1405
+ readonly path: "/v1/projects/{project_id}/context-graph/traces";
1406
+ readonly tags: ["Context Graphs"];
1407
+ readonly summary: "Get Context Graph traces";
1408
+ readonly description: "Read source-backed trace rollups for exact values and provenance checks.";
1409
+ readonly visibility: "app";
1410
+ readonly parameters: [ServiceOperationParameter];
1411
+ readonly response_schema: z.ZodObject<{
1412
+ kind: z.ZodLiteral<"interf-context-graph-traces">;
1413
+ version: z.ZodLiteral<1>;
1414
+ generated_at: z.ZodString;
1415
+ graph_id: z.ZodString;
1416
+ project_id: z.ZodString;
1417
+ files_processed: z.ZodNumber;
1418
+ files_total: z.ZodNumber;
1419
+ checks_passed: z.ZodNumber;
1420
+ checks_total: z.ZodNumber;
1421
+ ready: z.ZodBoolean;
1422
+ pages_read: z.ZodOptional<z.ZodNumber>;
1423
+ charts_extracted: z.ZodOptional<z.ZodNumber>;
1424
+ entities_found: z.ZodOptional<z.ZodNumber>;
1425
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
1426
+ kind: z.ZodString;
1427
+ label: z.ZodString;
1428
+ count: z.ZodOptional<z.ZodNumber>;
1429
+ total: z.ZodOptional<z.ZodNumber>;
1430
+ passed: z.ZodOptional<z.ZodBoolean>;
1431
+ detail: z.ZodOptional<z.ZodString>;
1432
+ }, z.core.$strict>>>;
1433
+ }, z.core.$strict>;
1434
+ readonly success_status: 200;
1435
+ }, {
1436
+ readonly id: "getBuildEvidence";
1437
+ readonly method: "GET";
1438
+ readonly path: "/v1/projects/{project_id}/context-graph/evidence";
1439
+ readonly tags: ["Context Graphs"];
1440
+ readonly summary: "Get Build evidence";
1441
+ readonly description: "Read checks, Artifact diagnostics, and readiness evidence for the latest Context Graph.";
1442
+ readonly visibility: "app";
1443
+ readonly parameters: [ServiceOperationParameter];
1444
+ readonly response_schema: z.ZodObject<{
1445
+ kind: z.ZodLiteral<"interf-build-evidence">;
1446
+ version: z.ZodLiteral<1>;
1447
+ generated_at: z.ZodString;
1448
+ project_id: z.ZodString;
1449
+ build_run_id: z.ZodNullable<z.ZodString>;
1450
+ ready: z.ZodBoolean;
1451
+ summary: z.ZodString;
1452
+ rows: z.ZodDefault<z.ZodArray<z.ZodObject<{
1453
+ id: z.ZodString;
1454
+ assertion: z.ZodString;
1455
+ metric: z.ZodObject<{
1456
+ observed: z.ZodNumber;
1457
+ total: z.ZodOptional<z.ZodNumber>;
1458
+ unit: z.ZodOptional<z.ZodString>;
1459
+ }, z.core.$strict>;
1460
+ evidence: z.ZodObject<{
1461
+ kind: z.ZodEnum<{
1462
+ output: "output";
1463
+ "source-inventory": "source-inventory";
1464
+ "stage-record": "stage-record";
1465
+ validator: "validator";
1466
+ trace: "trace";
1467
+ "stage-evidence": "stage-evidence";
1468
+ }>;
1469
+ label: z.ZodString;
1470
+ ref: z.ZodOptional<z.ZodString>;
1471
+ path: z.ZodOptional<z.ZodString>;
1472
+ run_id: z.ZodOptional<z.ZodString>;
1473
+ stage_id: z.ZodOptional<z.ZodString>;
1474
+ artifact_id: z.ZodOptional<z.ZodString>;
1475
+ }, z.core.$strict>;
1476
+ issue_state: z.ZodOptional<z.ZodEnum<{
1477
+ pass: "pass";
1478
+ fail: "fail";
1479
+ missing: "missing";
1480
+ review: "review";
1481
+ }>>;
1482
+ issue: z.ZodOptional<z.ZodString>;
1483
+ }, z.core.$strict>>>;
1484
+ }, z.core.$strict>;
1485
+ readonly success_status: 200;
1486
+ }];
1487
+ export type ServiceOperationId = typeof SERVICE_OPERATIONS[number]["id"];
1488
+ export declare const APP_PROFILE_OPERATION_IDS: ("createProject" | "getProject" | "prepareBuildPlan" | "runBuild" | "getRunStatus" | "getRunArtifacts" | "readRunFile" | "getLatestContextGraph" | "listSourceFiles" | "getSourceManifest" | "readContextGraphFile" | "getContextGraphTraces" | "getBuildEvidence")[];
1489
+ export declare function serviceOperationById(id: string): ServiceOperation | undefined;
1490
+ export { EmptyObjectSchema };