editorbrain 0.38.0 → 0.39.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.39.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.
@@ -34,6 +34,8 @@ Read resolved `questionPolicy` before asking: essential asks only consequential
34
34
 
35
35
  ## Specialized work, loaded when needed
36
36
 
37
+ 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.
38
+
37
39
  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
40
 
39
41
  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,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
@@ -92,7 +92,11 @@ Download the asset through existing authenticated asset tools. Never persist exp
92
92
  ## Plan, credits and premium images
93
93
 
94
94
  Use `editorbrain billing status` / MCP `billing_status` for this workspace's actual
95
- balance, expiry and search allowance. Account payments happen at
95
+ balance, expiry, search allowance and `topUps` offers. Read each offer's `available`
96
+ flag and the overall billing availability before suggesting a purchase; use the
97
+ returned `purchaseUrl` (or the billing link below on older services). Never infer
98
+ prices from provider credits. Recargas do not require a plan upgrade or unlock
99
+ other plan limits; only an identified workspace owner can buy them. Account payments happen at
96
100
  https://editorbrain.com/app/billing. Never buy or recharge on the user's behalf
97
101
  without explicit authorization. No automatic recharge or automatic paid fallback.
98
102
 
@@ -10,6 +10,38 @@ 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
+ ### Filter by the material and purpose
14
+
15
+ Use the curated facets returned by the catalog; never reclassify a scene from its
16
+ name or demo niche. `material` is `motion` (code graphics), `fotos` (real photos)
17
+ or `video` (graphics over a real talking-head clip). `funcion` accepts several
18
+ values with OR, `encuadre` is only valid with `material: "video"`, and `tresD`
19
+ selects Three.js scenes. Discover labels and available values in
20
+ `facetDefinitions`, `availableFacetCounts` and `facetCounts`. A zero result is
21
+ not permission to drop the user's filters silently.
22
+
23
+ CLI: `editorbrain motion scenes --material video --funcion ganchos-titulos,presentar-marca --encuadre plano-medio --scene-version <version>`.
24
+ MCP: pass those fields to `list_authored_scenes`. Keep the query, filters and
25
+ version unchanged when following `nextCursor`; start a new page when changing
26
+ filters. Use only fields advertised by the installed CLI/MCP.
27
+
28
+ **Sobre tu video: Necesita tu video hablando a cámara.** These scenes are one
29
+ short animation over a prepared clip, not a complete edited video. Read
30
+ `requirements`: the customer needs their own clip, person matte, tracking and
31
+ word-aligned transcript. The product does not currently prepare that clip as a
32
+ self-service action. Explain the prerequisite if material or tooling is absent;
33
+ continue with a suitable alternative when allowed. Do not silently generate a
34
+ person, reuse a fictional demo as the customer, or claim the preparation is
35
+ available. Preview clips contain fictional AI people with an in-frame credit.
36
+ Keep required provenance. Some bundles include shared `footage/`; preserve its
37
+ relative paths and await the scene's asynchronous media preparation before
38
+ capture. All downloads stay inert and hash-verified, including larger video
39
+ bundles. They never authorize providers or paid transcription.
40
+
41
+ `search_from_brief` can optionally include material/funcion and a motionQuery
42
+ for a separate `authoredMotion` shortlist; its styles/events remain the primary
43
+ edited-video evidence. Motion facets never replace those reference searches.
44
+
13
45
  ### Check compositing before downloading
14
46
 
15
47
  Read `compositing` in the search result and selected card. `output: "opaque"`
@@ -84,3 +116,39 @@ Catalog 1.3.0 requires CLI 0.37.0+ or an MCP server returning 1.3.0. Catalog 1.2
84
116
  ## Do not confuse discovery with automatic brand transfer
85
117
 
86
118
  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.
119
+
120
+ ## Personal library likes
121
+
122
+ When the workflow supplies `libraryFavorites`, consider relevant `motion` items
123
+ as pinned candidate IDs/versions for this member and brand. Retrieve their exact
124
+ version; do not silently substitute `latest`. Likes are soft taste evidence,
125
+ not a mandatory palette, recipe or scene count. They never override exclusions,
126
+ current project style or the user's request. Edited-video references remain the
127
+ primary editorial evidence; inspect scene fit and adapt the mechanism. Use
128
+ `get_library_favorites` / `library favorites --brand BRAND_ID` only when the
129
+ compact workflow list does not answer the current decision.
130
+
131
+ ## Transitions between two shots
132
+
133
+ The web keeps **Estilos de edición / Animaciones / Sonidos** under one Biblioteca.
134
+ Transitions are a curated filter inside Animaciones, not another editorial style
135
+ or a requirement to decorate every cut. Search by the relationship (continuity of
136
+ shape, an object expanding to reveal the next idea, closing and opening a chapter).
137
+ Some cards/summaries include optional `transition` guidance: when it fits, when to
138
+ avoid it and what requires code adaptation. Absence means unclassified, not that
139
+ an animation cannot contain motion between states. Older clients can use the card.
140
+
141
+ When the user copies a selection, retrieve its exact ID and version. The web's
142
+ **En contexto** example illustrates two shots; it is not the original catalog
143
+ preview, an exported overlay or a downloadable preset. Inspect **Original** and
144
+ its pinned source. These sources render their own opaque scenes; arbitrary user
145
+ footage requires adapting the composition, not just replacing a text parameter.
146
+
147
+ Identify the outgoing shot, incoming shot and reason for the change. Bind the
148
+ current project's brand, movement preference, actual timing and audio policy.
149
+ Use a direct cut when it communicates better; follow the question/review policy
150
+ for changes to the user's selection. No transition or whoosh quota. Keep the
151
+ user's narration intact; none/sparse/moderate/dense SFX follow the same audio
152
+ policy as the rest of the edit. Check the actual handoff before, through and
153
+ after the cut for frame coverage, object continuity, reading time, faces and
154
+ important content. Save the decision for this project, not as a global style rule.