@lightcone-ai/daemon 0.15.30 → 0.15.31
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.
|
@@ -1038,6 +1038,7 @@ export function planVideo({
|
|
|
1038
1038
|
|
|
1039
1039
|
return {
|
|
1040
1040
|
version: 'video-narration-plan/v1',
|
|
1041
|
+
plan_video_version: 1,
|
|
1041
1042
|
target_platform: profile.id,
|
|
1042
1043
|
persona: normalizedPersona,
|
|
1043
1044
|
core_message: coreMessage,
|
|
@@ -1349,6 +1350,14 @@ export async function detailSections({
|
|
|
1349
1350
|
env = process.env,
|
|
1350
1351
|
fetchFn = globalThis.fetch,
|
|
1351
1352
|
} = {}) {
|
|
1353
|
+
if (isPlainObject(strategy) && !strategy.plan_video_version) {
|
|
1354
|
+
throw new Error(
|
|
1355
|
+
'pipeline_violation: strategy must come from plan_video output. '
|
|
1356
|
+
+ 'Required pipeline: analyze_page → plan_video → detail_sections → record_url_narration → compose_video → submit_to_library. '
|
|
1357
|
+
+ 'Do not hand-write strategy or bypass plan_video.'
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1352
1361
|
const profile = getPlatformProfile(strategy?.target_platform);
|
|
1353
1362
|
const phases = normalizePhaseList(strategy);
|
|
1354
1363
|
|