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(provider-hyperframes-local): probe the browser the renderer will launch (#240)
Sharky Wang99ca300fbcd4
diff --git a/docs/guide/develop.md b/docs/guide/develop.mdindex f573b43a..44439931 100644--- a/docs/guide/develop.md+++ b/docs/guide/develop.md@@ -12,7 +12,7 @@ description: Getting started with Hypit development.| Python | 3.10–3.13 | local WhisperX and OpenCV Managed Programs || uv | latest | Python environment management || ffmpeg / ffprobe | recent stable | media processing |-| Chrome / Chromium | managed by HyperFrames | local HyperFrames rendering |+| Chrome / Chromium | downloaded by `hypit runtime up` | local HyperFrames rendering |Node.js and pnpm are the only hard requirements. The rest are needed only for live Builds.diff --git a/docs/zh/guide/develop.md b/docs/zh/guide/develop.mdindex 6328688a..791b9195 100644--- a/docs/zh/guide/develop.md+++ b/docs/zh/guide/develop.md@@ -12,7 +12,7 @@ description: 开始 Hypit 开发工作。| Python | 3.10–3.13 | 本地 WhisperX 与 OpenCV Managed Program || uv | latest | Python 环境管理 || ffmpeg / ffprobe | 较新的稳定版 | 媒体处理 |-| Chrome / Chromium | 由 HyperFrames 管理 | 本地 HyperFrames 渲染 |+| Chrome / Chromium | 由 `hypit runtime up` 下载 | 本地 HyperFrames 渲染 |只有 Node.js 与 pnpm 是硬性要求。其余都只在跑真实 Builds 时才需要。diff --git a/packages/provider-hyperframes-local/src/program.ts b/packages/provider-hyperframes-local/src/program.tsindex fd521053..a7fcf24d 100644--- a/packages/provider-hyperframes-local/src/program.ts+++ b/packages/provider-hyperframes-local/src/program.ts@@ -29,13 +29,13 @@ export function localHyperframesBrowserProgram(): ManagedProgram {const cliPath = () => typeof input.hyperframesCliPath === "string" ? input.hyperframesCliPath : input.hyperframesCliPath();const probeBrowser = async (): Promise<ManagedProgramState> => {- let executable: string;- try { executable = cliPath(); } catch (error) { return { state: "down", detail: error instanceof Error ? error.message : String(error) }; }- const located = await run(input.nodePath, [executable, "browser", "path"]);- if (!located.ok) return { state: "down", detail: `HyperFrames browser is unavailable: ${located.output}` };- const path = located.output.trim();- if (path.length === 0 || path.includes("\n") || path.includes("\r")) {- return { state: "mismatch", detail: "HyperFrames returned an invalid browser path" };+ try { cliPath(); } catch (error) { return { state: "down", detail: error instanceof Error ? error.message : String(error) }; }+ // Readiness asks the engine's own resolver, so it answers for the browser the renderer will+ // launch: its managed download, a configured override, or Puppeteer's cache.+ const { resolveHeadlessShellPath } = await import("@hyperframes/engine");+ const path = resolveHeadlessShellPath({});+ if (path === undefined) {+ return { state: "down", detail: "HyperFrames render browser is not downloaded; run hypit runtime up" };}const version = await run(path, ["--version"]);if (!version.ok || version.output.length === 0) {