From 66156bf35ebecfe0075d3d01405773ab2792a6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel?= Date: Sat, 21 Nov 2026 19:08:49 +0000 Subject: [PATCH] revert(cli): hold the proxy fix and its Node floor for v0.10.0 (#8391) * revert(cli): hold the proxy fix and its Node floor for v0.10.0 This reverts commit 2960319749 (#8311), except a stale fallow-ignore line it had removed. * chore(ci): allow the revert to delete the three files the proxy fix added --- .fallowrc.jsonc | 1 - README.md | 2 +- bun.lock | 8 ++- docs/guides/claude-design-hyperframes.md | 2 +- docs/guides/plugins.mdx | 2 +- docs/guides/with-claude-code.mdx | 2 +- docs/guides/with-codex.mdx | 2 +- docs/guides/with-cursor.mdx | 2 +- packages/aws-lambda/package.json | 2 +- packages/cli/README.md | 2 +- packages/cli/package.json | 4 +- packages/cli/src/backgroundChecksWorker.ts | 1 - packages/cli/src/cli.ts | 1 - packages/cli/src/fontLocalizeCli.ts | 1 - packages/cli/src/hangReport.ts | 1 - packages/cli/src/registry/envProxy.fixture.ts | 8 --- .../cli/src/registry/envProxy.process.test.ts | 50 ------------------- packages/cli/src/renderSetupWorker.ts | 1 - packages/cli/src/runtimeVersion.test.ts | 13 ++--- packages/cli/src/runtimeVersion.ts | 9 ++-- packages/cli/src/utils/envProxyFetch.ts | 6 --- packages/cli/src/warmCheck.ts | 1 - packages/cli/src/warmCheckClient.ts | 1 - packages/engine/README.md | 2 +- packages/engine/package.json | 4 +- .../urlDownloader.restrictedNetwork.test.ts | 10 ---- packages/gcp-cloud-run/package.json | 2 +- packages/producer/README.md | 2 +- packages/producer/package.json | 2 +- scripts/check-no-main-deletions.mjs | 8 +++ skills-manifest.json | 2 +- skills/hyperframes-cli/SKILL.md | 2 +- 32 files changed, 36 insertions(+), 120 deletions(-) delete mode 100644 packages/cli/src/registry/envProxy.fixture.ts delete mode 100644 packages/cli/src/registry/envProxy.process.test.ts delete mode 100644 packages/cli/src/utils/envProxyFetch.ts diff --git a/.fallowrc.jsonc b/.fallowrc.jsonc index 2592783c9d..085bffc510 100644 --- a/.fallowrc.jsonc +++ b/.fallowrc.jsonc @@ -72,7 +72,6 @@ "packages/cli/src/warmCheckClient.fixture.ts", "packages/cli/src/browser/chromeOrphans.fixture.ts", "packages/cli/src/capture/publicNetwork.fixture.ts", - "packages/cli/src/registry/envProxy.fixture.ts", "packages/cli/src/utils/commandResult.fixture.ts", "packages/studio-server/src/routes/recoveryDrafts.fixture.ts", // Test fixture worker, spawned by path via the pools' workerEntryPath diff --git a/README.md b/README.md index 9715cddefe..8e6fb67745 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ npx hyperframes preview # preview in browser with live reload npx hyperframes render # render to MP4 ``` -**Requirements:** Node.js 22.19+, FFmpeg +**Requirements:** Node.js 22+, FFmpeg ## What You Can Build diff --git a/bun.lock b/bun.lock index f12bfc677a..9271fe2e2d 100644 --- a/bun.lock +++ b/bun.lock @@ -85,7 +85,7 @@ "open": "^10.0.0", "postcss": "^8.5.8", "puppeteer-core": "^25.10.0", - "undici": "8.13.0", + "undici": "7.30.1", "yauzl": "^3.4.0", }, "devDependencies": { @@ -175,7 +175,7 @@ "linkedom": "^0.18.12", "puppeteer": "~25.13.0", "puppeteer-core": "^25.13.0", - "undici": "8.13.0", + "undici": "7.30.1", }, "devDependencies": { "@types/node": "^25.0.10", @@ -2164,7 +2164,7 @@ "unbash": ["unbash@3.0.0", "", {}, "sha512-FeFPZ/WFT0mbRCuydiZzpPFlrYN8ZUpphQKoq4EeElVIYjYyGzPMxQR/simUwCOJIyVhpFk4RbtyO7RuMpMnHA=="], - "undici": ["undici@8.13.0", "", {}, "sha512-mxbeyRlRhHUTWE1zf/FwDOXTKMhE1vMQRz/o2oOir/5fIWsB79TeZrByMkj019EdDuxPg03jprCjFLxLkmxTCQ=="], + "undici": ["undici@7.30.1", "", {}, "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg=="], "undici-types": ["undici-types@7.21.0", "", {}, "sha512-w9IMgQrz4O0YN1LtB7K5P63vhlIOvC7opSmouCJ+ZywlPAlO9gIkJ+otk6LvGpAs2wg4econaCz3TvQ9xPoyuQ=="], @@ -2402,8 +2402,6 @@ "istanbul-reports/html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="], - "jsdom/undici": ["undici@7.30.1", "", {}, "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg=="], - "jsdom/whatwg-mimetype": ["whatwg-mimetype@5.0.0", "", {}, "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw=="], "make-dir/semver": ["semver@7.8.0", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA=="], diff --git a/docs/guides/claude-design-hyperframes.md b/docs/guides/claude-design-hyperframes.md index fa45fe3d51..abc13e1f46 100644 --- a/docs/guides/claude-design-hyperframes.md +++ b/docs/guides/claude-design-hyperframes.md @@ -484,7 +484,7 @@ A HyperFrames video composition. Plain HTML + GSAP; rendered to MP4 by the `hype ## Requirements -- **Node.js 22.19+** -- [nodejs.org](https://nodejs.org/) +- **Node.js 22+** -- [nodejs.org](https://nodejs.org/) - **FFmpeg** -- `brew install ffmpeg` (macOS) or `sudo apt install ffmpeg` (Debian/Ubuntu) or [ffmpeg.org/download](https://ffmpeg.org/download.html) (Windows) Verify: `npx hyperframes doctor` diff --git a/docs/guides/plugins.mdx b/docs/guides/plugins.mdx index 68e30bf87d..9c1c726c9c 100644 --- a/docs/guides/plugins.mdx +++ b/docs/guides/plugins.mdx @@ -22,7 +22,7 @@ OpenCode and other agents, or when you prefer the smaller core-only install. | Codex | Use your existing HyperFrames plugin; directory updates are published separately | | OpenCode | Use standalone skills | -You need Node.js 22.19+ and npm for the local CLI, plus FFmpeg for rendering. +You need Node.js 22+ and npm for the local CLI, plus FFmpeg for rendering. Install on each machine you use; a plugin does not synchronize your machines. ## Claude Code diff --git a/docs/guides/with-claude-code.mdx b/docs/guides/with-claude-code.mdx index 43660d40e7..23621a08bd 100644 --- a/docs/guides/with-claude-code.mdx +++ b/docs/guides/with-claude-code.mdx @@ -17,7 +17,7 @@ claude plugin install hyperframes@hyperframes - [Claude Code](https://code.claude.com/docs), signed in with your Claude account or an Anthropic Console account. Its usage bills to that account. -- Node.js 22.19 or newer, and npm. +- Node.js 22 or newer, and npm. - FFmpeg, for rendering MP4 files. Run `npx hyperframes doctor` to check. ## Install diff --git a/docs/guides/with-codex.mdx b/docs/guides/with-codex.mdx index 07ef377f06..a1dde76425 100644 --- a/docs/guides/with-codex.mdx +++ b/docs/guides/with-codex.mdx @@ -19,7 +19,7 @@ This installs the core skills into your user's shared skills folder, - [Codex](https://developers.openai.com/codex), signed in with your ChatGPT account or an OpenAI API key. Its usage bills to that account. -- Node.js 22.19 or newer, and npm. +- Node.js 22 or newer, and npm. - FFmpeg, for rendering MP4 files. Run `npx hyperframes doctor` to check. ## Install diff --git a/docs/guides/with-cursor.mdx b/docs/guides/with-cursor.mdx index 3401de9225..c63daf42a0 100644 --- a/docs/guides/with-cursor.mdx +++ b/docs/guides/with-cursor.mdx @@ -18,7 +18,7 @@ and **Cursor** in the picker. ## Before you start - [Cursor](https://cursor.com), signed in. Agent usage bills to your Cursor plan. -- Node.js 22.19 or newer, and npm. +- Node.js 22 or newer, and npm. - FFmpeg, for rendering MP4 files. Run `npx hyperframes doctor` to check. ## Install diff --git a/packages/aws-lambda/package.json b/packages/aws-lambda/package.json index cc2f0720a1..1b8f1fae8e 100644 --- a/packages/aws-lambda/package.json +++ b/packages/aws-lambda/package.json @@ -110,6 +110,6 @@ } }, "engines": { - "node": ">=22.19.0" + "node": ">=22" } } diff --git a/packages/cli/README.md b/packages/cli/README.md index ac86ce041f..0e52cddbf0 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -14,7 +14,7 @@ Or use directly with npx: npx hyperframes ``` -**Requirements:** Node.js >= 22.19, FFmpeg +**Requirements:** Node.js >= 22, FFmpeg ## Commands diff --git a/packages/cli/package.json b/packages/cli/package.json index 27d2e43dc8..b1cae4d5a8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -71,7 +71,7 @@ "open": "^10.0.0", "postcss": "^8.5.8", "puppeteer-core": "^25.10.0", - "undici": "8.13.0", + "undici": "7.30.1", "yauzl": "^3.4.0" }, "devDependencies": { @@ -105,6 +105,6 @@ "sharp": "^0.35.5" }, "engines": { - "node": ">=22.19.0" + "node": ">=22" } } diff --git a/packages/cli/src/backgroundChecksWorker.ts b/packages/cli/src/backgroundChecksWorker.ts index 1a23c4fa12..5e0b3665f8 100644 --- a/packages/cli/src/backgroundChecksWorker.ts +++ b/packages/cli/src/backgroundChecksWorker.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { checkForUpdate } from "./utils/updateCheck.js"; import { refreshSkillsCache } from "./utils/skillsUpdateCheck.js"; diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts index 99361b4380..c70d5a472a 100644 --- a/packages/cli/src/cli.ts +++ b/packages/cli/src/cli.ts @@ -34,7 +34,6 @@ for (const stream of [process.stdout, process.stderr]) { // We emit the worker entry next to cli.js (see tsup.config.ts) and tell // the pool where to find it via the published env-var override. import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { dirname, join, resolve } from "node:path"; import { fileURLToPath } from "node:url"; diff --git a/packages/cli/src/fontLocalizeCli.ts b/packages/cli/src/fontLocalizeCli.ts index 1031fc40ae..6a1d696f57 100644 --- a/packages/cli/src/fontLocalizeCli.ts +++ b/packages/cli/src/fontLocalizeCli.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { injectDeterministicFontFaces } from "@hyperframes/producer"; import { runFontLocalize, stampFontVersions } from "./fontLocalize.js"; diff --git a/packages/cli/src/hangReport.ts b/packages/cli/src/hangReport.ts index dd74354f1f..2f76513fcf 100644 --- a/packages/cli/src/hangReport.ts +++ b/packages/cli/src/hangReport.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { writeFileSync } from "node:fs"; import { isAbsolute, join } from "node:path"; diff --git a/packages/cli/src/registry/envProxy.fixture.ts b/packages/cli/src/registry/envProxy.fixture.ts deleted file mode 100644 index 2bec3c706f..0000000000 --- a/packages/cli/src/registry/envProxy.fixture.ts +++ /dev/null @@ -1,8 +0,0 @@ -import "../utils/envProxyFetch.js"; -import { readRegistryManifest } from "./remote.js"; - -const started = Date.now(); -await readRegistryManifest("https://registry.proxy-fixture.com/registry", { skipCache: true }).then( - () => process.stdout.write("read\n"), - () => process.stdout.write(`failed after ${Date.now() - started} ms\n`), -); diff --git a/packages/cli/src/registry/envProxy.process.test.ts b/packages/cli/src/registry/envProxy.process.test.ts deleted file mode 100644 index 966ccf2e8f..0000000000 --- a/packages/cli/src/registry/envProxy.process.test.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { spawn } from "node:child_process"; -import { mkdtempSync, rmSync } from "node:fs"; -import { createServer } from "node:http"; -import type { AddressInfo } from "node:net"; -import { tmpdir } from "node:os"; -import { dirname, join } from "node:path"; -import { fileURLToPath } from "node:url"; -import { expect, it, onTestFinished } from "vitest"; - -const fixture = join(dirname(fileURLToPath(import.meta.url)), "envProxy.fixture.ts"); - -// fails without the fix: Node's own env proxy reconnects with no pause when the proxy drops the tunnel, so one -// registry read opened thousands of connections a second and the process outlived its own error. -it("a registry read through an env proxy that drops the tunnel fails once and the process ends", async () => { - let tunnels = 0; - const proxy = createServer((_, res) => res.writeHead(502).end()); - proxy.on("connect", (_, client) => { - tunnels++; - client.destroy(); - }); - await new Promise((resolve) => proxy.listen(0, "127.0.0.1", resolve)); - onTestFinished(() => void proxy.close()); - const url = `http://127.0.0.1:${(proxy.address() as AddressInfo).port}`; - const home = mkdtempSync(join(tmpdir(), "hf-env-proxy-")); - onTestFinished(() => rmSync(home, { recursive: true, force: true })); - const child = spawn(process.execPath, ["--import", "tsx", fixture], { - env: { - ...process.env, - HOME: home, - HYPERFRAMES_CACHE_DIR: home, - HTTPS_PROXY: url, - HTTP_PROXY: url, - NO_PROXY: "", - NODE_USE_ENV_PROXY: "1", - }, - stdio: ["ignore", "pipe", "inherit"], - }); - onTestFinished(() => void child.kill("SIGKILL")); - setTimeout(() => child.kill("SIGKILL"), 8_000).unref(); - let printed = ""; - child.stdout.setEncoding("utf8"); - child.stdout.on("data", (chunk: string) => (printed += chunk)); - const ended = await new Promise((resolve) => - child.once("exit", (code, signal) => resolve(code ?? signal)), - ); - expect(printed).toMatch(/^failed after \d+ ms/); - expect(Number(printed.match(/\d+/)?.[0])).toBeLessThan(2_000); - expect(ended).toBe(0); - expect(tunnels).toBeLessThanOrEqual(2); -}, 30_000); diff --git a/packages/cli/src/renderSetupWorker.ts b/packages/cli/src/renderSetupWorker.ts index caa2676d29..fd353c4b4e 100644 --- a/packages/cli/src/renderSetupWorker.ts +++ b/packages/cli/src/renderSetupWorker.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { readFile, rm } from "node:fs/promises"; import { constants, setPriority } from "node:os"; diff --git a/packages/cli/src/runtimeVersion.test.ts b/packages/cli/src/runtimeVersion.test.ts index e7cc14bc03..a54e8fb501 100644 --- a/packages/cli/src/runtimeVersion.test.ts +++ b/packages/cli/src/runtimeVersion.test.ts @@ -4,24 +4,17 @@ import { runtimeVersionError, runtimeVersionJson } from "./runtimeVersion.js"; describe("runtimeVersionError", () => { it("rejects Node 20 before the bundled CLI is imported", () => { expect(runtimeVersionError("20.11.1")).toBe( - "HyperFrames requires Node.js >= 22.19 (current: 20.11.1). Switch Node versions and retry.", + "HyperFrames requires Node.js >= 22 (current: 20.11.1). Switch Node versions and retry.", ); }); it("accepts supported Node releases", () => { - expect(runtimeVersionError("22.19.0")).toBeNull(); - expect(runtimeVersionError("23.0.0")).toBeNull(); + expect(runtimeVersionError("22.0.0")).toBeNull(); expect(runtimeVersionError("24.14.0")).toBeNull(); }); - it("rejects a Node 22 older than 22.19, which undici 8 needs", () => { - expect(runtimeVersionError("22.18.0")).toContain( - "requires Node.js >= 22.19 (current: 22.18.0)", - ); - }); - it("rejects malformed versions safely", () => { - expect(runtimeVersionError("unknown")).toContain("requires Node.js >= 22.19"); + expect(runtimeVersionError("unknown")).toContain("requires Node.js >= 22"); }); }); diff --git a/packages/cli/src/runtimeVersion.ts b/packages/cli/src/runtimeVersion.ts index 80985764f2..5f09988c0c 100644 --- a/packages/cli/src/runtimeVersion.ts +++ b/packages/cli/src/runtimeVersion.ts @@ -1,10 +1,9 @@ -const MINIMUM_NODE_FOR_UNDICI_8 = { major: 22, minor: 19 }; +const MINIMUM_NODE_MAJOR = 22; export function runtimeVersionError(version: string): string | null { - const [major = Number.NaN, minor = Number.NaN] = version.split(".").map(Number); - const { major: needMajor, minor: needMinor } = MINIMUM_NODE_FOR_UNDICI_8; - if (major > needMajor || (major === needMajor && minor >= needMinor)) return null; - return `HyperFrames requires Node.js >= ${needMajor}.${needMinor} (current: ${version}). Switch Node versions and retry.`; + const major = Number.parseInt(version.split(".", 1)[0] ?? "", 10); + if (Number.isFinite(major) && major >= MINIMUM_NODE_MAJOR) return null; + return `HyperFrames requires Node.js >= ${MINIMUM_NODE_MAJOR} (current: ${version}). Switch Node versions and retry.`; } export function runtimeVersionJson(message: string, argv: readonly string[]): string | null { diff --git a/packages/cli/src/utils/envProxyFetch.ts b/packages/cli/src/utils/envProxyFetch.ts deleted file mode 100644 index 24d5ed0db6..0000000000 --- a/packages/cli/src/utils/envProxyFetch.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { envProxyEnabled } from "@hyperframes/core/env-proxy"; - -if (envProxyEnabled()) { - const { EnvHttpProxyAgent, setGlobalDispatcher } = await import("undici/index.js"); - setGlobalDispatcher(new EnvHttpProxyAgent()); -} diff --git a/packages/cli/src/warmCheck.ts b/packages/cli/src/warmCheck.ts index ff76b1b8d7..31afdb662a 100644 --- a/packages/cli/src/warmCheck.ts +++ b/packages/cli/src/warmCheck.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { randomBytes } from "node:crypto"; import { unlinkSync } from "node:fs"; diff --git a/packages/cli/src/warmCheckClient.ts b/packages/cli/src/warmCheckClient.ts index 5b7b0b4c3e..7bd3db387a 100644 --- a/packages/cli/src/warmCheckClient.ts +++ b/packages/cli/src/warmCheckClient.ts @@ -1,5 +1,4 @@ import "./utils/hideChildConsoles.js"; -import "./utils/envProxyFetch.js"; import "./utils/windowsExeSearch.js"; import { spawn } from "node:child_process"; import { randomBytes } from "node:crypto"; diff --git a/packages/engine/README.md b/packages/engine/README.md index a8cb8a3770..6b6e313399 100644 --- a/packages/engine/README.md +++ b/packages/engine/README.md @@ -10,7 +10,7 @@ Framework-agnostic: works with GSAP, Lottie, Three.js, CSS animations, or any we npm install @hyperframes/engine ``` -**Requirements:** Node.js >= 22.19, FFmpeg, and the pinned `chrome-headless-shell`: run `npx hyperframes browser ensure` once, or name a browser in `PRODUCER_HEADLESS_SHELL_PATH`. A cached browser is used only when its files match the pinned build. HDR capture needs a full Chrome named in `HYPERFRAMES_BROWSER_PATH`. +**Requirements:** Node.js >= 22, FFmpeg, and the pinned `chrome-headless-shell`: run `npx hyperframes browser ensure` once, or name a browser in `PRODUCER_HEADLESS_SHELL_PATH`. A cached browser is used only when its files match the pinned build. HDR capture needs a full Chrome named in `HYPERFRAMES_BROWSER_PATH`. ## What it does diff --git a/packages/engine/package.json b/packages/engine/package.json index 91c80115c8..d5ad434153 100644 --- a/packages/engine/package.json +++ b/packages/engine/package.json @@ -121,7 +121,7 @@ "linkedom": "^0.18.12", "puppeteer": "~25.13.0", "puppeteer-core": "^25.13.0", - "undici": "8.13.0" + "undici": "7.30.1" }, "devDependencies": { "@types/node": "^25.0.10", @@ -131,6 +131,6 @@ "vitest": "^4.1.12" }, "engines": { - "node": ">=22.19.0" + "node": ">=22" } } diff --git a/packages/engine/src/utils/urlDownloader.restrictedNetwork.test.ts b/packages/engine/src/utils/urlDownloader.restrictedNetwork.test.ts index ab8d2b0c0f..3d49219a84 100644 --- a/packages/engine/src/utils/urlDownloader.restrictedNetwork.test.ts +++ b/packages/engine/src/utils/urlDownloader.restrictedNetwork.test.ts @@ -293,8 +293,6 @@ describe("downloads with the render-service setting off", () => { describe("downloads on a render service through the egress proxy in HYPERFRAMES_CAPTURE_PROXY", () => { const HOST = "cdn.egress-assets.com"; - /** A host the egress proxy drops the tunnel for, as one that refuses the upstream does. */ - const DROPPED = "gone.egress-assets.com"; const tunnels: string[] = []; const defaultCAs = getCACertificates("default"); let origin: Server; @@ -318,7 +316,6 @@ describe("downloads on a render service through the egress proxy in HYPERFRAMES_ egress = createServer(); egress.on("connect", (request, client) => { tunnels.push(request.url ?? ""); - if (request.url === `${DROPPED}:443`) return void client.destroy(); const upstream = connect(originPort, "127.0.0.1", () => { client.write("HTTP/1.1 200 Connection Established\r\n\r\n"); upstream.pipe(client).pipe(upstream); @@ -343,13 +340,6 @@ describe("downloads on a render service through the egress proxy in HYPERFRAMES_ ); }); - // fails without the fix: undici 7 reconnects with no pause when the proxy drops the tunnel, thousands a second. - it("a tunnel the proxy drops fails the download without opening it again and again", async () => { - await expect(downloadToTemp(`https://${DROPPED}/a.png`, tempDir())).rejects.toBeTruthy(); - expect(tunnels.length).toBeGreaterThan(0); - expect(tunnels.length).toBeLessThanOrEqual(4); - }, 10_000); - it("downloads by hostname through the proxy, with the usual headers, resolving no names", async () => { routes[`https://${HOST}/a.png`] = { status: 200, body: BODY }; const path = await downloadToTemp(`https://${HOST}/a.png`, tempDir()); diff --git a/packages/gcp-cloud-run/package.json b/packages/gcp-cloud-run/package.json index 5c277cdcd2..5edd65818f 100644 --- a/packages/gcp-cloud-run/package.json +++ b/packages/gcp-cloud-run/package.json @@ -85,6 +85,6 @@ "yaml": "^2.9.0" }, "engines": { - "node": ">=22.19.0" + "node": ">=22" } } diff --git a/packages/producer/README.md b/packages/producer/README.md index 05c62cd8e1..f75dcd16f7 100644 --- a/packages/producer/README.md +++ b/packages/producer/README.md @@ -8,7 +8,7 @@ Full HTML-to-video rendering pipeline: capture frames with Chrome's BeginFrame A npm install @hyperframes/producer ``` -**Requirements:** Node.js >= 22.19, FFmpeg, and the pinned `chrome-headless-shell`: run `npx hyperframes browser ensure` once, or name a browser in `PRODUCER_HEADLESS_SHELL_PATH`. A cached browser is used only when its files match the pinned build. HDR capture needs a full Chrome named in `HYPERFRAMES_BROWSER_PATH`. +**Requirements:** Node.js >= 22, FFmpeg, and the pinned `chrome-headless-shell`: run `npx hyperframes browser ensure` once, or name a browser in `PRODUCER_HEADLESS_SHELL_PATH`. A cached browser is used only when its files match the pinned build. HDR capture needs a full Chrome named in `HYPERFRAMES_BROWSER_PATH`. ## Usage diff --git a/packages/producer/package.json b/packages/producer/package.json index 35222fc43c..f29ff414b4 100644 --- a/packages/producer/package.json +++ b/packages/producer/package.json @@ -96,6 +96,6 @@ "vitest": "^4.1.12" }, "engines": { - "node": ">=22.19.0" + "node": ">=22" } } diff --git a/scripts/check-no-main-deletions.mjs b/scripts/check-no-main-deletions.mjs index 1852d8be6a..a94659fe5a 100644 --- a/scripts/check-no-main-deletions.mjs +++ b/scripts/check-no-main-deletions.mjs @@ -2155,6 +2155,14 @@ export const ALLOWED_DELETIONS = new Map([ "packages/studio/src/utils/htmlAttrSafety.ts", "Studio's hand-synced copy of core's html-attr-safety rules; Studio imports core's now, one source", ], + ...[ + "packages/cli/src/registry/envProxy.fixture.ts", + "packages/cli/src/registry/envProxy.process.test.ts", + "packages/cli/src/utils/envProxyFetch.ts", + ].map((path) => [ + path, + "held for v0.10.0 with #8311, the change that added it; drop this entry when it re-lands", + ]), ]); export function parseBase(argv, fallback = "origin/main") { diff --git a/skills-manifest.json b/skills-manifest.json index 2462860ba6..2aca52b16d 100644 --- a/skills-manifest.json +++ b/skills-manifest.json @@ -10,7 +10,7 @@ "files": 81 }, "hyperframes-cli": { - "hash": "9709d3caa4d3be18", + "hash": "132e56038dbd2365", "files": 14 }, "hyperframes-registry": { diff --git a/skills/hyperframes-cli/SKILL.md b/skills/hyperframes-cli/SKILL.md index c19e0c9f59..e3b8ab3e12 100644 --- a/skills/hyperframes-cli/SKILL.md +++ b/skills/hyperframes-cli/SKILL.md @@ -9,7 +9,7 @@ description: HyperFrames CLI - scaffold, check frames, edit timelines, preview, # HyperFrames CLI -Run `npx hyperframes ` as above, never a project's own scripts or wrapper unless the person names that command. A job with no TTY pins the release with the launcher's `--cli-version `, taking the version from the person or from `--cli-version latest --version`, never from the project's files or a floating install (`references/unattended.md`). It needs Node.js 22.19+ and FFmpeg. Every command has `--help`; most take `--json`, and a failure prints `✗ …`, a `Fix:` line and exits non-zero. +Run `npx hyperframes ` as above, never a project's own scripts or wrapper unless the person names that command. A job with no TTY pins the release with the launcher's `--cli-version `, taking the version from the person or from `--cli-version latest --version`, never from the project's files and never a floating install (`references/unattended.md`). It needs Node.js 22+ and FFmpeg. Every command has `--help`; most take `--json`, and a failure prints `✗ …`, a `Fix:` line and exits non-zero. A `--json` result may carry `_meta.updateNotice`: a newer HyperFrames release is out. Pass it to the person once per conversation, in your own words, at a natural pause; updating is theirs to decide.