continue-custom/core/util/IdeInfoService.ts
Patrick Erichsen 32639c5c11 chore: remove all PostHog and Sentry telemetry collection
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>
2026-03-19 15:15:26 -07:00

15 lines
357 B
TypeScript

import { IdeInfo } from "../index.js";
export class IdeInfoService {
static uniqueId = "NOT_UNIQUE";
static os: string | undefined = undefined;
static ideInfo: IdeInfo | undefined = undefined;
static setup(
uniqueId: string,
ideInfo: IdeInfo,
): void {
IdeInfoService.uniqueId = uniqueId;
IdeInfoService.ideInfo = ideInfo;
}
}