editorbrain 0.51.0 → 0.53.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.
@@ -305,14 +305,13 @@ description alone is not a visual review. The local interface uses EditorBrain's
305
305
  product branding; its colors are not the customer's video palette. No extra model
306
306
  is needed.
307
307
 
308
- Since CLI 0.49.1, the local artifact uses Atelier: warm paper/ink chrome and the
309
- original Thought Loop logo identify EditorBrain; preserve the customer's footage
310
- and visual direction. Its local
311
- **Mira → Cambia → Envía** navigation means watch/select, optionally annotate, then
312
- review and copy/download feedback. These are views inside the artifact, not new
313
- workflow stages or required checkpoints. The input phases remain `directions`,
314
- `review`, `delivery`. Do not require notes, repeat an already valid approval or add
315
- an intermediate review when the user explicitly chose direct editing.
308
+ The canonical Studio uses dark Atelier chrome and the approved Thought Loop logo;
309
+ preserve the customer's footage and direction. **Cambios / Texto / Revisión IA**
310
+ and **Mis preferencias** are views, not additional workflow stages. Existing
311
+ `directions`, `review`, `delivery` phases, direct mode and valid approvals remain.
312
+ Use [Studio review](studio-review.md) for image points, dragged intervals, measured
313
+ word cuts, version comparisons and preference proposals. Add `--context-file` with
314
+ the current workflow snapshot to a CLI artifact to display actual preferences.
316
315
 
317
316
  The optional **Cómo funciona** button explains the current phase: choosing a
318
317
  proposal in `directions`, requesting preview changes in `review`, or reviewing the
@@ -322,10 +321,10 @@ them to finish a tutorial. It does not advance workflow, create approval evidenc
322
321
  send feedback or upload files.
323
322
  The dialog closes with Escape, its close control or **Entendido**, returning focus
324
323
  to the button. Opening it pauses playback; closing it does not resume playback
325
- automatically. The optional **¿Cómo elijo el momento?** help in Cambia explains
324
+ automatically. The optional **¿Cómo elijo el momento?** help explains
326
325
  timestamped versus general comments.
327
326
 
328
- On **Envía**, the user copies the request into the current chat or downloads the
327
+ In **Enviar cambios**, the user copies the request into the current chat or downloads the
329
328
  feedback JSON. Copying/exporting neither sends to the agent nor uploads media nor
330
329
  approves a remote revision. Only record presentation after handing over the actual
331
330
  usable artifact; preserve the current rules in [visual evidence](workflow-evidence.md).
@@ -5,6 +5,12 @@ command availability first; account/project preference resets and per-render exp
5
5
  overrides require CLI 0.49.3+ and the matching server capability. Older CLI versions
6
6
  do not include all of these commands.
7
7
 
8
+ For ordinary workspace usage, quota, files, eligible cleanup and after-approval
9
+ retention, direct the user to [Almacenamiento](https://editorbrain.com/app/storage).
10
+ It requires sign-in and the appropriate workspace role, but no cloud-render beta
11
+ access. [Render en la nube](https://editorbrain.com/app/cloud) is the separate beta
12
+ execution surface; storage access does not grant rendering, plan access or spending.
13
+
8
14
  When workflow returns `renderStorage`, read its effective settings and provenance.
9
15
  Account defaults belong to the current member; project overrides are shared. Re-read
10
16
  at transfer/render boundaries even if the creative context hash did not change.
@@ -85,15 +91,41 @@ the private project link. Registration and playback never imply user approval.
85
91
 
86
92
  Cleanup is optional and separate from editing. Show exact names, sizes and IDs,
87
93
  obtain explicit approval, then owners may use `storage cleanup --ids <sha>,<sha>
88
- --confirm` (max 20), or the web storage panel. Only unused previews/temporaries can
94
+ --confirm` (max 20), or [Almacenamiento](https://editorbrain.com/app/storage). Only unused previews/temporaries can
89
95
  be removed. Originals, finals and referenced files remain protected, including
90
96
  history. A conflict requires refreshing the selection, never forcing deletion.
91
97
  Cloud quota is released immediately; physical deletion retries asynchronously.
92
98
  Do not delete local files, references or history to bypass a protection.
93
99
 
94
- Retention of ordinary project assets: there is no automatic preview expiry. Private render temporary deliveries instead follow their explicit `expiresAt`; do not promise permanence. Referenced samples
95
- and their history are protected; revoking a link/sample does not free that storage.
96
- Never promise a 7-day deletion, silently unlink history or bypass cleanup guards.
100
+ Retention of ordinary project assets follows the workspace's **after-approval**
101
+ preference (`afterApproval` in `workflow check` and `storage_status`). Until a final
102
+ is approved nothing expires. Private render temporary deliveries instead follow
103
+ their explicit `expiresAt`; do not promise permanence. Referenced samples and their
104
+ history are protected; revoking a link/sample does not free that storage. Never
105
+ promise another deletion time, silently unlink history or bypass cleanup guards.
106
+
107
+ ## After the final approval
108
+
109
+ Most users want only the final once a video is approved. The preference decides:
110
+
111
+ | `afterApproval.mode` | What you do after the final approval |
112
+ |---|---|
113
+ | `ask` (default) | Show what would be freed: `editorbrain clean --project ID --intermediates` (local, dry) and `afterApproval.project.cloudPreviews`. Ask once: keep only the final or keep everything. On "only the final", run `clean --project ID --intermediates --confirm` and `storage preview-cleanup --project ID --user-confirmed` (MCP `request_preview_cleanup`). On "keep everything", record it with `--keep`. Offer to remember the answer (`storage after-approval --mode final-only|keep --expected-revision N --user-confirmed`, MCP `set_after_approval_preferences`); only an owner can save it. |
114
+ | `final_only` | Run `clean --project ID --intermediates --confirm` yourself and report the freed space. Cloud review previews are removed by EditorBrain after `cloudPreviewHours` (0, 24 or 168). |
115
+ | `keep` | Remove nothing. Mention that the user can change this in Storage. |
116
+
117
+ Always kept: originals, the approved final (its review copy and its local master),
118
+ checkpoint renders/sources, receipts and reports. Cloud previews keep their record
119
+ (hash, approval, history); only the bytes are deleted, so readiness and approvals
120
+ stay valid and `mediaExpired: true` explains why a removed preview no longer plays.
121
+ Re-uploading the exact same preview stores it again. Local cleanup only touches
122
+ `.editorbrain-local/<project>/`; it refuses before approval and skips anything that
123
+ changed while it ran. In autonomous question mode, defer the question to the
124
+ delivery notes instead of deleting in `ask` mode.
125
+
126
+ Keep intermediates where cleanup finds them: put working files (cuts, mattes, base
127
+ copies, style explorations, drafts, frames, mixes) under
128
+ `.editorbrain-local/<project>/work/`, not in arbitrary folders next to the project.
97
129
  Keep the fallback local; honor authorized cloud choices with selective compressed uploads and hash reuse.
98
130
  Use authenticated project review for comments; a public review link is a separate,
99
131
  explicit share and its expiration is not file deletion.
@@ -168,3 +200,5 @@ quality from operational delivery. Present/accept the exact final only after its
168
200
  execution and destination evidence are ready; no silent local fallback or spend.
169
201
  `production submit` defaults to the server’s saved preview quality and reports an
170
202
  explicit quality override. A review copy is not the stored final master.
203
+
204
+ La limpieza local conserva código, dependencias registradas, carpetas de fuentes y archivos cuya función no puede identificar. Solo elimina medios temporales en carpetas de trabajo conocidas y previews registrados; el estado actual del servidor prevalece sobre un checkpoint antiguo. No muevas originales a carpetas de trabajo para forzar su eliminación.
@@ -0,0 +1,129 @@
1
+ # Studio: review a version or propose preferences
2
+
3
+ Use the canonical Studio, not a hand-built lookalike. It keeps the existing
4
+ `directions`, `review`, `delivery` phases and readiness/evidence contract. Direct
5
+ mode and valid previous approvals still apply; these controls add no approval gate.
6
+ Read [workflow evidence](workflow-evidence.md) for presentation and
7
+ [production continuity](production-continuity.md) for registering exact versions.
8
+
9
+ ## Open the right view
10
+
11
+ - CLI review: `production review-artifact --file review.json --out .editorbrain-local/PROJECT/studio-v2.html --context-file workflow.json`. `workflow.json` is the current `workflow check --project PROJECT` response with `editorialSnapshot`; its project and contextVersion must match the artifact. Then keep the returned `production review-open` process running and present its verified loopback URL. The optional context file supplies preferences without another network request. Existing offline artifacts without it remain valid; their preferences panel honestly says the snapshot is absent.
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
+ - When asked **“muéstrame mis preferencias”**, use `editorbrain preferences open --project PROJECT` or `open_preferences_studio({projectId,destination:"local"|"cloud"})`; present the resulting Studio, rather than only describing settings in chat. Local MCP uses the same template recipe and no media. CLI needs the authenticated API, serves a token-protected loopback URL and stays running. Cloud returns an authenticated project URL. Neither renders, spends credits, uploads media, applies preferences nor approves a video.
14
+
15
+ Choose local/cloud from the user's effective preferences and current request.
16
+ Never upload a local video merely to show preferences. Each project supplies its
17
+ own brand; a sidebar selection or another project's defaults cannot replace it.
18
+ Older installations may not advertise these operations: explain that and use the
19
+ available workflow; do not invent commands or claim a local file is cloud-backed.
20
+
21
+ ## What the user can do
22
+
23
+ Studio has video controls, a timeline, **Cambios / Texto / Revisión IA**, and
24
+ **Mis preferencias**. `Cómo funciona` explains copying decisions into the chat.
25
+ Nothing is sent automatically. All notes stay in browser storage until copied or
26
+ exported; preserve that warning and the export fallback when storage is blocked.
27
+
28
+ Click the timeline to seek; drag more than 0.6 seconds to mark a range, or hold
29
+ **Mantén para marcar** while it plays. **Repetir 5 s** plays the next five seconds
30
+ and highlights that interval; × removes the selection. `C` comments at the current
31
+ moment, `G` starts a general note, Space toggles playback and arrows seek one second.
32
+ Shortcuts do not fire inside fields or dialogs.
33
+
34
+ Image points are normalized `x/y` in `[0,1]`, relative to the actual visible image,
35
+ not letterboxing. Comments carry `startMs`, optional `endMs`, `kind`, `point`,
36
+ `segmentId`, and `parentCommentId` as applicable. No time means the whole video.
37
+ Export contains both readable `[0:12–0:17]` / `[Todo el video]` notes and exact JSON.
38
+ Use exact JSON milliseconds for edits; the readable labels intentionally round.
39
+
40
+ For remote persistence use the existing `request_production_changes.target` fields.
41
+ CLI: `production change --project PROJECT --revision UUID --context-version SHA
42
+ --text "Move this title" --at 12.5 --kind image --point 0.25,0.70
43
+ --parent-comment UUID` (omit parent unless it actually refers to earlier feedback).
44
+ Preserve the feedback UUID when retrying. Local comments also have UUIDs, but a
45
+ local ID is not proof it already exists remotely; never fabricate a remote record.
46
+ Save actual user corrections through `save_editorial_feedback` / `feedback add`
47
+ and the existing memory flow, without confirming reusable preferences for them.
48
+
49
+ `transcript.segments[].words` is optional and contains measured final-time
50
+ `{text,startMs,endMs}` values inside its kept phrase. A word click seeks; a double
51
+ click proposes its cut, which is shown crossed out only after saving the comment.
52
+ This never edits the media. Do not interpolate words from text or reuse source
53
+ clock times after cuts. Without measured words the phrase-level controls remain.
54
+ Removed phrases refer to their original source interval, never a made-up final time.
55
+
56
+ ## Comparing a corrected version
57
+
58
+ Supply optional `previousVideo` with the same media descriptor as `video`: CLI/local
59
+ MCP uses file + measured sha256; cloud MCP uses an existing project revisionId.
60
+ Include both exact hashes in `studio.comparison`. A historical/superseded revision
61
+ may be viewed only as the previous baseline, never approved as the current sample.
62
+ Revoked, expired or other-project/tenant media remain unavailable.
63
+
64
+ ```json
65
+ {
66
+ "studio": {
67
+ "comparison": {
68
+ "fromVersion": "v1", "toVersion": "v2",
69
+ "previousSha256": "MEASURED_PREVIOUS_SHA256",
70
+ "videoSha256": "MEASURED_CURRENT_SHA256",
71
+ "changes": [{
72
+ "id": "pause", "commentId": "ORIGINAL_FEEDBACK_UUID",
73
+ "startMs": 12000, "endMs": 14000,
74
+ "previousStartMs": 12000, "previousEndMs": 15500,
75
+ "kind": "cut", "summary": "Acorté la pausa sin cortar la frase."
76
+ }]
77
+ },
78
+ "resolutions": [{
79
+ "commentId": "ORIGINAL_FEEDBACK_UUID", "text": "Haz esta pausa más corta",
80
+ "status": "addressed", "note": "Revisa la unión y la respiración.",
81
+ "changeId": "pause"
82
+ }]
83
+ }
84
+ }
85
+ ```
86
+
87
+ Both clocks are required; after a cut they are not interchangeable. Use inspected
88
+ changed intervals, including a nonempty surrounding interval for a removed part.
89
+ Keep at most 100 changes and 100 resolutions. Status is `addressed`, `partial` or
90
+ `unable`, with a concrete reason; it is an agent declaration, not human acceptance.
91
+ A linked resolution must name its own comparison change. **Sigue mal** creates a
92
+ new note linked to the original; retain that relation instead of erasing history.
93
+ Without a real diff omit comparison. The UI then hides its controls. Keep previous
94
+ bytes immutable and inspect both versions before declaring a correction complete.
95
+
96
+ ## Honest review evidence
97
+
98
+ `studio.checks` accepts at most 20 `{label,status,detail}` entries. Map actual
99
+ `production verify.preferenceReview` / `check_render_delivery.preferenceReview`
100
+ results into `not_evaluated`, `consistent_with_declaration`,
101
+ `adaptation_recorded` or `decision_needed`. They are declarations bound to this
102
+ artifact, not pixel verification. The server uses the existing preference reviewer
103
+ for missing evidence and shows **Sin evaluar**, never fake green ticks.
104
+
105
+ `studio.waveform` optionally holds this video's `videoSha256` and up to 256 measured
106
+ normalized amplitude `peaks`. Without measurements omit it. The UI derives at most
107
+ six real thumbnails from the pinned video when the host permits canvas decoding;
108
+ no invented scene images, music wave or voice track fills unavailable data.
109
+
110
+ Preferred style rules guide creative choices. Record intentional adaptations via
111
+ the existing style-decisions mechanism; do not force every video to copy its style.
112
+ Explicit constraints, approvals and spending limits still apply. An unchecked
113
+ creative preference is not a new blanket blocker for showing a private review.
114
+
115
+ ## Preferences, likes and memory
116
+
117
+ Preferences display resolved values for this project's brand and context. Editing
118
+ rows produces `editorbrain.preference-proposal` with `applied:false`, field IDs,
119
+ before/after values, project/brand IDs and contextVersion. It is **not a JSON patch**
120
+ and does not modify documents. Re-read context, explain conflicts, confirm whether
121
+ this is only this project or a lasting preference, then use existing validated,
122
+ revision-checked writes. Read back before saying it is saved. Never apply one
123
+ project's proposal to the currently selected but unrelated sidebar brand.
124
+
125
+ Approval exports optional `likedAspects` (rhythm/captions/music/visuals/ending).
126
+ Treat them as feedback and possible **suggested project** memories. They are not
127
+ confirmation of a reusable rule. Explicit `learningRequests` remain separate and
128
+ carry the scope the user selected. Follow [memory and review](memory-and-review.md).
129
+ An empty like list is fine. Do not require likes or a preference change to approve.
@@ -20,6 +20,12 @@ the same optional `.editorbrain/brands/<brand>/tools.json` in `resolved.json`,
20
20
  source hashes and the editing brief. Pull the selected project before reading it.
21
21
  Old brands without this document retain their existing behavior; do not invent
22
22
  confirmed preferences or ask them to reconfigure solely because it is absent.
23
+ `provider: "personal"` is an explicit external route, not a missing provider:
24
+ resolve the current member's preferred integration for the tool's capability from
25
+ the workflow integration context. Its status is declared, disabled or missing,
26
+ never a verified login. Use [integrations](integrations.md) to check that host's
27
+ actual MCP/CLI/tool. A disabled/missing personal choice does not fall back to
28
+ Tempo, Prism, Vox or Aura and does not need an EditorBrain credit check.
23
29
  For transcription specifically, use the routing rule below when the preference
24
30
  is missing; absence does not authorize choosing an arbitrary local engine.
25
31
 
@@ -31,6 +37,7 @@ Apply this order before starting speech recognition:
31
37
  2. Saved `toolPreferences.transcription.provider`, with verified access to that
32
38
  route. `editorbrain` means Tempo; `assemblyai` means the user's own integration;
33
39
  `whisper-online` and `whisper-local` select the user's hosted or local Whisper.
40
+ `personal` resolves the member's preferred `transcription` integration.
34
41
  3. **No saved choice: default to Tempo** for an EditorBrain edit.
35
42
 
36
43
  The default is execution guidance, not a claim that the user configured it.
@@ -12,6 +12,15 @@ discover available commands with ordinary help. Task aliases are curated labels,
12
12
  not a natural-language interpreter. CLI and MCP entries are related options, not
13
13
  necessarily equivalent operations.
14
14
 
15
+ <!-- task:onboarding -->
16
+ **Set up or update preferences — `help onboarding`.** Read
17
+ [onboarding](onboarding.md) for web, local form or conversational MCP setup.
18
+ Read the existing brand and account choices first; configure only what is missing
19
+ or explicitly changing. A saved draft is not applied preferences, and document
20
+ sync does not save personal integrations or authorize a connection. Use the
21
+ returned account actions and verify their own writes separately. Creative
22
+ direction, question frequency and review mode remain independent.
23
+
15
24
  <!-- task:start -->
16
25
  **Start an edit — `help empezar`.** Reuse the request, footage and saved choices.
17
26
  Read [adaptive entry](starting-an-edit.md); [first edit](first-edit.md) only when
@@ -83,6 +92,10 @@ owns actual quality. For text against platform UI, discover
83
92
  separately from declared boxes and manual playback. [Continuity](production-continuity.md) owns versions and
84
93
  feedback, and [motion review](motion-review.md) owns movement evidence. A technical
85
94
  pass is not creative or human approval. Preserve unaffected, approved work.
95
+ Use [Studio review](studio-review.md) for pinned image comments, measured ranges,
96
+ version comparisons and preference proposals. `preferences open --project ID`
97
+ and MCP `open_preferences_studio` show the same current context; proposals do
98
+ not change saved preferences without explicit scope and confirmation.
86
99
  Capture actual chat corrections using [memory and review](memory-and-review.md):
87
100
  save feedback and a suggested project memory before continuing; only the user
88
101
  chooses whether to retain it for this video or the brand. Never invent feedback
@@ -227,7 +227,7 @@ See [memory and review](memory-and-review.md) for memory schemas, version restor
227
227
 
228
228
  ## Private local production (CLI 0.12+)
229
229
 
230
- `.editorbrain-local/<project-id>/` contains optional inventory, source-use plans, samples and technical review reports. It is excluded from automatic workspace discovery, push/pull, resolution hashes and exports. See [local production](local-production.md) only when using those helpers. Text under `videos/` can synchronize, including `plans/` and `reviews/`; `assets/` and `renders/` are excluded. Store a deliberate short summary in `direction.md` for cross-session cloud context. Keep complete reports out of routine agent prompts.
230
+ `.editorbrain-local/<project-id>/` contains optional inventory, source-use plans, samples and technical review reports. Put this project's intermediates (cuts, mattes, base copies, drafts, style explorations, frames, mixes) under its `work/` folder so `clean --project ID --intermediates` can remove them after the final approval; see [after the final approval](storage-and-previews.md#after-the-final-approval). It is excluded from automatic workspace discovery, push/pull, resolution hashes and exports. See [local production](local-production.md) only when using those helpers. Text under `videos/` can synchronize, including `plans/` and `reviews/`; `assets/` and `renders/` are excluded. Store a deliberate short summary in `direction.md` for cross-session cloud context. Keep complete reports out of routine agent prompts.
231
231
 
232
232
  ## Optional audio production context
233
233
 
@@ -242,6 +242,15 @@ before writing. This does not alter other audio restrictions or grant spending.
242
242
 
243
243
  ## Creative decision ownership
244
244
 
245
+ The web page https://editorbrain.com/app/preferences edits the active brand’s
246
+ existing `design.md` profile and onboarding-taste blocks plus `audio.json`.
247
+ It does not introduce another preference store. Read the saved version through
248
+ CLI resolve/workflow or MCP context. The separate «Antes de editar» choice is
249
+ workspace review timing, not a brand aesthetic or a budget authorization.
250
+ Unsetting one creative choice delegates that field; confirming a section
251
+ keeps its explicit choices and delegates only what remains unspecified.
252
+
253
+
245
254
  The optional editorial profile field `creativeDirection` in brand `design.md`
246
255
  is `automatic` or `guided`; `project.json.creativeDirection` overrides it for
247
256
  that video. `resolve`, workflow context and `editorialSnapshot.creativeDirection`
@@ -33,9 +33,12 @@ Use the curated facets returned by the catalog; never reclassify a scene from it
33
33
  name or demo niche. `material` is `motion` (code graphics), `fotos` (real photos)
34
34
  or `video` (graphics over a real talking-head clip). `funcion` accepts several
35
35
  values with OR, `encuadre` is only valid with `material: "video"`, and `tresD`
36
- selects Three.js scenes. Discover labels and available values in
37
- `facetDefinitions`, `availableFacetCounts` and `facetCounts`. A zero result is
38
- not permission to drop the user's filters silently.
36
+ selects Three.js scenes. Discover available values in `availableFacetCounts`
37
+ and `facetCounts` on every page. Labels and descriptions live in the static
38
+ `facetDefinitions`: MCP returns them on each page; newer CLIs omit them
39
+ (`facetDefinitionsOmitted`) unless you pass `--facet-definitions` once per
40
+ catalog version. A zero result is not permission to drop the user's filters
41
+ silently.
39
42
 
40
43
  CLI: `editorbrain motion scenes --material video --funcion ganchos-titulos,presentar-marca --encuadre plano-medio --scene-version <version>`.
41
44
  MCP: pass those fields to `list_authored_scenes`. Keep the query, filters and