mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* chore(vscode): migrate package management & build from npm/node to bun
Fold apps/vscode (+ webview-ui, testing-platform) into the root bun
workspace so the extension consumes the local @cline/* SDK packages via
workspace symlinks instead of pinned published versions, eliminating the
SDK vendoring cycle. Node remains the runtime (extension host, standalone
cline-core, esbuild platform:node, prebuild-install ABI target).
- root: drop "!apps/vscode", add nested members, relocate overrides to
root, add trustedDependencies [better-sqlite3, grpc-tools]
- apps/vscode: @cline/* -> workspace:*, scripts -> bun/bunx,
npm-run-all -> bun --parallel, drop cross-env; keep esbuild + vite;
declare previously-hoisted phantom deps (nice-grpc-common, playwright)
- package-standalone.mjs: npm install -> bun install (isolated dist dir)
- CI: setup-bun + single root bun install --frozen-lockfile, build:sdk
before extension build, better-sqlite3 binary + zero-test guards;
publish workflows intentionally keep setup-node for vsce/ovsx
- docs/comments: curated pass (keep-list vs rewrite-list), add
apps/vscode/docs/bun-migration-notes.md guard doc
- delete npm lockfiles (root bun.lock authoritative)
Deferred to follow-up PRs: test-runner migration to bun test (Phase 4)
and devDep cleanup (Phase 6).
* test(vscode): add bun test foundation for the vitest-native unit suites
Phase 4a of the test-runner migration. Adds a bun test runner that
reaches full parity (582 pass / 0 fail / 50 files) with the existing
vitest SDK-adapter + model-catalog suite, without touching the
@vscode/test-cli integration tests or the webview vitest suite.
- bunfig.toml: [test] preload
- src/test/bun-test-preload.ts: mock.module() shadows `vscode` and
`@cline/core` with their unit-test stubs (bun's onResolve plugin hook
does not intercept host/symlinked specifiers); seeds real @cline/core
export names as undefined to satisfy bun's strict ESM named-import
linking; full vitest->bun:test shim (vi.fn/mocked/spyOn, describe/it/
expect/before*/after*)
- scripts/run-bun-tests.ts: mirrors vitest.config.ts include[] exactly and
runs with --parallel for per-file mock isolation (bun test's single-process
default lets mock.module clobber across files)
- test:bun script
* test(vscode): migrate node-side unit suite from mocha to bun test
Phase 4b of the test-runner migration. The standalone mocha unit runner
(.mocharc spec: __tests__/* + test/services/**) was already broken under
bun (mocha was a phantom dependency — only @types/mocha/ts-node were
declared, npm hoisted mocha transitively). Migrate it to `bun test`.
- codemod 77 files: import { ... } from "mocha" -> "bun:test", renaming
before->beforeAll / after->afterAll at imports and call-sites; chai,
should and sinon kept as libraries (they work under bun test)
- convert sinon.stub() on ESM namespace exports to mock.module()/spyOn
(bun loads real ESM: "ES Modules cannot be stubbed")
- scripts/run-bun-unit-tests.ts: runs the .mocharc spec set with one
isolated `bun test` process per file (Bun.spawn + concurrency pool),
restoring vitest-forks module-registry isolation (bun's single-process
default lets mock.module leak across files)
- scripts/codemod-mocha-{to-bun,this}.ts: one-shot migration tooling
- test:unit now runs the bun unit runner; CI calls bun + a non-zero
pass-count guard instead of `bunx nyc ... mocha`
- tsconfig: add root node_modules/@types to typeRoots so `bun:test`
types resolve under tsc; cast loose os.userInfo mocks in shell.test
Result: unit suite 58 files / 880 pass / 0 fail; vitest set still
582/0. @vscode/test-cli integration tests and webview vitest unchanged.
* chore(vscode): remove dead mocha-runner deps and artifacts
Phase 6 cleanup after the bun test migration. The standalone mocha unit
runner is gone (replaced by scripts/run-bun-unit-tests.ts), so its
config and now-unused devDependencies are removed.
- remove dead files: .mocharc.json, tsconfig.unit-test.json,
src/test/requires.ts, .nycrc.unit.json
- remove unused devDeps: @types/mocha, @types/proxyquire, ts-node,
tsconfig-paths, cross-env, npm-run-all, nyc, proxyquire, husky
(root owns the husky hook; chai/should/sinon stay — used as libs)
- install:all -> single root `bun install` (workspace covers webview-ui)
- drop .mocharc.json / .nycrc*.json from CI paths-filters and
.vscodeignore; add bunfig.toml to the filters
Verified: check-types clean, unit 880/0, vitest 582/0.
* fix(vscode): import bun:test globals in tests that relied on ambient @types/mocha
CI Quality Checks (clean `bun install` without @types/mocha) surfaced
TS2582/TS2304 "Cannot find name 'describe'/'it'/'beforeEach'" in test
files that used the global mocha/jest test functions without importing
them. The Phase 4b codemod only rewrote files that imported from
"mocha"; these used ambient globals, so they were missed (and passed
locally because a stale @types/mocha lingered in node_modules).
Add explicit `bun:test` imports (before->beforeAll, after->afterAll in
TelemetryService.test.ts). chai/sinon stay as libraries.
Verified against a clean tree (no @types/mocha): check-types 0 errors,
unit suite 58 files / 880 pass / 0 fail.
* style(vscode): biome-format migrated test files + codemod scripts
The mocha->bun:test codemod and manual import edits left formatting that
didn't match biome (the CI `format` check, which validates files changed
since main, flagged them). Also narrow setup.ts's bun:test import to the
actually-used beforeEach/afterEach (describe/it only appear in a JSDoc
example), fixing a noUnusedImports lint error.
ci:check-all (check-types + lint + format) now passes locally.
* fix(webview-ui): declare phantom deps + pin React 18 types under bun workspace
Folding webview-ui into the bun workspace changed its install topology
from an isolated npm flat tree to the shared hoisted store, surfacing
two classes of pre-existing latent issues that npm hoisting had masked:
1. Phantom dependencies: src imports `marked`, `unist`, `unist-util-visit`
and `@heroui/theme` directly but never declared them. Declared them
(marked ^15, unist-util-visit ^5, @types/unist ^3, @heroui/theme 2.4.26).
2. React types: @testing-library/react's optional peer pulls @types/react@19
into a resolvable location; tsc mixed it with the toolkit's React 18
types (React 19 dropped Component.refs), breaking 452 JSX usages. Pin
react/react-dom type resolution to webview-ui's React 18 copy via
tsconfig paths.
build:webview (tsc -b && vite build) and ci:check-all now pass.
* fix(vscode): restore @types/mocha for integration build + add bun:test types
The @vscode/test-cli integration runner still uses mocha, and
tsconfig.test.json compiles all src/**/*.test.ts (including bun-migrated
files) to out/. So:
- restore @types/mocha (integration compile needs the mocha ambient types)
- add `bun` to tsconfig.test.json types + root @types to both tsconfig
typeRoots so `bun:test` resolves under tsc for the migrated tests
* fix(vscode): declare glob — phantom dep used by package-standalone.mjs
scripts/package-standalone.mjs imports `glob` but it was never declared
(resolved transitively under npm's flat hoist). Under the bun workspace
store it's unresolvable, failing postcompile-standalone with
ERR_MODULE_NOT_FOUND. Declare glob ^11 (modern named-export API).
compile-standalone now produces dist-standalone/standalone.zip.
* fix(ci): strip ANSI before vitest zero-test guard grep
The vitest summary line colorizes the count ("Tests <ansi>582 passed"),
so the count isn't adjacent to the "Tests" label in raw bytes and the
guard regex failed even though 582 tests passed. Strip ANSI escapes
before matching.
* fix(vscode): declare minimist — phantom dep in testing-platform-orchestrator
scripts/testing-platform-orchestrator.ts imports `minimist` (undeclared,
resolved transitively under npm hoist). Declare it so the testing-platform
integration job runs under the bun workspace store.
* fix(vscode): restore tsconfig-paths for integration runner; tp-orchestrator uses bun
Phase 6 over-removed tsconfig-paths: test-setup.js (loaded by the
@vscode/test-cli mocha integration runner) requires it to resolve @/
aliases in the compiled out/ tree — the extension host test runner failed
with "Cannot find module 'tsconfig-paths'". Restore it. Also switch the
testing-platform spawn from `npx ts-node index.ts` to `bun index.ts`
(bun runs TS natively; avoids the removed ts-node).
* fix(vscode): route tests by bun:test import marker; integration runner stays mocha
The mocha->bun codemod swept up tests that the Node-based @vscode/test-cli
integration runner compiles/runs, which cannot load the `bun:test` builtin
(and some need the real VSCode host). Establish a single source of truth:
a *.test.ts is bun-runner-owned IFF it imports "bun:test".
- run-bun-unit-tests.ts: discover files by the bun:test import marker
(not fixed globs), so every migrated file runs under bun.
- build-tests.js: generate a tsconfig that excludes all bun:test files
from the integration compile (json5-parsed), so out/ never contains
bun:test; gitignore the generated config.
- .vscode-test.mjs: exclude the bun unit dirs from the runner globs.
- revert host-dependent tests (hostbridge/*, extension, terminal,
FileContextTracker host bits) and 3 files with sinon-on-ESM/behavioral
issues (ClineIgnoreController, mentions, TelemetryService) back to
mocha; they run on @vscode/test-cli as before.
Verified: check-types 0 errors; compile-tests 0 bun:test in out/;
bun unit 65 files/962 pass/0 fail; vitest 582/0.
* fix(vscode): declare mocha — phantom dep for @vscode/test-cli integration runner
The @vscode/test-cli extension host loads `mocha` at runtime to run the
integration suite, but only @types/mocha was declared (npm hoisted the
mocha package transitively; bun's store does not expose it). The host
failed with "Cannot find module 'mocha'". Declare mocha ^11.7.4 (matches
@vscode/test-cli's own range).
* fix(vscode): robust Windows protoc-gen-ts_proto plugin resolution under bun
build-proto.mjs hardcoded node_modules/.bin/protoc-gen-ts_proto.cmd for
Windows, but bun's workspace store places/extensions the bin shim
differently (hoist + .cmd/.bunx), so Windows protos failed with
"protoc-gen-ts_proto: The system cannot find the file specified". Probe
the local + root .bin with known shim extensions instead. Also update
the testing-platform usage string (ts-node -> bun).
* fix(vscode): generate node .cmd wrapper for ts-proto plugin on Windows
The previous probe found bun's `.bunx` shim, but protoc cannot exec it
("%1 is not a valid Win32 application"). Instead, on Windows generate a
small .cmd wrapper that runs the resolved protoc-gen-ts_proto JS via
`node`, which protoc can execute regardless of package manager. POSIX
path (direct JS bin) is unchanged.
* fix(vscode): package VSIX with --no-dependencies (bundled) to stop monorepo traversal
Under the bun workspace, @cline/* are workspace:* symlinks pointing to
../../../../sdk/packages/*. vsce, walking the dependency tree, followed
them out of apps/vscode and packaged the whole monorepo (../, ~84MB incl.
root node_modules and .env), which crashed vsce's secret scanner and
failed all e2e jobs.
The extension is fully esbuild-bundled into dist/extension.js, so vsce
should not walk node_modules at all. Add --no-dependencies to every
vsce/ovsx package/publish path (e2e build, marketplace, nightly), and
tighten .vscodeignore to drop nested node_modules and dev-only inputs
(scripts, proto, testing-platform, bunfig, esbuild.mjs, etc.).
Result: VSIX is 39 files / ~7 MB and the secret scan passes.
* docs(vscode): tighten bun/node comments and consolidate into a clinerule
- add .clinerules/bun-and-node.md (eternal-now: bun=tooling, node=runtime,
keep-list, and the bun:test-vs-mocha test routing rule); remove the
apps/vscode/docs/bun-migration-notes.md migration doc and point
.clinerules/general.md at the rule (single-line bullet matching the file).
- fix the hotfix-release note: there is no infra step that regenerates the
lockfile; a CHANGELOG+version bump leaves bun.lock consistent (workspace
versions aren't pinned) and publish runs --frozen-lockfile.
- reframe runner/preload comments to describe the code as-is (drop
"migrated off mocha"/codemod history); add a TODO on the bun-test preload
to migrate suites off the vitest `vi` shim to native bun:test and delete it.
- remove the one-shot mocha->bun codemod scripts.
* fix(debug-harness): pin debugee VSCode version so bundled Playwright can drive it
The harness downloaded "stable" VSCode (currently 1.125 / Electron 42),
which the bundled Playwright cannot drive — `_electron.launch()` hangs
until its 60s timeout (Electron started and a window appeared, but the
launch handshake never completed). Default to a known-good version
(1.103.0, matching the e2e CI matrix) and allow override via
VSCODE_TEST_VERSION.
* fix(webview): render under bun workspace — dedupe React, drop stale codicons link
The webview mounted but crashed before rendering (blank sidebar; e2e
"Login to Cline" never visible) with "Cannot read properties of null
(reading 'useRef')" — the classic two-React-copies / null hook dispatcher.
Under the bun workspace, sibling packages pull react@19 into the shared
store and a transitive webview dep resolved a second React instance into
the vite bundle. Add resolve.dedupe + pin react/react-dom to webview-ui's
own React 18 copy.
Also drop the separate `<link>` to node_modules/@vscode/codicons in the
webview HTML: the webview's index.css already @imports codicons, so the
font is bundled into the build assets. Under bun that node_modules path
is a symlink to the root store (outside the webview localResourceRoots)
and isn't packaged with --no-dependencies, so the link 404'd; the bundle
covers it. Re-scope the .vscodeignore nested-node_modules exclude so it
no longer shadows the codicons re-include.
* fix(debug-harness): disable GPU so the debugee renders in headless/VM envs
On headless/VM GPU stacks the debugee Electron's GPU process crash-loops
("Exiting GPU process during initialization" / CreateCommandBuffer
kTransientFailure), killing the window before Playwright finishes
attaching and tripping the 60s launch timeout. Force software rendering
(--disable-gpu and friends) for a stable harness launch.
* fix(debug-harness): survive launch failures; configurable, longer launch timeout
The harness crashed (whole bun process exited) whenever VSCode launch
failed/timed out: Playwright emits a late unhandled rejection on the dead
CDP transport after we've already handled the launch error, and the
default behavior takes the HTTP server down with it — forcing a full
restart just to retry.
- Add process-level unhandledRejection/uncaughtException guards so stray
async errors are logged and the server keeps serving (retry via `launch`).
- On launch failure, close the orphaned Electron so a retry isn't blocked.
- Make the _electron.launch timeout configurable (--launch-timeout) and
raise the default to 120s for cold launches; document VSCODE_TEST_VERSION.
* fix(ci): address review feedback — vsix --no-dependencies, drop stale coverage path, Windows shell
- ext-vscode-publish-stable.yml: add --no-dependencies to the release-artifact
`vsce package` (Max's catch). Without it, vsce follows the @cline/* workspace
symlinks out of the package and bloats the .vsix with the whole monorepo.
- ext-vscode-test.yml: drop the stale apps/vscode/coverage-unit/lcov.info upload
path (Max's catch). That file was produced by the removed nyc unit-coverage
step (.nycrc.unit.json); nothing generates it now.
- ext-vscode-test-e2e.yml: the better-sqlite3 assert step ran under the Windows
runner's default pwsh and failed to parse the POSIX test. Pin it to `shell: bash`
(Git Bash ships on windows-latest); the non-e2e job already defaults to bash.
---------
Co-authored-by: Cline Agent <cline-agent@users.noreply.github.com>
587 lines
18 KiB
JSON
587 lines
18 KiB
JSON
{
|
|
"name": "claude-dev",
|
|
"displayName": "Cline",
|
|
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.",
|
|
"version": "3.89.0",
|
|
"icon": "assets/icons/icon.png",
|
|
"engines": {
|
|
"vscode": "^1.84.0"
|
|
},
|
|
"author": {
|
|
"name": "Cline Bot Inc."
|
|
},
|
|
"license": "Apache-2.0",
|
|
"publisher": "saoudrizwan",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/cline/cline"
|
|
},
|
|
"homepage": "https://cline.bot",
|
|
"categories": [
|
|
"AI",
|
|
"Chat",
|
|
"Programming Languages",
|
|
"Education",
|
|
"Snippets",
|
|
"Testing"
|
|
],
|
|
"keywords": [
|
|
"cline",
|
|
"claude",
|
|
"dev",
|
|
"mcp",
|
|
"openrouter",
|
|
"coding",
|
|
"agent",
|
|
"autonomous",
|
|
"chatgpt",
|
|
"sonnet",
|
|
"ai",
|
|
"llama"
|
|
],
|
|
"activationEvents": [
|
|
"onLanguage",
|
|
"onUri",
|
|
"onStartupFinished",
|
|
"workspaceContains:evals.env"
|
|
],
|
|
"main": "./dist/extension.js",
|
|
"contributes": {
|
|
"icons": {
|
|
"cline-icon": {
|
|
"description": "cline",
|
|
"default": {
|
|
"fontPath": "assets/icons/cline-bot.woff",
|
|
"fontCharacter": "\\e900"
|
|
}
|
|
}
|
|
},
|
|
"walkthroughs": [
|
|
{
|
|
"id": "ClineWalkthrough",
|
|
"title": "Meet Cline, your new coding partner",
|
|
"description": "Cline codes like a developer because it thinks like one. Here are 5 ways to put it to work:",
|
|
"steps": [
|
|
{
|
|
"id": "welcome",
|
|
"title": "Start with a Goal, Not Just a Prompt",
|
|
"description": "Tell Cline what you want to achieve. It plans, asks, and then codes, like a true partner.",
|
|
"media": {
|
|
"markdown": "walkthrough/step1.md"
|
|
}
|
|
},
|
|
{
|
|
"id": "learn",
|
|
"title": "Let Cline Learn Your Codebase",
|
|
"description": "Point Cline to your project. It builds understanding to make smart, context-aware changes.",
|
|
"media": {
|
|
"markdown": "walkthrough/step2.md"
|
|
}
|
|
},
|
|
{
|
|
"id": "advanced-features",
|
|
"title": "Always Use the Best AI Models",
|
|
"description": "Cline empowers you with State-of-the-Art AI, connecting to top models (Anthropic, Gemini, OpenAI & more).",
|
|
"media": {
|
|
"markdown": "walkthrough/step3.md"
|
|
}
|
|
},
|
|
{
|
|
"id": "mcp",
|
|
"title": "Extend with Powerful Tools (MCP)",
|
|
"description": "Connect to databases, APIs, and other external tools through MCP.",
|
|
"media": {
|
|
"markdown": "walkthrough/step4.md"
|
|
}
|
|
},
|
|
{
|
|
"id": "getting-started",
|
|
"title": "You're Always in Control",
|
|
"description": "Review Cline's plans and diffs. Approve changes before they happen. No surprises.",
|
|
"media": {
|
|
"markdown": "walkthrough/step5.md"
|
|
},
|
|
"content": {
|
|
"path": "walkthrough/step5.md"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "claude-dev-ActivityBar",
|
|
"title": "Cline",
|
|
"icon": "assets/icons/icon.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"claude-dev-ActivityBar": [
|
|
{
|
|
"type": "webview",
|
|
"id": "claude-dev.SidebarProvider",
|
|
"name": "",
|
|
"icon": "assets/icons/icon.svg"
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "cline.plusButtonClicked",
|
|
"title": "New Task",
|
|
"icon": "$(add)"
|
|
},
|
|
{
|
|
"command": "cline.mcpButtonClicked",
|
|
"title": "MCP Servers",
|
|
"icon": "$(server)"
|
|
},
|
|
{
|
|
"command": "cline.historyButtonClicked",
|
|
"title": "History",
|
|
"icon": "$(history)"
|
|
},
|
|
{
|
|
"command": "cline.accountButtonClicked",
|
|
"title": "Account",
|
|
"icon": "$(account)"
|
|
},
|
|
{
|
|
"command": "cline.settingsButtonClicked",
|
|
"title": "Settings",
|
|
"icon": "$(settings-gear)"
|
|
},
|
|
{
|
|
"command": "cline.dev.createTestTasks",
|
|
"title": "Create Test Tasks",
|
|
"category": "Cline",
|
|
"when": "cline.isDevMode"
|
|
},
|
|
{
|
|
"command": "cline.dev.expireMcpOAuthTokens",
|
|
"title": "Expire MCP OAuth Tokens (for testing)",
|
|
"category": "Cline",
|
|
"when": "cline.isDevMode"
|
|
},
|
|
{
|
|
"command": "cline.addToChat",
|
|
"title": "Add to Cline",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.addTerminalOutputToChat",
|
|
"title": "Add to Cline",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.focusChatInput",
|
|
"title": "Jump to Chat Input",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.generateGitCommitMessage",
|
|
"title": "Generate Commit Message with Cline",
|
|
"category": "Cline",
|
|
"icon": "$(cline-icon)"
|
|
},
|
|
{
|
|
"command": "cline.abortGitCommitMessage",
|
|
"title": "Generate Commit Message with Cline - Stop",
|
|
"category": "Cline",
|
|
"icon": "$(debug-stop)"
|
|
},
|
|
{
|
|
"command": "cline.explainCode",
|
|
"title": "Explain with Cline",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.improveCode",
|
|
"title": "Improve with Cline",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.jupyterGenerateCell",
|
|
"title": "Generate Jupyter Cell with Cline",
|
|
"category": "Cline",
|
|
"icon": "$(sparkle)"
|
|
},
|
|
{
|
|
"command": "cline.jupyterExplainCell",
|
|
"title": "Explain Jupyter Cell with Cline",
|
|
"category": "Cline",
|
|
"icon": "$(question)"
|
|
},
|
|
{
|
|
"command": "cline.jupyterImproveCell",
|
|
"title": "Improve Jupyter Cell with Cline",
|
|
"category": "Cline",
|
|
"icon": "$(lightbulb)"
|
|
},
|
|
{
|
|
"command": "cline.openWalkthrough",
|
|
"title": "Open Walkthrough",
|
|
"category": "Cline"
|
|
},
|
|
{
|
|
"command": "cline.reconstructTaskHistory",
|
|
"title": "Reconstruct Task History",
|
|
"category": "Cline"
|
|
}
|
|
],
|
|
"keybindings": [
|
|
{
|
|
"command": "cline.addToChat",
|
|
"key": "cmd+'",
|
|
"mac": "cmd+'",
|
|
"win": "ctrl+'",
|
|
"linux": "ctrl+'",
|
|
"when": "editorHasSelection"
|
|
},
|
|
{
|
|
"command": "cline.generateGitCommitMessage",
|
|
"when": "config.git.enabled && scmProvider == git"
|
|
},
|
|
{
|
|
"command": "cline.focusChatInput",
|
|
"key": "cmd+'",
|
|
"mac": "cmd+'",
|
|
"win": "ctrl+'",
|
|
"linux": "ctrl+'",
|
|
"when": "!editorHasSelection"
|
|
}
|
|
],
|
|
"menus": {
|
|
"view/title": [
|
|
{
|
|
"command": "cline.plusButtonClicked",
|
|
"group": "navigation@1",
|
|
"when": "view == claude-dev.SidebarProvider"
|
|
},
|
|
{
|
|
"command": "cline.mcpButtonClicked",
|
|
"group": "navigation@2",
|
|
"when": "view == claude-dev.SidebarProvider"
|
|
},
|
|
{
|
|
"command": "cline.historyButtonClicked",
|
|
"group": "navigation@3",
|
|
"when": "view == claude-dev.SidebarProvider"
|
|
},
|
|
{
|
|
"command": "cline.accountButtonClicked",
|
|
"group": "navigation@5",
|
|
"when": "view == claude-dev.SidebarProvider"
|
|
},
|
|
{
|
|
"command": "cline.settingsButtonClicked",
|
|
"group": "navigation@6",
|
|
"when": "view == claude-dev.SidebarProvider"
|
|
}
|
|
],
|
|
"editor/context": [
|
|
{
|
|
"command": "cline.addToChat",
|
|
"group": "navigation",
|
|
"when": "editorHasSelection"
|
|
}
|
|
],
|
|
"terminal/context": [
|
|
{
|
|
"command": "cline.addTerminalOutputToChat",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"scm/title": [
|
|
{
|
|
"command": "cline.generateGitCommitMessage",
|
|
"group": "navigation",
|
|
"when": "config.git.enabled && scmProvider == git && !cline.isGeneratingCommit"
|
|
},
|
|
{
|
|
"command": "cline.abortGitCommitMessage",
|
|
"group": "navigation",
|
|
"when": "config.git.enabled && scmProvider == git && cline.isGeneratingCommit"
|
|
}
|
|
],
|
|
"notebook/toolbar": [
|
|
{
|
|
"command": "cline.jupyterGenerateCell",
|
|
"group": "navigation/add@1",
|
|
"when": "notebookType == 'jupyter-notebook'"
|
|
}
|
|
],
|
|
"notebook/cell/title": [
|
|
{
|
|
"command": "cline.jupyterExplainCell",
|
|
"group": "inline@1",
|
|
"when": "notebookType == 'jupyter-notebook'"
|
|
},
|
|
{
|
|
"command": "cline.jupyterImproveCell",
|
|
"group": "inline@2",
|
|
"when": "notebookType == 'jupyter-notebook'"
|
|
}
|
|
],
|
|
"commandPalette": [
|
|
{
|
|
"command": "cline.generateGitCommitMessage",
|
|
"when": "config.git.enabled && !cline.isGeneratingCommit"
|
|
},
|
|
{
|
|
"command": "cline.abortGitCommitMessage",
|
|
"when": "config.git.enabled && cline.isGeneratingCommit"
|
|
}
|
|
]
|
|
},
|
|
"configuration": {
|
|
"title": "Cline",
|
|
"properties": {}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "bun run package",
|
|
"compile": "bun run check-types && bun run lint && bun esbuild.mjs",
|
|
"compile-standalone": "bun run check-types && bun run lint && bun esbuild.mjs --standalone",
|
|
"postcompile-standalone": "node scripts/package-standalone.mjs",
|
|
"dev": "bun run protos && bun run watch",
|
|
"watch": "bun run --parallel watch:esbuild watch:tsc",
|
|
"watch:esbuild": "bun esbuild.mjs --watch",
|
|
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
|
|
"package": "bun run check-types && bun run build:webview && bun run lint && bun esbuild.mjs --production",
|
|
"protos": "node scripts/build-proto.mjs",
|
|
"protos-python": "node scripts/build-python-proto.mjs",
|
|
"download-ripgrep": "node scripts/download-ripgrep.mjs",
|
|
"postprotos": "biome format --config-path ./biome.jsonc src/shared/proto src/core/controller src/hosts/ webview-ui/src/services src/generated --write --no-errors-on-unmatched",
|
|
"clean:build": "rimraf dist dist-standalone webview-ui/build src/generated out/",
|
|
"clean:deps": "rimraf node_modules webview-ui/node_modules",
|
|
"clean:all": "bun run clean:build && bun run clean:deps",
|
|
"compile-tests": "node ./scripts/build-tests.js",
|
|
"watch-tests": "tsc -p . -w --outDir out",
|
|
"check-types": "bun run protos && bunx tsc --noEmit && cd webview-ui && bunx tsc --noEmit",
|
|
"lint": "biome lint --config-path ./biome.jsonc --no-errors-on-unmatched --files-ignore-unknown=true --diagnostic-level=error && bun run lint:proto",
|
|
"lint:proto": "bash ./scripts/proto-lint.sh",
|
|
"analyze:unused": "bunx --yes knip --config knip.json --include files,exports,types,enumMembers,duplicates",
|
|
"analyze:unused:prod": "bunx --yes knip --config knip.json --production --include files,exports,types,enumMembers,dependencies",
|
|
"analyze:unused:fix-exports": "node scripts/remove-unused-exports.mjs --apply",
|
|
"analyze:unused:fix-exports:dry": "node scripts/remove-unused-exports.mjs",
|
|
"format": "biome format --config-path ./biome.jsonc --changed --since main --no-errors-on-unmatched --files-ignore-unknown=true --diagnostic-level=error --semicolons=as-needed",
|
|
"format:fix": "biome check --config-path ./biome.jsonc --changed --since main --no-errors-on-unmatched --files-ignore-unknown=true --write --semicolons=as-needed",
|
|
"fix:all": "biome check --config-path ./biome.jsonc --no-errors-on-unmatched --files-ignore-unknown=true --write --diagnostic-level=error --unsafe --semicolons=as-needed",
|
|
"ci:check-all": "bun run --parallel check-types lint format",
|
|
"ci:build": "bun run protos && bun run build:webview && bun esbuild.mjs && bun run compile-tests",
|
|
"pretest": "bun run compile && bun run compile-tests && bun run compile-standalone && bun run lint",
|
|
"test": "bun run test:unit && bun run test:integration",
|
|
"test:integration": "bun run compile-tests && vscode-test",
|
|
"test:unit": "bun scripts/run-bun-unit-tests.ts",
|
|
"test:vitest": "vitest run --config vitest.config.ts",
|
|
"test:vitest:watch": "vitest --config vitest.config.ts",
|
|
"test:bun": "bun scripts/run-bun-tests.ts",
|
|
"test:bun:unit": "bun scripts/run-bun-unit-tests.ts",
|
|
"test:coverage": "bun run compile-tests && vscode-test --coverage",
|
|
"test:sca-server": "bun --watch scripts/test-standalone-core-api-server.ts",
|
|
"test:tp-orchestrator": "bun scripts/testing-platform-orchestrator.ts",
|
|
"dev:mcp-oauth-test-server": "bun src/dev/mcp-oauth-test-server/server.ts",
|
|
"e2e": "playwright test -c playwright.config.ts",
|
|
"test:e2e:build": "vsce package --no-dependencies --allow-package-secrets sendgrid --out dist/e2e.vsix",
|
|
"test:e2e": "playwright install && bun run test:e2e:build && node src/test/e2e/utils/build.mjs && playwright test",
|
|
"test:e2e:optimal": "bun run test:e2e:build && node src/test/e2e/utils/build.mjs && playwright test",
|
|
"test:e2e:ui": "bun scripts/interactive-playwright.ts",
|
|
"install:all": "bun install",
|
|
"dev:webview": "cd webview-ui && bun run dev",
|
|
"build:webview": "cd webview-ui && bun run build",
|
|
"test:webview": "cd webview-ui && bun run test",
|
|
"publish:marketplace": "node scripts/publish-marketplace.mjs",
|
|
"publish:marketplace:prerelease": "node scripts/publish-marketplace.mjs --pre-release",
|
|
"publish:marketplace:nightly": "node ./scripts/publish-nightly.mjs",
|
|
"docs": "cd docs && bun run dev",
|
|
"docs:check-links": "cd docs && bun run check",
|
|
"docs:rename-file": "cd docs && bun run rename",
|
|
"report-issue": "node scripts/report-issue.js",
|
|
"storybook": "cd webview-ui && bun run storybook",
|
|
"eval:smoke:run": "bun evals/smoke-tests/run-smoke-tests.ts"
|
|
},
|
|
"lint-staged": {
|
|
"src/shared/storage/state-keys.ts": [
|
|
"node scripts/generate-state-proto.mjs",
|
|
"git add apps/vscode/proto/cline/state.proto"
|
|
],
|
|
"*": [
|
|
"biome check --write --staged --no-errors-on-unmatched --files-ignore-unknown=true --semicolons=as-needed"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.3.14",
|
|
"@bufbuild/buf": "^1.54.0",
|
|
"@microsoft/tui-test": "0.0.1",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/chai": "^5.0.1",
|
|
"@types/clone-deep": "^4.0.4",
|
|
"@types/get-folder-size": "^3.0.4",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/mocha": "^10.0.7",
|
|
"@types/node": "20.x",
|
|
"@types/pdf-parse": "^1.1.4",
|
|
"@types/picomatch": "^4.0.2",
|
|
"@types/shell-quote": "^1.7.5",
|
|
"@types/should": "^11.2.0",
|
|
"@types/sinon": "^21.0.0",
|
|
"@types/turndown": "^5.0.5",
|
|
"@types/vscode": "1.84.0",
|
|
"@vscode/test-cli": "^0.0.12",
|
|
"@vscode/test-electron": "^2.5.2",
|
|
"@vscode/vsce": "^3.6.0",
|
|
"c8": "^10.1.3",
|
|
"chai": "^4.3.10",
|
|
"chalk": "5.6.2",
|
|
"dotenv": "^17.2.3",
|
|
"esbuild": "^0.25.0",
|
|
"glob": "^11.0.0",
|
|
"grpc-tools": "^1.13.0",
|
|
"lint-staged": "^16.1.0",
|
|
"minimatch": "^3.0.3",
|
|
"minimist": "^1.2.8",
|
|
"mocha": "^11.7.4",
|
|
"playwright": "^1.55.1",
|
|
"prebuild-install": "^7.1.3",
|
|
"protoc-gen-ts": "^0.8.7",
|
|
"rimraf": "^6.0.1",
|
|
"should": "^13.2.3",
|
|
"sinon": "^21.0.3",
|
|
"tar": "^7.5.2",
|
|
"tree-kill": "^1.2.2",
|
|
"ts-proto": "^2.6.1",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"typescript": "^5.4.5",
|
|
"vitest": "^4.0.17"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.37.0",
|
|
"@bufbuild/protobuf": "^2.2.5",
|
|
"@cline/agents": "workspace:*",
|
|
"@cline/core": "workspace:*",
|
|
"@cline/llms": "workspace:*",
|
|
"@cline/shared": "workspace:*",
|
|
"@google/genai": "^1.30.0",
|
|
"@grpc/grpc-js": "^1.9.15",
|
|
"@grpc/proto-loader": "^0.7.13",
|
|
"@grpc/reflection": "^1.0.4",
|
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/api-logs": "^0.56.0",
|
|
"@opentelemetry/core": "^2.1.0",
|
|
"@opentelemetry/exporter-logs-otlp-grpc": "^0.56.0",
|
|
"@opentelemetry/exporter-logs-otlp-http": "^0.56.0",
|
|
"@opentelemetry/exporter-logs-otlp-proto": "^0.56.0",
|
|
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.56.0",
|
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.56.0",
|
|
"@opentelemetry/exporter-metrics-otlp-proto": "^0.56.0",
|
|
"@opentelemetry/exporter-prometheus": "^0.56.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.56.0",
|
|
"@opentelemetry/instrumentation": "^0.205.0",
|
|
"@opentelemetry/instrumentation-http": "^0.205.0",
|
|
"@opentelemetry/resources": "^1.30.1",
|
|
"@opentelemetry/sdk-logs": "^0.56.0",
|
|
"@opentelemetry/sdk-metrics": "^1.30.1",
|
|
"@opentelemetry/sdk-node": "^0.56.0",
|
|
"@opentelemetry/sdk-trace-base": "^2.1.0",
|
|
"@opentelemetry/sdk-trace-node": "^1.30.1",
|
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
"@playwright/test": "^1.55.1",
|
|
"@streamparser/json": "^0.0.22",
|
|
"@tailwindcss/vite": "^4.1.14",
|
|
"@types/uuid": "^10.0.0",
|
|
"@vscode/codicons": "^0.0.36",
|
|
"archiver": "^7.0.1",
|
|
"aws4fetch": "^1.0.20",
|
|
"axios": "1.16.1",
|
|
"better-sqlite3": "^12.4.1",
|
|
"cheerio": "^1.0.0",
|
|
"chokidar": "^4.0.1",
|
|
"chrome-launcher": "^1.1.2",
|
|
"clone-deep": "^4.0.1",
|
|
"default-shell": "^2.2.0",
|
|
"diff": "8.0.4",
|
|
"exceljs": "^4.4.0",
|
|
"execa": "^9.5.2",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fzf": "^0.5.2",
|
|
"get-folder-size": "^5.0.0",
|
|
"globby": "^14.0.2",
|
|
"grpc-health-check": "^2.0.2",
|
|
"iconv-lite": "^0.6.3",
|
|
"ignore": "^7.0.3",
|
|
"image-size": "^2.0.2",
|
|
"isbinaryfile": "^5.0.2",
|
|
"js-yaml": "^4.1.1",
|
|
"jschardet": "^3.1.4",
|
|
"json5": "^2.2.3",
|
|
"jwt-decode": "^4.0.0",
|
|
"mammoth": "^1.11.0",
|
|
"nanoid": "^5.1.6",
|
|
"nice-grpc": "^2.1.12",
|
|
"nice-grpc-common": "^2.0.3",
|
|
"node-machine-id": "^1.1.12",
|
|
"open": "^10.1.2",
|
|
"open-graph-scraper": "^6.9.0",
|
|
"openai": "^6.21.0",
|
|
"os-name": "^6.0.0",
|
|
"p-mutex": "^1.0.0",
|
|
"p-timeout": "^6.1.4",
|
|
"p-wait-for": "^5.0.2",
|
|
"pdf-parse": "^1.1.1",
|
|
"picomatch": "^4.0.3",
|
|
"posthog-node": "^5.8.0",
|
|
"puppeteer-chromium-resolver": "^23.0.0",
|
|
"puppeteer-core": "^23.4.0",
|
|
"reconnecting-eventsource": "^1.6.4",
|
|
"serialize-error": "^11.0.3",
|
|
"shell-quote": "^1.8.3",
|
|
"simple-git": "3.36.0",
|
|
"strip-ansi": "^7.1.2",
|
|
"tailwindcss": "^4.1.14",
|
|
"ts-morph": "^25.0.1",
|
|
"turndown": "^7.2.0",
|
|
"ulid": "^2.4.0",
|
|
"undici": "^7.26.0",
|
|
"uuid": "^11.1.0",
|
|
"vscode-uri": "^3.1.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"c8": {
|
|
"reporter": [
|
|
"lcov",
|
|
"html"
|
|
],
|
|
"exclude": [
|
|
"**/testing-platform/**",
|
|
"**/webview-ui/**",
|
|
"**/.vscode-test/**",
|
|
"**/node_modules/**",
|
|
"node_modules",
|
|
"**/dist-standalone/src/**",
|
|
"**/dist-standalone/vsce-extension/https:/**",
|
|
"**/dist-standalone/vsce-extension/**",
|
|
"**/dist-standalone/https:/**",
|
|
"**/dist-standalone/LIB/src/**",
|
|
"**/dist-standalone/pdfjs-dist/**",
|
|
"**/*.d.ts",
|
|
"**/*.{test,spec}.{js,jsx,ts,tsx,mjs,cjs}",
|
|
"**/__tests__/**",
|
|
"**/test/**",
|
|
"**/tests/**",
|
|
"**/.nyc_output/**",
|
|
"**/tests-results/**",
|
|
"src/test/**",
|
|
"**/src/xml/**",
|
|
"**/standalone/**",
|
|
"**/src/generated/**",
|
|
"dist"
|
|
],
|
|
"all": true,
|
|
"exclude-after-remap": true
|
|
}
|
|
}
|