@deepseek-ai/dsh-tool-bash 0.2.1-rc.4 → 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 CHANGED
@@ -27,8 +27,8 @@
27
27
  en: a5eecea7bb7a75e8
28
28
  zh: fae7f08e0e11594e
29
29
  /deepseek-ai-dsh-tool-bash/use-this-package/foreground-commands-as-jobs:
30
- en: 5eef538028ca60d6
31
- zh: dc1c8ec24c81d2ca
30
+ en: d6da2d08afdca324
31
+ zh: 606b7b1da7447874
32
32
  /deepseek-ai-dsh-tool-bash/use-this-package/sandboxed-execution-and-escalation:
33
33
  en: 472beeb895ca46cf
34
34
  zh: ba110c9f62f7d5b8
package/README.md CHANGED
@@ -63,7 +63,7 @@ Passing `run_in_background: true` admits a job and returns its id immediately; c
63
63
 
64
64
  ### Foreground commands as jobs
65
65
 
66
- 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 signal 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.
66
+ 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 signal 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.
67
67
 
68
68
  ### Sandboxed execution and escalation
69
69
 
package/README.zh.md CHANGED
@@ -63,7 +63,7 @@ kind: "package-reference"
63
63
 
64
64
  ### 前台命令即任务
65
65
 
66
- 组合中有 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` 参数描述也只在交接语义成立时才宣传它。
66
+ 组合中有 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` 参数描述也只在交接语义成立时才宣传它。
67
67
 
68
68
  ### 沙箱执行与升权
69
69
 
package/lib/index.js CHANGED
@@ -173,13 +173,13 @@ function renderResult(result, escalationModes = []) {
173
173
  * Shape a foreground call that stopped waiting into the text the model sees:
174
174
  * the output captured so far (one consuming registry read taken at that
175
175
  * point, so `job_output` continues exactly after it), then the still-running
176
- * marker and the job hand-off guidance.
176
+ * marker. The `tool:jobs` system-prompt section explains how to follow up.
177
177
  * @param promoted - the promoted result value: the job id, the wait that
178
178
  * expired, and the output so far.
179
179
  * @returns the model-facing text for a promoted call.
180
180
  */
181
181
  function renderPromoted(promoted) {
182
- 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.`;
182
+ 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}]`;
183
183
  }
184
184
  /**
185
185
  * Shape the one consuming registry read a foreground call embeds in its
@@ -23,7 +23,7 @@ export declare function renderResult(result: ShellRunResult & {
23
23
  * Shape a foreground call that stopped waiting into the text the model sees:
24
24
  * the output captured so far (one consuming registry read taken at that
25
25
  * point, so `job_output` continues exactly after it), then the still-running
26
- * marker and the job hand-off guidance.
26
+ * marker. The `tool:jobs` system-prompt section explains how to follow up.
27
27
  * @param promoted - the promoted result value: the job id, the wait that
28
28
  * expired, and the output so far.
29
29
  * @returns the model-facing text for a promoted call.
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Bash-Befehlstool",
4
+ "description": "Lassen Sie die KI Bash-Befehle ausführen und Hintergrundvorgänge und Berechtigungsanwendungen gemäß der Konfiguration verwalten."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "herramienta de comando bash",
4
+ "description": "Deje que AI ejecute comandos Bash y administre operaciones en segundo plano y aplicaciones de permisos según lo configurado."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Outil de commande Bash",
4
+ "description": "Laissez l'IA exécuter des commandes Bash et gérer les opérations en arrière-plan et les applications d'autorisation comme configuré."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Bash コマンドツール",
4
+ "description": "AI が Bash コマンドを実行できます。設定に従いバックグラウンド実行と権限申請を管理します。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Ferramenta de comando Bash",
4
+ "description": "Deixe a IA executar comandos Bash e gerenciar operações em segundo plano e aplicativos de permissão conforme configurado."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Командный инструмент Bash",
4
+ "description": "Позвольте ИИ выполнять команды Bash и управлять фоновыми операциями и приложениями разрешений в соответствии с настройками."
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-bash",
3
3
  "description": "Model-facing bash tool with optional generic background-job and sandbox-escalation support",
4
- "version": "0.2.1-rc.4",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,44 +29,47 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/dsh-agent": "0.2.1-rc.4",
33
- "@deepseek-ai/dsh-shell": "0.2.1-rc.4",
34
- "@deepseek-ai/dsh-shell-env": "0.2.1-rc.4",
35
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
36
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.4",
37
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.4",
38
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.4",
39
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.4",
40
- "@deepseek-ai/dsh-tools": "0.2.1-rc.4",
41
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.4",
42
- "@deepseek-ai/cordis": "~4.0.5",
43
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.4"
32
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
33
+ "@deepseek-ai/dsh-shell": "0.2.2-alpha.2",
34
+ "@deepseek-ai/dsh-shell-env": "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-system-prompt": "0.2.2-alpha.2",
39
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
40
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
41
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.2",
42
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
43
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
44
44
  },
45
45
  "dependencies": {
46
- "@deepseek-ai/schemastery": "~3.18.5"
46
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@deepseek-ai/dsh-ptc-runtime": "0.2.1-rc.4",
50
- "@deepseek-ai/dsh-agent": "0.2.1-rc.4",
51
- "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.4",
52
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-rc.4",
53
- "@deepseek-ai/dsh-shell": "0.2.1-rc.4",
54
- "@deepseek-ai/dsh-shell-env": "0.2.1-rc.4",
55
- "@deepseek-ai/dsh-bash-local": "0.2.1-rc.4",
56
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
57
- "@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.4",
58
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.4",
59
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.4",
60
- "@deepseek-ai/dsh-session": "0.2.1-rc.4",
61
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.4",
62
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.4",
63
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.4",
64
- "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.4",
65
- "@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.4",
66
- "@deepseek-ai/dsh-tools": "0.2.1-rc.4",
67
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.4",
68
- "@deepseek-ai/cordis": "~4.0.5",
69
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.4",
70
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.4"
49
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.2-alpha.2",
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-shell": "0.2.2-alpha.2",
54
+ "@deepseek-ai/dsh-shell-env": "0.2.2-alpha.2",
55
+ "@deepseek-ai/dsh-bash-local": "0.2.2-alpha.2",
56
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
57
+ "@deepseek-ai/dsh-subprocess-local": "0.2.2-alpha.2",
58
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
59
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
60
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.2",
62
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
63
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
64
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-alpha.2",
65
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.2",
66
+ "@deepseek-ai/dsh-tool-executor-ptc": "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/cordis": "~4.0.6-alpha.1",
72
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
73
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2"
71
74
  }
72
75
  }