mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Add @openchatlab/parser-native (napi-rs v3) with a shared byte-level JSON scanner and two format kernels. Parsing large exports is 4-10x faster in real-data benchmarks. The native module is an optional local build; the pure-TS parsers remain as automatic fallback when it is unavailable, disabled via CHATLAB_DISABLE_NATIVE_PERF=1, or rejects off-spec files. The ChatLab kernel also parses the members array structurally, fixing the TS head-regex heuristic that silently dropped avatars/roles for files with nested arrays or long member lists. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
1.3 KiB
JSON
41 lines
1.3 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": {
|
|
"@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",
|
|
"@openchatlab/parser-native": "workspace:*",
|
|
"better-sqlite3": "^12.4.6",
|
|
"electron-updater": "^6.6.2",
|
|
"i18next": "^25.8.5",
|
|
"onnxruntime-common": "1.24.3",
|
|
"onnxruntime-node": "1.24.3",
|
|
"sharp": "0.34.5",
|
|
"sqlite-vec": "^0.1.9",
|
|
"undici": "^6.25.0"
|
|
},
|
|
"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"
|
|
}
|
|
}
|