editorbrain 0.44.0 → 0.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,13 +5,13 @@ Editorial references, brand context and portable video projects for Claude Code
5
5
  Inspect the CLI without configuring your agent:
6
6
 
7
7
  ```sh
8
- npx editorbrain@0.44.0 help
8
+ npx editorbrain@0.44.2 help
9
9
  ```
10
10
 
11
11
  For a persistent installation:
12
12
 
13
13
  ```sh
14
- npm install -g editorbrain@0.44.0
14
+ npm install -g editorbrain@0.44.2
15
15
  editorbrain login --url https://api.editorbrain.com
16
16
  editorbrain status --url https://api.editorbrain.com
17
17
  editorbrain projects list
@@ -2197,6 +2197,18 @@ function onboardingIntakeFromFiles(brandId2, inputFiles) {
2197
2197
  return clone(result2);
2198
2198
  }
2199
2199
 
2200
+ // packages/core/src/project-narration.ts
2201
+ function projectNarrationOverrideIssues(value) {
2202
+ if (value === void 0) return [];
2203
+ if (!value || typeof value !== "object" || Array.isArray(value)) return ["narrationOverride must be an object with value and reason."];
2204
+ const input2 = value;
2205
+ const issues = [];
2206
+ for (const key of Object.keys(input2)) if (!["value", "reason"].includes(key)) issues.push(`narrationOverride.${key} is unsupported; use value and reason only.`);
2207
+ if (typeof input2.value !== "string" || !editorialDeliveryOptions.narration.includes(input2.value)) issues.push("narrationOverride.value must be original, voiceover or none.");
2208
+ if (typeof input2.reason !== "string" || input2.reason.trim().length < 10 || input2.reason.length > 500) issues.push("narrationOverride.reason must explain this project exception in 10\u2013500 characters.");
2209
+ return issues;
2210
+ }
2211
+
2200
2212
  // packages/core/src/media-acquisition.ts
2201
2213
  function mediaAcquisitionGuidance(media3) {
2202
2214
  const { allowed, excluded = [], preferred } = media3.sources ?? {};
@@ -202024,6 +202036,7 @@ function validateDocument(path, content) {
202024
202036
  for (const issue2 of creativeDirectionIssues(doc.creativeDirection)) add(issue2);
202025
202037
  for (const issue2 of questionModeIssues(doc.questionMode)) add(issue2);
202026
202038
  for (const issue2 of memoryContextIssues(doc.memoryContext)) add(issue2);
202039
+ for (const issue2 of projectNarrationOverrideIssues(doc.narrationOverride)) add(issue2);
202027
202040
  if (doc.reviewMode !== void 0 && !["direct", "directions", "sample"].includes(doc.reviewMode)) add("reviewMode must be direct, directions or sample");
202028
202041
  if (doc.mediaStyleOverrides !== void 0) for (const issue2 of mediaStyleOverrideIssues(doc.mediaStyleOverrides)) add(issue2);
202029
202042
  if (doc.script !== void 0 && typeof doc.script !== "string") add("script must be text");
@@ -202157,7 +202170,9 @@ async function resolveProject(files, projectId) {
202157
202170
  if (!files[directionPath].trim() || files[directionPath].includes("DIRECTION_PENDING")) warnings.push("Creative direction is pending: the host agent or editor must write a coherent plan for the actual material.");
202158
202171
  for (const component of style.components ?? []) if (component.status !== "transfer_tested") warnings.push(`Component ${component.id} is ${component.status}; transfer fidelity is not verified.`);
202159
202172
  const sourceHashes = Object.fromEntries(await Promise.all(sourcePaths.map(async (source2) => [source2, await sha256(files[source2])])));
202160
- const editorialProfile = readProfile(files[optionalPaths[0]] ?? "");
202173
+ const savedEditorialProfile = readProfile(files[optionalPaths[0]] ?? "");
202174
+ const narrationOverride = project.narrationOverride ? { ...project.narrationOverride, scope: "project", projectId, path } : void 0;
202175
+ const editorialProfile = narrationOverride ? { ...savedEditorialProfile, editorialDelivery: { ...savedEditorialProfile.editorialDelivery, narration: narrationOverride.value } } : savedEditorialProfile;
202161
202176
  const savedAudioProduction = own5(files, optionalPaths[8]) || own5(files, optionalPaths[9]) ? resolveAudioProductionPreferences(own5(files, optionalPaths[8]) ? JSON.parse(files[optionalPaths[8]]) : void 0, own5(files, optionalPaths[9]) ? JSON.parse(files[optionalPaths[9]]) : void 0) : void 0;
202162
202177
  const audio = applyEditorialAudioConstraints(savedAudioProduction, editorialProfile);
202163
202178
  const audioProduction = audio.preferences;
@@ -202198,6 +202213,7 @@ async function resolveProject(files, projectId) {
202198
202213
  ...own5(files, optionalPaths[3]) ? { media: JSON.parse(files[optionalPaths[3]]) } : {},
202199
202214
  ...own5(files, optionalPaths[7]) ? { styleResources: JSON.parse(files[optionalPaths[7]]) } : {},
202200
202215
  ...audioProduction ? { audioProduction } : {},
202216
+ ...narrationOverride ? { narrationOverride } : {},
202201
202217
  ...own5(files, optionalPaths[10]) ? { toolPreferences: validateToolPreferences(JSON.parse(files[optionalPaths[10]])) } : {},
202202
202218
  ...own5(files, `videos/${project.id}/resources.json`) ? { personalResources: parseResourceSelection(JSON.parse(files[`videos/${project.id}/resources.json`])) } : {},
202203
202219
  questionPolicy: resolveQuestionPolicy(editorialProfile.questionMode, project.questionMode),
@@ -202222,6 +202238,10 @@ ${content}` : "";
202222
202238
 
202223
202239
  \`\`\`json
202224
202240
  ${stableJson(resolved.editorial.identity)}\`\`\``) : "";
202241
+ const narrationSection = resolved.narrationOverride ? section("Project narration exception", `This explicit narration choice takes precedence over the preserved brand narration prose for this project only. The effective media and audio preferences below already include it. It does not change the brand or other projects, select a provider or voice, or authorize spending.
202242
+
202243
+ \`\`\`json
202244
+ ${stableJson(resolved.narrationOverride)}\`\`\``) : "";
202225
202245
  const creativeSection = section("Consultation policy", `\`\`\`json
202226
202246
  ${stableJson(resolved.questionPolicy)}\`\`\``) + section("Creative decision ownership", `\`\`\`json
202227
202247
  ${stableJson(resolved.creativeDirection)}\`\`\``);
@@ -202261,13 +202281,13 @@ ${resolved.editorial.brand}${identitySection}
202261
202281
 
202262
202282
  ## Style
202263
202283
 
202264
- ${resolved.editorial.style}${section("Design", resolved.editorial.design)}${section("Effects", resolved.editorial.effects)}${section("Music and sound", resolved.editorial.music)}${creativeSection}${mediaSection}${resourcesSection}${mediaStyleSection}${audioSection}${toolSection}
202284
+ ${resolved.editorial.style}${section("Design", resolved.editorial.design)}${section("Effects", resolved.editorial.effects)}${section("Music and sound", resolved.editorial.music)}${creativeSection}${narrationSection}${mediaSection}${resourcesSection}${mediaStyleSection}${audioSection}${toolSection}
202265
202285
 
202266
202286
  Exact tokens, output settings and evidence are in resolved.json.
202267
202287
  ` };
202268
202288
  if (adapter === "hyperframes") return { ...common, "design.md": `# Brand: ${resolved.project.brand}
202269
202289
 
202270
- ${resolved.editorial.brand}${identitySection}${section("Visual direction", resolved.editorial.design)}
202290
+ ${resolved.editorial.brand}${identitySection}${section("Visual direction", resolved.editorial.design)}${narrationSection}
202271
202291
 
202272
202292
  ## Resolved semantic tokens
202273
202293
 
@@ -202289,13 +202309,13 @@ ${resolved.editorial.direction}
202289
202309
 
202290
202310
  ## Style intent
202291
202311
 
202292
- ${resolved.editorial.style}${section("Effects", resolved.editorial.effects)}${section("Music and sound", resolved.editorial.music)}${creativeSection}${mediaSection}${resourcesSection}${mediaStyleSection}${audioSection}${toolSection}
202312
+ ${resolved.editorial.style}${section("Effects", resolved.editorial.effects)}${section("Music and sound", resolved.editorial.music)}${creativeSection}${narrationSection}${mediaSection}${resourcesSection}${mediaStyleSection}${audioSection}${toolSection}
202293
202313
 
202294
202314
  ## Delivery
202295
202315
 
202296
202316
  ${resolved.output.width} \xD7 ${resolved.output.height}, ${resolved.output.fps} fps. Adapt composition to the actual material and safe areas in resolved.json. Implement and preview the composition in Hyperframes before claiming completion.
202297
202317
  ` };
202298
- if (adapter === "remotion") return { ...common, "remotion-plan.json": stableJson({ schemaVersion: 1, kind: "editorial_handoff", renderer: "remotion", executable: false, note: disclaimer, composition: { width: resolved.output.width, height: resolved.output.height, fps: resolved.output.fps, durationInFrames: null }, tokens: resolved.tokens, project: resolved.project, direction: resolved.editorial.direction, editorial: resolved.editorial, creativeDirection: resolved.creativeDirection, questionPolicy: resolved.questionPolicy, mediaPreferences: resolved.mediaPreferences, ...resolved.audioProduction ? { audioProduction: resolved.audioProduction } : {}, ...resolved.toolPreferences ? { toolPreferences: resolved.toolPreferences } : {}, ...resolved.media ? { media: resolved.media } : {}, ...resolved.styleResources ? { styleResources: resolved.styleResources } : {}, ...resolved.styleProduction ? { styleProduction: resolved.styleProduction } : {}, evidence: resolved.evidence, implementationTasks: ["Determine duration from the script/audio and actual cuts.", "Implement React composition and assets.", "Preview and verify typography, safe areas, motion and audio."] }) };
202318
+ if (adapter === "remotion") return { ...common, "remotion-plan.json": stableJson({ schemaVersion: 1, kind: "editorial_handoff", renderer: "remotion", executable: false, note: disclaimer, composition: { width: resolved.output.width, height: resolved.output.height, fps: resolved.output.fps, durationInFrames: null }, tokens: resolved.tokens, project: resolved.project, direction: resolved.editorial.direction, editorial: resolved.editorial, creativeDirection: resolved.creativeDirection, questionPolicy: resolved.questionPolicy, mediaPreferences: resolved.mediaPreferences, ...resolved.audioProduction ? { audioProduction: resolved.audioProduction } : {}, ...resolved.narrationOverride ? { narrationOverride: resolved.narrationOverride } : {}, ...resolved.toolPreferences ? { toolPreferences: resolved.toolPreferences } : {}, ...resolved.media ? { media: resolved.media } : {}, ...resolved.styleResources ? { styleResources: resolved.styleResources } : {}, ...resolved.styleProduction ? { styleProduction: resolved.styleProduction } : {}, evidence: resolved.evidence, implementationTasks: ["Determine duration from the script/audio and actual cuts.", "Implement React composition and assets.", "Preview and verify typography, safe areas, motion and audio."] }) };
202299
202319
  throw new Error(`Unsupported adapter: ${adapter}`);
202300
202320
  }
202301
202321
  function createWorkspace(options = {}) {
@@ -203676,6 +203696,8 @@ var searchErrors = {
203676
203696
  studio_preference_conflict: { status: 409, code: "STUDIO_PREFERENCE_CONFLICT", hint: "Reconcile project language, voice, music or media-source preferences before generating." },
203677
203697
  studio_audio_format: { status: 422, code: "STUDIO_AUDIO_FORMAT", hint: "Prepare PCM 16-bit WAV from the original with studio prepare, then upload it." },
203678
203698
  studio_invalid_input: { status: 400, code: "STUDIO_INVALID_INPUT", hint: "Check studio catalog and the request fields; never send provider credentials." },
203699
+ vox_voice_unknown: { status: 400, code: "VOX_VOICE_UNKNOWN", hint: "Run studio voices and use a current public voice ID. Read studio voice for the selected brand/project before changing its preference; never substitute a different voice automatically." },
203700
+ vox_invalid_input: { status: 400, code: "VOX_INVALID_INPUT", hint: "Use studio voices with supported filters, or studio voice with exactly one saved brand/project ID. Saving requires a public voice ID and the current nonnegative expected revision." },
203679
203701
  studio_references_require_premium: { status: 422, code: "STUDIO_REFERENCES_REQUIRE_PREMIUM", hint: "Reference images require Prism Premium. Review saved preferences and explicitly choose Premium before requesting a new quote; never increase the budget automatically." },
203680
203702
  studio_reference_invalid: { status: 400, code: "STUDIO_REFERENCE_INVALID", hint: "Use up to four unique SHA-256 asset IDs uploaded to this workspace, not URLs or file paths." },
203681
203703
  studio_reference_format: { status: 422, code: "STUDIO_REFERENCE_FORMAT", hint: "Use PNG, JPEG or WebP, up to 8 MiB each and 20 MiB total. Convert SVG to PNG locally before upload." },
@@ -203721,6 +203743,14 @@ function safeDiagnosticDetails(body) {
203721
203743
  }
203722
203744
  if (["workspace", "service"].includes(String(e.scope))) details.scope = String(e.scope);
203723
203745
  if (["service_paused", "tool_paused", "configuration_pending", "pricing_pending"].includes(String(e.availabilityCode))) details.availabilityCode = String(e.availabilityCode);
203746
+ if (e.code === "studio_preference_conflict") {
203747
+ if (["narration", "voice_selection", "music"].includes(String(e.conflict))) details.conflict = String(e.conflict);
203748
+ if (typeof e.projectId === "string" && /^[a-z0-9][a-z0-9_-]{0,79}$/.test(e.projectId)) {
203749
+ details.projectId = e.projectId;
203750
+ if (e.documentPath === `videos/${e.projectId}/audio.json`) details.documentPath = e.documentPath;
203751
+ if (e.projectPath === `videos/${e.projectId}/project.json`) details.projectPath = e.projectPath;
203752
+ }
203753
+ }
203724
203754
  if (e.code === "studio_invalid_input") {
203725
203755
  const allowed = /* @__PURE__ */ new Set(["tool", "projectId", "preferenceOverrideReason", "assetId", "language", "prompt", "referenceAssetIds", "quality", "resolution", "aspectRatio", "durationSeconds", "character", "text", "voice", "quoteId", "maxCredits", "userConfirmed", "batchLeaseToken", "request"]);
203726
203756
  if (typeof e.invalidFields === "string" && e.invalidFields.length <= 512) {
@@ -203742,7 +203772,9 @@ var ApiError = class extends CliError {
203742
203772
  const [code, hint] = codes[status] ?? [status >= 500 ? "SERVICE_UNAVAILABLE" : "API_ERROR", "Check the request and service status."];
203743
203773
  const diagnostic = searchDiagnostic(status, body);
203744
203774
  const recovery = diagnostic ? recoveryGuidance(diagnostic.serviceCode, status) : void 0;
203745
- super(diagnostic?.code ?? code, `API request failed (HTTP ${status}).`, recovery ? recoveryHint(recovery) : diagnostic?.hint ?? hint, !diagnostic && safeToRetry && (status === 429 || status >= 500), { status, ...recovery ? { recovery } : {}, ...diagnostic ? { serviceCode: diagnostic.serviceCode, ...safeDiagnosticDetails(body) } : {}, ...retryAfterMs === void 0 ? {} : { retryAfterMs } });
203775
+ const details = diagnostic ? safeDiagnosticDetails(body) : {};
203776
+ const preferenceHint = diagnostic?.serviceCode === "studio_preference_conflict" && details.conflict === "narration" ? 'Read workflow and the returned projectPath/documentPath. Only after an explicit user request, save narrationOverride={value:"voiceover",reason:"user-requested reason"} in this project.json, then choose an authorized public voice with studio voices and studio voice VOICE_ID --project ID --expected-revision N. Preserve the brand. Quote again; a preference exception never authorizes spending.' : diagnostic?.serviceCode === "studio_preference_conflict" && details.conflict === "voice_selection" ? "Read workflow and studio voice --project ID. Reconcile the requested public alias with the authorized saved voice using studio voices; a deliberate change uses studio voice VOICE_ID --project ID --expected-revision N. Preserve original/no-narration restrictions and the brand. Quote again; a voice selection never authorizes spending." : void 0;
203777
+ super(diagnostic?.code ?? code, `API request failed (HTTP ${status}).`, recovery ? recoveryHint(recovery) : preferenceHint ?? diagnostic?.hint ?? hint, !diagnostic && safeToRetry && (status === 429 || status >= 500), { status, ...recovery ? { recovery } : {}, ...diagnostic ? { serviceCode: diagnostic.serviceCode, ...details } : {}, ...retryAfterMs === void 0 ? {} : { retryAfterMs } });
203746
203778
  this.status = status;
203747
203779
  this.body = body;
203748
203780
  }
@@ -203908,7 +203940,8 @@ var Client = class {
203908
203940
  try {
203909
203941
  const parsed = await boundedJson(response, 16 * 1024);
203910
203942
  const diagnostic = searchDiagnostic(response.status, parsed);
203911
- errorBody = diagnostic ? { error: { code: diagnostic.serviceCode, ...safeDiagnosticDetails(parsed) } } : void 0;
203943
+ const voiceRevisionConflict = /^\/v1\/studio\/voice-selection(?:\?|$)/.test(path) && response.status === 409 && parsed?.error?.code === "revision_conflict";
203944
+ errorBody = diagnostic ? { error: { code: diagnostic.serviceCode, ...safeDiagnosticDetails(parsed) } } : voiceRevisionConflict ? { error: { code: "revision_conflict" } } : void 0;
203912
203945
  } catch {
203913
203946
  }
203914
203947
  } else await response.body?.cancel();
@@ -206666,6 +206699,102 @@ import { fileURLToPath } from "node:url";
206666
206699
 
206667
206700
  // packages/cli/src/agent-guidance-history.ts
206668
206701
  var VERIFIED_GUIDANCE_RELEASES = [
206702
+ {
206703
+ "version": "0.44.1",
206704
+ "archiveSha256": "ea2a2a324e3676cb39da61be5c9b720e67ff871ca50a9c86459816b69893dc85",
206705
+ "files": {
206706
+ "editorbrain-formats/SKILL.md": "65ea59aae091ca9618b5e479befe0c76edf174df7091ed74d4307485a2252fcd",
206707
+ "editorbrain-formats/references/aspirational-list-demo.md": "e884ce44d15f4496812ed18120f7d4c49c4261e148fcefe05c77c110b589771c",
206708
+ "editorbrain-formats/references/cumulative-tier-list.md": "7b7e8208687c6b925443e55d640ced6c1d09824377884244a09d7f3089d60aa5",
206709
+ "editorbrain-formats/references/numbered-tutorial.md": "95754ae7dbfaa678e11ddf1a2b84710dba83a16e2fa4055051bd4f5f4f868a5f",
206710
+ "editorbrain-motion/SKILL.md": "57292f3a48cc8f1fc2d89f2cc054a3ceabeda9422958fa708f273c662867d5ae",
206711
+ "editorbrain-motion/references/authored-scenes.md": "52e97b89b1d8a288c4ce7bd133eafea84e934ef2bf03ffe2dcef8c368b6f977d",
206712
+ "editorbrain-motion/references/code-motion.md": "50382a797adc1e1596086e2408e81ee75ceb6730ca409be9c884646db643a7cd",
206713
+ "editorbrain-motion/references/component-library.md": "e88ed19d2ab9dca8d2ea02abe6c476021c03b9679bce99292cf7da52d65d2236",
206714
+ "editorbrain-motion/references/generated-motion.md": "a8d214b53c15f742658abd84f03b768fa2821f8cde94f50aab82a3759a30b36b",
206715
+ "editorbrain-motion/references/motion-craft.md": "dae520b0e641fc9c3bf937241936588a855bf3453358e239ccc3cc3a2bcf0825",
206716
+ "editorbrain/AGENTS.md": "ee3428a4e39c6717089e4062396619d73102ac46da10e918b36e784baf8be735",
206717
+ "editorbrain/SKILL.md": "8608d33078717a00b0061d49259b098ba2a5205aaa0875fc4888cb0511a966e6",
206718
+ "editorbrain/references/audio-production.md": "a676511feae7de018da2b4e124e3e3da30b9f2e3736970e4ce29e32e6e94ee68",
206719
+ "editorbrain/references/cli-mcp.md": "8c800570e14fcc926f03e609076e9a7ea2d72a59365d4f5ded6b8750870a0e55",
206720
+ "editorbrain/references/editorial-evidence.md": "79ed5bd90eb903014313c32a1e337822c5cb454e642bcfa852dcb77d30a9392e",
206721
+ "editorbrain/references/editorial-families.md": "b802ec6f02fd079e99df84d69a3c515d63ad058960b568c0c7b7dec1912495dd",
206722
+ "editorbrain/references/family-animated.md": "54a140d0a64b01147c52ea8cbaab4e4599bfe1af330f5a3ad6ef2a30351ab47d",
206723
+ "editorbrain/references/family-demonstration.md": "737334a8d9230682cde3a6ed11bfc02c4f9795c8f25a3b668be9d7393ec3e53d",
206724
+ "editorbrain/references/family-essay.md": "003f2cd450f33ba6641a9b1114cbc578c04cbb658b992c89c765d43198d1b4c2",
206725
+ "editorbrain/references/family-personal.md": "e93c304d7bc7d3eb31a3c9cb3be83f4f48d41319c2ac2e1e6f53f38576f5e644",
206726
+ "editorbrain/references/family-presenter.md": "76b8140b924930b306ce97772d6a7b683870bd14f19772b5339a490752b7de24",
206727
+ "editorbrain/references/first-edit.md": "60a076152150e70331de111067a38265a6aa757b66754a91d993b16cac2207ae",
206728
+ "editorbrain/references/integrations.md": "7e0188ec41babd7f49b37cea82e4b8fd81b36dd50127dad25f563767c661b43b",
206729
+ "editorbrain/references/local-production.md": "fb4e1db9f782cd6a67f4930926cf5a6faeb402b491a250a3b6aabbcbfc1172aa",
206730
+ "editorbrain/references/media-preferences.md": "87e508a75cdb6f4644db767273bfb230fb79f182ed05ee0f6257c6c05ea4dc7a",
206731
+ "editorbrain/references/memory-and-review.md": "406589a18e9e86ad8ce7d71e0f5bf00f67dab42c05af7721482fdca1c25c7c1b",
206732
+ "editorbrain/references/motion-review.md": "0fb09a2d61ecd13114ced5cca5daa4580a922cf7d7b3f8698077ceb0e96da6f0",
206733
+ "editorbrain/references/onboarding.md": "b842dac368455b670543d9a0defdad91708c10788d1474ddfa6b31ca929e930b",
206734
+ "editorbrain/references/personal-resources.md": "92ce6f32191929bd946c97305452521f6048d6bb8ea371e9083536eff5ce9512",
206735
+ "editorbrain/references/production-and-review.md": "6475f1ca50d3c50312cb960bb11fa807534003b998e2c2e223378556b8807064",
206736
+ "editorbrain/references/production-continuity.md": "31b6e9605a823d5bcf3c0c94e71718998919c702b398d8e84fc15c80bb6ee7b1",
206737
+ "editorbrain/references/real-media.md": "cfad1aa15198dfe5ecc1f1b67c96d43a7d2084e7f5119de93d1b360203694938",
206738
+ "editorbrain/references/search-brief.md": "1bd2514f961522675047910f001f33da035382e48e933bc5eadb9d7d01455a0d",
206739
+ "editorbrain/references/sfx-library.md": "d7ee0d2916559ce11a7fd244ccbcb98172413653c3fdbe0545e57b3eda543b16",
206740
+ "editorbrain/references/starting-an-edit.md": "0c7a5091a0b4739fb3633e21499e5bf4e0ba0d687a2ac99e9133177b90158c67",
206741
+ "editorbrain/references/storage-and-previews.md": "80bde58a2802f34e8ec220e2a3d6bac3a0795a9ee17cf98fe9943c07a3e78787",
206742
+ "editorbrain/references/studio.md": "f2d128d8a5f3beafa76a40c42eedc11a993d8dbaeac2832dcd1b7489f78a9064",
206743
+ "editorbrain/references/style-creator.md": "cc8ca31dea21e9230bcc215b16a7391c3e16740ee95802d85e768d45fb49e840",
206744
+ "editorbrain/references/style-source.md": "983fa21b4606c3cdc41b2fa4386ddc8f77a1b14ae782aad8774c000696c14de1",
206745
+ "editorbrain/references/voice-cleanup.md": "75e06cef365306ffb84e550e4c720ddc5eae320b7ea5447d6887187b20691e40",
206746
+ "editorbrain/references/workspace-files.md": "592c594e2b40f2a904fd8b61f2669b1a3ae3a28554a5782060e8def1318b0b2c",
206747
+ "editorbrain/scripts/deepfilter-cleanup.mjs": "e557a31bea16570c7ab16aaf54f883110bad8a42e28fac6282b0a1aa81de635e"
206748
+ }
206749
+ },
206750
+ {
206751
+ "version": "0.44.0",
206752
+ "archiveSha256": "16fd4f790cba31f779f703a3dc6e929da3209e450c252a7c3a50878e23b44514",
206753
+ "files": {
206754
+ "editorbrain-formats/SKILL.md": "65ea59aae091ca9618b5e479befe0c76edf174df7091ed74d4307485a2252fcd",
206755
+ "editorbrain-formats/references/aspirational-list-demo.md": "e884ce44d15f4496812ed18120f7d4c49c4261e148fcefe05c77c110b589771c",
206756
+ "editorbrain-formats/references/cumulative-tier-list.md": "7b7e8208687c6b925443e55d640ced6c1d09824377884244a09d7f3089d60aa5",
206757
+ "editorbrain-formats/references/numbered-tutorial.md": "95754ae7dbfaa678e11ddf1a2b84710dba83a16e2fa4055051bd4f5f4f868a5f",
206758
+ "editorbrain-motion/SKILL.md": "57292f3a48cc8f1fc2d89f2cc054a3ceabeda9422958fa708f273c662867d5ae",
206759
+ "editorbrain-motion/references/authored-scenes.md": "52e97b89b1d8a288c4ce7bd133eafea84e934ef2bf03ffe2dcef8c368b6f977d",
206760
+ "editorbrain-motion/references/code-motion.md": "50382a797adc1e1596086e2408e81ee75ceb6730ca409be9c884646db643a7cd",
206761
+ "editorbrain-motion/references/component-library.md": "e88ed19d2ab9dca8d2ea02abe6c476021c03b9679bce99292cf7da52d65d2236",
206762
+ "editorbrain-motion/references/generated-motion.md": "a8d214b53c15f742658abd84f03b768fa2821f8cde94f50aab82a3759a30b36b",
206763
+ "editorbrain-motion/references/motion-craft.md": "dae520b0e641fc9c3bf937241936588a855bf3453358e239ccc3cc3a2bcf0825",
206764
+ "editorbrain/AGENTS.md": "ee3428a4e39c6717089e4062396619d73102ac46da10e918b36e784baf8be735",
206765
+ "editorbrain/SKILL.md": "8608d33078717a00b0061d49259b098ba2a5205aaa0875fc4888cb0511a966e6",
206766
+ "editorbrain/references/audio-production.md": "0f6d6220141b449d7c3df9ba7ab51c73b212b0090f2eb342d164dbf30c9918a4",
206767
+ "editorbrain/references/cli-mcp.md": "8c800570e14fcc926f03e609076e9a7ea2d72a59365d4f5ded6b8750870a0e55",
206768
+ "editorbrain/references/editorial-evidence.md": "79ed5bd90eb903014313c32a1e337822c5cb454e642bcfa852dcb77d30a9392e",
206769
+ "editorbrain/references/editorial-families.md": "b802ec6f02fd079e99df84d69a3c515d63ad058960b568c0c7b7dec1912495dd",
206770
+ "editorbrain/references/family-animated.md": "54a140d0a64b01147c52ea8cbaab4e4599bfe1af330f5a3ad6ef2a30351ab47d",
206771
+ "editorbrain/references/family-demonstration.md": "737334a8d9230682cde3a6ed11bfc02c4f9795c8f25a3b668be9d7393ec3e53d",
206772
+ "editorbrain/references/family-essay.md": "003f2cd450f33ba6641a9b1114cbc578c04cbb658b992c89c765d43198d1b4c2",
206773
+ "editorbrain/references/family-personal.md": "e93c304d7bc7d3eb31a3c9cb3be83f4f48d41319c2ac2e1e6f53f38576f5e644",
206774
+ "editorbrain/references/family-presenter.md": "76b8140b924930b306ce97772d6a7b683870bd14f19772b5339a490752b7de24",
206775
+ "editorbrain/references/first-edit.md": "60a076152150e70331de111067a38265a6aa757b66754a91d993b16cac2207ae",
206776
+ "editorbrain/references/integrations.md": "7e0188ec41babd7f49b37cea82e4b8fd81b36dd50127dad25f563767c661b43b",
206777
+ "editorbrain/references/local-production.md": "fb4e1db9f782cd6a67f4930926cf5a6faeb402b491a250a3b6aabbcbfc1172aa",
206778
+ "editorbrain/references/media-preferences.md": "87e508a75cdb6f4644db767273bfb230fb79f182ed05ee0f6257c6c05ea4dc7a",
206779
+ "editorbrain/references/memory-and-review.md": "406589a18e9e86ad8ce7d71e0f5bf00f67dab42c05af7721482fdca1c25c7c1b",
206780
+ "editorbrain/references/motion-review.md": "0fb09a2d61ecd13114ced5cca5daa4580a922cf7d7b3f8698077ceb0e96da6f0",
206781
+ "editorbrain/references/onboarding.md": "b842dac368455b670543d9a0defdad91708c10788d1474ddfa6b31ca929e930b",
206782
+ "editorbrain/references/personal-resources.md": "92ce6f32191929bd946c97305452521f6048d6bb8ea371e9083536eff5ce9512",
206783
+ "editorbrain/references/production-and-review.md": "6475f1ca50d3c50312cb960bb11fa807534003b998e2c2e223378556b8807064",
206784
+ "editorbrain/references/production-continuity.md": "31b6e9605a823d5bcf3c0c94e71718998919c702b398d8e84fc15c80bb6ee7b1",
206785
+ "editorbrain/references/real-media.md": "cfad1aa15198dfe5ecc1f1b67c96d43a7d2084e7f5119de93d1b360203694938",
206786
+ "editorbrain/references/search-brief.md": "1bd2514f961522675047910f001f33da035382e48e933bc5eadb9d7d01455a0d",
206787
+ "editorbrain/references/sfx-library.md": "d7ee0d2916559ce11a7fd244ccbcb98172413653c3fdbe0545e57b3eda543b16",
206788
+ "editorbrain/references/starting-an-edit.md": "0c7a5091a0b4739fb3633e21499e5bf4e0ba0d687a2ac99e9133177b90158c67",
206789
+ "editorbrain/references/storage-and-previews.md": "80bde58a2802f34e8ec220e2a3d6bac3a0795a9ee17cf98fe9943c07a3e78787",
206790
+ "editorbrain/references/studio.md": "3d17075ca330f580095740207e8ae0fb71532bc6a25ef00c95eda3012ae70c19",
206791
+ "editorbrain/references/style-creator.md": "cc8ca31dea21e9230bcc215b16a7391c3e16740ee95802d85e768d45fb49e840",
206792
+ "editorbrain/references/style-source.md": "983fa21b4606c3cdc41b2fa4386ddc8f77a1b14ae782aad8774c000696c14de1",
206793
+ "editorbrain/references/voice-cleanup.md": "75e06cef365306ffb84e550e4c720ddc5eae320b7ea5447d6887187b20691e40",
206794
+ "editorbrain/references/workspace-files.md": "9ded0de75ccbbd0ed382b48c0ccaa6bc9ba1e37613fe47cd0c95a36dffd7e601",
206795
+ "editorbrain/scripts/deepfilter-cleanup.mjs": "e557a31bea16570c7ab16aaf54f883110bad8a42e28fac6282b0a1aa81de635e"
206796
+ }
206797
+ },
206669
206798
  {
206670
206799
  "version": "0.43.0",
206671
206800
  "archiveSha256": "d762f49a73eb31587aa6a8dcad37d537bec174911c7421312ad066700579f21b",
@@ -208824,9 +208953,37 @@ async function prepareStudioAudio(root, file2, out, streamIndex) {
208824
208953
 
208825
208954
  // packages/cli/src/studio.ts
208826
208955
  async function studioCommand(client, root, command, argument, flags) {
208827
- const allowed = /* @__PURE__ */ new Set(["dir", "url", ...command === "quote" ? ["file"] : command === "run" ? ["max-credits", "user-confirmed", "batch-lease-token"] : command === "jobs" ? ["after"] : []]);
208956
+ const allowed = /* @__PURE__ */ new Set(["dir", "url", ...command === "quote" ? ["file"] : command === "run" ? ["max-credits", "user-confirmed", "batch-lease-token"] : command === "jobs" ? ["after"] : command === "voices" ? ["query", "language", "accent", "gender"] : command === "voice" ? ["brand", "project", "expected-revision"] : []]);
208828
208957
  for (const flag2 of Object.keys(flags)) if (!allowed.has(flag2)) throw new CliError("INVALID_ARGUMENT", `--${flag2} is not supported for studio ${command}.`, "Read editorbrain help.");
208829
208958
  try {
208959
+ if (command === "voices") {
208960
+ if (argument) throw new CliError("INVALID_ARGUMENT", "studio voices has no positional input.", "Use --query, --language, --accent or --gender to filter the catalog.");
208961
+ const query = new URLSearchParams();
208962
+ for (const flag2 of ["query", "language", "accent", "gender"]) {
208963
+ const value = flags[flag2];
208964
+ if (value === void 0) continue;
208965
+ const limit = flag2 === "query" ? 200 : flag2 === "accent" ? 100 : 40;
208966
+ if (typeof value !== "string" || !value.trim() || value.trim().length > limit) throw new CliError("INVALID_ARGUMENT", `--${flag2} requires 1\u2013${limit} characters.`, "Read editorbrain help.");
208967
+ if (flag2 === "gender" && !["female", "male"].includes(value.trim())) throw new CliError("INVALID_ARGUMENT", "--gender must be female or male.", "Use the values returned by studio voices.");
208968
+ query.set(flag2 === "query" ? "q" : flag2, value.trim());
208969
+ }
208970
+ return await client.request(`/v1/studio/voices${query.size ? "?" + query : ""}`);
208971
+ }
208972
+ if (command === "voice") {
208973
+ const scopes = ["brand", "project"].filter((scope2) => flags[scope2] !== void 0);
208974
+ if (scopes.length !== 1) throw new CliError("INVALID_ARGUMENT", "studio voice requires exactly one of --brand ID or --project ID.", "Use a saved brand/project ID; read its selection before changing it.");
208975
+ const scope = scopes[0], id3 = flags[scope];
208976
+ if (typeof id3 !== "string" || !/^[a-z0-9][a-z0-9_-]{0,79}$/.test(id3)) throw new CliError("INVALID_ARGUMENT", `--${scope} requires a valid saved ID.`, "Use lowercase letters, numbers, hyphens or underscores.");
208977
+ const target = { [scope === "brand" ? "brandId" : "projectId"]: id3 };
208978
+ if (!argument) {
208979
+ if (flags["expected-revision"] !== void 0) throw new CliError("INVALID_ARGUMENT", "--expected-revision applies only when saving a voice ID.", "Read studio voice --brand ID or --project ID first.");
208980
+ return await client.request("/v1/studio/voice-selection?" + new URLSearchParams(target));
208981
+ }
208982
+ if (!/^[a-z0-9][a-z0-9_-]{0,79}$/.test(argument)) throw new CliError("INVALID_ARGUMENT", "Supply a public voice ID returned by studio voices.", "Provider voice IDs and URLs are not accepted.");
208983
+ const revision2 = flags["expected-revision"];
208984
+ if (typeof revision2 !== "string" || !/^\d+$/.test(revision2) || !Number.isSafeInteger(Number(revision2))) throw new CliError("INVALID_ARGUMENT", "Saving a voice requires --expected-revision with a nonnegative integer.", "Read studio voice for this brand/project and use its revision, including 0 for an absent audio document.");
208985
+ return await client.request("/v1/studio/voice-selection", { method: "PUT", body: { ...target, voiceId: argument, expectedRevision: Number(revision2) } });
208986
+ }
208830
208987
  if (command === "catalog" || command === "jobs") {
208831
208988
  if (argument) throw new CliError("INVALID_ARGUMENT", "This command has no positional input.", "Read editorbrain help.");
208832
208989
  const after = flags.after;
@@ -208847,8 +209004,11 @@ async function studioCommand(client, root, command, argument, flags) {
208847
209004
  if (flags["user-confirmed"] !== true || !Number.isFinite(maxCredits) || maxCredits <= 0 || maxCredits > 1e4) throw new CliError("SPENDING_APPROVAL_REQUIRED", "Supply --user-confirmed and --max-credits only after the user authorized this quote or budget.", "Preferences and direct editing mode do not authorize spending.");
208848
209005
  return await client.request("/v1/studio/jobs", { method: "POST", body: { quoteId: argument, maxCredits, userConfirmed: true, ...flags["batch-lease-token"] ? { batchLeaseToken: flags["batch-lease-token"] } : {} } });
208849
209006
  }
208850
- throw new CliError("INVALID_ARGUMENT", "Use studio catalog, quote, run, get or jobs.", "Read editorbrain help.");
209007
+ throw new CliError("INVALID_ARGUMENT", "Use studio catalog, voices, voice, quote, run, get or jobs.", "Read editorbrain help.");
208851
209008
  } catch (error62) {
209009
+ if (command === "voice" && error62 instanceof ApiError && error62.status === 409 && error62.body?.error?.code === "revision_conflict") {
209010
+ throw new CliError("VOX_VOICE_SELECTION_CONFLICT", "The saved voice selection changed.", "Read studio voice for the same brand/project again and reconcile its current revision before saving. Preserve other audio preferences; do not retry the old write automatically.", false, { status: 409, serviceCode: "revision_conflict" });
209011
+ }
208852
209012
  throw error62;
208853
209013
  }
208854
209014
  }
@@ -214348,6 +214508,9 @@ editorbrain workflow set --mode direct|directions|sample --expected-revision N
214348
214508
  editorbrain workflow check [--project id] [--questions needs.json] [--previous-version hash] [--previous-context-version hash]
214349
214509
  editorbrain studio prepare --file source.mp4 --out .editorbrain-local/studio/audio.wav [--audio-stream N]
214350
214510
  editorbrain studio catalog
214511
+ editorbrain studio voices [--language es] [--accent ACCENT] [--gender GENDER] [--query TEXT]
214512
+ editorbrain studio voice --brand ID|--project ID
214513
+ editorbrain studio voice VOICE_ID --brand ID|--project ID --expected-revision N
214351
214514
  editorbrain billing status
214352
214515
  editorbrain studio quote --file request.json [--dir folder]
214353
214516
  editorbrain studio run QUOTE_ID --max-credits N --user-confirmed [--batch-lease-token UUID]
@@ -214475,6 +214638,7 @@ function parseArgs(argv) {
214475
214638
  known.add("batch-lease-token");
214476
214639
  if (argv[0] === "render-cloud") for (const flag2 of ["max-cost-usd", "runtime-seconds", "quote-file", "grant", "bytes"]) known.add(flag2);
214477
214640
  if (argv[0] === "team") for (const flag2 of ["email", "user", "at-ms"]) known.add(flag2);
214641
+ for (const flag2 of ["language", "accent", "gender"]) known.add(flag2);
214478
214642
  for (let i = 0; i < argv.length; i++) {
214479
214643
  const arg = argv[i];
214480
214644
  if (!arg.startsWith("--")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "editorbrain",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "description": "EditorBrain editorial knowledge, portable workspaces and skills for AI video agents",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -21,6 +21,71 @@ Fields (optional except `schemaVersion:1`):
21
21
 
22
22
  Resolve current workflow before selecting SFX. `sfxPolicy` summarizes effective density, character, protected hook and bank; source hashes identify preference changes. `none` means no added SFX, including synthesized clicks. An original recording's ambient sound is separate. Music and SFX remain separate: no music does not silence voice. Editorial exclusions override contradictory raw audio fields without deleting them.
23
23
 
24
+ For an EditorBrain Vox catalog voice, use `studio voices` / `list_vox_voices` to
25
+ discover public aliases and preview metadata. Read `studio voice --brand ID` or
26
+ `--project ID` / `get_vox_voice_selection`, then save the chosen alias with
27
+ `studio voice VOICE_ID --brand ID|--project ID --expected-revision N` /
28
+ `set_vox_voice_selection`. Use exactly one scope and its returned revision. This
29
+ updates only canonical `audio.json.voice`; brand defaults and project overrides
30
+ share the same portable preference as the rest of the workflow. It preserves
31
+ music, SFX and loudness and never changes `narrationOverride`. Before later local
32
+ edits or push, inspect `pull --project ID --dry-run` and reconcile local changes,
33
+ then pull the selected project; never discard local work to refresh the remote
34
+ selection. See [Studio](studio.md#discover-and-save-a-vox-voice)
35
+ for preview limits, inheritance and spending rules.
36
+
37
+ ### A deliberate narration exception for one project
38
+
39
+ When the user's current request deliberately changes narration for one video,
40
+ merge `narrationOverride` into that video's existing `project.json`:
41
+
42
+ ```json
43
+ {
44
+ "narrationOverride": {
45
+ "value": "voiceover",
46
+ "reason": "The user requested a generated narration for this video only."
47
+ }
48
+ }
49
+ ```
50
+
51
+ This is a fragment, not a replacement project document. Accepted values are
52
+ `original`, `voiceover` and `none`; the reason must contain 10–500 characters.
53
+ Keep the brand, selected style, output profile and other project fields intact.
54
+ The exception changes only the effective narration of this project. Removing
55
+ it restores the inherited narration; shared documents remain unchanged.
56
+
57
+ `voiceover` does not select a voice or provider. For an explicitly requested
58
+ EditorBrain Vox exception, also select the authorized public catalog alias for this project's
59
+ `audio.json`, preserving any music, SFX or loudness settings:
60
+
61
+ ```json
62
+ {
63
+ "schemaVersion": 1,
64
+ "voice": { "mode": "catalog", "provider": "editorbrain", "voiceId": "narrator" }
65
+ }
66
+ ```
67
+
68
+ `narrator` is an example alias, not a mandatory replacement voice. Use the
69
+ selected catalog alias; the scoped `studio voice` command performs this merge
70
+ with revision protection. Omitted `voice` in a later Vox quote inherits the
71
+ effective saved catalog voice rather than choosing a new one.
72
+
73
+ Use the actual authorized voice for other integrations; never substitute Vox
74
+ for a cloned or external voice. Read the current documents and use revision
75
+ protection when writing through MCP. With local CLI document edits, validate
76
+ and `push --dry-run` before normal `push`; after a remote `studio voice` save,
77
+ preview `pull --project ID --dry-run`, reconcile local changes and pull before
78
+ editing its local copy. Then reread workflow.
79
+ The snapshot reports `narrationOverride` with project scope and reason, plus
80
+ effective `mediaPreferences.editorialDelivery.narration` and `audioProduction`.
81
+ Changing or removing either source invalidates unspent quotes: quote again
82
+ after configuration, without repeating an already submitted job.
83
+
84
+ An exception is not spending approval, a tool activation or a waiver of music,
85
+ SFX, language, media-source or access restrictions. Never write one merely to
86
+ silence an error. If the installed client/service does not support the field,
87
+ update to a release that supports it instead of changing the shared brand.
88
+
24
89
  For sound selection, read [SFX library](sfx-library.md) on demand: search fitting candidates, retrieve the pinned asset, audition and place by purpose. Do not borrow another member's files, silently switch a configured bank, or interpret empty results as permission to generate/buy. A library's presence alone does not forbid generation, but generation preferences never authorize spending. Recheck workflow before rendering and listen to the actual final mix.
25
90
 
26
91
  ## Clean dialogue only when useful
@@ -5,10 +5,12 @@ These are managed EditorBrain tools. First distinguish them from the user’s ow
5
5
  by Studio credits, permissions or quotes. Conversely, owning an external account
6
6
  does not fund or unlock a Studio job. Never silently switch between these routes.
7
7
 
8
- Load this only when creating/transcribing a resource. Check `editorbrain help` or MCP tool discovery first: earlier clients/services may not support Studio. `studio catalog` / `studio_catalog` reports availability, per-tool `tools[].canSpend` and creative credits. Tempo accepts editing access; Prism/Vox/Aura require a workspace owner (including an owner’s editor-scoped connection). Readers cannot start jobs. On older servers without per-tool permissions, use the legacy catalog `canSpend` and report authorization failures. These credits are separate from library searches. Do not request provider keys or activate personal integrations for built-in tools.
8
+ Load this when creating/transcribing a resource or selecting a Vox voice. Check `editorbrain help` or MCP tool discovery first: earlier clients/services may not support Studio. `studio catalog` / `studio_catalog` reports availability, per-tool `tools[].canSpend` and creative credits. Tempo accepts editing access; Prism/Vox/Aura require a workspace owner (including an owner’s editor-scoped connection). Readers cannot start jobs. On older servers without per-tool permissions, use the legacy catalog `canSpend` and report authorization failures. These credits are separate from library searches. Do not request provider keys or activate personal integrations for built-in tools.
9
9
 
10
10
  When the user explicitly requests Tempo or another tool, keep that choice. If unavailable, out of credits or unauthorized, report the specific blocker before changing methods; an existing local model is not an approved substitute. Continue independent work, but do not finalize speech cuts/captions from a fallback transcript as if the requested transcription had completed. Provider balance and EditorBrain credits are separate, and reconnecting cannot replenish either. A completed transcript still needs editorial review: preserve intended ideas and verify speech joins against the source.
11
11
 
12
+ The searchable Vox voice catalog and `studio voice` commands require CLI 0.44.2+ and matching service capabilities. Discover the tools before using them; older clients retain their existing narration path.
13
+
12
14
  ## Saved tool preferences (web, CLI and MCP)
13
15
 
14
16
  The web page **Herramientas IA** configures the agent; it does not generate or
@@ -103,7 +105,7 @@ These are brand defaults, not permission to use every tool in every edit:
103
105
  - `images`: provider, quality, resolution and aspectRatio (`project` uses output).
104
106
  Respect allowed media sources, actual brand palette and scene purpose first. Prism rejects quotes when effective media-source preferences exclude generated images; reconcile the preference instead of changing it silently.
105
107
  - `narration`: provider and language; never replace an explicitly selected original,
106
- cloned or catalog voice. EditorBrain Vox currently supports Narrator only. Read
108
+ cloned or catalog voice. Discover current Vox voices with `studio voices`. Read
107
109
  the member's voice preference from the selected external integration if relevant.
108
110
  - `music`: provider, target duration (`scene` lets you choose 30/60/120 for Aura), and
109
111
  character. Disabled music stays disabled; free text is editorial data only.
@@ -151,11 +153,72 @@ read the quote's `limitations`, and listen to the actual result.
151
153
  ## Prism / Vox
152
154
 
153
155
  - Prism input: `{"tool":"prism","projectId":"YOUR_PROJECT","prompt":"Describe this scene without logos or lettering…"}`. Ratios: `1:1`, `9:16`, `16:9`; one image per request. Resolve/read branding, prose restrictions and media choices first. The server pins structured palette/preferences, not every free-text editorial rule. Keep exact typography/logos in the editable composition. Use authentic material for factual subjects; generated illustration is not evidence.
154
- - Vox input: `{"tool":"vox","projectId":"YOUR_PROJECT","text":"Exact narration in the resolved project language","voice":"narrator"}`. One initial catalog voice, no cloning. Languages: `es/en/pt/fr/de/it`. A conflicting saved language/voice must be reconciled with the user; do not silently replace their preference or rewrite pronunciation-sensitive text. Maximum 3000 characters.
156
+ - Vox input: `{"tool":"vox","projectId":"YOUR_PROJECT","text":"Exact narration in the resolved project language"}`. Omitted `voice` inherits the effective EditorBrain catalog voice saved in `audio.json`; inspect the quote's returned input. An explicit `voice` is a public alias returned by the catalog, such as `narrator`, never a provider voice ID. Discover supported languages and voices below. A conflicting saved language/voice must be reconciled with the user; do not silently replace their preference or rewrite pronunciation-sensitive text. Maximum 3000 characters; no voice cloning.
157
+
158
+ ### Discover and save a Vox voice
159
+
160
+ ```sh
161
+ editorbrain studio voices --language es
162
+ editorbrain studio voices --accent american --gender female --query cálida
163
+ editorbrain studio voice --brand BRAND_ID
164
+ editorbrain studio voice --project PROJECT_ID
165
+ editorbrain studio voice VOICE_ID --project PROJECT_ID --expected-revision N
166
+ ```
167
+
168
+ Use actual IDs and the revision just read, including `0` if the target audio
169
+ document is absent. Select exactly one scope: `--brand` saves the brand default;
170
+ `--project` saves a voice for that video. The MCP equivalents are
171
+ `list_vox_voices` (`q`, `language`, `accent`, `gender`),
172
+ `get_vox_voice_selection` and `set_vox_voice_selection` (exactly one of
173
+ `brandId`/`projectId`; saving also requires `voiceId` and `expectedRevision`).
174
+
175
+ Catalog entries include public aliases, supported synthesis languages,
176
+ accent/gender and preview metadata when available. `languages` describes
177
+ synthesis support (`es/en/pt/fr/de/it`), not the preview's language; the latter is
178
+ in `preview.language`. `accent` describes the original English voice and does
179
+ not guarantee a regional Spanish accent. Listen to the relevant sample and
180
+ generated result before asserting pronunciation or regional fit.
181
+ A preview URL requires authentication and is
182
+ not a generated project asset. Listing metadata does not play or evaluate audio;
183
+ use an available authenticated playback capability and say if listening was not
184
+ performed. Missing previews are not permission to generate a paid sample. Do not
185
+ store preview URLs in portable documents or expose provider IDs.
186
+
187
+ The selection response identifies the canonical `path`, its `revision`, the
188
+ stored/effective voice and whether it is inherited. Saving changes only the
189
+ `voice` property in that scope's `audio.json`, preserving music/SFX/loudness and
190
+ other fields. On a revision conflict, reread the same scope and reconcile; do not
191
+ repeat the stale write. The command saves remotely, not into the local workspace.
192
+ Before further local edits or push, inspect `pull --project ID --dry-run`,
193
+ reconcile any local changes, then pull that selected project to refresh the
194
+ saved voice. Never force or discard local work to refresh it. Unknown aliases require a fresh catalog
195
+ lookup, never an automatic replacement with Narrator.
196
+
197
+ Discovery, previews and selecting a voice do not generate narration, authorize
198
+ spending or override original/no-narration restrictions. A project narration
199
+ exception remains a separate explicit decision in `project.json`. Reread
200
+ workflow after changing preferences and request a new quote before an authorized
201
+ run. Existing submitted jobs remain unchanged.
202
+
203
+ If Vox returns `studio_preference_conflict`, read its `conflict`, `projectPath`
204
+ and `documentPath` when present. A brand set to original/no narration stays
205
+ protected. For a user-authorized exception in one video, use the scoped
206
+ [`narrationOverride` and explicit project voice](audio-production.md#a-deliberate-narration-exception-for-one-project),
207
+ then reread workflow and request a new quote. `preferenceOverrideReason` on a
208
+ quote cannot replace this project decision. A new voiceover exception without
209
+ an explicit catalog voice remains blocked; it never chooses a paid provider.
210
+ Do not edit the shared brand or another project to make the quote pass.
155
211
 
156
212
  ## Aura / instrumental music
157
213
 
158
214
  - First read the effective music preference and the relevant `music.md` only. When music is disabled, do not quote or generate it. Never change saved preferences to bypass a conflict.
215
+ - If the user explicitly requests music for this video despite an inherited
216
+ `audio.json` intensity of `none`, merge `music.intensity: "subtle"` or
217
+ `"present"` into this project's `audio.json` according to the request, keeping
218
+ its other fields. Reread workflow to confirm the effective choice. A hard
219
+ no-music editorial restriction still applies; a narration exception does not
220
+ lift it. A service-level pause is separate and cannot be fixed with project
221
+ preferences or additional credits.
159
222
  - `{"tool":"music","projectId":"YOUR_PROJECT","prompt":"Warm restrained piano, soft percussion, room for the narrator","durationSeconds":60}` → `studio quote --file request.json` / `quote_music`. Describe the scene's mood, pace and instruments. Durations: 30, 60 or 120 seconds as a target, not a frame-exact guarantee. No lyrics, vocals, cloning or provider/model selection in this release.
160
223
  - The quote covers the whole request, including all returned variants (up to two). Read the price; do not multiply it by the number of tracks or silently request more takes. The server pins structured music intensity and saved musical character; incorporate relevant prose-only musical restrictions in the brief yourself.
161
224
  - Completed jobs expose `assetIds` for all variants; `assetId` remains the first for older clients. Download and audition each, measure actual duration, select one and trim/fade to the edit. Keep narration intelligible through appropriate gain/ducking. Generation does not mix the video's audio, apply volume levels, or certify that no vocal artifacts exist. Record the chosen asset in the project; do not automatically add both tracks.
@@ -127,6 +127,13 @@ See [memory and review](memory-and-review.md) for memory schemas, version restor
127
127
 
128
128
  Brand `audio.json` and project `audio.json` are selected optional sources, validated and hashed by resolve/pull, exposed as `audioProduction` in resolved/workflow context, and included in handoffs. See [audio production](audio-production.md) only when configuring voice, SFX banks/exclusions or loudness. They contain portable IDs and preferences, not provider credentials or machine-specific paths. Existing projects need no migration. Detailed provenance and QA reports stay private in `.editorbrain-local/` and are read on demand; merely creating a JSON under `videos/` does not add it to resolved context.
129
129
 
130
+ For an explicitly requested narration exception in one video, the project's
131
+ `narrationOverride: {value: "original"|"voiceover"|"none", reason: "..."}` changes
132
+ only that project's effective narration. The reason is 10–500 characters.
133
+ `voiceover` does not choose a provider: select the authorized voice in project
134
+ `audio.json`. Read [the complete exception flow](audio-production.md#a-deliberate-narration-exception-for-one-project)
135
+ before writing. This does not alter other audio restrictions or grant spending.
136
+
130
137
  ## Creative decision ownership
131
138
 
132
139
  The optional editorial profile field `creativeDirection` in brand `design.md`