@dsh-cc/tool-web-fetch 0.9.5-rc.1 → 0.9.6-rc.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 +12 -0
- package/README.zh.md +12 -0
- package/package.json +5 -5
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: e256ed8e96395f130b7632d7c8e06f7950c7a322
|
|
6
|
+
README.zh.md: 4db691518f80d43c8d24dbffe51458f323c08914
|
package/README.md
CHANGED
|
@@ -25,6 +25,18 @@ The summarize call never carries a `purpose` field: the harness `GenerateOptions
|
|
|
25
25
|
union is closed (`'compaction' | 'session-title'`). A summary model that requests a tool
|
|
26
26
|
or produces no text fails the call as an `isError` tool result.
|
|
27
27
|
|
|
28
|
+
## Configuration
|
|
29
|
+
|
|
30
|
+
`Config` (`src/index.ts:32-60`) has four optional keys, each applied at `apply` time
|
|
31
|
+
(`src/index.ts:81-87`):
|
|
32
|
+
|
|
33
|
+
| Key | Default | Meaning |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `fetchTimeoutMs` | `30000` | Cooperative tool-call timeout budget in milliseconds, attached as the tool's `timeoutMs`. |
|
|
36
|
+
| `fetchMaxOutputChars` | `200000` | Cap on the complete rendered `web_fetch` output, in characters. |
|
|
37
|
+
| `maxSummaryTokens` | `2048` | Token budget for the one-shot summarize call. |
|
|
38
|
+
| `maxSummaryInputChars` | `32000` | Character cap on the document converted and fed to the summarize call. |
|
|
39
|
+
|
|
28
40
|
## Provider requirement
|
|
29
41
|
|
|
30
42
|
CC deployments use the stock `@deepseek-ai/dsh-web-fetch-http` executor from
|
package/README.zh.md
CHANGED
|
@@ -21,6 +21,18 @@ CC 风格的 `web_fetch` 替代工具,带可选 `prompt` 参数。当 CC prese
|
|
|
21
21
|
(`'compaction' | 'session-title'`)。摘要模型请求工具或未产出文本时,调用以
|
|
22
22
|
`isError` 工具结果失败。
|
|
23
23
|
|
|
24
|
+
## 配置
|
|
25
|
+
|
|
26
|
+
`Config`(`src/index.ts:32-60`)有四个可选键,均在 `apply` 时生效
|
|
27
|
+
(`src/index.ts:81-87`):
|
|
28
|
+
|
|
29
|
+
| 键 | 默认值 | 含义 |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| `fetchTimeoutMs` | `30000` | 协作式工具调用超时预算(毫秒),作为工具的 `timeoutMs` 附加。 |
|
|
32
|
+
| `fetchMaxOutputChars` | `200000` | 完整渲染后的 `web_fetch` 输出字符上限。 |
|
|
33
|
+
| `maxSummaryTokens` | `2048` | 一次性摘要调用的 token 预算。 |
|
|
34
|
+
| `maxSummaryInputChars` | `32000` | 送入摘要调用前转换的文档字符上限。 |
|
|
35
|
+
|
|
24
36
|
## Provider 要求
|
|
25
37
|
|
|
26
38
|
CC 部署使用 dsh-base 自带的 stock `@deepseek-ai/dsh-web-fetch-http` 执行器
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/tool-web-fetch",
|
|
3
3
|
"description": "CC-style web_fetch replacement with an optional prompt: summarizes the fetched page on the cheap lane (haiku alias) when configured; passing a prompt without haiku fails before fetching",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.6-rc.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@deepseek-ai/dsh-tool-web": ">=0.2.2-rc.1",
|
|
28
28
|
"@deepseek-ai/dsh-web": ">=0.2.2-rc.1",
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@dsh-cc/
|
|
31
|
-
"@dsh-cc/
|
|
30
|
+
"@dsh-cc/model-aliases": "^0.9.6-rc.1",
|
|
31
|
+
"@dsh-cc/tools": "^0.9.6-rc.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@deepseek-ai/dsh-tool-web": "link:../../../../deepseek-harness/packages/web/tool-web",
|
|
39
39
|
"@deepseek-ai/dsh-web": "link:../../../../deepseek-harness/packages/web/web",
|
|
40
40
|
"@deepseek-ai/schemastery": "link:../../../../deepseek-harness/vendor/schemastery",
|
|
41
|
-
"@dsh-cc/model-aliases": "^0.9.
|
|
42
|
-
"@dsh-cc/tools": "^0.9.
|
|
41
|
+
"@dsh-cc/model-aliases": "^0.9.6-rc.1",
|
|
42
|
+
"@dsh-cc/tools": "^0.9.6-rc.1"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|