Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
fix: limit three-shot reruns to adjacent shots
rpone487d370c0013
diff --git a/packages/reference-video-tools/src/tools.ts b/packages/reference-video-tools/src/tools.tsindex 6052480d..9773d1ff 100644--- a/packages/reference-video-tools/src/tools.ts+++ b/packages/reference-video-tools/src/tools.ts@@ -315,7 +315,12 @@ export function createReferenceVideoTools(options: ToolOptions = {}): ReferenceV/uncertain|unknown|possibly|may be|contin(?:ue|ues)|same take|same shot/iu.test(boundaryText));const windows = (needsThreeShotReview- ? selected.flatMap((_, index) => index + 2 < selected.length ? [selected.slice(index, index + 3)] : [])+ ? selected.flatMap((shot, index) => {+ const window = selected.slice(index, index + 3);+ return window.length === 3 && window[1]!.index === shot.index + 1 && window[2]!.index === shot.index + 2+ ? [window]+ : [];+ }): []).map((items) => items as unknown as readonly [Shot, Shot, Shot]);const threeShotObservations = await pacedMap(windows, concurrency, gapMs, async (items) => {const parts: Part[] = [];