ekko
7da934fe8b
revert: remove i18n lazy loading and highlight.js selective import ( #736 )
...
Revert the dynamic import() for i18n locales and highlight.js core+
registration from #696 . Dynamic imports create separate chunk files
that cause 404 errors for users after updating when the browser still
references old chunk hashes.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-14 23:32:33 +08:00
Butter Rice Cake of Gemini
f6df0fecfa
perf: 优化体积,highlight.js按需导入与i18n按需加载 ( #696 )
...
* perf: 优化打包体积,highlight.js按需导入与i18n按需加载
1. highlight.js: 从全量导入改为 core + 注册27种常用语言,减少约500~800KB
2. i18n: 只同步加载en语言包,其他8种语言改为异步加载,首屏减少约350~400KB
3. 使用vue-i18n的setLocaleMessage API动态注册语言包
4. 新增switchLocale函数统一处理语言切换
5. 同步更新相关测试文件的mock路径和API适配
* 修复类型断言
2026-05-14 12:39:36 +08:00
ekko
9170e11715
fix: SkillsUsage 页面样式修复与 API server skill usage 统计 ( #698 )
...
* Reapply "feat: 新增 Skills Usage 监控统计与图表 (#668 )" (#670 )
This reverts commit 91de3b12a1 .
* fix: count API-server skill usage
* fix: align SkillsUsageView header with other pages and update sidebar icon
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
---------
Co-authored-by: Zhicheng Han <zhicheng.han@mathematik.uni-goettingen.de >
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-14 09:28:51 +08:00
ekko
91de3b12a1
Revert "feat: 新增 Skills Usage 监控统计与图表 ( #668 )" ( #670 )
...
This reverts commit ce08d2b05a .
2026-05-13 07:51:29 +08:00
Zhicheng Han
ce08d2b05a
feat: 新增 Skills Usage 监控统计与图表 ( #668 )
...
* feat: add skills usage monitoring
* fix: localize Skills Usage page copy
* fix: keep Skills Usage labels compact
2026-05-13 07:43:25 +08:00
luSkyl
8b291d7a48
test: fix windows path isolation ( #659 )
2026-05-12 20:56:04 +08:00
ekko
acf4e225e6
feat: rewrite database schema synchronization with automatic recovery ( #379 )
...
Complete rewrite of the Hermes SQLite database schema synchronization mechanism
with comprehensive error handling, automatic recovery, and full test coverage.
## Database Schema Synchronization
- **Unified sync mechanism**: Single `syncTable()` function handles all schema changes
- **Automatic column sync**: Adds missing columns and removes extra columns
- **Table rebuilding**: Automatically rebuilds tables when primary keys or types change
- **Data preservation**: Preserves data during schema changes when compatible
- **Index management**: Creates and removes indexes as needed
## Error Recovery & Reliability
- **Automatic backup**: Backs up corrupted database before recovery
- **Retry limiting**: Prevents infinite loops with retry limit
- **Duplicate prevention**: Avoids multiple backup files
- **Safe file operations**: Uses copy+delete instead of rename for safety
## Composite Primary Keys
- Fixed GC_ROOM_AGENTS and GC_ROOM_MEMBERS with proper composite primary keys
- Prevents duplicate entries while allowing same roomId with different agentId/userId
## Test Coverage
- **10 new integration tests** for schema synchronization (tests/server/schema-sync.test.ts)
- **3 updated tests** for Hermes schemas (tests/server/hermes-schemas.test.ts)
- All 327 tests passing (47 test files, 325 passed, 2 skipped)
## Bug Fixes
- Fixed module import issues (unified ES6 imports, removed mixed require())
- Fixed mock issues in sessions routes tests
- Fixed i18n coverage test to handle newly added keys
- Fixed profiles store test to match current implementation
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-01 19:48:46 +08:00
Zhicheng Han
03c18c210d
修复侧边栏 i18n 缺失 key 警告 ( #170 )
...
* Fix i18n missing-key warnings
* Add locale translations for i18n warning keys
2026-04-24 08:31:42 +08:00