cueframe 0.11.3 → 0.12.0

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 (24) hide show
  1. package/README.md +36 -30
  2. package/dist/analyze-OBHAAM3S.js +2 -0
  3. package/dist/{chunk-OAJBHFAJ.js → chunk-JBQC3HBB.js} +9 -9
  4. package/dist/cueframe.js +65 -65
  5. package/dist/skills/composing-video/SKILL.md +2 -0
  6. package/dist/skills/composing-video/references/tool-map.md +14 -0
  7. package/dist/skills/cueframe-brand-demo/SKILL.md +1 -1
  8. package/dist/skills/cueframe-cli/SKILL.md +44 -44
  9. package/dist/skills/cueframe-component-authoring/SKILL.md +4 -2
  10. package/dist/skills/cueframe-component-authoring/references/native-component-workflows.md +29 -12
  11. package/dist/skills/cueframe-component-authoring/references/optical-pill-study.md +38 -0
  12. package/dist/skills/cueframe-component-authoring/references/optical-pill-study.scene.json +212 -0
  13. package/dist/skills/cueframe-component-authoring/references/parented-device-card.json +1 -1
  14. package/dist/skills/cueframe-component-authoring/references/parented-motion.md +6 -0
  15. package/dist/skills/cueframe-component-authoring/references/worked-examples.md +56 -0
  16. package/dist/skills/cueframe-compose-loop/SKILL.md +6 -2
  17. package/dist/skills/cueframe-connect/SKILL.md +1 -1
  18. package/dist/skills/cueframe-connect/references/tools.md +14 -4
  19. package/dist/skills/cueframe-product-video/SKILL.md +7 -7
  20. package/dist/skills/cueframe-reference-video/SKILL.md +3 -1
  21. package/dist/skills/cueframe-reference-video/references/measurement-and-comparison.md +6 -0
  22. package/dist/skills/cueframe-scene-shot/SKILL.md +34 -6
  23. package/package.json +3 -3
  24. package/dist/analyze-C3MSCON6.js +0 -2
@@ -31,6 +31,8 @@ Choose an early preview that resolves the largest uncertainty: the difficult han
31
31
 
32
32
  Use meaningful editable inputs for likely revisions: copy, palette, subject identity, action times, pose and hold duration. Keep object relationships together so a change to the camera or device also moves its mounted contents. Current source pins, media bindings and timing contracts remain authoritative.
33
33
 
34
+ When layering graphics with media, use the canonical [visual track order](references/tool-map.md#visual-track-order).
35
+
34
36
  ## Shared authoring over Convex
35
37
 
36
38
  Work directly for a small edit. Native peers are useful when independent authorship, specialized judgment or parallel investigation can improve the film. Let the task determine the division. All authors work on the same saved project through existing authenticated tools; their conversation is not a second composition store.
@@ -2,6 +2,20 @@
2
2
 
3
3
  Defaults, examples and detail for this topic. The [skill](../SKILL.md) and the [project and capability policy](project-policy.md) take precedence where they differ, and the current tool schemas are authoritative.
4
4
 
5
+ ## Visual track order
6
+
7
+ `composition.tracks` is ordered front to back: the first visual track is topmost, regardless of whether it holds video, images or overlays. An opaque full-frame picture on an earlier track covers cards on later tracks; a card's internal CSS `z-index` cannot move it above another track. For titles over footage over a backdrop, use this order (an ordering excerpt; add the actual clips to `contents`):
8
+
9
+ ```json
10
+ {
11
+ "tracks": [
12
+ { "id": "titles", "kind": "overlay", "contents": [] },
13
+ { "id": "footage", "kind": "video", "contents": [] },
14
+ { "id": "backdrop", "kind": "image", "contents": [] }
15
+ ]
16
+ }
17
+ ```
18
+
5
19
  ## Map craft to CueFrame tools (never invent a tool, primitive, or param)
6
20
 
7
21
  | Craft goal | Do this in CueFrame |
@@ -255,4 +255,4 @@ frames) before declaring done.
255
255
  which is the engine's job now.
256
256
  - This recipe lives in a skill on purpose: the engine stays use-case-free; the
257
257
  product opinions (what to extract, which overlays, how to brand) live here and
258
- ship via `npx -y cueframe@0.11 install`.
258
+ ship via `npx -y cueframe@0.12 install`.
@@ -25,11 +25,11 @@ both MCP and this CLI exist so you do not have to.
25
25
 
26
26
  ## Overview
27
27
 
28
- The `cueframe` CLI drives the CueFrame platform from the terminal. Optimized for agents — every command supports `--json` (NDJSON event stream) and the binary self-describes via `npx -y cueframe@0.11 describe --json`.
28
+ The `cueframe` CLI drives the CueFrame platform from the terminal. Optimized for agents — every command supports `--json` (NDJSON event stream) and the binary self-describes via `npx -y cueframe@0.12 describe --json`.
29
29
 
30
- **Run it as `npx -y cueframe@0.11 …` — every command in this skill is written that way, and
30
+ **Run it as `npx -y cueframe@0.12 …` — every command in this skill is written that way, and
31
31
  that form is executable verbatim.** There is no `cueframe` on your PATH unless you put it
32
- there: `npx -y cueframe@0.11 install` wires the MCP server and drops these skills, but npx
32
+ there: `npx -y cueframe@0.12 install` wires the MCP server and drops these skills, but npx
33
33
  unpacks to an ephemeral cache, so it installs no binary. `npx` re-resolves the current
34
34
  version on each call (~0.5s warm, ~5s cold), which also means these commands never go
35
35
  stale. If you are running many in a row and want to skip that, `npm i -g cueframe` once
@@ -40,9 +40,9 @@ the documented path.
40
40
  **The framework is three verbs:** `upload` (register media) → `composition put` (author the timeline) → `render` (→ MP4). The `Composition` is the contract — render takes the saved composition, nothing else. Everything domain-specific (AI clip suggestions, FCPXML/Premiere export) is a **use-case on-ramp** layered on top, not part of the core.
41
41
 
42
42
  **Core principle — discover, don't guess.** Never author a composition from the
43
- examples below alone. The live contract is `npx -y cueframe@0.11 schema composition` (prints
43
+ examples below alone. The live contract is `npx -y cueframe@0.12 schema composition` (prints
44
44
  the real wire schema the server enforces); confirm any draft with
45
- `npx -y cueframe@0.11 composition validate -b @file.json` BEFORE you render. Validation is
45
+ `npx -y cueframe@0.12 composition validate -b @file.json` BEFORE you render. Validation is
46
46
  free and instant; a render is neither. The examples here are orientation — the
47
47
  schema is the source of truth.
48
48
 
@@ -62,7 +62,7 @@ delivery, not checking each edit. CLI validation does not replace visual evidenc
62
62
  To compare a certified reference frame with an existing saved preview, use `compare`:
63
63
 
64
64
  ```bash
65
- npx -y cueframe@0.11 compare <projectId> --reference-media <mediaId> --reference-representation <identity> --reference-frame 117 --candidate-job <jobId> --candidate-artifact <artifactId> --out ./comparison --json
65
+ npx -y cueframe@0.12 compare <projectId> --reference-media <mediaId> --reference-representation <identity> --reference-frame 117 --candidate-job <jobId> --candidate-artifact <artifactId> --out ./comparison --json
66
66
  ```
67
67
 
68
68
  The command calls the shared comparison operation; it does not rerender the composition. `--views overlay,difference` selects diagnostics and `--crop x,y,width,height` uses one common-coordinate crop. NDJSON contains source identities and image receipts, never base64 payloads. `--out` saves verified PNGs; without it, image receipts explicitly say `metadata_only`. Inspect those images and relevant motion before judging the film.
@@ -72,24 +72,24 @@ The command calls the shared comparison operation; it does not rerender the comp
72
72
  # Commands run against production; auth is stored in ~/.cueframe/auth.json.
73
73
 
74
74
  # 1. Register media (one or many — mixed video / image / audio).
75
- npx -y cueframe@0.11 upload "/path/to/source.mp4" --json # → mediaItemId (process_complete)
75
+ npx -y cueframe@0.12 upload "/path/to/source.mp4" --json # → mediaItemId (process_complete)
76
76
 
77
77
  # 2. Create a project (sets aspect/format).
78
- npx -y cueframe@0.11 project create -n "promo" -a 9:16 --json # → projectId
78
+ npx -y cueframe@0.12 project create -n "promo" -a 9:16 --json # → projectId
79
79
 
80
80
  # 3. Author the composition: tracks of clips (per-clip reframe/trim), optional
81
81
  # captions (captions.segments), brandKitId. The composition is the SSOT.
82
82
  # Discover the live schema, then validate the draft BEFORE saving/rendering:
83
- npx -y cueframe@0.11 schema composition # → live wire schema
84
- npx -y cueframe@0.11 composition validate -b @composition.json # → ✓ valid | per-field errors (no render)
85
- npx -y cueframe@0.11 composition get <projectId> --json # → etag (not found = no composition yet)
86
- npx -y cueframe@0.11 composition put <projectId> -b @composition.json --if-match <etag>
83
+ npx -y cueframe@0.12 schema composition # → live wire schema
84
+ npx -y cueframe@0.12 composition validate -b @composition.json # → ✓ valid | per-field errors (no render)
85
+ npx -y cueframe@0.12 composition get <projectId> --json # → etag (not found = no composition yet)
86
+ npx -y cueframe@0.12 composition put <projectId> -b @composition.json --if-match <etag>
87
87
  # --if-match is required: a save made since your `get` fails with 409 stale_etag
88
88
  # instead of being overwritten. Re-`get`, re-apply your edit, retry. Use --create
89
89
  # only for the first composition of a project (refused 409 if one exists).
90
90
 
91
91
  # 4. Render the saved composition to MP4. SSE-watches + downloads when done.
92
- npx -y cueframe@0.11 render <projectId> -o ./out.mp4 --json
92
+ npx -y cueframe@0.12 render <projectId> -o ./out.mp4 --json
93
93
  # → render_queued → render_progress* → render_complete
94
94
  #
95
95
  # `render` takes ONLY a projectId and renders the SAVED composition (tracks +
@@ -104,14 +104,14 @@ npx -y cueframe@0.11 render <projectId> -o ./out.mp4 --json
104
104
  # a hand-authored composition; if absent, the clip is rendered without captions.
105
105
 
106
106
  # Reattach to an in-flight render later (e.g. after disconnect):
107
- npx -y cueframe@0.11 render watch <renderId> -p <projectId> -o ./out.mp4 --json
107
+ npx -y cueframe@0.12 render watch <renderId> -p <projectId> -o ./out.mp4 --json
108
108
  ```
109
109
 
110
110
  ## Anatomy of a composition.json
111
111
 
112
112
  This section orients you to the shape; the authoritative contract is
113
- `npx -y cueframe@0.11 schema composition` (the live wire schema) — run it when a field is
114
- unclear, and `npx -y cueframe@0.11 composition validate -b @file.json` to check a draft.
113
+ `npx -y cueframe@0.12 schema composition` (the live wire schema) — run it when a field is
114
+ unclear, and `npx -y cueframe@0.12 composition validate -b @file.json` to check a draft.
115
115
 
116
116
  `composition put` takes the **bare** `Composition` object (no wrapper; the CLI PUTs
117
117
  the `@file` verbatim with your `--if-match` ETag). Minimal valid shape:
@@ -178,18 +178,18 @@ the composition yourself (above).
178
178
 
179
179
  ```bash
180
180
  # 1. Upload + chain the AI clip pass.
181
- npx -y cueframe@0.11 upload "/path/to/source.mp4" --analyze --json # mediaItemId + suggestions
182
- # (or run it explicitly: npx -y cueframe@0.11 analyze <mediaItemId> --wait --json)
181
+ npx -y cueframe@0.12 upload "/path/to/source.mp4" --analyze --json # mediaItemId + suggestions
182
+ # (or run it explicitly: npx -y cueframe@0.12 analyze <mediaItemId> --wait --json)
183
183
 
184
184
  # 2. List clip suggestions (publicId sug_…, title, startMs/endMs, score).
185
- npx -y cueframe@0.11 clips <mediaItemId> --json
185
+ npx -y cueframe@0.12 clips <mediaItemId> --json
186
186
 
187
187
  # 3. Create a project AND author its composition from the chosen suggestion.
188
- npx -y cueframe@0.11 project create -n "paul-klein-shorts" -a 9:16 --from-suggestion <sug_…> --json
189
- # (or, on an existing project: npx -y cueframe@0.11 composition from-suggestion <projectId> -s <sug_…>)
188
+ npx -y cueframe@0.12 project create -n "paul-klein-shorts" -a 9:16 --from-suggestion <sug_…> --json
189
+ # (or, on an existing project: npx -y cueframe@0.12 composition from-suggestion <projectId> -s <sug_…>)
190
190
 
191
191
  # 4. Render — same framework verb as above.
192
- npx -y cueframe@0.11 render <projectId> -o ./out.mp4 --json
192
+ npx -y cueframe@0.12 render <projectId> -o ./out.mp4 --json
193
193
  ```
194
194
 
195
195
  Both flows converge on `composition put` → `render`; the on-ramp just authors the
@@ -208,10 +208,10 @@ projection `component-library`).
208
208
 
209
209
  ```bash
210
210
  # 1. Scaffold a workspace (writes cueframe.json + cueframe/components/). Idempotent.
211
- npx -y cueframe@0.11 init --json
211
+ npx -y cueframe@0.12 init --json
212
212
 
213
213
  # 2a. Scaffold a component in cueframe/components/<id>/ as owned, editable source.
214
- npx -y cueframe@0.11 new component my-badge --category ui-blocks --json
214
+ npx -y cueframe@0.12 new component my-badge --category ui-blocks --json
215
215
 
216
216
  # The scaffold is a native (version 4) source: template.html + definition.json, with its
217
217
  # manifest in cueframe.json.
@@ -220,38 +220,38 @@ npx -y cueframe@0.11 new component my-badge --category ui-blocks --json
220
220
  # __cfScene.mount(...)) and definition.json (inputs, defaults, timing, capabilities).
221
221
 
222
222
  # 4. Publish to CueFrame so it can render (the server admits the source or names the rule it breaks).
223
- npx -y cueframe@0.11 push my-badge --json # one component
224
- npx -y cueframe@0.11 sync --json # every component in the workspace
223
+ npx -y cueframe@0.12 push my-badge --json # one component
224
+ npx -y cueframe@0.12 sync --json # every component in the workspace
225
225
 
226
226
  # 5. Reference the component id in your composition as a {kind:'component', componentId, props}
227
227
  # clip, then render with the same verb. Preview a single component first via the MCP
228
228
  # preview_component loop.
229
- npx -y cueframe@0.11 render <projectId> -o ./out.mp4 --json
229
+ npx -y cueframe@0.12 render <projectId> -o ./out.mp4 --json
230
230
  ```
231
231
 
232
232
  ## Quick reference
233
233
 
234
234
  | Need to… | Command |
235
235
  |---|---|
236
- | See every command + flags | `npx -y cueframe@0.11 describe --json` |
237
- | Install/refresh managed skills | `npx -y cueframe@0.11 install` (shared `~/.agents/skills` and Claude `~/.claude/skills`; locally changed or untracked packages are preserved and reported) |
238
- | List projects | `npx -y cueframe@0.11 list -n 50` |
239
- | List your media | `npx -y cueframe@0.11 clips` (no mediaId arg) |
240
- | Discover the live composition schema | `npx -y cueframe@0.11 schema composition` |
241
- | Validate a draft (no save, no render) | `npx -y cueframe@0.11 composition validate -b @plan.json` |
242
- | Read composition + ETag | `npx -y cueframe@0.11 composition get <projectId> --json` |
243
- | Write composition | `npx -y cueframe@0.11 composition put <projectId> -b @plan.json --if-match <etag>` (`--create` for the first composition) |
244
- | Export to Final Cut | `npx -y cueframe@0.11 export fcpxml <projectId> -s <sug> --wait -o cut.zip` |
245
- | Export to Premiere | `npx -y cueframe@0.11 export premiere <projectId> -s <sug> --wait -o cut.zip` |
246
- | Anything not wrapped | `npx -y cueframe@0.11 api GET /v1/... -i` (escape hatch, like `gh api`) |
247
- | Validate a composition without mutating | `npx -y cueframe@0.11 composition validate -b @plan.json` |
236
+ | See every command + flags | `npx -y cueframe@0.12 describe --json` |
237
+ | Install/refresh managed skills | `npx -y cueframe@0.12 install` (shared `~/.agents/skills` and Claude `~/.claude/skills`; locally changed or untracked packages are preserved and reported) |
238
+ | List projects | `npx -y cueframe@0.12 list -n 50` |
239
+ | List your media | `npx -y cueframe@0.12 clips` (no mediaId arg) |
240
+ | Discover the live composition schema | `npx -y cueframe@0.12 schema composition` |
241
+ | Validate a draft (no save, no render) | `npx -y cueframe@0.12 composition validate -b @plan.json` |
242
+ | Read composition + ETag | `npx -y cueframe@0.12 composition get <projectId> --json` |
243
+ | Write composition | `npx -y cueframe@0.12 composition put <projectId> -b @plan.json --if-match <etag>` (`--create` for the first composition) |
244
+ | Export to Final Cut | `npx -y cueframe@0.12 export fcpxml <projectId> -s <sug> --wait -o cut.zip` |
245
+ | Export to Premiere | `npx -y cueframe@0.12 export premiere <projectId> -s <sug> --wait -o cut.zip` |
246
+ | Anything not wrapped | `npx -y cueframe@0.12 api GET /v1/... -i` (escape hatch, like `gh api`) |
247
+ | Validate a composition without mutating | `npx -y cueframe@0.12 composition validate -b @plan.json` |
248
248
 
249
249
  ## Auth
250
250
 
251
251
  Commands run against production. Authenticate once:
252
252
 
253
- - `npx -y cueframe@0.11 login` — OAuth device flow (laptops).
254
- - `npx -y cueframe@0.11 auth <cf_live_… key>` — save a static API key (CI / headless).
253
+ - `npx -y cueframe@0.12 login` — OAuth device flow (laptops).
254
+ - `npx -y cueframe@0.12 auth <cf_live_… key>` — save a static API key (CI / headless).
255
255
 
256
256
  Creds are stored in `~/.cueframe/auth.json`; the key can also come from the `CUEFRAME_API_KEY` env var.
257
257
 
@@ -269,11 +269,11 @@ Errors come as `{"event":"error", "phase":"<step>", "message":"...", "code":"...
269
269
 
270
270
  | Mistake | Reality |
271
271
  |---|---|
272
- | Reaching for `curl …/v1/...` because the CLI didn't have a command | Use `npx -y cueframe@0.11 api METHOD /v1/...` — same auth, same JSON pipeline. |
273
- | Polling for render completion with a sleep loop | `npx -y cueframe@0.11 render` already SSE-watches and exits when done. Use `render watch <id>` to reattach. |
272
+ | Reaching for `curl …/v1/...` because the CLI didn't have a command | Use `npx -y cueframe@0.12 api METHOD /v1/...` — same auth, same JSON pipeline. |
273
+ | Polling for render completion with a sleep loop | `npx -y cueframe@0.12 render` already SSE-watches and exits when done. Use `render watch <id>` to reattach. |
274
274
  | Skipping `--json` and trying to parse human output | Human output is for humans. Agents always use `--json`. |
275
275
  | Hand-editing the composition without an ETag | `composition put` refuses without `--if-match <etag>` from the `composition get` your edit started from. Don't fetch a fresh ETag right before the put: that overwrites anyone who saved in between. `--create` is only for a project's first composition; there is no unconditional overwrite. |
276
- | Calling `npx -y cueframe@0.11 render <projectId> <suggestionId>` (old two-positional shape) | `render` takes ONLY a projectId; commander rejects the extra arg. It renders the SAVED composition — author it first via `composition put` (hand-author) or `project create --from-suggestion <sug>` (clip-finder on-ramp). |
276
+ | Calling `npx -y cueframe@0.12 render <projectId> <suggestionId>` (old two-positional shape) | `render` takes ONLY a projectId; commander rejects the extra arg. It renders the SAVED composition — author it first via `composition put` (hand-author) or `project create --from-suggestion <sug>` (clip-finder on-ramp). |
277
277
  | Assuming `render` needs a clip suggestion / that captions only come from a suggestion | No — `render` renders the saved composition directly; a suggestion is optional. Captions come from `composition.captions` (author them in the `put` JSON). The clip-suggestion on-ramp just fills those captions for you by slicing the transcript at author time. |
278
278
 
279
279
  ## When this skill applies (routing)
@@ -12,9 +12,11 @@ Use the [project and capability policy](../composing-video/references/project-po
12
12
  - **HTML card:** authored typography, UI, diagrams and 2D motion with deterministic CSS. It can depict perspective, but does not provide the scene renderer's physical camera, lighting or occlusion.
13
13
  - **Whole-clip keyframes:** position, scale, rotation and opacity when the entire card or layer moves together. Read the current `clip.setKeyframes` schema; times are relative to the clip.
14
14
  - **Scene shot:** supported groups, devices, pages, world text, surfaces and cameras. Use `cueframe-scene-shot` and its current schema; author JSON, not the generated wrapper.
15
- - **Native component:** reusable version-4 media-tile scenes with declared inputs, assets and deterministic rendering. Discover a near-fit definition before writing one. Read the [native source contract](references/native-source-contract.md), then the applicable [MCP, CLI or desktop workflow](references/native-component-workflows.md). This is not an arbitrary browser application runtime.
15
+ - **Native component:** reusable version-4 media-tile scenes with declared inputs, assets and deterministic rendering. Discover a near-fit example before writing one; definitions, presets and recipes carry different editable information. Read the [native source contract](references/native-source-contract.md), then the applicable [MCP, CLI or desktop workflow](references/native-component-workflows.md). This is not an arbitrary browser application runtime.
16
16
 
17
- A definition, preset and recipe are different catalog items. Preserve the selected item's exact scoped identity. A builtin source read needs `componentId`, `sourceVersionId` and `builtinCollection`; unavailable pins do not authorize a different source. Keep the complete template, manifest and definition when forking.
17
+ Search the builtin component library without restricting it to definitions. Use concrete mechanism terms (for example card, shuffle or carousel); the current query matches literal substrings, not semantic synonyms. Inspect the selected poster and motion, and read its exact source/document before deciding fit. An unfamiliar mechanism needs source and evidence inspection; if none fits the inputs, motion or runtime, state that limitation and choose an admitted representation deliberately. Org library filtering can be refused; do not describe an unfiltered page as a matching search.
18
+
19
+ A definition, preset and recipe are different catalog items. Preserve the selected item's exact scoped identity. A builtin source read needs `componentId`, `sourceVersionId` and `builtinCollection`; unavailable pins do not authorize a different source. Keep the complete template, manifest and definition when forking. On the hosted editor/API, resolve builtin presets and recipes with `resolve_builtin_component` using the selected collection, ID and revision; source-only reads do not recover selected preset values. Insert with `apply_template` using its exact `documentSha256`, explicit start time, unique ID prefix and your own media bindings. A URL is not received pixels: check delivery status and inspect attached poster bytes; open the movie through the current host’s supported viewer or record motion as unobserved.
18
20
 
19
21
  ## Cards: geometry, clock and controls
20
22
 
@@ -6,13 +6,30 @@ Choose the path exposed by the current host. Request schemas and the Component C
6
6
 
7
7
  Use the live tool schema for request envelopes; hosted write fields are normally under `body`. When `get_composition` advertises `clipIds` and `response`, use selected clip IDs with `response:"full"` to retrieve the complete sources you need without pulling every large HTML body. Treat a projection as a partial read, never a replacement composition. Compact apply receipts retain the saved revision and warnings; reread relevant state before a dependent edit. Desktop surfaces may expose different fields.
8
8
 
9
- 1. **Discover and read a built-in:** call `list_catalog` with
10
- `projection: "component-library", origin: "builtin", libraryKind: "definition"`.
11
- Select the intended card and preserve its complete scoped source reference. Call
12
- `get_component_source` with that reference's `componentId`, `sourceVersionId`,
13
- `builtinCollection` (its scope collection).
14
- ID-only builtin reads are unsupported. An unavailable exact pin is a refusal; never
15
- retry another scope or an unpinned head.
9
+ 1. **Discover the right kind:** call `list_catalog` with
10
+ `projection:"component-library", origin:"builtin"` and an optional concrete `q` such as
11
+ `card`, `shuffle` or `carousel`. Do not start with `libraryKind:"definition"`: a saved
12
+ example may be a preset or recipe. Matching uses literal substrings. Org `origin:"library"`
13
+ currently refuses filters; page that serving home honestly instead of implying a search ran.
14
+ Preserve the selected card's exact identity, presentation and pins.
15
+ - **Preset or recipe (hosted editor/API):** call `resolve_builtin_component` with its exact `collection`, `id`
16
+ and `revision`. Read the returned complete document, preset values and member sources.
17
+ A source-only read cannot reconstruct those selected values. Check `previewDelivery`:
18
+ only `delivered` means poster bytes reached this call; unavailable or hash mismatch is
19
+ explicit missing evidence. Open `previewMedia.videoUrl` through a supported media viewer;
20
+ a URL alone is not observed motion. If useful, insert with hosted `apply_template`:
21
+ `template:<selected id>, body:{projectId,documentSha256:<resolved digest>,
22
+ insert:{startTime:<chosen seconds>,idPrefix:<unique>},media:<your bindings>,values:<explicit edits>}`.
23
+ Read required media/parameter declarations, preserve nonempty-project contents, then inspect
24
+ the saved insertion. The desktop bridge does not expose this resolver; use its advertised
25
+ package/template path and current schema. Report missing exact document access rather
26
+ than guessing selected values or invoking an unavailable tool.
27
+ - **Definition:** call `get_component_source` with its exact `componentId`,
28
+ `sourceVersionId` and `builtinCollection`. ID-only builtin reads are unsupported.
29
+ An unavailable exact pin never authorizes a head or another scope. Inspect unfamiliar
30
+ construction and required capabilities before promising an adaptation. If no maintained
31
+ mechanism fits the inputs/layout/material or runtime, explain the concrete no-fit limitation.
32
+ The source fork and custom-authoring steps below apply when an editable definition is needed.
16
33
  2. **Author/own it:** edit the complete native `sourceSnapshot`; use your chosen owned ID
17
34
  consistently in its `componentId` and the request. Send it as `body.source` to
18
35
  `create_component`, with required metadata. Preserve its definition, capability
@@ -46,14 +63,14 @@ Source lives in `cueframe/components/<id>/` (the `cueframe.json` workspace); edi
46
63
  template locally, push to render.
47
64
 
48
65
  ```bash
49
- npx -y cueframe@0.11 init --json # scaffold cueframe.json + cueframe/components/
50
- npx -y cueframe@0.11 new component my-badge --category ui-blocks --json # scaffold a component in the workspace
66
+ npx -y cueframe@0.12 init --json # scaffold cueframe.json + cueframe/components/
67
+ npx -y cueframe@0.12 new component my-badge --category ui-blocks --json # scaffold a component in the workspace
51
68
  # New scaffolds contain template.html and definition.json (native source, version 4).
52
69
  # …edit cueframe/components/<id>/template.html and definition.json in your editor…
53
- npx -y cueframe@0.11 push my-badge --json # send the native source; the server admits it
54
- # or: npx -y cueframe@0.11 sync --json # push every component in the workspace
70
+ npx -y cueframe@0.12 push my-badge --json # send the native source; the server admits it
71
+ # or: npx -y cueframe@0.12 sync --json # push every component in the workspace
55
72
  # reference the component id in your composition, then render:
56
- npx -y cueframe@0.11 render <projectId> -o ./out.mp4 --json
73
+ npx -y cueframe@0.12 render <projectId> -o ./out.mp4 --json
57
74
  ```
58
75
 
59
76
  The CLI writes `template.html` and `definition.json` (input schema, defaults, timing and
@@ -0,0 +1,38 @@
1
+ # Optical pill: experimental canonical scene study
2
+
3
+ Use [the complete scene](optical-pill-study.scene.json) as a SceneShotSpecV2 document through the supported `scene.add` / `scene.update` operations in `apply_composition`. Read the installed scene contract first and dry-run the complete operation against the current project revision. This is a two-second, 1280×720, 30 fps engineering study, not a native v4 component or a certified recreation of a reference film.
4
+
5
+ The scene combines three existing owners: an opaque bounded shader mesh behind the subject, a physical rounded transmission slab, and canonical screen text. CueFrame owns preparation, shader admission, transmission sampling, font resolution and the clip-local clock. Do not replace these with a custom wrapper, SVG filter, browser clock or external texture. The field is six deterministic unrolled filaments; it has no samplers or external assets.
6
+
7
+ ## Bounded input controls
8
+
9
+ These are conservative study ranges, not additional API guarantees. Keep all values finite and validate every complete document. Change only the listed paths; preserve geometry, shader source, profile, ids and font facts.
10
+
11
+ | Control | Exact owner | Study range |
12
+ | --- | --- | --- |
13
+ | Field position | `field.shader.uniforms.fieldOffset.value` | Each coordinate −0.2 to 0.2 in UV space |
14
+ | Field color | `field.shader.uniforms.tint.value` | Three display-linear channels, each 0 to 1 |
15
+ | Filament spacing / variation | `spread.value` / `variation.value` under field uniforms | 0.008–0.035 / 0–0.02 |
16
+ | Deterministic distribution | `filamentSeed.value` | Integer 0–32; no random or wall-time input |
17
+ | Core / glow width | `coreWidth.value` / `falloff.value` | 0.001–0.008 / 0.02–0.08; never zero |
18
+ | Core / glow intensity | `coreIntensity.value` / `fieldIntensity.value` | 0–0.8 / 0–0.05 |
19
+ | Field clock | `clockRate.value` / `phase.value` | 0–2 / −3.141593 to 3.141593 |
20
+ | Pill position / orientation | `pill.transform.position` / `rotation` | X ±180, Y ±80, Z 0–60; each Euler angle ±0.3 radians |
21
+ | Pill optics | body material `roughness` / `ior` | 0.08–0.3 / 1.3–1.6; preserve transmission 1 and thickness 60 |
22
+ | Type | title run text / `fontSize` / `color` | One short line, size 24–40, canonical color; verify actual glyph bounds |
23
+
24
+ Field position and pill pose are independent. The physical slab samples the scene field through the existing transmission owner; there is no hidden pill-following uniform. Keep the pill fixed for the field-only comparison, then keep field uniforms fixed for the pill-only comparison. Do not describe either as demonstrated until received frames show it.
25
+
26
+ ## Two input records and clock checks
27
+
28
+ Input A is the packaged JSON. Input B changes fieldOffset to `[0.08,-0.04]`, tint to `[0.72,0.18,0.08]`, spread to `0.024`, variation to `0.012`, filamentSeed to `13`, phase to `0.4`, pill position to `[80,0,0]`, and title to `LIGHT / SHIFT`. Other fields stay exact. First test the field-only and pill-only changes independently, then the combined B input. Read back the saved canonical document, undo/redo the scoped change, reopen and compare the retained owners.
29
+
30
+ For each admitted input request clip-local frames 15, 45, then 15 again (0.5→1.5→0.5 seconds). The two frame-15 results must agree under the same sealed inputs; frame 45 must establish actual visible clock behavior rather than merely a different timestamp. Inspect the pill edge, transmitted field and title at final scale, plus continuous motion and the last valid frame 59. A successful direct shader probe alone is not the combined prepared scene or the normal product route.
31
+
32
+ ## Source, font and rights closure
33
+
34
+ The scene/shader are original Apache-2.0 study source under this repository license. There are no private images, imported models, HDR files, remote media or texture samplers. The photographic environment is the maintained generated recipe. Text requests Inter 400 normal: the maintained render-entry font is `inter-400.woff2`, 48,432 bytes, SHA-256 `c940764593d0fe5d596be327ca7558855e018039fb78509aa21921fd3644c3e4`. Its separate license is OFL-1.1, Inter Project Authors (2020); preserve the owning `public/fonts/FONT_LICENSES.md` notice with a portable delivery. A family name is not proof of resolved font bytes: retain the actual preparation/font witness and glyph result on the selected route.
35
+
36
+ ## Evidence boundary
37
+
38
+ The complete document passes the installed canonical parser and the existing production Node scene preparation owner seals the combined shader/slab/text plan. That local preparation is not a mounted GPU or normal-product route verdict. Exact runtime font resolution, normal-product A/B preview/export, received pixels, successor reuse and creative fidelity remain pending until recorded against an exact installed candidate. This source does not certify optical equivalence to a ring/phone reference. Keep the creative fidelity verdict experimental and post-freeze; do not infer it from parser admission, a generic transmission test or a guide read.
@@ -0,0 +1,212 @@
1
+ {
2
+ "version": 2,
3
+ "referenceSize": {
4
+ "width": 1280,
5
+ "height": 720
6
+ },
7
+ "environment": {
8
+ "kind": "photographic-studio-v1"
9
+ },
10
+ "backdrop": {
11
+ "kind": "solid",
12
+ "color": "#03040a"
13
+ },
14
+ "layers": [
15
+ {
16
+ "kind": "mesh",
17
+ "id": "field",
18
+ "transform": {
19
+ "position": [
20
+ 0,
21
+ 0,
22
+ -160
23
+ ],
24
+ "rotation": [
25
+ 0,
26
+ 0,
27
+ 0
28
+ ],
29
+ "scale": 1
30
+ },
31
+ "opacity": 1,
32
+ "geometry": {
33
+ "kind": "buffer",
34
+ "positions": [
35
+ -960,
36
+ -540,
37
+ 0,
38
+ 960,
39
+ -540,
40
+ 0,
41
+ 960,
42
+ 540,
43
+ 0,
44
+ -960,
45
+ 540,
46
+ 0
47
+ ],
48
+ "normals": [
49
+ 0,
50
+ 0,
51
+ 1,
52
+ 0,
53
+ 0,
54
+ 1,
55
+ 0,
56
+ 0,
57
+ 1,
58
+ 0,
59
+ 0,
60
+ 1
61
+ ],
62
+ "uvs": [
63
+ 0,
64
+ 0,
65
+ 1,
66
+ 0,
67
+ 1,
68
+ 1,
69
+ 0,
70
+ 1
71
+ ],
72
+ "indices": [
73
+ 0,
74
+ 1,
75
+ 2,
76
+ 0,
77
+ 2,
78
+ 3
79
+ ]
80
+ },
81
+ "shader": {
82
+ "profile": "stateless-fragment-display-linear-v1",
83
+ "source": "float strand(vec2 q, float index, float clock) {\n float jitter = sin(index * 12.9898 + filamentSeed * 0.73) * variation;\n float curve = 0.12 * sin(q.x * 6.283185 + clock) + (index - 2.5) * spread + jitter;\n float d = abs(q.y - curve);\n float core = exp(-d * d / (coreWidth * coreWidth));\n float fieldGlow = exp(-d * d / (falloff * falloff));\n return coreIntensity * core + fieldIntensity * fieldGlow;\n}\nvec3 field(vec2 uv, vec3 localPosition) {\n vec2 q = uv - vec2(0.5) - fieldOffset;\n float clock = cfTime * clockRate + phase;\n float bundle = strand(q, 0.0, clock) + strand(q, 1.0, clock) + strand(q, 2.0, clock) + strand(q, 3.0, clock) + strand(q, 4.0, clock) + strand(q, 5.0, clock);\n float envelope = exp(-q.x * q.x * 3.0);\n return vec3(0.002, 0.003, 0.008) + tint * bundle * envelope;\n}",
84
+ "uniforms": {
85
+ "fieldOffset": {
86
+ "type": "vec2",
87
+ "value": [
88
+ 0,
89
+ 0
90
+ ]
91
+ },
92
+ "tint": {
93
+ "type": "vec3",
94
+ "value": [
95
+ 0.12,
96
+ 0.4,
97
+ 0.95
98
+ ]
99
+ },
100
+ "spread": {
101
+ "type": "float",
102
+ "value": 0.018
103
+ },
104
+ "variation": {
105
+ "type": "float",
106
+ "value": 0.008
107
+ },
108
+ "filamentSeed": {
109
+ "type": "float",
110
+ "value": 7
111
+ },
112
+ "coreWidth": {
113
+ "type": "float",
114
+ "value": 0.0025
115
+ },
116
+ "coreIntensity": {
117
+ "type": "float",
118
+ "value": 0.52
119
+ },
120
+ "fieldIntensity": {
121
+ "type": "float",
122
+ "value": 0.025
123
+ },
124
+ "falloff": {
125
+ "type": "float",
126
+ "value": 0.045
127
+ },
128
+ "clockRate": {
129
+ "type": "float",
130
+ "value": 1
131
+ },
132
+ "phase": {
133
+ "type": "float",
134
+ "value": 0
135
+ }
136
+ },
137
+ "samplers": {}
138
+ }
139
+ },
140
+ {
141
+ "kind": "slab",
142
+ "id": "pill",
143
+ "transform": {
144
+ "position": [
145
+ 0,
146
+ 0,
147
+ 0
148
+ ],
149
+ "rotation": [
150
+ 0.08,
151
+ 0.18,
152
+ -0.08
153
+ ],
154
+ "scale": 1
155
+ },
156
+ "width": 420,
157
+ "height": 140,
158
+ "thickness": 60,
159
+ "cornerRadius": 70,
160
+ "edgeRadius": 20,
161
+ "materials": [
162
+ {
163
+ "role": "body",
164
+ "type": "physical",
165
+ "color": "#ffffff",
166
+ "roughness": 0.12,
167
+ "transmission": 1,
168
+ "thickness": 60,
169
+ "ior": 1.5
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "kind": "text",
175
+ "id": "title",
176
+ "space": "screen",
177
+ "x": 0,
178
+ "y": 250,
179
+ "lines": [
180
+ {
181
+ "runs": [
182
+ {
183
+ "text": "LIGHT / THROUGH"
184
+ }
185
+ ]
186
+ }
187
+ ],
188
+ "fontFamily": "Inter",
189
+ "fontWeight": 400,
190
+ "fontStyle": "normal",
191
+ "fontSize": 32,
192
+ "lineHeight": 1.2,
193
+ "letterSpacing": 2,
194
+ "align": "center",
195
+ "maxWidth": 900,
196
+ "color": "#dce8ff"
197
+ }
198
+ ],
199
+ "animation": [],
200
+ "post": {
201
+ "grain": 0,
202
+ "vignette": 0,
203
+ "focus": null,
204
+ "bloom": {
205
+ "profile": "display-linear-bloom-v1",
206
+ "strength": 0.22,
207
+ "threshold": 0.65,
208
+ "smoothing": 0.08,
209
+ "radius": 0.65
210
+ }
211
+ }
212
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "kind": "card",
3
- "html": "<style>\n.cf-mounted-demo{position:relative;width:100%;height:100%;overflow:hidden;background:#e9edf5;font-family:Arial,sans-serif;color:#162033;--settle:clamp(0,calc(var(--cf-t)/var(--cf-settleSec)),1);--pose:calc(1 - (1 - var(--settle))*(1 - var(--settle))*(1 - var(--settle)));--approach:clamp(0,calc((var(--cf-t) - var(--cf-contactSec) + var(--cf-approachSec))/var(--cf-approachSec)),1);--response:clamp(0,calc((var(--cf-t) - var(--cf-contactSec))/var(--cf-responseSec)),1)}\n.cf-mounted-demo .stage{position:absolute;left:50%;top:50%;width:380px;height:720px;transform:translate(-50%,-50%);perspective:1400px}\n.cf-mounted-demo .phone{position:absolute;inset:0;border:10px solid #172032;border-radius:52px;background:#172032;box-sizing:border-box;box-shadow:18px 30px 45px #15263a30;transform:translateY(calc((1 - var(--pose))*120px)) rotateY(calc((1 - var(--pose))*var(--cf-tiltDeg)*1deg)) rotateZ(calc((1 - var(--pose))*-5deg))}\n.cf-mounted-demo .screen{position:absolute;inset:0;border-radius:40px;overflow:hidden;background:#fbfcff}\n.cf-mounted-demo .top{position:absolute;left:28px;right:28px;top:38px;font-size:24px;font-weight:700}\n.cf-mounted-demo .card{position:absolute;left:28px;right:28px;top:110px;height:182px;border-radius:18px;background:var(--cf-accent);color:white;box-shadow:0 9px 18px #16203328}\n.cf-mounted-demo .card:before{content:\"NORTH\";position:absolute;left:22px;top:24px;font-size:21px;font-weight:700;letter-spacing:3px}\n.cf-mounted-demo .holder:after{content:var(--cf-holder)}\n.cf-mounted-demo .holder{position:absolute;left:22px;bottom:24px;font-size:18px;letter-spacing:2px}\n.cf-mounted-demo .label{position:absolute;top:330px;left:28px;font-size:20px}\n.cf-mounted-demo .control{position:absolute;left:100px;top:400px;width:160px;height:70px;border:2px solid #b5bfd1;border-radius:18px;box-sizing:border-box;background:#eef2f9;display:grid;place-items:center;font-size:22px;font-weight:700}\n.cf-mounted-demo .frozen{position:absolute;inset:0;border-radius:16px;background:var(--cf-accent);color:white;display:grid;place-items:center;opacity:var(--response)}\n.cf-mounted-demo .pointer{position:absolute;left:180px;top:435px;width:36px;height:48px;background:#162033;clip-path:polygon(0 0,100% 65%,58% 68%,43% 100%);filter:drop-shadow(1px 3px 2px #15263a99);transform:translate(calc((1 - var(--approach))*95px),calc((1 - var(--approach))*80px));transform-origin:0 0}\n.cf-mounted-demo .status{position:absolute;left:28px;right:28px;top:530px;font-size:20px;line-height:1.4;opacity:var(--response)}\n</style><div class=\"cf-mounted-demo\"><div class=\"stage\"><div class=\"phone\"><div class=\"screen\"><div class=\"top\">Your card</div><div class=\"card\"><div class=\"holder\"></div></div><div class=\"label\">Card controls</div><div class=\"control\">Freeze<div class=\"frozen\">Frozen</div></div><div class=\"pointer\"></div><div class=\"status\">Payments are paused.<br>Your card is still here.</div></div></div></div></div>",
3
+ "html": "<style>\n.cf-mounted-demo{position:relative;width:100%;height:100%;overflow:hidden;background:#e9edf5;font-family:Arial,sans-serif;color:#162033;--settle:clamp(0,calc(var(--cf-t)/var(--cf-settleSec)),1);--pose:calc(1 - (1 - var(--settle))*(1 - var(--settle))*(1 - var(--settle)));--approach:clamp(0,calc((var(--cf-t) - var(--cf-contactSec) + var(--cf-approachSec))/var(--cf-approachSec)),1);--response:clamp(0,calc((var(--cf-t) - var(--cf-contactSec))/var(--cf-responseSec)),1)}\n.cf-mounted-demo .stage{position:absolute;left:50%;top:50%;width:380px;height:720px;transform:translate(-50%,-50%);perspective:1400px}\n.cf-mounted-demo .phone{position:absolute;inset:0;border:10px solid #172032;border-radius:52px;background:#172032;box-sizing:border-box;box-shadow:18px 30px 45px #15263a30;transform:translateY(calc((1 - var(--pose))*120px)) rotateY(calc((1 - var(--pose))*var(--cf-tiltDeg)*1deg)) rotateZ(calc((1 - var(--pose))*-5deg))}\n.cf-mounted-demo .screen{position:absolute;inset:0;border-radius:40px;overflow:hidden;background:#fbfcff}\n.cf-mounted-demo .top{position:absolute;left:28px;right:28px;top:38px;font-size:24px;font-weight:700}\n.cf-mounted-demo .card{position:absolute;left:28px;right:28px;top:110px;height:182px;border-radius:18px;background:var(--cf-accent);color:white;box-shadow:0 9px 18px #16203328}\n.cf-mounted-demo .card:before{content:\"NORTH\";position:absolute;left:22px;top:24px;font-size:21px;font-weight:700;letter-spacing:3px}\n.cf-mounted-demo .holder:after{content:var(--cf-holder)}\n.cf-mounted-demo .holder{position:absolute;left:22px;right:22px;bottom:24px;font-size:18px;line-height:1.2;letter-spacing:1px;overflow-wrap:anywhere}\n.cf-mounted-demo .label{position:absolute;top:330px;left:28px;font-size:20px}\n.cf-mounted-demo .control{position:absolute;left:100px;top:400px;width:160px;height:70px;border:2px solid #b5bfd1;border-radius:18px;box-sizing:border-box;background:#eef2f9;display:grid;place-items:center;font-size:22px;font-weight:700}\n.cf-mounted-demo .frozen{position:absolute;inset:0;border-radius:16px;background:var(--cf-accent);color:white;display:grid;place-items:center;opacity:var(--response)}\n.cf-mounted-demo .pointer{position:absolute;left:180px;top:435px;width:36px;height:48px;background:#162033;clip-path:polygon(0 0,100% 65%,58% 68%,43% 100%);filter:drop-shadow(1px 3px 2px #15263a99);transform:translate(calc((1 - var(--approach))*95px),calc((1 - var(--approach))*80px));transform-origin:0 0}\n.cf-mounted-demo .status{position:absolute;left:28px;right:28px;top:530px;font-size:20px;line-height:1.4;opacity:var(--response)}\n</style><div class=\"cf-mounted-demo\"><div class=\"stage\"><div class=\"phone\"><div class=\"screen\"><div class=\"top\">Your card</div><div class=\"card\"><div class=\"holder\"></div></div><div class=\"label\">Card controls</div><div class=\"control\">Freeze<div class=\"frozen\">Frozen</div></div><div class=\"pointer\"></div><div class=\"status\">Payments are paused.<br>Your card is still here.</div></div></div></div></div>",
4
4
  "tokens": {
5
5
  "accent": "#4265d5",
6
6
  "holder": "\"MAYA\"",
@@ -23,3 +23,9 @@ Use a small set of editable properties for likely corrections: screen inset, car
23
23
  Publish a reusable native source once, then pass its exact version and relevant parameters to coauthors. Editing its source creates a new version; placed clips remain pinned to the old version. Explicitly adopt the fitted version in the intended placements through the available admitted composition operation, and inspect those uses. Source publication and placement adoption are separate operations; an isolated preview alone does not prove the timeline changed.
24
24
 
25
25
  When several authors work on one project, existing clip guards cover the whole clip and its structural dependencies, not independent CSS fields. A shared source adoption or dependent timing revision needs current composition state. If another author or the user changed the target, reread and reconcile the intended edit; preserve their copy, timing and unrelated placements rather than replacing a stale document with a fresh token.
26
+
27
+ ## Two engineering input records
28
+
29
+ Use the same source and 1920×1080/30fps/four-second wrapper for both records. A uses `contactSec:"2.0"`, `holder:"\"MAYA\""` and `accent:"#4265d5"`. B uses `contactSec:"2.5"`, `holder:"\"ALEXANDRA CHEN-RIVERA\""` and `accent:"#8357b8"`. Retain `settleSec:"1.0"`, `tiltDeg:"28"`, `approachSec:"0.65"` and `responseSec:"0.2"`. The bounded holder width reflows longer names inside the card; it does not change the phone's pose. Keep all other copy unchanged.
30
+
31
+ Compare the same parent pose before/after the isolated timing change, then the longer-name/palette input change. Record contact frames 60→75, response completion 66→81, mounted screen corners, full text bounds and frame 119. A source/token check proves the input contract only; motion, readability and playback still need captured output. The [worked-example record](worked-examples.md) lists exact identities, remaining evidence and representative existing brief IDs.