SIGN IN SIGN UP

feat: disable PostHog telemetry in CI/mock environments ๐Ÿ›‘

**โœจ Features**
- Add an offlineMode flag to Node and Web PostHog adapters that disables initialization when running in CI or when POSTHOG_MOCK is set, preventing outgoing telemetry.

**๐Ÿ› Fixes**
- Guard flush and shutdown to no-op when the adapter is disabled or the client is missing to avoid calling methods on undefined objects.

**๐Ÿงน Chores**
- Enable POSTHOG_MOCK in the CI workflow and in package.json test scripts so test runs do not send telemetry.

**โœ… Tests**
- Update tests to save/restore CI/POSTHOG_MOCK env vars, stub additional PostHog methods, and add assertions that reloadFeatureFlags is a no-op when disabled and that flush/shutdown delegate when enabled.
A
amwdrizz committed
95ad29e135fe82d3d18ce9ba8752cecb182fbc3b
Parent: f122a4e