mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Unify the merge workflow (parse/conflicts/execute/clear/export-for-merge) across CLI, Electron, and web-serve into a single set of shared routes in @openchatlab/http-routes. Key changes: - Move MergeSessionCache from CLI to node-runtime shared package - Add dual-mode parse route (multipart upload for web, JSON filePath for Electron) - Integrate merge routes into Electron internal API server with @fastify/multipart - Create installMergeShims() with filePath-to-handle mapping for frontend - Remove Electron merge IPC handlers, merger module, and preload bridges (~790 lines deleted) - Address CodeX review: CHAT_DB_TABLES in openDatabase, no chatApi patching, outputName sanitization, resp.ok checks, @fastify/multipart in desktop deps Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1.1 KiB
JSON
35 lines
1.1 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",
|
|
"@node-rs/jieba": "^2.0.1",
|
|
"better-sqlite3": "^12.4.6",
|
|
"electron-updater": "^6.6.2",
|
|
"i18next": "^25.8.5"
|
|
},
|
|
"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"
|
|
}
|
|
}
|