Merge branch 'master' into code-mode-ui/host-foundation

This commit is contained in:
Tianyi Cui
2026-07-26 20:07:43 +08:00
committed by GitHub
964 changed files with 23815 additions and 4506 deletions

View File

@@ -1,5 +1,7 @@
# dsh-tools
English | [中文](README.zh.md)
Tool registry and execution pipeline. Tool plugins register their schemas and executors; the agent loop executes each call through `tools/pre-execute` (the extensible allow/deny gate) → monotonic registered guards → `tools/execute` (an around-dispatch wrapper for timeout/retry/metrics plugins) → `tools/post-execute` (inspect/replace the result, attach context) → the definition-owned `finalizeContent` boundary → the observe-only `tools/result` notification. The registry also owns HOW its tools are presented to the model — its `mode` config selects native function calling, [Code Mode](#code-mode), or both.
## Service: `ToolRegistry` (ctx key: `tools`)