@anvpx/motion-cli 0.1.56 → 0.1.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (885) hide show
  1. package/dist/approval/approval.d.ts +11 -3
  2. package/dist/approval/approval.js +20 -8
  3. package/dist/approval/command.js +43 -12
  4. package/dist/approval/hash.d.ts +6 -1
  5. package/dist/approval/hash.js +35 -6
  6. package/dist/captions/command.js +31 -4
  7. package/dist/captions/cues.d.ts +11 -2
  8. package/dist/captions/cues.js +13 -4
  9. package/dist/commands.js +2 -0
  10. package/dist/contact/argv.js +4 -1
  11. package/dist/doctor/checks.js +2 -2
  12. package/dist/doctor/command.js +8 -2
  13. package/dist/integration/interaction.integration.d.ts +1 -0
  14. package/dist/integration/interaction.integration.js +95 -0
  15. package/dist/integration/preview.integration.js +12 -4
  16. package/dist/interaction/command.d.ts +4 -0
  17. package/dist/interaction/command.js +219 -0
  18. package/dist/interaction/document.d.ts +55 -0
  19. package/dist/interaction/document.js +104 -0
  20. package/dist/interaction/driver.d.ts +29 -0
  21. package/dist/interaction/driver.js +278 -0
  22. package/dist/mcp/server.d.ts +12 -5
  23. package/dist/mcp/server.js +41 -19
  24. package/dist/mut-demo/.out/smoke/boot.js +90 -0
  25. package/dist/mut-demo/.out/smoke/runtime/compose.js +43 -0
  26. package/dist/mut-demo/.out/smoke/runtime/easing.js +45 -0
  27. package/dist/mut-demo/.out/smoke/runtime/mount.js +153 -0
  28. package/dist/mut-demo/.out/smoke/runtime/timeline.js +199 -0
  29. package/dist/mut-demo/.out/smoke/scenes/count/scene.js +6 -0
  30. package/dist/mut-demo/.out/smoke/scenes/intro/scene.js +6 -0
  31. package/dist/mut-demo/.out/smoke/scenes/outro/scene.js +6 -0
  32. package/dist/mut-demo/.out/smoke/scenes/path/scene.js +6 -0
  33. package/dist/mut-demo/.out/smoke/scenes/signals/scene.js +6 -0
  34. package/dist/mut-demo/.out/smoke/shared/format.js +59 -0
  35. package/dist/mut-demo/.out/smoke/shared/motion.js +117 -0
  36. package/dist/mut-demo/.out/template-flow/out/project/boot.js +88 -0
  37. package/dist/mut-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  38. package/dist/mut-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  39. package/dist/mut-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  40. package/dist/mut-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  41. package/dist/mut-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  42. package/dist/mut-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  43. package/dist/mut-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  44. package/dist/mut-demo/.out/template-flow/out/project/shared/format.js +59 -0
  45. package/dist/mut-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  46. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  47. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  48. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  49. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  50. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  51. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  52. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  53. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  54. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  55. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  56. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  57. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  58. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  59. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  60. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  61. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  62. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  63. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  64. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  65. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  66. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  67. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  68. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  69. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  70. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  71. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  72. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  73. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  74. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  75. package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  76. package/dist/mut-demo/analyze/command.d.ts +2 -0
  77. package/dist/mut-demo/analyze/command.js +190 -0
  78. package/dist/mut-demo/approval/approval.d.ts +43 -0
  79. package/dist/mut-demo/approval/approval.js +155 -0
  80. package/dist/mut-demo/approval/command.d.ts +2 -0
  81. package/dist/mut-demo/approval/command.js +286 -0
  82. package/dist/mut-demo/approval/gate.d.ts +7 -0
  83. package/dist/mut-demo/approval/gate.js +23 -0
  84. package/dist/mut-demo/approval/hash.d.ts +76 -0
  85. package/dist/mut-demo/approval/hash.js +493 -0
  86. package/dist/mut-demo/args.d.ts +30 -0
  87. package/dist/mut-demo/args.js +53 -0
  88. package/dist/mut-demo/assets/command.d.ts +2 -0
  89. package/dist/mut-demo/assets/command.js +165 -0
  90. package/dist/mut-demo/captions/command.d.ts +16 -0
  91. package/dist/mut-demo/captions/command.js +462 -0
  92. package/dist/mut-demo/captions/cues.d.ts +19 -0
  93. package/dist/mut-demo/captions/cues.js +70 -0
  94. package/dist/mut-demo/catalog/command.d.ts +2 -0
  95. package/dist/mut-demo/catalog/command.js +60 -0
  96. package/dist/mut-demo/catalog/format.d.ts +13 -0
  97. package/dist/mut-demo/catalog/format.js +54 -0
  98. package/dist/mut-demo/cli.d.ts +3 -0
  99. package/dist/mut-demo/cli.js +35 -0
  100. package/dist/mut-demo/commands.d.ts +3 -0
  101. package/dist/mut-demo/commands.js +65 -0
  102. package/dist/mut-demo/compare/command.d.ts +4 -0
  103. package/dist/mut-demo/compare/command.js +144 -0
  104. package/dist/mut-demo/contact/argv.d.ts +24 -0
  105. package/dist/mut-demo/contact/argv.js +45 -0
  106. package/dist/mut-demo/contact/command.d.ts +2 -0
  107. package/dist/mut-demo/contact/command.js +79 -0
  108. package/dist/mut-demo/desktop/command.d.ts +21 -0
  109. package/dist/mut-demo/desktop/command.js +120 -0
  110. package/dist/mut-demo/doctor/checks.d.ts +25 -0
  111. package/dist/mut-demo/doctor/checks.js +584 -0
  112. package/dist/mut-demo/doctor/command.d.ts +4 -0
  113. package/dist/mut-demo/doctor/command.js +94 -0
  114. package/dist/mut-demo/doctor/format.d.ts +7 -0
  115. package/dist/mut-demo/doctor/format.js +41 -0
  116. package/dist/mut-demo/doctor/heal.d.ts +14 -0
  117. package/dist/mut-demo/doctor/heal.js +71 -0
  118. package/dist/mut-demo/doctor/pins.d.ts +8 -0
  119. package/dist/mut-demo/doctor/pins.js +28 -0
  120. package/dist/mut-demo/doctor/skills.d.ts +15 -0
  121. package/dist/mut-demo/doctor/skills.js +58 -0
  122. package/dist/mut-demo/doctor/types.d.ts +36 -0
  123. package/dist/mut-demo/doctor/types.js +1 -0
  124. package/dist/mut-demo/doctor/vendored.d.ts +15 -0
  125. package/dist/mut-demo/doctor/vendored.js +90 -0
  126. package/dist/mut-demo/doctor/version.d.ts +8 -0
  127. package/dist/mut-demo/doctor/version.js +11 -0
  128. package/dist/mut-demo/exit-codes.d.ts +16 -0
  129. package/dist/mut-demo/exit-codes.js +15 -0
  130. package/dist/mut-demo/fit/command.d.ts +5 -0
  131. package/dist/mut-demo/fit/command.js +154 -0
  132. package/dist/mut-demo/fit/solve.d.ts +21 -0
  133. package/dist/mut-demo/fit/solve.js +80 -0
  134. package/dist/mut-demo/fit/target.d.ts +18 -0
  135. package/dist/mut-demo/fit/target.js +47 -0
  136. package/dist/mut-demo/generate3d/command.d.ts +3 -0
  137. package/dist/mut-demo/generate3d/command.js +38 -0
  138. package/dist/mut-demo/generate3d/run.d.ts +39 -0
  139. package/dist/mut-demo/generate3d/run.js +77 -0
  140. package/dist/mut-demo/icon/command.d.ts +2 -0
  141. package/dist/mut-demo/icon/command.js +113 -0
  142. package/dist/mut-demo/index.d.ts +18 -0
  143. package/dist/mut-demo/index.js +16 -0
  144. package/dist/mut-demo/install-mk.d.ts +31 -0
  145. package/dist/mut-demo/install-mk.js +168 -0
  146. package/dist/mut-demo/integration/interaction.integration.d.ts +1 -0
  147. package/dist/mut-demo/integration/interaction.integration.js +95 -0
  148. package/dist/mut-demo/integration/preview.integration.d.ts +1 -0
  149. package/dist/mut-demo/integration/preview.integration.js +61 -0
  150. package/dist/mut-demo/integration/smoke.integration.d.ts +1 -0
  151. package/dist/mut-demo/integration/smoke.integration.js +91 -0
  152. package/dist/mut-demo/interaction/command.d.ts +4 -0
  153. package/dist/mut-demo/interaction/command.js +219 -0
  154. package/dist/mut-demo/interaction/document.d.ts +55 -0
  155. package/dist/mut-demo/interaction/document.js +104 -0
  156. package/dist/mut-demo/interaction/driver.d.ts +29 -0
  157. package/dist/mut-demo/interaction/driver.js +278 -0
  158. package/dist/mut-demo/main.d.ts +2 -0
  159. package/dist/mut-demo/main.js +4 -0
  160. package/dist/mut-demo/mcp/server.d.ts +89 -0
  161. package/dist/mut-demo/mcp/server.js +479 -0
  162. package/dist/mut-demo/node-io.d.ts +14 -0
  163. package/dist/mut-demo/node-io.js +153 -0
  164. package/dist/mut-demo/optimize/command.d.ts +12 -0
  165. package/dist/mut-demo/optimize/command.js +110 -0
  166. package/dist/mut-demo/packs/command.d.ts +2 -0
  167. package/dist/mut-demo/packs/command.js +109 -0
  168. package/dist/mut-demo/parent-demo/.out/smoke/boot.js +90 -0
  169. package/dist/mut-demo/parent-demo/.out/smoke/runtime/compose.js +43 -0
  170. package/dist/mut-demo/parent-demo/.out/smoke/runtime/easing.js +45 -0
  171. package/dist/mut-demo/parent-demo/.out/smoke/runtime/mount.js +153 -0
  172. package/dist/mut-demo/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  173. package/dist/mut-demo/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  174. package/dist/mut-demo/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  175. package/dist/mut-demo/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  176. package/dist/mut-demo/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  177. package/dist/mut-demo/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  178. package/dist/mut-demo/parent-demo/.out/smoke/shared/format.js +59 -0
  179. package/dist/mut-demo/parent-demo/.out/smoke/shared/motion.js +117 -0
  180. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  181. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  182. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  183. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  184. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  185. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  186. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  187. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  188. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  189. package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  190. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  191. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  192. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  193. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  194. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  195. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  196. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  197. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  198. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  199. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  200. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  201. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  202. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  203. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  204. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  205. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  206. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  207. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  208. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  209. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  210. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  211. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  212. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  213. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  214. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  215. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  216. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  217. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  218. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  219. package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  220. package/dist/mut-demo/parent-demo/analyze/command.d.ts +2 -0
  221. package/dist/mut-demo/parent-demo/analyze/command.js +190 -0
  222. package/dist/mut-demo/parent-demo/approval/approval.d.ts +43 -0
  223. package/dist/mut-demo/parent-demo/approval/approval.js +155 -0
  224. package/dist/mut-demo/parent-demo/approval/command.d.ts +2 -0
  225. package/dist/mut-demo/parent-demo/approval/command.js +286 -0
  226. package/dist/mut-demo/parent-demo/approval/gate.d.ts +7 -0
  227. package/dist/mut-demo/parent-demo/approval/gate.js +23 -0
  228. package/dist/mut-demo/parent-demo/approval/hash.d.ts +76 -0
  229. package/dist/mut-demo/parent-demo/approval/hash.js +493 -0
  230. package/dist/mut-demo/parent-demo/args.d.ts +30 -0
  231. package/dist/mut-demo/parent-demo/args.js +53 -0
  232. package/dist/mut-demo/parent-demo/assets/command.d.ts +2 -0
  233. package/dist/mut-demo/parent-demo/assets/command.js +165 -0
  234. package/dist/mut-demo/parent-demo/captions/command.d.ts +16 -0
  235. package/dist/mut-demo/parent-demo/captions/command.js +462 -0
  236. package/dist/mut-demo/parent-demo/captions/cues.d.ts +19 -0
  237. package/dist/mut-demo/parent-demo/captions/cues.js +70 -0
  238. package/dist/mut-demo/parent-demo/catalog/command.d.ts +2 -0
  239. package/dist/mut-demo/parent-demo/catalog/command.js +60 -0
  240. package/dist/mut-demo/parent-demo/catalog/format.d.ts +13 -0
  241. package/dist/mut-demo/parent-demo/catalog/format.js +54 -0
  242. package/dist/mut-demo/parent-demo/cli.d.ts +3 -0
  243. package/dist/mut-demo/parent-demo/cli.js +35 -0
  244. package/dist/mut-demo/parent-demo/commands.d.ts +3 -0
  245. package/dist/mut-demo/parent-demo/commands.js +65 -0
  246. package/dist/mut-demo/parent-demo/compare/command.d.ts +4 -0
  247. package/dist/mut-demo/parent-demo/compare/command.js +144 -0
  248. package/dist/mut-demo/parent-demo/contact/argv.d.ts +24 -0
  249. package/dist/mut-demo/parent-demo/contact/argv.js +45 -0
  250. package/dist/mut-demo/parent-demo/contact/command.d.ts +2 -0
  251. package/dist/mut-demo/parent-demo/contact/command.js +79 -0
  252. package/dist/mut-demo/parent-demo/desktop/command.d.ts +21 -0
  253. package/dist/mut-demo/parent-demo/desktop/command.js +120 -0
  254. package/dist/mut-demo/parent-demo/doctor/checks.d.ts +25 -0
  255. package/dist/mut-demo/parent-demo/doctor/checks.js +584 -0
  256. package/dist/mut-demo/parent-demo/doctor/command.d.ts +4 -0
  257. package/dist/mut-demo/parent-demo/doctor/command.js +94 -0
  258. package/dist/mut-demo/parent-demo/doctor/format.d.ts +7 -0
  259. package/dist/mut-demo/parent-demo/doctor/format.js +41 -0
  260. package/dist/mut-demo/parent-demo/doctor/heal.d.ts +14 -0
  261. package/dist/mut-demo/parent-demo/doctor/heal.js +71 -0
  262. package/dist/mut-demo/parent-demo/doctor/pins.d.ts +8 -0
  263. package/dist/mut-demo/parent-demo/doctor/pins.js +28 -0
  264. package/dist/mut-demo/parent-demo/doctor/skills.d.ts +15 -0
  265. package/dist/mut-demo/parent-demo/doctor/skills.js +58 -0
  266. package/dist/mut-demo/parent-demo/doctor/types.d.ts +36 -0
  267. package/dist/mut-demo/parent-demo/doctor/types.js +1 -0
  268. package/dist/mut-demo/parent-demo/doctor/vendored.d.ts +15 -0
  269. package/dist/mut-demo/parent-demo/doctor/vendored.js +90 -0
  270. package/dist/mut-demo/parent-demo/doctor/version.d.ts +8 -0
  271. package/dist/mut-demo/parent-demo/doctor/version.js +11 -0
  272. package/dist/mut-demo/parent-demo/exit-codes.d.ts +16 -0
  273. package/dist/mut-demo/parent-demo/exit-codes.js +15 -0
  274. package/dist/mut-demo/parent-demo/fit/command.d.ts +5 -0
  275. package/dist/mut-demo/parent-demo/fit/command.js +154 -0
  276. package/dist/mut-demo/parent-demo/fit/solve.d.ts +21 -0
  277. package/dist/mut-demo/parent-demo/fit/solve.js +80 -0
  278. package/dist/mut-demo/parent-demo/fit/target.d.ts +18 -0
  279. package/dist/mut-demo/parent-demo/fit/target.js +47 -0
  280. package/dist/mut-demo/parent-demo/generate3d/command.d.ts +3 -0
  281. package/dist/mut-demo/parent-demo/generate3d/command.js +38 -0
  282. package/dist/mut-demo/parent-demo/generate3d/run.d.ts +39 -0
  283. package/dist/mut-demo/parent-demo/generate3d/run.js +77 -0
  284. package/dist/mut-demo/parent-demo/icon/command.d.ts +2 -0
  285. package/dist/mut-demo/parent-demo/icon/command.js +113 -0
  286. package/dist/mut-demo/parent-demo/index.d.ts +18 -0
  287. package/dist/mut-demo/parent-demo/index.js +16 -0
  288. package/dist/mut-demo/parent-demo/install-mk.d.ts +31 -0
  289. package/dist/mut-demo/parent-demo/install-mk.js +168 -0
  290. package/dist/mut-demo/parent-demo/integration/interaction.integration.d.ts +1 -0
  291. package/dist/mut-demo/parent-demo/integration/interaction.integration.js +95 -0
  292. package/dist/mut-demo/parent-demo/integration/preview.integration.d.ts +1 -0
  293. package/dist/mut-demo/parent-demo/integration/preview.integration.js +61 -0
  294. package/dist/mut-demo/parent-demo/integration/smoke.integration.d.ts +1 -0
  295. package/dist/mut-demo/parent-demo/integration/smoke.integration.js +91 -0
  296. package/dist/mut-demo/parent-demo/interaction/command.d.ts +4 -0
  297. package/dist/mut-demo/parent-demo/interaction/command.js +219 -0
  298. package/dist/mut-demo/parent-demo/interaction/document.d.ts +55 -0
  299. package/dist/mut-demo/parent-demo/interaction/document.js +104 -0
  300. package/dist/mut-demo/parent-demo/interaction/driver.d.ts +29 -0
  301. package/dist/mut-demo/parent-demo/interaction/driver.js +278 -0
  302. package/dist/mut-demo/parent-demo/main.d.ts +2 -0
  303. package/dist/mut-demo/parent-demo/main.js +4 -0
  304. package/dist/mut-demo/parent-demo/mcp/server.d.ts +89 -0
  305. package/dist/mut-demo/parent-demo/mcp/server.js +479 -0
  306. package/dist/mut-demo/parent-demo/node-io.d.ts +14 -0
  307. package/dist/mut-demo/parent-demo/node-io.js +153 -0
  308. package/dist/mut-demo/parent-demo/optimize/command.d.ts +12 -0
  309. package/dist/mut-demo/parent-demo/optimize/command.js +110 -0
  310. package/dist/mut-demo/parent-demo/packs/command.d.ts +2 -0
  311. package/dist/mut-demo/parent-demo/packs/command.js +109 -0
  312. package/dist/mut-demo/parent-demo/patch/apply.d.ts +36 -0
  313. package/dist/mut-demo/parent-demo/patch/apply.js +186 -0
  314. package/dist/mut-demo/parent-demo/patch/command.d.ts +2 -0
  315. package/dist/mut-demo/parent-demo/patch/command.js +92 -0
  316. package/dist/mut-demo/parent-demo/plugin/install.d.ts +40 -0
  317. package/dist/mut-demo/parent-demo/plugin/install.js +170 -0
  318. package/dist/mut-demo/parent-demo/preview/command.d.ts +10 -0
  319. package/dist/mut-demo/parent-demo/preview/command.js +945 -0
  320. package/dist/mut-demo/parent-demo/preview/manifest.d.ts +105 -0
  321. package/dist/mut-demo/parent-demo/preview/manifest.js +19 -0
  322. package/dist/mut-demo/parent-demo/preview/pack.d.ts +24 -0
  323. package/dist/mut-demo/parent-demo/preview/pack.js +53 -0
  324. package/dist/mut-demo/parent-demo/preview/plan.d.ts +61 -0
  325. package/dist/mut-demo/parent-demo/preview/plan.js +205 -0
  326. package/dist/mut-demo/parent-demo/preview/provenance.d.ts +23 -0
  327. package/dist/mut-demo/parent-demo/preview/provenance.js +38 -0
  328. package/dist/mut-demo/parent-demo/publish/command.d.ts +2 -0
  329. package/dist/mut-demo/parent-demo/publish/command.js +230 -0
  330. package/dist/mut-demo/parent-demo/publish/player.d.ts +61 -0
  331. package/dist/mut-demo/parent-demo/publish/player.js +728 -0
  332. package/dist/mut-demo/parent-demo/publish/static.d.ts +16 -0
  333. package/dist/mut-demo/parent-demo/publish/static.js +78 -0
  334. package/dist/mut-demo/parent-demo/qc.d.ts +2 -0
  335. package/dist/mut-demo/parent-demo/qc.js +192 -0
  336. package/dist/mut-demo/parent-demo/scene/author.d.ts +16 -0
  337. package/dist/mut-demo/parent-demo/scene/author.js +519 -0
  338. package/dist/mut-demo/parent-demo/scene/command.d.ts +2 -0
  339. package/dist/mut-demo/parent-demo/scene/command.js +110 -0
  340. package/dist/mut-demo/parent-demo/scene/ops.d.ts +23 -0
  341. package/dist/mut-demo/parent-demo/scene/ops.js +151 -0
  342. package/dist/mut-demo/parent-demo/state/command.d.ts +2 -0
  343. package/dist/mut-demo/parent-demo/state/command.js +128 -0
  344. package/dist/mut-demo/parent-demo/state/evidence.d.ts +73 -0
  345. package/dist/mut-demo/parent-demo/state/evidence.js +1 -0
  346. package/dist/mut-demo/parent-demo/storyboard/check.d.ts +21 -0
  347. package/dist/mut-demo/parent-demo/storyboard/check.js +39 -0
  348. package/dist/mut-demo/parent-demo/storyboard/containment.d.ts +24 -0
  349. package/dist/mut-demo/parent-demo/storyboard/containment.js +43 -0
  350. package/dist/mut-demo/parent-demo/storyboard/custom.d.ts +15 -0
  351. package/dist/mut-demo/parent-demo/storyboard/custom.js +133 -0
  352. package/dist/mut-demo/parent-demo/storyboard/edit.d.ts +19 -0
  353. package/dist/mut-demo/parent-demo/storyboard/edit.js +39 -0
  354. package/dist/mut-demo/parent-demo/storyboard/load.d.ts +11 -0
  355. package/dist/mut-demo/parent-demo/storyboard/load.js +52 -0
  356. package/dist/mut-demo/parent-demo/storyboard/report.d.ts +5 -0
  357. package/dist/mut-demo/parent-demo/storyboard/report.js +8 -0
  358. package/dist/mut-demo/parent-demo/template/coerce.d.ts +6 -0
  359. package/dist/mut-demo/parent-demo/template/coerce.js +44 -0
  360. package/dist/mut-demo/parent-demo/template/command.d.ts +5 -0
  361. package/dist/mut-demo/parent-demo/template/command.js +163 -0
  362. package/dist/mut-demo/parent-demo/template/env.d.ts +38 -0
  363. package/dist/mut-demo/parent-demo/template/env.js +40 -0
  364. package/dist/mut-demo/parent-demo/template/fork.d.ts +8 -0
  365. package/dist/mut-demo/parent-demo/template/fork.js +156 -0
  366. package/dist/mut-demo/parent-demo/template/format.d.ts +21 -0
  367. package/dist/mut-demo/parent-demo/template/format.js +177 -0
  368. package/dist/mut-demo/parent-demo/template/list.d.ts +27 -0
  369. package/dist/mut-demo/parent-demo/template/list.js +171 -0
  370. package/dist/mut-demo/parent-demo/template/new.d.ts +6 -0
  371. package/dist/mut-demo/parent-demo/template/new.js +335 -0
  372. package/dist/mut-demo/parent-demo/testing/env.d.ts +9 -0
  373. package/dist/mut-demo/parent-demo/testing/env.js +49 -0
  374. package/dist/mut-demo/parent-demo/testing/fakes.d.ts +39 -0
  375. package/dist/mut-demo/parent-demo/testing/fakes.js +100 -0
  376. package/dist/mut-demo/parent-demo/testing/fixtures.d.ts +8 -0
  377. package/dist/mut-demo/parent-demo/testing/fixtures.js +6 -0
  378. package/dist/mut-demo/parent-demo/testing/probe.d.ts +15 -0
  379. package/dist/mut-demo/parent-demo/testing/probe.js +20 -0
  380. package/dist/mut-demo/parent-demo/testing/project.d.ts +22 -0
  381. package/dist/mut-demo/parent-demo/testing/project.js +26 -0
  382. package/dist/mut-demo/parent-demo/tooling/session.d.ts +40 -0
  383. package/dist/mut-demo/parent-demo/tooling/session.js +106 -0
  384. package/dist/mut-demo/parent-demo/types.d.ts +64 -0
  385. package/dist/mut-demo/parent-demo/types.js +1 -0
  386. package/dist/mut-demo/parent-demo/verify/audio-loudness.d.ts +81 -0
  387. package/dist/mut-demo/parent-demo/verify/audio-loudness.js +306 -0
  388. package/dist/mut-demo/parent-demo/verify/caption.d.ts +23 -0
  389. package/dist/mut-demo/parent-demo/verify/caption.fixtures.d.ts +148 -0
  390. package/dist/mut-demo/parent-demo/verify/caption.fixtures.js +66 -0
  391. package/dist/mut-demo/parent-demo/verify/caption.js +105 -0
  392. package/dist/mut-demo/parent-demo/verify/command.d.ts +2 -0
  393. package/dist/mut-demo/parent-demo/verify/command.js +190 -0
  394. package/dist/mut-demo/parent-demo/verify/determinism.d.ts +30 -0
  395. package/dist/mut-demo/parent-demo/verify/determinism.js +59 -0
  396. package/dist/mut-demo/parent-demo/verify/expectation.d.ts +15 -0
  397. package/dist/mut-demo/parent-demo/verify/expectation.js +19 -0
  398. package/dist/mut-demo/parent-demo/verify/flash.d.ts +55 -0
  399. package/dist/mut-demo/parent-demo/verify/flash.js +147 -0
  400. package/dist/mut-demo/parent-demo/verify/media-events.d.ts +61 -0
  401. package/dist/mut-demo/parent-demo/verify/media-events.js +174 -0
  402. package/dist/mut-demo/parent-demo/verify/motion-coherence.d.ts +99 -0
  403. package/dist/mut-demo/parent-demo/verify/motion-coherence.js +274 -0
  404. package/dist/mut-demo/parent-demo/verify/platform.d.ts +33 -0
  405. package/dist/mut-demo/parent-demo/verify/platform.js +59 -0
  406. package/dist/mut-demo/parent-demo/verify/probe.d.ts +14 -0
  407. package/dist/mut-demo/parent-demo/verify/probe.js +23 -0
  408. package/dist/mut-demo/parent-demo/verify/report.d.ts +15 -0
  409. package/dist/mut-demo/parent-demo/verify/report.js +45 -0
  410. package/dist/mut-demo/parent-demo/verify/run.d.ts +32 -0
  411. package/dist/mut-demo/parent-demo/verify/run.js +64 -0
  412. package/dist/mut-demo/parent-demo/version/command.d.ts +5 -0
  413. package/dist/mut-demo/parent-demo/version/command.js +52 -0
  414. package/dist/mut-demo/parent-demo/voice/command.d.ts +3 -0
  415. package/dist/mut-demo/parent-demo/voice/command.js +77 -0
  416. package/dist/mut-demo/parent-demo/voice/manifest.d.ts +33 -0
  417. package/dist/mut-demo/parent-demo/voice/manifest.js +69 -0
  418. package/dist/mut-demo/parent-demo/voice/portability.d.ts +27 -0
  419. package/dist/mut-demo/parent-demo/voice/portability.js +41 -0
  420. package/dist/mut-demo/parent-demo/voice/run.d.ts +29 -0
  421. package/dist/mut-demo/parent-demo/voice/run.js +224 -0
  422. package/dist/mut-demo/parent-demo/workflow/build.d.ts +2 -0
  423. package/dist/mut-demo/parent-demo/workflow/build.js +33 -0
  424. package/dist/mut-demo/parent-demo/workflow/draft.d.ts +9 -0
  425. package/dist/mut-demo/parent-demo/workflow/draft.js +230 -0
  426. package/dist/mut-demo/parent-demo/workflow/finish.d.ts +23 -0
  427. package/dist/mut-demo/parent-demo/workflow/finish.js +28 -0
  428. package/dist/mut-demo/parent-demo/workflow/project.d.ts +82 -0
  429. package/dist/mut-demo/parent-demo/workflow/project.js +224 -0
  430. package/dist/mut-demo/parent-demo/workflow/provenance.d.ts +18 -0
  431. package/dist/mut-demo/parent-demo/workflow/provenance.js +36 -0
  432. package/dist/mut-demo/parent-demo/workflow/render.d.ts +78 -0
  433. package/dist/mut-demo/parent-demo/workflow/render.js +922 -0
  434. package/dist/mut-demo/parent-demo/workflow/still.d.ts +5 -0
  435. package/dist/mut-demo/parent-demo/workflow/still.js +79 -0
  436. package/dist/mut-demo/parent-demo/workflow/validate.d.ts +2 -0
  437. package/dist/mut-demo/parent-demo/workflow/validate.js +49 -0
  438. package/dist/mut-demo/patch/apply.d.ts +36 -0
  439. package/dist/mut-demo/patch/apply.js +186 -0
  440. package/dist/mut-demo/patch/command.d.ts +2 -0
  441. package/dist/mut-demo/patch/command.js +92 -0
  442. package/dist/mut-demo/plugin/install.d.ts +40 -0
  443. package/dist/mut-demo/plugin/install.js +170 -0
  444. package/dist/mut-demo/preview/command.d.ts +10 -0
  445. package/dist/mut-demo/preview/command.js +945 -0
  446. package/dist/mut-demo/preview/manifest.d.ts +105 -0
  447. package/dist/mut-demo/preview/manifest.js +19 -0
  448. package/dist/mut-demo/preview/pack.d.ts +24 -0
  449. package/dist/mut-demo/preview/pack.js +53 -0
  450. package/dist/mut-demo/preview/plan.d.ts +61 -0
  451. package/dist/mut-demo/preview/plan.js +205 -0
  452. package/dist/mut-demo/preview/provenance.d.ts +23 -0
  453. package/dist/mut-demo/preview/provenance.js +38 -0
  454. package/dist/mut-demo/publish/command.d.ts +2 -0
  455. package/dist/mut-demo/publish/command.js +230 -0
  456. package/dist/mut-demo/publish/player.d.ts +61 -0
  457. package/dist/mut-demo/publish/player.js +728 -0
  458. package/dist/mut-demo/publish/static.d.ts +16 -0
  459. package/dist/mut-demo/publish/static.js +78 -0
  460. package/dist/mut-demo/qc.d.ts +2 -0
  461. package/dist/mut-demo/qc.js +192 -0
  462. package/dist/mut-demo/scene/author.d.ts +16 -0
  463. package/dist/mut-demo/scene/author.js +519 -0
  464. package/dist/mut-demo/scene/command.d.ts +2 -0
  465. package/dist/mut-demo/scene/command.js +110 -0
  466. package/dist/mut-demo/scene/ops.d.ts +23 -0
  467. package/dist/mut-demo/scene/ops.js +151 -0
  468. package/dist/mut-demo/state/command.d.ts +2 -0
  469. package/dist/mut-demo/state/command.js +128 -0
  470. package/dist/mut-demo/state/evidence.d.ts +73 -0
  471. package/dist/mut-demo/state/evidence.js +1 -0
  472. package/dist/mut-demo/storyboard/check.d.ts +21 -0
  473. package/dist/mut-demo/storyboard/check.js +39 -0
  474. package/dist/mut-demo/storyboard/containment.d.ts +24 -0
  475. package/dist/mut-demo/storyboard/containment.js +43 -0
  476. package/dist/mut-demo/storyboard/custom.d.ts +15 -0
  477. package/dist/mut-demo/storyboard/custom.js +133 -0
  478. package/dist/mut-demo/storyboard/edit.d.ts +19 -0
  479. package/dist/mut-demo/storyboard/edit.js +39 -0
  480. package/dist/mut-demo/storyboard/load.d.ts +11 -0
  481. package/dist/mut-demo/storyboard/load.js +52 -0
  482. package/dist/mut-demo/storyboard/report.d.ts +5 -0
  483. package/dist/mut-demo/storyboard/report.js +8 -0
  484. package/dist/mut-demo/template/coerce.d.ts +6 -0
  485. package/dist/mut-demo/template/coerce.js +44 -0
  486. package/dist/mut-demo/template/command.d.ts +5 -0
  487. package/dist/mut-demo/template/command.js +163 -0
  488. package/dist/mut-demo/template/env.d.ts +38 -0
  489. package/dist/mut-demo/template/env.js +40 -0
  490. package/dist/mut-demo/template/fork.d.ts +8 -0
  491. package/dist/mut-demo/template/fork.js +156 -0
  492. package/dist/mut-demo/template/format.d.ts +21 -0
  493. package/dist/mut-demo/template/format.js +177 -0
  494. package/dist/mut-demo/template/list.d.ts +27 -0
  495. package/dist/mut-demo/template/list.js +171 -0
  496. package/dist/mut-demo/template/new.d.ts +6 -0
  497. package/dist/mut-demo/template/new.js +335 -0
  498. package/dist/mut-demo/testing/env.d.ts +9 -0
  499. package/dist/mut-demo/testing/env.js +49 -0
  500. package/dist/mut-demo/testing/fakes.d.ts +39 -0
  501. package/dist/mut-demo/testing/fakes.js +100 -0
  502. package/dist/mut-demo/testing/fixtures.d.ts +8 -0
  503. package/dist/mut-demo/testing/fixtures.js +6 -0
  504. package/dist/mut-demo/testing/probe.d.ts +15 -0
  505. package/dist/mut-demo/testing/probe.js +20 -0
  506. package/dist/mut-demo/testing/project.d.ts +22 -0
  507. package/dist/mut-demo/testing/project.js +26 -0
  508. package/dist/mut-demo/tooling/session.d.ts +40 -0
  509. package/dist/mut-demo/tooling/session.js +106 -0
  510. package/dist/mut-demo/types.d.ts +64 -0
  511. package/dist/mut-demo/types.js +1 -0
  512. package/dist/mut-demo/verify/audio-loudness.d.ts +81 -0
  513. package/dist/mut-demo/verify/audio-loudness.js +306 -0
  514. package/dist/mut-demo/verify/caption.d.ts +23 -0
  515. package/dist/mut-demo/verify/caption.fixtures.d.ts +148 -0
  516. package/dist/mut-demo/verify/caption.fixtures.js +66 -0
  517. package/dist/mut-demo/verify/caption.js +105 -0
  518. package/dist/mut-demo/verify/command.d.ts +2 -0
  519. package/dist/mut-demo/verify/command.js +190 -0
  520. package/dist/mut-demo/verify/determinism.d.ts +30 -0
  521. package/dist/mut-demo/verify/determinism.js +59 -0
  522. package/dist/mut-demo/verify/expectation.d.ts +15 -0
  523. package/dist/mut-demo/verify/expectation.js +19 -0
  524. package/dist/mut-demo/verify/flash.d.ts +55 -0
  525. package/dist/mut-demo/verify/flash.js +147 -0
  526. package/dist/mut-demo/verify/media-events.d.ts +61 -0
  527. package/dist/mut-demo/verify/media-events.js +174 -0
  528. package/dist/mut-demo/verify/motion-coherence.d.ts +99 -0
  529. package/dist/mut-demo/verify/motion-coherence.js +274 -0
  530. package/dist/mut-demo/verify/platform.d.ts +33 -0
  531. package/dist/mut-demo/verify/platform.js +59 -0
  532. package/dist/mut-demo/verify/probe.d.ts +14 -0
  533. package/dist/mut-demo/verify/probe.js +23 -0
  534. package/dist/mut-demo/verify/report.d.ts +15 -0
  535. package/dist/mut-demo/verify/report.js +45 -0
  536. package/dist/mut-demo/verify/run.d.ts +32 -0
  537. package/dist/mut-demo/verify/run.js +64 -0
  538. package/dist/mut-demo/version/command.d.ts +5 -0
  539. package/dist/mut-demo/version/command.js +52 -0
  540. package/dist/mut-demo/voice/command.d.ts +3 -0
  541. package/dist/mut-demo/voice/command.js +77 -0
  542. package/dist/mut-demo/voice/manifest.d.ts +33 -0
  543. package/dist/mut-demo/voice/manifest.js +69 -0
  544. package/dist/mut-demo/voice/portability.d.ts +27 -0
  545. package/dist/mut-demo/voice/portability.js +41 -0
  546. package/dist/mut-demo/voice/run.d.ts +29 -0
  547. package/dist/mut-demo/voice/run.js +224 -0
  548. package/dist/mut-demo/workflow/build.d.ts +2 -0
  549. package/dist/mut-demo/workflow/build.js +33 -0
  550. package/dist/mut-demo/workflow/draft.d.ts +9 -0
  551. package/dist/mut-demo/workflow/draft.js +230 -0
  552. package/dist/mut-demo/workflow/finish.d.ts +23 -0
  553. package/dist/mut-demo/workflow/finish.js +28 -0
  554. package/dist/mut-demo/workflow/project.d.ts +82 -0
  555. package/dist/mut-demo/workflow/project.js +224 -0
  556. package/dist/mut-demo/workflow/provenance.d.ts +18 -0
  557. package/dist/mut-demo/workflow/provenance.js +36 -0
  558. package/dist/mut-demo/workflow/render.d.ts +78 -0
  559. package/dist/mut-demo/workflow/render.js +922 -0
  560. package/dist/mut-demo/workflow/still.d.ts +5 -0
  561. package/dist/mut-demo/workflow/still.js +79 -0
  562. package/dist/mut-demo/workflow/validate.d.ts +2 -0
  563. package/dist/mut-demo/workflow/validate.js +49 -0
  564. package/dist/node-io.js +1 -0
  565. package/dist/parent-demo/.out/smoke/boot.js +90 -0
  566. package/dist/parent-demo/.out/smoke/runtime/compose.js +43 -0
  567. package/dist/parent-demo/.out/smoke/runtime/easing.js +45 -0
  568. package/dist/parent-demo/.out/smoke/runtime/mount.js +153 -0
  569. package/dist/parent-demo/.out/smoke/runtime/timeline.js +199 -0
  570. package/dist/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
  571. package/dist/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
  572. package/dist/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
  573. package/dist/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
  574. package/dist/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
  575. package/dist/parent-demo/.out/smoke/shared/format.js +59 -0
  576. package/dist/parent-demo/.out/smoke/shared/motion.js +117 -0
  577. package/dist/parent-demo/.out/template-flow/out/project/boot.js +88 -0
  578. package/dist/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
  579. package/dist/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
  580. package/dist/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
  581. package/dist/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
  582. package/dist/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
  583. package/dist/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
  584. package/dist/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
  585. package/dist/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
  586. package/dist/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
  587. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
  588. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
  589. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
  590. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
  591. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
  592. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
  593. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
  594. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
  595. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
  596. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
  597. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
  598. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
  599. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
  600. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
  601. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
  602. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
  603. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
  604. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
  605. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
  606. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
  607. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
  608. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
  609. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
  610. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
  611. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
  612. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
  613. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
  614. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
  615. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
  616. package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
  617. package/dist/parent-demo/analyze/command.d.ts +2 -0
  618. package/dist/parent-demo/analyze/command.js +190 -0
  619. package/dist/parent-demo/approval/approval.d.ts +43 -0
  620. package/dist/parent-demo/approval/approval.js +155 -0
  621. package/dist/parent-demo/approval/command.d.ts +2 -0
  622. package/dist/parent-demo/approval/command.js +286 -0
  623. package/dist/parent-demo/approval/gate.d.ts +7 -0
  624. package/dist/parent-demo/approval/gate.js +23 -0
  625. package/dist/parent-demo/approval/hash.d.ts +76 -0
  626. package/dist/parent-demo/approval/hash.js +493 -0
  627. package/dist/parent-demo/args.d.ts +30 -0
  628. package/dist/parent-demo/args.js +53 -0
  629. package/dist/parent-demo/assets/command.d.ts +2 -0
  630. package/dist/parent-demo/assets/command.js +165 -0
  631. package/dist/parent-demo/captions/command.d.ts +16 -0
  632. package/dist/parent-demo/captions/command.js +462 -0
  633. package/dist/parent-demo/captions/cues.d.ts +19 -0
  634. package/dist/parent-demo/captions/cues.js +70 -0
  635. package/dist/parent-demo/catalog/command.d.ts +2 -0
  636. package/dist/parent-demo/catalog/command.js +60 -0
  637. package/dist/parent-demo/catalog/format.d.ts +13 -0
  638. package/dist/parent-demo/catalog/format.js +54 -0
  639. package/dist/parent-demo/cli.d.ts +3 -0
  640. package/dist/parent-demo/cli.js +35 -0
  641. package/dist/parent-demo/commands.d.ts +3 -0
  642. package/dist/parent-demo/commands.js +65 -0
  643. package/dist/parent-demo/compare/command.d.ts +4 -0
  644. package/dist/parent-demo/compare/command.js +144 -0
  645. package/dist/parent-demo/contact/argv.d.ts +24 -0
  646. package/dist/parent-demo/contact/argv.js +45 -0
  647. package/dist/parent-demo/contact/command.d.ts +2 -0
  648. package/dist/parent-demo/contact/command.js +79 -0
  649. package/dist/parent-demo/desktop/command.d.ts +21 -0
  650. package/dist/parent-demo/desktop/command.js +120 -0
  651. package/dist/parent-demo/doctor/checks.d.ts +25 -0
  652. package/dist/parent-demo/doctor/checks.js +584 -0
  653. package/dist/parent-demo/doctor/command.d.ts +4 -0
  654. package/dist/parent-demo/doctor/command.js +94 -0
  655. package/dist/parent-demo/doctor/format.d.ts +7 -0
  656. package/dist/parent-demo/doctor/format.js +41 -0
  657. package/dist/parent-demo/doctor/heal.d.ts +14 -0
  658. package/dist/parent-demo/doctor/heal.js +71 -0
  659. package/dist/parent-demo/doctor/pins.d.ts +8 -0
  660. package/dist/parent-demo/doctor/pins.js +28 -0
  661. package/dist/parent-demo/doctor/skills.d.ts +15 -0
  662. package/dist/parent-demo/doctor/skills.js +58 -0
  663. package/dist/parent-demo/doctor/types.d.ts +36 -0
  664. package/dist/parent-demo/doctor/types.js +1 -0
  665. package/dist/parent-demo/doctor/vendored.d.ts +15 -0
  666. package/dist/parent-demo/doctor/vendored.js +90 -0
  667. package/dist/parent-demo/doctor/version.d.ts +8 -0
  668. package/dist/parent-demo/doctor/version.js +11 -0
  669. package/dist/parent-demo/exit-codes.d.ts +16 -0
  670. package/dist/parent-demo/exit-codes.js +15 -0
  671. package/dist/parent-demo/fit/command.d.ts +5 -0
  672. package/dist/parent-demo/fit/command.js +154 -0
  673. package/dist/parent-demo/fit/solve.d.ts +21 -0
  674. package/dist/parent-demo/fit/solve.js +80 -0
  675. package/dist/parent-demo/fit/target.d.ts +18 -0
  676. package/dist/parent-demo/fit/target.js +47 -0
  677. package/dist/parent-demo/generate3d/command.d.ts +3 -0
  678. package/dist/parent-demo/generate3d/command.js +38 -0
  679. package/dist/parent-demo/generate3d/run.d.ts +39 -0
  680. package/dist/parent-demo/generate3d/run.js +77 -0
  681. package/dist/parent-demo/icon/command.d.ts +2 -0
  682. package/dist/parent-demo/icon/command.js +113 -0
  683. package/dist/parent-demo/index.d.ts +18 -0
  684. package/dist/parent-demo/index.js +16 -0
  685. package/dist/parent-demo/install-mk.d.ts +31 -0
  686. package/dist/parent-demo/install-mk.js +168 -0
  687. package/dist/parent-demo/integration/interaction.integration.d.ts +1 -0
  688. package/dist/parent-demo/integration/interaction.integration.js +95 -0
  689. package/dist/parent-demo/integration/preview.integration.d.ts +1 -0
  690. package/dist/parent-demo/integration/preview.integration.js +61 -0
  691. package/dist/parent-demo/integration/smoke.integration.d.ts +1 -0
  692. package/dist/parent-demo/integration/smoke.integration.js +91 -0
  693. package/dist/parent-demo/interaction/command.d.ts +4 -0
  694. package/dist/parent-demo/interaction/command.js +219 -0
  695. package/dist/parent-demo/interaction/document.d.ts +55 -0
  696. package/dist/parent-demo/interaction/document.js +104 -0
  697. package/dist/parent-demo/interaction/driver.d.ts +29 -0
  698. package/dist/parent-demo/interaction/driver.js +278 -0
  699. package/dist/parent-demo/main.d.ts +2 -0
  700. package/dist/parent-demo/main.js +4 -0
  701. package/dist/parent-demo/mcp/server.d.ts +89 -0
  702. package/dist/parent-demo/mcp/server.js +479 -0
  703. package/dist/parent-demo/node-io.d.ts +14 -0
  704. package/dist/parent-demo/node-io.js +153 -0
  705. package/dist/parent-demo/optimize/command.d.ts +12 -0
  706. package/dist/parent-demo/optimize/command.js +110 -0
  707. package/dist/parent-demo/packs/command.d.ts +2 -0
  708. package/dist/parent-demo/packs/command.js +109 -0
  709. package/dist/parent-demo/patch/apply.d.ts +36 -0
  710. package/dist/parent-demo/patch/apply.js +186 -0
  711. package/dist/parent-demo/patch/command.d.ts +2 -0
  712. package/dist/parent-demo/patch/command.js +92 -0
  713. package/dist/parent-demo/plugin/install.d.ts +40 -0
  714. package/dist/parent-demo/plugin/install.js +170 -0
  715. package/dist/parent-demo/preview/command.d.ts +10 -0
  716. package/dist/parent-demo/preview/command.js +945 -0
  717. package/dist/parent-demo/preview/manifest.d.ts +105 -0
  718. package/dist/parent-demo/preview/manifest.js +19 -0
  719. package/dist/parent-demo/preview/pack.d.ts +24 -0
  720. package/dist/parent-demo/preview/pack.js +53 -0
  721. package/dist/parent-demo/preview/plan.d.ts +61 -0
  722. package/dist/parent-demo/preview/plan.js +205 -0
  723. package/dist/parent-demo/preview/provenance.d.ts +23 -0
  724. package/dist/parent-demo/preview/provenance.js +38 -0
  725. package/dist/parent-demo/publish/command.d.ts +2 -0
  726. package/dist/parent-demo/publish/command.js +230 -0
  727. package/dist/parent-demo/publish/player.d.ts +61 -0
  728. package/dist/parent-demo/publish/player.js +728 -0
  729. package/dist/parent-demo/publish/static.d.ts +16 -0
  730. package/dist/parent-demo/publish/static.js +78 -0
  731. package/dist/parent-demo/qc.d.ts +2 -0
  732. package/dist/parent-demo/qc.js +192 -0
  733. package/dist/parent-demo/scene/author.d.ts +16 -0
  734. package/dist/parent-demo/scene/author.js +519 -0
  735. package/dist/parent-demo/scene/command.d.ts +2 -0
  736. package/dist/parent-demo/scene/command.js +110 -0
  737. package/dist/parent-demo/scene/ops.d.ts +23 -0
  738. package/dist/parent-demo/scene/ops.js +151 -0
  739. package/dist/parent-demo/state/command.d.ts +2 -0
  740. package/dist/parent-demo/state/command.js +128 -0
  741. package/dist/parent-demo/state/evidence.d.ts +73 -0
  742. package/dist/parent-demo/state/evidence.js +1 -0
  743. package/dist/parent-demo/storyboard/check.d.ts +21 -0
  744. package/dist/parent-demo/storyboard/check.js +39 -0
  745. package/dist/parent-demo/storyboard/containment.d.ts +24 -0
  746. package/dist/parent-demo/storyboard/containment.js +43 -0
  747. package/dist/parent-demo/storyboard/custom.d.ts +15 -0
  748. package/dist/parent-demo/storyboard/custom.js +133 -0
  749. package/dist/parent-demo/storyboard/edit.d.ts +19 -0
  750. package/dist/parent-demo/storyboard/edit.js +39 -0
  751. package/dist/parent-demo/storyboard/load.d.ts +11 -0
  752. package/dist/parent-demo/storyboard/load.js +52 -0
  753. package/dist/parent-demo/storyboard/report.d.ts +5 -0
  754. package/dist/parent-demo/storyboard/report.js +8 -0
  755. package/dist/parent-demo/template/coerce.d.ts +6 -0
  756. package/dist/parent-demo/template/coerce.js +44 -0
  757. package/dist/parent-demo/template/command.d.ts +5 -0
  758. package/dist/parent-demo/template/command.js +163 -0
  759. package/dist/parent-demo/template/env.d.ts +38 -0
  760. package/dist/parent-demo/template/env.js +40 -0
  761. package/dist/parent-demo/template/fork.d.ts +8 -0
  762. package/dist/parent-demo/template/fork.js +156 -0
  763. package/dist/parent-demo/template/format.d.ts +21 -0
  764. package/dist/parent-demo/template/format.js +177 -0
  765. package/dist/parent-demo/template/list.d.ts +27 -0
  766. package/dist/parent-demo/template/list.js +171 -0
  767. package/dist/parent-demo/template/new.d.ts +6 -0
  768. package/dist/parent-demo/template/new.js +335 -0
  769. package/dist/parent-demo/testing/env.d.ts +9 -0
  770. package/dist/parent-demo/testing/env.js +49 -0
  771. package/dist/parent-demo/testing/fakes.d.ts +39 -0
  772. package/dist/parent-demo/testing/fakes.js +100 -0
  773. package/dist/parent-demo/testing/fixtures.d.ts +8 -0
  774. package/dist/parent-demo/testing/fixtures.js +6 -0
  775. package/dist/parent-demo/testing/probe.d.ts +15 -0
  776. package/dist/parent-demo/testing/probe.js +20 -0
  777. package/dist/parent-demo/testing/project.d.ts +22 -0
  778. package/dist/parent-demo/testing/project.js +26 -0
  779. package/dist/parent-demo/tooling/session.d.ts +40 -0
  780. package/dist/parent-demo/tooling/session.js +106 -0
  781. package/dist/parent-demo/types.d.ts +64 -0
  782. package/dist/parent-demo/types.js +1 -0
  783. package/dist/parent-demo/verify/audio-loudness.d.ts +81 -0
  784. package/dist/parent-demo/verify/audio-loudness.js +306 -0
  785. package/dist/parent-demo/verify/caption.d.ts +23 -0
  786. package/dist/parent-demo/verify/caption.fixtures.d.ts +148 -0
  787. package/dist/parent-demo/verify/caption.fixtures.js +66 -0
  788. package/dist/parent-demo/verify/caption.js +105 -0
  789. package/dist/parent-demo/verify/command.d.ts +2 -0
  790. package/dist/parent-demo/verify/command.js +190 -0
  791. package/dist/parent-demo/verify/determinism.d.ts +30 -0
  792. package/dist/parent-demo/verify/determinism.js +59 -0
  793. package/dist/parent-demo/verify/expectation.d.ts +15 -0
  794. package/dist/parent-demo/verify/expectation.js +19 -0
  795. package/dist/parent-demo/verify/flash.d.ts +55 -0
  796. package/dist/parent-demo/verify/flash.js +147 -0
  797. package/dist/parent-demo/verify/media-events.d.ts +61 -0
  798. package/dist/parent-demo/verify/media-events.js +174 -0
  799. package/dist/parent-demo/verify/motion-coherence.d.ts +99 -0
  800. package/dist/parent-demo/verify/motion-coherence.js +274 -0
  801. package/dist/parent-demo/verify/platform.d.ts +33 -0
  802. package/dist/parent-demo/verify/platform.js +59 -0
  803. package/dist/parent-demo/verify/probe.d.ts +14 -0
  804. package/dist/parent-demo/verify/probe.js +23 -0
  805. package/dist/parent-demo/verify/report.d.ts +15 -0
  806. package/dist/parent-demo/verify/report.js +45 -0
  807. package/dist/parent-demo/verify/run.d.ts +32 -0
  808. package/dist/parent-demo/verify/run.js +64 -0
  809. package/dist/parent-demo/version/command.d.ts +5 -0
  810. package/dist/parent-demo/version/command.js +52 -0
  811. package/dist/parent-demo/voice/command.d.ts +3 -0
  812. package/dist/parent-demo/voice/command.js +77 -0
  813. package/dist/parent-demo/voice/manifest.d.ts +33 -0
  814. package/dist/parent-demo/voice/manifest.js +69 -0
  815. package/dist/parent-demo/voice/portability.d.ts +27 -0
  816. package/dist/parent-demo/voice/portability.js +41 -0
  817. package/dist/parent-demo/voice/run.d.ts +29 -0
  818. package/dist/parent-demo/voice/run.js +224 -0
  819. package/dist/parent-demo/workflow/build.d.ts +2 -0
  820. package/dist/parent-demo/workflow/build.js +33 -0
  821. package/dist/parent-demo/workflow/draft.d.ts +9 -0
  822. package/dist/parent-demo/workflow/draft.js +230 -0
  823. package/dist/parent-demo/workflow/finish.d.ts +23 -0
  824. package/dist/parent-demo/workflow/finish.js +28 -0
  825. package/dist/parent-demo/workflow/project.d.ts +82 -0
  826. package/dist/parent-demo/workflow/project.js +224 -0
  827. package/dist/parent-demo/workflow/provenance.d.ts +18 -0
  828. package/dist/parent-demo/workflow/provenance.js +36 -0
  829. package/dist/parent-demo/workflow/render.d.ts +78 -0
  830. package/dist/parent-demo/workflow/render.js +922 -0
  831. package/dist/parent-demo/workflow/still.d.ts +5 -0
  832. package/dist/parent-demo/workflow/still.js +79 -0
  833. package/dist/parent-demo/workflow/validate.d.ts +2 -0
  834. package/dist/parent-demo/workflow/validate.js +49 -0
  835. package/dist/plugin/install.d.ts +3 -3
  836. package/dist/plugin/install.js +2 -2
  837. package/dist/preview/command.js +169 -94
  838. package/dist/preview/manifest.d.ts +2 -0
  839. package/dist/preview/plan.js +1 -1
  840. package/dist/publish/command.js +189 -29
  841. package/dist/publish/player.d.ts +42 -6
  842. package/dist/publish/player.js +660 -40
  843. package/dist/scene/author.d.ts +1 -1
  844. package/dist/scene/author.js +250 -10
  845. package/dist/state/evidence.d.ts +4 -2
  846. package/dist/state/evidence.js +17 -4
  847. package/dist/template/env.d.ts +4 -0
  848. package/dist/template/env.js +3 -1
  849. package/dist/template/format.js +28 -12
  850. package/dist/template/list.d.ts +13 -1
  851. package/dist/template/list.js +61 -6
  852. package/dist/template/new.js +37 -4
  853. package/dist/testing/env.d.ts +1 -0
  854. package/dist/testing/env.js +32 -2
  855. package/dist/testing/fakes.d.ts +7 -1
  856. package/dist/testing/fakes.js +7 -2
  857. package/dist/types.d.ts +5 -0
  858. package/dist/verify/audio-loudness.d.ts +38 -3
  859. package/dist/verify/audio-loudness.js +123 -3
  860. package/dist/verify/caption.d.ts +23 -0
  861. package/dist/verify/caption.fixtures.d.ts +148 -0
  862. package/dist/verify/caption.fixtures.js +66 -0
  863. package/dist/verify/caption.js +105 -0
  864. package/dist/verify/command.js +42 -13
  865. package/dist/verify/determinism.d.ts +5 -5
  866. package/dist/verify/determinism.js +6 -6
  867. package/dist/verify/flash.d.ts +55 -0
  868. package/dist/verify/flash.js +147 -0
  869. package/dist/verify/motion-coherence.d.ts +99 -0
  870. package/dist/verify/motion-coherence.js +274 -0
  871. package/dist/verify/platform.d.ts +3 -3
  872. package/dist/verify/platform.js +5 -5
  873. package/dist/verify/run.d.ts +5 -0
  874. package/dist/verify/run.js +11 -0
  875. package/dist/voice/portability.d.ts +27 -0
  876. package/dist/voice/portability.js +41 -0
  877. package/dist/voice/run.js +31 -17
  878. package/dist/workflow/build.js +11 -3
  879. package/dist/workflow/draft.js +24 -9
  880. package/dist/workflow/project.d.ts +10 -1
  881. package/dist/workflow/project.js +29 -3
  882. package/dist/workflow/render.d.ts +41 -2
  883. package/dist/workflow/render.js +217 -54
  884. package/dist/workflow/still.js +30 -13
  885. package/package.json +6 -5
@@ -0,0 +1,70 @@
1
+ /** Cue parsing/formatting for SRT and WebVTT (the caption interchange formats). */
2
+ const TIMING = /^(\d{1,2}:)?(\d{2}):(\d{2})[.,](\d{1,3})$/;
3
+ const seconds = (hh, mm, ss, ms) => Number(hh?.slice(0, -1) ?? 0) * 3600 +
4
+ Number(mm) * 60 +
5
+ Number(ss) +
6
+ Number(ms.padEnd(3, "0")) / 1000;
7
+ const parseStamp = (text) => {
8
+ const match = TIMING.exec(text.trim());
9
+ if (match === null)
10
+ return undefined;
11
+ return seconds(match[1], match[2] ?? "0", match[3] ?? "0", match[4] ?? "0");
12
+ };
13
+ const clean = (text) => text
14
+ .replace(/<[^>]+>/g, "")
15
+ .replace(/\s+/g, " ")
16
+ .trim();
17
+ /**
18
+ * Parses cue blocks; an index line and the WEBVTT header are ignored. Malformed
19
+ * cues are counted in `skipped` instead of silently disappearing, so the caller
20
+ * can report them (same policy as the main path's `omitted` word count).
21
+ */
22
+ export function parseCues(text, kind) {
23
+ const blocks = text.replaceAll("\r\n", "\n").split(/\n{2,}/);
24
+ const cues = [];
25
+ let skipped = 0;
26
+ for (const block of blocks) {
27
+ const lines = block.split("\n").map((line) => line.trim());
28
+ if (lines.length === 0)
29
+ continue;
30
+ const timingIndex = lines.findIndex((line) => line.includes("-->"));
31
+ if (timingIndex === -1)
32
+ continue;
33
+ const [from = "", to = ""] = (lines[timingIndex] ?? "").split("-->");
34
+ const start = parseStamp(from);
35
+ const end = parseStamp(to.trim().split(/\s+/)[0] ?? "");
36
+ if (start === undefined || end === undefined || end <= start) {
37
+ skipped += 1;
38
+ continue;
39
+ }
40
+ const body = clean(lines.slice(timingIndex + 1).join(" "));
41
+ if (body === "") {
42
+ skipped += 1;
43
+ continue;
44
+ }
45
+ cues.push({ start, end, text: body });
46
+ }
47
+ if (kind === "vtt")
48
+ cues.sort((a, b) => a.start - b.start);
49
+ return { cues, skipped };
50
+ }
51
+ const stamp = (value, separator) => {
52
+ const total = Math.max(0, Math.round(value * 1000));
53
+ const ms = total % 1000;
54
+ const sec = Math.floor(total / 1000) % 60;
55
+ const min = Math.floor(total / 60_000) % 60;
56
+ const hour = Math.floor(total / 3_600_000);
57
+ const two = (n) => String(n).padStart(2, "0");
58
+ return `${two(hour)}:${two(min)}:${two(sec)}${separator}${String(ms).padStart(3, "0")}`;
59
+ };
60
+ export function formatSrt(cues) {
61
+ return `${cues
62
+ .map((cue, index) => `${index + 1}\n${stamp(cue.start, ",")} --> ${stamp(cue.end, ",")}\n${cue.text}`)
63
+ .join("\n\n")}\n`;
64
+ }
65
+ export function formatVtt(cues) {
66
+ const body = cues
67
+ .map((cue) => `${stamp(cue.start, ".")} --> ${stamp(cue.end, ".")}\n${cue.text}`)
68
+ .join("\n\n");
69
+ return `WEBVTT\n\n${body}\n`;
70
+ }
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const catalogCommand: Command;
@@ -0,0 +1,60 @@
1
+ import { join } from "node:path";
2
+ import { sceneDocs } from "@anvpx/motion-build";
3
+ import { parseFlags, requirePositional, textFlag, usageError } from "../args.js";
4
+ import { EXIT } from "../exit-codes.js";
5
+ import { detailJson, formatCatalogMarkdown, formatDetail, formatIndex, indexJson, } from "./format.js";
6
+ const USAGE = `mk catalog [<scene>] [--json] [--write [--out <file>]]
7
+
8
+ No argument: one line per scene (type, layer, purpose, required fields).
9
+ With <scene>: its fields, types, defaults and a minimal example.
10
+ --json one compact JSON line instead of text
11
+ --write write CATALOG.md in the current directory (or --out <file>) from the registry
12
+ `;
13
+ const FLAGS = {
14
+ json: { type: "boolean" },
15
+ write: { type: "boolean" },
16
+ out: { type: "string" },
17
+ };
18
+ /** Default `--write` destination: the invoking directory, never the repo root. */
19
+ const defaultCatalogFile = () => join(process.cwd(), "CATALOG.md");
20
+ const pick = (docs, type) => docs.find((doc) => doc.type === type);
21
+ async function writeCatalog(docs, flags, positionals, io) {
22
+ if (positionals.length > 0)
23
+ return usageError("catalog", USAGE, "--write takes no scene", io).code;
24
+ const file = textFlag(flags, "out") ?? defaultCatalogFile();
25
+ const text = formatCatalogMarkdown(docs);
26
+ await io.host.writeText(file, text);
27
+ io.stdout(`wrote ${file} (${text.length} chars, ${docs.length} scenes)
28
+ `);
29
+ return EXIT.OK;
30
+ }
31
+ function showScene(docs, positionals, json, io) {
32
+ const type = requirePositional("catalog", USAGE, positionals, "<scene>", io);
33
+ if (typeof type !== "string")
34
+ return type.code;
35
+ const doc = pick(docs, type);
36
+ if (!doc) {
37
+ const known = docs.map((d) => d.type).join("|");
38
+ return usageError("catalog", USAGE, `unknown scene "${type}"; use one of: ${known}`, io).code;
39
+ }
40
+ io.stdout(json ? detailJson(doc) : formatDetail(doc));
41
+ return EXIT.OK;
42
+ }
43
+ export const catalogCommand = {
44
+ name: "catalog",
45
+ summary: "list scene types, or show one scene's fields and example; --write refreshes CATALOG.md",
46
+ async run(args, io) {
47
+ const parsed = parseFlags("catalog", USAGE, args, FLAGS, io);
48
+ if (parsed.kind === "exit")
49
+ return parsed.code;
50
+ const { flags, positionals } = parsed;
51
+ const docs = sceneDocs();
52
+ if (flags.write === true)
53
+ return writeCatalog(docs, flags, positionals, io);
54
+ const json = flags.json === true;
55
+ if (positionals.length > 0)
56
+ return showScene(docs, positionals, json, io);
57
+ io.stdout(json ? indexJson(docs) : formatIndex(docs));
58
+ return EXIT.OK;
59
+ },
60
+ };
@@ -0,0 +1,13 @@
1
+ import type { SceneDoc } from "@anvpx/motion-build";
2
+ /** Constitution 8.4: the index stays within 3k tokens (estimated as chars / 4). */
3
+ export declare const INDEX_TOKEN_BUDGET = 3000;
4
+ export declare const CHARS_PER_TOKEN = 4;
5
+ /** One line per scene: `type | layer | purpose | required fields`. */
6
+ export declare const formatIndex: (docs: readonly SceneDoc[]) => string;
7
+ /** Fields (`*` = required), types, defaults and a minimal example of one scene. */
8
+ export declare const formatDetail: (doc: SceneDoc) => string;
9
+ export declare const indexJson: (docs: readonly SceneDoc[]) => string;
10
+ export declare const detailJson: (doc: SceneDoc) => string;
11
+ /** The committed CATALOG.md: deterministic, generated, index first. */
12
+ export declare const formatCatalogMarkdown: (docs: readonly SceneDoc[]) => string;
13
+ export declare const estimateTokens: (text: string) => number;
@@ -0,0 +1,54 @@
1
+ /** Constitution 8.4: the index stays within 3k tokens (estimated as chars / 4). */
2
+ export const INDEX_TOKEN_BUDGET = 3000;
3
+ export const CHARS_PER_TOKEN = 4;
4
+ const required = (doc) => doc.fields.filter((f) => f.required).map((f) => f.name);
5
+ const indexLine = (doc) => `${doc.type} | ${doc.layer} | ${doc.purpose} | ${required(doc).join(",") || "-"}`;
6
+ /** One line per scene: `type | layer | purpose | required fields`. */
7
+ export const formatIndex = (docs) => [
8
+ "type | layer | purpose | required",
9
+ ...docs.map(indexLine),
10
+ "Detail: `mk catalog <type>`. Props are strict; unlisted keys are rejected.",
11
+ "",
12
+ ].join("\n");
13
+ const fieldLine = (field, width) => {
14
+ const mark = field.required ? "*" : " ";
15
+ const fallback = "default" in field ? ` = ${JSON.stringify(field.default)}` : "";
16
+ return ` ${field.name.padEnd(width)}${mark} ${field.type}${fallback}`;
17
+ };
18
+ /** Fields (`*` = required), types, defaults and a minimal example of one scene. */
19
+ export const formatDetail = (doc) => {
20
+ const width = Math.max(0, ...doc.fields.map((f) => f.name.length));
21
+ return [
22
+ `${doc.type} (${doc.layer}): ${doc.purpose}`,
23
+ ...(doc.fields.length === 0 ? [" (no props)"] : doc.fields.map((f) => fieldLine(f, width))),
24
+ ...(doc.fields.some((f) => f.type.includes("icon"))
25
+ ? ["icons: `mk icon search <query>` | `mk icon list [--tag group]` (names only)"]
26
+ : []),
27
+ `props: ${JSON.stringify(doc.example)}`,
28
+ "",
29
+ ].join("\n");
30
+ };
31
+ export const indexJson = (docs) => `${JSON.stringify(docs.map((doc) => ({
32
+ type: doc.type,
33
+ layer: doc.layer,
34
+ purpose: doc.purpose,
35
+ required: required(doc),
36
+ })))}\n`;
37
+ export const detailJson = (doc) => `${JSON.stringify(doc)}\n`;
38
+ /** The committed CATALOG.md: deterministic, generated, index first. */
39
+ export const formatCatalogMarkdown = (docs) => [
40
+ "# Catalog",
41
+ "",
42
+ "Generated by `mk catalog --write` from the scene registry; do not edit. Read the index, then `mk catalog <type>` for one scene. `*` marks a required field.",
43
+ "",
44
+ "## Index",
45
+ "",
46
+ "```",
47
+ formatIndex(docs).trimEnd(),
48
+ "```",
49
+ "",
50
+ "## Scenes",
51
+ "",
52
+ ...docs.flatMap((doc) => ["```", formatDetail(doc).trimEnd(), "```", ""]),
53
+ ].join("\n");
54
+ export const estimateTokens = (text) => Math.ceil(text.length / CHARS_PER_TOKEN);
@@ -0,0 +1,3 @@
1
+ import type { Command, Io } from "./types.ts";
2
+ /** Dispatches argv (without node/script) to a command; resolves to the exit code. */
3
+ export declare function runCli(argv: readonly string[], io: Io, commands?: readonly Command[]): Promise<number>;
@@ -0,0 +1,35 @@
1
+ import { COMMANDS } from "./commands.js";
2
+ import { helpSkillFile } from "./doctor/skills.js";
3
+ const SKILLS_NOTE = "(brief -> storyboard -> preview -> render protocol)";
4
+ function helpText(commands) {
5
+ const width = Math.max(0, ...commands.map((c) => c.name.length));
6
+ const rows = commands.map((c) => ` ${c.name.padEnd(width)} ${c.summary}`);
7
+ return [
8
+ "mk <command> [flags]",
9
+ "",
10
+ "Commands:",
11
+ ...rows,
12
+ "",
13
+ "One command: mk <command> --help",
14
+ "",
15
+ `skills: ${helpSkillFile()} ${SKILLS_NOTE}`,
16
+ "",
17
+ ].join("\n");
18
+ }
19
+ function isHelp(arg) {
20
+ return arg === undefined || arg === "--help" || arg === "-h";
21
+ }
22
+ /** Dispatches argv (without node/script) to a command; resolves to the exit code. */
23
+ export async function runCli(argv, io, commands = COMMANDS) {
24
+ const [name, ...rest] = argv;
25
+ if (isHelp(name)) {
26
+ io.stdout(helpText(commands));
27
+ return 0;
28
+ }
29
+ const command = commands.find((c) => c.name === name);
30
+ if (!command) {
31
+ io.stderr(`mk: unknown command "${name}". Run \`mk --help\`.\n`);
32
+ return 2;
33
+ }
34
+ return command.run(rest, io);
35
+ }
@@ -0,0 +1,3 @@
1
+ import type { Command } from "./types.ts";
2
+ /** Command registry: a new command is one more entry here. */
3
+ export declare const COMMANDS: readonly Command[];
@@ -0,0 +1,65 @@
1
+ import { analyzeCommand } from "./analyze/command.js";
2
+ import { approveCommand } from "./approval/command.js";
3
+ import { assetsCommand } from "./assets/command.js";
4
+ import { captionsCommand } from "./captions/command.js";
5
+ import { catalogCommand } from "./catalog/command.js";
6
+ import { compareCommand } from "./compare/command.js";
7
+ import { contactCommand } from "./contact/command.js";
8
+ import { desktopCommand } from "./desktop/command.js";
9
+ import { doctorCommand } from "./doctor/command.js";
10
+ import { fitCommand } from "./fit/command.js";
11
+ import { generate3dCommand } from "./generate3d/command.js";
12
+ import { iconCommand } from "./icon/command.js";
13
+ import { interactionCommand } from "./interaction/command.js";
14
+ import { optimizeModelCommand } from "./optimize/command.js";
15
+ import { patchCommand } from "./patch/command.js";
16
+ import { pluginCommand } from "./plugin/install.js";
17
+ import { previewCommand } from "./preview/command.js";
18
+ import { publishCommand } from "./publish/command.js";
19
+ import { qcCommand } from "./qc.js";
20
+ import { sceneCommand } from "./scene/command.js";
21
+ import { stateCommand } from "./state/command.js";
22
+ import { templateCommand } from "./template/command.js";
23
+ import { newCommand } from "./template/new.js";
24
+ import { verifyCommand } from "./verify/command.js";
25
+ import { versionCommand } from "./version/command.js";
26
+ import { voiceCommand } from "./voice/command.js";
27
+ import { buildCommand } from "./workflow/build.js";
28
+ import { draftCommand } from "./workflow/draft.js";
29
+ import { renderCommand } from "./workflow/render.js";
30
+ import { stillCommand } from "./workflow/still.js";
31
+ import { validateCommand } from "./workflow/validate.js";
32
+ /** Command registry: a new command is one more entry here. */
33
+ export const COMMANDS = [
34
+ doctorCommand,
35
+ validateCommand,
36
+ buildCommand,
37
+ stillCommand,
38
+ compareCommand,
39
+ draftCommand,
40
+ renderCommand,
41
+ verifyCommand,
42
+ stateCommand,
43
+ analyzeCommand,
44
+ qcCommand,
45
+ captionsCommand,
46
+ catalogCommand,
47
+ contactCommand,
48
+ templateCommand,
49
+ newCommand,
50
+ previewCommand,
51
+ publishCommand,
52
+ interactionCommand,
53
+ approveCommand,
54
+ patchCommand,
55
+ sceneCommand,
56
+ fitCommand,
57
+ iconCommand,
58
+ assetsCommand,
59
+ pluginCommand,
60
+ desktopCommand,
61
+ voiceCommand,
62
+ optimizeModelCommand,
63
+ generate3dCommand,
64
+ versionCommand,
65
+ ];
@@ -0,0 +1,4 @@
1
+ import type { Command } from "../types.ts";
2
+ /** Wide enough to judge composition: 2-4 candidates give a 1280-2560 px sheet. */
3
+ export declare const COMPARE_TILE_WIDTH = 640;
4
+ export declare const compareCommand: Command;
@@ -0,0 +1,144 @@
1
+ import { basename, dirname, extname, join, resolve } from "node:path";
2
+ import { parseFlags, textFlag, usageError } from "../args.js";
3
+ import { EXIT } from "../exit-codes.js";
4
+ import { clearPngs, contactSheet, listPngs } from "../preview/pack.js";
5
+ import { runInProject } from "../tooling/session.js";
6
+ import { PROJECT_FLAGS, prepareProject } from "../workflow/project.js";
7
+ import { STILLS_DIR, stillSnapshotArgs } from "../workflow/still.js";
8
+ const NAME = "compare";
9
+ const USAGE = `mk compare <a.json> <b.json> [<c.json> [<d.json>]] --at <seconds> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--json]
10
+
11
+ Build two to four storyboards and capture one still of each at the same second
12
+ (hyperframes snapshot --at <seconds> --no-end), then tile them into one PNG
13
+ in the order given, so candidates can be compared by eye instead of by text.
14
+ Default <out>: <first storyboard dir>/out/compare. Each storyboard builds into
15
+ <out>/<storyboard name>; the sheet is <out>/compare-<at>.png (one output line).
16
+ --json: one compact line {at, png, items: [{storyboard, still, sha256}]}.
17
+ `;
18
+ const FLAGS = {
19
+ ...PROJECT_FLAGS,
20
+ at: { type: "string" },
21
+ json: { type: "boolean" },
22
+ };
23
+ const MIN_BOARDS = 2;
24
+ const MAX_BOARDS = 4;
25
+ /** One timestamp (no list, unlike `mk still --at`). */
26
+ const ONE_TIME = /^\d+(\.\d+)?$/;
27
+ /** Same per-scene build cache location `parseBuildArgs` uses. */
28
+ const CACHE_DIR = ".mk-cache";
29
+ const LIST_FILE = "compare-stills.txt";
30
+ /** Wide enough to judge composition: 2-4 candidates give a 1280-2560 px sheet. */
31
+ export const COMPARE_TILE_WIDTH = 640;
32
+ /** A copy of `io` whose output is captured, so wrapped builds stay quiet on stdout. */
33
+ const captured = (io) => {
34
+ const err = [];
35
+ return { io: { ...io, stdout: () => { }, stderr: (text) => err.push(text) }, err };
36
+ };
37
+ const stemOf = (storyboard) => basename(storyboard, extname(storyboard));
38
+ /** The request `parseBuildArgs` (workflow/project.ts) builds for one storyboard, with compare's out dir. */
39
+ function requestFor(storyboard, outDir, flags) {
40
+ const assets = textFlag(flags, "assets");
41
+ const ledger = textFlag(flags, "ledger");
42
+ const shared = textFlag(flags, "shared-cache-dir");
43
+ return {
44
+ storyboard,
45
+ outDir,
46
+ ...(assets === undefined ? {} : { assetsDir: resolve(assets) }),
47
+ ...(ledger === undefined ? {} : { ledger }),
48
+ ...(shared === undefined ? {} : { sharedCacheDir: resolve(shared) }),
49
+ incremental: flags.incremental === true,
50
+ cleanCache: flags["clean-cache"] === true,
51
+ cacheDir: join(dirname(resolve(storyboard)), CACHE_DIR),
52
+ };
53
+ }
54
+ function readOptions(args, io) {
55
+ const parsed = parseFlags(NAME, USAGE, args, FLAGS, io);
56
+ if (parsed.kind === "exit")
57
+ return parsed.code;
58
+ const [first] = parsed.positionals;
59
+ if (first === undefined || parsed.positionals.length < MIN_BOARDS) {
60
+ return usageError(NAME, USAGE, "need at least two storyboards to compare", io).code;
61
+ }
62
+ if (parsed.positionals.length > MAX_BOARDS) {
63
+ return usageError(NAME, USAGE, "at most four storyboards", io).code;
64
+ }
65
+ const stems = parsed.positionals.map(stemOf);
66
+ const repeated = stems.find((stem, index) => stems.indexOf(stem) !== index);
67
+ if (repeated !== undefined) {
68
+ return usageError(NAME, USAGE, `two storyboards share the name "${repeated}"; each builds into <out>/<name>, so rename one`, io).code;
69
+ }
70
+ if (parsed.flags.incremental === true && parsed.flags["no-incremental"] === true) {
71
+ return usageError(NAME, USAGE, "--incremental and --no-incremental conflict", io).code;
72
+ }
73
+ const at = textFlag(parsed.flags, "at");
74
+ if (at === undefined)
75
+ return usageError(NAME, USAGE, "missing --at <seconds>", io).code;
76
+ if (!ONE_TIME.test(at)) {
77
+ return usageError(NAME, USAGE, "--at needs one timestamp in seconds like 3 or 1.5", io).code;
78
+ }
79
+ return {
80
+ boards: parsed.positionals,
81
+ at,
82
+ out: resolve(textFlag(parsed.flags, "out") ?? join(dirname(resolve(first)), "out", "compare")),
83
+ json: parsed.flags.json === true,
84
+ flags: parsed.flags,
85
+ };
86
+ }
87
+ /** Builds one storyboard and captures its single still; a number is the exit code on failure. */
88
+ async function stillOf(io, request, at) {
89
+ const name = basename(request.storyboard);
90
+ const build = captured(io);
91
+ const prepared = await prepareProject(request, build.io);
92
+ if (!prepared.ok) {
93
+ io.stderr(`mk ${NAME}: ${name}: build failed\n${build.err.join("")}`);
94
+ return EXIT.ERROR;
95
+ }
96
+ io.stderr(build.err.join(""));
97
+ const dir = join(prepared.outDir, STILLS_DIR);
98
+ await clearPngs(io.host, dir);
99
+ const snap = captured(io);
100
+ const code = await runInProject(snap.io, prepared.outDir, async (session) => {
101
+ await session.hf(stillSnapshotArgs(at));
102
+ });
103
+ if (code !== EXIT.OK) {
104
+ io.stderr(`mk ${NAME}: ${name}: snapshot failed\n${snap.err.join("")}`);
105
+ return EXIT.ERROR;
106
+ }
107
+ const stills = await listPngs(io.host, dir);
108
+ const still = stills[0];
109
+ if (stills.length !== 1 || still === undefined) {
110
+ io.stderr(`mk ${NAME}: ${name}: expected one still at ${at}s, hyperframes wrote ${stills.length}\n`);
111
+ return EXIT.ERROR;
112
+ }
113
+ const sha256 = await io.host.sha256File(still);
114
+ if (sha256 === undefined) {
115
+ io.stderr(`mk ${NAME}: ${name}: cannot read the still ${still}\n`);
116
+ return EXIT.ERROR;
117
+ }
118
+ return { storyboard: name, still, sha256 };
119
+ }
120
+ export const compareCommand = {
121
+ name: NAME,
122
+ summary: "build 2-4 storyboards, one still each at the same --at second, tiled into one PNG",
123
+ async run(args, io) {
124
+ const options = readOptions(args, io);
125
+ if (typeof options === "number")
126
+ return options;
127
+ const items = [];
128
+ for (const storyboard of options.boards) {
129
+ const outDir = join(options.out, stemOf(storyboard));
130
+ const item = await stillOf(io, requestFor(storyboard, outDir, options.flags), options.at);
131
+ if (typeof item === "number")
132
+ return item;
133
+ items.push(item);
134
+ }
135
+ const png = join(options.out, `compare-${options.at}.png`);
136
+ const tiled = await contactSheet(io, items.map((item) => item.still), join(options.out, LIST_FILE), png, COMPARE_TILE_WIDTH);
137
+ if (tiled !== EXIT.OK) {
138
+ io.stderr(`mk ${NAME}: tiling the stills failed\n`);
139
+ return EXIT.ERROR;
140
+ }
141
+ io.stdout(options.json ? `${JSON.stringify({ at: Number(options.at), png, items })}\n` : `${png}\n`);
142
+ return EXIT.OK;
143
+ },
144
+ };
@@ -0,0 +1,24 @@
1
+ export declare const DEFAULT_COLS = 4;
2
+ export declare const DEFAULT_COUNT = 12;
3
+ export declare const MAX_COUNT = 64;
4
+ /** Width of one tile in px; height follows the aspect ratio (even). */
5
+ export declare const TILE_WIDTH = 320;
6
+ export interface ContactPlan {
7
+ file: string;
8
+ out: string;
9
+ /** Seconds, > 0. */
10
+ duration: number;
11
+ count: number;
12
+ cols: number;
13
+ }
14
+ export declare const rowsFor: (count: number, cols: number) => number;
15
+ /**
16
+ * ffmpeg argv (no shell): `fps=count/duration` keeps frame i at time i*duration/count, so the
17
+ * frames are evenly spaced; then scale and tile them into one image.
18
+ */
19
+ export declare function contactArgs(plan: ContactPlan): string[];
20
+ /**
21
+ * ffmpeg argv (no shell) tiling the images named by an ffconcat list (`file '<path>'` + `duration 1`
22
+ * per image) into one contact sheet; same tile layout as `contactArgs`, at `width` px per tile.
23
+ */
24
+ export declare function contactImagesArgs(list: string, out: string, count: number, cols: number, width?: number): string[];
@@ -0,0 +1,45 @@
1
+ export const DEFAULT_COLS = 4;
2
+ export const DEFAULT_COUNT = 12;
3
+ export const MAX_COUNT = 64;
4
+ /** Width of one tile in px; height follows the aspect ratio (even). */
5
+ export const TILE_WIDTH = 320;
6
+ export const rowsFor = (count, cols) => Math.ceil(count / cols);
7
+ /**
8
+ * ffmpeg argv (no shell): `fps=count/duration` keeps frame i at time i*duration/count, so the
9
+ * frames are evenly spaced; then scale and tile them into one image.
10
+ */
11
+ export function contactArgs(plan) {
12
+ const { file, out, duration, count, cols } = plan;
13
+ const filter = [
14
+ `fps=${count}/${duration.toFixed(3)}`,
15
+ `scale=${TILE_WIDTH}:-2:flags=lanczos`,
16
+ `tile=${cols}x${rowsFor(count, cols)}:color=white`,
17
+ ].join(",");
18
+ return ["-y", "-v", "error", "-i", file, "-vf", filter, "-frames:v", "1", out];
19
+ }
20
+ /**
21
+ * ffmpeg argv (no shell) tiling the images named by an ffconcat list (`file '<path>'` + `duration 1`
22
+ * per image) into one contact sheet; same tile layout as `contactArgs`, at `width` px per tile.
23
+ */
24
+ export function contactImagesArgs(list, out, count, cols, width = TILE_WIDTH) {
25
+ const filter = [
26
+ `scale=${width}:-2:flags=lanczos`,
27
+ `tile=${cols}x${rowsFor(count, cols)}:color=white`,
28
+ ];
29
+ return [
30
+ "-y",
31
+ "-v",
32
+ "error",
33
+ "-f",
34
+ "concat",
35
+ "-safe",
36
+ "0",
37
+ "-i",
38
+ list,
39
+ "-vf",
40
+ filter.join(","),
41
+ "-frames:v",
42
+ "1",
43
+ out,
44
+ ];
45
+ }
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const contactCommand: Command;
@@ -0,0 +1,79 @@
1
+ import { basename, dirname, join } from "node:path";
2
+ import { parseFlags, requirePositional, textFlag, usageError } from "../args.js";
3
+ import { EXIT } from "../exit-codes.js";
4
+ import { probeMedia } from "../verify/probe.js";
5
+ import { contactArgs, DEFAULT_COLS, DEFAULT_COUNT, MAX_COUNT, rowsFor } from "./argv.js";
6
+ const USAGE = `mk contact <file.mp4> [--cols N] [--count N] [--out file.png]
7
+
8
+ Tile evenly spaced frames of a video into one PNG contact sheet (zero tokens: look at the image).
9
+ --cols N tiles per row, 1-${MAX_COUNT} (default ${DEFAULT_COLS})
10
+ --count N frames to sample, 1-${MAX_COUNT} (default ${DEFAULT_COUNT})
11
+ --out f output PNG (default <file>-contact.png beside the video)
12
+ `;
13
+ const FLAGS = {
14
+ cols: { type: "string" },
15
+ count: { type: "string" },
16
+ out: { type: "string" },
17
+ };
18
+ const RENDER_TIMEOUT_MS = 120_000;
19
+ const intFlag = (flags, name, fallback) => {
20
+ const raw = textFlag(flags, name);
21
+ if (raw === undefined)
22
+ return fallback;
23
+ const value = Number(raw);
24
+ return /^\d+$/.test(raw) && value >= 1 && value <= MAX_COUNT ? value : undefined;
25
+ };
26
+ const defaultOut = (file) => join(dirname(file), `${basename(file).replace(/\.[^.]+$/, "")}-contact.png`);
27
+ /** Duration in seconds from an ffprobe JSON document, or undefined. */
28
+ const durationOf = (probe) => {
29
+ const raw = probe.format?.duration;
30
+ const seconds = Number(raw);
31
+ return Number.isFinite(seconds) && seconds > 0 ? seconds : undefined;
32
+ };
33
+ async function sheet(io, file, out, count, cols) {
34
+ const probed = await probeMedia(io, file);
35
+ if (!probed.ok && probed.kind === "missing-tool") {
36
+ io.stderr("mk: ffprobe not found; install ffmpeg and put it on PATH\n");
37
+ return EXIT.MISSING_TOOL;
38
+ }
39
+ const duration = probed.ok ? durationOf(probed.probe) : undefined;
40
+ if (duration === undefined) {
41
+ io.stderr(`mk contact: cannot read a duration from ${file}\n`);
42
+ return EXIT.ERROR;
43
+ }
44
+ const args = contactArgs({ file, out, duration, count, cols });
45
+ const result = await io.run("ffmpeg", args, { timeoutMs: RENDER_TIMEOUT_MS });
46
+ if (result.code === EXIT.MISSING_TOOL) {
47
+ io.stderr("mk: ffmpeg not found; install ffmpeg and put it on PATH\n");
48
+ return EXIT.MISSING_TOOL;
49
+ }
50
+ if (result.code !== 0) {
51
+ io.stderr(`mk contact: ffmpeg failed: ${result.stderr.trim().split(/\r?\n/).pop()}\n`);
52
+ return EXIT.ERROR;
53
+ }
54
+ io.stdout(`${out} ${cols}x${rowsFor(count, cols)} tiles, ${count} frames\n`);
55
+ return EXIT.OK;
56
+ }
57
+ export const contactCommand = {
58
+ name: "contact",
59
+ summary: "tile evenly spaced frames of an mp4 into one PNG contact sheet",
60
+ async run(args, io) {
61
+ const parsed = parseFlags("contact", USAGE, args, FLAGS, io);
62
+ if (parsed.kind === "exit")
63
+ return parsed.code;
64
+ const file = requirePositional("contact", USAGE, parsed.positionals, "<file.mp4>", io);
65
+ if (typeof file !== "string")
66
+ return file.code;
67
+ const cols = intFlag(parsed.flags, "cols", DEFAULT_COLS);
68
+ const count = intFlag(parsed.flags, "count", DEFAULT_COUNT);
69
+ if (cols === undefined || count === undefined) {
70
+ return usageError("contact", USAGE, `--cols and --count must be integers 1-${MAX_COUNT}`, io)
71
+ .code;
72
+ }
73
+ if (!(await io.host.exists(file))) {
74
+ io.stderr(`mk contact: cannot read ${file}; check the path.\n`);
75
+ return EXIT.USAGE;
76
+ }
77
+ return sheet(io, file, textFlag(parsed.flags, "out") ?? defaultOut(file), count, cols);
78
+ },
79
+ };
@@ -0,0 +1,21 @@
1
+ import type { Command } from "../types.ts";
2
+ /** Resolves a package id (e.g. `@anvpx/motion/package.json`) to a file path. */
3
+ export type CoreResolver = (id: string) => string;
4
+ /** Path existence probe; injectable so tests can model an install layout. */
5
+ export type PathExists = (path: string) => boolean;
6
+ /** `<repo>/packages/core/mcpb`, where the release build stages the bundle. */
7
+ export declare const repoBundleDir: () => string;
8
+ /**
9
+ * The bundle directory, in order: (a) `mcpb/` inside the installed
10
+ * `@anvpx/motion` package, (b) `<repo>/packages/core/mcpb` for development.
11
+ * Never returns a path that does not exist.
12
+ */
13
+ export declare const resolveBundleDir: (resolveCorePkg?: CoreResolver, exists?: PathExists) => string;
14
+ export interface DesktopEnv {
15
+ sourceDir: string;
16
+ }
17
+ export declare const defaultDesktopEnv: () => DesktopEnv;
18
+ /** Exactly one bundle this build produced, or the reason there is not. */
19
+ export declare const pickBundle: (entries: readonly string[], dir: string) => string;
20
+ export declare const makeDesktopCommand: (env?: () => DesktopEnv) => Command;
21
+ export declare const desktopCommand: Command;