@anvpx/motion-cli 0.1.56 → 0.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +31 -4
- package/dist/captions/cues.d.ts +11 -2
- package/dist/captions/cues.js +13 -4
- package/dist/commands.js +2 -0
- package/dist/contact/argv.js +4 -1
- package/dist/doctor/checks.js +2 -2
- 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 +169 -94
- package/dist/preview/manifest.d.ts +2 -0
- package/dist/preview/plan.js +1 -1
- 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 +217 -54
- package/dist/workflow/still.js +30 -13
- package/package.json +6 -5
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { EXIT } from "../exit-codes.js";
|
|
2
|
+
import { mergeReports } from "./report.js";
|
|
3
|
+
/** Sample geometry, mirrored from the calibrated `.dogfood/motion-coherence.mjs` probe. */
|
|
4
|
+
export const COHERENCE_WIDTH = 240;
|
|
5
|
+
export const COHERENCE_HEIGHT = 135;
|
|
6
|
+
export const COHERENCE_MAX_SHIFT = 24;
|
|
7
|
+
/** Sample every Nth pixel; the gain is a ratio so coarser sampling preserves the verdict. */
|
|
8
|
+
export const COHERENCE_SAMPLE_STEP = 3;
|
|
9
|
+
/** The 2-D (dx, scale) search grid. A zoom is judged on scale, never on lateral shift alone. */
|
|
10
|
+
export const COHERENCE_SCALE_MIN = 0.86;
|
|
11
|
+
export const COHERENCE_SCALE_MAX = 1.14;
|
|
12
|
+
export const COHERENCE_SCALE_STEP = 0.02;
|
|
13
|
+
export const COHERENCE_SCALE_OFF = 0.02;
|
|
14
|
+
/** gain = MAD(dx=0,scale=1)/MAD(best). >1.25 with monotone shift or a scale change is coherent. */
|
|
15
|
+
export const COHERENCE_GAIN_COHERENT = 1.25;
|
|
16
|
+
/** A perfect match at (dx, scale) has MAD 0; cap the ratio so a finding stays readable. */
|
|
17
|
+
export const COHERENCE_MAX_GAIN = 99;
|
|
18
|
+
/** Below this normalized whole-frame mean abs diff, consecutive samples count as identical. */
|
|
19
|
+
export const COHERENCE_CHANGE_EPSILON = 0.01;
|
|
20
|
+
/**
|
|
21
|
+
* FFmpeg can only hand bytes back through `Io.run` as UTF-8 text, so the gray plane is
|
|
22
|
+
* remapped into printable ASCII (32..126) on the way out and reconstructed here. The
|
|
23
|
+
* mapping is monotone: MAD is scaled by a constant factor, so the gain ratio - the only
|
|
24
|
+
* calibrated quantity - is preserved.
|
|
25
|
+
*/
|
|
26
|
+
export const ASCII_MIN = 32;
|
|
27
|
+
export const ASCII_SPAN = 95;
|
|
28
|
+
/** Fixed filter chain; never user-supplied (scale + gray + printable-ASCII transport). */
|
|
29
|
+
export const COHERENCE_FILTER = `scale=${COHERENCE_WIDTH}:${COHERENCE_HEIGHT},format=gray,` +
|
|
30
|
+
`lutyuv=y=${ASCII_MIN}+val*${ASCII_SPAN - 1}/255`;
|
|
31
|
+
/** Fixed ffmpeg argv template; `IN` and `TIME` are replaced per sample. */
|
|
32
|
+
export const COHERENCE_ARGS_TEMPLATE = [
|
|
33
|
+
"-hide_banner",
|
|
34
|
+
"-loglevel",
|
|
35
|
+
"error",
|
|
36
|
+
"-ss",
|
|
37
|
+
"TIME",
|
|
38
|
+
"-i",
|
|
39
|
+
"IN",
|
|
40
|
+
"-frames:v",
|
|
41
|
+
"1",
|
|
42
|
+
"-vf",
|
|
43
|
+
COHERENCE_FILTER,
|
|
44
|
+
"-f",
|
|
45
|
+
"rawvideo",
|
|
46
|
+
"-pix_fmt",
|
|
47
|
+
"gray",
|
|
48
|
+
"-",
|
|
49
|
+
];
|
|
50
|
+
const SCALES = [];
|
|
51
|
+
for (let s = COHERENCE_SCALE_MIN; s <= COHERENCE_SCALE_MAX + 1e-9; s += COHERENCE_SCALE_STEP) {
|
|
52
|
+
SCALES.push(Number(s.toFixed(3)));
|
|
53
|
+
}
|
|
54
|
+
const grayArgsFor = (file, time) => COHERENCE_ARGS_TEMPLATE.map((arg) => (arg === "IN" ? file : arg === "TIME" ? String(time) : arg));
|
|
55
|
+
/** Encodes a frame into the printable-ASCII payload ffmpeg produces on stdout. */
|
|
56
|
+
export function frameToText(frame) {
|
|
57
|
+
const factor = (ASCII_SPAN - 1) / 255;
|
|
58
|
+
let out = "";
|
|
59
|
+
for (const raw of frame.data) {
|
|
60
|
+
const value = Math.max(0, Math.min(255, raw));
|
|
61
|
+
out += String.fromCharCode(ASCII_MIN + Math.round(value * factor));
|
|
62
|
+
}
|
|
63
|
+
return out;
|
|
64
|
+
}
|
|
65
|
+
/** Decodes an ffmpeg stdout payload into a gray frame; undefined when malformed. */
|
|
66
|
+
export function decodeGrayFrame(text, width = COHERENCE_WIDTH, height = COHERENCE_HEIGHT) {
|
|
67
|
+
const size = width * height;
|
|
68
|
+
if (text.length !== size)
|
|
69
|
+
return undefined;
|
|
70
|
+
const factor = 255 / (ASCII_SPAN - 1);
|
|
71
|
+
const data = new Array(size);
|
|
72
|
+
for (let i = 0; i < size; i++) {
|
|
73
|
+
const code = text.charCodeAt(i) ?? -1;
|
|
74
|
+
if (code < ASCII_MIN || code >= ASCII_MIN + ASCII_SPAN)
|
|
75
|
+
return undefined;
|
|
76
|
+
data[i] = (code - ASCII_MIN) * factor;
|
|
77
|
+
}
|
|
78
|
+
return { width, height, data };
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Mean absolute difference between A and B rescaled by `scale` about the centre and
|
|
82
|
+
* shifted by dx. Port of the calibrated `.dogfood` metric: a lower MAD at a non-zero
|
|
83
|
+
* (dx, scale) is what distinguishes a real camera move from noise.
|
|
84
|
+
*/
|
|
85
|
+
export function mad(a, b, dx, scale = 1) {
|
|
86
|
+
const step = COHERENCE_SAMPLE_STEP;
|
|
87
|
+
const left = Math.max(0, -dx);
|
|
88
|
+
const right = Math.min(a.width, a.width - dx);
|
|
89
|
+
const cx = (a.width - 1) / 2;
|
|
90
|
+
const cy = (a.height - 1) / 2;
|
|
91
|
+
let sum = 0;
|
|
92
|
+
let n = 0;
|
|
93
|
+
for (let y = 0; y < a.height; y += step) {
|
|
94
|
+
const sy = Math.round(cy + (y - cy) / scale);
|
|
95
|
+
if (sy < 0 || sy >= b.height)
|
|
96
|
+
continue;
|
|
97
|
+
for (let x = left; x < right; x += step) {
|
|
98
|
+
const sx = Math.round(cx + (x - cx) / scale);
|
|
99
|
+
if (sx < 0 || sx >= b.width)
|
|
100
|
+
continue;
|
|
101
|
+
const bx = sx + dx;
|
|
102
|
+
if (bx < 0 || bx >= b.width)
|
|
103
|
+
continue;
|
|
104
|
+
const av = a.data[y * a.width + x] ?? 0;
|
|
105
|
+
const bv = b.data[sy * b.width + bx] ?? 0;
|
|
106
|
+
sum += Math.abs(av - bv);
|
|
107
|
+
n++;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return n === 0 ? Number.NaN : sum / n;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Normalized mean absolute difference over two whole gray frames (0 = identical,
|
|
114
|
+
* 1 = maximally different). Unlike `mad`/`coherencePair`, this does no alignment search,
|
|
115
|
+
* so it still reports change when motion is layered or object-local and the global best
|
|
116
|
+
* (dx, scale) stays at (0, 1) because a static majority anchors the frame.
|
|
117
|
+
*/
|
|
118
|
+
export function changedPixelFraction(a, b) {
|
|
119
|
+
const size = Math.min(a.width * a.height, b.width * b.height);
|
|
120
|
+
if (size <= 0)
|
|
121
|
+
return 0;
|
|
122
|
+
let sum = 0;
|
|
123
|
+
for (let i = 0; i < size; i++) {
|
|
124
|
+
sum += Math.abs((a.data[i] ?? 0) - (b.data[i] ?? 0));
|
|
125
|
+
}
|
|
126
|
+
return Math.min(1, sum / size / 255);
|
|
127
|
+
}
|
|
128
|
+
/** 2-D (dx, scale) search plus the zero-error reference that defines the gain. */
|
|
129
|
+
export function coherencePair(a, b) {
|
|
130
|
+
const zero = mad(a, b, 0, 1);
|
|
131
|
+
let best = { dx: 0, scale: 1, mad: zero };
|
|
132
|
+
for (const s of SCALES) {
|
|
133
|
+
for (let dx = -COHERENCE_MAX_SHIFT; dx <= COHERENCE_MAX_SHIFT; dx++) {
|
|
134
|
+
const value = mad(a, b, dx, s);
|
|
135
|
+
if (Number.isFinite(value) && value < best.mad)
|
|
136
|
+
best = { dx, scale: s, mad: value };
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
const raw = best.mad > 0 ? zero / best.mad : zero === 0 ? 1 : Number.POSITIVE_INFINITY;
|
|
140
|
+
const gain = Number.isFinite(raw) ? Math.min(raw, COHERENCE_MAX_GAIN) : COHERENCE_MAX_GAIN;
|
|
141
|
+
return { dx: best.dx, scale: best.scale, zero, mad: best.mad, gain };
|
|
142
|
+
}
|
|
143
|
+
/** Folds consecutive-pair measurements into one coherent/dead/unjudgeable verdict. */
|
|
144
|
+
export function classifyMotion(pairs, changedFraction = 0) {
|
|
145
|
+
const peakGain = pairs.reduce((peak, p) => Math.max(peak, p.gain), 1);
|
|
146
|
+
const shifts = pairs.map((p) => p.dx);
|
|
147
|
+
// shifts[0] can be 0; using it as the sign reference misreads a genuine later pan. Anchor on
|
|
148
|
+
// the first nonzero shift instead, falling back to shifts[0] only when every shift is zero.
|
|
149
|
+
const signRef = shifts.find((dx) => dx !== 0) ?? shifts[0] ?? 0;
|
|
150
|
+
const monotone = shifts.some((dx) => dx !== 0) &&
|
|
151
|
+
shifts.every((dx) => dx === 0 || Math.sign(dx) === Math.sign(signRef));
|
|
152
|
+
const scaled = pairs.some((p) => Math.abs(p.scale - 1) >= COHERENCE_SCALE_OFF);
|
|
153
|
+
const coherent = peakGain >= COHERENCE_GAIN_COHERENT && (monotone || scaled);
|
|
154
|
+
return { pairs, peakGain, monotone, scaled, coherent, changedFraction };
|
|
155
|
+
}
|
|
156
|
+
const shortReason = (stderr) => (stderr.split(/\r?\n/).find((line) => line.trim().length > 0) ?? "no details")
|
|
157
|
+
.trim()
|
|
158
|
+
.split(/\s+/)
|
|
159
|
+
.slice(-12)
|
|
160
|
+
.join(" ");
|
|
161
|
+
/** Extracts one gray frame per sample time with the fixed ffmpeg chain (the same `Io.run` seam). */
|
|
162
|
+
async function extractFrames(io, file, times) {
|
|
163
|
+
const frames = [];
|
|
164
|
+
for (const time of times) {
|
|
165
|
+
const result = await io.run("ffmpeg", grayArgsFor(file, time));
|
|
166
|
+
if (result.code !== 0) {
|
|
167
|
+
return result.code === EXIT.MISSING_TOOL
|
|
168
|
+
? { ok: false, kind: "missing-tool" }
|
|
169
|
+
: { ok: false, kind: "unreadable", reason: shortReason(result.stderr) };
|
|
170
|
+
}
|
|
171
|
+
const frame = decodeGrayFrame(result.stdout);
|
|
172
|
+
if (frame === undefined)
|
|
173
|
+
return { ok: false, kind: "no-frames" };
|
|
174
|
+
frames.push(frame);
|
|
175
|
+
}
|
|
176
|
+
return { ok: true, frames };
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Measures coherence between consecutive frames. A missing tool, a decode error, or a
|
|
180
|
+
* malformed payload is a typed outcome, never a throw.
|
|
181
|
+
*/
|
|
182
|
+
export async function measureMotionCoherence(io, file, times) {
|
|
183
|
+
const extracted = await extractFrames(io, file, times);
|
|
184
|
+
if (!extracted.ok)
|
|
185
|
+
return extracted;
|
|
186
|
+
const { frames } = extracted;
|
|
187
|
+
if (frames.length < 2)
|
|
188
|
+
return { ok: false, kind: "too-few-frames" };
|
|
189
|
+
const pairs = [];
|
|
190
|
+
let changedFraction = 0;
|
|
191
|
+
for (let i = 1; i < frames.length; i++) {
|
|
192
|
+
const prev = frames[i - 1];
|
|
193
|
+
const curr = frames[i];
|
|
194
|
+
if (prev === undefined || curr === undefined)
|
|
195
|
+
continue;
|
|
196
|
+
pairs.push(coherencePair(prev, curr));
|
|
197
|
+
changedFraction = Math.max(changedFraction, changedPixelFraction(prev, curr));
|
|
198
|
+
}
|
|
199
|
+
return { ok: true, measure: classifyMotion(pairs, changedFraction) };
|
|
200
|
+
}
|
|
201
|
+
const finding = (code, level, message) => ({
|
|
202
|
+
code,
|
|
203
|
+
level,
|
|
204
|
+
message,
|
|
205
|
+
});
|
|
206
|
+
const UNAVAILABLE = {
|
|
207
|
+
"missing-tool": {
|
|
208
|
+
code: "motion-coherence-unavailable",
|
|
209
|
+
message: "Motion coherence not measured; ffmpeg is unavailable.",
|
|
210
|
+
},
|
|
211
|
+
unreadable: {
|
|
212
|
+
code: "motion-coherence-unreadable",
|
|
213
|
+
message: "Motion coherence could not read the clip.",
|
|
214
|
+
},
|
|
215
|
+
"no-frames": {
|
|
216
|
+
code: "motion-coherence-unmeasurable",
|
|
217
|
+
message: "Motion coherence could not be measured; no gray frames were returned.",
|
|
218
|
+
},
|
|
219
|
+
"too-few-frames": {
|
|
220
|
+
code: "motion-coherence-unmeasurable",
|
|
221
|
+
message: "Motion coherence could not be measured; too few gray frames were returned.",
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
const unavailableReport = (outcome) => {
|
|
225
|
+
const { code, message } = UNAVAILABLE[outcome.kind];
|
|
226
|
+
const text = outcome.kind === "unreadable" ? `${message} ${outcome.reason ?? "decode failed"}` : message;
|
|
227
|
+
return { status: "UNKNOWN", findings: [finding(code, "warn", text)] };
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Turns a measurement into a finding. Coherent motion is INFO (PASS). A non-coherent
|
|
231
|
+
* result is only WARN when the frames are essentially identical (a genuinely dead pan);
|
|
232
|
+
* when the frames clearly changed but the whole-frame (dx, scale) metric found no coherent
|
|
233
|
+
* match, the probe cannot judge layered/object-local motion and emits INFO instead of a
|
|
234
|
+
* false WARN. Unavailability is a typed UNKNOWN. No path emits `fatal` or FAIL, so the
|
|
235
|
+
* probe can never block render or change the 0/2/5 exit contract.
|
|
236
|
+
*/
|
|
237
|
+
export function assessCoherence(outcome) {
|
|
238
|
+
if (!outcome.ok)
|
|
239
|
+
return unavailableReport(outcome);
|
|
240
|
+
const m = outcome.measure;
|
|
241
|
+
const gain = m.peakGain.toFixed(2);
|
|
242
|
+
if (m.coherent) {
|
|
243
|
+
const axis = m.monotone ? "monotone shift" : "scale change";
|
|
244
|
+
return {
|
|
245
|
+
status: "PASS",
|
|
246
|
+
findings: [
|
|
247
|
+
finding("motion-coherent", "info", `Coherent motion detected (peak gain ${gain}, ${axis}); sampled beats are not dead pans.`),
|
|
248
|
+
],
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
// The whole-frame search cannot see motion confined to a layer or a small object: a static
|
|
252
|
+
// majority anchors the best shift at dx=0, so gain ~1 does NOT imply a static frame. If the
|
|
253
|
+
// frames demonstrably changed, report the limit honestly instead of crying "dead pan".
|
|
254
|
+
const change = m.changedFraction;
|
|
255
|
+
if (change >= COHERENCE_CHANGE_EPSILON) {
|
|
256
|
+
return {
|
|
257
|
+
status: "PASS",
|
|
258
|
+
findings: [
|
|
259
|
+
finding("motion-unjudgeable", "info", `Motion not judgeable (peak gain ${gain}): the whole-frame (dx,scale) metric cannot ` +
|
|
260
|
+
`assess layered or object-local motion, but consecutive frames have a mean frame ` +
|
|
261
|
+
`difference of ${change.toFixed(3)} (${(change * 100).toFixed(1)}% of the intensity ` +
|
|
262
|
+
`range 0-255), so the beat is not static.`),
|
|
263
|
+
],
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
return {
|
|
267
|
+
status: "WARN",
|
|
268
|
+
findings: [
|
|
269
|
+
finding("motion-dead-pan", "warn", `No coherent motion detected (peak gain ${gain}, best shift 0 px); a beat may be a dead pan.`),
|
|
270
|
+
],
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
/** The spec's seam name: merges this probe's report into the base report. */
|
|
274
|
+
export const withCoherence = mergeReports;
|
|
@@ -21,9 +21,9 @@ export interface PlatformAudioPolicy {
|
|
|
21
21
|
readonly truePeakDb: number;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Audio policy usable for QC: only an
|
|
25
|
-
*
|
|
26
|
-
* never a universal-LUFS FAIL.
|
|
24
|
+
* Audio policy usable for QC: only an explicitly verified, dated, cited template
|
|
25
|
+
* counts. An uncited, unverified or absent policy yields undefined so callers
|
|
26
|
+
* report UNKNOWN, never a universal-LUFS FAIL or a bare meter verdict.
|
|
27
27
|
*/
|
|
28
28
|
export declare const verifiedAudioPolicy: (template: PlatformTemplate | undefined) => PlatformAudioPolicy | undefined;
|
|
29
29
|
/**
|
package/dist/verify/platform.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { parsePlatformTemplate } from "@anvpx/motion-schema";
|
|
4
|
-
import { assessAudioLoudness, } from "./audio-loudness.js";
|
|
4
|
+
import { assessAudioLoudness, loudnessCitationOf, } from "./audio-loudness.js";
|
|
5
5
|
const SCHEMA_ENTRY = "@anvpx/motion-schema";
|
|
6
6
|
const DATA_FROM_ENTRY = ["..", "data", "platforms"];
|
|
7
7
|
/** `data/platforms` of the schema package, resolved from its entry point. */
|
|
@@ -41,11 +41,11 @@ export async function platformLookup(host, dir = platformDir()) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Audio policy usable for QC: only an
|
|
45
|
-
*
|
|
46
|
-
* never a universal-LUFS FAIL.
|
|
44
|
+
* Audio policy usable for QC: only an explicitly verified, dated, cited template
|
|
45
|
+
* counts. An uncited, unverified or absent policy yields undefined so callers
|
|
46
|
+
* report UNKNOWN, never a universal-LUFS FAIL or a bare meter verdict.
|
|
47
47
|
*/
|
|
48
|
-
export const verifiedAudioPolicy = (template) => template
|
|
48
|
+
export const verifiedAudioPolicy = (template) => template !== undefined && loudnessCitationOf(template) !== undefined
|
|
49
49
|
? {
|
|
50
50
|
id: template.id,
|
|
51
51
|
lufsTarget: template.audio.lufsTarget,
|
package/dist/verify/run.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export interface VerifyTarget {
|
|
|
18
18
|
/** When set, both renders are hashed and byte-identity is gated (exit 5 on mismatch). */
|
|
19
19
|
determinism?: DeterminismPair;
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Four in-clip times for the optional coherence probe, derived from the existing ffprobe
|
|
23
|
+
* duration (never a second probe). With no usable duration, sample four early fixed points.
|
|
24
|
+
*/
|
|
25
|
+
export declare function coherenceTimes(durationSec: number | undefined): number[];
|
|
21
26
|
/** Probes a file with ffprobe and assesses it; never throws. */
|
|
22
27
|
export declare function verifyFile(io: Io, target: VerifyTarget): Promise<VerifyRun>;
|
|
23
28
|
/** The `--verify` step of draft and render: prints the report, resolves the exit code. */
|
package/dist/verify/run.js
CHANGED
|
@@ -12,6 +12,17 @@ const probedDuration = (probe) => {
|
|
|
12
12
|
? seconds
|
|
13
13
|
: undefined;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Four in-clip times for the optional coherence probe, derived from the existing ffprobe
|
|
17
|
+
* duration (never a second probe). With no usable duration, sample four early fixed points.
|
|
18
|
+
*/
|
|
19
|
+
export function coherenceTimes(durationSec) {
|
|
20
|
+
const FRACTIONS = [0.2, 0.45, 0.7, 0.95];
|
|
21
|
+
if (durationSec === undefined || !Number.isFinite(durationSec) || durationSec <= 0) {
|
|
22
|
+
return FRACTIONS;
|
|
23
|
+
}
|
|
24
|
+
return FRACTIONS.map((fraction) => Number((durationSec * fraction).toFixed(3)));
|
|
25
|
+
}
|
|
15
26
|
/** Probes a file with ffprobe and assesses it; never throws. */
|
|
16
27
|
export async function verifyFile(io, target) {
|
|
17
28
|
const probed = await probeMedia(io, target.file);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* G-04b — honest portability refusals for the local voice / karaoke path.
|
|
3
|
+
*
|
|
4
|
+
* The local Kokoro voice path is NOT portable and NOT self-sufficient: it needs
|
|
5
|
+
* Python 3.12 on a supported host, and word-level karaoke needs a voice manifest
|
|
6
|
+
* with word timings. Each unsupported prerequisite fails EARLY with a typed
|
|
7
|
+
* reason, the missing prerequisite and the exact fix — never a late crash, never
|
|
8
|
+
* a silent fallback, no install and no cloud provider.
|
|
9
|
+
*/
|
|
10
|
+
/** Why the voice path refused. Discriminated so callers/tests can assert it. */
|
|
11
|
+
export type VoiceBlockerReason = "unsupported-platform" | "python-missing" | "python-version" | "no-word-timings";
|
|
12
|
+
export interface VoiceBlocker {
|
|
13
|
+
readonly reason: VoiceBlockerReason;
|
|
14
|
+
/** Names the missing prerequisite and the exact fix. */
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}
|
|
17
|
+
/** Platforms with a verified local voice path (see docs/VOICE-SUPPORT.md). */
|
|
18
|
+
export declare const VOICE_SUPPORTED_PLATFORMS: readonly ["win32", "linux"];
|
|
19
|
+
/** Typed refusal for an OS the local voice path does not support. */
|
|
20
|
+
export declare const platformBlocker: (platform: string) => VoiceBlocker | undefined;
|
|
21
|
+
/** Typed refusal for a missing or wrong-version Python voice venv. */
|
|
22
|
+
export declare const pythonBlocker: (platform: string, probe: {
|
|
23
|
+
readonly status: "missing" | "unknown";
|
|
24
|
+
readonly hint: string;
|
|
25
|
+
}) => VoiceBlocker;
|
|
26
|
+
/** Typed refusal for karaoke requested without word-level timings. */
|
|
27
|
+
export declare const wordTimingBlocker: () => VoiceBlocker;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* G-04b — honest portability refusals for the local voice / karaoke path.
|
|
3
|
+
*
|
|
4
|
+
* The local Kokoro voice path is NOT portable and NOT self-sufficient: it needs
|
|
5
|
+
* Python 3.12 on a supported host, and word-level karaoke needs a voice manifest
|
|
6
|
+
* with word timings. Each unsupported prerequisite fails EARLY with a typed
|
|
7
|
+
* reason, the missing prerequisite and the exact fix — never a late crash, never
|
|
8
|
+
* a silent fallback, no install and no cloud provider.
|
|
9
|
+
*/
|
|
10
|
+
/** Platforms with a verified local voice path (see docs/VOICE-SUPPORT.md). */
|
|
11
|
+
export const VOICE_SUPPORTED_PLATFORMS = ["win32", "linux"];
|
|
12
|
+
/** Typed refusal for an OS the local voice path does not support. */
|
|
13
|
+
export const platformBlocker = (platform) => {
|
|
14
|
+
if (VOICE_SUPPORTED_PLATFORMS.includes(platform))
|
|
15
|
+
return undefined;
|
|
16
|
+
return {
|
|
17
|
+
reason: "unsupported-platform",
|
|
18
|
+
message: `mk voice: unsupported platform "${platform}" — the local Kokoro voice path is ` +
|
|
19
|
+
`supported on Windows and Linux only (macOS is unavailable). ` +
|
|
20
|
+
`Fix: run mk voice on a supported host with Python 3.12, or render silent and caption ` +
|
|
21
|
+
`with imported SRT/VTT (mk captions --from-srt/--from-vtt).`,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/** Typed refusal for a missing or wrong-version Python voice venv. */
|
|
25
|
+
export const pythonBlocker = (platform, probe) => {
|
|
26
|
+
const create = platform === "win32" ? "py -3.12 -m venv .venv-voice" : "python3.12 -m venv .venv-voice";
|
|
27
|
+
const missing = probe.status === "missing";
|
|
28
|
+
return {
|
|
29
|
+
reason: missing ? "python-missing" : "python-version",
|
|
30
|
+
message: `mk voice: ${missing ? "missing prerequisite: no Python 3.12 voice venv was found" : "the voice venv python is not 3.12"}. ` +
|
|
31
|
+
`Fix: ${create}, then re-run mk voice (or set MOTION_VOICE_PYTHON to an existing 3.12 venv). ` +
|
|
32
|
+
probe.hint,
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
/** Typed refusal for karaoke requested without word-level timings. */
|
|
36
|
+
export const wordTimingBlocker = () => ({
|
|
37
|
+
reason: "no-word-timings",
|
|
38
|
+
message: "mk captions: the manifest has no words — word-level karaoke needs voice word timings. " +
|
|
39
|
+
"Fix: run `mk voice` to write a word-timed manifest, or use text captions from " +
|
|
40
|
+
"`mk captions --from-srt/--from-vtt` (the manifest-free path).",
|
|
41
|
+
});
|
package/dist/voice/run.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { alignWords, detectSilence,
|
|
3
|
+
import { alignmentRefusal, alignWords, detectSilence, resolveVenvPython, synthesize, VOICE_PROVENANCE, wordsInSilence, } from "@anvpx/motion-audio";
|
|
4
4
|
import { resolveTimeline, validateStoryboardFull, WORDS_PER_SECOND } from "@anvpx/motion-build";
|
|
5
5
|
import { mkDir } from "../approval/hash.js";
|
|
6
6
|
import { EXIT } from "../exit-codes.js";
|
|
7
7
|
import { readJsonFile } from "../storyboard/load.js";
|
|
8
8
|
import { buildVoiceManifestWithAnalysis } from "./manifest.js";
|
|
9
|
+
import { platformBlocker, pythonBlocker } from "./portability.js";
|
|
9
10
|
const splitTokens = (narration) => narration.split(/\s+/).filter((w) => w.length > 0);
|
|
10
11
|
/** DL-01b voice bar notes (constants, shared with the CLI usage text). */
|
|
11
12
|
export const VOICE_WAV_FALLBACK_NOTE = "pre-rendered WAV fallback in pack";
|
|
@@ -43,7 +44,8 @@ async function pickPython(io, explicit) {
|
|
|
43
44
|
const probe = await resolveVenvPython(io.run);
|
|
44
45
|
if (probe.ok)
|
|
45
46
|
return { python: probe.python };
|
|
46
|
-
io.
|
|
47
|
+
const blocker = pythonBlocker(io.host.platform, probe);
|
|
48
|
+
io.stderr(`${blocker.message}\n${doctorHint}\n`);
|
|
47
49
|
return { code: EXIT.MISSING_TOOL };
|
|
48
50
|
}
|
|
49
51
|
const synthDuration = async (io, sceneId, narration, voice, audioPath, python, speed) => {
|
|
@@ -59,8 +61,8 @@ const synthDuration = async (io, sceneId, narration, voice, audioPath, python, s
|
|
|
59
61
|
io.stderr(`mk voice: synth for "${sceneId}" failed: ${synth.hint}\n${doctorHint}\n`);
|
|
60
62
|
return { code: synth.status === "missing" ? EXIT.MISSING_TOOL : EXIT.ERROR };
|
|
61
63
|
};
|
|
62
|
-
const alignSceneWords = async (io, sceneId, audioPath, tokens, python) => {
|
|
63
|
-
const aligned = await alignWords(io.run, { audioPath, tokens, python });
|
|
64
|
+
const alignSceneWords = async (io, sceneId, audioPath, tokens, python, lang, voice) => {
|
|
65
|
+
const aligned = await alignWords(io.run, { audioPath, tokens, python, lang, voice });
|
|
64
66
|
if (aligned.ok)
|
|
65
67
|
return { words: aligned.words };
|
|
66
68
|
io.stderr(`mk voice: align for "${sceneId}" failed: ${aligned.hint}\n${doctorHint}\n`);
|
|
@@ -116,24 +118,19 @@ function narrationFitProblems(board) {
|
|
|
116
118
|
});
|
|
117
119
|
return [...unspoken, ...lengths];
|
|
118
120
|
}
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* the
|
|
121
|
+
/**
|
|
122
|
+
* Synth + align + silence gate for one narrated scene; fails closed, never fakes.
|
|
123
|
+
* There is no silent "unaligned-only" path: every narrated scene is aligned by
|
|
124
|
+
* the English-only wav2vec2 model or refused. Non-English narration is refused
|
|
125
|
+
* up front in `runVoice`, before this function runs.
|
|
123
126
|
*/
|
|
124
|
-
async function voiceScene(io, scene, voice, audioDir, python, speed) {
|
|
127
|
+
async function voiceScene(io, scene, voice, audioDir, python, speed, lang) {
|
|
125
128
|
const narration = scene.narration;
|
|
126
129
|
const audioPath = join(audioDir, `${scene.id}.wav`);
|
|
127
130
|
const synth = await synthDuration(io, scene.id, narration, voice, audioPath, python, speed);
|
|
128
131
|
if ("code" in synth)
|
|
129
132
|
return synth;
|
|
130
|
-
|
|
131
|
-
const gated = await gateSilence(io, scene.id, audioPath, []);
|
|
132
|
-
if ("code" in gated)
|
|
133
|
-
return gated;
|
|
134
|
-
return { id: scene.id, durationS: synth.durationS, words: [], silences: gated.silences };
|
|
135
|
-
}
|
|
136
|
-
const aligned = await alignSceneWords(io, scene.id, audioPath, splitTokens(narration), python);
|
|
133
|
+
const aligned = await alignSceneWords(io, scene.id, audioPath, splitTokens(narration), python, lang, voice);
|
|
137
134
|
if ("code" in aligned)
|
|
138
135
|
return aligned;
|
|
139
136
|
const gated = await gateSilence(io, scene.id, audioPath, aligned.words);
|
|
@@ -176,9 +173,26 @@ async function finishVoice(args) {
|
|
|
176
173
|
* the process exit code; never falls back to silent durations.
|
|
177
174
|
*/
|
|
178
175
|
export async function runVoice(storyboard, options, io) {
|
|
176
|
+
// G-04b: fail before any probe, read or write on a platform the local voice
|
|
177
|
+
// path does not support. The refusal names the prerequisite and the fix.
|
|
178
|
+
const blocker = platformBlocker(io.host.platform);
|
|
179
|
+
if (blocker !== undefined) {
|
|
180
|
+
io.stderr(`${blocker.message}\n`);
|
|
181
|
+
return EXIT.MISSING_TOOL;
|
|
182
|
+
}
|
|
179
183
|
const board = await loadNarrated(storyboard, io);
|
|
180
184
|
if (typeof board === "number")
|
|
181
185
|
return board;
|
|
186
|
+
// H16/F8: fail closed before any python probe or synthesis when EITHER the
|
|
187
|
+
// board language or the selected voice maps to a language the EN-only
|
|
188
|
+
// aligner cannot honestly handle. A `j*` voice on a board with no meta.lang
|
|
189
|
+
// must not be silently routed to the EN aligner with fabricated timings.
|
|
190
|
+
const lang = board.board.meta.lang;
|
|
191
|
+
const languageRefusal = alignmentRefusal(lang, options.voice);
|
|
192
|
+
if (languageRefusal !== undefined) {
|
|
193
|
+
io.stderr(`mk voice: ${languageRefusal}\n`);
|
|
194
|
+
return EXIT.USAGE;
|
|
195
|
+
}
|
|
182
196
|
const misfit = narrationFitProblems(board);
|
|
183
197
|
if (misfit.length > 0) {
|
|
184
198
|
io.stderr(`mk voice: narration cannot be synthesized yet:\n${misfit.map((line) => ` - ${line}`).join("\n")}\n`);
|
|
@@ -193,7 +207,7 @@ export async function runVoice(storyboard, options, io) {
|
|
|
193
207
|
await io.host.mkdir?.(audioDir);
|
|
194
208
|
const rows = [];
|
|
195
209
|
for (const scene of board.narrated) {
|
|
196
|
-
const timed = await voiceScene(io, scene, options.voice, audioDir, picked.python, options.speed);
|
|
210
|
+
const timed = await voiceScene(io, scene, options.voice, audioDir, picked.python, options.speed, lang);
|
|
197
211
|
if ("code" in timed)
|
|
198
212
|
return timed.code;
|
|
199
213
|
rows.push(timed);
|
package/dist/workflow/build.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { textFlag } from "../args.js";
|
|
1
2
|
import { EXIT } from "../exit-codes.js";
|
|
3
|
+
import { applyInteraction } from "../interaction/document.js";
|
|
2
4
|
import { parseBuildArgs, prepareProject } from "./project.js";
|
|
3
|
-
const USAGE = `mk build <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--incremental] [--clean-cache] [--shared-cache-dir <dir>]
|
|
5
|
+
const USAGE = `mk build <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>] [--incremental] [--clean-cache] [--shared-cache-dir <dir>]
|
|
4
6
|
|
|
5
7
|
Validate the storyboard and compile it into a HyperFrames project.
|
|
6
8
|
--out <dir> project directory (default: <storyboard dir>/out/project)
|
|
7
9
|
--assets <dir> directory that asset refs are relative to
|
|
8
10
|
--ledger <file> asset licence ledger (assets.json); every copied asset needs a row
|
|
11
|
+
--interaction <file> fold a recorded ADR-0013 transcript into the build (seeded boot.js)
|
|
9
12
|
--incremental reuse unchanged scenes from <storyboard dir>/.mk-cache (output is byte-identical);
|
|
10
13
|
prints "cache: N hit / M miss"; draft, render and still accept it too
|
|
11
14
|
--no-incremental build without the cache (the default)
|
|
@@ -16,10 +19,15 @@ export const buildCommand = {
|
|
|
16
19
|
name: "build",
|
|
17
20
|
summary: "validate a storyboard and compile it into a HyperFrames project",
|
|
18
21
|
async run(args, io) {
|
|
19
|
-
const parsed = parseBuildArgs("build", USAGE, args, {
|
|
22
|
+
const parsed = parseBuildArgs("build", USAGE, args, {
|
|
23
|
+
interaction: { type: "string" },
|
|
24
|
+
}, io);
|
|
20
25
|
if (parsed.kind === "exit")
|
|
21
26
|
return parsed.code;
|
|
22
|
-
const
|
|
27
|
+
const applied = await applyInteraction("build", parsed.request, textFlag(parsed.flags, "interaction"), io);
|
|
28
|
+
if (!applied.ok)
|
|
29
|
+
return applied.code;
|
|
30
|
+
const prepared = await prepareProject(applied.request, io);
|
|
23
31
|
return prepared.ok ? EXIT.OK : prepared.code;
|
|
24
32
|
},
|
|
25
33
|
};
|
package/dist/workflow/draft.js
CHANGED
|
@@ -3,21 +3,23 @@ import { validateMusicBed } from "@anvpx/motion-audio";
|
|
|
3
3
|
import { AUDIO_DIR_NAME, clipsFromManifest, missingMusic, mixAtDeliveryLevel, parseAudioManifest, placementsFromTimeline, resolveTimeline, validateStoryboardFull, } from "@anvpx/motion-build";
|
|
4
4
|
import { textFlag, usageError } from "../args.js";
|
|
5
5
|
import { EXIT } from "../exit-codes.js";
|
|
6
|
+
import { applyInteraction } from "../interaction/document.js";
|
|
6
7
|
import { readJsonFile } from "../storyboard/load.js";
|
|
7
8
|
import { runInProject } from "../tooling/session.js";
|
|
8
9
|
import { DRAFT_FPS, DRAFT_WIDTH, draftExpectation, draftHeight } from "../verify/expectation.js";
|
|
9
10
|
import { finishRender } from "./finish.js";
|
|
10
11
|
import { parseBuildArgs, prepareProject } from "./project.js";
|
|
11
|
-
const USAGE = `mk draft <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--verify] [--audio <manifest>] [--music <wav>]
|
|
12
|
+
const USAGE = `mk draft <storyboard.json> [--out <dir>] [--assets <dir>] [--ledger <assets.json>] [--interaction <interaction.json>] [--verify] [--audio <manifest>] [--music <wav>]
|
|
12
13
|
|
|
13
14
|
Build, then render a fast 960 px wide draft at 15 fps to <out>/draft.mp4.
|
|
14
15
|
hyperframes only renders at the composition size or larger (--resolution presets start at
|
|
15
16
|
1080p), so it renders 1080p with --quality draft and ffmpeg downscales with lanczos.
|
|
16
17
|
Output of the tools: <out>/render-log.txt; provenance: <out>/render-manifest.json.
|
|
18
|
+
--interaction <file> fold a recorded transcript into the draft (see \`mk render --interaction\`).
|
|
17
19
|
--audio <manifest> voice TimingManifest: mix per-scene wavs (the manifest's
|
|
18
20
|
sibling audio/ dir, <id>.wav) under the render at absolute
|
|
19
21
|
starts. Absent means silent video; missing wavs fail instead.
|
|
20
|
-
--music <wav> user CC0 music bed: loops to the
|
|
22
|
+
--music <wav> user CC0 music bed: loops to the picture length, ducks under
|
|
21
23
|
narration via sidechaincompress, then joins it. Requires
|
|
22
24
|
--audio; a missing bed wav fails instead of silence.
|
|
23
25
|
--verify re-probe draft.mp4 (see \`mk verify\`); exit 5 on FAIL
|
|
@@ -103,14 +105,22 @@ async function loadMusic(musicPath, io) {
|
|
|
103
105
|
}
|
|
104
106
|
/** Parses flags and fails fast on bad input or a missing voice wav. */
|
|
105
107
|
async function resolveDraftPlan(args, io) {
|
|
106
|
-
const parsed = parseBuildArgs("draft", USAGE, args, {
|
|
108
|
+
const parsed = parseBuildArgs("draft", USAGE, args, {
|
|
109
|
+
verify: { type: "boolean" },
|
|
110
|
+
audio: { type: "string" },
|
|
111
|
+
music: { type: "string" },
|
|
112
|
+
interaction: { type: "string" },
|
|
113
|
+
}, io);
|
|
107
114
|
if (parsed.kind === "exit")
|
|
108
115
|
return { code: parsed.code };
|
|
109
116
|
const audioPath = textFlag(parsed.flags, "audio");
|
|
110
117
|
const musicPath = textFlag(parsed.flags, "music");
|
|
118
|
+
const applied = await applyInteraction("draft", parsed.request, textFlag(parsed.flags, "interaction"), io);
|
|
119
|
+
if (!applied.ok)
|
|
120
|
+
return { code: applied.code };
|
|
111
121
|
if (musicPath !== undefined && audioPath === undefined) {
|
|
112
122
|
return {
|
|
113
|
-
code: usageError("draft", USAGE, "--music needs --audio: the bed
|
|
123
|
+
code: usageError("draft", USAGE, "--music needs --audio: the bed is mixed under the narration", io).code,
|
|
114
124
|
};
|
|
115
125
|
}
|
|
116
126
|
const narration = audioPath === undefined
|
|
@@ -122,16 +132,18 @@ async function resolveDraftPlan(args, io) {
|
|
|
122
132
|
if (bedded !== undefined && !bedded.ok)
|
|
123
133
|
return { code: bedded.code };
|
|
124
134
|
return {
|
|
125
|
-
request:
|
|
126
|
-
|
|
127
|
-
|
|
135
|
+
request: {
|
|
136
|
+
...(narration?.manifest === undefined
|
|
137
|
+
? applied.request
|
|
138
|
+
: { ...applied.request, timing: narration.manifest }),
|
|
139
|
+
},
|
|
128
140
|
verify: parsed.flags.verify === true,
|
|
129
141
|
narration: narration?.clips,
|
|
130
142
|
music: bedded?.music,
|
|
131
143
|
};
|
|
132
144
|
}
|
|
133
145
|
/** Renders silent full-size video, mixes narration when requested, then downscales. */
|
|
134
|
-
async function runDraft(io, outDir, plan) {
|
|
146
|
+
async function runDraft(io, outDir, plan, totalSec) {
|
|
135
147
|
const full = join(outDir, FULL_SIZE);
|
|
136
148
|
const mixed = join(outDir, MIXED_SIZE);
|
|
137
149
|
const draft = join(outDir, DRAFT);
|
|
@@ -153,6 +165,9 @@ async function runDraft(io, outDir, plan) {
|
|
|
153
165
|
videoIn: full,
|
|
154
166
|
clips: plan.narration,
|
|
155
167
|
...(plan.music === undefined ? {} : { music: plan.music }),
|
|
168
|
+
// The built total is the rendered picture length: the score must reach the
|
|
169
|
+
// last frame, not stop at the last spoken word (same as preview/render).
|
|
170
|
+
durationSec: totalSec,
|
|
156
171
|
out: mixed,
|
|
157
172
|
swap: async (from, to) => {
|
|
158
173
|
await io.host.copyFile(from, to);
|
|
@@ -196,7 +211,7 @@ export const makeDraftCommand = (options = {}) => ({
|
|
|
196
211
|
const prepared = await prepareProject(request, io);
|
|
197
212
|
if (!prepared.ok)
|
|
198
213
|
return prepared.code;
|
|
199
|
-
const code = await runDraft(io, prepared.outDir, plan);
|
|
214
|
+
const code = await runDraft(io, prepared.outDir, plan, prepared.total);
|
|
200
215
|
if (code !== 0)
|
|
201
216
|
return code;
|
|
202
217
|
const { total, meta } = prepared;
|