@deepseek-ai/dsh-subagent-claude-code 0.0.1-rc.2 → 0.0.1-rc.5
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 +1 -1
- package/README.zh.md +5 -5
- package/package.json +19 -19
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/subagent/subagent-claude-code/README.md
|
|
5
5
|
README.md: 17b14e847baea3eadda7129b5e49f5e65b668cc8
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 5c970f623c794e91ec2c4a6b2c71c6b28c887485
|
package/README.zh.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
SDK 接收由文本块原样拼接成的任务。提供方会完整迭代 SDK 消息流,而且只接受满足以下条件的 `result` 消息:其 `subtype: "success"`、`is_error: false` 且 `result` 非空白,之后迭代器还须正常结束。所有 SDK 错误子类型、标记为错误的成功消息、缺失答案、迭代器失败、协议失败或进程失败都映射为 `error`;该提供方不会产生 `max-tokens` 或 `refusal`。
|
|
12
12
|
|
|
13
|
-
本地取消会在结果竞态中胜出并映射为 `aborted`。`dispose()
|
|
13
|
+
本地取消会在结果竞态中胜出并映射为 `aborted`。`dispose()`(资源释放)具有幂等性:它会中止此次运行、请求 SDK query 关闭、调用共享的进程树逐级终止机制,并等待整棵进程树退出。SDK 的优雅关闭只表达协议意图;进程是否完全停稳仍以子进程句柄为准。结果失败与独立的清理失败仍彼此分离。
|
|
14
14
|
|
|
15
15
|
## 原生设置与交互
|
|
16
16
|
|
|
@@ -54,19 +54,19 @@ SDK 接收由文本块原样拼接成的任务。提供方会完整迭代 SDK
|
|
|
54
54
|
|
|
55
55
|
运行时依赖精确锁定为 `@anthropic-ai/claude-agent-sdk@0.3.220`。生产运行使用原生 `claude` 安装。无密钥真实产品测试使用由 SDK 分发的 Claude Code 2.1.220 CLI 作为确定性 fixture(测试前置数据),并通过同一套原生可执行文件解析路径与 Windows batch shim 路径运行;这项测试不声称兼容每个独立安装的版本。Loader 组合证明两个产品包能够共存且不会启动任一产品。
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
限定于项目所有者身份的分发授权涵盖官方 SDK 及每个 SDK 版本声明的官方 CLI/平台载荷。[`THIRD_PARTY_NOTICES.md`](../../../THIRD_PARTY_NOTICES.md) 会披露当前可选载荷闭包,但不会认定其中声明的条款属于宽松许可;其他无关的非宽松运行时依赖仍会使第三方声明门禁失败。
|
|
58
58
|
|
|
59
59
|
## 模型体验
|
|
60
60
|
|
|
61
|
-
###
|
|
61
|
+
### 子级请求
|
|
62
62
|
|
|
63
63
|
#### 模型看到的内容
|
|
64
64
|
|
|
65
|
-
Claude Code
|
|
65
|
+
Claude Code 子级会在一个全新的 SDK query 中接收独立文本任务。它的工作区是父会话 cwd;其模型、系统指令、工具、权限和身份验证来自宿主机原生 Claude 设置与产品安装。
|
|
66
66
|
|
|
67
67
|
#### 对 token 的影响
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
子级需为独立的 Claude Code 上下文和 query 承担 token 开销。子级 token 不会进入父级上下文。
|
|
70
70
|
|
|
71
71
|
#### 对 KV Cache 的影响
|
|
72
72
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-subagent-claude-code",
|
|
3
3
|
"description": "One-shot Claude Code subagent provider over the official Agent SDK",
|
|
4
|
-
"version": "0.0.1-rc.
|
|
4
|
+
"version": "0.0.1-rc.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "restricted"
|
|
7
7
|
},
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
],
|
|
33
33
|
"license": "BSD-3-Clause",
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/dsh-
|
|
39
|
-
"@deepseek-ai/dsh-
|
|
40
|
-
"@deepseek-ai/
|
|
41
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.5",
|
|
36
|
+
"@deepseek-ai/dsh-session": "^0.0.1-rc.5",
|
|
37
|
+
"@deepseek-ai/dsh-subagent": "^0.0.1-rc.5",
|
|
38
|
+
"@deepseek-ai/dsh-subprocess": "^0.0.1-rc.5",
|
|
39
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
40
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4",
|
|
41
|
+
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.5"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/sdk": "0.93.0",
|
|
45
45
|
"@anthropic-ai/claude-agent-sdk": "0.3.220",
|
|
46
|
-
"@deepseek-ai/schemastery": "^3.18.1-rc.
|
|
46
|
+
"@deepseek-ai/schemastery": "^3.18.1-rc.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/cordis": "^4.0.1-rc.
|
|
49
|
+
"@deepseek-ai/dsh-agent": "^0.0.1-rc.5",
|
|
50
|
+
"@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
|
|
51
|
+
"@deepseek-ai/dsh-llm": "^0.0.1-rc.5",
|
|
52
|
+
"@deepseek-ai/dsh-loader-smoke": "^0.0.1-rc.5",
|
|
53
|
+
"@deepseek-ai/dsh-session": "^0.0.1-rc.5",
|
|
54
|
+
"@deepseek-ai/dsh-subagent": "^0.0.1-rc.5",
|
|
55
|
+
"@deepseek-ai/dsh-subprocess": "^0.0.1-rc.5",
|
|
56
|
+
"@deepseek-ai/dsh-timeout": "^0.0.1-rc.5",
|
|
57
|
+
"@deepseek-ai/dsh-subprocess-local": "^0.0.1-rc.5",
|
|
58
|
+
"@deepseek-ai/cordis": "^4.0.1-rc.4"
|
|
59
59
|
}
|
|
60
60
|
}
|