Skip to content

refactor: rename direct tool execution and share settlement - #54

Merged
cacohe merged 1 commit into
mainfrom
refactor/direct-tool-set
Oct 16, 2026
Merged

cacohe merged 1 commit into
mainfrom
refactor/direct-tool-set

Conversation

@cacohe

@cacohe cacohe commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

变更说明

进程内直接执行的工具集从 ToolRegistry 改名为 DirectToolSet,与 SandboxToolSet、PolicyControlledToolSet、CompositeToolSet 使用同一套「职责 + ToolSet」命名。DirectToolSet 和 SandboxToolSet 共用 settleRegisteredCall 结算一次已登记调用;授权包装和组合路由仍保持各自的失败语义。这是公开 TypeScript API 的破坏性重命名,调用和结果语义不变。

验证

  • 已运行 pnpm run check
  • 已补充或更新相关测试

本地已运行 kernel 工具测试、skill 与 memory gateway 相关测试,以及 kernel 类型检查和 Biome。完整 pnpm run check 由 CI 执行。

影响评估

  • 不影响公开协议、事件兼容性、生命周期或恢复语义
  • 已新增或更新 ADR
  • 已检查配置、日志、测试和文档中不存在密钥或敏感数据

公开符号 ToolRegistry 已移除。会话事件、工具结果和恢复语义没有变化。历史 ADR 仍保留当时的 ToolRegistry 名称。

Name the in-process tool set DirectToolSet and settle registered calls through one path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cacohe
cacohe merged commit cbd2911 into main Oct 16, 2026
3 checks passed
@cacohe
cacohe deleted the refactor/direct-tool-set branch October 16, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant