@qilin-agent/tools 3.1.5 → 3.1.7
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/lib/index.js +373 -275
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +5 -3
- package/lib/types/presentation.d.ts +3 -3
- package/lib/types/ptc-calls.d.ts +24 -0
- package/lib/types/ptc-calls.js +62 -0
- package/lib/types/ptc.d.ts +5 -3
- package/lib/types/ptc.js +363 -342
- package/lib/types/py-types.d.ts +1 -1
- package/lib/types/py-types.js +3 -3
- package/lib/types/ts-types.d.ts +2 -1
- package/lib/types/ts-types.js +26 -9
- package/locale/en.json +5 -0
- package/locale/zh.json +6 -0
- package/package.json +30 -28
package/README.i18n.yaml
CHANGED
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
en: 1dd4ee9d8cdd2038
|
|
31
31
|
zh: aa3e9790641e521f
|
|
32
32
|
/qilin-agent-tools/use-this-package/host-presentation-descriptors:
|
|
33
|
-
en:
|
|
34
|
-
zh:
|
|
33
|
+
en: 279d2354512763d9
|
|
34
|
+
zh: 18d3e80d96c43eec
|
|
35
35
|
/qilin-agent-tools/understand-the-implementation:
|
|
36
36
|
en: ce7e776e9d516bdb
|
|
37
37
|
zh: 59d2751743db7795
|
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ The generated [configuration catalog](../../../docs/config-catalog.md#qilin-agen
|
|
|
88
88
|
|
|
89
89
|
### Host presentation descriptors
|
|
90
90
|
|
|
91
|
-
A tool can retain pure `presentCall()` and `presentResult()` methods for Host-local consumers. The built-in Web Client does not consume those values. It selects a renderer through `tool.call.toolview` and derives card props from raw call arguments, result content, failure state, and persisted metadata. The [Client-derived presentation decision](../../../.agents/notes/implemented/architecture/2026-08-23-client-derived-tool-presentation.md) owns this transport split.
|
|
91
|
+
A tool can retain pure `presentCall()` and `presentResult()` methods for Host-local consumers. The built-in Web Client does not consume those values. It selects a renderer through `tool.call.toolview` and derives card props from raw call arguments, result content, failure state, and persisted metadata. The [Client-derived presentation decision](../../../.agents/notes/implemented/architecture/2026-08-23-client-derived-tool-presentation.md) owns this transport split. A terminal result uses `exitCode: null` when no code or signal was available; an omitted exit code leaves that status unspecified.
|
|
92
92
|
|
|
93
93
|
-----
|
|
94
94
|
|
package/README.zh.md
CHANGED
|
@@ -88,7 +88,7 @@ ctx.tools.register(defineTool({
|
|
|
88
88
|
|
|
89
89
|
### Host 展示描述
|
|
90
90
|
|
|
91
|
-
工具可以为 Host 本地消费方保留纯函数 `presentCall()` 与 `presentResult()` 方法。内置 Web Client 不消费这些值,而是通过 `tool.call.toolview` 选择 renderer,并从原始调用参数、结果内容、失败状态与持久 metadata 派生 card props。[Client 派生展示决策](../../../.agents/notes/implemented/architecture/2026-08-23-client-derived-tool-presentation.zh.md)负责该 transport
|
|
91
|
+
工具可以为 Host 本地消费方保留纯函数 `presentCall()` 与 `presentResult()` 方法。内置 Web Client 不消费这些值,而是通过 `tool.call.toolview` 选择 renderer,并从原始调用参数、结果内容、失败状态与持久 metadata 派生 card props。[Client 派生展示决策](../../../.agents/notes/implemented/architecture/2026-08-23-client-derived-tool-presentation.zh.md)负责该 transport 拆分。终端结果在退出码与信号均不可用时使用 `exitCode: null`;省略退出码则表示结果未声明该状态。
|
|
92
92
|
|
|
93
93
|
-----
|
|
94
94
|
|