Skip to content

armgit / hypit

Public Imported from GitHub
0

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.

fix: preview-check imports itself by URL, so Windows can load it

rpone3eff1f229066
diff --git a/.agents/skills/hypit/scripts/preview-check.mjs b/.agents/skills/hypit/scripts/preview-check.mjs
index aa8e5e95..cf221d80 100644
--- a/.agents/skills/hypit/scripts/preview-check.mjs
+++ b/.agents/skills/hypit/scripts/preview-check.mjs
@@ -15,10 +15,11 @@
* a working directory outside the repository fails to resolve it before this
* script runs at all — the error names `tsx`, not the source being checked.
*/
-import { fileURLToPath } from "node:url";
// The script lives under `.agents/`; resolve the playground's preview pipeline from the repo root.
-const repoRoot = fileURLToPath(new URL("../../../../", import.meta.url));
-const { preview } = await import(`${repoRoot}packages/svml-playground/src/pipeline/preview.js`);
+// Stay in URL space the whole way: a specifier built from a filesystem path is read as a URL, so
+// on Windows the drive letter becomes a scheme and the import fails before it resolves anything.
+const { preview } = await import(
+ new URL("../../../../packages/svml-playground/src/pipeline/preview.js", import.meta.url).href);
const source = process.argv[2];
if (source === undefined) {