Skip to content

v2.1.11 — 类型安全强化 + Agent 核心重构

Latest

Choose a tag to compare

@Agions Agions released this 11 Apr 04:11
· 2 commits to main since this release

Agent 核心重构

  • GoalParser 接口抽象,支持规则/AI/混合模式
  • RuleBasedGoalParser 无AI依赖规则解析器(32个测试用例)
  • AgentConfig 替代直接对象字面量配置
  • AgentCore 新增 replan() / resume() 断点恢复
  • MultiAgentCoordinator 新增 broadcast() / executeCollaborative() / AgentMetrics

类型安全强化(46处any消除,115→69)

模块 改进
core/plugin PluginContext.logger unknown→Logger
mcp/prompts PromptExample.arguments any→PromptArguments
cli/commands options: any → 类型化接口
cicd/github GitHubAPI 响应接口定义
workflow StepConfig.dependsOn 新增
mcp/security RequestLike 接口定义
agent/state-machine actor 类型化
agent/verification CoverageData 类型化

验证

  • type-check 通过
  • build 通过 (847 KB)
  • 138 tests passed