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: copy TEMP and TMP into Windows media children
fetw977233c1710e
diff --git a/packages/media-execution/src/process-env.ts b/packages/media-execution/src/process-env.tsindex bf8d3793..9d9139da 100644--- a/packages/media-execution/src/process-env.ts+++ b/packages/media-execution/src/process-env.ts@@ -1,4 +1,4 @@-const windowsProcessCreation = ["PATHEXT", "SYSTEMROOT", "WINDIR", "ComSpec"] as const;+const windowsProcessCreation = ["PATHEXT", "SYSTEMROOT", "WINDIR", "ComSpec", "TEMP", "TMP"] as const;/*** ffmpeg and ffprobe are started as PATH executables. The Host environment is@@ -7,9 +7,10 @@ const windowsProcessCreation = ["PATHEXT", "SYSTEMROOT", "WINDIR", "ComSpec"] as*/export function mediaProcessEnv(extra?: Readonly<Record<string, string>>,+ platform: NodeJS.Platform = process.platform,): NodeJS.ProcessEnv {const env: NodeJS.ProcessEnv = { PATH: process.env.PATH ?? "" };- if (process.platform === "win32") {+ if (platform === "win32") {for (const name of windowsProcessCreation) {const value = process.env[name];if (value !== undefined && value.length > 0) env[name] = value;diff --git a/packages/media-execution/test/process-env.test.ts b/packages/media-execution/test/process-env.test.tsindex aeefc66a..6b7b1210 100644--- a/packages/media-execution/test/process-env.test.ts+++ b/packages/media-execution/test/process-env.test.ts@@ -12,6 +12,16 @@ test("media processes inherit PATH without the rest of the Host environment", ()const env = mediaProcessEnv();assert.equal(env.PATH, process.env.PATH ?? "");assert.equal(env.HYPIT_MEDIA_ENV_PROBE, undefined);+ const previousTemp = process.env.TEMP;+ process.env.TEMP = "C:\\Windows\\Temp";+ try {+ const windows = mediaProcessEnv(undefined, "win32");+ assert.equal(windows.TEMP, "C:\\Windows\\Temp");+ assert.equal(windows.HYPIT_MEDIA_ENV_PROBE, undefined);+ } finally {+ if (previousTemp === undefined) delete process.env.TEMP;+ else process.env.TEMP = previousTemp;+ }if (process.platform === "win32") {if (process.env.SYSTEMROOT !== undefined) assert.equal(env.SYSTEMROOT, process.env.SYSTEMROOT);if (process.env.PATHEXT !== undefined) assert.equal(env.PATHEXT, process.env.PATHEXT);