Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(cli): snapshot resolves runtime from own dist, not monorepo layout
ukimsanov8cc2084669ce
diff --git a/packages/cli/src/commands/snapshot.ts b/packages/cli/src/commands/snapshot.tsindex 5b21d62b99..a018835ee4 100644--- a/packages/cli/src/commands/snapshot.ts+++ b/packages/cli/src/commands/snapshot.ts@@ -102,16 +102,11 @@ async function captureSnapshots(// 1. Bundlelet html = await bundleToSingleHtml(projectDir);- // Inject local runtime if available- const runtimePath = resolve(- __dirname,- "..",- "..",- "..",- "core",- "dist",- "hyperframe.runtime.iife.js",- );+ // Inject local runtime if available.+ // The runtime IIFE is copied into the CLI dist during build (build:runtime),+ // so it lives alongside cli.js. The old ../../../core/dist/ path only worked+ // in the monorepo dev layout and broke for published/npx installs.+ const runtimePath = resolve(__dirname, "hyperframe.runtime.iife.js");if (existsSync(runtimePath)) {const runtimeSource = readFileSync(runtimePath, "utf-8");html = html.replace(