editorbrain 0.57.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.
Files changed (27) hide show
  1. package/README.md +2 -2
  2. package/bin/editorbrain.mjs +7088 -2576
  3. package/package.json +1 -1
  4. package/skill/editorbrain/SKILL.md +3 -1
  5. package/skill/editorbrain/references/agency.md +2 -2
  6. package/skill/editorbrain/references/audio-production.md +5 -1
  7. package/skill/editorbrain/references/caption-styles.md +114 -0
  8. package/skill/editorbrain/references/captions.md +4 -0
  9. package/skill/editorbrain/references/cli-mcp.md +6 -4
  10. package/skill/editorbrain/references/editorial-profile.md +1 -1
  11. package/skill/editorbrain/references/first-edit.md +3 -3
  12. package/skill/editorbrain/references/local-production.md +18 -0
  13. package/skill/editorbrain/references/production-and-review.md +2 -0
  14. package/skill/editorbrain/references/production-continuity.md +16 -1
  15. package/skill/editorbrain/references/production-routing.md +2 -1
  16. package/skill/editorbrain/references/studio-review.md +2 -1
  17. package/skill/editorbrain/references/style-creator.md +28 -1
  18. package/skill/editorbrain/references/style-source.md +13 -5
  19. package/skill/editorbrain/references/support.md +5 -0
  20. package/skill/editorbrain/references/workflow-evidence.md +5 -0
  21. package/skill/editorbrain-formats/SKILL.md +2 -1
  22. package/skill/editorbrain-formats/references/aspirational-list-demo.md +1 -1
  23. package/skill/editorbrain-formats/references/numbered-tutorial.md +1 -1
  24. package/skill/editorbrain-motion/SKILL.md +3 -0
  25. package/skill/editorbrain-motion/references/authored-scenes.md +2 -2
  26. package/skill/editorbrain-reference/SKILL.md +10 -0
  27. package/skill/editorbrain-reference/references/style-mapping.md +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -65,7 +65,9 @@ an unavailable route is a blocker, never permission for a silent fallback.
65
65
  ## Load the relevant production route
66
66
 
67
67
  Load only the specialty needed: [audio](references/audio-production.md),
68
- [subtitles](references/captions.md), [media](references/real-media.md),
68
+ [subtitles](references/caption-styles.md) (library styles, likes, «crea un estilo
69
+ de subtítulos con la tipografía X»; legacy presets in [captions](references/captions.md)),
70
+ [media](references/real-media.md),
69
71
  [motion](../editorbrain-motion/SKILL.md),
70
72
  [formats](../editorbrain-formats/SKILL.md) or, to learn a style from a video or
71
73
  images the user supplies, [reference](../editorbrain-reference/SKILL.md).
@@ -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, Studio 5, Agency 15 invited editors, besides
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
 
@@ -162,7 +162,11 @@ Cue and nested word times are **seconds on the final timeline**, ordered and
162
162
  bounded by each cue. `editorbrain styles captions prepare --style ID --file
163
163
  cues.json --out preview.html` works with these cues without a Studio job; inspect
164
164
  the local style and command help first. This prepares the selected caption
165
- layer, not a final video or a cloud upload.
165
+ layer, not a final video or a cloud upload. For a caption library style pinned
166
+ with `captions use`, pass the measured words (`{schemaVersion:1,timeUnit:"seconds",
167
+ timing:"measured",words:[{text,start,end,emphasis?}]}`) to `editorbrain captions
168
+ prepare --project ID --file words.json --out layer.html` instead
169
+ ([caption styles](caption-styles.md)).
166
170
 
167
171
  Tempo `startMs/endMs` and AssemblyAI `start/end` use milliseconds. Hosted
168
172
  `whisper-1` verbose word output and openai-whisper's `segments[].words` use
@@ -0,0 +1,114 @@
1
+ # Biblioteca de estilos de subtítulos
2
+
3
+ EditorBrain tiene una biblioteca de estilos de subtítulos (catálogo `1.0.0`,
4
+ 24 estilos originales, gratis en todos los planes) y los estilos que guarda cada
5
+ persona. Un estilo es un **punto de partida que se adapta**, nunca una plantilla
6
+ fija: los colores y las fuentes siguen la marca, y lo que la persona pida para
7
+ ese video (otro color, otra fuente, más grande, más arriba) siempre gana. Ningún
8
+ subtítulo también es una decisión válida cuando estorba al video.
9
+
10
+ Familias: `bold` (cortes rápidos, pop, cajas), `editorial` (serif, tarjetas,
11
+ contraste tipográfico), `minimal` (karaoke, vidrio, terminal) y `behind`
12
+ (palabras detrás de la persona; requieren una máscara revisada).
13
+
14
+ ```sh
15
+ editorbrain captions list [texto] [--family bold|editorial|minimal|behind] [--featured]
16
+ editorbrain captions show golpe # preset completo, fuentes y versión
17
+ editorbrain captions fonts # fuentes libres del catálogo
18
+ editorbrain library favorites --brand <id> # incluye los subtítulos con like
19
+ ```
20
+
21
+ Por MCP: `list_caption_styles`, `get_caption_style`,
22
+ `get_caption_style_preview`, `save_caption_style`, `import_caption_font` y
23
+ `get_library_favorites`. `check_workflow` ya trae los favoritos compactos.
24
+
25
+ ## Cómo elegir
26
+
27
+ 1. Lo que la persona pide en esta conversación.
28
+ 2. El estilo fijado en el proyecto (`videos/<id>/captions.json`).
29
+ 3. El preferido de la marca (`.editorbrain/brands/<marca>/captions.json`), con
30
+ sus ajustes duraderos (por ejemplo «siempre en rojo»).
31
+ 4. Sus favoritos de subtítulos que encajen con el material, el tono y la
32
+ legibilidad. Un like es una señal de gusto, no una obligación: un estilo que
33
+ encaja mejor gana a un favorito que no encaja.
34
+ 5. Búsqueda en el catálogo con el brief (nicho, ritmo, plataforma, si hay datos
35
+ o números, si la persona ocupa el centro del cuadro).
36
+
37
+ Cuando haya que decidir, presenta 2–3 opciones en Studio (fase de direcciones)
38
+ con su vista previa, nunca como texto en el chat. Un estilo `behind` solo se
39
+ propone si se puede generar y revisar la máscara de la persona.
40
+
41
+ ## Adaptar sin perder el estilo
42
+
43
+ El orden es: estilo → tokens de la marca (solo los roles que el estilo enlaza en
44
+ `tokenBindings`) → ajustes pedidos, que siempre ganan. Se puede cambiar
45
+ `colors`, `fonts`, `text` (tamaño, mayúsculas, espaciado), `layout` (x, y,
46
+ ancho, `behindY`), `stroke`, `shadow`, `box`, `keyword` y `chunk`. La gramática
47
+ (animación, revelado, disposición) se conserva; si la persona quiere otra
48
+ gramática, parte de otro estilo o crea uno nuevo.
49
+
50
+ ```sh
51
+ editorbrain captions use golpe@1.0.0 --project mi-video --color keyword=#E5484D
52
+ editorbrain captions use saved:mi-golpe --project mi-video --size 84 --y 0.62
53
+ ```
54
+
55
+ `captions use` deja el preset adaptado y congelado en `videos/<id>/captions.json`
56
+ (fuente, hash del preset original y qué se ajustó). Un cambio posterior del
57
+ catálogo o del estilo guardado no altera ese video.
58
+
59
+ ## «Crea un estilo de subtítulos con la tipografía X»
60
+
61
+ 1. Busca X en `captions fonts`. Si está, úsala.
62
+ 2. Si no, impórtala de Google Fonts: `captions font import "X" --weight 700`
63
+ (o `import_caption_font`). Solo entran licencias libres (OFL, Apache, UFL) y
64
+ la fuente queda privada en el workspace.
65
+ 3. Si es una fuente comercial o propia, pide el archivo a la persona; queda
66
+ privada en su workspace y nunca entra al catálogo.
67
+ 4. Parte del estilo que más se parezca a lo que pide y guárdalo con su nombre:
68
+
69
+ ```sh
70
+ editorbrain captions save mi-estilo --from golpe@1.0.0 --font base=X:700 \
71
+ --color keyword=#FF8A00 --name "Mi estilo" --notes "Pedido: tipografía X"
72
+ ```
73
+
74
+ Por MCP: `save_caption_style` con `basedOn`, `overrides` y `notes`.
75
+ 5. Muéstralo con una vista previa en Studio
76
+ (`captions preview --style saved:mi-estilo --demo-text "..." --out ...`).
77
+ La demo usa tiempos sintéticos y lo dice en la imagen.
78
+ 6. Cada cambio guarda una versión nueva del documento
79
+ (`.editorbrain/captions/<id>/caption.json`); el historial permite volver atrás.
80
+ `--replace` es necesario para sobrescribir un estilo existente.
81
+ 7. Ofrece dejarlo como preferido de la marca solo si la persona lo quiere.
82
+
83
+ ## Palabras clave y tiempos
84
+
85
+ Los tiempos salen de las palabras medidas (Tempo / AssemblyAI) mapeadas a través
86
+ de los cortes reales; nunca se estiman. Las palabras destacadas las eliges tú
87
+ por significado y se marcan con `"emphasis": true` en `words.json`. Los estilos
88
+ con `keyword.pick: numbers` destacan cifras por sí solos. Corregir el texto de
89
+ una palabra mal transcrita conserva su tiempo medido.
90
+
91
+ ## Preparar y componer
92
+
93
+ ```sh
94
+ editorbrain captions prepare --project mi-video --file words.json --out .editorbrain-local/mi-video/subtitulos.html
95
+ ```
96
+
97
+ El HTML es transparente y determinista (`editorbrainSeek(segundos)`). Para un
98
+ estilo `behind`:
99
+
100
+ 1. Genera y revisa la máscara del montaje completo (`production matte`,
101
+ `production review-sheet --matte`; ver local-production).
102
+ 2. Prepara `--layer back` y `--layer front` por separado.
103
+ 3. Compón: video → capa `back` → la persona recortada con la máscara → capa
104
+ `front`.
105
+
106
+ Si la máscara falla en pelo, manos o movimiento, usa otro estilo; nunca dejes la
107
+ palabra encima de la cara.
108
+
109
+ Revisa en una hoja de cuadros: legibilidad, que no tape caras ni la interfaz
110
+ (usa `forbiddenZones`), que no se corten palabras en el borde y que el ritmo
111
+ siga a la voz. Los estilos de catálogo se escalan solos si una frase no cabe.
112
+
113
+ Los `captions.json` v1/v2 dentro de un estilo de edición siguen funcionando con
114
+ `styles captions …` (ver [captions](captions.md)).
@@ -1,5 +1,9 @@
1
1
  # Captions declarativos: preparar, probar y exportar
2
2
 
3
+ Para elegir, adaptar o guardar un estilo de la biblioteca de subtítulos (y sus
4
+ favoritos), lee primero [caption-styles](caption-styles.md). Este documento cubre
5
+ los presets v1/v2 dentro de un estilo de edición.
6
+
3
7
  For an MCP-only session, read the current project preset and discover the host's
4
8
  available editing tools. Use measured words mapped through the actual cuts; never
5
9
  invent alignment or assume the connector can execute local commands. Follow
@@ -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 `both` 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.
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
- Codex can use `codex mcp login editorbrain`; Claude Code completes OAuth from `/mcp`. 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.
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, Studio 5, Agency 15), while reviewers use none. Existing editors and pending editor
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
@@ -16,6 +16,6 @@ Las referencias indican únicamente los aspectos que gustaron o se quieren evita
16
16
 
17
17
  mediaStyles guarda selecciones del catálogo por styleId y version: favorite indica un candidato, default un punto de partida y avoid una exclusión. Sin selección no se presupone un estilo. Consulta solo las fichas necesarias por ID y versión; las recetas son conceptos adaptables, no calidad probada. El proyecto puede heredar, sustituir o desactivar cada categoría mediante mediaStyleOverrides. Los colores y fuentes de las muestras no reemplazan tokens.json. motionSelection puede ser adaptive (el agente elige por escena, también puede no animar) o guided (parte de las elecciones guardadas y comprueba encaje). En adaptive, favoritos y antiguas bases orientan sin obligar; avoid siempre excluye dentro del alcance efectivo. Sin este campo, una base de movimiento previa conserva guided; el resto usa adaptive. Desactivar la categoría en el proyecto prevalece sobre ambos modos. motionProduction separa la producción: auto deja elegir por escena; code prefiere escenas completas editables en JavaScript; ai prefiere clips generados. Su ausencia equivale a auto. El agente verifica herramientas e integraciones del miembro actual; files solo indica material existente. Esta preferencia no acredita acceso a modelos ni autoriza gasto; datos y texto exactos requieren composición controlada. visualTaste conserva preferencias opcionales de densidad (minimal/layered), energía (calm/lively) y contraste (soft/strong); omitir un campo significa que está por decidir. La densidad regula capas simultáneas, no la frecuencia del apoyo visual. Orientan la composición e intensidad, sin elegir automáticamente una receta ni cambiar la marca. Un contraste suave debe mantener texto legible e información esencial visible.
18
18
 
19
- editorialDelivery.preferredDuration expresa una duración habitual orientativa: short 15–30 s, medium 30–60 s, long 1–3 min, extended más de 3 min. El guion y el encargo prevalecen; no recortar ideas ni palabras para cumplirla. editorialDelivery conserva preferencias opcionales: narration (original conserva la voz aportada; voiceover prefiere narración en off; generated prefiere voz generada, sin elegir proveedor o voz ni autorizar clonación o gasto; none omite narración, no el ambiente), onScreenText (none excluye texto gráfico añadido; minimal/key-points/detailed regula su cantidad, sin cambiar subtítulos), broll (footage/stills/mixed/none indica formato del apoyo, no su procedencia), visualSupport (sparse/balanced/rich indica la frecuencia del apoyo visual a lo largo del video, no su velocidad ni el número de capas simultáneas; no es una cuota y puede incluir gráficos o animación sin B-roll), presenterLayout (original conserva posición y tamaño del presentador; reframe permite reencuadres y zooms suaves manteniéndolo a pantalla completa; dynamic permite alternar pantalla completa, paneles y máscaras según la escena, sin una cuota de cambios). Solo se aplica si el material contiene una persona: no exige inventar un presentador, eliminar fondos ni generar avatares. Una eliminación de fondo requiere comprobar bordes en movimiento; conservar rostros, manos y zonas seguras. Omitirlo deja decidir por proyecto. No altera la velocidad del habla ni los permisos de medios. preferredOrientation (portrait/landscape/square) orienta nuevos proyectos; nunca modifica outputProfile ni sus dimensiones confirmadas. captionLanguage (source usa el idioma verificado del habla; brand usa language.json; es/en solicita subtítulos en español/inglés; bilingual solicita español e inglés). El idioma solicitado no cambia el idioma verificado del audio ni autoriza doblaje; traducir requiere texto verificado y conservar su significado. captionTreatment elige clean (limpios), word-highlight (palabras clave), karaoke (palabra a palabra sincronizada con voz verificada) o boxed (con fondo); captionPosition elige top, lower, center o adaptive según encuadre y zonas seguras. Sin subtítulos o captions.enabled=false desactiva idioma, tratamiento y posición de subtítulos en el contexto efectivo, conservando las opciones originales. ctaGoal indica adaptive, follow, comment, visit, contact, save, buy o none; ctaTreatment indica adaptive, end-card, overlay, spoken o spoken-overlay. ctaGoal=none desactiva cualquier CTA y su tratamiento efectivo, sin borrar lo guardado. La meta del CTA pertenece a la marca, pero su texto final, palabra clave y destino se confirman para cada proyecto; nunca inventarlos. spoken no autoriza crear voz ni reescribir el habla original y debe respetar narration=none. Omitir un campo deja decidir al agente; adaptive tampoco fija una elección. Los ajustes explícitos de salida del proyecto prevalecen, sin habilitar subtítulos por elegir su apariencia. mediaSources permite combinar own (material propio), web (medios auténticos, archivo y capturas encontrados en internet), stock y generated (IA). allowed es la lista completa permitida; preferred prioriza una de ellas. Cuando está presente sustituye assets; sin mediaSources, assets conserva su significado previo. avoid sigue excluyendo fuentes prohibidas, incluso si eran preferidas; una lista efectiva vacía requiere resolver la incompatibilidad, nunca habilitar otras fuentes. web no acredita derechos ni veracidad: comprobar origen, identidad y permisos del recurso. Ninguna fuente autoriza gasto o acceso a proveedores. visualSupport no habilita fuentes excluidas ni cambia broll=none. assets (solo como fallback) y avoid restringen estas preferencias; ante una preferencia general de efectos y Sin efectos de sonido, no añadir SFX. Sin música ni efectos conserva la voz que corresponda a narration. voiceover no autoriza clonación, proveedores ni gasto. Idioma, dimensiones y duración exacta se consultan en language.json, outputProfile y brief del proyecto. preferredDuration solo orienta el rango habitual.
19
+ editorialDelivery.preferredDuration expresa una duración habitual orientativa: short 15–30 s, medium 30–60 s, long 1–3 min, extended más de 3 min. El guion y el encargo prevalecen; no recortar ideas ni palabras para cumplirla. editorialDelivery conserva preferencias opcionales: narration (original conserva la voz aportada; voiceover prefiere narración en off; generated prefiere voz generada, sin elegir proveedor o voz ni autorizar clonación o gasto; none omite narración, no el ambiente), onScreenText (none excluye texto gráfico añadido; minimal/key-points/detailed regula su cantidad, sin cambiar subtítulos), broll (footage/stills/mixed/none indica formato del apoyo, no su procedencia), visualSupport (sparse/balanced/rich indica la frecuencia del apoyo visual a lo largo del video, no su velocidad ni el número de capas simultáneas; no es una cuota y puede incluir gráficos o animación sin B-roll), presenterLayout (original conserva posición y tamaño del presentador; reframe permite reencuadres y zooms suaves manteniéndolo a pantalla completa; dynamic permite alternar pantalla completa, paneles y máscaras según la escena, sin una cuota de cambios). Solo se aplica si el material contiene una persona: no exige inventar un presentador, eliminar fondos ni generar avatares. Una eliminación de fondo requiere comprobar bordes en movimiento; conservar rostros, manos y zonas seguras. Omitirlo deja decidir por proyecto. No altera la velocidad del habla ni los permisos de medios. preferredOrientation (portrait/landscape/square) orienta nuevos proyectos; nunca modifica outputProfile ni sus dimensiones confirmadas. captionLanguage (source usa el idioma verificado del habla; brand usa language.json; es/en solicita subtítulos en español/inglés; bilingual solicita español e inglés). El idioma solicitado no cambia el idioma verificado del audio ni autoriza doblaje; traducir requiere texto verificado y conservar su significado. captionTreatment elige clean (limpios), word-highlight (palabras clave), karaoke (palabra a palabra sincronizada con voz verificada) o boxed (con fondo); captionPosition elige top, lower, center o adaptive según encuadre y zonas seguras. Estas preferencias orientan la elección dentro de la biblioteca de estilos de subtítulos (references/caption-styles.md); el estilo preferido de la marca, si existe, vive en .editorbrain/brands/<id>/captions.json. Sin subtítulos o captions.enabled=false desactiva idioma, tratamiento y posición de subtítulos en el contexto efectivo, conservando las opciones originales. ctaGoal indica adaptive, follow, comment, visit, contact, save, buy o none; ctaTreatment indica adaptive, end-card, overlay, spoken o spoken-overlay. ctaGoal=none desactiva cualquier CTA y su tratamiento efectivo, sin borrar lo guardado. La meta del CTA pertenece a la marca, pero su texto final, palabra clave y destino se confirman para cada proyecto; nunca inventarlos. spoken no autoriza crear voz ni reescribir el habla original y debe respetar narration=none. Omitir un campo deja decidir al agente; adaptive tampoco fija una elección. Los ajustes explícitos de salida del proyecto prevalecen, sin habilitar subtítulos por elegir su apariencia. mediaSources permite combinar own (material propio), web (medios auténticos, archivo y capturas encontrados en internet), stock y generated (IA). allowed es la lista completa permitida; preferred prioriza una de ellas. Cuando está presente sustituye assets; sin mediaSources, assets conserva su significado previo. avoid sigue excluyendo fuentes prohibidas, incluso si eran preferidas; una lista efectiva vacía requiere resolver la incompatibilidad, nunca habilitar otras fuentes. web no acredita derechos ni veracidad: comprobar origen, identidad y permisos del recurso. Ninguna fuente autoriza gasto o acceso a proveedores. visualSupport no habilita fuentes excluidas ni cambia broll=none. assets (solo como fallback) y avoid restringen estas preferencias; ante una preferencia general de efectos y Sin efectos de sonido, no añadir SFX. Sin música ni efectos conserva la voz que corresponda a narration. voiceover no autoriza clonación, proveedores ni gasto. Idioma, dimensiones y duración exacta se consultan en language.json, outputProfile y brief del proyecto. preferredDuration solo orienta el rango habitual.
20
20
 
21
21
  La preferencia de recursos permite proponer, no autoriza gastos ni servicios externos. La modalidad de revisión se consulta en las preferencias de trabajo del espacio/proyecto. No inicies renders ni generaciones de pago sin autorización correspondiente.
@@ -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 Codex. 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.
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. Pull the new project's specific context after saving. Missing footage is handled with its verified private upload link, not by sending the user to create the project manually.
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`). Submit a corrected preview
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
@@ -22,7 +22,8 @@ with accessible own/local tools or usable transcripts. If the selected route is
22
22
  blocked, never silently fall back to a local transcriber; use an explicitly chosen
23
23
  or already authorized alternative and keep the actual engine in the evidence.
24
24
 
25
- **Subtitles:** read [caption presets](captions.md) and
25
+ **Subtitles:** read [caption styles](caption-styles.md) (library, likes, saved
26
+ styles) and [caption presets](captions.md) and
26
27
  [word alignment](audio-production.md#word-level-caption-alignment).
27
28
  Use the delivered voice's measured times and exact font bytes; never evenly space
28
29
  words to manufacture alignment. Synthetic previews are explicit demos, and SRT/ASS
@@ -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-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.
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): derive them from the brand palette
42
- and fonts, show that mapping to the user with the first proposal, and never
43
- copy the demo's values.
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
 
@@ -25,7 +25,8 @@ permissions and review; this specialty adds no stages.
25
25
  ## What a format owns and what it never owns
26
26
 
27
27
  The format owns beat functions, sync anchors, recurring grammar, fit criteria and
28
- structure-specific review. Resolve colors, fonts, logos, captions, audio, copy,
28
+ structure-specific review. Resolve colors, fonts, logos, captions (the brand's caption style from the
29
+ [caption library](../editorbrain/references/caption-styles.md) when one is set), audio, copy,
29
30
  language, output and safe areas from the user's context. Authentic footage,
30
31
  products, screenshots and logos retain their appearance.
31
32
 
@@ -90,7 +90,7 @@ Map these roles to the user's tokens and `design.md`, never to a reference's or
90
90
  |---|---|
91
91
  | Hook headline lockup | Dominant and accent styles, legibility treatment |
92
92
  | Item marker | Numeral and item name; persistent or entering per item |
93
- | Captions | The brand's caption rules |
93
+ | Captions | The brand's caption rules or its pinned caption style (caption library) |
94
94
  | Tags on real captures | Source or explanation labels |
95
95
  | Overlay cards | Numbers, badges, stamps, logo tiles |
96
96
  | Grade of illustrative stills | Consistent across the video |
@@ -91,7 +91,7 @@ Map these roles to the user's tokens and `design.md`; never to a reference's or
91
91
  | Keyword emphasis | |
92
92
  | Result graphics | Main object, secondary object, success state |
93
93
  | Background for chapter and result beats | Footage, solid, texture or the brand's ground |
94
- | Captions | The brand's caption rules |
94
+ | Captions | The brand's caption rules or its pinned caption style (caption library) |
95
95
 
96
96
  ## Failure modes seen in practice
97
97
 
@@ -52,6 +52,9 @@ Let this message determine objects, composition and choreography. Brand graphics
52
52
  use resolved roles; authentic footage, skin, screenshots and logos retain their
53
53
  identity. Reference settings are starting points, not customer requirements.
54
54
  Timing changes require updating affected captions, movement and sound cues.
55
+ Subtitles come from the caption library (`editorbrain captions`, see
56
+ [caption styles](../editorbrain/references/caption-styles.md)); do not rebuild a
57
+ library caption style as a custom motion scene.
55
58
 
56
59
  ## Review and preserve
57
60
 
@@ -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 or
18
- Studio membership. The CLI's bundled local catalog and cards are discovery data,
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.
@@ -82,7 +82,15 @@ listened, write that the sound character was not reviewed and leave the choice
82
82
  to the user's audio preferences. Never name or describe the reference's track
83
83
  as something to reuse.
84
84
 
85
- **Captions.** Always describe the caption behavior in `effects.md` and as
85
+ **Captions.** First compare the observed captions with the caption style
86
+ library (`editorbrain captions list` / `list_caption_styles`, see
87
+ [caption styles](../../editorbrain/references/caption-styles.md)). When one is
88
+ close, save the user's own caption style from it with `captions save <id> --from
89
+ <catalogId>@<version>` plus the observed differences (case, size, position,
90
+ colors, an OFL font or the user's licensed font) and name it after what it does.
91
+ Never copy the reference's font files, colors as brand or its caption text.
92
+
93
+ Always describe the caption behavior in `effects.md` and as
86
94
  tokens such as `caption.words_per_card` and `caption.position_y`: that is what
87
95
  any engine can follow. Add a `captions.json` preset only when both of these
88
96
  hold, following [captions](../../editorbrain/references/captions.md) and its