Skip to content

v1.1.29

Latest

Choose a tag to compare

@funkpopo funkpopo released this 28 Aug 08:28

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 agentPermissionStore for managing agent permission modes (localStorage-backed)
    • Added agentPlanMemoryStore for agent plans and long-term memories with server sync and local caching
    • Added conversationStore (sessionStorage-based) for conversation history
    • Added crossWindowStore for 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 settingsStore to manage AI settings, profiles, and system proxy with local-service fallback
  • Modularized Settings UI

    • Split the monolithic Settings.tsx (1800+ lines) into dedicated components:
      • ApiSettingsTab: API configuration
      • DiagnosticsCard: runtime diagnostics display
      • ModulesTab: assistant module management (add / edit / delete)
      • PromptsTab: view and edit system prompts
    • Introduced shared settings utilities and styles (settingsShared / settingsStyles) for consistent UI
  • Local server architecture improvements

    • Split local-server.js into server/proxy.js (with full test coverage) and server/lifecycle.js
    • Added server/lib/security.js (security hardening) and server/lib/normalize.js (request normalization), both with unit tests
  • Extracted Agent run controller

    • Added agentRunController, decoupling agent loop control from UI hooks, with unit tests

🧪 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