editorbrain 0.42.0 → 0.43.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.
package/package.json
CHANGED
|
@@ -148,3 +148,13 @@ video has rotation, mirroring or another display transform, the command rejects
|
|
|
148
148
|
it before writing a sheet. Export a separate review copy with the transform baked
|
|
149
149
|
into the pixels, keeping the original, then recompute its hash and rendered bounds.
|
|
150
150
|
Do not reuse geometry from the differently oriented source.
|
|
151
|
+
|
|
152
|
+
## Continuity, disk and variants (CLI 0.43.0+; inspect installed help)
|
|
153
|
+
|
|
154
|
+
- Discover exact syntax with `production verify --help`, `styles --help` and `studio --help`. `styles mine` lists local editing styles; `styles list` remains the published catalog. `media styles` are image-generation recipes.
|
|
155
|
+
- `production verify` now measures LUFS/true peak whenever audio exists, even without a target. No target means measurements only. Supply `--audio-profile audio.json` to set `{schemaVersion:1,loudness:{targetIntegratedLufs:-14,toleranceLu:1,maxTruePeakDbtp:-1}}` when the user/project requires those values. Never invent a required loudness target, override project preferences or normalize automatically.
|
|
156
|
+
- `--review-inputs continuity.json` adds source-word cut checks, final seam energy and declared face/overlay collisions. Bind it to the final `artifactSha256`. Cuts and transcript must share `sourceSha256`; times are seconds. Geometry must already match the final timeline, crop and normalized top-left coordinates. Missing/uncertain tracking is incomplete, not a safe face clearance. High-energy seams are listening candidates; music can cause them too.
|
|
157
|
+
- Inline schema: `{schemaVersion:1,artifactSha256,cuts:{sourceSha256,parts:[{source:[start,end],final:[start,end]}]},transcript:{sourceSha256,words:[{text,start,end}]},geometry:{timeline:"final",coords:"normalized-top-left",frames:[{t,face:{x,y,w,h}}],overlays:[{id,start,end,x,y,w,h}]}}`. Cuts/transcript and geometry are independently optional. A null face means unknown.
|
|
158
|
+
- File-backed alternatives: `cuts:{file:"relative/cutmap.json",sourceSha256}`, `transcript:{file:"relative/words.json",sourceSha256}`, `geometry:{trackFile:"relative/track.json",overlaysFile:"relative/overlays.json",timeline:"final",coords:"normalized-top-left"}`. Track uses `per_frame`; overlays uses `overlays`. Never pair an original transcript with montage timestamps or an untransformed source track with a cropped render. The hash declaration is supplied provenance, not automatic proof of the alignment.
|
|
159
|
+
- Run `clean --project ID` before more copies when disk is low. Inspection is read-only. After the user approves optimization, `clean --project ID --deduplicate --confirm` shares identical file blocks via copy-on-write on supported filesystems. Files remain independently editable; no hardlinks, symlinks, master deletion or recursive cleanup. Logical duplicate bytes are not guaranteed reclaimed disk space. Unsupported filesystems return an explanation. Do not run during rendering.
|
|
160
|
+
- `variants create comenta --project ID --file changes.json` accepts `{cta:"...",hook:"...",instructions:"..."}` (only needed fields). This creates a local edit specification and input snapshot, not a rendered video or a synced project. Reuse base sources by path, render separately, recompute cutmap/caption/motion timing, and verify the variant. Base approval never carries over. `variants list --project ID` reports changed base context. Never copy all source media into each variant.
|
|
@@ -160,3 +160,7 @@ all brands) and `retryAfter` in seconds. On `studio_queue_full`, wait at least
|
|
|
160
160
|
when capacity is available. If it expired, re-quote and check the authorized
|
|
161
161
|
budget; never increase it. A retry time is a polling delay, not a completion ETA.
|
|
162
162
|
Do not rerun an uncertain job or create parallel replacement quotes.
|
|
163
|
+
|
|
164
|
+
### Prism reference images (requires matching API capabilities)
|
|
165
|
+
|
|
166
|
+
Read `studio catalog` capabilities before using `referenceAssetIds`. Prism Premium can use up to four ordered workspace image assets (PNG/JPEG/WebP, 8 MiB per file, 20 MiB total). Upload explicitly selected references using the existing assets flow, then quote with `quality:"premium"` and `referenceAssetIds:["sha256",...]`. Preserve anchor/logo/character ordering. Convert SVG to PNG locally first. Quote sends no reference bytes to the provider; authorizing `studio run` authorizes the selected references to be sent for generation. Never upgrade quality or override saved provider choices silently. Essential does not accept references. Inspect the generated result; reference inputs do not guarantee identity fidelity. An external integration is still an option when the selected model does not support the task. Missing references, permission failures and upload failures must not trigger an automatic paid retry.
|
|
@@ -79,6 +79,8 @@ Tell the user the saved name/ID, where to find it, whether it is local or cloud-
|
|
|
79
79
|
|
|
80
80
|
## Capture and reuse a real project (check installed help first)
|
|
81
81
|
|
|
82
|
+
The corrections for nested project capture, resource push/dry-run, directory bindings, text context and caption style override require 0.42.1. A globally installed 0.42.0 does not include them.
|
|
83
|
+
|
|
82
84
|
The following authoring additions require a CLI/API release that advertises them; they are not in npm 0.41.2. Do not invent a successful remote save on an older server.
|
|
83
85
|
|
|
84
86
|
```sh
|
|
@@ -90,9 +92,9 @@ editorbrain styles pull build-journal --dir ./another-workspace
|
|
|
90
92
|
editorbrain styles test build-journal --project episode-two
|
|
91
93
|
```
|
|
92
94
|
|
|
93
|
-
`create --from-project` without an ID chooses `<project>-style`. It
|
|
95
|
+
`create --from-project` without an ID chooses `<project>-style`. It scans `videos/<id>/` and `.editorbrain-local/<id>/`, including nested production folders and `direction.md`/`review.md`, plus safe declared dependencies for that project: direction/review, renders, recognized receipts/manifests, measured beat intervals. It saves candidate resources with hashes, pilot evidence and sanitized prompt examples, not an inferred finished recipe. It never switches the project or changes brand preferences. Audit the candidate list before uploading; dynamic imports and receipt formats the CLI does not understand remain explicit gaps. Capture is bounded to 2,000 entries/depth 8, 200 unique portable resources, 90 MiB/file and 512 MiB portable bytes. Scene dependencies come first; hashes deduplicate copies. Vendor/QA/source frames/copied scenes do not fill the budget unless explicitly referenced. Final exports under renders/exports/out-styles are streamed as hash-only examples with a separate 2 GiB budget and explicit warnings. They are never uploaded. If several reviewed scenes exist, choose --scene <workspace-relative scene.html>; never silently combine discarded versions. Receipts are recognized by content. Prompt examples require a resolvable output used by the selected scene (including image anchors of used generated clips); nested plans/arrays work. Unlinked or conflicting prompts are omitted with warnings. Paths and hashes do not certify creative approval or a complete dynamic dependency graph.
|
|
94
96
|
|
|
95
|
-
Selected `styles push` touches only that style's flat text documents. `--with-resources` uploads supported media, HTML/JS/MJS/JSON and fonts through private workspace assets, verifies downloaded hashes **before** pushing documents, and rewrites local resources to permanent IDs. Inspect `--dry-run` and the local manifest first; code/assets are private but may include customer material. Do not upload unauthorized files or credentials. Generic push reports a local-only dependency warning. Pull verifies bytes into `production-assets/styles/<id>/<hash>.<ext>`, preserves local edits, and keeps portable asset IDs. Interrupted multi-file saves can leave verified assets or some committed document revisions: inspect state and retry, never force overwrite. Restricted team editors cannot modify shared styles; their downloads are limited to styles selected by assigned editable projects.
|
|
97
|
+
Selected `styles push` touches only that style's flat text documents. `--with-resources` uploads supported media, SVG/HTML/JS/MJS/JSON and fonts through private workspace assets, verifies downloaded hashes **before** pushing documents, and rewrites local resources to permanent IDs. Inspect `--dry-run` and the local manifest first; code/assets are private but may include customer material. Do not upload unauthorized files or credentials. Generic push reports a local-only dependency warning. Pull verifies bytes into `production-assets/styles/<id>/<hash>.<ext>`, preserves local edits, and keeps portable asset IDs. Interrupted multi-file saves can leave verified assets or some committed document revisions: inspect state and retry, never force overwrite. Restricted team editors cannot modify shared styles; their downloads are limited to styles selected by assigned editable projects.
|
|
96
98
|
|
|
97
99
|
### Code-backed components
|
|
98
100
|
|
|
@@ -113,7 +115,7 @@ Put configurable values in a JSON-like object inside a script block. Explicit bi
|
|
|
113
115
|
]
|
|
114
116
|
```
|
|
115
117
|
|
|
116
|
-
`next.json` would contain `{"headline":"New idea","anchor":3.375}`. Roles are clip/text/timing/layout; types string/number/boolean. A clip value is a workspace-relative file and is rebased to the output location. Use explicit bindings for clip, anchor cue, keyframe-to-word timing, punch-in, seal, caption position as applicable. An arbitrary HTML cannot be reliably generalized without this step. No timeline guessing: measure words in the destination. Known literal HTML/CSS resource references are rebased to verified cache paths; JS-computed paths, imports and external dependencies require manual review. Never execute downloaded code merely because it passed a hash check.
|
|
118
|
+
`next.json` would contain `{"headline":"New idea","anchor":3.375}`. Roles are clip/directory/text/timing/layout; types string/number/boolean. A clip value is a workspace-relative file and is rebased to the output location. `directory` requires a string path to an existing workspace folder (up to 500 entries/depth 4, no symlinks or private paths); it is rebased too, but does not upload its contents. Declare each portable dependency in resources.json. Binding names may use camelCase; IDs remain lowercase. Use explicit bindings for clip, anchor cue, keyframe-to-word timing, punch-in, seal, caption position as applicable. An arbitrary HTML cannot be reliably generalized without this step. No timeline guessing: measure words in the destination. Known literal HTML/CSS resource references are rebased to verified cache paths; JS-computed paths, imports and external dependencies require manual review. Never execute downloaded code merely because it passed a hash check.
|
|
117
119
|
|
|
118
120
|
### Typed recipes and subtitles
|
|
119
121
|
|
|
@@ -123,8 +125,18 @@ Create the documents with `media style create <style-id> --style <style-id> --fi
|
|
|
123
125
|
- `captions.json`: schemaVersion 1, id, enabled, font `{family,weight,size,color,resourceId?}`, activeBox `{color,padding}`, position `{x,y}`, forbiddenZones `[{x,y,width,height}]`, hideDuringCrossings. Coordinates are normalized; sizes are output pixels; colors `#RRGGBB`. Optional tokenBindings `{fontFamily:"typography.body",color:"color.text",boxColor:"color.accent"}` maps explicitly to the destination's resolved tokens. If the font changes by brand, update its declared font resource too. Disabled captions at brand/output level win.
|
|
124
126
|
- `techniques.json`: schemaVersion 1, id, techniques with unique id, purpose, `when:[]`, `anchor:{kind:"phrase",text}`, `resourceIds:[]`, optional componentId, `omitWhen:[]`, `verify:[]`. Missing verification is a warning; missing referenced IDs are errors.
|
|
125
127
|
|
|
126
|
-
`styles captions prepare --project <id> --file cues.json --out new-layer.html` makes a transparent deterministic layer using the effective preset. Cues are ordered, nonoverlapping `{start,end,text,active?,crossing?}` with seconds. Exact font resources are hash-verified and embedded; otherwise verify/install the family yourself. Capture by awaiting `window.renderAt(seconds)` at output resolution; the layer hides cues colliding with declared forbidden zones, overflowing the canvas, or marked crossing when requested. It does not detect faces, infer crossings, transcribe, or render the whole video. Other engines must implement the same effective preset explicitly, not reinterpret prose.
|
|
128
|
+
`styles captions prepare --project <id> --file cues.json --out new-layer.html` makes a transparent deterministic layer using the effective preset. Add `--style <id>` to preview another saved style without changing the project; destination brand/output constraints still win. Cues are ordered, nonoverlapping `{start,end,text,active?,crossing?}` with seconds. Exact font resources are hash-verified and embedded; otherwise verify/install the family yourself. Capture by awaiting `window.renderAt(seconds)` at output resolution; the layer hides cues colliding with declared forbidden zones, overflowing the canvas, or marked crossing when requested. It does not detect faces, infer crossings, transcribe, or render the whole video. Other engines must implement the same effective preset explicitly, not reinterpret prose.
|
|
127
129
|
|
|
128
|
-
`styles test` reads the destination script and returns candidate text ranges, ambiguous/missing anchors, required parameter names, missing resources and resolved brand/audio/caption constraints. It never writes the destination, calls a provider, renders, spends, or certifies fit. `when`/`omitWhen` remain for agent judgment, not a pretend semantic classifier. Turn text ranges into actual word timings only after inspecting the target audio/transcript. A dry transfer is not proof of visual quality.
|
|
130
|
+
`styles test` reads the destination script and returns candidate text ranges with exact matched text, surrounding context, source file, optional JSON field and line, ambiguous/missing anchors, required parameter names, missing resources and resolved brand/audio/caption constraints. It never writes the destination, calls a provider, renders, spends, or certifies fit. `when`/`omitWhen` remain for agent judgment, not a pretend semantic classifier. Offsets are UTF-16 code units; lines refer to the decoded script (not the line of the JSON file). Turn text ranges into actual word timings only after inspecting the target audio/transcript. A dry transfer is not proof of visual quality.
|
|
129
131
|
|
|
130
132
|
MCP agents receive these selected documents in `resolve_project`, workflow context and context hashes. Use existing revisioned document and asset tools; local extraction, filesystem checks and caption preparation require the host CLI. Keep installed skill versions compatible and report missing commands rather than silently simulating them.
|
|
133
|
+
|
|
134
|
+
### Active-word captions and partial resource uploads
|
|
135
|
+
|
|
136
|
+
Check installed CLI help before using these additions. Unsupported resource extensions in push --with-resources are collected in skippedResources; supported files continue. Skipped files remain local dependencies: report them, convert notes to style documents or tools to explicit requirements, and never claim full portability. Hash mismatches and permission errors still fail closed.
|
|
137
|
+
|
|
138
|
+
Caption presets accept mode: phrase|karaoke (default phrase). Karaoke cues must include words: [{text,start,end}] with measured nonoverlapping absolute times inside the cue, reproducing its text. The entire phrase stays visible; only the word at renderAt(seconds) gets the activeBox. Gaps highlight no word. Never invent word timing. Forbidden zones, crossing suppression and disabled brand/project captions still win.
|
|
139
|
+
|
|
140
|
+
Without --project, captions prepare --style <id> creates a standalone 1080×1920 preset preview, with an explicit warning that no brand/project preferences apply. For a final edit always resolve with --project.
|
|
141
|
+
|
|
142
|
+
Scene-prioritized capture with hash deduplication, linked prompt selection, grouped skipped upload types and active-word karaoke require CLI 0.43.0+. Inspect installed command help before relying on them.
|