From 6b0fd6d10992ebf5913dcc8418b7b8b58803f035 Mon Sep 17 00:00:00 2001 From: Wenbo Zhu Date: Sat, 31 Oct 2026 18:23:00 +0000 Subject: [PATCH] fix(skills): paid-plan cloud final keeps the composition fps and high quality (#6886) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(skills): paid-plan cloud final keeps the composition fps and high quality Follow-up to #6884 from its review: the cloud command agents copy had no --fps, so a 24 or 60 fps composition rendered at 30, and cloud's default `standard` is below the local `delivery` final. Step 5 and cloud.md now spell out `cloud render --fps --quality high -o `; the render table uses `-o` to stay within the entry's byte budget and restores the "Hosted, no local Chrome or FFmpeg" row. — wanbi Co-Authored-By: Claude Opus 5.5 * test(skills): pin --fps and --quality high on the paid-plan cloud final Review on #6886: a later byte-budget trim of hyperframes-cli/SKILL.md or cloud.md could drop the flags silently. The test asserts both files' paid-plan command reads `cloud render --fps --quality high -o …`. — wanbi Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- scripts/check-core-skills.test.mjs | 7 +++++++ skills-manifest.json | 2 +- skills/hyperframes-cli/SKILL.md | 10 +++++----- skills/hyperframes-cli/references/cloud.md | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/scripts/check-core-skills.test.mjs b/scripts/check-core-skills.test.mjs index 035146dbe8..47c6dd4caf 100644 --- a/scripts/check-core-skills.test.mjs +++ b/scripts/check-core-skills.test.mjs @@ -24,6 +24,13 @@ test("the skills teach the direct sign-in, not the old key and executable rules" assert.doesNotMatch(heygen, /~\/\.heygen\/credentials/); }); +test("the paid-plan cloud final keeps the composition fps and high quality", () => { + for (const path of ["hyperframes-cli/SKILL.md", "hyperframes-cli/references/cloud.md"]) { + const text = readFileSync(new URL(`../skills/${path}`, import.meta.url), "utf8"); + assert.match(text, /`cloud render --fps --quality high -o [^`]+`/, path); + } +}); + test("reads the registered commands, quoted or not", () => { const source = `const commandLoaders = {\n init: () => x,\n "catch-up": () => y,\n};`; assert.deepEqual([...registeredCommands(source)], ["init", "catch-up"]); diff --git a/skills-manifest.json b/skills-manifest.json index 54c660117d..8ef46ec7b2 100644 --- a/skills-manifest.json +++ b/skills-manifest.json @@ -10,7 +10,7 @@ "files": 77 }, "hyperframes-cli": { - "hash": "a8735d78a5db5f70", + "hash": "373312dbd44495d6", "files": 13 }, "hyperframes-registry": { diff --git a/skills/hyperframes-cli/SKILL.md b/skills/hyperframes-cli/SKILL.md index 55a90a5fb5..d180c732bd 100644 --- a/skills/hyperframes-cli/SKILL.md +++ b/skills/hyperframes-cli/SKILL.md @@ -32,7 +32,7 @@ Run `npx hyperframes ` unless the project gives a wrapper; then use the 2. `npx hyperframes check --json` and fix every error. While a lint error remains the layout and contrast audits don't run; "0 samples" means nothing was checked. Contrast failures carry a `suggestedColor`. A finding at a single sample (an entrance in flight) is info; a 3 s+ video with no visible change fails `sweep_static`. 3. `npx hyperframes snapshot` and read the PNGs (under `.hyperframes/artifacts/snapshots/`): that is how you see the video. With sub-compositions, snapshot a midpoint of every scene; tiny unstyled content or a missing hero is a mount defect (`../hyperframes/references/format.md`). 4. `npx hyperframes preview --background`, check the URL answers 200, give the person the project URL and wait, unless they asked for the file or for no stops. Passing checks alone is not a reason to render. -5. When it is time to render (step 4): `npx hyperframes render --quality looks --output out.mp4` (`draft` while iterating, `delivery` for the final, or `cloud render -o out.mp4` on a paid plan). Confirm the file is non-empty and its `ffprobe` duration matches the root `data-duration`, then look at decoded frames. +5. Time to render (step 4): `npx hyperframes render --quality looks -o out.mp4` (`draft` while iterating, `delivery` for the final; paid plan: `cloud render --fps --quality high -o out.mp4`). Confirm the file is non-empty and its `ffprobe` duration matches the root `data-duration`, then look at decoded frames. "This element" or the current selection: `npx hyperframes preview --context --json --context-fields selection`; `no-selection` means ask them to click it. @@ -57,10 +57,10 @@ Every write is kept and can be undone. At the start of a turn, `npx hyperframes | Need | Command | | --- | --- | -| Local | `render --quality looks --output out.mp4` (`draft`, `delivery`) | -| Reproducible container | `render --docker --strict --output out.mp4` | -| Batch from variables | `render --batch rows.json --output "renders/{name}.mp4"` | -| Paid-plan finals, hosted | `cloud render` (`references/cloud.md`) | +| Local | `render --quality looks -o out.mp4` (`draft`, `delivery`) | +| Reproducible container | `render --docker --strict -o out.mp4` | +| Batch from variables | `render --batch rows.json -o "renders/{name}.mp4"` | +| Hosted, no local Chrome or FFmpeg | `cloud render` (`references/cloud.md`) | | Your own AWS or GCP | `lambda render`, `cloudrun render` (`references/lambda.md`, `references/cloudrun.md`) | A 30 s film renders in a minute or two: run it in the foreground. Detach only a render longer than your tool's timeout (`HYPERFRAMES_RENDER_DETACHED=1`, its own group, output to a log) and wait with `until grep -qE 'Render (complete|failed)' render.log; do sleep 5; done`, never `pgrep -f`, which matches its own loop and waits until the tool times out. diff --git a/skills/hyperframes-cli/references/cloud.md b/skills/hyperframes-cli/references/cloud.md index cac7468ffb..f2e017a180 100644 --- a/skills/hyperframes-cli/references/cloud.md +++ b/skills/hyperframes-cli/references/cloud.md @@ -14,7 +14,7 @@ npx hyperframes cloud render # zip, upload, render, download - **`hyperframes lambda render`**: bring-your-own-AWS distributed rendering with chunked parallelism. Only worth it when you've already invested in AWS (see `lambda.md`). - **`hyperframes cloudrun render`**: bring-your-own-GCP distributed rendering through Cloud Run and Workflows. Use only when GCP ownership is explicit (see `cloudrun.md`). -**Final renders on a paid plan.** When `npx hyperframes auth status` shows `Billing: HyperFrames` and a paid plan on its `HyperFrames:` line (not `Free`), the render the person receives, final or shareable, is `cloud render -o `. On Free, render locally unless the person asks for cloud. Pass the root's `data-fps` as `--fps` (cloud defaults to 30); a fractional rate, or a frame that is not 16:9, 9:16 or 1:1, renders locally. If the cloud render is refused or fails (network, quota), render locally and tell the person why. +**Final renders on a paid plan.** When `npx hyperframes auth status` shows `Billing: HyperFrames` and a paid plan on its `HyperFrames:` line (not `Free`), the render the person receives, final or shareable, is `cloud render --fps --quality high -o `: the root's `data-fps` (cloud defaults to 30) and `high` (local `delivery`'s equivalent; cloud defaults to `standard`). On Free, render locally unless the person asks for cloud. A fractional rate, or a frame that is not 16:9, 9:16 or 1:1, renders locally. If the cloud render is refused or fails (network, quota), render locally and tell the person why. ## Authentication