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 OAuth CLI exit after callback
rpone6abd2cbf4995
diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.tsindex 840f8617..839690b1 100644--- a/packages/cli/src/main.ts+++ b/packages/cli/src/main.ts@@ -118,6 +118,10 @@ async function hypiHubOAuthLogin(io: CliIo): Promise<string> {server.close();server.closeIdleConnections?.();};+ const closeAllConnections = (): void => {+ server.closeAllConnections?.();+ server.unref();+ };server.on("request", (request, response) => {// Browsers commonly fetch /favicon.ico after rendering the callback.// The old one-shot listener left that second connection unanswered,@@ -141,7 +145,7 @@ async function hypiHubOAuthLogin(io: CliIo): Promise<string> {connection: "close","content-type": "text/html; charset=utf-8",});- response.end(oauthCallbackPage(true));+ response.end(oauthCallbackPage(true), closeAllConnections);settled = true;resolveCode(code);} catch (error) {@@ -150,7 +154,7 @@ async function hypiHubOAuthLogin(io: CliIo): Promise<string> {connection: "close","content-type": "text/html; charset=utf-8",});- response.end(oauthCallbackPage(false));+ response.end(oauthCallbackPage(false), closeAllConnections);settled = true;reject(error);} finally {