Repository navigation
Release v1.1.29
✨ 新特性
-
全新统一存储层(Storage)
- 新增
agentPermissionStore:管理 Agent 权限模式(localStorage 持久化) - 新增
agentPlanMemoryStore:管理 Agent 计划与长期记忆,支持服务端同步 + 本地缓存 - 新增
conversationStore:基于 sessionStorage 管理会话历史 - 新增
crossWindowStore:基于 OfficeRuntime.storage / localStorage 实现多窗口间通信 - 新增
editTransactionStore:基于 sessionStorage 跟踪编辑事务 - 统一存储模块入口(
storage/index.ts),导入与管理更便捷 - 增强
settingsStore:管理 AI 设置、配置档案与系统代理,支持本地服务回退
- 新增
-
设置页全面模块化重构
- 巨型
Settings.tsx(1800+ 行)拆分为独立组件:ApiSettingsTab:API 配置DiagnosticsCard:运行时诊断信息展示ModulesTab:助手模块管理(支持添加、编辑、删除)PromptsTab:系统提示词查看与编辑
- 抽取共享设置工具与统一样式(
settingsShared/settingsStyles),各设置页 UI 保持一致
- 巨型
-
本地服务架构优化
- 将
local-server.js拆分为server/proxy.js(代理,含完整测试)与server/lifecycle.js(生命周期管理) - 新增
server/lib/security.js(安全加固)与server/lib/normalize.js(请求规范化),均附带单元测试
- 将
-
Agent 运行控制抽取
- 新增
agentRunController,将 Agent 循环控制逻辑从 UI Hook 中解耦,并补充单元测试
- 新增
🧪 测试
- 新增代理、安全、规范化、Agent 运行控制等多组单元测试,提升稳定性
🧹 其他
- 移除
package-lock.json,统一使用 bun 管理依赖 - 清理过时的
.eslintrc.json配置
✨ New Features
-
Comprehensive unified storage layer
- Added
agentPermissionStorefor managing agent permission modes (localStorage-backed) - Added
agentPlanMemoryStorefor agent plans and long-term memories with server sync and local caching - Added
conversationStore(sessionStorage-based) for conversation history - Added
crossWindowStorefor cross-window communication via OfficeRuntime.storage / localStorage - Added
editTransactionStore(sessionStorage-based) for tracking edit transactions - Unified storage module exports under a single index for easier imports
- Enhanced
settingsStoreto manage AI settings, profiles, and system proxy with local-service fallback
- Added
-
Modularized Settings UI
- Split the monolithic
Settings.tsx(1800+ lines) into dedicated components:ApiSettingsTab: API configurationDiagnosticsCard: runtime diagnostics displayModulesTab: assistant module management (add / edit / delete)PromptsTab: view and edit system prompts
- Introduced shared settings utilities and styles (
settingsShared/settingsStyles) for consistent UI
- Split the monolithic
-
Local server architecture improvements
- Split
local-server.jsintoserver/proxy.js(with full test coverage) andserver/lifecycle.js - Added
server/lib/security.js(security hardening) andserver/lib/normalize.js(request normalization), both with unit tests
- Split
-
Extracted Agent run controller
- Added
agentRunController, decoupling agent loop control from UI hooks, with unit tests
- Added
🧪 Tests
- Added unit tests for proxy, security, normalization, and agent run control to improve reliability
🧹 Miscellaneous
- Removed
package-lock.json; dependencies are now managed with bun - Removed outdated
.eslintrc.json