@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 +2 -2
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +7 -7
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:
|
|
6
|
-
README.zh.md:
|
|
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
|
-
|
|
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/
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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/
|
|
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.
|
|
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.
|
|
31
|
-
"@deepseek-ai/dsh-timeout": "^0.1.
|
|
32
|
-
"@deepseek-ai/dsh-tools": "^0.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.
|
|
37
|
-
"@deepseek-ai/dsh-timeout": "^0.1.
|
|
38
|
-
"@deepseek-ai/dsh-tools": "^0.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
|
}
|