Skip to content

OhMyAgent Desktop v2.0.0-beta5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Jul 13:31

v2.0.0-beta5 is a comprehensive code quality release addressing review findings across all priority levels.

🛡️ Robustness

  • Unified OhMyAgentError hierarchy and structured error handlers replacing ad-hoc error handling
  • Replace all console.* with pino structured logging across 15 files
  • Add structured logging to previously silent catch blocks in 9 core files

⚡ Performance

  • Tool registry version-based cache and PreparedStatementCache with LRU eviction
  • embedBatch / writeBatch bulk operations for memory embedding and writing
  • Configurable concurrency for embedding, LLM, and DB operations via AppConfig.performance

🔧 Architecture

  • Config hot-reload with two-phase validate+apply pattern (ConfigManager)
  • Skill dependency/conflict validation and SkillMetricsService
  • Database composite indexes migration for query optimization
  • Replace unbounded Map with LRUCache in skill router, audit all Map usage

🧪 Tests

  • 118 new tests: agent-factory, memory-retriever, policy-center (2473 tests pass, 163 test files)

🎨 Code Style

  • Add .prettierrc, .editorconfig, and format scripts

v2.0.0-beta5 是一个全面的代码质量版本,处理了所有优先级的 review 发现。

🛡️ 健壮性

  • 统一 OhMyAgentError 异常体系和结构化错误处理器
  • 15 个文件中的 console.* 全部替换为 pino 结构化日志
  • 9 个核心文件中静默 catch 块增加结构化日志

⚡ 性能

  • 工具注册表版本缓存和 PreparedStatementCache(LRU 驱逐)
  • 记忆嵌入和写入的批量操作(embedBatch / writeBatch
  • 嵌入/LLM/数据库的并发数可通过 AppConfig.performance 配置

🔧 架构

  • 配置热重载,两阶段校验+应用模式(ConfigManager
  • Skill 依赖/冲突校验和 SkillMetricsService
  • 数据库复合索引迁移,优化查询性能
  • 替换无界 MapLRUCache,审计所有 Map 使用

🧪 测试

  • 新增 118 个测试:agent-factory、memory-retriever、policy-center(2473 测试通过,163 个测试文件)

🎨 代码风格

  • 添加 .prettierrc.editorconfig 和格式化脚本