@neuraloom/contracts 0.0.0-stage → 0.1.22

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 (1141) hide show
  1. package/dist/analytics/community-movie/attribution.schema.d.ts +264 -0
  2. package/dist/analytics/community-movie/attribution.schema.js +57 -0
  3. package/dist/analytics/community-movie/consent.schema.d.ts +15 -0
  4. package/dist/analytics/community-movie/consent.schema.js +16 -0
  5. package/dist/analytics/community-movie/event-names.d.ts +11 -0
  6. package/dist/analytics/community-movie/event-names.js +113 -0
  7. package/dist/analytics/community-movie/event-params.schema.d.ts +622 -0
  8. package/dist/analytics/community-movie/event-params.schema.js +416 -0
  9. package/dist/analytics/community-movie/event-registry.d.ts +11 -0
  10. package/dist/analytics/community-movie/event-registry.js +486 -0
  11. package/dist/analytics/community-movie/index.d.ts +6 -0
  12. package/dist/analytics/community-movie/index.js +22 -0
  13. package/dist/analytics/community-movie/telemetry-record.schema.d.ts +157 -0
  14. package/dist/analytics/community-movie/telemetry-record.schema.js +26 -0
  15. package/dist/analytics/index.d.ts +1 -0
  16. package/dist/analytics/index.js +17 -0
  17. package/dist/community/actor-builder-options.d.ts +43 -0
  18. package/dist/community/actor-builder-options.js +197 -0
  19. package/dist/constants/AGENT_MCP_PERMISSIONS.d.ts +26 -0
  20. package/dist/constants/AGENT_MCP_PERMISSIONS.js +122 -0
  21. package/dist/constants/AGENT_ROLES.d.ts +37 -0
  22. package/dist/constants/AGENT_ROLES.js +199 -0
  23. package/dist/constants/audiobook-embed-placeholder-url.d.ts +5 -0
  24. package/dist/constants/audiobook-embed-placeholder-url.js +8 -0
  25. package/dist/constants/ci-config.d.ts +4 -0
  26. package/dist/constants/ci-config.js +7 -0
  27. package/dist/constants/kg-implement-stable-keys.d.ts +9 -0
  28. package/dist/constants/kg-implement-stable-keys.js +26 -0
  29. package/dist/constants/knowledge-edge-relation.d.ts +49 -0
  30. package/dist/constants/knowledge-edge-relation.js +42 -0
  31. package/dist/constants/knowledge-node.d.ts +21 -0
  32. package/dist/constants/knowledge-node.js +20 -0
  33. package/dist/constants/mission-control-nav.d.ts +13 -0
  34. package/dist/constants/mission-control-nav.js +75 -0
  35. package/dist/constants/model-mode-preset-defaults.d.ts +5 -0
  36. package/dist/constants/model-mode-preset-defaults.js +65 -0
  37. package/dist/constants/model-policies.d.ts +37 -0
  38. package/dist/constants/model-policies.js +656 -0
  39. package/dist/constants/navConfig.d.ts +43 -0
  40. package/dist/constants/navConfig.js +132 -0
  41. package/dist/constants/orchestration-execution.d.ts +5 -0
  42. package/dist/constants/orchestration-execution.js +10 -0
  43. package/dist/constants/payload-schema-map.d.ts +22 -0
  44. package/dist/constants/payload-schema-map.js +375 -0
  45. package/dist/constants/phase-guardian.d.ts +17 -0
  46. package/dist/constants/phase-guardian.js +43 -0
  47. package/dist/constants/pipeline-step-stages.d.ts +73 -0
  48. package/dist/constants/pipeline-step-stages.js +342 -0
  49. package/dist/constants/project-control-nav.d.ts +29 -0
  50. package/dist/constants/project-control-nav.js +65 -0
  51. package/dist/constants/software-index-targets.d.ts +17 -0
  52. package/dist/constants/software-index-targets.js +46 -0
  53. package/dist/constants/step-tools.d.ts +32 -0
  54. package/dist/constants/step-tools.js +53 -0
  55. package/dist/constants/workflow-agent-defaults.d.ts +4 -0
  56. package/dist/constants/workflow-agent-defaults.js +15 -0
  57. package/dist/constants/workflow-api-errors.d.ts +5 -0
  58. package/dist/constants/workflow-api-errors.js +8 -0
  59. package/dist/constants/workflow-phase-groups.d.ts +34 -0
  60. package/dist/constants/workflow-phase-groups.js +46 -0
  61. package/dist/constants/workflow-registry.d.ts +77 -0
  62. package/dist/constants/workflow-registry.js +421 -0
  63. package/dist/constants/workflow-semantics.d.ts +19 -0
  64. package/dist/constants/workflow-semantics.js +432 -0
  65. package/dist/constants/workflow-vocabulary.d.ts +23 -0
  66. package/dist/constants/workflow-vocabulary.js +227 -0
  67. package/dist/constants/workflow.d.ts +7 -0
  68. package/dist/constants/workflow.js +23 -0
  69. package/dist/data/model-registry.d.ts +36 -0
  70. package/dist/data/model-registry.js +59 -0
  71. package/dist/index.d.ts +47 -0
  72. package/dist/index.js +90 -0
  73. package/dist/integration/index.d.ts +8 -0
  74. package/dist/integration/index.js +24 -0
  75. package/dist/integration/schema-hash-manifest.json +26 -0
  76. package/dist/lib/graph-edge-resolve.d.ts +3 -0
  77. package/dist/lib/graph-edge-resolve.js +20 -0
  78. package/dist/lib/graph-id.d.ts +16 -0
  79. package/dist/lib/graph-id.js +169 -0
  80. package/dist/lib/step-navigation.d.ts +35 -0
  81. package/dist/lib/step-navigation.js +218 -0
  82. package/dist/marketing/acquisition-landing-matrix.d.ts +46 -0
  83. package/dist/marketing/acquisition-landing-matrix.js +64 -0
  84. package/dist/marketing/acquisition-recommendation.schema.d.ts +284 -0
  85. package/dist/marketing/acquisition-recommendation.schema.js +84 -0
  86. package/dist/marketing/ads-account.schema.d.ts +46 -0
  87. package/dist/marketing/ads-account.schema.js +15 -0
  88. package/dist/marketing/ads-ad-group.schema.d.ts +52 -0
  89. package/dist/marketing/ads-ad-group.schema.js +17 -0
  90. package/dist/marketing/ads-campaign.schema.d.ts +59 -0
  91. package/dist/marketing/ads-campaign.schema.js +18 -0
  92. package/dist/marketing/ads-conversion-action.schema.d.ts +60 -0
  93. package/dist/marketing/ads-conversion-action.schema.js +27 -0
  94. package/dist/marketing/ads-keyword.schema.d.ts +59 -0
  95. package/dist/marketing/ads-keyword.schema.js +19 -0
  96. package/dist/marketing/ads-metrics-daily.schema.d.ts +95 -0
  97. package/dist/marketing/ads-metrics-daily.schema.js +24 -0
  98. package/dist/marketing/ads-overview.schema.d.ts +479 -0
  99. package/dist/marketing/ads-overview.schema.js +44 -0
  100. package/dist/marketing/ads-query.schema.d.ts +33 -0
  101. package/dist/marketing/ads-query.schema.js +13 -0
  102. package/dist/marketing/ads-search-term.schema.d.ts +70 -0
  103. package/dist/marketing/ads-search-term.schema.js +19 -0
  104. package/dist/marketing/campaign-asset.schema.d.ts +51 -0
  105. package/dist/marketing/campaign-asset.schema.js +39 -0
  106. package/dist/marketing/community-movie-ads-free-signup-campaign.d.ts +23 -0
  107. package/dist/marketing/community-movie-ads-free-signup-campaign.js +29 -0
  108. package/dist/marketing/community-movie-campaign-matrix.d.ts +47 -0
  109. package/dist/marketing/community-movie-campaign-matrix.js +265 -0
  110. package/dist/marketing/community-movie-google-ads.constants.d.ts +49 -0
  111. package/dist/marketing/community-movie-google-ads.constants.js +59 -0
  112. package/dist/marketing/config.schema.d.ts +32 -0
  113. package/dist/marketing/config.schema.js +31 -0
  114. package/dist/marketing/date-range.schema.d.ts +12 -0
  115. package/dist/marketing/date-range.schema.js +10 -0
  116. package/dist/marketing/entities/index.d.ts +6 -0
  117. package/dist/marketing/entities/index.js +11 -0
  118. package/dist/marketing/ga4-conversion.schema.d.ts +87 -0
  119. package/dist/marketing/ga4-conversion.schema.js +22 -0
  120. package/dist/marketing/ga4-event.schema.d.ts +98 -0
  121. package/dist/marketing/ga4-event.schema.js +23 -0
  122. package/dist/marketing/ga4-funnel.schema.d.ts +90 -0
  123. package/dist/marketing/ga4-funnel.schema.js +23 -0
  124. package/dist/marketing/ga4-landing-page.schema.d.ts +131 -0
  125. package/dist/marketing/ga4-landing-page.schema.js +25 -0
  126. package/dist/marketing/ga4-overview.schema.d.ts +478 -0
  127. package/dist/marketing/ga4-overview.schema.js +31 -0
  128. package/dist/marketing/ga4-query.schema.d.ts +19 -0
  129. package/dist/marketing/ga4-query.schema.js +27 -0
  130. package/dist/marketing/ga4-retention.schema.d.ts +79 -0
  131. package/dist/marketing/ga4-retention.schema.js +21 -0
  132. package/dist/marketing/ga4-traffic.schema.d.ts +154 -0
  133. package/dist/marketing/ga4-traffic.schema.js +27 -0
  134. package/dist/marketing/gsc-organic-overview.schema.d.ts +338 -0
  135. package/dist/marketing/gsc-organic-overview.schema.js +28 -0
  136. package/dist/marketing/gsc-organic-query.schema.d.ts +121 -0
  137. package/dist/marketing/gsc-organic-query.schema.js +24 -0
  138. package/dist/marketing/gsc-page-performance.schema.d.ts +121 -0
  139. package/dist/marketing/gsc-page-performance.schema.js +24 -0
  140. package/dist/marketing/gsc-query.schema.d.ts +19 -0
  141. package/dist/marketing/gsc-query.schema.js +27 -0
  142. package/dist/marketing/index.d.ts +47 -0
  143. package/dist/marketing/index.js +63 -0
  144. package/dist/marketing/marketing-attribution-summary.schema.d.ts +165 -0
  145. package/dist/marketing/marketing-attribution-summary.schema.js +26 -0
  146. package/dist/marketing/marketing-challenge-performance.schema.d.ts +139 -0
  147. package/dist/marketing/marketing-challenge-performance.schema.js +28 -0
  148. package/dist/marketing/marketing-conversion-enqueue.schema.d.ts +88 -0
  149. package/dist/marketing/marketing-conversion-enqueue.schema.js +34 -0
  150. package/dist/marketing/marketing-executive-overview.schema.d.ts +1865 -0
  151. package/dist/marketing/marketing-executive-overview.schema.js +39 -0
  152. package/dist/marketing/marketing-health.schema.d.ts +366 -0
  153. package/dist/marketing/marketing-health.schema.js +65 -0
  154. package/dist/marketing/marketing-keyword-opportunity.schema.d.ts +158 -0
  155. package/dist/marketing/marketing-keyword-opportunity.schema.js +34 -0
  156. package/dist/marketing/marketing-landing-page-intelligence.schema.d.ts +159 -0
  157. package/dist/marketing/marketing-landing-page-intelligence.schema.js +30 -0
  158. package/dist/marketing/marketing-readiness.schema.d.ts +506 -0
  159. package/dist/marketing/marketing-readiness.schema.js +83 -0
  160. package/dist/marketing/marketing-test-traffic.d.ts +6 -0
  161. package/dist/marketing/marketing-test-traffic.js +28 -0
  162. package/dist/marketing/marketing-visibility-overview.schema.d.ts +949 -0
  163. package/dist/marketing/marketing-visibility-overview.schema.js +42 -0
  164. package/dist/marketing/marketing-world-catalog.d.ts +10 -0
  165. package/dist/marketing/marketing-world-catalog.js +16 -0
  166. package/dist/marketing/marketing-world-performance.schema.d.ts +179 -0
  167. package/dist/marketing/marketing-world-performance.schema.js +32 -0
  168. package/dist/marketing/routes.d.ts +77 -0
  169. package/dist/marketing/routes.js +79 -0
  170. package/dist/marketing/search-negative-keywords.d.ts +6 -0
  171. package/dist/marketing/search-negative-keywords.js +30 -0
  172. package/dist/registry/schema-registry.d.ts +74 -0
  173. package/dist/registry/schema-registry.js +1148 -0
  174. package/dist/registry/table-ownership-registry.d.ts +57 -0
  175. package/dist/registry/table-ownership-registry.js +932 -0
  176. package/dist/routes/assurance.d.ts +6 -0
  177. package/dist/routes/assurance.js +14 -0
  178. package/dist/routes/community-operator.d.ts +117 -0
  179. package/dist/routes/community-operator.js +119 -0
  180. package/dist/routes/community.d.ts +232 -0
  181. package/dist/routes/community.js +246 -0
  182. package/dist/routes/index.d.ts +2203 -0
  183. package/dist/routes/index.js +1440 -0
  184. package/dist/schemas/ai/ai-generate-inputs.schema.d.ts +2056 -0
  185. package/dist/schemas/ai/ai-generate-inputs.schema.js +167 -0
  186. package/dist/schemas/ai/ai-run-metadata.schema.d.ts +39 -0
  187. package/dist/schemas/ai/ai-run-metadata.schema.js +24 -0
  188. package/dist/schemas/ai/ai-runs-list.schema.d.ts +248 -0
  189. package/dist/schemas/ai/ai-runs-list.schema.js +27 -0
  190. package/dist/schemas/ai/analytics-generate.schema.d.ts +185 -0
  191. package/dist/schemas/ai/analytics-generate.schema.js +59 -0
  192. package/dist/schemas/ai/api-generate.schema.d.ts +49 -0
  193. package/dist/schemas/ai/api-generate.schema.js +16 -0
  194. package/dist/schemas/ai/api.schema.d.ts +80 -0
  195. package/dist/schemas/ai/api.schema.js +22 -0
  196. package/dist/schemas/ai/architecture-generate.schema.d.ts +47 -0
  197. package/dist/schemas/ai/architecture-generate.schema.js +19 -0
  198. package/dist/schemas/ai/argument-map-generate.schema.d.ts +433 -0
  199. package/dist/schemas/ai/argument-map-generate.schema.js +62 -0
  200. package/dist/schemas/ai/audit-existing-output-evidence.schema.d.ts +153 -0
  201. package/dist/schemas/ai/audit-existing-output-evidence.schema.js +46 -0
  202. package/dist/schemas/ai/brief-improve-generate.schema.d.ts +2291 -0
  203. package/dist/schemas/ai/brief-improve-generate.schema.js +293 -0
  204. package/dist/schemas/ai/chapter-revision.schema.d.ts +817 -0
  205. package/dist/schemas/ai/chapter-revision.schema.js +267 -0
  206. package/dist/schemas/ai/code-generate.schema.d.ts +1492 -0
  207. package/dist/schemas/ai/code-generate.schema.js +46 -0
  208. package/dist/schemas/ai/community-pitch-critique-generate.schema.d.ts +31 -0
  209. package/dist/schemas/ai/community-pitch-critique-generate.schema.js +17 -0
  210. package/dist/schemas/ai/community-suggestion-summary-generate.schema.d.ts +34 -0
  211. package/dist/schemas/ai/community-suggestion-summary-generate.schema.js +19 -0
  212. package/dist/schemas/ai/compliance-generate.schema.d.ts +24 -0
  213. package/dist/schemas/ai/compliance-generate.schema.js +11 -0
  214. package/dist/schemas/ai/compliance.schema.d.ts +58 -0
  215. package/dist/schemas/ai/compliance.schema.js +22 -0
  216. package/dist/schemas/ai/constitution-generate.schema.d.ts +221 -0
  217. package/dist/schemas/ai/constitution-generate.schema.js +52 -0
  218. package/dist/schemas/ai/constitution-kg-gate-status.schema.d.ts +33 -0
  219. package/dist/schemas/ai/constitution-kg-gate-status.schema.js +15 -0
  220. package/dist/schemas/ai/constitution-validate-input.schema.d.ts +18 -0
  221. package/dist/schemas/ai/constitution-validate-input.schema.js +10 -0
  222. package/dist/schemas/ai/constitution-writing-generate.schema.d.ts +437 -0
  223. package/dist/schemas/ai/constitution-writing-generate.schema.js +70 -0
  224. package/dist/schemas/ai/constitution.schema.d.ts +19 -0
  225. package/dist/schemas/ai/constitution.schema.js +12 -0
  226. package/dist/schemas/ai/counterclaim-framework-generate.schema.d.ts +479 -0
  227. package/dist/schemas/ai/counterclaim-framework-generate.schema.js +66 -0
  228. package/dist/schemas/ai/coverage-generate.schema.d.ts +61 -0
  229. package/dist/schemas/ai/coverage-generate.schema.js +27 -0
  230. package/dist/schemas/ai/definitions-generate.schema.d.ts +448 -0
  231. package/dist/schemas/ai/definitions-generate.schema.js +62 -0
  232. package/dist/schemas/ai/deployments-generate.schema.d.ts +40 -0
  233. package/dist/schemas/ai/deployments-generate.schema.js +18 -0
  234. package/dist/schemas/ai/docs-generate.schema.d.ts +51 -0
  235. package/dist/schemas/ai/docs-generate.schema.js +18 -0
  236. package/dist/schemas/ai/domain-context.d.ts +58 -0
  237. package/dist/schemas/ai/domain-context.js +185 -0
  238. package/dist/schemas/ai/draft-generate.schema.d.ts +32 -0
  239. package/dist/schemas/ai/draft-generate.schema.js +17 -0
  240. package/dist/schemas/ai/editorial-guardian-generate.schema.d.ts +470 -0
  241. package/dist/schemas/ai/editorial-guardian-generate.schema.js +60 -0
  242. package/dist/schemas/ai/editorial-revise-chapter.schema.d.ts +411 -0
  243. package/dist/schemas/ai/editorial-revise-chapter.schema.js +83 -0
  244. package/dist/schemas/ai/film-clip-review-generate.schema.d.ts +291 -0
  245. package/dist/schemas/ai/film-clip-review-generate.schema.js +35 -0
  246. package/dist/schemas/ai/film-keyframe-generate.schema.d.ts +359 -0
  247. package/dist/schemas/ai/film-keyframe-generate.schema.js +28 -0
  248. package/dist/schemas/ai/film-keyframe-register.schema.d.ts +67 -0
  249. package/dist/schemas/ai/film-keyframe-register.schema.js +16 -0
  250. package/dist/schemas/ai/film-shot-risk-assess.schema.d.ts +12 -0
  251. package/dist/schemas/ai/film-shot-risk-assess.schema.js +10 -0
  252. package/dist/schemas/ai/film-still-review-generate.schema.d.ts +232 -0
  253. package/dist/schemas/ai/film-still-review-generate.schema.js +31 -0
  254. package/dist/schemas/ai/film-workflow-generate.schema.d.ts +117 -0
  255. package/dist/schemas/ai/film-workflow-generate.schema.js +33 -0
  256. package/dist/schemas/ai/generate-response.schema.d.ts +66 -0
  257. package/dist/schemas/ai/generate-response.schema.js +26 -0
  258. package/dist/schemas/ai/guardian-gate-status.schema.d.ts +112 -0
  259. package/dist/schemas/ai/guardian-gate-status.schema.js +17 -0
  260. package/dist/schemas/ai/guardian-kg-gate-status.schema.d.ts +58 -0
  261. package/dist/schemas/ai/guardian-kg-gate-status.schema.js +30 -0
  262. package/dist/schemas/ai/guardian-rule-detail.schema.d.ts +74 -0
  263. package/dist/schemas/ai/guardian-rule-detail.schema.js +19 -0
  264. package/dist/schemas/ai/guardian-score-history.schema.d.ts +75 -0
  265. package/dist/schemas/ai/guardian-score-history.schema.js +16 -0
  266. package/dist/schemas/ai/implement-graph.schema.d.ts +323 -0
  267. package/dist/schemas/ai/implement-graph.schema.js +51 -0
  268. package/dist/schemas/ai/implement-kg-gate-status.schema.d.ts +36 -0
  269. package/dist/schemas/ai/implement-kg-gate-status.schema.js +16 -0
  270. package/dist/schemas/ai/implement.schema.d.ts +73 -0
  271. package/dist/schemas/ai/implement.schema.js +23 -0
  272. package/dist/schemas/ai/index.d.ts +46 -0
  273. package/dist/schemas/ai/index.js +62 -0
  274. package/dist/schemas/ai/knowledge-kg-gate-status.schema.d.ts +73 -0
  275. package/dist/schemas/ai/knowledge-kg-gate-status.schema.js +24 -0
  276. package/dist/schemas/ai/knowledge-search-generate.schema.d.ts +2 -0
  277. package/dist/schemas/ai/knowledge-search-generate.schema.js +6 -0
  278. package/dist/schemas/ai/manuscript-checks.schema.d.ts +6095 -0
  279. package/dist/schemas/ai/manuscript-checks.schema.js +440 -0
  280. package/dist/schemas/ai/model-policy/index.d.ts +9 -0
  281. package/dist/schemas/ai/model-policy/index.js +25 -0
  282. package/dist/schemas/ai/model-policy/model-mode-preset.schema.d.ts +83 -0
  283. package/dist/schemas/ai/model-policy/model-mode-preset.schema.js +20 -0
  284. package/dist/schemas/ai/model-policy/model-modes.schema.d.ts +13 -0
  285. package/dist/schemas/ai/model-policy/model-modes.schema.js +27 -0
  286. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.d.ts +44 -0
  287. package/dist/schemas/ai/model-policy/model-policy-resolved.schema.js +27 -0
  288. package/dist/schemas/ai/model-policy/model-quality-summary.schema.d.ts +133 -0
  289. package/dist/schemas/ai/model-policy/model-quality-summary.schema.js +35 -0
  290. package/dist/schemas/ai/model-policy/model-usage-summary.schema.d.ts +204 -0
  291. package/dist/schemas/ai/model-policy/model-usage-summary.schema.js +38 -0
  292. package/dist/schemas/ai/model-policy/project-model-policy.schema.d.ts +1311 -0
  293. package/dist/schemas/ai/model-policy/project-model-policy.schema.js +33 -0
  294. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.d.ts +66 -0
  295. package/dist/schemas/ai/model-policy/workflow-phase-model-override.schema.js +48 -0
  296. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.d.ts +2 -0
  297. package/dist/schemas/ai/model-policy/workflow-step-ids.schema.js +24 -0
  298. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.d.ts +63 -0
  299. package/dist/schemas/ai/model-policy/workflow-step-model-override.schema.js +43 -0
  300. package/dist/schemas/ai/orchestration-generate-fields.schema.d.ts +9 -0
  301. package/dist/schemas/ai/orchestration-generate-fields.schema.js +8 -0
  302. package/dist/schemas/ai/payload-json-schemas.d.ts +110 -0
  303. package/dist/schemas/ai/payload-json-schemas.js +154 -0
  304. package/dist/schemas/ai/plan.schema.d.ts +137 -0
  305. package/dist/schemas/ai/plan.schema.js +36 -0
  306. package/dist/schemas/ai/refine-fields.schema.d.ts +34 -0
  307. package/dist/schemas/ai/refine-fields.schema.js +27 -0
  308. package/dist/schemas/ai/review-generate.schema.d.ts +35 -0
  309. package/dist/schemas/ai/review-generate.schema.js +15 -0
  310. package/dist/schemas/ai/review.schema.d.ts +77 -0
  311. package/dist/schemas/ai/review.schema.js +29 -0
  312. package/dist/schemas/ai/run-trace.schema.d.ts +105 -0
  313. package/dist/schemas/ai/run-trace.schema.js +43 -0
  314. package/dist/schemas/ai/schema-generate.schema.d.ts +185 -0
  315. package/dist/schemas/ai/schema-generate.schema.js +44 -0
  316. package/dist/schemas/ai/schema.schema.d.ts +205 -0
  317. package/dist/schemas/ai/schema.schema.js +50 -0
  318. package/dist/schemas/ai/screenplay.schema.d.ts +550 -0
  319. package/dist/schemas/ai/screenplay.schema.js +77 -0
  320. package/dist/schemas/ai/source-registry-generate.schema.d.ts +245 -0
  321. package/dist/schemas/ai/source-registry-generate.schema.js +41 -0
  322. package/dist/schemas/ai/spec.schema.d.ts +248 -0
  323. package/dist/schemas/ai/spec.schema.js +78 -0
  324. package/dist/schemas/ai/style-system-generate.schema.d.ts +319 -0
  325. package/dist/schemas/ai/style-system-generate.schema.js +67 -0
  326. package/dist/schemas/ai/tasks-kg-gate-status.schema.d.ts +24 -0
  327. package/dist/schemas/ai/tasks-kg-gate-status.schema.js +12 -0
  328. package/dist/schemas/ai/tasks.schema.d.ts +49 -0
  329. package/dist/schemas/ai/tasks.schema.js +17 -0
  330. package/dist/schemas/ai/ui-generation-standard.schema.d.ts +42 -0
  331. package/dist/schemas/ai/ui-generation-standard.schema.js +40 -0
  332. package/dist/schemas/ai/ui-kg-gate-status.schema.d.ts +42 -0
  333. package/dist/schemas/ai/ui-kg-gate-status.schema.js +18 -0
  334. package/dist/schemas/ai/ui.schema.d.ts +22 -0
  335. package/dist/schemas/ai/ui.schema.js +13 -0
  336. package/dist/schemas/ai/workflow-artifacts.schema.d.ts +36075 -0
  337. package/dist/schemas/ai/workflow-artifacts.schema.js +2829 -0
  338. package/dist/schemas/ai/workflow-execution-mode.schema.d.ts +4 -0
  339. package/dist/schemas/ai/workflow-execution-mode.schema.js +6 -0
  340. package/dist/schemas/ai/writing-draft-all-generate.schema.d.ts +3444 -0
  341. package/dist/schemas/ai/writing-draft-all-generate.schema.js +319 -0
  342. package/dist/schemas/ai/writing-tasks-generate.schema.d.ts +283 -0
  343. package/dist/schemas/ai/writing-tasks-generate.schema.js +52 -0
  344. package/dist/schemas/ai/zod-openai-json-schema.d.ts +2 -0
  345. package/dist/schemas/ai/zod-openai-json-schema.js +67 -0
  346. package/dist/schemas/ai-ci-generate.d.ts +47 -0
  347. package/dist/schemas/ai-ci-generate.js +19 -0
  348. package/dist/schemas/ai-llm-outputs.d.ts +52 -0
  349. package/dist/schemas/ai-llm-outputs.js +26 -0
  350. package/dist/schemas/api/create-orchestration-request.schema.d.ts +13 -0
  351. package/dist/schemas/api/create-orchestration-request.schema.js +10 -0
  352. package/dist/schemas/api/implement-orchestration-session.schema.d.ts +26 -0
  353. package/dist/schemas/api/implement-orchestration-session.schema.js +11 -0
  354. package/dist/schemas/api/orchestration-events-list-response.schema.d.ts +108 -0
  355. package/dist/schemas/api/orchestration-events-list-response.schema.js +27 -0
  356. package/dist/schemas/api/plans-list-response.schema.d.ts +203 -0
  357. package/dist/schemas/api/plans-list-response.schema.js +35 -0
  358. package/dist/schemas/api/project-model-usage-query.schema.d.ts +24 -0
  359. package/dist/schemas/api/project-model-usage-query.schema.js +42 -0
  360. package/dist/schemas/api/specs-list-response.schema.d.ts +78 -0
  361. package/dist/schemas/api/specs-list-response.schema.js +23 -0
  362. package/dist/schemas/api-envelope.schema.d.ts +131 -0
  363. package/dist/schemas/api-envelope.schema.js +60 -0
  364. package/dist/schemas/artifacts/artifact-upload-proxy.schema.d.ts +27 -0
  365. package/dist/schemas/artifacts/artifact-upload-proxy.schema.js +15 -0
  366. package/dist/schemas/assurance/assurance-mode.schema.d.ts +33 -0
  367. package/dist/schemas/assurance/assurance-mode.schema.js +25 -0
  368. package/dist/schemas/assurance/browser-outcome-proof.schema.d.ts +164 -0
  369. package/dist/schemas/assurance/browser-outcome-proof.schema.js +58 -0
  370. package/dist/schemas/assurance/computation-authority-registry.schema.d.ts +108 -0
  371. package/dist/schemas/assurance/computation-authority-registry.schema.js +36 -0
  372. package/dist/schemas/assurance/documentation-evidence.schema.d.ts +131 -0
  373. package/dist/schemas/assurance/documentation-evidence.schema.js +44 -0
  374. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.d.ts +743 -0
  375. package/dist/schemas/assurance/domain-assurance-evidence-pack.schema.js +28 -0
  376. package/dist/schemas/assurance/domain-assurance-verdict.schema.d.ts +40 -0
  377. package/dist/schemas/assurance/domain-assurance-verdict.schema.js +24 -0
  378. package/dist/schemas/assurance/domain-truth-brief.schema.d.ts +270 -0
  379. package/dist/schemas/assurance/domain-truth-brief.schema.js +73 -0
  380. package/dist/schemas/assurance/enterprise-targeting.schema.d.ts +46 -0
  381. package/dist/schemas/assurance/enterprise-targeting.schema.js +24 -0
  382. package/dist/schemas/assurance/gate-result.schema.d.ts +35 -0
  383. package/dist/schemas/assurance/gate-result.schema.js +35 -0
  384. package/dist/schemas/assurance/index.d.ts +13 -0
  385. package/dist/schemas/assurance/index.js +30 -0
  386. package/dist/schemas/assurance/provider-call-ledger.schema.d.ts +97 -0
  387. package/dist/schemas/assurance/provider-call-ledger.schema.js +36 -0
  388. package/dist/schemas/assurance/provider-ledger-response.schema.d.ts +113 -0
  389. package/dist/schemas/assurance/provider-ledger-response.schema.js +29 -0
  390. package/dist/schemas/assurance/release-verdict.schema.d.ts +87 -0
  391. package/dist/schemas/assurance/release-verdict.schema.js +47 -0
  392. package/dist/schemas/assurance/risk-class.schema.d.ts +30 -0
  393. package/dist/schemas/assurance/risk-class.schema.js +33 -0
  394. package/dist/schemas/audiobook/alice-pronunciation.schema.d.ts +80 -0
  395. package/dist/schemas/audiobook/alice-pronunciation.schema.js +45 -0
  396. package/dist/schemas/audiobook/audiobook-api.schema.d.ts +1937 -0
  397. package/dist/schemas/audiobook/audiobook-api.schema.js +201 -0
  398. package/dist/schemas/audiobook/audiobook-artifacts.schema.d.ts +4069 -0
  399. package/dist/schemas/audiobook/audiobook-artifacts.schema.js +469 -0
  400. package/dist/schemas/audiobook/audiobook-studio.schema.d.ts +670 -0
  401. package/dist/schemas/audiobook/audiobook-studio.schema.js +159 -0
  402. package/dist/schemas/audiobook/audiobook-validation.d.ts +227 -0
  403. package/dist/schemas/audiobook/audiobook-validation.js +23 -0
  404. package/dist/schemas/audiobook/chunk-narration-script.d.ts +17 -0
  405. package/dist/schemas/audiobook/chunk-narration-script.js +96 -0
  406. package/dist/schemas/audiobook/elevenlabs-provider.schema.d.ts +167 -0
  407. package/dist/schemas/audiobook/elevenlabs-provider.schema.js +93 -0
  408. package/dist/schemas/audiobook/index.d.ts +8 -0
  409. package/dist/schemas/audiobook/index.js +24 -0
  410. package/dist/schemas/audiobook/narration-chunk.schema.d.ts +114 -0
  411. package/dist/schemas/audiobook/narration-chunk.schema.js +38 -0
  412. package/dist/schemas/audiobook-embed/audiobook-embed.schema.d.ts +1732 -0
  413. package/dist/schemas/audiobook-embed/audiobook-embed.schema.js +259 -0
  414. package/dist/schemas/auth/session-context.schema.d.ts +177 -0
  415. package/dist/schemas/auth/session-context.schema.js +40 -0
  416. package/dist/schemas/cache/cache-ai-response.schema.d.ts +50 -0
  417. package/dist/schemas/cache/cache-ai-response.schema.js +28 -0
  418. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.d.ts +16 -0
  419. package/dist/schemas/ci/ci-allow-skip-actionlint-patch.schema.js +12 -0
  420. package/dist/schemas/ci/ci-apply-post-success.schema.d.ts +24 -0
  421. package/dist/schemas/ci/ci-apply-post-success.schema.js +15 -0
  422. package/dist/schemas/ci/ci-canonical-readiness.schema.d.ts +155 -0
  423. package/dist/schemas/ci/ci-canonical-readiness.schema.js +47 -0
  424. package/dist/schemas/ci/ci-dispatch-post.schema.d.ts +34 -0
  425. package/dist/schemas/ci/ci-dispatch-post.schema.js +20 -0
  426. package/dist/schemas/ci/ci-ingest-post.schema.d.ts +37 -0
  427. package/dist/schemas/ci/ci-ingest-post.schema.js +22 -0
  428. package/dist/schemas/ci/ci-operator-ready-patch.schema.d.ts +13 -0
  429. package/dist/schemas/ci/ci-operator-ready-patch.schema.js +11 -0
  430. package/dist/schemas/ci/ci-pipeline-status.schema.d.ts +3 -0
  431. package/dist/schemas/ci/ci-pipeline-status.schema.js +13 -0
  432. package/dist/schemas/ci/ci-run.schema.d.ts +44 -0
  433. package/dist/schemas/ci/ci-run.schema.js +27 -0
  434. package/dist/schemas/ci/ci-runs-list-response.schema.d.ts +91 -0
  435. package/dist/schemas/ci/ci-runs-list-response.schema.js +13 -0
  436. package/dist/schemas/ci/ci-status-get.schema.d.ts +155 -0
  437. package/dist/schemas/ci/ci-status-get.schema.js +12 -0
  438. package/dist/schemas/ci/ci-status-response.schema.d.ts +554 -0
  439. package/dist/schemas/ci/ci-status-response.schema.js +151 -0
  440. package/dist/schemas/ci/index.d.ts +12 -0
  441. package/dist/schemas/ci/index.js +28 -0
  442. package/dist/schemas/ci/pr-check-run.schema.d.ts +44 -0
  443. package/dist/schemas/ci/pr-check-run.schema.js +21 -0
  444. package/dist/schemas/ci/project-engine-context.schema.d.ts +70 -0
  445. package/dist/schemas/ci/project-engine-context.schema.js +26 -0
  446. package/dist/schemas/community/community-actor-comment-body.schema.d.ts +9 -0
  447. package/dist/schemas/community/community-actor-comment-body.schema.js +9 -0
  448. package/dist/schemas/community/community-actor-universe-vote.schema.d.ts +10 -0
  449. package/dist/schemas/community/community-actor-universe-vote.schema.js +10 -0
  450. package/dist/schemas/community/community-ad-capi.schema.d.ts +77 -0
  451. package/dist/schemas/community/community-ad-capi.schema.js +42 -0
  452. package/dist/schemas/community/community-billing-checkout.schema.d.ts +31 -0
  453. package/dist/schemas/community/community-billing-checkout.schema.js +43 -0
  454. package/dist/schemas/community/community-challenge.schema.d.ts +43 -0
  455. package/dist/schemas/community/community-challenge.schema.js +21 -0
  456. package/dist/schemas/community/community-content-translation.schema.d.ts +99 -0
  457. package/dist/schemas/community/community-content-translation.schema.js +63 -0
  458. package/dist/schemas/community/community-credit-transaction.schema.d.ts +36 -0
  459. package/dist/schemas/community/community-credit-transaction.schema.js +19 -0
  460. package/dist/schemas/community/community-development-input.schema.d.ts +20 -0
  461. package/dist/schemas/community/community-development-input.schema.js +16 -0
  462. package/dist/schemas/community/community-development-room.schema.d.ts +28 -0
  463. package/dist/schemas/community/community-development-room.schema.js +16 -0
  464. package/dist/schemas/community/community-email.schema.d.ts +96 -0
  465. package/dist/schemas/community/community-email.schema.js +65 -0
  466. package/dist/schemas/community/community-film-playback.schema.d.ts +287 -0
  467. package/dist/schemas/community/community-film-playback.schema.js +52 -0
  468. package/dist/schemas/community/community-film-video-variant.schema.d.ts +94 -0
  469. package/dist/schemas/community/community-film-video-variant.schema.js +53 -0
  470. package/dist/schemas/community/community-film-world-marketing.schema.d.ts +27 -0
  471. package/dist/schemas/community/community-film-world-marketing.schema.js +67 -0
  472. package/dist/schemas/community/community-film.schema.d.ts +183 -0
  473. package/dist/schemas/community/community-film.schema.js +105 -0
  474. package/dist/schemas/community/community-idea-promote.schema.d.ts +4 -0
  475. package/dist/schemas/community/community-idea-promote.schema.js +6 -0
  476. package/dist/schemas/community/community-idea-submission.schema.d.ts +54 -0
  477. package/dist/schemas/community/community-idea-submission.schema.js +22 -0
  478. package/dist/schemas/community/community-idea-version.schema.d.ts +72 -0
  479. package/dist/schemas/community/community-idea-version.schema.js +28 -0
  480. package/dist/schemas/community/community-idea.schema.d.ts +71 -0
  481. package/dist/schemas/community/community-idea.schema.js +36 -0
  482. package/dist/schemas/community/community-locale.schema.d.ts +8 -0
  483. package/dist/schemas/community/community-locale.schema.js +10 -0
  484. package/dist/schemas/community/community-membership-monthly-credits.d.ts +4 -0
  485. package/dist/schemas/community/community-membership-monthly-credits.js +18 -0
  486. package/dist/schemas/community/community-membership.schema.d.ts +34 -0
  487. package/dist/schemas/community/community-membership.schema.js +19 -0
  488. package/dist/schemas/community/community-moderation-flag.schema.d.ts +31 -0
  489. package/dist/schemas/community/community-moderation-flag.schema.js +17 -0
  490. package/dist/schemas/community/community-movie-actor-blueprint.schema.d.ts +196 -0
  491. package/dist/schemas/community/community-movie-actor-blueprint.schema.js +30 -0
  492. package/dist/schemas/community/community-movie-actor-card.schema.d.ts +37 -0
  493. package/dist/schemas/community/community-movie-actor-card.schema.js +20 -0
  494. package/dist/schemas/community/community-movie-actor-create-request.schema.d.ts +102 -0
  495. package/dist/schemas/community/community-movie-actor-create-request.schema.js +24 -0
  496. package/dist/schemas/community/community-movie-actor-create-response.schema.d.ts +35 -0
  497. package/dist/schemas/community/community-movie-actor-create-response.schema.js +12 -0
  498. package/dist/schemas/community/community-movie-actor-gate-result.schema.d.ts +15 -0
  499. package/dist/schemas/community/community-movie-actor-gate-result.schema.js +11 -0
  500. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.d.ts +22 -0
  501. package/dist/schemas/community/community-movie-actor-image-prompt-pack.schema.js +14 -0
  502. package/dist/schemas/community/community-movie-actor-kg-seed.schema.d.ts +68 -0
  503. package/dist/schemas/community/community-movie-actor-kg-seed.schema.js +31 -0
  504. package/dist/schemas/community/community-movie-actor-option-selection.schema.d.ts +43 -0
  505. package/dist/schemas/community/community-movie-actor-option-selection.schema.js +22 -0
  506. package/dist/schemas/community/community-movie-actor-portrait-url.schema.d.ts +10 -0
  507. package/dist/schemas/community/community-movie-actor-portrait-url.schema.js +10 -0
  508. package/dist/schemas/community/community-movie-actor-vote-response.schema.d.ts +13 -0
  509. package/dist/schemas/community/community-movie-actor-vote-response.schema.js +9 -0
  510. package/dist/schemas/community/community-movie-canonical-character.schema.d.ts +78 -0
  511. package/dist/schemas/community/community-movie-canonical-character.schema.js +104 -0
  512. package/dist/schemas/community/community-movie-gallery.schema.d.ts +28 -0
  513. package/dist/schemas/community/community-movie-gallery.schema.js +90 -0
  514. package/dist/schemas/community/community-movie-gate-result.schema.d.ts +46 -0
  515. package/dist/schemas/community/community-movie-gate-result.schema.js +23 -0
  516. package/dist/schemas/community/community-movie-idea-card.schema.d.ts +31 -0
  517. package/dist/schemas/community/community-movie-idea-card.schema.js +17 -0
  518. package/dist/schemas/community/community-movie-idea-input.schema.d.ts +22 -0
  519. package/dist/schemas/community/community-movie-idea-input.schema.js +14 -0
  520. package/dist/schemas/community/community-movie-idea-structured.schema.d.ts +34 -0
  521. package/dist/schemas/community/community-movie-idea-structured.schema.js +20 -0
  522. package/dist/schemas/community/community-movie-kg-seed.schema.d.ts +73 -0
  523. package/dist/schemas/community/community-movie-kg-seed.schema.js +84 -0
  524. package/dist/schemas/community/community-movie-stage-transitions.d.ts +15 -0
  525. package/dist/schemas/community/community-movie-stage-transitions.js +35 -0
  526. package/dist/schemas/community/community-movie-world-cta.schema.d.ts +75 -0
  527. package/dist/schemas/community/community-movie-world-cta.schema.js +83 -0
  528. package/dist/schemas/community/community-partner-offers.d.ts +13 -0
  529. package/dist/schemas/community/community-partner-offers.js +22 -0
  530. package/dist/schemas/community/community-partner.schema.d.ts +41 -0
  531. package/dist/schemas/community/community-partner.schema.js +23 -0
  532. package/dist/schemas/community/community-poll.schema.d.ts +54 -0
  533. package/dist/schemas/community/community-poll.schema.js +27 -0
  534. package/dist/schemas/community/community-production-operator.schema.d.ts +320 -0
  535. package/dist/schemas/community/community-production-operator.schema.js +91 -0
  536. package/dist/schemas/community/community-referral.schema.d.ts +155 -0
  537. package/dist/schemas/community/community-referral.schema.js +63 -0
  538. package/dist/schemas/community/community-signup-intake.constants.d.ts +13 -0
  539. package/dist/schemas/community/community-signup-intake.constants.js +134 -0
  540. package/dist/schemas/community/community-signup-intake.schema.d.ts +87 -0
  541. package/dist/schemas/community/community-signup-intake.schema.js +82 -0
  542. package/dist/schemas/community/community-slate.schema.d.ts +60 -0
  543. package/dist/schemas/community/community-slate.schema.js +29 -0
  544. package/dist/schemas/community/community-stage-transition.schema.d.ts +33 -0
  545. package/dist/schemas/community/community-stage-transition.schema.js +18 -0
  546. package/dist/schemas/community/community-suggestion.schema.d.ts +35 -0
  547. package/dist/schemas/community/community-suggestion.schema.js +24 -0
  548. package/dist/schemas/community/community-vote.schema.d.ts +24 -0
  549. package/dist/schemas/community/community-vote.schema.js +14 -0
  550. package/dist/schemas/community/community-waitlist.schema.d.ts +12 -0
  551. package/dist/schemas/community/community-waitlist.schema.js +10 -0
  552. package/dist/schemas/community/community-world-contribution.schema.d.ts +102 -0
  553. package/dist/schemas/community/community-world-contribution.schema.js +86 -0
  554. package/dist/schemas/community/credit-disclosure-variant.schema.d.ts +4 -0
  555. package/dist/schemas/community/credit-disclosure-variant.schema.js +6 -0
  556. package/dist/schemas/community/index.d.ts +56 -0
  557. package/dist/schemas/community/index.js +72 -0
  558. package/dist/schemas/cortex/bridge-envelope.schema.d.ts +70 -0
  559. package/dist/schemas/cortex/bridge-envelope.schema.js +77 -0
  560. package/dist/schemas/cortex/bridge-event-catalogue.d.ts +14 -0
  561. package/dist/schemas/cortex/bridge-event-catalogue.js +138 -0
  562. package/dist/schemas/cortex/bridge-events.schema.d.ts +12554 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +793 -0
  564. package/dist/schemas/cortex/bridge-readiness.schema.d.ts +27 -0
  565. package/dist/schemas/cortex/bridge-readiness.schema.js +15 -0
  566. package/dist/schemas/cortex/film-bridge-events.schema.d.ts +301 -0
  567. package/dist/schemas/cortex/film-bridge-events.schema.js +116 -0
  568. package/dist/schemas/cortex/index.d.ts +7 -0
  569. package/dist/schemas/cortex/index.js +23 -0
  570. package/dist/schemas/cortex/product-release-package.schema.d.ts +370 -0
  571. package/dist/schemas/cortex/product-release-package.schema.js +123 -0
  572. package/dist/schemas/cortex/proof-run-recorder.schema.d.ts +144 -0
  573. package/dist/schemas/cortex/proof-run-recorder.schema.js +43 -0
  574. package/dist/schemas/deployments/deployment-predict.schema.d.ts +165 -0
  575. package/dist/schemas/deployments/deployment-predict.schema.js +92 -0
  576. package/dist/schemas/deployments/deployment-preflight.schema.d.ts +184 -0
  577. package/dist/schemas/deployments/deployment-preflight.schema.js +80 -0
  578. package/dist/schemas/deployments/deployment-rollback.schema.d.ts +519 -0
  579. package/dist/schemas/deployments/deployment-rollback.schema.js +102 -0
  580. package/dist/schemas/deployments/deployment-status.schema.d.ts +1359 -0
  581. package/dist/schemas/deployments/deployment-status.schema.js +421 -0
  582. package/dist/schemas/film/film-artifact-kind.schema.d.ts +2 -0
  583. package/dist/schemas/film/film-artifact-kind.schema.js +6 -0
  584. package/dist/schemas/film/film-artifact-payloads.schema.d.ts +532 -0
  585. package/dist/schemas/film/film-artifact-payloads.schema.js +174 -0
  586. package/dist/schemas/film/film-asset-review.schema.d.ts +83 -0
  587. package/dist/schemas/film/film-asset-review.schema.js +42 -0
  588. package/dist/schemas/film/film-asset-rights-profile.schema.d.ts +68 -0
  589. package/dist/schemas/film/film-asset-rights-profile.schema.js +33 -0
  590. package/dist/schemas/film/film-character-pack-api.schema.d.ts +216 -0
  591. package/dist/schemas/film/film-character-pack-api.schema.js +51 -0
  592. package/dist/schemas/film/film-character-pack.schema.d.ts +51 -0
  593. package/dist/schemas/film/film-character-pack.schema.js +24 -0
  594. package/dist/schemas/film/film-character-scene-state.schema.d.ts +36 -0
  595. package/dist/schemas/film/film-character-scene-state.schema.js +18 -0
  596. package/dist/schemas/film/film-clip-api.schema.d.ts +379 -0
  597. package/dist/schemas/film/film-clip-api.schema.js +159 -0
  598. package/dist/schemas/film/film-clip-review-orchestration.schema.d.ts +234 -0
  599. package/dist/schemas/film/film-clip-review-orchestration.schema.js +23 -0
  600. package/dist/schemas/film/film-clip-review-scores.schema.d.ts +51 -0
  601. package/dist/schemas/film/film-clip-review-scores.schema.js +49 -0
  602. package/dist/schemas/film/film-clip-structured-review-artifact.schema.d.ts +175 -0
  603. package/dist/schemas/film/film-clip-structured-review-artifact.schema.js +15 -0
  604. package/dist/schemas/film/film-clip-structured-review.schema.d.ts +267 -0
  605. package/dist/schemas/film/film-clip-structured-review.schema.js +54 -0
  606. package/dist/schemas/film/film-clip.schema.d.ts +171 -0
  607. package/dist/schemas/film/film-clip.schema.js +64 -0
  608. package/dist/schemas/film/film-comfyui-workflow-create.schema.d.ts +39 -0
  609. package/dist/schemas/film/film-comfyui-workflow-create.schema.js +20 -0
  610. package/dist/schemas/film/film-comfyui-workflow-update.schema.d.ts +54 -0
  611. package/dist/schemas/film/film-comfyui-workflow-update.schema.js +28 -0
  612. package/dist/schemas/film/film-comfyui-workflow.schema.d.ts +188 -0
  613. package/dist/schemas/film/film-comfyui-workflow.schema.js +65 -0
  614. package/dist/schemas/film/film-creative-read-model.schema.d.ts +675 -0
  615. package/dist/schemas/film/film-creative-read-model.schema.js +66 -0
  616. package/dist/schemas/film/film-deliverable.schema.d.ts +656 -0
  617. package/dist/schemas/film/film-deliverable.schema.js +252 -0
  618. package/dist/schemas/film/film-edit-sequence.schema.d.ts +1112 -0
  619. package/dist/schemas/film/film-edit-sequence.schema.js +106 -0
  620. package/dist/schemas/film/film-elevenlabs-voice.schema.d.ts +126 -0
  621. package/dist/schemas/film/film-elevenlabs-voice.schema.js +56 -0
  622. package/dist/schemas/film/film-enqueue-multi-take.schema.d.ts +57 -0
  623. package/dist/schemas/film/film-enqueue-multi-take.schema.js +24 -0
  624. package/dist/schemas/film/film-export.schema.d.ts +78 -0
  625. package/dist/schemas/film/film-export.schema.js +37 -0
  626. package/dist/schemas/film/film-generation-dashboard.schema.d.ts +1779 -0
  627. package/dist/schemas/film/film-generation-dashboard.schema.js +222 -0
  628. package/dist/schemas/film/film-generation-package.schema.d.ts +1665 -0
  629. package/dist/schemas/film/film-generation-package.schema.js +116 -0
  630. package/dist/schemas/film/film-generation-task.schema.d.ts +1086 -0
  631. package/dist/schemas/film/film-generation-task.schema.js +159 -0
  632. package/dist/schemas/film/film-hydrate.schema.d.ts +46 -0
  633. package/dist/schemas/film/film-hydrate.schema.js +23 -0
  634. package/dist/schemas/film/film-keyframe-brief.schema.d.ts +99 -0
  635. package/dist/schemas/film/film-keyframe-brief.schema.js +29 -0
  636. package/dist/schemas/film/film-keyframe-review.schema.d.ts +186 -0
  637. package/dist/schemas/film/film-keyframe-review.schema.js +25 -0
  638. package/dist/schemas/film/film-keyframe.schema.d.ts +214 -0
  639. package/dist/schemas/film/film-keyframe.schema.js +43 -0
  640. package/dist/schemas/film/film-lessons-manifest.schema.d.ts +589 -0
  641. package/dist/schemas/film/film-lessons-manifest.schema.js +83 -0
  642. package/dist/schemas/film/film-llm-field.d.ts +22 -0
  643. package/dist/schemas/film/film-llm-field.js +78 -0
  644. package/dist/schemas/film/film-location-pack.schema.d.ts +51 -0
  645. package/dist/schemas/film/film-location-pack.schema.js +24 -0
  646. package/dist/schemas/film/film-marketing-creative-api.schema.d.ts +276 -0
  647. package/dist/schemas/film/film-marketing-creative-api.schema.js +47 -0
  648. package/dist/schemas/film/film-marketing-creative.schema.d.ts +74 -0
  649. package/dist/schemas/film/film-marketing-creative.schema.js +58 -0
  650. package/dist/schemas/film/film-marketing-format-preset.schema.d.ts +22 -0
  651. package/dist/schemas/film/film-marketing-format-preset.schema.js +71 -0
  652. package/dist/schemas/film/film-media-asset-file.schema.d.ts +59 -0
  653. package/dist/schemas/film/film-media-asset-file.schema.js +45 -0
  654. package/dist/schemas/film/film-media-asset-promotion-api.schema.d.ts +219 -0
  655. package/dist/schemas/film/film-media-asset-promotion-api.schema.js +29 -0
  656. package/dist/schemas/film/film-media-asset-review-api.schema.d.ts +431 -0
  657. package/dist/schemas/film/film-media-asset-review-api.schema.js +41 -0
  658. package/dist/schemas/film/film-media-asset.schema.d.ts +131 -0
  659. package/dist/schemas/film/film-media-asset.schema.js +94 -0
  660. package/dist/schemas/film/film-media-kg.schema.d.ts +86 -0
  661. package/dist/schemas/film/film-media-kg.schema.js +70 -0
  662. package/dist/schemas/film/film-ofi-report.schema.d.ts +437 -0
  663. package/dist/schemas/film/film-ofi-report.schema.js +65 -0
  664. package/dist/schemas/film/film-otio-sidecar.schema.d.ts +136 -0
  665. package/dist/schemas/film/film-otio-sidecar.schema.js +28 -0
  666. package/dist/schemas/film/film-production-coverage.schema.d.ts +179 -0
  667. package/dist/schemas/film/film-production-coverage.schema.js +123 -0
  668. package/dist/schemas/film/film-production-graph.schema.d.ts +273 -0
  669. package/dist/schemas/film/film-production-graph.schema.js +43 -0
  670. package/dist/schemas/film/film-production-read-model.schema.d.ts +1038 -0
  671. package/dist/schemas/film/film-production-read-model.schema.js +65 -0
  672. package/dist/schemas/film/film-production-style.schema.d.ts +31 -0
  673. package/dist/schemas/film/film-production-style.schema.js +50 -0
  674. package/dist/schemas/film/film-project.schema.d.ts +115 -0
  675. package/dist/schemas/film/film-project.schema.js +50 -0
  676. package/dist/schemas/film/film-prompt-compiler.schema.d.ts +346 -0
  677. package/dist/schemas/film/film-prompt-compiler.schema.js +116 -0
  678. package/dist/schemas/film/film-prompt-performance.schema.d.ts +77 -0
  679. package/dist/schemas/film/film-prompt-performance.schema.js +37 -0
  680. package/dist/schemas/film/film-prompt-repair.schema.d.ts +41 -0
  681. package/dist/schemas/film/film-prompt-repair.schema.js +36 -0
  682. package/dist/schemas/film/film-prompt.schema.d.ts +265 -0
  683. package/dist/schemas/film/film-prompt.schema.js +47 -0
  684. package/dist/schemas/film/film-provider-hints.schema.d.ts +105 -0
  685. package/dist/schemas/film/film-provider-hints.schema.js +50 -0
  686. package/dist/schemas/film/film-provider-job.schema.d.ts +320 -0
  687. package/dist/schemas/film/film-provider-job.schema.js +181 -0
  688. package/dist/schemas/film/film-provider.schema.d.ts +100 -0
  689. package/dist/schemas/film/film-provider.schema.js +51 -0
  690. package/dist/schemas/film/film-queue-enqueue.schema.d.ts +423 -0
  691. package/dist/schemas/film/film-queue-enqueue.schema.js +98 -0
  692. package/dist/schemas/film/film-queue-task-detail.schema.d.ts +981 -0
  693. package/dist/schemas/film/film-queue-task-detail.schema.js +57 -0
  694. package/dist/schemas/film/film-reference-pack.schema.d.ts +48 -0
  695. package/dist/schemas/film/film-reference-pack.schema.js +23 -0
  696. package/dist/schemas/film/film-regeneration-plan.schema.d.ts +124 -0
  697. package/dist/schemas/film/film-regeneration-plan.schema.js +62 -0
  698. package/dist/schemas/film/film-resolve-ingest.schema.d.ts +278 -0
  699. package/dist/schemas/film/film-resolve-ingest.schema.js +35 -0
  700. package/dist/schemas/film/film-resolve-timeline-report.schema.d.ts +323 -0
  701. package/dist/schemas/film/film-resolve-timeline-report.schema.js +43 -0
  702. package/dist/schemas/film/film-review.schema.d.ts +65 -0
  703. package/dist/schemas/film/film-review.schema.js +47 -0
  704. package/dist/schemas/film/film-scene.schema.d.ts +175 -0
  705. package/dist/schemas/film/film-scene.schema.js +38 -0
  706. package/dist/schemas/film/film-screenplay.schema.d.ts +215 -0
  707. package/dist/schemas/film/film-screenplay.schema.js +38 -0
  708. package/dist/schemas/film/film-shot-risk-assessment.schema.d.ts +27 -0
  709. package/dist/schemas/film/film-shot-risk-assessment.schema.js +16 -0
  710. package/dist/schemas/film/film-shot-risk-level.schema.d.ts +5 -0
  711. package/dist/schemas/film/film-shot-risk-level.schema.js +7 -0
  712. package/dist/schemas/film/film-shot.schema.d.ts +564 -0
  713. package/dist/schemas/film/film-shot.schema.js +96 -0
  714. package/dist/schemas/film/film-still-review-artifact.schema.d.ts +154 -0
  715. package/dist/schemas/film/film-still-review-artifact.schema.js +15 -0
  716. package/dist/schemas/film/film-still-review-scores.schema.d.ts +161 -0
  717. package/dist/schemas/film/film-still-review-scores.schema.js +48 -0
  718. package/dist/schemas/film/film-take-comparison.schema.d.ts +437 -0
  719. package/dist/schemas/film/film-take-comparison.schema.js +73 -0
  720. package/dist/schemas/film/film-training-dataset-api.schema.d.ts +641 -0
  721. package/dist/schemas/film/film-training-dataset-api.schema.js +86 -0
  722. package/dist/schemas/film/film-training-dataset.schema.d.ts +171 -0
  723. package/dist/schemas/film/film-training-dataset.schema.js +69 -0
  724. package/dist/schemas/film/film-wardrobe-state.schema.d.ts +42 -0
  725. package/dist/schemas/film/film-wardrobe-state.schema.js +21 -0
  726. package/dist/schemas/film/film-workbench.schema.d.ts +379 -0
  727. package/dist/schemas/film/film-workbench.schema.js +58 -0
  728. package/dist/schemas/film/film-workflow-lineage.schema.d.ts +166 -0
  729. package/dist/schemas/film/film-workflow-lineage.schema.js +83 -0
  730. package/dist/schemas/film/film-world-ontology.schema.d.ts +250 -0
  731. package/dist/schemas/film/film-world-ontology.schema.js +79 -0
  732. package/dist/schemas/film/image-generation-provider.schema.d.ts +392 -0
  733. package/dist/schemas/film/image-generation-provider.schema.js +55 -0
  734. package/dist/schemas/film/index.d.ts +81 -0
  735. package/dist/schemas/film/index.js +97 -0
  736. package/dist/schemas/github/branches.schema.d.ts +61 -0
  737. package/dist/schemas/github/branches.schema.js +17 -0
  738. package/dist/schemas/github/issues.schema.d.ts +145 -0
  739. package/dist/schemas/github/issues.schema.js +27 -0
  740. package/dist/schemas/github/pulls.schema.d.ts +173 -0
  741. package/dist/schemas/github/pulls.schema.js +30 -0
  742. package/dist/schemas/github/repo-create.schema.d.ts +21 -0
  743. package/dist/schemas/github/repo-create.schema.js +11 -0
  744. package/dist/schemas/github/webhook-delivery.schema.d.ts +729 -0
  745. package/dist/schemas/github/webhook-delivery.schema.js +142 -0
  746. package/dist/schemas/github/workflow-runs.schema.d.ts +173 -0
  747. package/dist/schemas/github/workflow-runs.schema.js +52 -0
  748. package/dist/schemas/github-pr-create.schema.d.ts +175 -0
  749. package/dist/schemas/github-pr-create.schema.js +70 -0
  750. package/dist/schemas/github-status.schema.d.ts +418 -0
  751. package/dist/schemas/github-status.schema.js +122 -0
  752. package/dist/schemas/graph/edge-v2.schema.d.ts +85 -0
  753. package/dist/schemas/graph/edge-v2.schema.js +164 -0
  754. package/dist/schemas/graph/graph-query-v2.schema.d.ts +449 -0
  755. package/dist/schemas/graph/graph-query-v2.schema.js +83 -0
  756. package/dist/schemas/graph/index.d.ts +14 -0
  757. package/dist/schemas/graph/index.js +30 -0
  758. package/dist/schemas/graph/node-v2.schema.d.ts +68 -0
  759. package/dist/schemas/graph/node-v2.schema.js +120 -0
  760. package/dist/schemas/graph/sql-security-findings.schema.d.ts +71 -0
  761. package/dist/schemas/graph/sql-security-findings.schema.js +40 -0
  762. package/dist/schemas/guardian/guardian-score.schema.d.ts +13 -0
  763. package/dist/schemas/guardian/guardian-score.schema.js +24 -0
  764. package/dist/schemas/guardian/validate.schema.d.ts +51 -0
  765. package/dist/schemas/guardian/validate.schema.js +36 -0
  766. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.d.ts +44 -0
  767. package/dist/schemas/implement/nextjs-scaffold-manifest.schema.js +25 -0
  768. package/dist/schemas/implement/patch-validation-diagnostic.schema.d.ts +17 -0
  769. package/dist/schemas/implement/patch-validation-diagnostic.schema.js +19 -0
  770. package/dist/schemas/implement-patch-detail.schema.d.ts +344 -0
  771. package/dist/schemas/implement-patch-detail.schema.js +78 -0
  772. package/dist/schemas/implement-patch-lifecycle.schema.d.ts +66 -0
  773. package/dist/schemas/implement-patch-lifecycle.schema.js +317 -0
  774. package/dist/schemas/implement-patch-task.schema.d.ts +29 -0
  775. package/dist/schemas/implement-patch-task.schema.js +26 -0
  776. package/dist/schemas/implement-patch.schema.d.ts +2955 -0
  777. package/dist/schemas/implement-patch.schema.js +573 -0
  778. package/dist/schemas/implement-quarantine.schema.d.ts +215 -0
  779. package/dist/schemas/implement-quarantine.schema.js +71 -0
  780. package/dist/schemas/index.d.ts +5249 -0
  781. package/dist/schemas/index.js +1649 -0
  782. package/dist/schemas/integrations/cursor-execution.schema.d.ts +530 -0
  783. package/dist/schemas/integrations/cursor-execution.schema.js +104 -0
  784. package/dist/schemas/integrations.d.ts +426 -0
  785. package/dist/schemas/integrations.js +149 -0
  786. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.d.ts +130 -0
  787. package/dist/schemas/knowledge/api-retry-kg-persistence.schema.js +28 -0
  788. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.d.ts +46 -0
  789. package/dist/schemas/knowledge/constitution-retry-kg-persistence.schema.js +12 -0
  790. package/dist/schemas/knowledge/coverage.schema.d.ts +98 -0
  791. package/dist/schemas/knowledge/coverage.schema.js +27 -0
  792. package/dist/schemas/knowledge/duplicates.schema.d.ts +62 -0
  793. package/dist/schemas/knowledge/duplicates.schema.js +23 -0
  794. package/dist/schemas/knowledge/graph-query.schema.d.ts +9 -0
  795. package/dist/schemas/knowledge/graph-query.schema.js +7 -0
  796. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.d.ts +40 -0
  797. package/dist/schemas/knowledge/guardian-retry-kg-persistence.schema.js +12 -0
  798. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.d.ts +49 -0
  799. package/dist/schemas/knowledge/implement-retry-kg-persistence.schema.js +14 -0
  800. package/dist/schemas/knowledge/kg-generation-writers.schema.d.ts +338 -0
  801. package/dist/schemas/knowledge/kg-generation-writers.schema.js +73 -0
  802. package/dist/schemas/knowledge/kg-relations.schema.d.ts +70 -0
  803. package/dist/schemas/knowledge/kg-relations.schema.js +157 -0
  804. package/dist/schemas/knowledge/knowledge-graph-summary.schema.d.ts +170 -0
  805. package/dist/schemas/knowledge/knowledge-graph-summary.schema.js +43 -0
  806. package/dist/schemas/knowledge/knowledge-node-provenance.schema.d.ts +41 -0
  807. package/dist/schemas/knowledge/knowledge-node-provenance.schema.js +21 -0
  808. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.d.ts +76 -0
  809. package/dist/schemas/knowledge/knowledge-retry-kg-persistence.schema.js +14 -0
  810. package/dist/schemas/knowledge/knowledge-search.schema.d.ts +29 -0
  811. package/dist/schemas/knowledge/knowledge-search.schema.js +17 -0
  812. package/dist/schemas/knowledge/lineage.schema.d.ts +70 -0
  813. package/dist/schemas/knowledge/lineage.schema.js +28 -0
  814. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.d.ts +45 -0
  815. package/dist/schemas/knowledge/project-brief-knowledge-node.schema.js +30 -0
  816. package/dist/schemas/knowledge/review-readiness.schema.d.ts +104 -0
  817. package/dist/schemas/knowledge/review-readiness.schema.js +30 -0
  818. package/dist/schemas/knowledge/sync-prs.schema.d.ts +54 -0
  819. package/dist/schemas/knowledge/sync-prs.schema.js +21 -0
  820. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.d.ts +37 -0
  821. package/dist/schemas/knowledge/tasks-retry-kg-persistence.schema.js +14 -0
  822. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.d.ts +58 -0
  823. package/dist/schemas/knowledge/ui-retry-kg-persistence.schema.js +14 -0
  824. package/dist/schemas/knowledge-graph-response.schema.d.ts +376 -0
  825. package/dist/schemas/knowledge-graph-response.schema.js +56 -0
  826. package/dist/schemas/logging/logger-context.schema.d.ts +21 -0
  827. package/dist/schemas/logging/logger-context.schema.js +11 -0
  828. package/dist/schemas/metrics/project-kpi-summary.schema.d.ts +368 -0
  829. package/dist/schemas/metrics/project-kpi-summary.schema.js +80 -0
  830. package/dist/schemas/orchestration/durable-stage-progress.schema.d.ts +57 -0
  831. package/dist/schemas/orchestration/durable-stage-progress.schema.js +34 -0
  832. package/dist/schemas/orchestration-execution.d.ts +158 -0
  833. package/dist/schemas/orchestration-execution.js +88 -0
  834. package/dist/schemas/project-bmad-settings-patch.schema.d.ts +66 -0
  835. package/dist/schemas/project-bmad-settings-patch.schema.js +29 -0
  836. package/dist/schemas/project-kind.schema.d.ts +70 -0
  837. package/dist/schemas/project-kind.schema.js +38 -0
  838. package/dist/schemas/project-team.d.ts +48 -0
  839. package/dist/schemas/project-team.js +52 -0
  840. package/dist/schemas/projects/nl-kg-v2-enabled.schema.d.ts +10 -0
  841. package/dist/schemas/projects/nl-kg-v2-enabled.schema.js +16 -0
  842. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.d.ts +78 -0
  843. package/dist/schemas/provider-sentinel/cleanup-manifest.schema.js +27 -0
  844. package/dist/schemas/provider-sentinel/execution-evidence.schema.d.ts +228 -0
  845. package/dist/schemas/provider-sentinel/execution-evidence.schema.js +78 -0
  846. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.d.ts +55 -0
  847. package/dist/schemas/provider-sentinel/film-media-sentinel-config.schema.js +33 -0
  848. package/dist/schemas/provider-sentinel/index.d.ts +6 -0
  849. package/dist/schemas/provider-sentinel/index.js +22 -0
  850. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.d.ts +8 -0
  851. package/dist/schemas/provider-sentinel/provider-sentinel-common.schema.js +9 -0
  852. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.d.ts +743 -0
  853. package/dist/schemas/provider-sentinel/provider-sentinel-result.schema.js +126 -0
  854. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.d.ts +51 -0
  855. package/dist/schemas/provider-sentinel/text-durable-sentinel-config.schema.js +30 -0
  856. package/dist/schemas/publication/manuscript-export.schema.d.ts +249 -0
  857. package/dist/schemas/publication/manuscript-export.schema.js +47 -0
  858. package/dist/schemas/repo/repo-scan-run.schema.d.ts +60 -0
  859. package/dist/schemas/repo/repo-scan-run.schema.js +34 -0
  860. package/dist/schemas/repos/project-repo-link.schema.d.ts +148 -0
  861. package/dist/schemas/repos/project-repo-link.schema.js +28 -0
  862. package/dist/schemas/repos/repo-readiness.schema.d.ts +26 -0
  863. package/dist/schemas/repos/repo-readiness.schema.js +23 -0
  864. package/dist/schemas/repos/repo-scan.schema.d.ts +379 -0
  865. package/dist/schemas/repos/repo-scan.schema.js +98 -0
  866. package/dist/schemas/review/review-coverage.schema.d.ts +2238 -0
  867. package/dist/schemas/review/review-coverage.schema.js +182 -0
  868. package/dist/schemas/review/review-policy.schema.d.ts +87 -0
  869. package/dist/schemas/review/review-policy.schema.js +42 -0
  870. package/dist/schemas/runtime/index.d.ts +6 -0
  871. package/dist/schemas/runtime/index.js +22 -0
  872. package/dist/schemas/runtime/platform-health.schema.d.ts +83 -0
  873. package/dist/schemas/runtime/platform-health.schema.js +31 -0
  874. package/dist/schemas/runtime/probe-harness-gen.schema.d.ts +456 -0
  875. package/dist/schemas/runtime/probe-harness-gen.schema.js +91 -0
  876. package/dist/schemas/runtime/probe.schema.d.ts +1117 -0
  877. package/dist/schemas/runtime/probe.schema.js +278 -0
  878. package/dist/schemas/runtime/runtime-knowledge-node.schema.d.ts +862 -0
  879. package/dist/schemas/runtime/runtime-knowledge-node.schema.js +29 -0
  880. package/dist/schemas/runtime/runtime-loop.schema.d.ts +175 -0
  881. package/dist/schemas/runtime/runtime-loop.schema.js +84 -0
  882. package/dist/schemas/runtime/runtime-run.schema.d.ts +378 -0
  883. package/dist/schemas/runtime/runtime-run.schema.js +30 -0
  884. package/dist/schemas/security/index.d.ts +3 -0
  885. package/dist/schemas/security/index.js +19 -0
  886. package/dist/schemas/security/pre-pr-security-gate.schema.d.ts +486 -0
  887. package/dist/schemas/security/pre-pr-security-gate.schema.js +13 -0
  888. package/dist/schemas/security/security-finding.schema.d.ts +546 -0
  889. package/dist/schemas/security/security-finding.schema.js +138 -0
  890. package/dist/schemas/security/security-knowledge-node.schema.d.ts +285 -0
  891. package/dist/schemas/security/security-knowledge-node.schema.js +21 -0
  892. package/dist/schemas/task-complexity.schema.d.ts +3 -0
  893. package/dist/schemas/task-complexity.schema.js +6 -0
  894. package/dist/schemas/task-evidence-expectations.schema.d.ts +174 -0
  895. package/dist/schemas/task-evidence-expectations.schema.js +35 -0
  896. package/dist/schemas/traceability/index.d.ts +2 -0
  897. package/dist/schemas/traceability/index.js +18 -0
  898. package/dist/schemas/traceability/neuraloom-traceability-file.schema.d.ts +593 -0
  899. package/dist/schemas/traceability/neuraloom-traceability-file.schema.js +93 -0
  900. package/dist/schemas/traceability/traceability-graph.schema.d.ts +712 -0
  901. package/dist/schemas/traceability/traceability-graph.schema.js +112 -0
  902. package/dist/schemas/workflow/build-knowledge.schema.d.ts +672 -0
  903. package/dist/schemas/workflow/build-knowledge.schema.js +92 -0
  904. package/dist/schemas/workflow/build-truth-read-model.schema.d.ts +1218 -0
  905. package/dist/schemas/workflow/build-truth-read-model.schema.js +42 -0
  906. package/dist/schemas/workflow/canonicalization-decision.schema.d.ts +74 -0
  907. package/dist/schemas/workflow/canonicalization-decision.schema.js +22 -0
  908. package/dist/schemas/workflow/code-reality-artifacts.schema.d.ts +914 -0
  909. package/dist/schemas/workflow/code-reality-artifacts.schema.js +150 -0
  910. package/dist/schemas/workflow/code-reality-read-model.schema.d.ts +12708 -0
  911. package/dist/schemas/workflow/code-reality-read-model.schema.js +237 -0
  912. package/dist/schemas/workflow/code-reality-task-traceability.schema.d.ts +124 -0
  913. package/dist/schemas/workflow/code-reality-task-traceability.schema.js +107 -0
  914. package/dist/schemas/workflow/command-center-spine.schema.d.ts +62 -0
  915. package/dist/schemas/workflow/command-center-spine.schema.js +58 -0
  916. package/dist/schemas/workflow/context-bundle.schema.d.ts +111 -0
  917. package/dist/schemas/workflow/context-bundle.schema.js +62 -0
  918. package/dist/schemas/workflow/context-contamination.schema.d.ts +284 -0
  919. package/dist/schemas/workflow/context-contamination.schema.js +65 -0
  920. package/dist/schemas/workflow/deployment-evidence.schema.d.ts +269 -0
  921. package/dist/schemas/workflow/deployment-evidence.schema.js +55 -0
  922. package/dist/schemas/workflow/doc-draft-artifact.schema.d.ts +126 -0
  923. package/dist/schemas/workflow/doc-draft-artifact.schema.js +52 -0
  924. package/dist/schemas/workflow/domain-acceptance.schema.d.ts +206 -0
  925. package/dist/schemas/workflow/domain-acceptance.schema.js +62 -0
  926. package/dist/schemas/workflow/engineering-context.schema.d.ts +2235 -0
  927. package/dist/schemas/workflow/engineering-context.schema.js +566 -0
  928. package/dist/schemas/workflow/existing-capability-classification.schema.d.ts +79 -0
  929. package/dist/schemas/workflow/existing-capability-classification.schema.js +28 -0
  930. package/dist/schemas/workflow/existing-codebase-context.schema.d.ts +865 -0
  931. package/dist/schemas/workflow/existing-codebase-context.schema.js +56 -0
  932. package/dist/schemas/workflow/findings-register.schema.d.ts +148 -0
  933. package/dist/schemas/workflow/findings-register.schema.js +35 -0
  934. package/dist/schemas/workflow/implement-first-batch.schema.d.ts +190 -0
  935. package/dist/schemas/workflow/implement-first-batch.schema.js +49 -0
  936. package/dist/schemas/workflow/implement-gate-status.schema.d.ts +823 -0
  937. package/dist/schemas/workflow/implement-gate-status.schema.js +94 -0
  938. package/dist/schemas/workflow/implement-stale-batch-repair.schema.d.ts +71 -0
  939. package/dist/schemas/workflow/implement-stale-batch-repair.schema.js +28 -0
  940. package/dist/schemas/workflow/implement-task-guard.schema.d.ts +27 -0
  941. package/dist/schemas/workflow/implement-task-guard.schema.js +35 -0
  942. package/dist/schemas/workflow/implementation-packet.schema.d.ts +200 -0
  943. package/dist/schemas/workflow/implementation-packet.schema.js +88 -0
  944. package/dist/schemas/workflow/import-validity.schema.d.ts +177 -0
  945. package/dist/schemas/workflow/import-validity.schema.js +71 -0
  946. package/dist/schemas/workflow/index.d.ts +14 -0
  947. package/dist/schemas/workflow/index.js +30 -0
  948. package/dist/schemas/workflow/ingest-dashboard.schema.d.ts +1094 -0
  949. package/dist/schemas/workflow/ingest-dashboard.schema.js +76 -0
  950. package/dist/schemas/workflow/ingest-gate.schema.d.ts +133 -0
  951. package/dist/schemas/workflow/ingest-gate.schema.js +27 -0
  952. package/dist/schemas/workflow/ingest-inventory.schema.d.ts +203 -0
  953. package/dist/schemas/workflow/ingest-inventory.schema.js +52 -0
  954. package/dist/schemas/workflow/knowledge-graph-result.schema.d.ts +90 -0
  955. package/dist/schemas/workflow/knowledge-graph-result.schema.js +37 -0
  956. package/dist/schemas/workflow/patch-file-scope-policy.schema.d.ts +62 -0
  957. package/dist/schemas/workflow/patch-file-scope-policy.schema.js +38 -0
  958. package/dist/schemas/workflow/patch-review-result.schema.d.ts +139 -0
  959. package/dist/schemas/workflow/patch-review-result.schema.js +58 -0
  960. package/dist/schemas/workflow/plan-approval.schema.d.ts +184 -0
  961. package/dist/schemas/workflow/plan-approval.schema.js +102 -0
  962. package/dist/schemas/workflow/product-readiness-response.schema.d.ts +307 -0
  963. package/dist/schemas/workflow/product-readiness-response.schema.js +81 -0
  964. package/dist/schemas/workflow/product-realization.schema.d.ts +259 -0
  965. package/dist/schemas/workflow/product-realization.schema.js +207 -0
  966. package/dist/schemas/workflow/product-route-manifest.schema.d.ts +785 -0
  967. package/dist/schemas/workflow/product-route-manifest.schema.js +161 -0
  968. package/dist/schemas/workflow/repair-specify-gate.schema.d.ts +33 -0
  969. package/dist/schemas/workflow/repair-specify-gate.schema.js +13 -0
  970. package/dist/schemas/workflow/repo-intel-snapshot.schema.d.ts +471 -0
  971. package/dist/schemas/workflow/repo-intel-snapshot.schema.js +98 -0
  972. package/dist/schemas/workflow/repo-policy-snapshot.schema.d.ts +365 -0
  973. package/dist/schemas/workflow/repo-policy-snapshot.schema.js +83 -0
  974. package/dist/schemas/workflow/review-acceptance.schema.d.ts +182 -0
  975. package/dist/schemas/workflow/review-acceptance.schema.js +66 -0
  976. package/dist/schemas/workflow/review-release-decision-operator.schema.d.ts +220 -0
  977. package/dist/schemas/workflow/review-release-decision-operator.schema.js +65 -0
  978. package/dist/schemas/workflow/route-manifest.schema.d.ts +239 -0
  979. package/dist/schemas/workflow/route-manifest.schema.js +82 -0
  980. package/dist/schemas/workflow/runtime-contract.schema.d.ts +384 -0
  981. package/dist/schemas/workflow/runtime-contract.schema.js +71 -0
  982. package/dist/schemas/workflow/schema-page-read-model.schema.d.ts +185 -0
  983. package/dist/schemas/workflow/schema-page-read-model.schema.js +29 -0
  984. package/dist/schemas/workflow/ship-closure.schema.d.ts +516 -0
  985. package/dist/schemas/workflow/ship-closure.schema.js +96 -0
  986. package/dist/schemas/workflow/software-workflow-lineage.schema.d.ts +384 -0
  987. package/dist/schemas/workflow/software-workflow-lineage.schema.js +54 -0
  988. package/dist/schemas/workflow/specify-mutation-health.schema.d.ts +72 -0
  989. package/dist/schemas/workflow/specify-mutation-health.schema.js +24 -0
  990. package/dist/schemas/workflow/step-evidence-resolution.schema.d.ts +49 -0
  991. package/dist/schemas/workflow/step-evidence-resolution.schema.js +36 -0
  992. package/dist/schemas/workflow/step-gate.schema.d.ts +312 -0
  993. package/dist/schemas/workflow/step-gate.schema.js +90 -0
  994. package/dist/schemas/workflow/task-capsule.schema.d.ts +414 -0
  995. package/dist/schemas/workflow/task-capsule.schema.js +99 -0
  996. package/dist/schemas/workflow/tasks-github-sync.schema.d.ts +60 -0
  997. package/dist/schemas/workflow/tasks-github-sync.schema.js +24 -0
  998. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.d.ts +86 -0
  999. package/dist/schemas/workflow/tasks-repair-stale-implementing.schema.js +38 -0
  1000. package/dist/schemas/workflow/tasks-truth.schema.d.ts +616 -0
  1001. package/dist/schemas/workflow/tasks-truth.schema.js +76 -0
  1002. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.d.ts +210 -0
  1003. package/dist/schemas/workflow/tasks-unblock-implement-handoff.schema.js +17 -0
  1004. package/dist/schemas/workflow/test-obligation-manifest.schema.d.ts +306 -0
  1005. package/dist/schemas/workflow/test-obligation-manifest.schema.js +131 -0
  1006. package/dist/schemas/workflow/workflow-doctor.schema.d.ts +942 -0
  1007. package/dist/schemas/workflow/workflow-doctor.schema.js +141 -0
  1008. package/dist/schemas/workflow/workflow-evidence.schema.d.ts +67 -0
  1009. package/dist/schemas/workflow/workflow-evidence.schema.js +23 -0
  1010. package/dist/schemas/workflow/workflow-intelligence-graph.schema.d.ts +415 -0
  1011. package/dist/schemas/workflow/workflow-intelligence-graph.schema.js +213 -0
  1012. package/dist/schemas/workflow/workflow-run-event.schema.d.ts +41 -0
  1013. package/dist/schemas/workflow/workflow-run-event.schema.js +55 -0
  1014. package/dist/schemas/workflow-ci-step-artifacts.schema.d.ts +60 -0
  1015. package/dist/schemas/workflow-ci-step-artifacts.schema.js +15 -0
  1016. package/dist/schemas/workflow-implement-read-model.schema.d.ts +86 -0
  1017. package/dist/schemas/workflow-implement-read-model.schema.js +22 -0
  1018. package/dist/schemas/workflow-knowledge-step-artifacts.schema.d.ts +60 -0
  1019. package/dist/schemas/workflow-knowledge-step-artifacts.schema.js +15 -0
  1020. package/dist/schemas/workflow-progression.d.ts +1955 -0
  1021. package/dist/schemas/workflow-progression.js +259 -0
  1022. package/dist/telemetry/index.d.ts +194 -0
  1023. package/dist/telemetry/index.js +93 -0
  1024. package/dist/transformation/canonical-semantic-model.d.ts +233 -0
  1025. package/dist/transformation/canonical-semantic-model.js +61 -0
  1026. package/dist/transformation/index.d.ts +6 -0
  1027. package/dist/transformation/index.js +22 -0
  1028. package/dist/transformation/transformation-registry.d.ts +136 -0
  1029. package/dist/transformation/transformation-registry.js +100 -0
  1030. package/dist/types/ai-responses.d.ts +98 -0
  1031. package/dist/types/ai-responses.js +42 -0
  1032. package/dist/types/ai.d.ts +4 -0
  1033. package/dist/types/ai.js +2 -0
  1034. package/dist/types/audiobook-embed.d.ts +22 -0
  1035. package/dist/types/audiobook-embed.js +2 -0
  1036. package/dist/types/audiobook.d.ts +30 -0
  1037. package/dist/types/audiobook.js +2 -0
  1038. package/dist/types/chapter-revision.types.d.ts +6 -0
  1039. package/dist/types/chapter-revision.types.js +6 -0
  1040. package/dist/types/ci.d.ts +14 -0
  1041. package/dist/types/ci.js +2 -0
  1042. package/dist/types/codebase.d.ts +309 -0
  1043. package/dist/types/codebase.js +83 -0
  1044. package/dist/types/community-credit-transaction-type.d.ts +2 -0
  1045. package/dist/types/community-credit-transaction-type.js +9 -0
  1046. package/dist/types/community-membership-tier.d.ts +2 -0
  1047. package/dist/types/community-membership-tier.js +4 -0
  1048. package/dist/types/community-operator-role.d.ts +9 -0
  1049. package/dist/types/community-operator-role.js +13 -0
  1050. package/dist/types/community-stage.d.ts +3 -0
  1051. package/dist/types/community-stage.js +19 -0
  1052. package/dist/types/graph-canvas.d.ts +109 -0
  1053. package/dist/types/graph-canvas.js +25 -0
  1054. package/dist/types/graph-question-mapping.d.ts +33 -0
  1055. package/dist/types/graph-question-mapping.js +36 -0
  1056. package/dist/types/index.d.ts +2187 -0
  1057. package/dist/types/index.js +53 -0
  1058. package/dist/types/manuscript-checks.d.ts +1 -0
  1059. package/dist/types/manuscript-checks.js +2 -0
  1060. package/dist/types/orchestration-execution.d.ts +16 -0
  1061. package/dist/types/orchestration-execution.js +5 -0
  1062. package/dist/types/product-readiness.d.ts +44 -0
  1063. package/dist/types/product-readiness.js +2 -0
  1064. package/dist/types/product-route-manifest.d.ts +5 -0
  1065. package/dist/types/product-route-manifest.js +21 -0
  1066. package/dist/types/project-capabilities.d.ts +20 -0
  1067. package/dist/types/project-capabilities.js +40 -0
  1068. package/dist/types/project-kind.d.ts +68 -0
  1069. package/dist/types/project-kind.js +216 -0
  1070. package/dist/types/pwa.d.ts +29 -0
  1071. package/dist/types/pwa.js +6 -0
  1072. package/dist/types/repo.d.ts +2 -0
  1073. package/dist/types/repo.js +2 -0
  1074. package/dist/types/resolve-model-policy-input.d.ts +37 -0
  1075. package/dist/types/resolve-model-policy-input.js +2 -0
  1076. package/dist/types/settings.d.ts +13 -0
  1077. package/dist/types/settings.js +20 -0
  1078. package/dist/types/supabase-generated.d.ts +1122 -0
  1079. package/dist/types/supabase-generated.js +13 -0
  1080. package/dist/types/workflow-action-panel.d.ts +41 -0
  1081. package/dist/types/workflow-action-panel.js +2 -0
  1082. package/dist/types/workflow-command-center.d.ts +50 -0
  1083. package/dist/types/workflow-command-center.js +6 -0
  1084. package/dist/types/workflow-completion.d.ts +154 -0
  1085. package/dist/types/workflow-completion.js +2 -0
  1086. package/dist/types/workflow-graph.d.ts +786 -0
  1087. package/dist/types/workflow-graph.js +119 -0
  1088. package/dist/ui/domain-templates.d.ts +35 -0
  1089. package/dist/ui/domain-templates.js +242 -0
  1090. package/dist/utils/github-closing-keywords.d.ts +8 -0
  1091. package/dist/utils/github-closing-keywords.js +27 -0
  1092. package/dist/utils/implement-pr-batch-policy.d.ts +17 -0
  1093. package/dist/utils/implement-pr-batch-policy.js +72 -0
  1094. package/dist/utils/implement-pr-batch.d.ts +19 -0
  1095. package/dist/utils/implement-pr-batch.js +95 -0
  1096. package/dist/utils/implement-pr-metadata.d.ts +32 -0
  1097. package/dist/utils/implement-pr-metadata.js +41 -0
  1098. package/dist/workflow/api-route-key-resolver.d.ts +11 -0
  1099. package/dist/workflow/api-route-key-resolver.js +51 -0
  1100. package/dist/workflow/assurance-selector-keys.d.ts +134 -0
  1101. package/dist/workflow/assurance-selector-keys.js +145 -0
  1102. package/dist/workflow/channel-registry.d.ts +959 -0
  1103. package/dist/workflow/channel-registry.js +1475 -0
  1104. package/dist/workflow/evaluate-existing-codebase-readiness.d.ts +28 -0
  1105. package/dist/workflow/evaluate-existing-codebase-readiness.js +329 -0
  1106. package/dist/workflow/evaluate-ingest-gate.d.ts +11 -0
  1107. package/dist/workflow/evaluate-ingest-gate.js +168 -0
  1108. package/dist/workflow/evaluate-repair-specify-gate.d.ts +10 -0
  1109. package/dist/workflow/evaluate-repair-specify-gate.js +93 -0
  1110. package/dist/workflow/existing-codebase-step-area-map.d.ts +4 -0
  1111. package/dist/workflow/existing-codebase-step-area-map.js +22 -0
  1112. package/dist/workflow/film-spine-nav-aliases.d.ts +23 -0
  1113. package/dist/workflow/film-spine-nav-aliases.js +76 -0
  1114. package/dist/workflow/index.d.ts +23 -0
  1115. package/dist/workflow/index.js +39 -0
  1116. package/dist/workflow/is-code-reality-semantically-mapped.d.ts +8 -0
  1117. package/dist/workflow/is-code-reality-semantically-mapped.js +21 -0
  1118. package/dist/workflow/is-repository-scan-complete.d.ts +11 -0
  1119. package/dist/workflow/is-repository-scan-complete.js +28 -0
  1120. package/dist/workflow/normalize-workflow-execution-mode.d.ts +4 -0
  1121. package/dist/workflow/normalize-workflow-execution-mode.js +16 -0
  1122. package/dist/workflow/project-kind-normalizer.d.ts +34 -0
  1123. package/dist/workflow/project-kind-normalizer.js +162 -0
  1124. package/dist/workflow/resolve-workflow-variant.d.ts +42 -0
  1125. package/dist/workflow/resolve-workflow-variant.js +101 -0
  1126. package/dist/workflow/step-id-canonical.d.ts +26 -0
  1127. package/dist/workflow/step-id-canonical.js +58 -0
  1128. package/dist/workflow/test-obligation-policy.d.ts +12 -0
  1129. package/dist/workflow/test-obligation-policy.js +82 -0
  1130. package/dist/workflow/test-policy-registry.d.ts +45 -0
  1131. package/dist/workflow/test-policy-registry.js +190 -0
  1132. package/dist/workflow/workflow-assurance-completion-probe-gates.d.ts +43 -0
  1133. package/dist/workflow/workflow-assurance-completion-probe-gates.js +88 -0
  1134. package/dist/workflow/workflow-assurance-manifest.d.ts +84 -0
  1135. package/dist/workflow/workflow-assurance-manifest.js +309 -0
  1136. package/dist/workflow/workflow-assurance-wiring-tiers.d.ts +13 -0
  1137. package/dist/workflow/workflow-assurance-wiring-tiers.js +32 -0
  1138. package/dist/workflow/workflow-doctor-closure.d.ts +16 -0
  1139. package/dist/workflow/workflow-doctor-closure.js +245 -0
  1140. package/package.json +82 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,2203 @@
1
+ /**
2
+ * NeuraLoom API Routes - Single Source of Truth for Route Constants
3
+ * All API routes must be imported from this package
4
+ */
5
+ export declare const API_BASE: "/api";
6
+ export declare const API_VERSION: "v2";
7
+ export declare const API_PREFIX: "/api";
8
+ /** Workflow + knowledge hybrid graph (D3 explorer). */
9
+ export declare const GRAPH_ROUTES: {
10
+ readonly hybrid: (projectId: string) => string;
11
+ readonly knowledge: (projectId: string) => string;
12
+ readonly workflow: (projectId: string, query?: {
13
+ include?: string;
14
+ }) => string;
15
+ /** MS-01 typed overlays — POST JSON bodies validated via contracts (no route-local Zod). */
16
+ readonly queryRequirementCoverage: "/api/graph/query/requirement-coverage";
17
+ readonly queryRouteTruth: "/api/graph/query/route-truth";
18
+ readonly queryDriftForFile: "/api/graph/query/drift-for-file";
19
+ };
20
+ /** Workflow-specific routes for gates, command center, and UI spine (addresses #538). */
21
+ export declare const WORKFLOW_ROUTES: {
22
+ readonly gates: {
23
+ readonly approve: (gateId: string) => string;
24
+ readonly reject: (gateId: string) => string;
25
+ };
26
+ /** Coding Quality Spine — task capsule + context bundle (Wave 4). */
27
+ readonly capsule: {
28
+ /** POST — generate a task capsule from approved Spec + Plan. */
29
+ readonly generate: (projectId: string) => string;
30
+ /** GET — retrieve an existing task capsule. */
31
+ readonly get: (projectId: string, taskId: string) => string;
32
+ };
33
+ readonly contextBundle: {
34
+ /** GET — compile and return a minimal context bundle for a task. */
35
+ readonly compile: (projectId: string, taskId: string) => string;
36
+ };
37
+ /** Engineering context — durable task checkpoints (server assigns sequence). */
38
+ readonly checkpoint: {
39
+ /** POST — record a checkpoint; supersedes the previous one for the task. */
40
+ readonly create: (projectId: string) => string;
41
+ /** GET — latest checkpoint for a task. */
42
+ readonly latest: (projectId: string, taskId: string) => string;
43
+ };
44
+ /** Engineering context — verification result records. */
45
+ readonly verification: {
46
+ /** POST — record one verification result. */
47
+ readonly record: (projectId: string) => string;
48
+ /** GET — verification results for a task (newest first, limit 50). */
49
+ readonly list: (projectId: string, taskId: string) => string;
50
+ };
51
+ /** Engineering context — resume from the latest checkpoint with evidence invalidation. */
52
+ readonly resume: {
53
+ /** POST — invalidate stale evidence, rebuild + persist the brief. */
54
+ readonly run: (projectId: string) => string;
55
+ };
56
+ /** Engineering context — bounded, revision-aware worker brief. */
57
+ readonly engineeringBrief: {
58
+ /** GET — compile, persist and return the engineering brief for a task. */
59
+ readonly compile: (projectId: string, taskId: string) => string;
60
+ };
61
+ readonly parityCheck: {
62
+ /** POST — persist a parityCheckResult artifact from a CI architecture test run. */
63
+ readonly persist: (projectId: string) => string;
64
+ };
65
+ /** Coding Quality Spine — test obligation manifest (Wave 12). */
66
+ readonly testObligation: {
67
+ /** POST — upsert the TestObligationManifest for a project/PR. */
68
+ readonly upsert: (projectId: string) => string;
69
+ /** GET — retrieve the current TestObligationManifest for a project. */
70
+ readonly get: (projectId: string) => string;
71
+ };
72
+ /** Ship + Review + Iteration closure orchestrator (pilot / backfill). */
73
+ readonly shipClosure: (projectId: string) => string;
74
+ /** Generated-app product readiness (routes, auth, persistence, domain checks). */
75
+ readonly productReadiness: (projectId: string) => string;
76
+ /** Operator release decision producer (PR2 — reviewReleaseDecision + reviewAcceptance). */
77
+ readonly reviewReleaseDecision: (projectId: string) => string;
78
+ /** NeuraLoom → Cortex product release package handoff. */
79
+ readonly sendToCortex: (projectId: string) => string;
80
+ };
81
+ /** Guardian product APIs under /api/guardian (distinct from infra guardian under /api/infra/guardian). */
82
+ export declare const GUARDIAN_ROUTES: {
83
+ readonly validate: "/api/guardian/validate";
84
+ readonly insights: "/api/guardian/insights";
85
+ readonly adapters: "/api/guardian/adapters";
86
+ readonly trend: "/api/guardian/trend";
87
+ readonly status: "/api/guardian/status";
88
+ readonly summary: "/api/guardian/summary";
89
+ readonly telemetry: "/api/guardian/telemetry";
90
+ };
91
+ /** Live orchestration SSE stream (workflow graph notifications). */
92
+ export declare const ORCHESTRATION_ROUTES: {
93
+ readonly stream: (projectId: string) => string;
94
+ };
95
+ /** Repository scan triggers (Knowledge / GitHub linkage). */
96
+ export declare const REPO_ROUTES: {
97
+ readonly scan: "/api/repo/scan";
98
+ /** Replay a completed scan persist into the Cortex outbox. Does not start a scan. */
99
+ readonly emitToCortex: (projectId: string) => string;
100
+ };
101
+ /** Code Reality Graph read-model slices (#1252). */
102
+ export declare const CODE_REALITY_ROUTES: {
103
+ /** GET — task-targeted Code Reality evidence (exact selection + one-hop relationships). */
104
+ readonly evidence: (projectId: string, query?: {
105
+ terms?: readonly string[];
106
+ paths?: readonly string[];
107
+ maxNodes?: number;
108
+ hops?: 0 | 1;
109
+ continuationToken?: string | null;
110
+ }) => string;
111
+ readonly overview: (projectId: string) => string;
112
+ readonly routes: (projectId: string) => string;
113
+ readonly api: (projectId: string) => string;
114
+ readonly schema: (projectId: string) => string;
115
+ readonly ui: (projectId: string) => string;
116
+ readonly workflow: (projectId: string) => string;
117
+ readonly governance: (projectId: string) => string;
118
+ readonly build: (projectId: string) => string;
119
+ readonly ship: (projectId: string) => string;
120
+ readonly findings: (projectId: string) => string;
121
+ readonly duplicates: (projectId: string) => string;
122
+ readonly orphans: (projectId: string) => string;
123
+ readonly splitBrain: (projectId: string) => string;
124
+ readonly performance: (projectId: string) => string;
125
+ readonly security: (projectId: string) => string;
126
+ readonly stepContext: (projectId: string, step: string) => string;
127
+ };
128
+ /**
129
+ * Internal proof-run recorder (bridge-15N / #1399) — browser-QA harness and
130
+ * server-side gate evaluators POST here; the route validates + writes an
131
+ * honest `ProofRunRecorded` envelope to the `external_exports` outbox
132
+ * (service-role only — RLS denies direct client access to that table).
133
+ */
134
+ export declare const PROOF_RUN_ROUTES: {
135
+ readonly record: "/api/internal/proof-runs";
136
+ };
137
+ /** Implement step: readiness check and patch-set lifecycle (generate → validate → push → PR). */
138
+ export declare const IMPLEMENT_ROUTES: {
139
+ readonly readiness: (projectId: string) => string;
140
+ readonly readinessLite: (projectId: string) => string;
141
+ readonly diagnostics: (projectId: string) => string;
142
+ /** GET recent `implementation_patch_set` rows (newest first). */
143
+ readonly history: (projectId: string) => string;
144
+ /** GET lifecycle + validation + task statuses for one patch set ID. */
145
+ readonly patchDetail: (projectId: string, patchSetId: string) => string;
146
+ readonly patches: {
147
+ readonly validate: (projectId: string, patchSetId: string) => string;
148
+ readonly push: (projectId: string, patchSetId: string) => string;
149
+ readonly pr: (projectId: string, patchSetId: string) => string;
150
+ readonly quarantine: (projectId: string, patchSetId: string) => string;
151
+ readonly proofSource: (projectId: string, patchSetId: string) => string;
152
+ };
153
+ readonly nextPacket: (projectId: string) => string;
154
+ readonly generateNextPacket: (projectId: string) => string;
155
+ readonly recoverStalePipeline: (projectId: string) => string;
156
+ readonly runSelectedProof: (projectId: string) => string;
157
+ readonly startProofPr: (projectId: string) => string;
158
+ /**
159
+ * POST — heal missing @types/* on an existing Next.js baseline so Vercel
160
+ * builds stop failing with "please install @types/react and @types/node".
161
+ */
162
+ readonly baselineTypesHeal: (projectId: string) => string;
163
+ readonly skipTasks: (projectId: string) => string;
164
+ readonly runs: {
165
+ readonly start: (projectId: string) => string;
166
+ readonly detail: (projectId: string, runId: string) => string;
167
+ readonly process: (projectId: string, runId: string) => string;
168
+ readonly pause: (projectId: string, runId: string) => string;
169
+ readonly resume: (projectId: string, runId: string) => string;
170
+ readonly cancel: (projectId: string, runId: string) => string;
171
+ readonly batches: (projectId: string, runId: string) => string;
172
+ };
173
+ };
174
+ /** Sprint I1: canonical GET paths for implement patch list/detail (same URLs as IMPLEMENT_ROUTES.history / patchDetail). */
175
+ export declare const IMPLEMENT_PATCHES_LIST: (projectId: string) => string;
176
+ export declare const IMPLEMENT_PATCHES_DETAIL: (projectId: string, patchSetId: string) => string;
177
+ /** Match `packages/frontend/src/app/api/auth/*` (no legacy `/auth/login` spine). */
178
+ export declare const AUTH_ROUTES: {
179
+ readonly user: "/api/auth/user";
180
+ readonly role: "/api/auth/role";
181
+ readonly session: "/api/auth/session";
182
+ readonly sessionContext: "/api/auth/session-context";
183
+ readonly signOut: "/api/auth/signout";
184
+ };
185
+ /** Match live routes under `/api/users/*`. */
186
+ export declare const USER_ROUTES: {
187
+ readonly search: "/api/users/search";
188
+ readonly whoami: "/api/whoami";
189
+ };
190
+ /** Approval workflow routes under /api/approvals/* */
191
+ export declare const APPROVAL_ROUTES: {
192
+ readonly list: "/api/approvals";
193
+ readonly auto: "/api/approvals/auto";
194
+ };
195
+ export declare const PROJECT_ROUTES: {
196
+ readonly list: "/api/projects";
197
+ readonly create: "/api/projects";
198
+ readonly getById: (id: string) => string;
199
+ readonly update: (id: string) => string;
200
+ readonly delete: (id: string) => string;
201
+ readonly updateStatus: (id: string) => string;
202
+ readonly getSpecs: (id: string) => string;
203
+ readonly getPlans: (id: string) => string;
204
+ readonly getTasks: (id: string) => string;
205
+ readonly getMetrics: (id: string) => string;
206
+ /** Evidence-backed KPI rollup + stage-run snapshot (MS-08). */
207
+ readonly metricsSummary: (id: string) => string;
208
+ /** Per-step workflow status (nav, gates, DB signals) */
209
+ readonly workflowProgression: (id: string) => string;
210
+ /** Same payload as workflowProgression (canonical read-model alias) */
211
+ readonly workflowState: (id: string) => string;
212
+ /** Knowledge step workflow_artifacts rows for Knowledge UI (#504 parity). */
213
+ readonly workflowKnowledgeStepArtifacts: (id: string) => string;
214
+ readonly workflowCiStepArtifacts: (id: string) => string;
215
+ /** Wave 9: control artifacts for the Quality tab. */
216
+ readonly qualityArtifacts: (id: string) => string;
217
+ /** Per-step metrics card data (replaces browser Supabase workflow_artifacts / ai_runs reads). */
218
+ readonly workflowStepStats: (id: string, stepId: string) => string;
219
+ /** Internal diagnostics: Specify brief persistence + generated spec linkage. */
220
+ readonly specifyMutationHealth: (id: string) => string;
221
+ /** Scoped active/archived specification read model for Specify operator view (PR8). */
222
+ readonly specificationsReadModel: (id: string) => string;
223
+ /** Recent ai_runs + workflow_artifacts rows for one workflow step (AIOutputDisplay). */
224
+ readonly workflowStepAiOutput: (id: string, step: string) => string;
225
+ /** Plan step: latest plan gate + planFinal artifact + drift (browser must not read Supabase tables directly). */
226
+ readonly planGateStatus: (id: string) => string;
227
+ readonly ingestGate: (id: string) => string;
228
+ readonly ingestDashboard: (id: string) => string;
229
+ readonly existingCodebaseContext: (id: string, area?: string) => string;
230
+ /** Generated rows from public.schemas for the Schema workflow page. */
231
+ readonly generatedSchemas: (id: string) => string;
232
+ /** Repo migrations + drift findings + generated schemas for Schema operator view. */
233
+ readonly schemaReadModel: (id: string) => string;
234
+ /** Film production creative cockpit read model (artifacts + rows + lineage summaries). */
235
+ readonly filmCreativeReadModel: (id: string) => string;
236
+ /** FP-14 unified production read-model (creative model + derived steps/blockers). */
237
+ readonly filmProductionReadModel: (id: string) => string;
238
+ /** Generated rows from public.api_definitions for the API workflow page. */
239
+ readonly generatedApiDefinitions: (id: string) => string;
240
+ /** API step KG coverage gate status. */
241
+ readonly apiKgGateStatus: (id: string) => string;
242
+ /** Repair API KG rollup / APIEndpoint / HAS_ENDPOINT from persisted api_definitions (no AI regen). */
243
+ readonly apiRetryKgPersistence: (id: string) => string;
244
+ /** UI step KG coverage gate status. */
245
+ readonly uiKgCoverage: (id: string) => string;
246
+ /** Repair UI KG rollup / UIComponent / HAS_COMPONENT from persisted component_definitions (no AI regen). */
247
+ readonly uiRetryKgPersistence: (id: string) => string;
248
+ /** Constitution step KG coverage gate status. */
249
+ readonly constitutionKgCoverage: (id: string) => string;
250
+ /** Repair Constitution KG rollup / ConstitutionRule from persisted constitutions (no AI regen). */
251
+ readonly constitutionRetryKgPersistence: (id: string) => string;
252
+ /** Guardian step KG coverage gate status. */
253
+ readonly guardianKgCoverage: (id: string) => string;
254
+ /** Server-side Guardian score / violation policy (operator gate). */
255
+ readonly guardianGateStatus: (id: string) => string;
256
+ /** Recent Guardian validation scores (guardian_validations, no new table). */
257
+ readonly guardianScoreHistory: (id: string) => string;
258
+ /** Per-rule drilldown: constitution rule × latest validation violations. */
259
+ readonly guardianRuleDetail: (projectId: string, ruleId: string) => string;
260
+ /** Repair Guardian KG rollup / GuardianReport from persisted guardian_validations (no AI regen). */
261
+ readonly guardianRetryKgPersistence: (id: string) => string;
262
+ /** Tasks step KG coverage gate status. */
263
+ readonly tasksKgCoverage: (id: string) => string;
264
+ /** Repair Tasks KG rollup from persisted workflow_artifacts (no AI regen). */
265
+ readonly tasksRetryKgPersistence: (id: string) => string;
266
+ /** Tasks truth read-model only (no public.tasks row payload). */
267
+ readonly tasksTruth: (id: string) => string;
268
+ /** Idempotent tasks truth repair (KG rollup + divergence flags). */
269
+ readonly tasksReconcile: (id: string) => string;
270
+ /** Retry GitHub issue projection for all pending tasks (idempotent). */
271
+ readonly tasksSyncGithubIssues: (id: string) => string;
272
+ readonly tasksRepairStaleImplementing: (id: string) => string;
273
+ readonly tasksUnblockImplementHandoff: (id: string) => string;
274
+ readonly tasksImplementUnblockPreview: (id: string) => string;
275
+ readonly implementSuggestedFirstBatch: (id: string) => string;
276
+ readonly implementNextSafeTask: (id: string) => string;
277
+ /** Implement step KG coverage gate status. */
278
+ readonly implementKgCoverage: (id: string) => string;
279
+ /** Implement preflight — tasks truth, pipeline evidence, Cursor-safe fields. */
280
+ readonly implementGateStatus: (id: string) => string;
281
+ /** Reset tasks stuck in `implementing` with no active patch/run back to selectable. */
282
+ readonly implementRepairStaleBatch: (id: string) => string;
283
+ /** Shared Build truth (Tasks + Implement + Knowledge) computed once.
284
+ * Segment is `build-spine` (not `build`) because `.gitignore` excludes `build/` dirs. */
285
+ readonly buildTruth: (id: string) => string;
286
+ /** Build Knowledge closure (improvement findings + lessons manifest). */
287
+ readonly buildKnowledgeClosure: (id: string) => string;
288
+ readonly buildKnowledgeClose: (id: string) => string;
289
+ /** Implement step graph data (patches, tasks, PRs, files, issues). */
290
+ readonly implementGraph: (id: string) => string;
291
+ /** Knowledge step KG rollup + staleness gate status. */
292
+ readonly knowledgeKgCoverage: (id: string) => string;
293
+ /** Repair Knowledge KG rollup from accepted knowledgeFinal artifact (no AI regen). */
294
+ readonly knowledgeRetryKgPersistence: (id: string) => string;
295
+ /** Repair Implement KG rollup from persisted workflow_artifacts (no AI regen). */
296
+ readonly implementRetryKgPersistence: (id: string) => string;
297
+ /** Controlled workflow step reset with dry-run support. */
298
+ readonly workflowResetStep: (id: string) => string;
299
+ /** Sprint K1-C (#576): tasks appearing in multiple open PRs (duplicate lineage). */
300
+ readonly knowledgeLineageDuplicates: (id: string) => string;
301
+ /** K1-D (#577): PR↔task acceptance-criteria coverage vs lineage file paths. */
302
+ readonly knowledgeLineageCoverage: (id: string) => string;
303
+ /** Bridge-02 (#1394): query + refresh software workflow PR↔task↔proof lineage. */
304
+ readonly softwareWorkflowLineage: (id: string) => string;
305
+ readonly generateReport: (id: string) => string;
306
+ readonly archive: (id: string) => string;
307
+ readonly stories: (id: string) => string;
308
+ readonly compliance: (id: string) => string;
309
+ readonly review: (id: string) => string;
310
+ /** MS-03 Wave 1: requirement × evidence coverage from KG substrate + lineage artifacts. */
311
+ readonly reviewCoverage: (id: string) => string;
312
+ /** MS-03 Wave 1: deterministic ship/block gate (server-side only). */
313
+ readonly reviewDecision: (id: string) => string;
314
+ /** MS-03 closeout: explicit human release approval graph evidence. */
315
+ readonly reviewApproval: (id: string) => string;
316
+ /** MS-03 closeout: graph-backed review report export. */
317
+ readonly reviewExport: (id: string) => string;
318
+ readonly settings: (id: string) => string;
319
+ /** Export without format query (handler default). Prefer `export(id, format)` when format known. */
320
+ readonly exportRoot: (id: string) => string;
321
+ /** Canonical codebase workspace snapshot (scan + knowledge graph) */
322
+ readonly projectCodebase: (id: string) => string;
323
+ /** GET project team members list */
324
+ readonly team: (id: string) => string;
325
+ /** Invite a registered user by email (inserts project_team row) */
326
+ readonly teamInvite: (id: string) => string;
327
+ /** Project data export (blob); `format` is a query param (e.g. json, zip, stories). */
328
+ readonly export: (id: string, format: string) => string;
329
+ /** Danger Zone: delete all workflow_artifacts for a project (owner only). */
330
+ readonly resetWorkflow: (id: string) => string;
331
+ /** Clear stuck `ai_runs` for a workflow step (owner only; marks running rows failed). */
332
+ readonly stepRunReset: (projectId: string, stepId: string) => string;
333
+ /** Create orchestrations row for live WorkflowRunConsole (before POST /api/ai/.../generate). */
334
+ readonly projectOrchestrations: (id: string) => string;
335
+ /** Canonical project→repo linkage + repo_readiness. */
336
+ readonly repo: (id: string) => string;
337
+ /** Project activity feed (used by useProjectActivity hook). */
338
+ readonly activity: (id: string) => string;
339
+ };
340
+ /** GET orchestration_events for an orchestration run (incremental poll via `since`). */
341
+ export declare const ORCHESTRATION_EVENTS: (orchestrationId: string) => string;
342
+ /** Canonical per-project LLM policy (`project_settings.settings.modelPolicy`). */
343
+ export declare const PROJECT_MODEL_SETTINGS: (projectId: string) => string;
344
+ /** Per-project model quality matrix (Guardian + run telemetry aggregates). */
345
+ export declare const PROJECT_MODEL_QUALITY: (projectId: string) => string;
346
+ /** Reserved path for model usage telemetry (M3). */
347
+ export declare const PROJECT_MODEL_USAGE: (projectId: string) => string;
348
+ export declare const SPEC_ROUTES: {
349
+ readonly list: "/api/specs";
350
+ readonly create: "/api/specs";
351
+ readonly getById: (id: string) => string;
352
+ readonly update: (id: string) => string;
353
+ readonly delete: (id: string) => string;
354
+ readonly approve: (id: string) => string;
355
+ readonly reject: (id: string) => string;
356
+ readonly getPlans: (id: string) => string;
357
+ };
358
+ export declare const PLAN_ROUTES: {
359
+ readonly list: "/api/plans";
360
+ readonly create: "/api/plans";
361
+ readonly getById: (id: string) => string;
362
+ readonly update: (id: string) => string;
363
+ readonly delete: (id: string) => string;
364
+ readonly approve: (id: string) => string;
365
+ readonly start: (id: string) => string;
366
+ readonly complete: (id: string) => string;
367
+ readonly getTasks: (id: string) => string;
368
+ readonly getDependencies: (id: string) => string;
369
+ };
370
+ export declare const TASK_ROUTES: {
371
+ readonly list: "/api/tasks";
372
+ readonly create: "/api/tasks";
373
+ readonly getById: (id: string) => string;
374
+ readonly update: (id: string) => string;
375
+ readonly delete: (id: string) => string;
376
+ readonly updateStatus: (id: string) => string;
377
+ readonly assign: (id: string) => string;
378
+ readonly complete: (id: string) => string;
379
+ readonly getDependencies: (id: string) => string;
380
+ readonly getTimeTracking: (id: string) => string;
381
+ };
382
+ export declare const ML_ROUTES: {
383
+ readonly models: {
384
+ readonly list: "/api/ml/models";
385
+ readonly create: "/api/ml/models";
386
+ readonly getById: (id: string) => string;
387
+ readonly update: (id: string) => string;
388
+ readonly delete: (id: string) => string;
389
+ readonly train: (id: string) => string;
390
+ readonly deploy: (id: string) => string;
391
+ readonly predict: (id: string) => string;
392
+ readonly getMetrics: (id: string) => string;
393
+ };
394
+ readonly datasets: {
395
+ readonly list: "/api/ml/datasets";
396
+ readonly create: "/api/ml/datasets";
397
+ readonly getById: (id: string) => string;
398
+ readonly update: (id: string) => string;
399
+ readonly delete: (id: string) => string;
400
+ readonly upload: (id: string) => string;
401
+ readonly validate: (id: string) => string;
402
+ };
403
+ readonly experiments: {
404
+ readonly list: "/api/ml/experiments";
405
+ readonly create: "/api/ml/experiments";
406
+ readonly getById: (id: string) => string;
407
+ readonly update: (id: string) => string;
408
+ readonly delete: (id: string) => string;
409
+ readonly start: (id: string) => string;
410
+ readonly stop: (id: string) => string;
411
+ readonly getResults: (id: string) => string;
412
+ };
413
+ };
414
+ export declare const AI_ROUTES: {
415
+ readonly constitution: {
416
+ readonly validate: "/api/ai/constitution/validate";
417
+ readonly generate: "/api/ai/constitution/generate";
418
+ };
419
+ readonly specs: {
420
+ readonly generate: "/api/ai/spec/generate";
421
+ readonly enhance: (id: string) => string;
422
+ };
423
+ readonly brief: {
424
+ readonly improve: "/api/ai/brief-improve/generate";
425
+ };
426
+ readonly architecture: {
427
+ readonly generate: "/api/ai/architecture/generate";
428
+ };
429
+ readonly schema: {
430
+ readonly generate: "/api/ai/schema/generate";
431
+ };
432
+ readonly api: {
433
+ readonly generate: "/api/ai/api/generate";
434
+ };
435
+ readonly components: {
436
+ readonly generate: "/api/ai/components/generate";
437
+ readonly enhance: (id: string) => string;
438
+ readonly suggestImprovements: (id: string) => string;
439
+ };
440
+ readonly ui: {
441
+ readonly generate: "/api/ai/ui/generate";
442
+ };
443
+ readonly code: {
444
+ readonly generate: "/api/ai/code/generate";
445
+ };
446
+ readonly tasks: {
447
+ readonly generate: "/api/ai/tasks/generate";
448
+ readonly suggestDependencies: (id: string) => string;
449
+ readonly estimateEffort: (id: string) => string;
450
+ };
451
+ readonly debug: {
452
+ readonly lastRequest: "/api/ai/debug/last-request";
453
+ readonly trace: "/api/ai/debug/trace";
454
+ };
455
+ readonly memory: "/api/ai/memory";
456
+ readonly metrics: "/api/ai/metrics";
457
+ readonly modelAnalytics: "/api/ai/model-analytics";
458
+ readonly rollback: "/api/ai/rollback";
459
+ readonly runs: {
460
+ readonly list: "/api/ai/runs";
461
+ readonly start: "/api/ai/runs/start";
462
+ readonly getById: (id: string) => string;
463
+ };
464
+ readonly sessions: "/api/ai/sessions";
465
+ readonly approvals: {
466
+ readonly list: "/api/ai/approvals";
467
+ readonly getById: (id: string) => string;
468
+ };
469
+ readonly review: {
470
+ readonly generate: "/api/ai/review/generate";
471
+ };
472
+ readonly docs: {
473
+ readonly generate: "/api/ai/docs/generate";
474
+ };
475
+ readonly compliance: {
476
+ readonly generate: "/api/ai/compliance/generate";
477
+ };
478
+ readonly ci: {
479
+ readonly generate: "/api/ai/ci/generate";
480
+ readonly manuscriptChecks: "/api/ai/ci/manuscript-checks";
481
+ };
482
+ readonly deployments: {
483
+ readonly generate: "/api/ai/deployments/generate";
484
+ readonly analyze: "/api/ai/deployments/analyze";
485
+ };
486
+ readonly analytics: {
487
+ readonly generate: "/api/ai/analytics/generate";
488
+ };
489
+ readonly argumentMap: {
490
+ readonly generate: "/api/ai/argument-map/generate";
491
+ };
492
+ readonly counterclaimFramework: {
493
+ readonly generate: "/api/ai/counterclaim-framework/generate";
494
+ };
495
+ readonly implementation: {
496
+ readonly generate: "/api/ai/implementation/generate";
497
+ readonly orchestrate: "/api/ai/implementation/orchestrate";
498
+ readonly orchestrateProcess: (orchestrationId: string) => string;
499
+ readonly orchestrateStatus: (orchestrationId: string) => string;
500
+ readonly orchestrateRetry: (orchestrationId: string) => string;
501
+ readonly orchestrateCancel: (orchestrationId: string) => string;
502
+ };
503
+ readonly knowledge: {
504
+ readonly generate: "/api/ai/knowledge/generate";
505
+ };
506
+ readonly editorial: {
507
+ readonly reviseChapter: "/api/ai/editorial/revise-chapter";
508
+ readonly generateRevisionBrief: "/api/ai/editorial/generate-revision-brief";
509
+ readonly revisionQa: "/api/ai/editorial/revision-qa";
510
+ };
511
+ readonly filmStillReview: {
512
+ readonly generate: "/api/ai/film-still-review/generate";
513
+ };
514
+ readonly filmClipReview: {
515
+ readonly generate: "/api/ai/film-clip-review/generate";
516
+ };
517
+ readonly film: {
518
+ readonly intent: {
519
+ readonly generate: "/api/ai/film/intent/generate";
520
+ };
521
+ readonly development: {
522
+ readonly generate: "/api/ai/film/development/generate";
523
+ };
524
+ readonly script: {
525
+ readonly generate: "/api/ai/film/script/generate";
526
+ };
527
+ readonly preproduction: {
528
+ readonly generate: "/api/ai/film/preproduction/generate";
529
+ };
530
+ readonly generation: {
531
+ readonly generate: "/api/ai/film/generation/generate";
532
+ };
533
+ readonly postproduction: {
534
+ readonly generate: "/api/ai/film/postproduction/generate";
535
+ };
536
+ readonly review: {
537
+ readonly generate: "/api/ai/film/review/generate";
538
+ };
539
+ readonly release: {
540
+ readonly generate: "/api/ai/film/release/generate";
541
+ };
542
+ };
543
+ };
544
+ export declare const KNOWLEDGE_ROUTES: {
545
+ readonly nodes: "/api/knowledge/nodes";
546
+ readonly edges: "/api/knowledge/edges";
547
+ readonly query: "/api/knowledge/query";
548
+ /** Text/facet search over `knowledge_nodes` (non-AI route). */
549
+ readonly search: "/api/knowledge/search";
550
+ /** Sprint K1-A (#574): upsert GitHub PRs into public.git_pull_requests for a project. */
551
+ readonly syncPrs: (projectId: string) => string;
552
+ /** Sprint K1-B (#575): materialise patch/pr/file nodes + lineage edges. */
553
+ readonly lineageBuild: (projectId: string) => string;
554
+ /** Sprint K1-C (#576): duplicate task detection across open PRs. */
555
+ readonly lineageDuplicates: (projectId: string) => string;
556
+ /** Sprint K1-E (#578): aggregate lineage + artifact signals for PR review readiness. */
557
+ readonly knowledgeReviewReadiness: (projectId: string) => string;
558
+ /**
559
+ * Browser-safe KG evidence summary: node/edge counts, types, intent node,
560
+ * and latest spec nodes. Safe for client-side polling without raw DB exposure.
561
+ */
562
+ readonly knowledgeGraphSummary: (projectId: string) => string;
563
+ };
564
+ export declare const VECTOR_ROUTES: {
565
+ readonly search: "/api/vectors/search";
566
+ readonly upsert: "/api/vectors/upsert";
567
+ readonly similarity: "/api/vectors/similarity";
568
+ };
569
+ export declare const MCP_ROUTES: {
570
+ readonly sqlProxy: "/api/mcp/sql";
571
+ readonly supabasePing: "/api/mcp/supabase/ping";
572
+ readonly vercelPing: "/api/mcp/vercel/ping";
573
+ readonly githubPing: "/api/mcp/github/ping";
574
+ readonly playwrightPing: "/api/mcp/playwright/ping";
575
+ readonly ping: (serverId: string) => string;
576
+ };
577
+ /** Match live `/api/health` + `/api/version` only (no `/health/check` spine). */
578
+ export declare const SYSTEM_ROUTES: {
579
+ readonly health: "/api/health";
580
+ readonly version: "/api/version";
581
+ };
582
+ export declare const CONSTITUTION_ROUTES: {
583
+ readonly get: "/api/constitution";
584
+ readonly create: "/api/constitution";
585
+ readonly update: "/api/constitution";
586
+ readonly delete: "/api/constitution";
587
+ readonly rules: "/api/constitution/rules";
588
+ readonly status: "/api/constitution/status";
589
+ readonly sync: "/api/constitution/sync";
590
+ };
591
+ export declare const COMPLIANCE_ROUTES: {
592
+ readonly validate: "/api/compliance/validate";
593
+ readonly report: "/api/compliance/report";
594
+ readonly violations: "/api/compliance/violations";
595
+ readonly getViolation: (id: string) => string;
596
+ readonly resolveViolation: (id: string) => string;
597
+ readonly getProjectCompliance: (projectId: string) => string;
598
+ readonly constitutional: "/api/compliance/constitutional";
599
+ readonly workspace: "/api/compliance/workspace";
600
+ };
601
+ /** Align with `/api/storage/artifacts` (legacy `/files/*` spine removed). */
602
+ export declare const FILE_ROUTES: {
603
+ readonly artifacts: "/api/storage/artifacts";
604
+ /** Proxies JSON upload to `/api/backend/artifacts/upload`. */
605
+ readonly artifactUploadProxy: "/api/artifacts/upload";
606
+ };
607
+ /** AI response cache (Redis) — `/api/cache/*`. */
608
+ export declare const CACHE_ROUTES: {
609
+ readonly aiResponse: "/api/cache/ai-response";
610
+ };
611
+ export declare const NOTIFICATION_ROUTES: {
612
+ readonly list: "/api/notifications";
613
+ };
614
+ /** Cortex × NeuraLoom bidirectional bridge (HMAC webhooks + outbox). */
615
+ export declare const CORTEX_BRIDGE_ROUTES: {
616
+ readonly portfolioLink: "/api/cortex/portfolio/link";
617
+ readonly intelligenceRequest: "/api/cortex/intelligence/request";
618
+ readonly creativeRequest: "/api/cortex/creative/request";
619
+ readonly taskGithubIssueRequest: "/api/cortex/tasks/github-issue-request";
620
+ readonly dispatchExternalExports: "/api/cron/dispatch-external-exports";
621
+ readonly readiness: "/api/internal/cortex-bridge/readiness";
622
+ };
623
+ /** Vercel cron ingress (Bearer CRON_SECRET) — route-contract parity SSOT. */
624
+ export declare const CRON_ROUTES: {
625
+ readonly pollRunway: "/api/cron/poll-runway";
626
+ readonly pollCursor: "/api/cron/poll-cursor";
627
+ readonly flushMarketingConversions: "/api/cron/flush-marketing-conversions";
628
+ readonly importMarketingMetrics: "/api/cron/import-marketing-metrics";
629
+ readonly reapStuckStageTasks: "/api/cron/reap-stuck-stage-tasks";
630
+ };
631
+ export declare const INTEGRATION_ROUTES: {
632
+ readonly list: "/api/integrations";
633
+ readonly status: "/api/integrations/status";
634
+ readonly health: "/api/integrations/health";
635
+ readonly github: {
636
+ readonly connect: "/api/integrations/github/connect";
637
+ readonly callback: "/api/integrations/github/callback";
638
+ readonly status: "/api/integrations/github/status";
639
+ readonly disconnect: "/api/integrations/github/disconnect";
640
+ readonly repos: "/api/integrations/github/repos";
641
+ readonly webhook: "/api/integrations/github/webhook";
642
+ readonly codexCredentials: "/api/integrations/github/codex-credentials";
643
+ readonly linkRepo: (projectId: string) => string;
644
+ readonly unlinkRepo: (projectId: string) => string;
645
+ readonly projectStatus: (projectId: string) => string;
646
+ readonly linked: (projectId: string) => string;
647
+ readonly branches: (projectId: string) => string;
648
+ readonly pulls: (projectId: string) => string;
649
+ readonly issues: (projectId: string) => string;
650
+ readonly workflowRuns: (projectId: string) => string;
651
+ readonly createRepo: "/api/integrations/github/repos/create";
652
+ readonly createPr: "/api/github/pr/create";
653
+ };
654
+ readonly vercel: {
655
+ readonly connect: "/api/integrations/vercel/connect";
656
+ readonly callback: "/api/integrations/vercel/callback";
657
+ readonly disconnect: "/api/integrations/vercel/disconnect";
658
+ /** POST body-driven deploy (no path project id). */
659
+ readonly deployGlobal: "/api/integrations/vercel/deploy";
660
+ readonly deploy: (projectId: string) => string;
661
+ readonly deployments: (projectId: string) => string;
662
+ };
663
+ readonly supabase: {
664
+ readonly configure: "/api/integrations/supabase/configure";
665
+ readonly test: "/api/integrations/supabase/test";
666
+ readonly status: "/api/integrations/supabase/status";
667
+ readonly disconnect: "/api/integrations/supabase/disconnect";
668
+ readonly link: (projectId: string) => string;
669
+ };
670
+ readonly doppler: {
671
+ readonly configure: "/api/integrations/doppler/configure";
672
+ readonly test: "/api/integrations/doppler/test";
673
+ readonly status: "/api/integrations/doppler/status";
674
+ readonly disconnect: "/api/integrations/doppler/disconnect";
675
+ readonly sync: (projectId: string) => string;
676
+ readonly secrets: (projectId: string) => string;
677
+ };
678
+ readonly getStatus: (provider: string) => string;
679
+ readonly disconnect: (provider: string) => string;
680
+ };
681
+ export declare const SETTINGS_ROUTES: {
682
+ readonly user: "/api/settings/user";
683
+ readonly profile: "/api/settings/profile";
684
+ };
685
+ export declare const ROUTE_HELPERS: {
686
+ readonly extractId: (route: string) => string | null;
687
+ readonly buildQuery: (params: Record<string, string | number | boolean>) => string;
688
+ readonly withQuery: (route: string, params: Record<string, string | number | boolean>) => string;
689
+ readonly isValidUUID: (id: string) => boolean;
690
+ };
691
+ export declare const HTTP_METHODS: {
692
+ readonly GET: "GET";
693
+ readonly POST: "POST";
694
+ readonly PUT: "PUT";
695
+ readonly PATCH: "PATCH";
696
+ readonly DELETE: "DELETE";
697
+ };
698
+ export declare const HTTP_STATUS: {
699
+ readonly OK: 200;
700
+ readonly CREATED: 201;
701
+ readonly NO_CONTENT: 204;
702
+ readonly BAD_REQUEST: 400;
703
+ readonly UNAUTHORIZED: 401;
704
+ readonly FORBIDDEN: 403;
705
+ readonly NOT_FOUND: 404;
706
+ readonly CONFLICT: 409;
707
+ readonly UNPROCESSABLE_ENTITY: 422;
708
+ readonly INTERNAL_SERVER_ERROR: 500;
709
+ readonly SERVICE_UNAVAILABLE: 503;
710
+ };
711
+ export declare const CONTENT_TYPES: {
712
+ readonly JSON: "application/json";
713
+ readonly FORM_DATA: "multipart/form-data";
714
+ readonly URL_ENCODED: "application/x-www-form-urlencoded";
715
+ readonly TEXT: "text/plain";
716
+ };
717
+ export declare const PAGE_ROUTES: {
718
+ readonly home: "/";
719
+ readonly login: "/login";
720
+ /** Supabase OAuth / PKCE email callback (recovery, magic link). */
721
+ readonly authCallback: "/auth/callback";
722
+ readonly resetPassword: "/auth/reset-password";
723
+ readonly workspace: "/workspace";
724
+ /** Global mission control (orchestration, agents). */
725
+ readonly missionControl: "/mission-control";
726
+ readonly analytics: "/analytics";
727
+ readonly projects: "/projects";
728
+ readonly projectNew: "/projects/new";
729
+ readonly projectDetail: (id: string) => string;
730
+ readonly projectTasks: (id: string) => string;
731
+ readonly projectSettings: (id: string) => string;
732
+ readonly projectConstitution: (id: string) => string;
733
+ readonly projectGuardian: (id: string) => string;
734
+ readonly projectSpecify: (id: string) => string;
735
+ /** Film production channel — canonical workflow step routes (registry routePath). */
736
+ readonly projectIntent: (id: string) => string;
737
+ readonly projectDevelopment: (id: string) => string;
738
+ readonly projectScript: (id: string) => string;
739
+ readonly projectPreproduction: (id: string) => string;
740
+ readonly projectGeneration: (id: string) => string;
741
+ readonly projectPostproduction: (id: string) => string;
742
+ readonly projectRelease: (id: string) => string;
743
+ readonly projectPlan: (id: string) => string;
744
+ readonly projectSchema: (id: string) => string;
745
+ readonly projectApi: (id: string) => string;
746
+ readonly projectUi: (id: string) => string;
747
+ readonly projectImplement: (id: string) => string;
748
+ readonly projectReview: (id: string) => string;
749
+ /** Operator release decision form — honest tier selection backed by coverage + product readiness. */
750
+ readonly projectWorkflowReview: (id: string) => string;
751
+ readonly projectKnowledge: (id: string) => string;
752
+ readonly projectCompliance: (id: string) => string;
753
+ readonly projectTeam: (id: string) => string;
754
+ readonly projectRepo: (id: string) => string;
755
+ readonly projectIngest: (id: string) => string;
756
+ /** Workflow step dependency graph + lineage (#532). */
757
+ readonly projectGraph: (id: string) => string;
758
+ /** Per-project Guardian / orchestration telemetry dashboard. */
759
+ readonly projectTelemetry: (id: string) => string;
760
+ readonly projectIntegrations: (id: string) => string;
761
+ readonly projectDeployments: (id: string) => string;
762
+ readonly projectCI: (id: string) => string;
763
+ readonly projectFilm: (id: string) => string;
764
+ readonly projectFilmSources: (id: string) => string;
765
+ readonly projectFilmStory: (id: string) => string;
766
+ readonly projectFilmBibles: (id: string) => string;
767
+ readonly projectFilmScenes: (id: string) => string;
768
+ readonly projectFilmShots: (id: string) => string;
769
+ readonly projectFilmPrompts: (id: string) => string;
770
+ readonly projectFilmClips: (id: string) => string;
771
+ readonly projectFilmReview: (id: string) => string;
772
+ readonly projectFilmEdit: (id: string) => string;
773
+ readonly projectFilmResolve: (id: string) => string;
774
+ readonly projectFilmExport: (id: string) => string;
775
+ readonly projectFilmDeliverables: (id: string) => string;
776
+ readonly projectFilmPublish: (id: string) => string;
777
+ readonly projectFilmGraph: (id: string) => string;
778
+ readonly tasks: "/tasks";
779
+ readonly settings: "/settings";
780
+ /** Workspace-wide compliance dashboard (the old global `/compliance` constant had no page). */
781
+ readonly workspaceCompliance: "/workspace/compliance";
782
+ readonly onboarding: "/onboarding";
783
+ /**
784
+ * Spanish nonfiction book portal (thin PWA shell).
785
+ * Nested under `/books/escribir` so public audiobook listen stays at `/books/[bookSlug]`.
786
+ */
787
+ readonly books: "/books";
788
+ /** Dedicated Spanish portal login — stays out of the full NeuraLoom /login shell. */
789
+ readonly booksLogin: "/books/entrar";
790
+ readonly booksPortalProject: (projectId: string) => string;
791
+ readonly booksPortalStep: (projectId: string, stepId: string) => string;
792
+ };
793
+ /**
794
+ * Query parameter that carries the page a signed-out user asked for through
795
+ * sign-in: middleware → `/login?next=…` → password sign-in or GitHub OAuth
796
+ * `redirectTo` → `/auth/callback?next=…` → the requested page (issue 1798).
797
+ * One name for the whole chain; `/auth/callback` has always read `next`.
798
+ */
799
+ export declare const AUTH_RETURN_PARAM: "next";
800
+ /**
801
+ * Operator page prefixes that require a signed-in session. SSOT for the
802
+ * middleware redirect (before render) and the client `AuthGuard` fallback.
803
+ * Matched per path segment: `/tasks` covers `/tasks` and `/tasks/…`.
804
+ */
805
+ export declare const PROTECTED_PAGE_PREFIXES: readonly ["/dashboard", "/workspace", "/projects", "/tasks", "/mission-control", "/settings", "/constitution", "/guardian", "/onboarding", "/tutorial", "/workflow", "/community-movie", "/admin", "/knowledge", "/deployments", "/repositories"];
806
+ export declare function isProtectedPagePath(pathname: string): boolean;
807
+ /**
808
+ * Returns `value` only when it is a same-origin relative path (`/tasks?x=1`),
809
+ * normalised to pathname + search + hash; otherwise `null`. Rejects absolute
810
+ * and protocol-relative URLs, backslash tricks, control characters and the
811
+ * auth pages themselves (no login → login loops).
812
+ */
813
+ export declare function sanitizeAuthReturnPath(value: string | null | undefined): string | null;
814
+ /** `/login`, carrying `returnPath` in {@link AUTH_RETURN_PARAM} when it is safe. */
815
+ export declare function buildLoginPath(returnPath?: string | null): string;
816
+ /**
817
+ * Spanish Relatos mini-portal steps (fiction_book channel, short path).
818
+ * Skips schema/constitution in the UI; tasks do not require world ontology.
819
+ */
820
+ export declare const BOOKS_PORTAL_STEP_IDS: readonly ["specify", "plan", "tasks", "implement", "review"];
821
+ export type BooksPortalStepId = (typeof BOOKS_PORTAL_STEP_IDS)[number];
822
+ export declare function isBooksPortalStepId(value: string): value is BooksPortalStepId;
823
+ export declare const GIT_ROUTES: {
824
+ readonly repos: {
825
+ readonly list: "/api/git/repos";
826
+ readonly getById: (repoId: string) => string;
827
+ readonly commits: (repoId: string) => string;
828
+ readonly pullRequests: (repoId: string) => string;
829
+ readonly issues: (repoId: string) => string;
830
+ readonly activity: (repoId: string) => string;
831
+ readonly sync: (repoId: string) => string;
832
+ };
833
+ readonly commits: {
834
+ readonly list: "/api/git/commits";
835
+ readonly getById: (commitId: string) => string;
836
+ };
837
+ readonly pullRequests: {
838
+ readonly list: "/api/git/pulls";
839
+ readonly getById: (prId: string) => string;
840
+ };
841
+ readonly issues: {
842
+ readonly list: "/api/git/issues";
843
+ readonly getById: (issueId: string) => string;
844
+ };
845
+ };
846
+ export declare const DEPLOYMENT_ROUTES: {
847
+ readonly list: "/api/deployments";
848
+ readonly getById: (deploymentId: string) => string;
849
+ readonly logs: (deploymentId: string) => string;
850
+ readonly byProject: (projectId: string) => string;
851
+ /** @deprecated Use `triggerHook` (POST /deployments/trigger). This route remains for backwards compat only. */
852
+ readonly trigger: (projectId: string) => string;
853
+ readonly rollback: (deploymentId: string) => string;
854
+ /** Canonical deployment readiness aggregator. */
855
+ readonly status: (projectId: string) => string;
856
+ /** Server-side deployment history (replaces browser Supabase read). */
857
+ readonly history: (projectId: string) => string;
858
+ /** Ingest a deployment event from an external provider. */
859
+ readonly ingest: (projectId: string) => string;
860
+ /** Verify a deployed URL is reachable and update verification status. */
861
+ readonly verify: (projectId: string) => string;
862
+ readonly configure: (projectId: string) => string;
863
+ /** Sync latest Vercel deployment into local DB (observation-first). */
864
+ readonly sync: (projectId: string) => string;
865
+ /** Fire deploy hook to trigger a new Vercel deployment. */
866
+ readonly triggerHook: (projectId: string) => string;
867
+ /** Idempotent: set Vercel framework/rootDir, create deploy hook, register webhook. */
868
+ readonly provision: (projectId: string) => string;
869
+ /** Create a new Vercel project linked to the project's GitHub repo. */
870
+ readonly create: (projectId: string) => string;
871
+ /** Link an existing Vercel project to a NeuraLoom project. */
872
+ readonly link: (projectId: string) => string;
873
+ /** List Vercel projects in team (for link dialog). */
874
+ readonly vercelProjects: (projectId: string) => string;
875
+ /** Get linked Vercel project details. */
876
+ readonly vercelProject: (projectId: string) => string;
877
+ /** List env vars on linked Vercel project (names only). */
878
+ readonly env: (projectId: string) => string;
879
+ /** Push env vars to linked Vercel project. */
880
+ readonly envSync: (projectId: string) => string;
881
+ /** Read-only repo deployability scan — checks package.json, next dep, build script, app dir. */
882
+ readonly preflight: (projectId: string) => string;
883
+ /** Deterministic deployment success / promotion risk (heuristic, not ML). */
884
+ readonly predict: (projectId: string) => string;
885
+ /**
886
+ * Controlled production rollback / instant promote to a prior healthy deployment.
887
+ * Default dry-run; live requires explicit project_settings authorization.
888
+ */
889
+ readonly rollbackByProject: (projectId: string) => string;
890
+ /** Backfill an existing live Vercel deployment into deployments (no redeploy). */
891
+ readonly importExternal: (projectId: string) => string;
892
+ };
893
+ /** Public audiobook listen page + CDN manifest URLs (browser routes, not REST prefix). */
894
+ export declare const PUBLIC_BOOK_ROUTES: {
895
+ readonly listen: (bookSlug: string) => string;
896
+ readonly manifestApi: (bookSlug: string) => string;
897
+ };
898
+ /** Documentary audiobook production (writing publication); server-side ElevenLabs + LLM. */
899
+ export declare const AUDIOBOOK_EMBED_PUBLICATION_ROUTES: {
900
+ readonly embedPackageByProject: (projectId: string) => string;
901
+ };
902
+ /** Manuscript text export (PDF/DOCX/EPUB/MD) from workflow_artifacts. */
903
+ export declare const MANUSCRIPT_PUBLICATION_ROUTES: {
904
+ readonly export: "/api/publication/manuscript/export";
905
+ };
906
+ export declare const AUDIOBOOK_PUBLICATION_ROUTES: {
907
+ readonly settings: "/api/publication/audiobook/settings";
908
+ readonly voiceProfile: "/api/publication/audiobook/voice-profile";
909
+ readonly prepareScript: "/api/publication/audiobook/prepare-script";
910
+ readonly generateNarration: "/api/publication/audiobook/generate-narration";
911
+ readonly generateTimeline: "/api/publication/audiobook/generate-timeline";
912
+ readonly generateSoundCues: "/api/publication/audiobook/generate-sound-cues";
913
+ readonly generateSoundAssets: "/api/publication/audiobook/generate-sound-assets";
914
+ readonly mixChapter: "/api/publication/audiobook/mix-chapter";
915
+ readonly qa: "/api/publication/audiobook/qa";
916
+ readonly generateVisualStoryboard: "/api/publication/audiobook/generate-visual-storyboard";
917
+ readonly generateMotionCues: "/api/publication/audiobook/generate-motion-cues";
918
+ readonly package: "/api/publication/audiobook/package";
919
+ readonly generateDocumentaryChapter: "/api/publication/audiobook/generate-documentary-chapter";
920
+ readonly generateExportPackage: "/api/publication/audiobook/generate-export-package";
921
+ readonly elevenLabsStudio: "/api/publication/audiobook/elevenlabs-studio";
922
+ readonly studioSyncGenerated: "/api/publication/audiobook/studio-sync-generated";
923
+ readonly importAssets: "/api/publication/audiobook/import-assets";
924
+ readonly productionMode: "/api/publication/audiobook/production-mode";
925
+ readonly distribution: "/api/publication/audiobook/distribution";
926
+ };
927
+ export declare const CI_ROUTES: {
928
+ readonly runs: {
929
+ readonly byProject: (projectId: string) => string;
930
+ };
931
+ readonly statusByProject: (projectId: string) => string;
932
+ readonly apply: (projectId: string) => string;
933
+ readonly ingest: (projectId: string) => string;
934
+ readonly dispatch: (projectId: string) => string;
935
+ /** Operator override: mark CI step as operational (project_settings.settings.cicd.operatorReady). */
936
+ readonly operatorReady: (projectId: string) => string;
937
+ /** Operator override: accept partial CI validation when actionlint cannot run locally. */
938
+ readonly allowSkipActionlint: (projectId: string) => string;
939
+ /** Merge the open workflow PR via GitHub App — eliminates the need to leave NeuraLoom. */
940
+ readonly mergePr: (projectId: string) => string;
941
+ /** List all open implement PRs for the project (branches ending in /implement). */
942
+ readonly listImplementPrs: (projectId: string) => string;
943
+ };
944
+ export declare const FACTORY_ROUTES: {
945
+ readonly templates: {
946
+ readonly list: "/api/factory/templates";
947
+ readonly getById: (templateId: string) => string;
948
+ };
949
+ readonly generate: "/api/factory/generate";
950
+ readonly boilerplate: {
951
+ readonly getById: (artifactId: string) => string;
952
+ readonly validate: "/api/factory/boilerplate/validate";
953
+ };
954
+ readonly lifecycle: {
955
+ readonly start: "/api/factory/lifecycle/start";
956
+ readonly getById: (lifecycleId: string) => string;
957
+ readonly cancel: (lifecycleId: string) => string;
958
+ readonly retry: (lifecycleId: string) => string;
959
+ };
960
+ };
961
+ export declare const WORKSPACE_ROUTES: {
962
+ readonly components: {
963
+ readonly list: "/api/workspace/components";
964
+ readonly create: "/api/workspace/components";
965
+ readonly getById: (componentId: string) => string;
966
+ readonly update: (componentId: string) => string;
967
+ readonly delete: (componentId: string) => string;
968
+ readonly preview: (componentId: string) => string;
969
+ readonly versions: (componentId: string) => string;
970
+ readonly analytics: (componentId: string) => string;
971
+ readonly generate: "/api/workspace/components/generate";
972
+ readonly validate: "/api/workspace/components/validate";
973
+ readonly marketplace: "/api/workspace/components/marketplace";
974
+ readonly download: (componentId: string) => string;
975
+ readonly rate: (componentId: string) => string;
976
+ };
977
+ readonly pages: {
978
+ readonly list: "/api/workspace/pages";
979
+ readonly create: "/api/workspace/pages";
980
+ readonly getById: (pageId: string) => string;
981
+ readonly update: (pageId: string) => string;
982
+ readonly delete: (pageId: string) => string;
983
+ readonly preview: (pageId: string) => string;
984
+ readonly versions: (pageId: string) => string;
985
+ readonly generate: "/api/workspace/pages/generate";
986
+ readonly validate: "/api/workspace/pages/validate";
987
+ readonly suggestions: "/api/workspace/pages/suggestions";
988
+ };
989
+ readonly themes: {
990
+ readonly list: "/api/workspace/themes";
991
+ readonly create: "/api/workspace/themes";
992
+ readonly getById: (themeId: string) => string;
993
+ readonly update: (themeId: string) => string;
994
+ readonly activate: (themeId: string) => string;
995
+ };
996
+ };
997
+ export declare const INFRA_ROUTES: {
998
+ readonly projects: {
999
+ readonly list: "/api/infra/projects";
1000
+ readonly create: "/api/infra/projects";
1001
+ readonly getById: (id: string) => string;
1002
+ readonly update: (id: string) => string;
1003
+ readonly delete: (id: string) => string;
1004
+ };
1005
+ readonly runs: {
1006
+ readonly list: "/api/infra/runs";
1007
+ readonly getById: (id: string) => string;
1008
+ readonly logs: (id: string) => string;
1009
+ };
1010
+ readonly guardian: {
1011
+ readonly validate: "/api/infra/guardian/validate";
1012
+ readonly report: "/api/infra/guardian/report";
1013
+ };
1014
+ };
1015
+ export declare const CODE_ROUTES: {
1016
+ readonly routes: {
1017
+ readonly list: "/api/routes";
1018
+ readonly getById: (routeId: string) => string;
1019
+ readonly byProject: (projectId: string) => string;
1020
+ readonly register: "/api/routes/register";
1021
+ };
1022
+ readonly snippets: {
1023
+ readonly list: "/api/code-snippets";
1024
+ readonly getById: (snippetId: string) => string;
1025
+ readonly byProject: (projectId: string) => string;
1026
+ readonly byTask: (taskId: string) => string;
1027
+ };
1028
+ readonly architectures: {
1029
+ readonly list: "/api/architectures";
1030
+ readonly getById: (graphId: string) => string;
1031
+ readonly byProject: (projectId: string) => string;
1032
+ readonly generate: (projectId: string) => string;
1033
+ };
1034
+ readonly retrospectives: {
1035
+ readonly list: "/api/retrospectives";
1036
+ readonly getById: (retroId: string) => string;
1037
+ readonly byProject: (projectId: string) => string;
1038
+ readonly generate: (projectId: string) => string;
1039
+ };
1040
+ readonly specTemplates: {
1041
+ readonly list: "/api/spec-templates";
1042
+ readonly getById: (templateId: string) => string;
1043
+ readonly byCategory: (category: string) => string;
1044
+ };
1045
+ };
1046
+ /** Analytics APIs under `/api/analytics/*`. */
1047
+ export declare const ANALYTICS_ROUTES: {
1048
+ readonly guardian: "/api/analytics/guardian";
1049
+ readonly projectMetrics: (id: string) => string;
1050
+ readonly complianceReport: (id: string) => string;
1051
+ readonly teamInsights: (id: string) => string;
1052
+ readonly workspace: "/api/analytics/workspace";
1053
+ readonly notificationsFeed: "/api/analytics/notifications-feed";
1054
+ };
1055
+ export declare const DASHBOARD_ROUTES: {
1056
+ readonly stats: "/api/dashboard/stats";
1057
+ };
1058
+ export declare const DECISION_ROUTES: {
1059
+ readonly list: "/api/decisions";
1060
+ readonly respond: (decisionId: string) => string;
1061
+ };
1062
+ export declare const WORKFLOW_TEMPLATE_ROUTES: {
1063
+ readonly list: "/api/workflows/templates";
1064
+ readonly use: (templateId: string) => string;
1065
+ };
1066
+ /** Legacy `/api/team` spine (project roster). */
1067
+ export declare const TEAM_ROUTES: {
1068
+ readonly list: "/api/team";
1069
+ readonly root: "/api/team";
1070
+ };
1071
+ /** `/api/teams/*` workspace APIs. */
1072
+ export declare const TEAMS_ROUTES: {
1073
+ readonly list: "/api/teams";
1074
+ readonly agents: {
1075
+ readonly list: "/api/teams/agents";
1076
+ readonly byId: (id: string) => string;
1077
+ };
1078
+ readonly assignRole: "/api/teams/assign-role";
1079
+ readonly models: {
1080
+ readonly list: (teamId: string) => string;
1081
+ readonly create: (teamId: string) => string;
1082
+ readonly delete: (teamId: string, modelId: string) => string;
1083
+ };
1084
+ readonly phases: {
1085
+ readonly list: (teamId: string) => string;
1086
+ readonly create: (teamId: string) => string;
1087
+ readonly delete: (teamId: string, phaseId: string) => string;
1088
+ };
1089
+ readonly feedback: (teamId: string) => string;
1090
+ };
1091
+ export declare const AGENT_ACTION_ROUTES: {
1092
+ readonly list: "/api/agent-actions";
1093
+ readonly pending: "/api/agent-actions/pending";
1094
+ readonly byId: (id: string) => string;
1095
+ readonly approve: (id: string) => string;
1096
+ readonly reject: (id: string) => string;
1097
+ readonly retry: (id: string) => string;
1098
+ };
1099
+ export declare const TELEMETRY_ROUTES: {
1100
+ readonly aiUsage: "/api/metrics/ai-usage";
1101
+ };
1102
+ export declare const SEARCH_ROUTES: {
1103
+ readonly query: "/api/search";
1104
+ };
1105
+ /** Issue #154 / #1158: server-side durable workflow (execution_runs + execution_tasks) */
1106
+ export declare const ORCHESTRATION_DURABLE_ROUTES: {
1107
+ readonly run: "/api/orchestration/run";
1108
+ readonly stageRun: "/api/orchestration/stage-run";
1109
+ readonly continue: "/api/orchestration/continue";
1110
+ readonly runStatus: (id: string) => string;
1111
+ };
1112
+ /** Status poll path for a durable execution run (#1159). */
1113
+ export declare function buildOrchestrationRunStatusUrl(runId: string): string;
1114
+ /** Film production — clip registry, review, selection, export, KG, Resolve bridge API routes (PR 6–PR 10). */
1115
+ export declare const FILM_ROUTES: {
1116
+ readonly clips: "/api/film/clips";
1117
+ readonly clipReview: (id: string) => string;
1118
+ readonly clipSelect: (id: string) => string;
1119
+ readonly keyframesList: "/api/film/keyframes";
1120
+ readonly keyframesRegister: "/api/film/keyframes/register";
1121
+ readonly keyframesGenerate: "/api/film/keyframes/generate";
1122
+ readonly keyframeReview: (keyframeId: string) => string;
1123
+ readonly clipReviewScores: (clipId: string) => string;
1124
+ readonly clipPlaybackUrl: (clipId: string) => string;
1125
+ readonly shotAssessRisk: (shotId: string) => string;
1126
+ readonly export: "/api/film/export";
1127
+ readonly kgCoverage: "/api/film/kg-coverage";
1128
+ readonly ofiReport: "/api/film/ofi-report";
1129
+ readonly lessonsManifest: "/api/film/lessons-manifest";
1130
+ readonly resolveIngest: "/api/film/resolve-ingest";
1131
+ readonly render: "/api/film/render";
1132
+ readonly renderWorker: "/api/film/render/worker";
1133
+ readonly editSequences: "/api/film/edit-sequences";
1134
+ readonly editSequencesBuildRoughCut: "/api/film/edit-sequences/build-rough-cut";
1135
+ readonly queueEnqueue: "/api/film/queue/enqueue";
1136
+ readonly hydrateFromArtifacts: "/api/film/hydrate-from-artifacts";
1137
+ readonly shotsList: "/api/film/shots";
1138
+ readonly scenesList: "/api/film/scenes";
1139
+ readonly promptsList: "/api/film/prompts";
1140
+ readonly queueEnqueueClipFromShot: "/api/film/queue/enqueue-clip-from-shot";
1141
+ readonly queueEnqueueMultiTake: "/api/film/queue/enqueue-multi-take";
1142
+ readonly queueDrain: "/api/film/queue/drain";
1143
+ readonly queueProcessProject: "/api/film/queue/process-project";
1144
+ readonly queueTasks: "/api/film/queue/tasks";
1145
+ readonly queueTaskCancel: (taskId: string) => string;
1146
+ readonly queueTaskRetry: (taskId: string) => string;
1147
+ readonly queueTaskDetail: (taskId: string) => string;
1148
+ readonly characterPacks: "/api/film/character-packs";
1149
+ readonly characterPackApprove: (id: string) => string;
1150
+ readonly promptRepairForShot: "/api/film/prompts/repair-for-shot";
1151
+ readonly runwayWebhook: "/api/film/providers/runway/webhook";
1152
+ readonly queuePollRunway: "/api/film/queue/poll-runway";
1153
+ readonly comfyUiNotify: "/api/film/providers/comfyui/notify";
1154
+ readonly comfyUiWorkflows: "/api/film/comfyui-workflows";
1155
+ readonly comfyUiWorkflow: (id: string) => string;
1156
+ readonly promptPerformance: "/api/film/prompt-performance";
1157
+ readonly takeComparisons: "/api/film/take-comparisons";
1158
+ readonly takeComparison: (id: string) => string;
1159
+ readonly takeComparisonDecide: (id: string) => string;
1160
+ readonly deliverables: "/api/film/deliverables";
1161
+ readonly deliverableIngest: "/api/film/deliverables/ingest";
1162
+ readonly deliverablePublishPackage: "/api/film/deliverables/publish-package";
1163
+ readonly deliverablePlaybackUrl: (id: string) => string;
1164
+ readonly deliverableUpdate: (id: string) => string;
1165
+ readonly mediaAssetReview: (id: string) => string;
1166
+ readonly mediaAssetPromote: (id: string) => string;
1167
+ readonly marketingCreatives: "/api/film/marketing/creatives";
1168
+ readonly datasets: "/api/film/datasets";
1169
+ readonly dataset: (id: string) => string;
1170
+ readonly datasetItems: (id: string) => string;
1171
+ readonly datasetManifest: (id: string) => string;
1172
+ };
1173
+ /** MS-05 #734 — server-side runtime probe execution (API channel). */
1174
+ export declare const RUNTIME_ROUTES: {
1175
+ readonly run: "/api/runtime/run";
1176
+ readonly ingest: "/api/runtime/ingest";
1177
+ readonly findingsProject: "/api/runtime/findings/project";
1178
+ readonly tasksProject: "/api/runtime/tasks/project";
1179
+ readonly guardEvaluate: "/api/runtime/guard/evaluate";
1180
+ readonly tutorialProof: "/api/runtime/tutorial/proof";
1181
+ };
1182
+ export declare const ALL_ROUTES: {
1183
+ readonly auth: {
1184
+ readonly user: "/api/auth/user";
1185
+ readonly role: "/api/auth/role";
1186
+ readonly session: "/api/auth/session";
1187
+ readonly sessionContext: "/api/auth/session-context";
1188
+ readonly signOut: "/api/auth/signout";
1189
+ };
1190
+ readonly users: {
1191
+ readonly search: "/api/users/search";
1192
+ readonly whoami: "/api/whoami";
1193
+ };
1194
+ readonly projects: {
1195
+ readonly list: "/api/projects";
1196
+ readonly create: "/api/projects";
1197
+ readonly getById: (id: string) => string;
1198
+ readonly update: (id: string) => string;
1199
+ readonly delete: (id: string) => string;
1200
+ readonly updateStatus: (id: string) => string;
1201
+ readonly getSpecs: (id: string) => string;
1202
+ readonly getPlans: (id: string) => string;
1203
+ readonly getTasks: (id: string) => string;
1204
+ readonly getMetrics: (id: string) => string;
1205
+ /** Evidence-backed KPI rollup + stage-run snapshot (MS-08). */
1206
+ readonly metricsSummary: (id: string) => string;
1207
+ /** Per-step workflow status (nav, gates, DB signals) */
1208
+ readonly workflowProgression: (id: string) => string;
1209
+ /** Same payload as workflowProgression (canonical read-model alias) */
1210
+ readonly workflowState: (id: string) => string;
1211
+ /** Knowledge step workflow_artifacts rows for Knowledge UI (#504 parity). */
1212
+ readonly workflowKnowledgeStepArtifacts: (id: string) => string;
1213
+ readonly workflowCiStepArtifacts: (id: string) => string;
1214
+ /** Wave 9: control artifacts for the Quality tab. */
1215
+ readonly qualityArtifacts: (id: string) => string;
1216
+ /** Per-step metrics card data (replaces browser Supabase workflow_artifacts / ai_runs reads). */
1217
+ readonly workflowStepStats: (id: string, stepId: string) => string;
1218
+ /** Internal diagnostics: Specify brief persistence + generated spec linkage. */
1219
+ readonly specifyMutationHealth: (id: string) => string;
1220
+ /** Scoped active/archived specification read model for Specify operator view (PR8). */
1221
+ readonly specificationsReadModel: (id: string) => string;
1222
+ /** Recent ai_runs + workflow_artifacts rows for one workflow step (AIOutputDisplay). */
1223
+ readonly workflowStepAiOutput: (id: string, step: string) => string;
1224
+ /** Plan step: latest plan gate + planFinal artifact + drift (browser must not read Supabase tables directly). */
1225
+ readonly planGateStatus: (id: string) => string;
1226
+ readonly ingestGate: (id: string) => string;
1227
+ readonly ingestDashboard: (id: string) => string;
1228
+ readonly existingCodebaseContext: (id: string, area?: string) => string;
1229
+ /** Generated rows from public.schemas for the Schema workflow page. */
1230
+ readonly generatedSchemas: (id: string) => string;
1231
+ /** Repo migrations + drift findings + generated schemas for Schema operator view. */
1232
+ readonly schemaReadModel: (id: string) => string;
1233
+ /** Film production creative cockpit read model (artifacts + rows + lineage summaries). */
1234
+ readonly filmCreativeReadModel: (id: string) => string;
1235
+ /** FP-14 unified production read-model (creative model + derived steps/blockers). */
1236
+ readonly filmProductionReadModel: (id: string) => string;
1237
+ /** Generated rows from public.api_definitions for the API workflow page. */
1238
+ readonly generatedApiDefinitions: (id: string) => string;
1239
+ /** API step KG coverage gate status. */
1240
+ readonly apiKgGateStatus: (id: string) => string;
1241
+ /** Repair API KG rollup / APIEndpoint / HAS_ENDPOINT from persisted api_definitions (no AI regen). */
1242
+ readonly apiRetryKgPersistence: (id: string) => string;
1243
+ /** UI step KG coverage gate status. */
1244
+ readonly uiKgCoverage: (id: string) => string;
1245
+ /** Repair UI KG rollup / UIComponent / HAS_COMPONENT from persisted component_definitions (no AI regen). */
1246
+ readonly uiRetryKgPersistence: (id: string) => string;
1247
+ /** Constitution step KG coverage gate status. */
1248
+ readonly constitutionKgCoverage: (id: string) => string;
1249
+ /** Repair Constitution KG rollup / ConstitutionRule from persisted constitutions (no AI regen). */
1250
+ readonly constitutionRetryKgPersistence: (id: string) => string;
1251
+ /** Guardian step KG coverage gate status. */
1252
+ readonly guardianKgCoverage: (id: string) => string;
1253
+ /** Server-side Guardian score / violation policy (operator gate). */
1254
+ readonly guardianGateStatus: (id: string) => string;
1255
+ /** Recent Guardian validation scores (guardian_validations, no new table). */
1256
+ readonly guardianScoreHistory: (id: string) => string;
1257
+ /** Per-rule drilldown: constitution rule × latest validation violations. */
1258
+ readonly guardianRuleDetail: (projectId: string, ruleId: string) => string;
1259
+ /** Repair Guardian KG rollup / GuardianReport from persisted guardian_validations (no AI regen). */
1260
+ readonly guardianRetryKgPersistence: (id: string) => string;
1261
+ /** Tasks step KG coverage gate status. */
1262
+ readonly tasksKgCoverage: (id: string) => string;
1263
+ /** Repair Tasks KG rollup from persisted workflow_artifacts (no AI regen). */
1264
+ readonly tasksRetryKgPersistence: (id: string) => string;
1265
+ /** Tasks truth read-model only (no public.tasks row payload). */
1266
+ readonly tasksTruth: (id: string) => string;
1267
+ /** Idempotent tasks truth repair (KG rollup + divergence flags). */
1268
+ readonly tasksReconcile: (id: string) => string;
1269
+ /** Retry GitHub issue projection for all pending tasks (idempotent). */
1270
+ readonly tasksSyncGithubIssues: (id: string) => string;
1271
+ readonly tasksRepairStaleImplementing: (id: string) => string;
1272
+ readonly tasksUnblockImplementHandoff: (id: string) => string;
1273
+ readonly tasksImplementUnblockPreview: (id: string) => string;
1274
+ readonly implementSuggestedFirstBatch: (id: string) => string;
1275
+ readonly implementNextSafeTask: (id: string) => string;
1276
+ /** Implement step KG coverage gate status. */
1277
+ readonly implementKgCoverage: (id: string) => string;
1278
+ /** Implement preflight — tasks truth, pipeline evidence, Cursor-safe fields. */
1279
+ readonly implementGateStatus: (id: string) => string;
1280
+ /** Reset tasks stuck in `implementing` with no active patch/run back to selectable. */
1281
+ readonly implementRepairStaleBatch: (id: string) => string;
1282
+ /** Shared Build truth (Tasks + Implement + Knowledge) computed once.
1283
+ * Segment is `build-spine` (not `build`) because `.gitignore` excludes `build/` dirs. */
1284
+ readonly buildTruth: (id: string) => string;
1285
+ /** Build Knowledge closure (improvement findings + lessons manifest). */
1286
+ readonly buildKnowledgeClosure: (id: string) => string;
1287
+ readonly buildKnowledgeClose: (id: string) => string;
1288
+ /** Implement step graph data (patches, tasks, PRs, files, issues). */
1289
+ readonly implementGraph: (id: string) => string;
1290
+ /** Knowledge step KG rollup + staleness gate status. */
1291
+ readonly knowledgeKgCoverage: (id: string) => string;
1292
+ /** Repair Knowledge KG rollup from accepted knowledgeFinal artifact (no AI regen). */
1293
+ readonly knowledgeRetryKgPersistence: (id: string) => string;
1294
+ /** Repair Implement KG rollup from persisted workflow_artifacts (no AI regen). */
1295
+ readonly implementRetryKgPersistence: (id: string) => string;
1296
+ /** Controlled workflow step reset with dry-run support. */
1297
+ readonly workflowResetStep: (id: string) => string;
1298
+ /** Sprint K1-C (#576): tasks appearing in multiple open PRs (duplicate lineage). */
1299
+ readonly knowledgeLineageDuplicates: (id: string) => string;
1300
+ /** K1-D (#577): PR↔task acceptance-criteria coverage vs lineage file paths. */
1301
+ readonly knowledgeLineageCoverage: (id: string) => string;
1302
+ /** Bridge-02 (#1394): query + refresh software workflow PR↔task↔proof lineage. */
1303
+ readonly softwareWorkflowLineage: (id: string) => string;
1304
+ readonly generateReport: (id: string) => string;
1305
+ readonly archive: (id: string) => string;
1306
+ readonly stories: (id: string) => string;
1307
+ readonly compliance: (id: string) => string;
1308
+ readonly review: (id: string) => string;
1309
+ /** MS-03 Wave 1: requirement × evidence coverage from KG substrate + lineage artifacts. */
1310
+ readonly reviewCoverage: (id: string) => string;
1311
+ /** MS-03 Wave 1: deterministic ship/block gate (server-side only). */
1312
+ readonly reviewDecision: (id: string) => string;
1313
+ /** MS-03 closeout: explicit human release approval graph evidence. */
1314
+ readonly reviewApproval: (id: string) => string;
1315
+ /** MS-03 closeout: graph-backed review report export. */
1316
+ readonly reviewExport: (id: string) => string;
1317
+ readonly settings: (id: string) => string;
1318
+ /** Export without format query (handler default). Prefer `export(id, format)` when format known. */
1319
+ readonly exportRoot: (id: string) => string;
1320
+ /** Canonical codebase workspace snapshot (scan + knowledge graph) */
1321
+ readonly projectCodebase: (id: string) => string;
1322
+ /** GET project team members list */
1323
+ readonly team: (id: string) => string;
1324
+ /** Invite a registered user by email (inserts project_team row) */
1325
+ readonly teamInvite: (id: string) => string;
1326
+ /** Project data export (blob); `format` is a query param (e.g. json, zip, stories). */
1327
+ readonly export: (id: string, format: string) => string;
1328
+ /** Danger Zone: delete all workflow_artifacts for a project (owner only). */
1329
+ readonly resetWorkflow: (id: string) => string;
1330
+ /** Clear stuck `ai_runs` for a workflow step (owner only; marks running rows failed). */
1331
+ readonly stepRunReset: (projectId: string, stepId: string) => string;
1332
+ /** Create orchestrations row for live WorkflowRunConsole (before POST /api/ai/.../generate). */
1333
+ readonly projectOrchestrations: (id: string) => string;
1334
+ /** Canonical project→repo linkage + repo_readiness. */
1335
+ readonly repo: (id: string) => string;
1336
+ /** Project activity feed (used by useProjectActivity hook). */
1337
+ readonly activity: (id: string) => string;
1338
+ };
1339
+ readonly specs: {
1340
+ readonly list: "/api/specs";
1341
+ readonly create: "/api/specs";
1342
+ readonly getById: (id: string) => string;
1343
+ readonly update: (id: string) => string;
1344
+ readonly delete: (id: string) => string;
1345
+ readonly approve: (id: string) => string;
1346
+ readonly reject: (id: string) => string;
1347
+ readonly getPlans: (id: string) => string;
1348
+ };
1349
+ readonly plans: {
1350
+ readonly list: "/api/plans";
1351
+ readonly create: "/api/plans";
1352
+ readonly getById: (id: string) => string;
1353
+ readonly update: (id: string) => string;
1354
+ readonly delete: (id: string) => string;
1355
+ readonly approve: (id: string) => string;
1356
+ readonly start: (id: string) => string;
1357
+ readonly complete: (id: string) => string;
1358
+ readonly getTasks: (id: string) => string;
1359
+ readonly getDependencies: (id: string) => string;
1360
+ };
1361
+ readonly tasks: {
1362
+ readonly list: "/api/tasks";
1363
+ readonly create: "/api/tasks";
1364
+ readonly getById: (id: string) => string;
1365
+ readonly update: (id: string) => string;
1366
+ readonly delete: (id: string) => string;
1367
+ readonly updateStatus: (id: string) => string;
1368
+ readonly assign: (id: string) => string;
1369
+ readonly complete: (id: string) => string;
1370
+ readonly getDependencies: (id: string) => string;
1371
+ readonly getTimeTracking: (id: string) => string;
1372
+ };
1373
+ readonly constitution: {
1374
+ readonly get: "/api/constitution";
1375
+ readonly create: "/api/constitution";
1376
+ readonly update: "/api/constitution";
1377
+ readonly delete: "/api/constitution";
1378
+ readonly rules: "/api/constitution/rules";
1379
+ readonly status: "/api/constitution/status";
1380
+ readonly sync: "/api/constitution/sync";
1381
+ };
1382
+ readonly ml: {
1383
+ readonly models: {
1384
+ readonly list: "/api/ml/models";
1385
+ readonly create: "/api/ml/models";
1386
+ readonly getById: (id: string) => string;
1387
+ readonly update: (id: string) => string;
1388
+ readonly delete: (id: string) => string;
1389
+ readonly train: (id: string) => string;
1390
+ readonly deploy: (id: string) => string;
1391
+ readonly predict: (id: string) => string;
1392
+ readonly getMetrics: (id: string) => string;
1393
+ };
1394
+ readonly datasets: {
1395
+ readonly list: "/api/ml/datasets";
1396
+ readonly create: "/api/ml/datasets";
1397
+ readonly getById: (id: string) => string;
1398
+ readonly update: (id: string) => string;
1399
+ readonly delete: (id: string) => string;
1400
+ readonly upload: (id: string) => string;
1401
+ readonly validate: (id: string) => string;
1402
+ };
1403
+ readonly experiments: {
1404
+ readonly list: "/api/ml/experiments";
1405
+ readonly create: "/api/ml/experiments";
1406
+ readonly getById: (id: string) => string;
1407
+ readonly update: (id: string) => string;
1408
+ readonly delete: (id: string) => string;
1409
+ readonly start: (id: string) => string;
1410
+ readonly stop: (id: string) => string;
1411
+ readonly getResults: (id: string) => string;
1412
+ };
1413
+ };
1414
+ readonly ai: {
1415
+ readonly constitution: {
1416
+ readonly validate: "/api/ai/constitution/validate";
1417
+ readonly generate: "/api/ai/constitution/generate";
1418
+ };
1419
+ readonly specs: {
1420
+ readonly generate: "/api/ai/spec/generate";
1421
+ readonly enhance: (id: string) => string;
1422
+ };
1423
+ readonly brief: {
1424
+ readonly improve: "/api/ai/brief-improve/generate";
1425
+ };
1426
+ readonly architecture: {
1427
+ readonly generate: "/api/ai/architecture/generate";
1428
+ };
1429
+ readonly schema: {
1430
+ readonly generate: "/api/ai/schema/generate";
1431
+ };
1432
+ readonly api: {
1433
+ readonly generate: "/api/ai/api/generate";
1434
+ };
1435
+ readonly components: {
1436
+ readonly generate: "/api/ai/components/generate";
1437
+ readonly enhance: (id: string) => string;
1438
+ readonly suggestImprovements: (id: string) => string;
1439
+ };
1440
+ readonly ui: {
1441
+ readonly generate: "/api/ai/ui/generate";
1442
+ };
1443
+ readonly code: {
1444
+ readonly generate: "/api/ai/code/generate";
1445
+ };
1446
+ readonly tasks: {
1447
+ readonly generate: "/api/ai/tasks/generate";
1448
+ readonly suggestDependencies: (id: string) => string;
1449
+ readonly estimateEffort: (id: string) => string;
1450
+ };
1451
+ readonly debug: {
1452
+ readonly lastRequest: "/api/ai/debug/last-request";
1453
+ readonly trace: "/api/ai/debug/trace";
1454
+ };
1455
+ readonly memory: "/api/ai/memory";
1456
+ readonly metrics: "/api/ai/metrics";
1457
+ readonly modelAnalytics: "/api/ai/model-analytics";
1458
+ readonly rollback: "/api/ai/rollback";
1459
+ readonly runs: {
1460
+ readonly list: "/api/ai/runs";
1461
+ readonly start: "/api/ai/runs/start";
1462
+ readonly getById: (id: string) => string;
1463
+ };
1464
+ readonly sessions: "/api/ai/sessions";
1465
+ readonly approvals: {
1466
+ readonly list: "/api/ai/approvals";
1467
+ readonly getById: (id: string) => string;
1468
+ };
1469
+ readonly review: {
1470
+ readonly generate: "/api/ai/review/generate";
1471
+ };
1472
+ readonly docs: {
1473
+ readonly generate: "/api/ai/docs/generate";
1474
+ };
1475
+ readonly compliance: {
1476
+ readonly generate: "/api/ai/compliance/generate";
1477
+ };
1478
+ readonly ci: {
1479
+ readonly generate: "/api/ai/ci/generate";
1480
+ readonly manuscriptChecks: "/api/ai/ci/manuscript-checks";
1481
+ };
1482
+ readonly deployments: {
1483
+ readonly generate: "/api/ai/deployments/generate";
1484
+ readonly analyze: "/api/ai/deployments/analyze";
1485
+ };
1486
+ readonly analytics: {
1487
+ readonly generate: "/api/ai/analytics/generate";
1488
+ };
1489
+ readonly argumentMap: {
1490
+ readonly generate: "/api/ai/argument-map/generate";
1491
+ };
1492
+ readonly counterclaimFramework: {
1493
+ readonly generate: "/api/ai/counterclaim-framework/generate";
1494
+ };
1495
+ readonly implementation: {
1496
+ readonly generate: "/api/ai/implementation/generate";
1497
+ readonly orchestrate: "/api/ai/implementation/orchestrate";
1498
+ readonly orchestrateProcess: (orchestrationId: string) => string;
1499
+ readonly orchestrateStatus: (orchestrationId: string) => string;
1500
+ readonly orchestrateRetry: (orchestrationId: string) => string;
1501
+ readonly orchestrateCancel: (orchestrationId: string) => string;
1502
+ };
1503
+ readonly knowledge: {
1504
+ readonly generate: "/api/ai/knowledge/generate";
1505
+ };
1506
+ readonly editorial: {
1507
+ readonly reviseChapter: "/api/ai/editorial/revise-chapter";
1508
+ readonly generateRevisionBrief: "/api/ai/editorial/generate-revision-brief";
1509
+ readonly revisionQa: "/api/ai/editorial/revision-qa";
1510
+ };
1511
+ readonly filmStillReview: {
1512
+ readonly generate: "/api/ai/film-still-review/generate";
1513
+ };
1514
+ readonly filmClipReview: {
1515
+ readonly generate: "/api/ai/film-clip-review/generate";
1516
+ };
1517
+ readonly film: {
1518
+ readonly intent: {
1519
+ readonly generate: "/api/ai/film/intent/generate";
1520
+ };
1521
+ readonly development: {
1522
+ readonly generate: "/api/ai/film/development/generate";
1523
+ };
1524
+ readonly script: {
1525
+ readonly generate: "/api/ai/film/script/generate";
1526
+ };
1527
+ readonly preproduction: {
1528
+ readonly generate: "/api/ai/film/preproduction/generate";
1529
+ };
1530
+ readonly generation: {
1531
+ readonly generate: "/api/ai/film/generation/generate";
1532
+ };
1533
+ readonly postproduction: {
1534
+ readonly generate: "/api/ai/film/postproduction/generate";
1535
+ };
1536
+ readonly review: {
1537
+ readonly generate: "/api/ai/film/review/generate";
1538
+ };
1539
+ readonly release: {
1540
+ readonly generate: "/api/ai/film/release/generate";
1541
+ };
1542
+ };
1543
+ };
1544
+ readonly knowledge: {
1545
+ readonly nodes: "/api/knowledge/nodes";
1546
+ readonly edges: "/api/knowledge/edges";
1547
+ readonly query: "/api/knowledge/query";
1548
+ /** Text/facet search over `knowledge_nodes` (non-AI route). */
1549
+ readonly search: "/api/knowledge/search";
1550
+ /** Sprint K1-A (#574): upsert GitHub PRs into public.git_pull_requests for a project. */
1551
+ readonly syncPrs: (projectId: string) => string;
1552
+ /** Sprint K1-B (#575): materialise patch/pr/file nodes + lineage edges. */
1553
+ readonly lineageBuild: (projectId: string) => string;
1554
+ /** Sprint K1-C (#576): duplicate task detection across open PRs. */
1555
+ readonly lineageDuplicates: (projectId: string) => string;
1556
+ /** Sprint K1-E (#578): aggregate lineage + artifact signals for PR review readiness. */
1557
+ readonly knowledgeReviewReadiness: (projectId: string) => string;
1558
+ /**
1559
+ * Browser-safe KG evidence summary: node/edge counts, types, intent node,
1560
+ * and latest spec nodes. Safe for client-side polling without raw DB exposure.
1561
+ */
1562
+ readonly knowledgeGraphSummary: (projectId: string) => string;
1563
+ };
1564
+ readonly vectors: {
1565
+ readonly search: "/api/vectors/search";
1566
+ readonly upsert: "/api/vectors/upsert";
1567
+ readonly similarity: "/api/vectors/similarity";
1568
+ };
1569
+ readonly mcp: {
1570
+ readonly sqlProxy: "/api/mcp/sql";
1571
+ readonly supabasePing: "/api/mcp/supabase/ping";
1572
+ readonly vercelPing: "/api/mcp/vercel/ping";
1573
+ readonly githubPing: "/api/mcp/github/ping";
1574
+ readonly playwrightPing: "/api/mcp/playwright/ping";
1575
+ readonly ping: (serverId: string) => string;
1576
+ };
1577
+ readonly system: {
1578
+ readonly health: "/api/health";
1579
+ readonly version: "/api/version";
1580
+ };
1581
+ readonly compliance: {
1582
+ readonly validate: "/api/compliance/validate";
1583
+ readonly report: "/api/compliance/report";
1584
+ readonly violations: "/api/compliance/violations";
1585
+ readonly getViolation: (id: string) => string;
1586
+ readonly resolveViolation: (id: string) => string;
1587
+ readonly getProjectCompliance: (projectId: string) => string;
1588
+ readonly constitutional: "/api/compliance/constitutional";
1589
+ readonly workspace: "/api/compliance/workspace";
1590
+ };
1591
+ readonly files: {
1592
+ readonly artifacts: "/api/storage/artifacts";
1593
+ /** Proxies JSON upload to `/api/backend/artifacts/upload`. */
1594
+ readonly artifactUploadProxy: "/api/artifacts/upload";
1595
+ };
1596
+ readonly notifications: {
1597
+ readonly list: "/api/notifications";
1598
+ };
1599
+ readonly integrations: {
1600
+ readonly list: "/api/integrations";
1601
+ readonly status: "/api/integrations/status";
1602
+ readonly health: "/api/integrations/health";
1603
+ readonly github: {
1604
+ readonly connect: "/api/integrations/github/connect";
1605
+ readonly callback: "/api/integrations/github/callback";
1606
+ readonly status: "/api/integrations/github/status";
1607
+ readonly disconnect: "/api/integrations/github/disconnect";
1608
+ readonly repos: "/api/integrations/github/repos";
1609
+ readonly webhook: "/api/integrations/github/webhook";
1610
+ readonly codexCredentials: "/api/integrations/github/codex-credentials";
1611
+ readonly linkRepo: (projectId: string) => string;
1612
+ readonly unlinkRepo: (projectId: string) => string;
1613
+ readonly projectStatus: (projectId: string) => string;
1614
+ readonly linked: (projectId: string) => string;
1615
+ readonly branches: (projectId: string) => string;
1616
+ readonly pulls: (projectId: string) => string;
1617
+ readonly issues: (projectId: string) => string;
1618
+ readonly workflowRuns: (projectId: string) => string;
1619
+ readonly createRepo: "/api/integrations/github/repos/create";
1620
+ readonly createPr: "/api/github/pr/create";
1621
+ };
1622
+ readonly vercel: {
1623
+ readonly connect: "/api/integrations/vercel/connect";
1624
+ readonly callback: "/api/integrations/vercel/callback";
1625
+ readonly disconnect: "/api/integrations/vercel/disconnect";
1626
+ /** POST body-driven deploy (no path project id). */
1627
+ readonly deployGlobal: "/api/integrations/vercel/deploy";
1628
+ readonly deploy: (projectId: string) => string;
1629
+ readonly deployments: (projectId: string) => string;
1630
+ };
1631
+ readonly supabase: {
1632
+ readonly configure: "/api/integrations/supabase/configure";
1633
+ readonly test: "/api/integrations/supabase/test";
1634
+ readonly status: "/api/integrations/supabase/status";
1635
+ readonly disconnect: "/api/integrations/supabase/disconnect";
1636
+ readonly link: (projectId: string) => string;
1637
+ };
1638
+ readonly doppler: {
1639
+ readonly configure: "/api/integrations/doppler/configure";
1640
+ readonly test: "/api/integrations/doppler/test";
1641
+ readonly status: "/api/integrations/doppler/status";
1642
+ readonly disconnect: "/api/integrations/doppler/disconnect";
1643
+ readonly sync: (projectId: string) => string;
1644
+ readonly secrets: (projectId: string) => string;
1645
+ };
1646
+ readonly getStatus: (provider: string) => string;
1647
+ readonly disconnect: (provider: string) => string;
1648
+ };
1649
+ readonly cortexBridge: {
1650
+ readonly portfolioLink: "/api/cortex/portfolio/link";
1651
+ readonly intelligenceRequest: "/api/cortex/intelligence/request";
1652
+ readonly creativeRequest: "/api/cortex/creative/request";
1653
+ readonly taskGithubIssueRequest: "/api/cortex/tasks/github-issue-request";
1654
+ readonly dispatchExternalExports: "/api/cron/dispatch-external-exports";
1655
+ readonly readiness: "/api/internal/cortex-bridge/readiness";
1656
+ };
1657
+ readonly settings: {
1658
+ readonly user: "/api/settings/user";
1659
+ readonly profile: "/api/settings/profile";
1660
+ };
1661
+ readonly pages: {
1662
+ readonly home: "/";
1663
+ readonly login: "/login";
1664
+ /** Supabase OAuth / PKCE email callback (recovery, magic link). */
1665
+ readonly authCallback: "/auth/callback";
1666
+ readonly resetPassword: "/auth/reset-password";
1667
+ readonly workspace: "/workspace";
1668
+ /** Global mission control (orchestration, agents). */
1669
+ readonly missionControl: "/mission-control";
1670
+ readonly analytics: "/analytics";
1671
+ readonly projects: "/projects";
1672
+ readonly projectNew: "/projects/new";
1673
+ readonly projectDetail: (id: string) => string;
1674
+ readonly projectTasks: (id: string) => string;
1675
+ readonly projectSettings: (id: string) => string;
1676
+ readonly projectConstitution: (id: string) => string;
1677
+ readonly projectGuardian: (id: string) => string;
1678
+ readonly projectSpecify: (id: string) => string;
1679
+ /** Film production channel — canonical workflow step routes (registry routePath). */
1680
+ readonly projectIntent: (id: string) => string;
1681
+ readonly projectDevelopment: (id: string) => string;
1682
+ readonly projectScript: (id: string) => string;
1683
+ readonly projectPreproduction: (id: string) => string;
1684
+ readonly projectGeneration: (id: string) => string;
1685
+ readonly projectPostproduction: (id: string) => string;
1686
+ readonly projectRelease: (id: string) => string;
1687
+ readonly projectPlan: (id: string) => string;
1688
+ readonly projectSchema: (id: string) => string;
1689
+ readonly projectApi: (id: string) => string;
1690
+ readonly projectUi: (id: string) => string;
1691
+ readonly projectImplement: (id: string) => string;
1692
+ readonly projectReview: (id: string) => string;
1693
+ /** Operator release decision form — honest tier selection backed by coverage + product readiness. */
1694
+ readonly projectWorkflowReview: (id: string) => string;
1695
+ readonly projectKnowledge: (id: string) => string;
1696
+ readonly projectCompliance: (id: string) => string;
1697
+ readonly projectTeam: (id: string) => string;
1698
+ readonly projectRepo: (id: string) => string;
1699
+ readonly projectIngest: (id: string) => string;
1700
+ /** Workflow step dependency graph + lineage (#532). */
1701
+ readonly projectGraph: (id: string) => string;
1702
+ /** Per-project Guardian / orchestration telemetry dashboard. */
1703
+ readonly projectTelemetry: (id: string) => string;
1704
+ readonly projectIntegrations: (id: string) => string;
1705
+ readonly projectDeployments: (id: string) => string;
1706
+ readonly projectCI: (id: string) => string;
1707
+ readonly projectFilm: (id: string) => string;
1708
+ readonly projectFilmSources: (id: string) => string;
1709
+ readonly projectFilmStory: (id: string) => string;
1710
+ readonly projectFilmBibles: (id: string) => string;
1711
+ readonly projectFilmScenes: (id: string) => string;
1712
+ readonly projectFilmShots: (id: string) => string;
1713
+ readonly projectFilmPrompts: (id: string) => string;
1714
+ readonly projectFilmClips: (id: string) => string;
1715
+ readonly projectFilmReview: (id: string) => string;
1716
+ readonly projectFilmEdit: (id: string) => string;
1717
+ readonly projectFilmResolve: (id: string) => string;
1718
+ readonly projectFilmExport: (id: string) => string;
1719
+ readonly projectFilmDeliverables: (id: string) => string;
1720
+ readonly projectFilmPublish: (id: string) => string;
1721
+ readonly projectFilmGraph: (id: string) => string;
1722
+ readonly tasks: "/tasks";
1723
+ readonly settings: "/settings";
1724
+ /** Workspace-wide compliance dashboard (the old global `/compliance` constant had no page). */
1725
+ readonly workspaceCompliance: "/workspace/compliance";
1726
+ readonly onboarding: "/onboarding";
1727
+ /**
1728
+ * Spanish nonfiction book portal (thin PWA shell).
1729
+ * Nested under `/books/escribir` so public audiobook listen stays at `/books/[bookSlug]`.
1730
+ */
1731
+ readonly books: "/books";
1732
+ /** Dedicated Spanish portal login — stays out of the full NeuraLoom /login shell. */
1733
+ readonly booksLogin: "/books/entrar";
1734
+ readonly booksPortalProject: (projectId: string) => string;
1735
+ readonly booksPortalStep: (projectId: string, stepId: string) => string;
1736
+ };
1737
+ readonly git: {
1738
+ readonly repos: {
1739
+ readonly list: "/api/git/repos";
1740
+ readonly getById: (repoId: string) => string;
1741
+ readonly commits: (repoId: string) => string;
1742
+ readonly pullRequests: (repoId: string) => string;
1743
+ readonly issues: (repoId: string) => string;
1744
+ readonly activity: (repoId: string) => string;
1745
+ readonly sync: (repoId: string) => string;
1746
+ };
1747
+ readonly commits: {
1748
+ readonly list: "/api/git/commits";
1749
+ readonly getById: (commitId: string) => string;
1750
+ };
1751
+ readonly pullRequests: {
1752
+ readonly list: "/api/git/pulls";
1753
+ readonly getById: (prId: string) => string;
1754
+ };
1755
+ readonly issues: {
1756
+ readonly list: "/api/git/issues";
1757
+ readonly getById: (issueId: string) => string;
1758
+ };
1759
+ };
1760
+ readonly deployments: {
1761
+ readonly list: "/api/deployments";
1762
+ readonly getById: (deploymentId: string) => string;
1763
+ readonly logs: (deploymentId: string) => string;
1764
+ readonly byProject: (projectId: string) => string;
1765
+ /** @deprecated Use `triggerHook` (POST /deployments/trigger). This route remains for backwards compat only. */
1766
+ readonly trigger: (projectId: string) => string;
1767
+ readonly rollback: (deploymentId: string) => string;
1768
+ /** Canonical deployment readiness aggregator. */
1769
+ readonly status: (projectId: string) => string;
1770
+ /** Server-side deployment history (replaces browser Supabase read). */
1771
+ readonly history: (projectId: string) => string;
1772
+ /** Ingest a deployment event from an external provider. */
1773
+ readonly ingest: (projectId: string) => string;
1774
+ /** Verify a deployed URL is reachable and update verification status. */
1775
+ readonly verify: (projectId: string) => string;
1776
+ readonly configure: (projectId: string) => string;
1777
+ /** Sync latest Vercel deployment into local DB (observation-first). */
1778
+ readonly sync: (projectId: string) => string;
1779
+ /** Fire deploy hook to trigger a new Vercel deployment. */
1780
+ readonly triggerHook: (projectId: string) => string;
1781
+ /** Idempotent: set Vercel framework/rootDir, create deploy hook, register webhook. */
1782
+ readonly provision: (projectId: string) => string;
1783
+ /** Create a new Vercel project linked to the project's GitHub repo. */
1784
+ readonly create: (projectId: string) => string;
1785
+ /** Link an existing Vercel project to a NeuraLoom project. */
1786
+ readonly link: (projectId: string) => string;
1787
+ /** List Vercel projects in team (for link dialog). */
1788
+ readonly vercelProjects: (projectId: string) => string;
1789
+ /** Get linked Vercel project details. */
1790
+ readonly vercelProject: (projectId: string) => string;
1791
+ /** List env vars on linked Vercel project (names only). */
1792
+ readonly env: (projectId: string) => string;
1793
+ /** Push env vars to linked Vercel project. */
1794
+ readonly envSync: (projectId: string) => string;
1795
+ /** Read-only repo deployability scan — checks package.json, next dep, build script, app dir. */
1796
+ readonly preflight: (projectId: string) => string;
1797
+ /** Deterministic deployment success / promotion risk (heuristic, not ML). */
1798
+ readonly predict: (projectId: string) => string;
1799
+ /**
1800
+ * Controlled production rollback / instant promote to a prior healthy deployment.
1801
+ * Default dry-run; live requires explicit project_settings authorization.
1802
+ */
1803
+ readonly rollbackByProject: (projectId: string) => string;
1804
+ /** Backfill an existing live Vercel deployment into deployments (no redeploy). */
1805
+ readonly importExternal: (projectId: string) => string;
1806
+ };
1807
+ readonly ci: {
1808
+ readonly runs: {
1809
+ readonly byProject: (projectId: string) => string;
1810
+ };
1811
+ readonly statusByProject: (projectId: string) => string;
1812
+ readonly apply: (projectId: string) => string;
1813
+ readonly ingest: (projectId: string) => string;
1814
+ readonly dispatch: (projectId: string) => string;
1815
+ /** Operator override: mark CI step as operational (project_settings.settings.cicd.operatorReady). */
1816
+ readonly operatorReady: (projectId: string) => string;
1817
+ /** Operator override: accept partial CI validation when actionlint cannot run locally. */
1818
+ readonly allowSkipActionlint: (projectId: string) => string;
1819
+ /** Merge the open workflow PR via GitHub App — eliminates the need to leave NeuraLoom. */
1820
+ readonly mergePr: (projectId: string) => string;
1821
+ /** List all open implement PRs for the project (branches ending in /implement). */
1822
+ readonly listImplementPrs: (projectId: string) => string;
1823
+ };
1824
+ readonly factory: {
1825
+ readonly templates: {
1826
+ readonly list: "/api/factory/templates";
1827
+ readonly getById: (templateId: string) => string;
1828
+ };
1829
+ readonly generate: "/api/factory/generate";
1830
+ readonly boilerplate: {
1831
+ readonly getById: (artifactId: string) => string;
1832
+ readonly validate: "/api/factory/boilerplate/validate";
1833
+ };
1834
+ readonly lifecycle: {
1835
+ readonly start: "/api/factory/lifecycle/start";
1836
+ readonly getById: (lifecycleId: string) => string;
1837
+ readonly cancel: (lifecycleId: string) => string;
1838
+ readonly retry: (lifecycleId: string) => string;
1839
+ };
1840
+ };
1841
+ readonly workspace: {
1842
+ readonly components: {
1843
+ readonly list: "/api/workspace/components";
1844
+ readonly create: "/api/workspace/components";
1845
+ readonly getById: (componentId: string) => string;
1846
+ readonly update: (componentId: string) => string;
1847
+ readonly delete: (componentId: string) => string;
1848
+ readonly preview: (componentId: string) => string;
1849
+ readonly versions: (componentId: string) => string;
1850
+ readonly analytics: (componentId: string) => string;
1851
+ readonly generate: "/api/workspace/components/generate";
1852
+ readonly validate: "/api/workspace/components/validate";
1853
+ readonly marketplace: "/api/workspace/components/marketplace";
1854
+ readonly download: (componentId: string) => string;
1855
+ readonly rate: (componentId: string) => string;
1856
+ };
1857
+ readonly pages: {
1858
+ readonly list: "/api/workspace/pages";
1859
+ readonly create: "/api/workspace/pages";
1860
+ readonly getById: (pageId: string) => string;
1861
+ readonly update: (pageId: string) => string;
1862
+ readonly delete: (pageId: string) => string;
1863
+ readonly preview: (pageId: string) => string;
1864
+ readonly versions: (pageId: string) => string;
1865
+ readonly generate: "/api/workspace/pages/generate";
1866
+ readonly validate: "/api/workspace/pages/validate";
1867
+ readonly suggestions: "/api/workspace/pages/suggestions";
1868
+ };
1869
+ readonly themes: {
1870
+ readonly list: "/api/workspace/themes";
1871
+ readonly create: "/api/workspace/themes";
1872
+ readonly getById: (themeId: string) => string;
1873
+ readonly update: (themeId: string) => string;
1874
+ readonly activate: (themeId: string) => string;
1875
+ };
1876
+ };
1877
+ readonly infra: {
1878
+ readonly projects: {
1879
+ readonly list: "/api/infra/projects";
1880
+ readonly create: "/api/infra/projects";
1881
+ readonly getById: (id: string) => string;
1882
+ readonly update: (id: string) => string;
1883
+ readonly delete: (id: string) => string;
1884
+ };
1885
+ readonly runs: {
1886
+ readonly list: "/api/infra/runs";
1887
+ readonly getById: (id: string) => string;
1888
+ readonly logs: (id: string) => string;
1889
+ };
1890
+ readonly guardian: {
1891
+ readonly validate: "/api/infra/guardian/validate";
1892
+ readonly report: "/api/infra/guardian/report";
1893
+ };
1894
+ };
1895
+ readonly code: {
1896
+ readonly routes: {
1897
+ readonly list: "/api/routes";
1898
+ readonly getById: (routeId: string) => string;
1899
+ readonly byProject: (projectId: string) => string;
1900
+ readonly register: "/api/routes/register";
1901
+ };
1902
+ readonly snippets: {
1903
+ readonly list: "/api/code-snippets";
1904
+ readonly getById: (snippetId: string) => string;
1905
+ readonly byProject: (projectId: string) => string;
1906
+ readonly byTask: (taskId: string) => string;
1907
+ };
1908
+ readonly architectures: {
1909
+ readonly list: "/api/architectures";
1910
+ readonly getById: (graphId: string) => string;
1911
+ readonly byProject: (projectId: string) => string;
1912
+ readonly generate: (projectId: string) => string;
1913
+ };
1914
+ readonly retrospectives: {
1915
+ readonly list: "/api/retrospectives";
1916
+ readonly getById: (retroId: string) => string;
1917
+ readonly byProject: (projectId: string) => string;
1918
+ readonly generate: (projectId: string) => string;
1919
+ };
1920
+ readonly specTemplates: {
1921
+ readonly list: "/api/spec-templates";
1922
+ readonly getById: (templateId: string) => string;
1923
+ readonly byCategory: (category: string) => string;
1924
+ };
1925
+ };
1926
+ readonly orchestrationDurable: {
1927
+ readonly run: "/api/orchestration/run";
1928
+ readonly stageRun: "/api/orchestration/stage-run";
1929
+ readonly continue: "/api/orchestration/continue";
1930
+ readonly runStatus: (id: string) => string;
1931
+ };
1932
+ readonly runtime: {
1933
+ readonly run: "/api/runtime/run";
1934
+ readonly ingest: "/api/runtime/ingest";
1935
+ readonly findingsProject: "/api/runtime/findings/project";
1936
+ readonly tasksProject: "/api/runtime/tasks/project";
1937
+ readonly guardEvaluate: "/api/runtime/guard/evaluate";
1938
+ readonly tutorialProof: "/api/runtime/tutorial/proof";
1939
+ };
1940
+ readonly film: {
1941
+ readonly clips: "/api/film/clips";
1942
+ readonly clipReview: (id: string) => string;
1943
+ readonly clipSelect: (id: string) => string;
1944
+ readonly keyframesList: "/api/film/keyframes";
1945
+ readonly keyframesRegister: "/api/film/keyframes/register";
1946
+ readonly keyframesGenerate: "/api/film/keyframes/generate";
1947
+ readonly keyframeReview: (keyframeId: string) => string;
1948
+ readonly clipReviewScores: (clipId: string) => string;
1949
+ readonly clipPlaybackUrl: (clipId: string) => string;
1950
+ readonly shotAssessRisk: (shotId: string) => string;
1951
+ readonly export: "/api/film/export";
1952
+ readonly kgCoverage: "/api/film/kg-coverage";
1953
+ readonly ofiReport: "/api/film/ofi-report";
1954
+ readonly lessonsManifest: "/api/film/lessons-manifest";
1955
+ readonly resolveIngest: "/api/film/resolve-ingest";
1956
+ readonly render: "/api/film/render";
1957
+ readonly renderWorker: "/api/film/render/worker";
1958
+ readonly editSequences: "/api/film/edit-sequences";
1959
+ readonly editSequencesBuildRoughCut: "/api/film/edit-sequences/build-rough-cut";
1960
+ readonly queueEnqueue: "/api/film/queue/enqueue";
1961
+ readonly hydrateFromArtifacts: "/api/film/hydrate-from-artifacts";
1962
+ readonly shotsList: "/api/film/shots";
1963
+ readonly scenesList: "/api/film/scenes";
1964
+ readonly promptsList: "/api/film/prompts";
1965
+ readonly queueEnqueueClipFromShot: "/api/film/queue/enqueue-clip-from-shot";
1966
+ readonly queueEnqueueMultiTake: "/api/film/queue/enqueue-multi-take";
1967
+ readonly queueDrain: "/api/film/queue/drain";
1968
+ readonly queueProcessProject: "/api/film/queue/process-project";
1969
+ readonly queueTasks: "/api/film/queue/tasks";
1970
+ readonly queueTaskCancel: (taskId: string) => string;
1971
+ readonly queueTaskRetry: (taskId: string) => string;
1972
+ readonly queueTaskDetail: (taskId: string) => string;
1973
+ readonly characterPacks: "/api/film/character-packs";
1974
+ readonly characterPackApprove: (id: string) => string;
1975
+ readonly promptRepairForShot: "/api/film/prompts/repair-for-shot";
1976
+ readonly runwayWebhook: "/api/film/providers/runway/webhook";
1977
+ readonly queuePollRunway: "/api/film/queue/poll-runway";
1978
+ readonly comfyUiNotify: "/api/film/providers/comfyui/notify";
1979
+ readonly comfyUiWorkflows: "/api/film/comfyui-workflows";
1980
+ readonly comfyUiWorkflow: (id: string) => string;
1981
+ readonly promptPerformance: "/api/film/prompt-performance";
1982
+ readonly takeComparisons: "/api/film/take-comparisons";
1983
+ readonly takeComparison: (id: string) => string;
1984
+ readonly takeComparisonDecide: (id: string) => string;
1985
+ readonly deliverables: "/api/film/deliverables";
1986
+ readonly deliverableIngest: "/api/film/deliverables/ingest";
1987
+ readonly deliverablePublishPackage: "/api/film/deliverables/publish-package";
1988
+ readonly deliverablePlaybackUrl: (id: string) => string;
1989
+ readonly deliverableUpdate: (id: string) => string;
1990
+ readonly mediaAssetReview: (id: string) => string;
1991
+ readonly mediaAssetPromote: (id: string) => string;
1992
+ readonly marketingCreatives: "/api/film/marketing/creatives";
1993
+ readonly datasets: "/api/film/datasets";
1994
+ readonly dataset: (id: string) => string;
1995
+ readonly datasetItems: (id: string) => string;
1996
+ readonly datasetManifest: (id: string) => string;
1997
+ };
1998
+ readonly orchestrationLive: {
1999
+ readonly stream: (projectId: string) => string;
2000
+ };
2001
+ readonly guardian: {
2002
+ readonly validate: "/api/guardian/validate";
2003
+ readonly insights: "/api/guardian/insights";
2004
+ readonly adapters: "/api/guardian/adapters";
2005
+ readonly trend: "/api/guardian/trend";
2006
+ readonly status: "/api/guardian/status";
2007
+ readonly summary: "/api/guardian/summary";
2008
+ readonly telemetry: "/api/guardian/telemetry";
2009
+ };
2010
+ readonly repo: {
2011
+ readonly scan: "/api/repo/scan";
2012
+ /** Replay a completed scan persist into the Cortex outbox. Does not start a scan. */
2013
+ readonly emitToCortex: (projectId: string) => string;
2014
+ };
2015
+ readonly implement: {
2016
+ readonly readiness: (projectId: string) => string;
2017
+ readonly readinessLite: (projectId: string) => string;
2018
+ readonly diagnostics: (projectId: string) => string;
2019
+ /** GET recent `implementation_patch_set` rows (newest first). */
2020
+ readonly history: (projectId: string) => string;
2021
+ /** GET lifecycle + validation + task statuses for one patch set ID. */
2022
+ readonly patchDetail: (projectId: string, patchSetId: string) => string;
2023
+ readonly patches: {
2024
+ readonly validate: (projectId: string, patchSetId: string) => string;
2025
+ readonly push: (projectId: string, patchSetId: string) => string;
2026
+ readonly pr: (projectId: string, patchSetId: string) => string;
2027
+ readonly quarantine: (projectId: string, patchSetId: string) => string;
2028
+ readonly proofSource: (projectId: string, patchSetId: string) => string;
2029
+ };
2030
+ readonly nextPacket: (projectId: string) => string;
2031
+ readonly generateNextPacket: (projectId: string) => string;
2032
+ readonly recoverStalePipeline: (projectId: string) => string;
2033
+ readonly runSelectedProof: (projectId: string) => string;
2034
+ readonly startProofPr: (projectId: string) => string;
2035
+ /**
2036
+ * POST — heal missing @types/* on an existing Next.js baseline so Vercel
2037
+ * builds stop failing with "please install @types/react and @types/node".
2038
+ */
2039
+ readonly baselineTypesHeal: (projectId: string) => string;
2040
+ readonly skipTasks: (projectId: string) => string;
2041
+ readonly runs: {
2042
+ readonly start: (projectId: string) => string;
2043
+ readonly detail: (projectId: string, runId: string) => string;
2044
+ readonly process: (projectId: string, runId: string) => string;
2045
+ readonly pause: (projectId: string, runId: string) => string;
2046
+ readonly resume: (projectId: string, runId: string) => string;
2047
+ readonly cancel: (projectId: string, runId: string) => string;
2048
+ readonly batches: (projectId: string, runId: string) => string;
2049
+ };
2050
+ };
2051
+ readonly workflow: {
2052
+ readonly gates: {
2053
+ readonly approve: (gateId: string) => string;
2054
+ readonly reject: (gateId: string) => string;
2055
+ };
2056
+ /** Coding Quality Spine — task capsule + context bundle (Wave 4). */
2057
+ readonly capsule: {
2058
+ /** POST — generate a task capsule from approved Spec + Plan. */
2059
+ readonly generate: (projectId: string) => string;
2060
+ /** GET — retrieve an existing task capsule. */
2061
+ readonly get: (projectId: string, taskId: string) => string;
2062
+ };
2063
+ readonly contextBundle: {
2064
+ /** GET — compile and return a minimal context bundle for a task. */
2065
+ readonly compile: (projectId: string, taskId: string) => string;
2066
+ };
2067
+ /** Engineering context — durable task checkpoints (server assigns sequence). */
2068
+ readonly checkpoint: {
2069
+ /** POST — record a checkpoint; supersedes the previous one for the task. */
2070
+ readonly create: (projectId: string) => string;
2071
+ /** GET — latest checkpoint for a task. */
2072
+ readonly latest: (projectId: string, taskId: string) => string;
2073
+ };
2074
+ /** Engineering context — verification result records. */
2075
+ readonly verification: {
2076
+ /** POST — record one verification result. */
2077
+ readonly record: (projectId: string) => string;
2078
+ /** GET — verification results for a task (newest first, limit 50). */
2079
+ readonly list: (projectId: string, taskId: string) => string;
2080
+ };
2081
+ /** Engineering context — resume from the latest checkpoint with evidence invalidation. */
2082
+ readonly resume: {
2083
+ /** POST — invalidate stale evidence, rebuild + persist the brief. */
2084
+ readonly run: (projectId: string) => string;
2085
+ };
2086
+ /** Engineering context — bounded, revision-aware worker brief. */
2087
+ readonly engineeringBrief: {
2088
+ /** GET — compile, persist and return the engineering brief for a task. */
2089
+ readonly compile: (projectId: string, taskId: string) => string;
2090
+ };
2091
+ readonly parityCheck: {
2092
+ /** POST — persist a parityCheckResult artifact from a CI architecture test run. */
2093
+ readonly persist: (projectId: string) => string;
2094
+ };
2095
+ /** Coding Quality Spine — test obligation manifest (Wave 12). */
2096
+ readonly testObligation: {
2097
+ /** POST — upsert the TestObligationManifest for a project/PR. */
2098
+ readonly upsert: (projectId: string) => string;
2099
+ /** GET — retrieve the current TestObligationManifest for a project. */
2100
+ readonly get: (projectId: string) => string;
2101
+ };
2102
+ /** Ship + Review + Iteration closure orchestrator (pilot / backfill). */
2103
+ readonly shipClosure: (projectId: string) => string;
2104
+ /** Generated-app product readiness (routes, auth, persistence, domain checks). */
2105
+ readonly productReadiness: (projectId: string) => string;
2106
+ /** Operator release decision producer (PR2 — reviewReleaseDecision + reviewAcceptance). */
2107
+ readonly reviewReleaseDecision: (projectId: string) => string;
2108
+ /** NeuraLoom → Cortex product release package handoff. */
2109
+ readonly sendToCortex: (projectId: string) => string;
2110
+ };
2111
+ readonly analytics: {
2112
+ readonly guardian: "/api/analytics/guardian";
2113
+ readonly projectMetrics: (id: string) => string;
2114
+ readonly complianceReport: (id: string) => string;
2115
+ readonly teamInsights: (id: string) => string;
2116
+ readonly workspace: "/api/analytics/workspace";
2117
+ readonly notificationsFeed: "/api/analytics/notifications-feed";
2118
+ };
2119
+ readonly dashboard: {
2120
+ readonly stats: "/api/dashboard/stats";
2121
+ };
2122
+ readonly decisions: {
2123
+ readonly list: "/api/decisions";
2124
+ readonly respond: (decisionId: string) => string;
2125
+ };
2126
+ readonly workflowTemplates: {
2127
+ readonly list: "/api/workflows/templates";
2128
+ readonly use: (templateId: string) => string;
2129
+ };
2130
+ readonly team: {
2131
+ readonly list: "/api/team";
2132
+ readonly root: "/api/team";
2133
+ };
2134
+ readonly teams: {
2135
+ readonly list: "/api/teams";
2136
+ readonly agents: {
2137
+ readonly list: "/api/teams/agents";
2138
+ readonly byId: (id: string) => string;
2139
+ };
2140
+ readonly assignRole: "/api/teams/assign-role";
2141
+ readonly models: {
2142
+ readonly list: (teamId: string) => string;
2143
+ readonly create: (teamId: string) => string;
2144
+ readonly delete: (teamId: string, modelId: string) => string;
2145
+ };
2146
+ readonly phases: {
2147
+ readonly list: (teamId: string) => string;
2148
+ readonly create: (teamId: string) => string;
2149
+ readonly delete: (teamId: string, phaseId: string) => string;
2150
+ };
2151
+ readonly feedback: (teamId: string) => string;
2152
+ };
2153
+ readonly agentActions: {
2154
+ readonly list: "/api/agent-actions";
2155
+ readonly pending: "/api/agent-actions/pending";
2156
+ readonly byId: (id: string) => string;
2157
+ readonly approve: (id: string) => string;
2158
+ readonly reject: (id: string) => string;
2159
+ readonly retry: (id: string) => string;
2160
+ };
2161
+ readonly telemetry: {
2162
+ readonly aiUsage: "/api/metrics/ai-usage";
2163
+ };
2164
+ readonly search: {
2165
+ readonly query: "/api/search";
2166
+ };
2167
+ };
2168
+ export declare const ROUTES: {
2169
+ readonly public: {
2170
+ readonly audiobooks: {
2171
+ readonly manifest: (bookSlug: string) => string;
2172
+ readonly listenPage: (bookSlug: string) => string;
2173
+ };
2174
+ };
2175
+ readonly publication: {
2176
+ readonly audiobook: {
2177
+ readonly embedPackage: (projectId: string) => string;
2178
+ };
2179
+ readonly manuscript: {
2180
+ readonly export: "/api/publication/manuscript/export";
2181
+ };
2182
+ };
2183
+ readonly Projects: "/api/projects";
2184
+ readonly Tasks: "/api/tasks";
2185
+ readonly Specs: "/api/specs";
2186
+ readonly KnowledgeNodes: "/api/knowledge/nodes";
2187
+ readonly KnowledgeEdges: "/api/knowledge/edges";
2188
+ readonly KnowledgeQuery: "/api/knowledge/query";
2189
+ readonly VectorsSearch: "/api/vectors/search";
2190
+ readonly VectorsUpsert: "/api/vectors/upsert";
2191
+ readonly VectorsSimilarity: "/api/vectors/similarity";
2192
+ readonly McpSql: "/api/mcp/sql";
2193
+ readonly projects: {
2194
+ readonly export: (projectId: string, format: string) => string;
2195
+ readonly projectFilmResolve: (id: string) => string;
2196
+ readonly projectFilmExport: (id: string) => string;
2197
+ };
2198
+ readonly plan: {
2199
+ readonly gateStatus: (projectId: string) => string;
2200
+ };
2201
+ };
2202
+ export * from './community';
2203
+ export * from './assurance';