@deepseek-ai/dsh-tool-call-timeout-policy 0.1.3-alpha.2 → 0.1.5-alpha.1

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 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 run verify-translation-pairing --write packages/guard/timeout-policy/README.md
5
- README.md: 53b298d047098cf196157ea32eaf0c2713c6daeb
6
- README.zh.md: 39d1914135f80fb73d4be41eb9123f6eed56bd3e
5
+ README.md: d1499e4af072079e9be96c45582b473cd10fa5d5
6
+ README.zh.md: f91343a42c889b04f9c772fea92c10c6ba8fe477
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- A tool call can hang for a long time a slow web fetch, a search that never returns — and without a limit the model waits indefinitely, stalling the whole session. `dsh-tool-call-timeout-policy` arms a cooperative deadline for calls that declare a limit: it asks the tool to stop through `exec.signal`, then maps a settled cancellation to a clear `Error: tool call timed out after <ms>ms` result. A tool that ignores or slowly handles cancellation keeps the caller waiting until it settles; the plugin never hard-stops downstream work. The limit comes from each tool's own configuration, so the plugin itself is zero-config, and it ships enabled in the `dsh` base bundle.
12
+ Use this package to give tool calls their configured cooperative time limits and return a clear timeout error to the model after cancellation settles. Calls that finish in time are unchanged. A tool that ignores or slowly handles cancellation can keep the caller waiting because the package cannot hard-stop downstream work. Each tool supplies its own limit; the package has no configuration and is enabled in the `dsh` base bundle.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 工具调用可能会长时间挂起——缓慢的网页抓取、永不返回的搜索——没有上限时模型会无限期等待,拖住整个会话。`dsh-tool-call-timeout-policy` 为声明了限时的调用设置协作式截止时间:它通过 `exec.signal` 请求工具停止,再把已经完成的取消映射为清晰的 `Error: tool call timed out after <ms>ms` 结果。忽略或缓慢处理取消的工具会让调用方继续等待,直到自身完成;本插件绝不会硬性停止下游工作。限时来自每个工具自身的配置,因此插件本身零配置,并随 `dsh` base 组合默认启用。
12
+ 使用本包可为工具调用执行其配置的协作式时间上限,并在取消完成后向模型返回清晰的超时错误。按时完成的调用保持不变。忽略或缓慢处理取消的工具仍可能让调用方继续等待,因为本包无法硬性停止下游工作。每个工具分别提供自己的限时;本包无需配置,并随 `dsh` base 组合默认启用。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-call-timeout-policy",
3
3
  "description": "Tool-call timeout policy: a tools/execute wrapper that arms a per-tool deadline on exec.signal and returns TOOL_TIMEOUT when it wins",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,15 +27,15 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
31
- "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
32
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
30
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
31
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.1",
32
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
33
33
  "@deepseek-ai/cordis": "^4.0.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
37
- "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
38
- "@deepseek-ai/cordis": "^4.0.2",
39
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2"
36
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
37
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.1",
38
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
39
+ "@deepseek-ai/cordis": "^4.0.2"
40
40
  }
41
41
  }