mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-01 18:28:38 +00:00
Compare commits
46 Commits
v1.31.5
...
refactor/u
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0595ba8fed | ||
|
|
c7d4fa915e | ||
|
|
5352582fe5 | ||
|
|
5b9108ac18 | ||
|
|
cd3e8986d7 | ||
|
|
f175d20c4e | ||
|
|
0f93ef2781 | ||
|
|
10f35c238d | ||
|
|
805e283fb6 | ||
|
|
8570bd7bab | ||
|
|
5af2b719e2 | ||
|
|
9684aa0941 | ||
|
|
50ee3c7548 | ||
|
|
9a8fb116ef | ||
|
|
14e6b5b7b2 | ||
|
|
714c9214e6 | ||
|
|
c027dc0813 | ||
|
|
16954c883b | ||
|
|
9663f08fcb | ||
|
|
7ceaa9e326 | ||
|
|
d3adc7afb8 | ||
|
|
360aa514f9 | ||
|
|
68123dcc33 | ||
|
|
edc7d6d184 | ||
|
|
113c7631b8 | ||
|
|
7a82fb54dc | ||
|
|
447f352e7b | ||
|
|
3188ef5fee | ||
|
|
bb86236520 | ||
|
|
7023a8cf7b | ||
|
|
5d7d6e478e | ||
|
|
1083746df5 | ||
|
|
eec9701679 | ||
|
|
2323a576a6 | ||
|
|
3fd2353ffe | ||
|
|
b3445508e9 | ||
|
|
c412aac8fb | ||
|
|
18e5a88c48 | ||
|
|
dc5d73936a | ||
|
|
4bd07c3ece | ||
|
|
15171e1428 | ||
|
|
f99af1ff67 | ||
|
|
7b75ed0b72 | ||
|
|
2e326214e1 | ||
|
|
295b8846a7 | ||
|
|
80d010126f |
26
CHANGELOG.md
26
CHANGELOG.md
@@ -3,32 +3,6 @@
|
|||||||
All notable changes to CloudCLI UI will be documented in this file.
|
All notable changes to CloudCLI UI will be documented in this file.
|
||||||
|
|
||||||
|
|
||||||
## [1.31.5](https://github.com/siteboon/claudecodeui/compare/v1.31.4...v1.31.5) (2026-04-30)
|
|
||||||
|
|
||||||
### New Features
|
|
||||||
|
|
||||||
* add auto mode to claude code ([3f71d49](https://github.com/siteboon/claudecodeui/commit/3f71d4932b05dfedcdf816e2a3d7d0cd69c4f566))
|
|
||||||
|
|
||||||
## [1.31.4](https://github.com/siteboon/claudecodeui/compare/v1.31.3...v1.31.4) (2026-04-30)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* bump codex sdk to latest version ([658421c](https://github.com/siteboon/claudecodeui/commit/658421c1c44ec4eb58b69ec7b1844a9fba11a3f3))
|
|
||||||
|
|
||||||
## [1.31.3](https://github.com/siteboon/claudecodeui/compare/v1.31.2...v1.31.3) (2026-04-30)
|
|
||||||
|
|
||||||
## [1.31.2](https://github.com/siteboon/claudecodeui/compare/v1.31.0...v1.31.2) (2026-04-30)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* migrations for new sqlite schema ([0753c04](https://github.com/siteboon/claudecodeui/commit/0753c047837dab17b86ae4453027e30b465870f8))
|
|
||||||
|
|
||||||
## [1.31.0](https://github.com/siteboon/claudecodeui/compare/v1.30.0...v1.31.0) (2026-04-30)
|
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **/status:** use CLAUDE_MODELS.DEFAULT instead of stale 'claude-sonnet-4.5' fallback ([#723](https://github.com/siteboon/claudecodeui/issues/723)) ([b4a39c7](https://github.com/siteboon/claudecodeui/commit/b4a39c729710a6294c62eb742e99e05f3e3914e9))
|
|
||||||
|
|
||||||
## [1.30.0](https://github.com/siteboon/claudecodeui/compare/v1.29.5...v1.30.0) (2026-04-21)
|
## [1.30.0](https://github.com/siteboon/claudecodeui/compare/v1.29.5...v1.30.0) (2026-04-21)
|
||||||
|
|
||||||
### New Features
|
### New Features
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ CloudCLI has a plugin system that lets you add custom tabs with their own fronte
|
|||||||
|---|---|
|
|---|---|
|
||||||
| **[Project Stats](https://github.com/cloudcli-ai/cloudcli-plugin-starter)** | Shows file counts, lines of code, file-type breakdown, largest files, and recently modified files for your current project |
|
| **[Project Stats](https://github.com/cloudcli-ai/cloudcli-plugin-starter)** | Shows file counts, lines of code, file-type breakdown, largest files, and recently modified files for your current project |
|
||||||
| **[Web Terminal](https://github.com/cloudcli-ai/cloudcli-plugin-terminal)** | Full xterm.js terminal with multi-tab support|
|
| **[Web Terminal](https://github.com/cloudcli-ai/cloudcli-plugin-terminal)** | Full xterm.js terminal with multi-tab support|
|
||||||
| **[CloudCLI Scheduler](https://github.com/grostim/cloudcli-cron)** | Create workspace-scoped scheduled prompts and execute them through a local CLI such as Codex, Claude Code, or Gemini CLI|
|
|
||||||
### Build Your Own
|
### Build Your Own
|
||||||
|
|
||||||
**[Plugin Starter Template →](https://github.com/cloudcli-ai/cloudcli-plugin-starter)** — fork this repo to create your own plugin. It includes a working example with frontend rendering, live context updates, and RPC communication to a backend server.
|
**[Plugin Starter Template →](https://github.com/cloudcli-ai/cloudcli-plugin-starter)** — fork this repo to create your own plugin. It includes a working example with frontend rendering, live context updates, and RPC communication to a backend server.
|
||||||
|
|||||||
667
package-lock.json
generated
667
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@cloudcli-ai/cloudcli",
|
"name": "@cloudcli-ai/cloudcli",
|
||||||
"version": "1.31.5",
|
"version": "1.30.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@cloudcli-ai/cloudcli",
|
"name": "@cloudcli-ai/cloudcli",
|
||||||
"version": "1.31.5",
|
"version": "1.30.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
"@codemirror/theme-one-dark": "^6.1.2",
|
"@codemirror/theme-one-dark": "^6.1.2",
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
"@octokit/rest": "^22.0.0",
|
"@octokit/rest": "^22.0.0",
|
||||||
"@openai/codex-sdk": "^0.125.0",
|
"@openai/codex-sdk": "^0.101.0",
|
||||||
"@replit/codemirror-minimap": "^0.5.2",
|
"@replit/codemirror-minimap": "^0.5.2",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@uiw/react-codemirror": "^4.23.13",
|
"@uiw/react-codemirror": "^4.23.13",
|
||||||
@@ -36,7 +36,6 @@
|
|||||||
"chokidar": "^4.0.3",
|
"chokidar": "^4.0.3",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "^1.1.1",
|
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"cross-spawn": "^7.0.3",
|
"cross-spawn": "^7.0.3",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
@@ -3307,9 +3306,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@openai/codex": {
|
"node_modules/@openai/codex": {
|
||||||
"version": "0.125.0",
|
"version": "0.101.0",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0.tgz",
|
||||||
"integrity": "sha512-GiE9wlgL95u/5BRirY5d3EaRLU1tu7Y1R09R8lCHHVmcQdSmhS809FdPDWH3gIYHS7ZriAPqXwJ3aLA0WKl40Q==",
|
"integrity": "sha512-H874q5K5I3chrT588BaddMr7GNvRYypc8C1MKWytNUF2PgxWMko2g/2DgKbt5OdajZKMsWdbsPywu34KQGf5Qw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"codex": "bin/codex.js"
|
"codex": "bin/codex.js"
|
||||||
@@ -3318,19 +3317,19 @@
|
|||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@openai/codex-darwin-arm64": "npm:@openai/codex@0.125.0-darwin-arm64",
|
"@openai/codex-darwin-arm64": "npm:@openai/codex@0.101.0-darwin-arm64",
|
||||||
"@openai/codex-darwin-x64": "npm:@openai/codex@0.125.0-darwin-x64",
|
"@openai/codex-darwin-x64": "npm:@openai/codex@0.101.0-darwin-x64",
|
||||||
"@openai/codex-linux-arm64": "npm:@openai/codex@0.125.0-linux-arm64",
|
"@openai/codex-linux-arm64": "npm:@openai/codex@0.101.0-linux-arm64",
|
||||||
"@openai/codex-linux-x64": "npm:@openai/codex@0.125.0-linux-x64",
|
"@openai/codex-linux-x64": "npm:@openai/codex@0.101.0-linux-x64",
|
||||||
"@openai/codex-win32-arm64": "npm:@openai/codex@0.125.0-win32-arm64",
|
"@openai/codex-win32-arm64": "npm:@openai/codex@0.101.0-win32-arm64",
|
||||||
"@openai/codex-win32-x64": "npm:@openai/codex@0.125.0-win32-x64"
|
"@openai/codex-win32-x64": "npm:@openai/codex@0.101.0-win32-x64"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@openai/codex-darwin-arm64": {
|
"node_modules/@openai/codex-darwin-arm64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-darwin-arm64",
|
"version": "0.101.0-darwin-arm64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-darwin-arm64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-darwin-arm64.tgz",
|
||||||
"integrity": "sha512-Gn2fHiSO0XgyHp1OSd5DWUTm66Bv9UEuipW5pVEj1E+hWZCOrdqnYttllKFWtRGj5yiKefNX3JIxONgh/ZwlOQ==",
|
"integrity": "sha512-unk4rTRQQ9o0w2Upu35IsJHpoZHJ+tU/myn6LNhUjcP9FrjLnEcAQJ6WIMtdTYVPja1PGhFSO0DNxV79GMvehw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -3345,9 +3344,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@openai/codex-darwin-x64": {
|
"node_modules/@openai/codex-darwin-x64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-darwin-x64",
|
"version": "0.101.0-darwin-x64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-darwin-x64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-darwin-x64.tgz",
|
||||||
"integrity": "sha512-TZ5Lek2X/UXTI9LXFxzarvQaJeuTrqVh4POc7soO/8RclVnCxADnCf15sivxLd5eiFW4t0myGoeVoM4lciRiRg==",
|
"integrity": "sha512-+KFi1IapCQGd3vLQp2lI4xI3hu2QffDZYt7Fhfw6NxEFOKhHnTamRtQ5yI8jYQcYF+pQfYF2fyiuXLM1lITLQw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -3362,9 +3361,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@openai/codex-linux-arm64": {
|
"node_modules/@openai/codex-linux-arm64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-linux-arm64",
|
"version": "0.101.0-linux-arm64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-linux-arm64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-linux-arm64.tgz",
|
||||||
"integrity": "sha512-pPnJoJD6rZ2Iin0zNt/up36bO2/EOp2B+1/rPHu/lSq3PJbT3Fmnfut2kJy5LylXb7bGA2XQbtqOogZzIbnlkA==",
|
"integrity": "sha512-RkDnQeq7M6ZBtD+8i+I5ewjjOf02BcJq6r1kN4RBewfAQBsz6B73Ns3OrI2bHVRsuPtAf8Cf1S4xg/eFZT2Omg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -3379,9 +3378,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@openai/codex-linux-x64": {
|
"node_modules/@openai/codex-linux-x64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-linux-x64",
|
"version": "0.101.0-linux-x64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-linux-x64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-linux-x64.tgz",
|
||||||
"integrity": "sha512-K2NTTEeBpz/G+N2x17UGWfauRt3So+ir4f+U/60l5PPnYEJB/w3YZrlXo2G9og8Dm9BqtoBAjoPV74sRv9tWWQ==",
|
"integrity": "sha512-SJeEdQ4ReEU3nvtceZ1uY3me6oWoB3djr3GnZmAUCEUuYEWD1kRGprAyJB1N0B+8zhSv0SU2e9sX5t3aCV4AwQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -3395,12 +3394,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@openai/codex-sdk": {
|
"node_modules/@openai/codex-sdk": {
|
||||||
"version": "0.125.0",
|
"version": "0.101.0",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.125.0.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.101.0.tgz",
|
||||||
"integrity": "sha512-1xCIHdSbQVF880nJ2aVWdPIsWZbSpKODwuP9y/gvtChDYhYfYEW0DKp2H8ZlctkzIjlzS/WzYmP6ZZPHIvs2Dg==",
|
"integrity": "sha512-Lrar2pDvGUX64itSbMNKuNBzxh72UwKokY4TPuXJRURwGX0qyDi80n7DiVivC40BwFsQWNs6behSo/9Mr6PoLw==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@openai/codex": "0.125.0"
|
"@openai/codex": "0.101.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
@@ -3408,9 +3407,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@openai/codex-win32-arm64": {
|
"node_modules/@openai/codex-win32-arm64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-win32-arm64",
|
"version": "0.101.0-win32-arm64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-win32-arm64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-win32-arm64.tgz",
|
||||||
"integrity": "sha512-zxoUakw9oIHIFrAyk400XkkLBJFA6nOym0NDq6sQ/jhdcYraKqNSRCII2nsBwZHk+/4zgUvuk52iuutgysY/rQ==",
|
"integrity": "sha512-WQ8QsychjHyvlr+vCSTMbd2/yrBIZre5tRuM79eZi973BJz0CSEiFsNSGg5fvpnJuiHHawZ/8HWeir7nlatamQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -3425,9 +3424,9 @@
|
|||||||
},
|
},
|
||||||
"node_modules/@openai/codex-win32-x64": {
|
"node_modules/@openai/codex-win32-x64": {
|
||||||
"name": "@openai/codex",
|
"name": "@openai/codex",
|
||||||
"version": "0.125.0-win32-x64",
|
"version": "0.101.0-win32-x64",
|
||||||
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.125.0-win32-x64.tgz",
|
"resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-win32-x64.tgz",
|
||||||
"integrity": "sha512-ofpOK+OWH5QFuUZ9pTM0d/PcXUXiIP5z5DpRcE9MlucJoyOl4Zy4Nu3NcuHF4YzCkZMQb6x3j0tjDEPHKqNQzw==",
|
"integrity": "sha512-H+7h9x0fYrJRUZZHCA62Dzb/CS5Scl1sUw1aamfmHJzzorX+uTFOgGsibzqFpHTd6nRM4q8//fCdSxe5wUpOQQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -3464,447 +3463,6 @@
|
|||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@radix-ui/primitive": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-compose-refs": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-context": {
|
|
||||||
"version": "1.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",
|
|
||||||
"integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-dialog": {
|
|
||||||
"version": "1.1.15",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz",
|
|
||||||
"integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/primitive": "1.1.3",
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2",
|
|
||||||
"@radix-ui/react-context": "1.1.2",
|
|
||||||
"@radix-ui/react-dismissable-layer": "1.1.11",
|
|
||||||
"@radix-ui/react-focus-guards": "1.1.3",
|
|
||||||
"@radix-ui/react-focus-scope": "1.1.7",
|
|
||||||
"@radix-ui/react-id": "1.1.1",
|
|
||||||
"@radix-ui/react-portal": "1.1.9",
|
|
||||||
"@radix-ui/react-presence": "1.1.5",
|
|
||||||
"@radix-ui/react-primitive": "2.1.3",
|
|
||||||
"@radix-ui/react-slot": "1.2.3",
|
|
||||||
"@radix-ui/react-use-controllable-state": "1.2.2",
|
|
||||||
"aria-hidden": "^1.2.4",
|
|
||||||
"react-remove-scroll": "^2.6.3"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-slot": "1.2.3"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-dismissable-layer": {
|
|
||||||
"version": "1.1.11",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz",
|
|
||||||
"integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/primitive": "1.1.3",
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2",
|
|
||||||
"@radix-ui/react-primitive": "2.1.3",
|
|
||||||
"@radix-ui/react-use-callback-ref": "1.1.1",
|
|
||||||
"@radix-ui/react-use-escape-keydown": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-slot": "1.2.3"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-focus-guards": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-focus-scope": {
|
|
||||||
"version": "1.1.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",
|
|
||||||
"integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2",
|
|
||||||
"@radix-ui/react-primitive": "2.1.3",
|
|
||||||
"@radix-ui/react-use-callback-ref": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-slot": "1.2.3"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-id": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-portal": {
|
|
||||||
"version": "1.1.9",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",
|
|
||||||
"integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-primitive": "2.1.3",
|
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive": {
|
|
||||||
"version": "2.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
|
|
||||||
"integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-slot": "1.2.3"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-presence": {
|
|
||||||
"version": "1.1.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.5.tgz",
|
|
||||||
"integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2",
|
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-primitive": {
|
|
||||||
"version": "2.1.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz",
|
|
||||||
"integrity": "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-slot": "1.2.4"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"@types/react-dom": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"@types/react-dom": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot": {
|
|
||||||
"version": "1.2.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.4.tgz",
|
|
||||||
"integrity": "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-slot": {
|
|
||||||
"version": "1.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",
|
|
||||||
"integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-compose-refs": "1.1.2"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-use-callback-ref": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-use-controllable-state": {
|
|
||||||
"version": "1.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",
|
|
||||||
"integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-use-effect-event": "0.0.2",
|
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-use-effect-event": {
|
|
||||||
"version": "0.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",
|
|
||||||
"integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-use-layout-effect": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-use-escape-keydown": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-use-callback-ref": "1.1.1"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@radix-ui/react-use-layout-effect": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@release-it/conventional-changelog": {
|
"node_modules/@release-it/conventional-changelog": {
|
||||||
"version": "10.0.5",
|
"version": "10.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-10.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@release-it/conventional-changelog/-/conventional-changelog-10.0.5.tgz",
|
||||||
@@ -4553,7 +4111,7 @@
|
|||||||
"version": "18.3.7",
|
"version": "18.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
|
||||||
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
|
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
|
||||||
"devOptional": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "^18.0.0"
|
"@types/react": "^18.0.0"
|
||||||
@@ -5526,18 +5084,6 @@
|
|||||||
"sprintf-js": "~1.0.2"
|
"sprintf-js": "~1.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/aria-hidden": {
|
|
||||||
"version": "1.2.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",
|
|
||||||
"integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/array-buffer-byte-length": {
|
"node_modules/array-buffer-byte-length": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",
|
||||||
@@ -6640,22 +6186,6 @@
|
|||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cmdk": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@radix-ui/react-compose-refs": "^1.1.1",
|
|
||||||
"@radix-ui/react-dialog": "^1.1.6",
|
|
||||||
"@radix-ui/react-id": "^1.1.0",
|
|
||||||
"@radix-ui/react-primitive": "^2.0.2"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^18 || ^19 || ^19.0.0-rc",
|
|
||||||
"react-dom": "^18 || ^19 || ^19.0.0-rc"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/codemirror": {
|
"node_modules/codemirror": {
|
||||||
"version": "6.0.2",
|
"version": "6.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.2.tgz",
|
||||||
@@ -7428,12 +6958,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/detect-node-es": {
|
|
||||||
"version": "1.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
|
|
||||||
"integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/devlop": {
|
"node_modules/devlop": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
|
||||||
@@ -9150,15 +8674,6 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/get-nonce": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
|
|
||||||
"integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/get-proto": {
|
"node_modules/get-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||||
@@ -14548,53 +14063,6 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-remove-scroll": {
|
|
||||||
"version": "2.7.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.2.tgz",
|
|
||||||
"integrity": "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"react-remove-scroll-bar": "^2.3.7",
|
|
||||||
"react-style-singleton": "^2.2.3",
|
|
||||||
"tslib": "^2.1.0",
|
|
||||||
"use-callback-ref": "^1.3.3",
|
|
||||||
"use-sidecar": "^1.1.3"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/react-remove-scroll-bar": {
|
|
||||||
"version": "2.3.8",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",
|
|
||||||
"integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"react-style-singleton": "^2.2.2",
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/react-router": {
|
"node_modules/react-router": {
|
||||||
"version": "6.30.1",
|
"version": "6.30.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.1.tgz",
|
||||||
@@ -14627,28 +14095,6 @@
|
|||||||
"react-dom": ">=16.8"
|
"react-dom": ">=16.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-style-singleton": {
|
|
||||||
"version": "2.2.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",
|
|
||||||
"integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"get-nonce": "^1.0.0",
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/react-syntax-highlighter": {
|
"node_modules/react-syntax-highlighter": {
|
||||||
"version": "15.6.6",
|
"version": "15.6.6",
|
||||||
"resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.6.6.tgz",
|
||||||
@@ -18146,49 +17592,6 @@
|
|||||||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/use-callback-ref": {
|
|
||||||
"version": "1.3.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",
|
|
||||||
"integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/use-sidecar": {
|
|
||||||
"version": "1.1.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
|
|
||||||
"integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"detect-node-es": "^1.1.0",
|
|
||||||
"tslib": "^2.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@types/react": "*",
|
|
||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
||||||
},
|
|
||||||
"peerDependenciesMeta": {
|
|
||||||
"@types/react": {
|
|
||||||
"optional": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/use-sync-external-store": {
|
"node_modules/use-sync-external-store": {
|
||||||
"version": "1.6.0",
|
"version": "1.6.0",
|
||||||
"resolved": "https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
|
"resolved": "https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cloudcli-ai/cloudcli",
|
"name": "@cloudcli-ai/cloudcli",
|
||||||
"version": "1.31.5",
|
"version": "1.30.0",
|
||||||
"description": "A web-based UI for Claude Code CLI",
|
"description": "A web-based UI for Claude Code CLI",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist-server/server/index.js",
|
"main": "dist-server/server/index.js",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
"@codemirror/theme-one-dark": "^6.1.2",
|
"@codemirror/theme-one-dark": "^6.1.2",
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
"@octokit/rest": "^22.0.0",
|
"@octokit/rest": "^22.0.0",
|
||||||
"@openai/codex-sdk": "^0.125.0",
|
"@openai/codex-sdk": "^0.101.0",
|
||||||
"@replit/codemirror-minimap": "^0.5.2",
|
"@replit/codemirror-minimap": "^0.5.2",
|
||||||
"@tailwindcss/typography": "^0.5.16",
|
"@tailwindcss/typography": "^0.5.16",
|
||||||
"@uiw/react-codemirror": "^4.23.13",
|
"@uiw/react-codemirror": "^4.23.13",
|
||||||
@@ -91,7 +91,6 @@
|
|||||||
"chokidar": "^4.0.3",
|
"chokidar": "^4.0.3",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "^1.1.1",
|
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"cross-spawn": "^7.0.3",
|
"cross-spawn": "^7.0.3",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ const migrateLegacySessionNames = (db: Database): void => {
|
|||||||
COALESCE(created_at, CURRENT_TIMESTAMP),
|
COALESCE(created_at, CURRENT_TIMESTAMP),
|
||||||
COALESCE(updated_at, CURRENT_TIMESTAMP)
|
COALESCE(updated_at, CURRENT_TIMESTAMP)
|
||||||
FROM session_names
|
FROM session_names
|
||||||
WHERE true
|
|
||||||
ON CONFLICT(session_id) DO UPDATE SET
|
ON CONFLICT(session_id) DO UPDATE SET
|
||||||
provider = excluded.provider,
|
provider = excluded.provider,
|
||||||
custom_name = COALESCE(excluded.custom_name, sessions.custom_name),
|
custom_name = COALESCE(excluded.custom_name, sessions.custom_name),
|
||||||
|
|||||||
@@ -320,7 +320,7 @@ Custom commands can be created in:
|
|||||||
packageName,
|
packageName,
|
||||||
uptime: uptimeFormatted,
|
uptime: uptimeFormatted,
|
||||||
uptimeSeconds: Math.floor(uptime),
|
uptimeSeconds: Math.floor(uptime),
|
||||||
model: context?.model || CLAUDE_MODELS.DEFAULT,
|
model: context?.model || 'claude-sonnet-4.5',
|
||||||
provider: context?.provider || 'claude',
|
provider: context?.provider || 'claude',
|
||||||
nodeVersion: process.version,
|
nodeVersion: process.version,
|
||||||
platform: process.platform
|
platform: process.platform
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
export const CLAUDE_MODELS = {
|
export const CLAUDE_MODELS = {
|
||||||
// Models in SDK format (what the actual SDK accepts)
|
// Models in SDK format (what the actual SDK accepts)
|
||||||
OPTIONS: [
|
OPTIONS: [
|
||||||
{ value: "opus", label: "Opus" },
|
|
||||||
{ value: "sonnet", label: "Sonnet" },
|
{ value: "sonnet", label: "Sonnet" },
|
||||||
|
{ value: "opus", label: "Opus" },
|
||||||
{ value: "haiku", label: "Haiku" },
|
{ value: "haiku", label: "Haiku" },
|
||||||
{ value: "claude-opus-4-6", label: "Opus 4.6" },
|
{ value: "claude-opus-4-6", label: "Opus 4.6" },
|
||||||
{ value: "opusplan", label: "Opus Plan" },
|
{ value: "opusplan", label: "Opus Plan" },
|
||||||
@@ -51,7 +51,7 @@ export const CURSOR_MODELS = {
|
|||||||
{ value: "grok", label: "Grok" },
|
{ value: "grok", label: "Grok" },
|
||||||
],
|
],
|
||||||
|
|
||||||
DEFAULT: "gpt-5.3-codex",
|
DEFAULT: "gpt-5-3-codex",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -59,7 +59,6 @@ export const CURSOR_MODELS = {
|
|||||||
*/
|
*/
|
||||||
export const CODEX_MODELS = {
|
export const CODEX_MODELS = {
|
||||||
OPTIONS: [
|
OPTIONS: [
|
||||||
{ value: "gpt-5.5", label: "GPT-5.5" },
|
|
||||||
{ value: "gpt-5.4", label: "GPT-5.4" },
|
{ value: "gpt-5.4", label: "GPT-5.4" },
|
||||||
{ value: "gpt-5.4-mini", label: "GPT-5.4 mini" },
|
{ value: "gpt-5.4-mini", label: "GPT-5.4 mini" },
|
||||||
{ value: "gpt-5.3-codex", label: "GPT-5.3 Codex" },
|
{ value: "gpt-5.3-codex", label: "GPT-5.3 Codex" },
|
||||||
@@ -94,13 +93,3 @@ export const GEMINI_MODELS = {
|
|||||||
|
|
||||||
DEFAULT: "gemini-3.1-pro-preview",
|
DEFAULT: "gemini-3.1-pro-preview",
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Ordered provider registry. Display order in selection UIs.
|
|
||||||
*/
|
|
||||||
export const PROVIDERS = [
|
|
||||||
{ id: "claude", name: "Anthropic", models: CLAUDE_MODELS },
|
|
||||||
{ id: "codex", name: "OpenAI", models: CODEX_MODELS },
|
|
||||||
{ id: "gemini", name: "Google", models: GEMINI_MODELS },
|
|
||||||
{ id: "cursor", name: "Cursor", models: CURSOR_MODELS },
|
|
||||||
];
|
|
||||||
|
|||||||
@@ -1,25 +1,14 @@
|
|||||||
import { useEffect, useRef } from 'react';
|
import { useEffect, useRef } from 'react';
|
||||||
import { useNavigate, useParams } from 'react-router-dom';
|
import { useNavigate, useParams } from 'react-router-dom';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import Sidebar from '../sidebar/view/Sidebar';
|
import Sidebar from '../sidebar/view/Sidebar';
|
||||||
import MainContent from '../main-content/view/MainContent';
|
import MainContent from '../main-content/view/MainContent';
|
||||||
import CommandPalette from '../command-palette/CommandPalette';
|
|
||||||
import { useWebSocket } from '../../contexts/WebSocketContext';
|
import { useWebSocket } from '../../contexts/WebSocketContext';
|
||||||
import { PaletteOpsProvider, usePaletteOpsRegister } from '../../contexts/PaletteOpsContext';
|
|
||||||
import { useDeviceSettings } from '../../hooks/useDeviceSettings';
|
import { useDeviceSettings } from '../../hooks/useDeviceSettings';
|
||||||
import { useSessionProtection } from '../../hooks/useSessionProtection';
|
import { useSessionProtection } from '../../hooks/useSessionProtection';
|
||||||
import { useProjectsState } from '../../hooks/useProjectsState';
|
import { useProjectsState } from '../../hooks/useProjectsState';
|
||||||
|
|
||||||
export default function AppContent() {
|
export default function AppContent() {
|
||||||
return (
|
|
||||||
<PaletteOpsProvider>
|
|
||||||
<AppContentInner />
|
|
||||||
</PaletteOpsProvider>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function AppContentInner() {
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { sessionId } = useParams<{ sessionId?: string }>();
|
const { sessionId } = useParams<{ sessionId?: string }>();
|
||||||
const { t } = useTranslation('common');
|
const { t } = useTranslation('common');
|
||||||
@@ -51,7 +40,6 @@ function AppContentInner() {
|
|||||||
openSettings,
|
openSettings,
|
||||||
refreshProjectsSilently,
|
refreshProjectsSilently,
|
||||||
sidebarSharedProps,
|
sidebarSharedProps,
|
||||||
handleNewSession,
|
|
||||||
} = useProjectsState({
|
} = useProjectsState({
|
||||||
sessionId,
|
sessionId,
|
||||||
navigate,
|
navigate,
|
||||||
@@ -60,10 +48,27 @@ function AppContentInner() {
|
|||||||
activeSessions,
|
activeSessions,
|
||||||
});
|
});
|
||||||
|
|
||||||
usePaletteOpsRegister({
|
useEffect(() => {
|
||||||
openSettings,
|
// Expose a non-blocking refresh for chat/session flows.
|
||||||
refreshProjects: refreshProjectsSilently,
|
// Full loading refreshes are still available through direct fetchProjects calls.
|
||||||
});
|
window.refreshProjects = refreshProjectsSilently;
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
if (window.refreshProjects === refreshProjectsSilently) {
|
||||||
|
delete window.refreshProjects;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, [refreshProjectsSilently]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.openSettings = openSettings;
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
if (window.openSettings === openSettings) {
|
||||||
|
delete window.openSettings;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}, [openSettings]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof navigator === 'undefined' || !('serviceWorker' in navigator)) {
|
if (typeof navigator === 'undefined' || !('serviceWorker' in navigator)) {
|
||||||
@@ -197,12 +202,6 @@ function AppContentInner() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CommandPalette
|
|
||||||
selectedProject={selectedProject}
|
|
||||||
onStartNewChat={handleNewSession}
|
|
||||||
onOpenSettings={() => openSettings()}
|
|
||||||
onShowTab={setActiveTab}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,16 +4,6 @@ import { CLAUDE_MODELS, CODEX_MODELS, CURSOR_MODELS, GEMINI_MODELS } from '../..
|
|||||||
import type { PendingPermissionRequest, PermissionMode } from '../types/types';
|
import type { PendingPermissionRequest, PermissionMode } from '../types/types';
|
||||||
import type { ProjectSession, LLMProvider } from '../../../types/app';
|
import type { ProjectSession, LLMProvider } from '../../../types/app';
|
||||||
|
|
||||||
const getPermissionModesForProvider = (provider: LLMProvider): PermissionMode[] => {
|
|
||||||
if (provider === 'codex') {
|
|
||||||
return ['default', 'acceptEdits', 'bypassPermissions'];
|
|
||||||
}
|
|
||||||
if (provider === 'claude') {
|
|
||||||
return ['default', 'auto', 'acceptEdits', 'bypassPermissions', 'plan'];
|
|
||||||
}
|
|
||||||
return ['default', 'acceptEdits', 'bypassPermissions', 'plan'];
|
|
||||||
};
|
|
||||||
|
|
||||||
interface UseChatProviderStateArgs {
|
interface UseChatProviderStateArgs {
|
||||||
selectedSession: ProjectSession | null;
|
selectedSession: ProjectSession | null;
|
||||||
}
|
}
|
||||||
@@ -44,10 +34,9 @@ export function useChatProviderState({ selectedSession }: UseChatProviderStateAr
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const savedMode = localStorage.getItem(`permissionMode-${selectedSession.id}`) as PermissionMode | null;
|
const savedMode = localStorage.getItem(`permissionMode-${selectedSession.id}`);
|
||||||
const validModes = getPermissionModesForProvider(provider);
|
setPermissionMode((savedMode as PermissionMode) || 'default');
|
||||||
setPermissionMode(savedMode && validModes.includes(savedMode) ? savedMode : 'default');
|
}, [selectedSession?.id]);
|
||||||
}, [selectedSession?.id, provider]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!selectedSession?.__provider || selectedSession.__provider === provider) {
|
if (!selectedSession?.__provider || selectedSession.__provider === provider) {
|
||||||
@@ -95,7 +84,10 @@ export function useChatProviderState({ selectedSession }: UseChatProviderStateAr
|
|||||||
}, [provider]);
|
}, [provider]);
|
||||||
|
|
||||||
const cyclePermissionMode = useCallback(() => {
|
const cyclePermissionMode = useCallback(() => {
|
||||||
const modes = getPermissionModesForProvider(provider);
|
const modes: PermissionMode[] =
|
||||||
|
provider === 'codex'
|
||||||
|
? ['default', 'acceptEdits', 'bypassPermissions']
|
||||||
|
: ['default', 'acceptEdits', 'bypassPermissions', 'plan'];
|
||||||
|
|
||||||
const currentIndex = modes.indexOf(permissionMode);
|
const currentIndex = modes.indexOf(permissionMode);
|
||||||
const nextIndex = (currentIndex + 1) % modes.length;
|
const nextIndex = (currentIndex + 1) % modes.length;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { useEffect, useRef } from 'react';
|
import { useEffect, useRef } from 'react';
|
||||||
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
||||||
import { usePaletteOps } from '../../../contexts/PaletteOpsContext';
|
|
||||||
import type { PendingPermissionRequest } from '../types/types';
|
import type { PendingPermissionRequest } from '../types/types';
|
||||||
import type { Project, ProjectSession, LLMProvider } from '../../../types/app';
|
import type { Project, ProjectSession, LLMProvider } from '../../../types/app';
|
||||||
import type { SessionStore, NormalizedMessage } from '../../../stores/useSessionStore';
|
import type { SessionStore, NormalizedMessage } from '../../../stores/useSessionStore';
|
||||||
@@ -100,7 +99,6 @@ export function useChatRealtimeHandlers({
|
|||||||
onWebSocketReconnect,
|
onWebSocketReconnect,
|
||||||
sessionStore,
|
sessionStore,
|
||||||
}: UseChatRealtimeHandlersArgs) {
|
}: UseChatRealtimeHandlersArgs) {
|
||||||
const paletteOps = usePaletteOps();
|
|
||||||
const lastProcessedMessageRef = useRef<LatestChatMessage | null>(null);
|
const lastProcessedMessageRef = useRef<LatestChatMessage | null>(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -282,7 +280,9 @@ export function useChatRealtimeHandlers({
|
|||||||
onNavigateToSession?.(actualId);
|
onNavigateToSession?.(actualId);
|
||||||
}
|
}
|
||||||
sessionStorage.removeItem('pendingSessionId');
|
sessionStorage.removeItem('pendingSessionId');
|
||||||
setTimeout(() => { void paletteOps.refreshProjects(); }, 500);
|
if (window.refreshProjects) {
|
||||||
|
setTimeout(() => window.refreshProjects?.(), 500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -365,6 +365,5 @@ export function useChatRealtimeHandlers({
|
|||||||
onNavigateToSession,
|
onNavigateToSession,
|
||||||
onWebSocketReconnect,
|
onWebSocketReconnect,
|
||||||
sessionStore,
|
sessionStore,
|
||||||
paletteOps,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { Project, ProjectSession, LLMProvider } from '../../../types/app';
|
|||||||
|
|
||||||
export type Provider = LLMProvider;
|
export type Provider = LLMProvider;
|
||||||
|
|
||||||
export type PermissionMode = 'default' | 'acceptEdits' | 'auto' | 'bypassPermissions' | 'plan';
|
export type PermissionMode = 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan';
|
||||||
|
|
||||||
export interface ChatImage {
|
export interface ChatImage {
|
||||||
data: string;
|
data: string;
|
||||||
|
|||||||
@@ -325,11 +325,9 @@ export default function ChatComposer({
|
|||||||
? 'border-border/60 bg-muted/50 text-muted-foreground hover:bg-muted'
|
? 'border-border/60 bg-muted/50 text-muted-foreground hover:bg-muted'
|
||||||
: permissionMode === 'acceptEdits'
|
: permissionMode === 'acceptEdits'
|
||||||
? 'border-green-300/60 bg-green-50 text-green-700 hover:bg-green-100 dark:border-green-600/40 dark:bg-green-900/15 dark:text-green-300 dark:hover:bg-green-900/25'
|
? 'border-green-300/60 bg-green-50 text-green-700 hover:bg-green-100 dark:border-green-600/40 dark:bg-green-900/15 dark:text-green-300 dark:hover:bg-green-900/25'
|
||||||
: permissionMode === 'auto'
|
: permissionMode === 'bypassPermissions'
|
||||||
? 'border-amber-300/60 bg-amber-50 text-amber-700 hover:bg-amber-100 dark:border-amber-600/40 dark:bg-amber-900/15 dark:text-amber-300 dark:hover:bg-amber-900/25'
|
? 'border-orange-300/60 bg-orange-50 text-orange-700 hover:bg-orange-100 dark:border-orange-600/40 dark:bg-orange-900/15 dark:text-orange-300 dark:hover:bg-orange-900/25'
|
||||||
: permissionMode === 'bypassPermissions'
|
: 'border-primary/20 bg-primary/5 text-primary hover:bg-primary/10'
|
||||||
? 'border-orange-300/60 bg-orange-50 text-orange-700 hover:bg-orange-100 dark:border-orange-600/40 dark:bg-orange-900/15 dark:text-orange-300 dark:hover:bg-orange-900/25'
|
|
||||||
: 'border-primary/20 bg-primary/5 text-primary hover:bg-primary/10'
|
|
||||||
}`}
|
}`}
|
||||||
title={t('input.clickToChangeMode')}
|
title={t('input.clickToChangeMode')}
|
||||||
>
|
>
|
||||||
@@ -340,17 +338,14 @@ export default function ChatComposer({
|
|||||||
? 'bg-muted-foreground'
|
? 'bg-muted-foreground'
|
||||||
: permissionMode === 'acceptEdits'
|
: permissionMode === 'acceptEdits'
|
||||||
? 'bg-green-500'
|
? 'bg-green-500'
|
||||||
: permissionMode === 'auto'
|
: permissionMode === 'bypassPermissions'
|
||||||
? 'bg-amber-500'
|
? 'bg-orange-500'
|
||||||
: permissionMode === 'bypassPermissions'
|
: 'bg-primary'
|
||||||
? 'bg-orange-500'
|
|
||||||
: 'bg-primary'
|
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
<span className="hidden whitespace-nowrap sm:inline">
|
<span className="hidden whitespace-nowrap sm:inline">
|
||||||
{permissionMode === 'default' && t('codex.modes.default')}
|
{permissionMode === 'default' && t('codex.modes.default')}
|
||||||
{permissionMode === 'acceptEdits' && t('codex.modes.acceptEdits')}
|
{permissionMode === 'acceptEdits' && t('codex.modes.acceptEdits')}
|
||||||
{permissionMode === 'auto' && t('codex.modes.auto')}
|
|
||||||
{permissionMode === 'bypassPermissions' && t('codex.modes.bypassPermissions')}
|
{permissionMode === 'bypassPermissions' && t('codex.modes.bypassPermissions')}
|
||||||
{permissionMode === 'plan' && t('codex.modes.plan')}
|
{permissionMode === 'plan' && t('codex.modes.plan')}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
||||||
import { Check, ChevronDown } from "lucide-react";
|
import { Check, ChevronDown } from "lucide-react";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { useServerPlatform } from "../../../../hooks/useServerPlatform";
|
import { useServerPlatform } from "../../../../hooks/useServerPlatform";
|
||||||
import SessionProviderLogo from "../../../llm-logo-provider/SessionProviderLogo";
|
import SessionProviderLogo from "../../../llm-logo-provider/SessionProviderLogo";
|
||||||
@@ -9,7 +9,6 @@ import {
|
|||||||
CURSOR_MODELS,
|
CURSOR_MODELS,
|
||||||
CODEX_MODELS,
|
CODEX_MODELS,
|
||||||
GEMINI_MODELS,
|
GEMINI_MODELS,
|
||||||
PROVIDERS,
|
|
||||||
} from "../../../../../shared/modelConstants";
|
} from "../../../../../shared/modelConstants";
|
||||||
import type { ProjectSession, LLMProvider } from "../../../../types/app";
|
import type { ProjectSession, LLMProvider } from "../../../../types/app";
|
||||||
import { NextTaskBanner } from "../../../task-master";
|
import { NextTaskBanner } from "../../../task-master";
|
||||||
@@ -27,9 +26,6 @@ import {
|
|||||||
Card,
|
Card,
|
||||||
} from "../../../../shared/view/ui";
|
} from "../../../../shared/view/ui";
|
||||||
|
|
||||||
const MOD_KEY =
|
|
||||||
typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform) ? "⌘" : "Ctrl";
|
|
||||||
|
|
||||||
type ProviderSelectionEmptyStateProps = {
|
type ProviderSelectionEmptyStateProps = {
|
||||||
selectedSession: ProjectSession | null;
|
selectedSession: ProjectSession | null;
|
||||||
currentSessionId: string | null;
|
currentSessionId: string | null;
|
||||||
@@ -56,11 +52,12 @@ type ProviderGroup = {
|
|||||||
models: { value: string; label: string }[];
|
models: { value: string; label: string }[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const PROVIDER_GROUPS: ProviderGroup[] = PROVIDERS.map((p) => ({
|
const PROVIDER_GROUPS: ProviderGroup[] = [
|
||||||
id: p.id as LLMProvider,
|
{ id: "claude", name: "Anthropic", models: CLAUDE_MODELS.OPTIONS },
|
||||||
name: p.name,
|
{ id: "cursor", name: "Cursor", models: CURSOR_MODELS.OPTIONS },
|
||||||
models: p.models.OPTIONS,
|
{ id: "codex", name: "OpenAI", models: CODEX_MODELS.OPTIONS },
|
||||||
}));
|
{ id: "gemini", name: "Google", models: GEMINI_MODELS.OPTIONS },
|
||||||
|
];
|
||||||
|
|
||||||
function getModelConfig(p: LLMProvider) {
|
function getModelConfig(p: LLMProvider) {
|
||||||
if (p === "claude") return CLAUDE_MODELS;
|
if (p === "claude") return CLAUDE_MODELS;
|
||||||
@@ -234,14 +231,9 @@ export default function ProviderSelectionEmptyState({
|
|||||||
defaultValue: "No models found.",
|
defaultValue: "No models found.",
|
||||||
})}
|
})}
|
||||||
</CommandEmpty>
|
</CommandEmpty>
|
||||||
{visibleProviderGroups.map((group, idx) => (
|
{visibleProviderGroups.map((group) => (
|
||||||
<CommandGroup
|
<CommandGroup
|
||||||
key={group.id}
|
key={group.id}
|
||||||
className={
|
|
||||||
idx > 0
|
|
||||||
? "border-t border-border/40 [&_[cmdk-group-heading]]:mt-1 [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider"
|
|
||||||
: "[&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider"
|
|
||||||
}
|
|
||||||
heading={
|
heading={
|
||||||
<span className="flex items-center gap-1.5">
|
<span className="flex items-center gap-1.5">
|
||||||
<SessionProviderLogo provider={group.id} className="h-3.5 w-3.5 shrink-0" />
|
<SessionProviderLogo provider={group.id} className="h-3.5 w-3.5 shrink-0" />
|
||||||
@@ -256,7 +248,6 @@ export default function ProviderSelectionEmptyState({
|
|||||||
key={`${group.id}-${model.value}`}
|
key={`${group.id}-${model.value}`}
|
||||||
value={`${group.name} ${model.label}`}
|
value={`${group.name} ${model.label}`}
|
||||||
onSelect={() => handleModelSelect(group.id, model.value)}
|
onSelect={() => handleModelSelect(group.id, model.value)}
|
||||||
className="ml-4 border-l border-border/40 pl-4"
|
|
||||||
>
|
>
|
||||||
<span className="flex-1 truncate">{model.label}</span>
|
<span className="flex-1 truncate">{model.label}</span>
|
||||||
{isSelected && (
|
{isSelected && (
|
||||||
@@ -291,18 +282,6 @@ export default function ProviderSelectionEmptyState({
|
|||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p className="mt-3 flex items-center justify-center gap-1.5 text-center text-xs text-muted-foreground/60">
|
|
||||||
<Trans
|
|
||||||
i18nKey="providerSelection.pressToSearch"
|
|
||||||
values={{ shortcut: MOD_KEY === "⌘" ? "⌘K" : "Ctrl+K" }}
|
|
||||||
components={{
|
|
||||||
kbd: (
|
|
||||||
<kbd className="inline-flex items-center gap-0.5 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px]" />
|
|
||||||
),
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{provider && tasksEnabled && isTaskMasterInstalled && (
|
{provider && tasksEnabled && isTaskMasterInstalled && (
|
||||||
<div className="mt-5">
|
<div className="mt-5">
|
||||||
<NextTaskBanner
|
<NextTaskBanner
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { unifiedMergeView } from '@codemirror/merge';
|
|||||||
import type { Extension } from '@codemirror/state';
|
import type { Extension } from '@codemirror/state';
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { usePaletteOps } from '../../../contexts/PaletteOpsContext';
|
|
||||||
import { useCodeEditorDocument } from '../hooks/useCodeEditorDocument';
|
import { useCodeEditorDocument } from '../hooks/useCodeEditorDocument';
|
||||||
import { useCodeEditorSettings } from '../hooks/useCodeEditorSettings';
|
import { useCodeEditorSettings } from '../hooks/useCodeEditorSettings';
|
||||||
import { useEditorKeyboardShortcuts } from '../hooks/useEditorKeyboardShortcuts';
|
import { useEditorKeyboardShortcuts } from '../hooks/useEditorKeyboardShortcuts';
|
||||||
@@ -37,7 +36,6 @@ export default function CodeEditor({
|
|||||||
onPopOut = null,
|
onPopOut = null,
|
||||||
}: CodeEditorProps) {
|
}: CodeEditorProps) {
|
||||||
const { t } = useTranslation('codeEditor');
|
const { t } = useTranslation('codeEditor');
|
||||||
const paletteOps = usePaletteOps();
|
|
||||||
const [isFullscreen, setIsFullscreen] = useState(false);
|
const [isFullscreen, setIsFullscreen] = useState(false);
|
||||||
const [showDiff, setShowDiff] = useState(Boolean(file.diffInfo));
|
const [showDiff, setShowDiff] = useState(Boolean(file.diffInfo));
|
||||||
const [markdownPreview, setMarkdownPreview] = useState(false);
|
const [markdownPreview, setMarkdownPreview] = useState(false);
|
||||||
@@ -201,7 +199,7 @@ export default function CodeEditor({
|
|||||||
saving={saving}
|
saving={saving}
|
||||||
saveSuccess={saveSuccess}
|
saveSuccess={saveSuccess}
|
||||||
onToggleMarkdownPreview={() => setMarkdownPreview((previous) => !previous)}
|
onToggleMarkdownPreview={() => setMarkdownPreview((previous) => !previous)}
|
||||||
onOpenSettings={() => paletteOps.openSettings('appearance')}
|
onOpenSettings={() => window.openSettings?.('appearance')}
|
||||||
onDownload={handleDownload}
|
onDownload={handleDownload}
|
||||||
onSave={handleSave}
|
onSave={handleSave}
|
||||||
onToggleFullscreen={() => setIsFullscreen((previous) => !previous)}
|
onToggleFullscreen={() => setIsFullscreen((previous) => !previous)}
|
||||||
|
|||||||
@@ -1,373 +0,0 @@
|
|||||||
import * as React from 'react';
|
|
||||||
import { useNavigate } from 'react-router-dom';
|
|
||||||
import {
|
|
||||||
ArrowDownToLine,
|
|
||||||
ArrowUpFromLine,
|
|
||||||
ChevronRight,
|
|
||||||
FileText,
|
|
||||||
GitCommit,
|
|
||||||
GitMerge,
|
|
||||||
MessageSquare,
|
|
||||||
MessageSquarePlus,
|
|
||||||
RefreshCw,
|
|
||||||
Settings,
|
|
||||||
SunMoon,
|
|
||||||
X,
|
|
||||||
} from 'lucide-react';
|
|
||||||
|
|
||||||
import {
|
|
||||||
Command,
|
|
||||||
CommandEmpty,
|
|
||||||
CommandGroup,
|
|
||||||
CommandInput,
|
|
||||||
CommandItem,
|
|
||||||
CommandList,
|
|
||||||
Dialog,
|
|
||||||
DialogContent,
|
|
||||||
DialogTitle,
|
|
||||||
} from '../../shared/view/ui';
|
|
||||||
import { useTheme } from '../../contexts/ThemeContext';
|
|
||||||
import { usePaletteOps } from '../../contexts/PaletteOpsContext';
|
|
||||||
import { SETTINGS_MAIN_TABS } from '../settings/constants/constants';
|
|
||||||
import type { AppTab, Project } from '../../types/app';
|
|
||||||
|
|
||||||
import { useSessionsSource } from './sources/useSessionsSource';
|
|
||||||
import { useFilesSource } from './sources/useFilesSource';
|
|
||||||
import { useCommitsSource } from './sources/useCommitsSource';
|
|
||||||
import { useSessionMessageSearch } from './sources/useSessionMessageSearch';
|
|
||||||
import { useBranchesSource } from './sources/useBranchesSource';
|
|
||||||
import { useGitActions } from './sources/useGitActions';
|
|
||||||
|
|
||||||
type Page = 'actions' | 'files' | 'sessions' | 'commits' | 'branches';
|
|
||||||
|
|
||||||
const PAGE_LABELS: Record<Page, string> = {
|
|
||||||
actions: 'Actions',
|
|
||||||
files: 'Files',
|
|
||||||
sessions: 'Sessions',
|
|
||||||
commits: 'Commits',
|
|
||||||
branches: 'Branches',
|
|
||||||
};
|
|
||||||
|
|
||||||
type CommandPaletteProps = {
|
|
||||||
selectedProject: Project | null;
|
|
||||||
onStartNewChat: (project: Project) => void;
|
|
||||||
onOpenSettings: (tab?: string) => void;
|
|
||||||
onShowTab?: (tab: AppTab) => void;
|
|
||||||
};
|
|
||||||
|
|
||||||
const NAV_TABS: Array<{ id: AppTab; label: string; keywords: string }> = [
|
|
||||||
{ id: 'chat', label: 'Go to Chat', keywords: 'chat messages conversation' },
|
|
||||||
{ id: 'files', label: 'Go to Files', keywords: 'files file tree explorer' },
|
|
||||||
{ id: 'shell', label: 'Go to Shell', keywords: 'shell terminal console' },
|
|
||||||
{ id: 'git', label: 'Go to Git', keywords: 'git diff branches' },
|
|
||||||
{ id: 'tasks', label: 'Go to Tasks', keywords: 'tasks taskmaster' },
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function CommandPalette({
|
|
||||||
selectedProject,
|
|
||||||
onStartNewChat,
|
|
||||||
onOpenSettings,
|
|
||||||
onShowTab,
|
|
||||||
}: CommandPaletteProps) {
|
|
||||||
const [open, setOpen] = React.useState(false);
|
|
||||||
const [search, setSearch] = React.useState('');
|
|
||||||
const [pages, setPages] = React.useState<Page[]>([]);
|
|
||||||
const { toggleDarkMode } = useTheme();
|
|
||||||
const navigate = useNavigate();
|
|
||||||
const ops = usePaletteOps();
|
|
||||||
|
|
||||||
const page = pages.at(-1);
|
|
||||||
|
|
||||||
React.useEffect(() => {
|
|
||||||
const handleKeyDown = (e: KeyboardEvent) => {
|
|
||||||
const isCmdK = (e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey && e.key.toLowerCase() === 'k';
|
|
||||||
if (!isCmdK) return;
|
|
||||||
e.preventDefault();
|
|
||||||
setOpen((prev) => !prev);
|
|
||||||
};
|
|
||||||
document.addEventListener('keydown', handleKeyDown);
|
|
||||||
return () => document.removeEventListener('keydown', handleKeyDown);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
React.useEffect(() => {
|
|
||||||
if (!open) {
|
|
||||||
setSearch('');
|
|
||||||
setPages([]);
|
|
||||||
}
|
|
||||||
}, [open]);
|
|
||||||
|
|
||||||
const projectId = selectedProject?.projectId;
|
|
||||||
|
|
||||||
const showActions = !page || page === 'actions';
|
|
||||||
const showSessions = !page || page === 'sessions';
|
|
||||||
const showFiles = !page || page === 'files';
|
|
||||||
const showCommits = !page || page === 'commits';
|
|
||||||
const showBranches = !page || page === 'branches' || page === 'actions';
|
|
||||||
|
|
||||||
const sessions = useSessionsSource(projectId, open && showSessions);
|
|
||||||
const messageMatches = useSessionMessageSearch(projectId, search, open && showSessions);
|
|
||||||
const files = useFilesSource(projectId, open && showFiles);
|
|
||||||
const commits = useCommitsSource(projectId, open && showCommits);
|
|
||||||
const branches = useBranchesSource(projectId, open && showBranches);
|
|
||||||
const git = useGitActions(projectId);
|
|
||||||
|
|
||||||
const sessionRows = React.useMemo(() => {
|
|
||||||
if (!showSessions) return [];
|
|
||||||
type Row = { id: string; label: string; provider?: string; snippet?: string };
|
|
||||||
const byId = new Map<string, Row>();
|
|
||||||
for (const s of sessions) {
|
|
||||||
byId.set(s.id, { id: s.id, label: s.label, provider: s.provider });
|
|
||||||
}
|
|
||||||
for (const m of messageMatches) {
|
|
||||||
const existing = byId.get(m.sessionId);
|
|
||||||
if (existing) {
|
|
||||||
existing.snippet = m.snippet;
|
|
||||||
} else {
|
|
||||||
byId.set(m.sessionId, {
|
|
||||||
id: m.sessionId,
|
|
||||||
label: m.label,
|
|
||||||
provider: m.provider,
|
|
||||||
snippet: m.snippet,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return Array.from(byId.values());
|
|
||||||
}, [sessions, messageMatches, showSessions]);
|
|
||||||
|
|
||||||
const run = React.useCallback((fn: () => void) => {
|
|
||||||
setOpen(false);
|
|
||||||
fn();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const pushPage = React.useCallback((next: Page) => {
|
|
||||||
setSearch('');
|
|
||||||
setPages((prev) => [...prev, next]);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const popPage = React.useCallback(() => {
|
|
||||||
setSearch('');
|
|
||||||
setPages((prev) => prev.slice(0, -1));
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleKeyDown = React.useCallback((e: React.KeyboardEvent) => {
|
|
||||||
if (e.key === 'Backspace' && !search && pages.length > 0) {
|
|
||||||
e.preventDefault();
|
|
||||||
popPage();
|
|
||||||
}
|
|
||||||
}, [search, pages.length, popPage]);
|
|
||||||
|
|
||||||
const startNewChatDisabled = !selectedProject;
|
|
||||||
const browseLimit = 5;
|
|
||||||
const filesShown = page === 'files' ? files : files.slice(0, browseLimit);
|
|
||||||
const commitsShown = page === 'commits' ? commits : commits.slice(0, browseLimit);
|
|
||||||
const sessionsShown = page === 'sessions' ? sessionRows : sessionRows.slice(0, browseLimit);
|
|
||||||
const branchesShown = page === 'branches' ? branches : branches.slice(0, browseLimit);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Dialog open={open} onOpenChange={setOpen}>
|
|
||||||
<DialogContent className="max-w-xl overflow-hidden p-0">
|
|
||||||
<DialogTitle>Command palette</DialogTitle>
|
|
||||||
<Command label="Command palette" onKeyDown={handleKeyDown}>
|
|
||||||
{page && (
|
|
||||||
<div className="flex items-center gap-2 border-b px-3 py-2">
|
|
||||||
<span className="inline-flex items-center gap-1 rounded-md bg-accent px-2 py-0.5 text-xs font-medium text-accent-foreground">
|
|
||||||
{PAGE_LABELS[page]}
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
onClick={popPage}
|
|
||||||
aria-label="Back to all"
|
|
||||||
className="ml-0.5 rounded-sm opacity-70 hover:opacity-100"
|
|
||||||
>
|
|
||||||
<X className="h-3 w-3" />
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
<span className="text-xs text-muted-foreground">Backspace to go back</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<CommandInput
|
|
||||||
placeholder={page ? `Search ${PAGE_LABELS[page].toLowerCase()}…` : 'Type to search anything…'}
|
|
||||||
value={search}
|
|
||||||
onValueChange={setSearch}
|
|
||||||
/>
|
|
||||||
<CommandList>
|
|
||||||
<CommandEmpty>No results.</CommandEmpty>
|
|
||||||
|
|
||||||
{showActions && (
|
|
||||||
<CommandGroup heading="Actions">
|
|
||||||
<CommandItem
|
|
||||||
value="Start new chat"
|
|
||||||
disabled={startNewChatDisabled}
|
|
||||||
onSelect={() => {
|
|
||||||
if (!selectedProject) return;
|
|
||||||
run(() => onStartNewChat(selectedProject));
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<MessageSquarePlus className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Start new chat</span>
|
|
||||||
{startNewChatDisabled && (
|
|
||||||
<span className="text-xs text-muted-foreground">Select a project first</span>
|
|
||||||
)}
|
|
||||||
</CommandItem>
|
|
||||||
<CommandItem value="Open settings" onSelect={() => run(() => onOpenSettings())}>
|
|
||||||
<Settings className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Open settings</span>
|
|
||||||
</CommandItem>
|
|
||||||
<CommandItem value="Toggle theme dark light mode" onSelect={() => run(toggleDarkMode)}>
|
|
||||||
<SunMoon className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Toggle theme</span>
|
|
||||||
</CommandItem>
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showActions && (
|
|
||||||
<CommandGroup heading="Navigate">
|
|
||||||
{NAV_TABS.map((tab) => (
|
|
||||||
<CommandItem
|
|
||||||
key={tab.id as string}
|
|
||||||
value={`${tab.label} ${tab.keywords}`}
|
|
||||||
onSelect={() => run(() => onShowTab?.(tab.id))}
|
|
||||||
>
|
|
||||||
<span className="flex-1">{tab.label}</span>
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showActions && projectId && (
|
|
||||||
<CommandGroup heading="Git">
|
|
||||||
<CommandItem
|
|
||||||
value="Git Fetch remote"
|
|
||||||
onSelect={() => run(() => { void git.fetch(); onShowTab?.('git'); })}
|
|
||||||
>
|
|
||||||
<RefreshCw className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Git: Fetch</span>
|
|
||||||
</CommandItem>
|
|
||||||
<CommandItem
|
|
||||||
value="Git Pull merge upstream"
|
|
||||||
onSelect={() => run(() => { void git.pull(); onShowTab?.('git'); })}
|
|
||||||
>
|
|
||||||
<ArrowDownToLine className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Git: Pull</span>
|
|
||||||
</CommandItem>
|
|
||||||
<CommandItem
|
|
||||||
value="Git Push origin remote"
|
|
||||||
onSelect={() => run(() => { void git.push(); onShowTab?.('git'); })}
|
|
||||||
>
|
|
||||||
<ArrowUpFromLine className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Git: Push</span>
|
|
||||||
</CommandItem>
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showActions && (
|
|
||||||
<CommandGroup heading="Settings">
|
|
||||||
{SETTINGS_MAIN_TABS.map(({ id, label, keywords, icon: Icon }) => (
|
|
||||||
<CommandItem
|
|
||||||
key={id}
|
|
||||||
value={`Settings ${label} ${keywords}`}
|
|
||||||
onSelect={() => run(() => onOpenSettings(id))}
|
|
||||||
>
|
|
||||||
<Icon className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1">Settings: {label}</span>
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showSessions && projectId && sessionsShown.length > 0 && (
|
|
||||||
<CommandGroup heading="Sessions">
|
|
||||||
{sessionsShown.map((s) => (
|
|
||||||
<CommandItem
|
|
||||||
key={s.id}
|
|
||||||
value={`${s.label} ${s.snippet ?? ''} ${s.id}`.trim()}
|
|
||||||
onSelect={() => run(() => navigate(`/session/${s.id}`))}
|
|
||||||
>
|
|
||||||
<MessageSquare className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<div className="flex min-w-0 flex-1 flex-col">
|
|
||||||
<span className="truncate">{s.label}</span>
|
|
||||||
{s.snippet && (
|
|
||||||
<span className="truncate text-xs text-muted-foreground">{s.snippet}</span>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
{s.provider && (
|
|
||||||
<span className="text-xs text-muted-foreground">{s.provider}</span>
|
|
||||||
)}
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
{!page && sessionRows.length > browseLimit && (
|
|
||||||
<BrowseAllItem label={`Browse all sessions (${sessionRows.length})`} onSelect={() => pushPage('sessions')} />
|
|
||||||
)}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showFiles && projectId && filesShown.length > 0 && (
|
|
||||||
<CommandGroup heading="Files">
|
|
||||||
{filesShown.map((f) => (
|
|
||||||
<CommandItem
|
|
||||||
key={f.path}
|
|
||||||
value={f.path}
|
|
||||||
onSelect={() => run(() => ops.openFile(f.path))}
|
|
||||||
>
|
|
||||||
<FileText className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1 truncate">{f.name}</span>
|
|
||||||
<span className="truncate text-xs text-muted-foreground">{f.path}</span>
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
{!page && files.length > browseLimit && (
|
|
||||||
<BrowseAllItem label={`Browse all files (${files.length})`} onSelect={() => pushPage('files')} />
|
|
||||||
)}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showCommits && projectId && commitsShown.length > 0 && (
|
|
||||||
<CommandGroup heading="Commits">
|
|
||||||
{commitsShown.map((c) => (
|
|
||||||
<CommandItem
|
|
||||||
key={c.hash}
|
|
||||||
value={`${c.message} ${c.author} ${c.shortHash}`}
|
|
||||||
onSelect={() => run(() => onShowTab?.('git'))}
|
|
||||||
>
|
|
||||||
<GitCommit className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="font-mono text-xs text-muted-foreground">{c.shortHash}</span>
|
|
||||||
<span className="flex-1 truncate">{c.message}</span>
|
|
||||||
<span className="truncate text-xs text-muted-foreground">{c.author}</span>
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
{!page && commits.length > browseLimit && (
|
|
||||||
<BrowseAllItem label={`Browse all commits (${commits.length})`} onSelect={() => pushPage('commits')} />
|
|
||||||
)}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showBranches && projectId && branchesShown.length > 0 && (
|
|
||||||
<CommandGroup heading="Branches">
|
|
||||||
{branchesShown.map((b) => (
|
|
||||||
<CommandItem
|
|
||||||
key={`branch-${b.name}`}
|
|
||||||
value={b.name}
|
|
||||||
onSelect={() => run(() => { void git.checkout(b.name); onShowTab?.('git'); })}
|
|
||||||
>
|
|
||||||
<GitMerge className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1 truncate">Switch to: {b.name}</span>
|
|
||||||
</CommandItem>
|
|
||||||
))}
|
|
||||||
{!page && branches.length > browseLimit && (
|
|
||||||
<BrowseAllItem label={`Browse all branches (${branches.length})`} onSelect={() => pushPage('branches')} />
|
|
||||||
)}
|
|
||||||
</CommandGroup>
|
|
||||||
)}
|
|
||||||
</CommandList>
|
|
||||||
</Command>
|
|
||||||
</DialogContent>
|
|
||||||
</Dialog>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function BrowseAllItem({ label, onSelect }: { label: string; onSelect: () => void }) {
|
|
||||||
return (
|
|
||||||
<CommandItem value={label} onSelect={onSelect}>
|
|
||||||
<ChevronRight className="h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
|
||||||
<span className="flex-1 text-muted-foreground">{label}</span>
|
|
||||||
</CommandItem>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
import { useEffect, useState, type DependencyList } from 'react';
|
|
||||||
|
|
||||||
export function useApiSource<T, R = unknown>(opts: {
|
|
||||||
enabled: boolean;
|
|
||||||
deps: DependencyList;
|
|
||||||
fetcher: (signal: AbortSignal) => Promise<Response>;
|
|
||||||
parse: (raw: R) => T[];
|
|
||||||
}): T[] {
|
|
||||||
const [items, setItems] = useState<T[]>([]);
|
|
||||||
const { enabled, deps, fetcher, parse } = opts;
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (!enabled) {
|
|
||||||
setItems([]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const controller = new AbortController();
|
|
||||||
|
|
||||||
fetcher(controller.signal)
|
|
||||||
.then((r) => r.json() as Promise<R>)
|
|
||||||
.then((data) => {
|
|
||||||
if (controller.signal.aborted) return;
|
|
||||||
setItems(parse(data));
|
|
||||||
})
|
|
||||||
.catch((err: unknown) => {
|
|
||||||
if (controller.signal.aborted) return;
|
|
||||||
if (err instanceof DOMException && err.name === 'AbortError') return;
|
|
||||||
setItems([]);
|
|
||||||
});
|
|
||||||
|
|
||||||
return () => controller.abort();
|
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
||||||
}, [enabled, ...deps]);
|
|
||||||
|
|
||||||
return items;
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
import { authenticatedFetch } from '../../../utils/api';
|
|
||||||
|
|
||||||
import { useApiSource } from './useApiSource';
|
|
||||||
|
|
||||||
export type BranchResult = { name: string };
|
|
||||||
|
|
||||||
interface BranchesResponse {
|
|
||||||
localBranches?: string[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function useBranchesSource(projectId: string | undefined, enabled: boolean) {
|
|
||||||
return useApiSource<BranchResult, BranchesResponse>({
|
|
||||||
enabled: enabled && !!projectId,
|
|
||||||
deps: [projectId],
|
|
||||||
fetcher: (signal) => {
|
|
||||||
const params = new URLSearchParams({ project: projectId! });
|
|
||||||
return authenticatedFetch(`/api/git/branches?${params.toString()}`, { signal });
|
|
||||||
},
|
|
||||||
parse: (data) => (data.localBranches ?? []).map((name) => ({ name })),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
import { authenticatedFetch } from '../../../utils/api';
|
|
||||||
|
|
||||||
import { useApiSource } from './useApiSource';
|
|
||||||
|
|
||||||
export type CommitResult = {
|
|
||||||
hash: string;
|
|
||||||
shortHash: string;
|
|
||||||
message: string;
|
|
||||||
author: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
interface CommitsResponse {
|
|
||||||
commits?: Array<{ hash: string; message: string; author: string }>;
|
|
||||||
error?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function useCommitsSource(projectId: string | undefined, enabled: boolean) {
|
|
||||||
return useApiSource<CommitResult, CommitsResponse>({
|
|
||||||
enabled: enabled && !!projectId,
|
|
||||||
deps: [projectId],
|
|
||||||
fetcher: (signal) => {
|
|
||||||
const params = new URLSearchParams({ project: projectId!, limit: '50' });
|
|
||||||
return authenticatedFetch(`/api/git/commits?${params.toString()}`, { signal });
|
|
||||||
},
|
|
||||||
parse: (data) => {
|
|
||||||
if (!data.commits) return [];
|
|
||||||
return data.commits.map<CommitResult>((c) => ({
|
|
||||||
hash: c.hash,
|
|
||||||
shortHash: c.hash.slice(0, 7),
|
|
||||||
message: c.message,
|
|
||||||
author: c.author,
|
|
||||||
}));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
import { api } from '../../../utils/api';
|
|
||||||
|
|
||||||
import { useApiSource } from './useApiSource';
|
|
||||||
|
|
||||||
export type FileResult = {
|
|
||||||
path: string;
|
|
||||||
name: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
interface FileNode {
|
|
||||||
type: 'file' | 'directory';
|
|
||||||
name: string;
|
|
||||||
path: string;
|
|
||||||
children?: FileNode[];
|
|
||||||
}
|
|
||||||
|
|
||||||
const MAX_FILES = 500;
|
|
||||||
|
|
||||||
function flatten(nodes: FileNode[], out: FileResult[]): void {
|
|
||||||
for (const node of nodes) {
|
|
||||||
if (out.length >= MAX_FILES) return;
|
|
||||||
if (node.type === 'file') {
|
|
||||||
out.push({ path: node.path, name: node.name });
|
|
||||||
} else if (node.children && node.children.length > 0) {
|
|
||||||
flatten(node.children, out);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function useFilesSource(projectId: string | undefined, enabled: boolean) {
|
|
||||||
return useApiSource<FileResult, unknown>({
|
|
||||||
enabled: enabled && !!projectId,
|
|
||||||
deps: [projectId],
|
|
||||||
fetcher: (signal) => api.getFiles(projectId!, { signal }),
|
|
||||||
parse: (data) => {
|
|
||||||
const tree: FileNode[] = Array.isArray(data) ? (data as FileNode[]) : [];
|
|
||||||
const flat: FileResult[] = [];
|
|
||||||
flatten(tree, flat);
|
|
||||||
return flat;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
import { useCallback } from 'react';
|
|
||||||
|
|
||||||
import { authenticatedFetch } from '../../../utils/api';
|
|
||||||
|
|
||||||
async function postGit(path: string, body: Record<string, unknown>) {
|
|
||||||
const res = await authenticatedFetch(path, {
|
|
||||||
method: 'POST',
|
|
||||||
body: JSON.stringify(body),
|
|
||||||
});
|
|
||||||
return res.json();
|
|
||||||
}
|
|
||||||
|
|
||||||
export function useGitActions(projectId: string | undefined) {
|
|
||||||
const fetch = useCallback(() => {
|
|
||||||
if (!projectId) return Promise.resolve();
|
|
||||||
return postGit('/api/git/fetch', { project: projectId });
|
|
||||||
}, [projectId]);
|
|
||||||
|
|
||||||
const pull = useCallback(() => {
|
|
||||||
if (!projectId) return Promise.resolve();
|
|
||||||
return postGit('/api/git/pull', { project: projectId });
|
|
||||||
}, [projectId]);
|
|
||||||
|
|
||||||
const push = useCallback(() => {
|
|
||||||
if (!projectId) return Promise.resolve();
|
|
||||||
return postGit('/api/git/push', { project: projectId });
|
|
||||||
}, [projectId]);
|
|
||||||
|
|
||||||
const checkout = useCallback(
|
|
||||||
(branch: string) => {
|
|
||||||
if (!projectId) return Promise.resolve();
|
|
||||||
return postGit('/api/git/checkout', { project: projectId, branch });
|
|
||||||
},
|
|
||||||
[projectId],
|
|
||||||
);
|
|
||||||
|
|
||||||
return { fetch, pull, push, checkout };
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
import { useEffect, useRef, useState } from 'react';
|
|
||||||
|
|
||||||
import { api } from '../../../utils/api';
|
|
||||||
import type { LLMProvider } from '../../../types/app';
|
|
||||||
|
|
||||||
export type SessionMessageMatch = {
|
|
||||||
sessionId: string;
|
|
||||||
label: string;
|
|
||||||
snippet: string;
|
|
||||||
provider: LLMProvider;
|
|
||||||
};
|
|
||||||
|
|
||||||
type ProjectResult = {
|
|
||||||
projectId: string | null;
|
|
||||||
projectName: string;
|
|
||||||
sessions: Array<{
|
|
||||||
sessionId: string;
|
|
||||||
provider: LLMProvider;
|
|
||||||
sessionSummary: string;
|
|
||||||
matches: Array<{ snippet: string }>;
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
|
|
||||||
const MIN_QUERY = 2;
|
|
||||||
const DEBOUNCE_MS = 250;
|
|
||||||
|
|
||||||
export function useSessionMessageSearch(
|
|
||||||
projectId: string | undefined,
|
|
||||||
query: string,
|
|
||||||
enabled: boolean,
|
|
||||||
) {
|
|
||||||
const [items, setItems] = useState<SessionMessageMatch[]>([]);
|
|
||||||
const seqRef = useRef(0);
|
|
||||||
const esRef = useRef<EventSource | null>(null);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const trimmed = query.trim();
|
|
||||||
if (!enabled || !projectId || trimmed.length < MIN_QUERY) {
|
|
||||||
setItems([]);
|
|
||||||
esRef.current?.close();
|
|
||||||
esRef.current = null;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
esRef.current?.close();
|
|
||||||
esRef.current = null;
|
|
||||||
seqRef.current++;
|
|
||||||
|
|
||||||
const handle = setTimeout(() => {
|
|
||||||
const seq = ++seqRef.current;
|
|
||||||
const url = api.searchConversationsUrl(trimmed);
|
|
||||||
const es = new EventSource(url);
|
|
||||||
esRef.current = es;
|
|
||||||
const accumulated: SessionMessageMatch[] = [];
|
|
||||||
|
|
||||||
es.addEventListener('result', (evt) => {
|
|
||||||
if (seq !== seqRef.current) {
|
|
||||||
es.close();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
const data = JSON.parse((evt as MessageEvent).data) as { projectResult: ProjectResult };
|
|
||||||
const pr = data.projectResult;
|
|
||||||
if (pr.projectId !== projectId) return;
|
|
||||||
for (const s of pr.sessions) {
|
|
||||||
accumulated.push({
|
|
||||||
sessionId: s.sessionId,
|
|
||||||
label: s.sessionSummary || s.sessionId,
|
|
||||||
snippet: s.matches[0]?.snippet ?? '',
|
|
||||||
provider: s.provider,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
setItems([...accumulated]);
|
|
||||||
} catch {
|
|
||||||
// ignore malformed
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const finish = () => {
|
|
||||||
if (seq !== seqRef.current) return;
|
|
||||||
es.close();
|
|
||||||
esRef.current = null;
|
|
||||||
};
|
|
||||||
es.addEventListener('done', finish);
|
|
||||||
es.addEventListener('error', finish);
|
|
||||||
}, DEBOUNCE_MS);
|
|
||||||
|
|
||||||
return () => {
|
|
||||||
clearTimeout(handle);
|
|
||||||
};
|
|
||||||
}, [projectId, query, enabled]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
return () => {
|
|
||||||
esRef.current?.close();
|
|
||||||
esRef.current = null;
|
|
||||||
};
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return items;
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
import { authenticatedFetch } from '../../../utils/api';
|
|
||||||
import type { LLMProvider, ProjectSession } from '../../../types/app';
|
|
||||||
|
|
||||||
import { useApiSource } from './useApiSource';
|
|
||||||
|
|
||||||
export type SessionResult = {
|
|
||||||
id: string;
|
|
||||||
label: string;
|
|
||||||
provider?: LLMProvider;
|
|
||||||
};
|
|
||||||
|
|
||||||
interface SessionsResponse {
|
|
||||||
sessions?: ProjectSession[];
|
|
||||||
cursorSessions?: ProjectSession[];
|
|
||||||
codexSessions?: ProjectSession[];
|
|
||||||
geminiSessions?: ProjectSession[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function useSessionsSource(projectId: string | undefined, enabled: boolean) {
|
|
||||||
return useApiSource<SessionResult, SessionsResponse>({
|
|
||||||
enabled: enabled && !!projectId,
|
|
||||||
deps: [projectId],
|
|
||||||
fetcher: (signal) => {
|
|
||||||
const params = new URLSearchParams({ limit: '50', offset: '0' });
|
|
||||||
return authenticatedFetch(
|
|
||||||
`/api/projects/${encodeURIComponent(projectId!)}/sessions?${params.toString()}`,
|
|
||||||
{ signal },
|
|
||||||
);
|
|
||||||
},
|
|
||||||
parse: (data) => {
|
|
||||||
const all: ProjectSession[] = [
|
|
||||||
...(data.sessions ?? []),
|
|
||||||
...(data.cursorSessions ?? []),
|
|
||||||
...(data.codexSessions ?? []),
|
|
||||||
...(data.geminiSessions ?? []),
|
|
||||||
];
|
|
||||||
return all.map<SessionResult>((s) => ({
|
|
||||||
id: s.id,
|
|
||||||
label: (s.title || s.summary || s.name || s.id) as string,
|
|
||||||
provider: s.__provider,
|
|
||||||
}));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
|
|
||||||
import ChatInterface from '../../chat/view/ChatInterface';
|
import ChatInterface from '../../chat/view/ChatInterface';
|
||||||
import FileTree from '../../file-tree/view/FileTree';
|
import FileTree from '../../file-tree/view/FileTree';
|
||||||
import StandaloneShell from '../../standalone-shell/view/StandaloneShell';
|
import StandaloneShell from '../../standalone-shell/view/StandaloneShell';
|
||||||
@@ -7,14 +6,12 @@ import GitPanel from '../../git-panel/view/GitPanel';
|
|||||||
import PluginTabContent from '../../plugins/view/PluginTabContent';
|
import PluginTabContent from '../../plugins/view/PluginTabContent';
|
||||||
import type { MainContentProps } from '../types/types';
|
import type { MainContentProps } from '../types/types';
|
||||||
import { useTaskMaster } from '../../../contexts/TaskMasterContext';
|
import { useTaskMaster } from '../../../contexts/TaskMasterContext';
|
||||||
import { usePaletteOpsRegister } from '../../../contexts/PaletteOpsContext';
|
|
||||||
import { useTasksSettings } from '../../../contexts/TasksSettingsContext';
|
import { useTasksSettings } from '../../../contexts/TasksSettingsContext';
|
||||||
import { useUiPreferences } from '../../../hooks/useUiPreferences';
|
import { useUiPreferences } from '../../../hooks/useUiPreferences';
|
||||||
import { useEditorSidebar } from '../../code-editor/hooks/useEditorSidebar';
|
import { useEditorSidebar } from '../../code-editor/hooks/useEditorSidebar';
|
||||||
import EditorSidebar from '../../code-editor/view/EditorSidebar';
|
import EditorSidebar from '../../code-editor/view/EditorSidebar';
|
||||||
import type { Project } from '../../../types/app';
|
import type { Project } from '../../../types/app';
|
||||||
import { TaskMasterPanel } from '../../task-master';
|
import { TaskMasterPanel } from '../../task-master';
|
||||||
|
|
||||||
import MainContentHeader from './subcomponents/MainContentHeader';
|
import MainContentHeader from './subcomponents/MainContentHeader';
|
||||||
import MainContentStateView from './subcomponents/MainContentStateView';
|
import MainContentStateView from './subcomponents/MainContentStateView';
|
||||||
import ErrorBoundary from './ErrorBoundary';
|
import ErrorBoundary from './ErrorBoundary';
|
||||||
@@ -92,13 +89,6 @@ function MainContent({
|
|||||||
}
|
}
|
||||||
}, [shouldShowTasksTab, activeTab, setActiveTab]);
|
}, [shouldShowTasksTab, activeTab, setActiveTab]);
|
||||||
|
|
||||||
usePaletteOpsRegister({
|
|
||||||
openFile: (filePath: string) => {
|
|
||||||
setActiveTab('files');
|
|
||||||
handleFileOpen(filePath);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return <MainContentStateView mode="loading" isMobile={isMobile} onMenuClick={onMenuClick} />;
|
return <MainContentStateView mode="loading" isMobile={isMobile} onMenuClick={onMenuClick} />;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,3 @@
|
|||||||
import type { ComponentType } from 'react';
|
|
||||||
import {
|
|
||||||
Bell,
|
|
||||||
Bot,
|
|
||||||
GitBranch,
|
|
||||||
Info,
|
|
||||||
KeyRound,
|
|
||||||
ListChecks,
|
|
||||||
Palette,
|
|
||||||
Plug,
|
|
||||||
} from 'lucide-react';
|
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
AgentCategory,
|
AgentCategory,
|
||||||
AgentProvider,
|
AgentProvider,
|
||||||
@@ -19,22 +7,13 @@ import type {
|
|||||||
SettingsMainTab,
|
SettingsMainTab,
|
||||||
} from '../types/types';
|
} from '../types/types';
|
||||||
|
|
||||||
export type SettingsMainTabMeta = {
|
export const SETTINGS_MAIN_TABS: SettingsMainTab[] = [
|
||||||
id: SettingsMainTab;
|
'agents',
|
||||||
label: string;
|
'appearance',
|
||||||
keywords: string;
|
'git',
|
||||||
icon: ComponentType<{ className?: string }>;
|
'api',
|
||||||
};
|
'tasks',
|
||||||
|
'notifications',
|
||||||
export const SETTINGS_MAIN_TABS: SettingsMainTabMeta[] = [
|
|
||||||
{ id: 'agents', label: 'Agents', keywords: 'agents subagents claude code', icon: Bot },
|
|
||||||
{ id: 'appearance', label: 'Appearance', keywords: 'appearance theme dark light language', icon: Palette },
|
|
||||||
{ id: 'git', label: 'Git', keywords: 'git github commits', icon: GitBranch },
|
|
||||||
{ id: 'api', label: 'API Tokens', keywords: 'api tokens auth keys', icon: KeyRound },
|
|
||||||
{ id: 'tasks', label: 'Tasks', keywords: 'tasks taskmaster', icon: ListChecks },
|
|
||||||
{ id: 'notifications', label: 'Notifications', keywords: 'notifications alerts push', icon: Bell },
|
|
||||||
{ id: 'plugins', label: 'Plugins', keywords: 'plugins extensions integrations', icon: Plug },
|
|
||||||
{ id: 'about', label: 'About', keywords: 'about version info', icon: Info },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const AGENT_PROVIDERS: AgentProvider[] = ['claude', 'cursor', 'codex', 'gemini'];
|
export const AGENT_PROVIDERS: AgentProvider[] = ['claude', 'cursor', 'codex', 'gemini'];
|
||||||
@@ -55,3 +34,4 @@ export const DEFAULT_CURSOR_PERMISSIONS: CursorPermissionsState = {
|
|||||||
disallowedCommands: [],
|
disallowedCommands: [],
|
||||||
skipPermissions: false,
|
skipPermissions: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|||||||
import type { TFunction } from 'i18next';
|
import type { TFunction } from 'i18next';
|
||||||
|
|
||||||
import { api } from '../../../utils/api';
|
import { api } from '../../../utils/api';
|
||||||
import { usePaletteOps } from '../../../contexts/PaletteOpsContext';
|
|
||||||
import type { Project, ProjectSession, LLMProvider } from '../../../types/app';
|
import type { Project, ProjectSession, LLMProvider } from '../../../types/app';
|
||||||
import type {
|
import type {
|
||||||
DeleteProjectConfirmation,
|
DeleteProjectConfirmation,
|
||||||
@@ -96,7 +95,6 @@ export function useSidebarController({
|
|||||||
setSidebarVisible,
|
setSidebarVisible,
|
||||||
sidebarVisible,
|
sidebarVisible,
|
||||||
}: UseSidebarControllerArgs) {
|
}: UseSidebarControllerArgs) {
|
||||||
const paletteOps = usePaletteOps();
|
|
||||||
const [expandedProjects, setExpandedProjects] = useState<Set<string>>(new Set());
|
const [expandedProjects, setExpandedProjects] = useState<Set<string>>(new Set());
|
||||||
const [editingProject, setEditingProject] = useState<string | null>(null);
|
const [editingProject, setEditingProject] = useState<string | null>(null);
|
||||||
const [showNewProject, setShowNewProject] = useState(false);
|
const [showNewProject, setShowNewProject] = useState(false);
|
||||||
@@ -538,7 +536,11 @@ export function useSidebarController({
|
|||||||
try {
|
try {
|
||||||
const response = await api.renameProject(projectId, editingName);
|
const response = await api.renameProject(projectId, editingName);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
await paletteOps.refreshProjects();
|
if (window.refreshProjects) {
|
||||||
|
await window.refreshProjects();
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.error('Failed to rename project');
|
console.error('Failed to rename project');
|
||||||
}
|
}
|
||||||
@@ -549,7 +551,7 @@ export function useSidebarController({
|
|||||||
setEditingName('');
|
setEditingName('');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[editingName, paletteOps],
|
[editingName],
|
||||||
);
|
);
|
||||||
|
|
||||||
const showDeleteSessionConfirmation = useCallback(
|
const showDeleteSessionConfirmation = useCallback(
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import { useVersionCheck } from '../../../hooks/useVersionCheck';
|
|||||||
import { useUiPreferences } from '../../../hooks/useUiPreferences';
|
import { useUiPreferences } from '../../../hooks/useUiPreferences';
|
||||||
import { useSidebarController } from '../hooks/useSidebarController';
|
import { useSidebarController } from '../hooks/useSidebarController';
|
||||||
import { useTaskMaster } from '../../../contexts/TaskMasterContext';
|
import { useTaskMaster } from '../../../contexts/TaskMasterContext';
|
||||||
import { usePaletteOps } from '../../../contexts/PaletteOpsContext';
|
|
||||||
import { useTasksSettings } from '../../../contexts/TasksSettingsContext';
|
import { useTasksSettings } from '../../../contexts/TasksSettingsContext';
|
||||||
import type { Project, LLMProvider } from '../../../types/app';
|
import type { Project, LLMProvider } from '../../../types/app';
|
||||||
import type { MCPServerStatus, SidebarProps } from '../types/types';
|
import type { MCPServerStatus, SidebarProps } from '../types/types';
|
||||||
@@ -50,7 +49,6 @@ function Sidebar({
|
|||||||
const { sidebarVisible } = preferences;
|
const { sidebarVisible } = preferences;
|
||||||
const { setCurrentProject, mcpServerStatus } = useTaskMaster() as TaskMasterSidebarContext;
|
const { setCurrentProject, mcpServerStatus } = useTaskMaster() as TaskMasterSidebarContext;
|
||||||
const { tasksEnabled } = useTasksSettings();
|
const { tasksEnabled } = useTasksSettings();
|
||||||
const paletteOps = usePaletteOps();
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
isSidebarCollapsed,
|
isSidebarCollapsed,
|
||||||
@@ -130,7 +128,12 @@ function Sidebar({
|
|||||||
}, [isPWA]);
|
}, [isPWA]);
|
||||||
|
|
||||||
const handleProjectCreated = () => {
|
const handleProjectCreated = () => {
|
||||||
void paletteOps.refreshProjects();
|
if (window.refreshProjects) {
|
||||||
|
void window.refreshProjects();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
window.location.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
const projectListProps: SidebarProjectListProps = {
|
const projectListProps: SidebarProjectListProps = {
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ import { IS_PLATFORM } from '../../../../constants/config';
|
|||||||
import { cn } from '../../../../lib/utils';
|
import { cn } from '../../../../lib/utils';
|
||||||
import GitHubStarBadge from './GitHubStarBadge';
|
import GitHubStarBadge from './GitHubStarBadge';
|
||||||
|
|
||||||
const MOD_KEY =
|
|
||||||
typeof navigator !== 'undefined' && /Mac|iPhone|iPad/.test(navigator.platform) ? '⌘' : 'Ctrl';
|
|
||||||
|
|
||||||
type SearchMode = 'projects' | 'conversations';
|
type SearchMode = 'projects' | 'conversations';
|
||||||
|
|
||||||
type SidebarHeaderProps = {
|
type SidebarHeaderProps = {
|
||||||
@@ -151,9 +148,9 @@ export default function SidebarHeader({
|
|||||||
placeholder={searchMode === 'conversations' ? t('search.conversationsPlaceholder') : t('projects.searchPlaceholder')}
|
placeholder={searchMode === 'conversations' ? t('search.conversationsPlaceholder') : t('projects.searchPlaceholder')}
|
||||||
value={searchFilter}
|
value={searchFilter}
|
||||||
onChange={(event) => onSearchFilterChange(event.target.value)}
|
onChange={(event) => onSearchFilterChange(event.target.value)}
|
||||||
className="nav-search-input h-9 rounded-xl border-0 pl-9 pr-14 text-sm transition-all duration-200 placeholder:text-muted-foreground/40 focus-visible:ring-0 focus-visible:ring-offset-0"
|
className="nav-search-input h-9 rounded-xl border-0 pl-9 pr-8 text-sm transition-all duration-200 placeholder:text-muted-foreground/40 focus-visible:ring-0 focus-visible:ring-offset-0"
|
||||||
/>
|
/>
|
||||||
{searchFilter ? (
|
{searchFilter && (
|
||||||
<button
|
<button
|
||||||
onClick={onClearSearchFilter}
|
onClick={onClearSearchFilter}
|
||||||
aria-label={t('tooltips.clearSearch')}
|
aria-label={t('tooltips.clearSearch')}
|
||||||
@@ -161,15 +158,6 @@ export default function SidebarHeader({
|
|||||||
>
|
>
|
||||||
<X className="h-3 w-3 text-muted-foreground" />
|
<X className="h-3 w-3 text-muted-foreground" />
|
||||||
</button>
|
</button>
|
||||||
) : (
|
|
||||||
<kbd
|
|
||||||
aria-hidden
|
|
||||||
title={t('tooltips.openCommandPalette')}
|
|
||||||
className="pointer-events-none absolute right-2.5 top-1/2 hidden -translate-y-1/2 items-center gap-0.5 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground md:inline-flex"
|
|
||||||
>
|
|
||||||
{MOD_KEY}
|
|
||||||
<span>K</span>
|
|
||||||
</kbd>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
import { createContext, useContext, useEffect, useMemo, useRef } from 'react';
|
|
||||||
import type { MutableRefObject, ReactNode } from 'react';
|
|
||||||
|
|
||||||
export type PaletteOps = {
|
|
||||||
openFile: (path: string) => void;
|
|
||||||
openSettings: (tab?: string) => void;
|
|
||||||
refreshProjects: () => Promise<void> | void;
|
|
||||||
};
|
|
||||||
|
|
||||||
type Registry = MutableRefObject<Partial<PaletteOps>>;
|
|
||||||
|
|
||||||
const PaletteOpsContext = createContext<Registry | null>(null);
|
|
||||||
|
|
||||||
const defaultOps: PaletteOps = {
|
|
||||||
openFile: () => undefined,
|
|
||||||
openSettings: () => undefined,
|
|
||||||
refreshProjects: () => undefined,
|
|
||||||
};
|
|
||||||
|
|
||||||
export function PaletteOpsProvider({ children }: { children: ReactNode }) {
|
|
||||||
const ref = useRef<Partial<PaletteOps>>({});
|
|
||||||
return <PaletteOpsContext.Provider value={ref}>{children}</PaletteOpsContext.Provider>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function usePaletteOps(): PaletteOps {
|
|
||||||
const ref = useContext(PaletteOpsContext);
|
|
||||||
return useMemo<PaletteOps>(
|
|
||||||
() => ({
|
|
||||||
openFile: (path) => (ref?.current.openFile ?? defaultOps.openFile)(path),
|
|
||||||
openSettings: (tab) => (ref?.current.openSettings ?? defaultOps.openSettings)(tab),
|
|
||||||
refreshProjects: () => (ref?.current.refreshProjects ?? defaultOps.refreshProjects)(),
|
|
||||||
}),
|
|
||||||
[ref],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function usePaletteOpsRegister(partial: Partial<PaletteOps>) {
|
|
||||||
const ref = useContext(PaletteOpsContext);
|
|
||||||
const { openFile, openSettings, refreshProjects } = partial;
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (!ref) return undefined;
|
|
||||||
const prev = { ...ref.current };
|
|
||||||
if (openFile) ref.current.openFile = openFile;
|
|
||||||
if (openSettings) ref.current.openSettings = openSettings;
|
|
||||||
if (refreshProjects) ref.current.refreshProjects = refreshProjects;
|
|
||||||
return () => {
|
|
||||||
if (openFile && ref.current.openFile === openFile) ref.current.openFile = prev.openFile;
|
|
||||||
if (openSettings && ref.current.openSettings === openSettings) ref.current.openSettings = prev.openSettings;
|
|
||||||
if (refreshProjects && ref.current.refreshProjects === refreshProjects) ref.current.refreshProjects = prev.refreshProjects;
|
|
||||||
};
|
|
||||||
}, [ref, openFile, openSettings, refreshProjects]);
|
|
||||||
}
|
|
||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "Berechtigungsmodus",
|
"permissionMode": "Berechtigungsmodus",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "Standardmodus",
|
"default": "Standardmodus",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "Bearbeitungen akzeptieren",
|
"acceptEdits": "Bearbeitungen akzeptieren",
|
||||||
"bypassPermissions": "Berechtigungen umgehen",
|
"bypassPermissions": "Berechtigungen umgehen",
|
||||||
"plan": "Planungsmodus"
|
"plan": "Planungsmodus"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "Nur vertrauenswürdige Befehle (ls, cat, grep, git status usw.) werden automatisch ausgeführt. Andere Befehle werden übersprungen. Kann in den Arbeitsbereich schreiben.",
|
"default": "Nur vertrauenswürdige Befehle (ls, cat, grep, git status usw.) werden automatisch ausgeführt. Andere Befehle werden übersprungen. Kann in den Arbeitsbereich schreiben.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "Alle Befehle werden automatisch innerhalb des Arbeitsbereichs ausgeführt. Vollautomatischer Modus mit isolierter Ausführung.",
|
"acceptEdits": "Alle Befehle werden automatisch innerhalb des Arbeitsbereichs ausgeführt. Vollautomatischer Modus mit isolierter Ausführung.",
|
||||||
"bypassPermissions": "Vollständiger Systemzugriff ohne Einschränkungen. Alle Befehle werden automatisch mit vollem Festplatten- und Netzwerkzugriff ausgeführt. Mit Vorsicht verwenden.",
|
"bypassPermissions": "Vollständiger Systemzugriff ohne Einschränkungen. Alle Befehle werden automatisch mit vollem Festplatten- und Netzwerkzugriff ausgeführt. Mit Vorsicht verwenden.",
|
||||||
"plan": "Planungsmodus – keine Befehle werden ausgeführt"
|
"plan": "Planungsmodus – keine Befehle werden ausgeführt"
|
||||||
@@ -190,8 +188,7 @@
|
|||||||
"codex": "Bereit, Codex mit {{model}} zu verwenden. Gib unten deine Nachricht ein.",
|
"codex": "Bereit, Codex mit {{model}} zu verwenden. Gib unten deine Nachricht ein.",
|
||||||
"gemini": "Bereit, Gemini mit {{model}} zu verwenden. Gib unten deine Nachricht ein.",
|
"gemini": "Bereit, Gemini mit {{model}} zu verwenden. Gib unten deine Nachricht ein.",
|
||||||
"default": "Wähl oben einen Anbieter, um zu beginnen"
|
"default": "Wähl oben einen Anbieter, um zu beginnen"
|
||||||
},
|
}
|
||||||
"pressToSearch": "Drücke <kbd>{{shortcut}}</kbd>, um Sitzungen, Dateien und Commits zu durchsuchen"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "Diese Sitzung dauerhaft löschen",
|
"deleteSession": "Diese Sitzung dauerhaft löschen",
|
||||||
"save": "Speichern",
|
"save": "Speichern",
|
||||||
"cancel": "Abbrechen",
|
"cancel": "Abbrechen",
|
||||||
"clearSearch": "Suche leeren",
|
"clearSearch": "Suche leeren"
|
||||||
"openCommandPalette": "Befehlspalette öffnen"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "Permission Mode",
|
"permissionMode": "Permission Mode",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "Default Mode",
|
"default": "Default Mode",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "Accept Edits",
|
"acceptEdits": "Accept Edits",
|
||||||
"bypassPermissions": "Bypass Permissions",
|
"bypassPermissions": "Bypass Permissions",
|
||||||
"plan": "Plan Mode"
|
"plan": "Plan Mode"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "Only trusted commands (ls, cat, grep, git status, etc.) run automatically. Other commands are skipped. Can write to workspace.",
|
"default": "Only trusted commands (ls, cat, grep, git status, etc.) run automatically. Other commands are skipped. Can write to workspace.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "All commands run automatically within the workspace. Full auto mode with sandboxed execution.",
|
"acceptEdits": "All commands run automatically within the workspace. Full auto mode with sandboxed execution.",
|
||||||
"bypassPermissions": "Full system access with no restrictions. All commands run automatically with full disk and network access. Use with caution.",
|
"bypassPermissions": "Full system access with no restrictions. All commands run automatically with full disk and network access. Use with caution.",
|
||||||
"plan": "Planning mode - no commands are executed"
|
"plan": "Planning mode - no commands are executed"
|
||||||
@@ -190,8 +188,7 @@
|
|||||||
"codex": "Ready to use Codex with {{model}}. Start typing your message below.",
|
"codex": "Ready to use Codex with {{model}}. Start typing your message below.",
|
||||||
"gemini": "Ready to use Gemini with {{model}}. Start typing your message below.",
|
"gemini": "Ready to use Gemini with {{model}}. Start typing your message below.",
|
||||||
"default": "Select a provider above to begin"
|
"default": "Select a provider above to begin"
|
||||||
},
|
}
|
||||||
"pressToSearch": "Press <kbd>{{shortcut}}</kbd> to search sessions, files, and commits"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "Delete this session permanently",
|
"deleteSession": "Delete this session permanently",
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"clearSearch": "Clear search",
|
"clearSearch": "Clear search"
|
||||||
"openCommandPalette": "Open command palette"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "Modalità permessi",
|
"permissionMode": "Modalità permessi",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "Modalità predefinita",
|
"default": "Modalità predefinita",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "Accetta modifiche",
|
"acceptEdits": "Accetta modifiche",
|
||||||
"bypassPermissions": "Ignora permessi",
|
"bypassPermissions": "Ignora permessi",
|
||||||
"plan": "Modalità piano"
|
"plan": "Modalità piano"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "Solo i comandi attendibili (ls, cat, grep, git status, ecc.) vengono eseguiti automaticamente. Gli altri comandi vengono saltati. Può scrivere nell'area di lavoro.",
|
"default": "Solo i comandi attendibili (ls, cat, grep, git status, ecc.) vengono eseguiti automaticamente. Gli altri comandi vengono saltati. Può scrivere nell'area di lavoro.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "Tutti i comandi vengono eseguiti automaticamente nell'area di lavoro. Modalità completamente automatica con esecuzione sandboxed.",
|
"acceptEdits": "Tutti i comandi vengono eseguiti automaticamente nell'area di lavoro. Modalità completamente automatica con esecuzione sandboxed.",
|
||||||
"bypassPermissions": "Accesso completo al sistema senza restrizioni. Tutti i comandi vengono eseguiti automaticamente con accesso completo a disco e rete. Usa con cautela.",
|
"bypassPermissions": "Accesso completo al sistema senza restrizioni. Tutti i comandi vengono eseguiti automaticamente con accesso completo a disco e rete. Usa con cautela.",
|
||||||
"plan": "Modalità pianificazione - nessun comando viene eseguito"
|
"plan": "Modalità pianificazione - nessun comando viene eseguito"
|
||||||
@@ -190,8 +188,7 @@
|
|||||||
"codex": "Pronto a usare Codex con {{model}}. Inizia a digitare il tuo messaggio qui sotto.",
|
"codex": "Pronto a usare Codex con {{model}}. Inizia a digitare il tuo messaggio qui sotto.",
|
||||||
"gemini": "Pronto a usare Gemini con {{model}}. Inizia a digitare il tuo messaggio qui sotto.",
|
"gemini": "Pronto a usare Gemini con {{model}}. Inizia a digitare il tuo messaggio qui sotto.",
|
||||||
"default": "Seleziona un provider sopra per iniziare"
|
"default": "Seleziona un provider sopra per iniziare"
|
||||||
},
|
}
|
||||||
"pressToSearch": "Premi <kbd>{{shortcut}}</kbd> per cercare sessioni, file e commit"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "Elimina questa sessione permanentemente",
|
"deleteSession": "Elimina questa sessione permanentemente",
|
||||||
"save": "Salva",
|
"save": "Salva",
|
||||||
"cancel": "Annulla",
|
"cancel": "Annulla",
|
||||||
"clearSearch": "Cancella ricerca",
|
"clearSearch": "Cancella ricerca"
|
||||||
"openCommandPalette": "Apri tavolozza comandi"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "Chat",
|
"chat": "Chat",
|
||||||
|
|||||||
@@ -88,14 +88,12 @@
|
|||||||
"permissionMode": "権限モード",
|
"permissionMode": "権限モード",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "デフォルトモード",
|
"default": "デフォルトモード",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "編集を許可",
|
"acceptEdits": "編集を許可",
|
||||||
"bypassPermissions": "権限をバイパス",
|
"bypassPermissions": "権限をバイパス",
|
||||||
"plan": "プランモード"
|
"plan": "プランモード"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "信頼されたコマンド(ls、cat、grep、git statusなど)のみ自動実行。その他のコマンドはスキップ。ワークスペースへの書き込みは可能。",
|
"default": "信頼されたコマンド(ls、cat、grep、git statusなど)のみ自動実行。その他のコマンドはスキップ。ワークスペースへの書き込みは可能。",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "ワークスペース内ですべてのコマンドを自動実行。サンドボックス環境での完全自動モード。",
|
"acceptEdits": "ワークスペース内ですべてのコマンドを自動実行。サンドボックス環境での完全自動モード。",
|
||||||
"bypassPermissions": "制限なしの完全なシステムアクセス。すべてのコマンドがディスクとネットワークへの完全なアクセスで自動実行されます。注意して使用してください。",
|
"bypassPermissions": "制限なしの完全なシステムアクセス。すべてのコマンドがディスクとネットワークへの完全なアクセスで自動実行されます。注意して使用してください。",
|
||||||
"plan": "プランニングモード - コマンドは実行されません"
|
"plan": "プランニングモード - コマンドは実行されません"
|
||||||
@@ -167,8 +165,7 @@
|
|||||||
"cursor": "{{model}}でCursorを使用する準備ができました。下にメッセージを入力してください。",
|
"cursor": "{{model}}でCursorを使用する準備ができました。下にメッセージを入力してください。",
|
||||||
"codex": "{{model}}でCodexを使用する準備ができました。下にメッセージを入力してください。",
|
"codex": "{{model}}でCodexを使用する準備ができました。下にメッセージを入力してください。",
|
||||||
"default": "上からプロバイダーを選択して開始してください"
|
"default": "上からプロバイダーを選択して開始してください"
|
||||||
},
|
}
|
||||||
"pressToSearch": "<kbd>{{shortcut}}</kbd> を押してセッション、ファイル、コミットを検索"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -46,8 +46,7 @@
|
|||||||
"editSessionName": "セッション名を手動で編集",
|
"editSessionName": "セッション名を手動で編集",
|
||||||
"deleteSession": "このセッションを完全に削除",
|
"deleteSession": "このセッションを完全に削除",
|
||||||
"save": "保存",
|
"save": "保存",
|
||||||
"cancel": "キャンセル",
|
"cancel": "キャンセル"
|
||||||
"openCommandPalette": "コマンドパレットを開く"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "チャット",
|
"chat": "チャット",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "권한 모드",
|
"permissionMode": "권한 모드",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "기본 모드",
|
"default": "기본 모드",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "편집 허용",
|
"acceptEdits": "편집 허용",
|
||||||
"bypassPermissions": "권한 우회",
|
"bypassPermissions": "권한 우회",
|
||||||
"plan": "Plan 모드"
|
"plan": "Plan 모드"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "신뢰할 수 있는 명령어(ls, cat, grep, git status 등)만 자동 실행됩니다. 다른 명령어는 건너뜁니다. 워크스페이스에 쓰기 가능.",
|
"default": "신뢰할 수 있는 명령어(ls, cat, grep, git status 등)만 자동 실행됩니다. 다른 명령어는 건너뜁니다. 워크스페이스에 쓰기 가능.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "워크스페이스 내에서 모든 명령어가 자동 실행됩니다. 샌드박스 내 완전 자동 모드.",
|
"acceptEdits": "워크스페이스 내에서 모든 명령어가 자동 실행됩니다. 샌드박스 내 완전 자동 모드.",
|
||||||
"bypassPermissions": "제한 없는 전체 시스템 접근. 모든 명령어가 전체 디스크 및 네트워크 접근 권한으로 자동 실행됩니다. 주의해서 사용하세요.",
|
"bypassPermissions": "제한 없는 전체 시스템 접근. 모든 명령어가 전체 디스크 및 네트워크 접근 권한으로 자동 실행됩니다. 주의해서 사용하세요.",
|
||||||
"plan": "계획 모드 - 명령어가 실행되지 않습니다"
|
"plan": "계획 모드 - 명령어가 실행되지 않습니다"
|
||||||
@@ -172,8 +170,7 @@
|
|||||||
"codex": "{{model}} 모델로 Codex를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.",
|
"codex": "{{model}} 모델로 Codex를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.",
|
||||||
"gemini": "{{model}} 모델로 Gemini를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.",
|
"gemini": "{{model}} 모델로 Gemini를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.",
|
||||||
"default": "시작하려면 위에서 제공자를 선택하세요"
|
"default": "시작하려면 위에서 제공자를 선택하세요"
|
||||||
},
|
}
|
||||||
"pressToSearch": "<kbd>{{shortcut}}</kbd>를 눌러 세션, 파일 및 커밋을 검색하세요"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -46,8 +46,7 @@
|
|||||||
"editSessionName": "세션 이름 직접 편집",
|
"editSessionName": "세션 이름 직접 편집",
|
||||||
"deleteSession": "이 세션 영구 삭제",
|
"deleteSession": "이 세션 영구 삭제",
|
||||||
"save": "저장",
|
"save": "저장",
|
||||||
"cancel": "취소",
|
"cancel": "취소"
|
||||||
"openCommandPalette": "명령 팔레트 열기"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "채팅",
|
"chat": "채팅",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "Режим разрешений",
|
"permissionMode": "Режим разрешений",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "Режим по умолчанию",
|
"default": "Режим по умолчанию",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "Принимать правки",
|
"acceptEdits": "Принимать правки",
|
||||||
"bypassPermissions": "Обход разрешений",
|
"bypassPermissions": "Обход разрешений",
|
||||||
"plan": "Режим планирования"
|
"plan": "Режим планирования"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "Только доверенные команды (ls, cat, grep, git status и т.д.) выполняются автоматически. Другие команды пропускаются. Может записывать в рабочее пространство.",
|
"default": "Только доверенные команды (ls, cat, grep, git status и т.д.) выполняются автоматически. Другие команды пропускаются. Может записывать в рабочее пространство.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "Все команды выполняются автоматически в рабочем пространстве. Полный автоматический режим с изолированным выполнением.",
|
"acceptEdits": "Все команды выполняются автоматически в рабочем пространстве. Полный автоматический режим с изолированным выполнением.",
|
||||||
"bypassPermissions": "Полный системный доступ без ограничений. Все команды выполняются автоматически с полным доступом к диску и сети. Используйте с осторожностью.",
|
"bypassPermissions": "Полный системный доступ без ограничений. Все команды выполняются автоматически с полным доступом к диску и сети. Используйте с осторожностью.",
|
||||||
"plan": "Режим планирования - команды не выполняются"
|
"plan": "Режим планирования - команды не выполняются"
|
||||||
@@ -190,8 +188,7 @@
|
|||||||
"codex": "Готов использовать Codex с {{model}}. Начните вводить сообщение ниже.",
|
"codex": "Готов использовать Codex с {{model}}. Начните вводить сообщение ниже.",
|
||||||
"gemini": "Готов использовать Gemini с {{model}}. Начните вводить сообщение ниже.",
|
"gemini": "Готов использовать Gemini с {{model}}. Начните вводить сообщение ниже.",
|
||||||
"default": "Выберите провайдера выше для начала"
|
"default": "Выберите провайдера выше для начала"
|
||||||
},
|
}
|
||||||
"pressToSearch": "Нажмите <kbd>{{shortcut}}</kbd>, чтобы искать сессии, файлы и коммиты"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "Удалить этот сеанс навсегда",
|
"deleteSession": "Удалить этот сеанс навсегда",
|
||||||
"save": "Сохранить",
|
"save": "Сохранить",
|
||||||
"cancel": "Отмена",
|
"cancel": "Отмена",
|
||||||
"clearSearch": "Очистить поиск",
|
"clearSearch": "Очистить поиск"
|
||||||
"openCommandPalette": "Открыть палитру команд"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "Чат",
|
"chat": "Чат",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "İzin Modu",
|
"permissionMode": "İzin Modu",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "Varsayılan Mod",
|
"default": "Varsayılan Mod",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "Düzenlemeleri Kabul Et",
|
"acceptEdits": "Düzenlemeleri Kabul Et",
|
||||||
"bypassPermissions": "İzinleri Atla",
|
"bypassPermissions": "İzinleri Atla",
|
||||||
"plan": "Plan Modu"
|
"plan": "Plan Modu"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "Sadece güvenilir komutlar (ls, cat, grep, git status, vb.) otomatik çalışır. Diğer komutlar atlanır. Çalışma alanına yazabilir.",
|
"default": "Sadece güvenilir komutlar (ls, cat, grep, git status, vb.) otomatik çalışır. Diğer komutlar atlanır. Çalışma alanına yazabilir.",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "Tüm komutlar çalışma alanı içinde otomatik çalışır. Sandbox'lu çalıştırma ile tam otomatik mod.",
|
"acceptEdits": "Tüm komutlar çalışma alanı içinde otomatik çalışır. Sandbox'lu çalıştırma ile tam otomatik mod.",
|
||||||
"bypassPermissions": "Kısıtlama olmadan tam sistem erişimi. Tüm komutlar tam disk ve ağ erişimiyle otomatik çalışır. Dikkatli kullan.",
|
"bypassPermissions": "Kısıtlama olmadan tam sistem erişimi. Tüm komutlar tam disk ve ağ erişimiyle otomatik çalışır. Dikkatli kullan.",
|
||||||
"plan": "Planlama modu — hiçbir komut çalıştırılmaz"
|
"plan": "Planlama modu — hiçbir komut çalıştırılmaz"
|
||||||
@@ -190,8 +188,7 @@
|
|||||||
"codex": "Codex'i {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.",
|
"codex": "Codex'i {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.",
|
||||||
"gemini": "Gemini'yi {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.",
|
"gemini": "Gemini'yi {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.",
|
||||||
"default": "Başlamak için yukarıdan bir sağlayıcı seç"
|
"default": "Başlamak için yukarıdan bir sağlayıcı seç"
|
||||||
},
|
}
|
||||||
"pressToSearch": "Oturumlarda, dosyalarda ve commit'lerde arama yapmak için <kbd>{{shortcut}}</kbd> tuşlarına bas"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "Bu oturumu kalıcı olarak sil",
|
"deleteSession": "Bu oturumu kalıcı olarak sil",
|
||||||
"save": "Kaydet",
|
"save": "Kaydet",
|
||||||
"cancel": "İptal",
|
"cancel": "İptal",
|
||||||
"clearSearch": "Aramayı temizle",
|
"clearSearch": "Aramayı temizle"
|
||||||
"openCommandPalette": "Komut paletini aç"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "Sohbet",
|
"chat": "Sohbet",
|
||||||
|
|||||||
@@ -89,14 +89,12 @@
|
|||||||
"permissionMode": "权限模式",
|
"permissionMode": "权限模式",
|
||||||
"modes": {
|
"modes": {
|
||||||
"default": "默认模式",
|
"default": "默认模式",
|
||||||
"auto": "Auto Mode",
|
|
||||||
"acceptEdits": "编辑模式",
|
"acceptEdits": "编辑模式",
|
||||||
"bypassPermissions": "无限制模式",
|
"bypassPermissions": "无限制模式",
|
||||||
"plan": "计划模式"
|
"plan": "计划模式"
|
||||||
},
|
},
|
||||||
"descriptions": {
|
"descriptions": {
|
||||||
"default": "只有受信任的命令(ls、cat、grep、git status 等)自动运行。其他命令将被跳过。可以写入工作区。",
|
"default": "只有受信任的命令(ls、cat、grep、git status 等)自动运行。其他命令将被跳过。可以写入工作区。",
|
||||||
"auto": "A model classifier decides per tool call whether to approve or deny. Hands-off, but safer than Bypass — denials still happen.",
|
|
||||||
"acceptEdits": "工作区内的所有命令自动运行。完全自动模式,具有沙盒执行功能。",
|
"acceptEdits": "工作区内的所有命令自动运行。完全自动模式,具有沙盒执行功能。",
|
||||||
"bypassPermissions": "完全的系统访问,无限制。所有命令自动运行,具有完整的磁盘和网络访问权限。请谨慎使用。",
|
"bypassPermissions": "完全的系统访问,无限制。所有命令自动运行,具有完整的磁盘和网络访问权限。请谨慎使用。",
|
||||||
"plan": "计划模式 - 不执行任何命令"
|
"plan": "计划模式 - 不执行任何命令"
|
||||||
@@ -172,8 +170,7 @@
|
|||||||
"codex": "准备好使用带有 {{model}} 的 Codex。请在下方开始输入您的消息。",
|
"codex": "准备好使用带有 {{model}} 的 Codex。请在下方开始输入您的消息。",
|
||||||
"gemini": "准备好使用带有 {{model}} 的 Gemini。请在下方开始输入您的消息。",
|
"gemini": "准备好使用带有 {{model}} 的 Gemini。请在下方开始输入您的消息。",
|
||||||
"default": "请在上方选择一个提供者以开始"
|
"default": "请在上方选择一个提供者以开始"
|
||||||
},
|
}
|
||||||
"pressToSearch": "按 <kbd>{{shortcut}}</kbd> 搜索会话、文件和提交"
|
|
||||||
},
|
},
|
||||||
"session": {
|
"session": {
|
||||||
"continue": {
|
"continue": {
|
||||||
|
|||||||
@@ -47,8 +47,7 @@
|
|||||||
"deleteSession": "永久删除此会话",
|
"deleteSession": "永久删除此会话",
|
||||||
"save": "保存",
|
"save": "保存",
|
||||||
"cancel": "取消",
|
"cancel": "取消",
|
||||||
"clearSearch": "清除搜索",
|
"clearSearch": "清除搜索"
|
||||||
"openCommandPalette": "打开命令面板"
|
|
||||||
},
|
},
|
||||||
"navigation": {
|
"navigation": {
|
||||||
"chat": "聊天",
|
"chat": "聊天",
|
||||||
|
|||||||
@@ -1,107 +1,320 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Command as CommandPrimitive } from 'cmdk';
|
|
||||||
import { Search } from 'lucide-react';
|
import { Search } from 'lucide-react';
|
||||||
|
|
||||||
import { cn } from '../../../lib/utils';
|
import { cn } from '../../../lib/utils';
|
||||||
|
|
||||||
const Command = React.forwardRef<
|
/*
|
||||||
React.ElementRef<typeof CommandPrimitive>,
|
* Lightweight command palette — inspired by cmdk but no external deps.
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive>
|
*
|
||||||
>(({ className, ...props }, ref) => (
|
* Architecture:
|
||||||
<CommandPrimitive
|
* - Command owns the search string and a flat list of registered item values.
|
||||||
ref={ref}
|
* - Items register via context on mount and deregister on unmount.
|
||||||
className={cn('flex flex-col', className)}
|
* - Filtering, active index, and keyboard nav happen centrally in Command.
|
||||||
{...props}
|
* - Items read their "is visible" / "is active" state from context.
|
||||||
/>
|
*/
|
||||||
));
|
|
||||||
Command.displayName = CommandPrimitive.displayName;
|
|
||||||
|
|
||||||
const CommandInput = React.forwardRef<
|
interface ItemEntry {
|
||||||
React.ElementRef<typeof CommandPrimitive.Input>,
|
id: string;
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
|
value: string; // searchable text (lowercase)
|
||||||
>(({ className, ...props }, ref) => (
|
onSelect: () => void;
|
||||||
<div className="flex items-center border-b px-3">
|
element: HTMLElement | null;
|
||||||
<Search className="mr-2 h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
}
|
||||||
<CommandPrimitive.Input
|
|
||||||
|
interface CommandContextValue {
|
||||||
|
search: string;
|
||||||
|
setSearch: (value: string) => void;
|
||||||
|
/** Set of visible item IDs after filtering (derived state, not a ref). */
|
||||||
|
visibleIds: Set<string>;
|
||||||
|
activeId: string | null;
|
||||||
|
setActiveId: (id: string | null) => void;
|
||||||
|
register: (entry: ItemEntry) => void;
|
||||||
|
unregister: (id: string) => void;
|
||||||
|
updateEntry: (id: string, patch: Partial<Pick<ItemEntry, 'value' | 'onSelect' | 'element'>>) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
const CommandContext = React.createContext<CommandContextValue | null>(null);
|
||||||
|
|
||||||
|
function useCommand() {
|
||||||
|
const ctx = React.useContext(CommandContext);
|
||||||
|
if (!ctx) throw new Error('Command components must be used within <Command>');
|
||||||
|
return ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ─── Command (root) ─────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
type CommandProps = React.HTMLAttributes<HTMLDivElement>;
|
||||||
|
|
||||||
|
const Command = React.forwardRef<HTMLDivElement, CommandProps>(
|
||||||
|
({ className, children, ...props }, ref) => {
|
||||||
|
const [search, setSearch] = React.useState('');
|
||||||
|
const entriesRef = React.useRef<Map<string, ItemEntry>>(new Map());
|
||||||
|
// Bump this counter whenever the entry set changes so derived state recalculates
|
||||||
|
const [revision, setRevision] = React.useState(0);
|
||||||
|
|
||||||
|
const register = React.useCallback((entry: ItemEntry) => {
|
||||||
|
entriesRef.current.set(entry.id, entry);
|
||||||
|
setRevision(r => r + 1);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const unregister = React.useCallback((id: string) => {
|
||||||
|
entriesRef.current.delete(id);
|
||||||
|
setRevision(r => r + 1);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const updateEntry = React.useCallback((id: string, patch: Partial<Pick<ItemEntry, 'value' | 'onSelect' | 'element'>>) => {
|
||||||
|
const existing = entriesRef.current.get(id);
|
||||||
|
if (existing) {
|
||||||
|
Object.assign(existing, patch);
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// Derive visible IDs from search + entries
|
||||||
|
const visibleIds = React.useMemo(() => {
|
||||||
|
const lowerSearch = search.toLowerCase();
|
||||||
|
const ids = new Set<string>();
|
||||||
|
for (const [id, entry] of entriesRef.current) {
|
||||||
|
if (!lowerSearch || entry.value.includes(lowerSearch)) {
|
||||||
|
ids.add(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ids;
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [search, revision]);
|
||||||
|
|
||||||
|
// Ordered list of visible entries (preserves DOM order via insertion order)
|
||||||
|
const visibleEntries = React.useMemo(() => {
|
||||||
|
const result: ItemEntry[] = [];
|
||||||
|
for (const [, entry] of entriesRef.current) {
|
||||||
|
if (visibleIds.has(entry.id)) result.push(entry);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}, [visibleIds]);
|
||||||
|
|
||||||
|
// Active item tracking
|
||||||
|
const [activeId, setActiveId] = React.useState<string | null>(null);
|
||||||
|
|
||||||
|
// Reset active to first visible item when search or visible set changes
|
||||||
|
React.useEffect(() => {
|
||||||
|
setActiveId(visibleEntries.length > 0 ? visibleEntries[0].id : null);
|
||||||
|
}, [visibleEntries]);
|
||||||
|
|
||||||
|
const handleKeyDown = React.useCallback((e: React.KeyboardEvent) => {
|
||||||
|
if (e.key === 'ArrowDown' || e.key === 'ArrowUp' || e.key === 'Enter') {
|
||||||
|
e.preventDefault();
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const entries = visibleEntries;
|
||||||
|
if (entries.length === 0) return;
|
||||||
|
|
||||||
|
if (e.key === 'Enter') {
|
||||||
|
const active = entries.find(entry => entry.id === activeId);
|
||||||
|
active?.onSelect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const currentIndex = entries.findIndex(entry => entry.id === activeId);
|
||||||
|
let nextIndex: number;
|
||||||
|
if (e.key === 'ArrowDown') {
|
||||||
|
nextIndex = currentIndex < entries.length - 1 ? currentIndex + 1 : 0;
|
||||||
|
} else {
|
||||||
|
nextIndex = currentIndex > 0 ? currentIndex - 1 : entries.length - 1;
|
||||||
|
}
|
||||||
|
const nextId = entries[nextIndex].id;
|
||||||
|
setActiveId(nextId);
|
||||||
|
|
||||||
|
// Scroll the active item into view
|
||||||
|
const nextEntry = entries[nextIndex];
|
||||||
|
nextEntry.element?.scrollIntoView({ block: 'nearest' });
|
||||||
|
}, [visibleEntries, activeId]);
|
||||||
|
|
||||||
|
const value = React.useMemo<CommandContextValue>(
|
||||||
|
() => ({ search, setSearch, visibleIds, activeId, setActiveId, register, unregister, updateEntry }),
|
||||||
|
[search, visibleIds, activeId, register, unregister, updateEntry]
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<CommandContext.Provider value={value}>
|
||||||
|
<div
|
||||||
|
ref={ref}
|
||||||
|
role="combobox"
|
||||||
|
aria-expanded="true"
|
||||||
|
aria-haspopup="listbox"
|
||||||
|
className={cn('flex flex-col', className)}
|
||||||
|
onKeyDown={handleKeyDown}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
</CommandContext.Provider>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
Command.displayName = 'Command';
|
||||||
|
|
||||||
|
/* ─── CommandInput ───────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
type CommandInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'type'>;
|
||||||
|
|
||||||
|
const CommandInput = React.forwardRef<HTMLInputElement, CommandInputProps>(
|
||||||
|
({ className, placeholder = 'Search...', ...props }, ref) => {
|
||||||
|
const { search, setSearch } = useCommand();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="flex items-center border-b px-3" role="presentation">
|
||||||
|
<Search className="mr-2 h-4 w-4 shrink-0 text-muted-foreground" aria-hidden />
|
||||||
|
<input
|
||||||
|
ref={ref}
|
||||||
|
type="text"
|
||||||
|
role="searchbox"
|
||||||
|
aria-autocomplete="list"
|
||||||
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
|
spellCheck={false}
|
||||||
|
value={search}
|
||||||
|
onChange={(e) => setSearch(e.target.value)}
|
||||||
|
placeholder={placeholder}
|
||||||
|
className={cn(
|
||||||
|
'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none',
|
||||||
|
'placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
CommandInput.displayName = 'CommandInput';
|
||||||
|
|
||||||
|
/* ─── CommandList ────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
const CommandList = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
|
||||||
|
({ className, ...props }, ref) => (
|
||||||
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
role="listbox"
|
||||||
'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none',
|
className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}
|
||||||
'placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',
|
|
||||||
className,
|
|
||||||
)}
|
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
</div>
|
)
|
||||||
));
|
);
|
||||||
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
CommandList.displayName = 'CommandList';
|
||||||
|
|
||||||
const CommandList = React.forwardRef<
|
/* ─── CommandEmpty ───────────────────────────────────────────────── */
|
||||||
React.ElementRef<typeof CommandPrimitive.List>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<CommandPrimitive.List
|
|
||||||
ref={ref}
|
|
||||||
className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
||||||
|
|
||||||
const CommandEmpty = React.forwardRef<
|
const CommandEmpty = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
|
||||||
React.ElementRef<typeof CommandPrimitive.Empty>,
|
({ className, ...props }, ref) => {
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
|
const { search, visibleIds } = useCommand();
|
||||||
>((props, ref) => (
|
|
||||||
<CommandPrimitive.Empty
|
|
||||||
ref={ref}
|
|
||||||
className="py-6 text-center text-sm text-muted-foreground"
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
||||||
|
|
||||||
const CommandGroup = React.forwardRef<
|
// Only show when there's a search term and zero matches
|
||||||
React.ElementRef<typeof CommandPrimitive.Group>,
|
if (!search || visibleIds.size > 0) return null;
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<CommandPrimitive.Group
|
|
||||||
ref={ref}
|
|
||||||
className={cn(
|
|
||||||
'overflow-hidden p-1 text-foreground',
|
|
||||||
'[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
|
|
||||||
className,
|
|
||||||
)}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
||||||
|
|
||||||
const CommandItem = React.forwardRef<
|
return (
|
||||||
React.ElementRef<typeof CommandPrimitive.Item>,
|
<div ref={ref} className={cn('py-6 text-center text-sm text-muted-foreground', className)} {...props} />
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
|
);
|
||||||
>(({ className, ...props }, ref) => (
|
}
|
||||||
<CommandPrimitive.Item
|
);
|
||||||
ref={ref}
|
CommandEmpty.displayName = 'CommandEmpty';
|
||||||
className={cn(
|
|
||||||
'relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none',
|
|
||||||
'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground',
|
|
||||||
'data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50',
|
|
||||||
className,
|
|
||||||
)}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
||||||
|
|
||||||
const CommandSeparator = React.forwardRef<
|
/* ─── CommandGroup ───────────────────────────────────────────────── */
|
||||||
React.ElementRef<typeof CommandPrimitive.Separator>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
|
interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||||
>(({ className, ...props }, ref) => (
|
heading?: React.ReactNode;
|
||||||
<CommandPrimitive.Separator
|
}
|
||||||
ref={ref}
|
|
||||||
className={cn('-mx-1 h-px bg-border', className)}
|
const CommandGroup = React.forwardRef<HTMLDivElement, CommandGroupProps>(
|
||||||
{...props}
|
({ className, heading, children, ...props }, ref) => (
|
||||||
/>
|
<div ref={ref} className={cn('overflow-hidden p-1', className)} role="group" aria-label={typeof heading === 'string' ? heading : undefined} {...props}>
|
||||||
));
|
{heading && (
|
||||||
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
<div className="px-2 py-1.5 text-xs font-medium text-muted-foreground" role="presentation">
|
||||||
|
{heading}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
);
|
||||||
|
CommandGroup.displayName = 'CommandGroup';
|
||||||
|
|
||||||
|
/* ─── CommandItem ────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||||
|
value?: string;
|
||||||
|
onSelect?: () => void;
|
||||||
|
disabled?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
const CommandItem = React.forwardRef<HTMLDivElement, CommandItemProps>(
|
||||||
|
({ className, value, onSelect, disabled, children, ...props }, ref) => {
|
||||||
|
const { visibleIds, activeId, setActiveId, register, unregister, updateEntry } = useCommand();
|
||||||
|
const stableId = React.useId();
|
||||||
|
const elementRef = React.useRef<HTMLElement | null>(null);
|
||||||
|
const searchableText = value || (typeof children === 'string' ? children : '');
|
||||||
|
|
||||||
|
// Register on mount, unregister on unmount
|
||||||
|
React.useEffect(() => {
|
||||||
|
register({
|
||||||
|
id: stableId,
|
||||||
|
value: searchableText.toLowerCase(),
|
||||||
|
onSelect: onSelect || (() => {}),
|
||||||
|
element: elementRef.current,
|
||||||
|
});
|
||||||
|
return () => unregister(stableId);
|
||||||
|
// Only re-register when the identity changes, not onSelect
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [stableId, searchableText, register, unregister]);
|
||||||
|
|
||||||
|
// Keep onSelect up-to-date without re-registering
|
||||||
|
React.useEffect(() => {
|
||||||
|
updateEntry(stableId, { onSelect: onSelect || (() => {}) });
|
||||||
|
}, [stableId, onSelect, updateEntry]);
|
||||||
|
|
||||||
|
// Keep element ref up-to-date
|
||||||
|
const setRef = React.useCallback((node: HTMLDivElement | null) => {
|
||||||
|
elementRef.current = node;
|
||||||
|
updateEntry(stableId, { element: node });
|
||||||
|
if (typeof ref === 'function') ref(node);
|
||||||
|
else if (ref) ref.current = node;
|
||||||
|
}, [stableId, updateEntry, ref]);
|
||||||
|
|
||||||
|
// Hidden by filter
|
||||||
|
if (!visibleIds.has(stableId)) return null;
|
||||||
|
|
||||||
|
const isActive = activeId === stableId;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
ref={setRef}
|
||||||
|
role="option"
|
||||||
|
aria-selected={isActive}
|
||||||
|
aria-disabled={disabled || undefined}
|
||||||
|
data-active={isActive || undefined}
|
||||||
|
className={cn(
|
||||||
|
'relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none',
|
||||||
|
isActive && 'bg-accent text-accent-foreground',
|
||||||
|
disabled && 'pointer-events-none opacity-50',
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
onPointerMove={() => { if (!disabled && activeId !== stableId) setActiveId(stableId); }}
|
||||||
|
onClick={() => !disabled && onSelect?.()}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
CommandItem.displayName = 'CommandItem';
|
||||||
|
|
||||||
|
/* ─── CommandSeparator ───────────────────────────────────────────── */
|
||||||
|
|
||||||
|
const CommandSeparator = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
|
||||||
|
({ className, ...props }, ref) => (
|
||||||
|
<div ref={ref} className={cn('-mx-1 h-px bg-border', className)} {...props} />
|
||||||
|
)
|
||||||
|
);
|
||||||
|
CommandSeparator.displayName = 'CommandSeparator';
|
||||||
|
|
||||||
export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator };
|
export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator };
|
||||||
|
|||||||
2
src/types/global.d.ts
vendored
2
src/types/global.d.ts
vendored
@@ -3,6 +3,8 @@ export {};
|
|||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
__ROUTER_BASENAME__?: string;
|
__ROUTER_BASENAME__?: string;
|
||||||
|
refreshProjects?: () => void | Promise<void>;
|
||||||
|
openSettings?: (tab?: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EventSourceEventMap {
|
interface EventSourceEventMap {
|
||||||
|
|||||||
Reference in New Issue
Block a user