@anvpx/motion-cli 0.1.56 → 0.1.95

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 (885) hide show
  1. package/dist/approval/approval.d.ts +11 -3
  2. package/dist/approval/approval.js +20 -8
  3. package/dist/approval/command.js +43 -12
  4. package/dist/approval/hash.d.ts +6 -1
  5. package/dist/approval/hash.js +35 -6
  6. package/dist/captions/command.js +31 -4
  7. package/dist/captions/cues.d.ts +11 -2
  8. package/dist/captions/cues.js +13 -4
  9. package/dist/commands.js +2 -0
  10. package/dist/contact/argv.js +4 -1
  11. package/dist/doctor/checks.js +2 -2
  12. package/dist/doctor/command.js +8 -2
  13. package/dist/integration/interaction.integration.d.ts +1 -0
  14. package/dist/integration/interaction.integration.js +95 -0
  15. package/dist/integration/preview.integration.js +12 -4
  16. package/dist/interaction/command.d.ts +4 -0
  17. package/dist/interaction/command.js +219 -0
  18. package/dist/interaction/document.d.ts +55 -0
  19. package/dist/interaction/document.js +104 -0
  20. package/dist/interaction/driver.d.ts +29 -0
  21. package/dist/interaction/driver.js +278 -0
  22. package/dist/mcp/server.d.ts +12 -5
  23. package/dist/mcp/server.js +41 -19
  24. package/dist/mut-demo/.out/smoke/boot.js +90 -0
  25. package/dist/mut-demo/.out/smoke/runtime/compose.js +43 -0
  26. package/dist/mut-demo/.out/smoke/runtime/easing.js +45 -0
  27. package/dist/mut-demo/.out/smoke/runtime/mount.js +153 -0
  28. package/dist/mut-demo/.out/smoke/runtime/timeline.js +199 -0
  29. package/dist/mut-demo/.out/smoke/scenes/count/scene.js +6 -0
  30. package/dist/mut-demo/.out/smoke/scenes/intro/scene.js +6 -0
  31. package/dist/mut-demo/.out/smoke/scenes/outro/scene.js +6 -0
  32. package/dist/mut-demo/.out/smoke/scenes/path/scene.js +6 -0
  33. package/dist/mut-demo/.out/smoke/scenes/signals/scene.js +6 -0
  34. package/dist/mut-demo/.out/smoke/shared/format.js +59 -0
  35. package/dist/mut-demo/.out/smoke/shared/motion.js +117 -0
  36. package/dist/mut-demo/.out/template-flow/out/project/boot.js +88 -0
  37. package/dist/mut-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  38. package/dist/mut-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  39. package/dist/mut-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  40. package/dist/mut-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  41. package/dist/mut-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  42. package/dist/mut-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  43. package/dist/mut-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  44. package/dist/mut-demo/.out/template-flow/out/project/shared/format.js +59 -0
  45. package/dist/mut-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  46. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  47. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  48. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  49. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  50. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  51. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  52. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  53. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  54. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  55. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  56. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  57. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  58. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  59. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  60. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  61. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  62. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  63. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  64. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  65. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  66. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  67. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  68. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  69. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  70. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  71. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  72. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  73. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  74. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  75. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  76. package/dist/mut-demo/analyze/command.d.ts +2 -0
  77. package/dist/mut-demo/analyze/command.js +190 -0
  78. package/dist/mut-demo/approval/approval.d.ts +43 -0
  79. package/dist/mut-demo/approval/approval.js +155 -0
  80. package/dist/mut-demo/approval/command.d.ts +2 -0
  81. package/dist/mut-demo/approval/command.js +286 -0
  82. package/dist/mut-demo/approval/gate.d.ts +7 -0
  83. package/dist/mut-demo/approval/gate.js +23 -0
  84. package/dist/mut-demo/approval/hash.d.ts +76 -0
  85. package/dist/mut-demo/approval/hash.js +493 -0
  86. package/dist/mut-demo/args.d.ts +30 -0
  87. package/dist/mut-demo/args.js +53 -0
  88. package/dist/mut-demo/assets/command.d.ts +2 -0
  89. package/dist/mut-demo/assets/command.js +165 -0
  90. package/dist/mut-demo/captions/command.d.ts +16 -0
  91. package/dist/mut-demo/captions/command.js +462 -0
  92. package/dist/mut-demo/captions/cues.d.ts +19 -0
  93. package/dist/mut-demo/captions/cues.js +70 -0
  94. package/dist/mut-demo/catalog/command.d.ts +2 -0
  95. package/dist/mut-demo/catalog/command.js +60 -0
  96. package/dist/mut-demo/catalog/format.d.ts +13 -0
  97. package/dist/mut-demo/catalog/format.js +54 -0
  98. package/dist/mut-demo/cli.d.ts +3 -0
  99. package/dist/mut-demo/cli.js +35 -0
  100. package/dist/mut-demo/commands.d.ts +3 -0
  101. package/dist/mut-demo/commands.js +65 -0
  102. package/dist/mut-demo/compare/command.d.ts +4 -0
  103. package/dist/mut-demo/compare/command.js +144 -0
  104. package/dist/mut-demo/contact/argv.d.ts +24 -0
  105. package/dist/mut-demo/contact/argv.js +45 -0
  106. package/dist/mut-demo/contact/command.d.ts +2 -0
  107. package/dist/mut-demo/contact/command.js +79 -0
  108. package/dist/mut-demo/desktop/command.d.ts +21 -0
  109. package/dist/mut-demo/desktop/command.js +120 -0
  110. package/dist/mut-demo/doctor/checks.d.ts +25 -0
  111. package/dist/mut-demo/doctor/checks.js +584 -0
  112. package/dist/mut-demo/doctor/command.d.ts +4 -0
  113. package/dist/mut-demo/doctor/command.js +94 -0
  114. package/dist/mut-demo/doctor/format.d.ts +7 -0
  115. package/dist/mut-demo/doctor/format.js +41 -0
  116. package/dist/mut-demo/doctor/heal.d.ts +14 -0
  117. package/dist/mut-demo/doctor/heal.js +71 -0
  118. package/dist/mut-demo/doctor/pins.d.ts +8 -0
  119. package/dist/mut-demo/doctor/pins.js +28 -0
  120. package/dist/mut-demo/doctor/skills.d.ts +15 -0
  121. package/dist/mut-demo/doctor/skills.js +58 -0
  122. package/dist/mut-demo/doctor/types.d.ts +36 -0
  123. package/dist/mut-demo/doctor/types.js +1 -0
  124. package/dist/mut-demo/doctor/vendored.d.ts +15 -0
  125. package/dist/mut-demo/doctor/vendored.js +90 -0
  126. package/dist/mut-demo/doctor/version.d.ts +8 -0
  127. package/dist/mut-demo/doctor/version.js +11 -0
  128. package/dist/mut-demo/exit-codes.d.ts +16 -0
  129. package/dist/mut-demo/exit-codes.js +15 -0
  130. package/dist/mut-demo/fit/command.d.ts +5 -0
  131. package/dist/mut-demo/fit/command.js +154 -0
  132. package/dist/mut-demo/fit/solve.d.ts +21 -0
  133. package/dist/mut-demo/fit/solve.js +80 -0
  134. package/dist/mut-demo/fit/target.d.ts +18 -0
  135. package/dist/mut-demo/fit/target.js +47 -0
  136. package/dist/mut-demo/generate3d/command.d.ts +3 -0
  137. package/dist/mut-demo/generate3d/command.js +38 -0
  138. package/dist/mut-demo/generate3d/run.d.ts +39 -0
  139. package/dist/mut-demo/generate3d/run.js +77 -0
  140. package/dist/mut-demo/icon/command.d.ts +2 -0
  141. package/dist/mut-demo/icon/command.js +113 -0
  142. package/dist/mut-demo/index.d.ts +18 -0
  143. package/dist/mut-demo/index.js +16 -0
  144. package/dist/mut-demo/install-mk.d.ts +31 -0
  145. package/dist/mut-demo/install-mk.js +168 -0
  146. package/dist/mut-demo/integration/interaction.integration.d.ts +1 -0
  147. package/dist/mut-demo/integration/interaction.integration.js +95 -0
  148. package/dist/mut-demo/integration/preview.integration.d.ts +1 -0
  149. package/dist/mut-demo/integration/preview.integration.js +61 -0
  150. package/dist/mut-demo/integration/smoke.integration.d.ts +1 -0
  151. package/dist/mut-demo/integration/smoke.integration.js +91 -0
  152. package/dist/mut-demo/interaction/command.d.ts +4 -0
  153. package/dist/mut-demo/interaction/command.js +219 -0
  154. package/dist/mut-demo/interaction/document.d.ts +55 -0
  155. package/dist/mut-demo/interaction/document.js +104 -0
  156. package/dist/mut-demo/interaction/driver.d.ts +29 -0
  157. package/dist/mut-demo/interaction/driver.js +278 -0
  158. package/dist/mut-demo/main.d.ts +2 -0
  159. package/dist/mut-demo/main.js +4 -0
  160. package/dist/mut-demo/mcp/server.d.ts +89 -0
  161. package/dist/mut-demo/mcp/server.js +479 -0
  162. package/dist/mut-demo/node-io.d.ts +14 -0
  163. package/dist/mut-demo/node-io.js +153 -0
  164. package/dist/mut-demo/optimize/command.d.ts +12 -0
  165. package/dist/mut-demo/optimize/command.js +110 -0
  166. package/dist/mut-demo/packs/command.d.ts +2 -0
  167. package/dist/mut-demo/packs/command.js +109 -0
  168. package/dist/mut-demo/parent-demo/.out/smoke/boot.js +90 -0
  169. package/dist/mut-demo/parent-demo/.out/smoke/runtime/compose.js +43 -0
  170. package/dist/mut-demo/parent-demo/.out/smoke/runtime/easing.js +45 -0
  171. package/dist/mut-demo/parent-demo/.out/smoke/runtime/mount.js +153 -0
  172. package/dist/mut-demo/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  173. package/dist/mut-demo/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  174. package/dist/mut-demo/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  175. package/dist/mut-demo/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  176. package/dist/mut-demo/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  177. package/dist/mut-demo/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  178. package/dist/mut-demo/parent-demo/.out/smoke/shared/format.js +59 -0
  179. package/dist/mut-demo/parent-demo/.out/smoke/shared/motion.js +117 -0
  180. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  181. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  182. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  183. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  184. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  185. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  186. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  187. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  188. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  189. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  190. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  191. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  192. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  193. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  194. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  195. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  196. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  197. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  198. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  199. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  200. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  201. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  202. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  203. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  204. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  205. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  206. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  207. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  208. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  209. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  210. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  211. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  212. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  213. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  214. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  215. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  216. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  217. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  218. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  219. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  220. package/dist/mut-demo/parent-demo/analyze/command.d.ts +2 -0
  221. package/dist/mut-demo/parent-demo/analyze/command.js +190 -0
  222. package/dist/mut-demo/parent-demo/approval/approval.d.ts +43 -0
  223. package/dist/mut-demo/parent-demo/approval/approval.js +155 -0
  224. package/dist/mut-demo/parent-demo/approval/command.d.ts +2 -0
  225. package/dist/mut-demo/parent-demo/approval/command.js +286 -0
  226. package/dist/mut-demo/parent-demo/approval/gate.d.ts +7 -0
  227. package/dist/mut-demo/parent-demo/approval/gate.js +23 -0
  228. package/dist/mut-demo/parent-demo/approval/hash.d.ts +76 -0
  229. package/dist/mut-demo/parent-demo/approval/hash.js +493 -0
  230. package/dist/mut-demo/parent-demo/args.d.ts +30 -0
  231. package/dist/mut-demo/parent-demo/args.js +53 -0
  232. package/dist/mut-demo/parent-demo/assets/command.d.ts +2 -0
  233. package/dist/mut-demo/parent-demo/assets/command.js +165 -0
  234. package/dist/mut-demo/parent-demo/captions/command.d.ts +16 -0
  235. package/dist/mut-demo/parent-demo/captions/command.js +462 -0
  236. package/dist/mut-demo/parent-demo/captions/cues.d.ts +19 -0
  237. package/dist/mut-demo/parent-demo/captions/cues.js +70 -0
  238. package/dist/mut-demo/parent-demo/catalog/command.d.ts +2 -0
  239. package/dist/mut-demo/parent-demo/catalog/command.js +60 -0
  240. package/dist/mut-demo/parent-demo/catalog/format.d.ts +13 -0
  241. package/dist/mut-demo/parent-demo/catalog/format.js +54 -0
  242. package/dist/mut-demo/parent-demo/cli.d.ts +3 -0
  243. package/dist/mut-demo/parent-demo/cli.js +35 -0
  244. package/dist/mut-demo/parent-demo/commands.d.ts +3 -0
  245. package/dist/mut-demo/parent-demo/commands.js +65 -0
  246. package/dist/mut-demo/parent-demo/compare/command.d.ts +4 -0
  247. package/dist/mut-demo/parent-demo/compare/command.js +144 -0
  248. package/dist/mut-demo/parent-demo/contact/argv.d.ts +24 -0
  249. package/dist/mut-demo/parent-demo/contact/argv.js +45 -0
  250. package/dist/mut-demo/parent-demo/contact/command.d.ts +2 -0
  251. package/dist/mut-demo/parent-demo/contact/command.js +79 -0
  252. package/dist/mut-demo/parent-demo/desktop/command.d.ts +21 -0
  253. package/dist/mut-demo/parent-demo/desktop/command.js +120 -0
  254. package/dist/mut-demo/parent-demo/doctor/checks.d.ts +25 -0
  255. package/dist/mut-demo/parent-demo/doctor/checks.js +584 -0
  256. package/dist/mut-demo/parent-demo/doctor/command.d.ts +4 -0
  257. package/dist/mut-demo/parent-demo/doctor/command.js +94 -0
  258. package/dist/mut-demo/parent-demo/doctor/format.d.ts +7 -0
  259. package/dist/mut-demo/parent-demo/doctor/format.js +41 -0
  260. package/dist/mut-demo/parent-demo/doctor/heal.d.ts +14 -0
  261. package/dist/mut-demo/parent-demo/doctor/heal.js +71 -0
  262. package/dist/mut-demo/parent-demo/doctor/pins.d.ts +8 -0
  263. package/dist/mut-demo/parent-demo/doctor/pins.js +28 -0
  264. package/dist/mut-demo/parent-demo/doctor/skills.d.ts +15 -0
  265. package/dist/mut-demo/parent-demo/doctor/skills.js +58 -0
  266. package/dist/mut-demo/parent-demo/doctor/types.d.ts +36 -0
  267. package/dist/mut-demo/parent-demo/doctor/types.js +1 -0
  268. package/dist/mut-demo/parent-demo/doctor/vendored.d.ts +15 -0
  269. package/dist/mut-demo/parent-demo/doctor/vendored.js +90 -0
  270. package/dist/mut-demo/parent-demo/doctor/version.d.ts +8 -0
  271. package/dist/mut-demo/parent-demo/doctor/version.js +11 -0
  272. package/dist/mut-demo/parent-demo/exit-codes.d.ts +16 -0
  273. package/dist/mut-demo/parent-demo/exit-codes.js +15 -0
  274. package/dist/mut-demo/parent-demo/fit/command.d.ts +5 -0
  275. package/dist/mut-demo/parent-demo/fit/command.js +154 -0
  276. package/dist/mut-demo/parent-demo/fit/solve.d.ts +21 -0
  277. package/dist/mut-demo/parent-demo/fit/solve.js +80 -0
  278. package/dist/mut-demo/parent-demo/fit/target.d.ts +18 -0
  279. package/dist/mut-demo/parent-demo/fit/target.js +47 -0
  280. package/dist/mut-demo/parent-demo/generate3d/command.d.ts +3 -0
  281. package/dist/mut-demo/parent-demo/generate3d/command.js +38 -0
  282. package/dist/mut-demo/parent-demo/generate3d/run.d.ts +39 -0
  283. package/dist/mut-demo/parent-demo/generate3d/run.js +77 -0
  284. package/dist/mut-demo/parent-demo/icon/command.d.ts +2 -0
  285. package/dist/mut-demo/parent-demo/icon/command.js +113 -0
  286. package/dist/mut-demo/parent-demo/index.d.ts +18 -0
  287. package/dist/mut-demo/parent-demo/index.js +16 -0
  288. package/dist/mut-demo/parent-demo/install-mk.d.ts +31 -0
  289. package/dist/mut-demo/parent-demo/install-mk.js +168 -0
  290. package/dist/mut-demo/parent-demo/integration/interaction.integration.d.ts +1 -0
  291. package/dist/mut-demo/parent-demo/integration/interaction.integration.js +95 -0
  292. package/dist/mut-demo/parent-demo/integration/preview.integration.d.ts +1 -0
  293. package/dist/mut-demo/parent-demo/integration/preview.integration.js +61 -0
  294. package/dist/mut-demo/parent-demo/integration/smoke.integration.d.ts +1 -0
  295. package/dist/mut-demo/parent-demo/integration/smoke.integration.js +91 -0
  296. package/dist/mut-demo/parent-demo/interaction/command.d.ts +4 -0
  297. package/dist/mut-demo/parent-demo/interaction/command.js +219 -0
  298. package/dist/mut-demo/parent-demo/interaction/document.d.ts +55 -0
  299. package/dist/mut-demo/parent-demo/interaction/document.js +104 -0
  300. package/dist/mut-demo/parent-demo/interaction/driver.d.ts +29 -0
  301. package/dist/mut-demo/parent-demo/interaction/driver.js +278 -0
  302. package/dist/mut-demo/parent-demo/main.d.ts +2 -0
  303. package/dist/mut-demo/parent-demo/main.js +4 -0
  304. package/dist/mut-demo/parent-demo/mcp/server.d.ts +89 -0
  305. package/dist/mut-demo/parent-demo/mcp/server.js +479 -0
  306. package/dist/mut-demo/parent-demo/node-io.d.ts +14 -0
  307. package/dist/mut-demo/parent-demo/node-io.js +153 -0
  308. package/dist/mut-demo/parent-demo/optimize/command.d.ts +12 -0
  309. package/dist/mut-demo/parent-demo/optimize/command.js +110 -0
  310. package/dist/mut-demo/parent-demo/packs/command.d.ts +2 -0
  311. package/dist/mut-demo/parent-demo/packs/command.js +109 -0
  312. package/dist/mut-demo/parent-demo/patch/apply.d.ts +36 -0
  313. package/dist/mut-demo/parent-demo/patch/apply.js +186 -0
  314. package/dist/mut-demo/parent-demo/patch/command.d.ts +2 -0
  315. package/dist/mut-demo/parent-demo/patch/command.js +92 -0
  316. package/dist/mut-demo/parent-demo/plugin/install.d.ts +40 -0
  317. package/dist/mut-demo/parent-demo/plugin/install.js +170 -0
  318. package/dist/mut-demo/parent-demo/preview/command.d.ts +10 -0
  319. package/dist/mut-demo/parent-demo/preview/command.js +945 -0
  320. package/dist/mut-demo/parent-demo/preview/manifest.d.ts +105 -0
  321. package/dist/mut-demo/parent-demo/preview/manifest.js +19 -0
  322. package/dist/mut-demo/parent-demo/preview/pack.d.ts +24 -0
  323. package/dist/mut-demo/parent-demo/preview/pack.js +53 -0
  324. package/dist/mut-demo/parent-demo/preview/plan.d.ts +61 -0
  325. package/dist/mut-demo/parent-demo/preview/plan.js +205 -0
  326. package/dist/mut-demo/parent-demo/preview/provenance.d.ts +23 -0
  327. package/dist/mut-demo/parent-demo/preview/provenance.js +38 -0
  328. package/dist/mut-demo/parent-demo/publish/command.d.ts +2 -0
  329. package/dist/mut-demo/parent-demo/publish/command.js +230 -0
  330. package/dist/mut-demo/parent-demo/publish/player.d.ts +61 -0
  331. package/dist/mut-demo/parent-demo/publish/player.js +728 -0
  332. package/dist/mut-demo/parent-demo/publish/static.d.ts +16 -0
  333. package/dist/mut-demo/parent-demo/publish/static.js +78 -0
  334. package/dist/mut-demo/parent-demo/qc.d.ts +2 -0
  335. package/dist/mut-demo/parent-demo/qc.js +192 -0
  336. package/dist/mut-demo/parent-demo/scene/author.d.ts +16 -0
  337. package/dist/mut-demo/parent-demo/scene/author.js +519 -0
  338. package/dist/mut-demo/parent-demo/scene/command.d.ts +2 -0
  339. package/dist/mut-demo/parent-demo/scene/command.js +110 -0
  340. package/dist/mut-demo/parent-demo/scene/ops.d.ts +23 -0
  341. package/dist/mut-demo/parent-demo/scene/ops.js +151 -0
  342. package/dist/mut-demo/parent-demo/state/command.d.ts +2 -0
  343. package/dist/mut-demo/parent-demo/state/command.js +128 -0
  344. package/dist/mut-demo/parent-demo/state/evidence.d.ts +73 -0
  345. package/dist/mut-demo/parent-demo/state/evidence.js +1 -0
  346. package/dist/mut-demo/parent-demo/storyboard/check.d.ts +21 -0
  347. package/dist/mut-demo/parent-demo/storyboard/check.js +39 -0
  348. package/dist/mut-demo/parent-demo/storyboard/containment.d.ts +24 -0
  349. package/dist/mut-demo/parent-demo/storyboard/containment.js +43 -0
  350. package/dist/mut-demo/parent-demo/storyboard/custom.d.ts +15 -0
  351. package/dist/mut-demo/parent-demo/storyboard/custom.js +133 -0
  352. package/dist/mut-demo/parent-demo/storyboard/edit.d.ts +19 -0
  353. package/dist/mut-demo/parent-demo/storyboard/edit.js +39 -0
  354. package/dist/mut-demo/parent-demo/storyboard/load.d.ts +11 -0
  355. package/dist/mut-demo/parent-demo/storyboard/load.js +52 -0
  356. package/dist/mut-demo/parent-demo/storyboard/report.d.ts +5 -0
  357. package/dist/mut-demo/parent-demo/storyboard/report.js +8 -0
  358. package/dist/mut-demo/parent-demo/template/coerce.d.ts +6 -0
  359. package/dist/mut-demo/parent-demo/template/coerce.js +44 -0
  360. package/dist/mut-demo/parent-demo/template/command.d.ts +5 -0
  361. package/dist/mut-demo/parent-demo/template/command.js +163 -0
  362. package/dist/mut-demo/parent-demo/template/env.d.ts +38 -0
  363. package/dist/mut-demo/parent-demo/template/env.js +40 -0
  364. package/dist/mut-demo/parent-demo/template/fork.d.ts +8 -0
  365. package/dist/mut-demo/parent-demo/template/fork.js +156 -0
  366. package/dist/mut-demo/parent-demo/template/format.d.ts +21 -0
  367. package/dist/mut-demo/parent-demo/template/format.js +177 -0
  368. package/dist/mut-demo/parent-demo/template/list.d.ts +27 -0
  369. package/dist/mut-demo/parent-demo/template/list.js +171 -0
  370. package/dist/mut-demo/parent-demo/template/new.d.ts +6 -0
  371. package/dist/mut-demo/parent-demo/template/new.js +335 -0
  372. package/dist/mut-demo/parent-demo/testing/env.d.ts +9 -0
  373. package/dist/mut-demo/parent-demo/testing/env.js +49 -0
  374. package/dist/mut-demo/parent-demo/testing/fakes.d.ts +39 -0
  375. package/dist/mut-demo/parent-demo/testing/fakes.js +100 -0
  376. package/dist/mut-demo/parent-demo/testing/fixtures.d.ts +8 -0
  377. package/dist/mut-demo/parent-demo/testing/fixtures.js +6 -0
  378. package/dist/mut-demo/parent-demo/testing/probe.d.ts +15 -0
  379. package/dist/mut-demo/parent-demo/testing/probe.js +20 -0
  380. package/dist/mut-demo/parent-demo/testing/project.d.ts +22 -0
  381. package/dist/mut-demo/parent-demo/testing/project.js +26 -0
  382. package/dist/mut-demo/parent-demo/tooling/session.d.ts +40 -0
  383. package/dist/mut-demo/parent-demo/tooling/session.js +106 -0
  384. package/dist/mut-demo/parent-demo/types.d.ts +64 -0
  385. package/dist/mut-demo/parent-demo/types.js +1 -0
  386. package/dist/mut-demo/parent-demo/verify/audio-loudness.d.ts +81 -0
  387. package/dist/mut-demo/parent-demo/verify/audio-loudness.js +306 -0
  388. package/dist/mut-demo/parent-demo/verify/caption.d.ts +23 -0
  389. package/dist/mut-demo/parent-demo/verify/caption.fixtures.d.ts +148 -0
  390. package/dist/mut-demo/parent-demo/verify/caption.fixtures.js +66 -0
  391. package/dist/mut-demo/parent-demo/verify/caption.js +105 -0
  392. package/dist/mut-demo/parent-demo/verify/command.d.ts +2 -0
  393. package/dist/mut-demo/parent-demo/verify/command.js +190 -0
  394. package/dist/mut-demo/parent-demo/verify/determinism.d.ts +30 -0
  395. package/dist/mut-demo/parent-demo/verify/determinism.js +59 -0
  396. package/dist/mut-demo/parent-demo/verify/expectation.d.ts +15 -0
  397. package/dist/mut-demo/parent-demo/verify/expectation.js +19 -0
  398. package/dist/mut-demo/parent-demo/verify/flash.d.ts +55 -0
  399. package/dist/mut-demo/parent-demo/verify/flash.js +147 -0
  400. package/dist/mut-demo/parent-demo/verify/media-events.d.ts +61 -0
  401. package/dist/mut-demo/parent-demo/verify/media-events.js +174 -0
  402. package/dist/mut-demo/parent-demo/verify/motion-coherence.d.ts +99 -0
  403. package/dist/mut-demo/parent-demo/verify/motion-coherence.js +274 -0
  404. package/dist/mut-demo/parent-demo/verify/platform.d.ts +33 -0
  405. package/dist/mut-demo/parent-demo/verify/platform.js +59 -0
  406. package/dist/mut-demo/parent-demo/verify/probe.d.ts +14 -0
  407. package/dist/mut-demo/parent-demo/verify/probe.js +23 -0
  408. package/dist/mut-demo/parent-demo/verify/report.d.ts +15 -0
  409. package/dist/mut-demo/parent-demo/verify/report.js +45 -0
  410. package/dist/mut-demo/parent-demo/verify/run.d.ts +32 -0
  411. package/dist/mut-demo/parent-demo/verify/run.js +64 -0
  412. package/dist/mut-demo/parent-demo/version/command.d.ts +5 -0
  413. package/dist/mut-demo/parent-demo/version/command.js +52 -0
  414. package/dist/mut-demo/parent-demo/voice/command.d.ts +3 -0
  415. package/dist/mut-demo/parent-demo/voice/command.js +77 -0
  416. package/dist/mut-demo/parent-demo/voice/manifest.d.ts +33 -0
  417. package/dist/mut-demo/parent-demo/voice/manifest.js +69 -0
  418. package/dist/mut-demo/parent-demo/voice/portability.d.ts +27 -0
  419. package/dist/mut-demo/parent-demo/voice/portability.js +41 -0
  420. package/dist/mut-demo/parent-demo/voice/run.d.ts +29 -0
  421. package/dist/mut-demo/parent-demo/voice/run.js +224 -0
  422. package/dist/mut-demo/parent-demo/workflow/build.d.ts +2 -0
  423. package/dist/mut-demo/parent-demo/workflow/build.js +33 -0
  424. package/dist/mut-demo/parent-demo/workflow/draft.d.ts +9 -0
  425. package/dist/mut-demo/parent-demo/workflow/draft.js +230 -0
  426. package/dist/mut-demo/parent-demo/workflow/finish.d.ts +23 -0
  427. package/dist/mut-demo/parent-demo/workflow/finish.js +28 -0
  428. package/dist/mut-demo/parent-demo/workflow/project.d.ts +82 -0
  429. package/dist/mut-demo/parent-demo/workflow/project.js +224 -0
  430. package/dist/mut-demo/parent-demo/workflow/provenance.d.ts +18 -0
  431. package/dist/mut-demo/parent-demo/workflow/provenance.js +36 -0
  432. package/dist/mut-demo/parent-demo/workflow/render.d.ts +78 -0
  433. package/dist/mut-demo/parent-demo/workflow/render.js +922 -0
  434. package/dist/mut-demo/parent-demo/workflow/still.d.ts +5 -0
  435. package/dist/mut-demo/parent-demo/workflow/still.js +79 -0
  436. package/dist/mut-demo/parent-demo/workflow/validate.d.ts +2 -0
  437. package/dist/mut-demo/parent-demo/workflow/validate.js +49 -0
  438. package/dist/mut-demo/patch/apply.d.ts +36 -0
  439. package/dist/mut-demo/patch/apply.js +186 -0
  440. package/dist/mut-demo/patch/command.d.ts +2 -0
  441. package/dist/mut-demo/patch/command.js +92 -0
  442. package/dist/mut-demo/plugin/install.d.ts +40 -0
  443. package/dist/mut-demo/plugin/install.js +170 -0
  444. package/dist/mut-demo/preview/command.d.ts +10 -0
  445. package/dist/mut-demo/preview/command.js +945 -0
  446. package/dist/mut-demo/preview/manifest.d.ts +105 -0
  447. package/dist/mut-demo/preview/manifest.js +19 -0
  448. package/dist/mut-demo/preview/pack.d.ts +24 -0
  449. package/dist/mut-demo/preview/pack.js +53 -0
  450. package/dist/mut-demo/preview/plan.d.ts +61 -0
  451. package/dist/mut-demo/preview/plan.js +205 -0
  452. package/dist/mut-demo/preview/provenance.d.ts +23 -0
  453. package/dist/mut-demo/preview/provenance.js +38 -0
  454. package/dist/mut-demo/publish/command.d.ts +2 -0
  455. package/dist/mut-demo/publish/command.js +230 -0
  456. package/dist/mut-demo/publish/player.d.ts +61 -0
  457. package/dist/mut-demo/publish/player.js +728 -0
  458. package/dist/mut-demo/publish/static.d.ts +16 -0
  459. package/dist/mut-demo/publish/static.js +78 -0
  460. package/dist/mut-demo/qc.d.ts +2 -0
  461. package/dist/mut-demo/qc.js +192 -0
  462. package/dist/mut-demo/scene/author.d.ts +16 -0
  463. package/dist/mut-demo/scene/author.js +519 -0
  464. package/dist/mut-demo/scene/command.d.ts +2 -0
  465. package/dist/mut-demo/scene/command.js +110 -0
  466. package/dist/mut-demo/scene/ops.d.ts +23 -0
  467. package/dist/mut-demo/scene/ops.js +151 -0
  468. package/dist/mut-demo/state/command.d.ts +2 -0
  469. package/dist/mut-demo/state/command.js +128 -0
  470. package/dist/mut-demo/state/evidence.d.ts +73 -0
  471. package/dist/mut-demo/state/evidence.js +1 -0
  472. package/dist/mut-demo/storyboard/check.d.ts +21 -0
  473. package/dist/mut-demo/storyboard/check.js +39 -0
  474. package/dist/mut-demo/storyboard/containment.d.ts +24 -0
  475. package/dist/mut-demo/storyboard/containment.js +43 -0
  476. package/dist/mut-demo/storyboard/custom.d.ts +15 -0
  477. package/dist/mut-demo/storyboard/custom.js +133 -0
  478. package/dist/mut-demo/storyboard/edit.d.ts +19 -0
  479. package/dist/mut-demo/storyboard/edit.js +39 -0
  480. package/dist/mut-demo/storyboard/load.d.ts +11 -0
  481. package/dist/mut-demo/storyboard/load.js +52 -0
  482. package/dist/mut-demo/storyboard/report.d.ts +5 -0
  483. package/dist/mut-demo/storyboard/report.js +8 -0
  484. package/dist/mut-demo/template/coerce.d.ts +6 -0
  485. package/dist/mut-demo/template/coerce.js +44 -0
  486. package/dist/mut-demo/template/command.d.ts +5 -0
  487. package/dist/mut-demo/template/command.js +163 -0
  488. package/dist/mut-demo/template/env.d.ts +38 -0
  489. package/dist/mut-demo/template/env.js +40 -0
  490. package/dist/mut-demo/template/fork.d.ts +8 -0
  491. package/dist/mut-demo/template/fork.js +156 -0
  492. package/dist/mut-demo/template/format.d.ts +21 -0
  493. package/dist/mut-demo/template/format.js +177 -0
  494. package/dist/mut-demo/template/list.d.ts +27 -0
  495. package/dist/mut-demo/template/list.js +171 -0
  496. package/dist/mut-demo/template/new.d.ts +6 -0
  497. package/dist/mut-demo/template/new.js +335 -0
  498. package/dist/mut-demo/testing/env.d.ts +9 -0
  499. package/dist/mut-demo/testing/env.js +49 -0
  500. package/dist/mut-demo/testing/fakes.d.ts +39 -0
  501. package/dist/mut-demo/testing/fakes.js +100 -0
  502. package/dist/mut-demo/testing/fixtures.d.ts +8 -0
  503. package/dist/mut-demo/testing/fixtures.js +6 -0
  504. package/dist/mut-demo/testing/probe.d.ts +15 -0
  505. package/dist/mut-demo/testing/probe.js +20 -0
  506. package/dist/mut-demo/testing/project.d.ts +22 -0
  507. package/dist/mut-demo/testing/project.js +26 -0
  508. package/dist/mut-demo/tooling/session.d.ts +40 -0
  509. package/dist/mut-demo/tooling/session.js +106 -0
  510. package/dist/mut-demo/types.d.ts +64 -0
  511. package/dist/mut-demo/types.js +1 -0
  512. package/dist/mut-demo/verify/audio-loudness.d.ts +81 -0
  513. package/dist/mut-demo/verify/audio-loudness.js +306 -0
  514. package/dist/mut-demo/verify/caption.d.ts +23 -0
  515. package/dist/mut-demo/verify/caption.fixtures.d.ts +148 -0
  516. package/dist/mut-demo/verify/caption.fixtures.js +66 -0
  517. package/dist/mut-demo/verify/caption.js +105 -0
  518. package/dist/mut-demo/verify/command.d.ts +2 -0
  519. package/dist/mut-demo/verify/command.js +190 -0
  520. package/dist/mut-demo/verify/determinism.d.ts +30 -0
  521. package/dist/mut-demo/verify/determinism.js +59 -0
  522. package/dist/mut-demo/verify/expectation.d.ts +15 -0
  523. package/dist/mut-demo/verify/expectation.js +19 -0
  524. package/dist/mut-demo/verify/flash.d.ts +55 -0
  525. package/dist/mut-demo/verify/flash.js +147 -0
  526. package/dist/mut-demo/verify/media-events.d.ts +61 -0
  527. package/dist/mut-demo/verify/media-events.js +174 -0
  528. package/dist/mut-demo/verify/motion-coherence.d.ts +99 -0
  529. package/dist/mut-demo/verify/motion-coherence.js +274 -0
  530. package/dist/mut-demo/verify/platform.d.ts +33 -0
  531. package/dist/mut-demo/verify/platform.js +59 -0
  532. package/dist/mut-demo/verify/probe.d.ts +14 -0
  533. package/dist/mut-demo/verify/probe.js +23 -0
  534. package/dist/mut-demo/verify/report.d.ts +15 -0
  535. package/dist/mut-demo/verify/report.js +45 -0
  536. package/dist/mut-demo/verify/run.d.ts +32 -0
  537. package/dist/mut-demo/verify/run.js +64 -0
  538. package/dist/mut-demo/version/command.d.ts +5 -0
  539. package/dist/mut-demo/version/command.js +52 -0
  540. package/dist/mut-demo/voice/command.d.ts +3 -0
  541. package/dist/mut-demo/voice/command.js +77 -0
  542. package/dist/mut-demo/voice/manifest.d.ts +33 -0
  543. package/dist/mut-demo/voice/manifest.js +69 -0
  544. package/dist/mut-demo/voice/portability.d.ts +27 -0
  545. package/dist/mut-demo/voice/portability.js +41 -0
  546. package/dist/mut-demo/voice/run.d.ts +29 -0
  547. package/dist/mut-demo/voice/run.js +224 -0
  548. package/dist/mut-demo/workflow/build.d.ts +2 -0
  549. package/dist/mut-demo/workflow/build.js +33 -0
  550. package/dist/mut-demo/workflow/draft.d.ts +9 -0
  551. package/dist/mut-demo/workflow/draft.js +230 -0
  552. package/dist/mut-demo/workflow/finish.d.ts +23 -0
  553. package/dist/mut-demo/workflow/finish.js +28 -0
  554. package/dist/mut-demo/workflow/project.d.ts +82 -0
  555. package/dist/mut-demo/workflow/project.js +224 -0
  556. package/dist/mut-demo/workflow/provenance.d.ts +18 -0
  557. package/dist/mut-demo/workflow/provenance.js +36 -0
  558. package/dist/mut-demo/workflow/render.d.ts +78 -0
  559. package/dist/mut-demo/workflow/render.js +922 -0
  560. package/dist/mut-demo/workflow/still.d.ts +5 -0
  561. package/dist/mut-demo/workflow/still.js +79 -0
  562. package/dist/mut-demo/workflow/validate.d.ts +2 -0
  563. package/dist/mut-demo/workflow/validate.js +49 -0
  564. package/dist/node-io.js +1 -0
  565. package/dist/parent-demo/.out/smoke/boot.js +90 -0
  566. package/dist/parent-demo/.out/smoke/runtime/compose.js +43 -0
  567. package/dist/parent-demo/.out/smoke/runtime/easing.js +45 -0
  568. package/dist/parent-demo/.out/smoke/runtime/mount.js +153 -0
  569. package/dist/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  570. package/dist/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  571. package/dist/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  572. package/dist/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  573. package/dist/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  574. package/dist/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  575. package/dist/parent-demo/.out/smoke/shared/format.js +59 -0
  576. package/dist/parent-demo/.out/smoke/shared/motion.js +117 -0
  577. package/dist/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  578. package/dist/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  579. package/dist/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  580. package/dist/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  581. package/dist/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  582. package/dist/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  583. package/dist/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  584. package/dist/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  585. package/dist/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  586. package/dist/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  587. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  588. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  589. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  590. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  591. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  592. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  593. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  594. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  595. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  596. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  597. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  598. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  599. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  600. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  601. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  602. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  603. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  604. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  605. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  606. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  607. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  608. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  609. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  610. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  611. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  612. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  613. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  614. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  615. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  616. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  617. package/dist/parent-demo/analyze/command.d.ts +2 -0
  618. package/dist/parent-demo/analyze/command.js +190 -0
  619. package/dist/parent-demo/approval/approval.d.ts +43 -0
  620. package/dist/parent-demo/approval/approval.js +155 -0
  621. package/dist/parent-demo/approval/command.d.ts +2 -0
  622. package/dist/parent-demo/approval/command.js +286 -0
  623. package/dist/parent-demo/approval/gate.d.ts +7 -0
  624. package/dist/parent-demo/approval/gate.js +23 -0
  625. package/dist/parent-demo/approval/hash.d.ts +76 -0
  626. package/dist/parent-demo/approval/hash.js +493 -0
  627. package/dist/parent-demo/args.d.ts +30 -0
  628. package/dist/parent-demo/args.js +53 -0
  629. package/dist/parent-demo/assets/command.d.ts +2 -0
  630. package/dist/parent-demo/assets/command.js +165 -0
  631. package/dist/parent-demo/captions/command.d.ts +16 -0
  632. package/dist/parent-demo/captions/command.js +462 -0
  633. package/dist/parent-demo/captions/cues.d.ts +19 -0
  634. package/dist/parent-demo/captions/cues.js +70 -0
  635. package/dist/parent-demo/catalog/command.d.ts +2 -0
  636. package/dist/parent-demo/catalog/command.js +60 -0
  637. package/dist/parent-demo/catalog/format.d.ts +13 -0
  638. package/dist/parent-demo/catalog/format.js +54 -0
  639. package/dist/parent-demo/cli.d.ts +3 -0
  640. package/dist/parent-demo/cli.js +35 -0
  641. package/dist/parent-demo/commands.d.ts +3 -0
  642. package/dist/parent-demo/commands.js +65 -0
  643. package/dist/parent-demo/compare/command.d.ts +4 -0
  644. package/dist/parent-demo/compare/command.js +144 -0
  645. package/dist/parent-demo/contact/argv.d.ts +24 -0
  646. package/dist/parent-demo/contact/argv.js +45 -0
  647. package/dist/parent-demo/contact/command.d.ts +2 -0
  648. package/dist/parent-demo/contact/command.js +79 -0
  649. package/dist/parent-demo/desktop/command.d.ts +21 -0
  650. package/dist/parent-demo/desktop/command.js +120 -0
  651. package/dist/parent-demo/doctor/checks.d.ts +25 -0
  652. package/dist/parent-demo/doctor/checks.js +584 -0
  653. package/dist/parent-demo/doctor/command.d.ts +4 -0
  654. package/dist/parent-demo/doctor/command.js +94 -0
  655. package/dist/parent-demo/doctor/format.d.ts +7 -0
  656. package/dist/parent-demo/doctor/format.js +41 -0
  657. package/dist/parent-demo/doctor/heal.d.ts +14 -0
  658. package/dist/parent-demo/doctor/heal.js +71 -0
  659. package/dist/parent-demo/doctor/pins.d.ts +8 -0
  660. package/dist/parent-demo/doctor/pins.js +28 -0
  661. package/dist/parent-demo/doctor/skills.d.ts +15 -0
  662. package/dist/parent-demo/doctor/skills.js +58 -0
  663. package/dist/parent-demo/doctor/types.d.ts +36 -0
  664. package/dist/parent-demo/doctor/types.js +1 -0
  665. package/dist/parent-demo/doctor/vendored.d.ts +15 -0
  666. package/dist/parent-demo/doctor/vendored.js +90 -0
  667. package/dist/parent-demo/doctor/version.d.ts +8 -0
  668. package/dist/parent-demo/doctor/version.js +11 -0
  669. package/dist/parent-demo/exit-codes.d.ts +16 -0
  670. package/dist/parent-demo/exit-codes.js +15 -0
  671. package/dist/parent-demo/fit/command.d.ts +5 -0
  672. package/dist/parent-demo/fit/command.js +154 -0
  673. package/dist/parent-demo/fit/solve.d.ts +21 -0
  674. package/dist/parent-demo/fit/solve.js +80 -0
  675. package/dist/parent-demo/fit/target.d.ts +18 -0
  676. package/dist/parent-demo/fit/target.js +47 -0
  677. package/dist/parent-demo/generate3d/command.d.ts +3 -0
  678. package/dist/parent-demo/generate3d/command.js +38 -0
  679. package/dist/parent-demo/generate3d/run.d.ts +39 -0
  680. package/dist/parent-demo/generate3d/run.js +77 -0
  681. package/dist/parent-demo/icon/command.d.ts +2 -0
  682. package/dist/parent-demo/icon/command.js +113 -0
  683. package/dist/parent-demo/index.d.ts +18 -0
  684. package/dist/parent-demo/index.js +16 -0
  685. package/dist/parent-demo/install-mk.d.ts +31 -0
  686. package/dist/parent-demo/install-mk.js +168 -0
  687. package/dist/parent-demo/integration/interaction.integration.d.ts +1 -0
  688. package/dist/parent-demo/integration/interaction.integration.js +95 -0
  689. package/dist/parent-demo/integration/preview.integration.d.ts +1 -0
  690. package/dist/parent-demo/integration/preview.integration.js +61 -0
  691. package/dist/parent-demo/integration/smoke.integration.d.ts +1 -0
  692. package/dist/parent-demo/integration/smoke.integration.js +91 -0
  693. package/dist/parent-demo/interaction/command.d.ts +4 -0
  694. package/dist/parent-demo/interaction/command.js +219 -0
  695. package/dist/parent-demo/interaction/document.d.ts +55 -0
  696. package/dist/parent-demo/interaction/document.js +104 -0
  697. package/dist/parent-demo/interaction/driver.d.ts +29 -0
  698. package/dist/parent-demo/interaction/driver.js +278 -0
  699. package/dist/parent-demo/main.d.ts +2 -0
  700. package/dist/parent-demo/main.js +4 -0
  701. package/dist/parent-demo/mcp/server.d.ts +89 -0
  702. package/dist/parent-demo/mcp/server.js +479 -0
  703. package/dist/parent-demo/node-io.d.ts +14 -0
  704. package/dist/parent-demo/node-io.js +153 -0
  705. package/dist/parent-demo/optimize/command.d.ts +12 -0
  706. package/dist/parent-demo/optimize/command.js +110 -0
  707. package/dist/parent-demo/packs/command.d.ts +2 -0
  708. package/dist/parent-demo/packs/command.js +109 -0
  709. package/dist/parent-demo/patch/apply.d.ts +36 -0
  710. package/dist/parent-demo/patch/apply.js +186 -0
  711. package/dist/parent-demo/patch/command.d.ts +2 -0
  712. package/dist/parent-demo/patch/command.js +92 -0
  713. package/dist/parent-demo/plugin/install.d.ts +40 -0
  714. package/dist/parent-demo/plugin/install.js +170 -0
  715. package/dist/parent-demo/preview/command.d.ts +10 -0
  716. package/dist/parent-demo/preview/command.js +945 -0
  717. package/dist/parent-demo/preview/manifest.d.ts +105 -0
  718. package/dist/parent-demo/preview/manifest.js +19 -0
  719. package/dist/parent-demo/preview/pack.d.ts +24 -0
  720. package/dist/parent-demo/preview/pack.js +53 -0
  721. package/dist/parent-demo/preview/plan.d.ts +61 -0
  722. package/dist/parent-demo/preview/plan.js +205 -0
  723. package/dist/parent-demo/preview/provenance.d.ts +23 -0
  724. package/dist/parent-demo/preview/provenance.js +38 -0
  725. package/dist/parent-demo/publish/command.d.ts +2 -0
  726. package/dist/parent-demo/publish/command.js +230 -0
  727. package/dist/parent-demo/publish/player.d.ts +61 -0
  728. package/dist/parent-demo/publish/player.js +728 -0
  729. package/dist/parent-demo/publish/static.d.ts +16 -0
  730. package/dist/parent-demo/publish/static.js +78 -0
  731. package/dist/parent-demo/qc.d.ts +2 -0
  732. package/dist/parent-demo/qc.js +192 -0
  733. package/dist/parent-demo/scene/author.d.ts +16 -0
  734. package/dist/parent-demo/scene/author.js +519 -0
  735. package/dist/parent-demo/scene/command.d.ts +2 -0
  736. package/dist/parent-demo/scene/command.js +110 -0
  737. package/dist/parent-demo/scene/ops.d.ts +23 -0
  738. package/dist/parent-demo/scene/ops.js +151 -0
  739. package/dist/parent-demo/state/command.d.ts +2 -0
  740. package/dist/parent-demo/state/command.js +128 -0
  741. package/dist/parent-demo/state/evidence.d.ts +73 -0
  742. package/dist/parent-demo/state/evidence.js +1 -0
  743. package/dist/parent-demo/storyboard/check.d.ts +21 -0
  744. package/dist/parent-demo/storyboard/check.js +39 -0
  745. package/dist/parent-demo/storyboard/containment.d.ts +24 -0
  746. package/dist/parent-demo/storyboard/containment.js +43 -0
  747. package/dist/parent-demo/storyboard/custom.d.ts +15 -0
  748. package/dist/parent-demo/storyboard/custom.js +133 -0
  749. package/dist/parent-demo/storyboard/edit.d.ts +19 -0
  750. package/dist/parent-demo/storyboard/edit.js +39 -0
  751. package/dist/parent-demo/storyboard/load.d.ts +11 -0
  752. package/dist/parent-demo/storyboard/load.js +52 -0
  753. package/dist/parent-demo/storyboard/report.d.ts +5 -0
  754. package/dist/parent-demo/storyboard/report.js +8 -0
  755. package/dist/parent-demo/template/coerce.d.ts +6 -0
  756. package/dist/parent-demo/template/coerce.js +44 -0
  757. package/dist/parent-demo/template/command.d.ts +5 -0
  758. package/dist/parent-demo/template/command.js +163 -0
  759. package/dist/parent-demo/template/env.d.ts +38 -0
  760. package/dist/parent-demo/template/env.js +40 -0
  761. package/dist/parent-demo/template/fork.d.ts +8 -0
  762. package/dist/parent-demo/template/fork.js +156 -0
  763. package/dist/parent-demo/template/format.d.ts +21 -0
  764. package/dist/parent-demo/template/format.js +177 -0
  765. package/dist/parent-demo/template/list.d.ts +27 -0
  766. package/dist/parent-demo/template/list.js +171 -0
  767. package/dist/parent-demo/template/new.d.ts +6 -0
  768. package/dist/parent-demo/template/new.js +335 -0
  769. package/dist/parent-demo/testing/env.d.ts +9 -0
  770. package/dist/parent-demo/testing/env.js +49 -0
  771. package/dist/parent-demo/testing/fakes.d.ts +39 -0
  772. package/dist/parent-demo/testing/fakes.js +100 -0
  773. package/dist/parent-demo/testing/fixtures.d.ts +8 -0
  774. package/dist/parent-demo/testing/fixtures.js +6 -0
  775. package/dist/parent-demo/testing/probe.d.ts +15 -0
  776. package/dist/parent-demo/testing/probe.js +20 -0
  777. package/dist/parent-demo/testing/project.d.ts +22 -0
  778. package/dist/parent-demo/testing/project.js +26 -0
  779. package/dist/parent-demo/tooling/session.d.ts +40 -0
  780. package/dist/parent-demo/tooling/session.js +106 -0
  781. package/dist/parent-demo/types.d.ts +64 -0
  782. package/dist/parent-demo/types.js +1 -0
  783. package/dist/parent-demo/verify/audio-loudness.d.ts +81 -0
  784. package/dist/parent-demo/verify/audio-loudness.js +306 -0
  785. package/dist/parent-demo/verify/caption.d.ts +23 -0
  786. package/dist/parent-demo/verify/caption.fixtures.d.ts +148 -0
  787. package/dist/parent-demo/verify/caption.fixtures.js +66 -0
  788. package/dist/parent-demo/verify/caption.js +105 -0
  789. package/dist/parent-demo/verify/command.d.ts +2 -0
  790. package/dist/parent-demo/verify/command.js +190 -0
  791. package/dist/parent-demo/verify/determinism.d.ts +30 -0
  792. package/dist/parent-demo/verify/determinism.js +59 -0
  793. package/dist/parent-demo/verify/expectation.d.ts +15 -0
  794. package/dist/parent-demo/verify/expectation.js +19 -0
  795. package/dist/parent-demo/verify/flash.d.ts +55 -0
  796. package/dist/parent-demo/verify/flash.js +147 -0
  797. package/dist/parent-demo/verify/media-events.d.ts +61 -0
  798. package/dist/parent-demo/verify/media-events.js +174 -0
  799. package/dist/parent-demo/verify/motion-coherence.d.ts +99 -0
  800. package/dist/parent-demo/verify/motion-coherence.js +274 -0
  801. package/dist/parent-demo/verify/platform.d.ts +33 -0
  802. package/dist/parent-demo/verify/platform.js +59 -0
  803. package/dist/parent-demo/verify/probe.d.ts +14 -0
  804. package/dist/parent-demo/verify/probe.js +23 -0
  805. package/dist/parent-demo/verify/report.d.ts +15 -0
  806. package/dist/parent-demo/verify/report.js +45 -0
  807. package/dist/parent-demo/verify/run.d.ts +32 -0
  808. package/dist/parent-demo/verify/run.js +64 -0
  809. package/dist/parent-demo/version/command.d.ts +5 -0
  810. package/dist/parent-demo/version/command.js +52 -0
  811. package/dist/parent-demo/voice/command.d.ts +3 -0
  812. package/dist/parent-demo/voice/command.js +77 -0
  813. package/dist/parent-demo/voice/manifest.d.ts +33 -0
  814. package/dist/parent-demo/voice/manifest.js +69 -0
  815. package/dist/parent-demo/voice/portability.d.ts +27 -0
  816. package/dist/parent-demo/voice/portability.js +41 -0
  817. package/dist/parent-demo/voice/run.d.ts +29 -0
  818. package/dist/parent-demo/voice/run.js +224 -0
  819. package/dist/parent-demo/workflow/build.d.ts +2 -0
  820. package/dist/parent-demo/workflow/build.js +33 -0
  821. package/dist/parent-demo/workflow/draft.d.ts +9 -0
  822. package/dist/parent-demo/workflow/draft.js +230 -0
  823. package/dist/parent-demo/workflow/finish.d.ts +23 -0
  824. package/dist/parent-demo/workflow/finish.js +28 -0
  825. package/dist/parent-demo/workflow/project.d.ts +82 -0
  826. package/dist/parent-demo/workflow/project.js +224 -0
  827. package/dist/parent-demo/workflow/provenance.d.ts +18 -0
  828. package/dist/parent-demo/workflow/provenance.js +36 -0
  829. package/dist/parent-demo/workflow/render.d.ts +78 -0
  830. package/dist/parent-demo/workflow/render.js +922 -0
  831. package/dist/parent-demo/workflow/still.d.ts +5 -0
  832. package/dist/parent-demo/workflow/still.js +79 -0
  833. package/dist/parent-demo/workflow/validate.d.ts +2 -0
  834. package/dist/parent-demo/workflow/validate.js +49 -0
  835. package/dist/plugin/install.d.ts +3 -3
  836. package/dist/plugin/install.js +2 -2
  837. package/dist/preview/command.js +169 -94
  838. package/dist/preview/manifest.d.ts +2 -0
  839. package/dist/preview/plan.js +1 -1
  840. package/dist/publish/command.js +189 -29
  841. package/dist/publish/player.d.ts +42 -6
  842. package/dist/publish/player.js +660 -40
  843. package/dist/scene/author.d.ts +1 -1
  844. package/dist/scene/author.js +250 -10
  845. package/dist/state/evidence.d.ts +4 -2
  846. package/dist/state/evidence.js +17 -4
  847. package/dist/template/env.d.ts +4 -0
  848. package/dist/template/env.js +3 -1
  849. package/dist/template/format.js +28 -12
  850. package/dist/template/list.d.ts +13 -1
  851. package/dist/template/list.js +61 -6
  852. package/dist/template/new.js +37 -4
  853. package/dist/testing/env.d.ts +1 -0
  854. package/dist/testing/env.js +32 -2
  855. package/dist/testing/fakes.d.ts +7 -1
  856. package/dist/testing/fakes.js +7 -2
  857. package/dist/types.d.ts +5 -0
  858. package/dist/verify/audio-loudness.d.ts +38 -3
  859. package/dist/verify/audio-loudness.js +123 -3
  860. package/dist/verify/caption.d.ts +23 -0
  861. package/dist/verify/caption.fixtures.d.ts +148 -0
  862. package/dist/verify/caption.fixtures.js +66 -0
  863. package/dist/verify/caption.js +105 -0
  864. package/dist/verify/command.js +42 -13
  865. package/dist/verify/determinism.d.ts +5 -5
  866. package/dist/verify/determinism.js +6 -6
  867. package/dist/verify/flash.d.ts +55 -0
  868. package/dist/verify/flash.js +147 -0
  869. package/dist/verify/motion-coherence.d.ts +99 -0
  870. package/dist/verify/motion-coherence.js +274 -0
  871. package/dist/verify/platform.d.ts +3 -3
  872. package/dist/verify/platform.js +5 -5
  873. package/dist/verify/run.d.ts +5 -0
  874. package/dist/verify/run.js +11 -0
  875. package/dist/voice/portability.d.ts +27 -0
  876. package/dist/voice/portability.js +41 -0
  877. package/dist/voice/run.js +31 -17
  878. package/dist/workflow/build.js +11 -3
  879. package/dist/workflow/draft.js +24 -9
  880. package/dist/workflow/project.d.ts +10 -1
  881. package/dist/workflow/project.js +29 -3
  882. package/dist/workflow/render.d.ts +41 -2
  883. package/dist/workflow/render.js +217 -54
  884. package/dist/workflow/still.js +30 -13
  885. package/package.json +6 -5
@@ -0,0 +1,274 @@
1
+ import { EXIT } from "../exit-codes.js";
2
+ import { mergeReports } from "./report.js";
3
+ /** Sample geometry, mirrored from the calibrated `.dogfood/motion-coherence.mjs` probe. */
4
+ export const COHERENCE_WIDTH = 240;
5
+ export const COHERENCE_HEIGHT = 135;
6
+ export const COHERENCE_MAX_SHIFT = 24;
7
+ /** Sample every Nth pixel; the gain is a ratio so coarser sampling preserves the verdict. */
8
+ export const COHERENCE_SAMPLE_STEP = 3;
9
+ /** The 2-D (dx, scale) search grid. A zoom is judged on scale, never on lateral shift alone. */
10
+ export const COHERENCE_SCALE_MIN = 0.86;
11
+ export const COHERENCE_SCALE_MAX = 1.14;
12
+ export const COHERENCE_SCALE_STEP = 0.02;
13
+ export const COHERENCE_SCALE_OFF = 0.02;
14
+ /** gain = MAD(dx=0,scale=1)/MAD(best). >1.25 with monotone shift or a scale change is coherent. */
15
+ export const COHERENCE_GAIN_COHERENT = 1.25;
16
+ /** A perfect match at (dx, scale) has MAD 0; cap the ratio so a finding stays readable. */
17
+ export const COHERENCE_MAX_GAIN = 99;
18
+ /** Below this normalized whole-frame mean abs diff, consecutive samples count as identical. */
19
+ export const COHERENCE_CHANGE_EPSILON = 0.01;
20
+ /**
21
+ * FFmpeg can only hand bytes back through `Io.run` as UTF-8 text, so the gray plane is
22
+ * remapped into printable ASCII (32..126) on the way out and reconstructed here. The
23
+ * mapping is monotone: MAD is scaled by a constant factor, so the gain ratio - the only
24
+ * calibrated quantity - is preserved.
25
+ */
26
+ export const ASCII_MIN = 32;
27
+ export const ASCII_SPAN = 95;
28
+ /** Fixed filter chain; never user-supplied (scale + gray + printable-ASCII transport). */
29
+ export const COHERENCE_FILTER = `scale=${COHERENCE_WIDTH}:${COHERENCE_HEIGHT},format=gray,` +
30
+ `lutyuv=y=${ASCII_MIN}+val*${ASCII_SPAN - 1}/255`;
31
+ /** Fixed ffmpeg argv template; `IN` and `TIME` are replaced per sample. */
32
+ export const COHERENCE_ARGS_TEMPLATE = [
33
+ "-hide_banner",
34
+ "-loglevel",
35
+ "error",
36
+ "-ss",
37
+ "TIME",
38
+ "-i",
39
+ "IN",
40
+ "-frames:v",
41
+ "1",
42
+ "-vf",
43
+ COHERENCE_FILTER,
44
+ "-f",
45
+ "rawvideo",
46
+ "-pix_fmt",
47
+ "gray",
48
+ "-",
49
+ ];
50
+ const SCALES = [];
51
+ for (let s = COHERENCE_SCALE_MIN; s <= COHERENCE_SCALE_MAX + 1e-9; s += COHERENCE_SCALE_STEP) {
52
+ SCALES.push(Number(s.toFixed(3)));
53
+ }
54
+ const grayArgsFor = (file, time) => COHERENCE_ARGS_TEMPLATE.map((arg) => (arg === "IN" ? file : arg === "TIME" ? String(time) : arg));
55
+ /** Encodes a frame into the printable-ASCII payload ffmpeg produces on stdout. */
56
+ export function frameToText(frame) {
57
+ const factor = (ASCII_SPAN - 1) / 255;
58
+ let out = "";
59
+ for (const raw of frame.data) {
60
+ const value = Math.max(0, Math.min(255, raw));
61
+ out += String.fromCharCode(ASCII_MIN + Math.round(value * factor));
62
+ }
63
+ return out;
64
+ }
65
+ /** Decodes an ffmpeg stdout payload into a gray frame; undefined when malformed. */
66
+ export function decodeGrayFrame(text, width = COHERENCE_WIDTH, height = COHERENCE_HEIGHT) {
67
+ const size = width * height;
68
+ if (text.length !== size)
69
+ return undefined;
70
+ const factor = 255 / (ASCII_SPAN - 1);
71
+ const data = new Array(size);
72
+ for (let i = 0; i < size; i++) {
73
+ const code = text.charCodeAt(i) ?? -1;
74
+ if (code < ASCII_MIN || code >= ASCII_MIN + ASCII_SPAN)
75
+ return undefined;
76
+ data[i] = (code - ASCII_MIN) * factor;
77
+ }
78
+ return { width, height, data };
79
+ }
80
+ /**
81
+ * Mean absolute difference between A and B rescaled by `scale` about the centre and
82
+ * shifted by dx. Port of the calibrated `.dogfood` metric: a lower MAD at a non-zero
83
+ * (dx, scale) is what distinguishes a real camera move from noise.
84
+ */
85
+ export function mad(a, b, dx, scale = 1) {
86
+ const step = COHERENCE_SAMPLE_STEP;
87
+ const left = Math.max(0, -dx);
88
+ const right = Math.min(a.width, a.width - dx);
89
+ const cx = (a.width - 1) / 2;
90
+ const cy = (a.height - 1) / 2;
91
+ let sum = 0;
92
+ let n = 0;
93
+ for (let y = 0; y < a.height; y += step) {
94
+ const sy = Math.round(cy + (y - cy) / scale);
95
+ if (sy < 0 || sy >= b.height)
96
+ continue;
97
+ for (let x = left; x < right; x += step) {
98
+ const sx = Math.round(cx + (x - cx) / scale);
99
+ if (sx < 0 || sx >= b.width)
100
+ continue;
101
+ const bx = sx + dx;
102
+ if (bx < 0 || bx >= b.width)
103
+ continue;
104
+ const av = a.data[y * a.width + x] ?? 0;
105
+ const bv = b.data[sy * b.width + bx] ?? 0;
106
+ sum += Math.abs(av - bv);
107
+ n++;
108
+ }
109
+ }
110
+ return n === 0 ? Number.NaN : sum / n;
111
+ }
112
+ /**
113
+ * Normalized mean absolute difference over two whole gray frames (0 = identical,
114
+ * 1 = maximally different). Unlike `mad`/`coherencePair`, this does no alignment search,
115
+ * so it still reports change when motion is layered or object-local and the global best
116
+ * (dx, scale) stays at (0, 1) because a static majority anchors the frame.
117
+ */
118
+ export function changedPixelFraction(a, b) {
119
+ const size = Math.min(a.width * a.height, b.width * b.height);
120
+ if (size <= 0)
121
+ return 0;
122
+ let sum = 0;
123
+ for (let i = 0; i < size; i++) {
124
+ sum += Math.abs((a.data[i] ?? 0) - (b.data[i] ?? 0));
125
+ }
126
+ return Math.min(1, sum / size / 255);
127
+ }
128
+ /** 2-D (dx, scale) search plus the zero-error reference that defines the gain. */
129
+ export function coherencePair(a, b) {
130
+ const zero = mad(a, b, 0, 1);
131
+ let best = { dx: 0, scale: 1, mad: zero };
132
+ for (const s of SCALES) {
133
+ for (let dx = -COHERENCE_MAX_SHIFT; dx <= COHERENCE_MAX_SHIFT; dx++) {
134
+ const value = mad(a, b, dx, s);
135
+ if (Number.isFinite(value) && value < best.mad)
136
+ best = { dx, scale: s, mad: value };
137
+ }
138
+ }
139
+ const raw = best.mad > 0 ? zero / best.mad : zero === 0 ? 1 : Number.POSITIVE_INFINITY;
140
+ const gain = Number.isFinite(raw) ? Math.min(raw, COHERENCE_MAX_GAIN) : COHERENCE_MAX_GAIN;
141
+ return { dx: best.dx, scale: best.scale, zero, mad: best.mad, gain };
142
+ }
143
+ /** Folds consecutive-pair measurements into one coherent/dead/unjudgeable verdict. */
144
+ export function classifyMotion(pairs, changedFraction = 0) {
145
+ const peakGain = pairs.reduce((peak, p) => Math.max(peak, p.gain), 1);
146
+ const shifts = pairs.map((p) => p.dx);
147
+ // shifts[0] can be 0; using it as the sign reference misreads a genuine later pan. Anchor on
148
+ // the first nonzero shift instead, falling back to shifts[0] only when every shift is zero.
149
+ const signRef = shifts.find((dx) => dx !== 0) ?? shifts[0] ?? 0;
150
+ const monotone = shifts.some((dx) => dx !== 0) &&
151
+ shifts.every((dx) => dx === 0 || Math.sign(dx) === Math.sign(signRef));
152
+ const scaled = pairs.some((p) => Math.abs(p.scale - 1) >= COHERENCE_SCALE_OFF);
153
+ const coherent = peakGain >= COHERENCE_GAIN_COHERENT && (monotone || scaled);
154
+ return { pairs, peakGain, monotone, scaled, coherent, changedFraction };
155
+ }
156
+ const shortReason = (stderr) => (stderr.split(/\r?\n/).find((line) => line.trim().length > 0) ?? "no details")
157
+ .trim()
158
+ .split(/\s+/)
159
+ .slice(-12)
160
+ .join(" ");
161
+ /** Extracts one gray frame per sample time with the fixed ffmpeg chain (the same `Io.run` seam). */
162
+ async function extractFrames(io, file, times) {
163
+ const frames = [];
164
+ for (const time of times) {
165
+ const result = await io.run("ffmpeg", grayArgsFor(file, time));
166
+ if (result.code !== 0) {
167
+ return result.code === EXIT.MISSING_TOOL
168
+ ? { ok: false, kind: "missing-tool" }
169
+ : { ok: false, kind: "unreadable", reason: shortReason(result.stderr) };
170
+ }
171
+ const frame = decodeGrayFrame(result.stdout);
172
+ if (frame === undefined)
173
+ return { ok: false, kind: "no-frames" };
174
+ frames.push(frame);
175
+ }
176
+ return { ok: true, frames };
177
+ }
178
+ /**
179
+ * Measures coherence between consecutive frames. A missing tool, a decode error, or a
180
+ * malformed payload is a typed outcome, never a throw.
181
+ */
182
+ export async function measureMotionCoherence(io, file, times) {
183
+ const extracted = await extractFrames(io, file, times);
184
+ if (!extracted.ok)
185
+ return extracted;
186
+ const { frames } = extracted;
187
+ if (frames.length < 2)
188
+ return { ok: false, kind: "too-few-frames" };
189
+ const pairs = [];
190
+ let changedFraction = 0;
191
+ for (let i = 1; i < frames.length; i++) {
192
+ const prev = frames[i - 1];
193
+ const curr = frames[i];
194
+ if (prev === undefined || curr === undefined)
195
+ continue;
196
+ pairs.push(coherencePair(prev, curr));
197
+ changedFraction = Math.max(changedFraction, changedPixelFraction(prev, curr));
198
+ }
199
+ return { ok: true, measure: classifyMotion(pairs, changedFraction) };
200
+ }
201
+ const finding = (code, level, message) => ({
202
+ code,
203
+ level,
204
+ message,
205
+ });
206
+ const UNAVAILABLE = {
207
+ "missing-tool": {
208
+ code: "motion-coherence-unavailable",
209
+ message: "Motion coherence not measured; ffmpeg is unavailable.",
210
+ },
211
+ unreadable: {
212
+ code: "motion-coherence-unreadable",
213
+ message: "Motion coherence could not read the clip.",
214
+ },
215
+ "no-frames": {
216
+ code: "motion-coherence-unmeasurable",
217
+ message: "Motion coherence could not be measured; no gray frames were returned.",
218
+ },
219
+ "too-few-frames": {
220
+ code: "motion-coherence-unmeasurable",
221
+ message: "Motion coherence could not be measured; too few gray frames were returned.",
222
+ },
223
+ };
224
+ const unavailableReport = (outcome) => {
225
+ const { code, message } = UNAVAILABLE[outcome.kind];
226
+ const text = outcome.kind === "unreadable" ? `${message} ${outcome.reason ?? "decode failed"}` : message;
227
+ return { status: "UNKNOWN", findings: [finding(code, "warn", text)] };
228
+ };
229
+ /**
230
+ * Turns a measurement into a finding. Coherent motion is INFO (PASS). A non-coherent
231
+ * result is only WARN when the frames are essentially identical (a genuinely dead pan);
232
+ * when the frames clearly changed but the whole-frame (dx, scale) metric found no coherent
233
+ * match, the probe cannot judge layered/object-local motion and emits INFO instead of a
234
+ * false WARN. Unavailability is a typed UNKNOWN. No path emits `fatal` or FAIL, so the
235
+ * probe can never block render or change the 0/2/5 exit contract.
236
+ */
237
+ export function assessCoherence(outcome) {
238
+ if (!outcome.ok)
239
+ return unavailableReport(outcome);
240
+ const m = outcome.measure;
241
+ const gain = m.peakGain.toFixed(2);
242
+ if (m.coherent) {
243
+ const axis = m.monotone ? "monotone shift" : "scale change";
244
+ return {
245
+ status: "PASS",
246
+ findings: [
247
+ finding("motion-coherent", "info", `Coherent motion detected (peak gain ${gain}, ${axis}); sampled beats are not dead pans.`),
248
+ ],
249
+ };
250
+ }
251
+ // The whole-frame search cannot see motion confined to a layer or a small object: a static
252
+ // majority anchors the best shift at dx=0, so gain ~1 does NOT imply a static frame. If the
253
+ // frames demonstrably changed, report the limit honestly instead of crying "dead pan".
254
+ const change = m.changedFraction;
255
+ if (change >= COHERENCE_CHANGE_EPSILON) {
256
+ return {
257
+ status: "PASS",
258
+ findings: [
259
+ finding("motion-unjudgeable", "info", `Motion not judgeable (peak gain ${gain}): the whole-frame (dx,scale) metric cannot ` +
260
+ `assess layered or object-local motion, but consecutive frames have a mean frame ` +
261
+ `difference of ${change.toFixed(3)} (${(change * 100).toFixed(1)}% of the intensity ` +
262
+ `range 0-255), so the beat is not static.`),
263
+ ],
264
+ };
265
+ }
266
+ return {
267
+ status: "WARN",
268
+ findings: [
269
+ finding("motion-dead-pan", "warn", `No coherent motion detected (peak gain ${gain}, best shift 0 px); a beat may be a dead pan.`),
270
+ ],
271
+ };
272
+ }
273
+ /** The spec's seam name: merges this probe's report into the base report. */
274
+ export const withCoherence = mergeReports;
@@ -21,9 +21,9 @@ export interface PlatformAudioPolicy {
21
21
  readonly truePeakDb: number;
22
22
  }
23
23
  /**
24
- * Audio policy usable for QC: only an explicit verified template counts.
25
- * Unverified or absent policy yields undefined so callers report UNKNOWN,
26
- * never a universal-LUFS FAIL.
24
+ * Audio policy usable for QC: only an explicitly verified, dated, cited template
25
+ * counts. An uncited, unverified or absent policy yields undefined so callers
26
+ * report UNKNOWN, never a universal-LUFS FAIL or a bare meter verdict.
27
27
  */
28
28
  export declare const verifiedAudioPolicy: (template: PlatformTemplate | undefined) => PlatformAudioPolicy | undefined;
29
29
  /**
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { dirname, join } from "node:path";
3
3
  import { parsePlatformTemplate } from "@anvpx/motion-schema";
4
- import { assessAudioLoudness, } from "./audio-loudness.js";
4
+ import { assessAudioLoudness, loudnessCitationOf, } from "./audio-loudness.js";
5
5
  const SCHEMA_ENTRY = "@anvpx/motion-schema";
6
6
  const DATA_FROM_ENTRY = ["..", "data", "platforms"];
7
7
  /** `data/platforms` of the schema package, resolved from its entry point. */
@@ -41,11 +41,11 @@ export async function platformLookup(host, dir = platformDir()) {
41
41
  };
42
42
  }
43
43
  /**
44
- * Audio policy usable for QC: only an explicit verified template counts.
45
- * Unverified or absent policy yields undefined so callers report UNKNOWN,
46
- * never a universal-LUFS FAIL.
44
+ * Audio policy usable for QC: only an explicitly verified, dated, cited template
45
+ * counts. An uncited, unverified or absent policy yields undefined so callers
46
+ * report UNKNOWN, never a universal-LUFS FAIL or a bare meter verdict.
47
47
  */
48
- export const verifiedAudioPolicy = (template) => template?.verified === true
48
+ export const verifiedAudioPolicy = (template) => template !== undefined && loudnessCitationOf(template) !== undefined
49
49
  ? {
50
50
  id: template.id,
51
51
  lufsTarget: template.audio.lufsTarget,
@@ -18,6 +18,11 @@ export interface VerifyTarget {
18
18
  /** When set, both renders are hashed and byte-identity is gated (exit 5 on mismatch). */
19
19
  determinism?: DeterminismPair;
20
20
  }
21
+ /**
22
+ * Four in-clip times for the optional coherence probe, derived from the existing ffprobe
23
+ * duration (never a second probe). With no usable duration, sample four early fixed points.
24
+ */
25
+ export declare function coherenceTimes(durationSec: number | undefined): number[];
21
26
  /** Probes a file with ffprobe and assesses it; never throws. */
22
27
  export declare function verifyFile(io: Io, target: VerifyTarget): Promise<VerifyRun>;
23
28
  /** The `--verify` step of draft and render: prints the report, resolves the exit code. */
@@ -12,6 +12,17 @@ const probedDuration = (probe) => {
12
12
  ? seconds
13
13
  : undefined;
14
14
  };
15
+ /**
16
+ * Four in-clip times for the optional coherence probe, derived from the existing ffprobe
17
+ * duration (never a second probe). With no usable duration, sample four early fixed points.
18
+ */
19
+ export function coherenceTimes(durationSec) {
20
+ const FRACTIONS = [0.2, 0.45, 0.7, 0.95];
21
+ if (durationSec === undefined || !Number.isFinite(durationSec) || durationSec <= 0) {
22
+ return FRACTIONS;
23
+ }
24
+ return FRACTIONS.map((fraction) => Number((durationSec * fraction).toFixed(3)));
25
+ }
15
26
  /** Probes a file with ffprobe and assesses it; never throws. */
16
27
  export async function verifyFile(io, target) {
17
28
  const probed = await probeMedia(io, target.file);
@@ -0,0 +1,27 @@
1
+ /**
2
+ * G-04b — honest portability refusals for the local voice / karaoke path.
3
+ *
4
+ * The local Kokoro voice path is NOT portable and NOT self-sufficient: it needs
5
+ * Python 3.12 on a supported host, and word-level karaoke needs a voice manifest
6
+ * with word timings. Each unsupported prerequisite fails EARLY with a typed
7
+ * reason, the missing prerequisite and the exact fix — never a late crash, never
8
+ * a silent fallback, no install and no cloud provider.
9
+ */
10
+ /** Why the voice path refused. Discriminated so callers/tests can assert it. */
11
+ export type VoiceBlockerReason = "unsupported-platform" | "python-missing" | "python-version" | "no-word-timings";
12
+ export interface VoiceBlocker {
13
+ readonly reason: VoiceBlockerReason;
14
+ /** Names the missing prerequisite and the exact fix. */
15
+ readonly message: string;
16
+ }
17
+ /** Platforms with a verified local voice path (see docs/VOICE-SUPPORT.md). */
18
+ export declare const VOICE_SUPPORTED_PLATFORMS: readonly ["win32", "linux"];
19
+ /** Typed refusal for an OS the local voice path does not support. */
20
+ export declare const platformBlocker: (platform: string) => VoiceBlocker | undefined;
21
+ /** Typed refusal for a missing or wrong-version Python voice venv. */
22
+ export declare const pythonBlocker: (platform: string, probe: {
23
+ readonly status: "missing" | "unknown";
24
+ readonly hint: string;
25
+ }) => VoiceBlocker;
26
+ /** Typed refusal for karaoke requested without word-level timings. */
27
+ export declare const wordTimingBlocker: () => VoiceBlocker;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * G-04b — honest portability refusals for the local voice / karaoke path.
3
+ *
4
+ * The local Kokoro voice path is NOT portable and NOT self-sufficient: it needs
5
+ * Python 3.12 on a supported host, and word-level karaoke needs a voice manifest
6
+ * with word timings. Each unsupported prerequisite fails EARLY with a typed
7
+ * reason, the missing prerequisite and the exact fix — never a late crash, never
8
+ * a silent fallback, no install and no cloud provider.
9
+ */
10
+ /** Platforms with a verified local voice path (see docs/VOICE-SUPPORT.md). */
11
+ export const VOICE_SUPPORTED_PLATFORMS = ["win32", "linux"];
12
+ /** Typed refusal for an OS the local voice path does not support. */
13
+ export const platformBlocker = (platform) => {
14
+ if (VOICE_SUPPORTED_PLATFORMS.includes(platform))
15
+ return undefined;
16
+ return {
17
+ reason: "unsupported-platform",
18
+ message: `mk voice: unsupported platform "${platform}" — the local Kokoro voice path is ` +
19
+ `supported on Windows and Linux only (macOS is unavailable). ` +
20
+ `Fix: run mk voice on a supported host with Python 3.12, or render silent and caption ` +
21
+ `with imported SRT/VTT (mk captions --from-srt/--from-vtt).`,
22
+ };
23
+ };
24
+ /** Typed refusal for a missing or wrong-version Python voice venv. */
25
+ export const pythonBlocker = (platform, probe) => {
26
+ const create = platform === "win32" ? "py -3.12 -m venv .venv-voice" : "python3.12 -m venv .venv-voice";
27
+ const missing = probe.status === "missing";
28
+ return {
29
+ reason: missing ? "python-missing" : "python-version",
30
+ message: `mk voice: ${missing ? "missing prerequisite: no Python 3.12 voice venv was found" : "the voice venv python is not 3.12"}. ` +
31
+ `Fix: ${create}, then re-run mk voice (or set MOTION_VOICE_PYTHON to an existing 3.12 venv). ` +
32
+ probe.hint,
33
+ };
34
+ };
35
+ /** Typed refusal for karaoke requested without word-level timings. */
36
+ export const wordTimingBlocker = () => ({
37
+ reason: "no-word-timings",
38
+ message: "mk captions: the manifest has no words — word-level karaoke needs voice word timings. " +
39
+ "Fix: run `mk voice` to write a word-timed manifest, or use text captions from " +
40
+ "`mk captions --from-srt/--from-vtt` (the manifest-free path).",
41
+ });
package/dist/voice/run.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { existsSync } from "node:fs";
2
2
  import { join } from "node:path";
3
- import { alignWords, detectSilence, isJapaneseVoice, resolveVenvPython, synthesize, VOICE_PROVENANCE, wordsInSilence, } from "@anvpx/motion-audio";
3
+ import { alignmentRefusal, alignWords, detectSilence, resolveVenvPython, synthesize, VOICE_PROVENANCE, wordsInSilence, } from "@anvpx/motion-audio";
4
4
  import { resolveTimeline, validateStoryboardFull, WORDS_PER_SECOND } from "@anvpx/motion-build";
5
5
  import { mkDir } from "../approval/hash.js";
6
6
  import { EXIT } from "../exit-codes.js";
7
7
  import { readJsonFile } from "../storyboard/load.js";
8
8
  import { buildVoiceManifestWithAnalysis } from "./manifest.js";
9
+ import { platformBlocker, pythonBlocker } from "./portability.js";
9
10
  const splitTokens = (narration) => narration.split(/\s+/).filter((w) => w.length > 0);
10
11
  /** DL-01b voice bar notes (constants, shared with the CLI usage text). */
11
12
  export const VOICE_WAV_FALLBACK_NOTE = "pre-rendered WAV fallback in pack";
@@ -43,7 +44,8 @@ async function pickPython(io, explicit) {
43
44
  const probe = await resolveVenvPython(io.run);
44
45
  if (probe.ok)
45
46
  return { python: probe.python };
46
- io.stderr(`mk voice: ${probe.hint}\n${doctorHint}\n`);
47
+ const blocker = pythonBlocker(io.host.platform, probe);
48
+ io.stderr(`${blocker.message}\n${doctorHint}\n`);
47
49
  return { code: EXIT.MISSING_TOOL };
48
50
  }
49
51
  const synthDuration = async (io, sceneId, narration, voice, audioPath, python, speed) => {
@@ -59,8 +61,8 @@ const synthDuration = async (io, sceneId, narration, voice, audioPath, python, s
59
61
  io.stderr(`mk voice: synth for "${sceneId}" failed: ${synth.hint}\n${doctorHint}\n`);
60
62
  return { code: synth.status === "missing" ? EXIT.MISSING_TOOL : EXIT.ERROR };
61
63
  };
62
- const alignSceneWords = async (io, sceneId, audioPath, tokens, python) => {
63
- const aligned = await alignWords(io.run, { audioPath, tokens, python });
64
+ const alignSceneWords = async (io, sceneId, audioPath, tokens, python, lang, voice) => {
65
+ const aligned = await alignWords(io.run, { audioPath, tokens, python, lang, voice });
64
66
  if (aligned.ok)
65
67
  return { words: aligned.words };
66
68
  io.stderr(`mk voice: align for "${sceneId}" failed: ${aligned.hint}\n${doctorHint}\n`);
@@ -116,24 +118,19 @@ function narrationFitProblems(board) {
116
118
  });
117
119
  return [...unspoken, ...lengths];
118
120
  }
119
- /** Synth + align + silence gate for one narrated scene; fails closed, never fakes.
120
- * `j*` (Japanese-pipeline) voices are unaligned-only: the EN wav2vec2 aligner
121
- * cannot honestly caption non-ASCII narration, so alignment is skipped and
122
- * the scene keeps measured duration with no words (QC stays UNKNOWN, never FAIL).
121
+ /**
122
+ * Synth + align + silence gate for one narrated scene; fails closed, never fakes.
123
+ * There is no silent "unaligned-only" path: every narrated scene is aligned by
124
+ * the English-only wav2vec2 model or refused. Non-English narration is refused
125
+ * up front in `runVoice`, before this function runs.
123
126
  */
124
- async function voiceScene(io, scene, voice, audioDir, python, speed) {
127
+ async function voiceScene(io, scene, voice, audioDir, python, speed, lang) {
125
128
  const narration = scene.narration;
126
129
  const audioPath = join(audioDir, `${scene.id}.wav`);
127
130
  const synth = await synthDuration(io, scene.id, narration, voice, audioPath, python, speed);
128
131
  if ("code" in synth)
129
132
  return synth;
130
- if (isJapaneseVoice(voice)) {
131
- const gated = await gateSilence(io, scene.id, audioPath, []);
132
- if ("code" in gated)
133
- return gated;
134
- return { id: scene.id, durationS: synth.durationS, words: [], silences: gated.silences };
135
- }
136
- const aligned = await alignSceneWords(io, scene.id, audioPath, splitTokens(narration), python);
133
+ const aligned = await alignSceneWords(io, scene.id, audioPath, splitTokens(narration), python, lang, voice);
137
134
  if ("code" in aligned)
138
135
  return aligned;
139
136
  const gated = await gateSilence(io, scene.id, audioPath, aligned.words);
@@ -176,9 +173,26 @@ async function finishVoice(args) {
176
173
  * the process exit code; never falls back to silent durations.
177
174
  */
178
175
  export async function runVoice(storyboard, options, io) {
176
+ // G-04b: fail before any probe, read or write on a platform the local voice
177
+ // path does not support. The refusal names the prerequisite and the fix.
178
+ const blocker = platformBlocker(io.host.platform);
179
+ if (blocker !== undefined) {
180
+ io.stderr(`${blocker.message}\n`);
181
+ return EXIT.MISSING_TOOL;
182
+ }
179
183
  const board = await loadNarrated(storyboard, io);
180
184
  if (typeof board === "number")
181
185
  return board;
186
+ // H16/F8: fail closed before any python probe or synthesis when EITHER the
187
+ // board language or the selected voice maps to a language the EN-only
188
+ // aligner cannot honestly handle. A `j*` voice on a board with no meta.lang
189
+ // must not be silently routed to the EN aligner with fabricated timings.
190
+ const lang = board.board.meta.lang;
191
+ const languageRefusal = alignmentRefusal(lang, options.voice);
192
+ if (languageRefusal !== undefined) {
193
+ io.stderr(`mk voice: ${languageRefusal}\n`);
194
+ return EXIT.USAGE;
195
+ }
182
196
  const misfit = narrationFitProblems(board);
183
197
  if (misfit.length > 0) {
184
198
  io.stderr(`mk voice: narration cannot be synthesized yet:\n${misfit.map((line) => ` - ${line}`).join("\n")}\n`);
@@ -193,7 +207,7 @@ export async function runVoice(storyboard, options, io) {
193
207
  await io.host.mkdir?.(audioDir);
194
208
  const rows = [];
195
209
  for (const scene of board.narrated) {
196
- const timed = await voiceScene(io, scene, options.voice, audioDir, picked.python, options.speed);
210
+ const timed = await voiceScene(io, scene, options.voice, audioDir, picked.python, options.speed, lang);
197
211
  if ("code" in timed)
198
212
  return timed.code;
199
213
  rows.push(timed);
@@ -1,11 +1,14 @@
1
+ import { textFlag } from "../args.js";
1
2
  import { EXIT } from "../exit-codes.js";
3
+ import { applyInteraction } from "../interaction/document.js";
2
4
  import { parseBuildArgs, prepareProject } from "./project.js";
3
- const USAGE = `mk build <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--incremental] [--clean-cache] [--shared-cache-dir <dir>]
5
+ const USAGE = `mk build <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>] [--incremental] [--clean-cache] [--shared-cache-dir <dir>]
4
6
 
5
7
  Validate the storyboard and compile it into a HyperFrames project.
6
8
  --out <dir> project directory (default: <storyboard dir>/out/project)
7
9
  --assets <dir> directory that asset refs are relative to
8
10
  --ledger <file> asset licence ledger (assets.json); every copied asset needs a row
11
+ --interaction <file> fold a recorded ADR-0013 transcript into the build (seeded boot.js)
9
12
  --incremental reuse unchanged scenes from <storyboard dir>/.mk-cache (output is byte-identical);
10
13
  prints "cache: N hit / M miss"; draft, render and still accept it too
11
14
  --no-incremental build without the cache (the default)
@@ -16,10 +19,15 @@ export const buildCommand = {
16
19
  name: "build",
17
20
  summary: "validate a storyboard and compile it into a HyperFrames project",
18
21
  async run(args, io) {
19
- const parsed = parseBuildArgs("build", USAGE, args, {}, io);
22
+ const parsed = parseBuildArgs("build", USAGE, args, {
23
+ interaction: { type: "string" },
24
+ }, io);
20
25
  if (parsed.kind === "exit")
21
26
  return parsed.code;
22
- const prepared = await prepareProject(parsed.request, io);
27
+ const applied = await applyInteraction("build", parsed.request, textFlag(parsed.flags, "interaction"), io);
28
+ if (!applied.ok)
29
+ return applied.code;
30
+ const prepared = await prepareProject(applied.request, io);
23
31
  return prepared.ok ? EXIT.OK : prepared.code;
24
32
  },
25
33
  };
@@ -3,21 +3,23 @@ import { validateMusicBed } from "@anvpx/motion-audio";
3
3
  import { AUDIO_DIR_NAME, clipsFromManifest, missingMusic, mixAtDeliveryLevel, parseAudioManifest, placementsFromTimeline, resolveTimeline, validateStoryboardFull, } from "@anvpx/motion-build";
4
4
  import { textFlag, usageError } from "../args.js";
5
5
  import { EXIT } from "../exit-codes.js";
6
+ import { applyInteraction } from "../interaction/document.js";
6
7
  import { readJsonFile } from "../storyboard/load.js";
7
8
  import { runInProject } from "../tooling/session.js";
8
9
  import { DRAFT_FPS, DRAFT_WIDTH, draftExpectation, draftHeight } from "../verify/expectation.js";
9
10
  import { finishRender } from "./finish.js";
10
11
  import { parseBuildArgs, prepareProject } from "./project.js";
11
- const USAGE = `mk draft <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--verify] [--audio <manifest>] [--music <wav>]
12
+ const USAGE = `mk draft <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>] [--verify] [--audio <manifest>] [--music <wav>]
12
13
 
13
14
  Build, then render a fast 960 px wide draft at 15 fps to <out>/draft.mp4.
14
15
  hyperframes only renders at the composition size or larger (--resolution presets start at
15
16
  1080p), so it renders 1080p with --quality draft and ffmpeg downscales with lanczos.
16
17
  Output of the tools: <out>/render-log.txt; provenance: <out>/render-manifest.json.
18
+ --interaction <file> fold a recorded transcript into the draft (see \`mk render --interaction\`).
17
19
  --audio <manifest> voice TimingManifest: mix per-scene wavs (the manifest's
18
20
  sibling audio/ dir, <id>.wav) under the render at absolute
19
21
  starts. Absent means silent video; missing wavs fail instead.
20
- --music <wav> user CC0 music bed: loops to the narration length, ducks under
22
+ --music <wav> user CC0 music bed: loops to the picture length, ducks under
21
23
  narration via sidechaincompress, then joins it. Requires
22
24
  --audio; a missing bed wav fails instead of silence.
23
25
  --verify re-probe draft.mp4 (see \`mk verify\`); exit 5 on FAIL
@@ -103,14 +105,22 @@ async function loadMusic(musicPath, io) {
103
105
  }
104
106
  /** Parses flags and fails fast on bad input or a missing voice wav. */
105
107
  async function resolveDraftPlan(args, io) {
106
- const parsed = parseBuildArgs("draft", USAGE, args, { verify: { type: "boolean" }, audio: { type: "string" }, music: { type: "string" } }, io);
108
+ const parsed = parseBuildArgs("draft", USAGE, args, {
109
+ verify: { type: "boolean" },
110
+ audio: { type: "string" },
111
+ music: { type: "string" },
112
+ interaction: { type: "string" },
113
+ }, io);
107
114
  if (parsed.kind === "exit")
108
115
  return { code: parsed.code };
109
116
  const audioPath = textFlag(parsed.flags, "audio");
110
117
  const musicPath = textFlag(parsed.flags, "music");
118
+ const applied = await applyInteraction("draft", parsed.request, textFlag(parsed.flags, "interaction"), io);
119
+ if (!applied.ok)
120
+ return { code: applied.code };
111
121
  if (musicPath !== undefined && audioPath === undefined) {
112
122
  return {
113
- code: usageError("draft", USAGE, "--music needs --audio: the bed loops to the narration length", io).code,
123
+ code: usageError("draft", USAGE, "--music needs --audio: the bed is mixed under the narration", io).code,
114
124
  };
115
125
  }
116
126
  const narration = audioPath === undefined
@@ -122,16 +132,18 @@ async function resolveDraftPlan(args, io) {
122
132
  if (bedded !== undefined && !bedded.ok)
123
133
  return { code: bedded.code };
124
134
  return {
125
- request: narration?.manifest === undefined
126
- ? parsed.request
127
- : { ...parsed.request, timing: narration.manifest },
135
+ request: {
136
+ ...(narration?.manifest === undefined
137
+ ? applied.request
138
+ : { ...applied.request, timing: narration.manifest }),
139
+ },
128
140
  verify: parsed.flags.verify === true,
129
141
  narration: narration?.clips,
130
142
  music: bedded?.music,
131
143
  };
132
144
  }
133
145
  /** Renders silent full-size video, mixes narration when requested, then downscales. */
134
- async function runDraft(io, outDir, plan) {
146
+ async function runDraft(io, outDir, plan, totalSec) {
135
147
  const full = join(outDir, FULL_SIZE);
136
148
  const mixed = join(outDir, MIXED_SIZE);
137
149
  const draft = join(outDir, DRAFT);
@@ -153,6 +165,9 @@ async function runDraft(io, outDir, plan) {
153
165
  videoIn: full,
154
166
  clips: plan.narration,
155
167
  ...(plan.music === undefined ? {} : { music: plan.music }),
168
+ // The built total is the rendered picture length: the score must reach the
169
+ // last frame, not stop at the last spoken word (same as preview/render).
170
+ durationSec: totalSec,
156
171
  out: mixed,
157
172
  swap: async (from, to) => {
158
173
  await io.host.copyFile(from, to);
@@ -196,7 +211,7 @@ export const makeDraftCommand = (options = {}) => ({
196
211
  const prepared = await prepareProject(request, io);
197
212
  if (!prepared.ok)
198
213
  return prepared.code;
199
- const code = await runDraft(io, prepared.outDir, plan);
214
+ const code = await runDraft(io, prepared.outDir, plan, prepared.total);
200
215
  if (code !== 0)
201
216
  return code;
202
217
  const { total, meta } = prepared;