@deepseek-ai/dsh-tool-pwsh 0.2.1-rc.3 → 0.2.2-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 +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/index.js +2 -2
- package/lib/types/render.d.ts +1 -1
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +38 -36
package/README.i18n.yaml
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
en: 80195c9b61b29737
|
|
28
28
|
zh: 0a187f3f52814b90
|
|
29
29
|
/deepseek-ai-dsh-tool-pwsh/use-this-package/foreground-commands-as-jobs:
|
|
30
|
-
en:
|
|
31
|
-
zh:
|
|
30
|
+
en: e2ac7a741c287b92
|
|
31
|
+
zh: a9e95c0a84671f45
|
|
32
32
|
/deepseek-ai-dsh-tool-pwsh/use-this-package/windows-specific-sandbox-behavior:
|
|
33
33
|
en: 76f3f791f53d1005
|
|
34
34
|
zh: e5b262db24e6eb83
|
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ The tool executes `pwsh -Command <command>` and returns the combined output. Com
|
|
|
58
58
|
|
|
59
59
|
### Foreground commands as jobs
|
|
60
60
|
|
|
61
|
-
With a job registry composed, a foreground command is registered with `ctx.jobs` at its start and the call waits on that job: the command is listed, streams through `job.list` and `job.follow`, and can be stopped from the Web task list for as long as it runs. A command that finishes within the timeout returns the ordinary foreground result and its job record leaves the registry with it, so the model never sees an id. A command that outlives the timeout keeps running as the job it already was, and the call returns `[still running after <timeoutMs>ms; moved to background job <id>]
|
|
61
|
+
With a job registry composed, a foreground command is registered with `ctx.jobs` at its start and the call waits on that job: the command is listed, streams through `job.list` and `job.follow`, and can be stopped from the Web task list for as long as it runs. A command that finishes within the timeout returns the ordinary foreground result and its job record leaves the registry with it, so the model never sees an id. A command that outlives the timeout keeps running as the job it already was, and the call returns `[still running after <timeoutMs>ms; moved to background job <id>]`, seeded with one consuming read of the output so far — `job_output` continues exactly after it. A kill from outside the call (the human stopping the job) settles the foreground result with `[stopped: <reason>]` ahead of the exit marker, so the model reads the reason instead of a command failure; cancelling the call itself kills the job. Registration is best-effort: `promoteOnTimeout: false`, a missing job registry, or a registry that refuses the job at its start (the owner's job limit, no controller) run the command under the executor's deadline kill instead, and the `timeoutMs` parameter description advertises the hand-over only when it holds.
|
|
62
62
|
|
|
63
63
|
### Windows-specific sandbox behavior
|
|
64
64
|
|
package/README.zh.md
CHANGED
|
@@ -58,7 +58,7 @@ kind: "package-reference"
|
|
|
58
58
|
|
|
59
59
|
### 前台命令即任务
|
|
60
60
|
|
|
61
|
-
组合中有 job 注册表时,前台命令一启动就登记到 `ctx.jobs`,调用等待该任务:命令在运行期间始终被列出、经 `job.list` 与 `job.follow` 流式观看,并可从 Web 任务列表停止。在超时内完成的命令返回普通前台结果,其任务记录随结果一起离开注册表,模型从不看到 id。超过超时仍在运行的命令继续作为它本来就是的那个任务运行,调用返回 `[still running after <timeoutMs>ms; moved to background job <id>]
|
|
61
|
+
组合中有 job 注册表时,前台命令一启动就登记到 `ctx.jobs`,调用等待该任务:命令在运行期间始终被列出、经 `job.list` 与 `job.follow` 流式观看,并可从 Web 任务列表停止。在超时内完成的命令返回普通前台结果,其任务记录随结果一起离开注册表,模型从不看到 id。超过超时仍在运行的命令继续作为它本来就是的那个任务运行,调用返回 `[still running after <timeoutMs>ms; moved to background job <id>]`,并以一次消费式读取带上目前为止的输出——`job_output` 恰好从此处接续。来自调用之外的杀停(人在界面上停止任务)会让前台结果在退出标记之前带上 `[stopped: <reason>]`,模型读到的是原因而不是命令失败;取消调用本身则杀掉任务。登记是尽力而为的:`promoteOnTimeout: false`、缺少 job 注册表,或注册表在启动时拒绝该任务(持有者的任务上限、没有控制器)都会改为在执行器的 deadline 杀下运行命令,`timeoutMs` 参数描述也只在交接语义成立时才宣传它。
|
|
62
62
|
|
|
63
63
|
### Windows 特有的沙箱行为
|
|
64
64
|
|
package/lib/index.js
CHANGED
|
@@ -178,13 +178,13 @@ function renderPwshResult(result, escalationModes = []) {
|
|
|
178
178
|
* Shape a foreground call that stopped waiting into the text the model sees:
|
|
179
179
|
* the output captured so far (one consuming registry read taken at that
|
|
180
180
|
* point, so `job_output` continues exactly after it), then the still-running
|
|
181
|
-
* marker
|
|
181
|
+
* marker. The `tool:jobs` system-prompt section explains how to follow up.
|
|
182
182
|
* @param promoted - the promoted result value: the job id, the wait that
|
|
183
183
|
* expired, and the output so far.
|
|
184
184
|
* @returns the model-facing text for a promoted call.
|
|
185
185
|
*/
|
|
186
186
|
function renderPwshPromoted(promoted) {
|
|
187
|
-
return `${promoted.output.length > 0 ? promoted.output.endsWith("\n") ? promoted.output : `${promoted.output}\n` : ""}[still running after ${promoted.timeoutMs}ms; moved to background job ${promoted.jobId}]
|
|
187
|
+
return `${promoted.output.length > 0 ? promoted.output.endsWith("\n") ? promoted.output : `${promoted.output}\n` : ""}[still running after ${promoted.timeoutMs}ms; moved to background job ${promoted.jobId}]`;
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* Shape the one consuming registry read a foreground call embeds in its
|
package/lib/types/render.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare function renderPwshResult(result: RenderablePwshResult, escalatio
|
|
|
38
38
|
* Shape a foreground call that stopped waiting into the text the model sees:
|
|
39
39
|
* the output captured so far (one consuming registry read taken at that
|
|
40
40
|
* point, so `job_output` continues exactly after it), then the still-running
|
|
41
|
-
* marker
|
|
41
|
+
* marker. The `tool:jobs` system-prompt section explains how to follow up.
|
|
42
42
|
* @param promoted - the promoted result value: the job id, the wait that
|
|
43
43
|
* expired, and the output so far.
|
|
44
44
|
* @returns the model-facing text for a promoted call.
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-tool-pwsh",
|
|
3
3
|
"description": "Model-facing pwsh tool over the bash executor seam",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,44 +29,46 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
33
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-jobs": "0.2.
|
|
35
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
36
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
37
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
38
|
-
"@deepseek-ai/dsh-shell": "0.2.
|
|
39
|
-
"@deepseek-ai/dsh-shell-env": "0.2.
|
|
40
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
41
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
42
|
-
"@deepseek-ai/dsh-user-approval": "0.2.
|
|
43
|
-
"@deepseek-ai/dsh-working-directory": "0.2.
|
|
32
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
33
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
38
|
+
"@deepseek-ai/dsh-shell": "0.2.2-alpha.2",
|
|
39
|
+
"@deepseek-ai/dsh-shell-env": "0.2.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
46
|
+
"@deepseek-ai/schemastery": "~3.18.6-alpha.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
50
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
51
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.
|
|
52
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.
|
|
53
|
-
"@deepseek-ai/dsh-app-boot": "0.2.
|
|
54
|
-
"@deepseek-ai/dsh-jobs": "0.2.
|
|
55
|
-
"@deepseek-ai/dsh-jobs-local": "0.2.
|
|
56
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
57
|
-
"@deepseek-ai/dsh-loader-smoke": "0.2.
|
|
58
|
-
"@deepseek-ai/dsh-pwsh-local": "0.2.
|
|
59
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
60
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
61
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
62
|
-
"@deepseek-ai/dsh-shell": "0.2.
|
|
63
|
-
"@deepseek-ai/dsh-shell-env": "0.2.
|
|
64
|
-
"@deepseek-ai/dsh-subprocess-local": "0.2.
|
|
65
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
66
|
-
"@deepseek-ai/dsh-tool-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-
|
|
49
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
50
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.2",
|
|
53
|
+
"@deepseek-ai/dsh-app-boot": "0.2.2-alpha.2",
|
|
54
|
+
"@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.2-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-loader-smoke": "0.2.2-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-pwsh-local": "0.2.2-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-shell": "0.2.2-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-shell-env": "0.2.2-alpha.2",
|
|
64
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.2-alpha.2",
|
|
65
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.2-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.2",
|
|
69
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
|
|
70
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.2",
|
|
71
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2",
|
|
72
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2"
|
|
71
73
|
}
|
|
72
74
|
}
|