editorbrain 0.56.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.56.0",
3
+ "version": "0.58.0",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: editorbrain
3
- description: "Edit, correct or resume a video with EditorBrain using the user's material, brand, preferences and review history. Also use for configuring EditorBrain, managing saved editing styles, or analysing a reference video the user wants to imitate."
3
+ description: "Edit, correct or resume videos with EditorBrain using the user's material, brand, preferences and review history. Load it FIRST, before inspecting or transcribing material or using another video skill, whenever the user mentions EditorBrain («edita con EditorBrain», «analiza estos videos para editarlos», «varios videos», «propuestas de estilo», «qué estilo le pongo», «antes de editar»; edit with EditorBrain, style proposals, several videos, plan before editing). Also use for configuring EditorBrain, managing saved editing styles, or analysing a reference video the user wants to imitate."
4
4
  ---
5
5
 
6
6
  # EditorBrain
@@ -12,6 +12,8 @@ creative freedom. No universal scene count, effect, music or source quota applie
12
12
 
13
13
  ## Enter at the current state
14
14
 
15
+ Load this skill before inspecting material. Each new video gets its own project;
16
+ read its review mode with `workflow prepare` / `prepare_edit` before proposing.
15
17
  Read **one** relevant workflow, or continue its already-loaded instructions:
16
18
 
17
19
  | Current request | Guide |
@@ -22,6 +24,9 @@ Read **one** relevant workflow, or continue its already-loaded instructions:
22
24
  | Present a proposal, sample or finished version | [Deliver](references/workflows/delivery.md) |
23
25
  | Set up, update or change preferences/connections | [Configure](references/workflows/setup.md) |
24
26
 
27
+ **More than one video → use `batches`:** one batch Studio, one upload with
28
+ `batches submit`, approve per video or all ([batch](references/production-continuity.md#multiple-videos-one-batch-isolated-projects)).
29
+
25
30
  These are entry points, not five mandatory stages. Skip resolved decisions and
26
31
  preserve scoped approvals. When the user hands over a video or images as a model
27
32
  to imitate («edita como este video», «analiza este video», «copia este estilo»),
@@ -60,7 +65,9 @@ an unavailable route is a blocker, never permission for a silent fallback.
60
65
  ## Load the relevant production route
61
66
 
62
67
  Load only the specialty needed: [audio](references/audio-production.md),
63
- [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),
64
71
  [motion](../editorbrain-motion/SKILL.md),
65
72
  [formats](../editorbrain-formats/SKILL.md) or, to learn a style from a video or
66
73
  images the user supplies, [reference](../editorbrain-reference/SKILL.md).
@@ -83,7 +90,9 @@ submission and the user's choice of scope.
83
90
  ## Review and deliver the actual version
84
91
 
85
92
  Follow saved review mode: `direct` implements/reviews; `directions` presents
86
- alternatives; `sample` needs a representative preview and approval. Reuse valid
93
+ alternatives; `sample` needs a representative preview and approval. **Style
94
+ proposals never go as chat text:** present them in Studio, directions phase, as
95
+ 1–3 options with previews of real inspected references and one recommended. Reuse valid
87
96
  approval; never approve for the user. Direct mode still delivers the canonical
88
97
  Studio artifact. A path, uploaded file or generated HTML alone is not presentation.
89
98
  Use [delivery](references/workflows/delivery.md) for the current phase, exact
@@ -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
@@ -339,7 +339,7 @@ editorbrain library get <video-id>
339
339
  editorbrain library get <video-id> --document <returned-path>
340
340
  ```
341
341
 
342
- `list_style_packs.sourceStyles` lists exact style implementations separately from technique packs. MCP `get_style_source(id, version, sha256)` requires Creator/Studio and returns a short-lived verified-download link plus the selected guides. See [style source](style-source.md); source downloads are inert, and explicit local preparation applies project binding guards before rendering.
342
+ `list_style_packs.sourceStyles` lists exact style implementations separately from technique packs. MCP `get_style_source(id, version, sha256)` is free on every plan (catalog styles) and returns a short-lived verified-download link plus the selected guides. See [style source](style-source.md); source downloads are inert, and explicit local preparation applies project binding guards before rendering.
343
343
 
344
344
  `styles create/check` work locally without authentication. Create adds an isolated draft without changing any project's selected style. Check validates documents and declared local files/hashes; its warnings and manual checks still require editorial judgment. See [style creator](style-creator.md) for resource manifests, saving revisions and the equivalent workflow using existing MCP document tools. Neither command uploads files, executes a renderer or certifies quality.
345
345
 
@@ -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.
@@ -48,8 +48,10 @@ On actual user correction/praise, call
48
48
  `editorbrain feedback add --project ID --text TEXT --capture-memory` immediately.
49
49
  The existing feedback note and suggested project memory commit together. Keep each
50
50
  observation faithful and within 800 characters. Optional `category` identifies
51
- captions/cuts/layout/motion/media/sound/color/story/other; `conditions` narrows its
52
- application. Neither changes scope or confirms anything. Retries reuse the exact
51
+ captions/cuts/layout/motion/media/sound/color/story/other and is stored on the note,
52
+ with or without capture. `conditions` and `preferenceIntent` (CLI
53
+ `--conditions`, `--preference-field/--preference-value`) describe the memory
54
+ suggestion, so they require capture. None changes scope or confirms anything. Retries reuse the exact
53
55
  text, even across days and transports; they never reactivate discarded suggestions.
54
56
  Plain `feedback add` and capture share one observation, including older day-based
55
57
  notes. Adding capture to a note-only observation creates its suggestion once;
@@ -74,12 +76,17 @@ confirmation, before continuing. This pulls dependent brand/style documents too;
74
76
  preserve and reconcile local conflicts, never force-overwrite or push a stale
75
77
  memory document. MCP-only agents refresh project context instead. A changed
76
78
  confirmed memory legitimately changes the effective context: verification returns
77
- `PRODUCTION_CONTEXT_CONFLICT`, `changedSources` and a concrete pull command.
79
+ `PRODUCTION_CONTEXT_CONFLICT` with the `changedSources` in the message and both
80
+ fixes. If the web is newer (web edit, confirmed memory) run
81
+ `editorbrain pull --project ID`. If your local edits are newer run
82
+ `editorbrain push --project ID --dry-run`, review the listed files, then the
83
+ scoped `editorbrain push --project ID`. Never overwrite either side blindly.
78
84
  Pending suggestions alone do not invalidate a render.
79
85
 
80
86
  `editorialSnapshot.memory.pending` includes text, conditions, origin and scope, at most 12
81
87
  entries (project first). `pendingCount`, `pendingTruncated` and `pendingScopes`
82
- identify the rest: read `get_editorial_memory` / `memory list` for those exact scopes.
88
+ identify the rest: read `get_editorial_memory` / `memory list --project ID` or
89
+ `--brand ID` for those exact scopes.
83
90
  At delivery show the proposals and offer project / brand / discard. The existing
84
91
  promotion API requires current source, target and project revisions plus the user's
85
92
  explicit choice. Discard uses `action:disable`; it is reversible. In autonomous mode
@@ -116,8 +123,10 @@ asset choices into everybody's preferences. See [production review](production-a
116
123
  for the comparison and [production continuity](production-continuity.md) when
117
124
  registering an exact-version approval.
118
125
 
119
- Read `get_editorial_memory({scope,scopeId})` / `editorbrain memory list --scope brand --id ID`
120
- for the current document revision. `save_editorial_memory` supports:
126
+ Read `get_editorial_memory({scope,scopeId})` / `editorbrain memory list --brand ID`
127
+ (`--project ID`, or `--scope style --id ID`) for the current document revision.
128
+ Both return `revision` and the parsed `memory: {schemaVersion, scope, scopeId, entries}`,
129
+ where `entries` includes scoped suggestions; the API also keeps the raw `content` string. `save_editorial_memory` supports:
121
130
  - `action:add`, `text`, optional `conditions`, explicit `status:suggested|confirmed`.
122
131
  - `action:confirm|disable|edit|remove`, `entryId`. Edits accept text/conditions; learning changes require explicit confirmation.
123
132
  All changes require `scope`, `scopeId`, `expectedRevision` (0 creates).
@@ -126,16 +126,28 @@ Keep direction selection distinct from final acceptance; never auto-approve opti
126
126
  or mark the project complete. A later correction may use the selected option as its
127
127
  parent. Inspect existing review and feedback state before changing versions.
128
128
 
129
- If the user approves in chat, record that existing exact-version decision with
130
- `approve_production_review` (`userConfirmed:true`), or:
129
+ ## Aprobación y entrega
130
+
131
+ Choosing a direction in Studio is a creative step, not an approval of delivery.
132
+ A sample approval (`production approve ... --user-confirmed`, MCP
133
+ `approve_production_review` with `userConfirmed:true`) lets you keep editing from
134
+ that exact version. When the user accepts the latest complete video as final, ONE
135
+ step approves it and completes the project:
131
136
 
132
137
  ```sh
133
- editorbrain production approve --project ID --revision UUID --context-version HASH --user-confirmed
138
+ editorbrain production approve --project ID --revision UUID --context-version HASH --user-confirmed --final --user-quote "sí, ese es el final"
134
139
  ```
135
140
 
136
- This is labelled **agent-recorded**; browser approval is labelled **human**.
137
- Do not approve autonomously, infer approval from playback or ask again for an
138
- unchanged effective approval. It approves this sample, not every future output.
141
+ MCP: `approve_production_review` with `final:true` and `userQuote`. Quote the
142
+ user's literal chat confirmation: it is recorded as **agent_chat** and shown on the
143
+ web (no quote: **agent-recorded**; the web's «Aprobar y entregar» is **human**).
144
+ Never approve autonomously, infer approval from playback or ask again for an
145
+ unchanged approval. `production submit` binds the review copy to its master hash:
146
+ approving the copy approves that master; deliver the master, never the copy. A
147
+ later `projects finalize` or local final of that same master is the same delivery.
148
+ Latest revision, pending changes, context and render delivery are still checked.
149
+ `projects complete` only records a final that is already approved; on
150
+ `FINAL_NOT_APPROVED` use `production approve --final`.
139
151
 
140
152
  ## Make the requested correction, preserve the rest
141
153
 
@@ -154,7 +166,20 @@ unaffected scenes, brand, sources and accepted direction. If the correction need
154
166
  a wider change, explain that dependency. Register a new sample with the old
155
167
  `revisionId` as `parentRevisionId`. Then `resolve_production_feedback`, or
156
168
  `production resolve-feedback --project ID --id FEEDBACK_UUID --file correction.json`:
157
- `{resultRevisionId,contextVersion,resultNote,preservedElements}`.
169
+
170
+ ```json
171
+ {
172
+ "resultRevisionId": "UUID of the new descendant sample",
173
+ "contextVersion": "editorialSnapshot.contextVersion from workflow check / check_workflow",
174
+ "resultNote": "Held the title 1.5 s longer at 0:12",
175
+ "preservedElements": ["Narration and cuts", "Brand colors", "All other scenes"]
176
+ }
177
+ ```
178
+
179
+ Limits: `resultNote` 1–1500 characters; `preservedElements` is one text or a
180
+ list of 1–50 non-empty strings, at most 2000 characters in total (a list is
181
+ stored as `- a\n- b`); the file stays under 8 KiB. Read `contextVersion` after
182
+ registering the new sample; the legacy `context.contextVersion` returns `stale_context`.
158
183
  Describe what changed and what stayed. A recorded correction is not proof that
159
184
  the viewer accepted it. A failed render must not replace the previous version.
160
185
 
@@ -223,19 +248,16 @@ tracking without claiming that the board was updated.
223
248
  It does not run a render, wake an agent or authorize paid tools.
224
249
  - New registered samples automatically appear **Para revisar**. Requested changes
225
250
  return to **En edición**. Sample approval alone never finishes a project.
226
- - When the user accepts the exact complete video as the final delivery, use existing
227
- production approval for that revision, read progress again, then `projects complete
228
- --project ID --revision UUID --expected-version HASH --user-confirmed` or MCP
229
- `update_project_progress` with `action:complete`, `revisionId`, `expectedVersion`,
230
- `userConfirmed:true`. Do not request the same approval twice; record an existing
231
- explicit final acceptance. A frame, preview, successful render or technical pass
232
- is insufficient. Only the latest current, available, approved video with zero
233
- pending project feedback can finish. Direct editing mode still skips proposal
234
- gates; final acceptance is not inferred from that preference.
251
+ - Final delivery: one `production approve --final` (see Aprobación y entrega). A
252
+ frame, successful render or technical pass is insufficient; only the latest
253
+ current video with zero pending feedback can finish. Direct editing mode skips
254
+ proposal gates, never final acceptance.
235
255
  - For a final rendered on the computer and never submitted, `projects finalize
236
- --project ID --file final.mp4 --user-confirmed` does the whole chain after the
237
- user accepts that exact video: it submits the final as a review revision,
238
- records the approval, completes the project and writes a completed checkpoint.
256
+ --project ID --file final.mp4 --user-confirmed [--user-quote TEXT]` does the
257
+ whole chain after the user accepts that exact video: it submits a review copy
258
+ bound to this master, approves and delivers it in one step and writes a
259
+ completed checkpoint. If that master's copy is already the latest version, it
260
+ approves it without uploading again.
239
261
  If the user declines the upload (`--no-upload`) or the upload is refused
240
262
  before a revision exists (no storage, uploads disabled, file too large), it
241
263
  completes the project as a local final: EditorBrain shows it delivered with
@@ -319,6 +341,43 @@ batch; in-flight jobs may still finish and be charged. To work separately afterw
319
341
  `batches detach ID --project PROJECT --expected-revision N` removes active membership
320
342
  only after the cancelled project's jobs and turn have ended. History/costs remain.
321
343
 
344
+ ### Review the whole batch at once
345
+
346
+ Several videos are reviewed together, never one server and one tab per video, and
347
+ never with every direction hung off one project.
348
+
349
+ 1. **Directions for the lot.** One artifact with `batchId`, `stage:"directions"`,
350
+ `projectIds`, `contextVersions` (each project's `editorialSnapshot.contextVersion`)
351
+ and 1–3 shared `directions`. After the user chooses, write
352
+ `{evidenceId, phase:"directions", presented:true, source:{kind:"local", artifactId,
353
+ sha256, relativePath}, decision:{userConfirmed:true, directionId}}` and run
354
+ `production present --batch ID --file presentation.json`: every project gets its
355
+ own receipt (same directionId, its own context) and the proposal is kept once per
356
+ project in `videos/ID/batch-direction.json`. MCP-only agents call
357
+ `record_review_evidence` per project with the same directionId.
358
+ 2. **One batch Studio.** `production review-artifact --file batch.json --out
359
+ .editorbrain-local/batches/NAME-v1.html` with
360
+ `{"schemaVersion":1,"batchId":"UUID","stage":"review","items":[{"projectId":"first","version":"v1","contextVersion":"HASH","video":{"file":"first/final.mp4"}}]}`
361
+ (1–25 items, one per project; `--context-file` is for one project). Open it with
362
+ ONE `production review-open`. The user approves or comments each video, or
363
+ applies to all; «Copiar decisiones» brings one block per project and a JSON
364
+ `editorbrain.batch-review-feedback` with each item's `editorbrain.review-feedback`.
365
+ Apply each block only to its project. Record the presentation with
366
+ `production present --batch ID` (`decisions:{projectId:{userConfirmed:true,
367
+ approved:true}}` only for videos the user approved).
368
+ 3. **Phone review: one upload for all.** When the user asks to see the batch on
369
+ EditorBrain, run `batches submit --batch ID` first: it prints the plan (file per
370
+ video from its latest review, sizes, saved preview quality, uploads allowed,
371
+ storage left) and uploads nothing. Show it; after the user agrees, repeat with
372
+ `--user-confirmed`. Override a file with `--file PROJECT=path.mp4`. Each item
373
+ runs `production submit` with its own receipt; repeat the same command to resume
374
+ failures. Give the user `reviewUrl` (`/app/batches/ID`).
375
+ 4. **Approve per video or all.** On `/app/batches/ID` the user plays every latest
376
+ review, sees pending comments, comments in each project's review tab and uses
377
+ «Aprobar y entregar» per video or «Aprobar y entregar todos los listos» (only
378
+ videos whose latest review has no pending changes). Each approval is the same
379
+ one-step final approval as a single project.
380
+
322
381
  Full-render visual coverage: `production verify` also creates the complete 1 fps
323
382
  sheet locally. Supply `--platform` for social UI guides and `--profile` for
324
383
  hash-bound holds/rendered ink bounds; see [local production](local-production.md).
@@ -367,15 +426,22 @@ help/capabilities instead of inventing unsupported actions.
367
426
  Discover `production review-artifact` in the installed CLI before calling it:
368
427
 
369
428
  ```sh
370
- editorbrain production review-artifact --file .editorbrain-local/review-v1.json --out .editorbrain-local/review-v1.html
429
+ editorbrain workflow check --project my-video > .editorbrain-local/workflow.json
430
+ editorbrain production review-artifact --file .editorbrain-local/review-v1.json --out .editorbrain-local/review-v1.html --context-file .editorbrain-local/workflow.json
371
431
  ```
372
432
 
433
+ `production present` only records an artifact that carries the shared
434
+ `editorialSnapshot.contextVersion` (the value `production present --project ID`
435
+ returns), never the legacy `context.contextVersion`. With `--context-file` the CLI
436
+ fills it when omitted and rejects the legacy hash; without it, copy that exact value.
437
+
373
438
  Input (local, not uploaded):
374
439
 
375
440
  ```json
376
441
  {
377
442
  "schemaVersion": 1,
378
443
  "projectId": "my-video",
444
+ "contextVersion": "EDITORIAL_SNAPSHOT_CONTEXT_VERSION",
379
445
  "title": "Your video",
380
446
  "version": "v1",
381
447
  "stage": "review",
@@ -401,12 +467,16 @@ of transcript: group words into coherent phrases, never silently truncate.
401
467
 
402
468
  - `directions`: before editing when the effective mode requests it, use 1–3
403
469
  `directions:[{id,title,description,preview:{file},references:[{label,url}]}]`.
470
+ Limits: title 100 and description 500 characters, up to five references
471
+ (label 140). Errors name the exact field, such as `directions[1].description`.
404
472
  Attach relevant authorized visual samples and inspected HTTPS reference links.
405
473
  No `video` or `transcript` in this stage. No raw library footage copied into a
406
474
  portable artifact without distribution rights. Label concept vs actual footage.
407
- - `review`: use video.purpose="preview" and quality=480 (or 720) to label the draft.
408
- A preview cannot be marked as final delivery. After approval, render from originals
409
- at the resolved final profile, never upscale the preview. Show the actual lightweight preview and its optional phrase cut map.
475
+ - `review`: pass the master without purpose and the CLI makes a 720 review copy
476
+ bound to its hash (`masterSha256` in the feedback JSON): approving the copy
477
+ approves that master. A labelled draft (`purpose:"preview"`, quality 480/720)
478
+ without a master is not final: after approval render from originals at the
479
+ resolved final profile, never upscale the preview. Show the actual lightweight preview and its optional phrase cut map.
410
480
  The user marks moments, requests phrase removal/recovery and copies the prepared
411
481
  request, or downloads feedback JSON to attach in the same chat.
412
482
  - `delivery`: same layout, exact delivered version, final approval explicitly
@@ -554,9 +624,10 @@ respecting autonomous mode. See [memory](memory-and-review.md).
554
624
 
555
625
  ## Continue from web feedback
556
626
 
557
- “Copiar cambios para mi agente” identifies the selected revision, asset hash and
558
- context. Read the pending comments, including timestamps, image points, kind and
559
- reply links. Reconcile replaced/stale versions before changing the edit. Reuse
627
+ “Copiar cambios para mi agente” is the short shared handoff: revision, the loaded
628
+ pending comments inline, MCP and CLI routes (use either) and one-line
629
+ `editorbrain.review-feedback` JSON with asset hash and context. Read the pending
630
+ comments, including timestamps, image points, kind and reply links. Reconcile replaced/stale versions before changing the edit. Reuse
560
631
  comments already present in continuity; fetch extra pages only when incomplete.
561
632
  Create the correction as a descendant review, verify it, then use
562
633
  `resolve_production_feedback` / `production resolve-feedback` with the result
@@ -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
@@ -93,10 +93,16 @@ the artifact; MCP hosts verify the same actual video before attesting. Delivery
93
93
  presentation and final acceptance recheck execution/storage. Earlier presentation
94
94
  and approval history remain intact; changed operational policy may require action.
95
95
 
96
- A sample/direction approval remains editorial approval, not final delivery.
97
- `checkpoint --status in_review` requires an existing presentation of the current
98
- video; `completed` requires the existing final-acceptance flow. Keep `in_progress`
99
- while presentation is pending. A checkpoint does not manufacture approval or upload.
96
+ ### Aprobación y entrega
97
+
98
+ Choosing a Studio direction is creative, not delivery approval. When the user
99
+ accepts the latest complete video, one `production approve --project ID --revision
100
+ UUID --context-version HASH --user-confirmed --final --user-quote "their words"`
101
+ (MCP `approve_production_review` `final:true`, `userQuote`) approves and completes
102
+ it, with this delivery check. A review copy bound to its master approves that
103
+ master. `checkpoint --status in_review` requires a presentation of the current
104
+ video; `completed` requires that final approval. A checkpoint does not manufacture
105
+ approval or upload.
100
106
 
101
107
  ## Adaptable captions and brand
102
108
 
@@ -24,7 +24,7 @@ and explain the affected sound decision. Never infer sounds from silent frames.
24
24
  2. If no bank is configured, search reports available bank IDs. Choose a fitting authorized bank with `bankId` / `--bank`. Empty results mean unavailable, not synthesized success. A configured bank cannot silently be replaced.
25
25
  3. `get_sfx({projectId,bankId,soundId,catalogSha256,sceneRole})`, or:
26
26
  `editorbrain sfx get SOUND_ID --project my-video --bank BANK --catalog-sha256 HASH`
27
- 4. Download the temporary link, verify SHA-256 and audition the actual sound. Persist asset ID/hash, not signed URLs. The catalog hash pins the result; changed catalogs require a new search. Rights are declarations, not independent license verification. Never redistribute licensed originals as public samples.
27
+ 4. Download with `editorbrain sfx download --project my-video --id SOUND_ID --bank BANK --catalog-sha256 HASH --out sounds/click.wav`: it gets a fresh signed link, downloads it, verifies SHA-256 and prints `{path, sha256, bytes}`. `get_sfx` returns the same command in `download.preferred`. Without the CLI use `curl -fL -o FILE "URL"` and compare the hash. Python must send a `User-Agent` header: the default `Python-urllib` agent receives HTTP 403 before reaching EditorBrain. Audition the actual sound. Persist asset ID/hash, not signed URLs. The catalog hash pins the result; changed catalogs require a new search. Rights are declarations, not independent license verification. Never redistribute licensed originals as public samples.
28
28
 
29
29
  Search is compact lexical matching with bilingual terms, not audio embeddings or recognition. Query actual purpose (click, paper, impact, whoosh), inspect candidates and listen. Filename hints do not prove a particular event is present, tasteful or audible. Discover available banks from the authenticated service. The curated `editorbrain-essentials-v1` bank is available only after its media is published and enabled. Private banks remain workspace-scoped. Never assume that a bank is present or bypass an unavailable bank with an unapproved alternative.
30
30
 
@@ -8,7 +8,7 @@ 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 and contextVersion must match the artifact. 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: `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
12
  - 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
13
  - 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
14
 
@@ -34,8 +34,9 @@ Shortcuts do not fire inside fields or dialogs.
34
34
  Image points are normalized `x/y` in `[0,1]`, relative to the actual visible image,
35
35
  not letterboxing. Comments carry `startMs`, optional `endMs`, `kind`, `point`,
36
36
  `segmentId`, and `parentCommentId` as applicable. No time means the whole video.
37
- Export contains both readable `[0:12–0:17]` / `[Todo el video]` notes and exact JSON.
38
- Use exact JSON milliseconds for edits; the readable labels intentionally round.
37
+ The copy is the short handoff shared with the web review: ids, readable
38
+ `[0:12–0:17]` / `[Todo el video]` notes, MCP and CLI routes (use either) and
39
+ one-line exact JSON. Use its milliseconds for edits; the labels round.
39
40
 
40
41
  For remote persistence use the existing `request_production_changes.target` fields.
41
42
  CLI: `production change --project PROJECT --revision UUID --context-version SHA
@@ -253,7 +253,7 @@ Read `billing status` / `billing_status` for this workspace's current `plans`,
253
253
  `planPerks`, `planFeatures`, `includedAiTools`, actual balance, and availability. Do not copy numeric
254
254
  plan terms into prompts or infer tool access from plan names. All four tools accept
255
255
  Free credits when enabled; eligibility is distinct from provider availability.
256
- `planFeatures` lists plan membership for premium motion, premium styles and Agency.
256
+ `planFeatures` lists plan membership for premium motion, premium styles and Agency. The catalog styles (`list_style_packs.sourceStyles`) are free on every plan; `premium_styles` does not gate them.
257
257
  It is not permission to act: use the current resource/capability response and respect
258
258
  workspace roles, grants, account holds and private availability. If a feature is not
259
259
  offered to this account, continue with the normal editing flow; never infer access