editorbrain 0.44.0 → 0.44.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/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.
|
|
8
|
+
npx editorbrain@0.44.1 help
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
For a persistent installation:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npm install -g editorbrain@0.44.
|
|
14
|
+
npm install -g editorbrain@0.44.1
|
|
15
15
|
editorbrain login --url https://api.editorbrain.com
|
|
16
16
|
editorbrain status --url https://api.editorbrain.com
|
|
17
17
|
editorbrain projects list
|
package/bin/editorbrain.mjs
CHANGED
|
@@ -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
|
|
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 = {}) {
|
|
@@ -203721,6 +203741,14 @@ function safeDiagnosticDetails(body) {
|
|
|
203721
203741
|
}
|
|
203722
203742
|
if (["workspace", "service"].includes(String(e.scope))) details.scope = String(e.scope);
|
|
203723
203743
|
if (["service_paused", "tool_paused", "configuration_pending", "pricing_pending"].includes(String(e.availabilityCode))) details.availabilityCode = String(e.availabilityCode);
|
|
203744
|
+
if (e.code === "studio_preference_conflict") {
|
|
203745
|
+
if (["narration", "voice_selection", "music"].includes(String(e.conflict))) details.conflict = String(e.conflict);
|
|
203746
|
+
if (typeof e.projectId === "string" && /^[a-z0-9][a-z0-9_-]{0,79}$/.test(e.projectId)) {
|
|
203747
|
+
details.projectId = e.projectId;
|
|
203748
|
+
if (e.documentPath === `videos/${e.projectId}/audio.json`) details.documentPath = e.documentPath;
|
|
203749
|
+
if (e.projectPath === `videos/${e.projectId}/project.json`) details.projectPath = e.projectPath;
|
|
203750
|
+
}
|
|
203751
|
+
}
|
|
203724
203752
|
if (e.code === "studio_invalid_input") {
|
|
203725
203753
|
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
203754
|
if (typeof e.invalidFields === "string" && e.invalidFields.length <= 512) {
|
|
@@ -203742,7 +203770,9 @@ var ApiError = class extends CliError {
|
|
|
203742
203770
|
const [code, hint] = codes[status] ?? [status >= 500 ? "SERVICE_UNAVAILABLE" : "API_ERROR", "Check the request and service status."];
|
|
203743
203771
|
const diagnostic = searchDiagnostic(status, body);
|
|
203744
203772
|
const recovery = diagnostic ? recoveryGuidance(diagnostic.serviceCode, status) : void 0;
|
|
203745
|
-
|
|
203773
|
+
const details = diagnostic ? safeDiagnosticDetails(body) : {};
|
|
203774
|
+
const preferenceHint = diagnostic?.serviceCode === "studio_preference_conflict" && ["narration", "voice_selection"].includes(String(details.conflict)) ? '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 and voice={mode:"catalog",provider:"editorbrain",voiceId:"narrator"} in its audio.json. Preserve the brand. Quote again; a preference exception never authorizes spending.' : void 0;
|
|
203775
|
+
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
203776
|
this.status = status;
|
|
203747
203777
|
this.body = body;
|
|
203748
203778
|
}
|
|
@@ -206666,6 +206696,54 @@ import { fileURLToPath } from "node:url";
|
|
|
206666
206696
|
|
|
206667
206697
|
// packages/cli/src/agent-guidance-history.ts
|
|
206668
206698
|
var VERIFIED_GUIDANCE_RELEASES = [
|
|
206699
|
+
{
|
|
206700
|
+
"version": "0.44.0",
|
|
206701
|
+
"archiveSha256": "16fd4f790cba31f779f703a3dc6e929da3209e450c252a7c3a50878e23b44514",
|
|
206702
|
+
"files": {
|
|
206703
|
+
"editorbrain-formats/SKILL.md": "65ea59aae091ca9618b5e479befe0c76edf174df7091ed74d4307485a2252fcd",
|
|
206704
|
+
"editorbrain-formats/references/aspirational-list-demo.md": "e884ce44d15f4496812ed18120f7d4c49c4261e148fcefe05c77c110b589771c",
|
|
206705
|
+
"editorbrain-formats/references/cumulative-tier-list.md": "7b7e8208687c6b925443e55d640ced6c1d09824377884244a09d7f3089d60aa5",
|
|
206706
|
+
"editorbrain-formats/references/numbered-tutorial.md": "95754ae7dbfaa678e11ddf1a2b84710dba83a16e2fa4055051bd4f5f4f868a5f",
|
|
206707
|
+
"editorbrain-motion/SKILL.md": "57292f3a48cc8f1fc2d89f2cc054a3ceabeda9422958fa708f273c662867d5ae",
|
|
206708
|
+
"editorbrain-motion/references/authored-scenes.md": "52e97b89b1d8a288c4ce7bd133eafea84e934ef2bf03ffe2dcef8c368b6f977d",
|
|
206709
|
+
"editorbrain-motion/references/code-motion.md": "50382a797adc1e1596086e2408e81ee75ceb6730ca409be9c884646db643a7cd",
|
|
206710
|
+
"editorbrain-motion/references/component-library.md": "e88ed19d2ab9dca8d2ea02abe6c476021c03b9679bce99292cf7da52d65d2236",
|
|
206711
|
+
"editorbrain-motion/references/generated-motion.md": "a8d214b53c15f742658abd84f03b768fa2821f8cde94f50aab82a3759a30b36b",
|
|
206712
|
+
"editorbrain-motion/references/motion-craft.md": "dae520b0e641fc9c3bf937241936588a855bf3453358e239ccc3cc3a2bcf0825",
|
|
206713
|
+
"editorbrain/AGENTS.md": "ee3428a4e39c6717089e4062396619d73102ac46da10e918b36e784baf8be735",
|
|
206714
|
+
"editorbrain/SKILL.md": "8608d33078717a00b0061d49259b098ba2a5205aaa0875fc4888cb0511a966e6",
|
|
206715
|
+
"editorbrain/references/audio-production.md": "0f6d6220141b449d7c3df9ba7ab51c73b212b0090f2eb342d164dbf30c9918a4",
|
|
206716
|
+
"editorbrain/references/cli-mcp.md": "8c800570e14fcc926f03e609076e9a7ea2d72a59365d4f5ded6b8750870a0e55",
|
|
206717
|
+
"editorbrain/references/editorial-evidence.md": "79ed5bd90eb903014313c32a1e337822c5cb454e642bcfa852dcb77d30a9392e",
|
|
206718
|
+
"editorbrain/references/editorial-families.md": "b802ec6f02fd079e99df84d69a3c515d63ad058960b568c0c7b7dec1912495dd",
|
|
206719
|
+
"editorbrain/references/family-animated.md": "54a140d0a64b01147c52ea8cbaab4e4599bfe1af330f5a3ad6ef2a30351ab47d",
|
|
206720
|
+
"editorbrain/references/family-demonstration.md": "737334a8d9230682cde3a6ed11bfc02c4f9795c8f25a3b668be9d7393ec3e53d",
|
|
206721
|
+
"editorbrain/references/family-essay.md": "003f2cd450f33ba6641a9b1114cbc578c04cbb658b992c89c765d43198d1b4c2",
|
|
206722
|
+
"editorbrain/references/family-personal.md": "e93c304d7bc7d3eb31a3c9cb3be83f4f48d41319c2ac2e1e6f53f38576f5e644",
|
|
206723
|
+
"editorbrain/references/family-presenter.md": "76b8140b924930b306ce97772d6a7b683870bd14f19772b5339a490752b7de24",
|
|
206724
|
+
"editorbrain/references/first-edit.md": "60a076152150e70331de111067a38265a6aa757b66754a91d993b16cac2207ae",
|
|
206725
|
+
"editorbrain/references/integrations.md": "7e0188ec41babd7f49b37cea82e4b8fd81b36dd50127dad25f563767c661b43b",
|
|
206726
|
+
"editorbrain/references/local-production.md": "fb4e1db9f782cd6a67f4930926cf5a6faeb402b491a250a3b6aabbcbfc1172aa",
|
|
206727
|
+
"editorbrain/references/media-preferences.md": "87e508a75cdb6f4644db767273bfb230fb79f182ed05ee0f6257c6c05ea4dc7a",
|
|
206728
|
+
"editorbrain/references/memory-and-review.md": "406589a18e9e86ad8ce7d71e0f5bf00f67dab42c05af7721482fdca1c25c7c1b",
|
|
206729
|
+
"editorbrain/references/motion-review.md": "0fb09a2d61ecd13114ced5cca5daa4580a922cf7d7b3f8698077ceb0e96da6f0",
|
|
206730
|
+
"editorbrain/references/onboarding.md": "b842dac368455b670543d9a0defdad91708c10788d1474ddfa6b31ca929e930b",
|
|
206731
|
+
"editorbrain/references/personal-resources.md": "92ce6f32191929bd946c97305452521f6048d6bb8ea371e9083536eff5ce9512",
|
|
206732
|
+
"editorbrain/references/production-and-review.md": "6475f1ca50d3c50312cb960bb11fa807534003b998e2c2e223378556b8807064",
|
|
206733
|
+
"editorbrain/references/production-continuity.md": "31b6e9605a823d5bcf3c0c94e71718998919c702b398d8e84fc15c80bb6ee7b1",
|
|
206734
|
+
"editorbrain/references/real-media.md": "cfad1aa15198dfe5ecc1f1b67c96d43a7d2084e7f5119de93d1b360203694938",
|
|
206735
|
+
"editorbrain/references/search-brief.md": "1bd2514f961522675047910f001f33da035382e48e933bc5eadb9d7d01455a0d",
|
|
206736
|
+
"editorbrain/references/sfx-library.md": "d7ee0d2916559ce11a7fd244ccbcb98172413653c3fdbe0545e57b3eda543b16",
|
|
206737
|
+
"editorbrain/references/starting-an-edit.md": "0c7a5091a0b4739fb3633e21499e5bf4e0ba0d687a2ac99e9133177b90158c67",
|
|
206738
|
+
"editorbrain/references/storage-and-previews.md": "80bde58a2802f34e8ec220e2a3d6bac3a0795a9ee17cf98fe9943c07a3e78787",
|
|
206739
|
+
"editorbrain/references/studio.md": "3d17075ca330f580095740207e8ae0fb71532bc6a25ef00c95eda3012ae70c19",
|
|
206740
|
+
"editorbrain/references/style-creator.md": "cc8ca31dea21e9230bcc215b16a7391c3e16740ee95802d85e768d45fb49e840",
|
|
206741
|
+
"editorbrain/references/style-source.md": "983fa21b4606c3cdc41b2fa4386ddc8f77a1b14ae782aad8774c000696c14de1",
|
|
206742
|
+
"editorbrain/references/voice-cleanup.md": "75e06cef365306ffb84e550e4c720ddc5eae320b7ea5447d6887187b20691e40",
|
|
206743
|
+
"editorbrain/references/workspace-files.md": "9ded0de75ccbbd0ed382b48c0ccaa6bc9ba1e37613fe47cd0c95a36dffd7e601",
|
|
206744
|
+
"editorbrain/scripts/deepfilter-cleanup.mjs": "e557a31bea16570c7ab16aaf54f883110bad8a42e28fac6282b0a1aa81de635e"
|
|
206745
|
+
}
|
|
206746
|
+
},
|
|
206669
206747
|
{
|
|
206670
206748
|
"version": "0.43.0",
|
|
206671
206749
|
"archiveSha256": "d762f49a73eb31587aa6a8dcad37d537bec174911c7421312ad066700579f21b",
|
package/package.json
CHANGED
|
@@ -21,6 +21,51 @@ 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
|
+
### A deliberate narration exception for one project
|
|
25
|
+
|
|
26
|
+
When the user's current request deliberately changes narration for one video,
|
|
27
|
+
merge `narrationOverride` into that video's existing `project.json`:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"narrationOverride": {
|
|
32
|
+
"value": "voiceover",
|
|
33
|
+
"reason": "The user requested a generated narration for this video only."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This is a fragment, not a replacement project document. Accepted values are
|
|
39
|
+
`original`, `voiceover` and `none`; the reason must contain 10–500 characters.
|
|
40
|
+
Keep the brand, selected style, output profile and other project fields intact.
|
|
41
|
+
The exception changes only the effective narration of this project. Removing
|
|
42
|
+
it restores the inherited narration; shared documents remain unchanged.
|
|
43
|
+
|
|
44
|
+
`voiceover` does not select a voice or provider. For an explicitly requested
|
|
45
|
+
EditorBrain Vox exception, also merge the following into this project's
|
|
46
|
+
`audio.json`, preserving any music, SFX or loudness settings:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"schemaVersion": 1,
|
|
51
|
+
"voice": { "mode": "catalog", "provider": "editorbrain", "voiceId": "narrator" }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Use the actual authorized voice for other integrations; never substitute Vox
|
|
56
|
+
for a cloned or external voice. Read the current documents and use revision
|
|
57
|
+
protection when writing through MCP. With CLI, update both local documents,
|
|
58
|
+
validate and `push --dry-run` before normal `push`; then reread workflow.
|
|
59
|
+
The snapshot reports `narrationOverride` with project scope and reason, plus
|
|
60
|
+
effective `mediaPreferences.editorialDelivery.narration` and `audioProduction`.
|
|
61
|
+
Changing or removing either source invalidates unspent quotes: quote again
|
|
62
|
+
after configuration, without repeating an already submitted job.
|
|
63
|
+
|
|
64
|
+
An exception is not spending approval, a tool activation or a waiver of music,
|
|
65
|
+
SFX, language, media-source or access restrictions. Never write one merely to
|
|
66
|
+
silence an error. If the installed client/service does not support the field,
|
|
67
|
+
update to a release that supports it instead of changing the shared brand.
|
|
68
|
+
|
|
24
69
|
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
70
|
|
|
26
71
|
## Clean dialogue only when useful
|
|
@@ -153,9 +153,25 @@ read the quote's `limitations`, and listen to the actual result.
|
|
|
153
153
|
- 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
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.
|
|
155
155
|
|
|
156
|
+
If Vox returns `studio_preference_conflict`, read its `conflict`, `projectPath`
|
|
157
|
+
and `documentPath` when present. A brand set to original/no narration stays
|
|
158
|
+
protected. For a user-authorized exception in one video, use the scoped
|
|
159
|
+
[`narrationOverride` and explicit project voice](audio-production.md#a-deliberate-narration-exception-for-one-project),
|
|
160
|
+
then reread workflow and request a new quote. `preferenceOverrideReason` on a
|
|
161
|
+
quote cannot replace this project decision. A new voiceover exception without
|
|
162
|
+
an explicit catalog voice remains blocked; it never chooses a paid provider.
|
|
163
|
+
Do not edit the shared brand or another project to make the quote pass.
|
|
164
|
+
|
|
156
165
|
## Aura / instrumental music
|
|
157
166
|
|
|
158
167
|
- 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.
|
|
168
|
+
- If the user explicitly requests music for this video despite an inherited
|
|
169
|
+
`audio.json` intensity of `none`, merge `music.intensity: "subtle"` or
|
|
170
|
+
`"present"` into this project's `audio.json` according to the request, keeping
|
|
171
|
+
its other fields. Reread workflow to confirm the effective choice. A hard
|
|
172
|
+
no-music editorial restriction still applies; a narration exception does not
|
|
173
|
+
lift it. A service-level pause is separate and cannot be fixed with project
|
|
174
|
+
preferences or additional credits.
|
|
159
175
|
- `{"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
176
|
- 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
177
|
- 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`
|