Strip all PostHog and Sentry telemetry from the codebase so the product works without phoning home. OpenTelemetry (CLI, user-configured) is kept. - Delete core telemetry files (posthog.ts, SentryLogger, TeamAnalytics, TokensBatchingService) - Remove all capture/report calls from 80+ caller files across core, GUI, VSCode, CLI, IntelliJ - Remove posthog-node, posthog-js, @sentry/* dependencies from all package.json files - Remove PostHog/Sentry plugins and build scripts - Create IdeInfoService.ts and uniqueId.ts for non-telemetry request headers - Remove PostHog API key from docs config - Remove posthog from analytics provider config schema Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
417 B
TypeScript
13 lines
417 B
TypeScript
import { constants, getTimestamp } from "../../deploy/constants.js";
|
|
import { IdeInfoService } from "../../util/IdeInfoService.js";
|
|
|
|
export async function getHeaders() {
|
|
return {
|
|
key: constants.c,
|
|
timestamp: getTimestamp(),
|
|
v: "1",
|
|
extensionVersion: IdeInfoService.ideInfo?.extensionVersion ?? "0.0.0",
|
|
os: IdeInfoService.os ?? "Unknown",
|
|
uniqueId: IdeInfoService.uniqueId ?? "None",
|
|
};
|
|
}
|