release: v0.24.0

This commit is contained in:
digua committed 2026-06-03 13:37:02 +08:00
1 parent 185e88ba3e
commit fbfe635838
9 files changed
+385 -1

No files matched your search

+52
View File
@@ -1,4 +1,56 @@
[
{
"version": "0.24.0",
"date": "2026-06-03",
"summary": "新增 CLI Web 认证与数据目录迁移能力,统一多端 HTTP 路由,并修复数据迁移、AI 配置和导入刷新问题。",
"changes": [
{
"type": "feat",
"items": [
"新增多语言版本日志 Markdown 生成能力",
"支持在存储管理中忽略旧数据迁移提示",
"【CLI Web】新增登录页、Token 认证和记住登录状态",
"【CLI Web】支持数据目录迁移流程,可在 Web 设置中切换并迁移数据目录",
"【CLI】新增 --require-auth 参数,用于保护 /_web/* API 访问",
"【桌面端】新增内部 HTTP 服务,支持前端统一通过服务适配层访问共享接口"
]
},
{
"type": "fix",
"items": [
"修复数据目录迁移与数据库迁移流程中的多处边界问题,避免旧库字段缺失或路径切换导致读取失败",
"修复数据目录迁移提示在旧数据不存在或目录变更后仍错误显示的问题",
"修复增量导入后侧边栏消息数量未刷新的问题",
"修复侧边栏折叠状态仅存于 sessionStorage 导致刷新后丢失的问题",
"修复 AI 配置编辑时已保存密钥未正确启用拉取模型和验证按钮的问题",
"修复 AI 共享 SSE 流式响应的稳定性问题",
"修复自定义数据源新增弹窗未强制填写 Token 的问题",
"【桌面端】将图表插件计算移入 Worker,避免主线程计算阻塞"
]
},
{
"type": "refactor",
"items": [
"抽取 @openchatlab/http-routes 共享包,统一 CLI Web 与桌面端的 HTTP 路由实现",
"将 AI 配置、助手、技能、会话、流式响应、缓存和合并相关接口迁移到共享 HTTP 路由",
"精简桌面端 IPC 桥接层,移除遗留的 AI、会话索引、LLM、Assistant、Skill、NLP 等 IPC 兼容代码",
"统一前端服务层,减少 Electron 与 Web 模式的分支实现"
]
},
{
"type": "perf",
"items": ["压缩主进程构建产物,并延迟加载 tiktoken rank table,降低启动和打包体积压力"]
},
{
"type": "ci",
"items": ["修复 Windows 发布流程中的 zstd 缓存问题,并补充 CLI 更新发布说明"]
},
{
"type": "chore",
"items": ["调整 Node 类型检查项目配置,覆盖桌面端与共享 Node 代码"]
}
]
},
{
"version": "0.23.1",
"date": "2026-06-01",
+43
View File
@@ -1,5 +1,48 @@
# 更新日志
## v0.24.0 (2026-06-03)
> 新增 CLI Web 认证与数据目录迁移能力,统一多端 HTTP 路由,并修复数据迁移、AI 配置和导入刷新问题。
### ✨ 新功能
- 新增多语言版本日志 Markdown 生成能力
- 支持在存储管理中忽略旧数据迁移提示
- 【CLI Web】新增登录页、Token 认证和记住登录状态
- 【CLI Web】支持数据目录迁移流程,可在 Web 设置中切换并迁移数据目录
- 【CLI】新增 --require-auth 参数,用于保护 /\_web/\* API 访问
- 【桌面端】新增内部 HTTP 服务,支持前端统一通过服务适配层访问共享接口
### 🐛 修复
- 修复数据目录迁移与数据库迁移流程中的多处边界问题,避免旧库字段缺失或路径切换导致读取失败
- 修复数据目录迁移提示在旧数据不存在或目录变更后仍错误显示的问题
- 修复增量导入后侧边栏消息数量未刷新的问题
- 修复侧边栏折叠状态仅存于 sessionStorage 导致刷新后丢失的问题
- 修复 AI 配置编辑时已保存密钥未正确启用拉取模型和验证按钮的问题
- 修复 AI 共享 SSE 流式响应的稳定性问题
- 修复自定义数据源新增弹窗未强制填写 Token 的问题
- 【桌面端】将图表插件计算移入 Worker,避免主线程计算阻塞
### ♻️ 重构
- 抽取 @openchatlab/http-routes 共享包,统一 CLI Web 与桌面端的 HTTP 路由实现
- 将 AI 配置、助手、技能、会话、流式响应、缓存和合并相关接口迁移到共享 HTTP 路由
- 精简桌面端 IPC 桥接层,移除遗留的 AI、会话索引、LLM、Assistant、Skill、NLP 等 IPC 兼容代码
- 统一前端服务层,减少 Electron 与 Web 模式的分支实现
### ⚡ 性能
- 压缩主进程构建产物,并延迟加载 tiktoken rank table,降低启动和打包体积压力
### 👷 CI
- 修复 Windows 发布流程中的 zstd 缓存问题,并补充 CLI 更新发布说明
### 🔧 杂项
- 调整 Node 类型检查项目配置,覆盖桌面端与共享 Node 代码
## v0.23.1 (2026-06-01)
> 新增 clb 短别名与端口预检引导,修复守护进程静默退出及暗色模式标题栏等多处问题。
+54
View File
@@ -1,4 +1,58 @@
[
{
"version": "0.24.0",
"date": "2026-06-03",
"summary": "Adds CLI Web authentication and data directory migration, unifies cross-platform HTTP routes, and fixes data migration, AI settings, and import refresh issues.",
"changes": [
{
"type": "feat",
"items": [
"Add Markdown generation for multilingual release notes",
"Allow legacy data migration prompts to be ignored from storage management",
"[CLI Web] Add a login page, token authentication, and persistent login state",
"[CLI Web] Support data directory migration from Web settings",
"[CLI] Add the --require-auth flag to protect /_web/* API access",
"[Desktop] Add an internal HTTP service so the frontend can use shared service adapters"
]
},
{
"type": "fix",
"items": [
"Fix multiple edge cases in data directory and database migrations to prevent missing legacy columns or failed reads after path changes",
"Fix legacy data migration prompts appearing incorrectly when no legacy data exists or after directory changes",
"Fix sidebar message counts not refreshing after incremental imports",
"Fix sidebar collapsed state being lost after refresh because it was stored only in sessionStorage",
"Fix fetch-models and validate buttons not being enabled when editing AI settings with a saved key",
"Fix stability issues in shared AI SSE streaming",
"Fix custom data source creation not requiring a token",
"[Desktop] Move chart plugin computation to a worker to avoid blocking the main thread"
]
},
{
"type": "refactor",
"items": [
"Extract the @openchatlab/http-routes shared package to unify HTTP route implementations across CLI Web and Desktop",
"Move AI settings, assistants, skills, conversations, streaming responses, cache, and merge APIs to shared HTTP routes",
"Trim the desktop IPC bridge by removing legacy AI, session index, LLM, Assistant, Skill, and NLP compatibility handlers",
"Unify the frontend service layer to reduce Electron/Web mode branching"
]
},
{
"type": "perf",
"items": [
"Minify the main process bundle and lazy-load the tiktoken rank table to reduce startup and package size pressure"
]
},
{
"type": "ci",
"items": ["Fix the Windows release workflow zstd cache issue and add CLI update notes to release notes"]
},
{
"type": "chore",
"items": ["Align Node type-check projects to cover desktop and shared Node code"]
}
]
},
{
"version": "0.23.1",
"date": "2026-06-01",
+43
View File
@@ -1,5 +1,48 @@
# Changelog
## v0.24.0 (2026-06-03)
> Adds CLI Web authentication and data directory migration, unifies cross-platform HTTP routes, and fixes data migration, AI settings, and import refresh issues.
### ✨ Features
- Add Markdown generation for multilingual release notes
- Allow legacy data migration prompts to be ignored from storage management
- [CLI Web] Add a login page, token authentication, and persistent login state
- [CLI Web] Support data directory migration from Web settings
- [CLI] Add the --require-auth flag to protect /\_web/\* API access
- [Desktop] Add an internal HTTP service so the frontend can use shared service adapters
### 🐛 Bug Fixes
- Fix multiple edge cases in data directory and database migrations to prevent missing legacy columns or failed reads after path changes
- Fix legacy data migration prompts appearing incorrectly when no legacy data exists or after directory changes
- Fix sidebar message counts not refreshing after incremental imports
- Fix sidebar collapsed state being lost after refresh because it was stored only in sessionStorage
- Fix fetch-models and validate buttons not being enabled when editing AI settings with a saved key
- Fix stability issues in shared AI SSE streaming
- Fix custom data source creation not requiring a token
- [Desktop] Move chart plugin computation to a worker to avoid blocking the main thread
### ♻️ Refactoring
- Extract the @openchatlab/http-routes shared package to unify HTTP route implementations across CLI Web and Desktop
- Move AI settings, assistants, skills, conversations, streaming responses, cache, and merge APIs to shared HTTP routes
- Trim the desktop IPC bridge by removing legacy AI, session index, LLM, Assistant, Skill, and NLP compatibility handlers
- Unify the frontend service layer to reduce Electron/Web mode branching
### ⚡ Performance
- Minify the main process bundle and lazy-load the tiktoken rank table to reduce startup and package size pressure
### 👷 CI
- Fix the Windows release workflow zstd cache issue and add CLI update notes to release notes
### 🔧 Chores
- Align Node type-check projects to cover desktop and shared Node code
## v0.23.1 (2026-06-01)
> Adds a clb command alias and port conflict detection with actionable guidance. Fixes daemon silent exit and several UI issues in dark mode.
+54
View File
@@ -1,4 +1,58 @@
[
{
"version": "0.24.0",
"date": "2026-06-03",
"summary": "CLI Web の認証とデータディレクトリ移行に対応し、複数環境の HTTP ルートを統一。データ移行、AI設定、インポート後の更新に関する問題を修正しました。",
"changes": [
{
"type": "feat",
"items": [
"多言語リリースノートから Markdown を生成できるようにしました",
"ストレージ管理で旧データ移行の案内を無視できるようにしました",
"【CLI Web】ログインページ、Token 認証、ログイン状態の保持に対応",
"【CLI Web】Web 設定からデータディレクトリを切り替え、移行できるようにしました",
"【CLI】/_web/* API へのアクセスを保護する --require-auth フラグを追加",
"【デスクトップ】内部 HTTP サービスを追加し、フロントエンドから共有サービスアダプター経由で共通 API を利用できるようにしました"
]
},
{
"type": "fix",
"items": [
"データディレクトリ移行とデータベース移行の複数の境界ケースを修正し、旧データベースの列不足やパス切り替え後の読み取り失敗を防止",
"旧データが存在しない場合やディレクトリ変更後にも移行案内が誤って表示される問題を修正",
"増分インポート後にサイドバーのメッセージ数が更新されない問題を修正",
"サイドバーの折りたたみ状態が sessionStorage のみに保存され、再読み込み後に失われる問題を修正",
"保存済みキーで AI 設定を編集する際、モデル取得と検証ボタンが正しく有効化されない問題を修正",
"共有 AI SSE ストリーミングの安定性に関する問題を修正",
"カスタムデータソース追加時に Token が必須になっていなかった問題を修正",
"【デスクトップ】グラフプラグインの計算を Worker に移し、メインスレッドのブロックを回避"
]
},
{
"type": "refactor",
"items": [
"@openchatlab/http-routes 共有パッケージを抽出し、CLI Web とデスクトップの HTTP ルート実装を統一",
"AI 設定、アシスタント、スキル、会話、ストリーミングレスポンス、キャッシュ、マージ関連 API を共有 HTTP ルートへ移行",
"デスクトップの IPC ブリッジを整理し、旧 AI、セッションインデックス、LLM、Assistant、Skill、NLP などの互換ハンドラーを削除",
"フロントエンドのサービス層を統一し、Electron / Web モード間の分岐を削減"
]
},
{
"type": "perf",
"items": [
"メインプロセスのビルド成果物を圧縮し、tiktoken rank table を遅延読み込みにして、起動時とパッケージサイズの負荷を軽減"
]
},
{
"type": "ci",
"items": ["Windows リリースフローの zstd キャッシュ問題を修正し、CLI 更新に関するリリースノートを追加"]
},
{
"type": "chore",
"items": ["Node の型チェック対象を調整し、デスクトップと共有 Node コードをカバーするようにしました"]
}
]
},
{
"version": "0.23.1",
"date": "2026-06-01",
+43
View File
@@ -1,5 +1,48 @@
# 変更履歴
## v0.24.0 (2026-06-03)
> CLI Web の認証とデータディレクトリ移行に対応し、複数環境の HTTP ルートを統一。データ移行、AI設定、インポート後の更新に関する問題を修正しました。
### ✨ 新機能
- 多言語リリースノートから Markdown を生成できるようにしました
- ストレージ管理で旧データ移行の案内を無視できるようにしました
- 【CLI Web】ログインページ、Token 認証、ログイン状態の保持に対応
- 【CLI Web】Web 設定からデータディレクトリを切り替え、移行できるようにしました
- 【CLI】/\_web/\* API へのアクセスを保護する --require-auth フラグを追加
- 【デスクトップ】内部 HTTP サービスを追加し、フロントエンドから共有サービスアダプター経由で共通 API を利用できるようにしました
### 🐛 バグ修正
- データディレクトリ移行とデータベース移行の複数の境界ケースを修正し、旧データベースの列不足やパス切り替え後の読み取り失敗を防止
- 旧データが存在しない場合やディレクトリ変更後にも移行案内が誤って表示される問題を修正
- 増分インポート後にサイドバーのメッセージ数が更新されない問題を修正
- サイドバーの折りたたみ状態が sessionStorage のみに保存され、再読み込み後に失われる問題を修正
- 保存済みキーで AI 設定を編集する際、モデル取得と検証ボタンが正しく有効化されない問題を修正
- 共有 AI SSE ストリーミングの安定性に関する問題を修正
- カスタムデータソース追加時に Token が必須になっていなかった問題を修正
- 【デスクトップ】グラフプラグインの計算を Worker に移し、メインスレッドのブロックを回避
### ♻️ リファクタリング
- @openchatlab/http-routes 共有パッケージを抽出し、CLI Web とデスクトップの HTTP ルート実装を統一
- AI 設定、アシスタント、スキル、会話、ストリーミングレスポンス、キャッシュ、マージ関連 API を共有 HTTP ルートへ移行
- デスクトップの IPC ブリッジを整理し、旧 AI、セッションインデックス、LLM、Assistant、Skill、NLP などの互換ハンドラーを削除
- フロントエンドのサービス層を統一し、Electron / Web モード間の分岐を削減
### ⚡ パフォーマンス
- メインプロセスのビルド成果物を圧縮し、tiktoken rank table を遅延読み込みにして、起動時とパッケージサイズの負荷を軽減
### 👷 CI
- Windows リリースフローの zstd キャッシュ問題を修正し、CLI 更新に関するリリースノートを追加
### 🔧 雑務
- Node の型チェック対象を調整し、デスクトップと共有 Node コードをカバーするようにしました
## v0.23.1 (2026-06-01)
> clb コマンドの短縮エイリアスを追加し、ポート競合を起動前に検出して案内するようにしました。デーモンのサイレント終了やダークモードのタイトルバーなど複数の問題を修正しました。
+52
View File
@@ -1,4 +1,56 @@
[
{
"version": "0.24.0",
"date": "2026-06-03",
"summary": "新增 CLI Web 驗證與資料目錄遷移能力,統一多端 HTTP 路由,並修正資料遷移、AI 設定與匯入刷新問題。",
"changes": [
{
"type": "feat",
"items": [
"新增多語版本更新記錄的 Markdown 產生能力",
"支援在儲存空間管理中忽略舊資料遷移提示",
"【CLI Web】新增登入頁、Token 驗證與記住登入狀態",
"【CLI Web】支援資料目錄遷移流程,可在 Web 設定中切換並遷移資料目錄",
"【CLI】新增 --require-auth 參數,用於保護 /_web/* API 存取",
"【桌面端】新增內部 HTTP 服務,讓前端可透過統一服務轉接層使用共享介面"
]
},
{
"type": "fix",
"items": [
"修正資料目錄遷移與資料庫遷移流程中的多個邊界情境,避免舊資料庫欄位缺失或路徑切換後讀取失敗",
"修正舊資料不存在或目錄變更後,資料遷移提示仍錯誤顯示的問題",
"修正增量匯入後側邊欄訊息數量未更新的問題",
"修正側邊欄收合狀態只存於 sessionStorage,導致重新整理後遺失的問題",
"修正編輯 AI 設定且已儲存金鑰時,拉取模型與驗證按鈕未正確啟用的問題",
"修正 AI 共享 SSE 串流回應的穩定性問題",
"修正新增自訂資料來源時未強制填寫 Token 的問題",
"【桌面端】將圖表外掛運算移至 Worker,避免阻塞主執行緒"
]
},
{
"type": "refactor",
"items": [
"抽出 @openchatlab/http-routes 共享套件,統一 CLI Web 與桌面端的 HTTP 路由實作",
"將 AI 設定、助手、技能、對話、串流回應、快取與合併相關 API 遷移到共享 HTTP 路由",
"精簡桌面端 IPC 橋接層,移除舊版 AI、對話索引、LLM、Assistant、Skill、NLP 等相容處理程式",
"統一前端服務層,減少 Electron 與 Web 模式的分支實作"
]
},
{
"type": "perf",
"items": ["壓縮主程序建置產物,並延遲載入 tiktoken rank table,降低啟動與打包體積壓力"]
},
{
"type": "ci",
"items": ["修正 Windows 發布流程中的 zstd 快取問題,並補充 CLI 更新發布說明"]
},
{
"type": "chore",
"items": ["調整 Node 型別檢查專案設定,涵蓋桌面端與共享 Node 程式碼"]
}
]
},
{
"version": "0.23.1",
"date": "2026-06-01",
+43
View File
@@ -1,5 +1,48 @@
# 更新日誌
## v0.24.0 (2026-06-03)
> 新增 CLI Web 驗證與資料目錄遷移能力,統一多端 HTTP 路由,並修正資料遷移、AI 設定與匯入刷新問題。
### ✨ 新功能
- 新增多語版本更新記錄的 Markdown 產生能力
- 支援在儲存空間管理中忽略舊資料遷移提示
- 【CLI Web】新增登入頁、Token 驗證與記住登入狀態
- 【CLI Web】支援資料目錄遷移流程,可在 Web 設定中切換並遷移資料目錄
- 【CLI】新增 --require-auth 參數,用於保護 /\_web/\* API 存取
- 【桌面端】新增內部 HTTP 服務,讓前端可透過統一服務轉接層使用共享介面
### 🐛 修復
- 修正資料目錄遷移與資料庫遷移流程中的多個邊界情境,避免舊資料庫欄位缺失或路徑切換後讀取失敗
- 修正舊資料不存在或目錄變更後,資料遷移提示仍錯誤顯示的問題
- 修正增量匯入後側邊欄訊息數量未更新的問題
- 修正側邊欄收合狀態只存於 sessionStorage,導致重新整理後遺失的問題
- 修正編輯 AI 設定且已儲存金鑰時,拉取模型與驗證按鈕未正確啟用的問題
- 修正 AI 共享 SSE 串流回應的穩定性問題
- 修正新增自訂資料來源時未強制填寫 Token 的問題
- 【桌面端】將圖表外掛運算移至 Worker,避免阻塞主執行緒
### ♻️ 重構
- 抽出 @openchatlab/http-routes 共享套件,統一 CLI Web 與桌面端的 HTTP 路由實作
- 將 AI 設定、助手、技能、對話、串流回應、快取與合併相關 API 遷移到共享 HTTP 路由
- 精簡桌面端 IPC 橋接層,移除舊版 AI、對話索引、LLM、Assistant、Skill、NLP 等相容處理程式
- 統一前端服務層,減少 Electron 與 Web 模式的分支實作
### ⚡ 效能
- 壓縮主程序建置產物,並延遲載入 tiktoken rank table,降低啟動與打包體積壓力
### 👷 CI
- 修正 Windows 發布流程中的 zstd 快取問題,並補充 CLI 更新發布說明
### 🔧 雜項
- 調整 Node 型別檢查專案設定,涵蓋桌面端與共享 Node 程式碼
## v0.23.1 (2026-06-01)
> 新增 clb 短別名與連接埠預檢提示,修正背景程式靜默退出及深色模式標題列等多處問題。
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ChatLab",
"version": "0.23.1",
"version": "0.24.0",
"private": true,
"description": "本地化的聊天记录分析工具,通过 SQL 和 AI Agent 回顾你的社交记忆",
"repository": {