Files
QA Agent c7db5bdccd fix(shared): extract isTelemetryDisabled to separate module for Node-free stub
Addresses PR feedback: the telemetry stub was re-exporting isTelemetryDisabled
from telemetry-client.ts, which imports @segment/analytics-node. This caused
the stub to pull in Node-only dependencies despite its purpose being a
client-safe no-op implementation.

Changes:
- Created packages/shared/src/telemetry/env-check.ts with only process.env checks
- Updated telemetry-client.ts to import isTelemetryDisabled from env-check
- Updated telemetry-stub.ts to import from env-check instead of telemetry-client
- Updated telemetry/index.ts to export isTelemetryDisabled from env-check
- Updated test imports to use the new module

Verified: dist/telemetry-stub.* contains no references to @segment/analytics-node
2026-07-14 10:37:42 -07:00
..
2026-07-09 23:59:46 +00:00
2026-07-08 16:17:36 +00:00
2026-07-08 16:17:36 +00:00
2026-07-08 16:17:36 +00:00
2026-07-08 16:17:36 +00:00