mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
Migrate 30+ endpoints from apps/cli/src/http/ to packages/http-routes/ with a platform-agnostic HttpRouteContext DI interface, enabling future reuse by Electron Internal Server. Batch 1: auth, errors, context, sessions, members, preferences Batch 2: analytics, sql, session-index, export, nlp Batch 3: REST system, REST sessions Includes 7 smoke tests via Fastify inject covering /api/v1/* and /_web/* route groups. Co-authored-by: Cursor <cursoragent@cursor.com>
81 lines
2.2 KiB
JSON
81 lines
2.2 KiB
JSON
{
|
|
"name": "chatlab-cli",
|
|
"version": "0.0.0",
|
|
"description": "ChatLab CLI & Service - Chat history analysis tool",
|
|
"type": "module",
|
|
"bin": {
|
|
"chatlab": "bin/chatlab.mjs",
|
|
"clb": "bin/chatlab.mjs"
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"files": [
|
|
"bin/",
|
|
"dist/",
|
|
"dist-web/",
|
|
"LICENSE"
|
|
],
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"license": "AGPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ChatLab/ChatLab.git",
|
|
"directory": "apps/cli"
|
|
},
|
|
"homepage": "https://github.com/ChatLab/ChatLab",
|
|
"keywords": [
|
|
"chatlab",
|
|
"chat",
|
|
"analysis",
|
|
"cli"
|
|
],
|
|
"scripts": {
|
|
"cli": "node scripts/ensure-native.mjs && tsx src/cli.ts",
|
|
"build": "tsup",
|
|
"build:full": "pnpm -w run build:web && pnpm run build && pnpm run prepare:web",
|
|
"prepare:web": "rm -rf dist-web && cp -r ../../dist-web dist-web",
|
|
"ensure-native": "node scripts/ensure-native.mjs",
|
|
"rebuild-native": "bash scripts/rebuild-native.sh",
|
|
"rebuild-sqlite": "npm rebuild better-sqlite3",
|
|
"prepack": "node scripts/sync-release-docs.mjs",
|
|
"postpack": "node scripts/clean-release-docs.mjs",
|
|
"prepublishOnly": "pnpm run build"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/multipart": "^10.0.0",
|
|
"@fastify/static": "^9.1.3",
|
|
"@earendil-works/pi-agent-core": "0.74.2",
|
|
"@earendil-works/pi-ai": "0.74.2",
|
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
"better-sqlite3": "^12.4.6",
|
|
"commander": "^13.1.0",
|
|
"fastify": "^5.8.4",
|
|
"gray-matter": "^4.0.3",
|
|
"js-tiktoken": "^1.0.21",
|
|
"smol-toml": "^1.3.1",
|
|
"stream-json": "^1.9.1",
|
|
"zod": "^3.24.4"
|
|
},
|
|
"optionalDependencies": {
|
|
"@node-rs/jieba": "^2.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@openchatlab/config": "workspace:*",
|
|
"@openchatlab/core": "workspace:*",
|
|
"@openchatlab/http-routes": "workspace:*",
|
|
"@openchatlab/node-runtime": "workspace:*",
|
|
"@openchatlab/parser": "workspace:*",
|
|
"@openchatlab/shared-types": "workspace:*",
|
|
"@openchatlab/sync": "workspace:*",
|
|
"@openchatlab/tools": "workspace:*",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"chatlab-mcp": "workspace:*",
|
|
"tsup": "^8.5.0",
|
|
"tsx": "^4.21.0"
|
|
}
|
|
}
|