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: resolve Caption Playground paths against the invoking directory
rpone2df3bc5c27eb
diff --git a/packages/caption-playground/start.ts b/packages/caption-playground/start.tsindex 2e1b95e5..e4287d5f 100644--- a/packages/caption-playground/start.ts+++ b/packages/caption-playground/start.ts@@ -67,10 +67,13 @@ const fps = Number(required(values, "fps"));const port = Number(values.get("port") ?? "5178");if (!Number.isSafeInteger(fps) || fps <= 0 || !Number.isSafeInteger(port) || port <= 0) usage("--fps and --port must be positive integers");-const source = resolve(required(values, "source"));-const recipeFile = resolve(recipeArgument.slice(0, hash));-const fontFile = resolve(fontArgument.slice(0, fontHash));-const packageRoot = resolve(values.get("package-root") ?? repoRoot);+// `pnpm --filter … exec` runs inside the package directory, so a relative+// path must be resolved against the directory the author typed it in.+const invokedFrom = process.env.INIT_CWD ?? process.cwd();+const source = resolve(invokedFrom, required(values, "source"));+const recipeFile = resolve(invokedFrom, recipeArgument.slice(0, hash));+const fontFile = resolve(invokedFrom, fontArgument.slice(0, fontHash));+const packageRoot = resolve(invokedFrom, values.get("package-root") ?? repoRoot);const server = await createServer({configFile: false,root: here,