mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Move the CLI application from packages/server/ to apps/cli/ to align with the monorepo convention (apps/ for deployable applications, packages/ for shared libraries). Rename package to @openchatlab/chatlab. Also fix a bug in ensureToken() that used raw string manipulation to write config.toml, causing duplicate token fields that corrupted the TOML file. This led to config parse failures and user_data_dir being overwritten with defaults. Now uses writeConfigField() for safe writes.
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"name": "@openchatlab/chatlab",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "ChatLab CLI & Service - 聊天记录分析工具",
|
|
"bin": {
|
|
"chatlab": "./bin/chatlab.js"
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"scripts": {
|
|
"cli": "node scripts/ensure-native.mjs && tsx src/cli.ts",
|
|
"ensure-native": "node scripts/ensure-native.mjs",
|
|
"rebuild-native": "bash scripts/rebuild-native.sh",
|
|
"rebuild-sqlite": "npm rebuild better-sqlite3"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/multipart": "^10.0.0",
|
|
"@fastify/static": "^9.1.3",
|
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
"@openchatlab/config": "workspace:*",
|
|
"@openchatlab/core": "workspace:*",
|
|
"@openchatlab/node-runtime": "workspace:*",
|
|
"@openchatlab/parser": "workspace:*",
|
|
"@openchatlab/shared-types": "workspace:*",
|
|
"@openchatlab/sync": "workspace:*",
|
|
"@openchatlab/tools": "workspace:*",
|
|
"commander": "^13.1.0",
|
|
"fastify": "^5.8.4"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^4.21.0"
|
|
}
|
|
}
|