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(cli): resolve installed bootstrap through package imports
kashorin84f7ad148aa2
diff --git a/bin/hypit.mjs b/bin/hypit.mjsindex 8670aef7..a2d1a9e9 100755--- a/bin/hypit.mjs+++ b/bin/hypit.mjs@@ -2,8 +2,8 @@import { register } from "tsx/esm/api";import { readFileSync, realpathSync } from "node:fs";-import { dirname, resolve, sep } from "node:path";-import { fileURLToPath, pathToFileURL } from "node:url";+import { dirname, resolve } from "node:path";+import { fileURLToPath } from "node:url";if (process.argv.length === 3 && ["--version", "-v"].includes(process.argv[2])) {const manifest = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));@@ -21,13 +21,12 @@ process.emitWarning = function hypitWarning(warning, ...args) {// Bootstrap and package activation must agree on the physical Distribution root. Windows short// paths can survive Node's ordinary resolution while package lookup expands them through libuv.const distributionRoot = realpathSync.native(resolve(dirname(fileURLToPath(import.meta.url)), ".."));-const distributionUrl = pathToFileURL(distributionRoot + sep);register();const { installDistributionPackageResolution } =- await import(new URL("packages/loader/src/node/distribution-resolution.ts", distributionUrl).href);+ await import("#loader/distribution-resolution");installDistributionPackageResolution([distributionRoot]);const args = process.argv.slice(2);-const { runInstalledCliApplication, runNodeCli } = await import(new URL("packages/cli/src/index.ts", distributionUrl).href);+const { runInstalledCliApplication, runNodeCli } = await import("#cli");const { createVideoDistribution } = await import("@hypit/video");const videoDistribution = createVideoDistribution({packageRoot: distributionRoot,diff --git a/package.json b/package.jsonindex 4ada663d..8fd614d5 100644--- a/package.json+++ b/package.json@@ -231,6 +231,10 @@"import": "./packages/html-program/src/index.ts"}},+ "imports": {+ "#cli": "./packages/cli/src/index.ts",+ "#loader/distribution-resolution": "./packages/loader/src/node/distribution-resolution.ts"+ },"bin": {"hypit": "./bin/hypit.mjs"},