mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-24 08:00:31 +00:00
fix(skills): paid-plan cloud final keeps the composition fps and high quality (#6886)
* 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 <data-fps> --quality high -o <path>`; 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 <noreply@anthropic.com> * 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 <data-fps> --quality high -o …`. — wanbi Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2b76e9a70a
commit
6b0fd6d109
@@ -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 <data-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"]);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"files": 77
|
||||
},
|
||||
"hyperframes-cli": {
|
||||
"hash": "a8735d78a5db5f70",
|
||||
"hash": "373312dbd44495d6",
|
||||
"files": 13
|
||||
},
|
||||
"hyperframes-registry": {
|
||||
|
||||
@@ -32,7 +32,7 @@ Run `npx hyperframes <command>` 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 <data-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.
|
||||
|
||||
@@ -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 <path>`. 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 <data-fps> --quality high -o <path>`: 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user