Files
cline/cli
Daniel Steigman e9eb7ae179 fix(cli): Add telemetry settings support to Go host bridge (#6906)
* 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.
2025-10-15 19:13:39 -07:00
..
2025-10-14 20:54:50 -07:00
2025-10-15 01:16:48 -07:00
2025-10-15 03:02:25 -07:00
2025-10-15 03:02:25 -07:00
2025-10-14 20:54:50 -07:00

Cline CLI

/_____/\ /_/\      /_______/\/__/\ /__/\ /_____/\
\:::__\/ \:\ \     \__.::._\/\::\_\\  \ \\::::_\/_
 \:\ \  __\:\ \       \::\ \  \:. `-\  \ \\:\/___/\
  \:\ \/_/\\:\ \____  _\::\ \__\:. _    \ \\::___\/_
   \:\_\ \ \\:\/___/\/__\::\__/\\. \`-\  \ \\:\____/\
    \_____\/ \_____\/\________\/ \__\/ \__\/ \_____\/

Autonomous coding agent CLI - capable of creating/editing files, running commands, using the browser, and more.

Installation

Install Cline globally using npm:

npm install -g cline

Usage

cline

This will start the Cline CLI interface where you can interact with the autonomous coding agent.

Features

  • Autonomous Coding: AI-powered code generation, editing, and refactoring
  • File Operations: Create, read, update, and delete files and directories
  • Command Execution: Run shell commands and scripts
  • Browser Automation: Interact with web pages and applications
  • Multi-Model Support: Works with Anthropic Claude, OpenAI GPT, and other AI models
  • MCP Integration: Extensible through Model Context Protocol servers
  • Project Understanding: Analyzes codebases to provide context-aware assistance

Requirements

  • Node.js 18.0.0 or higher
  • Supported platforms: macOS, Linux. Windows soon
  • Supported architectures: x64, arm64

Configuration

Cline can be configured through:

  • Environment variables
  • Configuration files
  • Command-line arguments

See the main documentation for detailed configuration options.

License

Apache-2.0 - see LICENSE for details.

Support