@dsh-cc/tool-search 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +7 -6
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm check:readme --write
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: bc13632287366853350d5b3328bb41aec94e5c5a
|
|
6
|
+
README.zh.md: 51b808f9d4f177cae462ad04ecda893de761f4de
|
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ The design rides the repo's effect conventions:
|
|
|
37
37
|
|
|
38
38
|
Turn one, the model sees only `ToolSearch` plus whatever is already loaded (including `alwaysLoad` tools) — or, in a session with no deferred tools at all, no `ToolSearch` either. It searches for a capability by keywords, and the result names the now-available tools. On the next turn those tools are first-class: declare them, call them. Already-loaded tools drop out of the deferred set, so a second search for them is correctly empty.
|
|
39
39
|
|
|
40
|
-
An empty search result always says *why*, so the model never mistakes "nothing deferred" for "I lack the capability": an empty pool yields "every tool you can use is already in your function list; call it directly", a fully-loaded pool yields "all deferred tools available to you are already loaded", and a simple miss on a non-empty pool
|
|
40
|
+
An empty search result always says *why*, so the model never mistakes "nothing deferred" for "I lack the capability": an empty pool yields "every tool you can use is already in your function list; call it directly", a fully-loaded pool yields "all deferred tools available to you are already loaded", and a simple miss on a non-empty pool returns 'No deferred tools matched "<query>". This directory lists deferred tools only; tools that registered eagerly (including eager MCP tools) never appear here — they are already in your function list, call them directly'.
|
|
41
41
|
|
|
42
42
|
## Known Limitations and Deferred Work
|
|
43
43
|
|
package/README.zh.md
CHANGED
|
@@ -36,7 +36,7 @@ ctx.toolSearch.registerDeferred({
|
|
|
36
36
|
|
|
37
37
|
第一轮,模型只看到 `ToolSearch` 加已加载的(包括 `alwaysLoad` 的)工具——而在完全没有延迟工具的会话里,连 `ToolSearch` 也不出现。它按关键字搜索某个能力,结果里点名现在可用哪些工具。下一轮这些工具就成头等公民:声明它们,调用它们。已加载的工具会退出延迟集合,因此再次搜索它们会正确地得到空结果。
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
空搜索结果总会说明*原因*,模型绝不会把“没有延迟工具”误读为“我没有这个能力”:池为空时回复“你可用的工具都已在 function list 中,直接调用”;池已全部加载时回复“你可用的延迟工具都已加载,直接调用”;池非空但无匹配时返回“没有延迟工具匹配 "<query>"。本目录只列出延迟工具;提前注册的工具(包括提前注册的 MCP 工具)不会出现在这里——它们已在 function list 中,直接调用即可”。
|
|
40
40
|
|
|
41
41
|
## 已知限制与暂缓事项
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/tool-search",
|
|
3
3
|
"description": "Deferred tool registration and a ToolSearch model tool that loads heavy tools on demand",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -21,19 +21,20 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@deepseek-ai/dsh-scope": ">=0.2.
|
|
25
|
-
"@deepseek-ai/dsh-system-prompt": ">=0.2.
|
|
24
|
+
"@deepseek-ai/dsh-scope": ">=0.2.2-rc.1",
|
|
25
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.1",
|
|
26
26
|
"@deepseek-ai/cordis": ">=0.2.0-rc.2",
|
|
27
|
-
"@dsh-cc/tools": "^0.9.
|
|
27
|
+
"@dsh-cc/tools": "^0.9.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
|
|
30
31
|
"@deepseek-ai/dsh-agent": "link:../../../../deepseek-harness/packages/core/agent",
|
|
31
32
|
"@deepseek-ai/dsh-llm": "link:../../../../deepseek-harness/packages/llm/llm",
|
|
32
33
|
"@deepseek-ai/dsh-scope": "link:../../../../deepseek-harness/packages/core/scope",
|
|
33
34
|
"@deepseek-ai/dsh-session": "link:../../../../deepseek-harness/packages/core/session",
|
|
34
35
|
"@deepseek-ai/dsh-system-prompt": "link:../../../../deepseek-harness/packages/core/system-prompt",
|
|
35
|
-
"@deepseek-ai/
|
|
36
|
-
"@dsh-cc/tools": "^0.9.
|
|
36
|
+
"@deepseek-ai/dsh-tool-testkit": "link:../../../../deepseek-harness/packages/test-support/tool-testkit",
|
|
37
|
+
"@dsh-cc/tools": "^0.9.4"
|
|
37
38
|
},
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|