editorbrain 0.42.1 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.42.1",
3
+ "version": "0.43.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -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.
@@ -92,9 +92,9 @@ editorbrain styles pull build-journal --dir ./another-workspace
92
92
  editorbrain styles test build-journal --project episode-two
93
93
  ```
94
94
 
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, 500 resource candidates (at most 200 portable resources), 90 MiB/file and 512 MiB total. Videos over 90 MiB can be streamed into hash-only local examples within the same 512 MiB budget; they are not uploaded or declared portable. Smaller files are captured first. Budget omissions and unreadable inputs are warnings; required originals need an explicit requirement or lighter authorized derivative. Receipts are recognized by model/provider plus generation fields (`input`, `output`, `taskId`, `jobId`, `tasks`, `jobs`, etc.), not a filename. Nested job prompts are sanitized examples, not provider receipts certified by the server. Unsupported formats need explicit review.
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.
96
96
 
97
- 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.
98
98
 
99
99
  ### Code-backed components
100
100
 
@@ -130,3 +130,13 @@ Create the documents with `media style create <style-id> --style <style-id> --fi
130
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.
131
131
 
132
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.