refactor(sdk): remove unused root tool filter

This commit is contained in:
Tianyi Cui
2026-08-25 12:21:50 +08:00
parent 09eda93884
commit d35459e3c1
13 changed files with 12 additions and 135 deletions
+2 -2
View File
@@ -2,5 +2,5 @@
# side as of the last confirmed-consistent state. Both languages carry equal authority;
# after editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/config-catalog.md
config-catalog.md: 19f292ee40861ffa6f8e7fdef4d8717189a2149c
config-catalog.zh.md: 96f9721cae20a1a0ed172349c0189bc47576c75d
config-catalog.md: 54cf64bdf6ff5c8ee51b6ecedaf218267778d19f
config-catalog.zh.md: e887edf989d279435ae04beb40172341f5125b1e
-7
View File
@@ -1714,13 +1714,6 @@ Requires: `agents`
export interface JsonRpcConfig {
/** Report max-token turn/subagent termination as a successful SDK result. */
maxTokensAsSuccess?: boolean
/** Per-root-agent model-facing tool filter; an allow list excludes later unnamed global tools. */
toolFilter?: {
/** Global tool names that remain visible. */
allow?: string[]
/** Global tool names removed from visibility. */
deny?: string[]
}
/** Transport input override; production uses `process.stdin`. */
input?: Readable
/** Transport output override; production uses `process.stdout`. */
-7
View File
@@ -1716,13 +1716,6 @@ export interface Config {
export interface JsonRpcConfig {
/** Report max-token turn/subagent termination as a successful SDK result. */
maxTokensAsSuccess?: boolean
/** Per-root-agent model-facing tool filter; an allow list excludes later unnamed global tools. */
toolFilter?: {
/** Global tool names that remain visible. */
allow?: string[]
/** Global tool names removed from visibility. */
deny?: string[]
}
/** Transport input override; production uses `process.stdin`. */
input?: Readable
/** Transport output override; production uses `process.stdout`. */