@anvpx/motion 0.1.46 → 0.1.48
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/CATALOG.md +2 -2
- package/package.json +9 -9
- package/plugins/motion-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/motion-kit/README.md +3 -3
- package/plugins/motion-kit/commands/mk-draft.md +2 -2
- package/plugins/motion-kit/commands/mk-new.md +4 -4
- package/plugins/motion-kit/commands/mk-render.md +2 -2
- package/plugins/motion-kit/skills/motion-kit/SKILL.md +1 -1
- package/plugins/motion-kit/skills/motion-kit/references/authoring-scene.md +12 -0
- package/plugins/motion-kit/skills/motion-kit/references/common-mistakes.md +1 -1
- package/plugins/motion-kit/skills/motion-kit/references/themes.md +12 -2
- package/skills/motion-kit/SKILL.md +1 -1
- package/skills/motion-kit/references/authoring-scene.md +12 -0
- package/skills/motion-kit/references/common-mistakes.md +1 -1
- package/skills/motion-kit/references/themes.md +12 -2
package/CATALOG.md
CHANGED
|
@@ -12,7 +12,7 @@ poster | base | Type-led statement: 1-3 oversized lines with [x] accents, option
|
|
|
12
12
|
bullets | base | Short list of 1-6 points with an optional heading. | items
|
|
13
13
|
stat | base | One hero number with label, unit, delta and context; counts up. | value,label
|
|
14
14
|
flow | base | Node-and-arrow diagram (2-8 nodes) laid out left-right or top-bottom. | nodes,edges
|
|
15
|
-
outro | base | Closing card
|
|
15
|
+
outro | base | Closing card on a deep ground (its own dark gradient, whatever the theme): title, up to 3 lines and up to 4 credits. | title
|
|
16
16
|
lower-third | overlay | Name plate with optional title at the lower edge. | name
|
|
17
17
|
bug | overlay | Corner word mark or ledger image; give exactly one of text or image. | -
|
|
18
18
|
progress | overlay | Thin progress bar over the scene or the whole timeline. | -
|
|
@@ -95,7 +95,7 @@ props: {"nodes":[{"id":"a","label":"A"},{"id":"b","label":"B"}],"edges":[{"from"
|
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
```
|
|
98
|
-
outro (base): Closing card
|
|
98
|
+
outro (base): Closing card on a deep ground (its own dark gradient, whatever the theme): title, up to 3 lines and up to 4 credits.
|
|
99
99
|
title * text
|
|
100
100
|
lines text[..3]
|
|
101
101
|
credits text[..4]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvpx/motion",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
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.
|
|
60
|
-
"@anvpx/motion-audio": "0.1.
|
|
61
|
-
"@anvpx/motion-build": "0.1.
|
|
62
|
-
"@anvpx/motion-cli": "0.1.
|
|
63
|
-
"@anvpx/motion-scenes": "0.1.
|
|
64
|
-
"@anvpx/motion-schema": "0.1.
|
|
65
|
-
"@anvpx/motion-templates": "0.1.
|
|
66
|
-
"@anvpx/motion-themes": "0.1.
|
|
59
|
+
"@anvpx/motion-assets": "0.1.48",
|
|
60
|
+
"@anvpx/motion-audio": "0.1.48",
|
|
61
|
+
"@anvpx/motion-build": "0.1.48",
|
|
62
|
+
"@anvpx/motion-cli": "0.1.48",
|
|
63
|
+
"@anvpx/motion-scenes": "0.1.48",
|
|
64
|
+
"@anvpx/motion-schema": "0.1.48",
|
|
65
|
+
"@anvpx/motion-templates": "0.1.48",
|
|
66
|
+
"@anvpx/motion-themes": "0.1.48",
|
|
67
67
|
"hyperframes": "0.8.212",
|
|
68
68
|
"postprocessing": "6.39.5",
|
|
69
69
|
"three": "0.186.0",
|
|
@@ -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.
|
|
5
|
+
`npx -y @anvpx/motion@0.1.48 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.
|
|
12
|
+
calls `npx -y @anvpx/motion@0.1.48` (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.
|
|
29
|
+
npx -y @anvpx/motion@0.1.48 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.
|
|
9
|
-
npx -y @anvpx/motion@0.1.
|
|
8
|
+
npx -y @anvpx/motion@0.1.48 preview storyboard.json
|
|
9
|
+
npx -y @anvpx/motion@0.1.48 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.
|
|
9
|
-
npx -y @anvpx/motion@0.1.
|
|
10
|
-
npx -y @anvpx/motion@0.1.
|
|
11
|
-
npx -y @anvpx/motion@0.1.
|
|
8
|
+
npx -y @anvpx/motion@0.1.48 template list --for "<one-line brief>"
|
|
9
|
+
npx -y @anvpx/motion@0.1.48 template show <template>/<blueprint>
|
|
10
|
+
npx -y @anvpx/motion@0.1.48 new <template>/<blueprint> --set k=v ... --out storyboard.json
|
|
11
|
+
npx -y @anvpx/motion@0.1.48 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.
|
|
9
|
-
npx -y @anvpx/motion@0.1.
|
|
8
|
+
npx -y @anvpx/motion@0.1.48 render storyboard.json --gated --verify
|
|
9
|
+
npx -y @anvpx/motion@0.1.48 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.
|
|
9
|
+
`mk` = `npx -y @anvpx/motion@0.1.48`; 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
|
|
|
@@ -43,6 +43,18 @@ A CSS animation runs on the browser clock, not `seek(t)`.
|
|
|
43
43
|
|
|
44
44
|
`var(--mk-color-bg)`, `var(--mk-color-fg)`, `var(--mk-color-accent)`, `var(--mk-font-*)`. Theme tokens support consistent art direction; authored geometry and motion remain yours. Hard hexes need deliberate theme-switch review. Inspect actual safe margins and delivery crop in preview rather than assuming a decorative full-bleed element makes text safe.
|
|
45
45
|
|
|
46
|
+
## Framing
|
|
47
|
+
|
|
48
|
+
The scene root carries the film's safe padding — about **5.3 % of the width and 4.5 % of the
|
|
49
|
+
height** (102 px and 49 px at 1920x1080), so `position: absolute; inset: 0` on your own layer
|
|
50
|
+
stops short of the frame edge. Measured, not guessable. Two answers, both supported:
|
|
51
|
+
|
|
52
|
+
- **Design inside the box.** A plate with a margin is a composition, not a defect; most
|
|
53
|
+
botanical and editorial layouts want the margin.
|
|
54
|
+
- **Bleed on purpose.** Put the full-bleed art in an inner wrapper with a negative inset
|
|
55
|
+
(`position: absolute; inset: -4.5% -5.3%`) and keep type inside the box. The padding is a
|
|
56
|
+
percentage, so check 4k as well as 1080p in preview.
|
|
57
|
+
|
|
46
58
|
## Loop
|
|
47
59
|
|
|
48
60
|
`mk scene new` → edit → `mk scene lint` → `mk validate` → `mk preview` → ask. Promotion to a catalog type is optional and only after demonstrated reuse; it is not a condition for shipping an authored scene.
|
|
@@ -54,7 +54,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
|
|
|
54
54
|
| `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
|
|
55
55
|
| `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 |
|
|
56
56
|
| `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 |
|
|
57
|
-
| `npx -y @anvpx/motion@0.1.
|
|
57
|
+
| `npx -y @anvpx/motion@0.1.48` 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 |
|
|
58
58
|
|
|
59
59
|
## Windows
|
|
60
60
|
|
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Themes
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Two families. They are not the same thing and neither list substitutes for the other.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Built in** — accepted by `meta.theme` with no file in the project, resolved from the installed
|
|
8
|
+
package's own token files (`@anvpx/motion-themes/dist/tokens/*.json`): `default` (light, paper
|
|
9
|
+
white), `dark`, `paper` (cream ground, ink text, one brick accent — a drawn/editorial look
|
|
10
|
+
instead of a lit one), `tech-dark`, `calm-dark`. They are never copied into `themes/` and are
|
|
11
|
+
not listed under `shared/themes/`.
|
|
12
|
+
|
|
13
|
+
**Vendored** — 18 DTCG files, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`,
|
|
14
|
+
`playful`, `pop`, `tech`, `warm`. `mk new` copies the one its blueprint uses into `themes/`.
|
|
15
|
+
To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired
|
|
16
|
+
stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is
|
|
17
|
+
no `mk theme list`; this is the list.
|
|
8
18
|
|
|
9
19
|
For luxury or editorial work, `editorial-*` (serif, ink) and `warm-*` (cream, terracotta) read quieter; `bold-*` (amber on violet) and `tech-*` read louder. Name the choice; the theme is part of the approval hash when vendored.
|
|
10
20
|
|
|
@@ -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.
|
|
9
|
+
`mk` = `npx -y @anvpx/motion@0.1.48`; 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
|
|
|
@@ -43,6 +43,18 @@ A CSS animation runs on the browser clock, not `seek(t)`.
|
|
|
43
43
|
|
|
44
44
|
`var(--mk-color-bg)`, `var(--mk-color-fg)`, `var(--mk-color-accent)`, `var(--mk-font-*)`. Theme tokens support consistent art direction; authored geometry and motion remain yours. Hard hexes need deliberate theme-switch review. Inspect actual safe margins and delivery crop in preview rather than assuming a decorative full-bleed element makes text safe.
|
|
45
45
|
|
|
46
|
+
## Framing
|
|
47
|
+
|
|
48
|
+
The scene root carries the film's safe padding — about **5.3 % of the width and 4.5 % of the
|
|
49
|
+
height** (102 px and 49 px at 1920x1080), so `position: absolute; inset: 0` on your own layer
|
|
50
|
+
stops short of the frame edge. Measured, not guessable. Two answers, both supported:
|
|
51
|
+
|
|
52
|
+
- **Design inside the box.** A plate with a margin is a composition, not a defect; most
|
|
53
|
+
botanical and editorial layouts want the margin.
|
|
54
|
+
- **Bleed on purpose.** Put the full-bleed art in an inner wrapper with a negative inset
|
|
55
|
+
(`position: absolute; inset: -4.5% -5.3%`) and keep type inside the box. The padding is a
|
|
56
|
+
percentage, so check 4k as well as 1080p in preview.
|
|
57
|
+
|
|
46
58
|
## Loop
|
|
47
59
|
|
|
48
60
|
`mk scene new` → edit → `mk scene lint` → `mk validate` → `mk preview` → ask. Promotion to a catalog type is optional and only after demonstrated reuse; it is not a condition for shipping an authored scene.
|
|
@@ -54,7 +54,7 @@ These are the failures that waste the most time. Each row is wrong -> right -> w
|
|
|
54
54
|
| `mk assets import logo.png --dir assets` | Add `--licence MIT --source-url <url>` | Every imported asset needs provenance |
|
|
55
55
|
| `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 |
|
|
56
56
|
| `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 |
|
|
57
|
-
| `npx -y @anvpx/motion@0.1.
|
|
57
|
+
| `npx -y @anvpx/motion@0.1.48` 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 |
|
|
58
58
|
|
|
59
59
|
## Windows
|
|
60
60
|
|
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Themes
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Two families. They are not the same thing and neither list substitutes for the other.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Built in** — accepted by `meta.theme` with no file in the project, resolved from the installed
|
|
8
|
+
package's own token files (`@anvpx/motion-themes/dist/tokens/*.json`): `default` (light, paper
|
|
9
|
+
white), `dark`, `paper` (cream ground, ink text, one brick accent — a drawn/editorial look
|
|
10
|
+
instead of a lit one), `tech-dark`, `calm-dark`. They are never copied into `themes/` and are
|
|
11
|
+
not listed under `shared/themes/`.
|
|
12
|
+
|
|
13
|
+
**Vendored** — 18 DTCG files, light and dark: `bold`, `calm`, `data`, `editorial`, `fjord`,
|
|
14
|
+
`playful`, `pop`, `tech`, `warm`. `mk new` copies the one its blueprint uses into `themes/`.
|
|
15
|
+
To use another, copy `<installed package>/shared/themes/<name>.json` (and its pair, for paired
|
|
16
|
+
stills) into `themes/` beside the storyboard, then set `meta.theme` with `mk patch`. There is
|
|
17
|
+
no `mk theme list`; this is the list.
|
|
8
18
|
|
|
9
19
|
For luxury or editorial work, `editorial-*` (serif, ink) and `warm-*` (cream, terracotta) read quieter; `bold-*` (amber on violet) and `tech-*` read louder. Name the choice; the theme is part of the approval hash when vendored.
|
|
10
20
|
|