greenlight-motion 0.1.3 → 0.1.4

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
@@ -17,16 +17,16 @@ The agent writes the video as data: a `project.json` and its files. The engine t
17
17
  ## Quick start
18
18
 
19
19
  ```bash
20
- npx greenlight-motion@0.1.3 doctor # Node 18+, Chrome or Edge, WebGPU, H.264: what's missing and how to fix it
21
- npx greenlight-motion@0.1.3 init my-video # a working starter: index.html, project.json, assets/
20
+ npx greenlight-motion@0.1.4 doctor # Node 18+, Chrome or Edge, WebGPU, H.264: what's missing and how to fix it
21
+ npx greenlight-motion@0.1.4 init my-video # a working starter: index.html, project.json, assets/
22
22
  # edit my-video/project.json, put pictures / video / sound in my-video/assets/
23
23
  # or: write my-video/script.json (a scene script, skill/references/scene-script.md), then
24
- npx greenlight-motion@0.1.3 script my-video # script.json → project.json with the Video Editor's own presets
25
- npx greenlight-motion@0.1.3 check my-video # what to fix: missing files, template mistakes, blank frames, broken plugins
26
- npx greenlight-motion@0.1.3 stills my-video # frames + a labelled contact sheet, to look at
27
- npx greenlight-motion@0.1.3 render my-video --fps 60 --motion-blur
28
- npx greenlight-motion@0.1.3 pack my-video # everything in ONE html file
29
- npx greenlight-motion@0.1.3 pack my-video --glvideo # ONE .glvideo: double-clicked, it opens in GreenLight Dash
24
+ npx greenlight-motion@0.1.4 script my-video # script.json → project.json with the Video Editor's own presets
25
+ npx greenlight-motion@0.1.4 check my-video # what to fix: missing files, template mistakes, blank frames, broken plugins
26
+ npx greenlight-motion@0.1.4 stills my-video # frames + a labelled contact sheet, to look at
27
+ npx greenlight-motion@0.1.4 render my-video --fps 60 --motion-blur
28
+ npx greenlight-motion@0.1.4 pack my-video # everything in ONE html file
29
+ npx greenlight-motion@0.1.4 pack my-video --glvideo # ONE .glvideo: double-clicked, it opens in GreenLight Dash
30
30
  ```
31
31
 
32
32
  Also: `trace` (every animated layer's values frame by frame, plus the layer's moments), `set key=value`
@@ -72,7 +72,7 @@ The engine is one classic script, so it runs from a double-clicked file, a CDN o
72
72
 
73
73
  ```html
74
74
  <div id="app"></div>
75
- <script src="https://cdn.jsdelivr.net/npm/greenlight-motion@0.1.3/dist/greenlight-motion.js"></script>
75
+ <script src="https://cdn.jsdelivr.net/npm/greenlight-motion@0.1.4/dist/greenlight-motion.js"></script>
76
76
  <script>
77
77
  GreenLightMotion.mountStudio(document.getElementById('app'), {
78
78
  project: { /* project.json */ },
@@ -84,8 +84,11 @@ The engine is one classic script, so it runs from a double-clicked file, a CDN o
84
84
  `mountStudio` is the page every GreenLight surface shows (a project folder's page, a chat's GreenLight Motion page, a
85
85
  shared link, a review card on a board): the preview with Edit · Notes · Highlight, the inspector, the layers and Render.
86
86
  Its review (notes with drawings, highlights, changes) is text to copy for your agent; a host can send it elsewhere
87
- (`config.save`). `GreenLightMotion.mountPage(el, { project, assets, theme })` is the plain page under it, without the
88
- review interface.
87
+ (`config.save`). In a narrow frame — a chat's column, a card — pass `chat: { height, full, onExpand }`: up to 900 px
88
+ wide it becomes the mobile editor in a box `height` px tall (the whole frame with `full: true`), the timeline across the
89
+ width with its panels as sheets over it; wider, the full studio. `onExpand(full)` puts a Full screen button in the app
90
+ bar for a host that can go full screen; the returned studio's `chat.set({ height, full })` follows the host.
91
+ `GreenLightMotion.mountPage(el, { project, assets, theme })` is the plain page under it, without the review interface.
89
92
 
90
93
  Without the page UI (in the browser, through a bundler or the ESM build; Node runs only the CLI):
91
94
 
@@ -325,6 +325,8 @@
325
325
  "frontend/src/motionEngine/soundCues.js",
326
326
  "frontend/src/motionEngine/soundLibrary.js",
327
327
  "frontend/src/motionEngine/stubs/motionTemplatesRegistry.js",
328
+ "frontend/src/motionEngine/studio/chat.css",
329
+ "frontend/src/motionEngine/studio/chat.js",
328
330
  "frontend/src/motionEngine/studio/color.css",
329
331
  "frontend/src/motionEngine/studio/color.js",
330
332
  "frontend/src/motionEngine/studio/focus.css",