Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(cli): ship runtime manifest alongside CLI bundle
James68f86f66ac30
diff --git a/packages/cli/scripts/build-runtime.ts b/packages/cli/scripts/build-runtime.tsindex 465b96cd3e..a80ef04639 100644--- a/packages/cli/scripts/build-runtime.ts+++ b/packages/cli/scripts/build-runtime.ts@@ -1,4 +1,16 @@import { loadHyperframeRuntimeSource } from "@hyperframes/core";-import { writeFileSync } from "node:fs";+import { copyFileSync, writeFileSync } from "node:fs";+import { resolve, dirname } from "node:path";+import { fileURLToPath } from "node:url";-writeFileSync("dist/hyperframe-runtime.js", loadHyperframeRuntimeSource());+const __dirname = dirname(fileURLToPath(import.meta.url));+const coreDistDir = resolve(__dirname, "../../core/dist");++// Write runtime source (keep legacy name for backward compat)+const runtimeSource = loadHyperframeRuntimeSource();+writeFileSync("dist/hyperframe-runtime.js", runtimeSource);++// Copy manifest + runtime with canonical names so hyperframeRuntimeLoader's+// sibling-path resolution works in the bundled CLI (installed via npx).+copyFileSync(resolve(coreDistDir, "hyperframe.manifest.json"), "dist/hyperframe.manifest.json");+writeFileSync("dist/hyperframe.runtime.iife.js", runtimeSource);