editorbrain 0.38.0 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.38.0",
3
+ "version": "0.40.1",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -39,7 +39,7 @@ that direction:
39
39
  | Montage | Preserve the intended ideas and selected CTA; map complete takes and purposeful pacing from source time to final time | [Production review](references/production-and-review.md); speech joins: [audio](references/audio-production.md) |
40
40
  | Media | Cover the relevant beats with acquired, inspected assets before full composition; carry their intended use into motion and review | [Media acquisition](references/real-media.md) |
41
41
  | Motion | Staging, movement and transitions that express the scene's purpose | [Motion skill](../editorbrain-motion/SKILL.md) |
42
- | Sound | Intact speech and final-time alignment; independently honor voice, music and SFX, auditioning the actual mix | [Audio](references/audio-production.md) |
42
+ | Sound | Intact speech and final-time alignment; independently honor voice, music and SFX, auditioning the actual mix | [Audio](references/audio-production.md); [SFX](references/sfx-library.md) |
43
43
  | Review | Compare meaning, reference mechanisms, preferences and perceptual quality with the actual output; return localized defects | [Production review](references/production-and-review.md) |
44
44
 
45
45
  All reuse the same resolved snapshot and current scene decisions. No guide,
@@ -78,6 +78,14 @@ When available, carry the common `editorialSnapshot` through every scene/tool ha
78
78
 
79
79
  Use the checkpoint's personal integrations to choose feasible resources. They are this member's declarations, not credentials or live connection checks. Verify the selected provider's actual tool/account access in this session; never borrow another member's connection. Keep proposals viable with available footage and tools; do not require a paid integration. Read [integrations](references/integrations.md) when configuring or using one, and respect provider preferences and the task's authorized spending.
80
80
 
81
+ Personal library likes live in `check_workflow.libraryFavorites`, scoped to this
82
+ member and the project's brand, independently from required preferences. Use
83
+ relevant favorites as candidates after reading the source and edited-video
84
+ evidence. They do not prescribe a template, replace brand tokens or activate
85
+ media/audio categories. Fetch the full list with `get_library_favorites` /
86
+ `library favorites --brand` only if the compact list is insufficient. Do not
87
+ claim a saved like proves inspection. A workspace key has no personal taste.
88
+
81
89
  ## Inspect and retrieve evidence
82
90
 
83
91
  Inspect actual source content, action, usable intervals, motion and relevant audio. Filenames, metadata, inventory and tags are leads, not content review. Declare modality and coverage limits; snapshots prove neither motion nor sound. Optional [local production helpers](references/local-production.md) provide technical measurements without uploading footage or certifying content inspection.
@@ -17,11 +17,16 @@ When the user asks to save an edit as a style, create a new style or improve an
17
17
 
18
18
  ## Start here, including a first installation
19
19
 
20
+ For a new request, use [adaptive entry](references/starting-an-edit.md) to choose
21
+ the next unresolved action from chat, supplied footage, an idea or a copied web
22
+ selection. Reuse it within the session. This is not a fixed wizard: skip answered
23
+ questions and approved choices, and preserve scope on corrections.
24
+
20
25
  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.
21
26
 
22
27
  1. Read the bundled [AGENTS.md](AGENTS.md) once for the editorial contract. Do not assume the host loads this nested file automatically.
23
28
  2. If no workspace is ready, use [first edit](references/first-edit.md). For visual onboarding inside this agent, load [onboarding](references/onboarding.md) only then; discover command availability before use. Verify connection, discover or create the active project, and prepare its context without overwriting existing files. Read [CLI and MCP](references/cli-mcp.md) only for the commands needed now. If connected access is team-restricted, follow its team section before retrieving context or sharing media; permissions do not override the selected project’s preferences.
24
- 3. Match any requested brand name to its saved ID before selecting or creating a project; use compact brand/project discovery when available, and never guess between duplicates. Read the selected project's `project.json`, brief, direction and the brand/style files it names. Resolve effective tokens and inspect available editing tools. Use `check_workflow` (CLI `editorbrain workflow check`) for creative direction, review preference, scoped memory and personal integrations. If creative configuration is pending, complete only those categories through [onboarding](references/onboarding.md) before editing. Choose the resource route before checking funds: personal integrations/native host tools do not require EditorBrain creative credits; built-in tools do. Never switch paid routes silently. On a blocker, explain the next step with a verified link and one compatible alternative; use returned recovery guidance. Declared access is not a working connection; check the needed provider in this session and read [integrations](references/integrations.md) only when using or configuring one. If `audioProduction` is present, honor its voice/SFX/loudness choices; read [audio production](references/audio-production.md) when needed. Use `context.mediaPreferences` for saved image/motion choices; fetch only needed recipes with `get_media_style` / `media style <id> --style-version <version>` (see [media preferences](references/media-preferences.md) when adapting them). Compare workflow version and `contextVersion` at later checkpoints; fetch changed context before acting. Do not load every project or library document.
29
+ 3. Match any requested brand name to its saved ID before selecting or creating a project; use compact brand/project discovery when available, and never guess between duplicates. Read the selected project's `project.json`, brief, direction and the brand/style files it names. Resolve effective tokens and inspect available editing tools. Use `check_workflow` (CLI `editorbrain workflow check`) for creative direction, review preference, scoped memory and personal integrations. If creative configuration is pending, complete only those categories through [onboarding](references/onboarding.md), respecting questionPolicy: autonomous delegates reversible aesthetics per project without marking them confirmed or blocking on optional choices. Choose the resource route before checking funds: personal integrations/native host tools do not require EditorBrain creative credits; built-in tools do. Never switch paid routes silently. On a blocker, explain the next step with a verified link and one compatible alternative; use returned recovery guidance. Declared access is not a working connection; check the needed provider in this session and read [integrations](references/integrations.md) only when using or configuring one. If `audioProduction` is present, honor its voice/SFX/loudness choices; read [audio production](references/audio-production.md) when needed. Use `context.mediaPreferences` for saved image/motion choices; fetch only needed recipes with `get_media_style` / `media style <id> --style-version <version>` (see [media preferences](references/media-preferences.md) when adapting them). Compare workflow version and `contextVersion` at later checkpoints; fetch changed context before acting. Do not load every project or library document.
25
30
  4. Inspect the actual script/video yourself. Understand its argument, goal, audience, tone, rhythm, usable resources and brand restrictions. For unfamiliar multi-clip material or technical render checks, use [local production](references/local-production.md) as needed. Read compact results and fetch details only to answer a specific question. Declare what you could inspect: script, frames, motion, audio and coverage. If you cannot access a modality, keep the limitation explicit; never invent it from a filename.
26
31
  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.
27
32
  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.
@@ -34,6 +39,8 @@ Read resolved `questionPolicy` before asking: essential asks only consequential
34
39
 
35
40
  ## Specialized work, loaded when needed
36
41
 
42
+ 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
+
37
44
  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.
38
45
 
39
46
  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.
@@ -78,7 +78,7 @@ ASR for every harmless visual change. Normalize proper names against evidence
78
78
  without altering the spoken meaning. Report unavailable listening review;
79
79
  technical audio checks alone do not certify intact speech.
80
80
 
81
- ## Event-aligned local SFX mix (next release)
81
+ ## Event-aligned local SFX mix
82
82
 
83
83
  For code animation, declare the cue beside the visual event, then export one list
84
84
  in **final output seconds**. Remap composition time through the exact kept ranges;
@@ -87,10 +87,10 @@ as a side effect of `draw(t)`; seeks must not duplicate them. Motion primitives
87
87
  expose disabled suggestions through `getMotionCues()`; these are not permission
88
88
  or actual audio. Respect current SFX density, exclusions and permitted sources.
89
89
 
90
- `production mix-events --voice voice.wav --cues cues.json --out .editorbrain-local/new-mix`
90
+ `production mix-events --project my-video --voice voice.wav --cues cues.json --hook-end 3 --out .editorbrain-local/new-mix`
91
91
  accepts `{schemaVersion:1, clock:"output_seconds", cues:[{id,time,file,peak,reason}]}`.
92
92
  Files are relative to the JSON directory. `peak` is linear peak amplitude (e.g.
93
- 0.06), not LUFS. Use an existing permitted SFX bank; no personal bank is distributed.
93
+ 0.06), not LUFS. Use an available permitted SFX bank, retaining the selected file hashes.
94
94
  The command aligns the decoded SFX peak to the event, keeps voice gain at 1, adds
95
95
  no music and rejects clipping rather than silently normalizing the voice. Trim
96
96
  unwanted tails in prepared source effects, not implicitly at delivery. Empty cues
@@ -98,3 +98,16 @@ are allowed. Bounds: voice up to 10 minutes, each SFX up to 10 seconds, 300 cues
98
98
  Listen to the rendered mix: audible attack can precede its maximum peak. The
99
99
  sample-peak check does not certify true peak/loudness; use the existing audio
100
100
  checks and review the final encoded video. New outputs never replace source audio.
101
+
102
+ For EditorBrain edits, always pass `--project`. It resolves current local
103
+ preferences and, when logged in, compares them with the connected project;
104
+ conflicts require reconciliation rather than overwriting. Use `--offline` only
105
+ for deliberately local work and report that scope. `--hook-end` is the actual
106
+ final-time opening boundary (3 above is illustrative). Disabled effects and
107
+ protected-hook overlap prevent writing the final mix, including when alignment
108
+ moves an effect's pre-peak attack into the hook. Source and preference changes
109
+ also stop the mix before publication. The legacy command without `--project`
110
+ still works as a low-level tool but reports `contextScope:not_checked`; it cannot
111
+ claim preference compliance. Review the final encoded file even after these
112
+ checks. An external renderer must apply equivalent exclusions; the service does
113
+ not control arbitrary host-side audio code.
@@ -1,6 +1,8 @@
1
1
  # First edit: from an empty folder to reviewed output
2
2
 
3
- Use this only when the user's environment or project is not ready. Do not re-onboard an existing project.
3
+ Use this only when the user's environment or project is not ready. Do not re-onboard an existing project. Use [adaptive entry](starting-an-edit.md)
4
+ to reuse supplied material, selections and answers; setup is only for a missing
5
+ dependency, not a required introduction on every video.
4
6
 
5
7
  ## Establish a working workspace
6
8
 
@@ -177,7 +177,10 @@ read the current request first. If the user already said no questions, honor it
177
177
  this task without asking them to confirm that preference again. A saved brand choice
178
178
  requires an explicit request; project.json.questionMode is a scoped override.
179
179
  Use get_onboarding_guide.consultation for shared labels and guidance. Frequency is
180
- separate from aesthetics and reviewMode. For unattended edits, explain once that
180
+ separate from aesthetics and reviewMode. Use [adaptive entry](starting-an-edit.md)
181
+ for the user-facing handoff. `get_onboarding_guide.interactionPreview`, when
182
+ present, previews draft choices only; `check_workflow.interaction` reflects
183
+ resolved project settings. Never call draft account choices saved. For unattended edits, explain once that
181
184
  direct review avoids creative approval pauses, but never silently change reviewMode.
182
185
 
183
186
  Before asking, inspect material/transcript, current request and saved context. Only
@@ -1,8 +1,23 @@
1
1
  # Select sound by scene purpose
2
2
 
3
- Load only when adding sound effects. Resolve/workflow first. Read effective `audioProduction` and `sfxPolicy`; project exceptions must be explicit. Refresh when preferences change and before rendering. Density controls frequency, not volume: sparse means selective accents; moderate accompanies meaningful actions; dense allows more varied accents, never a quota. Character is a preference; do not force a cinematic impact into a quiet scene. Keep protected hooks free of added effects.
3
+ Load when SFX are requested or relevant; do not wait for the agent to have already decided to add them. Resolve/workflow first. Read effective `audioProduction` and `sfxPolicy`; project exceptions must be explicit. Refresh when preferences change and before rendering. Use `policy.densityGuidance` as the common policy across workflow, CLI and MCP. Density controls frequency, not volume. Character is a preference; do not force a cinematic impact into a quiet scene. Keep protected hooks free of added effects.
4
4
 
5
- ## Workspace library (MCP or CLI)
5
+ | User choice | Editorial treatment |
6
+ |---|---|
7
+ | None (`none`) | No added SFX, even synthesized clicks or sounds embedded by a motion component. Preserve source ambience unless separately excluded. |
8
+ | Subtle (`sparse`) | Isolated accents for important actions/reveals; most moments remain free of added effects. |
9
+ | Balanced (`moderate`) | Selected accents on meaningful actions, transitions and emphasis, with breathing space. |
10
+ | Expressive / abundant (`dense`) | Richer, varied design across relevant beats, with purposeful layers when they help. Preserve contrast and intelligibility; never equate density with loudness. |
11
+ | Unspecified (`adaptive` in policy) | Choose with the current brief and inspected references, respecting question policy. Do not default to maximum intensity. |
12
+
13
+ Decide the intended treatment in the existing direction before choosing files. A
14
+ quiet hold can be correct even in an expressive edit; no minimum sound count is
15
+ required. If no suitable effect is used despite an explicit treatment, record the
16
+ reason. No result, unavailable media or forbidden generation is not a credit
17
+ shortage and does not authorize a provider switch. Continue the independent edit
18
+ and explain the affected sound decision. Never infer sounds from silent frames.
19
+
20
+ ## Shared and workspace libraries (MCP or CLI)
6
21
 
7
22
  1. `search_sfx({projectId,query,sceneRole:"hook"|"body"|"cta",limit:6})`, or:
8
23
  `editorbrain sfx search --project my-video --query "clic de botón" --scene-role body`
@@ -11,7 +26,34 @@ Load only when adding sound effects. Resolve/workflow first. Read effective `aud
11
26
  `editorbrain sfx get SOUND_ID --project my-video --bank BANK --catalog-sha256 HASH`
12
27
  4. Download the temporary link, verify SHA-256 and audition the actual sound. Persist asset ID/hash, not signed URLs. The catalog hash pins the result; changed catalogs require a new search. Rights are declarations, not independent license verification. Never redistribute licensed originals as public samples.
13
28
 
14
- Search is compact lexical matching with bilingual terms, not audio embeddings or recognition. Query actual purpose (click, paper, impact, whoosh), inspect candidates and listen. Filename hints do not prove a particular event is present, tasteful or audible. No sound bank is guaranteed to be included in an installation.
29
+ Search is compact lexical matching with bilingual terms, not audio embeddings or recognition. Query actual purpose (click, paper, impact, whoosh), inspect candidates and listen. Filename hints do not prove a particular event is present, tasteful or audible. Discover available banks from the authenticated service. The curated `editorbrain-essentials-v1` bank is available only after its media is published and enabled. Private banks remain workspace-scoped. Never assume that a bank is present or bypass an unavailable bank with an unapproved alternative.
30
+
31
+
32
+ ## Selection from the web and personal favorites
33
+
34
+ The web library separates **Ediciones**, **Animaciones** and **Sonidos**. A copied
35
+ sound prompt pins the workspace, brand, bank ID, sound ID, catalog hash and file
36
+ hash. Match the connected identity and target project first. Retrieve that exact
37
+ selection with `get_sfx` / `sfx get`; do not search for a similar filename instead.
38
+ Pass the actual scene role (`--scene-role hook` for a hook). A web selection does
39
+ not enable disabled SFX, override a configured bank or cancel a protected hook.
40
+ Honor the user's question policy when a project exception is needed.
41
+
42
+ `check_workflow.libraryFavorites` includes up to 30 recent, accessible favorites
43
+ for the authenticated member and project's brand. `get_library_favorites` or
44
+ `editorbrain library favorites --brand BRAND_ID` reads the full bounded list when
45
+ needed. Likes are taste signals, not requirements or proof of listening. Choose
46
+ relevant sounds alongside other candidates, vary repetition and preserve audio
47
+ preferences. Removing a favorite does not ban it. Workspace API keys have no
48
+ member and cannot inherit the owner's likes; use the member's device/OAuth
49
+ connection. Never copy another member's favorites into shared brand rules.
50
+
51
+ Previews are light audition derivatives. Production retrieval returns the
52
+ original recording, not the preview. Some recordings contain multiple actions:
53
+ listen and choose the appropriate segment, preserve its hash and final-time cue.
54
+ Shared sounds use private, short-lived links; they do not consume the customer's
55
+ uploaded-asset storage quota. Downloads recheck connection/project access and
56
+ effective SFX restrictions. Expired links must be renewed through `get_sfx`.
15
57
 
16
58
  ## User's local bank (explicit local mode)
17
59
 
@@ -25,11 +67,18 @@ Use `sfx get` with the returned ID/hash and same local flags to resolve an origi
25
67
 
26
68
  ## Placement and verification
27
69
 
28
- Keep a local cue plan `{durationSeconds,hookEndSeconds,cues:[{at,durationSeconds,soundId,purpose}]}` in `.editorbrain-local/`. Times use the final timeline, after cuts/speed changes. Record the actual selected catalog/asset hashes alongside production evidence.
70
+ 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.
71
+
72
+ For a connected project, use `check_sfx_plan({projectId,plan,expectedContextHash?})`
73
+ or `editorbrain sfx check --remote --project my-video --plan .editorbrain-local/sfx-plan.json --dir ./project`.
74
+ An optional `--context-hash` pins the hash from **remote SFX search/get/check**, not the
75
+ workflow version. A mismatch requires refreshing preferences and revising the
76
+ plan; never retry by simply dropping the pin. This sends only cue metadata, not
77
+ sound files or local paths. It works without a local project copy.
29
78
 
30
- `editorbrain sfx check --project my-video --plan .editorbrain-local/sfx-plan.json --dir ./project`
79
+ For an explicitly local project, `editorbrain sfx check --project my-video --plan .editorbrain-local/sfx-plan.json --dir ./project` reads local documents only (legacy behavior). It must not be presented as a check of current web preferences. Discover tool availability first on older installations; update the CLI/service for remote checking rather than silently falling back to stale local data.
31
80
 
32
- The check rejects effects when disabled and overlap with a protected hook; warns about tightly packed accents/repetition. It checks declarations, not a render. Trim samples deliberately; leave voice intelligible, use fades/ducking when needed, and do not accent every subtitle. Run `production audio-check` on the actual delivered file and listen for synchronization, clipping, masking and excess. Meters alone cannot certify SFX audibility. Never claim listening review if the host could not listen.
81
+ The check rejects effects when disabled, a missing protected-hook boundary and overlap with that hook; it warns about tightly packed accents, repetition and unexplained empty requested treatment. `passed` concerns these declared constraints; `densityReview` still requires editorial judgment. It checks declarations, not a render. Trim samples deliberately; leave voice intelligible, use fades/ducking when needed, and do not accent every subtitle. Run `production audio-check` on the actual delivered file and listen for synchronization, clipping, masking and excess. Meters alone cannot certify SFX audibility. Never claim listening review if the host could not listen.
33
82
 
34
83
  For a chosen accent, align its attack to the current final-time event and audition
35
84
  both the isolated sound and the encoded mix. Prefer a few audible, appropriate
@@ -0,0 +1,114 @@
1
+ # Adaptive start: one project, several entry points
2
+
3
+ This is a routing guide, not a wizard or a mandatory questionnaire. The current
4
+ request, effective preferences and scoped approvals govern. Enter at the next
5
+ unresolved decision; skip what is already known. The shared AGENTS contract owns
6
+ editorial quality, permissions and context precedence.
7
+
8
+ ## Orient, then act
9
+
10
+ Give a short, specific next action once the request is understood. For example:
11
+ “I'll use your saved brand and review this recording before proposing an edit.”
12
+ Do not recite internal tools, every production stage or an onboarding questionnaire.
13
+ Use the user's language; these examples are not required scripts.
14
+
15
+ - **Only “I want a video with EditorBrain”:** retrieve ready context first. If the
16
+ request gives neither accessible footage nor an idea, ask one compact question
17
+ under questionPolicy: “Do you have a recording to edit, or an idea to create?”
18
+ Offer these as choices where the host supports them; plain chat works too.
19
+ If a necessary input is missing in autonomous mode, state what is pending
20
+ without a question, and continue only useful independent preparation. Do not
21
+ invent the user's footage or topic just to produce an artifact.
22
+ - **Footage attached:** inspect it and its usable speech/content. Infer reversible
23
+ details from the actual material and saved preferences. Do not ask “what topic?”
24
+ or “which format?” when already clear. Ask only consequential unresolved needs.
25
+ - **A topic or script without footage:** develop the requested video from that
26
+ brief, using allowed personal/web/generated resources and available tools.
27
+ Do not force the user to record themselves or complete optional setup fields.
28
+ A request for ideas or a script alone does not authorize producing a full video.
29
+ - **A style/reference selected:** preserve its requested method and scope. Show
30
+ how it fits this material instead of asking the user to select it again. If the
31
+ direction is already chosen, do not present competing styles merely to fill
32
+ an artifact. Check actual evidence; a selected style is not a reviewed sample.
33
+ - **One or several animation prompts copied from the web:** retrieve the exact
34
+ IDs/versions, ratios, presets and requested changes. A direct selection is a
35
+ request, not just a like. Inspect fit, explain genuine incompatibilities and
36
+ preserve the rest. These mechanisms do not determine the whole video's style;
37
+ establish only the missing direction and scene uses. A source-only request
38
+ stops at source inspection. Do not concatenate catalog demos into a video.
39
+ - **A correction or resumed project:** open the existing version and pending
40
+ feedback. Reuse valid context, evidence and scoped approvals. Do not restart
41
+ onboarding, regenerate all assets or reoffer styles for a localized change.
42
+
43
+ If connection/project setup is missing, follow [first edit](first-edit.md) for
44
+ only that gap. A new video for an existing brand needs a new project, not new
45
+ brand preferences. Disambiguate identity according to questionPolicy; never
46
+ borrow a different brand or account to keep moving. Resolve the same project
47
+ for CLI and MCP. Use the tool route before checking the applicable credit pool.
48
+
49
+ ## One next action, chosen from the context
50
+
51
+ Read check_workflow/`editorbrain workflow check` before dependent production.
52
+ When available, `interaction` describes saved consultation/review settings.
53
+ `needs-project-context` is unknown, not permission to use another brand's
54
+ settings. Older clients can use questionPolicy and review mode directly.
55
+
56
+ Consultation, creative delegation and review are separate. Do not silently
57
+ rewrite brand/account preferences to reconcile them. Current task instructions
58
+ can supply scoped direction; persist only explicitly requested changes.
59
+
60
+ - **Essential:** ask only unresolved information that materially changes the
61
+ result. Reuse answers and inspect before asking. Use questionPlan for real gaps.
62
+ - **Collaborative:** give a recommendation and a small set of consequential
63
+ choices, at most three questions per round. Do not quiz about every shot.
64
+ - **Autonomous:** make reversible creative decisions from evidence, with no
65
+ questions. Missing source/permission or a required review pauses only affected
66
+ work. State the specific dependency and a recovery action; silence is not consent.
67
+
68
+ For review, apply the preference to the work actually remaining:
69
+ - **Directions:** when direction is open, show 1–3 useful visual directions with
70
+ inspected, labelled examples. Recommend one. If the user already selected the
71
+ direction, record that scoped choice and proceed; don't ask them to choose again.
72
+ - **Sample:** make a representative frame/short clip with the customer's actual
73
+ material before full production. Reuse an already-approved, still-valid sample.
74
+ Picking a style or liking a mechanism does not approve that sample.
75
+ - **Direct:** implement and review without inserting a creative approval pause.
76
+ Still deliver the visual review artifact and permit corrections afterward.
77
+
78
+ If autonomous and directions/sample are both saved, explain the review pause
79
+ once in a short notice (workflow may supply `interaction.reviewNotice`). Prepare
80
+ what can be reviewed and leave the required decision pending without prompting.
81
+ Do not claim unattended completion or switch to direct yourself. If the current
82
+ request already approves a particular direction/sample, reuse only that scope.
83
+ For future unattended work, describe “Editar sin preguntas” + “Editar directamente”
84
+ as an option, not a mandatory settings change. Spending and publication remain
85
+ separately authorized even with that combination.
86
+
87
+ ## Visual continuity, not a page of explanations
88
+
89
+ Use [the review artifact](production-continuity.md#visual-artifact-in-the-users-chat)
90
+ for directions, actual preview and delivery as appropriate. Carry the same
91
+ project/version across them. Do not make an empty welcome artifact or create all
92
+ three stages for every edit. A simple correction can go straight to a new preview.
93
+ Use real inspected reference previews, or label an illustrative proposal honestly.
94
+ The tool and its UI support this interaction; do not invent preview media.
95
+
96
+ Keep one obvious next action: choose the proposed direction, request a localized
97
+ change, or review the delivery. With local HTML, selection/comments prepare a
98
+ message: copy it and paste it in the same Claude/Codex chat to continue. Make this
99
+ step visible beside the action and explain it briefly on the first handoff; don't
100
+ say “sent”, “editing” or “done” just because a button was clicked. Where a host
101
+ supports structured questions, use them for short choices rather than requiring
102
+ an HTML artifact for everything.
103
+
104
+ Check that the actual host can display/play the artifact. If it cannot, attach
105
+ it to open in a browser. Local computer review is the default. Phone/web review
106
+ uses an authorized lightweight private copy and verified project link; do not
107
+ upload originals or send a localhost URL as a phone-accessible preview. Direct
108
+ mode still gets a final artifact, not an additional mandatory approval before
109
+ producing it.
110
+
111
+ End the handoff with what is ready and the next action or specific blocker.
112
+ Keep the full execution/evidence record in project files, not in a wall of chat
113
+ text. This guide does not certify render quality: inspect the actual result and
114
+ preserve the main editorial evidence, media, sound and review contracts.
@@ -91,8 +91,20 @@ Download the asset through existing authenticated asset tools. Never persist exp
91
91
 
92
92
  ## Plan, credits and premium images
93
93
 
94
+ Read `billing status` / `billing_status` for this workspace's current `plans`,
95
+ `planPerks`, `includedAiTools`, actual balance, and availability. Do not copy numeric
96
+ plan terms into prompts or infer tool access from plan names. All four tools accept
97
+ Free credits when enabled; eligibility is distinct from provider availability.
98
+ Free monthly credits refresh on balance reads; do not promise historical rollover
99
+ or another welcome grant after switching brands/workspaces. Recargas and upgrades
100
+ are optional recovery paths, never automatic purchases.
101
+
94
102
  Use `editorbrain billing status` / MCP `billing_status` for this workspace's actual
95
- balance, expiry and search allowance. Account payments happen at
103
+ balance, expiry, search allowance and `topUps` offers. Read each offer's `available`
104
+ flag and the overall billing availability before suggesting a purchase; use the
105
+ returned `purchaseUrl` (or the billing link below on older services). Never infer
106
+ prices from provider credits. Recargas do not require a plan upgrade or unlock
107
+ other plan limits; only an identified workspace owner can buy them. Account payments happen at
96
108
  https://editorbrain.com/app/billing. Never buy or recharge on the user's behalf
97
109
  without explicit authorization. No automatic recharge or automatic paid fallback.
98
110
 
@@ -10,6 +10,55 @@ Use when a scene needs a visual mechanism (an object transforms, a structure fal
10
10
  4. **Validate the motion.** Watch the selected base video's preview (`kind: "video"`, the default). Compare its transformation and timing with the intended beat before committing to its code. Keyframes and the base preview do not certify the preset or a customer-brand render.
11
11
  5. **Source and adaptation.** Request `get_authored_scene_source` with the exact ID, version and bundle SHA-256, or `editorbrain motion source <id> --scene-version <version> --out .editorbrain-local/new-scene.tar.gz`. Downloads require login, verify size/hash, preserve existing files and never extract or execute automatically. Start from the closest `adapt/<name>.json` overrides when present; replace demo values and bind the current project below. Edit code where the card says parameters cannot express the needed change; author a new scene when none fits.
12
12
 
13
+ ### Resource access and membership
14
+
15
+ Remote results can include `access.tier`, `access.canUse`, `requiredPlan` and
16
+ `policyRevision`. Check these before choosing a source. Premium previews remain
17
+ viewable; source downloads require the authenticated workspace's Creator or
18
+ Studio membership. The CLI's bundled local catalog and cards are discovery data,
19
+ not proof of current account access. The server checks access when issuing and
20
+ redeeming a source link, including older pinned catalog versions.
21
+
22
+ On `resource_plan_required` / `RESOURCE_PLAN_REQUIRED`, explain that the user can
23
+ view the preview, review their membership at https://editorbrain.com/app/billing,
24
+ or choose an eligible Free resource if it fits the scene. Buying credits does
25
+ not unlock premium resources. Never switch accounts, try older versions, alter
26
+ preferences, purchase a plan or replace an explicit selection automatically.
27
+ Previously downloaded files stay local; do not delete them. Classification is
28
+ independent of style fit: eligible does not mean editorially appropriate.
29
+
30
+ ### Filter by the material and purpose
31
+
32
+ Use the curated facets returned by the catalog; never reclassify a scene from its
33
+ name or demo niche. `material` is `motion` (code graphics), `fotos` (real photos)
34
+ or `video` (graphics over a real talking-head clip). `funcion` accepts several
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.
39
+
40
+ CLI: `editorbrain motion scenes --material video --funcion ganchos-titulos,presentar-marca --encuadre plano-medio --scene-version <version>`.
41
+ MCP: pass those fields to `list_authored_scenes`. Keep the query, filters and
42
+ version unchanged when following `nextCursor`; start a new page when changing
43
+ filters. Use only fields advertised by the installed CLI/MCP.
44
+
45
+ **Sobre tu video: Necesita tu video hablando a cámara.** These scenes are one
46
+ short animation over a prepared clip, not a complete edited video. Read
47
+ `requirements`: the customer needs their own clip, person matte, tracking and
48
+ word-aligned transcript. The product does not currently prepare that clip as a
49
+ self-service action. Explain the prerequisite if material or tooling is absent;
50
+ continue with a suitable alternative when allowed. Do not silently generate a
51
+ person, reuse a fictional demo as the customer, or claim the preparation is
52
+ available. Preview clips contain fictional AI people with an in-frame credit.
53
+ Keep required provenance. Some bundles include shared `footage/`; preserve its
54
+ relative paths and await the scene's asynchronous media preparation before
55
+ capture. All downloads stay inert and hash-verified, including larger video
56
+ bundles. They never authorize providers or paid transcription.
57
+
58
+ `search_from_brief` can optionally include material/funcion and a motionQuery
59
+ for a separate `authoredMotion` shortlist; its styles/events remain the primary
60
+ edited-video evidence. Motion facets never replace those reference searches.
61
+
13
62
  ### Check compositing before downloading
14
63
 
15
64
  Read `compositing` in the search result and selected card. `output: "opaque"`
@@ -84,3 +133,39 @@ Catalog 1.3.0 requires CLI 0.37.0+ or an MCP server returning 1.3.0. Catalog 1.2
84
133
  ## Do not confuse discovery with automatic brand transfer
85
134
 
86
135
  The catalog selects mechanisms, not a universally fitted layout. Bind contrasting foreground/background pairs (including scene-specific roles such as `onAccent`); assigning the same approved color to every role can make text unreadable. Font changes and duplicate palette entries can require source/layout changes. Keep warning checks enabled. Recompose small labels, paths and glyph spacing instead of silently changing the user's font or ignoring a rejected render. Original preview approval does not approve a different brand, preset or format.
136
+
137
+ ## Personal library likes
138
+
139
+ When the workflow supplies `libraryFavorites`, consider relevant `motion` items
140
+ as pinned candidate IDs/versions for this member and brand. Retrieve their exact
141
+ version; do not silently substitute `latest`. Likes are soft taste evidence,
142
+ not a mandatory palette, recipe or scene count. They never override exclusions,
143
+ current project style or the user's request. Edited-video references remain the
144
+ primary editorial evidence; inspect scene fit and adapt the mechanism. Use
145
+ `get_library_favorites` / `library favorites --brand BRAND_ID` only when the
146
+ compact workflow list does not answer the current decision.
147
+
148
+ ## Transitions between two shots
149
+
150
+ The web keeps **Estilos de edición / Animaciones / Sonidos** under one Biblioteca.
151
+ Transitions are a curated filter inside Animaciones, not another editorial style
152
+ or a requirement to decorate every cut. Search by the relationship (continuity of
153
+ shape, an object expanding to reveal the next idea, closing and opening a chapter).
154
+ Some cards/summaries include optional `transition` guidance: when it fits, when to
155
+ avoid it and what requires code adaptation. Absence means unclassified, not that
156
+ an animation cannot contain motion between states. Older clients can use the card.
157
+
158
+ When the user copies a selection, retrieve its exact ID and version. The web's
159
+ **En contexto** example illustrates two shots; it is not the original catalog
160
+ preview, an exported overlay or a downloadable preset. Inspect **Original** and
161
+ its pinned source. These sources render their own opaque scenes; arbitrary user
162
+ footage requires adapting the composition, not just replacing a text parameter.
163
+
164
+ Identify the outgoing shot, incoming shot and reason for the change. Bind the
165
+ current project's brand, movement preference, actual timing and audio policy.
166
+ Use a direct cut when it communicates better; follow the question/review policy
167
+ for changes to the user's selection. No transition or whoosh quota. Keep the
168
+ user's narration intact; none/sparse/moderate/dense SFX follow the same audio
169
+ policy as the rest of the edit. Check the actual handoff before, through and
170
+ after the cut for frame coverage, object continuity, reading time, faces and
171
+ important content. Save the decision for this project, not as a global style rule.