Skip to content

Write HTML. Render video. Built for agents.

fix(cli): stop dropping CI/agent telemetry, suppress HeyGen CI at workflow level

James07bcb4f73b4f
diff --git a/.github/workflows/catalog-previews.yml b/.github/workflows/catalog-previews.yml
index 3c6263979d..5b9af869e0 100644
--- a/.github/workflows/catalog-previews.yml
+++ b/.github/workflows/catalog-previews.yml
@@ -3,6 +3,11 @@ name: Catalog Previews
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
branches: [main]
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f5791bf8f1..66b11b0f2f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,6 +4,11 @@ permissions:
contents: read
pull-requests: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
# `edited` is required so the workflow re-fires when a PR's base ref is
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 20c18f9066..eafc2e7301 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -3,6 +3,11 @@ name: Docs
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
branches: [main]
diff --git a/.github/workflows/player-perf.yml b/.github/workflows/player-perf.yml
index 5a4926079b..4d338dbcb0 100644
--- a/.github/workflows/player-perf.yml
+++ b/.github/workflows/player-perf.yml
@@ -3,6 +3,11 @@ name: Player perf
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
push:
diff --git a/.github/workflows/preview-regression.yml b/.github/workflows/preview-regression.yml
index af1bf93a9d..5ebb83d40e 100644
--- a/.github/workflows/preview-regression.yml
+++ b/.github/workflows/preview-regression.yml
@@ -3,6 +3,11 @@ name: preview-regression
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
push:
diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml
index d2c7d5b1fc..dd7b9a4123 100644
--- a/.github/workflows/regression.yml
+++ b/.github/workflows/regression.yml
@@ -3,6 +3,11 @@ name: regression
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
on:
pull_request:
push:
diff --git a/.github/workflows/windows-render.yml b/.github/workflows/windows-render.yml
index 6c6be113da..f230da25cf 100644
--- a/.github/workflows/windows-render.yml
+++ b/.github/workflows/windows-render.yml
@@ -3,6 +3,11 @@ name: Windows render verification
permissions:
contents: read
+# Suppress hyperframes CLI telemetry from HeyGen's own CI runs.
+# External users' CI continues to emit telemetry unless they set this themselves.
+env:
+ HYPERFRAMES_NO_TELEMETRY: "1"
+
# Manually triggered smoke test that renders a HyperFrames composition on a
# real Windows runner. Proves the PR #336 `where ffmpeg` fix actually works
# end-to-end: FFmpeg is discovered natively on Windows, Chrome is installed
diff --git a/packages/cli/src/telemetry/client.ts b/packages/cli/src/telemetry/client.ts
index 3518544c9f..039c0d4505 100644
--- a/packages/cli/src/telemetry/client.ts
+++ b/packages/cli/src/telemetry/client.ts
@@ -40,11 +40,6 @@ export function shouldTrack(): boolean {
return false;
}
- if (process.env["CI"] === "true" || process.env["CI"] === "1") {
- telemetryEnabled = false;
- return false;
- }
-
if (isDevMode()) {
telemetryEnabled = false;
return false;