@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,110 @@
1
+ import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
2
+ import { dirname } from "node:path";
3
+ import { parseFlags, requirePositional, textFlag, usageError } from "../args.js";
4
+ import { EXIT } from "../exit-codes.js";
5
+ const USAGE = `mk optimize-model <model.glb> [--out <file>]
6
+
7
+ Validate a binary glTF model and write an optimized copy (offline passthrough).
8
+ No native deps: checks the GLB magic, version and length, de-duplicates nothing
9
+ yet, and reports in/out byte sizes deterministically. Meshopt-class compression
10
+ is out of scope until a free, Windows-available, non-native tool is approved.
11
+ --out <file> output path (default: overwrite the input in place)
12
+ Prints one line: optimize-model ok | in N bytes -> out M bytes | <path>
13
+ `;
14
+ const FLAGS = {
15
+ out: { type: "string" },
16
+ };
17
+ const NAME = "optimize-model";
18
+ /** Passthrough validator: GLB magic, version 2, declared length matches bytes. */
19
+ export const validateGlb = (bytes) => {
20
+ if (bytes.length < 12 ||
21
+ bytes[0] !== 0x67 ||
22
+ bytes[1] !== 0x6c ||
23
+ bytes[2] !== 0x54 ||
24
+ bytes[3] !== 0x46) {
25
+ return { ok: false, message: "not a GLB model (missing glTF magic)" };
26
+ }
27
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
28
+ const version = view.getUint32(4, true);
29
+ if (version !== 2)
30
+ return { ok: false, message: `unsupported glTF version ${version}; need 2` };
31
+ const total = view.getUint32(8, true);
32
+ if (total !== bytes.length) {
33
+ return {
34
+ ok: false,
35
+ message: `GLB length mismatch: header says ${total} bytes, file has ${bytes.length}`,
36
+ };
37
+ }
38
+ return { ok: true, bytes: bytes.length };
39
+ };
40
+ const fail = (message, io) => usageError(NAME, USAGE, message, io).code;
41
+ /** Input path plus output path, or an exit code on bad usage. */
42
+ const targetOf = (parsed, io) => {
43
+ const input = requirePositional(NAME, USAGE, parsed.positionals, "<model.glb>", io);
44
+ if (typeof input !== "string")
45
+ return input.code;
46
+ if (parsed.positionals.length > 1)
47
+ return fail(`unexpected argument "${parsed.positionals[1]}"`, io);
48
+ return { input, out: textFlag(parsed.flags, "out") ?? input };
49
+ };
50
+ /** File bytes, or an exit code when unreadable. */
51
+ const readOf = async (io, input) => {
52
+ // Byte-correct path: raw bytes off disk (readText utf8-decodes binary GLB).
53
+ try {
54
+ const buf = await readFile(input);
55
+ return { bytes: new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength), viaFs: true };
56
+ }
57
+ catch {
58
+ // In-memory fakes (tests) fall through to Host.
59
+ }
60
+ try {
61
+ const text = await io.host.readText(input);
62
+ return { bytes: Uint8Array.from(Buffer.from(text, "binary")), viaFs: false };
63
+ }
64
+ catch {
65
+ return fail(`cannot read "${input}"`, io);
66
+ }
67
+ };
68
+ const report = (io, bytes, out) => {
69
+ io.stdout(`optimize-model ok | in ${bytes} bytes -> out ${bytes} bytes (saved 0%) | ${out}\n`);
70
+ };
71
+ /** Byte-preserving write: real FS when read came off disk, Host for fakes. */
72
+ const writeOf = async (io, out, bytes, viaFs) => {
73
+ if (viaFs) {
74
+ await mkdir(dirname(out), { recursive: true });
75
+ const temp = `${out}.${process.pid}.tmp`;
76
+ try {
77
+ await writeFile(temp, bytes);
78
+ await rename(temp, out);
79
+ }
80
+ catch (error) {
81
+ await rm(temp, { force: true });
82
+ throw error;
83
+ }
84
+ return;
85
+ }
86
+ await io.host.writeTextAtomic(out, Buffer.from(bytes).toString("binary"));
87
+ };
88
+ /** `mk optimize-model`; `make` wrapper keeps the fit-command test pattern. */
89
+ export const makeOptimizeModelCommand = () => ({
90
+ name: NAME,
91
+ summary: "validate a GLB model and write an optimized copy with a size report",
92
+ async run(args, io) {
93
+ const parsed = parseFlags(NAME, USAGE, args, FLAGS, io);
94
+ if (parsed.kind === "exit")
95
+ return parsed.code;
96
+ const target = targetOf(parsed, io);
97
+ if (typeof target === "number")
98
+ return target;
99
+ const read = await readOf(io, target.input);
100
+ if (typeof read === "number")
101
+ return read;
102
+ const checked = validateGlb(read.bytes);
103
+ if (!checked.ok)
104
+ return fail(checked.message, io);
105
+ await writeOf(io, target.out, read.bytes, read.viaFs);
106
+ report(io, checked.bytes, target.out);
107
+ return EXIT.OK;
108
+ },
109
+ });
110
+ export const optimizeModelCommand = makeOptimizeModelCommand();
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const packsCommand: Command;
@@ -0,0 +1,109 @@
1
+ import { basename, dirname, join } from "node:path";
2
+ import { fileURLToPath } from "node:url";
3
+ import { parseFlags, requirePositional, usageError } from "../args.js";
4
+ import { EXIT } from "../exit-codes.js";
5
+ const USAGE = `mk packs [show <id>] [--json]
6
+
7
+ List qualified style packs, or show one pack's guide.
8
+ Resolves the installed packs payload first, repo fallback.
9
+ --json one compact JSON line instead of text
10
+ `;
11
+ const FLAGS = {
12
+ json: { type: "boolean" },
13
+ };
14
+ const ROW = /^\| ([a-z0-9-]+) \| .*? \| ([^\s|]+\.md) \|/gm;
15
+ const parseIndex = (text) => [...text.matchAll(ROW)].map((m) => ({ id: m[1] ?? "", guide: m[2] ?? "" }));
16
+ /** Installed payload first (`packages/core/packs`), then repo checkouts walking up from cwd. */
17
+ async function findRoot(io) {
18
+ const fromModule = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "packs");
19
+ const roots = [fromModule, join(process.cwd(), "docs", "packs")];
20
+ let dir = process.cwd();
21
+ for (let i = 0; i < 8; i++) {
22
+ dir = dirname(dir);
23
+ roots.push(join(dir, "docs", "packs"));
24
+ }
25
+ for (const root of roots) {
26
+ if (await io.host.exists(join(root, "INDEX.md")))
27
+ return root;
28
+ }
29
+ return undefined;
30
+ }
31
+ async function readSummary(io, root, id) {
32
+ try {
33
+ const parsed = JSON.parse(await io.host.readText(join(root, id, "pack.json")));
34
+ const summary = typeof parsed === "object" && parsed !== null && "summary" in parsed
35
+ ? parsed.summary
36
+ : undefined;
37
+ return typeof summary === "string" ? summary : "";
38
+ }
39
+ catch {
40
+ return "";
41
+ }
42
+ }
43
+ async function loadRows(io) {
44
+ const root = await findRoot(io);
45
+ if (!root)
46
+ return {
47
+ code: usageError("packs", USAGE, "no packs payload found (installed packs/ or repo docs/packs)", io).code,
48
+ };
49
+ const rows = parseIndex(await io.host.readText(join(root, "INDEX.md")));
50
+ if (rows.length === 0)
51
+ return { code: usageError("packs", USAGE, "pack index lists no packs", io).code };
52
+ return { root, rows };
53
+ }
54
+ async function runList(io, root, rows, json) {
55
+ const items = await Promise.all(rows.map(async (row) => ({ id: row.id, summary: await readSummary(io, root, row.id) })));
56
+ if (json)
57
+ io.stdout(`${JSON.stringify(items)}\n`);
58
+ else
59
+ for (const item of items)
60
+ io.stdout(item.summary ? `${item.id} — ${item.summary}\n` : `${item.id}\n`);
61
+ return EXIT.OK;
62
+ }
63
+ async function runShow(io, root, rows, json, positionals) {
64
+ const id = requirePositional("packs", USAGE, positionals, "<id>", io);
65
+ if (typeof id !== "string")
66
+ return id.code;
67
+ const row = rows.find((r) => r.id === id);
68
+ if (!row) {
69
+ const known = rows.map((r) => r.id).join("|");
70
+ return usageError("packs", USAGE, `unknown pack "${id}"; use one of: ${known}`, io).code;
71
+ }
72
+ const guideFile = join(root, row.id, basename(row.guide));
73
+ let guide;
74
+ try {
75
+ guide = await io.host.readText(guideFile);
76
+ }
77
+ catch {
78
+ return usageError("packs", USAGE, `guide missing for pack "${id}" (${guideFile})`, io).code;
79
+ }
80
+ const summary = await readSummary(io, root, row.id);
81
+ if (json)
82
+ io.stdout(`${JSON.stringify({ id, summary, guide: row.guide, text: guide })}\n`);
83
+ else
84
+ io.stdout(guide.endsWith("\n") ? guide : `${guide}\n`);
85
+ return EXIT.OK;
86
+ }
87
+ export const packsCommand = {
88
+ name: "packs",
89
+ summary: "list style packs, or show one pack guide; installed payload first, repo fallback",
90
+ async run(args, io) {
91
+ const parsed = parseFlags("packs", USAGE, args, FLAGS, io);
92
+ if (parsed.kind === "exit")
93
+ return parsed.code;
94
+ const { flags, positionals } = parsed;
95
+ const loaded = await loadRows(io);
96
+ if ("code" in loaded)
97
+ return loaded.code;
98
+ const [sub, ...rest] = positionals;
99
+ if (sub === undefined || sub === "list") {
100
+ if (rest.length > 0)
101
+ return usageError("packs", USAGE, "list takes no id", io).code;
102
+ return runList(io, loaded.root, loaded.rows, flags.json === true);
103
+ }
104
+ if (sub !== "show")
105
+ return usageError("packs", USAGE, `unknown action "${sub}"; use: mk packs [show <id>]`, io)
106
+ .code;
107
+ return runShow(io, loaded.root, loaded.rows, flags.json === true, rest);
108
+ },
109
+ };
@@ -0,0 +1,36 @@
1
+ /** The RFC 6902 subset `mk patch` supports. */
2
+ export type PatchOp = {
3
+ op: "add" | "replace" | "test";
4
+ path: string;
5
+ value: unknown;
6
+ } | {
7
+ op: "remove";
8
+ path: string;
9
+ } | {
10
+ op: "move";
11
+ from: string;
12
+ path: string;
13
+ };
14
+ export type ParsedOps = {
15
+ ok: true;
16
+ ops: PatchOp[];
17
+ } | {
18
+ ok: false;
19
+ message: string;
20
+ };
21
+ export type PatchResult = {
22
+ ok: true;
23
+ value: unknown;
24
+ changed: string[];
25
+ } | {
26
+ ok: false;
27
+ index: number;
28
+ message: string;
29
+ };
30
+ /** Checks the shape of an ops document; every message names the op index. */
31
+ export declare function parseOps(input: unknown): ParsedOps;
32
+ /**
33
+ * Applies ops in order to a copy of `doc`; the input is never mutated. Stops at the first op that
34
+ * cannot apply and names its index. Pure: validation of the result is the caller's job.
35
+ */
36
+ export declare function applyPatch(doc: unknown, ops: readonly PatchOp[]): PatchResult;
@@ -0,0 +1,186 @@
1
+ import { canonicalJson, forbiddenKeys } from "@anvpx/motion-schema";
2
+ const OPS = ["add", "replace", "remove", "move", "test"];
3
+ const KEYS = {
4
+ add: ["op", "path", "value"],
5
+ replace: ["op", "path", "value"],
6
+ test: ["op", "path", "value"],
7
+ remove: ["op", "path"],
8
+ move: ["op", "path", "from"],
9
+ };
10
+ const INDEX = /^(0|[1-9]\d*)$/;
11
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
12
+ const pointerProblem = (field, pointer) => {
13
+ if (typeof pointer !== "string")
14
+ return `${field} must be a string`;
15
+ if (pointer === "")
16
+ return `${field} must not be empty (the document root cannot be patched)`;
17
+ return pointer.startsWith("/") ? undefined : `${field} must start with "/"`;
18
+ };
19
+ const keysProblem = (raw, op) => {
20
+ const unknown = Object.keys(raw).find((key) => !KEYS[op].includes(key));
21
+ return unknown === undefined ? undefined : `unknown key "${unknown}" for ${op}`;
22
+ };
23
+ const pointersProblem = (raw, op) => {
24
+ if (op === "move" && typeof raw.from !== "string")
25
+ return "move needs from";
26
+ const from = op === "move" ? pointerProblem("from", raw.from) : undefined;
27
+ return from ?? pointerProblem("path", raw.path);
28
+ };
29
+ const opProblem = (raw) => {
30
+ if (!isRecord(raw))
31
+ return "must be an object";
32
+ const known = OPS.find((op) => op === raw.op);
33
+ if (known === undefined)
34
+ return `unsupported op ${JSON.stringify(raw.op)}; use ${OPS.join("|")}`;
35
+ const needsValue = KEYS[known].includes("value") && !Object.hasOwn(raw, "value");
36
+ return (keysProblem(raw, known) ??
37
+ pointersProblem(raw, known) ??
38
+ (needsValue ? `${known} needs a value` : undefined));
39
+ };
40
+ /** Checks the shape of an ops document; every message names the op index. */
41
+ export function parseOps(input) {
42
+ if (!Array.isArray(input))
43
+ return { ok: false, message: "ops must be a JSON array of operations" };
44
+ if (input.length === 0)
45
+ return { ok: false, message: "ops needs at least one operation" };
46
+ for (const [index, raw] of input.entries()) {
47
+ const problem = opProblem(raw);
48
+ if (problem !== undefined)
49
+ return { ok: false, message: `op ${index}: ${problem}` };
50
+ }
51
+ return { ok: true, ops: input };
52
+ }
53
+ class PatchError extends Error {
54
+ }
55
+ const fail = (message) => {
56
+ throw new PatchError(message);
57
+ };
58
+ const tokensOf = (pointer) => pointer
59
+ .slice(1)
60
+ .split("/")
61
+ .map((token) => token.replaceAll("~1", "/").replaceAll("~0", "~"));
62
+ const pointerOf = (tokens) => tokens.map((token) => `/${token.replaceAll("~", "~0").replaceAll("/", "~1")}`).join("");
63
+ /** Prototype-polluting and execution-shaped keys are refused in every path segment. */
64
+ const checkSegments = (tokens) => {
65
+ for (const token of tokens) {
66
+ const [problem] = forbiddenKeys({ [token]: 0 }, []);
67
+ if (problem !== undefined)
68
+ fail(`path segment "${token}": ${problem.message}`);
69
+ }
70
+ };
71
+ const isContainer = (value) => typeof value === "object" && value !== null;
72
+ const hasChild = (container, token) => Array.isArray(container)
73
+ ? INDEX.test(token) && Number(token) < container.length
74
+ : Object.hasOwn(container, token);
75
+ const childOf = (container, token) => Array.isArray(container) ? container[Number(token)] : container[token];
76
+ /** The container holding the last token; fails on the first missing prefix. */
77
+ function parentOf(root, tokens) {
78
+ let node = root;
79
+ for (const [depth, token] of tokens.slice(0, -1).entries()) {
80
+ const prefix = pointerOf(tokens.slice(0, depth + 1));
81
+ if (!isContainer(node) || !hasChild(node, token))
82
+ return fail(`parent "${prefix}" does not exist`);
83
+ node = childOf(node, token);
84
+ if (!isContainer(node))
85
+ return fail(`parent "${prefix}" is not an object or array`);
86
+ }
87
+ return isContainer(node) ? node : fail("document root is not an object or array");
88
+ }
89
+ const existing = (parent, tokens, pointer) => {
90
+ const last = tokens.at(-1) ?? "";
91
+ if (!hasChild(parent, last))
92
+ fail(`target "${pointer}" does not exist`);
93
+ return last;
94
+ };
95
+ function insert(parent, token, value) {
96
+ if (!Array.isArray(parent)) {
97
+ parent[token] = value;
98
+ return;
99
+ }
100
+ if (token === "-") {
101
+ parent.push(value);
102
+ return;
103
+ }
104
+ if (!INDEX.test(token))
105
+ fail(`"${token}" is not an array index`);
106
+ if (Number(token) > parent.length)
107
+ fail(`index ${token} is out of range (length ${parent.length})`);
108
+ parent.splice(Number(token), 0, value);
109
+ }
110
+ function drop(parent, token) {
111
+ if (Array.isArray(parent))
112
+ parent.splice(Number(token), 1);
113
+ else
114
+ delete parent[token];
115
+ }
116
+ function overwrite(parent, token, value) {
117
+ if (Array.isArray(parent))
118
+ parent[Number(token)] = value;
119
+ else
120
+ parent[token] = value;
121
+ }
122
+ const sameValue = (a, b) => canonicalJson(a) === canonicalJson(b);
123
+ function valueProblem(value) {
124
+ const [problem] = forbiddenKeys(value, []);
125
+ if (problem !== undefined) {
126
+ fail(`value ${pointerOf(problem.path.map(String)) || "/"}: ${problem.message}`);
127
+ }
128
+ }
129
+ function applyMove(root, op, changed) {
130
+ const from = tokensOf(op.from);
131
+ const tokens = tokensOf(op.path);
132
+ checkSegments(from);
133
+ checkSegments(tokens);
134
+ if (op.path === op.from)
135
+ return;
136
+ if (op.path.startsWith(`${op.from}/`))
137
+ fail("cannot move a value into its own child");
138
+ const source = parentOf(root, from);
139
+ const sourceToken = existing(source, from, op.from);
140
+ const moved = childOf(source, sourceToken);
141
+ drop(source, sourceToken);
142
+ insert(parentOf(root, tokens), tokens.at(-1) ?? "", moved);
143
+ changed.push(op.from, op.path);
144
+ }
145
+ function applyAt(root, op, changed) {
146
+ const tokens = tokensOf(op.path);
147
+ checkSegments(tokens);
148
+ const parent = parentOf(root, tokens);
149
+ if (op.op === "remove") {
150
+ drop(parent, existing(parent, tokens, op.path));
151
+ changed.push(op.path);
152
+ return;
153
+ }
154
+ valueProblem(op.value);
155
+ if (op.op === "add") {
156
+ insert(parent, tokens.at(-1) ?? "", op.value);
157
+ changed.push(op.path);
158
+ }
159
+ else if (op.op === "replace") {
160
+ overwrite(parent, existing(parent, tokens, op.path), op.value);
161
+ changed.push(op.path);
162
+ }
163
+ else if (!sameValue(childOf(parent, existing(parent, tokens, op.path)), op.value)) {
164
+ fail(`test failed at "${op.path}": value differs`);
165
+ }
166
+ }
167
+ const applyOne = (root, op, changed) => op.op === "move" ? applyMove(root, op, changed) : applyAt(root, op, changed);
168
+ /**
169
+ * Applies ops in order to a copy of `doc`; the input is never mutated. Stops at the first op that
170
+ * cannot apply and names its index. Pure: validation of the result is the caller's job.
171
+ */
172
+ export function applyPatch(doc, ops) {
173
+ const root = structuredClone(doc);
174
+ const changed = [];
175
+ for (const [index, op] of ops.entries()) {
176
+ try {
177
+ applyOne(root, op, changed);
178
+ }
179
+ catch (error) {
180
+ if (error instanceof PatchError)
181
+ return { ok: false, index, message: error.message };
182
+ throw error;
183
+ }
184
+ }
185
+ return { ok: true, value: root, changed };
186
+ }
@@ -0,0 +1,2 @@
1
+ import type { Command } from "../types.ts";
2
+ export declare const patchCommand: Command;
@@ -0,0 +1,92 @@
1
+ import { listFlag, parseFlags, requireStoryboard, textFlag, usageError } from "../args.js";
2
+ import { EXIT } from "../exit-codes.js";
3
+ import { editStoryboard, statusLine } from "../storyboard/edit.js";
4
+ import { readJsonFile } from "../storyboard/load.js";
5
+ import { formatFinding } from "../storyboard/report.js";
6
+ import { applyPatch, parseOps } from "./apply.js";
7
+ const USAGE = `mk patch <storyboard.json> [--ops file.json] [--op <json> ...]
8
+
9
+ Apply an RFC 6902 JSON Patch (subset: add, replace, remove, move, test) to a storyboard, validate the result
10
+ with the full validator and write it atomically. An invalid result is never written; the pointer errors are printed.
11
+ --ops f JSON array of operations: [{"op":"replace","path":"/scenes/0/props/title","value":"New"}]
12
+ --op j one operation as JSON (repeatable; applied after --ops)
13
+ Paths follow RFC 6902: "-" appends to an array, ~0 and ~1 escape ~ and /. A path into a missing parent is an error.
14
+ __proto__, constructor, prototype and command-shaped keys are refused. Any edit changes the approval hash.
15
+ Prints <= 3 lines: changed paths; scene count, total seconds, errors and warnings.
16
+ `;
17
+ const FLAGS = { ops: { type: "string" }, op: { type: "string", multiple: true } };
18
+ const MAX_PATHS = 4;
19
+ async function gatherOps(opsFile, inline, io) {
20
+ const raw = [];
21
+ if (opsFile !== undefined) {
22
+ const loaded = await readJsonFile(opsFile, io.host);
23
+ if (!loaded.ok) {
24
+ io.stderr(`mk patch: ${loaded.message}\n`);
25
+ return EXIT.USAGE;
26
+ }
27
+ if (!Array.isArray(loaded.value)) {
28
+ io.stderr(`mk patch: ${opsFile} must hold a JSON array of operations\n`);
29
+ return EXIT.USAGE;
30
+ }
31
+ raw.push(...loaded.value);
32
+ }
33
+ for (const text of inline) {
34
+ try {
35
+ raw.push(JSON.parse(text));
36
+ }
37
+ catch {
38
+ io.stderr(`mk patch: --op: invalid JSON ${text.slice(0, 40)}\n`);
39
+ return EXIT.USAGE;
40
+ }
41
+ }
42
+ const parsed = parseOps(raw);
43
+ if (parsed.ok)
44
+ return parsed.ops;
45
+ io.stderr(`mk patch: ${parsed.message}\n`);
46
+ return EXIT.USAGE;
47
+ }
48
+ const changedLine = (ops, changed) => {
49
+ const unique = [...new Set(changed)];
50
+ const shown = unique.slice(0, MAX_PATHS).join(", ");
51
+ const more = unique.length > MAX_PATHS ? ` (+${unique.length - MAX_PATHS} more)` : "";
52
+ const label = `${ops} op${ops === 1 ? "" : "s"}`;
53
+ return `patch ok | ${label} | changed ${shown || "nothing"}${more}`;
54
+ };
55
+ export const patchCommand = {
56
+ name: "patch",
57
+ summary: "apply a JSON Patch to a storyboard; validated, atomic, never writes invalid",
58
+ async run(args, io) {
59
+ const parsed = parseFlags("patch", USAGE, args, FLAGS, io);
60
+ if (parsed.kind === "exit")
61
+ return parsed.code;
62
+ const path = requireStoryboard("patch", USAGE, parsed.positionals, io);
63
+ if (typeof path !== "string")
64
+ return path.code;
65
+ const inline = listFlag(parsed.flags, "op");
66
+ const opsFile = textFlag(parsed.flags, "ops");
67
+ if (opsFile === undefined && inline.length === 0) {
68
+ return usageError("patch", USAGE, "give --ops <file> or --op <json>", io).code;
69
+ }
70
+ const ops = await gatherOps(opsFile, inline, io);
71
+ if (typeof ops === "number")
72
+ return ops;
73
+ return editStoryboard("patch", path, io, (doc) => {
74
+ const result = applyPatch(doc, ops);
75
+ if (!result.ok) {
76
+ const failed = ops[result.index];
77
+ const where = failed === undefined ? "" : ` (${failed.op} ${failed.path})`;
78
+ return { ok: false, message: `op ${result.index}${where}: ${result.message}` };
79
+ }
80
+ const scenes = result.value.scenes?.length ?? 0;
81
+ return {
82
+ ok: true,
83
+ value: result.value,
84
+ lines: (report) => [
85
+ changedLine(ops.length, result.changed),
86
+ statusLine(report, scenes),
87
+ ...report.warnings.slice(0, 1).map(formatFinding),
88
+ ],
89
+ };
90
+ });
91
+ },
92
+ };
@@ -0,0 +1,40 @@
1
+ import type { Command } from "../types.ts";
2
+ /** Pinned publishable core; every command wrapper invokes exactly this, never an unpinned npx.
3
+ *
4
+ * Version strategy (MK-080): the pin tracks `@anvpx/motion` manifest
5
+ * `version` exactly (enforced by `plugin.test.ts` "matches @anvpx/motion
6
+ * version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
7
+ * pre-publish placeholder: an isolated `npm install` of the packed tarball
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
10
+ * BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
11
+ * work around it. Publish path is choiceA (publish internal @anvpx/motion-*
12
+ * at real versions) or choiceB (bundle into one tarball); either lands with
13
+ * a version bump of core manifest + this pin + plugin.json together.
14
+ */
15
+ export declare const PINNED_CORE_VERSION = "0.1.94";
16
+ export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.94";
17
+ /** Skill file whose sha256 must survive `plugin install` byte for byte. */
18
+ export declare const PLUGIN_SKILL: string;
19
+ export interface PluginEnv {
20
+ sourceDir: string;
21
+ }
22
+ export declare const defaultPluginEnv: () => PluginEnv;
23
+ /** Resolves a package id (e.g. `@anvpx/motion/package.json`) to a file path. */
24
+ export type CoreResolver = (id: string) => string;
25
+ /** Path existence probe; injectable so tests can model an install layout. */
26
+ export type PathExists = (path: string) => boolean;
27
+ /** The repo checkout copy (`<repo>/plugins/motion-kit`), used for development runs. */
28
+ export declare const repoPluginDir: () => string;
29
+ /**
30
+ * Resolve the bundled plugin dir, in order: (a) `@anvpx/motion/package.json`
31
+ * -> `<core>/plugins/motion-kit` (the installed layout), (b) the repo checkout
32
+ * `<repo>/plugins/motion-kit` for development. Never returns a path that does
33
+ * not exist: when neither candidate is present it throws naming
34
+ * `@anvpx/motion` and every attempted path. An injected resolver models a
35
+ * layout without touching the filesystem; pass `exists` to force the probe.
36
+ */
37
+ export declare const resolvePluginSourceDir: (resolveCorePkg?: CoreResolver, exists?: PathExists) => string;
38
+ /** `mk plugin install`; `env` is injectable so tests use a fake source tree. */
39
+ export declare const makePluginCommand: (env?: () => PluginEnv) => Command;
40
+ export declare const pluginCommand: Command;