10 Commits

Author SHA1 Message Date
digua 811bb3c09a fix: prevent SessionIndexModal from blocking empty sessions 2026-05-23 16:28:50 +08:00
digua 78e41a65b5 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.
2026-05-19 21:33:00 +08:00
digua 17855858d7 feat(web): add standalone Web Vite build configuration
Phase 3A.2: Create vite.web.config.mts for building the CLI serve
Web SPA independently from the Electron build pipeline.

- __IS_ELECTRON__ = false, __IS_BROWSER_STANDALONE__ = false
- Output to dist-web/ (gitignored)
- Dev proxy: /_web and /api -> localhost:3400 (chatlab serve)
- Resolve aliases for @electron/shared and @electron/preload
  (type-only imports, erased at build time)
- npm scripts: dev:web, build:web
- Same manualChunks strategy as Electron renderer build
2026-05-13 19:56:14 +08:00
digua d040aaaa98 feat(server): isolate better-sqlite3 native binary for Electron/Node coexistence
Add rebuild-native.sh script that compiles better-sqlite3 in an isolated
temp directory for system Node.js, storing the binary at packages/server/native/.
DatabaseManager and openBetterSqliteDatabase now accept nativeBinding option.
CLI auto-detects non-Electron environment and uses the isolated binary.
2026-05-11 20:24:39 +08:00
digua d4f5c58f90 chore: i18n构建配置 2026-02-13 14:15:38 +08:00
digua 46a11ee2da chore: 移除componenst.d.ts 2026-01-13 21:37:27 +08:00
digua 7bb735533b feat: 完成最终国际化 2026-01-07 22:05:20 +08:00
digua 3ed7658759 chore: 完成苹果签名和公证 2025-12-15 16:44:59 +08:00
digua 9667dc615a feat: 完成聊天记录解析和基础数据渲染 2025-11-26 23:24:07 +08:00
digua 49ecd8fc1d init 2025-11-26 13:57:24 +08:00