Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(cli): fix CI format and typecheck failures
James6c88c56cd2f2
diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.tsindex 2364038cb4..9bf182aed5 100644--- a/packages/cli/src/cli.ts+++ b/packages/cli/src/cli.ts@@ -44,7 +44,10 @@ const main = defineCommand({// ---------------------------------------------------------------------------const commandArg = process.argv[2];-const isHelpOrVersion = process.argv.includes("--help") || process.argv.includes("--version") || process.argv.includes("-h");+const isHelpOrVersion =+ process.argv.includes("--help") ||+ process.argv.includes("--version") ||+ process.argv.includes("-h");const command = commandArg && commandArg in subCommands ? commandArg : "unknown";if (command !== "telemetry" && command !== "unknown" && !isHelpOrVersion) {diff --git a/packages/cli/src/telemetry/client.ts b/packages/cli/src/telemetry/client.tsindex 8a5d1e9753..370b35d6d2 100644--- a/packages/cli/src/telemetry/client.ts+++ b/packages/cli/src/telemetry/client.ts@@ -50,7 +50,7 @@ export function shouldTrack(): boolean {}// Placeholder API key means it hasn't been configured yet- if (POSTHOG_API_KEY === "__POSTHOG_API_KEY__") {+ if (!POSTHOG_API_KEY.startsWith("phc_")) {telemetryEnabled = false;return false;}@@ -139,10 +139,14 @@ export function flushSync(): void {// Spawn a detached process to send the request so we don't block exit.// The subprocess inherits nothing and runs independently.const { execFileSync } = require("node:child_process") as typeof import("node:child_process");- execFileSync(process.execPath, [- "-e",- `fetch(${JSON.stringify(`${POSTHOG_HOST}/batch/`)},{method:"POST",headers:{"Content-Type":"application/json"},body:${JSON.stringify(payload)},signal:AbortSignal.timeout(${FLUSH_TIMEOUT_MS})}).catch(()=>{})`,- ], { stdio: "ignore", timeout: FLUSH_TIMEOUT_MS });+ execFileSync(+ process.execPath,+ [+ "-e",+ `fetch(${JSON.stringify(`${POSTHOG_HOST}/batch/`)},{method:"POST",headers:{"Content-Type":"application/json"},body:${JSON.stringify(payload)},signal:AbortSignal.timeout(${FLUSH_TIMEOUT_MS})}).catch(()=>{})`,+ ],+ { stdio: "ignore", timeout: FLUSH_TIMEOUT_MS },+ );} catch {// Silently ignore}