mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* chore: remove legacy cli/ source and direct references
The legacy React Ink CLI in cli/ has been superseded by the new SDK
CLI at sdk/apps/cli/ (published as cline@nightly today, taking over
the cline npm package on the next latest cut).
This commit deletes the cli/ source tree (~9.5MB, 142 files) and the
remaining references that point at it:
- .clinerules/cli.md (the per-area tribal-knowledge file for working
in cli/)
- package.json workspaces: drop the "cli" entry (root no longer
publishes a workspace from there)
- package.json coverage excludes: drop the stale **/evals/cli/**
paths (the directory does not exist)
- tsconfig.json: drop "cli/src/**/*" from the include list so the
root typecheck stops trying to walk into a missing tree
- .github/copilot-instructions.md: drop the CLI architecture bullet
and the cli/src/components/ModelPicker.tsx mention from the
add-API-provider checklist
Intentionally left alone:
- .claude/hooks/claude-code-for-web-setup.sh references
github.com/cli/cli (the gh CLI), not our deleted cli/
- src/core/locks/SqliteLockManager.ts comments mention
cli/pkg/common/schema.go which is the Go-based cline-core schema,
a different component
- .github/workflows/cline-evals-regression.yml is already disabled
pending rewire at the new SDK CLI
* chore: remove orphaned legacy CLI distribution scripts
With cli/ gone, the public-install path (curl | bash → install.sh →
download CLI binaries from cline/cline GitHub releases) and the
enterprise endpoint-bundling helpers no longer have anything to
install or bundle:
- scripts/install.sh — curl-bash installer that downloaded the old
CLI binary from cline/cline GH releases. The new install path is
npm i -g cline.
- scripts/test-install.sh — only tested install.sh.
- scripts/test-bundled-endpoints.sh — built a VSIX *and* CLI tgz with
bundled staging endpoints for enterprise distribution. The CLI half
is dead; the VSIX half can be done with vsce + add-endpoints-to-vsix.sh
directly. The script as a whole was niche test infra, not production.
- scripts/add-endpoints-to-npm.sh — injected endpoints.json into the
old CLI's npm tarball. Companion add-endpoints-to-vsix.sh and
add-endpoints-to-jetbrains.sh stay (they target the extension and
JetBrains plugin).
- package.json: drop the orphaned `test:install` root script that
wrapped scripts/test-install.sh.
If install.cline.bot (or any public URL) was still serving
scripts/install.sh as a curl|bash target, that URL will 404 after
this lands. Worth checking and either redirecting or stubbing with
a `npm i -g cline` hint.
* chore: clean up legacy CLI references
* chore: disable legacy smoke eval workflow
* Revert "chore: disable legacy smoke eval workflow"
This reverts commit 193ee78718.
* chore: remove disabled smoke eval workflow
* docs: clarify disabled smoke eval CI
202 lines
4.7 KiB
JSON
202 lines
4.7 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true,
|
|
"defaultBranch": "main"
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on",
|
|
"useSortedAttributes": "on"
|
|
}
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"domains": {
|
|
"react": "recommended"
|
|
},
|
|
// Ideally we would want to turn on all the rules that are currently off,
|
|
// keeping them off currently to make sure only changes on the migrations
|
|
// are included in the initial PR before we apply the format and lint changes.
|
|
// TODO: turn on all rules that are currently off if applicable.
|
|
// TODO: Remove --diagnostic-level=error from CI commands.
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "info",
|
|
"noUndeclaredVariables": "off",
|
|
"noEmptyPattern": "info",
|
|
"useJsxKeyInIterable": "off",
|
|
"noInnerDeclarations": "off",
|
|
"useHookAtTopLevel": "info",
|
|
"useYield": "info",
|
|
"noConstructorReturn": "off",
|
|
"noInvalidPositionAtImportRule": "off",
|
|
"noSwitchDeclarations": "off",
|
|
"noUnusedImports": "error"
|
|
},
|
|
"a11y": "info",
|
|
"style": {
|
|
"useNodejsImportProtocol": "off",
|
|
"useImportType": "off",
|
|
"useBlockStatements": "off",
|
|
"useNamingConvention": "off",
|
|
"useThrowOnlyError": "info",
|
|
"useConsistentArrayType": "off",
|
|
"noParameterAssign": "off",
|
|
"useAsConstAssertion": "off",
|
|
"useDefaultParameterLast": "off",
|
|
"noNonNullAssertion": "info",
|
|
"useEnumInitializers": "off",
|
|
"useSelfClosingElements": "info",
|
|
"useSingleVarDeclarator": "off",
|
|
"useNumberNamespace": "info",
|
|
"noInferrableTypes": "info",
|
|
"useTemplate": "info",
|
|
"noUselessElse": "info"
|
|
},
|
|
"suspicious": {
|
|
"noDoubleEquals": "warn",
|
|
"noImplicitAnyLet": "info",
|
|
"noThenProperty": "off",
|
|
"noAsyncPromiseExecutor": "info",
|
|
"noImportAssign": "off",
|
|
"noExplicitAny": "info",
|
|
"noControlCharactersInRegex": "warn",
|
|
"noShadowRestrictedNames": "off",
|
|
"noArrayIndexKey": "info",
|
|
"noAssignInExpressions": "info",
|
|
"useIterableCallbackReturn": "info"
|
|
},
|
|
"complexity": {
|
|
"noUselessConstructor": "info",
|
|
"useOptionalChain": "info",
|
|
"noBannedTypes": "warn",
|
|
"useLiteralKeys": "info",
|
|
"noUselessCatch": "info",
|
|
"noUselessSwitchCase": "info",
|
|
"noStaticOnlyClass": "info"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "info"
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "tab",
|
|
"indentWidth": 4,
|
|
"lineWidth": 130,
|
|
"lineEnding": "lf",
|
|
"formatWithErrors": true
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"semicolons": "asNeeded",
|
|
"arrowParentheses": "always",
|
|
"bracketSameLine": true,
|
|
"bracketSpacing": true,
|
|
"jsxQuoteStyle": "double",
|
|
"quoteProperties": "asNeeded",
|
|
"trailingCommas": "all"
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"trailingCommas": "none",
|
|
"expand": "always"
|
|
}
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"**",
|
|
// explicitly force files to be ignored by the scanner with !!
|
|
"!!**/dist",
|
|
"!!**/dist-*",
|
|
"!!**/out",
|
|
"!!**/evals",
|
|
"!!**/playwright",
|
|
"!!**/test-results",
|
|
"!!**/node_modules",
|
|
"!!**/webview-ui/build",
|
|
"!!**/generated",
|
|
"!!**/proto",
|
|
"!!**/tests/specs"
|
|
]
|
|
},
|
|
"plugins": [
|
|
"src/dev/grit/process-env.grit"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"includes": [
|
|
"**",
|
|
"!!**/dist",
|
|
"!!**/hosts/vscode/**",
|
|
"!!**/test/**",
|
|
"!!**/*.test.ts",
|
|
"!!src/dev/**",
|
|
"!!src/extension.ts",
|
|
"!!src/integrations/git/commit-message-generator.ts",
|
|
"!!src/integrations/terminal/**",
|
|
"!!src/core/controller/ui/openWalkthrough.ts"
|
|
],
|
|
"plugins": [
|
|
"src/dev/grit/vscode-api.grit"
|
|
]
|
|
},
|
|
{
|
|
// Do not use console logging directly, use the Logger service instead.
|
|
"plugins": [
|
|
"src/dev/grit/console-log.grit"
|
|
],
|
|
"includes": [
|
|
"**",
|
|
"!!**/esbuild.*",
|
|
"!!**/*.mts",
|
|
"!!**/webview-ui/**",
|
|
"!!**/evals/**",
|
|
"!!**/standalone/**",
|
|
"!!**/cli/**",
|
|
"!!**/e2e/**",
|
|
"!!**/test/**",
|
|
"!!**/__tests__/**",
|
|
"!!**/*.test.ts",
|
|
"!!**/*.stories.ts",
|
|
"!!src/dev/**",
|
|
"!!**/*.mjs",
|
|
"!!**/*.js",
|
|
"!!**/scripts/**",
|
|
"!!**/*.tsx",
|
|
"!!**/testing-platform/**"
|
|
]
|
|
},
|
|
{
|
|
"includes": [
|
|
"**",
|
|
"!!src/core/storage/state-migrations.ts",
|
|
"!!src/core/storage/FileContextTracker.ts",
|
|
"!!src/core/context/context-tracking/FileContextTracker.ts",
|
|
"!!src/common.ts",
|
|
"!!src/services/logging/distinctId.ts",
|
|
"!!src/core/storage/utils/state-helpers.ts",
|
|
"!!src/extension.ts"
|
|
],
|
|
"plugins": [
|
|
"src/dev/grit/use-cache-service.grit"
|
|
]
|
|
}
|
|
]
|
|
}
|