@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
|
@@ -2,18 +2,26 @@ import type { Host } from "../types.ts";
|
|
|
2
2
|
import { type ApprovalBuildOptions, type ApprovalInputManifest } from "./hash.ts";
|
|
3
3
|
export declare const APPROVAL_FILE = "approval.json";
|
|
4
4
|
export declare const approvalPath: (storyboard: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* How the receipt was minted (ADR-0014 option C). `human` is minted only from an
|
|
7
|
+
* interactive terminal with no agent/automation marker; `automated` is the only
|
|
8
|
+
* label `--automation` can write, and it never satisfies `mk render --gated`.
|
|
9
|
+
*/
|
|
10
|
+
export type ApprovalKind = "human" | "automated";
|
|
5
11
|
export interface Approval {
|
|
6
12
|
readonly inputManifest: ApprovalInputManifest;
|
|
7
13
|
readonly inputManifestSha256: string;
|
|
8
14
|
readonly previewManifestSha: string;
|
|
9
15
|
readonly approvedAt: string;
|
|
10
16
|
readonly note: string;
|
|
17
|
+
readonly approvalKind: ApprovalKind;
|
|
11
18
|
}
|
|
12
19
|
export type ApprovalScope = "visual" | "audiovisual";
|
|
13
20
|
export type ApprovalState = {
|
|
14
21
|
state: "approved";
|
|
15
22
|
hash: string;
|
|
16
23
|
scope?: ApprovalScope;
|
|
24
|
+
approvalKind: ApprovalKind;
|
|
17
25
|
} | {
|
|
18
26
|
state: "missing" | "stale";
|
|
19
27
|
hash: string;
|
|
@@ -23,12 +31,12 @@ export type ApprovalState = {
|
|
|
23
31
|
export declare function readApproval(host: Host, storyboard: string): Promise<Approval | undefined>;
|
|
24
32
|
export declare function writeApproval(host: Host, storyboard: string, approval: Approval): Promise<string>;
|
|
25
33
|
/**
|
|
26
|
-
* Does an approval match the CURRENT inputs (visual, audiovisual or
|
|
34
|
+
* Does an approval match the CURRENT inputs (visual, audiovisual, music-only or
|
|
27
35
|
* audiovisual+music)? Fails
|
|
28
36
|
* closed: any legacy receipt is `stale` (re-preview + re-approve), missing
|
|
29
37
|
* file is `missing`. A visual-only receipt never authorizes audio: resolving
|
|
30
|
-
* with --audio recomputes the audiovisual hash, which cannot match.
|
|
31
|
-
* narration-only receipt never authorizes --music: the music
|
|
38
|
+
* with --audio or --music recomputes the audiovisual hash, which cannot match.
|
|
39
|
+
* A narration-only receipt never authorizes --music: the music
|
|
32
40
|
* {path,sha256,volume,licenseEvidenceSha256} binding changes the hash.
|
|
33
41
|
* Rejects when inputs are unreadable (missing asset, ledger, wav…).
|
|
34
42
|
*/
|
|
@@ -63,6 +63,8 @@ const isApprovalManifest = (value) => {
|
|
|
63
63
|
return false;
|
|
64
64
|
if (!hasLedger(manifest.ledgerSha256))
|
|
65
65
|
return false;
|
|
66
|
+
if (manifest.interaction !== undefined && !isManifestRef(manifest.interaction))
|
|
67
|
+
return false;
|
|
66
68
|
if (manifest.scope === "visual") {
|
|
67
69
|
if ((manifest.audio ?? []).length !== 0)
|
|
68
70
|
return false;
|
|
@@ -72,19 +74,27 @@ const isApprovalManifest = (value) => {
|
|
|
72
74
|
return false;
|
|
73
75
|
return true;
|
|
74
76
|
}
|
|
77
|
+
// Audiovisual covers narration (+ optional bed) and the music-only film where
|
|
78
|
+
// narration is explicitly absent. A music-only receipt has no audio manifest,
|
|
79
|
+
// no mix and no invented speech track: only the bed identity is present.
|
|
80
|
+
if ((manifest.audio ?? []).length === 0) {
|
|
81
|
+
if (manifest.audioManifest !== undefined || manifest.mix !== undefined)
|
|
82
|
+
return false;
|
|
83
|
+
return isMusic(manifest.music);
|
|
84
|
+
}
|
|
75
85
|
if (!isManifestRef(manifest.audioManifest))
|
|
76
86
|
return false;
|
|
77
87
|
if (!isMix(manifest.mix))
|
|
78
88
|
return false;
|
|
79
|
-
|
|
80
|
-
return false;
|
|
81
|
-
return (manifest.audio ?? []).length > 0;
|
|
89
|
+
return hasMusic(manifest.music);
|
|
82
90
|
};
|
|
91
|
+
const isApprovalKind = (value) => value === "human" || value === "automated";
|
|
83
92
|
const isApprovalReceiptFields = (row) => typeof row.inputManifestSha256 === "string" &&
|
|
84
93
|
HEX64.test(row.inputManifestSha256) &&
|
|
85
94
|
typeof row.previewManifestSha === "string" &&
|
|
86
95
|
typeof row.approvedAt === "string" &&
|
|
87
|
-
typeof row.note === "string"
|
|
96
|
+
typeof row.note === "string" &&
|
|
97
|
+
isApprovalKind(row.approvalKind);
|
|
88
98
|
const isApproval = (value) => {
|
|
89
99
|
const row = value;
|
|
90
100
|
if (typeof row !== "object" || row === null)
|
|
@@ -109,12 +119,12 @@ export async function writeApproval(host, storyboard, approval) {
|
|
|
109
119
|
return path;
|
|
110
120
|
}
|
|
111
121
|
/**
|
|
112
|
-
* Does an approval match the CURRENT inputs (visual, audiovisual or
|
|
122
|
+
* Does an approval match the CURRENT inputs (visual, audiovisual, music-only or
|
|
113
123
|
* audiovisual+music)? Fails
|
|
114
124
|
* closed: any legacy receipt is `stale` (re-preview + re-approve), missing
|
|
115
125
|
* file is `missing`. A visual-only receipt never authorizes audio: resolving
|
|
116
|
-
* with --audio recomputes the audiovisual hash, which cannot match.
|
|
117
|
-
* narration-only receipt never authorizes --music: the music
|
|
126
|
+
* with --audio or --music recomputes the audiovisual hash, which cannot match.
|
|
127
|
+
* A narration-only receipt never authorizes --music: the music
|
|
118
128
|
* {path,sha256,volume,licenseEvidenceSha256} binding changes the hash.
|
|
119
129
|
* Rejects when inputs are unreadable (missing asset, ledger, wav…).
|
|
120
130
|
*/
|
|
@@ -139,5 +149,7 @@ export async function approvalState(host, storyboard, opts = {}) {
|
|
|
139
149
|
return { state: "stale", hash };
|
|
140
150
|
// The recorded scope lets a refusal say WHY it differs (silent render, audible approval).
|
|
141
151
|
const scope = parsed.inputManifest.scope === "audiovisual" ? "audiovisual" : "visual";
|
|
142
|
-
return
|
|
152
|
+
return parsed.inputManifestSha256 === hash
|
|
153
|
+
? { state: "approved", hash, scope, approvalKind: parsed.approvalKind }
|
|
154
|
+
: { state: "stale", hash, scope };
|
|
143
155
|
}
|
package/dist/approval/command.js
CHANGED
|
@@ -5,23 +5,35 @@ import { EXIT } from "../exit-codes.js";
|
|
|
5
5
|
import { defaultOut, previewManifestPath } from "../preview/manifest.js";
|
|
6
6
|
import { writeApproval } from "./approval.js";
|
|
7
7
|
import { buildApprovalInputManifest, hashApprovalInput, } from "./hash.js";
|
|
8
|
-
const USAGE = `mk approve <storyboard.json> [--note "<user words>"] [--out <dir>] [--assets <dir>] [--ledger file] [--audio manifest] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>]
|
|
8
|
+
const USAGE = `mk approve <storyboard.json> [--note "<user words>"] [--automation] [--out <dir>] [--assets <dir>] [--ledger file] [--audio manifest] [--music <bed.wav>] [--music-volume <n>] [--music-license <file>] [--interaction <interaction.json>]
|
|
9
9
|
|
|
10
|
-
Record the user's approval of the CURRENT inputs (visual, audiovisual or audiovisual+music) in <storyboard dir>/.mk/<name>/approval.json.
|
|
10
|
+
Record the user's approval of the CURRENT inputs (visual, audiovisual, music-only or audiovisual+music) in <storyboard dir>/.mk/<name>/approval.json.
|
|
11
11
|
Run it only after the user has seen the preview pack and said an explicit yes. Opt-in music is covered by the same gate (no parallel gate).
|
|
12
12
|
Refuses (exit 2) when <out>/<name>.preview/preview.json does not exist for the current inputs: run \`mk preview\` first.
|
|
13
|
+
Refuses (exit 2) outside an interactive terminal with no agent/automation marker: only a human can label an approval "human".
|
|
13
14
|
Every preview input (assets, ledger, audio, music, volume, license) is inferred from the pack; an explicit flag
|
|
14
15
|
must match the pack or the command exits 2 naming the difference.
|
|
15
16
|
Any later edit to the storyboard, its themes, its referenced assets or its ledger, or (for audiovisual) its audio manifest, wavs, mix, bed, volume or license receipt re-arms \`mk render --gated\` (exit 4).
|
|
16
17
|
--note the user's words, stored with the approval
|
|
18
|
+
--automation record approvalKind "automated"; this receipt can never satisfy \`mk render --gated\`
|
|
17
19
|
--out d the --out used for \`mk preview\` (default <storyboard dir>/out)
|
|
18
20
|
--assets d the --assets used for \`mk preview\` (default: none)
|
|
19
21
|
--ledger f the --ledger used for preview (default: none)
|
|
20
22
|
--audio manifest the --audio used for preview (default: none; mismatch exits 2)
|
|
21
|
-
--music <bed.wav> the --music bed used for preview (
|
|
23
|
+
--music <bed.wav> the --music bed used for preview (mismatch exits 2); without --audio this is a music-only film
|
|
22
24
|
--music-volume <n> the --music-volume used for preview (within (0, 1])
|
|
23
25
|
--music-license <file> the --music-license used for preview (hash only)
|
|
26
|
+
--interaction <file> the --interaction used for preview (ADR-0013 transcript); it is
|
|
27
|
+
part of the approval hash, so an edit re-arms \`mk render --gated\`
|
|
24
28
|
`;
|
|
29
|
+
/**
|
|
30
|
+
* ADR-0014 option C: the measured agent/automation markers, never `TERM_PROGRAM`
|
|
31
|
+
* (a human terminal exports it into agent tool shells too). The terminal test is
|
|
32
|
+
* load-bearing; markers only make an accidental human label less likely.
|
|
33
|
+
*/
|
|
34
|
+
const AGENT_ENV_MARKERS = ["OPENCODE", "OPENCODE_SESSION_ID", "CLAUDECODE", "CI"];
|
|
35
|
+
/** A human context is an interactive terminal with no agent/automation marker. */
|
|
36
|
+
const isHumanContext = (host) => host.tty === true && !AGENT_ENV_MARKERS.some((marker) => host.env?.[marker] !== undefined);
|
|
25
37
|
const previewed = (text) => {
|
|
26
38
|
try {
|
|
27
39
|
const parsed = JSON.parse(text);
|
|
@@ -53,6 +65,7 @@ const recordedInputs = (value) => {
|
|
|
53
65
|
music: path("music"),
|
|
54
66
|
musicVolume: typeof value.musicVolume === "number" ? value.musicVolume : null,
|
|
55
67
|
musicLicense: path("musicLicense"),
|
|
68
|
+
interaction: path("interaction"),
|
|
56
69
|
};
|
|
57
70
|
};
|
|
58
71
|
/**
|
|
@@ -77,7 +90,7 @@ const pickVolume = (flag, recorded, io) => {
|
|
|
77
90
|
}
|
|
78
91
|
return { ok: true, value: flag };
|
|
79
92
|
};
|
|
80
|
-
const resolveInputs = async (io, storyboard, assetsDir, ledgerPath, audioManifest, musicPath, musicVolume, musicLicensePath) => {
|
|
93
|
+
const resolveInputs = async (io, storyboard, assetsDir, ledgerPath, audioManifest, musicPath, musicVolume, musicLicensePath, interactionPath) => {
|
|
81
94
|
try {
|
|
82
95
|
const manifest = await buildApprovalInputManifest(io.host, storyboard, {
|
|
83
96
|
...(assetsDir === undefined ? {} : { assetsDir: resolve(assetsDir) }),
|
|
@@ -86,6 +99,7 @@ const resolveInputs = async (io, storyboard, assetsDir, ledgerPath, audioManifes
|
|
|
86
99
|
...(musicPath === undefined ? {} : { music: musicPath }),
|
|
87
100
|
...(musicVolume === undefined ? {} : { musicVolume }),
|
|
88
101
|
...(musicLicensePath === undefined ? {} : { musicLicense: musicLicensePath }),
|
|
102
|
+
...(interactionPath === undefined ? {} : { interaction: interactionPath }),
|
|
89
103
|
});
|
|
90
104
|
return { manifest, hash: hashApprovalInput(manifest) };
|
|
91
105
|
}
|
|
@@ -128,13 +142,17 @@ const approvePreview = async (io, resolved) => {
|
|
|
128
142
|
const clip = preview.clip;
|
|
129
143
|
const previewScope = preview.inputManifest?.scope;
|
|
130
144
|
const heard = mix?.audible === true && clip?.status === "ok" && previewScope === "audiovisual";
|
|
145
|
+
const narrated = resolved.inputs.manifest.audio.length > 0;
|
|
146
|
+
const previewFix = narrated || resolved.inputs.manifest.music === undefined
|
|
147
|
+
? `--audio <manifest>${resolved.inputs.manifest.music === undefined ? "" : " --music <bed>"}`
|
|
148
|
+
: "--music <bed>";
|
|
131
149
|
if (!heard) {
|
|
132
150
|
const detail = previewScope !== "audiovisual"
|
|
133
151
|
? "the preview is silent (scope visual)"
|
|
134
152
|
: clip?.status !== "ok"
|
|
135
153
|
? `the preview clip was ${typeof clip?.status === "string" ? clip.status : "missing"}${typeof clip?.reason === "string" ? ` (${clip.reason})` : ""}`
|
|
136
154
|
: "the preview is not audible (audible:false, unheard mix)";
|
|
137
|
-
io.stderr(`mk approve: refusing audiovisual approval: ${detail}; regenerate an audible preview with \`mk preview ${resolved.storyboard}
|
|
155
|
+
io.stderr(`mk approve: refusing audiovisual approval: ${detail}; regenerate an audible preview with \`mk preview ${resolved.storyboard} ${previewFix}\` and show clip.mp4 to the user before approving\n`);
|
|
138
156
|
return EXIT.USAGE;
|
|
139
157
|
}
|
|
140
158
|
const wantMusic = resolved.inputs.manifest.music;
|
|
@@ -143,7 +161,7 @@ const approvePreview = async (io, resolved) => {
|
|
|
143
161
|
mix?.musicVolume === wantMusic.volume &&
|
|
144
162
|
mix?.musicLicenseSha === wantMusic.licenseEvidenceSha256;
|
|
145
163
|
if (!heardMusic) {
|
|
146
|
-
io.stderr(`mk approve: refusing music approval: the preview clip was not mixed with this bed/volume/license; regenerate an audible preview with \`mk preview ${resolved.storyboard}
|
|
164
|
+
io.stderr(`mk approve: refusing music approval: the preview clip was not mixed with this bed/volume/license; regenerate an audible preview with \`mk preview ${resolved.storyboard} ${previewFix}\` and show clip.mp4 to the user before approving\n`);
|
|
147
165
|
return EXIT.USAGE;
|
|
148
166
|
}
|
|
149
167
|
}
|
|
@@ -166,8 +184,11 @@ const approvePreview = async (io, resolved) => {
|
|
|
166
184
|
previewManifestSha: resolved.previewManifestSha,
|
|
167
185
|
approvedAt: new Date().toISOString(),
|
|
168
186
|
note: resolved.note,
|
|
187
|
+
approvalKind: resolved.approvalKind,
|
|
169
188
|
});
|
|
170
|
-
io.stdout(
|
|
189
|
+
io.stdout(resolved.approvalKind === "human"
|
|
190
|
+
? `approved ${resolved.inputs.hash.slice(0, 12)} | mk render ${resolved.storyboard} --gated\n`
|
|
191
|
+
: `approved ${resolved.inputs.hash.slice(0, 12)} (automated) | mk render --gated refuses an automated receipt; a human must run mk approve in an interactive terminal\n`);
|
|
171
192
|
return EXIT.OK;
|
|
172
193
|
};
|
|
173
194
|
export const approveCommand = {
|
|
@@ -176,6 +197,7 @@ export const approveCommand = {
|
|
|
176
197
|
async run(args, io) {
|
|
177
198
|
const flags = {
|
|
178
199
|
note: { type: "string" },
|
|
200
|
+
automation: { type: "boolean" },
|
|
179
201
|
out: { type: "string" },
|
|
180
202
|
assets: { type: "string" },
|
|
181
203
|
ledger: { type: "string" },
|
|
@@ -183,6 +205,7 @@ export const approveCommand = {
|
|
|
183
205
|
music: { type: "string" },
|
|
184
206
|
"music-volume": { type: "string" },
|
|
185
207
|
"music-license": { type: "string" },
|
|
208
|
+
interaction: { type: "string" },
|
|
186
209
|
};
|
|
187
210
|
const parsed = parseFlags("approve", USAGE, args, flags, io);
|
|
188
211
|
if (parsed.kind === "exit")
|
|
@@ -190,6 +213,14 @@ export const approveCommand = {
|
|
|
190
213
|
const storyboard = requireStoryboard("approve", USAGE, parsed.positionals, io);
|
|
191
214
|
if (typeof storyboard !== "string")
|
|
192
215
|
return storyboard.code;
|
|
216
|
+
// ADR-0014 option C: an agent or non-interactive caller cannot mint a human
|
|
217
|
+
// label. `--automation` leaves a truthful record that never satisfies the gate.
|
|
218
|
+
const automated = parsed.flags.automation === true;
|
|
219
|
+
if (!automated && !isHumanContext(io.host)) {
|
|
220
|
+
io.stderr("mk approve: refusing to label an approval human from this context: a human must run this command in an interactive terminal; --automation records an automated receipt that can never satisfy `mk render --gated`\n");
|
|
221
|
+
return EXIT.USAGE;
|
|
222
|
+
}
|
|
223
|
+
const approvalKind = automated ? "automated" : "human";
|
|
193
224
|
const musicRaw = textFlag(parsed.flags, "music-volume");
|
|
194
225
|
let musicVolume;
|
|
195
226
|
if (musicRaw !== undefined) {
|
|
@@ -231,15 +262,14 @@ export const approveCommand = {
|
|
|
231
262
|
const musicLicensePath = pickInput("music-license", textFlag(parsed.flags, "music-license"), recorded?.musicLicense ?? null, io);
|
|
232
263
|
if (typeof musicLicensePath === "number")
|
|
233
264
|
return musicLicensePath;
|
|
234
|
-
if (musicPath !== undefined && audioFlag === undefined) {
|
|
235
|
-
io.stderr("mk approve: --music needs --audio\n");
|
|
236
|
-
return EXIT.USAGE;
|
|
237
|
-
}
|
|
238
265
|
if ((musicVolume !== undefined || musicLicensePath !== undefined) && musicPath === undefined) {
|
|
239
266
|
io.stderr("mk approve: --music-volume/--music-license need --music\n");
|
|
240
267
|
return EXIT.USAGE;
|
|
241
268
|
}
|
|
242
|
-
const
|
|
269
|
+
const interactionPath = pickInput("interaction", textFlag(parsed.flags, "interaction"), recorded?.interaction ?? null, io);
|
|
270
|
+
if (typeof interactionPath === "number")
|
|
271
|
+
return interactionPath;
|
|
272
|
+
const inputs = await resolveInputs(io, storyboard, assetsDir, ledgerPath, audioFlag, musicPath, musicVolume, musicLicensePath, interactionPath);
|
|
243
273
|
if (typeof inputs === "number")
|
|
244
274
|
return inputs;
|
|
245
275
|
const note = textFlag(parsed.flags, "note") ?? "";
|
|
@@ -249,6 +279,7 @@ export const approveCommand = {
|
|
|
249
279
|
manifestText,
|
|
250
280
|
previewManifestSha,
|
|
251
281
|
note,
|
|
282
|
+
approvalKind,
|
|
252
283
|
};
|
|
253
284
|
return approvePreview(io, resolved);
|
|
254
285
|
},
|
package/dist/approval/hash.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface ApprovalInputManifest {
|
|
|
47
47
|
readonly audio: readonly ManifestRef[];
|
|
48
48
|
/** Files of authored (`type: "custom"`) scenes; omitted when the storyboard has none. */
|
|
49
49
|
readonly scenes?: readonly ManifestRef[];
|
|
50
|
+
/** ADR-0013 transcript; omitted for a board rendered without one, so its hash is unchanged. */
|
|
51
|
+
readonly interaction?: ManifestRef;
|
|
50
52
|
readonly audioManifest?: ManifestRef;
|
|
51
53
|
readonly mix?: MixInfo;
|
|
52
54
|
readonly music?: MusicInfo;
|
|
@@ -58,6 +60,8 @@ export interface ApprovalBuildOptions {
|
|
|
58
60
|
readonly music?: string;
|
|
59
61
|
readonly musicVolume?: number;
|
|
60
62
|
readonly musicLicense?: string;
|
|
63
|
+
/** ADR-0013 slice 2c: transcript file folded into the film and bound by the approval. */
|
|
64
|
+
readonly interaction?: string;
|
|
61
65
|
}
|
|
62
66
|
export declare function buildApprovalInputManifest(host: Host, storyboard: string, opts?: ApprovalBuildOptions): Promise<ApprovalInputManifest>;
|
|
63
67
|
/**
|
|
@@ -66,6 +70,7 @@ export declare function buildApprovalInputManifest(host: Host, storyboard: strin
|
|
|
66
70
|
* or machine path enters the hash. Audiovisual fields (audioManifest + mix)
|
|
67
71
|
* are covered so wav/manifest/mix changes re-arm the gate. AU-01 music
|
|
68
72
|
* {path,sha256,volume,licenseEvidenceSha256} is covered so bed/volume/license
|
|
69
|
-
* changes re-arm the gate.
|
|
73
|
+
* changes re-arm the gate. ADR-0013's transcript {path,sha256} is covered when
|
|
74
|
+
* present; absent leaves the encoding byte-identical to before transcripts.
|
|
70
75
|
*/
|
|
71
76
|
export declare function hashApprovalInput(manifest: ApprovalInputManifest): string;
|
package/dist/approval/hash.js
CHANGED
|
@@ -3,6 +3,7 @@ import { realpathSync } from "node:fs";
|
|
|
3
3
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
4
|
import { AUDIO_DIR_NAME, normaliseRef as buildNormaliseRef, clipsFromManifest, isContiguous, parseAudioManifest, placementsFromTimeline, readRelativeClosure, resolveSceneDir, resolveTimeline, validateStoryboardFull, } from "@anvpx/motion-build";
|
|
5
5
|
import { parseMusicBed } from "@anvpx/motion-schema";
|
|
6
|
+
import { readInteractionRef } from "../interaction/document.js";
|
|
6
7
|
import { sceneContainment } from "../storyboard/containment.js";
|
|
7
8
|
export const MK_DIR = ".mk";
|
|
8
9
|
const THEMES_DIR = "themes";
|
|
@@ -374,6 +375,11 @@ export async function buildApprovalInputManifest(host, storyboard, opts = {}) {
|
|
|
374
375
|
path,
|
|
375
376
|
sha256: sha256(text),
|
|
376
377
|
}));
|
|
378
|
+
// ADR-0013 slice 2c: the transcript is media-producing input exactly like the board and
|
|
379
|
+
// themes. Absent means no field and no hash change for boards without one.
|
|
380
|
+
const interaction = opts.interaction === undefined
|
|
381
|
+
? undefined
|
|
382
|
+
: await readInteractionRef(host, projectDir, opts.interaction);
|
|
377
383
|
let parsed = null;
|
|
378
384
|
try {
|
|
379
385
|
parsed = JSON.parse(storyboardText);
|
|
@@ -391,10 +397,7 @@ export async function buildApprovalInputManifest(host, storyboard, opts = {}) {
|
|
|
391
397
|
}
|
|
392
398
|
const assets = assetsDir === undefined ? [] : await readAssetRefs(host, projectDir, assetsDir, cleans);
|
|
393
399
|
const ledgerSha256 = opts.ledgerPath === undefined ? undefined : await readLedgerSha(host, opts.ledgerPath);
|
|
394
|
-
if (opts.audioManifest === undefined) {
|
|
395
|
-
if (opts.music !== undefined) {
|
|
396
|
-
throw new Error(`--music needs --audio: pass the same --audio manifest used for preview`);
|
|
397
|
-
}
|
|
400
|
+
if (opts.audioManifest === undefined && opts.music === undefined) {
|
|
398
401
|
return {
|
|
399
402
|
scope: "visual",
|
|
400
403
|
storyboard: storyboardRef,
|
|
@@ -402,13 +405,32 @@ export async function buildApprovalInputManifest(host, storyboard, opts = {}) {
|
|
|
402
405
|
assets,
|
|
403
406
|
...(ledgerSha256 === undefined ? {} : { ledgerSha256 }),
|
|
404
407
|
...(scenes.length === 0 ? {} : { scenes }),
|
|
408
|
+
...(interaction === undefined ? {} : { interaction }),
|
|
405
409
|
audio: [],
|
|
406
410
|
};
|
|
407
411
|
}
|
|
408
|
-
const { audio, audioManifest, mix } = await readAudioRefs(host, projectDir, opts.audioManifest, parsed);
|
|
409
412
|
const music = opts.music === undefined
|
|
410
413
|
? undefined
|
|
411
414
|
: await readMusicRefs(host, projectDir, opts.music, opts.musicVolume, opts.musicLicense);
|
|
415
|
+
if (opts.audioManifest === undefined) {
|
|
416
|
+
// Music-only: an explicit bed with narration explicitly absent. No audio
|
|
417
|
+
// manifest, mix or silent speech track is invented; the picture (storyboard
|
|
418
|
+
// bytes) stays the only timing authority.
|
|
419
|
+
if (music === undefined)
|
|
420
|
+
throw new Error("music-only manifest needs a bed");
|
|
421
|
+
return {
|
|
422
|
+
scope: "audiovisual",
|
|
423
|
+
storyboard: storyboardRef,
|
|
424
|
+
themes,
|
|
425
|
+
assets,
|
|
426
|
+
...(ledgerSha256 === undefined ? {} : { ledgerSha256 }),
|
|
427
|
+
...(scenes.length === 0 ? {} : { scenes }),
|
|
428
|
+
...(interaction === undefined ? {} : { interaction }),
|
|
429
|
+
audio: [],
|
|
430
|
+
music,
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
const { audio, audioManifest, mix } = await readAudioRefs(host, projectDir, opts.audioManifest, parsed);
|
|
412
434
|
return {
|
|
413
435
|
scope: "audiovisual",
|
|
414
436
|
storyboard: storyboardRef,
|
|
@@ -416,6 +438,7 @@ export async function buildApprovalInputManifest(host, storyboard, opts = {}) {
|
|
|
416
438
|
assets,
|
|
417
439
|
...(ledgerSha256 === undefined ? {} : { ledgerSha256 }),
|
|
418
440
|
...(scenes.length === 0 ? {} : { scenes }),
|
|
441
|
+
...(interaction === undefined ? {} : { interaction }),
|
|
419
442
|
audio,
|
|
420
443
|
audioManifest,
|
|
421
444
|
mix,
|
|
@@ -428,7 +451,8 @@ export async function buildApprovalInputManifest(host, storyboard, opts = {}) {
|
|
|
428
451
|
* or machine path enters the hash. Audiovisual fields (audioManifest + mix)
|
|
429
452
|
* are covered so wav/manifest/mix changes re-arm the gate. AU-01 music
|
|
430
453
|
* {path,sha256,volume,licenseEvidenceSha256} is covered so bed/volume/license
|
|
431
|
-
* changes re-arm the gate.
|
|
454
|
+
* changes re-arm the gate. ADR-0013's transcript {path,sha256} is covered when
|
|
455
|
+
* present; absent leaves the encoding byte-identical to before transcripts.
|
|
432
456
|
*/
|
|
433
457
|
export function hashApprovalInput(manifest) {
|
|
434
458
|
const themes = [...manifest.themes].sort(codeUnitSort);
|
|
@@ -443,6 +467,11 @@ export function hashApprovalInput(manifest) {
|
|
|
443
467
|
ledgerSha256: manifest.ledgerSha256 ?? null,
|
|
444
468
|
audio: audio.map((a) => [a.path, a.sha256]),
|
|
445
469
|
...(scenes.length === 0 ? {} : { scenes: scenes.map((s) => [s.path, s.sha256]) }),
|
|
470
|
+
...(manifest.interaction === undefined
|
|
471
|
+
? {}
|
|
472
|
+
: {
|
|
473
|
+
interaction: { path: manifest.interaction.path, sha256: manifest.interaction.sha256 },
|
|
474
|
+
}),
|
|
446
475
|
audioManifest: manifest.audioManifest === undefined
|
|
447
476
|
? null
|
|
448
477
|
: { path: manifest.audioManifest.path, sha256: manifest.audioManifest.sha256 },
|
package/dist/captions/command.js
CHANGED
|
@@ -4,6 +4,7 @@ import { parseFlags, textFlag, usageError } from "../args.js";
|
|
|
4
4
|
import { EXIT } from "../exit-codes.js";
|
|
5
5
|
import { readJsonFile } from "../storyboard/load.js";
|
|
6
6
|
import { formatErrors } from "../template/env.js";
|
|
7
|
+
import { wordTimingBlocker } from "../voice/portability.js";
|
|
7
8
|
import { formatSrt, formatVtt, parseCues } from "./cues.js";
|
|
8
9
|
const USAGE = `mk captions [<voice-manifest.json>] [--storyboard <board.json>] [--out ops.json] [--srt <file>] [--vtt <file>] [--from-srt <file> | --from-vtt <file>] [--json]
|
|
9
10
|
|
|
@@ -16,6 +17,7 @@ scene's authored/auto duration are omitted and reported per scene, never silentl
|
|
|
16
17
|
--vtt f also export the manifest as WebVTT
|
|
17
18
|
--from-srt f instead of a manifest: convert SRT cues into caption overlays (needs --storyboard)
|
|
18
19
|
--from-vtt f instead of a manifest: convert WebVTT cues into caption overlays (needs --storyboard)
|
|
20
|
+
--fail-on-skip refuse the import when any SRT/VTT cue is malformed and skipped
|
|
19
21
|
`;
|
|
20
22
|
const FLAGS = {
|
|
21
23
|
storyboard: { type: "string" },
|
|
@@ -25,6 +27,7 @@ const FLAGS = {
|
|
|
25
27
|
"from-srt": { type: "string" },
|
|
26
28
|
"from-vtt": { type: "string" },
|
|
27
29
|
json: { type: "boolean" },
|
|
30
|
+
"fail-on-skip": { type: "boolean" },
|
|
28
31
|
};
|
|
29
32
|
const round = (value) => Math.round(value * 1000) / 1000;
|
|
30
33
|
const CAPTION_MAX_TEXT = 140;
|
|
@@ -138,6 +141,15 @@ const planFromManifest = (board, manifest) => {
|
|
|
138
141
|
return timed;
|
|
139
142
|
const byId = new Map(timed.map((scene) => [scene.id, scene]));
|
|
140
143
|
const ops = [];
|
|
144
|
+
// Regenerating captions is idempotent: drop the previous caption overlays first
|
|
145
|
+
// (descending, so earlier indexes stay valid) instead of appending a second set.
|
|
146
|
+
const stale = board.scenes
|
|
147
|
+
.map((scene, index) => ({ scene, index }))
|
|
148
|
+
.filter(({ scene }) => scene.type === "caption" && scene.layer === "overlay")
|
|
149
|
+
.map(({ index }) => index)
|
|
150
|
+
.sort((a, b) => b - a);
|
|
151
|
+
for (const index of stale)
|
|
152
|
+
ops.push({ op: "remove", path: `/scenes/${index}` });
|
|
141
153
|
const report = [];
|
|
142
154
|
let words = 0;
|
|
143
155
|
let omitted = 0;
|
|
@@ -266,9 +278,15 @@ const validateOps = (board, plan, io) => {
|
|
|
266
278
|
io.stderr(`mk captions: storyboard is invalid: ${formatErrors(validBoard.errors)}\n`);
|
|
267
279
|
return EXIT.USAGE;
|
|
268
280
|
}
|
|
281
|
+
const adds = plan.ops.filter((op) => op.op === "add").map((op) => op.value);
|
|
269
282
|
const next = {
|
|
270
283
|
...validBoard.value,
|
|
271
|
-
|
|
284
|
+
// Regeneration replaces the previous caption overlays, so the validation board
|
|
285
|
+
// must not carry the stale set the plan just asked to remove.
|
|
286
|
+
scenes: [
|
|
287
|
+
...validBoard.value.scenes.filter((scene) => !(scene.type === "caption" && scene.layer === "overlay")),
|
|
288
|
+
...adds,
|
|
289
|
+
],
|
|
272
290
|
};
|
|
273
291
|
const valid = validateStoryboardFull(next);
|
|
274
292
|
if (valid.ok)
|
|
@@ -329,6 +347,7 @@ export const captionsCommand = {
|
|
|
329
347
|
}
|
|
330
348
|
let plan;
|
|
331
349
|
let manifest;
|
|
350
|
+
let skippedCues = 0;
|
|
332
351
|
if (importPath !== undefined) {
|
|
333
352
|
let text;
|
|
334
353
|
try {
|
|
@@ -338,11 +357,19 @@ export const captionsCommand = {
|
|
|
338
357
|
io.stderr(`mk captions: cannot read ${importPath}\n`);
|
|
339
358
|
return EXIT.USAGE;
|
|
340
359
|
}
|
|
341
|
-
const
|
|
360
|
+
const cueParse = parseCues(text, fromSrt !== undefined ? "srt" : "vtt");
|
|
361
|
+
skippedCues = cueParse.skipped;
|
|
362
|
+
const cues = cueParse.cues;
|
|
342
363
|
if (cues.length === 0) {
|
|
343
364
|
io.stderr(`mk captions: ${importPath} has no readable cues\n`);
|
|
344
365
|
return EXIT.USAGE;
|
|
345
366
|
}
|
|
367
|
+
// Same policy as the main path's `omitted` words: a dropped cue is reported.
|
|
368
|
+
if (skippedCues > 0) {
|
|
369
|
+
io.stderr(`mk captions: skipped ${skippedCues} malformed cue(s)\n`);
|
|
370
|
+
if (parsed.flags["fail-on-skip"] === true)
|
|
371
|
+
return EXIT.USAGE;
|
|
372
|
+
}
|
|
346
373
|
const planned = planFromCues(board, cues, io);
|
|
347
374
|
if (typeof planned === "number")
|
|
348
375
|
return planned;
|
|
@@ -366,7 +393,7 @@ export const captionsCommand = {
|
|
|
366
393
|
const hasWords = manifest.scenes.some((scene) => (scene.words?.length ?? 0) > 0) ||
|
|
367
394
|
(manifest.audio?.words.length ?? 0) > 0;
|
|
368
395
|
if (!hasWords) {
|
|
369
|
-
io.stderr(
|
|
396
|
+
io.stderr(`${wordTimingBlocker().message}\n`);
|
|
370
397
|
return EXIT.USAGE;
|
|
371
398
|
}
|
|
372
399
|
if (wantsOps) {
|
|
@@ -400,7 +427,7 @@ export const captionsCommand = {
|
|
|
400
427
|
return written;
|
|
401
428
|
const summary = `captions ok | ${plan.ops.length} overlays, ${plan.words} words, ${plan.omitted} omitted -> ${out}`;
|
|
402
429
|
if (parsed.flags.json === true) {
|
|
403
|
-
io.stdout(`${JSON.stringify({ ok: true, out, overlays: plan.ops.length, words: plan.words, omitted: plan.omitted })}\n`);
|
|
430
|
+
io.stdout(`${JSON.stringify({ ok: true, out, overlays: plan.ops.length, words: plan.words, omitted: plan.omitted, skipped: skippedCues })}\n`);
|
|
404
431
|
}
|
|
405
432
|
else {
|
|
406
433
|
io.stdout(`${summary}\n`);
|
package/dist/captions/cues.d.ts
CHANGED
|
@@ -4,7 +4,16 @@ export interface Cue {
|
|
|
4
4
|
readonly end: number;
|
|
5
5
|
readonly text: string;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export interface ParsedCues {
|
|
8
|
+
readonly cues: Cue[];
|
|
9
|
+
/** Malformed cue blocks dropped rather than silently ignored. */
|
|
10
|
+
readonly skipped: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Parses cue blocks; an index line and the WEBVTT header are ignored. Malformed
|
|
14
|
+
* cues are counted in `skipped` instead of silently disappearing, so the caller
|
|
15
|
+
* can report them (same policy as the main path's `omitted` word count).
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseCues(text: string, kind: "srt" | "vtt"): ParsedCues;
|
|
9
18
|
export declare function formatSrt(cues: readonly Cue[]): string;
|
|
10
19
|
export declare function formatVtt(cues: readonly Cue[]): string;
|
package/dist/captions/cues.js
CHANGED
|
@@ -14,10 +14,15 @@ const clean = (text) => text
|
|
|
14
14
|
.replace(/<[^>]+>/g, "")
|
|
15
15
|
.replace(/\s+/g, " ")
|
|
16
16
|
.trim();
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Parses cue blocks; an index line and the WEBVTT header are ignored. Malformed
|
|
19
|
+
* cues are counted in `skipped` instead of silently disappearing, so the caller
|
|
20
|
+
* can report them (same policy as the main path's `omitted` word count).
|
|
21
|
+
*/
|
|
18
22
|
export function parseCues(text, kind) {
|
|
19
23
|
const blocks = text.replaceAll("\r\n", "\n").split(/\n{2,}/);
|
|
20
24
|
const cues = [];
|
|
25
|
+
let skipped = 0;
|
|
21
26
|
for (const block of blocks) {
|
|
22
27
|
const lines = block.split("\n").map((line) => line.trim());
|
|
23
28
|
if (lines.length === 0)
|
|
@@ -28,16 +33,20 @@ export function parseCues(text, kind) {
|
|
|
28
33
|
const [from = "", to = ""] = (lines[timingIndex] ?? "").split("-->");
|
|
29
34
|
const start = parseStamp(from);
|
|
30
35
|
const end = parseStamp(to.trim().split(/\s+/)[0] ?? "");
|
|
31
|
-
if (start === undefined || end === undefined || end <= start)
|
|
36
|
+
if (start === undefined || end === undefined || end <= start) {
|
|
37
|
+
skipped += 1;
|
|
32
38
|
continue;
|
|
39
|
+
}
|
|
33
40
|
const body = clean(lines.slice(timingIndex + 1).join(" "));
|
|
34
|
-
if (body === "")
|
|
41
|
+
if (body === "") {
|
|
42
|
+
skipped += 1;
|
|
35
43
|
continue;
|
|
44
|
+
}
|
|
36
45
|
cues.push({ start, end, text: body });
|
|
37
46
|
}
|
|
38
47
|
if (kind === "vtt")
|
|
39
48
|
cues.sort((a, b) => a.start - b.start);
|
|
40
|
-
return cues;
|
|
49
|
+
return { cues, skipped };
|
|
41
50
|
}
|
|
42
51
|
const stamp = (value, separator) => {
|
|
43
52
|
const total = Math.max(0, Math.round(value * 1000));
|
package/dist/commands.js
CHANGED
|
@@ -10,6 +10,7 @@ import { doctorCommand } from "./doctor/command.js";
|
|
|
10
10
|
import { fitCommand } from "./fit/command.js";
|
|
11
11
|
import { generate3dCommand } from "./generate3d/command.js";
|
|
12
12
|
import { iconCommand } from "./icon/command.js";
|
|
13
|
+
import { interactionCommand } from "./interaction/command.js";
|
|
13
14
|
import { optimizeModelCommand } from "./optimize/command.js";
|
|
14
15
|
import { patchCommand } from "./patch/command.js";
|
|
15
16
|
import { pluginCommand } from "./plugin/install.js";
|
|
@@ -48,6 +49,7 @@ export const COMMANDS = [
|
|
|
48
49
|
newCommand,
|
|
49
50
|
previewCommand,
|
|
50
51
|
publishCommand,
|
|
52
|
+
interactionCommand,
|
|
51
53
|
approveCommand,
|
|
52
54
|
patchCommand,
|
|
53
55
|
sceneCommand,
|
package/dist/contact/argv.js
CHANGED
|
@@ -22,7 +22,10 @@ export function contactArgs(plan) {
|
|
|
22
22
|
* per image) into one contact sheet; same tile layout as `contactArgs`, at `width` px per tile.
|
|
23
23
|
*/
|
|
24
24
|
export function contactImagesArgs(list, out, count, cols, width = TILE_WIDTH) {
|
|
25
|
-
const filter = [
|
|
25
|
+
const filter = [
|
|
26
|
+
`scale=${width}:-2:flags=lanczos`,
|
|
27
|
+
`tile=${cols}x${rowsFor(count, cols)}:color=white`,
|
|
28
|
+
];
|
|
26
29
|
return [
|
|
27
30
|
"-y",
|
|
28
31
|
"-v",
|
package/dist/doctor/checks.js
CHANGED
|
@@ -408,7 +408,7 @@ export const checkKokoro = async ({ run, host }) => {
|
|
|
408
408
|
id,
|
|
409
409
|
status: "missing",
|
|
410
410
|
required: false,
|
|
411
|
-
hint: "create the voice venv first: py -3.12 -m venv .venv-voice then .venv-voice\\Scripts\\activate (voice phase only)",
|
|
411
|
+
hint: "create the voice venv first: py -3.12 -m venv .venv-voice then .venv-voice\\Scripts\\activate, or set MOTION_VOICE_PYTHON to an existing 3.12 venv (voice phase only)",
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
return { id, status: "missing", required: false, hint: installHint };
|
|
@@ -439,7 +439,7 @@ export const checkFasterWhisper = async ({ run, host }) => {
|
|
|
439
439
|
id,
|
|
440
440
|
status: "missing",
|
|
441
441
|
required: false,
|
|
442
|
-
hint: "create the voice venv first: py -3.12 -m venv .venv-voice then .venv-voice\\Scripts\\activate (voice phase only)",
|
|
442
|
+
hint: "create the voice venv first: py -3.12 -m venv .venv-voice then .venv-voice\\Scripts\\activate, or set MOTION_VOICE_PYTHON to an existing 3.12 venv (voice phase only)",
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
445
|
return { id, status: "missing", required: false, hint: installHint };
|
package/dist/doctor/command.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { parseArgs } from "node:util";
|
|
2
|
+
import { MODEL_CATALOG } from "@anvpx/motion-audio";
|
|
2
3
|
import { firstSentence } from "../args.js";
|
|
3
4
|
import { EXIT } from "../exit-codes.js";
|
|
4
5
|
import { CHECKS } from "./checks.js";
|
|
@@ -6,6 +7,8 @@ import { exitCodeFor, formatJson, formatTable } from "./format.js";
|
|
|
6
7
|
import { formatHealLines, formatJsonWithHeal, healSafeRows } from "./heal.js";
|
|
7
8
|
import { hasPins, readPins } from "./pins.js";
|
|
8
9
|
import { defaultVendored } from "./vendored.js";
|
|
10
|
+
/** Compact, single-source model constraints shown before first use. */
|
|
11
|
+
const MODEL_NOTES = MODEL_CATALOG.map((entry) => ` ${entry.id} [${entry.license}]: ${entry.constraint ?? "no known constraints"}`).join("\n");
|
|
9
12
|
const USAGE = `mk doctor [--json] [--fix]
|
|
10
13
|
|
|
11
14
|
Install is the npm package install plus this check (plugin install stays separate):
|
|
@@ -23,6 +26,9 @@ never auto-install system/pip deps; --fix leaves them untouched.
|
|
|
23
26
|
chrome: npx hyperframes browser ensure); prints healed/still-missing;
|
|
24
27
|
with --json prints {results, healed: [{id, healed, detail}]}.
|
|
25
28
|
Never deletes, never installs; exit codes unchanged.
|
|
29
|
+
|
|
30
|
+
Model constraints (from the model catalog) apply before first use:
|
|
31
|
+
${MODEL_NOTES}
|
|
26
32
|
`;
|
|
27
33
|
async function runChecks(io, vendored) {
|
|
28
34
|
const manifest = await io.host.readRootPackageJson();
|
|
@@ -57,7 +63,7 @@ function parseDoctorArgs(args) {
|
|
|
57
63
|
}
|
|
58
64
|
async function emitResults(results, fix, json, io) {
|
|
59
65
|
if (!fix) {
|
|
60
|
-
io.stdout(json ? formatJson(results) : formatTable(results));
|
|
66
|
+
io.stdout(json ? formatJson(results) : `${formatTable(results)}${MODEL_NOTES}\n`);
|
|
61
67
|
return;
|
|
62
68
|
}
|
|
63
69
|
const healed = await healSafeRows(results, io);
|
|
@@ -65,7 +71,7 @@ async function emitResults(results, fix, json, io) {
|
|
|
65
71
|
io.stdout(formatJsonWithHeal(results, healed));
|
|
66
72
|
return;
|
|
67
73
|
}
|
|
68
|
-
io.stdout(`${formatTable(results)}${formatHealLines(healed)}`);
|
|
74
|
+
io.stdout(`${formatTable(results)}${formatHealLines(healed)}${MODEL_NOTES}\n`);
|
|
69
75
|
}
|
|
70
76
|
export const makeDoctorCommand = (vendored = defaultVendored) => ({
|
|
71
77
|
name: "doctor",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|