mirror of
https://github.com/cline/cline.git
synced 2026-10-13 17:16:30 +08:00
* feat(desktop): add transcript outline with shared message scroller * fix(desktop): avoid repeated outline work during streaming * fix(ui): preserve transcript position when replacing rows * fix(ui): respect reduced motion in MessageScrollerButton The shared scroll-to-end button always passed shadcn's default smooth behavior. Resolve it from prefers-reduced-motion like the outline does, keeping an explicit behavior prop as an override. * test(desktop): cover saved-session row swap and streaming growth Add a regression test for continuing a saved session: history hydrates after the provider mounts, a new prompt pins near the top, then the activity row is swapped for the first answer row in one commit and the viewport must stay on the new prompt. Make the streaming test grow the transcript and deliver the resize notification instead of only changing answer text. * chore(ui): tidy message-scroller check in smoke-package --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
98 lines
4.3 KiB
JSON
98 lines
4.3 KiB
JSON
{
|
|
"name": "@cline/packages",
|
|
"private": true,
|
|
"workspaces": [
|
|
"sdk/packages/*",
|
|
"apps/*",
|
|
"apps/vscode/webview-ui",
|
|
"apps/vscode/testing-platform",
|
|
"apps/cline-hub/src/webview",
|
|
"apps/examples/*",
|
|
"apps/examples/vscode/src/webview",
|
|
"sdk/examples",
|
|
"sdk/examples/plugins/*"
|
|
],
|
|
"scripts": {
|
|
"prepare": "husky",
|
|
"build": "bun run clean && bun install && bun run build:sdk && bun -F @cline/cli build",
|
|
"build:sdk": "bun --production -F './sdk/packages/*' build",
|
|
"build:apps": "bun -F './apps/**' --production build",
|
|
"build:models": "bun -F @cline/llms generate:models && bun format --write",
|
|
"dev": "bun --conditions=development run build:sdk && bun run cli && bun run cli hub stop",
|
|
"cli": "bun --conditions=development --cwd apps/cli dev",
|
|
"code": "bun --conditions=development -F @cline/code dev",
|
|
"clean": "bun run sdk/scripts/clean.ts",
|
|
"types": "bun --parallel -F '*' typecheck",
|
|
"test": "bun --parallel -F './sdk/packages/**' -F @cline/cli -F @cline/cline-hub -F @cline/vscode test",
|
|
"test:unit": "bash -lc 'set -euo pipefail; bun -F @cline/agents test & p1=$!; bun -F @cline/llms test & p2=$!; bun -F @cline/core test:unit & p3=$!; bun -F @cline/cli test:unit & p4=$!; bun -F @cline/cline-hub test & p5=$!; bun -F @cline/vscode test & p6=$!; wait $p1; wait $p2; wait $p3; wait $p4; wait $p5; wait $p6'",
|
|
"test:e2e": "bun -F @cline/core test:e2e && bun -F @cline/cli test:e2e",
|
|
"test:e2e:interactive": "bun -F @cline/cli test:e2e:interactive",
|
|
"verify:routines": "zsh -lc 'cd sdk/packages/core && bunx vitest run src/cron/schedule-service.test.ts --config vitest.config.ts'",
|
|
"verify:workos-device-auth": "bun sdk/scripts/verify-workos-device-auth.ts",
|
|
"biome": "bunx --bun @biomejs/biome",
|
|
"format": "bun biome format sdk/ apps/cli/ apps/cline-hub/ apps/examples/",
|
|
"lint": "bun biome lint sdk/ apps/cli/ apps/cline-hub/ apps/examples/",
|
|
"fix": "bun biome check --write --unsafe --diagnostic-level=error sdk/ apps/cli/ apps/cline-hub/ apps/examples/",
|
|
"check": "bun biome check --diagnostic-level=error sdk/ apps/cli/ apps/cline-hub/ apps/examples/ && bun run build:sdk && bun run -F @cline/cli build && bun -F @cline/cline-hub build:webview && bun --parallel -F './sdk/packages/**' -F @cline/cli -F @cline/cline-hub typecheck && bun sdk/scripts/check-publish.ts",
|
|
"version": "bun run types && bun sdk/scripts/version.ts",
|
|
"release": "bun sdk/scripts/release.ts"
|
|
},
|
|
"lint-staged": {
|
|
"sdk/**": [
|
|
"sh -c 'bun run types'",
|
|
"bun biome check --no-errors-on-unmatched --files-ignore-unknown=true"
|
|
],
|
|
"apps/{cli,cline-hub,examples}/**": [
|
|
"sh -c 'bun run types'",
|
|
"bun biome check --no-errors-on-unmatched --files-ignore-unknown=true"
|
|
]
|
|
},
|
|
"module": "index.ts",
|
|
"type": "module",
|
|
"engines": {
|
|
"bun": "1.4.2",
|
|
"node": ">=22"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.4.5",
|
|
"@types/bun": "^1.4.2",
|
|
"@types/node": "^25.3.5",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.3.2",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"peerDependencies": {
|
|
"nanoid": "^5.1.7",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"overrides": {
|
|
"axios": "1.18.0",
|
|
"fast-uri": ">=3.1.4",
|
|
"undici": ">=7.29.0 <8",
|
|
"@opentui/core": "0.4.3",
|
|
"@opentui/react": "0.4.3",
|
|
"tar-fs": ">=3.1.1",
|
|
"tar": "^7.5.2",
|
|
"js-yaml": ">=4.3.2 <5",
|
|
"serialize-javascript": ">=7.0.3",
|
|
"protobufjs": "7.6.5",
|
|
"mermaid": "11.16.1",
|
|
"diff": "8.0.4",
|
|
"@sap-cloud-sdk/connectivity": "4.9.1",
|
|
"@sap-cloud-sdk/http-client": "4.9.1",
|
|
"@sap-cloud-sdk/openapi": "4.9.1",
|
|
"@sap-cloud-sdk/resilience": "4.9.1",
|
|
"@sap-cloud-sdk/util": "4.9.1"
|
|
},
|
|
"trustedDependencies": [
|
|
"better-sqlite3",
|
|
"grpc-tools"
|
|
],
|
|
"packageManager": "bun@1.4.2",
|
|
"patchedDependencies": {
|
|
"@opentui-ui/dialog@0.1.2": "patches/@opentui-ui%2Fdialog@0.1.2.patch",
|
|
"ollama-ai-provider-v2@4.0.1": "patches/ollama-ai-provider-v2@4.0.1.patch",
|
|
"@shadcn/react@0.3.1": "patches/@shadcn%2Freact@0.3.1.patch"
|
|
}
|
|
}
|