editorbrain 0.40.1 → 0.41.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.40.1",
3
+ "version": "0.41.1",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -13,7 +13,7 @@ For customer footage, reusable B-roll or authentic brand assets, consult [person
13
13
 
14
14
  ## Create or update a reusable style
15
15
 
16
- When the user asks to save an edit as a style, create a new style or improve an existing one, read [style creator](references/style-creator.md). Reuse the current production's evidence and feedback; saving a style does not require editing another video. The guide covers defining the method, adapting it to new material, resource manifests, checks and versioned saves. Keep personal decisions in that user's style, not in this installed skill. For ordinary editing with an existing style, continue below.
16
+ When the user asks to save an edit as a style, create a new style or improve an existing one, read [style creator](references/style-creator.md). Reuse the current production's evidence and feedback; saving a style does not require editing another video. The guide covers defining the method, adapting it to new material, resource manifests, checks and versioned saves. Keep personal decisions in that user's style, not in this installed skill. For ordinary editing with an existing style, continue below. When a library style is chosen, read [style implementation](references/style-source.md) and retrieve its exact code before adapting; a description is not a substitute for an available implementation.
17
17
 
18
18
  ## Start here, including a first installation
19
19
 
@@ -114,6 +114,8 @@ CLI counterparts for discovery/documents:
114
114
 
115
115
  ```sh
116
116
  editorbrain styles list
117
+ editorbrain styles source <id> --style-version <version> --out source.tar.gz
118
+ editorbrain styles prepare <id> --style-version <version> --file source.tar.gz --out .editorbrain-local/<project>/styles-src/<id>
117
119
  editorbrain styles create <style-id> --name "My style" --dir ./my-videos
118
120
  editorbrain styles check <style-id> --dir ./my-videos
119
121
  editorbrain styles recommend <project-id> --dir ./my-videos
@@ -122,6 +124,8 @@ editorbrain library get <video-id>
122
124
  editorbrain library get <video-id> --document <returned-path>
123
125
  ```
124
126
 
127
+ `list_style_packs.sourceStyles` lists exact style implementations separately from technique packs. MCP `get_style_source(id, version, sha256)` requires Creator/Studio and returns a short-lived verified-download link plus the selected guides. See [style source](style-source.md); source downloads are inert, and explicit local preparation applies project binding guards before rendering.
128
+
125
129
  `styles create/check` work locally without authentication. Create adds an isolated draft without changing any project's selected style. Check validates documents and declared local files/hashes; its warnings and manual checks still require editorial judgment. See [style creator](style-creator.md) for resource manifests, saving revisions and the equivalent workflow using existing MCP document tools. Neither command uploads files, executes a renderer or certifies quality.
126
130
 
127
131
  Recommendations and direction drafts use the saved remote project, require a non-empty script and check that local source context matches it. After `init` or local edits, validate and successfully `push` the intended project context before those calls. Do not discard unsynced local changes to silence a context mismatch. An offline draft can be written by the agent from available evidence without claiming a remote recommendation ran.
@@ -24,6 +24,8 @@ because a new session started.
24
24
  explicit template request or technical correction needs only its relevant
25
25
  scope, not a forced full-video research process.
26
26
 
27
+ For an elected library style with an implementation, follow [style source](style-source.md). Its verified code carries the demonstrated choreography; inspected evidence and current preferences still govern its adaptation.
28
+
27
29
  ## Cover the scene needs before narrowing
28
30
 
29
31
  Use [editorial families](editorial-families.md) when a new direction needs a
@@ -133,6 +133,8 @@ editorbrain onboarding sync --session <session> --dir ./my-videos --dry-run
133
133
  editorbrain onboarding sync --session <session> --dir ./my-videos
134
134
  ```
135
135
 
136
+ After `onboarding apply`, the canonical publishing step is `onboarding sync` (preview, then sync) for the same session. Do not additionally run `push`: it is the general document command and may include unrelated edits.
137
+
136
138
  Inspect planned paths/conflicts. Sync uploads only this brand/starter context.
137
139
  Untouched shared starter guides can adopt the account's existing versions;
138
140
  personalized local documents are never silently replaced. On network failure,
@@ -59,3 +59,12 @@ source intervals/code needed for the chosen mechanisms. A simple scoped edit may
59
59
  already have enough evidence and require no extra query.
60
60
 
61
61
  If this tool is absent, report the installed version limitation, inspect sources yourself and use explicit library lookup if useful. Do not silently upload material to the older server-analysis method. A video your host cannot inspect requires accessible media tools or a disclosed limited plan, not invented observations.
62
+
63
+ ## Access diagnostics
64
+
65
+ Free accounts can use brief search within their allowance. Do not infer an
66
+ upgrade requirement from HTTP 403 alone. Read the structured service code:
67
+ - `email_verification_required`: verify the account email at https://editorbrain.com/app/settings; paying or reconnecting does not verify it.
68
+ - `resource_plan_required`: explain `requiredPlan` and link to https://editorbrain.com/app/billing; offer an eligible free resource. Credit top-ups do not unlock premium resources.
69
+ - `search_allowance_exhausted`: inspect the allowance and recovery links; this is separate from creative credits.
70
+ - Permission errors: confirm the current workspace/member without switching identities automatically.
@@ -98,6 +98,12 @@ Free credits when enabled; eligibility is distinct from provider availability.
98
98
  Free monthly credits refresh on balance reads; do not promise historical rollover
99
99
  or another welcome grant after switching brands/workspaces. Recargas and upgrades
100
100
  are optional recovery paths, never automatic purchases.
101
+ For annual plans, `subscription.billingInterval` is `year`: payment is annual,
102
+ but credit/search allowances still renew monthly and unused monthly credits expire.
103
+ Do not multiply the available balance by twelve or promise monthly billing.
104
+ Read `subscriptionOffers` for the interval, full charge and availability; older
105
+ servers without annual offers cannot sell them. Cancellation stops the next renewal
106
+ and preserves access until `paidThrough`. Plan selection is never payment consent.
101
107
 
102
108
  Use `editorbrain billing status` / MCP `billing_status` for this workspace's actual
103
109
  balance, expiry, search allowance and `topUps` offers. Read each offer's `available`
@@ -139,3 +145,18 @@ preserve the project and continue independent work. Never purchase or reroute a
139
145
  paid job automatically. The final message should give a practical next step.
140
146
 
141
147
  In autonomous question mode, a missing budget or required approval leaves the paid operation pending without a question. Reuse existing sufficient explicit authorization; otherwise continue independent work and report the quote/recovery options together. Never infer approval from silence.
148
+
149
+ ## Availability and simultaneous jobs
150
+
151
+ `canSpend` is permission, not availability. Read each tool's `available` and
152
+ `availability.code/message`. `tool_paused`/`service_paused` require service action;
153
+ `configuration_pending`/`pricing_pending` are also service issues. Buying credits
154
+ does not fix these. Offer a user-authorized, verified integration or continue
155
+ independent work. Never silently substitute providers.
156
+
157
+ The catalog reports `limits.activeJobsPerWorkspace` (currently 3, shared across
158
+ all brands) and `retryAfter` in seconds. On `studio_queue_full`, wait at least
159
+ `retryAfter`, inspect `studio jobs`, and resume the existing unconsumed quote
160
+ when capacity is available. If it expired, re-quote and check the authorized
161
+ budget; never increase it. A retry time is a polling delay, not a completion ETA.
162
+ Do not rerun an uncertain job or create parallel replacement quotes.
@@ -0,0 +1,61 @@
1
+ # Use a style's reference implementation
2
+
3
+ Read when the customer elects a library style or a saved style derived from it.
4
+ The style's implementation is a starting point for its choreography, not a new
5
+ source of brand preferences. Do not load all 19 archives or force a style on an
6
+ open brief. Preserve the main editorial workflow and the user's review mode.
7
+
8
+ 1. Resolve the exact workspace, brand, project and current preferences. Read the
9
+ selected style's guides and resource requirements. Older saved copies may say
10
+ no source is available: check the current catalog without overwriting edits.
11
+ 2. `editorbrain styles list` / MCP `list_style_packs` returns `sourceStyles` alongside
12
+ legacy `packs`. These are different inventories. Find the exact ID and retain
13
+ `sourceVersion`, `sourceSha256`, `sourceBytes`. A sourceStyles ID is not an input
14
+ to the legacy recommend_styles/draft_direction helpers. Never guess a hash or
15
+ pick a different version silently.
16
+ 3. Download one original archive:
17
+ ```sh
18
+ editorbrain styles source <id> --style-version <version> --out source.tar.gz --dir <workspace>
19
+ ```
20
+ MCP: `get_style_source(id, version, sha256)` returns a five-minute link and the
21
+ selected public guides. Verify byte count and SHA-256; save pins, never the URL.
22
+ The CLI streams and verifies bytes and refuses overwrite; it does not extract,
23
+ execute or install anything. Read returned documents if not already saved;
24
+ preserve customized guides. Creator/Studio access is checked on both issue
25
+ and download. Credits do not unlock premium styles. If denied, show the billing
26
+ link and an available free/custom style; do not try old versions to bypass it.
27
+ 4. Prepare a fresh working copy explicitly:
28
+ ```sh
29
+ editorbrain styles prepare <id> --style-version <version> --file source.tar.gz --out .editorbrain-local/<project>/styles-src/<id> --dir <workspace>
30
+ ```
31
+ This offline command checks the known archive and internal manifest, rejects
32
+ links/path traversal and extracts to a NEW directory. It adds the same project
33
+ binding checks as motion and records original/adapted runtime hashes separately
34
+ in PROJECT-BINDING.json. It runs no tools. Read PROJECT-BINDING.md, README.md,
35
+ LICENSES.md and the renderer before executing code locally. If the CLI cannot
36
+ prepare this exact version, update it; do not run an unguarded customer render.
37
+ 5. Prepare the customer's clip/voice, word timestamps and authorized media. Never
38
+ deliver the demo's avatar, voice, claims, numbers, names or imagery as the
39
+ customer's. Keep authentic product logos/screens intact. Only 9:16 is composed
40
+ for these implementations; another ratio needs adaptation and visual review.
41
+ The included Apple Vision preparation requires macOS. On other systems use a
42
+ compatible installed presenter-matte engine and the documented output contract;
43
+ never assume Swift works everywhere or silently change paid providers.
44
+ 6. Bind a complete current brand via window.__overrides or renderer --params:
45
+ base/scene color roles, licensed registered fonts with family/weight/style,
46
+ language, script, word timing, media and explicit sound.enabled. The guard
47
+ prevents falling back to demo branding. `?demo=1` is solely original-demo
48
+ inspection, never customer production. No inherited SFX density or music:
49
+ follow resolved voice/music/SFX preferences independently. sound.enabled=false
50
+ mutes all sound including voice; for voice-only keep sound enabled, remove SFX
51
+ cues/derived event cues and music in the adapted code/mix, and inspect the final
52
+ audio. No code package grants spending or provider authorization.
53
+ 7. Preserve style.md's intended grammar while adapting timing/layout to the real
54
+ material. Start from the code that produced the demo, not a new approximation.
55
+ Use the included local renderer deliberately after binding. Check diagnostics,
56
+ actual cuts, legibility, safe zones, customer assets and final sound. A verified
57
+ source download or demo render does not certify the customer's finished video.
58
+
59
+ If source objects are not published yet, links are expired, or a required font/
60
+ asset is missing, explain the specific blocker and the next supported step.
61
+ Do not claim a faithful implementation while secretly rebuilding from a summary.
@@ -69,3 +69,7 @@ Check whether the viewer can tell what changed and why from the animation itself
69
69
  Tie findings to output hash/version and time; distinguish observed, inferred and designed decisions. Frames cannot establish motion, and silent inspection cannot establish sound quality. Report uninspected modalities explicitly. After a local correction, recheck affected events and the delivered whole.
70
70
 
71
71
  Keep source, prompts, detailed plans and review artifacts in `.editorbrain-local/<project-id>/`; save a concise continuation summary in `direction.md`. Preserve prior versions and scoped user feedback. Deliver the artifact, useful checks and unresolved limitations; instructions and technical passes do not certify a perfect render.
72
+
73
+ ## Full-video style implementations
74
+
75
+ When the user selects a library editing style, follow [style source](../editorbrain/references/style-source.md) to download its exact implementation and prepare a guarded working copy. Full-video style sources are separate from optional authored motion scenes; do not rebuild an available style from its description or impose its demo branding.