@anvpx/motion-cli 0.1.94 → 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 (882) 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 +15 -3
  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/doctor/command.js +8 -2
  11. package/dist/integration/interaction.integration.d.ts +1 -0
  12. package/dist/integration/interaction.integration.js +95 -0
  13. package/dist/integration/preview.integration.js +12 -4
  14. package/dist/interaction/command.d.ts +4 -0
  15. package/dist/interaction/command.js +219 -0
  16. package/dist/interaction/document.d.ts +55 -0
  17. package/dist/interaction/document.js +104 -0
  18. package/dist/interaction/driver.d.ts +29 -0
  19. package/dist/interaction/driver.js +278 -0
  20. package/dist/mcp/server.d.ts +12 -5
  21. package/dist/mcp/server.js +41 -19
  22. package/dist/mut-demo/.out/smoke/boot.js +90 -0
  23. package/dist/mut-demo/.out/smoke/runtime/compose.js +43 -0
  24. package/dist/mut-demo/.out/smoke/runtime/easing.js +45 -0
  25. package/dist/mut-demo/.out/smoke/runtime/mount.js +153 -0
  26. package/dist/mut-demo/.out/smoke/runtime/timeline.js +199 -0
  27. package/dist/mut-demo/.out/smoke/scenes/count/scene.js +6 -0
  28. package/dist/mut-demo/.out/smoke/scenes/intro/scene.js +6 -0
  29. package/dist/mut-demo/.out/smoke/scenes/outro/scene.js +6 -0
  30. package/dist/mut-demo/.out/smoke/scenes/path/scene.js +6 -0
  31. package/dist/mut-demo/.out/smoke/scenes/signals/scene.js +6 -0
  32. package/dist/mut-demo/.out/smoke/shared/format.js +59 -0
  33. package/dist/mut-demo/.out/smoke/shared/motion.js +117 -0
  34. package/dist/mut-demo/.out/template-flow/out/project/boot.js +88 -0
  35. package/dist/mut-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  36. package/dist/mut-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  37. package/dist/mut-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  38. package/dist/mut-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  39. package/dist/mut-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  40. package/dist/mut-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  41. package/dist/mut-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  42. package/dist/mut-demo/.out/template-flow/out/project/shared/format.js +59 -0
  43. package/dist/mut-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  44. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  45. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  46. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  47. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  48. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  49. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  50. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  51. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  52. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  53. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  54. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  55. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  56. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  57. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  58. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  59. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  60. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  61. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  62. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  63. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  64. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  65. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  66. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  67. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  68. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  69. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  70. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  71. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  72. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  73. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  74. package/dist/mut-demo/analyze/command.d.ts +2 -0
  75. package/dist/mut-demo/analyze/command.js +190 -0
  76. package/dist/mut-demo/approval/approval.d.ts +43 -0
  77. package/dist/mut-demo/approval/approval.js +155 -0
  78. package/dist/mut-demo/approval/command.d.ts +2 -0
  79. package/dist/mut-demo/approval/command.js +286 -0
  80. package/dist/mut-demo/approval/gate.d.ts +7 -0
  81. package/dist/mut-demo/approval/gate.js +23 -0
  82. package/dist/mut-demo/approval/hash.d.ts +76 -0
  83. package/dist/mut-demo/approval/hash.js +493 -0
  84. package/dist/mut-demo/args.d.ts +30 -0
  85. package/dist/mut-demo/args.js +53 -0
  86. package/dist/mut-demo/assets/command.d.ts +2 -0
  87. package/dist/mut-demo/assets/command.js +165 -0
  88. package/dist/mut-demo/captions/command.d.ts +16 -0
  89. package/dist/mut-demo/captions/command.js +462 -0
  90. package/dist/mut-demo/captions/cues.d.ts +19 -0
  91. package/dist/mut-demo/captions/cues.js +70 -0
  92. package/dist/mut-demo/catalog/command.d.ts +2 -0
  93. package/dist/mut-demo/catalog/command.js +60 -0
  94. package/dist/mut-demo/catalog/format.d.ts +13 -0
  95. package/dist/mut-demo/catalog/format.js +54 -0
  96. package/dist/mut-demo/cli.d.ts +3 -0
  97. package/dist/mut-demo/cli.js +35 -0
  98. package/dist/mut-demo/commands.d.ts +3 -0
  99. package/dist/mut-demo/commands.js +65 -0
  100. package/dist/mut-demo/compare/command.d.ts +4 -0
  101. package/dist/mut-demo/compare/command.js +144 -0
  102. package/dist/mut-demo/contact/argv.d.ts +24 -0
  103. package/dist/mut-demo/contact/argv.js +45 -0
  104. package/dist/mut-demo/contact/command.d.ts +2 -0
  105. package/dist/mut-demo/contact/command.js +79 -0
  106. package/dist/mut-demo/desktop/command.d.ts +21 -0
  107. package/dist/mut-demo/desktop/command.js +120 -0
  108. package/dist/mut-demo/doctor/checks.d.ts +25 -0
  109. package/dist/mut-demo/doctor/checks.js +584 -0
  110. package/dist/mut-demo/doctor/command.d.ts +4 -0
  111. package/dist/mut-demo/doctor/command.js +94 -0
  112. package/dist/mut-demo/doctor/format.d.ts +7 -0
  113. package/dist/mut-demo/doctor/format.js +41 -0
  114. package/dist/mut-demo/doctor/heal.d.ts +14 -0
  115. package/dist/mut-demo/doctor/heal.js +71 -0
  116. package/dist/mut-demo/doctor/pins.d.ts +8 -0
  117. package/dist/mut-demo/doctor/pins.js +28 -0
  118. package/dist/mut-demo/doctor/skills.d.ts +15 -0
  119. package/dist/mut-demo/doctor/skills.js +58 -0
  120. package/dist/mut-demo/doctor/types.d.ts +36 -0
  121. package/dist/mut-demo/doctor/types.js +1 -0
  122. package/dist/mut-demo/doctor/vendored.d.ts +15 -0
  123. package/dist/mut-demo/doctor/vendored.js +90 -0
  124. package/dist/mut-demo/doctor/version.d.ts +8 -0
  125. package/dist/mut-demo/doctor/version.js +11 -0
  126. package/dist/mut-demo/exit-codes.d.ts +16 -0
  127. package/dist/mut-demo/exit-codes.js +15 -0
  128. package/dist/mut-demo/fit/command.d.ts +5 -0
  129. package/dist/mut-demo/fit/command.js +154 -0
  130. package/dist/mut-demo/fit/solve.d.ts +21 -0
  131. package/dist/mut-demo/fit/solve.js +80 -0
  132. package/dist/mut-demo/fit/target.d.ts +18 -0
  133. package/dist/mut-demo/fit/target.js +47 -0
  134. package/dist/mut-demo/generate3d/command.d.ts +3 -0
  135. package/dist/mut-demo/generate3d/command.js +38 -0
  136. package/dist/mut-demo/generate3d/run.d.ts +39 -0
  137. package/dist/mut-demo/generate3d/run.js +77 -0
  138. package/dist/mut-demo/icon/command.d.ts +2 -0
  139. package/dist/mut-demo/icon/command.js +113 -0
  140. package/dist/mut-demo/index.d.ts +18 -0
  141. package/dist/mut-demo/index.js +16 -0
  142. package/dist/mut-demo/install-mk.d.ts +31 -0
  143. package/dist/mut-demo/install-mk.js +168 -0
  144. package/dist/mut-demo/integration/interaction.integration.d.ts +1 -0
  145. package/dist/mut-demo/integration/interaction.integration.js +95 -0
  146. package/dist/mut-demo/integration/preview.integration.d.ts +1 -0
  147. package/dist/mut-demo/integration/preview.integration.js +61 -0
  148. package/dist/mut-demo/integration/smoke.integration.d.ts +1 -0
  149. package/dist/mut-demo/integration/smoke.integration.js +91 -0
  150. package/dist/mut-demo/interaction/command.d.ts +4 -0
  151. package/dist/mut-demo/interaction/command.js +219 -0
  152. package/dist/mut-demo/interaction/document.d.ts +55 -0
  153. package/dist/mut-demo/interaction/document.js +104 -0
  154. package/dist/mut-demo/interaction/driver.d.ts +29 -0
  155. package/dist/mut-demo/interaction/driver.js +278 -0
  156. package/dist/mut-demo/main.d.ts +2 -0
  157. package/dist/mut-demo/main.js +4 -0
  158. package/dist/mut-demo/mcp/server.d.ts +89 -0
  159. package/dist/mut-demo/mcp/server.js +479 -0
  160. package/dist/mut-demo/node-io.d.ts +14 -0
  161. package/dist/mut-demo/node-io.js +153 -0
  162. package/dist/mut-demo/optimize/command.d.ts +12 -0
  163. package/dist/mut-demo/optimize/command.js +110 -0
  164. package/dist/mut-demo/packs/command.d.ts +2 -0
  165. package/dist/mut-demo/packs/command.js +109 -0
  166. package/dist/mut-demo/parent-demo/.out/smoke/boot.js +90 -0
  167. package/dist/mut-demo/parent-demo/.out/smoke/runtime/compose.js +43 -0
  168. package/dist/mut-demo/parent-demo/.out/smoke/runtime/easing.js +45 -0
  169. package/dist/mut-demo/parent-demo/.out/smoke/runtime/mount.js +153 -0
  170. package/dist/mut-demo/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  171. package/dist/mut-demo/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  172. package/dist/mut-demo/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  173. package/dist/mut-demo/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  174. package/dist/mut-demo/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  175. package/dist/mut-demo/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  176. package/dist/mut-demo/parent-demo/.out/smoke/shared/format.js +59 -0
  177. package/dist/mut-demo/parent-demo/.out/smoke/shared/motion.js +117 -0
  178. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  179. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  180. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  181. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  182. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  183. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  184. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  185. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  186. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  187. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  188. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  189. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  190. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  191. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  192. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  193. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  194. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  195. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  196. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  197. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  198. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  199. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  200. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  201. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  202. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  203. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  204. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  205. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  206. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  207. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  208. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  209. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  210. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  211. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  212. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  213. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  214. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  215. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  216. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  217. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  218. package/dist/mut-demo/parent-demo/analyze/command.d.ts +2 -0
  219. package/dist/mut-demo/parent-demo/analyze/command.js +190 -0
  220. package/dist/mut-demo/parent-demo/approval/approval.d.ts +43 -0
  221. package/dist/mut-demo/parent-demo/approval/approval.js +155 -0
  222. package/dist/mut-demo/parent-demo/approval/command.d.ts +2 -0
  223. package/dist/mut-demo/parent-demo/approval/command.js +286 -0
  224. package/dist/mut-demo/parent-demo/approval/gate.d.ts +7 -0
  225. package/dist/mut-demo/parent-demo/approval/gate.js +23 -0
  226. package/dist/mut-demo/parent-demo/approval/hash.d.ts +76 -0
  227. package/dist/mut-demo/parent-demo/approval/hash.js +493 -0
  228. package/dist/mut-demo/parent-demo/args.d.ts +30 -0
  229. package/dist/mut-demo/parent-demo/args.js +53 -0
  230. package/dist/mut-demo/parent-demo/assets/command.d.ts +2 -0
  231. package/dist/mut-demo/parent-demo/assets/command.js +165 -0
  232. package/dist/mut-demo/parent-demo/captions/command.d.ts +16 -0
  233. package/dist/mut-demo/parent-demo/captions/command.js +462 -0
  234. package/dist/mut-demo/parent-demo/captions/cues.d.ts +19 -0
  235. package/dist/mut-demo/parent-demo/captions/cues.js +70 -0
  236. package/dist/mut-demo/parent-demo/catalog/command.d.ts +2 -0
  237. package/dist/mut-demo/parent-demo/catalog/command.js +60 -0
  238. package/dist/mut-demo/parent-demo/catalog/format.d.ts +13 -0
  239. package/dist/mut-demo/parent-demo/catalog/format.js +54 -0
  240. package/dist/mut-demo/parent-demo/cli.d.ts +3 -0
  241. package/dist/mut-demo/parent-demo/cli.js +35 -0
  242. package/dist/mut-demo/parent-demo/commands.d.ts +3 -0
  243. package/dist/mut-demo/parent-demo/commands.js +65 -0
  244. package/dist/mut-demo/parent-demo/compare/command.d.ts +4 -0
  245. package/dist/mut-demo/parent-demo/compare/command.js +144 -0
  246. package/dist/mut-demo/parent-demo/contact/argv.d.ts +24 -0
  247. package/dist/mut-demo/parent-demo/contact/argv.js +45 -0
  248. package/dist/mut-demo/parent-demo/contact/command.d.ts +2 -0
  249. package/dist/mut-demo/parent-demo/contact/command.js +79 -0
  250. package/dist/mut-demo/parent-demo/desktop/command.d.ts +21 -0
  251. package/dist/mut-demo/parent-demo/desktop/command.js +120 -0
  252. package/dist/mut-demo/parent-demo/doctor/checks.d.ts +25 -0
  253. package/dist/mut-demo/parent-demo/doctor/checks.js +584 -0
  254. package/dist/mut-demo/parent-demo/doctor/command.d.ts +4 -0
  255. package/dist/mut-demo/parent-demo/doctor/command.js +94 -0
  256. package/dist/mut-demo/parent-demo/doctor/format.d.ts +7 -0
  257. package/dist/mut-demo/parent-demo/doctor/format.js +41 -0
  258. package/dist/mut-demo/parent-demo/doctor/heal.d.ts +14 -0
  259. package/dist/mut-demo/parent-demo/doctor/heal.js +71 -0
  260. package/dist/mut-demo/parent-demo/doctor/pins.d.ts +8 -0
  261. package/dist/mut-demo/parent-demo/doctor/pins.js +28 -0
  262. package/dist/mut-demo/parent-demo/doctor/skills.d.ts +15 -0
  263. package/dist/mut-demo/parent-demo/doctor/skills.js +58 -0
  264. package/dist/mut-demo/parent-demo/doctor/types.d.ts +36 -0
  265. package/dist/mut-demo/parent-demo/doctor/types.js +1 -0
  266. package/dist/mut-demo/parent-demo/doctor/vendored.d.ts +15 -0
  267. package/dist/mut-demo/parent-demo/doctor/vendored.js +90 -0
  268. package/dist/mut-demo/parent-demo/doctor/version.d.ts +8 -0
  269. package/dist/mut-demo/parent-demo/doctor/version.js +11 -0
  270. package/dist/mut-demo/parent-demo/exit-codes.d.ts +16 -0
  271. package/dist/mut-demo/parent-demo/exit-codes.js +15 -0
  272. package/dist/mut-demo/parent-demo/fit/command.d.ts +5 -0
  273. package/dist/mut-demo/parent-demo/fit/command.js +154 -0
  274. package/dist/mut-demo/parent-demo/fit/solve.d.ts +21 -0
  275. package/dist/mut-demo/parent-demo/fit/solve.js +80 -0
  276. package/dist/mut-demo/parent-demo/fit/target.d.ts +18 -0
  277. package/dist/mut-demo/parent-demo/fit/target.js +47 -0
  278. package/dist/mut-demo/parent-demo/generate3d/command.d.ts +3 -0
  279. package/dist/mut-demo/parent-demo/generate3d/command.js +38 -0
  280. package/dist/mut-demo/parent-demo/generate3d/run.d.ts +39 -0
  281. package/dist/mut-demo/parent-demo/generate3d/run.js +77 -0
  282. package/dist/mut-demo/parent-demo/icon/command.d.ts +2 -0
  283. package/dist/mut-demo/parent-demo/icon/command.js +113 -0
  284. package/dist/mut-demo/parent-demo/index.d.ts +18 -0
  285. package/dist/mut-demo/parent-demo/index.js +16 -0
  286. package/dist/mut-demo/parent-demo/install-mk.d.ts +31 -0
  287. package/dist/mut-demo/parent-demo/install-mk.js +168 -0
  288. package/dist/mut-demo/parent-demo/integration/interaction.integration.d.ts +1 -0
  289. package/dist/mut-demo/parent-demo/integration/interaction.integration.js +95 -0
  290. package/dist/mut-demo/parent-demo/integration/preview.integration.d.ts +1 -0
  291. package/dist/mut-demo/parent-demo/integration/preview.integration.js +61 -0
  292. package/dist/mut-demo/parent-demo/integration/smoke.integration.d.ts +1 -0
  293. package/dist/mut-demo/parent-demo/integration/smoke.integration.js +91 -0
  294. package/dist/mut-demo/parent-demo/interaction/command.d.ts +4 -0
  295. package/dist/mut-demo/parent-demo/interaction/command.js +219 -0
  296. package/dist/mut-demo/parent-demo/interaction/document.d.ts +55 -0
  297. package/dist/mut-demo/parent-demo/interaction/document.js +104 -0
  298. package/dist/mut-demo/parent-demo/interaction/driver.d.ts +29 -0
  299. package/dist/mut-demo/parent-demo/interaction/driver.js +278 -0
  300. package/dist/mut-demo/parent-demo/main.d.ts +2 -0
  301. package/dist/mut-demo/parent-demo/main.js +4 -0
  302. package/dist/mut-demo/parent-demo/mcp/server.d.ts +89 -0
  303. package/dist/mut-demo/parent-demo/mcp/server.js +479 -0
  304. package/dist/mut-demo/parent-demo/node-io.d.ts +14 -0
  305. package/dist/mut-demo/parent-demo/node-io.js +153 -0
  306. package/dist/mut-demo/parent-demo/optimize/command.d.ts +12 -0
  307. package/dist/mut-demo/parent-demo/optimize/command.js +110 -0
  308. package/dist/mut-demo/parent-demo/packs/command.d.ts +2 -0
  309. package/dist/mut-demo/parent-demo/packs/command.js +109 -0
  310. package/dist/mut-demo/parent-demo/patch/apply.d.ts +36 -0
  311. package/dist/mut-demo/parent-demo/patch/apply.js +186 -0
  312. package/dist/mut-demo/parent-demo/patch/command.d.ts +2 -0
  313. package/dist/mut-demo/parent-demo/patch/command.js +92 -0
  314. package/dist/mut-demo/parent-demo/plugin/install.d.ts +40 -0
  315. package/dist/mut-demo/parent-demo/plugin/install.js +170 -0
  316. package/dist/mut-demo/parent-demo/preview/command.d.ts +10 -0
  317. package/dist/mut-demo/parent-demo/preview/command.js +945 -0
  318. package/dist/mut-demo/parent-demo/preview/manifest.d.ts +105 -0
  319. package/dist/mut-demo/parent-demo/preview/manifest.js +19 -0
  320. package/dist/mut-demo/parent-demo/preview/pack.d.ts +24 -0
  321. package/dist/mut-demo/parent-demo/preview/pack.js +53 -0
  322. package/dist/mut-demo/parent-demo/preview/plan.d.ts +61 -0
  323. package/dist/mut-demo/parent-demo/preview/plan.js +205 -0
  324. package/dist/mut-demo/parent-demo/preview/provenance.d.ts +23 -0
  325. package/dist/mut-demo/parent-demo/preview/provenance.js +38 -0
  326. package/dist/mut-demo/parent-demo/publish/command.d.ts +2 -0
  327. package/dist/mut-demo/parent-demo/publish/command.js +230 -0
  328. package/dist/mut-demo/parent-demo/publish/player.d.ts +61 -0
  329. package/dist/mut-demo/parent-demo/publish/player.js +728 -0
  330. package/dist/mut-demo/parent-demo/publish/static.d.ts +16 -0
  331. package/dist/mut-demo/parent-demo/publish/static.js +78 -0
  332. package/dist/mut-demo/parent-demo/qc.d.ts +2 -0
  333. package/dist/mut-demo/parent-demo/qc.js +192 -0
  334. package/dist/mut-demo/parent-demo/scene/author.d.ts +16 -0
  335. package/dist/mut-demo/parent-demo/scene/author.js +519 -0
  336. package/dist/mut-demo/parent-demo/scene/command.d.ts +2 -0
  337. package/dist/mut-demo/parent-demo/scene/command.js +110 -0
  338. package/dist/mut-demo/parent-demo/scene/ops.d.ts +23 -0
  339. package/dist/mut-demo/parent-demo/scene/ops.js +151 -0
  340. package/dist/mut-demo/parent-demo/state/command.d.ts +2 -0
  341. package/dist/mut-demo/parent-demo/state/command.js +128 -0
  342. package/dist/mut-demo/parent-demo/state/evidence.d.ts +73 -0
  343. package/dist/mut-demo/parent-demo/state/evidence.js +1 -0
  344. package/dist/mut-demo/parent-demo/storyboard/check.d.ts +21 -0
  345. package/dist/mut-demo/parent-demo/storyboard/check.js +39 -0
  346. package/dist/mut-demo/parent-demo/storyboard/containment.d.ts +24 -0
  347. package/dist/mut-demo/parent-demo/storyboard/containment.js +43 -0
  348. package/dist/mut-demo/parent-demo/storyboard/custom.d.ts +15 -0
  349. package/dist/mut-demo/parent-demo/storyboard/custom.js +133 -0
  350. package/dist/mut-demo/parent-demo/storyboard/edit.d.ts +19 -0
  351. package/dist/mut-demo/parent-demo/storyboard/edit.js +39 -0
  352. package/dist/mut-demo/parent-demo/storyboard/load.d.ts +11 -0
  353. package/dist/mut-demo/parent-demo/storyboard/load.js +52 -0
  354. package/dist/mut-demo/parent-demo/storyboard/report.d.ts +5 -0
  355. package/dist/mut-demo/parent-demo/storyboard/report.js +8 -0
  356. package/dist/mut-demo/parent-demo/template/coerce.d.ts +6 -0
  357. package/dist/mut-demo/parent-demo/template/coerce.js +44 -0
  358. package/dist/mut-demo/parent-demo/template/command.d.ts +5 -0
  359. package/dist/mut-demo/parent-demo/template/command.js +163 -0
  360. package/dist/mut-demo/parent-demo/template/env.d.ts +38 -0
  361. package/dist/mut-demo/parent-demo/template/env.js +40 -0
  362. package/dist/mut-demo/parent-demo/template/fork.d.ts +8 -0
  363. package/dist/mut-demo/parent-demo/template/fork.js +156 -0
  364. package/dist/mut-demo/parent-demo/template/format.d.ts +21 -0
  365. package/dist/mut-demo/parent-demo/template/format.js +177 -0
  366. package/dist/mut-demo/parent-demo/template/list.d.ts +27 -0
  367. package/dist/mut-demo/parent-demo/template/list.js +171 -0
  368. package/dist/mut-demo/parent-demo/template/new.d.ts +6 -0
  369. package/dist/mut-demo/parent-demo/template/new.js +335 -0
  370. package/dist/mut-demo/parent-demo/testing/env.d.ts +9 -0
  371. package/dist/mut-demo/parent-demo/testing/env.js +49 -0
  372. package/dist/mut-demo/parent-demo/testing/fakes.d.ts +39 -0
  373. package/dist/mut-demo/parent-demo/testing/fakes.js +100 -0
  374. package/dist/mut-demo/parent-demo/testing/fixtures.d.ts +8 -0
  375. package/dist/mut-demo/parent-demo/testing/fixtures.js +6 -0
  376. package/dist/mut-demo/parent-demo/testing/probe.d.ts +15 -0
  377. package/dist/mut-demo/parent-demo/testing/probe.js +20 -0
  378. package/dist/mut-demo/parent-demo/testing/project.d.ts +22 -0
  379. package/dist/mut-demo/parent-demo/testing/project.js +26 -0
  380. package/dist/mut-demo/parent-demo/tooling/session.d.ts +40 -0
  381. package/dist/mut-demo/parent-demo/tooling/session.js +106 -0
  382. package/dist/mut-demo/parent-demo/types.d.ts +64 -0
  383. package/dist/mut-demo/parent-demo/types.js +1 -0
  384. package/dist/mut-demo/parent-demo/verify/audio-loudness.d.ts +81 -0
  385. package/dist/mut-demo/parent-demo/verify/audio-loudness.js +306 -0
  386. package/dist/mut-demo/parent-demo/verify/caption.d.ts +23 -0
  387. package/dist/mut-demo/parent-demo/verify/caption.fixtures.d.ts +148 -0
  388. package/dist/mut-demo/parent-demo/verify/caption.fixtures.js +66 -0
  389. package/dist/mut-demo/parent-demo/verify/caption.js +105 -0
  390. package/dist/mut-demo/parent-demo/verify/command.d.ts +2 -0
  391. package/dist/mut-demo/parent-demo/verify/command.js +190 -0
  392. package/dist/mut-demo/parent-demo/verify/determinism.d.ts +30 -0
  393. package/dist/mut-demo/parent-demo/verify/determinism.js +59 -0
  394. package/dist/mut-demo/parent-demo/verify/expectation.d.ts +15 -0
  395. package/dist/mut-demo/parent-demo/verify/expectation.js +19 -0
  396. package/dist/mut-demo/parent-demo/verify/flash.d.ts +55 -0
  397. package/dist/mut-demo/parent-demo/verify/flash.js +147 -0
  398. package/dist/mut-demo/parent-demo/verify/media-events.d.ts +61 -0
  399. package/dist/mut-demo/parent-demo/verify/media-events.js +174 -0
  400. package/dist/mut-demo/parent-demo/verify/motion-coherence.d.ts +99 -0
  401. package/dist/mut-demo/parent-demo/verify/motion-coherence.js +274 -0
  402. package/dist/mut-demo/parent-demo/verify/platform.d.ts +33 -0
  403. package/dist/mut-demo/parent-demo/verify/platform.js +59 -0
  404. package/dist/mut-demo/parent-demo/verify/probe.d.ts +14 -0
  405. package/dist/mut-demo/parent-demo/verify/probe.js +23 -0
  406. package/dist/mut-demo/parent-demo/verify/report.d.ts +15 -0
  407. package/dist/mut-demo/parent-demo/verify/report.js +45 -0
  408. package/dist/mut-demo/parent-demo/verify/run.d.ts +32 -0
  409. package/dist/mut-demo/parent-demo/verify/run.js +64 -0
  410. package/dist/mut-demo/parent-demo/version/command.d.ts +5 -0
  411. package/dist/mut-demo/parent-demo/version/command.js +52 -0
  412. package/dist/mut-demo/parent-demo/voice/command.d.ts +3 -0
  413. package/dist/mut-demo/parent-demo/voice/command.js +77 -0
  414. package/dist/mut-demo/parent-demo/voice/manifest.d.ts +33 -0
  415. package/dist/mut-demo/parent-demo/voice/manifest.js +69 -0
  416. package/dist/mut-demo/parent-demo/voice/portability.d.ts +27 -0
  417. package/dist/mut-demo/parent-demo/voice/portability.js +41 -0
  418. package/dist/mut-demo/parent-demo/voice/run.d.ts +29 -0
  419. package/dist/mut-demo/parent-demo/voice/run.js +224 -0
  420. package/dist/mut-demo/parent-demo/workflow/build.d.ts +2 -0
  421. package/dist/mut-demo/parent-demo/workflow/build.js +33 -0
  422. package/dist/mut-demo/parent-demo/workflow/draft.d.ts +9 -0
  423. package/dist/mut-demo/parent-demo/workflow/draft.js +230 -0
  424. package/dist/mut-demo/parent-demo/workflow/finish.d.ts +23 -0
  425. package/dist/mut-demo/parent-demo/workflow/finish.js +28 -0
  426. package/dist/mut-demo/parent-demo/workflow/project.d.ts +82 -0
  427. package/dist/mut-demo/parent-demo/workflow/project.js +224 -0
  428. package/dist/mut-demo/parent-demo/workflow/provenance.d.ts +18 -0
  429. package/dist/mut-demo/parent-demo/workflow/provenance.js +36 -0
  430. package/dist/mut-demo/parent-demo/workflow/render.d.ts +78 -0
  431. package/dist/mut-demo/parent-demo/workflow/render.js +922 -0
  432. package/dist/mut-demo/parent-demo/workflow/still.d.ts +5 -0
  433. package/dist/mut-demo/parent-demo/workflow/still.js +79 -0
  434. package/dist/mut-demo/parent-demo/workflow/validate.d.ts +2 -0
  435. package/dist/mut-demo/parent-demo/workflow/validate.js +49 -0
  436. package/dist/mut-demo/patch/apply.d.ts +36 -0
  437. package/dist/mut-demo/patch/apply.js +186 -0
  438. package/dist/mut-demo/patch/command.d.ts +2 -0
  439. package/dist/mut-demo/patch/command.js +92 -0
  440. package/dist/mut-demo/plugin/install.d.ts +40 -0
  441. package/dist/mut-demo/plugin/install.js +170 -0
  442. package/dist/mut-demo/preview/command.d.ts +10 -0
  443. package/dist/mut-demo/preview/command.js +945 -0
  444. package/dist/mut-demo/preview/manifest.d.ts +105 -0
  445. package/dist/mut-demo/preview/manifest.js +19 -0
  446. package/dist/mut-demo/preview/pack.d.ts +24 -0
  447. package/dist/mut-demo/preview/pack.js +53 -0
  448. package/dist/mut-demo/preview/plan.d.ts +61 -0
  449. package/dist/mut-demo/preview/plan.js +205 -0
  450. package/dist/mut-demo/preview/provenance.d.ts +23 -0
  451. package/dist/mut-demo/preview/provenance.js +38 -0
  452. package/dist/mut-demo/publish/command.d.ts +2 -0
  453. package/dist/mut-demo/publish/command.js +230 -0
  454. package/dist/mut-demo/publish/player.d.ts +61 -0
  455. package/dist/mut-demo/publish/player.js +728 -0
  456. package/dist/mut-demo/publish/static.d.ts +16 -0
  457. package/dist/mut-demo/publish/static.js +78 -0
  458. package/dist/mut-demo/qc.d.ts +2 -0
  459. package/dist/mut-demo/qc.js +192 -0
  460. package/dist/mut-demo/scene/author.d.ts +16 -0
  461. package/dist/mut-demo/scene/author.js +519 -0
  462. package/dist/mut-demo/scene/command.d.ts +2 -0
  463. package/dist/mut-demo/scene/command.js +110 -0
  464. package/dist/mut-demo/scene/ops.d.ts +23 -0
  465. package/dist/mut-demo/scene/ops.js +151 -0
  466. package/dist/mut-demo/state/command.d.ts +2 -0
  467. package/dist/mut-demo/state/command.js +128 -0
  468. package/dist/mut-demo/state/evidence.d.ts +73 -0
  469. package/dist/mut-demo/state/evidence.js +1 -0
  470. package/dist/mut-demo/storyboard/check.d.ts +21 -0
  471. package/dist/mut-demo/storyboard/check.js +39 -0
  472. package/dist/mut-demo/storyboard/containment.d.ts +24 -0
  473. package/dist/mut-demo/storyboard/containment.js +43 -0
  474. package/dist/mut-demo/storyboard/custom.d.ts +15 -0
  475. package/dist/mut-demo/storyboard/custom.js +133 -0
  476. package/dist/mut-demo/storyboard/edit.d.ts +19 -0
  477. package/dist/mut-demo/storyboard/edit.js +39 -0
  478. package/dist/mut-demo/storyboard/load.d.ts +11 -0
  479. package/dist/mut-demo/storyboard/load.js +52 -0
  480. package/dist/mut-demo/storyboard/report.d.ts +5 -0
  481. package/dist/mut-demo/storyboard/report.js +8 -0
  482. package/dist/mut-demo/template/coerce.d.ts +6 -0
  483. package/dist/mut-demo/template/coerce.js +44 -0
  484. package/dist/mut-demo/template/command.d.ts +5 -0
  485. package/dist/mut-demo/template/command.js +163 -0
  486. package/dist/mut-demo/template/env.d.ts +38 -0
  487. package/dist/mut-demo/template/env.js +40 -0
  488. package/dist/mut-demo/template/fork.d.ts +8 -0
  489. package/dist/mut-demo/template/fork.js +156 -0
  490. package/dist/mut-demo/template/format.d.ts +21 -0
  491. package/dist/mut-demo/template/format.js +177 -0
  492. package/dist/mut-demo/template/list.d.ts +27 -0
  493. package/dist/mut-demo/template/list.js +171 -0
  494. package/dist/mut-demo/template/new.d.ts +6 -0
  495. package/dist/mut-demo/template/new.js +335 -0
  496. package/dist/mut-demo/testing/env.d.ts +9 -0
  497. package/dist/mut-demo/testing/env.js +49 -0
  498. package/dist/mut-demo/testing/fakes.d.ts +39 -0
  499. package/dist/mut-demo/testing/fakes.js +100 -0
  500. package/dist/mut-demo/testing/fixtures.d.ts +8 -0
  501. package/dist/mut-demo/testing/fixtures.js +6 -0
  502. package/dist/mut-demo/testing/probe.d.ts +15 -0
  503. package/dist/mut-demo/testing/probe.js +20 -0
  504. package/dist/mut-demo/testing/project.d.ts +22 -0
  505. package/dist/mut-demo/testing/project.js +26 -0
  506. package/dist/mut-demo/tooling/session.d.ts +40 -0
  507. package/dist/mut-demo/tooling/session.js +106 -0
  508. package/dist/mut-demo/types.d.ts +64 -0
  509. package/dist/mut-demo/types.js +1 -0
  510. package/dist/mut-demo/verify/audio-loudness.d.ts +81 -0
  511. package/dist/mut-demo/verify/audio-loudness.js +306 -0
  512. package/dist/mut-demo/verify/caption.d.ts +23 -0
  513. package/dist/mut-demo/verify/caption.fixtures.d.ts +148 -0
  514. package/dist/mut-demo/verify/caption.fixtures.js +66 -0
  515. package/dist/mut-demo/verify/caption.js +105 -0
  516. package/dist/mut-demo/verify/command.d.ts +2 -0
  517. package/dist/mut-demo/verify/command.js +190 -0
  518. package/dist/mut-demo/verify/determinism.d.ts +30 -0
  519. package/dist/mut-demo/verify/determinism.js +59 -0
  520. package/dist/mut-demo/verify/expectation.d.ts +15 -0
  521. package/dist/mut-demo/verify/expectation.js +19 -0
  522. package/dist/mut-demo/verify/flash.d.ts +55 -0
  523. package/dist/mut-demo/verify/flash.js +147 -0
  524. package/dist/mut-demo/verify/media-events.d.ts +61 -0
  525. package/dist/mut-demo/verify/media-events.js +174 -0
  526. package/dist/mut-demo/verify/motion-coherence.d.ts +99 -0
  527. package/dist/mut-demo/verify/motion-coherence.js +274 -0
  528. package/dist/mut-demo/verify/platform.d.ts +33 -0
  529. package/dist/mut-demo/verify/platform.js +59 -0
  530. package/dist/mut-demo/verify/probe.d.ts +14 -0
  531. package/dist/mut-demo/verify/probe.js +23 -0
  532. package/dist/mut-demo/verify/report.d.ts +15 -0
  533. package/dist/mut-demo/verify/report.js +45 -0
  534. package/dist/mut-demo/verify/run.d.ts +32 -0
  535. package/dist/mut-demo/verify/run.js +64 -0
  536. package/dist/mut-demo/version/command.d.ts +5 -0
  537. package/dist/mut-demo/version/command.js +52 -0
  538. package/dist/mut-demo/voice/command.d.ts +3 -0
  539. package/dist/mut-demo/voice/command.js +77 -0
  540. package/dist/mut-demo/voice/manifest.d.ts +33 -0
  541. package/dist/mut-demo/voice/manifest.js +69 -0
  542. package/dist/mut-demo/voice/portability.d.ts +27 -0
  543. package/dist/mut-demo/voice/portability.js +41 -0
  544. package/dist/mut-demo/voice/run.d.ts +29 -0
  545. package/dist/mut-demo/voice/run.js +224 -0
  546. package/dist/mut-demo/workflow/build.d.ts +2 -0
  547. package/dist/mut-demo/workflow/build.js +33 -0
  548. package/dist/mut-demo/workflow/draft.d.ts +9 -0
  549. package/dist/mut-demo/workflow/draft.js +230 -0
  550. package/dist/mut-demo/workflow/finish.d.ts +23 -0
  551. package/dist/mut-demo/workflow/finish.js +28 -0
  552. package/dist/mut-demo/workflow/project.d.ts +82 -0
  553. package/dist/mut-demo/workflow/project.js +224 -0
  554. package/dist/mut-demo/workflow/provenance.d.ts +18 -0
  555. package/dist/mut-demo/workflow/provenance.js +36 -0
  556. package/dist/mut-demo/workflow/render.d.ts +78 -0
  557. package/dist/mut-demo/workflow/render.js +922 -0
  558. package/dist/mut-demo/workflow/still.d.ts +5 -0
  559. package/dist/mut-demo/workflow/still.js +79 -0
  560. package/dist/mut-demo/workflow/validate.d.ts +2 -0
  561. package/dist/mut-demo/workflow/validate.js +49 -0
  562. package/dist/node-io.js +1 -0
  563. package/dist/parent-demo/.out/smoke/boot.js +90 -0
  564. package/dist/parent-demo/.out/smoke/runtime/compose.js +43 -0
  565. package/dist/parent-demo/.out/smoke/runtime/easing.js +45 -0
  566. package/dist/parent-demo/.out/smoke/runtime/mount.js +153 -0
  567. package/dist/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  568. package/dist/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  569. package/dist/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  570. package/dist/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  571. package/dist/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  572. package/dist/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  573. package/dist/parent-demo/.out/smoke/shared/format.js +59 -0
  574. package/dist/parent-demo/.out/smoke/shared/motion.js +117 -0
  575. package/dist/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  576. package/dist/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  577. package/dist/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  578. package/dist/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  579. package/dist/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  580. package/dist/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  581. package/dist/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  582. package/dist/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  583. package/dist/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  584. package/dist/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  585. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  586. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  587. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  588. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  589. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  590. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  591. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  592. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  593. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  594. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  595. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  596. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  597. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  598. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  599. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  600. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  601. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  602. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  603. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  604. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  605. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  606. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  607. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  608. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  609. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  610. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  611. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  612. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  613. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  614. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  615. package/dist/parent-demo/analyze/command.d.ts +2 -0
  616. package/dist/parent-demo/analyze/command.js +190 -0
  617. package/dist/parent-demo/approval/approval.d.ts +43 -0
  618. package/dist/parent-demo/approval/approval.js +155 -0
  619. package/dist/parent-demo/approval/command.d.ts +2 -0
  620. package/dist/parent-demo/approval/command.js +286 -0
  621. package/dist/parent-demo/approval/gate.d.ts +7 -0
  622. package/dist/parent-demo/approval/gate.js +23 -0
  623. package/dist/parent-demo/approval/hash.d.ts +76 -0
  624. package/dist/parent-demo/approval/hash.js +493 -0
  625. package/dist/parent-demo/args.d.ts +30 -0
  626. package/dist/parent-demo/args.js +53 -0
  627. package/dist/parent-demo/assets/command.d.ts +2 -0
  628. package/dist/parent-demo/assets/command.js +165 -0
  629. package/dist/parent-demo/captions/command.d.ts +16 -0
  630. package/dist/parent-demo/captions/command.js +462 -0
  631. package/dist/parent-demo/captions/cues.d.ts +19 -0
  632. package/dist/parent-demo/captions/cues.js +70 -0
  633. package/dist/parent-demo/catalog/command.d.ts +2 -0
  634. package/dist/parent-demo/catalog/command.js +60 -0
  635. package/dist/parent-demo/catalog/format.d.ts +13 -0
  636. package/dist/parent-demo/catalog/format.js +54 -0
  637. package/dist/parent-demo/cli.d.ts +3 -0
  638. package/dist/parent-demo/cli.js +35 -0
  639. package/dist/parent-demo/commands.d.ts +3 -0
  640. package/dist/parent-demo/commands.js +65 -0
  641. package/dist/parent-demo/compare/command.d.ts +4 -0
  642. package/dist/parent-demo/compare/command.js +144 -0
  643. package/dist/parent-demo/contact/argv.d.ts +24 -0
  644. package/dist/parent-demo/contact/argv.js +45 -0
  645. package/dist/parent-demo/contact/command.d.ts +2 -0
  646. package/dist/parent-demo/contact/command.js +79 -0
  647. package/dist/parent-demo/desktop/command.d.ts +21 -0
  648. package/dist/parent-demo/desktop/command.js +120 -0
  649. package/dist/parent-demo/doctor/checks.d.ts +25 -0
  650. package/dist/parent-demo/doctor/checks.js +584 -0
  651. package/dist/parent-demo/doctor/command.d.ts +4 -0
  652. package/dist/parent-demo/doctor/command.js +94 -0
  653. package/dist/parent-demo/doctor/format.d.ts +7 -0
  654. package/dist/parent-demo/doctor/format.js +41 -0
  655. package/dist/parent-demo/doctor/heal.d.ts +14 -0
  656. package/dist/parent-demo/doctor/heal.js +71 -0
  657. package/dist/parent-demo/doctor/pins.d.ts +8 -0
  658. package/dist/parent-demo/doctor/pins.js +28 -0
  659. package/dist/parent-demo/doctor/skills.d.ts +15 -0
  660. package/dist/parent-demo/doctor/skills.js +58 -0
  661. package/dist/parent-demo/doctor/types.d.ts +36 -0
  662. package/dist/parent-demo/doctor/types.js +1 -0
  663. package/dist/parent-demo/doctor/vendored.d.ts +15 -0
  664. package/dist/parent-demo/doctor/vendored.js +90 -0
  665. package/dist/parent-demo/doctor/version.d.ts +8 -0
  666. package/dist/parent-demo/doctor/version.js +11 -0
  667. package/dist/parent-demo/exit-codes.d.ts +16 -0
  668. package/dist/parent-demo/exit-codes.js +15 -0
  669. package/dist/parent-demo/fit/command.d.ts +5 -0
  670. package/dist/parent-demo/fit/command.js +154 -0
  671. package/dist/parent-demo/fit/solve.d.ts +21 -0
  672. package/dist/parent-demo/fit/solve.js +80 -0
  673. package/dist/parent-demo/fit/target.d.ts +18 -0
  674. package/dist/parent-demo/fit/target.js +47 -0
  675. package/dist/parent-demo/generate3d/command.d.ts +3 -0
  676. package/dist/parent-demo/generate3d/command.js +38 -0
  677. package/dist/parent-demo/generate3d/run.d.ts +39 -0
  678. package/dist/parent-demo/generate3d/run.js +77 -0
  679. package/dist/parent-demo/icon/command.d.ts +2 -0
  680. package/dist/parent-demo/icon/command.js +113 -0
  681. package/dist/parent-demo/index.d.ts +18 -0
  682. package/dist/parent-demo/index.js +16 -0
  683. package/dist/parent-demo/install-mk.d.ts +31 -0
  684. package/dist/parent-demo/install-mk.js +168 -0
  685. package/dist/parent-demo/integration/interaction.integration.d.ts +1 -0
  686. package/dist/parent-demo/integration/interaction.integration.js +95 -0
  687. package/dist/parent-demo/integration/preview.integration.d.ts +1 -0
  688. package/dist/parent-demo/integration/preview.integration.js +61 -0
  689. package/dist/parent-demo/integration/smoke.integration.d.ts +1 -0
  690. package/dist/parent-demo/integration/smoke.integration.js +91 -0
  691. package/dist/parent-demo/interaction/command.d.ts +4 -0
  692. package/dist/parent-demo/interaction/command.js +219 -0
  693. package/dist/parent-demo/interaction/document.d.ts +55 -0
  694. package/dist/parent-demo/interaction/document.js +104 -0
  695. package/dist/parent-demo/interaction/driver.d.ts +29 -0
  696. package/dist/parent-demo/interaction/driver.js +278 -0
  697. package/dist/parent-demo/main.d.ts +2 -0
  698. package/dist/parent-demo/main.js +4 -0
  699. package/dist/parent-demo/mcp/server.d.ts +89 -0
  700. package/dist/parent-demo/mcp/server.js +479 -0
  701. package/dist/parent-demo/node-io.d.ts +14 -0
  702. package/dist/parent-demo/node-io.js +153 -0
  703. package/dist/parent-demo/optimize/command.d.ts +12 -0
  704. package/dist/parent-demo/optimize/command.js +110 -0
  705. package/dist/parent-demo/packs/command.d.ts +2 -0
  706. package/dist/parent-demo/packs/command.js +109 -0
  707. package/dist/parent-demo/patch/apply.d.ts +36 -0
  708. package/dist/parent-demo/patch/apply.js +186 -0
  709. package/dist/parent-demo/patch/command.d.ts +2 -0
  710. package/dist/parent-demo/patch/command.js +92 -0
  711. package/dist/parent-demo/plugin/install.d.ts +40 -0
  712. package/dist/parent-demo/plugin/install.js +170 -0
  713. package/dist/parent-demo/preview/command.d.ts +10 -0
  714. package/dist/parent-demo/preview/command.js +945 -0
  715. package/dist/parent-demo/preview/manifest.d.ts +105 -0
  716. package/dist/parent-demo/preview/manifest.js +19 -0
  717. package/dist/parent-demo/preview/pack.d.ts +24 -0
  718. package/dist/parent-demo/preview/pack.js +53 -0
  719. package/dist/parent-demo/preview/plan.d.ts +61 -0
  720. package/dist/parent-demo/preview/plan.js +205 -0
  721. package/dist/parent-demo/preview/provenance.d.ts +23 -0
  722. package/dist/parent-demo/preview/provenance.js +38 -0
  723. package/dist/parent-demo/publish/command.d.ts +2 -0
  724. package/dist/parent-demo/publish/command.js +230 -0
  725. package/dist/parent-demo/publish/player.d.ts +61 -0
  726. package/dist/parent-demo/publish/player.js +728 -0
  727. package/dist/parent-demo/publish/static.d.ts +16 -0
  728. package/dist/parent-demo/publish/static.js +78 -0
  729. package/dist/parent-demo/qc.d.ts +2 -0
  730. package/dist/parent-demo/qc.js +192 -0
  731. package/dist/parent-demo/scene/author.d.ts +16 -0
  732. package/dist/parent-demo/scene/author.js +519 -0
  733. package/dist/parent-demo/scene/command.d.ts +2 -0
  734. package/dist/parent-demo/scene/command.js +110 -0
  735. package/dist/parent-demo/scene/ops.d.ts +23 -0
  736. package/dist/parent-demo/scene/ops.js +151 -0
  737. package/dist/parent-demo/state/command.d.ts +2 -0
  738. package/dist/parent-demo/state/command.js +128 -0
  739. package/dist/parent-demo/state/evidence.d.ts +73 -0
  740. package/dist/parent-demo/state/evidence.js +1 -0
  741. package/dist/parent-demo/storyboard/check.d.ts +21 -0
  742. package/dist/parent-demo/storyboard/check.js +39 -0
  743. package/dist/parent-demo/storyboard/containment.d.ts +24 -0
  744. package/dist/parent-demo/storyboard/containment.js +43 -0
  745. package/dist/parent-demo/storyboard/custom.d.ts +15 -0
  746. package/dist/parent-demo/storyboard/custom.js +133 -0
  747. package/dist/parent-demo/storyboard/edit.d.ts +19 -0
  748. package/dist/parent-demo/storyboard/edit.js +39 -0
  749. package/dist/parent-demo/storyboard/load.d.ts +11 -0
  750. package/dist/parent-demo/storyboard/load.js +52 -0
  751. package/dist/parent-demo/storyboard/report.d.ts +5 -0
  752. package/dist/parent-demo/storyboard/report.js +8 -0
  753. package/dist/parent-demo/template/coerce.d.ts +6 -0
  754. package/dist/parent-demo/template/coerce.js +44 -0
  755. package/dist/parent-demo/template/command.d.ts +5 -0
  756. package/dist/parent-demo/template/command.js +163 -0
  757. package/dist/parent-demo/template/env.d.ts +38 -0
  758. package/dist/parent-demo/template/env.js +40 -0
  759. package/dist/parent-demo/template/fork.d.ts +8 -0
  760. package/dist/parent-demo/template/fork.js +156 -0
  761. package/dist/parent-demo/template/format.d.ts +21 -0
  762. package/dist/parent-demo/template/format.js +177 -0
  763. package/dist/parent-demo/template/list.d.ts +27 -0
  764. package/dist/parent-demo/template/list.js +171 -0
  765. package/dist/parent-demo/template/new.d.ts +6 -0
  766. package/dist/parent-demo/template/new.js +335 -0
  767. package/dist/parent-demo/testing/env.d.ts +9 -0
  768. package/dist/parent-demo/testing/env.js +49 -0
  769. package/dist/parent-demo/testing/fakes.d.ts +39 -0
  770. package/dist/parent-demo/testing/fakes.js +100 -0
  771. package/dist/parent-demo/testing/fixtures.d.ts +8 -0
  772. package/dist/parent-demo/testing/fixtures.js +6 -0
  773. package/dist/parent-demo/testing/probe.d.ts +15 -0
  774. package/dist/parent-demo/testing/probe.js +20 -0
  775. package/dist/parent-demo/testing/project.d.ts +22 -0
  776. package/dist/parent-demo/testing/project.js +26 -0
  777. package/dist/parent-demo/tooling/session.d.ts +40 -0
  778. package/dist/parent-demo/tooling/session.js +106 -0
  779. package/dist/parent-demo/types.d.ts +64 -0
  780. package/dist/parent-demo/types.js +1 -0
  781. package/dist/parent-demo/verify/audio-loudness.d.ts +81 -0
  782. package/dist/parent-demo/verify/audio-loudness.js +306 -0
  783. package/dist/parent-demo/verify/caption.d.ts +23 -0
  784. package/dist/parent-demo/verify/caption.fixtures.d.ts +148 -0
  785. package/dist/parent-demo/verify/caption.fixtures.js +66 -0
  786. package/dist/parent-demo/verify/caption.js +105 -0
  787. package/dist/parent-demo/verify/command.d.ts +2 -0
  788. package/dist/parent-demo/verify/command.js +190 -0
  789. package/dist/parent-demo/verify/determinism.d.ts +30 -0
  790. package/dist/parent-demo/verify/determinism.js +59 -0
  791. package/dist/parent-demo/verify/expectation.d.ts +15 -0
  792. package/dist/parent-demo/verify/expectation.js +19 -0
  793. package/dist/parent-demo/verify/flash.d.ts +55 -0
  794. package/dist/parent-demo/verify/flash.js +147 -0
  795. package/dist/parent-demo/verify/media-events.d.ts +61 -0
  796. package/dist/parent-demo/verify/media-events.js +174 -0
  797. package/dist/parent-demo/verify/motion-coherence.d.ts +99 -0
  798. package/dist/parent-demo/verify/motion-coherence.js +274 -0
  799. package/dist/parent-demo/verify/platform.d.ts +33 -0
  800. package/dist/parent-demo/verify/platform.js +59 -0
  801. package/dist/parent-demo/verify/probe.d.ts +14 -0
  802. package/dist/parent-demo/verify/probe.js +23 -0
  803. package/dist/parent-demo/verify/report.d.ts +15 -0
  804. package/dist/parent-demo/verify/report.js +45 -0
  805. package/dist/parent-demo/verify/run.d.ts +32 -0
  806. package/dist/parent-demo/verify/run.js +64 -0
  807. package/dist/parent-demo/version/command.d.ts +5 -0
  808. package/dist/parent-demo/version/command.js +52 -0
  809. package/dist/parent-demo/voice/command.d.ts +3 -0
  810. package/dist/parent-demo/voice/command.js +77 -0
  811. package/dist/parent-demo/voice/manifest.d.ts +33 -0
  812. package/dist/parent-demo/voice/manifest.js +69 -0
  813. package/dist/parent-demo/voice/portability.d.ts +27 -0
  814. package/dist/parent-demo/voice/portability.js +41 -0
  815. package/dist/parent-demo/voice/run.d.ts +29 -0
  816. package/dist/parent-demo/voice/run.js +224 -0
  817. package/dist/parent-demo/workflow/build.d.ts +2 -0
  818. package/dist/parent-demo/workflow/build.js +33 -0
  819. package/dist/parent-demo/workflow/draft.d.ts +9 -0
  820. package/dist/parent-demo/workflow/draft.js +230 -0
  821. package/dist/parent-demo/workflow/finish.d.ts +23 -0
  822. package/dist/parent-demo/workflow/finish.js +28 -0
  823. package/dist/parent-demo/workflow/project.d.ts +82 -0
  824. package/dist/parent-demo/workflow/project.js +224 -0
  825. package/dist/parent-demo/workflow/provenance.d.ts +18 -0
  826. package/dist/parent-demo/workflow/provenance.js +36 -0
  827. package/dist/parent-demo/workflow/render.d.ts +78 -0
  828. package/dist/parent-demo/workflow/render.js +922 -0
  829. package/dist/parent-demo/workflow/still.d.ts +5 -0
  830. package/dist/parent-demo/workflow/still.js +79 -0
  831. package/dist/parent-demo/workflow/validate.d.ts +2 -0
  832. package/dist/parent-demo/workflow/validate.js +49 -0
  833. package/dist/plugin/install.d.ts +3 -3
  834. package/dist/plugin/install.js +2 -2
  835. package/dist/preview/command.js +166 -92
  836. package/dist/preview/manifest.d.ts +2 -0
  837. package/dist/publish/command.js +189 -29
  838. package/dist/publish/player.d.ts +42 -6
  839. package/dist/publish/player.js +660 -40
  840. package/dist/scene/author.d.ts +1 -1
  841. package/dist/scene/author.js +250 -10
  842. package/dist/state/evidence.d.ts +4 -2
  843. package/dist/state/evidence.js +17 -4
  844. package/dist/template/env.d.ts +4 -0
  845. package/dist/template/env.js +3 -1
  846. package/dist/template/format.js +28 -12
  847. package/dist/template/list.d.ts +13 -1
  848. package/dist/template/list.js +61 -6
  849. package/dist/template/new.js +37 -4
  850. package/dist/testing/env.d.ts +1 -0
  851. package/dist/testing/env.js +32 -2
  852. package/dist/testing/fakes.d.ts +7 -1
  853. package/dist/testing/fakes.js +7 -2
  854. package/dist/types.d.ts +5 -0
  855. package/dist/verify/audio-loudness.d.ts +38 -3
  856. package/dist/verify/audio-loudness.js +123 -3
  857. package/dist/verify/caption.d.ts +23 -0
  858. package/dist/verify/caption.fixtures.d.ts +148 -0
  859. package/dist/verify/caption.fixtures.js +66 -0
  860. package/dist/verify/caption.js +105 -0
  861. package/dist/verify/command.js +42 -13
  862. package/dist/verify/determinism.d.ts +5 -5
  863. package/dist/verify/determinism.js +6 -6
  864. package/dist/verify/flash.d.ts +55 -0
  865. package/dist/verify/flash.js +147 -0
  866. package/dist/verify/motion-coherence.d.ts +99 -0
  867. package/dist/verify/motion-coherence.js +274 -0
  868. package/dist/verify/platform.d.ts +3 -3
  869. package/dist/verify/platform.js +5 -5
  870. package/dist/verify/run.d.ts +5 -0
  871. package/dist/verify/run.js +11 -0
  872. package/dist/voice/portability.d.ts +27 -0
  873. package/dist/voice/portability.js +41 -0
  874. package/dist/voice/run.js +31 -17
  875. package/dist/workflow/build.js +11 -3
  876. package/dist/workflow/draft.js +24 -9
  877. package/dist/workflow/project.d.ts +10 -1
  878. package/dist/workflow/project.js +29 -3
  879. package/dist/workflow/render.d.ts +41 -2
  880. package/dist/workflow/render.js +212 -52
  881. package/dist/workflow/still.js +30 -13
  882. package/package.json +6 -5
@@ -0,0 +1,5 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const STILLS_DIR = "stills";
3
+ /** The `hyperframes snapshot` argv for one `--at` timestamp; shared by every command that captures a still. */
4
+ export declare const stillSnapshotArgs: (at: string) => readonly string[];
5
+ export declare const stillCommand: Command;
@@ -0,0 +1,79 @@
1
+ import { join } from "node:path";
2
+ import { textFlag, usageError } from "../args.js";
3
+ import { EXIT } from "../exit-codes.js";
4
+ import { applyInteraction } from "../interaction/document.js";
5
+ import { runInProject } from "../tooling/session.js";
6
+ import { parseBuildArgs, prepareProject } from "./project.js";
7
+ const USAGE = `mk still <storyboard.json> (--at 1,5,9 | --review) [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>]
8
+
9
+ Build, then capture PNGs with \`hyperframes snapshot\`.
10
+ --at: one PNG per timestamp (seconds) with \`--no-end\`.
11
+ --review: the upstream review set instead (scene starts, middles, cut
12
+ seams plus phone-width beats); use either --at or --review, not both.
13
+ --interaction: fold a recorded transcript into the still, like \`mk render --interaction\`;
14
+ its storyboard digest must match this board (exit 4 otherwise).
15
+ PNGs go to <out>/stills; the paths are printed. Output of hyperframes: <out>/render-log.txt.
16
+ `;
17
+ export const STILLS_DIR = "stills";
18
+ const TIMES = /^\d+(\.\d+)?(,\d+(\.\d+)?)*$/;
19
+ /** The `hyperframes snapshot` argv for one `--at` timestamp; shared by every command that captures a still. */
20
+ export const stillSnapshotArgs = (at) => [
21
+ "snapshot",
22
+ ".",
23
+ "--at",
24
+ at,
25
+ "--no-end",
26
+ "-o",
27
+ STILLS_DIR,
28
+ ];
29
+ async function printStills(dir, io) {
30
+ const names = await io.host.listDir(dir).catch(() => []);
31
+ const shots = names.filter((name) => /\.(png|jpg|jpeg)$/.test(name)).sort();
32
+ if (shots.length === 0) {
33
+ io.stderr(`mk: no stills were written to ${dir}\n`);
34
+ return EXIT.ERROR;
35
+ }
36
+ io.stdout(shots.map((name) => `${join(dir, name)}\n`).join(""));
37
+ return EXIT.OK;
38
+ }
39
+ /** `--at` or `--review`, exactly one; an exit code on bad usage. */
40
+ function stillTarget(flags, io) {
41
+ const at = textFlag(flags, "at");
42
+ const review = flags.review === true;
43
+ if (review && at !== undefined) {
44
+ return usageError("still", USAGE, "use either --at or --review, not both", io).code;
45
+ }
46
+ if (!review && (at === undefined || !TIMES.test(at))) {
47
+ return usageError("still", USAGE, "--at needs seconds like 1,5,9", io).code;
48
+ }
49
+ return { at, review };
50
+ }
51
+ export const stillCommand = {
52
+ name: "still",
53
+ summary: "build, then capture PNG stills at --at timestamps or --review the upstream set",
54
+ async run(args, io) {
55
+ const parsed = parseBuildArgs("still", USAGE, args, {
56
+ at: { type: "string" },
57
+ review: { type: "boolean" },
58
+ interaction: { type: "string" },
59
+ }, io);
60
+ if (parsed.kind === "exit")
61
+ return parsed.code;
62
+ const target = stillTarget(parsed.flags, io);
63
+ if (typeof target === "number")
64
+ return target;
65
+ const applied = await applyInteraction("still", parsed.request, textFlag(parsed.flags, "interaction"), io);
66
+ if (!applied.ok)
67
+ return applied.code;
68
+ const prepared = await prepareProject(applied.request, io);
69
+ if (!prepared.ok)
70
+ return prepared.code;
71
+ const snapArgs = target.review
72
+ ? ["snapshot", ".", "--review", "-o", STILLS_DIR]
73
+ : stillSnapshotArgs(target.at);
74
+ const code = await runInProject(io, prepared.outDir, async (session) => {
75
+ await session.hf([...snapArgs]);
76
+ });
77
+ return code === 0 ? printStills(join(prepared.outDir, STILLS_DIR), io) : code;
78
+ },
79
+ };
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const validateCommand: Command;
@@ -0,0 +1,49 @@
1
+ import { parseFlags, requireStoryboard } from "../args.js";
2
+ import { EXIT } from "../exit-codes.js";
3
+ import { checkStoryboard, rootError } from "../storyboard/check.js";
4
+ import { readCustomScenes } from "../storyboard/custom.js";
5
+ import { readJsonFile } from "../storyboard/load.js";
6
+ import { formatFindings, summaryLine } from "../storyboard/report.js";
7
+ import { platformLookup } from "../verify/platform.js";
8
+ const USAGE = `mk validate <storyboard.json> [--json]
9
+
10
+ Validate a storyboard: schema, scene props, timing and lint.
11
+ Exit 0 when there are no errors (warnings allowed); 2 on validation errors, bad usage or unreadable files.
12
+ --json one JSON document {ok, errors, warnings}
13
+ `;
14
+ const printText = (report, io) => {
15
+ io.stdout(formatFindings([...report.errors, ...report.warnings]));
16
+ io.stdout(summaryLine(report.errors.length, report.warnings.length));
17
+ };
18
+ const printJson = (report, io) => {
19
+ const { errors, warnings } = report;
20
+ io.stdout(`${JSON.stringify({ ok: errors.length === 0, errors, warnings }, null, 2)}\n`);
21
+ };
22
+ export const validateCommand = {
23
+ name: "validate",
24
+ summary: "check a storyboard: schema, scene props, timing, lint",
25
+ async run(args, io) {
26
+ const parsed = parseFlags("validate", USAGE, args, { json: { type: "boolean" } }, io);
27
+ if (parsed.kind === "exit")
28
+ return parsed.code;
29
+ const path = requireStoryboard("validate", USAGE, parsed.positionals, io);
30
+ if (typeof path !== "string")
31
+ return path.code;
32
+ const loaded = await readJsonFile(path, io.host);
33
+ if (!loaded.ok && loaded.kind === "io") {
34
+ io.stderr(`mk validate: ${loaded.message}\n`);
35
+ return EXIT.USAGE;
36
+ }
37
+ const report = loaded.ok
38
+ ? checkStoryboard(loaded.value, { platforms: await platformLookup(io.host) })
39
+ : { errors: [rootError(loaded.message)], warnings: [] };
40
+ if (loaded.ok && report.errors.length === 0) {
41
+ const custom = await readCustomScenes(loaded.value, path, io.host);
42
+ for (const finding of custom.findings) {
43
+ (finding.severity === "error" ? report.errors : report.warnings).push(finding);
44
+ }
45
+ }
46
+ (parsed.flags.json ? printJson : printText)(report, io);
47
+ return report.errors.length === 0 ? EXIT.OK : EXIT.USAGE;
48
+ },
49
+ };
@@ -6,14 +6,14 @@ import type { Command } from "../types.ts";
6
6
  * version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
7
7
  * pre-publish placeholder: an isolated `npm install` of the packed tarball
8
8
  * rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
9
- * so `npx -y @anvpx/motion@0.1.94` 404s in isolation (qualify-pack exits 2
9
+ * so `npx -y @anvpx/motion@0.1.95` 404s in isolation (qualify-pack exits 2
10
10
  * BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
11
11
  * work around it. Publish path is choiceA (publish internal @anvpx/motion-*
12
12
  * at real versions) or choiceB (bundle into one tarball); either lands with
13
13
  * a version bump of core manifest + this pin + plugin.json together.
14
14
  */
15
- export declare const PINNED_CORE_VERSION = "0.1.94";
16
- export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.94";
15
+ export declare const PINNED_CORE_VERSION = "0.1.95";
16
+ export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.95";
17
17
  /** Skill file whose sha256 must survive `plugin install` byte for byte. */
18
18
  export declare const PLUGIN_SKILL: string;
19
19
  export interface PluginEnv {
@@ -11,13 +11,13 @@ import { EXIT } from "../exit-codes.js";
11
11
  * version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
12
12
  * pre-publish placeholder: an isolated `npm install` of the packed tarball
13
13
  * rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
14
- * so `npx -y @anvpx/motion@0.1.94` 404s in isolation (qualify-pack exits 2
14
+ * so `npx -y @anvpx/motion@0.1.95` 404s in isolation (qualify-pack exits 2
15
15
  * BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
16
16
  * work around it. Publish path is choiceA (publish internal @anvpx/motion-*
17
17
  * at real versions) or choiceB (bundle into one tarball); either lands with
18
18
  * a version bump of core manifest + this pin + plugin.json together.
19
19
  */
20
- export const PINNED_CORE_VERSION = "0.1.94";
20
+ export const PINNED_CORE_VERSION = "0.1.95";
21
21
  export const PINNED_NPX = `npx -y @anvpx/motion@${PINNED_CORE_VERSION}`;
22
22
  /** Skill file whose sha256 must survive `plugin install` byte for byte. */
23
23
  export const PLUGIN_SKILL = join("skills", "motion-kit", "SKILL.md");
@@ -2,9 +2,11 @@ import { createHash } from "node:crypto";
2
2
  import { basename, dirname, join, resolve } from "node:path";
3
3
  import { validateMusicBed } from "@anvpx/motion-audio";
4
4
  import { AUDIO_DIR_NAME, CUSTOM_SCENE_TYPE, clipsFromManifest, frozenClips, frozenCopyProblems, frozenMusic, isContiguous, mixAtDeliveryLevel, parseAudioManifest, placementsFromTimeline, readRelativeClosure, resolveSceneDir, resolveTimeline, validateStoryboardFull, } from "@anvpx/motion-build";
5
+ import { canonicalJson } from "@anvpx/motion-schema";
5
6
  import { buildApprovalInputManifest, hashApprovalInput, storyboardHash, } from "../approval/hash.js";
6
7
  import { parseFlags, requireStoryboard, textFlag, usageError } from "../args.js";
7
8
  import { EXIT } from "../exit-codes.js";
9
+ import { derivedInteraction, resolveInteraction } from "../interaction/document.js";
8
10
  import { checkStoryboard, rootError } from "../storyboard/check.js";
9
11
  import { sceneContainment } from "../storyboard/containment.js";
10
12
  import { readJsonFile } from "../storyboard/load.js";
@@ -18,7 +20,7 @@ import { CHECKLIST, defaultOut, PREVIEW_JSON, packDir, } from "./manifest.js";
18
20
  import { clearPngs, contactSheet, listPngs, nameStills, } from "./pack.js";
19
21
  import { CLIP_MAX_SEC, CLIP_SCENE_SEC, capClip, DARK_COUNT, distinctPicks, sceneInfos, shouldRunClip, stillCandidates, stillPlan, } from "./plan.js";
20
22
  import { readProvenance, resolvePair } from "./provenance.js";
21
- const USAGE = `mk preview <storyboard.json> [--stills 6 | --every] [--full] [--budget-sec 90] [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--audio <manifest>] [--allow-silent] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>] [--json]
23
+ const USAGE = `mk preview <storyboard.json> [--stills 6 | --every] [--full] [--budget-sec 90] [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--audio <manifest>] [--allow-silent] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>] [--interaction <interaction.json>] [--json]
22
24
 
23
25
  Build the proposal pack the user approves, into <out>/<name>.preview, <name> = the storyboard file name without .json (default <out> = <storyboard dir>/out):
24
26
  preview.json hash, template, frame, scenes, stills, lint, estimate, approval checklist
@@ -41,12 +43,15 @@ the template has one. Order of work: stills, contact sheet, clip. If --budget-se
41
43
  inputManifestSha256.
42
44
  --allow-silent permit a silent preview when the board has narration; only
43
45
  when the user explicitly wants silent output
44
- --music <bed.wav> opt-in CC0 bed ducked under narration (needs --audio);
46
+ --music <bed.wav> opt-in CC0 bed; with --audio it ducks under narration, without
47
+ --audio it is the film's only sound and runs to the picture end;
45
48
  same buildMusicMixArgs as final; volume via --music-volume,
46
49
  license receipt via --music-license. Bed + volume + licenseEvidenceSha256
47
50
  enter inputManifestSha256.
48
51
  --music-volume <n> bed level within (0, 1] (default 0.5)
49
52
  --music-license <file> license-evidence file hashed into the receipt
53
+ --interaction <file> fold a recorded ADR-0013 transcript into the stills and clip; the
54
+ transcript is part of inputManifestSha256, so editing it re-arms approval
50
55
  --json print preview.json instead of the summary line
51
56
  Scratch builds live in <out>/<name>.preview-work. Then show the pack and, after an explicit yes: mk approve <storyboard.json>
52
57
  `;
@@ -63,6 +68,7 @@ const FLAGS = {
63
68
  music: { type: "string" },
64
69
  "music-volume": { type: "string" },
65
70
  "music-license": { type: "string" },
71
+ interaction: { type: "string" },
66
72
  json: { type: "boolean" },
67
73
  };
68
74
  const DEFAULT_STILLS = 6;
@@ -111,15 +117,13 @@ function readOptions(flags, storyboard, io) {
111
117
  const music = textFlag(flags, "music");
112
118
  const musicVolumeRaw = textFlag(flags, "music-volume");
113
119
  const musicLicense = textFlag(flags, "music-license");
120
+ const interaction = textFlag(flags, "interaction");
114
121
  if (musicVolumeRaw !== undefined) {
115
122
  const n = Number(musicVolumeRaw);
116
123
  if (!Number.isFinite(n) || n <= 0 || n > 1) {
117
124
  return usageError("preview", USAGE, "--music-volume must be within (0, 1]", io).code;
118
125
  }
119
126
  }
120
- if (music !== undefined && audio === undefined) {
121
- return usageError("preview", USAGE, "--music needs --audio", io).code;
122
- }
123
127
  if ((musicVolumeRaw !== undefined || musicLicense !== undefined) && music === undefined) {
124
128
  return usageError("preview", USAGE, "--music-volume/--music-license need --music", io).code;
125
129
  }
@@ -140,6 +144,7 @@ function readOptions(flags, storyboard, io) {
140
144
  ...(music === undefined ? {} : { musicPath: music }),
141
145
  ...(musicVolumeRaw === undefined ? {} : { musicVolume: Number(musicVolumeRaw) }),
142
146
  ...(musicLicense === undefined ? {} : { musicLicensePath: musicLicense }),
147
+ ...(interaction === undefined ? {} : { interactionPath: interaction }),
143
148
  };
144
149
  }
145
150
  /** Copies every `<dir>/themes/*.json` of the project into a scratch project. */
@@ -192,8 +197,8 @@ export async function copyCustomScenes(host, board, origin, targetDir) {
192
197
  }
193
198
  }
194
199
  }
195
- /** Writes a derived storyboard (+ the project's themes, + extra theme files) into its own scratch dir. */
196
- async function scratch(io, work, name, board, projectDir, extraThemes = [], origin) {
200
+ /** Writes a derived storyboard (+ its transcript, themes, extra theme files) into its own scratch dir. */
201
+ async function scratch(io, work, name, board, projectDir, extraThemes = [], origin, interaction) {
197
202
  const dir = join(work, name);
198
203
  await io.host.writeTextAtomic(join(dir, "storyboard.json"), `${JSON.stringify(board, null, 2)}\n`);
199
204
  if (origin !== undefined)
@@ -202,6 +207,17 @@ async function scratch(io, work, name, board, projectDir, extraThemes = [], orig
202
207
  for (const theme of extraThemes) {
203
208
  await io.host.writeTextAtomic(join(dir, "themes", `${theme.id}.json`), theme.text);
204
209
  }
210
+ if (interaction !== undefined) {
211
+ // The scratch board is a derived document (voice timing, capped trailer, paired theme);
212
+ // its digest differs, so the transcript is re-stamped to keep the same event fold.
213
+ const path = join(dir, "interaction.json");
214
+ await io.host.writeTextAtomic(path, canonicalJson(derivedInteraction(interaction, board)));
215
+ return {
216
+ storyboard: join(dir, "storyboard.json"),
217
+ project: join(dir, "project"),
218
+ interaction: path,
219
+ };
220
+ }
205
221
  return { storyboard: join(dir, "storyboard.json"), project: join(dir, "project") };
206
222
  }
207
223
  /** Runs `mk still` quietly; returns the PNGs it wrote (ordered like the `--at` list) or an exit code. */
@@ -211,7 +227,8 @@ async function capture(io, scratchDir, picks, extra, clock, spent) {
211
227
  const quiet = captured(io);
212
228
  const began = clock();
213
229
  const at = picks.map((p) => p.t).join(",");
214
- const code = await stillCommand.run([scratchDir.storyboard, "--at", at, "--out", scratchDir.project, ...extra], quiet.io);
230
+ const interaction = scratchDir.interaction === undefined ? [] : ["--interaction", scratchDir.interaction];
231
+ const code = await stillCommand.run([scratchDir.storyboard, "--at", at, "--out", scratchDir.project, ...extra, ...interaction], quiet.io);
215
232
  spent.ms += clock() - began;
216
233
  if (code !== 0) {
217
234
  io.stderr(quiet.err.join(""));
@@ -246,11 +263,20 @@ async function voiceTotal(io, board, audioManifest) {
246
263
  }
247
264
  }
248
265
  /** Full-length audible clip: voice-timed build so clip video total equals narration total. */
249
- async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin) {
250
- const clip = await scratch(io, work, "clip", stripNarration(board), projectDir, [], origin);
266
+ async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, interaction) {
267
+ const clip = await scratch(io, work, "clip", stripNarration(board), projectDir, [], origin, interaction);
251
268
  const quiet = captured(io);
252
269
  const began = clock();
253
- const code = await clipDraft.run([clip.storyboard, "--out", clip.project, ...extra, "--audio", audioManifest], quiet.io);
270
+ const interactionFlags = clip.interaction === undefined ? [] : ["--interaction", clip.interaction];
271
+ const code = await clipDraft.run([
272
+ clip.storyboard,
273
+ "--out",
274
+ clip.project,
275
+ ...extra,
276
+ ...interactionFlags,
277
+ "--audio",
278
+ audioManifest,
279
+ ], quiet.io);
254
280
  const ms = clock() - began;
255
281
  if (code !== 0) {
256
282
  const why = quiet.err.join("").trim().split("\n")[0] ?? "";
@@ -271,10 +297,10 @@ async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock,
271
297
  msPerFrame: ms / Math.max(1, Math.round(sec * DRAFT_FPS)),
272
298
  };
273
299
  }
274
- async function makeClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, full) {
300
+ async function makeClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, full, interaction) {
275
301
  // With --audio or --full the clip is the full review, not a capped trailer.
276
302
  if (audioManifest !== undefined) {
277
- return makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin);
303
+ return makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, interaction);
278
304
  }
279
305
  const plan = full
280
306
  ? (() => {
@@ -283,10 +309,11 @@ async function makeClip(io, board, projectDir, work, pack, extra, clock, audioMa
283
309
  return { storyboard: stripped, totalSec: timeline.ok ? timeline.value.total : 0 };
284
310
  })()
285
311
  : capClip(board);
286
- const clip = await scratch(io, work, "clip", plan.storyboard, projectDir, [], origin);
312
+ const clip = await scratch(io, work, "clip", plan.storyboard, projectDir, [], origin, interaction);
287
313
  const quiet = captured(io);
288
314
  const began = clock();
289
- const code = await clipDraft.run([clip.storyboard, "--out", clip.project, ...extra], quiet.io);
315
+ const interactionFlags = clip.interaction === undefined ? [] : ["--interaction", clip.interaction];
316
+ const code = await clipDraft.run([clip.storyboard, "--out", clip.project, ...extra, ...interactionFlags], quiet.io);
290
317
  const ms = clock() - began;
291
318
  if (code !== 0) {
292
319
  const why = quiet.err.join("").trim().split("\n")[0] ?? "";
@@ -351,7 +378,7 @@ async function shootStills(ctx, pair, spent) {
351
378
  const picks = options.every
352
379
  ? stillPlan(ctx.infos, ctx.infos.length)
353
380
  : stillPlan(ctx.candidates, options.stills);
354
- const light = await scratch(io, work, "light", board, projectDir, [], ctx.storyboard);
381
+ const light = await scratch(io, work, "light", board, projectDir, [], ctx.storyboard, ctx.interaction);
355
382
  const files = await capture(io, light, picks, options.extra, clock, spent);
356
383
  if (typeof files === "number")
357
384
  return files;
@@ -359,7 +386,7 @@ async function shootStills(ctx, pair, spent) {
359
386
  if (pair !== undefined) {
360
387
  const extra = distinctPicks(picks, DARK_COUNT);
361
388
  const paired = { ...board, meta: { ...board.meta, theme: pair.id } };
362
- const scratchDir = await scratch(io, work, "paired", paired, projectDir, [pair], ctx.storyboard);
389
+ const scratchDir = await scratch(io, work, "paired", paired, projectDir, [pair], ctx.storyboard, ctx.interaction);
363
390
  const darkFiles = await capture(io, scratchDir, extra, options.extra, clock, spent);
364
391
  if (typeof darkFiles === "number")
365
392
  return darkFiles;
@@ -385,7 +412,7 @@ async function clipOrSkip(ctx, stillsMs) {
385
412
  await io.host.remove(join(pack, "clip.mp4"));
386
413
  const elapsed = clock() - began;
387
414
  if (options.full || shouldRunClip(elapsed, stillsMs, options.budgetSec * MS)) {
388
- return makeClip(io, ctx.board, ctx.projectDir, ctx.work, pack, options.extra, clock, options.audioManifest, ctx.storyboard, options.full);
415
+ return makeClip(io, ctx.board, ctx.projectDir, ctx.work, pack, options.extra, clock, options.audioManifest, ctx.storyboard, options.full, ctx.interaction);
389
416
  }
390
417
  const used = `${Math.round(elapsed / MS)} s used of ${options.budgetSec} s`;
391
418
  return {
@@ -472,6 +499,9 @@ const inputsOf = (options) => ({
472
499
  music: options.musicPath === undefined ? null : resolve(options.musicPath),
473
500
  musicVolume: options.musicVolume ?? null,
474
501
  musicLicense: options.musicLicensePath === undefined ? null : resolve(options.musicLicensePath),
502
+ ...(options.interactionPath === undefined
503
+ ? {}
504
+ : { interaction: resolve(options.interactionPath) }),
475
505
  });
476
506
  function manifestOf(ctx, facts) {
477
507
  const { board, infos, report, options } = ctx;
@@ -535,6 +565,11 @@ async function start(args, io, clock) {
535
565
  const loaded = await loadBoard(storyboard, io);
536
566
  if (typeof loaded === "number")
537
567
  return loaded;
568
+ const resolved = options.interactionPath === undefined
569
+ ? undefined
570
+ : await resolveInteraction("preview", storyboard, options.interactionPath, io);
571
+ if (resolved !== undefined && !resolved.ok)
572
+ return resolved.code;
538
573
  const narrated = loaded.board.scenes.some((scene) => scene.layer !== "overlay" && (scene.narration?.trim() ?? "") !== "");
539
574
  if (narrated && options.audioManifest === undefined && !options.allowSilent) {
540
575
  io.stderr("mk preview: this board has narration but no --audio. Run `mk voice <storyboard> --preset <id>`, then preview with --audio <manifest> --full; pass --allow-silent only when the user explicitly wants silent output.\n");
@@ -545,6 +580,7 @@ async function start(args, io, clock) {
545
580
  io,
546
581
  storyboard,
547
582
  options,
583
+ ...(resolved === undefined ? {} : { interaction: resolved.interaction }),
548
584
  projectDir: dirname(resolve(storyboard)),
549
585
  work: `${packDir(options.out, storyboard)}-work`,
550
586
  pack: packDir(options.out, storyboard),
@@ -567,6 +603,9 @@ const resolvePreview = async (io, ctx) => {
567
603
  ...(ctx.options.musicLicensePath === undefined
568
604
  ? {}
569
605
  : { musicLicense: ctx.options.musicLicensePath }),
606
+ ...(ctx.options.interactionPath === undefined
607
+ ? {}
608
+ : { interaction: ctx.options.interactionPath }),
570
609
  });
571
610
  return { manifest, sha: hashApprovalInput(manifest) };
572
611
  }
@@ -586,94 +625,115 @@ const SILENT_AUDIO_MIX = {
586
625
  musicVolume: null,
587
626
  musicLicenseSha: null,
588
627
  };
589
- /** Mixes the exact final wavs under the preview clip with the same args as the final render. */
628
+ /** Builds the `--audio`/`--music` flag text used in rerun hints. */
629
+ const previewAudioFlags = (opts) => [
630
+ ...(opts.audioManifest === undefined ? [] : [`--audio ${opts.audioManifest}`]),
631
+ ...(opts.musicPath === undefined ? [] : [`--music ${opts.musicPath}`]),
632
+ ...(opts.musicVolume === undefined ? [] : [`--music-volume ${opts.musicVolume}`]),
633
+ ...(opts.musicLicensePath === undefined ? [] : [`--music-license ${opts.musicLicensePath}`]),
634
+ ].join(" ");
635
+ /**
636
+ * Mixes the exact final inputs under the preview clip with the same args as the
637
+ * final render. Narration is optional: a valid bed with no `--audio` is a
638
+ * music-only film sized by the picture duration, not a usage error or silence.
639
+ */
590
640
  const mixPreviewClip = async (io, pack, work, audioManifest, storyboard, expected, musicOpts = {}, durationSec) => {
591
- const rerun = `rerun \`mk preview ${storyboard} --audio ${audioManifest}\` after fixing the audio inputs`;
592
- let text;
593
- try {
594
- text = await io.host.readText(audioManifest);
595
- }
596
- catch (error) {
597
- io.stderr(`mk preview: cannot read --audio manifest: ${error.message}; ${rerun}\n`);
598
- return EXIT.USAGE;
599
- }
600
- let raw;
601
- try {
602
- raw = JSON.parse(text);
603
- }
604
- catch (error) {
605
- io.stderr(`mk preview: invalid --audio manifest: ${error.message}; ${rerun}\n`);
606
- return EXIT.USAGE;
607
- }
608
- const parsed = parseAudioManifest(raw);
609
- if (!parsed.ok) {
610
- io.stderr(`mk preview: invalid --audio manifest: ${parsed.problems.join("; ")}; ${rerun}\n`);
611
- return EXIT.USAGE;
612
- }
613
- const audioDir = join(dirname(resolve(audioManifest)), AUDIO_DIR_NAME);
614
- // Place the voice sequence on the film timeline (transitions start scenes
615
- // early), not on the manifest's cumulative starts.
616
- const boardLoaded = await readJsonFile(storyboard, io.host);
617
- const validBoard = boardLoaded.ok ? validateStoryboardFull(boardLoaded.value) : undefined;
618
- const timeline = validBoard?.ok === true ? resolveTimeline(validBoard.value, parsed.manifest) : undefined;
619
- const placements = timeline?.ok === true ? placementsFromTimeline(timeline.value) : undefined;
620
- const clips = clipsFromManifest(parsed.manifest, audioDir, placements);
621
- if (clips.length === 0) {
622
- io.stderr(`mk preview: --audio manifest has no scenes; nothing to mix; ${rerun}\n`);
623
- return EXIT.USAGE;
624
- }
625
- for (const clip of clips) {
626
- const digest = await io.host.sha256File(clip.wav);
627
- if (digest === undefined) {
628
- io.stderr(`mk preview: missing narration wav for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
641
+ const flags = previewAudioFlags({
642
+ ...(audioManifest === undefined ? {} : { audioManifest }),
643
+ ...musicOpts,
644
+ });
645
+ const rerun = `rerun \`mk preview ${storyboard}${flags === "" ? "" : ` ${flags}`}\` after fixing the audio inputs`;
646
+ let manifestSha = null;
647
+ let wavSha = null;
648
+ let clips = [];
649
+ let frozenNarration = [];
650
+ // AU-01: freeze the exact bytes ffmpeg consumes (ABA-proof) and mix with the
651
+ // same build authority as the final render (no second pipeline).
652
+ const frozenDir = join(work, ".frozen-audio");
653
+ const checks = [];
654
+ if (audioManifest !== undefined) {
655
+ let text;
656
+ try {
657
+ text = await io.host.readText(audioManifest);
658
+ }
659
+ catch (error) {
660
+ io.stderr(`mk preview: cannot read --audio manifest: ${error.message}; ${rerun}\n`);
629
661
  return EXIT.USAGE;
630
662
  }
631
- // AU-01 MEDIUM: ungated --audio must reject silent wavs like the manifest
632
- // path does (EMPTY_SHA256); never mix silence as narration.
633
- if (digest === "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") {
634
- io.stderr(`mk preview: narration wav is silent/empty for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
663
+ let raw;
664
+ try {
665
+ raw = JSON.parse(text);
666
+ }
667
+ catch (error) {
668
+ io.stderr(`mk preview: invalid --audio manifest: ${error.message}; ${rerun}\n`);
669
+ return EXIT.USAGE;
670
+ }
671
+ const parsed = parseAudioManifest(raw);
672
+ if (!parsed.ok) {
673
+ io.stderr(`mk preview: invalid --audio manifest: ${parsed.problems.join("; ")}; ${rerun}\n`);
674
+ return EXIT.USAGE;
675
+ }
676
+ const audioDir = join(dirname(resolve(audioManifest)), AUDIO_DIR_NAME);
677
+ // Place the voice sequence on the film timeline (transitions start scenes
678
+ // early), not on the manifest's cumulative starts.
679
+ const boardLoaded = await readJsonFile(storyboard, io.host);
680
+ const validBoard = boardLoaded.ok ? validateStoryboardFull(boardLoaded.value) : undefined;
681
+ const timeline = validBoard?.ok === true ? resolveTimeline(validBoard.value, parsed.manifest) : undefined;
682
+ const placements = timeline?.ok === true ? placementsFromTimeline(timeline.value) : undefined;
683
+ clips = clipsFromManifest(parsed.manifest, audioDir, placements);
684
+ if (clips.length === 0) {
685
+ io.stderr(`mk preview: --audio manifest has no scenes; nothing to mix; ${rerun}\n`);
635
686
  return EXIT.USAGE;
636
687
  }
688
+ for (const clip of clips) {
689
+ const digest = await io.host.sha256File(clip.wav);
690
+ if (digest === undefined) {
691
+ io.stderr(`mk preview: missing narration wav for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
692
+ return EXIT.USAGE;
693
+ }
694
+ // AU-01 MEDIUM: ungated --audio must reject silent wavs like the manifest
695
+ // path does (EMPTY_SHA256); never mix silence as narration.
696
+ if (digest === "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") {
697
+ io.stderr(`mk preview: narration wav is silent/empty for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
698
+ return EXIT.USAGE;
699
+ }
700
+ }
701
+ frozenNarration = frozenClips(clips, frozenDir);
702
+ const frozenDigests = [];
703
+ try {
704
+ for (const [index, clip] of frozenNarration.entries()) {
705
+ const source = clips[index];
706
+ if (source === undefined)
707
+ continue;
708
+ await io.host.copyFile(source.wav, clip.wav);
709
+ const frozenSha = await io.host.sha256File(clip.wav);
710
+ frozenDigests.push(frozenSha ?? "");
711
+ checks.push({
712
+ label: `narration "${clip.id}"`,
713
+ actualSha256: frozenSha,
714
+ expectedSha256: expected.mix?.clips[index]?.wavSha,
715
+ });
716
+ }
717
+ }
718
+ catch (error) {
719
+ io.stderr(`mk preview: cannot freeze narration wavs: ${error.message}; ${rerun}\n`);
720
+ return EXIT.ERROR;
721
+ }
722
+ manifestSha = createHash("sha256").update(text).digest("hex");
723
+ wavSha = createHash("sha256").update(frozenDigests.join("\n")).digest("hex");
637
724
  }
638
725
  // RA-02: never certify audible from hashes alone. The clip must exist and
639
726
  // the mix must succeed before audible:true is returned.
640
727
  const clipFile = join(pack, "clip.mp4");
641
728
  if (!(await io.host.exists(clipFile))) {
642
- io.stderr(`mk preview: --audio requires an audible clip but ${clipFile} is missing (clip skipped or failed); raise --budget-sec and ${rerun}\n`);
729
+ io.stderr(`mk preview: audible output requires a playable clip but ${clipFile} is missing (clip skipped or failed); raise --budget-sec and ${rerun}\n`);
643
730
  return EXIT.USAGE;
644
731
  }
645
- const manifestSha = createHash("sha256").update(text).digest("hex");
646
732
  const mixedFile = join(pack, "clip-audible.mp4");
647
- // AU-01: freeze the exact bytes ffmpeg consumes (ABA-proof) and mix with the
648
- // same build authority as the final render (no second pipeline).
649
- const frozenDir = join(work, ".frozen-audio");
650
733
  let mixBed;
651
734
  let musicSha = null;
652
735
  let musicVolume = null;
653
736
  let musicLicenseSha = null;
654
- const frozenNarration = frozenClips(clips, frozenDir);
655
- const checks = [];
656
- const frozenDigests = [];
657
- try {
658
- for (const [index, clip] of frozenNarration.entries()) {
659
- const source = clips[index];
660
- if (source === undefined)
661
- continue;
662
- await io.host.copyFile(source.wav, clip.wav);
663
- const frozenSha = await io.host.sha256File(clip.wav);
664
- frozenDigests.push(frozenSha ?? "");
665
- checks.push({
666
- label: `narration "${clip.id}"`,
667
- actualSha256: frozenSha,
668
- expectedSha256: expected.mix?.clips[index]?.wavSha,
669
- });
670
- }
671
- }
672
- catch (error) {
673
- io.stderr(`mk preview: cannot freeze narration wavs: ${error.message}; ${rerun}\n`);
674
- return EXIT.ERROR;
675
- }
676
- const wavSha = createHash("sha256").update(frozenDigests.join("\n")).digest("hex");
677
737
  if (musicOpts.musicPath !== undefined) {
678
738
  const validated = validateMusicBed(musicOpts.musicVolume === undefined
679
739
  ? { wav: musicOpts.musicPath }
@@ -816,15 +876,29 @@ export const makePreviewCommand = (env = defaultEnv, clock = () => performance.n
816
876
  io.stderr(`mk preview: continuity WARN (jump ${continuity.maxJump ?? "?"} at ${continuity.atSec ?? "?"}s); change the cut with a crossfade/match/bridge and re-preview --full before asking for approval\n`);
817
877
  }
818
878
  let audioMix;
819
- if (ctx.options.audioManifest === undefined) {
879
+ const musicOnly = ctx.options.audioManifest === undefined && ctx.options.musicPath !== undefined;
880
+ if (ctx.options.audioManifest === undefined && !musicOnly) {
820
881
  audioMix = SILENT_AUDIO_MIX;
821
882
  }
822
883
  else {
823
884
  // RA-02: an audiovisual pack is only audible after a playable mixed
824
- // clip exists. A budget-skipped clip never certifies from hashes.
885
+ // clip exists. A budget-skipped clip never certifies from hashes. A
886
+ // music-only film is audiovisual too: the bed is its only sound.
825
887
  if (clip.result.status !== "ok") {
826
888
  const why = clip.result.status === "skipped" ? ` (${clip.result.reason})` : " (missing)";
827
- io.stderr(`mk preview: --audio requires an audible clip but the clip was skipped${why}; raise --budget-sec and rerun \`mk preview ${storyboard} --audio ${ctx.options.audioManifest}\`\n`);
889
+ const flags = previewAudioFlags({
890
+ ...(ctx.options.audioManifest === undefined
891
+ ? {}
892
+ : { audioManifest: ctx.options.audioManifest }),
893
+ ...(ctx.options.musicPath === undefined ? {} : { musicPath: ctx.options.musicPath }),
894
+ ...(ctx.options.musicVolume === undefined
895
+ ? {}
896
+ : { musicVolume: ctx.options.musicVolume }),
897
+ ...(ctx.options.musicLicensePath === undefined
898
+ ? {}
899
+ : { musicLicensePath: ctx.options.musicLicensePath }),
900
+ });
901
+ io.stderr(`mk preview: ${musicOnly ? "--music" : "--audio"} requires an audible clip but the clip was skipped${why}; raise --budget-sec and rerun \`mk preview ${storyboard}${flags === "" ? "" : ` ${flags}`}\`\n`);
828
902
  return EXIT.USAGE;
829
903
  }
830
904
  const mixed = await mixPreviewClip(io, ctx.pack, ctx.work, ctx.options.audioManifest, storyboard, snapshot.manifest, {
@@ -36,6 +36,8 @@ export interface PreviewInputs {
36
36
  readonly music: string | null;
37
37
  readonly musicVolume: number | null;
38
38
  readonly musicLicense: string | null;
39
+ /** ADR-0013 transcript folded into the pack; absent/null when the board has none. */
40
+ readonly interaction?: string | null;
39
41
  }
40
42
  /** `preview.json`: what the user is about to approve. Written last; `hash` binds it to the storyboard. */
41
43
  export interface PreviewManifest {