refactor: migrate CLI from packages/server to apps/cli

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.
This commit is contained in:
digua committed 2026-05-19 21:33:00 +08:00
1 parent 9db30879d3
commit 78e41a65b5
40 files changed
+74 -69

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"composite": true,
"noEmit": true
},
"include": [
"src/**/*.ts",
"../../packages/shared-types/**/*",
"../../packages/core/**/*",
"../../packages/node-runtime/**/*",
"../../packages/config/**/*",
"../../packages/parser/**/*",
"../../packages/tools/**/*",
"../../packages/sync/**/*"
]
}