Skip to content

Commit b3f5842

Browse files
jrusso1020claude
andcommitted
fix(cli): accept --format=webm in hyperframes lambda render
The CLI's `lambda render` subcommand's FORMATS allowlist and the `RenderArgs.format` type still narrowed to `mp4 | mov | png-sequence`, so even though the producer + aws-lambda packages now support webm end-to-end, the CLI surface rejected it with `--format must be mp4|mov| png-sequence`. Add webm to both spots and update the --help description. Surfaced during real-AWS deploy prep — the local lambda-local / distributed-simulated tests didn't go through the CLI so the gap went unnoticed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 568d760 commit b3f5842

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cli/src/commands/lambda.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default defineCommand({
100100
width: { type: "string", description: "Render width in pixels" },
101101
height: { type: "string", description: "Render height in pixels" },
102102
fps: { type: "string", description: "Render fps (24 | 30 | 60)" },
103-
format: { type: "string", description: "mp4 | mov | png-sequence (default: mp4)" },
103+
format: { type: "string", description: "mp4 | mov | png-sequence | webm (default: mp4)" },
104104
codec: { type: "string", description: "h264 | h265 (mp4 only)" },
105105
quality: { type: "string", description: "draft | standard | high" },
106106
"chunk-size": { type: "string", description: "Frames per chunk (default: 240)" },
@@ -325,7 +325,7 @@ function parseEnum<T extends string>(
325325
throw new Error(`${errorPrefix} must be ${allowed.join("|")}; got ${s}`);
326326
}
327327

328-
const FORMATS = ["mp4", "mov", "png-sequence"] as const;
328+
const FORMATS = ["mp4", "mov", "png-sequence", "webm"] as const;
329329
const CODECS = ["h264", "h265"] as const;
330330
const QUALITIES = ["draft", "standard", "high"] as const;
331331
const CHROME_SOURCES = ["sparticuz", "chrome-headless-shell"] as const;

packages/cli/src/commands/lambda/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface RenderArgs {
2323
fps: 24 | 30 | 60;
2424
width: number;
2525
height: number;
26-
format: "mp4" | "mov" | "png-sequence";
26+
format: "mp4" | "mov" | "png-sequence" | "webm";
2727
codec?: "h264" | "h265";
2828
quality?: "draft" | "standard" | "high";
2929
chunkSize?: number;

0 commit comments

Comments
 (0)