@deepseek-ai/dsh-tool-call-timeout-policy 0.1.2-rc.1 → 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: e1efc14c55dc01d058d85849bbe28bd87a6993cb
6
- README.zh.md: 35ed0f64fa504327dac1b49ae2510c66525ecd1a
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
 
@@ -130,6 +130,6 @@ These limits define when the policy is a poor fit. They are current package cons
130
130
 
131
131
  This Dev Note is working context for maintainers: open questions and directions that are not decided. It is explicitly non-authoritative — shipped behavior, limits, and accepted rationale live in the sections above, the package code, and the linked Agent Notes.
132
132
 
133
- The `src/index.ts` FIXME asks to settle a `@deepseek-ai/dsh-timeout-guard` rename; the [naming ledger](../../../.agents/notes/implemented/architecture/2026-08-11-repository-naming-contract-and-rename-ledger.md) already records `@deepseek-ai/dsh-tool-call-timeout-policy` as the decided name, so the FIXME is stale pending a code cleanup.
133
+ The `src/index.ts` FIXME asks to settle a `@deepseek-ai/dsh-timeout-guard` rename; the [naming ledger](../../../.agents/notes/archived/architecture/2026-08-11-repository-naming-contract-and-rename-ledger.md) already records `@deepseek-ai/dsh-tool-call-timeout-policy` as the decided name, so the FIXME is stale pending a code cleanup.
134
134
 
135
135
  </details>
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
 
@@ -130,6 +130,6 @@ kind: "package-reference"
130
130
 
131
131
  本开发备注是维护者的工作上下文:开放问题与尚未决定的探索方向。它明确不具权威性——已交付的行为、限制与既定理由以上文、包代码和相关 Agent Note 为准。
132
132
 
133
- `src/index.ts` 中的 FIXME 要求确定 `@deepseek-ai/dsh-timeout-guard` 改名;[改名台账](../../../.agents/notes/implemented/architecture/2026-08-11-repository-naming-contract-and-rename-ledger.zh.md) 已把 `@deepseek-ai/dsh-tool-call-timeout-policy` 记录为既定名称,因此该 FIXME 已陈旧,待代码清理。
133
+ `src/index.ts` 中的 FIXME 要求确定 `@deepseek-ai/dsh-timeout-guard` 改名;[改名台账](../../../.agents/notes/archived/architecture/2026-08-11-repository-naming-contract-and-rename-ledger.md) 已把 `@deepseek-ai/dsh-tool-call-timeout-policy` 记录为既定名称,因此该 FIXME 已陈旧,待代码清理。
134
134
 
135
135
  </details>
package/lib/index.js CHANGED
@@ -8,7 +8,7 @@ import { deadline, timeoutOf } from "@deepseek-ai/dsh-timeout";
8
8
  * FIXME: settle the intended `@deepseek-ai/dsh-timeout-guard` rename before the
9
9
  * first tagged release — suggestion only, aligning the name with its `guard/`
10
10
  * home; decide at resolution time
11
- * ([regrouping Agent Note](../../../../.agents/notes/implemented/architecture/2026-07-29-package-regrouping.md)).
11
+ * ([regrouping Agent Note](../../../../.agents/notes/archived/architecture/2026-07-29-package-regrouping.md)).
12
12
  *
13
13
  * @module @deepseek-ai/dsh-tool-call-timeout-policy
14
14
  */
@@ -6,7 +6,7 @@
6
6
  * FIXME: settle the intended `@deepseek-ai/dsh-timeout-guard` rename before the
7
7
  * first tagged release — suggestion only, aligning the name with its `guard/`
8
8
  * home; decide at resolution time
9
- * ([regrouping Agent Note](../../../../.agents/notes/implemented/architecture/2026-07-29-package-regrouping.md)).
9
+ * ([regrouping Agent Note](../../../../.agents/notes/archived/architecture/2026-07-29-package-regrouping.md)).
10
10
  *
11
11
  * @module @deepseek-ai/dsh-tool-call-timeout-policy
12
12
  */
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.2-rc.1",
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.2-rc.1",
31
- "@deepseek-ai/dsh-timeout": "^0.1.2-rc.1",
32
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
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.2-rc.1",
37
- "@deepseek-ai/dsh-timeout": "^0.1.2-rc.1",
38
- "@deepseek-ai/dsh-tools": "^0.1.2-rc.1",
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
39
  "@deepseek-ai/cordis": "^4.0.2"
40
40
  }
41
41
  }