@anvpx/motion 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -25,11 +25,11 @@ Optional voice needs Python 3.12 plus Kokoro/faster-whisper; `mk doctor` tells y
25
25
  ## Quickstart
26
26
 
27
27
  ```sh
28
- npx -y @anvpx/motion@0.1.2 doctor
28
+ npx -y @anvpx/motion@0.1.3 doctor
29
29
 
30
30
  # Optional: make the rest shorter
31
- alias mk="npx -y @anvpx/motion@0.1.2" # bash/zsh
32
- function mk { npx -y @anvpx/motion@0.1.2 @args } # PowerShell
31
+ alias mk="npx -y @anvpx/motion@0.1.3" # bash/zsh
32
+ function mk { npx -y @anvpx/motion@0.1.3 @args } # PowerShell
33
33
 
34
34
  # Optional template-assisted example, after deciding the visual direction:
35
35
  mk template list --for "how our pricing works"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvpx/motion",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Storyboard JSON to animated video, rendered locally with HyperFrames: the mk CLI plus the full pipeline.",
5
5
  "license": "MIT",
6
6
  "author": "anvpx",
@@ -56,14 +56,14 @@
56
56
  "@fontsource/jetbrains-mono": "5.3.0",
57
57
  "@fontsource/source-serif-4": "5.3.1",
58
58
  "@fontsource/space-grotesk": "5.3.0",
59
- "@anvpx/motion-assets": "0.1.2",
60
- "@anvpx/motion-audio": "0.1.2",
61
- "@anvpx/motion-build": "0.1.2",
62
- "@anvpx/motion-cli": "0.1.2",
63
- "@anvpx/motion-scenes": "0.1.2",
64
- "@anvpx/motion-schema": "0.1.2",
65
- "@anvpx/motion-templates": "0.1.2",
66
- "@anvpx/motion-themes": "0.1.2",
59
+ "@anvpx/motion-assets": "0.1.3",
60
+ "@anvpx/motion-audio": "0.1.3",
61
+ "@anvpx/motion-build": "0.1.3",
62
+ "@anvpx/motion-cli": "0.1.3",
63
+ "@anvpx/motion-scenes": "0.1.3",
64
+ "@anvpx/motion-schema": "0.1.3",
65
+ "@anvpx/motion-templates": "0.1.3",
66
+ "@anvpx/motion-themes": "0.1.3",
67
67
  "hyperframes": "0.8.212",
68
68
  "postprocessing": "6.39.5",
69
69
  "three": "0.186.0",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "description": "Brief-to-approved video via the pinned motion-kit CLI: storyboard, preview, gated render.",
3
3
  "name": "motion-kit",
4
- "version": "0.1.2"
4
+ "version": "0.1.3"
5
5
  }
@@ -2,14 +2,14 @@
2
2
 
3
3
  Plugin root: `plugins/motion-kit/` (chosen over a top-level `motion-kit-plugin/`
4
4
  folder name used by the plugin packaging convention;
5
- `npx -y @anvpx/motion@0.1.2 plugin install` copies this exact folder).
5
+ `npx -y @anvpx/motion@0.1.3 plugin install` copies this exact folder).
6
6
 
7
7
  ## Layout
8
8
 
9
9
  - `.claude-plugin/plugin.json` — manifest (`name`, `version`, `description` only;
10
10
  version tracks `@anvpx/motion`).
11
11
  - `commands/mk-new.md`, `mk-draft.md`, `mk-render.md` — thin wrappers. Every step
12
- calls `npx -y @anvpx/motion@0.1.2` (pinned; never unpinned `npx`).
12
+ calls `npx -y @anvpx/motion@0.1.3` (pinned; never unpinned `npx`).
13
13
  Surface as `/motion-kit:mk-new`, `/motion-kit:mk-draft`, `/motion-kit:mk-render`.
14
14
  - `skills/motion-kit/SKILL.md` — generated from the canonical skill by the
15
15
  scaffold; do not edit it here.
@@ -26,7 +26,7 @@ generates the core package's `skills/` and `plugins/` trees.
26
26
  ## Install
27
27
 
28
28
  ```bash
29
- npx -y @anvpx/motion@0.1.2 plugin install --out ./motion-kit-plugin
29
+ npx -y @anvpx/motion@0.1.3 plugin install --out ./motion-kit-plugin
30
30
  ```
31
31
 
32
32
  Verifies `skills/motion-kit/SKILL.md` sha256 matches after copy.
@@ -5,8 +5,8 @@ description: Preview a motion-kit storyboard (stills, contact sheet, draft clip)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.2 preview storyboard.json
9
- npx -y @anvpx/motion@0.1.2 approve storyboard.json --note "<user words>"
8
+ npx -y @anvpx/motion@0.1.3 preview storyboard.json
9
+ npx -y @anvpx/motion@0.1.3 approve storyboard.json --note "<user words>"
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 7-8 (preview, show + approve).
@@ -5,10 +5,10 @@ description: Start a motion-kit video (intake, brief, template pick, storyboard)
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.2 template list --for "<one-line brief>"
9
- npx -y @anvpx/motion@0.1.2 template show <template>/<blueprint>
10
- npx -y @anvpx/motion@0.1.2 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
- npx -y @anvpx/motion@0.1.2 validate storyboard.json
8
+ npx -y @anvpx/motion@0.1.3 template list --for "<one-line brief>"
9
+ npx -y @anvpx/motion@0.1.3 template show <template>/<blueprint>
10
+ npx -y @anvpx/motion@0.1.3 new <template>/<blueprint> --set k=v ... --out storyboard.json
11
+ npx -y @anvpx/motion@0.1.3 validate storyboard.json
12
12
  ```
13
13
 
14
14
  Follow `skills/motion-kit/SKILL.md` stages 1-6 (intake, brief, pick template,
@@ -5,8 +5,8 @@ description: Gated render of an approved motion-kit storyboard with verify
5
5
  Run the pinned CLI for every step; never use an unpinned invocation.
6
6
 
7
7
  ```bash
8
- npx -y @anvpx/motion@0.1.2 render storyboard.json --gated --verify
9
- npx -y @anvpx/motion@0.1.2 verify out/final.mp4 --storyboard storyboard.json
8
+ npx -y @anvpx/motion@0.1.3 render storyboard.json --gated --verify
9
+ npx -y @anvpx/motion@0.1.3 verify out/final.mp4 --storyboard storyboard.json
10
10
  ```
11
11
 
12
12
  Follow `skills/motion-kit/SKILL.md` stages 9-10 (patch, render). Exit 4 means
@@ -6,7 +6,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
6
6
 
7
7
  # motion-kit: brief -> preview -> approved video
8
8
 
9
- `mk` = `npx -y @anvpx/motion@0.1.2`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
9
+ `mk` = `npx -y @anvpx/motion@0.1.3`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
10
 
11
11
  ## Start here
12
12
 
@@ -73,7 +73,7 @@ create dead time.
73
73
 
74
74
  ## Voice, music and captions (opt-in)
75
75
 
76
- `mk voice --preset <id>` -> `mk captions` -> `mk patch --ops`; same `--audio` for preview, approve and render. Write numbers as words (`01` -> "zero one"). Music is opt-in; choose a mood/energy bed from `music/catalog.json` (ambient, cinematic, warm, tech, playful, reflective), never `bed-full.wav` by default. Details: `references/voice.md`.
76
+ `mk voice --preset <id>` -> `mk captions` -> `mk patch --ops`; same `--audio` for preview, approve and render. Write numbers as words (`01` -> "zero one"). Music is opt-in; choose a mood/energy bed from `music/catalog.json` (ambient, cinematic, warm, tech, playful, reflective), never `bed-full.wav` by default. If captions were requested, produce the timed caption ops from the voice manifest and preview again; on-screen body copy is not a caption track. Details: `references/voice.md`.
77
77
 
78
78
  ## Failures
79
79
 
@@ -52,7 +52,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
52
52
  | `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
53
53
  | `mk voice` on a machine with no venv | `mk doctor`; install Python 3.12 + the voice extras, or ship silent | Voice is opt-in and fails closed |
54
54
  | `mk patch` path into a missing parent | Add the parent first, or target an existing path | Patch stops at the first op that cannot apply |
55
- | `npx -y @anvpx/motion@0.1.2` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
55
+ | `npx -y @anvpx/motion@0.1.3` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
56
56
 
57
57
  ## Windows
58
58
 
@@ -22,6 +22,21 @@ approval while it warns. Use a crossfade, match cut or shared anchor, or add a
22
22
  bridge beat; re-preview until it is `ok`. A deliberate hard cut needs a stated
23
23
  reason and a visual bridge, not silence.
24
24
 
25
+ A crossfade on the incoming scene is the smallest repair (`add` when the scene
26
+ has no transition, `replace` when it does):
27
+
28
+ ```json
29
+ [{ "op": "add", "path": "/scenes/3/transition", "value": "crossfade" }]
30
+ ```
31
+
32
+ ```bash
33
+ mk patch storyboard.json --ops fixes.json
34
+ mk preview storyboard.json --full # check continuity: ok
35
+ ```
36
+
37
+ If the jump remains, bridge with a scene that shares both palettes; do not
38
+ claim the warning is an effect.
39
+
25
40
  ## Ten checks
26
41
 
27
42
  | # | Check | Pass looks like |
@@ -37,6 +52,12 @@ reason and a visual bridge, not silence.
37
52
  | 9 | Rhythm | Orientation, change and reading holds fit the actual message, narration and sound; cuts have narrative reasons |
38
53
  | 10 | Truth | Every number has a source; no invented stat, logo, quote or customer |
39
54
 
55
+ If captions were requested, check that a timed caption artifact exists
56
+ (`mk captions` ops or SRT/VTT), not just on-screen body copy. Read the cues at
57
+ the delivery size: about 20 characters/second, at most 2 lines and 42
58
+ characters per line. A silent film with no timed captions has not delivered
59
+ the caption request.
60
+
40
61
  Use measurements as local checks, not universal aesthetic laws. Inspect real reading conditions, aspect/crop and platform overlays. Name the reference principle and purposeful divergence; do not turn a reference film into a layout to copy.
41
62
 
42
63
  ## Score the preview
@@ -6,7 +6,7 @@ Engine renders silent without voice. For narration, set up the voice venv once:
6
6
 
7
7
  1. Install Python 3.12 from https://www.python.org/downloads/ (check Add to PATH). `py -3.12 --version` must say 3.12.x (3.14 is too new for TTS wheels).
8
8
  2. Install espeak-ng from https://github.com/espeak-ng/espeak-ng/releases (.msi), then `setx PHONEMIZER_ESPEAK_LIBRARY "C:\Program Files\eSpeak NG\libespeak-ng.dll"`.
9
- 3. `py -3.12 -m venv .venv-voice`, then `.venv-voice\Scripts\activate`, then `pip install kokoro==0.9.4 soundfile==0.14.0 faster-whisper==1.2.1`.
9
+ 3. `py -3.12 -m venv .venv-voice`, then `.venv-voice\Scripts\activate`, then `pip install kokoro==0.9.4 soundfile==0.14.0 faster-whisper==1.2.1`. For repeated projects, point `MOTION_VOICE_PYTHON` at one shared 3.12 venv instead of creating a 1 GB venv per film; `--python <bin>` also selects it explicitly.
10
10
  4. `mk doctor` shows `python-venv`/`espeak`/`kokoro`/`faster-whisper` as ok (voice-only rows; they never fail the exit code).
11
11
 
12
12
  ## Consumer install + doctor
@@ -4,7 +4,7 @@ The engine renders silent by default. Add narration only when the user asked for
4
4
 
5
5
  ## Setup
6
6
 
7
- Needs Python 3.12, espeak-ng and the voice extras; see `references/setup.md`. `mk doctor` prints the voice rows, and missing voice tools never fail the overall exit code. If the venv is missing, say so and ship silent; do not fake timings or substitute a different voice.
7
+ Needs Python 3.12, espeak-ng and the voice extras; see `references/setup.md`. `mk doctor` prints the voice rows, and missing voice tools never fail the overall exit code. If the venv is missing, say so and ship silent only with the user's agreement; do not fake timings or substitute a different voice. Reuse one shared venv with `MOTION_VOICE_PYTHON` or `--python` rather than creating a 1 GB venv per project.
8
8
 
9
9
  ## Narration
10
10
 
@@ -6,7 +6,7 @@ allowed-tools: Bash(mk:*) Bash(npx:*) Read Write
6
6
 
7
7
  # motion-kit: brief -> preview -> approved video
8
8
 
9
- `mk` = `npx -y @anvpx/motion@0.1.2`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
9
+ `mk` = `npx -y @anvpx/motion@0.1.3`; alias it once per shell, or use the npx prefix in its place. The user describes the outcome; you author one storyboard JSON, show a short preview, and render only after an explicit yes.
10
10
 
11
11
  ## Start here
12
12
 
@@ -73,7 +73,7 @@ create dead time.
73
73
 
74
74
  ## Voice, music and captions (opt-in)
75
75
 
76
- `mk voice --preset <id>` -> `mk captions` -> `mk patch --ops`; same `--audio` for preview, approve and render. Write numbers as words (`01` -> "zero one"). Music is opt-in; choose a mood/energy bed from `music/catalog.json` (ambient, cinematic, warm, tech, playful, reflective), never `bed-full.wav` by default. Details: `references/voice.md`.
76
+ `mk voice --preset <id>` -> `mk captions` -> `mk patch --ops`; same `--audio` for preview, approve and render. Write numbers as words (`01` -> "zero one"). Music is opt-in; choose a mood/energy bed from `music/catalog.json` (ambient, cinematic, warm, tech, playful, reflective), never `bed-full.wav` by default. If captions were requested, produce the timed caption ops from the voice manifest and preview again; on-screen body copy is not a caption track. Details: `references/voice.md`.
77
77
 
78
78
  ## Failures
79
79
 
@@ -52,7 +52,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
52
52
  | `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
53
53
  | `mk voice` on a machine with no venv | `mk doctor`; install Python 3.12 + the voice extras, or ship silent | Voice is opt-in and fails closed |
54
54
  | `mk patch` path into a missing parent | Add the parent first, or target an existing path | Patch stops at the first op that cannot apply |
55
- | `npx -y @anvpx/motion@0.1.2` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
55
+ | `npx -y @anvpx/motion@0.1.3` returns 404 | stop; verify the exact release on npm, or use a local checkout/tarball only if the user has one | do not silently fall back to an unpinned npx |
56
56
 
57
57
  ## Windows
58
58
 
@@ -22,6 +22,21 @@ approval while it warns. Use a crossfade, match cut or shared anchor, or add a
22
22
  bridge beat; re-preview until it is `ok`. A deliberate hard cut needs a stated
23
23
  reason and a visual bridge, not silence.
24
24
 
25
+ A crossfade on the incoming scene is the smallest repair (`add` when the scene
26
+ has no transition, `replace` when it does):
27
+
28
+ ```json
29
+ [{ "op": "add", "path": "/scenes/3/transition", "value": "crossfade" }]
30
+ ```
31
+
32
+ ```bash
33
+ mk patch storyboard.json --ops fixes.json
34
+ mk preview storyboard.json --full # check continuity: ok
35
+ ```
36
+
37
+ If the jump remains, bridge with a scene that shares both palettes; do not
38
+ claim the warning is an effect.
39
+
25
40
  ## Ten checks
26
41
 
27
42
  | # | Check | Pass looks like |
@@ -37,6 +52,12 @@ reason and a visual bridge, not silence.
37
52
  | 9 | Rhythm | Orientation, change and reading holds fit the actual message, narration and sound; cuts have narrative reasons |
38
53
  | 10 | Truth | Every number has a source; no invented stat, logo, quote or customer |
39
54
 
55
+ If captions were requested, check that a timed caption artifact exists
56
+ (`mk captions` ops or SRT/VTT), not just on-screen body copy. Read the cues at
57
+ the delivery size: about 20 characters/second, at most 2 lines and 42
58
+ characters per line. A silent film with no timed captions has not delivered
59
+ the caption request.
60
+
40
61
  Use measurements as local checks, not universal aesthetic laws. Inspect real reading conditions, aspect/crop and platform overlays. Name the reference principle and purposeful divergence; do not turn a reference film into a layout to copy.
41
62
 
42
63
  ## Score the preview
@@ -6,7 +6,7 @@ Engine renders silent without voice. For narration, set up the voice venv once:
6
6
 
7
7
  1. Install Python 3.12 from https://www.python.org/downloads/ (check Add to PATH). `py -3.12 --version` must say 3.12.x (3.14 is too new for TTS wheels).
8
8
  2. Install espeak-ng from https://github.com/espeak-ng/espeak-ng/releases (.msi), then `setx PHONEMIZER_ESPEAK_LIBRARY "C:\Program Files\eSpeak NG\libespeak-ng.dll"`.
9
- 3. `py -3.12 -m venv .venv-voice`, then `.venv-voice\Scripts\activate`, then `pip install kokoro==0.9.4 soundfile==0.14.0 faster-whisper==1.2.1`.
9
+ 3. `py -3.12 -m venv .venv-voice`, then `.venv-voice\Scripts\activate`, then `pip install kokoro==0.9.4 soundfile==0.14.0 faster-whisper==1.2.1`. For repeated projects, point `MOTION_VOICE_PYTHON` at one shared 3.12 venv instead of creating a 1 GB venv per film; `--python <bin>` also selects it explicitly.
10
10
  4. `mk doctor` shows `python-venv`/`espeak`/`kokoro`/`faster-whisper` as ok (voice-only rows; they never fail the exit code).
11
11
 
12
12
  ## Consumer install + doctor
@@ -4,7 +4,7 @@ The engine renders silent by default. Add narration only when the user asked for
4
4
 
5
5
  ## Setup
6
6
 
7
- Needs Python 3.12, espeak-ng and the voice extras; see `references/setup.md`. `mk doctor` prints the voice rows, and missing voice tools never fail the overall exit code. If the venv is missing, say so and ship silent; do not fake timings or substitute a different voice.
7
+ Needs Python 3.12, espeak-ng and the voice extras; see `references/setup.md`. `mk doctor` prints the voice rows, and missing voice tools never fail the overall exit code. If the venv is missing, say so and ship silent only with the user's agreement; do not fake timings or substitute a different voice. Reuse one shared venv with `MOTION_VOICE_PYTHON` or `--python` rather than creating a 1 GB venv per project.
8
8
 
9
9
  ## Narration
10
10