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
test(video-cli): isolate stored HypiHub credentials
rpone040794e16cf3
diff --git a/packages/video-cli/test/cli.test.ts b/packages/video-cli/test/cli.test.tsindex afadace3..e713f1e6 100644--- a/packages/video-cli/test/cli.test.ts+++ b/packages/video-cli/test/cli.test.ts@@ -5,6 +5,7 @@ import { tmpdir } from "node:os";import { join } from "node:path";import test from "node:test";+import { OsCredentialStore } from "@hypit/credential-store-os";import { materializeRecord, runVideoCli, videoCliDistribution } from "@hypit/video-cli";import { videoTestPackages } from "./packages.js";@@ -74,6 +75,8 @@ test("image writes one picture file with no Source, Build, Record or Runtime Proconst requests: Record<string, unknown>[] = [];const realFetch = globalThis.fetch;const realKey = process.env.HYPIHUB_API_KEY;+ const realOsResolve = OsCredentialStore.prototype.resolve;+ OsCredentialStore.prototype.resolve = async () => undefined;globalThis.fetch = (async (input: RequestInfo | URL, init?: RequestInit) => {const url = String(input);calls.push(url);@@ -125,6 +128,7 @@ test("image writes one picture file with no Source, Build, Record or Runtime Pro}]);assert.equal(calls.filter((item) => item.endsWith("/v1/images/generations")).length, 1);} finally {+ OsCredentialStore.prototype.resolve = realOsResolve;globalThis.fetch = realFetch;if (realKey === undefined) delete process.env.HYPIHUB_API_KEY;else process.env.HYPIHUB_API_KEY = realKey;