* ready for review
* WIP: late-breaking cli arg change fix-ups (still more to double-check)
* updates for late-breaking CLI changes
* updated docs to match yesterday's usage updates
* docs(cli): restructure documentation and add dedicated installation guide
- Extract installation instructions into separate installation.mdx page
- Simplify overview.mdx to focus on use cases and getting started
- Improve cli-reference.mdx with quick help commands section
- Reorganize content for better information architecture
- Make documentation more user-friendly and action-oriented
This restructuring separates concerns: installation details are now in their
own page, the overview focuses on what Cline CLI can do, and the reference
page is more accessible with inline help examples before the full manual.
---------
Co-authored-by: Juan Pablo <juan@cline.bot>
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
* feat: add banner to install Cline for CLI and experimental subagents feature
* Update snapshots
* Fix copy
* Style fixes
* A few small changes to cli detection, prompting, cleanup
* Prompting tweaks and npm command update
* Prompting, bug fix
* Prompt changes around command syntax
* Command parsing and flag substitution for easier subagent invocation
* Added terminal output slider setting for subagents
* Improved CLI subagent settings injection
* Added max_consecutive_mistakes setting and cli flag
* Terminal line limit added to enchanced terminal, prompting and settings tweaks
* feat: Add OpenTelemetry settings schema and state infrastructure (1/5) (#6826)
* feat: Add OpenTelemetry settings schema and state infrastructure (1/5)
- Add 16 OpenTelemetry configuration fields to Settings interface
- Add 17 OpenTelemetry fields to RemoteConfig schema
- Add state persistence helpers for OpenTelemetry settings
- Foundation for dynamic OpenTelemetry configuration
Part 1 of 5 in the telemetry settings refactor series.
* chore: add changeset for OpenTelemetry schema
* fix: Address PR review feedback for OpenTelemetry settings
- Remove | undefined from 8 OpenTelemetry fields with default values
- Add default values in state-helpers.ts for all non-optional fields
- Add OpenTelemetry field mappings to remote-config/utils.ts
- Add comprehensive test coverage for OpenTelemetry fields in schema.test.ts
- Update changeset terminology from 'Otel' to 'OpenTelemetry'
Addresses feedback from:
- sjf: Remote config transformation and test coverage
- celestial-vault: Type cleanup and default values
- Copilot: Terminology improvement
* Prompting changes
* Fixed system prompt empty sections issue, fixed rebase mistake
* Added telemetry for CLI subagent use in IDEs
* Platform aware banner, fixed settings layout issues
* Post rebase fixes & changes to accomodate new terminal UI
* Cline Icon SVG in ChatRow - WIP
* Fixed outputLine limit issue
* Fixed rebase merge conflict remnant
* Rebase fix
* Cleanup and changes to instructions for new CLI users
* Added CLI documentation link
* Small prompt adjustments
* One more bullet point
* Updated remaining npm install command
* Updated subagent command format for CLI release spec
* Added check to prevent subagents from getting subagent prompt
* Added subagent slash command
* Apply suggestion from @ellipsis-dev[bot]
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* Remove workdir
* Update src/core/prompts/system-prompt/variants/xs/overrides.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* removed logging
* Updated expected version output
* Removed checkCliInstallation check in getStateToPostToWebview
* removed more logging
* fix: force subagents to use terminal stuff
---------
Co-authored-by: Kevin Bond <kevin@cline.bot>
Co-authored-by: Daniel Steigman <35793213+NightTrek@users.noreply.github.com>
Co-authored-by: Andrei Eternal <206184+Garoth@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: canvrno <46584286+canvrno@users.noreply.github.com>
Co-authored-by: Arafatkatze <arafat.da.khan@gmail.com>
* build: add npm package build script with telemetry injection
Add a new build script that automates the NPM package creation process with proper telemetry key injection. The script:
- Validates required environment variables (TELEMETRY_SERVICE_API_KEY, ERROR_SERVICE_API_KEY)
- Verifies Node.js can access environment variables
- Builds Go CLI binaries for all platforms
- Compiles standalone package with esbuild
- Verifies telemetry keys are properly injected into compiled code
- Provides colored output and detailed error messages
Added npm script `build:npm` to package.json for easy invocation.
This ensures consistent builds with telemetry properly configured for production deployments.
* feat(hostbridge): add telemetry settings support for CLI mode
Add GetTelemetrySettings and SubscribeToTelemetrySettings methods to EnvService to handle telemetry configuration in CLI mode.
- GetTelemetrySettings retrieves telemetry status from POSTHOG_TELEMETRY_ENABLED environment variable
- SubscribeToTelemetrySettings provides a stream for telemetry setting updates, sending initial state and keeping stream open
- In CLI mode, telemetry settings are static and determined by environment variable at startup
This enables proper telemetry control and monitoring in CLI environments.
* feat(hooks): Implement UserPromptSubmit hook
* feat(hooks): Add tests for UserPromptSubmit hook
* feat(hooks): Add fixture-based tests for UserPromptSubmit
* feat(hooks): More UserPromptSubmit tests
* feat(hooks): Change as per ellipsis-dev code review feedback on the PR
* Apply the complete hooks.proto and hook-factory.ts changes
* Update remote config schema
Update the schema to make models field optional, so we can use undefined to mean unset like the other fields.
* Make the OpenAI headers an otional field
* Update src/shared/remote-config/__tests__/schema.test.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>
* WIP npm publish setup
* verbose startup + error if cline core not found
* working npm release
* modifications for linux npm package to work
* remove publish npm workflow for now
* readme & package.json tweaks
* fix old reference to compile-standalone-cli in test workflow
---------
Co-authored-by: Andrei Edell <andrei@nugbase.com>
* feat: Add OpenTelemetry settings schema and state infrastructure (1/5)
- Add 16 OpenTelemetry configuration fields to Settings interface
- Add 17 OpenTelemetry fields to RemoteConfig schema
- Add state persistence helpers for OpenTelemetry settings
- Foundation for dynamic OpenTelemetry configuration
Part 1 of 5 in the telemetry settings refactor series.
* chore: add changeset for OpenTelemetry schema
* fix: Address PR review feedback for OpenTelemetry settings
- Remove | undefined from 8 OpenTelemetry fields with default values
- Add default values in state-helpers.ts for all non-optional fields
- Add OpenTelemetry field mappings to remote-config/utils.ts
- Add comprehensive test coverage for OpenTelemetry fields in schema.test.ts
- Update changeset terminology from 'Otel' to 'OpenTelemetry'
Addresses feedback from:
- sjf: Remote config transformation and test coverage
- celestial-vault: Type cleanup and default values
- Copilot: Terminology improvement