editorbrain 0.59.0 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +2 -2
  2. package/bin/editorbrain.mjs +16216 -6216
  3. package/package.json +1 -1
  4. package/skill/editorbrain/SKILL.md +30 -3
  5. package/skill/editorbrain/references/agency.md +12 -3
  6. package/skill/editorbrain/references/audio-production.md +8 -4
  7. package/skill/editorbrain/references/caption-styles.md +31 -4
  8. package/skill/editorbrain/references/choice-page.md +45 -0
  9. package/skill/editorbrain/references/cli-mcp.md +16 -2
  10. package/skill/editorbrain/references/editorial-profile.md +12 -1
  11. package/skill/editorbrain/references/first-edit.md +2 -0
  12. package/skill/editorbrain/references/first-session-choosing.md +56 -0
  13. package/skill/editorbrain/references/first-session-money.md +59 -0
  14. package/skill/editorbrain/references/first-session-pages.md +22 -0
  15. package/skill/editorbrain/references/first-session-records.md +63 -0
  16. package/skill/editorbrain/references/first-session-video.md +169 -0
  17. package/skill/editorbrain/references/library-sheets.md +38 -0
  18. package/skill/editorbrain/references/local-production.md +21 -1
  19. package/skill/editorbrain/references/mcp-studio-artifact.md +27 -2
  20. package/skill/editorbrain/references/onboarding.md +28 -6
  21. package/skill/editorbrain/references/pro-moves.md +41 -0
  22. package/skill/editorbrain/references/production-and-review.md +16 -1
  23. package/skill/editorbrain/references/production-continuity.md +66 -9
  24. package/skill/editorbrain/references/quality-checks.md +58 -0
  25. package/skill/editorbrain/references/real-media.md +32 -0
  26. package/skill/editorbrain/references/search-brief.md +1 -1
  27. package/skill/editorbrain/references/sfx-library.md +61 -1
  28. package/skill/editorbrain/references/starting-an-edit.md +4 -4
  29. package/skill/editorbrain/references/starting-points.md +52 -0
  30. package/skill/editorbrain/references/studio-review.md +16 -2
  31. package/skill/editorbrain/references/studio.md +4 -2
  32. package/skill/editorbrain/references/style-creator.md +2 -0
  33. package/skill/editorbrain/references/style-glance.md +80 -0
  34. package/skill/editorbrain/references/style-source.md +5 -2
  35. package/skill/editorbrain/references/task-map.md +6 -4
  36. package/skill/editorbrain/references/visual-pages.md +31 -0
  37. package/skill/editorbrain/references/voice-cleanup.md +83 -31
  38. package/skill/editorbrain/references/workflow-evidence.md +9 -3
  39. package/skill/editorbrain/references/workflows/correction.md +6 -0
  40. package/skill/editorbrain/references/workflows/delivery.md +15 -3
  41. package/skill/editorbrain/references/workflows/first-creation.md +172 -0
  42. package/skill/editorbrain/references/workflows/not-there-yet.md +97 -0
  43. package/skill/editorbrain/references/workflows/setup.md +6 -0
  44. package/skill/editorbrain/references/workflows/start.md +78 -7
  45. package/skill/editorbrain-motion/SKILL.md +1 -1
  46. package/skill/editorbrain-motion/references/authored-scenes.md +5 -4
@@ -29,6 +29,38 @@ Do not finalize the full edit with unresolved requested media hidden behind plac
29
29
 
30
30
  For example, a tutorial may need a real screenshot for a setting, a verified mascot for product recognition and an original metaphor for an abstract idea. These are separate needs; one asset does not satisfy all three. A presenter-only correction may need no acquisition. Derive the choices from this video's message, reference mechanisms and effective preferences, not from these examples as a template.
31
31
 
32
+ ## Photo, generated image or code
33
+
34
+ Decide per element what it should be made of. The test: would a viewer judge this thing by how it looks in real life? Then it must be a real picture. Is it an idea, a number, a word or a structure? Then code draws it better and stays exact.
35
+
36
+ | The element | Make it with | Why |
37
+ |---|---|---|
38
+ | What they sell or show: food, a product, a dish, a room, a place, a result | Their photo first (a phone photo is enough); else a generated image they approved | Appetite, texture and trust come from realism. Drawn with shapes it looks like a child's drawing. |
39
+ | A person, an animal, hands doing something | Their footage or photo; else generated, never passed off as the real person | Faces and bodies drawn in code look wrong at once. |
40
+ | Atmosphere: a backdrop, a texture, a scene that sets a mood | Generated image, or a plain colour or gradient in code when the style is flat | It supports; it must not compete with the product. |
41
+ | A real brand, app, logo, mascot or screen | The official file or a real capture | A generated or redrawn logo or screenshot is a fake. |
42
+ | Words, titles, prices, phone numbers, dates | Code, always | Generated images garble letters and numbers; text must stay exact and editable. |
43
+ | Numbers and structure: charts, steps, comparisons, timelines, maps, diagrams | Code | The data must be exact and animate in sync. |
44
+ | Interface moments: a chat, a notification, a button, a form | Code, built to look like the real interface | Crisp at any size and easy to animate. |
45
+ | Simple marks: icons, arrows, underlines, frames, stickers | Code, or the style's own drawing language | They are graphic by nature. |
46
+ | An abstract idea with no object («crecer», «orden», «riesgo») | Either: a generated metaphor when the style is photographic, shapes and type in code when it is graphic | Follow the style, and keep one language through the video. |
47
+
48
+ Examples:
49
+
50
+ - Bakery announcing roscas: the rosca is a photo or a generated image; the date, the name and the WhatsApp are code.
51
+ - «Las ventas subieron 40 %»: the chart and the number are code; a photo of the shop behind them is optional.
52
+ - App tutorial: real captures of the app; arrows, highlights and labels in code.
53
+ - Yoga studio with no photos: one generated image of a calm room as the backdrop; the offer and the link in code.
54
+ - A plumber's three services: icons and a list in code are fine; a before-and-after must be real photos, never generated.
55
+
56
+ Rules that come with it:
57
+
58
+ - Their real thing first. A generated image of a product is an illustration, not their product: say so («es una imagen generada, no una foto de tu rosca») and use their photo as soon as they have one. Never generate a result, a testimonial, a before-and-after or a person presented as real.
59
+ - Never draw with shapes what people judge by appearance. If there is no photo and they do not want a generated one, make the video with lettering and graphic elements only.
60
+ - A generated image costs something, in credits or in their own tool: recommend it with the number and make it after their yes ([integrations](integrations.md), [AI tools](studio.md)).
61
+ - Ask for the image the edit needs: the subject alone, the angle, soft light, a plain background so it can be cut out, the video's shape, and no text inside the image. Look at it at full size before using it: wrong details (extra fingers, melted letters, an odd version of the dish) mean another try or another source.
62
+ - Keep one visual language per video: do not mix photographic food with clip-art icons of food.
63
+
32
64
  ## Check capability without turning it into a prohibition
33
65
 
34
66
  Separate **source permission**, **working tools**, **spending authority** and **scene fit**. Missing preferences are undecided; an explicitly empty allowed list is a conflict. Exclusions remain exclusions even when support is rich. Disabled image/motion categories stay disabled; do not re-enable them through a source preference. Use [media preferences](media-preferences.md) for the exact fields.
@@ -28,7 +28,7 @@ Inspect the actual source before filling this brief. CLI reads the brief object
28
28
  }
29
29
  ```
30
30
 
31
- Replace this example with observations for the real project. In hardConstraints put only actual requirements. Keep your proposed calendar, grid, metaphor or animation out of that list unless the user required it. For an open brief, start from what needs to be communicated; narrow to a mechanism after comparing references. A known, deliberately chosen technique or scoped revision can use a focused mechanism query directly. Required fields are shown; `source.excerpt` and `source.sha256` are optional. `kind` is `script`, `video` or `mixed`; `inspected` contains only actually inspected modalities from `script`, `frames`, `motion`, `audio`. A silent video can have inspected frames/motion with no audio. State sampled intervals and omitted coverage. Hashes identify local source files, do not grant access to any remote file and are not server-verified.
31
+ Replace this example with observations for the real project. In hardConstraints put only actual requirements. Keep your proposed calendar, grid, metaphor or animation out of that list unless the user required it. For an open brief, start from what needs to be communicated; narrow to a mechanism after comparing references. A known, deliberately chosen technique or scoped revision can use a focused mechanism query directly. Required fields are shown; `source.excerpt` and `source.sha256` are optional. `kind` is `script`, `video` or `mixed`; `inspected` contains only actually inspected modalities from `script`, `frames`, `motion`, `audio`; still photos you looked at are `frames` (a script plus photos is `kind: mixed`). Any other value, such as `images`, is rejected with `INVALID_SEARCH_BRIEF`. A silent video can have inspected frames/motion with no audio. State sampled intervals and omitted coverage. Hashes identify local source files, do not grant access to any remote file and are not server-verified.
32
32
 
33
33
  Bounds: summary/styleQuery/excerpt up to 1,800 characters each; coverage 800; goal 600; audience 500; tone/pacing 400. Asset, constraint and uncertainty arrays have up to 12 entries of 400 characters each; use `[]` when empty. Up to two event queries of 1,000 characters each. An event query can be a string or `{query, channels}`. Optional channels are `visual`, `on_screen_text`, `spoken`, `audio`, `post_caption`; one matching channel is sufficient. For subtitle layout use `on_screen_text`/`visual`; a post description is `post_caption`, not the video's captions. Choose channels from the inspected need, not the reference title. Missing channels preserve broad search. A filtered empty result stays empty and is not silently broadened. Unknown timestamps still require inspection; a channel match is not evidence of exact timing. Older services may reject this object form: report the compatibility limitation and use a plain query with explicit manual channel review rather than claiming the filter applied. These limits keep retrieval focused; preserve full production notes locally.
34
34
 
@@ -19,9 +19,10 @@ and explain the affected sound decision. Never infer sounds from silent frames.
19
19
 
20
20
  ## Shared and workspace libraries (MCP or CLI)
21
21
 
22
+ 0. To see the whole bank before searching, read its sheet: `list_sfx({brief})` / `editorbrain sfx sheet --brief "…"` (no project needed). Judge by `use` and `caution`, shortlist, then fetch each sound with its project as below ([choosing from the libraries](library-sheets.md)).
22
23
  1. `search_sfx({projectId,query,sceneRole:"hook"|"body"|"cta",limit:6})`, or:
23
24
  `editorbrain sfx search --project my-video --query "clic de botón" --scene-role body`
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
+ 2. If no bank is configured, search reports available bank IDs. Choose a fitting authorized bank with `bankId` / `--bank`. Results marked `approximate` are the closest sounds, not exact matches: say so when you offer one. Empty results mean unavailable, not synthesized success. A configured bank cannot silently be replaced.
25
26
  3. `get_sfx({projectId,bankId,soundId,catalogSha256,sceneRole})`, or:
26
27
  `editorbrain sfx get SOUND_ID --project my-video --bank BANK --catalog-sha256 HASH`
27
28
  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.
@@ -65,6 +66,65 @@ Indexes a single directory of up to 100 audio files using ffprobe and hashes; no
65
66
 
66
67
  Use `sfx get` with the returned ID/hash and same local flags to resolve an original file. Local mode does not consult the server; refresh a connected project's documents before making decisions. A file change invalidates its pinned hash. Never upload this local manifest.
67
68
 
69
+ ## Generated fallback with earshot (optional, local)
70
+
71
+ The EditorBrain library above stays the **primary source**: its sounds are
72
+ curated, auditioned and catalogued. [earshot](https://github.com/Leonxlnx/earshot)
73
+ (MIT, external, CPU-only) renders sound designs from code on the user's computer.
74
+ Use it only when the library has no fitting sound for a role, or when you need a
75
+ variant the library lacks (another length, pitch or brightness of a whoosh, a
76
+ typing run of N keys). Never use it to skip searching the library, and never
77
+ when audio preferences disable SFX: `sfx generate` follows the same policy.
78
+
79
+ 1. `editorbrain sfx earshot doctor` reports whether earshot is installed (it checks
80
+ `EDITORBRAIN_EARSHOT`, `~/.local/share/earshot/venv`, `~/.venvs/earshot` and
81
+ PATH). Missing is normal; continue with the library.
82
+ 2. Installing downloads about 300 MB (earshot from GitHub at a pinned commit, plus
83
+ numpy/scipy/numba from PyPI) into its own Python 3.10–3.13 environment. Ask the
84
+ user first; only after a clear yes run
85
+ `editorbrain sfx earshot install --user-confirmed`. Without the flag an agent
86
+ gets the plan and exit code 2, nothing else. The PyPI package named `earshot`
87
+ is an unrelated project: never `pip install earshot`.
88
+ 3. **Pick by catalogue id, never by free text.** Free-text requests often select
89
+ the wrong sound (a «whip pan» request returned a camera shutter). Start from
90
+ the recommended set below (`editorbrain sfx earshot designs --recommended --role whip`);
91
+ browse the full catalogue with `editorbrain sfx earshot designs --query whoosh --domain motion`. Then render:
92
+ `editorbrain sfx generate --design whoosh/fast --project my-video [--seed 7] [--dur 0.3] [--bright 0.2]`.
93
+ Axes `--bright --hard --ring --size --space --width --energy --motion` take
94
+ -1..1; `--pitch` a note or Hz; `--events N` repeats an action (typing).
95
+ 4. The file lands in the project work folder (`sfx-generated/`), never overwrites,
96
+ and gets a `.provenance.json` sidecar (earshot version and commit, design id,
97
+ seed, parameters, hashes, loudness) plus an entry in
98
+ `.editorbrain-local/<project>/sfx-generated.json`. Use its `soundId`
99
+ (`earshot:whoosh/fast@7`) in the cue plan. Same design + seed + parameters
100
+ reproduces the sound.
101
+ 5. Listen to every generated sound alone and in the mix, like any library sound.
102
+ A rendered file is not an approved one.
103
+
104
+ **Recommended earshot designs.** All 39 below were approved by listening on
105
+ 2026-11-24 (earshot 1.0.0, seed 1). `editorbrain sfx earshot designs --recommended
106
+ [--role whip]` lists them without earshot installed. Generating one without
107
+ `--seed` (and without `--events`/`--dur` where listed) reproduces the approved
108
+ take; any other value is a new, unreviewed variant. Approval is of these takes,
109
+ not of their placement: still listen in the mix. Prefer the library equivalent
110
+ when one fits.
111
+
112
+ | Role | Designs (`*` used in the 2026-11-24 reel) |
113
+ |---|---|
114
+ | whip | `whoosh/fast`*, `whoosh/stick`, `swipe/hand`, `send/swoosh`, `whoosh/blade`, `whoosh/airy`* |
115
+ | arrive-leave | `swoosh/in`*, `swoosh/out`* |
116
+ | slam | `slam/title`*, `hit/drop`*, `boom/short`, `cut_hit/punch`, `impact/slam`, `pro_impact/short` |
117
+ | pop | `pop/soft`*, `pop/pluck`*, `pro_pop_in/round`, `like/pop` |
118
+ | tick | `tick/soft`*, `tick/key`, `pro_hover_tick/soft`, `click/trackpad`* |
119
+ | stamp | `stamp/press`*, `stapler/press`, `paper/card`* |
120
+ | typing | `keyboard/laptop`* (`--events 12`), `keyboard/mechanical` (`--events 12`), `pro_typing_key/blip` (`--events 10`) |
121
+ | sheen-ding | `shine/sweep`*, `shine/glint`*, `sparkle/burst`, `notify/pair`*, `bell/desk` |
122
+ | riser | `riser/snatch`*, `rise/air`, `pro_riser/air_gate`, `rise/reverse` |
123
+ | marker | `marker/whiteboard`* (`--dur 1.2`), `pencil/write`* (`--dur 1.0`) |
124
+
125
+ Other catalogue designs remain usable by id but are unreviewed: audition them
126
+ before use.
127
+
68
128
  ## Placement and verification
69
129
 
70
130
  Keep a local cue plan `{durationSeconds,hookEndSeconds,cues:[{at,durationSeconds,soundId,purpose}]}` in `.editorbrain-local/`. Times use the final timeline after cuts/speed changes: `at` is the placed sample start after trimming/alignment, not the event peak. Use the actual hook end; zero cannot stand in for an unknown protected hook. An optional `omissionReason` explains an empty plan. Record the actual selected catalog/asset hashes alongside production evidence.
@@ -250,10 +250,8 @@ Consultation, creative delegation and review are separate. Do not silently
250
250
  rewrite brand/account preferences to reconcile them. Current task instructions
251
251
  can supply scoped direction; persist only explicitly requested changes.
252
252
 
253
- - **Essential:** ask only unresolved information that materially changes the
254
- result. Reuse answers and inspect before asking. Use questionPlan for real gaps.
255
- - **Collaborative:** give a recommendation and a small set of consequential
256
- choices, at most three questions per round. Do not quiz about every shot.
253
+ - **Collaborative (default):** give a recommendation and room for the person's
254
+ taste to guide the decision. Ask about the actual gaps in context.
257
255
  - **Autonomous:** make reversible creative decisions from evidence, with no
258
256
  questions. Missing source/permission or a required review pauses only affected
259
257
  work. State the specific dependency and a recovery action; silence is not consent.
@@ -269,6 +267,8 @@ continuing, not a second wizard or a demand to recreate every artifact:
269
267
  Picking a style or liking a mechanism does not approve that sample.
270
268
  - **Direct:** implement and review without inserting a creative approval pause.
271
269
  Still deliver the visual review artifact and permit corrections afterward.
270
+ - **Variants per moment:** independent of the mode above; order and ON/OFF
271
+ behaviour are in the [editing flow](workflows/start.md#produce-the-editing-flow).
272
272
 
273
273
  If autonomous and directions/sample are both saved, explain the review pause
274
274
  once in a short notice (workflow may supply `interaction.reviewNotice`). Prepare
@@ -0,0 +1,52 @@
1
+ # Starting points, measured
2
+
3
+ Numbers to start an edit from when nothing else decides: the person's taste, their brand, the chosen style's own guide and the reference you studied all come first. They are measured on EditorBrain's reference library (real edited videos with word timings and annotated moments) and on the catalog demos, not copied from anyone's taste. Each is a range to begin inside, never a target to hit and never a reason to cut something the person wants.
4
+
5
+ Popularity of the references proves nothing about cause: these describe how well-made videos of each kind usually behave.
6
+
7
+ ## Which kind of video is it
8
+
9
+ | Kind | What it is |
10
+ |---|---|
11
+ | Talking to camera | One person speaking, few or no inserts |
12
+ | Talking with inserts | A person speaking, cut with b-roll, screens or graphics |
13
+ | Montage | Footage cut together, with or without a voice |
14
+ | Animation / lettering | Code-drawn motion, kinetic text, no footage |
15
+ | Screen / tutorial | A recorded screen with a voice |
16
+
17
+ Compare a video only with others of its kind and of similar length (half to double). Rhythm is not one number for all videos.
18
+
19
+ ## The table
20
+
21
+ Ranges are the middle half of the references (25th to 75th percentile); `n` is how many videos stand behind each. With n under 15 treat the range as a hint.
22
+
23
+ | | Talking to camera | Talking with inserts | Montage | Animation / lettering | Screen / tutorial |
24
+ |---|---|---|---|---|---|
25
+ | Speech pace while speaking (words per second) | 3.0–4.0 (n 7) | 3.0–3.8 (n 48) | 2.9–3.5 (n 34) | 2.7–3.3 (n 35) | 2.9–4.0 (n 11) |
26
+ | Pause at the end of a sentence | 0.2–0.4 s (n 7) | 0–0.3 s (n 48) | 0.1–0.4 s (n 33) | 0.4–0.7 s (n 34) | 0–0.7 s (n 11) |
27
+ | Gaps longer than half a second, share of all gaps | 0–4 % | 0–1 % | 0–5 % | 3–12 % | 1–9 % |
28
+ | Time between visible changes in the body | 3.0–5.1 s (n 6) | 1.7–2.7 s (n 48) | 1.2–1.9 s (n 53) | 1.5–2.9 s (n 41) | 1.6–2.2 s (n 12) |
29
+ | After the last word, until the file ends | 0.4–1.8 s | 0.1–2.3 s | 0.2–4.3 s | 0.4–3.9 s | 0.2–1.5 s |
30
+ | Length | 19–48 s | 38–82 s | 23–60 s | 20–67 s | 29–83 s |
31
+
32
+ Across all kinds:
33
+
34
+ - The first spoken word arrives at 0.1 s (median); only one video in ten starts speaking after 0.5 s. The opening is spoken faster than the rest (about 3.5 words per second in the first six seconds).
35
+ - Two thirds of the measured hooks have no cut at all in the first three seconds: in spoken videos the voice opens, not an edit.
36
+ - Inside a sentence there are almost no pauses (nine in ten are under 0.1 s).
37
+ - Ads are shorter (median 31 s) than organic videos (59 s) and hold longer after the last word (1.3 s against 0.3 s) because of their closing card.
38
+ - Text on screen at once, measured mostly on ads: a median of 4 words, rarely more than 9.
39
+ - No reference and no catalog demo ends with more than 3 seconds of still picture and silence together.
40
+
41
+ ## How to use them
42
+
43
+ - Cutting speech: take out pauses inside a sentence that run over about 0.3 s; leave the pause at the end of a sentence inside the range for its kind (animation with a voice breathes more); never cut into a word. Then check the joins ([audio](audio-production.md)).
44
+ - Starting: if the first word comes after half a second, trim the start, unless the silence is the idea.
45
+ - Pacing: if nothing visible changes for much longer than the range for its kind, the stretch needs a reason (they are reading something, a demonstration is running) or a change. A subtitle changing counts as motion to the eye, not as an edit. Animation and lettering with a voice sit at the fast end: a card that holds 4 s or more under a voice reads as a slide ([the bar](first-session-video.md#the-bar-for-the-first-cut)).
46
+ - Ending: stop within the range after the last word; hold longer only when there is something to read or something still moving.
47
+ - Text: a few words at a time. More than nine on screen at once is rare in the references.
48
+ - Sound effects: the library's analyses mark fewer than one effect every ten seconds in most references. Coverage of this number is thin and unverified by ear: use it only to avoid carpeting a video with sounds.
49
+
50
+ When the edit follows a catalog style, its demo is the first comparison, before these numbers: `editorbrain production compare --file FINAL --reference DEMO` ([quality checks](quality-checks.md)). When you studied a reference for this video ([search brief](search-brief.md)), its own timing leads.
51
+
52
+ Small samples: talking to camera (7 videos) and screen tutorials (11–12). Text-on-screen timing comes almost only from ads. None of this was reviewed by a person; the analyses are agent-measured.
@@ -8,8 +8,8 @@ Read [workflow evidence](workflow-evidence.md) for presentation and
8
8
 
9
9
  ## Open the right view
10
10
 
11
- - CLI review, short path (one version = two calls): `production review --project PROJECT --file renders/vN.mp4 [--previous renders/vM.mp4 --changes changes.json] --open`. It checks the workflow context (pulling web/feedback changes, stopping on unsaved local edits), measures both hashes, builds the comparison, writes `.editorbrain-local/PROJECT/studio-review-vN.html` and serves it. `changes.json` is `[{"at":"0:12-0:15","kind":"cut","summary":"…"}]`; kinds are `cut`, `text`, `image`, `audio`, `pace`, `other` (b-roll/overlay → `image`, captions → `text`, sfx/music → `audio`). Keep that process running, show the URL, and only after the user has actually seen it run `production review --project PROJECT --presented`: it records the presentation (expectedVersion and evidence UUID handled for you, safe to retry) and the `in_review` checkpoint. It never approves. A `warnings` entry `OUTPUT_FPS_MISMATCH` means conform before delivery.
12
- - CLI review, manual path: `production review-artifact --file review.json --out .editorbrain-local/PROJECT/studio-v2.html --context-file workflow.json`. `workflow.json` is the current `workflow check --project PROJECT` response with `editorialSnapshot`; its project must match, and the artifact uses `editorialSnapshot.contextVersion` (filled from this file when omitted), never the legacy `context.contextVersion`. Then keep the returned `production review-open` process running and present its verified loopback URL. The optional context file supplies preferences without another network request. Existing offline artifacts without it remain valid; their preferences panel honestly says the snapshot is absent.
11
+ - CLI review, short path (one version = two calls): `production review --project PROJECT --file renders/vN.mp4 [--previous renders/vM.mp4 --changes changes.json] --open`. It checks the workflow context (pulling web/feedback changes, stopping on unsaved local edits), measures both hashes, builds the comparison, writes `.editorbrain-local/PROJECT/studio-review-vN.html` and serves it. `changes.json` is `[{"at":"0:12-0:15","kind":"cut","summary":"…"}]`; kinds are `cut`, `text`, `image`, `audio`, `pace`, `other` (b-roll/overlay → `image`, captions → `text`, sfx/music → `audio`). Keep that process running and show the URL in a visible browser pane; only after the user confirms they see it run `production review --project PROJECT --presented --user-confirmed-viewed`: it records the presentation (expectedVersion and evidence UUID handled for you, safe to retry) and the `in_review` checkpoint. It never approves. If the host reports the Browser pane hidden, show it, or add `--browser` for the default browser. **User not at the computer, or unknown** (Remote Control alone is not "away"): add `--share` (also valid later as `production review --project PROJECT --share`), send the returned `cloudUrl` in their chat, and after they confirm they see it run the same `--presented --user-confirmed-viewed`. Read [make sure the user sees it](production-continuity.md#make-sure-the-user-actually-sees-the-studio). A `warnings` entry `OUTPUT_FPS_MISMATCH` means conform before delivery.
12
+ - CLI review, manual path: `production review-artifact --file review.json --out .editorbrain-local/PROJECT/studio-v2.html --context-file workflow.json`. `workflow.json` is the current `workflow check --project PROJECT` response with `editorialSnapshot`; its project must match, and the artifact uses `editorialSnapshot.contextVersion` (filled from this file when omitted), never the legacy `context.contextVersion`. Then keep the returned `production review-open` process running and present its verified loopback URL on this computer, or add `--share` for a phone-usable private link (review/delivery Studios). Record it with `production present --user-confirmed-viewed` only after the user confirmed seeing it. 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.
13
13
  - MCP review: `prepare_review_artifact` supplies the same renderer and the project's actual preferences automatically. See [the bounded template recipe](mcp-studio-artifact.md). Do not pass `studio.preferences` to MCP: the service owns that snapshot.
14
14
  - When asked **“muéstrame mis preferencias”**, use `editorbrain preferences open --project PROJECT` or `open_preferences_studio({projectId,destination:"local"|"cloud"})`; present the resulting Studio, rather than only describing settings in chat. Local MCP uses the same template recipe and no media. CLI needs the authenticated API, serves a token-protected loopback URL and stays running. Cloud returns an authenticated project URL. Neither renders, spends credits, uploads media, applies preferences nor approves a video.
15
15
 
@@ -19,6 +19,13 @@ own brand; a sidebar selection or another project's defaults cannot replace it.
19
19
  Older installations may not advertise these operations: explain that and use the
20
20
  available workflow; do not invent commands or claim a local file is cloud-backed.
21
21
 
22
+ ## Local review servers
23
+
24
+ - One review server per project at a time. `review-open`, `review --open` and `preferences open` list other servers already running for that project in `alsoRunning`.
25
+ - When you present a new version and the person's notes from the previous page are already in the chat or exported, close the previous server: `production review-close --file <previous HTML>`. Do not close it only because a new one started.
26
+ - When the review ends or the video is approved, everything must be closed. `production approve --final` and `projects finalize` do it and report `cleanup`; without the CLI's approval run `production review-close --project ID`. Without flags it only lists.
27
+ - Servers close themselves 24 hours after they started (`closesAt`). Reopening the same file with `production review-open --file …` keeps the same address when that port is free (`portReused`), so notes kept in the page are not lost.
28
+
22
29
  ## What the user can do
23
30
 
24
31
  Studio has video controls, a timeline, **Cambios / Texto / Revisión IA**, and
@@ -55,6 +62,13 @@ This never edits the media. Do not interpolate words from text or reuse source
55
62
  clock times after cuts. Without measured words the phrase-level controls remain.
56
63
  Removed phrases refer to their original source interval, never a made-up final time.
57
64
 
65
+ **Elige por momento.** A directions artifact with `moments` shows one row per
66
+ moment (hook, title, CTA…) with its versions side by side: **Reproducir juntas**
67
+ plays them in sync, the recommended one carries a badge, ←/→ and Enter choose,
68
+ and an optional note travels with the choice. «Copiar mi elección» includes every
69
+ moment and the direction, if any. When this step happens is set by the
70
+ [editing flow](workflows/start.md#produce-the-editing-flow).
71
+
58
72
  ## Comparing a corrected version
59
73
 
60
74
  Supply optional `previousVideo` with the same media descriptor as `video`: CLI/local
@@ -88,6 +88,8 @@ sin créditos de EditorBrain, o tu cuenta de AssemblyAI. El local usa tu equipo;
88
88
  AssemblyAI usa su propio saldo. La edición puede continuar con cualquiera.”
89
89
  Only offer routes that are accessible or explain the exact setup still needed.
90
90
 
91
+ Vox narration already returns word-level timestamps with the finished job. Tempo accepts that MP3 as well as PCM WAV, so do not install local Whisper only to time a Vox voiceover.
92
+
91
93
  All four routes feed the same editing, caption and review workflow. Keep raw
92
94
  results and provenance, then map measured word/phrase times to the neutral cue
93
95
  contract in [audio production](audio-production.md#word-level-caption-alignment).
@@ -155,13 +157,13 @@ read the quote's `limitations`, and listen to the actual result.
155
157
  1. Inspect the attachment and locate the actual local file. A chat attachment is not automatically an API asset. If the host cannot read/export it, explain that limitation; never fabricate an asset ID or treat a local path as a public URL.
156
158
  2. Run `editorbrain studio prepare --file clip.mp4 --out .editorbrain-local/studio/audio.wav`. This uses existing FFmpeg/FFprobe locally, preserves silence and timing, selects mono 16 kHz PCM, and leaves the original unchanged. It does not upload or spend. If there are several tracks, inspect them and supply `--audio-stream N` (absolute stream index). Keep the returned source hash/timing mapping locally. Missing FFmpeg requires installation under the host's rules, not an automatic installer. Initial limit: 30 minutes; do not silently truncate longer recordings.
157
159
  3. Upload only the prepared WAV: `editorbrain assets upload .editorbrain-local/studio/audio.wav --mime audio/wav`. Reuse its SHA-256 asset ID after an upload interruption. MCP-only hosts still need a local file/upload capability; never send binary/base64 audio inside tool arguments.
158
- 4. Write a request JSON: `{"tool":"tempo","projectId":"YOUR_PROJECT","assetId":"SHA256"}`. `editorbrain studio quote --file request.json` / `quote_tempo` measures the stored audio and returns a price and expiry. Tempo transcribes sound with word timestamps; it does not understand the visual content. Inspect video frames/motion yourself as needed.
160
+ 4. Write a request JSON: `{"tool":"tempo","projectId":"YOUR_PROJECT","assetId":"SHA256"}`. `editorbrain studio quote --file request.json` / `quote_tempo` measures the stored audio and returns a price and expiry. Tempo accepts PCM WAV and MP3, including the MP3 produced by Vox, and returns word timestamps. It does not understand the visual content. Inspect video frames/motion yourself as needed. A Vox job also stores its own word timestamps; do not run local Whisper just to time that narration.
159
161
  The quote freezes the brand glossary as key terms; see [glossary and corrections](audio-production.md#brand-glossary-and-transcript-corrections).
160
162
 
161
163
  ## Prism / Vox
162
164
 
163
165
  - Prism input: `{"tool":"prism","projectId":"YOUR_PROJECT","prompt":"Describe this scene without logos or lettering…"}`. Ratios: `1:1`, `9:16`, `16:9`; one image per request. Resolve/read branding, prose restrictions and media choices first. The server pins structured palette/preferences, not every free-text editorial rule. Keep exact typography/logos in the editable composition. Use authentic material for factual subjects; generated illustration is not evidence.
164
- - Vox input: `{"tool":"vox","projectId":"YOUR_PROJECT","text":"Exact narration in the resolved project language"}`. Omitted `voice` inherits the effective EditorBrain catalog voice saved in `audio.json`; inspect the quote's returned input. An explicit `voice` is a public alias returned by the catalog, such as `narrator`, never a provider voice ID. Discover supported languages and voices below. A conflicting saved language/voice must be reconciled with the user; do not silently replace their preference or rewrite pronunciation-sensitive text. Maximum 3000 characters; no voice cloning.
166
+ - Vox input: `{"tool":"vox","projectId":"YOUR_PROJECT","text":"Exact narration in the resolved project language"}`. Optional `targetDurationSeconds` is an approximate length: the quote estimates duration, clamps speed to the provider range (0.7–1.2) before any charge, and reports the achievable duration. The price stays based on characters. The finished job stores word-level timestamps; Tempo can transcribe that MP3, so local Whisper is not required. Omitted `voice` inherits the effective EditorBrain catalog voice saved in `audio.json`; inspect the quote's returned input. An explicit `voice` is a public alias returned by the catalog, such as `narrator`, never a provider voice ID. Discover supported languages and voices below. A conflicting saved language/voice must be reconciled with the user; do not silently replace their preference or rewrite pronunciation-sensitive text. Maximum 3000 characters; no voice cloning.
165
167
 
166
168
  ### Discover and save a Vox voice
167
169
 
@@ -92,6 +92,8 @@ editorbrain styles thumbnail <id> --file /path/to/image.webp --origin generated_
92
92
  editorbrain styles thumbnail <id> --video videos/<project>/renders/final.mp4 --at 9.8 --pilot-project <project> --push --dir <workspace>
93
93
  ```
94
94
 
95
+ **Seeing the saved style at a glance.** When the user wants to look at their style, or compare it with a catalog style, build a muestrario from the approved pilot: `editorbrain styles glance [catalog-id] --video videos/<project>/renders/final.mp4 --moments moments.json` ([style glance](style-glance.md)). It is a local page; it changes nothing in the style.
96
+
95
97
  `styles thumbnail` reads type and size from the image header and keeps the bytes in `production-assets/styles/<id>/<hash>.<ext>`. Every `styles push`, with or without `--with-resources`, uploads that image as a private asset (`thumbnailToUpload` in the dry run), verifies it by downloading it and rewrites `thumbnail.json` to its permanent ID. `styles pull` downloads and verifies it. A generic `push` leaves it local and warns. Keep the HTML source in `.editorbrain-local/` to regenerate the picture when the brand changes. `styles check` warns while the thumbnail is missing, still local or in another proportion.
96
98
 
97
99
  MCP-only agents: `draft_project_style` accepts `thumbnail: {assetId, origin, alt?, pilot?}` for an image already uploaded to the workspace, or write `thumbnail.json` with `write_document` describing an owned image exactly (`get_asset` reads its metadata). The server rejects a hash the workspace does not own, review previews that can expire, and a type, size or byte count that does not match the stored image.
@@ -0,0 +1,80 @@
1
+ # Muestrario: see a style in seconds, compare two or three
2
+
3
+ A muestrario (English: style board) shows a style as a mosaic of its moments: short silent loops of the hook, the text,
4
+ the supporting visuals, the cuts and the closing, plus its colours and the order of the edit. The person reads a whole
5
+ style in a few seconds instead of watching a full demo, and two or three styles can sit side by side, row by row:
6
+ hook against hook, text against text.
7
+
8
+ Use it when someone wants to **look** or **compare**: «enséñame el estilo…», «muéstrame uno minimalista», «compáralo
9
+ con…», «¿cómo se veía el que usamos?», or when you propose styles and they need to see them. It is a page to look at,
10
+ not a decision record: a project's direction still goes through the Studio when the review mode asks for it
11
+ ([which page when](visual-pages.md)).
12
+
13
+ ## Catalog styles
14
+
15
+ ```bash
16
+ editorbrain styles glance analisis-con-clips # one board
17
+ editorbrain styles glance pizarra-minimalista lanzamiento-con-entrevista # compare two
18
+ editorbrain styles glance a b c --lang en # compare three, in English
19
+ ```
20
+
21
+ It writes one page in a visible `Muestrarios` folder (`Style boards` in English) of the project and opens it in the
22
+ browser. The loops stream from editorbrain.com, so the page needs a connection; it needs no sign-in and spends nothing.
23
+ Use ids exactly as `styles sheet` lists them. More than three is refused: shortlist first. Looking needs no project
24
+ and no `workflow prepare`: it works in any folder.
25
+
26
+ The result lists, per style, its moments (`slot`, `at`, `label`) so you know what the person is looking at without
27
+ opening the page, and `webUrl`, the same view inside the EditorBrain library.
28
+
29
+ ## The person's own style or video
30
+
31
+ A saved style of their own, a pilot you edited or any finished video gets a board from its own frames:
32
+
33
+ ```bash
34
+ editorbrain styles glance --video renders/final.mp4 --moments moments.json
35
+ editorbrain styles glance analisis-con-clips --video renders/final.mp4 --moments moments.json # theirs vs a catalog style
36
+ ```
37
+
38
+ `moments.json` names 3 to 9 moments you checked by looking at the video:
39
+
40
+ ```json
41
+ {"name": "Mi estilo de clases", "hero": 0,
42
+ "moments": [
43
+ {"at": 1.2, "slot": "gancho", "label": "Pregunta grande sobre la pantalla"},
44
+ {"at": 6.8, "slot": "apoyo", "label": "Zoom al clic con anillo"},
45
+ {"at": 14.0, "slot": "ritmo", "label": "Corte con barrido lateral", "start": 13.4, "end": 15.0},
46
+ {"at": 41.5, "slot": "cierre", "label": "Tarjeta de la siguiente clase"}],
47
+ "palette": [{"name": "Fondo", "hex": "#1A1715"}, {"name": "Acento", "hex": "#FFD60A"}],
48
+ "type": "Inter 800 en mayúsculas"}
49
+ ```
50
+
51
+ - `slot` is one of `gancho` (first seconds), `texto` (captions, titles, labels), `presentador` (how the person appears),
52
+ `apoyo` (clips, drawings, screen, data, product), `ritmo` (how one shot passes to the next), `cierre` (call to action).
53
+ Comparison rows line up by slot, so choose them honestly.
54
+ - `at` is the second that best shows the moment; the loop runs about 2.4 s around it, or exactly `start`–`end` (1–3.2 s).
55
+ - `label` is what the viewer sees, one line in the person's language. `palette` and `type` are optional.
56
+ - Their video counts as one of the three styles on the page.
57
+ - Look at the frames before you name them: `editorbrain media sample --file renders/final.mp4 --at 1.2,6.8,14 --out .editorbrain-local/frames --sheet`
58
+ (up to 12 times per call).
59
+ - FFmpeg cuts the loops locally next to the page. Nothing is uploaded.
60
+
61
+ «El estilo que usamos ayer»: find the project and its style first (`styles mine`, the project's style pin). A catalog
62
+ style opens by id. Their own style opens from the approved render of that project with a `moments.json` you write.
63
+
64
+ ## Without the CLI
65
+
66
+ `list_style_packs` with `view: "sheet"`, `ids` and `detail: "full"` (CLI `styles sheet --ids … --detail`) returns
67
+ `glanceUrl` for each style and, when you asked for two or three ids, `glanceCompareUrl`. Give the person that link: it opens
68
+ the same muestrario in the EditorBrain library and needs them to be signed in. Never invent a local link.
69
+
70
+ If `styles glance` answers «unknown command», the installed CLI is older than this guide: use the `glanceUrl` /
71
+ `glanceCompareUrl` links above now, and suggest `editorbrain update` afterwards. If the tiles stay black, the person is
72
+ offline or the clips did not load: say so and show the style's demo link from the sheet instead.
73
+
74
+ ## Say it, then let them answer
75
+
76
+ - In one line: what the page shows and which one you would pick, with one reason in their words.
77
+ - A style without a moment (no presenter in a voice-only style) shows that cell empty with a note; no need to explain it.
78
+ - Ask them to answer in the chat. Do not assume they saw it; if they do not mention it, ask whether it opened.
79
+ - The demos carry each style's own demo brand. Say once that their video keeps their colours and lettering.
80
+ - Their pick is a candidate for this video, not a saved preference. Saving it as a default follows [memory](memory-and-review.md).
@@ -12,7 +12,8 @@ workflow and the user's review mode.
12
12
  and resources.json; it wins over the catalog because it may hold the user's
13
13
  changes, and resources.json names its source pin. `search_saved` also finds
14
14
  saved styles by ID or name. If the ID is unknown, match the name in
15
- `list_style_packs`. Save a style only when the user asks (`Guardar como mi
15
+ `list_style_packs`. When no style was named, choose one from the
16
+ [style sheet](library-sheets.md), never by keyword. Save a style only when the user asks (`Guardar como mi
16
17
  estilo`); the style's «Guarda estos documentos» refers to that.
17
18
  Older web demos: an ID `showcase-<x>` is an alias (`aliases` in
18
19
  `sourceStyles`; `list_style_packs` with `sourceId: showcase-<x>` returns the
@@ -127,7 +128,9 @@ steps below describe the local alternative; both obey the same adaptation rules.
127
128
  follow resolved voice/music/SFX preferences independently. sound.enabled=false
128
129
  mutes all sound including voice; for voice-only keep sound enabled, remove SFX
129
130
  cues/derived event cues and music in the adapted code/mix, and inspect the final
130
- audio. No code package grants spending or provider authorization.
131
+ audio. When a HyperFrames manifest sets `audio` to `{voice, music}` (optional
132
+ `musicGain` from 0 to 1), prepare mixes both stems in one PCM step and records
133
+ those two dependencies. That mix does not need scipy. No code package grants spending or provider authorization.
131
134
  7. Preserve style.md's intended grammar while adapting timing/layout to the real
132
135
  material. Start from the code that produced the demo, not a new approximation.
133
136
  Use the included local renderer deliberately after binding. Check diagnostics,
@@ -14,7 +14,7 @@ sequence or permission to execute. Continue the existing project and approvals.
14
14
  **Resume a project.** [Resume a project](workflows/resume.md). Recover the exact project, current feedback and artifacts without restarting or treating saved commands as authority.
15
15
 
16
16
  <!-- task:style -->
17
- **Adapt, save or share a style.** [Adapt, save or share a style](style-source.md). Use the exact implementation when selected. [Style creator](style-creator.md) owns authoring, [rules](style-rules.md) adaptations, [sharing](style-sharing.md) requested template transfers without private files. To learn a style from a video or images the user supplies ("edit like this"), load [reference](../../editorbrain-reference/SKILL.md).
17
+ **Adapt, save or share a style.** To see a style or compare two or three, open a [muestrario](style-glance.md). [Adapt, save or share a style](style-source.md). Use the exact implementation when selected. [Style creator](style-creator.md) owns authoring, [rules](style-rules.md) adaptations, [sharing](style-sharing.md) requested template transfers without private files. To learn a style from a video or images the user supplies ("edit like this"), load [reference](../../editorbrain-reference/SKILL.md).
18
18
 
19
19
  <!-- task:captions -->
20
20
  **Prepare subtitles.** [Prepare subtitles](captions.md). Use measured [word alignment](audio-production.md#word-level-caption-alignment), real font bytes and the intended treatment; disclose format losses.
@@ -35,7 +35,7 @@ sequence or permission to execute. Continue the existing project and approvals.
35
35
  **Design movement.** [Design movement](../../editorbrain-motion/SKILL.md). Only when animation serves the scene. Check [media preferences](media-preferences.md) when interpreting the saved choice; use current context and a feasible method. No mandatory motion.
36
36
 
37
37
  <!-- task:review -->
38
- **Review or correct.** [Review or correct](workflows/correction.md). Preserve unchanged work and approvals, capture actual user feedback, verify the new version and present canonical Studio.
38
+ **Review or correct.** [Review or correct](workflows/correction.md). Preserve unchanged work and approvals, capture actual user feedback, verify the new version and present canonical Studio. When they correct the look twice or are generally unhappy, use [not there yet](workflows/not-there-yet.md).
39
39
 
40
40
  <!-- task:delivery -->
41
41
  **Present or deliver.** [Present or deliver](workflows/delivery.md). Use canonical Studio for proposals, samples and final versions at the configured handoff; record presentation after actually showing it.
@@ -47,8 +47,10 @@ sequence or permission to execute. Continue the existing project and approvals.
47
47
  **Remember/explain decisions.** [Remember/explain decisions](memory-and-review.md). Suggestions require user scope to confirm. Inclusion, usage receipts and observed compliance are distinct.
48
48
 
49
49
  For a recognizable video structure, load [formats](../../editorbrain-formats/SKILL.md)
50
- only when it fits. To learn and save the style of a reference file the user
51
- supplies, load [reference](../../editorbrain-reference/SKILL.md). For another technical method, use [production routing](production-routing.md).
50
+ only when it fits. For a lesson, explainer or course trailer the user asks to edit
51
+ with a named «Clases y cursos» format, use `list_course_formats` to find it and
52
+ `get_course_format_skill` for its recipe: its intake questions come before editing.
53
+ To learn and save the style of a reference file the user supplies, load [reference](../../editorbrain-reference/SKILL.md). For another technical method, use [production routing](production-routing.md).
52
54
  For questions, offer the task's public tutorial or [user guides](user-guides.md), not
53
55
  a required viewing step. Requested support uses [support](support.md).
54
56
 
@@ -0,0 +1,31 @@
1
+ # Visual pages: which one, when, and how many options
2
+
3
+ EditorBrain has several pages you open for the person. Each answers one kind of moment. Pick the one that fits, open
4
+ one at a time, and keep the chat for the decision. This map only routes; each page's own guide says how to make it.
5
+
6
+ | The person needs to… | Page | Make it with | How many |
7
+ |---|---|---|---|
8
+ | See what a style looks like, or compare styles («enséñame…», «compáralo con…») | Muestrario | `styles glance a [b c]`; no CLI: `glanceUrl` / `glanceCompareUrl` ([style glance](style-glance.md)) | 1 board, or 2–3 side by side |
9
+ | Pick a look, subtitles, a sound or one of two openings of their own video | Choice page | `choices show --file options.json` ([choice page](choice-page.md)) | 2–3, clearly different; up to 5 only when they ask for more |
10
+ | See one correction before and after | Studio | `production review … --previous OLD --changes changes.json --open` ([Studio](studio-review.md)) | The two versions of one video |
11
+ | Decide the direction of a project edit, review a version, approve a final | Studio | `production review … --open` / `prepare_review_artifact` ([Studio](studio-review.md)) | 1–3 directions; one version per review |
12
+ | Understand how EditorBrain works (first session or later) | Guide page | `guides show <page>` ([guide pages](first-session-pages.md)) | At most one per step |
13
+ | See the result of their first video, brand and editor | Result page | `resultUrl` from the first session ([the video](first-session-video.md)) | Once, at the close |
14
+ | Show a version to someone outside the account | Review link | `review create` / `create_review_link` ([memory and review](memory-and-review.md)) | Only when they ask to share |
15
+
16
+ ## Rules that keep it light
17
+
18
+ 1. **One page per decision.** If the open page already answers the question, point back to it instead of making another.
19
+ 2. **Never the whole library.** Read the sheet, shortlist three to five, show two or three ([libraries](library-sheets.md)).
20
+ Three styles side by side is the most a person can compare; more teaches nothing.
21
+ 3. **Look first, decide where it is recorded.** A muestrario or a choice page helps them look. When the project's
22
+ review mode needs a directions phase, the Studio still records it: if they already picked in a muestrario, the
23
+ Studio carries that pick as the recommended direction (plus at most one alternative), not the same comparison again.
24
+ 4. **Say it in one line.** What the page shows and what you recommend, in their words. Then ask them to answer in the
25
+ chat; never assume they saw it. Do not paste file paths or `file://` links.
26
+ 5. **Show real things.** Library items appear with their real previews (demos, loops, sounds). Draw only what is new
27
+ for this person, such as their colours on a choice page.
28
+ 6. **Pages never stand in for consent.** Opening a page does not approve, spend, save a preference or record a
29
+ presentation; those follow their own guides.
30
+ 7. **Close what keeps running.** A local review page stays served until closed: before the session ends, also when it
31
+ ends waiting for someone's approval, run `production review-close --project ID`.