Kaenova/cline merge 20251026#3
Merged
Merged
Conversation
- Add LogoutReason enum to track different logout scenarios - Update handleDeauth() calls to include logout reasons - Move auth storage cleanup from Controller to AuthService for better encapsulation - Add telemetry events to capture logout reasons for analytics
* add dev command for cline-core changes for cli * add cli watch build command * remove other script
* feat: Modular telemetry architecture with Jitsu provider support - Add dual-provider telemetry architecture supporting both Jitsu and PostHog - Implement JitsuTelemetryProvider with full API compatibility - Add required telemetry bypass for critical system health events - Create modular event handler base class for future extensibility - Add Jitsu configuration with environment variable controls - Update TelemetryService to support multiple providers with error isolation - Add .env.example template for development setup - Maintain backward compatibility with existing PostHog integration - Enable easy PostHog removal via POSTHOG_TELEMETRY_ENABLED=false - Install dotenv for local development environment support Key benefits: - Dual tracking during transition period - Error isolation between providers - Memory efficient static method architecture - Easy provider enable/disable via environment variables - Wednesday deployment ready for Jitsu migration * fix(build): Load environment variables from .env file during development builds - Add dotenv.config() to esbuild.mjs to load .env variables - Include all telemetry-related environment variables in build injection: - TELEMETRY_SERVICE_API_KEY (PostHog) - ERROR_SERVICE_API_KEY (PostHog error tracking) - JITSU_WRITE_KEY (Jitsu telemetry) - JITSU_HOST (Jitsu host URL) - JITSU_ENABLED (Jitsu provider control) - POSTHOG_TELEMETRY_ENABLED (PostHog provider control) This ensures telemetry services work correctly in development builds by properly injecting API keys and configuration from .env file. Also updates TelemetryService tests to support multi-provider architecture. * fix(telemetry): Replace Record<string, unknown> with proper JSON-serializable types - Add TelemetryPrimitive, TelemetryValue, TelemetryObject, and TelemetryProperties types to ITelemetryProvider - Update JitsuTelemetryProvider to use TelemetryProperties instead of Record<string, unknown> - Update PostHogTelemetryProvider to use TelemetryProperties instead of Record<string, unknown> - Update TelemetryService to use TelemetryProperties for type-safe telemetry data - Ensures all telemetry properties are JSON-serializable, preventing runtime errors - Fixes TypeScript compatibility issue between Jitsu's JSONObject type and Record<string, unknown> * moved and organized the telemetry files and updated the example env file to be more descriptive * refactor: remove Jitsu telemetry provider - Remove Jitsu provider implementation and config files - Remove Jitsu environment variables from .env.example - Remove Jitsu build configuration from esbuild.mjs - Update TelemetryProviderFactory to only support PostHog - Uninstall @jitsu/js dependency - Add .env to .gitignore to prevent committing local env files * chore: add changeset for Jitsu removal * removed jitsu * fix: update import paths after PostHogClientProvider relocation * fix: remove race condition in captureToProviders and reorganize PostHog providers - Changed captureToProviders from async to synchronous method - Removed unnecessary Promise.allSettled overhead since provider.log() and provider.logRequired() are synchronous - Changed from .map() to .forEach() for better clarity - Moved PostHog provider files into posthog/ subdirectory for better organization - Updated all import paths to reflect new folder structure * refactor(telemetry): remove unnecessary addProperties method and improve type safety - Remove addProperties helper method that used 'any' types - Replace with inline typed spread operations in capture(), captureRequired(), and identifyAccount() - Fix type errors in captureConversationTurnEvent and captureBrowserError - All telemetry properties now properly typed as TelemetryProperties - Ensures OpenTelemetry compatibility through type system enforcement * refactor: remove dotenv dependency and use launch.json envFile - Remove dotenv import and config() call from esbuild.mjs - Add envFile parameter to all launch.json configurations to load .env - Remove dotenv from package.json devDependencies Environment variables are now loaded via VSCode's envFile feature for local development, while CI/production continues to inject via GitHub Actions. This provides cleaner separation between build-time and runtime environment handling. * feat(telemetry): add browser telemetry properties and improve typing - Add remoteBrowserHost and endpoint fields to browser telemetry events - Replace generic Record<string, unknown> with TelemetryObject type in EventHandlerBase for better type safety - Import TelemetryObject type from ITelemetryProvider These changes enhance browser telemetry tracking capabilities and improve type consistency across the telemetry service.
Co-authored-by: Kevin Bond <kevin@Kevins-MacBook-Pro.local>
* Provider auth scripts * changeset * Updated default providers for script
* add checkpoint id to messages * adding command to allow restoring a checkpoint using ts * add validation of the type for git restore * validation logic that checkpoint id is valid
* implemented GetHostVersionResponse rpc in the cli * undoing machine id * removed unused uuid import
Co-authored-by: Andrei Edell <andrei@nugbase.com>
* feat: Adding Oca mode for internal and external feat: Adding Oca mode for internal and external * fix: Addressing cmments
* CLI auth refactor * changeset * One small fix
* Add Bedrock global and jp inference profile support. * Update package-lock.json after merging latest main Regenerated package-lock.json to reflect the latest dependency changes from the merged main branch updates. * Revert "Update package-lock.json after merging latest main" This reverts commit 2fa79ac.
…identification (cline#6680) * feat(logging): replace HostProvider with node-machine-id for machine identification Replace custom HostProvider.env.getMachineId() implementation with the node-machine-id npm package for retrieving machine identifiers. This simplifies the codebase by using a well-maintained library instead of custom host provider logic. Changes: - Add node-machine-id dependency (^1.1.12) - Remove dotenv dev dependency (no longer needed) - Update distinctId service to use node-machine-id directly - Refactor tests to stub node-machine-id instead of HostProvider - Remove HostProvider mock utilities from tests This change improves maintainability and reduces custom code while maintaining the same functionality for generating stable machine IDs. * Removing dead code
* add settings flag and settings parsing * remove note * remove auto approval settings version * update note * fix typo
cline#6691) * fixed ispartial handling for all cases, and cleaned up output to not have emojis * consolidating rendermessage function * timestamps for checkpoints only * removing useless comments * showing terminal commands * terminal command + browser +mcp * removing unused timestamp argument
* Add zod schema for the remote config settings MVP Add a zod schema for the remote config settings JSON. This is based on the doc here: https://docs.google.com/document/d/1DizuUtV_8nUKlDbkhj6psxgD0Vmn2DV-hUb92Gv369M/edit?usp=sharing Add unit tests to check that the validation works correctly. * Change providers from list + seperate settings, to map of provider + settings
Co-authored-by: Kevin Bond <kevin@Kevins-MacBook-Pro.local>
* refactor: user different secret keys for each auth provider * Add changeset * refactor * refactor: use a constant for the secret key * refactor: improve fallback handling
* wip * overshooting now * no more overshooting * static markdown rendering for non streamed cli stuff * more aesthetic * plain text support, and more consistent markdown experience * moving instance info into renderer
* Add JP and Global inference profile options to AWS BedrockAdd a comment on lines R5 to R7Add diff commentMarkdown input: edit mode selected.WritePreviewAdd a suggestionHeadingBoldItalicQuoteCodeLinkUnordered listNumbered listTask listMentionReferenceSaved repliesAdd FilesPaste, drop, or click to add filesCancelCommentStart a reviewReturn to code * Adding Improvements to VSCode multi root workspaces * Added markdown support to focus chain text, allowing the model to display more interesting focus chains Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* markdown streaming support for plan mode respond tool * consistency
* tar-fs * playwright * mammoth
…line#6883) * terminal shift enter support * not needed * detecting windows * removing enhancedkeyboard * removing enhanced keyboard * ghostty * proper ghostty support * docs for posterity * better logging * removing md * doctor command * adding arguments for sync/async for doctor and keyboard setup - and moved keyboard setup to doctor command * doctor help * cleaning up logging and making things more explicit * language and positioning
* update prompting around first task message and summarization prompt and add file read parsing * replace first user message to handle issue of refousing on old task after condense * add line about focusing on initial task for history * adding prompting around our removing of context history and verbosity * prompting changes * fix spelling nit in prompting * update displayPath,absolutePath logic to match read file tool handler * increment the auto approval usage
* refactor(settings): migrate BedrockProvider to Tailwind and extract constants - Extract Claude models and AWS regions into reusable constants - Add className prop support to DebouncedTextField component - Replace inline styles with Tailwind CSS classes throughout BedrockProvider - Improve code maintainability and consistency with modern styling approach This refactoring improves code organization by moving hardcoded lists to constants and standardizes the styling approach across the settings UI components. * lock icons
* added ZAI GLM4.6 to static models list and set as default * changest --------- Co-authored-by: AlexKer <AlexKer@users.noreply.github.com>
…e#6992) * terminal shift enter support * not needed * detecting windows * removing enhancedkeyboard * removing enhanced keyboard * ghostty * proper ghostty support * docs for posterity * better logging * removing md * doctor command * adding arguments for sync/async for doctor and keyboard setup - and moved keyboard setup to doctor command * doctor help * cleaning up logging and making things more explicit * language and positioning * standardizing color codes in plain mode * wow even more hidden rendering - removed * fixing stdin for restrictive shell environments
…e#7026) * Fetch the complete user info when the user logs in using WorkOS * Add changeset * fallback to token data
* Add Qwen 3 Coder models to Amazon Bedrock models * Update comments to reference qwen * Update cost.ts to round to avoid flakey tests * remove math.round
* Update the remote config when the user logs in Subscribe to changes in the auth state, and fetch the remote config when the user logs in. Move the error handling into `fetchRemoteConfig` to remove duplication. * Update src/core/storage/remote-config/fetch.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* fix: add Read More for long task in header - Truncate task description to first 3 lines by default and add a Read More/Show Less toggle to expand/collapse the full text - Compute highlighted text based on expansion state; introduce local isHighlightedTextExpanded state - Increase task details container max height (max-h-20 -> max-h-80) for better readability when expanded - Remove unused useAutoCondense from context destructuring Improves UX by preventing long task text from overwhelming the UI while giving users control to view more when needed. Also includes minor cleanup. * update * Set to 25vh instead * highlightText * feat(ui): task text expansion with click-outside collapse - Replace "Read More/Show Less" button with click-to-expand interaction - Add click-outside listener to automatically collapse expanded text - Apply gradient mask to truncated text for better visual indication - Optimize rendering by removing conditional text highlighting - Refactor layout to use single container with dynamic height constraints This improves UX by making text expansion more intuitive and reducing visual clutter from the toggle button. * update changeset --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
…ine#7017) * refactor(task): use background terminal for subagent command execution Replace VSCode terminal with StandaloneTerminalManager for CLI subagent commands to enable hidden background execution. Falls back to standard TerminalManager if standalone module is unavailable. This change allows subagent commands to run in a background terminal instead of visible VSCode terminals, improving user experience by reducing terminal clutter during subagent operations. * fix: added links * Update src/core/task/index.ts Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> * Update src/core/task/index.ts Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> --------- Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com>
* Update stored Auth Data after refreshing it * Update src/services/auth/providers/ClineAuthProvider.ts Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> --------- Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com>
…7020) * added opinionated preferences for open source model providers * moving to apits instead of refreshopenroutermodels * aras recommendations * zai fix * changed name and removed free models * fix: Adding Fallbacks --------- Co-authored-by: Arafatkatze <arafat.da.khan@gmail.com>
* GLM 4.6 prompt changes * GLM MCP prompt tweaks * Update src/core/prompts/system-prompt/__tests__/__snapshots__/zai_glm_4_6-no-browser.snap Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * snapshot update * snapshot update again --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* v3.34.0 Release Notes - Cline Teams is now free through 2025 for unlimited users. Includes Jetbrains, RBAC, centralized billing and more. - Use the “exacto” versions of GLM-4.6, Kimi-K2, and Qwen3-Coder in the Cline provider for the best balance of cost, speed, accuracy and tool-calling. * fix: Adding Fallbacks * fix: Adding Fallbacks --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Arafatkatze <arafat.da.khan@gmail.com>
* Remove Windows setup accordion and streamline instructions for finding Claude Code path * fix: update image source for Cline chat prompt to use a public URL
…on (cline#7045) * remove massive conversion function and only convert what's needed * add modelinfo conversion for all providers
* Support Feature Flags default values * Update src/services/feature-flags/FeatureFlagsService.ts Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com> * Update FeatureFlag support for unknown values * refactor isFeatureFlagEnabeld --------- Co-authored-by: Bee <68532117+abeatrix@users.noreply.github.com>
* Updating trending model list * exacto
Add a linter check for proto files to avoid issues like cline#7054 Format the proto files while linting
* remove un-implemented tests and create foundation for running cline in cli for exercism * running version for python language * remove unused code and reorder benchmark adapter * remove optional helper functions from BenchmarkAdapter * unskipping tests for java and javascript * updating db schema * updating output to match schema * functional tests for all languages * clean up unused commit and stored result * nits * small changes to wording * adding to the test outputs * using stdin for cline task send * adding results dir to gitignore * updating readme * small nits for readme
wip: wip: wip: fix: Adding oca auth state instead of using model id check fix: Adding oca auth state instead of using model id check chore: Undoing debug changes
* fix(scripts): fix proto-lint script execution on Windows On Windows, directly calling 'scripts/proto-lint.sh' fails because it's not recognized as an internal or external command. This change wraps the script in an npm run command to ensure cross-platform compatibility. Added a new 'lint:proto' script for better organization. * Update lint:proto script path to use relative path * bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Issue: #XXXX
Description
Test Procedure
Type of Change
Pre-flight Checklist
npm test) and code is formatted and linted (npm run format && npm run lint)npm run changeset(required for user-facing changes)Screenshots
Additional Notes