cueframe 0.12.0 → 0.12.1
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/dist/analyze-UE76RUYR.js +2 -0
- package/dist/{chunk-JBQC3HBB.js → chunk-RPG6WHUU.js} +1 -1
- package/dist/cueframe.js +26 -26
- package/dist/skills/composing-video/references/card-and-motion-runtime.md +5 -0
- package/dist/skills/composing-video/references/tool-map.md +2 -0
- package/dist/skills/cueframe-compose-loop/references/preview-workflow.md +9 -0
- package/dist/skills/cueframe-reference-video/references/measurement-and-comparison.md +10 -0
- package/dist/skills/cueframe-scene-shot/SKILL.md +1 -1
- package/package.json +9 -9
- package/dist/analyze-OBHAAM3S.js +0 -2
|
@@ -47,3 +47,8 @@ Chromium captures; the clock never advances). Use these instead:
|
|
|
47
47
|
clip's start). For motion beyond that, author a native component with `create_component`.
|
|
48
48
|
|
|
49
49
|
---
|
|
50
|
+
|
|
51
|
+
### Observed on the hosted lane
|
|
52
|
+
|
|
53
|
+
- A card whose html carries a CSS `@import` for a web font is refused at save. Name the family through a font stack and the render fonts the host lists (`list_render_fonts`, `search_fonts`) instead.
|
|
54
|
+
- In one hosted run a `data-cf-split="chars"` group styled through a descendant rule on `--cf-i` showed every glyph at once; explicit per-glyph spans carrying their own inline index var staggered correctly. Verify a split stagger on a saved-composition still before relying on it.
|
|
@@ -48,6 +48,8 @@ Defaults, examples and detail for this topic. The [skill](../SKILL.md) and the [
|
|
|
48
48
|
|
|
49
49
|
Everything needs a `projectId` — `create_project` is step 0.
|
|
50
50
|
|
|
51
|
+
**Request shapes that cost a wasted call when guessed.** `new_composition` takes `body:{name, format}`. `apply_composition` targets a non-active composition through `body.composition_id` (snake case); a top-level `compositionId` is accepted and ignored, so the guard then runs against the active composition and answers 409 with an ETag you never saw. `if_match` is the quoted ETag string exactly as `get_composition` returned it; a bare hash is refused. Read the tool schema in the served catalog before calling it.
|
|
52
|
+
|
|
51
53
|
**Hard limits — respect them, don't fake around them.** No cinematic AI generation: `generate_media` is limited text-to-video/text-to-image/image-to-video, plus audio: `text-to-speech` (narration VO) and `text-to-music` (instrumental bed); use generated visuals where their actual capabilities fit the brief, and do not present synthetic footage as documentary evidence. No screen capture: that needs an external screen-capture client (e.g. a headed Playwright walkthrough recorded to MP4). When the right move needs footage CueFrame can't generate, `import_media` real footage — do not synthesize a substitute. **Units trap:** `startTime`/`duration`/`trim`/reframe `startSec`/`endSec`/`ease` are **seconds**; caption word times are **milliseconds**. **Render-time fail-loud errors to expect** (render never ships a wrong frame silently): `content_anchor` (a clip's `trim` frames *different* footage than its captions show — align the trim to the captioned moment), `behind_split_unsupported` (one media used under two *different* behind-subject windows — one behind-subject window per MEDIA; to render two different behind windows of one source, import it as two separate MEDIA ITEMS (distinct mediaIds) — duplicating the same mediaId into two clips still throws), `BehindMatteUnresolved`/`TrajectoryUnresolved` (the behind/face bake found no detectable person — drop the intent or fix the source).
|
|
52
54
|
|
|
53
55
|
**Worked alignment example (the error-prone mechanic).** You want the caption emphasis to land on the founder's stressed word "faster," and the frame to punch in on the same beat. From `get_media_context`, the transcript word "faster" runs `startMs:8120, endMs:8560` (transcript/source time). **For these round numbers, assume an untrimmed clip placed at timeline 0** — then source time, timeline time, and clip-relative time all coincide. So: put that word in `captions.segments[].words[]` with `emphasis:true` at `startMs:8120`; and author reframe with `setCropIntents` as a **contiguous segment list that tiles the whole clip** — e.g. a wide segment `{startSec:0, endSec:8.12, focus:{mode:"active-speaker"}, zoom:1}` then the punch `{startSec:8.12, endSec:<clipEnd>, focus:{mode:"face",faceId:"…",shotScale:"close"}, zoom:0.8, ease:{in:0.4,out:0}}` (ms → s: 8120ms = 8.12s). A lone mid-clip segment that leaves `[0..8.12]` uncovered fails validation with `reframe_coverage_gap`.
|
|
@@ -39,3 +39,12 @@ After a correction, capture the affected saved version and compare it with the s
|
|
|
39
39
|
Use `score_composition` for broader editorial/brand review when useful and within budget. Do not require repeated whole-film judging to verify a known local correction. A judge score does not override a failed acceptance criterion or the user's visual feedback.
|
|
40
40
|
|
|
41
41
|
Check account balance and current quotes before metered hosted work. Record actual job charges separately for preview, judging, and final export; separate those from agent time/token cost and from infrastructure estimates. Compare workflows only after testing equivalent changes and evidence requirements. Existing previews should be exercised before proposing new infrastructure.
|
|
42
|
+
|
|
43
|
+
## Metering and delivery facts observed on the hosted lane
|
|
44
|
+
|
|
45
|
+
- One `preview_frame` job is one capture unit whatever the number of stills in it (a 9-still job and a 12-still job each metered one unit). Batch the timestamps of a whole shot or of several beat boundaries into one job instead of one job per still.
|
|
46
|
+
- `wait_job` delivers up to four images per call; the remaining stills of the same job come back through `imageIndices` on a repeated `wait_job`, which is a free re-read, not a new job.
|
|
47
|
+
- `preview_clip` returns a 864×486 encode. It proves cuts, entrances, continuity and timing; typography, glass edges and material are judged from 1080p stills or the final render, never from the clip.
|
|
48
|
+
- A first preview job after idle includes worker start, up to a few minutes; do not resubmit while the job reports `running`.
|
|
49
|
+
- `preview_card` has no dry run and no `body` envelope: a call with placeholder html is a metered still. Learn a tool's input shape from its schema, not by calling it.
|
|
50
|
+
- `compare_frames` reads the reference from a media item that is registered and certified in the same project as the candidate; a media item from another project is refused with a membership error. `list_media` can lag a just-finalized upload while `get_media_facts` already answers.
|
|
@@ -49,3 +49,13 @@ Keep actual frame indices, rational FPS/timebase, requested versus sampled time,
|
|
|
49
49
|
Use the raw pair and overlay at unchanged coordinates. A difference image can locate change but is easily dominated by backgrounds and materials; it is not an acceptance score. Automatic image registration can conceal displacement. Cropping is a view into the same coordinate space, not permission to independently fit the two images.
|
|
50
50
|
|
|
51
51
|
For an intentional structural revision, record the source-to-output event correspondence and compare those events. Do not temporally warp the evidence or undo the user's changed timing merely to reduce image differences. After editing, compare a preview from the new saved source, then inspect connected motion and sound.
|
|
52
|
+
|
|
53
|
+
## Worked correction: a phone screen reproduction
|
|
54
|
+
|
|
55
|
+
In a 1920×1080, 60 fps reference, a phone rose and tilted over 32 frames while its screen showed a static trading UI. The screen was authored as a captured component on a procedural phone and the UI measured against the reference through sub-pixel fits of the phone's edges, a homography that rectified each frame onto the declared 393-point screen grid, and template matching of text rows and a chart trace. Keep the declared grid (device class, island size, corner radius) separate from what was measured; the measured island was 13–15 % narrower than the prior, and that disagreement belongs in the ledger, not in the result.
|
|
56
|
+
|
|
57
|
+
Three keyframes fitted at the first, middle and last frame left the in-between frames 8–14 px low: the reference rise was eased, and a per-frame residual table from a rendered window exposed it where the three stills could not. A residual that alternates every second frame means 30 fps content in a 60 fps container; average the pairs before fitting easing.
|
|
58
|
+
|
|
59
|
+
Changing a captured component's `layout` height re-anchors the content; it does not stretch it. A vertical scale error in the UI is corrected in the component's own coordinates, not in the surface layout.
|
|
60
|
+
|
|
61
|
+
The independent review found the author's "within 4 px" claim true only along the text column the author had probed; the right half of the screen sat 8–16 px left of the reference at every frame, the wordmark was 27 % short and an occluded chart segment was drawn over its pill. Measure landmarks across the whole frame (both edges, both columns, every pill and marker), not along the axis you aligned, before claiming parity.
|
|
@@ -22,7 +22,7 @@ not only keyframes. A scene tweak can finish with preview evidence; export for f
|
|
|
22
22
|
1. Create or open a composition at the target aspect and FPS.
|
|
23
23
|
2. Register every image, video, model, or environment asset through the supported media workflow. Bind owned media ids to the declared slots; retain the exact asset bytes for restoration. Capture-backed component surfaces use an exact component id, source version id, capture frame, layout, and optional bake scale.
|
|
24
24
|
3. Read `cueframe://scene-shot` (desktop: `get_scene_contract`), copy its `world-objects` recipe, and replace placeholder ids and copy.
|
|
25
|
-
4. Send `apply_composition` with `dry_run: true`. Fix the exact reported field path.
|
|
25
|
+
4. Send `apply_composition` with `dry_run: true`. Fix the exact reported field path. A scene clip's `startTime` and `duration` must sit on the composition's frame lattice as the exact double (`82/60`, not `1.3666667`); a rounded decimal is refused even though card clips accept it.
|
|
26
26
|
5. Apply the same batch for real. Preview the first frame, object entrances, focus transitions, and the last frame.
|
|
27
27
|
6. Revise with `scene.update`; do not hand-edit a generated wrapper.
|
|
28
28
|
7. Render only after surfaces report ready and the previews show the intended pixels.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cueframe",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "CueFrame video editing CLI: manage media, edit compositions and render MP4s from terminals and scripts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cueframe",
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"add-mcp": "^2.
|
|
36
|
-
"better-auth": "1.7.
|
|
35
|
+
"add-mcp": "^2.6.0",
|
|
36
|
+
"better-auth": "1.7.14",
|
|
37
37
|
"commander": "^15.0.0",
|
|
38
38
|
"open": "^11.0.4",
|
|
39
|
-
"ora": "^
|
|
39
|
+
"ora": "^10.0.0",
|
|
40
40
|
"pino": "^10.3.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"@
|
|
43
|
+
"@types/node": "^26.6.6",
|
|
44
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
45
45
|
"tsup": "^8.5.1",
|
|
46
46
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
47
47
|
"vitest": "^5.0.3",
|
|
48
|
-
"
|
|
49
|
-
"@cueframe/
|
|
50
|
-
"@cueframe/
|
|
48
|
+
"zod": "^4.6.7",
|
|
49
|
+
"@cueframe/sdk": "^0.17.2",
|
|
50
|
+
"@cueframe/skills": "0.4.7"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|
package/dist/analyze-OBHAAM3S.js
DELETED