editorbrain 0.55.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/editorbrain.mjs +16526 -4287
- package/package.json +1 -1
- package/skill/editorbrain/SKILL.md +18 -6
- package/skill/editorbrain/references/cli-mcp.md +4 -2
- package/skill/editorbrain/references/editorial-contract.md +2 -1
- package/skill/editorbrain/references/editorial-families.md +2 -2
- package/skill/editorbrain/references/editorial-profile.md +21 -0
- package/skill/editorbrain/references/first-edit.md +1 -1
- package/skill/editorbrain/references/memory-and-review.md +15 -6
- package/skill/editorbrain/references/production-continuity.md +112 -23
- package/skill/editorbrain/references/render-delivery.md +10 -4
- package/skill/editorbrain/references/sfx-library.md +1 -1
- package/skill/editorbrain/references/starting-an-edit.md +1 -1
- package/skill/editorbrain/references/studio-review.md +4 -3
- package/skill/editorbrain/references/studio.md +1 -1
- package/skill/editorbrain/references/style-creator.md +9 -6
- package/skill/editorbrain/references/style-source.md +72 -9
- package/skill/editorbrain/references/task-map.md +3 -2
- package/skill/editorbrain/references/workflows/start.md +6 -1
- package/skill/editorbrain/references/workspace-files.md +1 -1
- package/skill/editorbrain-reference/SKILL.md +108 -0
- package/skill/editorbrain-reference/references/measure.md +291 -0
- package/skill/editorbrain-reference/references/observe.md +82 -0
- package/skill/editorbrain-reference/references/replicate.md +80 -0
- package/skill/editorbrain-reference/references/style-mapping.md +150 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: editorbrain
|
|
3
|
-
description: "Edit, correct or resume
|
|
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,8 +24,13 @@ 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
|
-
preserve scoped approvals.
|
|
31
|
+
preserve scoped approvals. When the user hands over a video or images as a model
|
|
32
|
+
to imitate («edita como este video», «analiza este video», «copia este estilo»),
|
|
33
|
+
load [reference](../editorbrain-reference/SKILL.md) before Start. For another task use the [task map](references/task-map.md),
|
|
27
34
|
CLI `help --tasks` **or** MCP `get_task_guide`; do not read all three.
|
|
28
35
|
`AGENTS.md` preserves old links, not a second required handbook.
|
|
29
36
|
|
|
@@ -59,9 +66,12 @@ an unavailable route is a blocker, never permission for a silent fallback.
|
|
|
59
66
|
|
|
60
67
|
Load only the specialty needed: [audio](references/audio-production.md),
|
|
61
68
|
[subtitles](references/captions.md), [media](references/real-media.md),
|
|
62
|
-
[motion](../editorbrain-motion/SKILL.md)
|
|
63
|
-
[formats](../editorbrain-formats/SKILL.md)
|
|
64
|
-
|
|
69
|
+
[motion](../editorbrain-motion/SKILL.md),
|
|
70
|
+
[formats](../editorbrain-formats/SKILL.md) or, to learn a style from a video or
|
|
71
|
+
images the user supplies, [reference](../editorbrain-reference/SKILL.md).
|
|
72
|
+
Ordinary cuts need no specialty.
|
|
73
|
+
When the user names a style or for a style implementation, read
|
|
74
|
+
[style source](references/style-source.md) first (saved copy, exact code, brand);
|
|
65
75
|
for optional tools use [production routing](references/production-routing.md).
|
|
66
76
|
The [editorial contract](references/editorial-contract.md) owns cross-specialty
|
|
67
77
|
conflicts and evidence standards; consult the relevant section when needed.
|
|
@@ -78,7 +88,9 @@ submission and the user's choice of scope.
|
|
|
78
88
|
## Review and deliver the actual version
|
|
79
89
|
|
|
80
90
|
Follow saved review mode: `direct` implements/reviews; `directions` presents
|
|
81
|
-
alternatives; `sample` needs a representative preview and approval.
|
|
91
|
+
alternatives; `sample` needs a representative preview and approval. **Style
|
|
92
|
+
proposals never go as chat text:** present them in Studio, directions phase, as
|
|
93
|
+
1–3 options with previews of real inspected references and one recommended. Reuse valid
|
|
82
94
|
approval; never approve for the user. Direct mode still delivers the canonical
|
|
83
95
|
Studio artifact. A path, uploaded file or generated HTML alone is not presentation.
|
|
84
96
|
Use [delivery](references/workflows/delivery.md) for the current phase, exact
|
|
@@ -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)`
|
|
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
|
|
|
@@ -400,6 +400,8 @@ Use `editorbrain version` to discover the installed release. Run `editorbrain do
|
|
|
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
|
|
|
403
|
+
To save only what you changed, use `push --only <path>` (repeatable) instead of a whole-folder push: it uploads exactly those local documents, validates them with their cross-references and ignores unrelated drafts or conflicts elsewhere in the folder. `documents put <path> --expected-revision N [--file local-file]` writes one document with an explicit revision (0 only creates); read the revision with `documents get`. When the folder holds the same content it also records the new baseline; otherwise it reports `localBaseline: unchanged` and how to reconcile.
|
|
404
|
+
|
|
403
405
|
CLI 0.45.1 adds partial push recovery for older APIs.
|
|
404
406
|
`push` continues only past confirmed unsupported document types or
|
|
405
407
|
schemas. Inspect `status: "partial"`, `synced: false`, `uploaded`, `skipped`
|
|
@@ -435,7 +437,7 @@ Codex can use `codex mcp login editorbrain`; Claude Code completes OAuth from `/
|
|
|
435
437
|
|
|
436
438
|
`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.
|
|
437
439
|
|
|
438
|
-
`editorbrain library media <video-id> --sha256 <media-hash> --out <new-file>` downloads an authorized frame/audio/video and verifies its hash (90 MiB maximum). It will not overwrite an existing file. Downloading is not reviewing: inspect it with available visual/audio tools and record the intervals actually checked. Neither CLI nor MCP
|
|
440
|
+
`editorbrain library media <video-id> --sha256 <media-hash> --out <new-file>` downloads an authorized frame/audio/video and verifies its hash (90 MiB maximum). It will not overwrite an existing file. Downloading is not reviewing: inspect it with available visual/audio tools and record the intervals actually checked. Neither CLI nor MCP analyse a reference on the server; to learn a style from the user's own file, the [reference skill](../../editorbrain-reference/SKILL.md) runs locally.
|
|
439
441
|
|
|
440
442
|
|
|
441
443
|
## Agent-led search and web preferences (0.9+)
|
|
@@ -121,7 +121,8 @@ media or install fonts/plugins. Use revision-aware writes, reconcile conflicts
|
|
|
121
121
|
and verify authorized project-scoped synchronization. Keep permanent IDs/hashes
|
|
122
122
|
and intervals, never temporary URLs or credentials. Read remote MCP writes back;
|
|
123
123
|
no local mirror/push is required. Don't broaden consent to satisfy a receipt.
|
|
124
|
-
Clients consume
|
|
124
|
+
Clients consume library evidence and never operate its ingestion; a reference
|
|
125
|
+
file the user supplies is analysed locally with [reference](../../editorbrain-reference/SKILL.md).
|
|
125
126
|
|
|
126
127
|
Style `preferred` rules guide adaptation; explicit `required` rules remain binding.
|
|
127
128
|
Their declared origin is provenance, not authenticated consent. Reasons in
|
|
@@ -14,8 +14,8 @@ family selection. The same agent uses these guides; no extra agents are required
|
|
|
14
14
|
| Follow an authentic lived process | [Personal](family-personal.md) | Attempt, consequence and character |
|
|
15
15
|
|
|
16
16
|
These five guides live inside the core skill and are read only when useful.
|
|
17
|
-
The
|
|
18
|
-
editorbrain-
|
|
17
|
+
The installed skills remain editorbrain, editorbrain-formats, editorbrain-motion
|
|
18
|
+
and editorbrain-reference. Do not load every family or launch extra agents.
|
|
19
19
|
A family suggests a broad method. When replicating a specific format, read its
|
|
20
20
|
[format guide](../../editorbrain-formats/SKILL.md): its defining structure takes
|
|
21
21
|
precedence over generic family recipes, under the user's resolved preferences.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Editorial profile fields
|
|
2
|
+
|
|
3
|
+
How to interpret the confirmed editorial profile of a brand: the JSON block between `<!-- editorbrain:editorial-profile:start -->` and `<!-- editorbrain:editorial-profile:end -->` in `.editorbrain/brands/<id>/design.md`. The brand document stores only the user's choices; these rules apply to every brand. Read this page when a project depends on a profile field (direction, questions, media, captions, CTA, narration, presenter or sources), not before every task. Explicit requests in the current project still govern the task.
|
|
4
|
+
|
|
5
|
+
Brands saved before this guide existed repeat the same rules inside design.md; `resolve` and `export` show them in the compact form. Both describe the same fields.
|
|
6
|
+
|
|
7
|
+
## Rules (as written for the user, in Spanish)
|
|
8
|
+
|
|
9
|
+
Estas preferencias pertenecen a esta marca. experience regula la explicación y acompañamiento, nunca la calidad: a principiantes explicar decisiones con ejemplos y lenguaje simple; a profesionales ofrecer control y decisiones precisas sin tutoriales innecesarios. role indica el contexto de trabajo; no mezclar marcas ni preferencias de clientes distintos. creatorContext describe el equipo y su revisión editorial; no crea miembros, no autoriza publicar ni comparte preferencias entre clientes. Interpretar solo las respuestas aplicables al rol vigente; las demás se conservan para un cambio posterior. Cada cliente tiene su propia marca. contentPresence describe quién suele aparecer (face, voice, ai, others, screen o product) y formatos secundarios; no demuestra qué material tiene este proyecto ni autoriza generar personas, avatares, clonar voces, habilitar fuentes o cambiar audio, revisión o gasto. Inspeccionar el material actual; ocultar un control no borra sus elecciones. referenceLinks son inspiración aportada por el usuario, no evidencia analizada ni permiso para descargar o redistribuir. Comprueba su contenido antes de atribuir técnicas. Los campos vacíos están por definir; no son autorizaciones. Adapta las preferencias al guion, los recursos y la plataforma del proyecto. Respeta las restricciones de avoid. Los pedidos actuales explícitos gobiernan la tarea; conserva las excepciones en el ámbito del proyecto. Los tokens obligatorios de marca siguen en tokens.json y requieren una excepción deliberada con motivo para cambiarlos.
|
|
10
|
+
|
|
11
|
+
creativeDirection separa quién decide del modo de revisión: automatic encarga al agente elegir la dirección de cada video consultando material y evidencia de la biblioteca de ediciones; guided parte de tus elecciones y resuelve los detalles abiertos. La calidad exigida es la misma. En automatic no exigir un cuestionario de estética ni imponer una plantilla; favoritos orientan y las restricciones explícitas siguen vigentes. No borrar preferencias ni guardar automáticamente las decisiones del proyecto como estilo de marca. Un estilo reutilizable se guarda cuando el usuario lo pide. creativePreferencesReviewed registra únicamente categorías revisadas explícitamente por el usuario, incluyendo su decisión de delegar campos abiertos. No inferir revisiones por valores precargados ni marcarlas al saltar pasos. Con guided explícito, completar las categorías pendientes antes de editar salvo questionMode=autonomous, que delega los detalles abiertos para ese proyecto sin marcar categorías confirmadas; conservar elecciones previas y no repetir las ya confirmadas. automatic conserva ese registro para un cambio posterior. La ausencia de creativeDirection conserva el comportamiento previo. project.json puede cambiar creativeDirection solo para ese video. No modifica revisión, integraciones, gasto ni permisos.
|
|
12
|
+
|
|
13
|
+
questionMode regula las consultas: essential pregunta solo por información fundamental que no pueda inferirse; collaborative propone y consulta hasta tres decisiones por ronda; autonomous no pregunta, resuelve detalles reversibles con evidencia y deja pendiente la acción o video que necesite material o autorización indispensable. Consultar primero material, pedido y preferencias; no repetir respuestas. En lotes continuar videos independientes. No inventar hechos, destinos de CTA, acceso o presupuesto; no cambiar revisión ni autorizar gastos. Una excepción en project.json se aplica solo a ese video.
|
|
14
|
+
|
|
15
|
+
Las referencias indican únicamente los aspectos que gustaron o se quieren evitar. Consulta su evidencia por videoId y exampleId antes de adaptar; un frame no demuestra ritmo ni sonido. No copies toda la edición ni heredes colores o tipografías automáticamente. Una selección sin aspectos solo indica interés, no una técnica confirmada.
|
|
16
|
+
|
|
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
|
+
|
|
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.
|
|
20
|
+
|
|
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.
|
|
@@ -30,7 +30,7 @@ producing or transferring material, preserving authorized exceptions.
|
|
|
30
30
|
|
|
31
31
|
Inspect the current request and material first. Populate the existing brief and `project.json.script` from the user's actual content, not placeholder copy. Establish goal, audience and destination from context; apply questionPolicy to consequential missing choices; autonomous records reversible assumptions and leaves indispensable inputs pending without questions. Keep unspecified brand colors/fonts unset rather than inheriting reference colors or the developer's personal brand. Any provisional visual choice belongs in the project direction until the user makes it reusable. Keep adaptive style files free of a predetermined layout, engine, component or technique. First-use setup must not turn an onboarding favorite into the required format of every video.
|
|
32
32
|
|
|
33
|
-
Use the selected brand's `brand.md`, `design.md`, `tokens.json`; the style's `style.md`, `effects.md`, `music.md`; and the project's `brief.md` and `direction.md`. The generated output profile is editable: 9:16/30fps is a starter, not a requirement for every video. Discover the user's actual target and available tools before rendering. Read the workspace file map when editing schemas or selecting another style.
|
|
33
|
+
Use the selected brand's `brand.md`, `design.md`, `tokens.json`; the style's `style.md`, `effects.md`, `music.md`; and the project's `brief.md` and `direction.md`. Field meanings for the editorial-profile JSON in `design.md` are in [editorial profile fields](editorial-profile.md). The generated output profile is editable: 9:16/30fps is a starter, not a requirement for every video. Discover the user's actual target and available tools before rendering. Read the workspace file map when editing schemas or selecting another style.
|
|
34
34
|
|
|
35
35
|
## Keep a resumable editing record
|
|
36
36
|
|
|
@@ -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
|
|
52
|
-
|
|
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
|
|
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
|
|
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 --
|
|
120
|
-
for the current document revision.
|
|
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
|
-
|
|
130
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
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,15 +248,30 @@ 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
|
-
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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.
|
|
255
|
+
- For a final rendered on the computer and never submitted, `projects finalize
|
|
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.
|
|
261
|
+
If the user declines the upload (`--no-upload`) or the upload is refused
|
|
262
|
+
before a revision exists (no storage, uploads disabled, file too large), it
|
|
263
|
+
completes the project as a local final: EditorBrain shows it delivered with
|
|
264
|
+
the file hash (stage `completed`, reason `final_local`), with no file to
|
|
265
|
+
download there, and the checkpoint is completed. An older service keeps the
|
|
266
|
+
project in progress with the approval in the checkpoint instead; tell the
|
|
267
|
+
user which one happened. A local final ends when the editorial context
|
|
268
|
+
changes, a newer sample is submitted or the edit is reopened. Any other
|
|
269
|
+
failure is reported, never recorded as a local final. After an upload, a
|
|
270
|
+
later failure names its stage; repeat the same command to reuse the
|
|
271
|
+
uploaded revision. MCP-only agents complete a local final with
|
|
272
|
+
`update_project_progress` `action:complete`, `localFinal:{sha256, bytes,
|
|
273
|
+
path, reason}` and `userConfirmed:true`, only after the user accepted that
|
|
274
|
+
exact file.
|
|
235
275
|
- `action:queue` / `projects queue` returns work to **Por editar** when the user
|
|
236
276
|
defers it and no corrections are pending. `start` can reopen a completed video.
|
|
237
277
|
- On `progress_changed`, refresh and reconcile; never automatically replay stale
|
|
@@ -301,6 +341,43 @@ batch; in-flight jobs may still finish and be charged. To work separately afterw
|
|
|
301
341
|
`batches detach ID --project PROJECT --expected-revision N` removes active membership
|
|
302
342
|
only after the cancelled project's jobs and turn have ended. History/costs remain.
|
|
303
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
|
+
|
|
304
381
|
Full-render visual coverage: `production verify` also creates the complete 1 fps
|
|
305
382
|
sheet locally. Supply `--platform` for social UI guides and `--profile` for
|
|
306
383
|
hash-bound holds/rendered ink bounds; see [local production](local-production.md).
|
|
@@ -349,15 +426,22 @@ help/capabilities instead of inventing unsupported actions.
|
|
|
349
426
|
Discover `production review-artifact` in the installed CLI before calling it:
|
|
350
427
|
|
|
351
428
|
```sh
|
|
352
|
-
editorbrain
|
|
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
|
|
353
431
|
```
|
|
354
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
|
+
|
|
355
438
|
Input (local, not uploaded):
|
|
356
439
|
|
|
357
440
|
```json
|
|
358
441
|
{
|
|
359
442
|
"schemaVersion": 1,
|
|
360
443
|
"projectId": "my-video",
|
|
444
|
+
"contextVersion": "EDITORIAL_SNAPSHOT_CONTEXT_VERSION",
|
|
361
445
|
"title": "Your video",
|
|
362
446
|
"version": "v1",
|
|
363
447
|
"stage": "review",
|
|
@@ -383,12 +467,16 @@ of transcript: group words into coherent phrases, never silently truncate.
|
|
|
383
467
|
|
|
384
468
|
- `directions`: before editing when the effective mode requests it, use 1–3
|
|
385
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`.
|
|
386
472
|
Attach relevant authorized visual samples and inspected HTTPS reference links.
|
|
387
473
|
No `video` or `transcript` in this stage. No raw library footage copied into a
|
|
388
474
|
portable artifact without distribution rights. Label concept vs actual footage.
|
|
389
|
-
- `review`:
|
|
390
|
-
|
|
391
|
-
|
|
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.
|
|
392
480
|
The user marks moments, requests phrase removal/recovery and copies the prepared
|
|
393
481
|
request, or downloads feedback JSON to attach in the same chat.
|
|
394
482
|
- `delivery`: same layout, exact delivered version, final approval explicitly
|
|
@@ -536,9 +624,10 @@ respecting autonomous mode. See [memory](memory-and-review.md).
|
|
|
536
624
|
|
|
537
625
|
## Continue from web feedback
|
|
538
626
|
|
|
539
|
-
“Copiar cambios para mi agente”
|
|
540
|
-
|
|
541
|
-
|
|
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
|
|
542
631
|
comments already present in continuity; fetch extra pages only when incomplete.
|
|
543
632
|
Create the correction as a descendant review, verify it, then use
|
|
544
633
|
`resolve_production_feedback` / `production resolve-feedback` with the result
|
|
@@ -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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
|
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
|
|
|
@@ -316,7 +316,7 @@ Studio review and scoped memory draft. Selecting a route does not execute an edi
|
|
|
316
316
|
or confirm a memory. A copied prompt identifies the workspace/project/version and
|
|
317
317
|
the available transport; MCP and CLI use the same approvals, not both transports.
|
|
318
318
|
|
|
319
|
-
For literal discovery across saved projects, brands, material and scoped memory,
|
|
319
|
+
For literal discovery across saved projects, brands, material, styles and scoped memory,
|
|
320
320
|
use `search_saved` / `editorbrain search saved --query TEXT [--brand ID] [--project ID]`.
|
|
321
321
|
Read the small typed groups; follow that group's cursor with the same query/scope,
|
|
322
322
|
or refine the query. Memory needs a selected project or brand. Permission-denied,
|
|
@@ -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
|
|
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
|
-
|
|
38
|
-
|
|
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
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Create or refine an editing style
|
|
2
2
|
|
|
3
|
-
Use when a user asks to save an edit for reuse, create a style, or improve an existing one. Work from the current project, approved result, useful library evidence and scoped feedback. Do not restart the whole edit or require another video merely to save the method.
|
|
3
|
+
Use when a user asks to save an edit for reuse, create a style, or improve an existing one. Work from the current project, approved result, useful library evidence and scoped feedback. Do not restart the whole edit or require another video merely to save the method.
|
|
4
|
+
|
|
5
|
+
**Saving an edit the user approved is not a draft.** When the user asks to save the style of an edit they have seen and accepted («guarda este estilo»), finish it in the same pass: capture with `styles create <id> --from-project <project> --approved`, replace every `STYLE_DRAFT` section with the method actually used, extract the scene as a code-backed component with bindings, and run `styles check` until `readiness` is `approved_pilot`; then push. Report it as saved and approved, and say only that transfer to new material is still untested. A draft is for a style the user has not approved yet or explicitly wants to keep refining.
|
|
4
6
|
|
|
5
7
|
## Discover and choose the scope
|
|
6
8
|
|
|
@@ -9,6 +11,7 @@ Identify the intended workspace, style and source project. Compare CLI `status`
|
|
|
9
11
|
- Updating the same editorial method: keep its ID, customized documents and examples. Read current revisions before writing.
|
|
10
12
|
- A separate reusable direction: choose a new ID. Create only that style, leaving brand files and project selections intact.
|
|
11
13
|
- A one-video correction: keep it in that project unless the user makes it a recurring preference.
|
|
14
|
+
- A style learned from a reference video or images the user supplies: follow [reference](../../editorbrain-reference/SKILL.md) to measure and read the file locally, then return here to write and check the documents.
|
|
12
15
|
|
|
13
16
|
With CLI 0.11+:
|
|
14
17
|
|
|
@@ -68,10 +71,10 @@ Generic text push/pull does not copy media, editables or fonts. Use the selected
|
|
|
68
71
|
|
|
69
72
|
## Check, save and report the actual outcome
|
|
70
73
|
|
|
71
|
-
1. Run `styles check <id> --dir <workspace>` after writing. 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.
|
|
72
|
-
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. 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.
|
|
73
|
-
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
|
|
74
|
-
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.
|
|
74
|
+
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
|
+
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.
|
|
77
|
+
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.
|
|
75
78
|
|
|
76
79
|
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.
|
|
77
80
|
|
|
@@ -96,7 +99,7 @@ editorbrain styles pull build-journal --dir ./another-workspace
|
|
|
96
99
|
editorbrain styles test build-journal --project episode-two
|
|
97
100
|
```
|
|
98
101
|
|
|
99
|
-
`create --from-project` without an ID chooses `<project>-style`. It scans `videos/<id>/` and `.editorbrain-local/<id>/`, including nested production folders and `direction.md`/`review.md`, plus safe declared dependencies for that project: direction/review, renders, recognized receipts/manifests, measured beat intervals. It saves candidate resources with hashes, pilot evidence and sanitized prompt examples, not an inferred finished recipe. It never switches the project or changes brand preferences. Audit the candidate list before uploading; dynamic imports and receipt formats the CLI does not understand remain explicit gaps. Capture is bounded to 2,000 entries/depth 8, 200 unique portable resources, 90 MiB/file and 512 MiB portable bytes. Scene dependencies come first; hashes deduplicate copies. Vendor/QA/source frames/copied scenes do not fill the budget unless explicitly referenced. Final exports under renders/exports/out-styles are streamed as hash-only examples with a separate 2 GiB budget and explicit warnings. They are never uploaded. If several reviewed scenes exist, choose --scene <workspace-relative scene.html>; never silently combine discarded versions. Receipts are recognized by content. Prompt examples require a resolvable output used by the selected scene (including image anchors of used generated clips); nested plans/arrays work. Unlinked or conflicting prompts are omitted with warnings. Paths and hashes do not certify creative approval or a complete dynamic dependency graph.
|
|
102
|
+
`create --from-project` without an ID chooses `<project>-style`. Add `--approved` only when the user approved that edit: the captured final renders, provenance and an `owned_asset` reference are recorded as `human_verified`, and the result status is `approved_pilot`. Without it everything stays `unreviewed`. A media recipe (`media-style.json`) is created only when the pilot linked generated-image prompts. It scans `videos/<id>/` and `.editorbrain-local/<id>/`, including nested production folders and `direction.md`/`review.md`, plus safe declared dependencies for that project: direction/review, renders, recognized receipts/manifests, measured beat intervals. It saves candidate resources with hashes, pilot evidence and sanitized prompt examples, not an inferred finished recipe. It never switches the project or changes brand preferences. Audit the candidate list before uploading; dynamic imports and receipt formats the CLI does not understand remain explicit gaps. Capture is bounded to 2,000 entries/depth 8, 200 unique portable resources, 90 MiB/file and 512 MiB portable bytes. Scene dependencies come first; hashes deduplicate copies. Vendor/QA/source frames/copied scenes do not fill the budget unless explicitly referenced. Final exports under renders/exports/out-styles are streamed as hash-only examples with a separate 2 GiB budget and explicit warnings. They are never uploaded. If several reviewed scenes exist, choose --scene <workspace-relative scene.html>; never silently combine discarded versions. Receipts are recognized by content. Prompt examples require a resolvable output used by the selected scene (including image anchors of used generated clips); nested plans/arrays work. Unlinked or conflicting prompts are omitted with warnings. Paths and hashes do not certify creative approval or a complete dynamic dependency graph.
|
|
100
103
|
|
|
101
104
|
Selected `styles push` touches only that style's flat text documents. `--with-resources` uploads supported media, SVG/HTML/JS/MJS/Python/Swift/Shell/JSON and fonts through private workspace assets, verifies downloaded hashes **before** pushing documents, and rewrites local resources to permanent IDs. Inspect `--dry-run` and the local manifest first; code/assets are private but may include customer material. Do not upload unauthorized files or credentials. Generic push reports a local-only dependency warning. Pull verifies bytes into `production-assets/styles/<id>/<hash>.<ext>`, preserves local edits, and keeps portable asset IDs. Interrupted multi-file saves can leave verified assets or some committed document revisions: inspect state and retry, never force overwrite. Restricted team editors cannot modify shared styles; their downloads are limited to styles selected by assigned editable projects.
|
|
102
105
|
|