@impractical-ai/motion 0.1.10 → 0.1.12
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 +64 -0
- package/assets/engine.d.ts +1015 -682
- package/assets/impractical/SKILL.md +12 -0
- package/dist/{api-4WE4LYPB.js → api-3IX5MBOY.js} +2 -2
- package/dist/{chunk-WB7FRXAG.js → chunk-4JSZNV7I.js} +2 -2
- package/dist/{chunk-CZANULCU.js → chunk-6GR7BQDV.js} +4 -1
- package/dist/{chunk-6FVZ6IWR.js → chunk-ACBYTWXK.js} +6 -4
- package/dist/{commands-YJFMKK2K.js → commands-K6AOA7CK.js} +139 -3
- package/dist/index.js +25 -5
- package/dist/{main-BEONOBG5.js → main-72BNF5J2.js} +2 -2
- package/dist/stdio-HFGQR34V.js +72653 -0
- package/package.json +5 -3
- package/dist/stdio-S7VGBKNS.js +0 -36204
package/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Impractical Motion CLI
|
|
2
2
|
|
|
3
|
+
<!-- ARRIVAL-DRIFT-STANDARD START -->
|
|
4
|
+
## Default motion: arrival and residual drift
|
|
5
|
+
|
|
6
|
+
Foreground motion defaults to an energetic arrival, strong deceleration, and small continuing travel through the reading hold. Compose a deterministic residual trajectory with the native entrance; do not stop and restart with a disconnected tween. “Settled” and “hold” mean readable and visually stable, with subtle nonzero travel unless an explicit freeze, exact alignment or reduced-motion mode requires stillness.
|
|
7
|
+
|
|
8
|
+
Use the Rox `ambientOffset(seconds, amount, phase)` pattern: native 960×540 product groups start around amount 3.2–4, text around 0.8–1. Keep a signed velocity floor with gentle curvature, not a pure sine bob. Move attached labels, controls, connectors and shadows together, avoid double drift, preserve 3D hierarchy, and verify reverse/retimed seeks and late-hold displacement.
|
|
9
|
+
|
|
10
|
+
The host owns the background environment. Animate foreground objects only; never move or retime the background to simulate object motion. Reusable foregrounds should be transparent. Keep one primary focus and room around it; purposeful object camera moves remain welcome, and a generic card is not the default visual container.
|
|
11
|
+
|
|
12
|
+
Full specification: [motion standard](../docs/motion-standard.md).
|
|
13
|
+
<!-- ARRIVAL-DRIFT-STANDARD END -->
|
|
14
|
+
|
|
3
15
|
Connect Claude Code, Codex, Cursor, or OpenCode to Impractical Motion through
|
|
4
16
|
its MCP server.
|
|
5
17
|
|
|
@@ -34,6 +46,58 @@ Setup writes the API credential to `~/.impractical/config.json` with mode `0600`
|
|
|
34
46
|
variables `IMPRACTICAL_API_KEY`, `IMPRACTICAL_SUPABASE_URL`, and `IMPRACTICAL_APP_URL` take
|
|
35
47
|
precedence over that file.
|
|
36
48
|
|
|
49
|
+
## Start from a shared video
|
|
50
|
+
|
|
51
|
+
When the sender includes an editable project, the public video page has an
|
|
52
|
+
**Edit this video** action. Its single command both connects your agent and
|
|
53
|
+
copies the project into your workspace:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
npx --yes @impractical-ai/motion@0.1.11 setup --agent --from https://impractical.ai/v/SHARE_TOKEN
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Use the real URL copied from the page. Sign in when prompted, then restart your
|
|
60
|
+
coding agent. The command prints your new project URL and a prompt containing
|
|
61
|
+
its project ID. Drafts stay in your Impractical workspace and are edited through
|
|
62
|
+
MCP; no source is executed or written into your current directory by this command.
|
|
63
|
+
|
|
64
|
+
Already connected, or retrying an interrupted import:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npx --yes @impractical-ai/motion@0.1.11 clone https://impractical.ai/v/SHARE_TOKEN
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Repeating the command returns the same copy for that share and workspace. The
|
|
71
|
+
copy is independent of the sender's project. An MP4-only share cannot be cloned.
|
|
72
|
+
|
|
73
|
+
## Choose who can edit a shared video
|
|
74
|
+
|
|
75
|
+
Each link is **view only by default**. Upload without `--project` to share just
|
|
76
|
+
the video and its public brand information; the page will hide **Edit this video**
|
|
77
|
+
and the API will reject project-copy requests for that link:
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npx --yes @impractical-ai/motion@0.1.11 share ./video.mp4 --title "For Acme" --references ./public-brand.json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
`--project` explicitly lets recipients copy **all editable drafts and assets**
|
|
84
|
+
from that project, so use a project you intend to share:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
npx --yes @impractical-ai/motion@0.1.11 share ./video.mp4 --title "For Acme" --references ./public-brand.json --project PROJECT_ID
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Enable cloning on an existing video share, or disable future clones:
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
npx --yes @impractical-ai/motion@0.1.11 share allow-editing SHARE_ID --project PROJECT_ID
|
|
94
|
+
npx --yes @impractical-ai/motion@0.1.11 share view-only SHARE_ID
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Detaching the source or revoking the video does not remove copies already owned
|
|
98
|
+
by recipients. The existing upload API accepts the same opt-in as `projectId`.
|
|
99
|
+
The shorter `share attach` and `share detach` aliases also remain supported.
|
|
100
|
+
|
|
37
101
|
## MCP server
|
|
38
102
|
|
|
39
103
|
The installer configures supported clients to run:
|