@deepseek-ai/dsh-tool-terminal 0.1.5-rc.2 → 0.1.6-alpha.2
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/lib/index.js +2 -2
- package/package.json +24 -24
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/terminal/tool-terminal/README.md
|
|
5
5
|
README.md: 20fec33477d817e05cdd87228f6777ff5cb24f19
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: bc78e1800ed6278bc193a685c016d809d1704e2f
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "面向需要跨调用终端状态的 agent
|
|
2
|
+
description: "面向需要跨调用终端状态的 agent(智能体)的 6 个持久终端工具,带所有者隔离、有界结果与可选后台发送。"
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
当 agent 需要跨调用保留终端状态或提供交互式输入时,使用 `dsh-tool-terminal`。它可以打开、发送、读取、传递信号、关闭和列出终端会话,同时防止一个 agent 操作其他 agent
|
|
12
|
+
当 agent 需要跨调用保留终端状态或提供交互式输入时,使用 `dsh-tool-terminal`。它可以打开、发送、读取、传递信号、关闭和列出终端会话,同时防止一个 agent 操作其他 agent 的会话。发送可以等待有界的前台输出,也可以返回供后续收集或中断的后台任务 job id。`maxResultBytes` 限制每个结果的大小,而结果会保留在会话历史中直到压缩(compaction)。指引会让模型对有界工作优先使用单次工具。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -25,7 +25,7 @@ kind: "package-reference"
|
|
|
25
25
|
<a id="use-this-package"></a>
|
|
26
26
|
## 使用本包
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
当组合挂载了终端后端、且模型应当能跨调用使用终端状态时启用这些工具——使用调试器单步调试、在 REPL 中探索,或中断前台命令后回到 shell。指引章节会引导模型对有界操作使用单次 bash、read、write 与 edit 工具。
|
|
29
29
|
|
|
30
30
|
### 六个工具
|
|
31
31
|
|
|
@@ -77,7 +77,7 @@ kind: "package-reference"
|
|
|
77
77
|
|
|
78
78
|
### 设计理念
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
本包是薄适配器:6 个工具以执行 agent 作为所有者转发到 `ctx.terminals`,呈现层渲染有界结果。后台发送把在途操作注册到 `ctx.jobs`,由通用任务接口面负责等待、增量读取与 `SIGINT` 投递。
|
|
81
81
|
|
|
82
82
|
### 源码地图
|
|
83
83
|
|
|
@@ -183,4 +183,4 @@ spawn 返回 id 与有界启动输出。发送与读取返回有界终端文本
|
|
|
183
183
|
|
|
184
184
|
</details>
|
|
185
185
|
|
|
186
|
-
**运行时不变式:**
|
|
186
|
+
**运行时不变式:** 不发布伴生入口。这个无状态适配器只贡献工具与提示词指引;PTY 生命周期与后台任务关系仍由其组合的服务持有。
|
package/lib/index.js
CHANGED
|
@@ -174,7 +174,7 @@ const SESSION_SNAPSHOT_SCHEMA = {
|
|
|
174
174
|
additionalProperties: false,
|
|
175
175
|
properties: SESSION_SNAPSHOT_PROPERTIES
|
|
176
176
|
};
|
|
177
|
-
const
|
|
177
|
+
const BACKGROUND_JOB_OUTPUT_SCHEMA = {
|
|
178
178
|
type: "object",
|
|
179
179
|
additionalProperties: false,
|
|
180
180
|
properties: {
|
|
@@ -303,7 +303,7 @@ function apply(ctx, config = {}) {
|
|
|
303
303
|
},
|
|
304
304
|
finalizeContent,
|
|
305
305
|
output: {
|
|
306
|
-
schema: { oneOf: [
|
|
306
|
+
schema: { oneOf: [BACKGROUND_JOB_OUTPUT_SCHEMA, {
|
|
307
307
|
type: "object",
|
|
308
308
|
additionalProperties: false,
|
|
309
309
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tool-terminal",
|
|
3
3
|
"description": "Six model-facing persistent PTY tools with owner isolation and generic background-job integration",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,34 +30,34 @@
|
|
|
30
30
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@deepseek-ai/dsh-
|
|
34
|
-
"@deepseek-ai/dsh-
|
|
35
|
-
"@deepseek-ai/dsh-terminal": "^0.1.
|
|
36
|
-
"@deepseek-ai/dsh-output-retention": "^0.1.
|
|
37
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
38
|
-
"@deepseek-ai/dsh-jobs": "^0.1.
|
|
39
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
33
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-terminal": "^0.1.6-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-output-retention": "^0.1.6-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
38
|
+
"@deepseek-ai/dsh-jobs": "^0.1.6-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/cordis-plugin-include": "^1.0.7",
|
|
44
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
44
45
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
45
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-terminal-bash": "^0.1.
|
|
49
|
-
"@deepseek-ai/dsh-output-retention": "^0.1.
|
|
50
|
-
"@deepseek-ai/dsh-sandbox": "^0.1.
|
|
51
|
-
"@deepseek-ai/dsh-sandbox-policy": "^0.1.
|
|
52
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-jobs": "^0.1.
|
|
56
|
-
"@deepseek-ai/dsh-jobs-local": "^0.1.
|
|
57
|
-
"@deepseek-ai/dsh-tool-jobs": "^0.1.
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
46
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.6-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-terminal": "^0.1.6-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-terminal-bash": "^0.1.6-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-output-retention": "^0.1.6-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-sandbox": "^0.1.6-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-sandbox-policy": "^0.1.6-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-subprocess-local": "^0.1.6-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-jobs": "^0.1.6-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-jobs-local": "^0.1.6-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-tool-jobs": "^0.1.6-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.2",
|
|
59
60
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/dsh-terminal": "^0.1.5-rc.2"
|
|
61
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2"
|
|
62
62
|
}
|
|
63
63
|
}
|