@anvpx/motion 0.1.50 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +39 -1
  2. package/dist/main.js +0 -0
  3. package/mcpb/motion-kit-0.1.52.mcpb +0 -0
  4. package/package.json +15 -12
  5. package/plugins/motion-kit/.claude-plugin/plugin.json +10 -1
  6. package/plugins/motion-kit/README.md +39 -24
  7. package/plugins/motion-kit/commands/mk-draft.md +2 -2
  8. package/plugins/motion-kit/commands/mk-new.md +4 -4
  9. package/plugins/motion-kit/commands/mk-render.md +2 -2
  10. package/plugins/motion-kit/icon.png +0 -0
  11. package/plugins/motion-kit/skills/motion-kit/SKILL.md +31 -25
  12. package/plugins/motion-kit/skills/motion-kit/references/amplify.md +258 -216
  13. package/plugins/motion-kit/skills/motion-kit/references/authoring-scene.md +4 -0
  14. package/plugins/motion-kit/skills/motion-kit/references/authoring-style.md +4 -0
  15. package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +71 -58
  16. package/plugins/motion-kit/skills/motion-kit/references/content-pack.md +10 -1
  17. package/plugins/motion-kit/skills/motion-kit/references/craft-composition.md +43 -0
  18. package/plugins/motion-kit/skills/motion-kit/references/craft-critique.md +26 -1
  19. package/plugins/motion-kit/skills/motion-kit/references/craft-motion.md +28 -0
  20. package/plugins/motion-kit/skills/motion-kit/references/craft-sound.md +2 -0
  21. package/plugins/motion-kit/skills/motion-kit/references/craft-type.md +2 -0
  22. package/plugins/motion-kit/skills/motion-kit/references/critique-repair.md +9 -0
  23. package/plugins/motion-kit/skills/motion-kit/references/decision-packet.md +10 -0
  24. package/plugins/motion-kit/skills/motion-kit/references/density.md +12 -5
  25. package/plugins/motion-kit/skills/motion-kit/references/direction.md +27 -61
  26. package/plugins/motion-kit/skills/motion-kit/references/faux-ui.md +16 -1
  27. package/plugins/motion-kit/skills/motion-kit/references/free-storyboard.md +8 -2
  28. package/plugins/motion-kit/skills/motion-kit/references/index.md +70 -0
  29. package/plugins/motion-kit/skills/motion-kit/references/intake.md +32 -3
  30. package/plugins/motion-kit/skills/motion-kit/references/knowledge-routing.md +5 -1
  31. package/plugins/motion-kit/skills/motion-kit/references/longform.md +4 -0
  32. package/plugins/motion-kit/skills/motion-kit/references/outline.md +13 -2
  33. package/plugins/motion-kit/skills/motion-kit/references/patching.md +4 -0
  34. package/plugins/motion-kit/skills/motion-kit/references/patterns.md +46 -66
  35. package/plugins/motion-kit/skills/motion-kit/references/quality-bar.md +41 -93
  36. package/plugins/motion-kit/skills/motion-kit/references/review.md +17 -8
  37. package/plugins/motion-kit/skills/motion-kit/references/scene-recipes.md +111 -333
  38. package/plugins/motion-kit/skills/motion-kit/references/setup.md +4 -0
  39. package/plugins/motion-kit/skills/motion-kit/references/slop.md +46 -40
  40. package/plugins/motion-kit/skills/motion-kit/references/storyboard-json.md +9 -3
  41. package/plugins/motion-kit/skills/motion-kit/references/themes.md +4 -0
  42. package/plugins/motion-kit/skills/motion-kit/references/troubleshooting.md +81 -75
  43. package/plugins/motion-kit/skills/motion-kit/references/voice.md +10 -0
  44. package/plugins/motion-kit/skills/motion-kit/references/worked-decisions.md +4 -0
  45. package/plugins/motion-kit/skills/motion-kit/references/worked-example.md +4 -0
  46. package/skills/motion-kit/SKILL.md +31 -25
  47. package/skills/motion-kit/references/amplify.md +258 -216
  48. package/skills/motion-kit/references/authoring-scene.md +4 -0
  49. package/skills/motion-kit/references/authoring-style.md +4 -0
  50. package/skills/motion-kit/references/common-mistakes.md +71 -58
  51. package/skills/motion-kit/references/content-pack.md +10 -1
  52. package/skills/motion-kit/references/craft-composition.md +43 -0
  53. package/skills/motion-kit/references/craft-critique.md +26 -1
  54. package/skills/motion-kit/references/craft-motion.md +28 -0
  55. package/skills/motion-kit/references/craft-sound.md +2 -0
  56. package/skills/motion-kit/references/craft-type.md +2 -0
  57. package/skills/motion-kit/references/critique-repair.md +9 -0
  58. package/skills/motion-kit/references/decision-packet.md +10 -0
  59. package/skills/motion-kit/references/density.md +12 -5
  60. package/skills/motion-kit/references/direction.md +27 -61
  61. package/skills/motion-kit/references/faux-ui.md +16 -1
  62. package/skills/motion-kit/references/free-storyboard.md +8 -2
  63. package/skills/motion-kit/references/index.md +70 -0
  64. package/skills/motion-kit/references/intake.md +32 -3
  65. package/skills/motion-kit/references/knowledge-routing.md +5 -1
  66. package/skills/motion-kit/references/longform.md +4 -0
  67. package/skills/motion-kit/references/outline.md +13 -2
  68. package/skills/motion-kit/references/patching.md +4 -0
  69. package/skills/motion-kit/references/patterns.md +46 -66
  70. package/skills/motion-kit/references/quality-bar.md +41 -93
  71. package/skills/motion-kit/references/review.md +17 -8
  72. package/skills/motion-kit/references/scene-recipes.md +111 -333
  73. package/skills/motion-kit/references/setup.md +4 -0
  74. package/skills/motion-kit/references/slop.md +46 -40
  75. package/skills/motion-kit/references/storyboard-json.md +9 -3
  76. package/skills/motion-kit/references/themes.md +4 -0
  77. package/skills/motion-kit/references/troubleshooting.md +81 -75
  78. package/skills/motion-kit/references/voice.md +10 -0
  79. package/skills/motion-kit/references/worked-decisions.md +4 -0
  80. package/skills/motion-kit/references/worked-example.md +4 -0
@@ -1,75 +1,81 @@
1
- # Troubleshooting and exit codes
2
-
3
- Read the first `E` line, not the whole log. It names a pointer and usually a suggestion. Fix that one thing, re-run, then read the next.
4
-
5
- ## First response
6
-
7
- 1. `mk validate` / `mk preview`: read the pointer, compare that scene with `mk catalog <type>`, patch only that scene.
8
- 2. Same error twice: stop changing flags. Rewrite the named scene from its catalog example via `mk patch`, or choose a different type.
9
- 3. Third failure: stop. Tell the user the exact error and the two routes you tried; do not loop.
10
- 4. Never disable lint, raise a limit by editing the output, or hand-edit the JSON to get past a gate.
11
-
12
- ## Exit codes
13
-
14
- | Exit | Meaning | Do |
15
- | ---- | -------------------------------------------------------------------------- | ------------------------------------------------------------ |
16
- | 0 | success (warnings allowed) | continue; read the warnings |
17
- | 1 | tool, build or render failure | `mk doctor`; read the last lines and `render-log.txt` |
18
- | 2 | bad flags, unreadable file, validation errors, no preview for `mk approve` | fix the named pointer; run `mk preview` before approve |
19
- | 4 | AWAITING_APPROVAL (`--gated`) | not an error: show the pack, ask, `mk approve` only on a yes |
20
- | 5 | QA failed (`mk verify`) | fix the named scene or param, re-render once, then report |
21
- | 127 | required program missing | give the install hint from `mk doctor`; do not retry blindly |
22
-
23
- ## Named failures
24
-
25
- | Symptom | Cause / fix |
26
- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
27
- | `unknown key(s): typo` | prop not in the catalog: remove it or `mk catalog <type>` |
28
- | `must be a lowercase slug` | scene id has spaces or capitals; rename to `a-z`, `0-9`, hyphens |
29
- | `overlay needs over: <base scene id>` | add `"over": "<existing base id>"` and a fitting `duration` |
30
- | `duplicate scene id "x"` | every id must be unique |
31
- | `unknown theme "x"; use one of: ...` | built-in theme, vendored `themes/x.json`, or `mk new`; `mk validate` does not catch this. If the theme is not built-in, preview before calling stage 5 done |
32
- | `mk approve` exits 2 after a preview | the preview used `--out`/`--assets`/`--ledger`/audio flags; repeat those exact flags. The printed `approve:` hint may omit `--out`, so do not trust it alone |
33
- | `no ledger row` or `no assetsDir` | run `mk assets import` for each file, then pass the same `--assets d --ledger f` to build/preview/approve/render; `image` is relative to `--assets` |
34
- | `parent "/scenes/9" does not exist` | patch path skips a level; add the parent first or target an existing path |
35
- | `mk new` slot error (`max 5`, `text<=...`) | shorten or merge; never edit the generated board past the slot limit |
36
- | `mk fit` refuses "over the X s" | the scenes cannot stretch that far: `mk scene add`, then fit; never pad or stretch past the range |
37
- | `mk approve` exits 2 | no preview for the current inputs, or a flag differs from preview; re-preview |
38
- | `mk render --gated` exits 4 | no approval or the inputs changed; preview again and ask again |
39
- | Preview exits 2 | lint or validation failed; read the still/scene it names |
40
- | `verify` exit 5 | read the report line: streams, duration, fps or frame count; fix the named scene, render once |
41
- | `mk captions` asks for `--storyboard` | ops need scene-relative paths; add the board |
42
- | `mk voice` fails closed | Python 3.12 venv or voice extras missing; `mk doctor`; ship silent if unavailable |
43
- | Preview says the clip was skipped | budget ran out; stills are still valid; offer `--budget-sec` |
44
- | `mk state` exits 1 | an artifact claims more than its inputs prove; fix the overclaim, do not re-preview blindly |
45
- | No vision / cannot open the image | say so; read `preview.json`; ask the user to open the pack and approve |
46
-
47
- ## Recover without a rewrite
48
-
49
- - Wrong wording or number: `mk patch` replace the leaf.
50
- - Wrong pacing: `mk patch` replace `duration`, or `mk fit --seconds N`.
51
- - Wrong structure: `mk scene remove|move|add`, then validate.
52
- - Wrong look: change the theme or the direction fields, not the copy.
53
- - Wrong route: restart from `mk new` or `mk scene new`; do not bolt a second route onto a broken board.
54
-
55
- After any successful edit the approval is stale. Preview again, then ask.
56
-
57
-
58
- ## Sound and the approval gate
59
-
60
- Five refusals that cost this project two round trips each, all of them about audio.
61
- They are the places a film stops one flag short of existing.
62
-
63
- | Refusal | What it means | Do instead |
64
- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
65
- | `delivery FAIL — integrated loudness is -25 LUFS` | the gate judges EBU R128 integrated loudness, not peak level; delivery wants -14 ±2 LUFS with a true peak at or below -1 dBFS | re-run the mix so the render reports about -14 LUFS, then re-render; the render prints its own LUFS and true peak — read that line before re-rendering |
66
- | `delivery FAIL — no audio stream` | a silent mp4 cannot pass delivery; the gate requires an audio stream, not merely a quiet one | narrate (`mk voice`) or add a voice track; do not ship silence |
67
- | `--music needs --audio: the bed loops to the narration length` | there is no music-only film; the bed length follows the voice manifest | run `mk voice` first, then pass `--audio <manifest> --music <bed>` |
68
- | `cannot read --music-license CC0-1.0: not found` | the flag takes a **path to a licence file**, not an SPDX id | `--music-license music/LICENSE-CC0.txt` |
69
- | `refusing music approval: the preview clip was not mixed with this bed/volume/license` | the approval hash covers bed, volume **and** licence, so every audio flag used at render must also be used at preview | pass the identical audio flags to `mk preview` and `mk approve` |
70
- | `music bed "…" escapes the project` | a gated render only accepts files inside the board's own directory | copy the bed and its licence beside the board, then reference them relatively |
71
-
72
- The rule behind all five: **preview, approve and render take the same flags.** Any
73
- difference — a volume, a licence path, a bed copied from elsewhere — is a new input
74
- set and the approval no longer applies. Copy the flag block once and paste it into all
75
- three commands.
1
+ # Troubleshooting and exit codes
2
+
3
+ Read the first `E` line, not the whole log. It names a pointer and usually a suggestion. Fix that one thing, re-run, then read the next.
4
+
5
+ ## First response
6
+
7
+ 1. `mk validate` / `mk preview`: read the pointer, compare that scene with `mk catalog <type>`, patch only that scene.
8
+ 2. Same error twice: stop changing flags. Rewrite the named scene from its catalog example via `mk patch`, or choose a different type.
9
+ 3. Third failure: stop. Tell the user the exact error and the two routes you tried; do not loop.
10
+ 4. Never disable lint, raise a limit by editing the output, or hand-edit the JSON to get past a gate.
11
+
12
+ ## Exit codes
13
+
14
+ | Exit | Meaning | Do |
15
+ | ---- | -------------------------------------------------------------------------- | ------------------------------------------------------------ |
16
+ | 0 | success (warnings allowed) | continue; read the warnings |
17
+ | 1 | tool, build or render failure | `mk doctor`; read the last lines and `render-log.txt` |
18
+ | 2 | bad flags, unreadable file, validation errors, no preview for `mk approve` | fix the named pointer; run `mk preview` before approve |
19
+ | 4 | AWAITING_APPROVAL (`--gated`) | not an error: show the pack, ask, `mk approve` only on a yes |
20
+ | 5 | QA failed (`mk verify`) | fix the named scene or param, re-render once, then report |
21
+ | 127 | required program missing | give the install hint from `mk doctor`; do not retry blindly |
22
+
23
+ ## Named failures
24
+
25
+ | Symptom | Cause / fix |
26
+ | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
27
+ | `unknown key(s): typo` | prop not in the catalog: remove it or `mk catalog <type>` |
28
+ | `must be a lowercase slug` | scene id has spaces or capitals; rename to `a-z`, `0-9`, hyphens |
29
+ | `overlay needs over: <base scene id>` | add `"over": "<existing base id>"` and a fitting `duration` |
30
+ | `duplicate scene id "x"` | every id must be unique |
31
+ | `unknown theme "x"; use one of: ...` | built-in theme, vendored `themes/x.json`, or `mk new`; `mk validate` does not catch this. If the theme is not built-in, preview before calling stage 5 done |
32
+ | `mk approve` exits 2 after a preview | the preview used `--out`/`--assets`/`--ledger`/audio flags; repeat those exact flags. The printed `approve:` hint may omit `--out`, so do not trust it alone |
33
+ | `no ledger row` or `no assetsDir` | run `mk assets import` for each file, then pass the same `--assets d --ledger f` to build/preview/approve/render; `image` is relative to `--assets` |
34
+ | `parent "/scenes/9" does not exist` | patch path skips a level; add the parent first or target an existing path |
35
+ | `mk new` slot error (`max 5`, `text<=...`) | shorten or merge; never edit the generated board past the slot limit |
36
+ | `mk fit` refuses "over the X s" | the scenes cannot stretch that far: `mk scene add`, then fit; never pad or stretch past the range |
37
+ | `mk approve` exits 2 | no preview for the current inputs, or a flag differs from preview; re-preview |
38
+ | `mk render --gated` exits 4 | no approval or the inputs changed; preview again and ask again |
39
+ | Preview exits 2 | lint or validation failed; read the still/scene it names |
40
+ | `verify` exit 5 | read the report line: streams, duration, fps or frame count; fix the named scene, render once |
41
+ | `mk captions` asks for `--storyboard` | ops need scene-relative paths; add the board |
42
+ | `mk voice` fails closed | Python 3.12 venv or voice extras missing; `mk doctor`; ship silent if unavailable |
43
+ | Preview says the clip was skipped | budget ran out; stills are still valid; offer `--budget-sec` |
44
+ | `mk state` exits 1 | an artifact claims more than its inputs prove; fix the overclaim, do not re-preview blindly |
45
+ | No vision / cannot open the image | say so; read `preview.json`; ask the user to open the pack and approve |
46
+
47
+ ## Recover without a rewrite
48
+
49
+ - Wrong wording or number: `mk patch` replace the leaf.
50
+ - Wrong pacing: `mk patch` replace `duration`, or `mk fit --seconds N`.
51
+ - Wrong structure: `mk scene remove|move|add`, then validate.
52
+ - Wrong look: change the theme or the direction fields, not the copy.
53
+ - Wrong route: restart from `mk new` or `mk scene new`; do not bolt a second route onto a broken board.
54
+
55
+ After any successful edit the approval is stale. Preview again, then ask.
56
+
57
+
58
+ ## Sound and the approval gate
59
+
60
+ Five refusals that cost this project two round trips each, all of them about audio.
61
+ They are the places a film stops one flag short of existing.
62
+
63
+ | Refusal | What it means | Do instead |
64
+ | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
65
+ | `delivery FAIL — integrated loudness is -25 LUFS` | the gate judges EBU R128 integrated loudness, not peak level; delivery wants -14 ±2 LUFS with a true peak at or below -1 dBFS | re-run the mix so the render reports about -14 LUFS, then re-render; the render prints its own LUFS and true peak — read that line before re-rendering |
66
+ | `delivery FAIL — no audio stream` | a silent mp4 cannot pass delivery; the gate requires an audio stream, not merely a quiet one | narrate (`mk voice`) or add a voice track; do not ship silence |
67
+ | `--music needs --audio: the bed loops to the narration length` | there is no music-only film; the bed length follows the voice manifest | run `mk voice` first, then pass `--audio <manifest> --music <bed>` |
68
+ | `cannot read --music-license CC0-1.0: not found` | the flag takes a **path to a licence file**, not an SPDX id | `--music-license music/LICENSE-CC0.txt` |
69
+ | `refusing music approval: the preview clip was not mixed with this bed/volume/license` | the approval hash covers bed, volume **and** licence, so every audio flag used at render must also be used at preview | pass the identical audio flags to `mk preview` and `mk approve` |
70
+ | `music bed "…" escapes the project` | a gated render only accepts files inside the board's own directory | copy the bed and its licence beside the board, then reference them relatively |
71
+
72
+ The rule behind all five: **preview, approve and render take the same flags.** Any
73
+ difference — a volume, a licence path, a bed copied from elsewhere — is a new input
74
+ set and the approval no longer applies. Copy the flag block once and paste it into all
75
+ three commands.
76
+
77
+ ## Applicability, counterexample and provenance
78
+
79
+ The exit codes, named failures and audio refusals are motion-kit observations of the current CLI surface, not a vendor specification. A symptom can have more than one cause; read the first `E` line and the pointer before assuming a row applies. Counterexamples: exit 0 with warnings is still success; exit 4 under `--gated` is an approval wait, not a failure; a silent board can be intentional with `--allow-silent`. Verify the exact message and current flags before acting, and re-run after each single fix.
80
+
81
+ **Check:** the first E/failure line matches a symptom above before applying a fix; the fix is verified by re-running the same command once. If the message differs, do not force a match.
@@ -77,3 +77,13 @@ Do not use two beds in one film unless the direction explicitly calls for a scor
77
77
  | `mk qc` WARN or UNKNOWN | report the exact state; do not call it PASS |
78
78
  | `mk captions` omits words | tell the user which scene and how many; adjust the script or duration |
79
79
  | render exit 4 after audio work | the audio inputs drifted from approval; re-preview and re-approve |
80
+
81
+ ## Levels (advisory, not a broadcast standard)
82
+
83
+ Aim programme around -14 LUFS with true peak around -1.5 dBTP; voice around -16 LUFS. Duck music about -5 dB under narration; keep SFX 8-20 dB under voice. Prefer two-pass loudnorm and AAC 192k at 48 kHz. Cut on the beat at 120-130 BPM; keep hard cuts within 2 frames. Silent remains valid when narration is not approved.
84
+
85
+ ## Applicability, counterexample and provenance
86
+
87
+ **Applicability:** when narration, music or captions are requested or approved. **Counterexample:** a silent film is valid when narration is not approved; a voice preset may be wrong for the brief — choose by fit, not by default. **Provenance:** operational defaults of the motion-kit audio pipeline (Kokoro alignment, CC0 music beds); not speech-science or broadcast-loudness standards.
88
+
89
+ **Check:** `mk qc` reports PASS (or its exact state is quoted); every number in narration is written as words; no word lands in silence; preview, approve and render use identical `--audio`/`--music`/`--music-volume`/`--music-license` flags. If any fails, do not claim narrated or approved audio.
@@ -176,3 +176,7 @@ They are authored technical fixtures, not a measured quality benchmark. They do
176
176
  not prove that a weaker model will reproduce the reasoning, that a reviewer will
177
177
  prefer the result, or that the same decisions fit another brand. A precedent
178
178
  that only changes copy or colour has not answered its question.
179
+
180
+ ## Applicability, counterexample and provenance
181
+
182
+ The three compositions are authored technical fixtures, not a measured quality benchmark. They teach reasoning behind a shot, not a look to copy. Technical validity is not an aesthetic verdict; no example was reviewed for professional quality. Check: separate decision from surface; name what would falsify the same mechanism for another brief.
@@ -168,3 +168,7 @@ If this works, say "yes" and I will render; otherwise tell me which frame or lin
168
168
  - The direct route needs no template, but it does need a theme that resolves (`default` here).
169
169
  - Preview is cheap and silent; render is the expensive, gated step.
170
170
  - A hash or a lint pass is not a quality review. The stills are.
171
+
172
+ ## Applicability, counterexample and provenance
173
+
174
+ The example's numbers (4+6+4+4 durations, 16.5 s total) are what that board produced, not targets for every board. Copy the shape, not the words. The direct route needs no template but does need a theme that resolves. Check: `mk validate` prints 0 errors; preview contact.png and clip; render only after explicit approval.