mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
* dev: PostHog config to use separate API keys for telemetry and error tracking - Update PostHogErrorProvider to use dedicated errorTrackingApiKey - Add comprehensive documentation and type definitions - Support environment variables with fallback to public keys - Improve code organization with clearer naming conventions * changeset added * Update GitHub Workflow * debug * revert debug and set process env for browser * undefined environment variables fallback to public keys * update workflow * update provider factories with config validation and no-op logging - Add PostHog config validation to determine provider type - Replace "none" type with "no-op" for consistency - Enhance NoOpProvider implementations with actual logging - Update factory logic to use validated config checks - Improve error handling and fallback behavior * Update .github/workflows/publish.yml Co-authored-by: Dennise Bartlett <bartlett.dc.1@gmail.com> * Update workflow * clean up * update env vars in vite config * Fix error handling recursion and update PostHog configuration - Prevent infinite recursion in ClineError.transform() by checking for existing ClineError instances - Use errorTrackingApiKey instead of apiKey for PostHog error provider initialization - Replace Logger calls with console methods in NoOpErrorProvider to avoid circular dependencies - Update dev environment detection logic to exclude CI check for more reliable configuration * Remove console.error from unsupported error provider fallback Remove unnecessary error logging when falling back to NoOpErrorProvider for unsupported error provider types in ErrorProviderFactory. * Update PostHog config to handle local and test environments - Change dev environment detection to include local environment - Add test environment detection for E2E and unit tests - Disable PostHog validation in test environments to enable mocking * add fallback back * remove hardcoded keys * Posthog secrets to Nightly workflow --------- Co-authored-by: Dennise Bartlett <bartlett.dc.1@gmail.com>