editorbrain 0.42.1 → 0.44.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 +24165 -3110
- package/package.json +1 -1
- package/skill/editorbrain/AGENTS.md +7 -0
- package/skill/editorbrain/SKILL.md +56 -2
- package/skill/editorbrain/references/audio-production.md +81 -0
- package/skill/editorbrain/references/cli-mcp.md +57 -2
- package/skill/editorbrain/references/first-edit.md +1 -1
- package/skill/editorbrain/references/integrations.md +12 -1
- package/skill/editorbrain/references/local-production.md +10 -0
- package/skill/editorbrain/references/production-and-review.md +5 -0
- package/skill/editorbrain/references/production-continuity.md +72 -24
- package/skill/editorbrain/references/starting-an-edit.md +77 -8
- package/skill/editorbrain/references/storage-and-previews.md +46 -13
- package/skill/editorbrain/references/studio.md +95 -2
- package/skill/editorbrain/references/style-creator.md +12 -2
- package/skill/editorbrain/references/voice-cleanup.md +113 -0
- package/skill/editorbrain/scripts/deepfilter-cleanup.mjs +255 -0
package/package.json
CHANGED
|
@@ -4,6 +4,13 @@ Turn EditorBrain evidence into decisions suitable for this user, execute the req
|
|
|
4
4
|
|
|
5
5
|
## Work within the current request
|
|
6
6
|
|
|
7
|
+
For a new edit, create a new project in the confirmed workspace/brand. If the
|
|
8
|
+
requested source is missing, use the [adaptive start](references/starting-an-edit.md)
|
|
9
|
+
to return a verified private project upload link. Existing attachments and local
|
|
10
|
+
files need no duplicate upload. Resume that same project after the user reports
|
|
11
|
+
upload completion; an upload does not automatically restart the conversation.
|
|
12
|
+
Creating a project/link grants neither spending nor a storage-mode change.
|
|
13
|
+
|
|
7
14
|
Start with `videos/<project-id>/project.json`, its brief/direction and the brand, style and output profile it selects. Discover IDs instead of assuming names. Understand goal, audience, language, format and available tools; preserve preferences and authorized exceptions. Resolve minor choices yourself; ask only about consequential uncertainty and continue independent work while waiting.
|
|
8
15
|
|
|
9
16
|
When present, resolved `editorial.identity` or workflow `context.identity` holds the current confirmed brand fields. These supersede older values in preserved prose. Empty fields remain undecided; keep unrelated notes and do not restore superseded values.
|
|
@@ -22,6 +22,14 @@ the next unresolved action from chat, supplied footage, an idea or a copied web
|
|
|
22
22
|
selection. Reuse it within the session. This is not a fixed wizard: skip answered
|
|
23
23
|
questions and approved choices, and preserve scope on corrections.
|
|
24
24
|
|
|
25
|
+
“Nueva edición” starts a new project in the confirmed brand. If no usable footage
|
|
26
|
+
accompanies the request, create the project and return its verified private upload
|
|
27
|
+
link for one or several files. On “ya están”, read its material and resume the same
|
|
28
|
+
project. Use supplied footage directly; don't require a duplicate upload, a setup
|
|
29
|
+
questionnaire, or footage for an idea-only video. Discover the creation/intake
|
|
30
|
+
commands in [CLI and MCP](references/cli-mcp.md#new-project-and-private-upload-handoff);
|
|
31
|
+
the adaptive guide owns identity, retries and missing-material cases.
|
|
32
|
+
|
|
25
33
|
Before composing an edit with visual support, use the [media acquisition guide](references/real-media.md), including for fully animated videos. Cover the relevant beats with acquired and inspected user/web/generated resources as appropriate. Resolved/workflow `mediaAcquisition`, when available, turns the effective choices into planning guidance; it is not proof of searches or tool access. Searching EditorBrain for editing techniques is a separate job.
|
|
26
34
|
|
|
27
35
|
1. Read the bundled [AGENTS.md](AGENTS.md) once for the editorial contract. Do not assume the host loads this nested file automatically.
|
|
@@ -31,16 +39,40 @@ Before composing an edit with visual support, use the [media acquisition guide](
|
|
|
31
39
|
5. Ground each new edit or materially changed direction in the **edited-video reference library**, including when a favorite style is selected. Search with `search_from_brief` (CLI `editorbrain search brief --file <brief.json>`) and the project ID after inspecting the material. Read [search brief](references/search-brief.md) for the schema and [editorial evidence](references/editorial-evidence.md) for selection/adaptation. Search communicative needs, not a guessed template. A scoped revision may reuse still-valid inspected evidence and approval. The optional `search_for_edit` server-analysis path is never an automatic fallback.
|
|
32
40
|
6. For a new or materially changed direction, use [editorial families](references/editorial-families.md) to load only the relevant method; a fitting saved method or small correction can reuse its decisions. Survey candidates across the video's needs, then inspect selected documents and actual frames/intervals, plus audio when sound matters. Build a coherent scene-level palette of techniques: opening, imagery, type, explanation and transitions can come from different references. A shortlist is not a single template for the whole video. Use preferences to retain, adapt or reject mechanisms; save evidence, limitations and beat-level adaptations in `direction.md`. A motion-catalog lookup does not complete this step. If evidence is inaccessible or unsuitable, disclose the gap. For factual beats, compare allowed user footage and authentic web media with authored explanation. The engine does not dictate the imagery or entire layout.
|
|
33
41
|
7. Follow the effective review mode: `direct` → implement and review; `directions` → propose suitable alternatives with labelled reference evidence; `sample` → show a frame/short clip made with customer material before the full edit. Respect existing approval. Check the preference version before proposals, costly generation and full rendering; a web update cannot interrupt an active tool.
|
|
34
|
-
8. When available, read `check_workflow.projectProgress` on resuming (or `get_project_progress` / `editorbrain projects progress --project ID`). Register actual work with `update_project_progress` (`action:start`, current `expectedVersion`) / `projects start`. This keeps the web board current; it is not a heartbeat. See [production continuity](references/production-continuity.md) for final delivery and conflict handling. Carry the same `editorialSnapshot` into implementation and any specialist handoff. For a sample or localized correction, use [production continuity](references/production-continuity.md): retain the exact local version, preserve unaffected work and retrieve relevant feedback; cloud
|
|
42
|
+
8. When available, read `check_workflow.projectProgress` on resuming (or `get_project_progress` / `editorbrain projects progress --project ID`). Register actual work with `update_project_progress` (`action:start`, current `expectedVersion`) / `projects start`. This keeps the web board current; it is not a heartbeat. See [production continuity](references/production-continuity.md) for final delivery and conflict handling. Carry the same `editorialSnapshot` into implementation and any specialist handoff. For a sample or localized correction, use [production continuity](references/production-continuity.md): retain the exact local version, preserve unaffected work and retrieve relevant feedback; register cloud samples when the resolved review surface is web/cloud; keep local-only review local. Before delivery, use `production verify --project ID --file <render>` when available, inspect its real samples and review the final motion/audio. An editing request needs the edit, not only a plan. Use [production and review](references/production-and-review.md) to compare editorial quality with the chosen references and any applicable user-approved sample; a technical pass alone cannot satisfy that comparison. Report unverified dimensions separately from technical results.
|
|
35
43
|
|
|
36
|
-
9.
|
|
44
|
+
9. Choose the review surface using [production continuity](references/production-continuity.md#choose-the-review-surface-before-delivery): current request → explicit saved project choice → authorized saved cloud/both destination → **En computadora** by default. A `configured:false` local fallback is not an explicit user choice and cannot override a cloud request. Deliver an actual visual review for each new edit and revised preview/final: the local HTML artifact for computer review, or the registered private web player for cloud review. Do not deliver only localhost when cloud was requested, or change final storage/render execution merely to share previews. Respect review mode; the review surface adds no approval gate to direct editing. Do not substitute a long text response or an empty dashboard link for a playable sample.
|
|
37
45
|
|
|
38
46
|
Read resolved `questionPolicy` before asking: essential asks only consequential missing information after inspecting material and preferences; collaborative offers up to three recommended choices; autonomous asks none, records reversible decisions and leaves indispensable inputs/permissions/review approvals pending for only the affected work. Current task instructions govern; preserve brand settings. Use the [consultation planner](references/onboarding.md#consultation-frequency) for unresolved needs. Creative direction, review and spending remain independent. In batches continue other eligible videos and summarize blockers together.
|
|
39
47
|
|
|
40
48
|
## Specialized work, loaded when needed
|
|
41
49
|
|
|
50
|
+
Before transcription, check the requested tool and
|
|
51
|
+
`editorialSnapshot.toolPreferences.transcription`. Use the configured route;
|
|
52
|
+
read [Studio](references/studio.md) for Tempo and its quote/authorization flow.
|
|
53
|
+
When no transcription preference is present, **default to Tempo** for an
|
|
54
|
+
EditorBrain edit. This is a tool-selection default, not a confirmed saved
|
|
55
|
+
preference or authorization to spend. Explain Tempo, own AssemblyAI and Whisper
|
|
56
|
+
online/local with their tradeoffs at first setup, on request or when blocked;
|
|
57
|
+
reuse an existing choice rather than asking on every edit. Free or zero credits
|
|
58
|
+
does not block editing with the user's own service, local tools or usable
|
|
59
|
+
transcripts. If Tempo is blocked, offer a compatible alternative and continue
|
|
60
|
+
through the user's selected or already authorized route; never silently fall
|
|
61
|
+
back to a local transcriber. Only the affected unauthorized operation waits.
|
|
62
|
+
An installed local transcriber is not a reason to replace the chosen tool.
|
|
63
|
+
Reuse an existing matching transcript and its word timestamps before requesting
|
|
64
|
+
another transcription, and record the actual engine used in production evidence.
|
|
65
|
+
|
|
42
66
|
For sound, inspect effective `audioProduction` / `sfxPolicy` on every edit, including full code animation. When SFX are wanted, load [SFX selection and placement](references/sfx-library.md), audition fitting library sounds, mix them and review the delivered result; a plan alone is not implementation. When disabled, skip added SFX including component defaults. Music and original ambience are separate. Respect sparse/balanced/expressive intent without forcing quotas, and record a reason if a requested treatment cannot be fulfilled.
|
|
43
67
|
|
|
68
|
+
For requested voice cleanup or inspected noise that obscures dialogue, read
|
|
69
|
+
[optional DeepFilterNet3 cleanup](references/voice-cleanup.md), even when
|
|
70
|
+
`audioProduction` is absent. Keep the original, honor preservation preferences
|
|
71
|
+
and verify the external runtime before use. This is an optional host tool, not
|
|
72
|
+
an EditorBrain Studio service. For karaoke captions or a reported timing error,
|
|
73
|
+
use [word-level alignment](references/audio-production.md#word-level-caption-alignment)
|
|
74
|
+
against the actual delivered voice, not evenly spaced transcript words.
|
|
75
|
+
|
|
44
76
|
Use the decision ownership in [the shared contract](AGENTS.md#decision-ownership): montage, media, motion, sound and review share one direction. For animated scenes, read [editorbrain-motion](../editorbrain-motion/SKILL.md) with the active project and resolved context. Ordinary cuts, static graphics or sync/install tasks need no motion skill. When the edit follows a recognizable format (for example a numbered tutorial, or a reference whose structure the user wants replicated), read [editorbrain-formats](../editorbrain-formats/SKILL.md) for its structure and sync rules; identity still comes from the resolved brand and style. User memory belongs in scoped brand/style/project files; shared guides describe methods and examples supply evidence.
|
|
45
77
|
|
|
46
78
|
For multiple final videos, read the batch section of [production continuity](references/production-continuity.md): confirm clip grouping, isolate projects, acquire turns and respect batch budgets. `check_workflow.batch` carries coordination; it does not replace project preferences.
|
|
@@ -54,3 +86,25 @@ For feedback, accepted memory, weekly proposals, document restore or explicitly
|
|
|
54
86
|
Use [workspace files](references/workspace-files.md) when changing branding/styles or saving feedback. Keep `design.md`, `effects.md` and `music.md` editable at their own scopes; they guide coherent choices, not identical edits for every topic. Preserve customized instructions and previous versions. Fetch further evidence only to answer a concrete editing question.
|
|
55
87
|
|
|
56
88
|
Public web: https://editorbrain.com. CLI/package/skill: `editorbrain`. MCP: https://api.editorbrain.com/mcp. Source analysis by you, library retrieval by EditorBrain, selection and execution by you. A retrieved reference, export or model opinion does not certify render quality.
|
|
89
|
+
|
|
90
|
+
## Account capabilities
|
|
91
|
+
|
|
92
|
+
When the user asks about additional execution options, run `editorbrain capabilities`
|
|
93
|
+
with their current login. Offer only capabilities returned for that identity and
|
|
94
|
+
workspace, and read their returned instructions before using them. An installed
|
|
95
|
+
command, another member’s access or an account plan does not grant a capability.
|
|
96
|
+
An empty list leaves the normal local workflow unchanged; do not suggest hidden
|
|
97
|
+
features or ask the user to change accounts. Capability discovery never authorizes
|
|
98
|
+
uploading private material or spending.
|
|
99
|
+
|
|
100
|
+
For a personally available execution capability, use its current server guide and
|
|
101
|
+
quote contract. Show the returned service name, customer credits, sponsored-vs-paid
|
|
102
|
+
mode and expiry before requesting approval. Never calculate a price yourself or
|
|
103
|
+
confuse no capacity, provider balance, queue limits and the user's credit balance.
|
|
104
|
+
For a paid capability, honor the server's maximum credit reservation and require
|
|
105
|
+
explicit approval; never silently raise it. Preserve job IDs on retries, inspect
|
|
106
|
+
reserved/captured/refunded amounts and pending cleanup. Preferences never authorize
|
|
107
|
+
spending. Offer only modes explicitly supported by the returned capability.
|
|
108
|
+
Keep the same job ID after timeouts; poll at the suggested interval. A changed
|
|
109
|
+
price/request requires a fresh quote and approval. Queued is not failed, and
|
|
110
|
+
cleanup pending is not confirmation that the provider stopped billing.
|
|
@@ -23,6 +23,16 @@ Resolve current workflow before selecting SFX. `sfxPolicy` summarizes effective
|
|
|
23
23
|
|
|
24
24
|
For sound selection, read [SFX library](sfx-library.md) on demand: search fitting candidates, retrieve the pinned asset, audition and place by purpose. Do not borrow another member's files, silently switch a configured bank, or interpret empty results as permission to generate/buy. A library's presence alone does not forbid generation, but generation preferences never authorize spending. Recheck workflow before rendering and listen to the actual final mix.
|
|
25
25
|
|
|
26
|
+
## Clean dialogue only when useful
|
|
27
|
+
|
|
28
|
+
For requested noise reduction or inspected interference with speech, use
|
|
29
|
+
[optional DeepFilterNet3 cleanup](voice-cleanup.md). Preserve the original and
|
|
30
|
+
meaningful ambience; an unprocessed-audio instruction wins. Run on the intended
|
|
31
|
+
dialogue track before final mixing, verify latency/sample count and compare
|
|
32
|
+
naturalness at matched listening levels. It is an external host tool with a
|
|
33
|
+
separate runtime/model, not Studio generation. No new `audio.json` field is
|
|
34
|
+
required: record the scoped treatment and evidence in the project direction.
|
|
35
|
+
|
|
26
36
|
## Timing and sound
|
|
27
37
|
|
|
28
38
|
Keep correctly spelled display/subtitle text separate from synthesis pronunciation hints. Use the requested language, glossary and approved voice. Verify provider access/current capability and listen to uncertain pronunciations when possible. ASR agreement does not certify pronunciation.
|
|
@@ -44,6 +54,77 @@ there is no universal gain or requirement to accent every cut. Protect the hook
|
|
|
44
54
|
when requested. Music, added effects, narration and source ambience remain
|
|
45
55
|
independent decisions; review exclusions in the actual mix, not track labels.
|
|
46
56
|
|
|
57
|
+
### Word-level caption alignment
|
|
58
|
+
|
|
59
|
+
Use the selected transcription route from the current request and effective tool
|
|
60
|
+
preferences; [Studio](studio.md) owns Tempo's preparation and spending flow.
|
|
61
|
+
Tempo's `words[].startMs/endMs` are the starting word cues, relative to its
|
|
62
|
+
prepared audio, with `confidence` available for inspection. Preserve those real
|
|
63
|
+
values and the source mapping; do not replace them with locally guessed times or
|
|
64
|
+
retranscribe merely because a local model is installed. A transcript produced
|
|
65
|
+
locally must not be described as a Tempo result.
|
|
66
|
+
|
|
67
|
+
Apply the same editing and quality checks to own AssemblyAI, online Whisper and
|
|
68
|
+
local Whisper. No EditorBrain credit balance or paid plan is required to use
|
|
69
|
+
their real transcripts. Keep provider/model, input hash, raw result, units and
|
|
70
|
+
source clock in production notes; a local run has no Studio job ID.
|
|
71
|
+
|
|
72
|
+
Normalize the selected provider's measured output to the existing caption cues:
|
|
73
|
+
`[{start:0.2,end:1.3,text:"Hola mundo",words:[{text:"Hola",start:0.2,end:0.6},{text:"mundo",start:0.8,end:1.3}]}]`.
|
|
74
|
+
Cue and nested word times are **seconds on the final timeline**, ordered and
|
|
75
|
+
bounded by each cue. `editorbrain styles captions prepare --style ID --file
|
|
76
|
+
cues.json --out preview.html` works with these cues without a Studio job; inspect
|
|
77
|
+
the local style and command help first. This prepares the selected caption
|
|
78
|
+
layer, not a final video or a cloud upload.
|
|
79
|
+
|
|
80
|
+
Tempo `startMs/endMs` and AssemblyAI `start/end` use milliseconds. Hosted
|
|
81
|
+
`whisper-1` verbose word output and openai-whisper's `segments[].words` use
|
|
82
|
+
seconds. Verify the actual runtime's schema, especially whisper.cpp or another
|
|
83
|
+
hosted service: never guess units from their magnitude. Request word timestamps
|
|
84
|
+
when available, retain the raw output and confidence if supplied, and map through
|
|
85
|
+
cuts/speed changes. Do not label another engine's JSON as `editorbrain.transcript`.
|
|
86
|
+
Phrase-only transcripts remain usable for story/cuts and phrase captions where
|
|
87
|
+
allowed. If the chosen style needs karaoke, obtain measured word alignment or
|
|
88
|
+
offer phrase captions; only that unresolved treatment waits, not the whole edit.
|
|
89
|
+
|
|
90
|
+
Karaoke needs acoustic word timing, not just a correct transcript. ASR segment
|
|
91
|
+
timestamps, heuristic token times and evenly divided phrase durations are not
|
|
92
|
+
proof of individual word boundaries. Keep the literal spoken transcript separate
|
|
93
|
+
from display spelling and punctuation; do not insert an ASR-hallucinated word
|
|
94
|
+
merely to satisfy an aligner.
|
|
95
|
+
|
|
96
|
+
When existing word cues are missing or visibly early/late, align the verified
|
|
97
|
+
transcript to the actual selected voice track with an available language-capable
|
|
98
|
+
aligner, or inspect reliable acoustic timestamps. This is targeted repair, not a
|
|
99
|
+
mandatory second model after every successful transcription. Confirm that the tool really
|
|
100
|
+
enabled its alignment mode; a requested option can be incompatible with another
|
|
101
|
+
runtime option. Low-confidence, repeated or unsupported words require local
|
|
102
|
+
inspection rather than invented timing. Avoid redoing alignment for a purely
|
|
103
|
+
visual change when the audio and timeline remain identical.
|
|
104
|
+
|
|
105
|
+
Name the clock explicitly: source recording, extracted audio or final output.
|
|
106
|
+
Account for extraction offset, stream start time, processing latency, kept
|
|
107
|
+
ranges and speed changes. Align the final dialogue or remap source cues through
|
|
108
|
+
the exact cut/speed map; do not apply one guessed offset to unrelated errors.
|
|
109
|
+
Check the beginning, middle and end, plus short words, pauses, repeated phrases
|
|
110
|
+
and cut boundaries.
|
|
111
|
+
|
|
112
|
+
Inspect the **rendered active word**, not only the cue JSON: its first highlighted
|
|
113
|
+
frame should correspond to that spoken word within the chosen frame resolution.
|
|
114
|
+
Check phrase holds and large titles triggered by speech too. A subtitle phrase
|
|
115
|
+
can remain readable after speech ends without leaving its last word falsely
|
|
116
|
+
marked as currently spoken. Monotonic timestamps and complete text coverage are
|
|
117
|
+
necessary structural checks, not certification of perceived synchronization.
|
|
118
|
+
Listen/watch representative intervals when the host supports it; disclose any
|
|
119
|
+
unreviewed audio dimension.
|
|
120
|
+
|
|
121
|
+
If reliable word alignment is unavailable, explain that limitation. A timed
|
|
122
|
+
phrase treatment can be an honest alternative within the user's delegated
|
|
123
|
+
choices, but do not silently claim precise karaoke or override an explicit
|
|
124
|
+
karaoke requirement. Keep corrected cues, their source audio hash and the actual
|
|
125
|
+
method in the local production evidence; update dependent titles/SFX only where
|
|
126
|
+
their trigger changed.
|
|
127
|
+
|
|
47
128
|
## Measure the delivered file
|
|
48
129
|
|
|
49
130
|
In addition to `production check`, measure integrated loudness/true peak from the actual encoded/muxed deliverable:
|
|
@@ -26,6 +26,45 @@ assigned-brand/project grants. Never give a restricted collaborator a general se
|
|
|
26
26
|
Legacy `projects list` without flags keeps its document-based inventory contract.
|
|
27
27
|
Do not use an unrestricted inventory as an editing context or silently raise limits.
|
|
28
28
|
|
|
29
|
+
## New project and private upload handoff
|
|
30
|
+
|
|
31
|
+
Discover support in the installed CLI and connected MCP; an older release may
|
|
32
|
+
not expose these operations. After confirming workspace/brand and discovering
|
|
33
|
+
the intended saved style/output profile:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
editorbrain projects create new-edit-id --brand BRAND_ID --style STYLE_ID --output-profile OUTPUT_PROFILE_ID
|
|
37
|
+
editorbrain projects intake --project new-edit-id
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Optional creation flags are `--name`, `--topic` and `--goal`; preserve what the
|
|
41
|
+
user supplied and leave unknown editorial details open. MCP equivalents are
|
|
42
|
+
`create_project({id,brandId,styleId,outputProfileId,name?,topic?,goal?})` and
|
|
43
|
+
`get_project_intake({projectId})`. The API routes are `POST /v1/projects` and
|
|
44
|
+
`GET /v1/projects/:id/intake`. Creation requires write access; an upload URL does
|
|
45
|
+
not grant that permission or expose private asset credentials.
|
|
46
|
+
|
|
47
|
+
Retain one new ID across retries. After an uncertain write, read that ID before
|
|
48
|
+
retrying; different existing content is a conflict, not permission to overwrite.
|
|
49
|
+
If support is absent, use discovered document writes with `expectedRevision: 0`
|
|
50
|
+
only for missing project documents and verify the completed remote context.
|
|
51
|
+
Otherwise state the missing capability; never invent a working link for a local
|
|
52
|
+
draft. See [adaptive start](starting-an-edit.md) for when to create versus resume.
|
|
53
|
+
|
|
54
|
+
Intake returns the scoped `workspaceId`, `projectUrl`, `uploadUrl`, media inventory
|
|
55
|
+
and `upload.allowed` / `upload.maxFileBytes`. Use the returned link unchanged,
|
|
56
|
+
including workspace context; the user signs in with their own access. Respect
|
|
57
|
+
permission, quota and size errors rather than assuming every account supports
|
|
58
|
+
large files. `waiting_for_media` means no linked material; `material_present`
|
|
59
|
+
means inventory exists. Neither certifies content, complete upload or inspection.
|
|
60
|
+
Read `videoCount`, `unavailableCount` and individual metadata before deciding
|
|
61
|
+
whether the requested video is accessible; `inspected:false` remains explicit.
|
|
62
|
+
|
|
63
|
+
After the user returns to chat, re-read intake and the project's media manifest,
|
|
64
|
+
inspect the relevant assets and continue the saved brief. Multiple uploads are
|
|
65
|
+
not automatically multiple final videos. No background wakeup, rendering, cloud
|
|
66
|
+
mode change, sharing or credit charge is implied by creation/intake.
|
|
67
|
+
|
|
29
68
|
## Visual onboarding and brain analysis (discover availability)
|
|
30
69
|
|
|
31
70
|
Use [onboarding](onboarding.md) for `onboarding guide/create/serve/apply/sync` and
|
|
@@ -244,7 +283,9 @@ Use `editorbrain team access` / MCP `team_access` to inspect effective access.
|
|
|
244
283
|
A restricted editor uses their own device login or OAuth connection. Discover assigned
|
|
245
284
|
projects (`team projects`, `projects list`, `list_projects`), then resolve and check
|
|
246
285
|
workflow with the explicit project ID. The owner creates projects and manages shared
|
|
247
|
-
brand/style preferences.
|
|
286
|
+
brand/style preferences. The invited editor can also use /app/team → Mis proyectos
|
|
287
|
+
to save brief/script/direction, upload project material and prepare samples;
|
|
288
|
+
Revisiones compartidas is the public client thread. Project files use ordinary revision-checked writes. Never
|
|
248
289
|
switch to an owner's key or another workspace to bypass a denial.
|
|
249
290
|
|
|
250
291
|
For authorized uploads use `assets upload FILE --project ID --purpose preview`:
|
|
@@ -258,7 +299,12 @@ requests sharing use `team share --project ID --revision UUID --confirm` or
|
|
|
258
299
|
`team_share_review`; withdrawal is explicit too. Clients use `/app/team` with their
|
|
259
300
|
own verified account. They see shared versions, add timed comments and approve an
|
|
260
301
|
exact revision. Read `team reviews --project ID [--after CURSOR]` / `team_reviews`
|
|
261
|
-
|
|
302
|
+
to discover versions. For every selected version, read `team comments --project ID
|
|
303
|
+
--revision UUID [--after CURSOR]` / `team_review_comments` and follow `nextCursor`
|
|
304
|
+
until null; the comments summary in `team reviews` is limited to 100 across the
|
|
305
|
+
project and is not a complete revision thread. These pages include only shared
|
|
306
|
+
customer feedback, never private production notes. Also read existing production
|
|
307
|
+
feedback before revising; do not infer approval or mark a
|
|
262
308
|
sample as final. `team comment` requires a fresh `--id` UUID reused only for retries
|
|
263
309
|
of identical input. Client accounts are browser-review-only in this first slice;
|
|
264
310
|
read-only OAuth scopes do not gain write/approval rights.
|
|
@@ -270,6 +316,15 @@ resource or the user's own authorized integration. Do not recommend buying credi
|
|
|
270
316
|
as a permission fix or silently charge another provider. Existing balances remain
|
|
271
317
|
workspace-wide; this release does not add per-person budgets or seats billing.
|
|
272
318
|
|
|
319
|
+
Only the owner changes grants, after an explicit request: `team permissions
|
|
320
|
+
--user USER_ID --file permissions.json --confirm`. First read `team members` and
|
|
321
|
+
use that member's `permissionsRevision` as `expectedRevision`, with the complete
|
|
322
|
+
`grants` list of `{kind,scopeId}`. `TEAM_PERMISSIONS_CHANGED` requires rereading and
|
|
323
|
+
reconciling, not retrying stale data. Changes invalidate prior invitation links.
|
|
324
|
+
A downgrade to reviewer revokes device/OAuth connections; upgrading requires new
|
|
325
|
+
login, never reuse a revoked key. Reload access after a denial; don't switch to
|
|
326
|
+
another workspace or owner key. Removing all access uses `team remove`.
|
|
327
|
+
|
|
273
328
|
### Transactional email (discover service support)
|
|
274
329
|
|
|
275
330
|
Team invitation creation can return `delivery: queued` or `copy_link`; report the
|
|
@@ -11,7 +11,7 @@ dependency, not a required introduction on every video.
|
|
|
11
11
|
- If the user wants to configure their brain here, use the visual [onboarding guide](onboarding.md) when `onboarding create` is available. It supports a local browser or portable HTML/JSON handoff; no account is needed to draft preferences. Do not claim every chat can embed or connect to local HTML. Existing users should retrieve their selected context first, preserving unsynced changes; do not start with an empty form that discards saved preferences.
|
|
12
12
|
- For an existing account, identify the authenticated workspace. When the request names a brand, discover `brands list` / `list_brands` (if available), match its saved name to a stable ID, then `projects list --brand ID` / `list_projects({brandId:ID})`. Follow pagination as needed. Duplicate names, no match or multiple possible projects are unresolved identity, not a reason to pick the first or reuse the last chat's context. Ask a short selection under the question policy; autonomous leaves only that work pending. For older clients, use narrow document prefixes and read identity documents only to resolve ambiguity.
|
|
13
13
|
- Prepare the chosen project with `editorbrain setup --dir <folder> --agent codex|claude|both --project <id>`. Confirm MCP `workspace_info` and CLI `status` name the same workspace, and `project.json.brand` matches the requested brand. Browser consent needs the user; configuration alone is not authentication.
|
|
14
|
-
- If the brand exists but this is a new video, create
|
|
14
|
+
- If the brand exists but this is a new video, use `projects create` / `create_project` when available, referencing that existing brand and an intentionally chosen saved style/output profile. See [creation and intake](cli-mcp.md#new-project-and-private-upload-handoff). Never reinitialize or overwrite that brand, reuse another customer's project, or treat a previous video as the requested new one. Pull the new project's specific context after saving. Missing footage is handled with its verified private upload link, not by sending the user to create the project manually.
|
|
15
15
|
- Only for genuinely new context, `editorbrain init --dir <new-folder> --brand <brand-id> --style <style-id> --project <project-id>` creates documents and installs the harness. Authenticate before synchronization. Validate, inspect `push --dry-run`, then push only the intended context. Never use init to reset existing remote preferences. Do not confuse an empty local draft with a remotely saved project.
|
|
16
16
|
- Existing root AGENTS.md/CLAUDE.md and customized skills are preserved. Read install results and any conflict; use the returned skill path explicitly if needed. Installation is not proof the host has read it.
|
|
17
17
|
|
|
@@ -42,7 +42,10 @@ For each needed resource, separate **capability** (image/voice/video/music),
|
|
|
42
42
|
not identify who will run it or who pays. It may be offered by several providers.
|
|
43
43
|
|
|
44
44
|
1. Honor the explicit task choice (including a built-in tool such as Tempo).
|
|
45
|
-
|
|
45
|
+
For transcription, follow [Studio's transcription route](studio.md#transcription-route):
|
|
46
|
+
explicit choice, saved transcription provider, then Tempo when none is saved.
|
|
47
|
+
Missing credits/access/approval never authorize an implicit local fallback.
|
|
48
|
+
For other capabilities, inspect compatible saved integrations and native host tools. If
|
|
46
49
|
several choices materially differ in cost, access or output, propose one with
|
|
47
50
|
a reason or ask a single focused question. Do not select by catalog order or
|
|
48
51
|
always prefer Studio. A saved disabled integration stays disabled unless the
|
|
@@ -104,6 +107,14 @@ requested providers can be used through verified host tools without inventing an
|
|
|
104
107
|
EditorBrain provider ID or accepting arbitrary credentials/endpoints in preferences.
|
|
105
108
|
The saved catalog is intentionally bounded; it is not the host's full tool inventory.
|
|
106
109
|
|
|
110
|
+
Transcription choices include `assemblyai`, `whisper-online` and `whisper-local`.
|
|
111
|
+
The local route checks a runtime/model in the agent's actual environment, not a
|
|
112
|
+
provider login; `files` means an existing transcript handoff, not generation.
|
|
113
|
+
Online Whisper requires the exact hosting service/channel and its own access.
|
|
114
|
+
None of these routes requires EditorBrain creative credits or a paid plan.
|
|
115
|
+
Explain the [benefits and tradeoffs](studio.md#explain-the-choices-when-useful)
|
|
116
|
+
when selecting a route; a declared integration is not a brand provider choice.
|
|
117
|
+
|
|
107
118
|
## Configure only when requested
|
|
108
119
|
|
|
109
120
|
Web: **Integraciones**. CLI example:
|
|
@@ -148,3 +148,13 @@ video has rotation, mirroring or another display transform, the command rejects
|
|
|
148
148
|
it before writing a sheet. Export a separate review copy with the transform baked
|
|
149
149
|
into the pixels, keeping the original, then recompute its hash and rendered bounds.
|
|
150
150
|
Do not reuse geometry from the differently oriented source.
|
|
151
|
+
|
|
152
|
+
## Continuity, disk and variants (CLI 0.43.0+; inspect installed help)
|
|
153
|
+
|
|
154
|
+
- Discover exact syntax with `production verify --help`, `styles --help` and `studio --help`. `styles mine` lists local editing styles; `styles list` remains the published catalog. `media styles` are image-generation recipes.
|
|
155
|
+
- `production verify` now measures LUFS/true peak whenever audio exists, even without a target. No target means measurements only. Supply `--audio-profile audio.json` to set `{schemaVersion:1,loudness:{targetIntegratedLufs:-14,toleranceLu:1,maxTruePeakDbtp:-1}}` when the user/project requires those values. Never invent a required loudness target, override project preferences or normalize automatically.
|
|
156
|
+
- `--review-inputs continuity.json` adds source-word cut checks, final seam energy and declared face/overlay collisions. Bind it to the final `artifactSha256`. Cuts and transcript must share `sourceSha256`; times are seconds. Geometry must already match the final timeline, crop and normalized top-left coordinates. Missing/uncertain tracking is incomplete, not a safe face clearance. High-energy seams are listening candidates; music can cause them too.
|
|
157
|
+
- Inline schema: `{schemaVersion:1,artifactSha256,cuts:{sourceSha256,parts:[{source:[start,end],final:[start,end]}]},transcript:{sourceSha256,words:[{text,start,end}]},geometry:{timeline:"final",coords:"normalized-top-left",frames:[{t,face:{x,y,w,h}}],overlays:[{id,start,end,x,y,w,h}]}}`. Cuts/transcript and geometry are independently optional. A null face means unknown.
|
|
158
|
+
- File-backed alternatives: `cuts:{file:"relative/cutmap.json",sourceSha256}`, `transcript:{file:"relative/words.json",sourceSha256}`, `geometry:{trackFile:"relative/track.json",overlaysFile:"relative/overlays.json",timeline:"final",coords:"normalized-top-left"}`. Track uses `per_frame`; overlays uses `overlays`. Never pair an original transcript with montage timestamps or an untransformed source track with a cropped render. The hash declaration is supplied provenance, not automatic proof of the alignment.
|
|
159
|
+
- Run `clean --project ID` before more copies when disk is low. Inspection is read-only. After the user approves optimization, `clean --project ID --deduplicate --confirm` shares identical file blocks via copy-on-write on supported filesystems. Files remain independently editable; no hardlinks, symlinks, master deletion or recursive cleanup. Logical duplicate bytes are not guaranteed reclaimed disk space. Unsupported filesystems return an explanation. Do not run during rendering.
|
|
160
|
+
- `variants create comenta --project ID --file changes.json` accepts `{cta:"...",hook:"...",instructions:"..."}` (only needed fields). This creates a local edit specification and input snapshot, not a rendered video or a synced project. Reuse base sources by path, render separately, recompute cutmap/caption/motion timing, and verify the variant. Base approval never carries over. `variants list --project ID` reports changed base context. Never copy all source media into each variant.
|
|
@@ -80,6 +80,11 @@ Change layout/contrast deliberately rather than shrinking everything or adding
|
|
|
80
80
|
an opaque box by default. A CTA uses the chosen goal, exact word/link and treatment;
|
|
81
81
|
do not blend alternate endings or invent a keyword the viewer was never told.
|
|
82
82
|
|
|
83
|
+
For karaoke, verify the highlighted word against the actual voice using
|
|
84
|
+
[word-level alignment](audio-production.md#word-level-caption-alignment).
|
|
85
|
+
Correct text and a valid cue list do not establish synchronization; preserve
|
|
86
|
+
unaffected visuals when fixing timing.
|
|
87
|
+
|
|
83
88
|
## Test the difficult part
|
|
84
89
|
|
|
85
90
|
Build a representative pilot when the edit introduces substantial uncertainty. Choose events that exercise the selected mechanism, asset action, timing and sound. A static hero frame is not a representative test of a motion-led style. Assess communication, editorial character, readability and whether the available assets can actually support the plan. Correct failures before multiplying scenes.
|
|
@@ -23,20 +23,41 @@ the affected work. Current user instructions may create explicit project excepti
|
|
|
23
23
|
do not silently replace required branding. “No music” does not forbid narration or
|
|
24
24
|
SFX. Preserve authentic colors in footage/logos unless intentionally requested.
|
|
25
25
|
|
|
26
|
-
##
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
## Choose the review surface before delivery
|
|
27
|
+
|
|
28
|
+
Review mode (`direct`, `directions`, `sample`) decides when to show an edit, not
|
|
29
|
+
where the user can watch it. Use this order for the review surface:
|
|
30
|
+
|
|
31
|
+
1. The current user's request, including a request to move existing samples online.
|
|
32
|
+
2. An explicit review choice already saved for this project.
|
|
33
|
+
3. A saved storage destination of `cloud` or `both`, with valid upload authorization
|
|
34
|
+
for these review copies and the current workspace's permissions.
|
|
35
|
+
4. **En computadora** only when none of those choices applies.
|
|
36
|
+
|
|
37
|
+
Read preferences through the commands/tools actually available to this account.
|
|
38
|
+
A returned `configured:false` with effective local defaults means unconfigured,
|
|
39
|
+
not a user decision to keep reviews local. A default is never a revocation of
|
|
40
|
+
permission already given. If saved uploads are explicitly disabled, do not silently
|
|
41
|
+
change that setting; honor the scoped current request through an allowed route or
|
|
42
|
+
explain the actual conflict. Never bypass access or quota restrictions.
|
|
43
|
+
|
|
44
|
+
For a project-scoped choice, record the user's review instruction and its scope in
|
|
45
|
+
`direction.md` before capturing the review context. Use existing document revision
|
|
46
|
+
checks; do not invent a `reviewSurface` field in `project.json` or a preference API.
|
|
47
|
+
Permission for private previews does not change global preferences, final storage,
|
|
48
|
+
render execution, original uploads, public sharing or paid generation. Do not ask
|
|
49
|
+
again for an unchanged authorization. Do not make every user choose a device.
|
|
50
|
+
|
|
51
|
+
Respect the effective review mode and existing exact-version decisions. For samples,
|
|
52
|
+
use this project's actual material, not a library example. If computer review wins,
|
|
53
|
+
use the local artifact below, with no cloud upload. If web/cloud review wins, follow
|
|
54
|
+
[storage and previews](storage-and-previews.md), register the lightweight samples
|
|
55
|
+
and deliver a verified private web player; localhost alone does not satisfy it.
|
|
32
56
|
A local approval is not a registered web approval; do not invent server progress.
|
|
33
|
-
Do not ask everyone to choose a device or add another onboarding screen.
|
|
34
57
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
existing exact bytes/revisions. Then upload through `assets upload`, link the returned asset in `videos/ID/media.json`,
|
|
39
|
-
then check workflow again (the manifest changed). Register privately:
|
|
58
|
+
For web review, reuse existing exact bytes/revisions. Upload through `assets upload`,
|
|
59
|
+
link the returned assets in `videos/ID/media.json`, then check workflow again because
|
|
60
|
+
these documents affect the context. Register privately:
|
|
40
61
|
|
|
41
62
|
```sh
|
|
42
63
|
editorbrain production sample --project ID --file .editorbrain-local/sample.json
|
|
@@ -46,9 +67,29 @@ editorbrain production reviews --project ID
|
|
|
46
67
|
The JSON contains `assetId`, `contextVersion`, `title`, optional `notes`, optional
|
|
47
68
|
`parentRevisionId`, and optional UUID `revisionId` for retry-safe registration.
|
|
48
69
|
Use the shared snapshot's `contextVersion`, not the legacy `context.contextVersion`.
|
|
49
|
-
The user sees the
|
|
70
|
+
The user sees the web sample in the project's **Revisar y compartir** tab (`/app/projects/ID?tab=review`). Use the correct workspace when building the authenticated link. MCP tools are
|
|
50
71
|
`create_production_review` and `list_production_reviews`. This creates no public link.
|
|
51
72
|
|
|
73
|
+
### Alternative directions in the web player
|
|
74
|
+
|
|
75
|
+
For A/B or up to three alternatives, prepare small inspected copies and label each
|
|
76
|
+
one clearly with its direction, recommendation if applicable, and sample-only scope.
|
|
77
|
+
Reuse matching workspace hashes; never re-upload originals to publish these samples.
|
|
78
|
+
Save the review instruction in `direction.md`, then merge **all** uploaded samples
|
|
79
|
+
into the existing `media.json` in one revision-checked write without removing assets.
|
|
80
|
+
Read `check_workflow.editorialSnapshot.contextVersion` after those document writes.
|
|
81
|
+
Register every alternative against that same current context, with no
|
|
82
|
+
`parentRevisionId`: they are sibling options, not corrections of each other. Preserve
|
|
83
|
+
one UUID per alternative for retries; after an uncertain write, list reviews before
|
|
84
|
+
retrying. If context changes during registration, stop and reconcile before continuing.
|
|
85
|
+
|
|
86
|
+
The existing web player switches samples through its version selector; it is not a
|
|
87
|
+
native side-by-side directions comparator. Explain which titles to select and verify
|
|
88
|
+
that every option loads and plays. Selecting or watching a sample is not approval.
|
|
89
|
+
Keep direction selection distinct from final acceptance; never auto-approve options
|
|
90
|
+
or mark the project complete. A later correction may use the selected option as its
|
|
91
|
+
parent. Inspect existing review and feedback state before changing versions.
|
|
92
|
+
|
|
52
93
|
If the user approves in chat, record that existing exact-version decision with
|
|
53
94
|
`approve_production_review` (`userConfirmed:true`), or:
|
|
54
95
|
|
|
@@ -229,11 +270,13 @@ and source evidence only when still valid; do not re-transcribe unchanged speech
|
|
|
229
270
|
|
|
230
271
|
## Visual artifact in the user's chat
|
|
231
272
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
273
|
+
Unless the user asks otherwise, each new edit and revised preview/final gets a
|
|
274
|
+
visual review on the surface chosen above. This section describes the local HTML that the assistant opens inside
|
|
275
|
+
Claude/Codex when computer review applies. For web/cloud review, the registered,
|
|
276
|
+
verified private project player satisfies that delivery; do not additionally require
|
|
277
|
+
a local artifact or send localhost as the only link. An empty dashboard or long chat
|
|
278
|
+
description alone is not a visual review. The local interface is neutral black and
|
|
279
|
+
white; its colors are not the customer's video palette. No extra model is needed.
|
|
237
280
|
|
|
238
281
|
Discover `production review-artifact` in the installed CLI before calling it:
|
|
239
282
|
|
|
@@ -250,7 +293,7 @@ Input (local, not uploaded):
|
|
|
250
293
|
"title": "Your video",
|
|
251
294
|
"version": "v1",
|
|
252
295
|
"stage": "review",
|
|
253
|
-
"video": {"file": ".editorbrain-local/preview-v1.mp4"},
|
|
296
|
+
"video": {"file": ".editorbrain-local/preview-v1.mp4", "purpose": "preview", "quality": 480},
|
|
254
297
|
"transcript": {
|
|
255
298
|
"schemaVersion": 1,
|
|
256
299
|
"durationMs": 12000,
|
|
@@ -275,7 +318,9 @@ of transcript: group words into coherent phrases, never silently truncate.
|
|
|
275
318
|
Attach relevant authorized visual samples and inspected HTTPS reference links.
|
|
276
319
|
No `video` or `transcript` in this stage. No raw library footage copied into a
|
|
277
320
|
portable artifact without distribution rights. Label concept vs actual footage.
|
|
278
|
-
- `review`:
|
|
321
|
+
- `review`: use video.purpose="preview" and quality=480 (or 720) to label the draft.
|
|
322
|
+
A preview cannot be marked as final delivery. After approval, render from originals
|
|
323
|
+
at the resolved final profile, never upscale the preview. Show the actual lightweight preview and its optional phrase cut map.
|
|
279
324
|
The user marks moments, requests phrase removal/recovery and copies the prepared
|
|
280
325
|
request, or downloads feedback JSON to attach in the same chat.
|
|
281
326
|
- `delivery`: same layout, exact delivered version, final approval explicitly
|
|
@@ -283,7 +328,8 @@ of transcript: group words into coherent phrases, never silently truncate.
|
|
|
283
328
|
|
|
284
329
|
The default output is a small private HTML, a `.review.json` manifest and a
|
|
285
330
|
hash-pinned media folder beside it. Keep them together; do not attach only the HTML
|
|
286
|
-
or print its bytes/base64 into model context.
|
|
331
|
+
or print its bytes/base64 into model context. Local media can be up to 2 GiB and is served by byte ranges from a disk snapshot,
|
|
332
|
+
not loaded entirely into RAM. Prefer smaller copies for fast seeking; use
|
|
287
333
|
`media preview` for a lightweight review copy and preserve originals/masters.
|
|
288
334
|
Outputs are write-once: use a new filename for each revision. Nothing is uploaded.
|
|
289
335
|
|
|
@@ -308,8 +354,10 @@ runner that needs a configured port; address-in-use must be fixed, not ignored.
|
|
|
308
354
|
is unavailable, open the exact URL in the computer's ordinary browser and provide
|
|
309
355
|
the link. Keep the preview process running while the user reviews.
|
|
310
356
|
- **Remote or phone session:** localhost refers to the execution computer, not
|
|
311
|
-
the user's phone.
|
|
312
|
-
authorized
|
|
357
|
+
the user's phone. Follow the resolved review surface and upload authorization above.
|
|
358
|
+
For authorized web review, use the authenticated player below. If permissions or
|
|
359
|
+
capacity block it, explain that blocker and offer an accessible alternative; do not
|
|
360
|
+
claim an inaccessible localhost link completes the requested review.
|
|
313
361
|
|
|
314
362
|
Check video metadata/duration, actual playback, seek to a later moment, and confirm
|
|
315
363
|
that a timestamped comment can be saved/exported before saying it is ready. Use a
|
|
@@ -335,7 +383,7 @@ The action visibly says to copy/paste into this chat. Never label it “sent”
|
|
|
335
383
|
a confirmed connection. Keep direct editing direct: the final artifact is delivery,
|
|
336
384
|
not a new mandatory mid-edit approval.
|
|
337
385
|
|
|
338
|
-
###
|
|
386
|
+
### Authenticated web review and transcript interoperability
|
|
339
387
|
|
|
340
388
|
The collapsed “¿Quieres revisarlo en tu teléfono?” prepares a copy-to-chat request;
|
|
341
389
|
it does not connect, upload, wake the agent or synchronize local comments. Reconcile
|