@deepseek-ai/dsh-tool-pwsh 0.2.1-rc.5 → 0.2.2-alpha.3

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 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: 4a487e48ef146846
31
- zh: 0a34dc49bffb03af
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>]` plus the job hand-off guidance, 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.
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>]` 加任务交接指引,并以一次消费式读取带上目前为止的输出——`job_output` 恰好从此处接续。来自调用之外的杀停(人在界面上停止任务)会让前台结果在退出标记之前带上 `[stopped: <reason>]`,模型读到的是原因而不是命令失败;取消调用本身则杀掉任务。登记是尽力而为的:`promoteOnTimeout: false`、缺少 job 注册表,或注册表在启动时拒绝该任务(持有者的任务上限、没有控制器)都会改为在执行器的 deadline 杀下运行命令,`timeoutMs` 参数描述也只在交接语义成立时才宣传它。
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 and the job hand-off guidance.
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}]\nThe command keeps running in the background. You will be notified when it finishes; read newer output with job_output, stop it with job_kill.`;
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
@@ -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 and the job hand-off guidance.
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
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "PowerShell-Befehlstool",
4
+ "description": "Lassen Sie die KI PowerShell-Befehle ausführen."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Herramienta de comando PowerShell",
4
+ "description": "Deje que la IA ejecute comandos de PowerShell."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Outil de commande PowerShell",
4
+ "description": "Laissez l'IA exécuter des commandes PowerShell."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "PowerShell コマンドツール",
4
+ "description": "AI が PowerShell コマンドを実行できます。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Ferramenta de comando do PowerShell",
4
+ "description": "Deixe a IA executar comandos do PowerShell."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Командный инструмент PowerShell",
4
+ "description": "Позвольте ИИ выполнять команды PowerShell."
5
+ }
6
+ }
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.1-rc.5",
4
+ "version": "0.2.2-alpha.3",
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.5",
33
- "@deepseek-ai/dsh-agent": "0.2.1-rc.5",
34
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.5",
35
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
36
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
37
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
38
- "@deepseek-ai/dsh-shell": "0.2.1-rc.5",
39
- "@deepseek-ai/dsh-shell-env": "0.2.1-rc.5",
40
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
41
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
42
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
43
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.5"
32
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
33
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
34
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.3",
35
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
36
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
37
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
38
+ "@deepseek-ai/dsh-shell": "0.2.2-alpha.3",
39
+ "@deepseek-ai/dsh-shell-env": "0.2.2-alpha.3",
40
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
41
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
42
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
43
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3"
44
44
  },
45
45
  "dependencies": {
46
- "@deepseek-ai/schemastery": "~3.18.5"
46
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.2"
47
47
  },
48
48
  "devDependencies": {
49
- "@deepseek-ai/cordis": "~4.0.5",
50
- "@deepseek-ai/dsh-agent": "0.2.1-rc.5",
51
- "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.5",
52
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-rc.5",
53
- "@deepseek-ai/dsh-app-boot": "0.2.1-rc.5",
54
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.5",
55
- "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.5",
56
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
57
- "@deepseek-ai/dsh-loader-smoke": "0.2.1-rc.5",
58
- "@deepseek-ai/dsh-pwsh-local": "0.2.1-rc.5",
59
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
60
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
61
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
62
- "@deepseek-ai/dsh-shell": "0.2.1-rc.5",
63
- "@deepseek-ai/dsh-shell-env": "0.2.1-rc.5",
64
- "@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.5",
65
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
66
- "@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.5",
67
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
68
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
69
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.5",
70
- "@deepseek-ai/dsh-fs-local": "0.2.1-rc.5"
49
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
50
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
51
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.3",
52
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.3",
53
+ "@deepseek-ai/dsh-app-boot": "0.2.2-alpha.3",
54
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.3",
55
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-alpha.3",
56
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
57
+ "@deepseek-ai/dsh-loader-smoke": "0.2.2-alpha.3",
58
+ "@deepseek-ai/dsh-pwsh-local": "0.2.2-alpha.3",
59
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
60
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
61
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.3",
62
+ "@deepseek-ai/dsh-shell": "0.2.2-alpha.3",
63
+ "@deepseek-ai/dsh-shell-env": "0.2.2-alpha.3",
64
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-alpha.3",
65
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
66
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.3",
67
+ "@deepseek-ai/dsh-tool-jobs": "0.2.2-alpha.3",
68
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.3",
69
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
70
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
71
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3",
72
+ "@deepseek-ai/dsh-fs-local": "0.2.2-alpha.3"
71
73
  }
72
74
  }