editorbrain 0.58.0 → 0.59.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/README.md +2 -2
- package/bin/editorbrain.mjs +4250 -1601
- package/package.json +1 -1
- package/skill/editorbrain/references/agency.md +2 -2
- package/skill/editorbrain/references/cli-mcp.md +6 -4
- package/skill/editorbrain/references/first-edit.md +3 -3
- package/skill/editorbrain/references/local-production.md +18 -0
- package/skill/editorbrain/references/production-and-review.md +2 -0
- package/skill/editorbrain/references/production-continuity.md +16 -1
- package/skill/editorbrain/references/studio-review.md +2 -1
- package/skill/editorbrain/references/style-creator.md +28 -1
- package/skill/editorbrain/references/style-source.md +13 -5
- package/skill/editorbrain/references/support.md +5 -0
- package/skill/editorbrain/references/workflow-evidence.md +5 -0
- package/skill/editorbrain-motion/references/authored-scenes.md +2 -2
- package/skill/editorbrain-reference/SKILL.md +10 -0
package/package.json
CHANGED
|
@@ -23,8 +23,8 @@ Agency settings/portals but uses `/app/team` for team administration. Inspect
|
|
|
23
23
|
consent or switch credentials silently. Existing owner API-key connections can
|
|
24
24
|
use the team administration tools. API and MCP check permissions every time.
|
|
25
25
|
|
|
26
|
-
Current plan seats: Free 0, Creator 1,
|
|
27
|
-
the owner. Multiple brand grants use one seat per editor; pending invitations
|
|
26
|
+
Current plan seats: Free 0, Creator 1, Pro (plan id `studio`) 5, Comunidad 5, Agency 15
|
|
27
|
+
invited editors, besides the owner. Multiple brand grants use one seat per editor; pending invitations
|
|
28
28
|
count. Reviewers do not use editor seats. Use the returned limits, not a cached
|
|
29
29
|
plan label. The ordinary storage allowance is shared across the workspace.
|
|
30
30
|
|
|
@@ -396,7 +396,7 @@ absolute device paths and URLs in synchronized text. Keep device directories in
|
|
|
396
396
|
|
|
397
397
|
## Recovery and diagnostics (CLI 0.7+)
|
|
398
398
|
|
|
399
|
-
Use `editorbrain version` to discover the installed release. Run `editorbrain doctor --dir <folder> --agent codex|claude|both` before troubleshooting; `--offline` deliberately skips credentials and remote checks. Doctor is read-only. Read `summary.blockers`, `summary.warnings` and `summary.nextSteps`, then only the affected `capabilities` entries. It probes FFmpeg/FFprobe and, online, reads Studio availability/credits/per-tool permissions plus declared integrations. Unknown remote state is not zero credits or no integrations. Optional generators and missing local media tools do not invalidate every editing route. Positive credits still require a quote; never replace an external provider with Studio automatically. Verify external access and the chosen rendering engine in your session. Use `workflow check --project <id>` for effective project preferences; doctor does not inspect a final video. Run once during setup/troubleshooting, not before every scene. Its `mcpClient: not_verified` is not a claim that the host is connected. A customized skill is reported as a warning, not replaced automatically.
|
|
399
|
+
Use `editorbrain version` to discover the installed release. Run `editorbrain doctor --dir <folder> --agent codex|claude|gemini|both|all` before troubleshooting; `--offline` deliberately skips credentials and remote checks. Doctor is read-only. Read `summary.blockers`, `summary.warnings` and `summary.nextSteps`, then only the affected `capabilities` entries. It probes FFmpeg/FFprobe and, online, reads Studio availability/credits/per-tool permissions plus declared integrations. Unknown remote state is not zero credits or no integrations. Optional generators and missing local media tools do not invalidate every editing route. Positive credits still require a quote; never replace an external provider with Studio automatically. Verify external access and the chosen rendering engine in your session. Use `workflow check --project <id>` for effective project preferences; doctor does not inspect a final video. Run once during setup/troubleshooting, not before every scene. Its `mcpClient: not_verified` is not a claim that the host is connected. A customized skill is reported as a warning, not replaced automatically.
|
|
400
400
|
|
|
401
401
|
Before reconciling sync problems, use `push --dry-run` or `pull --dry-run`. Read `conflicts` and the planned paths. A preview neither writes nor reserves revisions. Never use a separate workspace to evade a binding mismatch.
|
|
402
402
|
|
|
@@ -431,9 +431,11 @@ GET requests use bounded retries and respect Retry-After. Writes are not retried
|
|
|
431
431
|
|
|
432
432
|
## Guided setup and OAuth (0.7.0)
|
|
433
433
|
|
|
434
|
-
`editorbrain setup --dir ./mis-videos --agent codex --workspace <expected-id>` authorizes the CLI when necessary, pulls documents, installs the complete skill and registers an absent MCP connection. Use `claude` or `
|
|
434
|
+
`editorbrain setup --dir ./mis-videos --agent codex --workspace <expected-id>` authorizes the CLI when necessary, pulls documents, installs the complete skill and registers an absent MCP connection. Use `claude`, `gemini`, `both` (Claude Code and Codex) or `all` for other hosts. The expected ID is a check, never authorization. Setup preserves existing MCP entries and customized guidance. Exit 2 means action is still required; inspect each step instead of repeating blindly. `--no-browser` defers MCP registration; `--skip-mcp` prepares only the CLI/skill.
|
|
435
435
|
|
|
436
|
-
|
|
436
|
+
Install code (one line from the web): when the user gives a code like `EB-XXXXX-XXXXX`, run `editorbrain setup --code EB-XXXXX-XXXXX --agent claude|codex|gemini|both|all [--dir folder]`. It redeems the code once without a browser, stores the account credential like `login`, and with `--mcp-auth key` (the default with `--code`) registers MCP with that credential in a header: Claude Code in user scope, Codex in `config.toml` (`$CODEX_HOME`), Gemini CLI in its user `~/.gemini/settings.json` (never the project folder). No `/mcp`, `/mcp auth` or `codex mcp login` step is needed; open a new agent session so the server loads, then call `workspace_info`. An existing EditorBrain connection is preserved, not replaced. Codes expire in 10 minutes and work once: on `SETUP_CODE_INVALID` ask the user for a new code instead of retrying. Never repeat the code or the credential in chat or files; `--mcp-auth oauth` keeps the browser flow below.
|
|
437
|
+
|
|
438
|
+
Codex can use `codex mcp login editorbrain`; Claude Code completes OAuth from `/mcp`; Gemini CLI uses `/mcp auth editorbrain`. Gemini CLI reads the skill from `.gemini/skills/editorbrain` and `GEMINI.md`; a different copy in `.agents/skills/editorbrain` takes precedence there. Native host configuration is not proof of an authenticated MCP. Call `workspace_info` inside the host and compare it with CLI `status`. A read-only consent cannot save documents: ask for editing scope only when needed. Revoke OAuth connections from the app’s connection settings. CLI device credentials and MCP OAuth connections are separate.
|
|
437
439
|
|
|
438
440
|
`editorbrain narrative search [query] --kind hook --channel visual` finds candidates. `narrative get <video-id> --sha256 <document-hash> --event-offset 0 --relation-offset 0 --limit 50` pages through one pinned narrative document; follow returned offsets. Missing narrative coverage stays explicit.
|
|
439
441
|
|
|
@@ -551,7 +553,7 @@ it or wait for renewal. Never split jobs, change credentials or silently charge
|
|
|
551
553
|
another provider to bypass it. Buying credits does not change either permission.
|
|
552
554
|
|
|
553
555
|
`team members` reports `editorSeats`: plans include invited editor seats (Gratis 0,
|
|
554
|
-
Creator 1,
|
|
556
|
+
Creator 1, Pro (plan id `studio`) 5, Comunidad 5, Agency 15), while reviewers use none. Existing editors and pending editor
|
|
555
557
|
invitations count once per email across brands. `team_seat_limit` requires an owner
|
|
556
558
|
to review the returned upgrade or explicitly remove an editor/cancel an invitation;
|
|
557
559
|
do not remove access automatically. A downgrade retains existing editors. Discover
|
|
@@ -6,13 +6,13 @@ dependency, not a required introduction on every video.
|
|
|
6
6
|
|
|
7
7
|
## Establish a working workspace
|
|
8
8
|
|
|
9
|
-
- For local work, choose or reuse one EditorBrain folder for this workspace/device and open it in Claude Code or
|
|
9
|
+
- For local work, choose or reuse one EditorBrain folder for this workspace/device and open it in Claude Code, Codex or Gemini CLI. Keep each video's files under its own project destinations. Installing npm/npx or connecting MCP does not organize existing files. A host without filesystem access uses service documents/assets and needs neither a local folder nor CLI.
|
|
10
10
|
- Discover available MCP tools and, with terminal access, the installed CLI (`editorbrain version`, `editorbrain help`). For missing local CLI setup, follow the official app's installation prompt; MCP alone does not require it. Do not invent a package or install a rendering engine without need.
|
|
11
11
|
- Try installed commands individually before inspecting an installer. A denied directory scan or compound shell command does not establish that the CLI is absent or every command is forbidden. Respect the denied scope; use a separately permitted CLI/MCP operation, or report the exact operation that remains blocked. Do not reinstall or request broad shell access based only on that denial.
|
|
12
12
|
- If the user wants to configure their brain here, use the visual [onboarding guide](onboarding.md) when `onboarding create` is available. It supports a local browser or portable HTML/JSON handoff; no account is needed to draft preferences. Do not claim every chat can embed or connect to local HTML. Existing users should retrieve their selected context first, preserving unsynced changes; do not start with an empty form that discards saved preferences.
|
|
13
13
|
- For an existing account, identify the authenticated workspace. When the request names a brand, discover `brands list` / `list_brands` (if available), match its saved name to a stable ID, then `projects list --brand ID` / `list_projects({brandId:ID})`. Follow pagination as needed. Duplicate names, no match or multiple possible projects are unresolved identity, not a reason to pick the first or reuse the last chat's context. Ask a short selection under the question policy; autonomous leaves only that work pending. For older clients, use narrow document prefixes and read identity documents only to resolve ambiguity.
|
|
14
|
-
- Prepare the chosen project with `editorbrain setup --dir <folder> --agent codex|claude|both --project <id>`. Confirm MCP `workspace_info` and CLI `status` name the same workspace, and `project.json.brand` matches the requested brand. Browser consent needs the user; configuration alone is not authentication.
|
|
15
|
-
- If the brand exists but this is a new video, use `projects create` / `create_project` when available, referencing that existing brand and an intentionally chosen saved style/output profile. See [creation and intake](cli-mcp.md#new-project-and-private-upload-handoff). Never reinitialize or overwrite that brand, reuse another customer's project, or treat a previous video as the requested new one.
|
|
14
|
+
- Prepare the chosen project with `editorbrain setup --dir <folder> --agent codex|claude|gemini|both|all --project <id>`. Confirm MCP `workspace_info` and CLI `status` name the same workspace, and `project.json.brand` matches the requested brand. Browser consent needs the user; configuration alone is not authentication.
|
|
15
|
+
- If the brand exists but this is a new video, use `projects create` / `create_project` when available, referencing that existing brand and an intentionally chosen saved style/output profile. See [creation and intake](cli-mcp.md#new-project-and-private-upload-handoff). Never reinitialize or overwrite that brand, reuse another customer's project, or treat a previous video as the requested new one. `projects create` downloads the project context itself and, when `--brand`, `--style` or `--output-profile` are omitted, copies them from the most recent project (of that brand when `--brand` is given) and says so in `defaults`: tell the user which were used. If `context.status` is `pull_required`, run its command before verify or present. Missing footage is handled with its verified private upload link, not by sending the user to create the project manually.
|
|
16
16
|
- Only for genuinely new context, `editorbrain init --dir <new-folder> --brand <brand-id> --style <style-id> --project <project-id>` creates documents and installs the harness. Authenticate before synchronization. Validate, inspect `push --dry-run`, then push only the intended context. Never use init to reset existing remote preferences. Do not confuse an empty local draft with a remotely saved project.
|
|
17
17
|
- Existing root AGENTS.md/CLAUDE.md and customized skills are preserved. Read install results and any conflict; use the returned skill path explicitly if needed. Installation is not proof the host has read it.
|
|
18
18
|
|
|
@@ -75,6 +75,24 @@ The command decodes the file, records its hash and reports technical findings. R
|
|
|
75
75
|
|
|
76
76
|
A whole-mix sample peak is not loudness, true peak, speech intelligibility or SFX audibility. Narrative, aesthetics, text readability, motion and sound still need the agent's actual review. Keep human approval separate. Link review to the exact file/hash; after changing the output, its previous check no longer applies.
|
|
77
77
|
|
|
78
|
+
## Assemble a master and check joins (CLI after 0.58.0; inspect installed help)
|
|
79
|
+
|
|
80
|
+
When a cut, its layers, captions and SFX are ready as files, declare them instead of hand-writing FFmpeg:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
editorbrain production assemble --project ID --timeline .editorbrain-local/my-video/timeline.json --out .editorbrain-local/my-video/master-v1.mp4 [--preview]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`timeline.json`: `base` (the cut), `layers` (`file`, `start`, `end`, optional `srcStart`; mp4 full frame or webm/mov with alpha; optional `crop`, `scale`, `pos`, `fit`), `captions` (a transparent overlay) with `hideCaptions` ranges, and `sfx` (`file`, `at`, `gain`). Paths are relative to the timeline file. The command conforms video to the project output profile (a 29.97 source comes out at 30 fps when the profile says 30), mixes the audio and normalizes it in two loudnorm passes to the project/brand `audio.json` target (−14 LUFS / −1.5 dBTP when none is saved). It reads the same effective context as `production verify` (checked against the web when logged in; `--offline` for local only). If the timeline contradicts a preference (captions turned off, no music, no SFX, or SFX inside `hookEnd` when the hook has no effects) it stops before rendering. Change the timeline; only when the user asked for that exception in this video add `--override captions|music|sfx|hook-sfx`. `--target-lufs` and `--max-true-peak` replace the loudness target the same way. Overrides apply to that run only, are recorded in the receipt and never change saved preferences. An optional `music` track (`file`, `at`, `srcStart`, `gain`) is mixed under the voice. It writes a new file plus `master-v1.receipt.json` with input hashes, preference checks and measurements; it never overwrites, uploads or approves. Use `--preview` (half size, fast) while iterating.
|
|
87
|
+
|
|
88
|
+
Before assembling a cut made from several takes, check its joins against the original recording:
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
editorbrain cuts check --project ID --edl .editorbrain-local/my-video/edl.json --source original.mp4 [--words .editorbrain-local/my-video/words.json]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The EDL lists source `segments` (`start`, `end`) in final order. Findings give source and final times with a suggested boundary: a word clipped at an edge, an isolated word followed by a pause over 1 s that was joined to a retake (it sounds like a false start), and with measured `--words` (explicit `timeUnit`, or Tempo `startMs/endMs`) repeated words or syllables at the join. ASR text alone cannot show these. It never transcribes; to confirm a flagged join, transcribe only `retranscribe.regions` through the project's transcription route and rerun with `--words`. Listen to every flagged join before applying a suggestion.
|
|
95
|
+
|
|
78
96
|
## Targeted additional checks
|
|
79
97
|
|
|
80
98
|
For authentic imagery, use the host web tools first and read [real media](real-media.md) for optional `media search` and `production evidence-check`. Unlike local inspection, `media search` sends the explicit query to public archive APIs, never local media. For final LUFS/true peak use [audio production](audio-production.md) and `production audio-check`. For boundary frames and declared geometry use [motion review](motion-review.md) and `production motion-check`. These are optional task-specific tools, not another mandatory checklist.
|
|
@@ -149,6 +149,8 @@ Do not infer an easing curve or SFX from a screenshot. Mark uncertain source pro
|
|
|
149
149
|
|
|
150
150
|
Adjacent measured frames may constrain timing without proving the complete animation curve. Visible ink height is not the project's font size, a cut is not a zoom, and a post caption is not spoken dialogue or on-screen text. Retrieve actual alignment when needed; do not substitute a script summary for word timestamps.
|
|
151
151
|
|
|
152
|
+
Before assembling a cut built from several takes, run `editorbrain cuts check` on its EDL: it finds clipped words, dangling false starts and repeats at joins and suggests boundaries snapped to the source energy. Assemble the master with `editorbrain production assemble` from a declared timeline instead of hand-written FFmpeg; it conforms fps/size to the output profile and normalizes loudness. See [local production](local-production.md#assemble-a-master-and-check-joins-cli-after-0580-inspect-installed-help).
|
|
153
|
+
|
|
152
154
|
Check sound in both relevant isolated stems and the final mix when possible. Compare attack, tail, timbre and level; check masking by voice/music and whether a word accent reads differently from a transition sound. A peak meter or a generated file cannot substitute for listening. If no listening capability is available, keep the audio review unverified and make the render available for human audition.
|
|
153
155
|
|
|
154
156
|
## Review the actual delivery
|
|
@@ -44,6 +44,13 @@ a prior approval or checking full-production readiness. Keep the existing phases
|
|
|
44
44
|
`directions`, `review`, `delivery`. Generate/open/upload first as authorized; record
|
|
45
45
|
`presented:true` only after actually handing the usable artifact to the user.
|
|
46
46
|
|
|
47
|
+
Short CLI path per local version: `production review --project ID --file vN.mp4
|
|
48
|
+
[--previous vM.mp4 --changes changes.json] --open`, show the URL, then
|
|
49
|
+
`production review --project ID --presented` once the user has seen it. The first
|
|
50
|
+
call replaces workflow check + review JSON + review-artifact + review-open; the
|
|
51
|
+
second replaces present (expectedVersion, evidence UUID) + checkpoint `in_review`.
|
|
52
|
+
See [Studio](studio-review.md). Approval stays a separate explicit step.
|
|
53
|
+
|
|
47
54
|
## Resolve a presentation mismatch (CLI 0.49.2+)
|
|
48
55
|
|
|
49
56
|
`production present` reports whether the artifact belongs to another workspace or
|
|
@@ -199,6 +206,10 @@ editorbrain production verify --project ID --file ./renders/final.mp4
|
|
|
199
206
|
```
|
|
200
207
|
|
|
201
208
|
Run inside the prepared local project. The CLI uses project format/audio settings;
|
|
209
|
+
an `OUTPUT_FPS_MISMATCH` issue (for example a 29.97 fps DJI/iPhone source carried
|
|
210
|
+
into a 30 fps profile) names the fix: compose at the profile fps, or run
|
|
211
|
+
`production conform --project ID --file render.mp4 --out render-30fps.mp4` once
|
|
212
|
+
(video re-timed, audio copied, original kept) and verify the copy;
|
|
202
213
|
when logged in it checks local source hashes against the web context before/after.
|
|
203
214
|
Conflicts require reconciliation, never automatic overwrite. `--offline` explicitly
|
|
204
215
|
checks local documents only. `--duration` sets a known required duration; `--at`
|
|
@@ -614,7 +625,11 @@ Creating it never approves, spends, uploads media or replaces a valid decision.
|
|
|
614
625
|
|
|
615
626
|
Before changing the video, capture actual user feedback with
|
|
616
627
|
`feedback add --project ID --text TEXT --capture-memory` (MCP:
|
|
617
|
-
`save_editorial_feedback` with `captureMemory:true`).
|
|
628
|
+
`save_editorial_feedback` with `captureMemory:true`). Feedback can change the
|
|
629
|
+
project context on the web: the next `production review` pulls it; with the manual
|
|
630
|
+
path run the `localSync.cliCommand` it returns (`editorbrain pull --project ID`)
|
|
631
|
+
before `production present`, or present fails with `PRESENTATION_CONTEXT_UNSYNCED`
|
|
632
|
+
and names that pull. Submit a corrected preview
|
|
618
633
|
with `production submit --addresses TEXT` / `submit_production_review.addresses`.
|
|
619
634
|
Reuse the same wording: retrying never duplicates or confirms memory. A/B options,
|
|
620
635
|
technical retries and continuations declare `revisionKind` instead; never invent
|
|
@@ -8,7 +8,8 @@ Read [workflow evidence](workflow-evidence.md) for presentation and
|
|
|
8
8
|
|
|
9
9
|
## Open the right view
|
|
10
10
|
|
|
11
|
-
- CLI review: `production review
|
|
11
|
+
- CLI review, short path (one version = two calls): `production review --project PROJECT --file renders/vN.mp4 [--previous renders/vM.mp4 --changes changes.json] --open`. It checks the workflow context (pulling web/feedback changes, stopping on unsaved local edits), measures both hashes, builds the comparison, writes `.editorbrain-local/PROJECT/studio-review-vN.html` and serves it. `changes.json` is `[{"at":"0:12-0:15","kind":"cut","summary":"…"}]`; kinds are `cut`, `text`, `image`, `audio`, `pace`, `other` (b-roll/overlay → `image`, captions → `text`, sfx/music → `audio`). Keep that process running, show the URL, and only after the user has actually seen it run `production review --project PROJECT --presented`: it records the presentation (expectedVersion and evidence UUID handled for you, safe to retry) and the `in_review` checkpoint. It never approves. A `warnings` entry `OUTPUT_FPS_MISMATCH` means conform before delivery.
|
|
12
|
+
- CLI review, manual path: `production review-artifact --file review.json --out .editorbrain-local/PROJECT/studio-v2.html --context-file workflow.json`. `workflow.json` is the current `workflow check --project PROJECT` response with `editorialSnapshot`; its project must match, and the artifact uses `editorialSnapshot.contextVersion` (filled from this file when omitted), never the legacy `context.contextVersion`. Then keep the returned `production review-open` process running and present its verified loopback URL. The optional context file supplies preferences without another network request. Existing offline artifacts without it remain valid; their preferences panel honestly says the snapshot is absent.
|
|
12
13
|
- MCP review: `prepare_review_artifact` supplies the same renderer and the project's actual preferences automatically. See [the bounded template recipe](mcp-studio-artifact.md). Do not pass `studio.preferences` to MCP: the service owns that snapshot.
|
|
13
14
|
- When asked **“muéstrame mis preferencias”**, use `editorbrain preferences open --project PROJECT` or `open_preferences_studio({projectId,destination:"local"|"cloud"})`; present the resulting Studio, rather than only describing settings in chat. Local MCP uses the same template recipe and no media. CLI needs the authenticated API, serves a token-protected loopback URL and stays running. Cloud returns an authenticated project URL. Neither renders, spends credits, uploads media, applies preferences nor approves a video.
|
|
14
15
|
|
|
@@ -69,11 +69,38 @@ Declare installed software/plugins or nonportable fonts as requirements. A sourc
|
|
|
69
69
|
|
|
70
70
|
Generic text push/pull does not copy media, editables or fonts. Use the selected-style resource commands below when supported by the installed CLI. Keep local resources local when that is the user's scope. For authorized supported media uploads, use asset tools separately, retain returned IDs and verify retrieval. Native editing projects and large files may not be supported by that API; record the actual local requirement instead of claiming cloud portability. Never promise that downloading Markdown reproduces missing files.
|
|
71
71
|
|
|
72
|
+
## Thumbnail of the final style
|
|
73
|
+
|
|
74
|
+
Every saved style carries one picture of how it looks applied, so the user can recognise it in the web. It lives in `thumbnail.json` next to the style and does not change the style version that projects pin or templates share.
|
|
75
|
+
|
|
76
|
+
- **Source, in this order.** A frame of an approved pilot or render of this style (`--origin pilot_frame`, with the render's SHA-256). If the style is a draft without a pilot, a representative frame built in code (HTML/CSS or HyperFrames, rendered locally to an image) that shows its defining mechanisms with generic material of your own and the user's brand tokens: colors, fonts, logo (`--origin generated_preview`).
|
|
77
|
+
- **Never from a reference.** No frame of a reference video, and none of its faces, logos, text, captions or music. A generated preview is not a render; say so when you report it.
|
|
78
|
+
- **Proportion.** Use the style's `format.aspect` (16:9 → 1280×720, 9:16 → 720×1280). The web shows wide pictures edge to edge in a card close to 16:9 and tall ones whole, so keep the defining elements away from the edges.
|
|
79
|
+
- **File.** WebP or JPEG of at most 2 MiB, about 1280 px on the long side. Look at it before attaching it.
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
editorbrain styles thumbnail <id> --file .editorbrain-local/style-thumbnails/<id>/thumbnail.webp --origin generated_preview --brand <brand-id> --alt "What the picture shows" --dir <workspace>
|
|
83
|
+
editorbrain styles thumbnail <id> --file frame.webp --origin pilot_frame --pilot-sha256 <render hash> --pilot-project <project-id> --pilot-time 9.8 --dir <workspace>
|
|
84
|
+
editorbrain styles push <id> --dry-run --dir <workspace>
|
|
85
|
+
editorbrain styles push <id> --dir <workspace>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Changing it later.** When the user says "put this image" or "take a frame of the video we edited", change only the thumbnail in one step. `--push` uploads it, verifies it and saves only `thumbnail.json` in the cloud, even when the style is not in this folder; the rest of the style stays untouched. `--video` takes one frame with the local FFmpeg and records the video's SHA-256 and time as the pilot. Use a frame of a video edited with this style; a reference video still never qualifies.
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
editorbrain styles thumbnail <id> --file /path/to/image.webp --origin generated_preview --push --dir <workspace>
|
|
92
|
+
editorbrain styles thumbnail <id> --video videos/<project>/renders/final.mp4 --at 9.8 --pilot-project <project> --push --dir <workspace>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`styles thumbnail` reads type and size from the image header and keeps the bytes in `production-assets/styles/<id>/<hash>.<ext>`. Every `styles push`, with or without `--with-resources`, uploads that image as a private asset (`thumbnailToUpload` in the dry run), verifies it by downloading it and rewrites `thumbnail.json` to its permanent ID. `styles pull` downloads and verifies it. A generic `push` leaves it local and warns. Keep the HTML source in `.editorbrain-local/` to regenerate the picture when the brand changes. `styles check` warns while the thumbnail is missing, still local or in another proportion.
|
|
96
|
+
|
|
97
|
+
MCP-only agents: `draft_project_style` accepts `thumbnail: {assetId, origin, alt?, pilot?}` for an image already uploaded to the workspace, or write `thumbnail.json` with `write_document` describing an owned image exactly (`get_asset` reads its metadata). The server rejects a hash the workspace does not own, review previews that can expire, and a type, size or byte count that does not match the stored image.
|
|
98
|
+
|
|
72
99
|
## Check, save and report the actual outcome
|
|
73
100
|
|
|
74
101
|
1. Run `styles check <id> --dir <workspace>` after writing. Its `readiness` reports documented progress, not quality: `draft` (template text remains), `documented`, `approved_pilot` (user-approved pilot plus an implemented component) or `transfer_tested`. It checks only that style's documents and declared local files/hashes. Fix structural errors and missing required local resources; address warnings according to the intended scope. `valid: true` is not creative approval, remote-access verification or successful rendering. Use `validate` and `resolve <project-id>` as well when changing a project's selection or shared context.
|
|
75
102
|
2. Review the saved instructions against the actual output and user feedback. Distinguish a documented draft, implemented pilot, user-approved pilot and transfer tested with different material. Record a user's explicit approval as `reviewStatus: human_verified`; the accepted values are `unreviewed`, `agent_reviewed` and `human_verified`, and there is no `user_approved`. Keep artifact hash, reviewed dimensions and limitations in the review. Do not spend on another render or generate media just to assign a stronger label. Test adaptation during the next requested episode or a specifically requested pilot.
|
|
76
|
-
3. For cloud saving, inspect `push --dry-run`, preserve conflicts, then push the intended documents. Push operates on all changed portable documents present in that local folder, so inspect the list for unrelated work; to save only this style use `push --only` for each of its changed documents, or `styles push <id>`. Read back saved revisions/hashes before claiming synchronization. Document history preserves previous content; a multi-document style update is not an atomic package release. On an interruption, inspect which revisions committed before resuming.
|
|
103
|
+
3. Attach the [thumbnail of the final style](#thumbnail-of-the-final-style) before saving to the cloud. For cloud saving, inspect `push --dry-run`, preserve conflicts, then push the intended documents. Push operates on all changed portable documents present in that local folder, so inspect the list for unrelated work; to save only this style use `push --only` for each of its changed documents, or `styles push <id>`. Read back saved revisions/hashes before claiming synchronization. Document history preserves previous content; a multi-document style update is not an atomic package release. On an interruption, inspect which revisions committed before resuming.
|
|
77
104
|
4. If the project should use the new style, update only that project's style ID when this is part of the request, then validate/resolve and sync it. Creating a style by itself does not switch projects or rewrite brand tokens. When the user asks to make a style their brand identity, run `brands identity <brand-id> --from-style <style-id>`, show the listed changes and removed legacy aliases, and repeat with `--confirm` only after explicit approval. It rewrites only `tokens.json`; review `design.md` and `brand.md` with the user so their prose does not contradict the new identity.
|
|
78
105
|
|
|
79
106
|
MCP-only agents use existing `list_documents` with the style prefix, `read_document`, and `write_document` with the discovered schema and `expectedRevision` (0 for new files). Use the same document set and checks; generate no new tool names. Read current content before updates, reconcile conflicts and verify each committed document. MCP cannot inspect local resource files on its own; the host agent must do that, or explicitly leave availability unverified. Remote document validation does not certify the complete style. No new MCP registration is needed.
|
|
@@ -38,9 +38,11 @@ workflow and the user's review mode.
|
|
|
38
38
|
style's grammar (structure, rhythm, layouts). If the user asks for other
|
|
39
39
|
colors or preferences for this edit, follow them. Never force either way.
|
|
40
40
|
The guard may need roles the brand does not define (extra scene colors, at
|
|
41
|
-
least six series colors, a `hand` font):
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
least six series colors, a `hand` font): `styles prepare … --brand ID` derives
|
|
42
|
+
them all at once from `.editorbrain/brands/ID/tokens.json` (mixes or shades of
|
|
43
|
+
brand colors, never demo values) and writes `BRAND-MAPPING.md`. Show that
|
|
44
|
+
mapping to the user with the first proposal; without the CLI, derive the same
|
|
45
|
+
way by hand and never copy the demo's values.
|
|
44
46
|
4. Material: read `needs` and the guide. Styles without a recording need data,
|
|
45
47
|
a voice or images instead of a clip (e.g. a sourced data series, a voice or
|
|
46
48
|
a script to voice). Tell the user what to bring; ask only for what is missing.
|
|
@@ -96,8 +98,14 @@ steps below describe the local alternative; both obey the same adaptation rules.
|
|
|
96
98
|
explain that permission; do not try old versions to bypass it.
|
|
97
99
|
4. Prepare a fresh working copy explicitly:
|
|
98
100
|
```sh
|
|
99
|
-
editorbrain styles prepare <id> --style-version <version> --file source.tar.gz --out .editorbrain-local/<project>/styles-src/<id> --dir <workspace>
|
|
101
|
+
editorbrain styles prepare <id> --style-version <version> --file source.tar.gz --out .editorbrain-local/<project>/styles-src/<id> --brand <brand> --dir <workspace>
|
|
100
102
|
```
|
|
103
|
+
`--brand` binds every base and scene role the guard checks (colors, `dark`,
|
|
104
|
+
six or more series colors, display/text/heavy/mono/hand and scene fonts) in
|
|
105
|
+
`lib/project-brand.js`, so the first render does not fail role by role.
|
|
106
|
+
`BRAND-MAPPING.md` lists each value and where it came from; `brandMapping.
|
|
107
|
+
fontsToRegister` names brand fonts the package lacks (ask for their files).
|
|
108
|
+
`--params` values still win over the derived ones.
|
|
101
109
|
This offline command checks the known archive and internal manifest, rejects
|
|
102
110
|
links/path traversal and extracts to a NEW directory. It adds the same project
|
|
103
111
|
binding checks as motion and records original/adapted runtime hashes separately
|
|
@@ -111,7 +119,7 @@ steps below describe the local alternative; both obey the same adaptation rules.
|
|
|
111
119
|
The included Apple Vision preparation requires macOS. On other systems use a
|
|
112
120
|
compatible installed presenter-matte engine and the documented output contract;
|
|
113
121
|
never assume Swift works everywhere or silently change paid providers.
|
|
114
|
-
6. Bind a complete current brand via window.__overrides or renderer --params:
|
|
122
|
+
6. Bind a complete current brand (done by `--brand`; adjust via --params) or via window.__overrides or renderer --params:
|
|
115
123
|
base/scene color roles, licensed registered fonts with family/weight/style,
|
|
116
124
|
language, script, word timing, media and explicit sound.enabled. The guard
|
|
117
125
|
prevents falling back to demo branding. `?demo=1` is solely original-demo
|
|
@@ -33,6 +33,11 @@ de operador. Sólo crea o envía un caso si el usuario lo solicita; en otro caso
|
|
|
33
33
|
entrega el resumen y el enlace para que decida. Comprueba la respuesta y conserva
|
|
34
34
|
el ID devuelto, sin llamar «enviado» a un borrador.
|
|
35
35
|
|
|
36
|
+
Sin MCP de soporte, el CLI usa las mismas rutas: `editorbrain support` (resumen
|
|
37
|
+
de la cuenta), `support threads`, `support show ID`, `support ask --message TEXTO
|
|
38
|
+
[--human]` y `support reply ID --message TEXTO [--human]`. Guarda el `requestId`
|
|
39
|
+
devuelto y repite una escritura fallida con `--id` igual, no con un caso nuevo.
|
|
40
|
+
|
|
36
41
|
El chat de soporte no consume créditos creativos. Su IA explica, consulta y escala;
|
|
37
42
|
no concede planes, créditos, cambios de pago ni reembolsos. Ayuda no equivale a
|
|
38
43
|
autorización de gasto ni a una nueva aprobación editorial. Mantén las preferencias,
|
|
@@ -42,6 +42,11 @@ Preparing proposals/previews and technically verifying an existing output remain
|
|
|
42
42
|
4. Read back the resulting readiness. On an uncertain write, inspect the same UUID
|
|
43
43
|
before retrying; do not generate new IDs or silently overwrite a conflicting record.
|
|
44
44
|
|
|
45
|
+
For a local Studio prepared with `production review`, steps 2–3 are
|
|
46
|
+
`production review --project ID --presented` after the handoff: it reads the version,
|
|
47
|
+
keeps one evidence UUID per prepared Studio (retries reuse it) and saves the
|
|
48
|
+
`in_review` checkpoint.
|
|
49
|
+
|
|
45
50
|
For a cloud sample already registered, the receipt has this shape (replace every
|
|
46
51
|
placeholder with the verified returned value):
|
|
47
52
|
|
|
@@ -14,8 +14,8 @@ Use when a scene needs a visual mechanism (an object transforms, a structure fal
|
|
|
14
14
|
|
|
15
15
|
Remote results can include `access.tier`, `access.canUse`, `requiredPlan` and
|
|
16
16
|
`policyRevision`. Check these before choosing a source. Premium previews remain
|
|
17
|
-
viewable; source downloads require the authenticated workspace's Creator
|
|
18
|
-
|
|
17
|
+
viewable; source downloads require the authenticated workspace's Creator, Pro
|
|
18
|
+
(plan id `studio`), Comunidad or Agency plan. The CLI's bundled local catalog and cards are discovery data,
|
|
19
19
|
not proof of current account access. The server checks access when issuing and
|
|
20
20
|
redeeming a source link, including older pinned catalog versions.
|
|
21
21
|
|
|
@@ -93,6 +93,7 @@ matching style sections saying so. Skip the cut and audio measurements.
|
|
|
93
93
|
function of each line, not the words.
|
|
94
94
|
- Its logos, characters, face, voice or the creator's name or handle. Name the
|
|
95
95
|
style after what it does, for example `fast-proof-captions`.
|
|
96
|
+
- Any frame of it as the style's thumbnail.
|
|
96
97
|
|
|
97
98
|
The user must have the right to use the file for this. A style describes a
|
|
98
99
|
method; it grants no right to republish anything from the reference.
|
|
@@ -103,6 +104,15 @@ Create and check the style with the [style creator](../editorbrain/references/st
|
|
|
103
104
|
commands (`styles create`, `styles check`). Sync to the cloud only when that is
|
|
104
105
|
the user's scope, and push only this style's documents.
|
|
105
106
|
|
|
107
|
+
Before `styles push`, make the thumbnail of the final style (see the style
|
|
108
|
+
creator's thumbnail section). A new style has no pilot yet, so build one
|
|
109
|
+
representative frame in code: its defining mechanisms with generic material of
|
|
110
|
+
your own and the user's brand (colors, fonts, logo), in the style's proportion,
|
|
111
|
+
rendered locally to an image. Never use a frame, face, logo, text or music of
|
|
112
|
+
the reference. Attach it with `styles thumbnail <id> --file <image> --origin
|
|
113
|
+
generated_preview --brand <brand-id>`; `styles push <id>` uploads it. Say that
|
|
114
|
+
it is a preview built in code, not a render.
|
|
115
|
+
|
|
106
116
|
Tell the user the saved name, where it lives, what was measured, what was only
|
|
107
117
|
estimated and what was not reviewed. Give one phrase to use it next time. Do not
|
|
108
118
|
call it tested until it has been applied to different material and reviewed.
|