mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Bring the Electron desktop client to parity with CLI web for semantic index, and package the local embedding runtime correctly. - Inject semanticIndexService into the desktop AI tool debug executor so manual tool runs reach semantic search tools, matching the Agent stream. Extract a platform-agnostic tool-executor-core with unit tests. - Persist the API key by reference in the degraded semantic-index config route (vector service unavailable) so API mode keys are not dropped; make auth-profile read/write injectable and add route + unit regression tests that never touch the real ~/.chatlab. - Package desktop local embedding deps: declare @huggingface/transformers, asarUnpack onnxruntime-node / @img native libs, and trim onnxruntime-node binaries to the build target platform/arch to avoid shipping ~175M of unrelated Linux/Windows binaries. Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
1.2 KiB
JSON
37 lines
1.2 KiB
JSON
{
|
|
"name": "@openchatlab/desktop",
|
|
"version": "0.0.0",
|
|
"productName": "ChatLab",
|
|
"private": true,
|
|
"description": "ChatLab Desktop — Electron 桌面客户端",
|
|
"main": "./out/main/index.js",
|
|
"scripts": {
|
|
"postinstall": "electron-rebuild -f -w better-sqlite3",
|
|
"dev": "electron-vite dev",
|
|
"preview": "electron-vite preview",
|
|
"build": "electron-vite build",
|
|
"build:mac": "pnpm run build && electron-builder --mac --config electron-builder.yml -p never",
|
|
"build:win": "pnpm run build && electron-builder --win --config electron-builder.yml -p never"
|
|
},
|
|
"dependencies": {
|
|
"@aptabase/electron": "^0.3.1",
|
|
"@electron-toolkit/preload": "^3.0.1",
|
|
"@electron-toolkit/utils": "^4.0.0",
|
|
"@fastify/multipart": "^10.0.0",
|
|
"@huggingface/transformers": "^4.2.0",
|
|
"@node-rs/jieba": "^2.0.1",
|
|
"better-sqlite3": "^12.4.6",
|
|
"electron-updater": "^6.6.2",
|
|
"i18next": "^25.8.5",
|
|
"sqlite-vec": "^0.1.9"
|
|
},
|
|
"devDependencies": {
|
|
"@electron-toolkit/tsconfig": "^1.0.1",
|
|
"@electron/rebuild": "^4.0.4",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"electron": "35.7.5",
|
|
"electron-builder": "^26.0.12",
|
|
"electron-vite": "^5.0.0"
|
|
}
|
|
}
|