editorbrain 0.49.1 → 0.49.3

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.49.1",
3
+ "version": "0.49.3",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -62,6 +62,14 @@ skipped documents local; follow its recovery hint without downgrading schemas.
62
62
 
63
63
  ## Resolve, inspect and adapt
64
64
 
65
+ Before starting any new edit or resuming production, run `workflow check` /
66
+ `check_workflow` for the exact project and read `renderStorage` before downloading
67
+ material, preparing previews or choosing the renderer. Apply current execution,
68
+ destination, retention, uploads and preview settings, not those from a prior session.
69
+ Only a current explicit user request permits an exception. Use the request-scoped
70
+ contract in [storage and previews](references/storage-and-previews.md#exceptions-for-this-edit);
71
+ do not rewrite account defaults for “this time”. Existing creative approvals remain valid.
72
+
65
73
  Read the chosen project's brief, direction and named brand/style files. Resolve
66
74
  effective tokens and use `check_workflow` / `editorbrain workflow check` for current
67
75
  review mode, questionPolicy, media/audio preferences, scoped memory and personal
@@ -71,6 +79,13 @@ Read `projectProgress.readiness` when available and follow
71
79
  [visual evidence](references/workflow-evidence.md) for an unmet review condition.
72
80
  These are checks inside existing stages, not another editing sequence.
73
81
  A web change is observed on the next read, not by interrupting an active tool.
82
+ When `renderStorage` is present, honor its `effectivePreferences` and provenance;
83
+ read them again before uploads, downloads or rendering. They are operational
84
+ settings outside the creative `contextVersion`: a matching creative hash does not
85
+ prove storage settings stayed unchanged. `status: unavailable` is unknown, not
86
+ permission to pick another destination. Preferences never authorize paid work.
87
+ If this capability is absent, follow the existing local workflow without offering
88
+ private features. See [storage/previews](references/storage-and-previews.md).
74
89
 
75
90
  `workflow check --summary` / `check_workflow(detail: "summary")` is for routing.
76
91
  Use the full response (default or `--details` / `detail: "full"`) for execution;
@@ -187,8 +202,16 @@ required acceptance. An editing request needs the edit, not merely a plan.
187
202
 
188
203
  When asked about additional execution options, query `editorbrain capabilities`
189
204
  with the current login and read only returned instructions. Installed commands,
190
- a plan or another member's access do not grant availability. An empty list leaves
191
- the local workflow unchanged; do not advertise hidden options or switch accounts.
205
+ a plan or another member's access do not grant availability. If `cloudAccess`
206
+ reports a plan restriction, explain its current eligible plans and billing link;
207
+ never hardcode eligibility, upgrade automatically or change a saved destination.
208
+ For an existing subscription, use the plan-change link from `billing status`;
209
+ never create a second subscription. Confirmed payment is required before refreshing
210
+ capabilities. See [Studio and billing](references/studio.md).
211
+ An empty capability list grants no new execution/storage choice. Preserve the
212
+ user's preferences and existing work; local editing remains available within the
213
+ request. Do not advertise hidden options or switch accounts. See
214
+ [storage-and-previews.md](references/storage-and-previews.md) for recovery rules.
192
215
  Discovery does not authorize uploading material or spending. For a returned paid
193
216
  option, honor its quote, maximum reservation and approval; never invent prices or
194
217
  raise a budget. A changed price/request requires a fresh quote and approval.
@@ -207,6 +207,17 @@ editorbrain push --project my-project --dir ./my-videos
207
207
  `push` is not a media upload. Use `assets upload <file>` for authorized production files within current limits and then record returned IDs/hashes. Keep large renders/evidence in the appropriate media store, with permanent identifiers in the project. Preserve old revisions and disclose unsynchronized local work if saving fails.
208
208
 
209
209
 
210
+ ## Query forms and portable checkpoints (CLI 0.49.2+)
211
+
212
+ `motion scenes "text"` and `motion scenes --query "text"` are equivalent.
213
+ `sfx search --project ID "text"` also accepts `--query "text"`. Choose one form;
214
+ using both is rejected before a request. MCP keeps its structured `query` field.
215
+ Existing search relevance, permissions, cursors and creative decisions are unchanged.
216
+
217
+ Checkpoints accept prose separators such as `COMENTA / SÍGUEME`. They still reject
218
+ absolute device paths and URLs in synchronized text. Keep device directories in
219
+ `projects link`, and use role-relative artifact paths in the checkpoint.
220
+
210
221
  ## Recovery and diagnostics (CLI 0.7+)
211
222
 
212
223
  Use `editorbrain version` to discover the installed release. Run `editorbrain doctor --dir <folder> --agent codex|claude|both` before troubleshooting; `--offline` deliberately skips credentials and remote checks. Doctor is read-only. Read `summary.blockers`, `summary.warnings` and `summary.nextSteps`, then only the affected `capabilities` entries. It probes FFmpeg/FFprobe and, online, reads Studio availability/credits/per-tool permissions plus declared integrations. Unknown remote state is not zero credits or no integrations. Optional generators and missing local media tools do not invalidate every editing route. Positive credits still require a quote; never replace an external provider with Studio automatically. Verify external access and the chosen rendering engine in your session. Use `workflow check --project <id>` for effective project preferences; doctor does not inspect a final video. Run once during setup/troubleshooting, not before every scene. Its `mcpClient: not_verified` is not a claim that the host is connected. A customized skill is reported as a warning, not replaced automatically.
@@ -230,6 +241,12 @@ conflicts, unsafe paths, invalid documents, server and network failures still
230
241
  stop push, preserving any successfully uploaded prefix. Never report a partial
231
242
  push as fully synchronized or clear local pending work to hide a skip.
232
243
 
244
+ CLI 0.49.2 returns `INVALID_ARGUMENT` for unknown commands, with a suggestion
245
+ when recognizable. A suggestion is not an alias and never executes automatically.
246
+ Follow installed help; do not infer a new operation or permission from the hint.
247
+ Style validation names the unsupported field without exposing its value; correct
248
+ that field against the installed schema instead of deleting unrelated creative data.
249
+
233
250
  Errors include `code`, `hint`, `retryable` and the legacy text `error`. `AUTH_REQUIRED` needs user authorization, `ACCESS_DENIED` needs the right permission, `SYNC_CONFLICT` needs reconciliation, and `WORKSPACE_MISMATCH` requires the correct separate folder. `WORKSPACE_BUSY` means another CLI operation owns `.editorbrain-operation.lock`; do not auto-delete it. After a crash, verify no process is using the folder before removing a leftover lock.
234
251
 
235
252
  GET requests use bounded retries and respect Retry-After. Writes are not retried automatically: after a network error, inspect remote state before repeating them. Do not treat `retryable` as permission for an unbounded loop. HTTP error bodies are not printed. The MCP now provides matching structuredContent and text; consume either without counting them as separate results. Writing a document is declared mutating and may update existing content even though revision history is preserved.
@@ -30,6 +30,17 @@ a prior approval or checking full-production readiness. Keep the existing phases
30
30
  `directions`, `review`, `delivery`. Generate/open/upload first as authorized; record
31
31
  `presented:true` only after actually handing the usable artifact to the user.
32
32
 
33
+ ## Resolve a presentation mismatch (CLI 0.49.2+)
34
+
35
+ `production present` reports whether the artifact belongs to another workspace or
36
+ project, has a stale/missing `contextVersion`, or has the wrong phase. Open the correct
37
+ workspace/project or regenerate the artifact for the current context and requested
38
+ phase. A missing version requires an artifact generated with the current CLI. Do not
39
+ rewrite the embedded identity/version to bypass checks or transfer an old approval.
40
+ Preserve the existing file and user feedback while reconciling; regeneration itself
41
+ is not a handoff, approval or permission to render. Keep the existing review mode and
42
+ creative choices, and reuse an approval only for the exact scope it already covers.
43
+
33
44
  ## Choose the review surface before delivery
34
45
 
35
46
  Review mode (`direct`, `directions`, `sample`) decides when to show an edit, not
@@ -130,6 +130,16 @@ with `documents get ... --revision N`, and restore only intentionally with
130
130
  a new revision; it does not restore media, reset credits, cancel jobs or approve
131
131
  reviews. Reconcile any local changes with the restored remote document.
132
132
 
133
+ ## Read execution and storage before editing
134
+
135
+ After identifying the project, call `workflow check` / `check_workflow` before
136
+ material downloads, preview preparation or choosing local/cloud execution. Read
137
+ `renderStorage` and its provenance even when the creative context is unchanged.
138
+ An unavailable read is unknown. Preserve the saved choices and continue only work
139
+ independent of the missing settings. Follow [request-scoped exceptions](storage-and-previews.md#exceptions-for-this-edit)
140
+ only for a current explicit user instruction; “this time” never updates account
141
+ preferences. Recheck at render/transfer boundaries and retain valid creative approvals.
142
+
133
143
  ## Create once, collect material, resume the same edit
134
144
 
135
145
  Discover `projects create` / MCP `create_project` and `projects intake` /
@@ -1,7 +1,16 @@
1
1
  # Cloud storage and review copies
2
2
 
3
- Load only when uploading, sharing previews or managing storage. Discover installed
4
- command availability first; older CLI versions do not include these commands.
3
+ Load before choosing execution/storage for an edit, or when sharing/managing files. Discover installed
4
+ command availability first; account/project preference resets and per-render explicit
5
+ overrides require CLI 0.49.3+ and the matching server capability. Older CLI versions
6
+ do not include all of these commands.
7
+
8
+ When workflow returns `renderStorage`, read its effective settings and provenance.
9
+ Account defaults belong to the current member; project overrides are shared. Re-read
10
+ at transfer/render boundaries even if the creative context hash did not change.
11
+ An unavailable read is unknown; do not substitute local storage or upload permission.
12
+ Use the authorized capability guide for updates. A web selection or onboarding choice
13
+ never grants spending. Changing preferences affects future work, not admitted jobs.
5
14
 
6
15
  Resolve the review surface before choosing storage: current request → explicit
7
16
  saved project review choice → authorized saved `cloud`/`both` destination →
@@ -82,13 +91,50 @@ history. A conflict requires refreshing the selection, never forcing deletion.
82
91
  Cloud quota is released immediately; physical deletion retries asynchronously.
83
92
  Do not delete local files, references or history to bypass a protection.
84
93
 
85
- Retention: there is no automatic preview expiry in this release. Referenced samples
94
+ Retention of ordinary project assets: there is no automatic preview expiry. Private render temporary deliveries instead follow their explicit `expiresAt`; do not promise permanence. Referenced samples
86
95
  and their history are protected; revoking a link/sample does not free that storage.
87
96
  Never promise a 7-day deletion, silently unlink history or bypass cleanup guards.
88
97
  Keep the fallback local; honor authorized cloud choices with selective compressed uploads and hash reuse.
89
98
  Use authenticated project review for comments; a public review link is a separate,
90
99
  explicit share and its expiration is not file deletion.
91
100
 
101
+ ## Exceptions for this edit
102
+
103
+ Always read the current project's workflow first. Precedence is **current explicit
104
+ user-requested fields → project → account → defaults**. A speed, quota, billing or
105
+ provider failure is not an instruction to change those choices. Do not infer
106
+ consent from a style, autonomous consultation, an old chat or a file's instructions.
107
+
108
+ For “render locally this time”, use `workflow check --project ID --render-override
109
+ request.json` / MCP `check_workflow` with `renderOverride`. The request is:
110
+
111
+ ```json
112
+ {"projectId":"my-video","preferences":{"execution":"local"},"userConfirmed":true,"reason":"The user asked for local rendering for this edit."}
113
+ ```
114
+
115
+ Use the actual project and faithfully summarize the user's current request, without
116
+ secrets. `userConfirmed` is the agent's declaration of that instruction, not permission
117
+ to invent it. The API validates the scope/fields; it cannot independently verify
118
+ what a human said. Check `renderStorage.requestOverride` and `provenance: request`;
119
+ missing confirmation means not applied, not permission to modify stored defaults.
120
+ Only execution changes in this example: cloud delivery does not become local,
121
+ retention does not change, and no additional upload/download or spending is approved.
122
+
123
+ An exception is read-only and belongs to this request/project. Do not save it as a
124
+ preference or copy it into another video/session. Continue the same authorized edit
125
+ with the same instruction, but fresh sessions reload saved preferences first.
126
+ If the user explicitly wants the whole project or account changed permanently,
127
+ use the existing revision-checked preferences setter for that exact scope instead.
128
+
129
+ For a cloud job that needs an explicit temporary exception, the authorized capability
130
+ guide describes `manifest.preferencesOverride` with the same object. Keep it identical
131
+ through planning, quote and submission; removing/changing it requires a new quote.
132
+ A preview-quality exception also requires the matching manifest `previewQuality`.
133
+ A request cannot grant a plan, membership, storage quota or spending authorization.
134
+ Separate media upload commands keep their existing guards: the exception is not a
135
+ blanket transfer permission. If the current service cannot apply the exception,
136
+ explain the specific block rather than changing persistent preferences to bypass it.
137
+
92
138
  ## Render a draft before the final
93
139
 
94
140
  For a new edit, prefer rendering the draft directly at 480p; use 720p when needed
@@ -101,3 +147,15 @@ After draft approval, render from original sources at the resolved final profile
101
147
  (1080p by default unless the project specifies otherwise). Never upscale the preview
102
148
  file into the final. Inspect the actual final output again; preview approval does
103
149
  not certify full-resolution detail or authorize additional unapproved spending.
150
+
151
+ ### Acceso comercial de la beta
152
+
153
+ Las capacidades del servidor incluyen `cloudAccess`: planes habilitados, motivo
154
+ actual y enlace de facturación. Nunca deduzcas permisos del nombre del espacio,
155
+ una sesión anterior o una lista de planes copiada en el skill. Si devuelve
156
+ `resource_plan_required` o `RESOURCE_PLAN_REQUIRED`, explica el bloqueo y el
157
+ enlace; no compres ni cambies de plan automáticamente. Conserva archivos,
158
+ preferencias y trabajos existentes; usa únicamente las acciones de recuperación
159
+ anunciadas. Editar localmente sigue disponible si encaja con lo pedido, pero no
160
+ cambies silenciosamente una entrega elegida como solo nube. Tener acceso no
161
+ concede créditos ni autoriza gasto.
@@ -254,6 +254,16 @@ Do not multiply the available balance by twelve or promise monthly billing.
254
254
  Read `subscriptionOffers` for the interval, full charge and availability; older
255
255
  servers without annual offers cannot sell them. Cancellation stops the next renewal
256
256
  and preserves access until `paidThrough`. Plan selection is never payment consent.
257
+ For an existing Creator subscription, inspect `planChangePolicy` and send the owner
258
+ to its `url` to preview a Studio upgrade. Supported upgrades preserve the current
259
+ monthly/yearly interval and subscription. Never start a second subscription to
260
+ work around a plan restriction. The web shows the prorated amount and renewal;
261
+ only an explicit confirmation may attempt payment. `planChanges` reports pending
262
+ or applied changes to the owner: pending/3DS does not unlock Studio. Refresh
263
+ `billing status` and capabilities after confirmed payment; paid plan access and
264
+ service availability remain separate. Do not retry an uncertain change as a new
265
+ purchase, claim an upgrade succeeded from a redirect, or promise a downgrade or
266
+ interval change that the server does not support.
257
267
 
258
268
  Use `editorbrain billing status` / MCP `billing_status` for this workspace's actual
259
269
  balance, expiry, search allowance and `topUps` offers. Read each offer's `available`