@neuraloom/contracts 0.0.0-stage → 0.1.23

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 +14645 -0
  563. package/dist/schemas/cortex/bridge-events.schema.js +828 -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 +163 -0
  833. package/dist/schemas/orchestration-execution.js +89 -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 +83 -4
  1141. package/README.md +0 -3
@@ -0,0 +1,3444 @@
1
+ import { z } from 'zod';
2
+ export declare const DraftModeSchema: z.ZodEnum<["fast", "checkpoint", "editorial", "guardian_gated"]>;
3
+ export type DraftMode = z.infer<typeof DraftModeSchema>;
4
+ export declare const ManuscriptLengthProfileSchema: z.ZodEnum<["short", "standard", "deep", "technical", "custom"]>;
5
+ export type ManuscriptLengthProfile = z.infer<typeof ManuscriptLengthProfileSchema>;
6
+ export declare const CHAPTER_WORD_TARGETS: Record<ManuscriptLengthProfile, number>;
7
+ /**
8
+ * Legacy compatibility only. New nonfiction drafting must never use these
9
+ * values as a creative objective, completion rule, warning, or quality signal.
10
+ */
11
+ export declare const ArgumentLedgerSchema: z.ZodObject<{
12
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
13
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
14
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
15
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
16
+ openLoops: z.ZodArray<z.ZodString, "many">;
17
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
18
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
19
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
20
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
21
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
22
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ establishedClaims: string[];
25
+ introducedDefinitions: string[];
26
+ recurringTerms: string[];
27
+ unresolvedQuestions: string[];
28
+ openLoops: string[];
29
+ evidenceAlreadyUsed: string[];
30
+ examplesAlreadyUsed: string[];
31
+ metaphorsAlreadyUsed: string[];
32
+ prohibitedRepetition: string[];
33
+ nextChapterPromises: string[];
34
+ toneContinuityNotes: string[];
35
+ }, {
36
+ establishedClaims: string[];
37
+ introducedDefinitions: string[];
38
+ recurringTerms: string[];
39
+ unresolvedQuestions: string[];
40
+ openLoops: string[];
41
+ evidenceAlreadyUsed: string[];
42
+ examplesAlreadyUsed: string[];
43
+ metaphorsAlreadyUsed: string[];
44
+ prohibitedRepetition: string[];
45
+ nextChapterPromises: string[];
46
+ toneContinuityNotes: string[];
47
+ }>;
48
+ export type ArgumentLedger = z.infer<typeof ArgumentLedgerSchema>;
49
+ export declare const ChapterDraftTaskSchema: z.ZodObject<{
50
+ chapterId: z.ZodString;
51
+ chapterNumber: z.ZodNumber;
52
+ partId: z.ZodOptional<z.ZodString>;
53
+ partNumber: z.ZodOptional<z.ZodNumber>;
54
+ title: z.ZodString;
55
+ purpose: z.ZodString;
56
+ readerQuestion: z.ZodDefault<z.ZodString>;
57
+ directAnswer: z.ZodDefault<z.ZodString>;
58
+ newContribution: z.ZodDefault<z.ZodString>;
59
+ readerPayoff: z.ZodDefault<z.ZodString>;
60
+ relationshipToPriorChapters: z.ZodDefault<z.ZodString>;
61
+ exitCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
62
+ audioArc: z.ZodDefault<z.ZodString>;
63
+ paragraphPlan: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
64
+ /** Hash of the exact approved chapter-plan entry that authorized this task. */
65
+ sourcePlanChapterHash: z.ZodDefault<z.ZodString>;
66
+ /** @deprecated Persisted-session compatibility only; new tasks set this to 0. */
67
+ targetWordCount: z.ZodNumber;
68
+ requiredClaimIds: z.ZodArray<z.ZodString, "many">;
69
+ requiredDefinitionIds: z.ZodArray<z.ZodString, "many">;
70
+ requiredSourceIds: z.ZodArray<z.ZodString, "many">;
71
+ counterclaimsToAddress: z.ZodArray<z.ZodString, "many">;
72
+ previousChapterSummary: z.ZodOptional<z.ZodString>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ title: string;
75
+ directAnswer: string;
76
+ chapterId: string;
77
+ purpose: string;
78
+ counterclaimsToAddress: string[];
79
+ chapterNumber: number;
80
+ readerQuestion: string;
81
+ newContribution: string;
82
+ readerPayoff: string;
83
+ relationshipToPriorChapters: string;
84
+ exitCriteria: string[];
85
+ audioArc: string;
86
+ paragraphPlan: Record<string, unknown>[];
87
+ sourcePlanChapterHash: string;
88
+ targetWordCount: number;
89
+ requiredClaimIds: string[];
90
+ requiredDefinitionIds: string[];
91
+ requiredSourceIds: string[];
92
+ partId?: string | undefined;
93
+ partNumber?: number | undefined;
94
+ previousChapterSummary?: string | undefined;
95
+ }, {
96
+ title: string;
97
+ chapterId: string;
98
+ purpose: string;
99
+ counterclaimsToAddress: string[];
100
+ chapterNumber: number;
101
+ targetWordCount: number;
102
+ requiredClaimIds: string[];
103
+ requiredDefinitionIds: string[];
104
+ requiredSourceIds: string[];
105
+ directAnswer?: string | undefined;
106
+ partId?: string | undefined;
107
+ partNumber?: number | undefined;
108
+ readerQuestion?: string | undefined;
109
+ newContribution?: string | undefined;
110
+ readerPayoff?: string | undefined;
111
+ relationshipToPriorChapters?: string | undefined;
112
+ exitCriteria?: string[] | undefined;
113
+ audioArc?: string | undefined;
114
+ paragraphPlan?: Record<string, unknown>[] | undefined;
115
+ sourcePlanChapterHash?: string | undefined;
116
+ previousChapterSummary?: string | undefined;
117
+ }>;
118
+ export type ChapterDraftTask = z.infer<typeof ChapterDraftTaskSchema>;
119
+ export declare const ChapterSectionSchema: z.ZodObject<{
120
+ heading: z.ZodString;
121
+ content: z.ZodString;
122
+ wordCount: z.ZodNumber;
123
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
124
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
125
+ sourcesUsed: z.ZodArray<z.ZodString, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ content: string;
128
+ heading: string;
129
+ wordCount: number;
130
+ claimsUsed: string[];
131
+ definitionsUsed: string[];
132
+ sourcesUsed: string[];
133
+ }, {
134
+ content: string;
135
+ heading: string;
136
+ wordCount: number;
137
+ claimsUsed: string[];
138
+ definitionsUsed: string[];
139
+ sourcesUsed: string[];
140
+ }>;
141
+ export declare const EvidenceStrengthSchema: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
142
+ export type EvidenceStrength = z.infer<typeof EvidenceStrengthSchema>;
143
+ export declare const EvidenceIntegrationPointSchema: z.ZodObject<{
144
+ location: z.ZodString;
145
+ claimText: z.ZodString;
146
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
147
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ location: string;
151
+ claimText: string;
152
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
153
+ sourceId?: string | null | undefined;
154
+ needsSourceAssignment?: boolean | null | undefined;
155
+ }, {
156
+ location: string;
157
+ claimText: string;
158
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
159
+ sourceId?: string | null | undefined;
160
+ needsSourceAssignment?: boolean | null | undefined;
161
+ }>;
162
+ export type EvidenceIntegrationPoint = z.infer<typeof EvidenceIntegrationPointSchema>;
163
+ export declare const NonfictionEvidenceContextSchema: z.ZodObject<{
164
+ claimRiskPolicy: z.ZodString;
165
+ validationRules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
166
+ researchTasks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
167
+ chapterScheduleEntries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
168
+ }, "strip", z.ZodTypeAny, {
169
+ researchTasks: Record<string, unknown>[];
170
+ claimRiskPolicy: string;
171
+ validationRules: Record<string, unknown>[];
172
+ chapterScheduleEntries: Record<string, unknown>[];
173
+ }, {
174
+ researchTasks: Record<string, unknown>[];
175
+ claimRiskPolicy: string;
176
+ validationRules: Record<string, unknown>[];
177
+ chapterScheduleEntries: Record<string, unknown>[];
178
+ }>;
179
+ export type NonfictionEvidenceContext = z.infer<typeof NonfictionEvidenceContextSchema>;
180
+ export declare const ChapterQualityDimensionScoresSchema: z.ZodObject<{
181
+ purpose: z.ZodNumber;
182
+ accuracy: z.ZodNumber;
183
+ directness: z.ZodNumber;
184
+ density: z.ZodNumber;
185
+ novelty: z.ZodNumber;
186
+ intrigue: z.ZodNumber;
187
+ humanismStorytelling: z.ZodNumber;
188
+ voiceStyleFidelity: z.ZodNumber;
189
+ printClarity: z.ZodNumber;
190
+ audioListenability: z.ZodNumber;
191
+ }, "strip", z.ZodTypeAny, {
192
+ directness: number;
193
+ purpose: number;
194
+ accuracy: number;
195
+ density: number;
196
+ novelty: number;
197
+ intrigue: number;
198
+ humanismStorytelling: number;
199
+ voiceStyleFidelity: number;
200
+ printClarity: number;
201
+ audioListenability: number;
202
+ }, {
203
+ directness: number;
204
+ purpose: number;
205
+ accuracy: number;
206
+ density: number;
207
+ novelty: number;
208
+ intrigue: number;
209
+ humanismStorytelling: number;
210
+ voiceStyleFidelity: number;
211
+ printClarity: number;
212
+ audioListenability: number;
213
+ }>;
214
+ export type ChapterQualityDimensionScores = z.infer<typeof ChapterQualityDimensionScoresSchema>;
215
+ export declare const SemanticUnitActionSchema: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
216
+ export declare const ChapterParagraphAuditSchema: z.ZodObject<{
217
+ id: z.ZodString;
218
+ primaryFunction: z.ZodString;
219
+ contractReferences: z.ZodArray<z.ZodString, "many">;
220
+ uniqueContribution: z.ZodString;
221
+ removableWithoutLoss: z.ZodBoolean;
222
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
223
+ printPass: z.ZodBoolean;
224
+ audioPass: z.ZodBoolean;
225
+ issues: z.ZodArray<z.ZodString, "many">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ id: string;
228
+ issues: string[];
229
+ printPass: boolean;
230
+ audioPass: boolean;
231
+ primaryFunction: string;
232
+ contractReferences: string[];
233
+ uniqueContribution: string;
234
+ removableWithoutLoss: boolean;
235
+ action: "merge" | "keep" | "rewrite" | "cut";
236
+ }, {
237
+ id: string;
238
+ issues: string[];
239
+ printPass: boolean;
240
+ audioPass: boolean;
241
+ primaryFunction: string;
242
+ contractReferences: string[];
243
+ uniqueContribution: string;
244
+ removableWithoutLoss: boolean;
245
+ action: "merge" | "keep" | "rewrite" | "cut";
246
+ }>;
247
+ export type ChapterParagraphAudit = z.infer<typeof ChapterParagraphAuditSchema>;
248
+ export declare const ChapterSentenceAuditSchema: z.ZodObject<{
249
+ id: z.ZodString;
250
+ paragraphId: z.ZodString;
251
+ contribution: z.ZodString;
252
+ contractReference: z.ZodString;
253
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
254
+ issues: z.ZodArray<z.ZodString, "many">;
255
+ }, "strip", z.ZodTypeAny, {
256
+ id: string;
257
+ issues: string[];
258
+ action: "merge" | "keep" | "rewrite" | "cut";
259
+ paragraphId: string;
260
+ contribution: string;
261
+ contractReference: string;
262
+ }, {
263
+ id: string;
264
+ issues: string[];
265
+ action: "merge" | "keep" | "rewrite" | "cut";
266
+ paragraphId: string;
267
+ contribution: string;
268
+ contractReference: string;
269
+ }>;
270
+ export type ChapterSentenceAudit = z.infer<typeof ChapterSentenceAuditSchema>;
271
+ /** Strict model output. The server recomputes pass/fail; model `passed` is advisory only. */
272
+ export declare const ChapterGuardianPayloadSchema: z.ZodObject<{
273
+ score: z.ZodNumber;
274
+ passed: z.ZodBoolean;
275
+ findings: z.ZodArray<z.ZodString, "many">;
276
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
277
+ ledgerUpdate: z.ZodObject<{
278
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
279
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
280
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
281
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
282
+ openLoops: z.ZodArray<z.ZodString, "many">;
283
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
284
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
285
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
286
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
287
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
288
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
289
+ }, "strip", z.ZodTypeAny, {
290
+ establishedClaims: string[];
291
+ introducedDefinitions: string[];
292
+ recurringTerms: string[];
293
+ unresolvedQuestions: string[];
294
+ openLoops: string[];
295
+ evidenceAlreadyUsed: string[];
296
+ examplesAlreadyUsed: string[];
297
+ metaphorsAlreadyUsed: string[];
298
+ prohibitedRepetition: string[];
299
+ nextChapterPromises: string[];
300
+ toneContinuityNotes: string[];
301
+ }, {
302
+ establishedClaims: string[];
303
+ introducedDefinitions: string[];
304
+ recurringTerms: string[];
305
+ unresolvedQuestions: string[];
306
+ openLoops: string[];
307
+ evidenceAlreadyUsed: string[];
308
+ examplesAlreadyUsed: string[];
309
+ metaphorsAlreadyUsed: string[];
310
+ prohibitedRepetition: string[];
311
+ nextChapterPromises: string[];
312
+ toneContinuityNotes: string[];
313
+ }>;
314
+ dimensions: z.ZodObject<{
315
+ purpose: z.ZodNumber;
316
+ accuracy: z.ZodNumber;
317
+ directness: z.ZodNumber;
318
+ density: z.ZodNumber;
319
+ novelty: z.ZodNumber;
320
+ intrigue: z.ZodNumber;
321
+ humanismStorytelling: z.ZodNumber;
322
+ voiceStyleFidelity: z.ZodNumber;
323
+ printClarity: z.ZodNumber;
324
+ audioListenability: z.ZodNumber;
325
+ }, "strip", z.ZodTypeAny, {
326
+ directness: number;
327
+ purpose: number;
328
+ accuracy: number;
329
+ density: number;
330
+ novelty: number;
331
+ intrigue: number;
332
+ humanismStorytelling: number;
333
+ voiceStyleFidelity: number;
334
+ printClarity: number;
335
+ audioListenability: number;
336
+ }, {
337
+ directness: number;
338
+ purpose: number;
339
+ accuracy: number;
340
+ density: number;
341
+ novelty: number;
342
+ intrigue: number;
343
+ humanismStorytelling: number;
344
+ voiceStyleFidelity: number;
345
+ printClarity: number;
346
+ audioListenability: number;
347
+ }>;
348
+ paragraphAudits: z.ZodArray<z.ZodObject<{
349
+ id: z.ZodString;
350
+ primaryFunction: z.ZodString;
351
+ contractReferences: z.ZodArray<z.ZodString, "many">;
352
+ uniqueContribution: z.ZodString;
353
+ removableWithoutLoss: z.ZodBoolean;
354
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
355
+ printPass: z.ZodBoolean;
356
+ audioPass: z.ZodBoolean;
357
+ issues: z.ZodArray<z.ZodString, "many">;
358
+ }, "strip", z.ZodTypeAny, {
359
+ id: string;
360
+ issues: string[];
361
+ printPass: boolean;
362
+ audioPass: boolean;
363
+ primaryFunction: string;
364
+ contractReferences: string[];
365
+ uniqueContribution: string;
366
+ removableWithoutLoss: boolean;
367
+ action: "merge" | "keep" | "rewrite" | "cut";
368
+ }, {
369
+ id: string;
370
+ issues: string[];
371
+ printPass: boolean;
372
+ audioPass: boolean;
373
+ primaryFunction: string;
374
+ contractReferences: string[];
375
+ uniqueContribution: string;
376
+ removableWithoutLoss: boolean;
377
+ action: "merge" | "keep" | "rewrite" | "cut";
378
+ }>, "many">;
379
+ sentenceAudits: z.ZodArray<z.ZodObject<{
380
+ id: z.ZodString;
381
+ paragraphId: z.ZodString;
382
+ contribution: z.ZodString;
383
+ contractReference: z.ZodString;
384
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
385
+ issues: z.ZodArray<z.ZodString, "many">;
386
+ }, "strip", z.ZodTypeAny, {
387
+ id: string;
388
+ issues: string[];
389
+ action: "merge" | "keep" | "rewrite" | "cut";
390
+ paragraphId: string;
391
+ contribution: string;
392
+ contractReference: string;
393
+ }, {
394
+ id: string;
395
+ issues: string[];
396
+ action: "merge" | "keep" | "rewrite" | "cut";
397
+ paragraphId: string;
398
+ contribution: string;
399
+ contractReference: string;
400
+ }>, "many">;
401
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
402
+ semanticStopSatisfied: z.ZodBoolean;
403
+ }, "strip", z.ZodTypeAny, {
404
+ dimensions: {
405
+ directness: number;
406
+ purpose: number;
407
+ accuracy: number;
408
+ density: number;
409
+ novelty: number;
410
+ intrigue: number;
411
+ humanismStorytelling: number;
412
+ voiceStyleFidelity: number;
413
+ printClarity: number;
414
+ audioListenability: number;
415
+ };
416
+ passed: boolean;
417
+ findings: string[];
418
+ semanticStopSatisfied: boolean;
419
+ score: number;
420
+ repairSuggestions: string[];
421
+ ledgerUpdate: {
422
+ establishedClaims: string[];
423
+ introducedDefinitions: string[];
424
+ recurringTerms: string[];
425
+ unresolvedQuestions: string[];
426
+ openLoops: string[];
427
+ evidenceAlreadyUsed: string[];
428
+ examplesAlreadyUsed: string[];
429
+ metaphorsAlreadyUsed: string[];
430
+ prohibitedRepetition: string[];
431
+ nextChapterPromises: string[];
432
+ toneContinuityNotes: string[];
433
+ };
434
+ paragraphAudits: {
435
+ id: string;
436
+ issues: string[];
437
+ printPass: boolean;
438
+ audioPass: boolean;
439
+ primaryFunction: string;
440
+ contractReferences: string[];
441
+ uniqueContribution: string;
442
+ removableWithoutLoss: boolean;
443
+ action: "merge" | "keep" | "rewrite" | "cut";
444
+ }[];
445
+ sentenceAudits: {
446
+ id: string;
447
+ issues: string[];
448
+ action: "merge" | "keep" | "rewrite" | "cut";
449
+ paragraphId: string;
450
+ contribution: string;
451
+ contractReference: string;
452
+ }[];
453
+ unresolvedContractItems: string[];
454
+ }, {
455
+ dimensions: {
456
+ directness: number;
457
+ purpose: number;
458
+ accuracy: number;
459
+ density: number;
460
+ novelty: number;
461
+ intrigue: number;
462
+ humanismStorytelling: number;
463
+ voiceStyleFidelity: number;
464
+ printClarity: number;
465
+ audioListenability: number;
466
+ };
467
+ passed: boolean;
468
+ findings: string[];
469
+ semanticStopSatisfied: boolean;
470
+ score: number;
471
+ repairSuggestions: string[];
472
+ ledgerUpdate: {
473
+ establishedClaims: string[];
474
+ introducedDefinitions: string[];
475
+ recurringTerms: string[];
476
+ unresolvedQuestions: string[];
477
+ openLoops: string[];
478
+ evidenceAlreadyUsed: string[];
479
+ examplesAlreadyUsed: string[];
480
+ metaphorsAlreadyUsed: string[];
481
+ prohibitedRepetition: string[];
482
+ nextChapterPromises: string[];
483
+ toneContinuityNotes: string[];
484
+ };
485
+ paragraphAudits: {
486
+ id: string;
487
+ issues: string[];
488
+ printPass: boolean;
489
+ audioPass: boolean;
490
+ primaryFunction: string;
491
+ contractReferences: string[];
492
+ uniqueContribution: string;
493
+ removableWithoutLoss: boolean;
494
+ action: "merge" | "keep" | "rewrite" | "cut";
495
+ }[];
496
+ sentenceAudits: {
497
+ id: string;
498
+ issues: string[];
499
+ action: "merge" | "keep" | "rewrite" | "cut";
500
+ paragraphId: string;
501
+ contribution: string;
502
+ contractReference: string;
503
+ }[];
504
+ unresolvedContractItems: string[];
505
+ }>;
506
+ export type ChapterGuardianPayload = z.infer<typeof ChapterGuardianPayloadSchema>;
507
+ export declare const ChapterSemanticQualityAssessmentSchema: z.ZodObject<{
508
+ version: z.ZodLiteral<"semantic-v1">;
509
+ proseHash: z.ZodString;
510
+ contractHash: z.ZodString;
511
+ evaluatedAt: z.ZodString;
512
+ dimensions: z.ZodObject<{
513
+ purpose: z.ZodNumber;
514
+ accuracy: z.ZodNumber;
515
+ directness: z.ZodNumber;
516
+ density: z.ZodNumber;
517
+ novelty: z.ZodNumber;
518
+ intrigue: z.ZodNumber;
519
+ humanismStorytelling: z.ZodNumber;
520
+ voiceStyleFidelity: z.ZodNumber;
521
+ printClarity: z.ZodNumber;
522
+ audioListenability: z.ZodNumber;
523
+ }, "strip", z.ZodTypeAny, {
524
+ directness: number;
525
+ purpose: number;
526
+ accuracy: number;
527
+ density: number;
528
+ novelty: number;
529
+ intrigue: number;
530
+ humanismStorytelling: number;
531
+ voiceStyleFidelity: number;
532
+ printClarity: number;
533
+ audioListenability: number;
534
+ }, {
535
+ directness: number;
536
+ purpose: number;
537
+ accuracy: number;
538
+ density: number;
539
+ novelty: number;
540
+ intrigue: number;
541
+ humanismStorytelling: number;
542
+ voiceStyleFidelity: number;
543
+ printClarity: number;
544
+ audioListenability: number;
545
+ }>;
546
+ paragraphAudits: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodString;
548
+ primaryFunction: z.ZodString;
549
+ contractReferences: z.ZodArray<z.ZodString, "many">;
550
+ uniqueContribution: z.ZodString;
551
+ removableWithoutLoss: z.ZodBoolean;
552
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
553
+ printPass: z.ZodBoolean;
554
+ audioPass: z.ZodBoolean;
555
+ issues: z.ZodArray<z.ZodString, "many">;
556
+ }, "strip", z.ZodTypeAny, {
557
+ id: string;
558
+ issues: string[];
559
+ printPass: boolean;
560
+ audioPass: boolean;
561
+ primaryFunction: string;
562
+ contractReferences: string[];
563
+ uniqueContribution: string;
564
+ removableWithoutLoss: boolean;
565
+ action: "merge" | "keep" | "rewrite" | "cut";
566
+ }, {
567
+ id: string;
568
+ issues: string[];
569
+ printPass: boolean;
570
+ audioPass: boolean;
571
+ primaryFunction: string;
572
+ contractReferences: string[];
573
+ uniqueContribution: string;
574
+ removableWithoutLoss: boolean;
575
+ action: "merge" | "keep" | "rewrite" | "cut";
576
+ }>, "many">;
577
+ sentenceAudits: z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ paragraphId: z.ZodString;
580
+ contribution: z.ZodString;
581
+ contractReference: z.ZodString;
582
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
583
+ issues: z.ZodArray<z.ZodString, "many">;
584
+ }, "strip", z.ZodTypeAny, {
585
+ id: string;
586
+ issues: string[];
587
+ action: "merge" | "keep" | "rewrite" | "cut";
588
+ paragraphId: string;
589
+ contribution: string;
590
+ contractReference: string;
591
+ }, {
592
+ id: string;
593
+ issues: string[];
594
+ action: "merge" | "keep" | "rewrite" | "cut";
595
+ paragraphId: string;
596
+ contribution: string;
597
+ contractReference: string;
598
+ }>, "many">;
599
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
600
+ modelFindings: z.ZodArray<z.ZodString, "many">;
601
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
602
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
603
+ semanticStopSatisfied: z.ZodBoolean;
604
+ passed: z.ZodBoolean;
605
+ }, "strip", z.ZodTypeAny, {
606
+ dimensions: {
607
+ directness: number;
608
+ purpose: number;
609
+ accuracy: number;
610
+ density: number;
611
+ novelty: number;
612
+ intrigue: number;
613
+ humanismStorytelling: number;
614
+ voiceStyleFidelity: number;
615
+ printClarity: number;
616
+ audioListenability: number;
617
+ };
618
+ version: "semantic-v1";
619
+ passed: boolean;
620
+ evaluatedAt: string;
621
+ proseHash: string;
622
+ contractHash: string;
623
+ semanticStopSatisfied: boolean;
624
+ repairSuggestions: string[];
625
+ paragraphAudits: {
626
+ id: string;
627
+ issues: string[];
628
+ printPass: boolean;
629
+ audioPass: boolean;
630
+ primaryFunction: string;
631
+ contractReferences: string[];
632
+ uniqueContribution: string;
633
+ removableWithoutLoss: boolean;
634
+ action: "merge" | "keep" | "rewrite" | "cut";
635
+ }[];
636
+ sentenceAudits: {
637
+ id: string;
638
+ issues: string[];
639
+ action: "merge" | "keep" | "rewrite" | "cut";
640
+ paragraphId: string;
641
+ contribution: string;
642
+ contractReference: string;
643
+ }[];
644
+ unresolvedContractItems: string[];
645
+ deterministicFindings: string[];
646
+ modelFindings: string[];
647
+ }, {
648
+ dimensions: {
649
+ directness: number;
650
+ purpose: number;
651
+ accuracy: number;
652
+ density: number;
653
+ novelty: number;
654
+ intrigue: number;
655
+ humanismStorytelling: number;
656
+ voiceStyleFidelity: number;
657
+ printClarity: number;
658
+ audioListenability: number;
659
+ };
660
+ version: "semantic-v1";
661
+ passed: boolean;
662
+ evaluatedAt: string;
663
+ proseHash: string;
664
+ contractHash: string;
665
+ semanticStopSatisfied: boolean;
666
+ repairSuggestions: string[];
667
+ paragraphAudits: {
668
+ id: string;
669
+ issues: string[];
670
+ printPass: boolean;
671
+ audioPass: boolean;
672
+ primaryFunction: string;
673
+ contractReferences: string[];
674
+ uniqueContribution: string;
675
+ removableWithoutLoss: boolean;
676
+ action: "merge" | "keep" | "rewrite" | "cut";
677
+ }[];
678
+ sentenceAudits: {
679
+ id: string;
680
+ issues: string[];
681
+ action: "merge" | "keep" | "rewrite" | "cut";
682
+ paragraphId: string;
683
+ contribution: string;
684
+ contractReference: string;
685
+ }[];
686
+ unresolvedContractItems: string[];
687
+ deterministicFindings: string[];
688
+ modelFindings: string[];
689
+ }>;
690
+ export type ChapterSemanticQualityAssessment = z.infer<typeof ChapterSemanticQualityAssessmentSchema>;
691
+ /** Non-compensating quality floors, calibrated against human-reviewed chapters. */
692
+ export declare const CHAPTER_SEMANTIC_QUALITY_THRESHOLDS: ChapterQualityDimensionScores;
693
+ export declare const ChapterDraftArtifactPayloadSchema: z.ZodObject<{
694
+ chapterId: z.ZodString;
695
+ chapterNumber: z.ZodNumber;
696
+ title: z.ZodString;
697
+ version: z.ZodNumber;
698
+ targetWordCount: z.ZodNumber;
699
+ actualWordCount: z.ZodNumber;
700
+ proseMarkdown: z.ZodString;
701
+ sectionStructure: z.ZodArray<z.ZodObject<{
702
+ heading: z.ZodString;
703
+ content: z.ZodString;
704
+ wordCount: z.ZodNumber;
705
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
706
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
707
+ sourcesUsed: z.ZodArray<z.ZodString, "many">;
708
+ }, "strip", z.ZodTypeAny, {
709
+ content: string;
710
+ heading: string;
711
+ wordCount: number;
712
+ claimsUsed: string[];
713
+ definitionsUsed: string[];
714
+ sourcesUsed: string[];
715
+ }, {
716
+ content: string;
717
+ heading: string;
718
+ wordCount: number;
719
+ claimsUsed: string[];
720
+ definitionsUsed: string[];
721
+ sourcesUsed: string[];
722
+ }>, "many">;
723
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
724
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
725
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
726
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
727
+ evidenceIntegrationPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
728
+ location: z.ZodString;
729
+ claimText: z.ZodString;
730
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
731
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ location: string;
735
+ claimText: string;
736
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
737
+ sourceId?: string | null | undefined;
738
+ needsSourceAssignment?: boolean | null | undefined;
739
+ }, {
740
+ location: string;
741
+ claimText: string;
742
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
743
+ sourceId?: string | null | undefined;
744
+ needsSourceAssignment?: boolean | null | undefined;
745
+ }>, "many">>;
746
+ continuitySummary: z.ZodString;
747
+ ledgerUpdate: z.ZodObject<{
748
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
749
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
750
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
751
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
752
+ openLoops: z.ZodArray<z.ZodString, "many">;
753
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
754
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
755
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
756
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
757
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
758
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
759
+ }, "strip", z.ZodTypeAny, {
760
+ establishedClaims: string[];
761
+ introducedDefinitions: string[];
762
+ recurringTerms: string[];
763
+ unresolvedQuestions: string[];
764
+ openLoops: string[];
765
+ evidenceAlreadyUsed: string[];
766
+ examplesAlreadyUsed: string[];
767
+ metaphorsAlreadyUsed: string[];
768
+ prohibitedRepetition: string[];
769
+ nextChapterPromises: string[];
770
+ toneContinuityNotes: string[];
771
+ }, {
772
+ establishedClaims: string[];
773
+ introducedDefinitions: string[];
774
+ recurringTerms: string[];
775
+ unresolvedQuestions: string[];
776
+ openLoops: string[];
777
+ evidenceAlreadyUsed: string[];
778
+ examplesAlreadyUsed: string[];
779
+ metaphorsAlreadyUsed: string[];
780
+ prohibitedRepetition: string[];
781
+ nextChapterPromises: string[];
782
+ toneContinuityNotes: string[];
783
+ }>;
784
+ guardianScore: z.ZodNumber;
785
+ guardianFindings: z.ZodArray<z.ZodString, "many">;
786
+ guardianPassed: z.ZodBoolean;
787
+ /** Absent on historical rows; current nonfiction progress requires it. */
788
+ sourcePlanChapterHash: z.ZodOptional<z.ZodString>;
789
+ /** Exact approved plan row used to create this chapter. */
790
+ sourcePlanArtifactId: z.ZodOptional<z.ZodString>;
791
+ /** Absent on historical rows; mandatory for new nonfiction completion. */
792
+ qualityAssessment: z.ZodOptional<z.ZodObject<{
793
+ version: z.ZodLiteral<"semantic-v1">;
794
+ proseHash: z.ZodString;
795
+ contractHash: z.ZodString;
796
+ evaluatedAt: z.ZodString;
797
+ dimensions: z.ZodObject<{
798
+ purpose: z.ZodNumber;
799
+ accuracy: z.ZodNumber;
800
+ directness: z.ZodNumber;
801
+ density: z.ZodNumber;
802
+ novelty: z.ZodNumber;
803
+ intrigue: z.ZodNumber;
804
+ humanismStorytelling: z.ZodNumber;
805
+ voiceStyleFidelity: z.ZodNumber;
806
+ printClarity: z.ZodNumber;
807
+ audioListenability: z.ZodNumber;
808
+ }, "strip", z.ZodTypeAny, {
809
+ directness: number;
810
+ purpose: number;
811
+ accuracy: number;
812
+ density: number;
813
+ novelty: number;
814
+ intrigue: number;
815
+ humanismStorytelling: number;
816
+ voiceStyleFidelity: number;
817
+ printClarity: number;
818
+ audioListenability: number;
819
+ }, {
820
+ directness: number;
821
+ purpose: number;
822
+ accuracy: number;
823
+ density: number;
824
+ novelty: number;
825
+ intrigue: number;
826
+ humanismStorytelling: number;
827
+ voiceStyleFidelity: number;
828
+ printClarity: number;
829
+ audioListenability: number;
830
+ }>;
831
+ paragraphAudits: z.ZodArray<z.ZodObject<{
832
+ id: z.ZodString;
833
+ primaryFunction: z.ZodString;
834
+ contractReferences: z.ZodArray<z.ZodString, "many">;
835
+ uniqueContribution: z.ZodString;
836
+ removableWithoutLoss: z.ZodBoolean;
837
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
838
+ printPass: z.ZodBoolean;
839
+ audioPass: z.ZodBoolean;
840
+ issues: z.ZodArray<z.ZodString, "many">;
841
+ }, "strip", z.ZodTypeAny, {
842
+ id: string;
843
+ issues: string[];
844
+ printPass: boolean;
845
+ audioPass: boolean;
846
+ primaryFunction: string;
847
+ contractReferences: string[];
848
+ uniqueContribution: string;
849
+ removableWithoutLoss: boolean;
850
+ action: "merge" | "keep" | "rewrite" | "cut";
851
+ }, {
852
+ id: string;
853
+ issues: string[];
854
+ printPass: boolean;
855
+ audioPass: boolean;
856
+ primaryFunction: string;
857
+ contractReferences: string[];
858
+ uniqueContribution: string;
859
+ removableWithoutLoss: boolean;
860
+ action: "merge" | "keep" | "rewrite" | "cut";
861
+ }>, "many">;
862
+ sentenceAudits: z.ZodArray<z.ZodObject<{
863
+ id: z.ZodString;
864
+ paragraphId: z.ZodString;
865
+ contribution: z.ZodString;
866
+ contractReference: z.ZodString;
867
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
868
+ issues: z.ZodArray<z.ZodString, "many">;
869
+ }, "strip", z.ZodTypeAny, {
870
+ id: string;
871
+ issues: string[];
872
+ action: "merge" | "keep" | "rewrite" | "cut";
873
+ paragraphId: string;
874
+ contribution: string;
875
+ contractReference: string;
876
+ }, {
877
+ id: string;
878
+ issues: string[];
879
+ action: "merge" | "keep" | "rewrite" | "cut";
880
+ paragraphId: string;
881
+ contribution: string;
882
+ contractReference: string;
883
+ }>, "many">;
884
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
885
+ modelFindings: z.ZodArray<z.ZodString, "many">;
886
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
887
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
888
+ semanticStopSatisfied: z.ZodBoolean;
889
+ passed: z.ZodBoolean;
890
+ }, "strip", z.ZodTypeAny, {
891
+ dimensions: {
892
+ directness: number;
893
+ purpose: number;
894
+ accuracy: number;
895
+ density: number;
896
+ novelty: number;
897
+ intrigue: number;
898
+ humanismStorytelling: number;
899
+ voiceStyleFidelity: number;
900
+ printClarity: number;
901
+ audioListenability: number;
902
+ };
903
+ version: "semantic-v1";
904
+ passed: boolean;
905
+ evaluatedAt: string;
906
+ proseHash: string;
907
+ contractHash: string;
908
+ semanticStopSatisfied: boolean;
909
+ repairSuggestions: string[];
910
+ paragraphAudits: {
911
+ id: string;
912
+ issues: string[];
913
+ printPass: boolean;
914
+ audioPass: boolean;
915
+ primaryFunction: string;
916
+ contractReferences: string[];
917
+ uniqueContribution: string;
918
+ removableWithoutLoss: boolean;
919
+ action: "merge" | "keep" | "rewrite" | "cut";
920
+ }[];
921
+ sentenceAudits: {
922
+ id: string;
923
+ issues: string[];
924
+ action: "merge" | "keep" | "rewrite" | "cut";
925
+ paragraphId: string;
926
+ contribution: string;
927
+ contractReference: string;
928
+ }[];
929
+ unresolvedContractItems: string[];
930
+ deterministicFindings: string[];
931
+ modelFindings: string[];
932
+ }, {
933
+ dimensions: {
934
+ directness: number;
935
+ purpose: number;
936
+ accuracy: number;
937
+ density: number;
938
+ novelty: number;
939
+ intrigue: number;
940
+ humanismStorytelling: number;
941
+ voiceStyleFidelity: number;
942
+ printClarity: number;
943
+ audioListenability: number;
944
+ };
945
+ version: "semantic-v1";
946
+ passed: boolean;
947
+ evaluatedAt: string;
948
+ proseHash: string;
949
+ contractHash: string;
950
+ semanticStopSatisfied: boolean;
951
+ repairSuggestions: string[];
952
+ paragraphAudits: {
953
+ id: string;
954
+ issues: string[];
955
+ printPass: boolean;
956
+ audioPass: boolean;
957
+ primaryFunction: string;
958
+ contractReferences: string[];
959
+ uniqueContribution: string;
960
+ removableWithoutLoss: boolean;
961
+ action: "merge" | "keep" | "rewrite" | "cut";
962
+ }[];
963
+ sentenceAudits: {
964
+ id: string;
965
+ issues: string[];
966
+ action: "merge" | "keep" | "rewrite" | "cut";
967
+ paragraphId: string;
968
+ contribution: string;
969
+ contractReference: string;
970
+ }[];
971
+ unresolvedContractItems: string[];
972
+ deterministicFindings: string[];
973
+ modelFindings: string[];
974
+ }>>;
975
+ /** Human-readable revision label (e.g. editorial pass id). */
976
+ revision: z.ZodOptional<z.ZodString>;
977
+ /** Prior workflow_artifacts row this chapter revision derived from. */
978
+ revisedFromArtifactId: z.ZodOptional<z.ZodString>;
979
+ /** Structured revision brief workflow artifact (editorial closed-loop). */
980
+ revisionBriefArtifactId: z.ZodOptional<z.ZodString>;
981
+ /** SHA-256 hex of proseMarkdown at last structured revision boundary. */
982
+ sourceDraftHash: z.ZodOptional<z.ZodString>;
983
+ /** Editorial instructions supplied for this revision. */
984
+ editorialRevisionBrief: z.ZodOptional<z.ZodString>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ title: string;
987
+ guardianScore: number;
988
+ chapterId: string;
989
+ version: number;
990
+ chapterNumber: number;
991
+ targetWordCount: number;
992
+ claimsUsed: string[];
993
+ definitionsUsed: string[];
994
+ ledgerUpdate: {
995
+ establishedClaims: string[];
996
+ introducedDefinitions: string[];
997
+ recurringTerms: string[];
998
+ unresolvedQuestions: string[];
999
+ openLoops: string[];
1000
+ evidenceAlreadyUsed: string[];
1001
+ examplesAlreadyUsed: string[];
1002
+ metaphorsAlreadyUsed: string[];
1003
+ prohibitedRepetition: string[];
1004
+ nextChapterPromises: string[];
1005
+ toneContinuityNotes: string[];
1006
+ };
1007
+ actualWordCount: number;
1008
+ proseMarkdown: string;
1009
+ sectionStructure: {
1010
+ content: string;
1011
+ heading: string;
1012
+ wordCount: number;
1013
+ claimsUsed: string[];
1014
+ definitionsUsed: string[];
1015
+ sourcesUsed: string[];
1016
+ }[];
1017
+ sourcesSuggested: string[];
1018
+ unresolvedEvidenceNeeds: string[];
1019
+ evidenceIntegrationPoints: {
1020
+ location: string;
1021
+ claimText: string;
1022
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1023
+ sourceId?: string | null | undefined;
1024
+ needsSourceAssignment?: boolean | null | undefined;
1025
+ }[];
1026
+ continuitySummary: string;
1027
+ guardianFindings: string[];
1028
+ guardianPassed: boolean;
1029
+ sourcePlanArtifactId?: string | undefined;
1030
+ sourceDraftHash?: string | undefined;
1031
+ revisionBriefArtifactId?: string | undefined;
1032
+ sourcePlanChapterHash?: string | undefined;
1033
+ qualityAssessment?: {
1034
+ dimensions: {
1035
+ directness: number;
1036
+ purpose: number;
1037
+ accuracy: number;
1038
+ density: number;
1039
+ novelty: number;
1040
+ intrigue: number;
1041
+ humanismStorytelling: number;
1042
+ voiceStyleFidelity: number;
1043
+ printClarity: number;
1044
+ audioListenability: number;
1045
+ };
1046
+ version: "semantic-v1";
1047
+ passed: boolean;
1048
+ evaluatedAt: string;
1049
+ proseHash: string;
1050
+ contractHash: string;
1051
+ semanticStopSatisfied: boolean;
1052
+ repairSuggestions: string[];
1053
+ paragraphAudits: {
1054
+ id: string;
1055
+ issues: string[];
1056
+ printPass: boolean;
1057
+ audioPass: boolean;
1058
+ primaryFunction: string;
1059
+ contractReferences: string[];
1060
+ uniqueContribution: string;
1061
+ removableWithoutLoss: boolean;
1062
+ action: "merge" | "keep" | "rewrite" | "cut";
1063
+ }[];
1064
+ sentenceAudits: {
1065
+ id: string;
1066
+ issues: string[];
1067
+ action: "merge" | "keep" | "rewrite" | "cut";
1068
+ paragraphId: string;
1069
+ contribution: string;
1070
+ contractReference: string;
1071
+ }[];
1072
+ unresolvedContractItems: string[];
1073
+ deterministicFindings: string[];
1074
+ modelFindings: string[];
1075
+ } | undefined;
1076
+ revision?: string | undefined;
1077
+ revisedFromArtifactId?: string | undefined;
1078
+ editorialRevisionBrief?: string | undefined;
1079
+ }, {
1080
+ title: string;
1081
+ guardianScore: number;
1082
+ chapterId: string;
1083
+ version: number;
1084
+ chapterNumber: number;
1085
+ targetWordCount: number;
1086
+ claimsUsed: string[];
1087
+ definitionsUsed: string[];
1088
+ ledgerUpdate: {
1089
+ establishedClaims: string[];
1090
+ introducedDefinitions: string[];
1091
+ recurringTerms: string[];
1092
+ unresolvedQuestions: string[];
1093
+ openLoops: string[];
1094
+ evidenceAlreadyUsed: string[];
1095
+ examplesAlreadyUsed: string[];
1096
+ metaphorsAlreadyUsed: string[];
1097
+ prohibitedRepetition: string[];
1098
+ nextChapterPromises: string[];
1099
+ toneContinuityNotes: string[];
1100
+ };
1101
+ actualWordCount: number;
1102
+ proseMarkdown: string;
1103
+ sectionStructure: {
1104
+ content: string;
1105
+ heading: string;
1106
+ wordCount: number;
1107
+ claimsUsed: string[];
1108
+ definitionsUsed: string[];
1109
+ sourcesUsed: string[];
1110
+ }[];
1111
+ sourcesSuggested: string[];
1112
+ unresolvedEvidenceNeeds: string[];
1113
+ continuitySummary: string;
1114
+ guardianFindings: string[];
1115
+ guardianPassed: boolean;
1116
+ sourcePlanArtifactId?: string | undefined;
1117
+ sourceDraftHash?: string | undefined;
1118
+ revisionBriefArtifactId?: string | undefined;
1119
+ sourcePlanChapterHash?: string | undefined;
1120
+ evidenceIntegrationPoints?: {
1121
+ location: string;
1122
+ claimText: string;
1123
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1124
+ sourceId?: string | null | undefined;
1125
+ needsSourceAssignment?: boolean | null | undefined;
1126
+ }[] | undefined;
1127
+ qualityAssessment?: {
1128
+ dimensions: {
1129
+ directness: number;
1130
+ purpose: number;
1131
+ accuracy: number;
1132
+ density: number;
1133
+ novelty: number;
1134
+ intrigue: number;
1135
+ humanismStorytelling: number;
1136
+ voiceStyleFidelity: number;
1137
+ printClarity: number;
1138
+ audioListenability: number;
1139
+ };
1140
+ version: "semantic-v1";
1141
+ passed: boolean;
1142
+ evaluatedAt: string;
1143
+ proseHash: string;
1144
+ contractHash: string;
1145
+ semanticStopSatisfied: boolean;
1146
+ repairSuggestions: string[];
1147
+ paragraphAudits: {
1148
+ id: string;
1149
+ issues: string[];
1150
+ printPass: boolean;
1151
+ audioPass: boolean;
1152
+ primaryFunction: string;
1153
+ contractReferences: string[];
1154
+ uniqueContribution: string;
1155
+ removableWithoutLoss: boolean;
1156
+ action: "merge" | "keep" | "rewrite" | "cut";
1157
+ }[];
1158
+ sentenceAudits: {
1159
+ id: string;
1160
+ issues: string[];
1161
+ action: "merge" | "keep" | "rewrite" | "cut";
1162
+ paragraphId: string;
1163
+ contribution: string;
1164
+ contractReference: string;
1165
+ }[];
1166
+ unresolvedContractItems: string[];
1167
+ deterministicFindings: string[];
1168
+ modelFindings: string[];
1169
+ } | undefined;
1170
+ revision?: string | undefined;
1171
+ revisedFromArtifactId?: string | undefined;
1172
+ editorialRevisionBrief?: string | undefined;
1173
+ }>;
1174
+ export type ChapterDraftArtifactPayload = z.infer<typeof ChapterDraftArtifactPayloadSchema>;
1175
+ export declare const ManuscriptPartSummarySchema: z.ZodObject<{
1176
+ partId: z.ZodString;
1177
+ partNumber: z.ZodNumber;
1178
+ title: z.ZodString;
1179
+ chapterCount: z.ZodNumber;
1180
+ wordCount: z.ZodNumber;
1181
+ guardianScore: z.ZodNumber;
1182
+ summary: z.ZodString;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ title: string;
1185
+ guardianScore: number;
1186
+ summary: string;
1187
+ chapterCount: number;
1188
+ partId: string;
1189
+ partNumber: number;
1190
+ wordCount: number;
1191
+ }, {
1192
+ title: string;
1193
+ guardianScore: number;
1194
+ summary: string;
1195
+ chapterCount: number;
1196
+ partId: string;
1197
+ partNumber: number;
1198
+ wordCount: number;
1199
+ }>;
1200
+ export declare const ManuscriptDraftArtifactPayloadSchema: z.ZodObject<{
1201
+ chapters: z.ZodArray<z.ZodObject<{
1202
+ chapterId: z.ZodString;
1203
+ chapterNumber: z.ZodNumber;
1204
+ title: z.ZodString;
1205
+ version: z.ZodNumber;
1206
+ targetWordCount: z.ZodNumber;
1207
+ actualWordCount: z.ZodNumber;
1208
+ proseMarkdown: z.ZodString;
1209
+ sectionStructure: z.ZodArray<z.ZodObject<{
1210
+ heading: z.ZodString;
1211
+ content: z.ZodString;
1212
+ wordCount: z.ZodNumber;
1213
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
1214
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
1215
+ sourcesUsed: z.ZodArray<z.ZodString, "many">;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ content: string;
1218
+ heading: string;
1219
+ wordCount: number;
1220
+ claimsUsed: string[];
1221
+ definitionsUsed: string[];
1222
+ sourcesUsed: string[];
1223
+ }, {
1224
+ content: string;
1225
+ heading: string;
1226
+ wordCount: number;
1227
+ claimsUsed: string[];
1228
+ definitionsUsed: string[];
1229
+ sourcesUsed: string[];
1230
+ }>, "many">;
1231
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
1232
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
1233
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
1234
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
1235
+ evidenceIntegrationPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
1236
+ location: z.ZodString;
1237
+ claimText: z.ZodString;
1238
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
1239
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1240
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ location: string;
1243
+ claimText: string;
1244
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1245
+ sourceId?: string | null | undefined;
1246
+ needsSourceAssignment?: boolean | null | undefined;
1247
+ }, {
1248
+ location: string;
1249
+ claimText: string;
1250
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1251
+ sourceId?: string | null | undefined;
1252
+ needsSourceAssignment?: boolean | null | undefined;
1253
+ }>, "many">>;
1254
+ continuitySummary: z.ZodString;
1255
+ ledgerUpdate: z.ZodObject<{
1256
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
1257
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
1258
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
1259
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
1260
+ openLoops: z.ZodArray<z.ZodString, "many">;
1261
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1262
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1263
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1264
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
1265
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
1266
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
1267
+ }, "strip", z.ZodTypeAny, {
1268
+ establishedClaims: string[];
1269
+ introducedDefinitions: string[];
1270
+ recurringTerms: string[];
1271
+ unresolvedQuestions: string[];
1272
+ openLoops: string[];
1273
+ evidenceAlreadyUsed: string[];
1274
+ examplesAlreadyUsed: string[];
1275
+ metaphorsAlreadyUsed: string[];
1276
+ prohibitedRepetition: string[];
1277
+ nextChapterPromises: string[];
1278
+ toneContinuityNotes: string[];
1279
+ }, {
1280
+ establishedClaims: string[];
1281
+ introducedDefinitions: string[];
1282
+ recurringTerms: string[];
1283
+ unresolvedQuestions: string[];
1284
+ openLoops: string[];
1285
+ evidenceAlreadyUsed: string[];
1286
+ examplesAlreadyUsed: string[];
1287
+ metaphorsAlreadyUsed: string[];
1288
+ prohibitedRepetition: string[];
1289
+ nextChapterPromises: string[];
1290
+ toneContinuityNotes: string[];
1291
+ }>;
1292
+ guardianScore: z.ZodNumber;
1293
+ guardianFindings: z.ZodArray<z.ZodString, "many">;
1294
+ guardianPassed: z.ZodBoolean;
1295
+ /** Absent on historical rows; current nonfiction progress requires it. */
1296
+ sourcePlanChapterHash: z.ZodOptional<z.ZodString>;
1297
+ /** Exact approved plan row used to create this chapter. */
1298
+ sourcePlanArtifactId: z.ZodOptional<z.ZodString>;
1299
+ /** Absent on historical rows; mandatory for new nonfiction completion. */
1300
+ qualityAssessment: z.ZodOptional<z.ZodObject<{
1301
+ version: z.ZodLiteral<"semantic-v1">;
1302
+ proseHash: z.ZodString;
1303
+ contractHash: z.ZodString;
1304
+ evaluatedAt: z.ZodString;
1305
+ dimensions: z.ZodObject<{
1306
+ purpose: z.ZodNumber;
1307
+ accuracy: z.ZodNumber;
1308
+ directness: z.ZodNumber;
1309
+ density: z.ZodNumber;
1310
+ novelty: z.ZodNumber;
1311
+ intrigue: z.ZodNumber;
1312
+ humanismStorytelling: z.ZodNumber;
1313
+ voiceStyleFidelity: z.ZodNumber;
1314
+ printClarity: z.ZodNumber;
1315
+ audioListenability: z.ZodNumber;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ directness: number;
1318
+ purpose: number;
1319
+ accuracy: number;
1320
+ density: number;
1321
+ novelty: number;
1322
+ intrigue: number;
1323
+ humanismStorytelling: number;
1324
+ voiceStyleFidelity: number;
1325
+ printClarity: number;
1326
+ audioListenability: number;
1327
+ }, {
1328
+ directness: number;
1329
+ purpose: number;
1330
+ accuracy: number;
1331
+ density: number;
1332
+ novelty: number;
1333
+ intrigue: number;
1334
+ humanismStorytelling: number;
1335
+ voiceStyleFidelity: number;
1336
+ printClarity: number;
1337
+ audioListenability: number;
1338
+ }>;
1339
+ paragraphAudits: z.ZodArray<z.ZodObject<{
1340
+ id: z.ZodString;
1341
+ primaryFunction: z.ZodString;
1342
+ contractReferences: z.ZodArray<z.ZodString, "many">;
1343
+ uniqueContribution: z.ZodString;
1344
+ removableWithoutLoss: z.ZodBoolean;
1345
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
1346
+ printPass: z.ZodBoolean;
1347
+ audioPass: z.ZodBoolean;
1348
+ issues: z.ZodArray<z.ZodString, "many">;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ id: string;
1351
+ issues: string[];
1352
+ printPass: boolean;
1353
+ audioPass: boolean;
1354
+ primaryFunction: string;
1355
+ contractReferences: string[];
1356
+ uniqueContribution: string;
1357
+ removableWithoutLoss: boolean;
1358
+ action: "merge" | "keep" | "rewrite" | "cut";
1359
+ }, {
1360
+ id: string;
1361
+ issues: string[];
1362
+ printPass: boolean;
1363
+ audioPass: boolean;
1364
+ primaryFunction: string;
1365
+ contractReferences: string[];
1366
+ uniqueContribution: string;
1367
+ removableWithoutLoss: boolean;
1368
+ action: "merge" | "keep" | "rewrite" | "cut";
1369
+ }>, "many">;
1370
+ sentenceAudits: z.ZodArray<z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ paragraphId: z.ZodString;
1373
+ contribution: z.ZodString;
1374
+ contractReference: z.ZodString;
1375
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
1376
+ issues: z.ZodArray<z.ZodString, "many">;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ id: string;
1379
+ issues: string[];
1380
+ action: "merge" | "keep" | "rewrite" | "cut";
1381
+ paragraphId: string;
1382
+ contribution: string;
1383
+ contractReference: string;
1384
+ }, {
1385
+ id: string;
1386
+ issues: string[];
1387
+ action: "merge" | "keep" | "rewrite" | "cut";
1388
+ paragraphId: string;
1389
+ contribution: string;
1390
+ contractReference: string;
1391
+ }>, "many">;
1392
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
1393
+ modelFindings: z.ZodArray<z.ZodString, "many">;
1394
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
1395
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
1396
+ semanticStopSatisfied: z.ZodBoolean;
1397
+ passed: z.ZodBoolean;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ dimensions: {
1400
+ directness: number;
1401
+ purpose: number;
1402
+ accuracy: number;
1403
+ density: number;
1404
+ novelty: number;
1405
+ intrigue: number;
1406
+ humanismStorytelling: number;
1407
+ voiceStyleFidelity: number;
1408
+ printClarity: number;
1409
+ audioListenability: number;
1410
+ };
1411
+ version: "semantic-v1";
1412
+ passed: boolean;
1413
+ evaluatedAt: string;
1414
+ proseHash: string;
1415
+ contractHash: string;
1416
+ semanticStopSatisfied: boolean;
1417
+ repairSuggestions: string[];
1418
+ paragraphAudits: {
1419
+ id: string;
1420
+ issues: string[];
1421
+ printPass: boolean;
1422
+ audioPass: boolean;
1423
+ primaryFunction: string;
1424
+ contractReferences: string[];
1425
+ uniqueContribution: string;
1426
+ removableWithoutLoss: boolean;
1427
+ action: "merge" | "keep" | "rewrite" | "cut";
1428
+ }[];
1429
+ sentenceAudits: {
1430
+ id: string;
1431
+ issues: string[];
1432
+ action: "merge" | "keep" | "rewrite" | "cut";
1433
+ paragraphId: string;
1434
+ contribution: string;
1435
+ contractReference: string;
1436
+ }[];
1437
+ unresolvedContractItems: string[];
1438
+ deterministicFindings: string[];
1439
+ modelFindings: string[];
1440
+ }, {
1441
+ dimensions: {
1442
+ directness: number;
1443
+ purpose: number;
1444
+ accuracy: number;
1445
+ density: number;
1446
+ novelty: number;
1447
+ intrigue: number;
1448
+ humanismStorytelling: number;
1449
+ voiceStyleFidelity: number;
1450
+ printClarity: number;
1451
+ audioListenability: number;
1452
+ };
1453
+ version: "semantic-v1";
1454
+ passed: boolean;
1455
+ evaluatedAt: string;
1456
+ proseHash: string;
1457
+ contractHash: string;
1458
+ semanticStopSatisfied: boolean;
1459
+ repairSuggestions: string[];
1460
+ paragraphAudits: {
1461
+ id: string;
1462
+ issues: string[];
1463
+ printPass: boolean;
1464
+ audioPass: boolean;
1465
+ primaryFunction: string;
1466
+ contractReferences: string[];
1467
+ uniqueContribution: string;
1468
+ removableWithoutLoss: boolean;
1469
+ action: "merge" | "keep" | "rewrite" | "cut";
1470
+ }[];
1471
+ sentenceAudits: {
1472
+ id: string;
1473
+ issues: string[];
1474
+ action: "merge" | "keep" | "rewrite" | "cut";
1475
+ paragraphId: string;
1476
+ contribution: string;
1477
+ contractReference: string;
1478
+ }[];
1479
+ unresolvedContractItems: string[];
1480
+ deterministicFindings: string[];
1481
+ modelFindings: string[];
1482
+ }>>;
1483
+ /** Human-readable revision label (e.g. editorial pass id). */
1484
+ revision: z.ZodOptional<z.ZodString>;
1485
+ /** Prior workflow_artifacts row this chapter revision derived from. */
1486
+ revisedFromArtifactId: z.ZodOptional<z.ZodString>;
1487
+ /** Structured revision brief workflow artifact (editorial closed-loop). */
1488
+ revisionBriefArtifactId: z.ZodOptional<z.ZodString>;
1489
+ /** SHA-256 hex of proseMarkdown at last structured revision boundary. */
1490
+ sourceDraftHash: z.ZodOptional<z.ZodString>;
1491
+ /** Editorial instructions supplied for this revision. */
1492
+ editorialRevisionBrief: z.ZodOptional<z.ZodString>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ title: string;
1495
+ guardianScore: number;
1496
+ chapterId: string;
1497
+ version: number;
1498
+ chapterNumber: number;
1499
+ targetWordCount: number;
1500
+ claimsUsed: string[];
1501
+ definitionsUsed: string[];
1502
+ ledgerUpdate: {
1503
+ establishedClaims: string[];
1504
+ introducedDefinitions: string[];
1505
+ recurringTerms: string[];
1506
+ unresolvedQuestions: string[];
1507
+ openLoops: string[];
1508
+ evidenceAlreadyUsed: string[];
1509
+ examplesAlreadyUsed: string[];
1510
+ metaphorsAlreadyUsed: string[];
1511
+ prohibitedRepetition: string[];
1512
+ nextChapterPromises: string[];
1513
+ toneContinuityNotes: string[];
1514
+ };
1515
+ actualWordCount: number;
1516
+ proseMarkdown: string;
1517
+ sectionStructure: {
1518
+ content: string;
1519
+ heading: string;
1520
+ wordCount: number;
1521
+ claimsUsed: string[];
1522
+ definitionsUsed: string[];
1523
+ sourcesUsed: string[];
1524
+ }[];
1525
+ sourcesSuggested: string[];
1526
+ unresolvedEvidenceNeeds: string[];
1527
+ evidenceIntegrationPoints: {
1528
+ location: string;
1529
+ claimText: string;
1530
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1531
+ sourceId?: string | null | undefined;
1532
+ needsSourceAssignment?: boolean | null | undefined;
1533
+ }[];
1534
+ continuitySummary: string;
1535
+ guardianFindings: string[];
1536
+ guardianPassed: boolean;
1537
+ sourcePlanArtifactId?: string | undefined;
1538
+ sourceDraftHash?: string | undefined;
1539
+ revisionBriefArtifactId?: string | undefined;
1540
+ sourcePlanChapterHash?: string | undefined;
1541
+ qualityAssessment?: {
1542
+ dimensions: {
1543
+ directness: number;
1544
+ purpose: number;
1545
+ accuracy: number;
1546
+ density: number;
1547
+ novelty: number;
1548
+ intrigue: number;
1549
+ humanismStorytelling: number;
1550
+ voiceStyleFidelity: number;
1551
+ printClarity: number;
1552
+ audioListenability: number;
1553
+ };
1554
+ version: "semantic-v1";
1555
+ passed: boolean;
1556
+ evaluatedAt: string;
1557
+ proseHash: string;
1558
+ contractHash: string;
1559
+ semanticStopSatisfied: boolean;
1560
+ repairSuggestions: string[];
1561
+ paragraphAudits: {
1562
+ id: string;
1563
+ issues: string[];
1564
+ printPass: boolean;
1565
+ audioPass: boolean;
1566
+ primaryFunction: string;
1567
+ contractReferences: string[];
1568
+ uniqueContribution: string;
1569
+ removableWithoutLoss: boolean;
1570
+ action: "merge" | "keep" | "rewrite" | "cut";
1571
+ }[];
1572
+ sentenceAudits: {
1573
+ id: string;
1574
+ issues: string[];
1575
+ action: "merge" | "keep" | "rewrite" | "cut";
1576
+ paragraphId: string;
1577
+ contribution: string;
1578
+ contractReference: string;
1579
+ }[];
1580
+ unresolvedContractItems: string[];
1581
+ deterministicFindings: string[];
1582
+ modelFindings: string[];
1583
+ } | undefined;
1584
+ revision?: string | undefined;
1585
+ revisedFromArtifactId?: string | undefined;
1586
+ editorialRevisionBrief?: string | undefined;
1587
+ }, {
1588
+ title: string;
1589
+ guardianScore: number;
1590
+ chapterId: string;
1591
+ version: number;
1592
+ chapterNumber: number;
1593
+ targetWordCount: number;
1594
+ claimsUsed: string[];
1595
+ definitionsUsed: string[];
1596
+ ledgerUpdate: {
1597
+ establishedClaims: string[];
1598
+ introducedDefinitions: string[];
1599
+ recurringTerms: string[];
1600
+ unresolvedQuestions: string[];
1601
+ openLoops: string[];
1602
+ evidenceAlreadyUsed: string[];
1603
+ examplesAlreadyUsed: string[];
1604
+ metaphorsAlreadyUsed: string[];
1605
+ prohibitedRepetition: string[];
1606
+ nextChapterPromises: string[];
1607
+ toneContinuityNotes: string[];
1608
+ };
1609
+ actualWordCount: number;
1610
+ proseMarkdown: string;
1611
+ sectionStructure: {
1612
+ content: string;
1613
+ heading: string;
1614
+ wordCount: number;
1615
+ claimsUsed: string[];
1616
+ definitionsUsed: string[];
1617
+ sourcesUsed: string[];
1618
+ }[];
1619
+ sourcesSuggested: string[];
1620
+ unresolvedEvidenceNeeds: string[];
1621
+ continuitySummary: string;
1622
+ guardianFindings: string[];
1623
+ guardianPassed: boolean;
1624
+ sourcePlanArtifactId?: string | undefined;
1625
+ sourceDraftHash?: string | undefined;
1626
+ revisionBriefArtifactId?: string | undefined;
1627
+ sourcePlanChapterHash?: string | undefined;
1628
+ evidenceIntegrationPoints?: {
1629
+ location: string;
1630
+ claimText: string;
1631
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1632
+ sourceId?: string | null | undefined;
1633
+ needsSourceAssignment?: boolean | null | undefined;
1634
+ }[] | undefined;
1635
+ qualityAssessment?: {
1636
+ dimensions: {
1637
+ directness: number;
1638
+ purpose: number;
1639
+ accuracy: number;
1640
+ density: number;
1641
+ novelty: number;
1642
+ intrigue: number;
1643
+ humanismStorytelling: number;
1644
+ voiceStyleFidelity: number;
1645
+ printClarity: number;
1646
+ audioListenability: number;
1647
+ };
1648
+ version: "semantic-v1";
1649
+ passed: boolean;
1650
+ evaluatedAt: string;
1651
+ proseHash: string;
1652
+ contractHash: string;
1653
+ semanticStopSatisfied: boolean;
1654
+ repairSuggestions: string[];
1655
+ paragraphAudits: {
1656
+ id: string;
1657
+ issues: string[];
1658
+ printPass: boolean;
1659
+ audioPass: boolean;
1660
+ primaryFunction: string;
1661
+ contractReferences: string[];
1662
+ uniqueContribution: string;
1663
+ removableWithoutLoss: boolean;
1664
+ action: "merge" | "keep" | "rewrite" | "cut";
1665
+ }[];
1666
+ sentenceAudits: {
1667
+ id: string;
1668
+ issues: string[];
1669
+ action: "merge" | "keep" | "rewrite" | "cut";
1670
+ paragraphId: string;
1671
+ contribution: string;
1672
+ contractReference: string;
1673
+ }[];
1674
+ unresolvedContractItems: string[];
1675
+ deterministicFindings: string[];
1676
+ modelFindings: string[];
1677
+ } | undefined;
1678
+ revision?: string | undefined;
1679
+ revisedFromArtifactId?: string | undefined;
1680
+ editorialRevisionBrief?: string | undefined;
1681
+ }>, "many">;
1682
+ totalWordCount: z.ZodNumber;
1683
+ partSummaries: z.ZodArray<z.ZodObject<{
1684
+ partId: z.ZodString;
1685
+ partNumber: z.ZodNumber;
1686
+ title: z.ZodString;
1687
+ chapterCount: z.ZodNumber;
1688
+ wordCount: z.ZodNumber;
1689
+ guardianScore: z.ZodNumber;
1690
+ summary: z.ZodString;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ title: string;
1693
+ guardianScore: number;
1694
+ summary: string;
1695
+ chapterCount: number;
1696
+ partId: string;
1697
+ partNumber: number;
1698
+ wordCount: number;
1699
+ }, {
1700
+ title: string;
1701
+ guardianScore: number;
1702
+ summary: string;
1703
+ chapterCount: number;
1704
+ partId: string;
1705
+ partNumber: number;
1706
+ wordCount: number;
1707
+ }>, "many">;
1708
+ manuscriptSummary: z.ZodString;
1709
+ argumentLedgerFinal: z.ZodObject<{
1710
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
1711
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
1712
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
1713
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
1714
+ openLoops: z.ZodArray<z.ZodString, "many">;
1715
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1716
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1717
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
1718
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
1719
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
1720
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ establishedClaims: string[];
1723
+ introducedDefinitions: string[];
1724
+ recurringTerms: string[];
1725
+ unresolvedQuestions: string[];
1726
+ openLoops: string[];
1727
+ evidenceAlreadyUsed: string[];
1728
+ examplesAlreadyUsed: string[];
1729
+ metaphorsAlreadyUsed: string[];
1730
+ prohibitedRepetition: string[];
1731
+ nextChapterPromises: string[];
1732
+ toneContinuityNotes: string[];
1733
+ }, {
1734
+ establishedClaims: string[];
1735
+ introducedDefinitions: string[];
1736
+ recurringTerms: string[];
1737
+ unresolvedQuestions: string[];
1738
+ openLoops: string[];
1739
+ evidenceAlreadyUsed: string[];
1740
+ examplesAlreadyUsed: string[];
1741
+ metaphorsAlreadyUsed: string[];
1742
+ prohibitedRepetition: string[];
1743
+ nextChapterPromises: string[];
1744
+ toneContinuityNotes: string[];
1745
+ }>;
1746
+ unresolvedIssues: z.ZodArray<z.ZodString, "many">;
1747
+ citationNeeds: z.ZodArray<z.ZodString, "many">;
1748
+ revisionTasks: z.ZodArray<z.ZodString, "many">;
1749
+ averageGuardianScore: z.ZodNumber;
1750
+ content: z.ZodString;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ chapters: {
1753
+ title: string;
1754
+ guardianScore: number;
1755
+ chapterId: string;
1756
+ version: number;
1757
+ chapterNumber: number;
1758
+ targetWordCount: number;
1759
+ claimsUsed: string[];
1760
+ definitionsUsed: string[];
1761
+ ledgerUpdate: {
1762
+ establishedClaims: string[];
1763
+ introducedDefinitions: string[];
1764
+ recurringTerms: string[];
1765
+ unresolvedQuestions: string[];
1766
+ openLoops: string[];
1767
+ evidenceAlreadyUsed: string[];
1768
+ examplesAlreadyUsed: string[];
1769
+ metaphorsAlreadyUsed: string[];
1770
+ prohibitedRepetition: string[];
1771
+ nextChapterPromises: string[];
1772
+ toneContinuityNotes: string[];
1773
+ };
1774
+ actualWordCount: number;
1775
+ proseMarkdown: string;
1776
+ sectionStructure: {
1777
+ content: string;
1778
+ heading: string;
1779
+ wordCount: number;
1780
+ claimsUsed: string[];
1781
+ definitionsUsed: string[];
1782
+ sourcesUsed: string[];
1783
+ }[];
1784
+ sourcesSuggested: string[];
1785
+ unresolvedEvidenceNeeds: string[];
1786
+ evidenceIntegrationPoints: {
1787
+ location: string;
1788
+ claimText: string;
1789
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1790
+ sourceId?: string | null | undefined;
1791
+ needsSourceAssignment?: boolean | null | undefined;
1792
+ }[];
1793
+ continuitySummary: string;
1794
+ guardianFindings: string[];
1795
+ guardianPassed: boolean;
1796
+ sourcePlanArtifactId?: string | undefined;
1797
+ sourceDraftHash?: string | undefined;
1798
+ revisionBriefArtifactId?: string | undefined;
1799
+ sourcePlanChapterHash?: string | undefined;
1800
+ qualityAssessment?: {
1801
+ dimensions: {
1802
+ directness: number;
1803
+ purpose: number;
1804
+ accuracy: number;
1805
+ density: number;
1806
+ novelty: number;
1807
+ intrigue: number;
1808
+ humanismStorytelling: number;
1809
+ voiceStyleFidelity: number;
1810
+ printClarity: number;
1811
+ audioListenability: number;
1812
+ };
1813
+ version: "semantic-v1";
1814
+ passed: boolean;
1815
+ evaluatedAt: string;
1816
+ proseHash: string;
1817
+ contractHash: string;
1818
+ semanticStopSatisfied: boolean;
1819
+ repairSuggestions: string[];
1820
+ paragraphAudits: {
1821
+ id: string;
1822
+ issues: string[];
1823
+ printPass: boolean;
1824
+ audioPass: boolean;
1825
+ primaryFunction: string;
1826
+ contractReferences: string[];
1827
+ uniqueContribution: string;
1828
+ removableWithoutLoss: boolean;
1829
+ action: "merge" | "keep" | "rewrite" | "cut";
1830
+ }[];
1831
+ sentenceAudits: {
1832
+ id: string;
1833
+ issues: string[];
1834
+ action: "merge" | "keep" | "rewrite" | "cut";
1835
+ paragraphId: string;
1836
+ contribution: string;
1837
+ contractReference: string;
1838
+ }[];
1839
+ unresolvedContractItems: string[];
1840
+ deterministicFindings: string[];
1841
+ modelFindings: string[];
1842
+ } | undefined;
1843
+ revision?: string | undefined;
1844
+ revisedFromArtifactId?: string | undefined;
1845
+ editorialRevisionBrief?: string | undefined;
1846
+ }[];
1847
+ content: string;
1848
+ totalWordCount: number;
1849
+ partSummaries: {
1850
+ title: string;
1851
+ guardianScore: number;
1852
+ summary: string;
1853
+ chapterCount: number;
1854
+ partId: string;
1855
+ partNumber: number;
1856
+ wordCount: number;
1857
+ }[];
1858
+ manuscriptSummary: string;
1859
+ argumentLedgerFinal: {
1860
+ establishedClaims: string[];
1861
+ introducedDefinitions: string[];
1862
+ recurringTerms: string[];
1863
+ unresolvedQuestions: string[];
1864
+ openLoops: string[];
1865
+ evidenceAlreadyUsed: string[];
1866
+ examplesAlreadyUsed: string[];
1867
+ metaphorsAlreadyUsed: string[];
1868
+ prohibitedRepetition: string[];
1869
+ nextChapterPromises: string[];
1870
+ toneContinuityNotes: string[];
1871
+ };
1872
+ unresolvedIssues: string[];
1873
+ citationNeeds: string[];
1874
+ revisionTasks: string[];
1875
+ averageGuardianScore: number;
1876
+ }, {
1877
+ chapters: {
1878
+ title: string;
1879
+ guardianScore: number;
1880
+ chapterId: string;
1881
+ version: number;
1882
+ chapterNumber: number;
1883
+ targetWordCount: number;
1884
+ claimsUsed: string[];
1885
+ definitionsUsed: string[];
1886
+ ledgerUpdate: {
1887
+ establishedClaims: string[];
1888
+ introducedDefinitions: string[];
1889
+ recurringTerms: string[];
1890
+ unresolvedQuestions: string[];
1891
+ openLoops: string[];
1892
+ evidenceAlreadyUsed: string[];
1893
+ examplesAlreadyUsed: string[];
1894
+ metaphorsAlreadyUsed: string[];
1895
+ prohibitedRepetition: string[];
1896
+ nextChapterPromises: string[];
1897
+ toneContinuityNotes: string[];
1898
+ };
1899
+ actualWordCount: number;
1900
+ proseMarkdown: string;
1901
+ sectionStructure: {
1902
+ content: string;
1903
+ heading: string;
1904
+ wordCount: number;
1905
+ claimsUsed: string[];
1906
+ definitionsUsed: string[];
1907
+ sourcesUsed: string[];
1908
+ }[];
1909
+ sourcesSuggested: string[];
1910
+ unresolvedEvidenceNeeds: string[];
1911
+ continuitySummary: string;
1912
+ guardianFindings: string[];
1913
+ guardianPassed: boolean;
1914
+ sourcePlanArtifactId?: string | undefined;
1915
+ sourceDraftHash?: string | undefined;
1916
+ revisionBriefArtifactId?: string | undefined;
1917
+ sourcePlanChapterHash?: string | undefined;
1918
+ evidenceIntegrationPoints?: {
1919
+ location: string;
1920
+ claimText: string;
1921
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
1922
+ sourceId?: string | null | undefined;
1923
+ needsSourceAssignment?: boolean | null | undefined;
1924
+ }[] | undefined;
1925
+ qualityAssessment?: {
1926
+ dimensions: {
1927
+ directness: number;
1928
+ purpose: number;
1929
+ accuracy: number;
1930
+ density: number;
1931
+ novelty: number;
1932
+ intrigue: number;
1933
+ humanismStorytelling: number;
1934
+ voiceStyleFidelity: number;
1935
+ printClarity: number;
1936
+ audioListenability: number;
1937
+ };
1938
+ version: "semantic-v1";
1939
+ passed: boolean;
1940
+ evaluatedAt: string;
1941
+ proseHash: string;
1942
+ contractHash: string;
1943
+ semanticStopSatisfied: boolean;
1944
+ repairSuggestions: string[];
1945
+ paragraphAudits: {
1946
+ id: string;
1947
+ issues: string[];
1948
+ printPass: boolean;
1949
+ audioPass: boolean;
1950
+ primaryFunction: string;
1951
+ contractReferences: string[];
1952
+ uniqueContribution: string;
1953
+ removableWithoutLoss: boolean;
1954
+ action: "merge" | "keep" | "rewrite" | "cut";
1955
+ }[];
1956
+ sentenceAudits: {
1957
+ id: string;
1958
+ issues: string[];
1959
+ action: "merge" | "keep" | "rewrite" | "cut";
1960
+ paragraphId: string;
1961
+ contribution: string;
1962
+ contractReference: string;
1963
+ }[];
1964
+ unresolvedContractItems: string[];
1965
+ deterministicFindings: string[];
1966
+ modelFindings: string[];
1967
+ } | undefined;
1968
+ revision?: string | undefined;
1969
+ revisedFromArtifactId?: string | undefined;
1970
+ editorialRevisionBrief?: string | undefined;
1971
+ }[];
1972
+ content: string;
1973
+ totalWordCount: number;
1974
+ partSummaries: {
1975
+ title: string;
1976
+ guardianScore: number;
1977
+ summary: string;
1978
+ chapterCount: number;
1979
+ partId: string;
1980
+ partNumber: number;
1981
+ wordCount: number;
1982
+ }[];
1983
+ manuscriptSummary: string;
1984
+ argumentLedgerFinal: {
1985
+ establishedClaims: string[];
1986
+ introducedDefinitions: string[];
1987
+ recurringTerms: string[];
1988
+ unresolvedQuestions: string[];
1989
+ openLoops: string[];
1990
+ evidenceAlreadyUsed: string[];
1991
+ examplesAlreadyUsed: string[];
1992
+ metaphorsAlreadyUsed: string[];
1993
+ prohibitedRepetition: string[];
1994
+ nextChapterPromises: string[];
1995
+ toneContinuityNotes: string[];
1996
+ };
1997
+ unresolvedIssues: string[];
1998
+ citationNeeds: string[];
1999
+ revisionTasks: string[];
2000
+ averageGuardianScore: number;
2001
+ }>;
2002
+ export type ManuscriptDraftArtifactPayload = z.infer<typeof ManuscriptDraftArtifactPayloadSchema>;
2003
+ export declare const ChapterScaffoldSectionSchema: z.ZodObject<{
2004
+ heading: z.ZodString;
2005
+ purpose: z.ZodString;
2006
+ keyPoints: z.ZodArray<z.ZodString, "many">;
2007
+ claimsToMake: z.ZodArray<z.ZodString, "many">;
2008
+ paragraphPurposes: z.ZodArray<z.ZodString, "many">;
2009
+ exitCriteria: z.ZodArray<z.ZodString, "many">;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ purpose: string;
2012
+ exitCriteria: string[];
2013
+ heading: string;
2014
+ keyPoints: string[];
2015
+ claimsToMake: string[];
2016
+ paragraphPurposes: string[];
2017
+ }, {
2018
+ purpose: string;
2019
+ exitCriteria: string[];
2020
+ heading: string;
2021
+ keyPoints: string[];
2022
+ claimsToMake: string[];
2023
+ paragraphPurposes: string[];
2024
+ }>;
2025
+ export declare const ChapterScaffoldPayloadSchema: z.ZodObject<{
2026
+ chapterTitle: z.ZodString;
2027
+ purpose: z.ZodString;
2028
+ openingHook: z.ZodString;
2029
+ sections: z.ZodArray<z.ZodObject<{
2030
+ heading: z.ZodString;
2031
+ purpose: z.ZodString;
2032
+ keyPoints: z.ZodArray<z.ZodString, "many">;
2033
+ claimsToMake: z.ZodArray<z.ZodString, "many">;
2034
+ paragraphPurposes: z.ZodArray<z.ZodString, "many">;
2035
+ exitCriteria: z.ZodArray<z.ZodString, "many">;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ purpose: string;
2038
+ exitCriteria: string[];
2039
+ heading: string;
2040
+ keyPoints: string[];
2041
+ claimsToMake: string[];
2042
+ paragraphPurposes: string[];
2043
+ }, {
2044
+ purpose: string;
2045
+ exitCriteria: string[];
2046
+ heading: string;
2047
+ keyPoints: string[];
2048
+ claimsToMake: string[];
2049
+ paragraphPurposes: string[];
2050
+ }>, "many">;
2051
+ closingTransition: z.ZodString;
2052
+ continuitySummary: z.ZodString;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ purpose: string;
2055
+ chapterTitle: string;
2056
+ continuitySummary: string;
2057
+ openingHook: string;
2058
+ sections: {
2059
+ purpose: string;
2060
+ exitCriteria: string[];
2061
+ heading: string;
2062
+ keyPoints: string[];
2063
+ claimsToMake: string[];
2064
+ paragraphPurposes: string[];
2065
+ }[];
2066
+ closingTransition: string;
2067
+ }, {
2068
+ purpose: string;
2069
+ chapterTitle: string;
2070
+ continuitySummary: string;
2071
+ openingHook: string;
2072
+ sections: {
2073
+ purpose: string;
2074
+ exitCriteria: string[];
2075
+ heading: string;
2076
+ keyPoints: string[];
2077
+ claimsToMake: string[];
2078
+ paragraphPurposes: string[];
2079
+ }[];
2080
+ closingTransition: string;
2081
+ }>;
2082
+ export type ChapterScaffoldPayload = z.infer<typeof ChapterScaffoldPayloadSchema>;
2083
+ export declare const ChapterProsePayloadSchema: z.ZodObject<{
2084
+ proseMarkdown: z.ZodString;
2085
+ claimsUsed: z.ZodArray<z.ZodString, "many">;
2086
+ definitionsUsed: z.ZodArray<z.ZodString, "many">;
2087
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
2088
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
2089
+ evidenceIntegrationPoints: z.ZodArray<z.ZodObject<{
2090
+ location: z.ZodString;
2091
+ claimText: z.ZodString;
2092
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
2093
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2094
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2095
+ }, "strip", z.ZodTypeAny, {
2096
+ location: string;
2097
+ claimText: string;
2098
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2099
+ sourceId?: string | null | undefined;
2100
+ needsSourceAssignment?: boolean | null | undefined;
2101
+ }, {
2102
+ location: string;
2103
+ claimText: string;
2104
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2105
+ sourceId?: string | null | undefined;
2106
+ needsSourceAssignment?: boolean | null | undefined;
2107
+ }>, "many">;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ claimsUsed: string[];
2110
+ definitionsUsed: string[];
2111
+ proseMarkdown: string;
2112
+ sourcesSuggested: string[];
2113
+ unresolvedEvidenceNeeds: string[];
2114
+ evidenceIntegrationPoints: {
2115
+ location: string;
2116
+ claimText: string;
2117
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2118
+ sourceId?: string | null | undefined;
2119
+ needsSourceAssignment?: boolean | null | undefined;
2120
+ }[];
2121
+ }, {
2122
+ claimsUsed: string[];
2123
+ definitionsUsed: string[];
2124
+ proseMarkdown: string;
2125
+ sourcesSuggested: string[];
2126
+ unresolvedEvidenceNeeds: string[];
2127
+ evidenceIntegrationPoints: {
2128
+ location: string;
2129
+ claimText: string;
2130
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2131
+ sourceId?: string | null | undefined;
2132
+ needsSourceAssignment?: boolean | null | undefined;
2133
+ }[];
2134
+ }>;
2135
+ export type ChapterProsePayload = z.infer<typeof ChapterProsePayloadSchema>;
2136
+ export declare const ManuscriptRollupPayloadSchema: z.ZodObject<{
2137
+ manuscriptSummary: z.ZodString;
2138
+ unresolvedIssues: z.ZodArray<z.ZodString, "many">;
2139
+ citationNeeds: z.ZodArray<z.ZodString, "many">;
2140
+ revisionTasks: z.ZodArray<z.ZodString, "many">;
2141
+ partSummaries: z.ZodArray<z.ZodObject<{
2142
+ partId: z.ZodString;
2143
+ partNumber: z.ZodNumber;
2144
+ title: z.ZodString;
2145
+ chapterCount: z.ZodNumber;
2146
+ wordCount: z.ZodNumber;
2147
+ guardianScore: z.ZodNumber;
2148
+ summary: z.ZodString;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ title: string;
2151
+ guardianScore: number;
2152
+ summary: string;
2153
+ chapterCount: number;
2154
+ partId: string;
2155
+ partNumber: number;
2156
+ wordCount: number;
2157
+ }, {
2158
+ title: string;
2159
+ guardianScore: number;
2160
+ summary: string;
2161
+ chapterCount: number;
2162
+ partId: string;
2163
+ partNumber: number;
2164
+ wordCount: number;
2165
+ }>, "many">;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ partSummaries: {
2168
+ title: string;
2169
+ guardianScore: number;
2170
+ summary: string;
2171
+ chapterCount: number;
2172
+ partId: string;
2173
+ partNumber: number;
2174
+ wordCount: number;
2175
+ }[];
2176
+ manuscriptSummary: string;
2177
+ unresolvedIssues: string[];
2178
+ citationNeeds: string[];
2179
+ revisionTasks: string[];
2180
+ }, {
2181
+ partSummaries: {
2182
+ title: string;
2183
+ guardianScore: number;
2184
+ summary: string;
2185
+ chapterCount: number;
2186
+ partId: string;
2187
+ partNumber: number;
2188
+ wordCount: number;
2189
+ }[];
2190
+ manuscriptSummary: string;
2191
+ unresolvedIssues: string[];
2192
+ citationNeeds: string[];
2193
+ revisionTasks: string[];
2194
+ }>;
2195
+ export type ManuscriptRollupPayload = z.infer<typeof ManuscriptRollupPayloadSchema>;
2196
+ export declare const DraftAllInputSchema: z.ZodObject<{
2197
+ projectId: z.ZodString;
2198
+ mode: z.ZodDefault<z.ZodEnum<["fast", "checkpoint", "editorial", "guardian_gated"]>>;
2199
+ /** @deprecated Ignored by the semantic nonfiction pipeline. */
2200
+ lengthProfile: z.ZodDefault<z.ZodEnum<["short", "standard", "deep", "technical", "custom"]>>;
2201
+ runGuardianPerChapter: z.ZodDefault<z.ZodBoolean>;
2202
+ guardianThreshold: z.ZodDefault<z.ZodNumber>;
2203
+ autoRepairOnFail: z.ZodDefault<z.ZodBoolean>;
2204
+ }, "strip", z.ZodTypeAny, {
2205
+ projectId: string;
2206
+ mode: "fast" | "checkpoint" | "editorial" | "guardian_gated";
2207
+ guardianThreshold: number;
2208
+ lengthProfile: "custom" | "short" | "standard" | "deep" | "technical";
2209
+ runGuardianPerChapter: boolean;
2210
+ autoRepairOnFail: boolean;
2211
+ }, {
2212
+ projectId: string;
2213
+ mode?: "fast" | "checkpoint" | "editorial" | "guardian_gated" | undefined;
2214
+ guardianThreshold?: number | undefined;
2215
+ lengthProfile?: "custom" | "short" | "standard" | "deep" | "technical" | undefined;
2216
+ runGuardianPerChapter?: boolean | undefined;
2217
+ autoRepairOnFail?: boolean | undefined;
2218
+ }>;
2219
+ export type DraftAllInput = z.infer<typeof DraftAllInputSchema>;
2220
+ /**
2221
+ * Serializable bundle of design artifact data passed client-side between
2222
+ * the 'prepare' → 'chapter' → 'rollup' per-chapter orchestration actions.
2223
+ * Built once in buildManuscriptContext and forwarded to each chapter call.
2224
+ *
2225
+ * Note: DraftSessionSchema is defined after this to avoid forward-reference errors.
2226
+ */
2227
+ export declare const ManuscriptContextBundleSchema: z.ZodObject<{
2228
+ bookTitle: z.ZodString;
2229
+ thesis: z.ZodString;
2230
+ allClaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2231
+ allDefs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2232
+ allSources: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2233
+ allCounterclaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2234
+ constitutionPrinciples: z.ZodString;
2235
+ styleRules: z.ZodString;
2236
+ humanIntentContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2237
+ narrativeVoiceContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2238
+ semanticWritingContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2239
+ /** Exact approved plan row that authorized this manuscript context. */
2240
+ sourcePlanArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2241
+ /** @deprecated Transport compatibility only; new contexts set this to 0. */
2242
+ targetWordCount: z.ZodNumber;
2243
+ outlineParts: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2244
+ nonfictionEvidence: z.ZodOptional<z.ZodObject<{
2245
+ claimRiskPolicy: z.ZodString;
2246
+ validationRules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2247
+ researchTasks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2248
+ chapterScheduleEntries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2249
+ }, "strip", z.ZodTypeAny, {
2250
+ researchTasks: Record<string, unknown>[];
2251
+ claimRiskPolicy: string;
2252
+ validationRules: Record<string, unknown>[];
2253
+ chapterScheduleEntries: Record<string, unknown>[];
2254
+ }, {
2255
+ researchTasks: Record<string, unknown>[];
2256
+ claimRiskPolicy: string;
2257
+ validationRules: Record<string, unknown>[];
2258
+ chapterScheduleEntries: Record<string, unknown>[];
2259
+ }>>;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ thesis: string;
2262
+ sourcePlanArtifactId: string | null;
2263
+ targetWordCount: number;
2264
+ bookTitle: string;
2265
+ allClaims: Record<string, unknown>[];
2266
+ allDefs: Record<string, unknown>[];
2267
+ allSources: Record<string, unknown>[];
2268
+ allCounterclaims: Record<string, unknown>[];
2269
+ constitutionPrinciples: string;
2270
+ styleRules: string;
2271
+ humanIntentContract: Record<string, unknown> | null;
2272
+ narrativeVoiceContract: Record<string, unknown> | null;
2273
+ semanticWritingContract: Record<string, unknown> | null;
2274
+ outlineParts: Record<string, unknown> | null;
2275
+ nonfictionEvidence?: {
2276
+ researchTasks: Record<string, unknown>[];
2277
+ claimRiskPolicy: string;
2278
+ validationRules: Record<string, unknown>[];
2279
+ chapterScheduleEntries: Record<string, unknown>[];
2280
+ } | undefined;
2281
+ }, {
2282
+ thesis: string;
2283
+ targetWordCount: number;
2284
+ bookTitle: string;
2285
+ allClaims: Record<string, unknown>[];
2286
+ allDefs: Record<string, unknown>[];
2287
+ allSources: Record<string, unknown>[];
2288
+ allCounterclaims: Record<string, unknown>[];
2289
+ constitutionPrinciples: string;
2290
+ styleRules: string;
2291
+ outlineParts: Record<string, unknown> | null;
2292
+ sourcePlanArtifactId?: string | null | undefined;
2293
+ humanIntentContract?: Record<string, unknown> | null | undefined;
2294
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
2295
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
2296
+ nonfictionEvidence?: {
2297
+ researchTasks: Record<string, unknown>[];
2298
+ claimRiskPolicy: string;
2299
+ validationRules: Record<string, unknown>[];
2300
+ chapterScheduleEntries: Record<string, unknown>[];
2301
+ } | undefined;
2302
+ }>;
2303
+ export type ManuscriptContextBundle = z.infer<typeof ManuscriptContextBundleSchema>;
2304
+ /** Per-chapter guardian score floor for manuscript completion gates. */
2305
+ export declare const NONFICTION_CHAPTER_GUARDIAN_THRESHOLD = 70;
2306
+ export declare const NonfictionGateChapterInputSchema: z.ZodObject<{
2307
+ chapterNumber: z.ZodNumber;
2308
+ title: z.ZodString;
2309
+ proseMarkdown: z.ZodString;
2310
+ actualWordCount: z.ZodNumber;
2311
+ guardianScore: z.ZodNumber;
2312
+ guardianPassed: z.ZodBoolean;
2313
+ qualityAssessment: z.ZodOptional<z.ZodObject<{
2314
+ version: z.ZodLiteral<"semantic-v1">;
2315
+ proseHash: z.ZodString;
2316
+ contractHash: z.ZodString;
2317
+ evaluatedAt: z.ZodString;
2318
+ dimensions: z.ZodObject<{
2319
+ purpose: z.ZodNumber;
2320
+ accuracy: z.ZodNumber;
2321
+ directness: z.ZodNumber;
2322
+ density: z.ZodNumber;
2323
+ novelty: z.ZodNumber;
2324
+ intrigue: z.ZodNumber;
2325
+ humanismStorytelling: z.ZodNumber;
2326
+ voiceStyleFidelity: z.ZodNumber;
2327
+ printClarity: z.ZodNumber;
2328
+ audioListenability: z.ZodNumber;
2329
+ }, "strip", z.ZodTypeAny, {
2330
+ directness: number;
2331
+ purpose: number;
2332
+ accuracy: number;
2333
+ density: number;
2334
+ novelty: number;
2335
+ intrigue: number;
2336
+ humanismStorytelling: number;
2337
+ voiceStyleFidelity: number;
2338
+ printClarity: number;
2339
+ audioListenability: number;
2340
+ }, {
2341
+ directness: number;
2342
+ purpose: number;
2343
+ accuracy: number;
2344
+ density: number;
2345
+ novelty: number;
2346
+ intrigue: number;
2347
+ humanismStorytelling: number;
2348
+ voiceStyleFidelity: number;
2349
+ printClarity: number;
2350
+ audioListenability: number;
2351
+ }>;
2352
+ paragraphAudits: z.ZodArray<z.ZodObject<{
2353
+ id: z.ZodString;
2354
+ primaryFunction: z.ZodString;
2355
+ contractReferences: z.ZodArray<z.ZodString, "many">;
2356
+ uniqueContribution: z.ZodString;
2357
+ removableWithoutLoss: z.ZodBoolean;
2358
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
2359
+ printPass: z.ZodBoolean;
2360
+ audioPass: z.ZodBoolean;
2361
+ issues: z.ZodArray<z.ZodString, "many">;
2362
+ }, "strip", z.ZodTypeAny, {
2363
+ id: string;
2364
+ issues: string[];
2365
+ printPass: boolean;
2366
+ audioPass: boolean;
2367
+ primaryFunction: string;
2368
+ contractReferences: string[];
2369
+ uniqueContribution: string;
2370
+ removableWithoutLoss: boolean;
2371
+ action: "merge" | "keep" | "rewrite" | "cut";
2372
+ }, {
2373
+ id: string;
2374
+ issues: string[];
2375
+ printPass: boolean;
2376
+ audioPass: boolean;
2377
+ primaryFunction: string;
2378
+ contractReferences: string[];
2379
+ uniqueContribution: string;
2380
+ removableWithoutLoss: boolean;
2381
+ action: "merge" | "keep" | "rewrite" | "cut";
2382
+ }>, "many">;
2383
+ sentenceAudits: z.ZodArray<z.ZodObject<{
2384
+ id: z.ZodString;
2385
+ paragraphId: z.ZodString;
2386
+ contribution: z.ZodString;
2387
+ contractReference: z.ZodString;
2388
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
2389
+ issues: z.ZodArray<z.ZodString, "many">;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ id: string;
2392
+ issues: string[];
2393
+ action: "merge" | "keep" | "rewrite" | "cut";
2394
+ paragraphId: string;
2395
+ contribution: string;
2396
+ contractReference: string;
2397
+ }, {
2398
+ id: string;
2399
+ issues: string[];
2400
+ action: "merge" | "keep" | "rewrite" | "cut";
2401
+ paragraphId: string;
2402
+ contribution: string;
2403
+ contractReference: string;
2404
+ }>, "many">;
2405
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
2406
+ modelFindings: z.ZodArray<z.ZodString, "many">;
2407
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
2408
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
2409
+ semanticStopSatisfied: z.ZodBoolean;
2410
+ passed: z.ZodBoolean;
2411
+ }, "strip", z.ZodTypeAny, {
2412
+ dimensions: {
2413
+ directness: number;
2414
+ purpose: number;
2415
+ accuracy: number;
2416
+ density: number;
2417
+ novelty: number;
2418
+ intrigue: number;
2419
+ humanismStorytelling: number;
2420
+ voiceStyleFidelity: number;
2421
+ printClarity: number;
2422
+ audioListenability: number;
2423
+ };
2424
+ version: "semantic-v1";
2425
+ passed: boolean;
2426
+ evaluatedAt: string;
2427
+ proseHash: string;
2428
+ contractHash: string;
2429
+ semanticStopSatisfied: boolean;
2430
+ repairSuggestions: string[];
2431
+ paragraphAudits: {
2432
+ id: string;
2433
+ issues: string[];
2434
+ printPass: boolean;
2435
+ audioPass: boolean;
2436
+ primaryFunction: string;
2437
+ contractReferences: string[];
2438
+ uniqueContribution: string;
2439
+ removableWithoutLoss: boolean;
2440
+ action: "merge" | "keep" | "rewrite" | "cut";
2441
+ }[];
2442
+ sentenceAudits: {
2443
+ id: string;
2444
+ issues: string[];
2445
+ action: "merge" | "keep" | "rewrite" | "cut";
2446
+ paragraphId: string;
2447
+ contribution: string;
2448
+ contractReference: string;
2449
+ }[];
2450
+ unresolvedContractItems: string[];
2451
+ deterministicFindings: string[];
2452
+ modelFindings: string[];
2453
+ }, {
2454
+ dimensions: {
2455
+ directness: number;
2456
+ purpose: number;
2457
+ accuracy: number;
2458
+ density: number;
2459
+ novelty: number;
2460
+ intrigue: number;
2461
+ humanismStorytelling: number;
2462
+ voiceStyleFidelity: number;
2463
+ printClarity: number;
2464
+ audioListenability: number;
2465
+ };
2466
+ version: "semantic-v1";
2467
+ passed: boolean;
2468
+ evaluatedAt: string;
2469
+ proseHash: string;
2470
+ contractHash: string;
2471
+ semanticStopSatisfied: boolean;
2472
+ repairSuggestions: string[];
2473
+ paragraphAudits: {
2474
+ id: string;
2475
+ issues: string[];
2476
+ printPass: boolean;
2477
+ audioPass: boolean;
2478
+ primaryFunction: string;
2479
+ contractReferences: string[];
2480
+ uniqueContribution: string;
2481
+ removableWithoutLoss: boolean;
2482
+ action: "merge" | "keep" | "rewrite" | "cut";
2483
+ }[];
2484
+ sentenceAudits: {
2485
+ id: string;
2486
+ issues: string[];
2487
+ action: "merge" | "keep" | "rewrite" | "cut";
2488
+ paragraphId: string;
2489
+ contribution: string;
2490
+ contractReference: string;
2491
+ }[];
2492
+ unresolvedContractItems: string[];
2493
+ deterministicFindings: string[];
2494
+ modelFindings: string[];
2495
+ }>>;
2496
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
2497
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
2498
+ evidenceIntegrationPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
2499
+ location: z.ZodString;
2500
+ claimText: z.ZodString;
2501
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
2502
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2503
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ location: string;
2506
+ claimText: string;
2507
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2508
+ sourceId?: string | null | undefined;
2509
+ needsSourceAssignment?: boolean | null | undefined;
2510
+ }, {
2511
+ location: string;
2512
+ claimText: string;
2513
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2514
+ sourceId?: string | null | undefined;
2515
+ needsSourceAssignment?: boolean | null | undefined;
2516
+ }>, "many">>;
2517
+ counterclaimsAddressed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2518
+ isHighControversy: z.ZodDefault<z.ZodBoolean>;
2519
+ }, "strip", z.ZodTypeAny, {
2520
+ title: string;
2521
+ guardianScore: number;
2522
+ chapterNumber: number;
2523
+ actualWordCount: number;
2524
+ proseMarkdown: string;
2525
+ sourcesSuggested: string[];
2526
+ unresolvedEvidenceNeeds: string[];
2527
+ evidenceIntegrationPoints: {
2528
+ location: string;
2529
+ claimText: string;
2530
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2531
+ sourceId?: string | null | undefined;
2532
+ needsSourceAssignment?: boolean | null | undefined;
2533
+ }[];
2534
+ guardianPassed: boolean;
2535
+ counterclaimsAddressed: string[];
2536
+ isHighControversy: boolean;
2537
+ qualityAssessment?: {
2538
+ dimensions: {
2539
+ directness: number;
2540
+ purpose: number;
2541
+ accuracy: number;
2542
+ density: number;
2543
+ novelty: number;
2544
+ intrigue: number;
2545
+ humanismStorytelling: number;
2546
+ voiceStyleFidelity: number;
2547
+ printClarity: number;
2548
+ audioListenability: number;
2549
+ };
2550
+ version: "semantic-v1";
2551
+ passed: boolean;
2552
+ evaluatedAt: string;
2553
+ proseHash: string;
2554
+ contractHash: string;
2555
+ semanticStopSatisfied: boolean;
2556
+ repairSuggestions: string[];
2557
+ paragraphAudits: {
2558
+ id: string;
2559
+ issues: string[];
2560
+ printPass: boolean;
2561
+ audioPass: boolean;
2562
+ primaryFunction: string;
2563
+ contractReferences: string[];
2564
+ uniqueContribution: string;
2565
+ removableWithoutLoss: boolean;
2566
+ action: "merge" | "keep" | "rewrite" | "cut";
2567
+ }[];
2568
+ sentenceAudits: {
2569
+ id: string;
2570
+ issues: string[];
2571
+ action: "merge" | "keep" | "rewrite" | "cut";
2572
+ paragraphId: string;
2573
+ contribution: string;
2574
+ contractReference: string;
2575
+ }[];
2576
+ unresolvedContractItems: string[];
2577
+ deterministicFindings: string[];
2578
+ modelFindings: string[];
2579
+ } | undefined;
2580
+ }, {
2581
+ title: string;
2582
+ guardianScore: number;
2583
+ chapterNumber: number;
2584
+ actualWordCount: number;
2585
+ proseMarkdown: string;
2586
+ sourcesSuggested: string[];
2587
+ unresolvedEvidenceNeeds: string[];
2588
+ guardianPassed: boolean;
2589
+ evidenceIntegrationPoints?: {
2590
+ location: string;
2591
+ claimText: string;
2592
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2593
+ sourceId?: string | null | undefined;
2594
+ needsSourceAssignment?: boolean | null | undefined;
2595
+ }[] | undefined;
2596
+ qualityAssessment?: {
2597
+ dimensions: {
2598
+ directness: number;
2599
+ purpose: number;
2600
+ accuracy: number;
2601
+ density: number;
2602
+ novelty: number;
2603
+ intrigue: number;
2604
+ humanismStorytelling: number;
2605
+ voiceStyleFidelity: number;
2606
+ printClarity: number;
2607
+ audioListenability: number;
2608
+ };
2609
+ version: "semantic-v1";
2610
+ passed: boolean;
2611
+ evaluatedAt: string;
2612
+ proseHash: string;
2613
+ contractHash: string;
2614
+ semanticStopSatisfied: boolean;
2615
+ repairSuggestions: string[];
2616
+ paragraphAudits: {
2617
+ id: string;
2618
+ issues: string[];
2619
+ printPass: boolean;
2620
+ audioPass: boolean;
2621
+ primaryFunction: string;
2622
+ contractReferences: string[];
2623
+ uniqueContribution: string;
2624
+ removableWithoutLoss: boolean;
2625
+ action: "merge" | "keep" | "rewrite" | "cut";
2626
+ }[];
2627
+ sentenceAudits: {
2628
+ id: string;
2629
+ issues: string[];
2630
+ action: "merge" | "keep" | "rewrite" | "cut";
2631
+ paragraphId: string;
2632
+ contribution: string;
2633
+ contractReference: string;
2634
+ }[];
2635
+ unresolvedContractItems: string[];
2636
+ deterministicFindings: string[];
2637
+ modelFindings: string[];
2638
+ } | undefined;
2639
+ counterclaimsAddressed?: string[] | undefined;
2640
+ isHighControversy?: boolean | undefined;
2641
+ }>;
2642
+ export type NonfictionGateChapterInput = z.infer<typeof NonfictionGateChapterInputSchema>;
2643
+ export declare const NonfictionManuscriptGatePayloadSchema: z.ZodObject<{
2644
+ expectedChapterCount: z.ZodNumber;
2645
+ chapters: z.ZodArray<z.ZodObject<{
2646
+ chapterNumber: z.ZodNumber;
2647
+ title: z.ZodString;
2648
+ proseMarkdown: z.ZodString;
2649
+ actualWordCount: z.ZodNumber;
2650
+ guardianScore: z.ZodNumber;
2651
+ guardianPassed: z.ZodBoolean;
2652
+ qualityAssessment: z.ZodOptional<z.ZodObject<{
2653
+ version: z.ZodLiteral<"semantic-v1">;
2654
+ proseHash: z.ZodString;
2655
+ contractHash: z.ZodString;
2656
+ evaluatedAt: z.ZodString;
2657
+ dimensions: z.ZodObject<{
2658
+ purpose: z.ZodNumber;
2659
+ accuracy: z.ZodNumber;
2660
+ directness: z.ZodNumber;
2661
+ density: z.ZodNumber;
2662
+ novelty: z.ZodNumber;
2663
+ intrigue: z.ZodNumber;
2664
+ humanismStorytelling: z.ZodNumber;
2665
+ voiceStyleFidelity: z.ZodNumber;
2666
+ printClarity: z.ZodNumber;
2667
+ audioListenability: z.ZodNumber;
2668
+ }, "strip", z.ZodTypeAny, {
2669
+ directness: number;
2670
+ purpose: number;
2671
+ accuracy: number;
2672
+ density: number;
2673
+ novelty: number;
2674
+ intrigue: number;
2675
+ humanismStorytelling: number;
2676
+ voiceStyleFidelity: number;
2677
+ printClarity: number;
2678
+ audioListenability: number;
2679
+ }, {
2680
+ directness: number;
2681
+ purpose: number;
2682
+ accuracy: number;
2683
+ density: number;
2684
+ novelty: number;
2685
+ intrigue: number;
2686
+ humanismStorytelling: number;
2687
+ voiceStyleFidelity: number;
2688
+ printClarity: number;
2689
+ audioListenability: number;
2690
+ }>;
2691
+ paragraphAudits: z.ZodArray<z.ZodObject<{
2692
+ id: z.ZodString;
2693
+ primaryFunction: z.ZodString;
2694
+ contractReferences: z.ZodArray<z.ZodString, "many">;
2695
+ uniqueContribution: z.ZodString;
2696
+ removableWithoutLoss: z.ZodBoolean;
2697
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
2698
+ printPass: z.ZodBoolean;
2699
+ audioPass: z.ZodBoolean;
2700
+ issues: z.ZodArray<z.ZodString, "many">;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ id: string;
2703
+ issues: string[];
2704
+ printPass: boolean;
2705
+ audioPass: boolean;
2706
+ primaryFunction: string;
2707
+ contractReferences: string[];
2708
+ uniqueContribution: string;
2709
+ removableWithoutLoss: boolean;
2710
+ action: "merge" | "keep" | "rewrite" | "cut";
2711
+ }, {
2712
+ id: string;
2713
+ issues: string[];
2714
+ printPass: boolean;
2715
+ audioPass: boolean;
2716
+ primaryFunction: string;
2717
+ contractReferences: string[];
2718
+ uniqueContribution: string;
2719
+ removableWithoutLoss: boolean;
2720
+ action: "merge" | "keep" | "rewrite" | "cut";
2721
+ }>, "many">;
2722
+ sentenceAudits: z.ZodArray<z.ZodObject<{
2723
+ id: z.ZodString;
2724
+ paragraphId: z.ZodString;
2725
+ contribution: z.ZodString;
2726
+ contractReference: z.ZodString;
2727
+ action: z.ZodEnum<["keep", "merge", "rewrite", "cut"]>;
2728
+ issues: z.ZodArray<z.ZodString, "many">;
2729
+ }, "strip", z.ZodTypeAny, {
2730
+ id: string;
2731
+ issues: string[];
2732
+ action: "merge" | "keep" | "rewrite" | "cut";
2733
+ paragraphId: string;
2734
+ contribution: string;
2735
+ contractReference: string;
2736
+ }, {
2737
+ id: string;
2738
+ issues: string[];
2739
+ action: "merge" | "keep" | "rewrite" | "cut";
2740
+ paragraphId: string;
2741
+ contribution: string;
2742
+ contractReference: string;
2743
+ }>, "many">;
2744
+ deterministicFindings: z.ZodArray<z.ZodString, "many">;
2745
+ modelFindings: z.ZodArray<z.ZodString, "many">;
2746
+ repairSuggestions: z.ZodArray<z.ZodString, "many">;
2747
+ unresolvedContractItems: z.ZodArray<z.ZodString, "many">;
2748
+ semanticStopSatisfied: z.ZodBoolean;
2749
+ passed: z.ZodBoolean;
2750
+ }, "strip", z.ZodTypeAny, {
2751
+ dimensions: {
2752
+ directness: number;
2753
+ purpose: number;
2754
+ accuracy: number;
2755
+ density: number;
2756
+ novelty: number;
2757
+ intrigue: number;
2758
+ humanismStorytelling: number;
2759
+ voiceStyleFidelity: number;
2760
+ printClarity: number;
2761
+ audioListenability: number;
2762
+ };
2763
+ version: "semantic-v1";
2764
+ passed: boolean;
2765
+ evaluatedAt: string;
2766
+ proseHash: string;
2767
+ contractHash: string;
2768
+ semanticStopSatisfied: boolean;
2769
+ repairSuggestions: string[];
2770
+ paragraphAudits: {
2771
+ id: string;
2772
+ issues: string[];
2773
+ printPass: boolean;
2774
+ audioPass: boolean;
2775
+ primaryFunction: string;
2776
+ contractReferences: string[];
2777
+ uniqueContribution: string;
2778
+ removableWithoutLoss: boolean;
2779
+ action: "merge" | "keep" | "rewrite" | "cut";
2780
+ }[];
2781
+ sentenceAudits: {
2782
+ id: string;
2783
+ issues: string[];
2784
+ action: "merge" | "keep" | "rewrite" | "cut";
2785
+ paragraphId: string;
2786
+ contribution: string;
2787
+ contractReference: string;
2788
+ }[];
2789
+ unresolvedContractItems: string[];
2790
+ deterministicFindings: string[];
2791
+ modelFindings: string[];
2792
+ }, {
2793
+ dimensions: {
2794
+ directness: number;
2795
+ purpose: number;
2796
+ accuracy: number;
2797
+ density: number;
2798
+ novelty: number;
2799
+ intrigue: number;
2800
+ humanismStorytelling: number;
2801
+ voiceStyleFidelity: number;
2802
+ printClarity: number;
2803
+ audioListenability: number;
2804
+ };
2805
+ version: "semantic-v1";
2806
+ passed: boolean;
2807
+ evaluatedAt: string;
2808
+ proseHash: string;
2809
+ contractHash: string;
2810
+ semanticStopSatisfied: boolean;
2811
+ repairSuggestions: string[];
2812
+ paragraphAudits: {
2813
+ id: string;
2814
+ issues: string[];
2815
+ printPass: boolean;
2816
+ audioPass: boolean;
2817
+ primaryFunction: string;
2818
+ contractReferences: string[];
2819
+ uniqueContribution: string;
2820
+ removableWithoutLoss: boolean;
2821
+ action: "merge" | "keep" | "rewrite" | "cut";
2822
+ }[];
2823
+ sentenceAudits: {
2824
+ id: string;
2825
+ issues: string[];
2826
+ action: "merge" | "keep" | "rewrite" | "cut";
2827
+ paragraphId: string;
2828
+ contribution: string;
2829
+ contractReference: string;
2830
+ }[];
2831
+ unresolvedContractItems: string[];
2832
+ deterministicFindings: string[];
2833
+ modelFindings: string[];
2834
+ }>>;
2835
+ sourcesSuggested: z.ZodArray<z.ZodString, "many">;
2836
+ unresolvedEvidenceNeeds: z.ZodArray<z.ZodString, "many">;
2837
+ evidenceIntegrationPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
2838
+ location: z.ZodString;
2839
+ claimText: z.ZodString;
2840
+ evidenceStrength: z.ZodEnum<["strong", "moderate", "weak", "speculative"]>;
2841
+ sourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2842
+ needsSourceAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ location: string;
2845
+ claimText: string;
2846
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2847
+ sourceId?: string | null | undefined;
2848
+ needsSourceAssignment?: boolean | null | undefined;
2849
+ }, {
2850
+ location: string;
2851
+ claimText: string;
2852
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2853
+ sourceId?: string | null | undefined;
2854
+ needsSourceAssignment?: boolean | null | undefined;
2855
+ }>, "many">>;
2856
+ counterclaimsAddressed: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2857
+ isHighControversy: z.ZodDefault<z.ZodBoolean>;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ title: string;
2860
+ guardianScore: number;
2861
+ chapterNumber: number;
2862
+ actualWordCount: number;
2863
+ proseMarkdown: string;
2864
+ sourcesSuggested: string[];
2865
+ unresolvedEvidenceNeeds: string[];
2866
+ evidenceIntegrationPoints: {
2867
+ location: string;
2868
+ claimText: string;
2869
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2870
+ sourceId?: string | null | undefined;
2871
+ needsSourceAssignment?: boolean | null | undefined;
2872
+ }[];
2873
+ guardianPassed: boolean;
2874
+ counterclaimsAddressed: string[];
2875
+ isHighControversy: boolean;
2876
+ qualityAssessment?: {
2877
+ dimensions: {
2878
+ directness: number;
2879
+ purpose: number;
2880
+ accuracy: number;
2881
+ density: number;
2882
+ novelty: number;
2883
+ intrigue: number;
2884
+ humanismStorytelling: number;
2885
+ voiceStyleFidelity: number;
2886
+ printClarity: number;
2887
+ audioListenability: number;
2888
+ };
2889
+ version: "semantic-v1";
2890
+ passed: boolean;
2891
+ evaluatedAt: string;
2892
+ proseHash: string;
2893
+ contractHash: string;
2894
+ semanticStopSatisfied: boolean;
2895
+ repairSuggestions: string[];
2896
+ paragraphAudits: {
2897
+ id: string;
2898
+ issues: string[];
2899
+ printPass: boolean;
2900
+ audioPass: boolean;
2901
+ primaryFunction: string;
2902
+ contractReferences: string[];
2903
+ uniqueContribution: string;
2904
+ removableWithoutLoss: boolean;
2905
+ action: "merge" | "keep" | "rewrite" | "cut";
2906
+ }[];
2907
+ sentenceAudits: {
2908
+ id: string;
2909
+ issues: string[];
2910
+ action: "merge" | "keep" | "rewrite" | "cut";
2911
+ paragraphId: string;
2912
+ contribution: string;
2913
+ contractReference: string;
2914
+ }[];
2915
+ unresolvedContractItems: string[];
2916
+ deterministicFindings: string[];
2917
+ modelFindings: string[];
2918
+ } | undefined;
2919
+ }, {
2920
+ title: string;
2921
+ guardianScore: number;
2922
+ chapterNumber: number;
2923
+ actualWordCount: number;
2924
+ proseMarkdown: string;
2925
+ sourcesSuggested: string[];
2926
+ unresolvedEvidenceNeeds: string[];
2927
+ guardianPassed: boolean;
2928
+ evidenceIntegrationPoints?: {
2929
+ location: string;
2930
+ claimText: string;
2931
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2932
+ sourceId?: string | null | undefined;
2933
+ needsSourceAssignment?: boolean | null | undefined;
2934
+ }[] | undefined;
2935
+ qualityAssessment?: {
2936
+ dimensions: {
2937
+ directness: number;
2938
+ purpose: number;
2939
+ accuracy: number;
2940
+ density: number;
2941
+ novelty: number;
2942
+ intrigue: number;
2943
+ humanismStorytelling: number;
2944
+ voiceStyleFidelity: number;
2945
+ printClarity: number;
2946
+ audioListenability: number;
2947
+ };
2948
+ version: "semantic-v1";
2949
+ passed: boolean;
2950
+ evaluatedAt: string;
2951
+ proseHash: string;
2952
+ contractHash: string;
2953
+ semanticStopSatisfied: boolean;
2954
+ repairSuggestions: string[];
2955
+ paragraphAudits: {
2956
+ id: string;
2957
+ issues: string[];
2958
+ printPass: boolean;
2959
+ audioPass: boolean;
2960
+ primaryFunction: string;
2961
+ contractReferences: string[];
2962
+ uniqueContribution: string;
2963
+ removableWithoutLoss: boolean;
2964
+ action: "merge" | "keep" | "rewrite" | "cut";
2965
+ }[];
2966
+ sentenceAudits: {
2967
+ id: string;
2968
+ issues: string[];
2969
+ action: "merge" | "keep" | "rewrite" | "cut";
2970
+ paragraphId: string;
2971
+ contribution: string;
2972
+ contractReference: string;
2973
+ }[];
2974
+ unresolvedContractItems: string[];
2975
+ deterministicFindings: string[];
2976
+ modelFindings: string[];
2977
+ } | undefined;
2978
+ counterclaimsAddressed?: string[] | undefined;
2979
+ isHighControversy?: boolean | undefined;
2980
+ }>, "many">;
2981
+ /** @deprecated Accepted for historical payloads and ignored by quality gates. */
2982
+ minChapterWordCount: z.ZodOptional<z.ZodNumber>;
2983
+ guardianThreshold: z.ZodDefault<z.ZodNumber>;
2984
+ }, "strip", z.ZodTypeAny, {
2985
+ guardianThreshold: number;
2986
+ chapters: {
2987
+ title: string;
2988
+ guardianScore: number;
2989
+ chapterNumber: number;
2990
+ actualWordCount: number;
2991
+ proseMarkdown: string;
2992
+ sourcesSuggested: string[];
2993
+ unresolvedEvidenceNeeds: string[];
2994
+ evidenceIntegrationPoints: {
2995
+ location: string;
2996
+ claimText: string;
2997
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
2998
+ sourceId?: string | null | undefined;
2999
+ needsSourceAssignment?: boolean | null | undefined;
3000
+ }[];
3001
+ guardianPassed: boolean;
3002
+ counterclaimsAddressed: string[];
3003
+ isHighControversy: boolean;
3004
+ qualityAssessment?: {
3005
+ dimensions: {
3006
+ directness: number;
3007
+ purpose: number;
3008
+ accuracy: number;
3009
+ density: number;
3010
+ novelty: number;
3011
+ intrigue: number;
3012
+ humanismStorytelling: number;
3013
+ voiceStyleFidelity: number;
3014
+ printClarity: number;
3015
+ audioListenability: number;
3016
+ };
3017
+ version: "semantic-v1";
3018
+ passed: boolean;
3019
+ evaluatedAt: string;
3020
+ proseHash: string;
3021
+ contractHash: string;
3022
+ semanticStopSatisfied: boolean;
3023
+ repairSuggestions: string[];
3024
+ paragraphAudits: {
3025
+ id: string;
3026
+ issues: string[];
3027
+ printPass: boolean;
3028
+ audioPass: boolean;
3029
+ primaryFunction: string;
3030
+ contractReferences: string[];
3031
+ uniqueContribution: string;
3032
+ removableWithoutLoss: boolean;
3033
+ action: "merge" | "keep" | "rewrite" | "cut";
3034
+ }[];
3035
+ sentenceAudits: {
3036
+ id: string;
3037
+ issues: string[];
3038
+ action: "merge" | "keep" | "rewrite" | "cut";
3039
+ paragraphId: string;
3040
+ contribution: string;
3041
+ contractReference: string;
3042
+ }[];
3043
+ unresolvedContractItems: string[];
3044
+ deterministicFindings: string[];
3045
+ modelFindings: string[];
3046
+ } | undefined;
3047
+ }[];
3048
+ expectedChapterCount: number;
3049
+ minChapterWordCount?: number | undefined;
3050
+ }, {
3051
+ chapters: {
3052
+ title: string;
3053
+ guardianScore: number;
3054
+ chapterNumber: number;
3055
+ actualWordCount: number;
3056
+ proseMarkdown: string;
3057
+ sourcesSuggested: string[];
3058
+ unresolvedEvidenceNeeds: string[];
3059
+ guardianPassed: boolean;
3060
+ evidenceIntegrationPoints?: {
3061
+ location: string;
3062
+ claimText: string;
3063
+ evidenceStrength: "moderate" | "strong" | "weak" | "speculative";
3064
+ sourceId?: string | null | undefined;
3065
+ needsSourceAssignment?: boolean | null | undefined;
3066
+ }[] | undefined;
3067
+ qualityAssessment?: {
3068
+ dimensions: {
3069
+ directness: number;
3070
+ purpose: number;
3071
+ accuracy: number;
3072
+ density: number;
3073
+ novelty: number;
3074
+ intrigue: number;
3075
+ humanismStorytelling: number;
3076
+ voiceStyleFidelity: number;
3077
+ printClarity: number;
3078
+ audioListenability: number;
3079
+ };
3080
+ version: "semantic-v1";
3081
+ passed: boolean;
3082
+ evaluatedAt: string;
3083
+ proseHash: string;
3084
+ contractHash: string;
3085
+ semanticStopSatisfied: boolean;
3086
+ repairSuggestions: string[];
3087
+ paragraphAudits: {
3088
+ id: string;
3089
+ issues: string[];
3090
+ printPass: boolean;
3091
+ audioPass: boolean;
3092
+ primaryFunction: string;
3093
+ contractReferences: string[];
3094
+ uniqueContribution: string;
3095
+ removableWithoutLoss: boolean;
3096
+ action: "merge" | "keep" | "rewrite" | "cut";
3097
+ }[];
3098
+ sentenceAudits: {
3099
+ id: string;
3100
+ issues: string[];
3101
+ action: "merge" | "keep" | "rewrite" | "cut";
3102
+ paragraphId: string;
3103
+ contribution: string;
3104
+ contractReference: string;
3105
+ }[];
3106
+ unresolvedContractItems: string[];
3107
+ deterministicFindings: string[];
3108
+ modelFindings: string[];
3109
+ } | undefined;
3110
+ counterclaimsAddressed?: string[] | undefined;
3111
+ isHighControversy?: boolean | undefined;
3112
+ }[];
3113
+ expectedChapterCount: number;
3114
+ guardianThreshold?: number | undefined;
3115
+ minChapterWordCount?: number | undefined;
3116
+ }>;
3117
+ export type NonfictionManuscriptGatePayload = z.infer<typeof NonfictionManuscriptGatePayloadSchema>;
3118
+ export type NonfictionGateTier = 'P0' | 'P1' | 'P2';
3119
+ /**
3120
+ * Persisted draft session stored in sessionStorage for navigation-resilient resume.
3121
+ * Full chapter payloads are NOT stored here (too large); only ledger state and metadata.
3122
+ * Completed chapter prose is already persisted server-side via chapterDraft artifacts.
3123
+ */
3124
+ export declare const DraftSessionSchema: z.ZodObject<{
3125
+ orchestrationId: z.ZodString;
3126
+ tasks: z.ZodArray<z.ZodObject<{
3127
+ chapterId: z.ZodString;
3128
+ chapterNumber: z.ZodNumber;
3129
+ partId: z.ZodOptional<z.ZodString>;
3130
+ partNumber: z.ZodOptional<z.ZodNumber>;
3131
+ title: z.ZodString;
3132
+ purpose: z.ZodString;
3133
+ readerQuestion: z.ZodDefault<z.ZodString>;
3134
+ directAnswer: z.ZodDefault<z.ZodString>;
3135
+ newContribution: z.ZodDefault<z.ZodString>;
3136
+ readerPayoff: z.ZodDefault<z.ZodString>;
3137
+ relationshipToPriorChapters: z.ZodDefault<z.ZodString>;
3138
+ exitCriteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3139
+ audioArc: z.ZodDefault<z.ZodString>;
3140
+ paragraphPlan: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
3141
+ /** Hash of the exact approved chapter-plan entry that authorized this task. */
3142
+ sourcePlanChapterHash: z.ZodDefault<z.ZodString>;
3143
+ /** @deprecated Persisted-session compatibility only; new tasks set this to 0. */
3144
+ targetWordCount: z.ZodNumber;
3145
+ requiredClaimIds: z.ZodArray<z.ZodString, "many">;
3146
+ requiredDefinitionIds: z.ZodArray<z.ZodString, "many">;
3147
+ requiredSourceIds: z.ZodArray<z.ZodString, "many">;
3148
+ counterclaimsToAddress: z.ZodArray<z.ZodString, "many">;
3149
+ previousChapterSummary: z.ZodOptional<z.ZodString>;
3150
+ }, "strip", z.ZodTypeAny, {
3151
+ title: string;
3152
+ directAnswer: string;
3153
+ chapterId: string;
3154
+ purpose: string;
3155
+ counterclaimsToAddress: string[];
3156
+ chapterNumber: number;
3157
+ readerQuestion: string;
3158
+ newContribution: string;
3159
+ readerPayoff: string;
3160
+ relationshipToPriorChapters: string;
3161
+ exitCriteria: string[];
3162
+ audioArc: string;
3163
+ paragraphPlan: Record<string, unknown>[];
3164
+ sourcePlanChapterHash: string;
3165
+ targetWordCount: number;
3166
+ requiredClaimIds: string[];
3167
+ requiredDefinitionIds: string[];
3168
+ requiredSourceIds: string[];
3169
+ partId?: string | undefined;
3170
+ partNumber?: number | undefined;
3171
+ previousChapterSummary?: string | undefined;
3172
+ }, {
3173
+ title: string;
3174
+ chapterId: string;
3175
+ purpose: string;
3176
+ counterclaimsToAddress: string[];
3177
+ chapterNumber: number;
3178
+ targetWordCount: number;
3179
+ requiredClaimIds: string[];
3180
+ requiredDefinitionIds: string[];
3181
+ requiredSourceIds: string[];
3182
+ directAnswer?: string | undefined;
3183
+ partId?: string | undefined;
3184
+ partNumber?: number | undefined;
3185
+ readerQuestion?: string | undefined;
3186
+ newContribution?: string | undefined;
3187
+ readerPayoff?: string | undefined;
3188
+ relationshipToPriorChapters?: string | undefined;
3189
+ exitCriteria?: string[] | undefined;
3190
+ audioArc?: string | undefined;
3191
+ paragraphPlan?: Record<string, unknown>[] | undefined;
3192
+ sourcePlanChapterHash?: string | undefined;
3193
+ previousChapterSummary?: string | undefined;
3194
+ }>, "many">;
3195
+ context: z.ZodObject<{
3196
+ bookTitle: z.ZodString;
3197
+ thesis: z.ZodString;
3198
+ allClaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3199
+ allDefs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3200
+ allSources: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3201
+ allCounterclaims: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3202
+ constitutionPrinciples: z.ZodString;
3203
+ styleRules: z.ZodString;
3204
+ humanIntentContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3205
+ narrativeVoiceContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3206
+ semanticWritingContract: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3207
+ /** Exact approved plan row that authorized this manuscript context. */
3208
+ sourcePlanArtifactId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3209
+ /** @deprecated Transport compatibility only; new contexts set this to 0. */
3210
+ targetWordCount: z.ZodNumber;
3211
+ outlineParts: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3212
+ nonfictionEvidence: z.ZodOptional<z.ZodObject<{
3213
+ claimRiskPolicy: z.ZodString;
3214
+ validationRules: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3215
+ researchTasks: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3216
+ chapterScheduleEntries: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
3217
+ }, "strip", z.ZodTypeAny, {
3218
+ researchTasks: Record<string, unknown>[];
3219
+ claimRiskPolicy: string;
3220
+ validationRules: Record<string, unknown>[];
3221
+ chapterScheduleEntries: Record<string, unknown>[];
3222
+ }, {
3223
+ researchTasks: Record<string, unknown>[];
3224
+ claimRiskPolicy: string;
3225
+ validationRules: Record<string, unknown>[];
3226
+ chapterScheduleEntries: Record<string, unknown>[];
3227
+ }>>;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ thesis: string;
3230
+ sourcePlanArtifactId: string | null;
3231
+ targetWordCount: number;
3232
+ bookTitle: string;
3233
+ allClaims: Record<string, unknown>[];
3234
+ allDefs: Record<string, unknown>[];
3235
+ allSources: Record<string, unknown>[];
3236
+ allCounterclaims: Record<string, unknown>[];
3237
+ constitutionPrinciples: string;
3238
+ styleRules: string;
3239
+ humanIntentContract: Record<string, unknown> | null;
3240
+ narrativeVoiceContract: Record<string, unknown> | null;
3241
+ semanticWritingContract: Record<string, unknown> | null;
3242
+ outlineParts: Record<string, unknown> | null;
3243
+ nonfictionEvidence?: {
3244
+ researchTasks: Record<string, unknown>[];
3245
+ claimRiskPolicy: string;
3246
+ validationRules: Record<string, unknown>[];
3247
+ chapterScheduleEntries: Record<string, unknown>[];
3248
+ } | undefined;
3249
+ }, {
3250
+ thesis: string;
3251
+ targetWordCount: number;
3252
+ bookTitle: string;
3253
+ allClaims: Record<string, unknown>[];
3254
+ allDefs: Record<string, unknown>[];
3255
+ allSources: Record<string, unknown>[];
3256
+ allCounterclaims: Record<string, unknown>[];
3257
+ constitutionPrinciples: string;
3258
+ styleRules: string;
3259
+ outlineParts: Record<string, unknown> | null;
3260
+ sourcePlanArtifactId?: string | null | undefined;
3261
+ humanIntentContract?: Record<string, unknown> | null | undefined;
3262
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
3263
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
3264
+ nonfictionEvidence?: {
3265
+ researchTasks: Record<string, unknown>[];
3266
+ claimRiskPolicy: string;
3267
+ validationRules: Record<string, unknown>[];
3268
+ chapterScheduleEntries: Record<string, unknown>[];
3269
+ } | undefined;
3270
+ }>;
3271
+ currentLedger: z.ZodObject<{
3272
+ establishedClaims: z.ZodArray<z.ZodString, "many">;
3273
+ introducedDefinitions: z.ZodArray<z.ZodString, "many">;
3274
+ recurringTerms: z.ZodArray<z.ZodString, "many">;
3275
+ unresolvedQuestions: z.ZodArray<z.ZodString, "many">;
3276
+ openLoops: z.ZodArray<z.ZodString, "many">;
3277
+ evidenceAlreadyUsed: z.ZodArray<z.ZodString, "many">;
3278
+ examplesAlreadyUsed: z.ZodArray<z.ZodString, "many">;
3279
+ metaphorsAlreadyUsed: z.ZodArray<z.ZodString, "many">;
3280
+ prohibitedRepetition: z.ZodArray<z.ZodString, "many">;
3281
+ nextChapterPromises: z.ZodArray<z.ZodString, "many">;
3282
+ toneContinuityNotes: z.ZodArray<z.ZodString, "many">;
3283
+ }, "strip", z.ZodTypeAny, {
3284
+ establishedClaims: string[];
3285
+ introducedDefinitions: string[];
3286
+ recurringTerms: string[];
3287
+ unresolvedQuestions: string[];
3288
+ openLoops: string[];
3289
+ evidenceAlreadyUsed: string[];
3290
+ examplesAlreadyUsed: string[];
3291
+ metaphorsAlreadyUsed: string[];
3292
+ prohibitedRepetition: string[];
3293
+ nextChapterPromises: string[];
3294
+ toneContinuityNotes: string[];
3295
+ }, {
3296
+ establishedClaims: string[];
3297
+ introducedDefinitions: string[];
3298
+ recurringTerms: string[];
3299
+ unresolvedQuestions: string[];
3300
+ openLoops: string[];
3301
+ evidenceAlreadyUsed: string[];
3302
+ examplesAlreadyUsed: string[];
3303
+ metaphorsAlreadyUsed: string[];
3304
+ prohibitedRepetition: string[];
3305
+ nextChapterPromises: string[];
3306
+ toneContinuityNotes: string[];
3307
+ }>;
3308
+ chaptersComplete: z.ZodNumber;
3309
+ draftMode: z.ZodEnum<["fast", "checkpoint", "editorial", "guardian_gated"]>;
3310
+ lengthProfile: z.ZodEnum<["short", "standard", "deep", "technical", "custom"]>;
3311
+ startedAt: z.ZodString;
3312
+ lastChapterAt: z.ZodString;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ tasks: {
3315
+ title: string;
3316
+ directAnswer: string;
3317
+ chapterId: string;
3318
+ purpose: string;
3319
+ counterclaimsToAddress: string[];
3320
+ chapterNumber: number;
3321
+ readerQuestion: string;
3322
+ newContribution: string;
3323
+ readerPayoff: string;
3324
+ relationshipToPriorChapters: string;
3325
+ exitCriteria: string[];
3326
+ audioArc: string;
3327
+ paragraphPlan: Record<string, unknown>[];
3328
+ sourcePlanChapterHash: string;
3329
+ targetWordCount: number;
3330
+ requiredClaimIds: string[];
3331
+ requiredDefinitionIds: string[];
3332
+ requiredSourceIds: string[];
3333
+ partId?: string | undefined;
3334
+ partNumber?: number | undefined;
3335
+ previousChapterSummary?: string | undefined;
3336
+ }[];
3337
+ orchestrationId: string;
3338
+ startedAt: string;
3339
+ lengthProfile: "custom" | "short" | "standard" | "deep" | "technical";
3340
+ context: {
3341
+ thesis: string;
3342
+ sourcePlanArtifactId: string | null;
3343
+ targetWordCount: number;
3344
+ bookTitle: string;
3345
+ allClaims: Record<string, unknown>[];
3346
+ allDefs: Record<string, unknown>[];
3347
+ allSources: Record<string, unknown>[];
3348
+ allCounterclaims: Record<string, unknown>[];
3349
+ constitutionPrinciples: string;
3350
+ styleRules: string;
3351
+ humanIntentContract: Record<string, unknown> | null;
3352
+ narrativeVoiceContract: Record<string, unknown> | null;
3353
+ semanticWritingContract: Record<string, unknown> | null;
3354
+ outlineParts: Record<string, unknown> | null;
3355
+ nonfictionEvidence?: {
3356
+ researchTasks: Record<string, unknown>[];
3357
+ claimRiskPolicy: string;
3358
+ validationRules: Record<string, unknown>[];
3359
+ chapterScheduleEntries: Record<string, unknown>[];
3360
+ } | undefined;
3361
+ };
3362
+ currentLedger: {
3363
+ establishedClaims: string[];
3364
+ introducedDefinitions: string[];
3365
+ recurringTerms: string[];
3366
+ unresolvedQuestions: string[];
3367
+ openLoops: string[];
3368
+ evidenceAlreadyUsed: string[];
3369
+ examplesAlreadyUsed: string[];
3370
+ metaphorsAlreadyUsed: string[];
3371
+ prohibitedRepetition: string[];
3372
+ nextChapterPromises: string[];
3373
+ toneContinuityNotes: string[];
3374
+ };
3375
+ chaptersComplete: number;
3376
+ draftMode: "fast" | "checkpoint" | "editorial" | "guardian_gated";
3377
+ lastChapterAt: string;
3378
+ }, {
3379
+ tasks: {
3380
+ title: string;
3381
+ chapterId: string;
3382
+ purpose: string;
3383
+ counterclaimsToAddress: string[];
3384
+ chapterNumber: number;
3385
+ targetWordCount: number;
3386
+ requiredClaimIds: string[];
3387
+ requiredDefinitionIds: string[];
3388
+ requiredSourceIds: string[];
3389
+ directAnswer?: string | undefined;
3390
+ partId?: string | undefined;
3391
+ partNumber?: number | undefined;
3392
+ readerQuestion?: string | undefined;
3393
+ newContribution?: string | undefined;
3394
+ readerPayoff?: string | undefined;
3395
+ relationshipToPriorChapters?: string | undefined;
3396
+ exitCriteria?: string[] | undefined;
3397
+ audioArc?: string | undefined;
3398
+ paragraphPlan?: Record<string, unknown>[] | undefined;
3399
+ sourcePlanChapterHash?: string | undefined;
3400
+ previousChapterSummary?: string | undefined;
3401
+ }[];
3402
+ orchestrationId: string;
3403
+ startedAt: string;
3404
+ lengthProfile: "custom" | "short" | "standard" | "deep" | "technical";
3405
+ context: {
3406
+ thesis: string;
3407
+ targetWordCount: number;
3408
+ bookTitle: string;
3409
+ allClaims: Record<string, unknown>[];
3410
+ allDefs: Record<string, unknown>[];
3411
+ allSources: Record<string, unknown>[];
3412
+ allCounterclaims: Record<string, unknown>[];
3413
+ constitutionPrinciples: string;
3414
+ styleRules: string;
3415
+ outlineParts: Record<string, unknown> | null;
3416
+ sourcePlanArtifactId?: string | null | undefined;
3417
+ humanIntentContract?: Record<string, unknown> | null | undefined;
3418
+ narrativeVoiceContract?: Record<string, unknown> | null | undefined;
3419
+ semanticWritingContract?: Record<string, unknown> | null | undefined;
3420
+ nonfictionEvidence?: {
3421
+ researchTasks: Record<string, unknown>[];
3422
+ claimRiskPolicy: string;
3423
+ validationRules: Record<string, unknown>[];
3424
+ chapterScheduleEntries: Record<string, unknown>[];
3425
+ } | undefined;
3426
+ };
3427
+ currentLedger: {
3428
+ establishedClaims: string[];
3429
+ introducedDefinitions: string[];
3430
+ recurringTerms: string[];
3431
+ unresolvedQuestions: string[];
3432
+ openLoops: string[];
3433
+ evidenceAlreadyUsed: string[];
3434
+ examplesAlreadyUsed: string[];
3435
+ metaphorsAlreadyUsed: string[];
3436
+ prohibitedRepetition: string[];
3437
+ nextChapterPromises: string[];
3438
+ toneContinuityNotes: string[];
3439
+ };
3440
+ chaptersComplete: number;
3441
+ draftMode: "fast" | "checkpoint" | "editorial" | "guardian_gated";
3442
+ lastChapterAt: string;
3443
+ }>;
3444
+ export type DraftSession = z.infer<typeof DraftSessionSchema>;