@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.
- package/dist/approval/approval.d.ts +11 -3
- package/dist/approval/approval.js +20 -8
- package/dist/approval/command.js +43 -12
- package/dist/approval/hash.d.ts +6 -1
- package/dist/approval/hash.js +35 -6
- package/dist/captions/command.js +15 -3
- package/dist/captions/cues.d.ts +11 -2
- package/dist/captions/cues.js +13 -4
- package/dist/commands.js +2 -0
- package/dist/doctor/command.js +8 -2
- package/dist/integration/interaction.integration.d.ts +1 -0
- package/dist/integration/interaction.integration.js +95 -0
- package/dist/integration/preview.integration.js +12 -4
- package/dist/interaction/command.d.ts +4 -0
- package/dist/interaction/command.js +219 -0
- package/dist/interaction/document.d.ts +55 -0
- package/dist/interaction/document.js +104 -0
- package/dist/interaction/driver.d.ts +29 -0
- package/dist/interaction/driver.js +278 -0
- package/dist/mcp/server.d.ts +12 -5
- package/dist/mcp/server.js +41 -19
- package/dist/mut-demo/.out/smoke/boot.js +90 -0
- package/dist/mut-demo/.out/smoke/runtime/compose.js +43 -0
- package/dist/mut-demo/.out/smoke/runtime/easing.js +45 -0
- package/dist/mut-demo/.out/smoke/runtime/mount.js +153 -0
- package/dist/mut-demo/.out/smoke/runtime/timeline.js +199 -0
- package/dist/mut-demo/.out/smoke/scenes/count/scene.js +6 -0
- package/dist/mut-demo/.out/smoke/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/.out/smoke/scenes/outro/scene.js +6 -0
- package/dist/mut-demo/.out/smoke/scenes/path/scene.js +6 -0
- package/dist/mut-demo/.out/smoke/scenes/signals/scene.js +6 -0
- package/dist/mut-demo/.out/smoke/shared/format.js +59 -0
- package/dist/mut-demo/.out/smoke/shared/motion.js +117 -0
- package/dist/mut-demo/.out/template-flow/out/project/boot.js +88 -0
- package/dist/mut-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
- package/dist/mut-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
- package/dist/mut-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
- package/dist/mut-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/project/shared/format.js +59 -0
- package/dist/mut-demo/.out/template-flow/out/project/shared/motion.js +117 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
- package/dist/mut-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
- package/dist/mut-demo/analyze/command.d.ts +2 -0
- package/dist/mut-demo/analyze/command.js +190 -0
- package/dist/mut-demo/approval/approval.d.ts +43 -0
- package/dist/mut-demo/approval/approval.js +155 -0
- package/dist/mut-demo/approval/command.d.ts +2 -0
- package/dist/mut-demo/approval/command.js +286 -0
- package/dist/mut-demo/approval/gate.d.ts +7 -0
- package/dist/mut-demo/approval/gate.js +23 -0
- package/dist/mut-demo/approval/hash.d.ts +76 -0
- package/dist/mut-demo/approval/hash.js +493 -0
- package/dist/mut-demo/args.d.ts +30 -0
- package/dist/mut-demo/args.js +53 -0
- package/dist/mut-demo/assets/command.d.ts +2 -0
- package/dist/mut-demo/assets/command.js +165 -0
- package/dist/mut-demo/captions/command.d.ts +16 -0
- package/dist/mut-demo/captions/command.js +462 -0
- package/dist/mut-demo/captions/cues.d.ts +19 -0
- package/dist/mut-demo/captions/cues.js +70 -0
- package/dist/mut-demo/catalog/command.d.ts +2 -0
- package/dist/mut-demo/catalog/command.js +60 -0
- package/dist/mut-demo/catalog/format.d.ts +13 -0
- package/dist/mut-demo/catalog/format.js +54 -0
- package/dist/mut-demo/cli.d.ts +3 -0
- package/dist/mut-demo/cli.js +35 -0
- package/dist/mut-demo/commands.d.ts +3 -0
- package/dist/mut-demo/commands.js +65 -0
- package/dist/mut-demo/compare/command.d.ts +4 -0
- package/dist/mut-demo/compare/command.js +144 -0
- package/dist/mut-demo/contact/argv.d.ts +24 -0
- package/dist/mut-demo/contact/argv.js +45 -0
- package/dist/mut-demo/contact/command.d.ts +2 -0
- package/dist/mut-demo/contact/command.js +79 -0
- package/dist/mut-demo/desktop/command.d.ts +21 -0
- package/dist/mut-demo/desktop/command.js +120 -0
- package/dist/mut-demo/doctor/checks.d.ts +25 -0
- package/dist/mut-demo/doctor/checks.js +584 -0
- package/dist/mut-demo/doctor/command.d.ts +4 -0
- package/dist/mut-demo/doctor/command.js +94 -0
- package/dist/mut-demo/doctor/format.d.ts +7 -0
- package/dist/mut-demo/doctor/format.js +41 -0
- package/dist/mut-demo/doctor/heal.d.ts +14 -0
- package/dist/mut-demo/doctor/heal.js +71 -0
- package/dist/mut-demo/doctor/pins.d.ts +8 -0
- package/dist/mut-demo/doctor/pins.js +28 -0
- package/dist/mut-demo/doctor/skills.d.ts +15 -0
- package/dist/mut-demo/doctor/skills.js +58 -0
- package/dist/mut-demo/doctor/types.d.ts +36 -0
- package/dist/mut-demo/doctor/types.js +1 -0
- package/dist/mut-demo/doctor/vendored.d.ts +15 -0
- package/dist/mut-demo/doctor/vendored.js +90 -0
- package/dist/mut-demo/doctor/version.d.ts +8 -0
- package/dist/mut-demo/doctor/version.js +11 -0
- package/dist/mut-demo/exit-codes.d.ts +16 -0
- package/dist/mut-demo/exit-codes.js +15 -0
- package/dist/mut-demo/fit/command.d.ts +5 -0
- package/dist/mut-demo/fit/command.js +154 -0
- package/dist/mut-demo/fit/solve.d.ts +21 -0
- package/dist/mut-demo/fit/solve.js +80 -0
- package/dist/mut-demo/fit/target.d.ts +18 -0
- package/dist/mut-demo/fit/target.js +47 -0
- package/dist/mut-demo/generate3d/command.d.ts +3 -0
- package/dist/mut-demo/generate3d/command.js +38 -0
- package/dist/mut-demo/generate3d/run.d.ts +39 -0
- package/dist/mut-demo/generate3d/run.js +77 -0
- package/dist/mut-demo/icon/command.d.ts +2 -0
- package/dist/mut-demo/icon/command.js +113 -0
- package/dist/mut-demo/index.d.ts +18 -0
- package/dist/mut-demo/index.js +16 -0
- package/dist/mut-demo/install-mk.d.ts +31 -0
- package/dist/mut-demo/install-mk.js +168 -0
- package/dist/mut-demo/integration/interaction.integration.d.ts +1 -0
- package/dist/mut-demo/integration/interaction.integration.js +95 -0
- package/dist/mut-demo/integration/preview.integration.d.ts +1 -0
- package/dist/mut-demo/integration/preview.integration.js +61 -0
- package/dist/mut-demo/integration/smoke.integration.d.ts +1 -0
- package/dist/mut-demo/integration/smoke.integration.js +91 -0
- package/dist/mut-demo/interaction/command.d.ts +4 -0
- package/dist/mut-demo/interaction/command.js +219 -0
- package/dist/mut-demo/interaction/document.d.ts +55 -0
- package/dist/mut-demo/interaction/document.js +104 -0
- package/dist/mut-demo/interaction/driver.d.ts +29 -0
- package/dist/mut-demo/interaction/driver.js +278 -0
- package/dist/mut-demo/main.d.ts +2 -0
- package/dist/mut-demo/main.js +4 -0
- package/dist/mut-demo/mcp/server.d.ts +89 -0
- package/dist/mut-demo/mcp/server.js +479 -0
- package/dist/mut-demo/node-io.d.ts +14 -0
- package/dist/mut-demo/node-io.js +153 -0
- package/dist/mut-demo/optimize/command.d.ts +12 -0
- package/dist/mut-demo/optimize/command.js +110 -0
- package/dist/mut-demo/packs/command.d.ts +2 -0
- package/dist/mut-demo/packs/command.js +109 -0
- package/dist/mut-demo/parent-demo/.out/smoke/boot.js +90 -0
- package/dist/mut-demo/parent-demo/.out/smoke/runtime/compose.js +43 -0
- package/dist/mut-demo/parent-demo/.out/smoke/runtime/easing.js +45 -0
- package/dist/mut-demo/parent-demo/.out/smoke/runtime/mount.js +153 -0
- package/dist/mut-demo/parent-demo/.out/smoke/runtime/timeline.js +199 -0
- package/dist/mut-demo/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/smoke/shared/format.js +59 -0
- package/dist/mut-demo/parent-demo/.out/smoke/shared/motion.js +117 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/boot.js +88 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
- package/dist/mut-demo/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
- package/dist/mut-demo/parent-demo/analyze/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/analyze/command.js +190 -0
- package/dist/mut-demo/parent-demo/approval/approval.d.ts +43 -0
- package/dist/mut-demo/parent-demo/approval/approval.js +155 -0
- package/dist/mut-demo/parent-demo/approval/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/approval/command.js +286 -0
- package/dist/mut-demo/parent-demo/approval/gate.d.ts +7 -0
- package/dist/mut-demo/parent-demo/approval/gate.js +23 -0
- package/dist/mut-demo/parent-demo/approval/hash.d.ts +76 -0
- package/dist/mut-demo/parent-demo/approval/hash.js +493 -0
- package/dist/mut-demo/parent-demo/args.d.ts +30 -0
- package/dist/mut-demo/parent-demo/args.js +53 -0
- package/dist/mut-demo/parent-demo/assets/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/assets/command.js +165 -0
- package/dist/mut-demo/parent-demo/captions/command.d.ts +16 -0
- package/dist/mut-demo/parent-demo/captions/command.js +462 -0
- package/dist/mut-demo/parent-demo/captions/cues.d.ts +19 -0
- package/dist/mut-demo/parent-demo/captions/cues.js +70 -0
- package/dist/mut-demo/parent-demo/catalog/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/catalog/command.js +60 -0
- package/dist/mut-demo/parent-demo/catalog/format.d.ts +13 -0
- package/dist/mut-demo/parent-demo/catalog/format.js +54 -0
- package/dist/mut-demo/parent-demo/cli.d.ts +3 -0
- package/dist/mut-demo/parent-demo/cli.js +35 -0
- package/dist/mut-demo/parent-demo/commands.d.ts +3 -0
- package/dist/mut-demo/parent-demo/commands.js +65 -0
- package/dist/mut-demo/parent-demo/compare/command.d.ts +4 -0
- package/dist/mut-demo/parent-demo/compare/command.js +144 -0
- package/dist/mut-demo/parent-demo/contact/argv.d.ts +24 -0
- package/dist/mut-demo/parent-demo/contact/argv.js +45 -0
- package/dist/mut-demo/parent-demo/contact/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/contact/command.js +79 -0
- package/dist/mut-demo/parent-demo/desktop/command.d.ts +21 -0
- package/dist/mut-demo/parent-demo/desktop/command.js +120 -0
- package/dist/mut-demo/parent-demo/doctor/checks.d.ts +25 -0
- package/dist/mut-demo/parent-demo/doctor/checks.js +584 -0
- package/dist/mut-demo/parent-demo/doctor/command.d.ts +4 -0
- package/dist/mut-demo/parent-demo/doctor/command.js +94 -0
- package/dist/mut-demo/parent-demo/doctor/format.d.ts +7 -0
- package/dist/mut-demo/parent-demo/doctor/format.js +41 -0
- package/dist/mut-demo/parent-demo/doctor/heal.d.ts +14 -0
- package/dist/mut-demo/parent-demo/doctor/heal.js +71 -0
- package/dist/mut-demo/parent-demo/doctor/pins.d.ts +8 -0
- package/dist/mut-demo/parent-demo/doctor/pins.js +28 -0
- package/dist/mut-demo/parent-demo/doctor/skills.d.ts +15 -0
- package/dist/mut-demo/parent-demo/doctor/skills.js +58 -0
- package/dist/mut-demo/parent-demo/doctor/types.d.ts +36 -0
- package/dist/mut-demo/parent-demo/doctor/types.js +1 -0
- package/dist/mut-demo/parent-demo/doctor/vendored.d.ts +15 -0
- package/dist/mut-demo/parent-demo/doctor/vendored.js +90 -0
- package/dist/mut-demo/parent-demo/doctor/version.d.ts +8 -0
- package/dist/mut-demo/parent-demo/doctor/version.js +11 -0
- package/dist/mut-demo/parent-demo/exit-codes.d.ts +16 -0
- package/dist/mut-demo/parent-demo/exit-codes.js +15 -0
- package/dist/mut-demo/parent-demo/fit/command.d.ts +5 -0
- package/dist/mut-demo/parent-demo/fit/command.js +154 -0
- package/dist/mut-demo/parent-demo/fit/solve.d.ts +21 -0
- package/dist/mut-demo/parent-demo/fit/solve.js +80 -0
- package/dist/mut-demo/parent-demo/fit/target.d.ts +18 -0
- package/dist/mut-demo/parent-demo/fit/target.js +47 -0
- package/dist/mut-demo/parent-demo/generate3d/command.d.ts +3 -0
- package/dist/mut-demo/parent-demo/generate3d/command.js +38 -0
- package/dist/mut-demo/parent-demo/generate3d/run.d.ts +39 -0
- package/dist/mut-demo/parent-demo/generate3d/run.js +77 -0
- package/dist/mut-demo/parent-demo/icon/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/icon/command.js +113 -0
- package/dist/mut-demo/parent-demo/index.d.ts +18 -0
- package/dist/mut-demo/parent-demo/index.js +16 -0
- package/dist/mut-demo/parent-demo/install-mk.d.ts +31 -0
- package/dist/mut-demo/parent-demo/install-mk.js +168 -0
- package/dist/mut-demo/parent-demo/integration/interaction.integration.d.ts +1 -0
- package/dist/mut-demo/parent-demo/integration/interaction.integration.js +95 -0
- package/dist/mut-demo/parent-demo/integration/preview.integration.d.ts +1 -0
- package/dist/mut-demo/parent-demo/integration/preview.integration.js +61 -0
- package/dist/mut-demo/parent-demo/integration/smoke.integration.d.ts +1 -0
- package/dist/mut-demo/parent-demo/integration/smoke.integration.js +91 -0
- package/dist/mut-demo/parent-demo/interaction/command.d.ts +4 -0
- package/dist/mut-demo/parent-demo/interaction/command.js +219 -0
- package/dist/mut-demo/parent-demo/interaction/document.d.ts +55 -0
- package/dist/mut-demo/parent-demo/interaction/document.js +104 -0
- package/dist/mut-demo/parent-demo/interaction/driver.d.ts +29 -0
- package/dist/mut-demo/parent-demo/interaction/driver.js +278 -0
- package/dist/mut-demo/parent-demo/main.d.ts +2 -0
- package/dist/mut-demo/parent-demo/main.js +4 -0
- package/dist/mut-demo/parent-demo/mcp/server.d.ts +89 -0
- package/dist/mut-demo/parent-demo/mcp/server.js +479 -0
- package/dist/mut-demo/parent-demo/node-io.d.ts +14 -0
- package/dist/mut-demo/parent-demo/node-io.js +153 -0
- package/dist/mut-demo/parent-demo/optimize/command.d.ts +12 -0
- package/dist/mut-demo/parent-demo/optimize/command.js +110 -0
- package/dist/mut-demo/parent-demo/packs/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/packs/command.js +109 -0
- package/dist/mut-demo/parent-demo/patch/apply.d.ts +36 -0
- package/dist/mut-demo/parent-demo/patch/apply.js +186 -0
- package/dist/mut-demo/parent-demo/patch/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/patch/command.js +92 -0
- package/dist/mut-demo/parent-demo/plugin/install.d.ts +40 -0
- package/dist/mut-demo/parent-demo/plugin/install.js +170 -0
- package/dist/mut-demo/parent-demo/preview/command.d.ts +10 -0
- package/dist/mut-demo/parent-demo/preview/command.js +945 -0
- package/dist/mut-demo/parent-demo/preview/manifest.d.ts +105 -0
- package/dist/mut-demo/parent-demo/preview/manifest.js +19 -0
- package/dist/mut-demo/parent-demo/preview/pack.d.ts +24 -0
- package/dist/mut-demo/parent-demo/preview/pack.js +53 -0
- package/dist/mut-demo/parent-demo/preview/plan.d.ts +61 -0
- package/dist/mut-demo/parent-demo/preview/plan.js +205 -0
- package/dist/mut-demo/parent-demo/preview/provenance.d.ts +23 -0
- package/dist/mut-demo/parent-demo/preview/provenance.js +38 -0
- package/dist/mut-demo/parent-demo/publish/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/publish/command.js +230 -0
- package/dist/mut-demo/parent-demo/publish/player.d.ts +61 -0
- package/dist/mut-demo/parent-demo/publish/player.js +728 -0
- package/dist/mut-demo/parent-demo/publish/static.d.ts +16 -0
- package/dist/mut-demo/parent-demo/publish/static.js +78 -0
- package/dist/mut-demo/parent-demo/qc.d.ts +2 -0
- package/dist/mut-demo/parent-demo/qc.js +192 -0
- package/dist/mut-demo/parent-demo/scene/author.d.ts +16 -0
- package/dist/mut-demo/parent-demo/scene/author.js +519 -0
- package/dist/mut-demo/parent-demo/scene/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/scene/command.js +110 -0
- package/dist/mut-demo/parent-demo/scene/ops.d.ts +23 -0
- package/dist/mut-demo/parent-demo/scene/ops.js +151 -0
- package/dist/mut-demo/parent-demo/state/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/state/command.js +128 -0
- package/dist/mut-demo/parent-demo/state/evidence.d.ts +73 -0
- package/dist/mut-demo/parent-demo/state/evidence.js +1 -0
- package/dist/mut-demo/parent-demo/storyboard/check.d.ts +21 -0
- package/dist/mut-demo/parent-demo/storyboard/check.js +39 -0
- package/dist/mut-demo/parent-demo/storyboard/containment.d.ts +24 -0
- package/dist/mut-demo/parent-demo/storyboard/containment.js +43 -0
- package/dist/mut-demo/parent-demo/storyboard/custom.d.ts +15 -0
- package/dist/mut-demo/parent-demo/storyboard/custom.js +133 -0
- package/dist/mut-demo/parent-demo/storyboard/edit.d.ts +19 -0
- package/dist/mut-demo/parent-demo/storyboard/edit.js +39 -0
- package/dist/mut-demo/parent-demo/storyboard/load.d.ts +11 -0
- package/dist/mut-demo/parent-demo/storyboard/load.js +52 -0
- package/dist/mut-demo/parent-demo/storyboard/report.d.ts +5 -0
- package/dist/mut-demo/parent-demo/storyboard/report.js +8 -0
- package/dist/mut-demo/parent-demo/template/coerce.d.ts +6 -0
- package/dist/mut-demo/parent-demo/template/coerce.js +44 -0
- package/dist/mut-demo/parent-demo/template/command.d.ts +5 -0
- package/dist/mut-demo/parent-demo/template/command.js +163 -0
- package/dist/mut-demo/parent-demo/template/env.d.ts +38 -0
- package/dist/mut-demo/parent-demo/template/env.js +40 -0
- package/dist/mut-demo/parent-demo/template/fork.d.ts +8 -0
- package/dist/mut-demo/parent-demo/template/fork.js +156 -0
- package/dist/mut-demo/parent-demo/template/format.d.ts +21 -0
- package/dist/mut-demo/parent-demo/template/format.js +177 -0
- package/dist/mut-demo/parent-demo/template/list.d.ts +27 -0
- package/dist/mut-demo/parent-demo/template/list.js +171 -0
- package/dist/mut-demo/parent-demo/template/new.d.ts +6 -0
- package/dist/mut-demo/parent-demo/template/new.js +335 -0
- package/dist/mut-demo/parent-demo/testing/env.d.ts +9 -0
- package/dist/mut-demo/parent-demo/testing/env.js +49 -0
- package/dist/mut-demo/parent-demo/testing/fakes.d.ts +39 -0
- package/dist/mut-demo/parent-demo/testing/fakes.js +100 -0
- package/dist/mut-demo/parent-demo/testing/fixtures.d.ts +8 -0
- package/dist/mut-demo/parent-demo/testing/fixtures.js +6 -0
- package/dist/mut-demo/parent-demo/testing/probe.d.ts +15 -0
- package/dist/mut-demo/parent-demo/testing/probe.js +20 -0
- package/dist/mut-demo/parent-demo/testing/project.d.ts +22 -0
- package/dist/mut-demo/parent-demo/testing/project.js +26 -0
- package/dist/mut-demo/parent-demo/tooling/session.d.ts +40 -0
- package/dist/mut-demo/parent-demo/tooling/session.js +106 -0
- package/dist/mut-demo/parent-demo/types.d.ts +64 -0
- package/dist/mut-demo/parent-demo/types.js +1 -0
- package/dist/mut-demo/parent-demo/verify/audio-loudness.d.ts +81 -0
- package/dist/mut-demo/parent-demo/verify/audio-loudness.js +306 -0
- package/dist/mut-demo/parent-demo/verify/caption.d.ts +23 -0
- package/dist/mut-demo/parent-demo/verify/caption.fixtures.d.ts +148 -0
- package/dist/mut-demo/parent-demo/verify/caption.fixtures.js +66 -0
- package/dist/mut-demo/parent-demo/verify/caption.js +105 -0
- package/dist/mut-demo/parent-demo/verify/command.d.ts +2 -0
- package/dist/mut-demo/parent-demo/verify/command.js +190 -0
- package/dist/mut-demo/parent-demo/verify/determinism.d.ts +30 -0
- package/dist/mut-demo/parent-demo/verify/determinism.js +59 -0
- package/dist/mut-demo/parent-demo/verify/expectation.d.ts +15 -0
- package/dist/mut-demo/parent-demo/verify/expectation.js +19 -0
- package/dist/mut-demo/parent-demo/verify/flash.d.ts +55 -0
- package/dist/mut-demo/parent-demo/verify/flash.js +147 -0
- package/dist/mut-demo/parent-demo/verify/media-events.d.ts +61 -0
- package/dist/mut-demo/parent-demo/verify/media-events.js +174 -0
- package/dist/mut-demo/parent-demo/verify/motion-coherence.d.ts +99 -0
- package/dist/mut-demo/parent-demo/verify/motion-coherence.js +274 -0
- package/dist/mut-demo/parent-demo/verify/platform.d.ts +33 -0
- package/dist/mut-demo/parent-demo/verify/platform.js +59 -0
- package/dist/mut-demo/parent-demo/verify/probe.d.ts +14 -0
- package/dist/mut-demo/parent-demo/verify/probe.js +23 -0
- package/dist/mut-demo/parent-demo/verify/report.d.ts +15 -0
- package/dist/mut-demo/parent-demo/verify/report.js +45 -0
- package/dist/mut-demo/parent-demo/verify/run.d.ts +32 -0
- package/dist/mut-demo/parent-demo/verify/run.js +64 -0
- package/dist/mut-demo/parent-demo/version/command.d.ts +5 -0
- package/dist/mut-demo/parent-demo/version/command.js +52 -0
- package/dist/mut-demo/parent-demo/voice/command.d.ts +3 -0
- package/dist/mut-demo/parent-demo/voice/command.js +77 -0
- package/dist/mut-demo/parent-demo/voice/manifest.d.ts +33 -0
- package/dist/mut-demo/parent-demo/voice/manifest.js +69 -0
- package/dist/mut-demo/parent-demo/voice/portability.d.ts +27 -0
- package/dist/mut-demo/parent-demo/voice/portability.js +41 -0
- package/dist/mut-demo/parent-demo/voice/run.d.ts +29 -0
- package/dist/mut-demo/parent-demo/voice/run.js +224 -0
- package/dist/mut-demo/parent-demo/workflow/build.d.ts +2 -0
- package/dist/mut-demo/parent-demo/workflow/build.js +33 -0
- package/dist/mut-demo/parent-demo/workflow/draft.d.ts +9 -0
- package/dist/mut-demo/parent-demo/workflow/draft.js +230 -0
- package/dist/mut-demo/parent-demo/workflow/finish.d.ts +23 -0
- package/dist/mut-demo/parent-demo/workflow/finish.js +28 -0
- package/dist/mut-demo/parent-demo/workflow/project.d.ts +82 -0
- package/dist/mut-demo/parent-demo/workflow/project.js +224 -0
- package/dist/mut-demo/parent-demo/workflow/provenance.d.ts +18 -0
- package/dist/mut-demo/parent-demo/workflow/provenance.js +36 -0
- package/dist/mut-demo/parent-demo/workflow/render.d.ts +78 -0
- package/dist/mut-demo/parent-demo/workflow/render.js +922 -0
- package/dist/mut-demo/parent-demo/workflow/still.d.ts +5 -0
- package/dist/mut-demo/parent-demo/workflow/still.js +79 -0
- package/dist/mut-demo/parent-demo/workflow/validate.d.ts +2 -0
- package/dist/mut-demo/parent-demo/workflow/validate.js +49 -0
- package/dist/mut-demo/patch/apply.d.ts +36 -0
- package/dist/mut-demo/patch/apply.js +186 -0
- package/dist/mut-demo/patch/command.d.ts +2 -0
- package/dist/mut-demo/patch/command.js +92 -0
- package/dist/mut-demo/plugin/install.d.ts +40 -0
- package/dist/mut-demo/plugin/install.js +170 -0
- package/dist/mut-demo/preview/command.d.ts +10 -0
- package/dist/mut-demo/preview/command.js +945 -0
- package/dist/mut-demo/preview/manifest.d.ts +105 -0
- package/dist/mut-demo/preview/manifest.js +19 -0
- package/dist/mut-demo/preview/pack.d.ts +24 -0
- package/dist/mut-demo/preview/pack.js +53 -0
- package/dist/mut-demo/preview/plan.d.ts +61 -0
- package/dist/mut-demo/preview/plan.js +205 -0
- package/dist/mut-demo/preview/provenance.d.ts +23 -0
- package/dist/mut-demo/preview/provenance.js +38 -0
- package/dist/mut-demo/publish/command.d.ts +2 -0
- package/dist/mut-demo/publish/command.js +230 -0
- package/dist/mut-demo/publish/player.d.ts +61 -0
- package/dist/mut-demo/publish/player.js +728 -0
- package/dist/mut-demo/publish/static.d.ts +16 -0
- package/dist/mut-demo/publish/static.js +78 -0
- package/dist/mut-demo/qc.d.ts +2 -0
- package/dist/mut-demo/qc.js +192 -0
- package/dist/mut-demo/scene/author.d.ts +16 -0
- package/dist/mut-demo/scene/author.js +519 -0
- package/dist/mut-demo/scene/command.d.ts +2 -0
- package/dist/mut-demo/scene/command.js +110 -0
- package/dist/mut-demo/scene/ops.d.ts +23 -0
- package/dist/mut-demo/scene/ops.js +151 -0
- package/dist/mut-demo/state/command.d.ts +2 -0
- package/dist/mut-demo/state/command.js +128 -0
- package/dist/mut-demo/state/evidence.d.ts +73 -0
- package/dist/mut-demo/state/evidence.js +1 -0
- package/dist/mut-demo/storyboard/check.d.ts +21 -0
- package/dist/mut-demo/storyboard/check.js +39 -0
- package/dist/mut-demo/storyboard/containment.d.ts +24 -0
- package/dist/mut-demo/storyboard/containment.js +43 -0
- package/dist/mut-demo/storyboard/custom.d.ts +15 -0
- package/dist/mut-demo/storyboard/custom.js +133 -0
- package/dist/mut-demo/storyboard/edit.d.ts +19 -0
- package/dist/mut-demo/storyboard/edit.js +39 -0
- package/dist/mut-demo/storyboard/load.d.ts +11 -0
- package/dist/mut-demo/storyboard/load.js +52 -0
- package/dist/mut-demo/storyboard/report.d.ts +5 -0
- package/dist/mut-demo/storyboard/report.js +8 -0
- package/dist/mut-demo/template/coerce.d.ts +6 -0
- package/dist/mut-demo/template/coerce.js +44 -0
- package/dist/mut-demo/template/command.d.ts +5 -0
- package/dist/mut-demo/template/command.js +163 -0
- package/dist/mut-demo/template/env.d.ts +38 -0
- package/dist/mut-demo/template/env.js +40 -0
- package/dist/mut-demo/template/fork.d.ts +8 -0
- package/dist/mut-demo/template/fork.js +156 -0
- package/dist/mut-demo/template/format.d.ts +21 -0
- package/dist/mut-demo/template/format.js +177 -0
- package/dist/mut-demo/template/list.d.ts +27 -0
- package/dist/mut-demo/template/list.js +171 -0
- package/dist/mut-demo/template/new.d.ts +6 -0
- package/dist/mut-demo/template/new.js +335 -0
- package/dist/mut-demo/testing/env.d.ts +9 -0
- package/dist/mut-demo/testing/env.js +49 -0
- package/dist/mut-demo/testing/fakes.d.ts +39 -0
- package/dist/mut-demo/testing/fakes.js +100 -0
- package/dist/mut-demo/testing/fixtures.d.ts +8 -0
- package/dist/mut-demo/testing/fixtures.js +6 -0
- package/dist/mut-demo/testing/probe.d.ts +15 -0
- package/dist/mut-demo/testing/probe.js +20 -0
- package/dist/mut-demo/testing/project.d.ts +22 -0
- package/dist/mut-demo/testing/project.js +26 -0
- package/dist/mut-demo/tooling/session.d.ts +40 -0
- package/dist/mut-demo/tooling/session.js +106 -0
- package/dist/mut-demo/types.d.ts +64 -0
- package/dist/mut-demo/types.js +1 -0
- package/dist/mut-demo/verify/audio-loudness.d.ts +81 -0
- package/dist/mut-demo/verify/audio-loudness.js +306 -0
- package/dist/mut-demo/verify/caption.d.ts +23 -0
- package/dist/mut-demo/verify/caption.fixtures.d.ts +148 -0
- package/dist/mut-demo/verify/caption.fixtures.js +66 -0
- package/dist/mut-demo/verify/caption.js +105 -0
- package/dist/mut-demo/verify/command.d.ts +2 -0
- package/dist/mut-demo/verify/command.js +190 -0
- package/dist/mut-demo/verify/determinism.d.ts +30 -0
- package/dist/mut-demo/verify/determinism.js +59 -0
- package/dist/mut-demo/verify/expectation.d.ts +15 -0
- package/dist/mut-demo/verify/expectation.js +19 -0
- package/dist/mut-demo/verify/flash.d.ts +55 -0
- package/dist/mut-demo/verify/flash.js +147 -0
- package/dist/mut-demo/verify/media-events.d.ts +61 -0
- package/dist/mut-demo/verify/media-events.js +174 -0
- package/dist/mut-demo/verify/motion-coherence.d.ts +99 -0
- package/dist/mut-demo/verify/motion-coherence.js +274 -0
- package/dist/mut-demo/verify/platform.d.ts +33 -0
- package/dist/mut-demo/verify/platform.js +59 -0
- package/dist/mut-demo/verify/probe.d.ts +14 -0
- package/dist/mut-demo/verify/probe.js +23 -0
- package/dist/mut-demo/verify/report.d.ts +15 -0
- package/dist/mut-demo/verify/report.js +45 -0
- package/dist/mut-demo/verify/run.d.ts +32 -0
- package/dist/mut-demo/verify/run.js +64 -0
- package/dist/mut-demo/version/command.d.ts +5 -0
- package/dist/mut-demo/version/command.js +52 -0
- package/dist/mut-demo/voice/command.d.ts +3 -0
- package/dist/mut-demo/voice/command.js +77 -0
- package/dist/mut-demo/voice/manifest.d.ts +33 -0
- package/dist/mut-demo/voice/manifest.js +69 -0
- package/dist/mut-demo/voice/portability.d.ts +27 -0
- package/dist/mut-demo/voice/portability.js +41 -0
- package/dist/mut-demo/voice/run.d.ts +29 -0
- package/dist/mut-demo/voice/run.js +224 -0
- package/dist/mut-demo/workflow/build.d.ts +2 -0
- package/dist/mut-demo/workflow/build.js +33 -0
- package/dist/mut-demo/workflow/draft.d.ts +9 -0
- package/dist/mut-demo/workflow/draft.js +230 -0
- package/dist/mut-demo/workflow/finish.d.ts +23 -0
- package/dist/mut-demo/workflow/finish.js +28 -0
- package/dist/mut-demo/workflow/project.d.ts +82 -0
- package/dist/mut-demo/workflow/project.js +224 -0
- package/dist/mut-demo/workflow/provenance.d.ts +18 -0
- package/dist/mut-demo/workflow/provenance.js +36 -0
- package/dist/mut-demo/workflow/render.d.ts +78 -0
- package/dist/mut-demo/workflow/render.js +922 -0
- package/dist/mut-demo/workflow/still.d.ts +5 -0
- package/dist/mut-demo/workflow/still.js +79 -0
- package/dist/mut-demo/workflow/validate.d.ts +2 -0
- package/dist/mut-demo/workflow/validate.js +49 -0
- package/dist/node-io.js +1 -0
- package/dist/parent-demo/.out/smoke/boot.js +90 -0
- package/dist/parent-demo/.out/smoke/runtime/compose.js +43 -0
- package/dist/parent-demo/.out/smoke/runtime/easing.js +45 -0
- package/dist/parent-demo/.out/smoke/runtime/mount.js +153 -0
- package/dist/parent-demo/.out/smoke/runtime/timeline.js +199 -0
- package/dist/parent-demo/.out/smoke/scenes/count/scene.js +6 -0
- package/dist/parent-demo/.out/smoke/scenes/intro/scene.js +6 -0
- package/dist/parent-demo/.out/smoke/scenes/outro/scene.js +6 -0
- package/dist/parent-demo/.out/smoke/scenes/path/scene.js +6 -0
- package/dist/parent-demo/.out/smoke/scenes/signals/scene.js +6 -0
- package/dist/parent-demo/.out/smoke/shared/format.js +59 -0
- package/dist/parent-demo/.out/smoke/shared/motion.js +117 -0
- package/dist/parent-demo/.out/template-flow/out/project/boot.js +88 -0
- package/dist/parent-demo/.out/template-flow/out/project/runtime/compose.js +43 -0
- package/dist/parent-demo/.out/template-flow/out/project/runtime/easing.js +45 -0
- package/dist/parent-demo/.out/template-flow/out/project/runtime/mount.js +153 -0
- package/dist/parent-demo/.out/template-flow/out/project/runtime/timeline.js +199 -0
- package/dist/parent-demo/.out/template-flow/out/project/scenes/diagram/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/project/scenes/end/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/project/scenes/intro/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/project/shared/format.js +59 -0
- package/dist/parent-demo/.out/template-flow/out/project/shared/motion.js +117 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/boot.js +88 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/compose.js +43 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/easing.js +45 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/mount.js +153 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/runtime/timeline.js +199 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/diagram/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/end/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/scenes/intro/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/format.js +59 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/clip/project/shared/motion.js +117 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/boot.js +88 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/compose.js +43 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/easing.js +45 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/mount.js +153 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/runtime/timeline.js +199 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/diagram/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/end/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/scenes/intro/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/format.js +59 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/light/project/shared/motion.js +117 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/boot.js +88 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/compose.js +43 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/easing.js +45 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/mount.js +153 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/runtime/timeline.js +199 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/diagram/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/end/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/scenes/intro/scene.js +6 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/format.js +59 -0
- package/dist/parent-demo/.out/template-flow/out/storyboard.preview-work/paired/project/shared/motion.js +117 -0
- package/dist/parent-demo/analyze/command.d.ts +2 -0
- package/dist/parent-demo/analyze/command.js +190 -0
- package/dist/parent-demo/approval/approval.d.ts +43 -0
- package/dist/parent-demo/approval/approval.js +155 -0
- package/dist/parent-demo/approval/command.d.ts +2 -0
- package/dist/parent-demo/approval/command.js +286 -0
- package/dist/parent-demo/approval/gate.d.ts +7 -0
- package/dist/parent-demo/approval/gate.js +23 -0
- package/dist/parent-demo/approval/hash.d.ts +76 -0
- package/dist/parent-demo/approval/hash.js +493 -0
- package/dist/parent-demo/args.d.ts +30 -0
- package/dist/parent-demo/args.js +53 -0
- package/dist/parent-demo/assets/command.d.ts +2 -0
- package/dist/parent-demo/assets/command.js +165 -0
- package/dist/parent-demo/captions/command.d.ts +16 -0
- package/dist/parent-demo/captions/command.js +462 -0
- package/dist/parent-demo/captions/cues.d.ts +19 -0
- package/dist/parent-demo/captions/cues.js +70 -0
- package/dist/parent-demo/catalog/command.d.ts +2 -0
- package/dist/parent-demo/catalog/command.js +60 -0
- package/dist/parent-demo/catalog/format.d.ts +13 -0
- package/dist/parent-demo/catalog/format.js +54 -0
- package/dist/parent-demo/cli.d.ts +3 -0
- package/dist/parent-demo/cli.js +35 -0
- package/dist/parent-demo/commands.d.ts +3 -0
- package/dist/parent-demo/commands.js +65 -0
- package/dist/parent-demo/compare/command.d.ts +4 -0
- package/dist/parent-demo/compare/command.js +144 -0
- package/dist/parent-demo/contact/argv.d.ts +24 -0
- package/dist/parent-demo/contact/argv.js +45 -0
- package/dist/parent-demo/contact/command.d.ts +2 -0
- package/dist/parent-demo/contact/command.js +79 -0
- package/dist/parent-demo/desktop/command.d.ts +21 -0
- package/dist/parent-demo/desktop/command.js +120 -0
- package/dist/parent-demo/doctor/checks.d.ts +25 -0
- package/dist/parent-demo/doctor/checks.js +584 -0
- package/dist/parent-demo/doctor/command.d.ts +4 -0
- package/dist/parent-demo/doctor/command.js +94 -0
- package/dist/parent-demo/doctor/format.d.ts +7 -0
- package/dist/parent-demo/doctor/format.js +41 -0
- package/dist/parent-demo/doctor/heal.d.ts +14 -0
- package/dist/parent-demo/doctor/heal.js +71 -0
- package/dist/parent-demo/doctor/pins.d.ts +8 -0
- package/dist/parent-demo/doctor/pins.js +28 -0
- package/dist/parent-demo/doctor/skills.d.ts +15 -0
- package/dist/parent-demo/doctor/skills.js +58 -0
- package/dist/parent-demo/doctor/types.d.ts +36 -0
- package/dist/parent-demo/doctor/types.js +1 -0
- package/dist/parent-demo/doctor/vendored.d.ts +15 -0
- package/dist/parent-demo/doctor/vendored.js +90 -0
- package/dist/parent-demo/doctor/version.d.ts +8 -0
- package/dist/parent-demo/doctor/version.js +11 -0
- package/dist/parent-demo/exit-codes.d.ts +16 -0
- package/dist/parent-demo/exit-codes.js +15 -0
- package/dist/parent-demo/fit/command.d.ts +5 -0
- package/dist/parent-demo/fit/command.js +154 -0
- package/dist/parent-demo/fit/solve.d.ts +21 -0
- package/dist/parent-demo/fit/solve.js +80 -0
- package/dist/parent-demo/fit/target.d.ts +18 -0
- package/dist/parent-demo/fit/target.js +47 -0
- package/dist/parent-demo/generate3d/command.d.ts +3 -0
- package/dist/parent-demo/generate3d/command.js +38 -0
- package/dist/parent-demo/generate3d/run.d.ts +39 -0
- package/dist/parent-demo/generate3d/run.js +77 -0
- package/dist/parent-demo/icon/command.d.ts +2 -0
- package/dist/parent-demo/icon/command.js +113 -0
- package/dist/parent-demo/index.d.ts +18 -0
- package/dist/parent-demo/index.js +16 -0
- package/dist/parent-demo/install-mk.d.ts +31 -0
- package/dist/parent-demo/install-mk.js +168 -0
- package/dist/parent-demo/integration/interaction.integration.d.ts +1 -0
- package/dist/parent-demo/integration/interaction.integration.js +95 -0
- package/dist/parent-demo/integration/preview.integration.d.ts +1 -0
- package/dist/parent-demo/integration/preview.integration.js +61 -0
- package/dist/parent-demo/integration/smoke.integration.d.ts +1 -0
- package/dist/parent-demo/integration/smoke.integration.js +91 -0
- package/dist/parent-demo/interaction/command.d.ts +4 -0
- package/dist/parent-demo/interaction/command.js +219 -0
- package/dist/parent-demo/interaction/document.d.ts +55 -0
- package/dist/parent-demo/interaction/document.js +104 -0
- package/dist/parent-demo/interaction/driver.d.ts +29 -0
- package/dist/parent-demo/interaction/driver.js +278 -0
- package/dist/parent-demo/main.d.ts +2 -0
- package/dist/parent-demo/main.js +4 -0
- package/dist/parent-demo/mcp/server.d.ts +89 -0
- package/dist/parent-demo/mcp/server.js +479 -0
- package/dist/parent-demo/node-io.d.ts +14 -0
- package/dist/parent-demo/node-io.js +153 -0
- package/dist/parent-demo/optimize/command.d.ts +12 -0
- package/dist/parent-demo/optimize/command.js +110 -0
- package/dist/parent-demo/packs/command.d.ts +2 -0
- package/dist/parent-demo/packs/command.js +109 -0
- package/dist/parent-demo/patch/apply.d.ts +36 -0
- package/dist/parent-demo/patch/apply.js +186 -0
- package/dist/parent-demo/patch/command.d.ts +2 -0
- package/dist/parent-demo/patch/command.js +92 -0
- package/dist/parent-demo/plugin/install.d.ts +40 -0
- package/dist/parent-demo/plugin/install.js +170 -0
- package/dist/parent-demo/preview/command.d.ts +10 -0
- package/dist/parent-demo/preview/command.js +945 -0
- package/dist/parent-demo/preview/manifest.d.ts +105 -0
- package/dist/parent-demo/preview/manifest.js +19 -0
- package/dist/parent-demo/preview/pack.d.ts +24 -0
- package/dist/parent-demo/preview/pack.js +53 -0
- package/dist/parent-demo/preview/plan.d.ts +61 -0
- package/dist/parent-demo/preview/plan.js +205 -0
- package/dist/parent-demo/preview/provenance.d.ts +23 -0
- package/dist/parent-demo/preview/provenance.js +38 -0
- package/dist/parent-demo/publish/command.d.ts +2 -0
- package/dist/parent-demo/publish/command.js +230 -0
- package/dist/parent-demo/publish/player.d.ts +61 -0
- package/dist/parent-demo/publish/player.js +728 -0
- package/dist/parent-demo/publish/static.d.ts +16 -0
- package/dist/parent-demo/publish/static.js +78 -0
- package/dist/parent-demo/qc.d.ts +2 -0
- package/dist/parent-demo/qc.js +192 -0
- package/dist/parent-demo/scene/author.d.ts +16 -0
- package/dist/parent-demo/scene/author.js +519 -0
- package/dist/parent-demo/scene/command.d.ts +2 -0
- package/dist/parent-demo/scene/command.js +110 -0
- package/dist/parent-demo/scene/ops.d.ts +23 -0
- package/dist/parent-demo/scene/ops.js +151 -0
- package/dist/parent-demo/state/command.d.ts +2 -0
- package/dist/parent-demo/state/command.js +128 -0
- package/dist/parent-demo/state/evidence.d.ts +73 -0
- package/dist/parent-demo/state/evidence.js +1 -0
- package/dist/parent-demo/storyboard/check.d.ts +21 -0
- package/dist/parent-demo/storyboard/check.js +39 -0
- package/dist/parent-demo/storyboard/containment.d.ts +24 -0
- package/dist/parent-demo/storyboard/containment.js +43 -0
- package/dist/parent-demo/storyboard/custom.d.ts +15 -0
- package/dist/parent-demo/storyboard/custom.js +133 -0
- package/dist/parent-demo/storyboard/edit.d.ts +19 -0
- package/dist/parent-demo/storyboard/edit.js +39 -0
- package/dist/parent-demo/storyboard/load.d.ts +11 -0
- package/dist/parent-demo/storyboard/load.js +52 -0
- package/dist/parent-demo/storyboard/report.d.ts +5 -0
- package/dist/parent-demo/storyboard/report.js +8 -0
- package/dist/parent-demo/template/coerce.d.ts +6 -0
- package/dist/parent-demo/template/coerce.js +44 -0
- package/dist/parent-demo/template/command.d.ts +5 -0
- package/dist/parent-demo/template/command.js +163 -0
- package/dist/parent-demo/template/env.d.ts +38 -0
- package/dist/parent-demo/template/env.js +40 -0
- package/dist/parent-demo/template/fork.d.ts +8 -0
- package/dist/parent-demo/template/fork.js +156 -0
- package/dist/parent-demo/template/format.d.ts +21 -0
- package/dist/parent-demo/template/format.js +177 -0
- package/dist/parent-demo/template/list.d.ts +27 -0
- package/dist/parent-demo/template/list.js +171 -0
- package/dist/parent-demo/template/new.d.ts +6 -0
- package/dist/parent-demo/template/new.js +335 -0
- package/dist/parent-demo/testing/env.d.ts +9 -0
- package/dist/parent-demo/testing/env.js +49 -0
- package/dist/parent-demo/testing/fakes.d.ts +39 -0
- package/dist/parent-demo/testing/fakes.js +100 -0
- package/dist/parent-demo/testing/fixtures.d.ts +8 -0
- package/dist/parent-demo/testing/fixtures.js +6 -0
- package/dist/parent-demo/testing/probe.d.ts +15 -0
- package/dist/parent-demo/testing/probe.js +20 -0
- package/dist/parent-demo/testing/project.d.ts +22 -0
- package/dist/parent-demo/testing/project.js +26 -0
- package/dist/parent-demo/tooling/session.d.ts +40 -0
- package/dist/parent-demo/tooling/session.js +106 -0
- package/dist/parent-demo/types.d.ts +64 -0
- package/dist/parent-demo/types.js +1 -0
- package/dist/parent-demo/verify/audio-loudness.d.ts +81 -0
- package/dist/parent-demo/verify/audio-loudness.js +306 -0
- package/dist/parent-demo/verify/caption.d.ts +23 -0
- package/dist/parent-demo/verify/caption.fixtures.d.ts +148 -0
- package/dist/parent-demo/verify/caption.fixtures.js +66 -0
- package/dist/parent-demo/verify/caption.js +105 -0
- package/dist/parent-demo/verify/command.d.ts +2 -0
- package/dist/parent-demo/verify/command.js +190 -0
- package/dist/parent-demo/verify/determinism.d.ts +30 -0
- package/dist/parent-demo/verify/determinism.js +59 -0
- package/dist/parent-demo/verify/expectation.d.ts +15 -0
- package/dist/parent-demo/verify/expectation.js +19 -0
- package/dist/parent-demo/verify/flash.d.ts +55 -0
- package/dist/parent-demo/verify/flash.js +147 -0
- package/dist/parent-demo/verify/media-events.d.ts +61 -0
- package/dist/parent-demo/verify/media-events.js +174 -0
- package/dist/parent-demo/verify/motion-coherence.d.ts +99 -0
- package/dist/parent-demo/verify/motion-coherence.js +274 -0
- package/dist/parent-demo/verify/platform.d.ts +33 -0
- package/dist/parent-demo/verify/platform.js +59 -0
- package/dist/parent-demo/verify/probe.d.ts +14 -0
- package/dist/parent-demo/verify/probe.js +23 -0
- package/dist/parent-demo/verify/report.d.ts +15 -0
- package/dist/parent-demo/verify/report.js +45 -0
- package/dist/parent-demo/verify/run.d.ts +32 -0
- package/dist/parent-demo/verify/run.js +64 -0
- package/dist/parent-demo/version/command.d.ts +5 -0
- package/dist/parent-demo/version/command.js +52 -0
- package/dist/parent-demo/voice/command.d.ts +3 -0
- package/dist/parent-demo/voice/command.js +77 -0
- package/dist/parent-demo/voice/manifest.d.ts +33 -0
- package/dist/parent-demo/voice/manifest.js +69 -0
- package/dist/parent-demo/voice/portability.d.ts +27 -0
- package/dist/parent-demo/voice/portability.js +41 -0
- package/dist/parent-demo/voice/run.d.ts +29 -0
- package/dist/parent-demo/voice/run.js +224 -0
- package/dist/parent-demo/workflow/build.d.ts +2 -0
- package/dist/parent-demo/workflow/build.js +33 -0
- package/dist/parent-demo/workflow/draft.d.ts +9 -0
- package/dist/parent-demo/workflow/draft.js +230 -0
- package/dist/parent-demo/workflow/finish.d.ts +23 -0
- package/dist/parent-demo/workflow/finish.js +28 -0
- package/dist/parent-demo/workflow/project.d.ts +82 -0
- package/dist/parent-demo/workflow/project.js +224 -0
- package/dist/parent-demo/workflow/provenance.d.ts +18 -0
- package/dist/parent-demo/workflow/provenance.js +36 -0
- package/dist/parent-demo/workflow/render.d.ts +78 -0
- package/dist/parent-demo/workflow/render.js +922 -0
- package/dist/parent-demo/workflow/still.d.ts +5 -0
- package/dist/parent-demo/workflow/still.js +79 -0
- package/dist/parent-demo/workflow/validate.d.ts +2 -0
- package/dist/parent-demo/workflow/validate.js +49 -0
- package/dist/plugin/install.d.ts +3 -3
- package/dist/plugin/install.js +2 -2
- package/dist/preview/command.js +166 -92
- package/dist/preview/manifest.d.ts +2 -0
- package/dist/publish/command.js +189 -29
- package/dist/publish/player.d.ts +42 -6
- package/dist/publish/player.js +660 -40
- package/dist/scene/author.d.ts +1 -1
- package/dist/scene/author.js +250 -10
- package/dist/state/evidence.d.ts +4 -2
- package/dist/state/evidence.js +17 -4
- package/dist/template/env.d.ts +4 -0
- package/dist/template/env.js +3 -1
- package/dist/template/format.js +28 -12
- package/dist/template/list.d.ts +13 -1
- package/dist/template/list.js +61 -6
- package/dist/template/new.js +37 -4
- package/dist/testing/env.d.ts +1 -0
- package/dist/testing/env.js +32 -2
- package/dist/testing/fakes.d.ts +7 -1
- package/dist/testing/fakes.js +7 -2
- package/dist/types.d.ts +5 -0
- package/dist/verify/audio-loudness.d.ts +38 -3
- package/dist/verify/audio-loudness.js +123 -3
- package/dist/verify/caption.d.ts +23 -0
- package/dist/verify/caption.fixtures.d.ts +148 -0
- package/dist/verify/caption.fixtures.js +66 -0
- package/dist/verify/caption.js +105 -0
- package/dist/verify/command.js +42 -13
- package/dist/verify/determinism.d.ts +5 -5
- package/dist/verify/determinism.js +6 -6
- package/dist/verify/flash.d.ts +55 -0
- package/dist/verify/flash.js +147 -0
- package/dist/verify/motion-coherence.d.ts +99 -0
- package/dist/verify/motion-coherence.js +274 -0
- package/dist/verify/platform.d.ts +3 -3
- package/dist/verify/platform.js +5 -5
- package/dist/verify/run.d.ts +5 -0
- package/dist/verify/run.js +11 -0
- package/dist/voice/portability.d.ts +27 -0
- package/dist/voice/portability.js +41 -0
- package/dist/voice/run.js +31 -17
- package/dist/workflow/build.js +11 -3
- package/dist/workflow/draft.js +24 -9
- package/dist/workflow/project.d.ts +10 -1
- package/dist/workflow/project.js +29 -3
- package/dist/workflow/render.d.ts +41 -2
- package/dist/workflow/render.js +212 -52
- package/dist/workflow/still.js +30 -13
- package/package.json +6 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Command } from "../types.ts";
|
|
2
|
+
export declare const STILLS_DIR = "stills";
|
|
3
|
+
/** The `hyperframes snapshot` argv for one `--at` timestamp; shared by every command that captures a still. */
|
|
4
|
+
export declare const stillSnapshotArgs: (at: string) => readonly string[];
|
|
5
|
+
export declare const stillCommand: Command;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { textFlag, usageError } from "../args.js";
|
|
3
|
+
import { EXIT } from "../exit-codes.js";
|
|
4
|
+
import { applyInteraction } from "../interaction/document.js";
|
|
5
|
+
import { runInProject } from "../tooling/session.js";
|
|
6
|
+
import { parseBuildArgs, prepareProject } from "./project.js";
|
|
7
|
+
const USAGE = `mk still <storyboard.json> (--at 1,5,9 | --review) [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>]
|
|
8
|
+
|
|
9
|
+
Build, then capture PNGs with \`hyperframes snapshot\`.
|
|
10
|
+
--at: one PNG per timestamp (seconds) with \`--no-end\`.
|
|
11
|
+
--review: the upstream review set instead (scene starts, middles, cut
|
|
12
|
+
seams plus phone-width beats); use either --at or --review, not both.
|
|
13
|
+
--interaction: fold a recorded transcript into the still, like \`mk render --interaction\`;
|
|
14
|
+
its storyboard digest must match this board (exit 4 otherwise).
|
|
15
|
+
PNGs go to <out>/stills; the paths are printed. Output of hyperframes: <out>/render-log.txt.
|
|
16
|
+
`;
|
|
17
|
+
export const STILLS_DIR = "stills";
|
|
18
|
+
const TIMES = /^\d+(\.\d+)?(,\d+(\.\d+)?)*$/;
|
|
19
|
+
/** The `hyperframes snapshot` argv for one `--at` timestamp; shared by every command that captures a still. */
|
|
20
|
+
export const stillSnapshotArgs = (at) => [
|
|
21
|
+
"snapshot",
|
|
22
|
+
".",
|
|
23
|
+
"--at",
|
|
24
|
+
at,
|
|
25
|
+
"--no-end",
|
|
26
|
+
"-o",
|
|
27
|
+
STILLS_DIR,
|
|
28
|
+
];
|
|
29
|
+
async function printStills(dir, io) {
|
|
30
|
+
const names = await io.host.listDir(dir).catch(() => []);
|
|
31
|
+
const shots = names.filter((name) => /\.(png|jpg|jpeg)$/.test(name)).sort();
|
|
32
|
+
if (shots.length === 0) {
|
|
33
|
+
io.stderr(`mk: no stills were written to ${dir}\n`);
|
|
34
|
+
return EXIT.ERROR;
|
|
35
|
+
}
|
|
36
|
+
io.stdout(shots.map((name) => `${join(dir, name)}\n`).join(""));
|
|
37
|
+
return EXIT.OK;
|
|
38
|
+
}
|
|
39
|
+
/** `--at` or `--review`, exactly one; an exit code on bad usage. */
|
|
40
|
+
function stillTarget(flags, io) {
|
|
41
|
+
const at = textFlag(flags, "at");
|
|
42
|
+
const review = flags.review === true;
|
|
43
|
+
if (review && at !== undefined) {
|
|
44
|
+
return usageError("still", USAGE, "use either --at or --review, not both", io).code;
|
|
45
|
+
}
|
|
46
|
+
if (!review && (at === undefined || !TIMES.test(at))) {
|
|
47
|
+
return usageError("still", USAGE, "--at needs seconds like 1,5,9", io).code;
|
|
48
|
+
}
|
|
49
|
+
return { at, review };
|
|
50
|
+
}
|
|
51
|
+
export const stillCommand = {
|
|
52
|
+
name: "still",
|
|
53
|
+
summary: "build, then capture PNG stills at --at timestamps or --review the upstream set",
|
|
54
|
+
async run(args, io) {
|
|
55
|
+
const parsed = parseBuildArgs("still", USAGE, args, {
|
|
56
|
+
at: { type: "string" },
|
|
57
|
+
review: { type: "boolean" },
|
|
58
|
+
interaction: { type: "string" },
|
|
59
|
+
}, io);
|
|
60
|
+
if (parsed.kind === "exit")
|
|
61
|
+
return parsed.code;
|
|
62
|
+
const target = stillTarget(parsed.flags, io);
|
|
63
|
+
if (typeof target === "number")
|
|
64
|
+
return target;
|
|
65
|
+
const applied = await applyInteraction("still", parsed.request, textFlag(parsed.flags, "interaction"), io);
|
|
66
|
+
if (!applied.ok)
|
|
67
|
+
return applied.code;
|
|
68
|
+
const prepared = await prepareProject(applied.request, io);
|
|
69
|
+
if (!prepared.ok)
|
|
70
|
+
return prepared.code;
|
|
71
|
+
const snapArgs = target.review
|
|
72
|
+
? ["snapshot", ".", "--review", "-o", STILLS_DIR]
|
|
73
|
+
: stillSnapshotArgs(target.at);
|
|
74
|
+
const code = await runInProject(io, prepared.outDir, async (session) => {
|
|
75
|
+
await session.hf([...snapArgs]);
|
|
76
|
+
});
|
|
77
|
+
return code === 0 ? printStills(join(prepared.outDir, STILLS_DIR), io) : code;
|
|
78
|
+
},
|
|
79
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { parseFlags, requireStoryboard } from "../args.js";
|
|
2
|
+
import { EXIT } from "../exit-codes.js";
|
|
3
|
+
import { checkStoryboard, rootError } from "../storyboard/check.js";
|
|
4
|
+
import { readCustomScenes } from "../storyboard/custom.js";
|
|
5
|
+
import { readJsonFile } from "../storyboard/load.js";
|
|
6
|
+
import { formatFindings, summaryLine } from "../storyboard/report.js";
|
|
7
|
+
import { platformLookup } from "../verify/platform.js";
|
|
8
|
+
const USAGE = `mk validate <storyboard.json> [--json]
|
|
9
|
+
|
|
10
|
+
Validate a storyboard: schema, scene props, timing and lint.
|
|
11
|
+
Exit 0 when there are no errors (warnings allowed); 2 on validation errors, bad usage or unreadable files.
|
|
12
|
+
--json one JSON document {ok, errors, warnings}
|
|
13
|
+
`;
|
|
14
|
+
const printText = (report, io) => {
|
|
15
|
+
io.stdout(formatFindings([...report.errors, ...report.warnings]));
|
|
16
|
+
io.stdout(summaryLine(report.errors.length, report.warnings.length));
|
|
17
|
+
};
|
|
18
|
+
const printJson = (report, io) => {
|
|
19
|
+
const { errors, warnings } = report;
|
|
20
|
+
io.stdout(`${JSON.stringify({ ok: errors.length === 0, errors, warnings }, null, 2)}\n`);
|
|
21
|
+
};
|
|
22
|
+
export const validateCommand = {
|
|
23
|
+
name: "validate",
|
|
24
|
+
summary: "check a storyboard: schema, scene props, timing, lint",
|
|
25
|
+
async run(args, io) {
|
|
26
|
+
const parsed = parseFlags("validate", USAGE, args, { json: { type: "boolean" } }, io);
|
|
27
|
+
if (parsed.kind === "exit")
|
|
28
|
+
return parsed.code;
|
|
29
|
+
const path = requireStoryboard("validate", USAGE, parsed.positionals, io);
|
|
30
|
+
if (typeof path !== "string")
|
|
31
|
+
return path.code;
|
|
32
|
+
const loaded = await readJsonFile(path, io.host);
|
|
33
|
+
if (!loaded.ok && loaded.kind === "io") {
|
|
34
|
+
io.stderr(`mk validate: ${loaded.message}\n`);
|
|
35
|
+
return EXIT.USAGE;
|
|
36
|
+
}
|
|
37
|
+
const report = loaded.ok
|
|
38
|
+
? checkStoryboard(loaded.value, { platforms: await platformLookup(io.host) })
|
|
39
|
+
: { errors: [rootError(loaded.message)], warnings: [] };
|
|
40
|
+
if (loaded.ok && report.errors.length === 0) {
|
|
41
|
+
const custom = await readCustomScenes(loaded.value, path, io.host);
|
|
42
|
+
for (const finding of custom.findings) {
|
|
43
|
+
(finding.severity === "error" ? report.errors : report.warnings).push(finding);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
(parsed.flags.json ? printJson : printText)(report, io);
|
|
47
|
+
return report.errors.length === 0 ? EXIT.OK : EXIT.USAGE;
|
|
48
|
+
},
|
|
49
|
+
};
|
package/dist/plugin/install.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ import type { Command } from "../types.ts";
|
|
|
6
6
|
* version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
|
|
7
7
|
* pre-publish placeholder: an isolated `npm install` of the packed tarball
|
|
8
8
|
* rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
|
|
9
|
-
* so `npx -y @anvpx/motion@0.1.
|
|
9
|
+
* so `npx -y @anvpx/motion@0.1.95` 404s in isolation (qualify-pack exits 2
|
|
10
10
|
* BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
|
|
11
11
|
* work around it. Publish path is choiceA (publish internal @anvpx/motion-*
|
|
12
12
|
* at real versions) or choiceB (bundle into one tarball); either lands with
|
|
13
13
|
* a version bump of core manifest + this pin + plugin.json together.
|
|
14
14
|
*/
|
|
15
|
-
export declare const PINNED_CORE_VERSION = "0.1.
|
|
16
|
-
export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.
|
|
15
|
+
export declare const PINNED_CORE_VERSION = "0.1.95";
|
|
16
|
+
export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.95";
|
|
17
17
|
/** Skill file whose sha256 must survive `plugin install` byte for byte. */
|
|
18
18
|
export declare const PLUGIN_SKILL: string;
|
|
19
19
|
export interface PluginEnv {
|
package/dist/plugin/install.js
CHANGED
|
@@ -11,13 +11,13 @@ import { EXIT } from "../exit-codes.js";
|
|
|
11
11
|
* version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
|
|
12
12
|
* pre-publish placeholder: an isolated `npm install` of the packed tarball
|
|
13
13
|
* rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
|
|
14
|
-
* so `npx -y @anvpx/motion@0.1.
|
|
14
|
+
* so `npx -y @anvpx/motion@0.1.95` 404s in isolation (qualify-pack exits 2
|
|
15
15
|
* BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
|
|
16
16
|
* work around it. Publish path is choiceA (publish internal @anvpx/motion-*
|
|
17
17
|
* at real versions) or choiceB (bundle into one tarball); either lands with
|
|
18
18
|
* a version bump of core manifest + this pin + plugin.json together.
|
|
19
19
|
*/
|
|
20
|
-
export const PINNED_CORE_VERSION = "0.1.
|
|
20
|
+
export const PINNED_CORE_VERSION = "0.1.95";
|
|
21
21
|
export const PINNED_NPX = `npx -y @anvpx/motion@${PINNED_CORE_VERSION}`;
|
|
22
22
|
/** Skill file whose sha256 must survive `plugin install` byte for byte. */
|
|
23
23
|
export const PLUGIN_SKILL = join("skills", "motion-kit", "SKILL.md");
|
package/dist/preview/command.js
CHANGED
|
@@ -2,9 +2,11 @@ import { createHash } from "node:crypto";
|
|
|
2
2
|
import { basename, dirname, join, resolve } from "node:path";
|
|
3
3
|
import { validateMusicBed } from "@anvpx/motion-audio";
|
|
4
4
|
import { AUDIO_DIR_NAME, CUSTOM_SCENE_TYPE, clipsFromManifest, frozenClips, frozenCopyProblems, frozenMusic, isContiguous, mixAtDeliveryLevel, parseAudioManifest, placementsFromTimeline, readRelativeClosure, resolveSceneDir, resolveTimeline, validateStoryboardFull, } from "@anvpx/motion-build";
|
|
5
|
+
import { canonicalJson } from "@anvpx/motion-schema";
|
|
5
6
|
import { buildApprovalInputManifest, hashApprovalInput, storyboardHash, } from "../approval/hash.js";
|
|
6
7
|
import { parseFlags, requireStoryboard, textFlag, usageError } from "../args.js";
|
|
7
8
|
import { EXIT } from "../exit-codes.js";
|
|
9
|
+
import { derivedInteraction, resolveInteraction } from "../interaction/document.js";
|
|
8
10
|
import { checkStoryboard, rootError } from "../storyboard/check.js";
|
|
9
11
|
import { sceneContainment } from "../storyboard/containment.js";
|
|
10
12
|
import { readJsonFile } from "../storyboard/load.js";
|
|
@@ -18,7 +20,7 @@ import { CHECKLIST, defaultOut, PREVIEW_JSON, packDir, } from "./manifest.js";
|
|
|
18
20
|
import { clearPngs, contactSheet, listPngs, nameStills, } from "./pack.js";
|
|
19
21
|
import { CLIP_MAX_SEC, CLIP_SCENE_SEC, capClip, DARK_COUNT, distinctPicks, sceneInfos, shouldRunClip, stillCandidates, stillPlan, } from "./plan.js";
|
|
20
22
|
import { readProvenance, resolvePair } from "./provenance.js";
|
|
21
|
-
const USAGE = `mk preview <storyboard.json> [--stills 6 | --every] [--full] [--budget-sec 90] [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--audio <manifest>] [--allow-silent] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>] [--json]
|
|
23
|
+
const USAGE = `mk preview <storyboard.json> [--stills 6 | --every] [--full] [--budget-sec 90] [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--audio <manifest>] [--allow-silent] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>] [--interaction <interaction.json>] [--json]
|
|
22
24
|
|
|
23
25
|
Build the proposal pack the user approves, into <out>/<name>.preview, <name> = the storyboard file name without .json (default <out> = <storyboard dir>/out):
|
|
24
26
|
preview.json hash, template, frame, scenes, stills, lint, estimate, approval checklist
|
|
@@ -41,12 +43,15 @@ the template has one. Order of work: stills, contact sheet, clip. If --budget-se
|
|
|
41
43
|
inputManifestSha256.
|
|
42
44
|
--allow-silent permit a silent preview when the board has narration; only
|
|
43
45
|
when the user explicitly wants silent output
|
|
44
|
-
--music <bed.wav> opt-in CC0 bed
|
|
46
|
+
--music <bed.wav> opt-in CC0 bed; with --audio it ducks under narration, without
|
|
47
|
+
--audio it is the film's only sound and runs to the picture end;
|
|
45
48
|
same buildMusicMixArgs as final; volume via --music-volume,
|
|
46
49
|
license receipt via --music-license. Bed + volume + licenseEvidenceSha256
|
|
47
50
|
enter inputManifestSha256.
|
|
48
51
|
--music-volume <n> bed level within (0, 1] (default 0.5)
|
|
49
52
|
--music-license <file> license-evidence file hashed into the receipt
|
|
53
|
+
--interaction <file> fold a recorded ADR-0013 transcript into the stills and clip; the
|
|
54
|
+
transcript is part of inputManifestSha256, so editing it re-arms approval
|
|
50
55
|
--json print preview.json instead of the summary line
|
|
51
56
|
Scratch builds live in <out>/<name>.preview-work. Then show the pack and, after an explicit yes: mk approve <storyboard.json>
|
|
52
57
|
`;
|
|
@@ -63,6 +68,7 @@ const FLAGS = {
|
|
|
63
68
|
music: { type: "string" },
|
|
64
69
|
"music-volume": { type: "string" },
|
|
65
70
|
"music-license": { type: "string" },
|
|
71
|
+
interaction: { type: "string" },
|
|
66
72
|
json: { type: "boolean" },
|
|
67
73
|
};
|
|
68
74
|
const DEFAULT_STILLS = 6;
|
|
@@ -111,15 +117,13 @@ function readOptions(flags, storyboard, io) {
|
|
|
111
117
|
const music = textFlag(flags, "music");
|
|
112
118
|
const musicVolumeRaw = textFlag(flags, "music-volume");
|
|
113
119
|
const musicLicense = textFlag(flags, "music-license");
|
|
120
|
+
const interaction = textFlag(flags, "interaction");
|
|
114
121
|
if (musicVolumeRaw !== undefined) {
|
|
115
122
|
const n = Number(musicVolumeRaw);
|
|
116
123
|
if (!Number.isFinite(n) || n <= 0 || n > 1) {
|
|
117
124
|
return usageError("preview", USAGE, "--music-volume must be within (0, 1]", io).code;
|
|
118
125
|
}
|
|
119
126
|
}
|
|
120
|
-
if (music !== undefined && audio === undefined) {
|
|
121
|
-
return usageError("preview", USAGE, "--music needs --audio", io).code;
|
|
122
|
-
}
|
|
123
127
|
if ((musicVolumeRaw !== undefined || musicLicense !== undefined) && music === undefined) {
|
|
124
128
|
return usageError("preview", USAGE, "--music-volume/--music-license need --music", io).code;
|
|
125
129
|
}
|
|
@@ -140,6 +144,7 @@ function readOptions(flags, storyboard, io) {
|
|
|
140
144
|
...(music === undefined ? {} : { musicPath: music }),
|
|
141
145
|
...(musicVolumeRaw === undefined ? {} : { musicVolume: Number(musicVolumeRaw) }),
|
|
142
146
|
...(musicLicense === undefined ? {} : { musicLicensePath: musicLicense }),
|
|
147
|
+
...(interaction === undefined ? {} : { interactionPath: interaction }),
|
|
143
148
|
};
|
|
144
149
|
}
|
|
145
150
|
/** Copies every `<dir>/themes/*.json` of the project into a scratch project. */
|
|
@@ -192,8 +197,8 @@ export async function copyCustomScenes(host, board, origin, targetDir) {
|
|
|
192
197
|
}
|
|
193
198
|
}
|
|
194
199
|
}
|
|
195
|
-
/** Writes a derived storyboard (+
|
|
196
|
-
async function scratch(io, work, name, board, projectDir, extraThemes = [], origin) {
|
|
200
|
+
/** Writes a derived storyboard (+ its transcript, themes, extra theme files) into its own scratch dir. */
|
|
201
|
+
async function scratch(io, work, name, board, projectDir, extraThemes = [], origin, interaction) {
|
|
197
202
|
const dir = join(work, name);
|
|
198
203
|
await io.host.writeTextAtomic(join(dir, "storyboard.json"), `${JSON.stringify(board, null, 2)}\n`);
|
|
199
204
|
if (origin !== undefined)
|
|
@@ -202,6 +207,17 @@ async function scratch(io, work, name, board, projectDir, extraThemes = [], orig
|
|
|
202
207
|
for (const theme of extraThemes) {
|
|
203
208
|
await io.host.writeTextAtomic(join(dir, "themes", `${theme.id}.json`), theme.text);
|
|
204
209
|
}
|
|
210
|
+
if (interaction !== undefined) {
|
|
211
|
+
// The scratch board is a derived document (voice timing, capped trailer, paired theme);
|
|
212
|
+
// its digest differs, so the transcript is re-stamped to keep the same event fold.
|
|
213
|
+
const path = join(dir, "interaction.json");
|
|
214
|
+
await io.host.writeTextAtomic(path, canonicalJson(derivedInteraction(interaction, board)));
|
|
215
|
+
return {
|
|
216
|
+
storyboard: join(dir, "storyboard.json"),
|
|
217
|
+
project: join(dir, "project"),
|
|
218
|
+
interaction: path,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
205
221
|
return { storyboard: join(dir, "storyboard.json"), project: join(dir, "project") };
|
|
206
222
|
}
|
|
207
223
|
/** Runs `mk still` quietly; returns the PNGs it wrote (ordered like the `--at` list) or an exit code. */
|
|
@@ -211,7 +227,8 @@ async function capture(io, scratchDir, picks, extra, clock, spent) {
|
|
|
211
227
|
const quiet = captured(io);
|
|
212
228
|
const began = clock();
|
|
213
229
|
const at = picks.map((p) => p.t).join(",");
|
|
214
|
-
const
|
|
230
|
+
const interaction = scratchDir.interaction === undefined ? [] : ["--interaction", scratchDir.interaction];
|
|
231
|
+
const code = await stillCommand.run([scratchDir.storyboard, "--at", at, "--out", scratchDir.project, ...extra, ...interaction], quiet.io);
|
|
215
232
|
spent.ms += clock() - began;
|
|
216
233
|
if (code !== 0) {
|
|
217
234
|
io.stderr(quiet.err.join(""));
|
|
@@ -246,11 +263,20 @@ async function voiceTotal(io, board, audioManifest) {
|
|
|
246
263
|
}
|
|
247
264
|
}
|
|
248
265
|
/** Full-length audible clip: voice-timed build so clip video total equals narration total. */
|
|
249
|
-
async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin) {
|
|
250
|
-
const clip = await scratch(io, work, "clip", stripNarration(board), projectDir, [], origin);
|
|
266
|
+
async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, interaction) {
|
|
267
|
+
const clip = await scratch(io, work, "clip", stripNarration(board), projectDir, [], origin, interaction);
|
|
251
268
|
const quiet = captured(io);
|
|
252
269
|
const began = clock();
|
|
253
|
-
const
|
|
270
|
+
const interactionFlags = clip.interaction === undefined ? [] : ["--interaction", clip.interaction];
|
|
271
|
+
const code = await clipDraft.run([
|
|
272
|
+
clip.storyboard,
|
|
273
|
+
"--out",
|
|
274
|
+
clip.project,
|
|
275
|
+
...extra,
|
|
276
|
+
...interactionFlags,
|
|
277
|
+
"--audio",
|
|
278
|
+
audioManifest,
|
|
279
|
+
], quiet.io);
|
|
254
280
|
const ms = clock() - began;
|
|
255
281
|
if (code !== 0) {
|
|
256
282
|
const why = quiet.err.join("").trim().split("\n")[0] ?? "";
|
|
@@ -271,10 +297,10 @@ async function makeAudibleClip(io, board, projectDir, work, pack, extra, clock,
|
|
|
271
297
|
msPerFrame: ms / Math.max(1, Math.round(sec * DRAFT_FPS)),
|
|
272
298
|
};
|
|
273
299
|
}
|
|
274
|
-
async function makeClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, full) {
|
|
300
|
+
async function makeClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, full, interaction) {
|
|
275
301
|
// With --audio or --full the clip is the full review, not a capped trailer.
|
|
276
302
|
if (audioManifest !== undefined) {
|
|
277
|
-
return makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin);
|
|
303
|
+
return makeAudibleClip(io, board, projectDir, work, pack, extra, clock, audioManifest, origin, interaction);
|
|
278
304
|
}
|
|
279
305
|
const plan = full
|
|
280
306
|
? (() => {
|
|
@@ -283,10 +309,11 @@ async function makeClip(io, board, projectDir, work, pack, extra, clock, audioMa
|
|
|
283
309
|
return { storyboard: stripped, totalSec: timeline.ok ? timeline.value.total : 0 };
|
|
284
310
|
})()
|
|
285
311
|
: capClip(board);
|
|
286
|
-
const clip = await scratch(io, work, "clip", plan.storyboard, projectDir, [], origin);
|
|
312
|
+
const clip = await scratch(io, work, "clip", plan.storyboard, projectDir, [], origin, interaction);
|
|
287
313
|
const quiet = captured(io);
|
|
288
314
|
const began = clock();
|
|
289
|
-
const
|
|
315
|
+
const interactionFlags = clip.interaction === undefined ? [] : ["--interaction", clip.interaction];
|
|
316
|
+
const code = await clipDraft.run([clip.storyboard, "--out", clip.project, ...extra, ...interactionFlags], quiet.io);
|
|
290
317
|
const ms = clock() - began;
|
|
291
318
|
if (code !== 0) {
|
|
292
319
|
const why = quiet.err.join("").trim().split("\n")[0] ?? "";
|
|
@@ -351,7 +378,7 @@ async function shootStills(ctx, pair, spent) {
|
|
|
351
378
|
const picks = options.every
|
|
352
379
|
? stillPlan(ctx.infos, ctx.infos.length)
|
|
353
380
|
: stillPlan(ctx.candidates, options.stills);
|
|
354
|
-
const light = await scratch(io, work, "light", board, projectDir, [], ctx.storyboard);
|
|
381
|
+
const light = await scratch(io, work, "light", board, projectDir, [], ctx.storyboard, ctx.interaction);
|
|
355
382
|
const files = await capture(io, light, picks, options.extra, clock, spent);
|
|
356
383
|
if (typeof files === "number")
|
|
357
384
|
return files;
|
|
@@ -359,7 +386,7 @@ async function shootStills(ctx, pair, spent) {
|
|
|
359
386
|
if (pair !== undefined) {
|
|
360
387
|
const extra = distinctPicks(picks, DARK_COUNT);
|
|
361
388
|
const paired = { ...board, meta: { ...board.meta, theme: pair.id } };
|
|
362
|
-
const scratchDir = await scratch(io, work, "paired", paired, projectDir, [pair], ctx.storyboard);
|
|
389
|
+
const scratchDir = await scratch(io, work, "paired", paired, projectDir, [pair], ctx.storyboard, ctx.interaction);
|
|
363
390
|
const darkFiles = await capture(io, scratchDir, extra, options.extra, clock, spent);
|
|
364
391
|
if (typeof darkFiles === "number")
|
|
365
392
|
return darkFiles;
|
|
@@ -385,7 +412,7 @@ async function clipOrSkip(ctx, stillsMs) {
|
|
|
385
412
|
await io.host.remove(join(pack, "clip.mp4"));
|
|
386
413
|
const elapsed = clock() - began;
|
|
387
414
|
if (options.full || shouldRunClip(elapsed, stillsMs, options.budgetSec * MS)) {
|
|
388
|
-
return makeClip(io, ctx.board, ctx.projectDir, ctx.work, pack, options.extra, clock, options.audioManifest, ctx.storyboard, options.full);
|
|
415
|
+
return makeClip(io, ctx.board, ctx.projectDir, ctx.work, pack, options.extra, clock, options.audioManifest, ctx.storyboard, options.full, ctx.interaction);
|
|
389
416
|
}
|
|
390
417
|
const used = `${Math.round(elapsed / MS)} s used of ${options.budgetSec} s`;
|
|
391
418
|
return {
|
|
@@ -472,6 +499,9 @@ const inputsOf = (options) => ({
|
|
|
472
499
|
music: options.musicPath === undefined ? null : resolve(options.musicPath),
|
|
473
500
|
musicVolume: options.musicVolume ?? null,
|
|
474
501
|
musicLicense: options.musicLicensePath === undefined ? null : resolve(options.musicLicensePath),
|
|
502
|
+
...(options.interactionPath === undefined
|
|
503
|
+
? {}
|
|
504
|
+
: { interaction: resolve(options.interactionPath) }),
|
|
475
505
|
});
|
|
476
506
|
function manifestOf(ctx, facts) {
|
|
477
507
|
const { board, infos, report, options } = ctx;
|
|
@@ -535,6 +565,11 @@ async function start(args, io, clock) {
|
|
|
535
565
|
const loaded = await loadBoard(storyboard, io);
|
|
536
566
|
if (typeof loaded === "number")
|
|
537
567
|
return loaded;
|
|
568
|
+
const resolved = options.interactionPath === undefined
|
|
569
|
+
? undefined
|
|
570
|
+
: await resolveInteraction("preview", storyboard, options.interactionPath, io);
|
|
571
|
+
if (resolved !== undefined && !resolved.ok)
|
|
572
|
+
return resolved.code;
|
|
538
573
|
const narrated = loaded.board.scenes.some((scene) => scene.layer !== "overlay" && (scene.narration?.trim() ?? "") !== "");
|
|
539
574
|
if (narrated && options.audioManifest === undefined && !options.allowSilent) {
|
|
540
575
|
io.stderr("mk preview: this board has narration but no --audio. Run `mk voice <storyboard> --preset <id>`, then preview with --audio <manifest> --full; pass --allow-silent only when the user explicitly wants silent output.\n");
|
|
@@ -545,6 +580,7 @@ async function start(args, io, clock) {
|
|
|
545
580
|
io,
|
|
546
581
|
storyboard,
|
|
547
582
|
options,
|
|
583
|
+
...(resolved === undefined ? {} : { interaction: resolved.interaction }),
|
|
548
584
|
projectDir: dirname(resolve(storyboard)),
|
|
549
585
|
work: `${packDir(options.out, storyboard)}-work`,
|
|
550
586
|
pack: packDir(options.out, storyboard),
|
|
@@ -567,6 +603,9 @@ const resolvePreview = async (io, ctx) => {
|
|
|
567
603
|
...(ctx.options.musicLicensePath === undefined
|
|
568
604
|
? {}
|
|
569
605
|
: { musicLicense: ctx.options.musicLicensePath }),
|
|
606
|
+
...(ctx.options.interactionPath === undefined
|
|
607
|
+
? {}
|
|
608
|
+
: { interaction: ctx.options.interactionPath }),
|
|
570
609
|
});
|
|
571
610
|
return { manifest, sha: hashApprovalInput(manifest) };
|
|
572
611
|
}
|
|
@@ -586,94 +625,115 @@ const SILENT_AUDIO_MIX = {
|
|
|
586
625
|
musicVolume: null,
|
|
587
626
|
musicLicenseSha: null,
|
|
588
627
|
};
|
|
589
|
-
/**
|
|
628
|
+
/** Builds the `--audio`/`--music` flag text used in rerun hints. */
|
|
629
|
+
const previewAudioFlags = (opts) => [
|
|
630
|
+
...(opts.audioManifest === undefined ? [] : [`--audio ${opts.audioManifest}`]),
|
|
631
|
+
...(opts.musicPath === undefined ? [] : [`--music ${opts.musicPath}`]),
|
|
632
|
+
...(opts.musicVolume === undefined ? [] : [`--music-volume ${opts.musicVolume}`]),
|
|
633
|
+
...(opts.musicLicensePath === undefined ? [] : [`--music-license ${opts.musicLicensePath}`]),
|
|
634
|
+
].join(" ");
|
|
635
|
+
/**
|
|
636
|
+
* Mixes the exact final inputs under the preview clip with the same args as the
|
|
637
|
+
* final render. Narration is optional: a valid bed with no `--audio` is a
|
|
638
|
+
* music-only film sized by the picture duration, not a usage error or silence.
|
|
639
|
+
*/
|
|
590
640
|
const mixPreviewClip = async (io, pack, work, audioManifest, storyboard, expected, musicOpts = {}, durationSec) => {
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
return EXIT.USAGE;
|
|
612
|
-
}
|
|
613
|
-
const audioDir = join(dirname(resolve(audioManifest)), AUDIO_DIR_NAME);
|
|
614
|
-
// Place the voice sequence on the film timeline (transitions start scenes
|
|
615
|
-
// early), not on the manifest's cumulative starts.
|
|
616
|
-
const boardLoaded = await readJsonFile(storyboard, io.host);
|
|
617
|
-
const validBoard = boardLoaded.ok ? validateStoryboardFull(boardLoaded.value) : undefined;
|
|
618
|
-
const timeline = validBoard?.ok === true ? resolveTimeline(validBoard.value, parsed.manifest) : undefined;
|
|
619
|
-
const placements = timeline?.ok === true ? placementsFromTimeline(timeline.value) : undefined;
|
|
620
|
-
const clips = clipsFromManifest(parsed.manifest, audioDir, placements);
|
|
621
|
-
if (clips.length === 0) {
|
|
622
|
-
io.stderr(`mk preview: --audio manifest has no scenes; nothing to mix; ${rerun}\n`);
|
|
623
|
-
return EXIT.USAGE;
|
|
624
|
-
}
|
|
625
|
-
for (const clip of clips) {
|
|
626
|
-
const digest = await io.host.sha256File(clip.wav);
|
|
627
|
-
if (digest === undefined) {
|
|
628
|
-
io.stderr(`mk preview: missing narration wav for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
|
|
641
|
+
const flags = previewAudioFlags({
|
|
642
|
+
...(audioManifest === undefined ? {} : { audioManifest }),
|
|
643
|
+
...musicOpts,
|
|
644
|
+
});
|
|
645
|
+
const rerun = `rerun \`mk preview ${storyboard}${flags === "" ? "" : ` ${flags}`}\` after fixing the audio inputs`;
|
|
646
|
+
let manifestSha = null;
|
|
647
|
+
let wavSha = null;
|
|
648
|
+
let clips = [];
|
|
649
|
+
let frozenNarration = [];
|
|
650
|
+
// AU-01: freeze the exact bytes ffmpeg consumes (ABA-proof) and mix with the
|
|
651
|
+
// same build authority as the final render (no second pipeline).
|
|
652
|
+
const frozenDir = join(work, ".frozen-audio");
|
|
653
|
+
const checks = [];
|
|
654
|
+
if (audioManifest !== undefined) {
|
|
655
|
+
let text;
|
|
656
|
+
try {
|
|
657
|
+
text = await io.host.readText(audioManifest);
|
|
658
|
+
}
|
|
659
|
+
catch (error) {
|
|
660
|
+
io.stderr(`mk preview: cannot read --audio manifest: ${error.message}; ${rerun}\n`);
|
|
629
661
|
return EXIT.USAGE;
|
|
630
662
|
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
663
|
+
let raw;
|
|
664
|
+
try {
|
|
665
|
+
raw = JSON.parse(text);
|
|
666
|
+
}
|
|
667
|
+
catch (error) {
|
|
668
|
+
io.stderr(`mk preview: invalid --audio manifest: ${error.message}; ${rerun}\n`);
|
|
669
|
+
return EXIT.USAGE;
|
|
670
|
+
}
|
|
671
|
+
const parsed = parseAudioManifest(raw);
|
|
672
|
+
if (!parsed.ok) {
|
|
673
|
+
io.stderr(`mk preview: invalid --audio manifest: ${parsed.problems.join("; ")}; ${rerun}\n`);
|
|
674
|
+
return EXIT.USAGE;
|
|
675
|
+
}
|
|
676
|
+
const audioDir = join(dirname(resolve(audioManifest)), AUDIO_DIR_NAME);
|
|
677
|
+
// Place the voice sequence on the film timeline (transitions start scenes
|
|
678
|
+
// early), not on the manifest's cumulative starts.
|
|
679
|
+
const boardLoaded = await readJsonFile(storyboard, io.host);
|
|
680
|
+
const validBoard = boardLoaded.ok ? validateStoryboardFull(boardLoaded.value) : undefined;
|
|
681
|
+
const timeline = validBoard?.ok === true ? resolveTimeline(validBoard.value, parsed.manifest) : undefined;
|
|
682
|
+
const placements = timeline?.ok === true ? placementsFromTimeline(timeline.value) : undefined;
|
|
683
|
+
clips = clipsFromManifest(parsed.manifest, audioDir, placements);
|
|
684
|
+
if (clips.length === 0) {
|
|
685
|
+
io.stderr(`mk preview: --audio manifest has no scenes; nothing to mix; ${rerun}\n`);
|
|
635
686
|
return EXIT.USAGE;
|
|
636
687
|
}
|
|
688
|
+
for (const clip of clips) {
|
|
689
|
+
const digest = await io.host.sha256File(clip.wav);
|
|
690
|
+
if (digest === undefined) {
|
|
691
|
+
io.stderr(`mk preview: missing narration wav for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
|
|
692
|
+
return EXIT.USAGE;
|
|
693
|
+
}
|
|
694
|
+
// AU-01 MEDIUM: ungated --audio must reject silent wavs like the manifest
|
|
695
|
+
// path does (EMPTY_SHA256); never mix silence as narration.
|
|
696
|
+
if (digest === "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") {
|
|
697
|
+
io.stderr(`mk preview: narration wav is silent/empty for scene "${clip.id}": ${clip.wav}; ${rerun}\n`);
|
|
698
|
+
return EXIT.USAGE;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
frozenNarration = frozenClips(clips, frozenDir);
|
|
702
|
+
const frozenDigests = [];
|
|
703
|
+
try {
|
|
704
|
+
for (const [index, clip] of frozenNarration.entries()) {
|
|
705
|
+
const source = clips[index];
|
|
706
|
+
if (source === undefined)
|
|
707
|
+
continue;
|
|
708
|
+
await io.host.copyFile(source.wav, clip.wav);
|
|
709
|
+
const frozenSha = await io.host.sha256File(clip.wav);
|
|
710
|
+
frozenDigests.push(frozenSha ?? "");
|
|
711
|
+
checks.push({
|
|
712
|
+
label: `narration "${clip.id}"`,
|
|
713
|
+
actualSha256: frozenSha,
|
|
714
|
+
expectedSha256: expected.mix?.clips[index]?.wavSha,
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
catch (error) {
|
|
719
|
+
io.stderr(`mk preview: cannot freeze narration wavs: ${error.message}; ${rerun}\n`);
|
|
720
|
+
return EXIT.ERROR;
|
|
721
|
+
}
|
|
722
|
+
manifestSha = createHash("sha256").update(text).digest("hex");
|
|
723
|
+
wavSha = createHash("sha256").update(frozenDigests.join("\n")).digest("hex");
|
|
637
724
|
}
|
|
638
725
|
// RA-02: never certify audible from hashes alone. The clip must exist and
|
|
639
726
|
// the mix must succeed before audible:true is returned.
|
|
640
727
|
const clipFile = join(pack, "clip.mp4");
|
|
641
728
|
if (!(await io.host.exists(clipFile))) {
|
|
642
|
-
io.stderr(`mk preview:
|
|
729
|
+
io.stderr(`mk preview: audible output requires a playable clip but ${clipFile} is missing (clip skipped or failed); raise --budget-sec and ${rerun}\n`);
|
|
643
730
|
return EXIT.USAGE;
|
|
644
731
|
}
|
|
645
|
-
const manifestSha = createHash("sha256").update(text).digest("hex");
|
|
646
732
|
const mixedFile = join(pack, "clip-audible.mp4");
|
|
647
|
-
// AU-01: freeze the exact bytes ffmpeg consumes (ABA-proof) and mix with the
|
|
648
|
-
// same build authority as the final render (no second pipeline).
|
|
649
|
-
const frozenDir = join(work, ".frozen-audio");
|
|
650
733
|
let mixBed;
|
|
651
734
|
let musicSha = null;
|
|
652
735
|
let musicVolume = null;
|
|
653
736
|
let musicLicenseSha = null;
|
|
654
|
-
const frozenNarration = frozenClips(clips, frozenDir);
|
|
655
|
-
const checks = [];
|
|
656
|
-
const frozenDigests = [];
|
|
657
|
-
try {
|
|
658
|
-
for (const [index, clip] of frozenNarration.entries()) {
|
|
659
|
-
const source = clips[index];
|
|
660
|
-
if (source === undefined)
|
|
661
|
-
continue;
|
|
662
|
-
await io.host.copyFile(source.wav, clip.wav);
|
|
663
|
-
const frozenSha = await io.host.sha256File(clip.wav);
|
|
664
|
-
frozenDigests.push(frozenSha ?? "");
|
|
665
|
-
checks.push({
|
|
666
|
-
label: `narration "${clip.id}"`,
|
|
667
|
-
actualSha256: frozenSha,
|
|
668
|
-
expectedSha256: expected.mix?.clips[index]?.wavSha,
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
catch (error) {
|
|
673
|
-
io.stderr(`mk preview: cannot freeze narration wavs: ${error.message}; ${rerun}\n`);
|
|
674
|
-
return EXIT.ERROR;
|
|
675
|
-
}
|
|
676
|
-
const wavSha = createHash("sha256").update(frozenDigests.join("\n")).digest("hex");
|
|
677
737
|
if (musicOpts.musicPath !== undefined) {
|
|
678
738
|
const validated = validateMusicBed(musicOpts.musicVolume === undefined
|
|
679
739
|
? { wav: musicOpts.musicPath }
|
|
@@ -816,15 +876,29 @@ export const makePreviewCommand = (env = defaultEnv, clock = () => performance.n
|
|
|
816
876
|
io.stderr(`mk preview: continuity WARN (jump ${continuity.maxJump ?? "?"} at ${continuity.atSec ?? "?"}s); change the cut with a crossfade/match/bridge and re-preview --full before asking for approval\n`);
|
|
817
877
|
}
|
|
818
878
|
let audioMix;
|
|
819
|
-
|
|
879
|
+
const musicOnly = ctx.options.audioManifest === undefined && ctx.options.musicPath !== undefined;
|
|
880
|
+
if (ctx.options.audioManifest === undefined && !musicOnly) {
|
|
820
881
|
audioMix = SILENT_AUDIO_MIX;
|
|
821
882
|
}
|
|
822
883
|
else {
|
|
823
884
|
// RA-02: an audiovisual pack is only audible after a playable mixed
|
|
824
|
-
// clip exists. A budget-skipped clip never certifies from hashes.
|
|
885
|
+
// clip exists. A budget-skipped clip never certifies from hashes. A
|
|
886
|
+
// music-only film is audiovisual too: the bed is its only sound.
|
|
825
887
|
if (clip.result.status !== "ok") {
|
|
826
888
|
const why = clip.result.status === "skipped" ? ` (${clip.result.reason})` : " (missing)";
|
|
827
|
-
|
|
889
|
+
const flags = previewAudioFlags({
|
|
890
|
+
...(ctx.options.audioManifest === undefined
|
|
891
|
+
? {}
|
|
892
|
+
: { audioManifest: ctx.options.audioManifest }),
|
|
893
|
+
...(ctx.options.musicPath === undefined ? {} : { musicPath: ctx.options.musicPath }),
|
|
894
|
+
...(ctx.options.musicVolume === undefined
|
|
895
|
+
? {}
|
|
896
|
+
: { musicVolume: ctx.options.musicVolume }),
|
|
897
|
+
...(ctx.options.musicLicensePath === undefined
|
|
898
|
+
? {}
|
|
899
|
+
: { musicLicensePath: ctx.options.musicLicensePath }),
|
|
900
|
+
});
|
|
901
|
+
io.stderr(`mk preview: ${musicOnly ? "--music" : "--audio"} requires an audible clip but the clip was skipped${why}; raise --budget-sec and rerun \`mk preview ${storyboard}${flags === "" ? "" : ` ${flags}`}\`\n`);
|
|
828
902
|
return EXIT.USAGE;
|
|
829
903
|
}
|
|
830
904
|
const mixed = await mixPreviewClip(io, ctx.pack, ctx.work, ctx.options.audioManifest, storyboard, snapshot.manifest, {
|
|
@@ -36,6 +36,8 @@ export interface PreviewInputs {
|
|
|
36
36
|
readonly music: string | null;
|
|
37
37
|
readonly musicVolume: number | null;
|
|
38
38
|
readonly musicLicense: string | null;
|
|
39
|
+
/** ADR-0013 transcript folded into the pack; absent/null when the board has none. */
|
|
40
|
+
readonly interaction?: string | null;
|
|
39
41
|
}
|
|
40
42
|
/** `preview.json`: what the user is about to approve. Written last; `hash` binds it to the storyboard. */
|
|
41
43
|
export interface PreviewManifest {
|