Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(cli): cloud delete --no-confirm and cloud render --no-wait (#1112)
James Russo8cd74c1e8cb2
diff --git a/packages/cli/src/commands/cloud/delete.ts b/packages/cli/src/commands/cloud/delete.tsindex 50289f41ed..37e465bbcd 100644--- a/packages/cli/src/commands/cloud/delete.ts+++ b/packages/cli/src/commands/cloud/delete.ts@@ -25,15 +25,23 @@ export default defineCommand({description: "Emit machine-readable JSON",default: false,},- "no-confirm": {+ // Citty intercepts the `--no-` prefix as a negation of the base+ // flag, so a flag literally named "no-confirm" gets parsed as+ // `--confirm=false` and the `args["no-confirm"]` lookup never+ // sees `true`. Naming the flag `confirm` with `default: true` lets+ // citty's negation handle `--no-confirm` correctly — same+ // user-facing flag (`--no-confirm` to skip the prompt), correct+ // runtime semantics.+ confirm: {type: "boolean",- description: "Skip the interactive confirmation prompt (required for scripts and --json)",- default: false,+ description:+ "Prompt before deleting (default: true). Pass `--no-confirm` to skip — required for scripts and --json.",+ default: true,},},// fallow-ignore-next-line complexityasync run({ args }) {- if (!args["no-confirm"]) {+ if (args.confirm) {// Don't auto-bypass the prompt just because stdin isn't a TTY// or `--json` was passed — both used to silently skip the// safety check. Force the caller to opt in via `--no-confirm`diff --git a/packages/cli/src/commands/cloud/render.ts b/packages/cli/src/commands/cloud/render.tsindex d5f502908a..d0db35f914 100644--- a/packages/cli/src/commands/cloud/render.ts+++ b/packages/cli/src/commands/cloud/render.ts@@ -141,10 +141,17 @@ export default defineCommand({description:"Public HTTPS URL of a composition zip. Mutually exclusive with --asset-id and the project dir.",},- "no-wait": {+ // Citty parses `--no-FOO` as `--FOO=false`. A flag literally named+ // "no-wait" gets routed as `args.wait=false`, leaving+ // `args["no-wait"]` undefined and the early-return for+ // fire-and-forget mode unreachable. Named the arg `wait` so the+ // user-facing `--no-wait` flag works via citty's negation; the+ // run() body checks `if (!args.wait)`.+ wait: {type: "boolean",- description: "Submit and exit; print the render_id to stdout",- default: false,+ description:+ "Poll until completion and download the video (default: true). Pass `--no-wait` for fire-and-forget — submits and exits with the render_id.",+ default: true,},output: {type: "string",@@ -216,7 +223,7 @@ export default defineCommand({});const renderId = submitted.render_id;- if (args["no-wait"]) {+ if (!args.wait) {if (asJson) {console.log(JSON.stringify(