@deepseek-ai/dsh-shell 0.1.2-alpha.5 → 0.1.3-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
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/shell/shell/README.md
5
- README.md: dd3eeb45af432e6fdbb9a0aa688d8a5c3c58bbb1
6
- README.zh.md: 8767aad9795494c6a996c7063778b1a816362e16
5
+ README.md: a606050c30d07024ff972652b87a223f91767f58
6
+ README.zh.md: 9ae7cd5f858d6e7deaed5bf08c873c6e1aecdaae
package/README.md CHANGED
@@ -38,7 +38,7 @@ console.log(result.exitCode, result.stdout.text)
38
38
 
39
39
  ### Background processes
40
40
 
41
- Call `start` with a resolved spec to launch a background process; it returns a handle immediately and no timeout applies. Read output incrementally with `readOutput()` — consecutive reads never repeat output, and lossy reads point at full-stream spill files. Kill the process group with `kill()` (returns `false` once it has finished) and await `done` for settlement. Job ids, ownership, polling, and notices belong to the generic `ctx.jobs` runtime, where the tool layer registers the handle.
41
+ Call `start` with a resolved spec to launch a background process; it returns a handle immediately and no timeout applies. Read output incrementally with `readOutput()` — consecutive reads never repeat output, and lossy reads point at full-stream spill files. Terminate the provider-managed range with `kill()` (returns `false` once the direct command has finished) and await `done` for direct-command settlement. Job ids, ownership, polling, and notices belong to the generic `ctx.jobs` runtime, where the tool layer registers the handle.
42
42
 
43
43
  ### Requests and resolved specs
44
44
 
@@ -91,7 +91,7 @@ The package is one role of a standard capability seam: the Service Definition th
91
91
 
92
92
  ### Background lifecycle and ownership
93
93
 
94
- A background process belongs to the subprocess service, not to the executor: it survives an executor-only reload and is killed and joined when the composition tears down. Implementations must honor the seam's semantics — `run` rejects only for infrastructure failures; `start` returns immediately with no timeout and its `done` never rejects (spawn failures settle as `killed` with the error on stderr); `readOutput` is consuming and lossy reads report spill files.
94
+ A background process belongs to the subprocess service, not to the executor: it survives an executor-only reload and is killed and joined when the composition tears down. Implementations must honor the seam's semantics — `run` rejects only for infrastructure failures; `start` returns immediately with no timeout and its `done` never rejects (a subprocess provider rejection settles as `killed` with a stage-neutral error on stderr); `readOutput` is consuming and lossy reads report spill files.
95
95
 
96
96
  </details>
97
97
 
package/README.zh.md CHANGED
@@ -38,7 +38,7 @@ console.log(result.exitCode, result.stdout.text)
38
38
 
39
39
  ### 后台进程
40
40
 
41
- 用已解析的 spec 调用 `start` 即可启动后台进程;它会立即返回句柄,且不应用任何超时。用 `readOutput()` 增量读取输出——连续读取绝不会重复交付,有损读取会指向完整流的 spill 文件。用 `kill()` 终止进程组(进程结束后返回 `false`),并等待 `done` 结算。job id、所有权、轮询与通知属于通用 `ctx.jobs` 运行时,工具层会把句柄注册进去。
41
+ 用已解析的 spec 调用 `start` 即可启动后台进程;它会立即返回句柄,且不应用任何超时。用 `readOutput()` 增量读取输出——连续读取绝不会重复交付,有损读取会指向完整流的 spill 文件。用 `kill()` 终止提供方管理的 range(直接命令结束后返回 `false`),并等待 `done` 完成直接命令结算。job id、所有权、轮询与通知属于通用 `ctx.jobs` 运行时,工具层会把句柄注册进去。
42
42
 
43
43
  ### 请求与已解析 spec
44
44
 
@@ -91,7 +91,7 @@ seam 本身不是执行器:每个组合只挂载一个提供方,工具即可
91
91
 
92
92
  ### 后台生命周期与归属
93
93
 
94
- 后台进程属于 subprocess 服务而非执行器:它能在仅重载执行器后存活,并在组合拆解时被终止并 join。实现必须遵守 seam 的语义——`run` 只在基础设施失败时 reject;`start` 立即返回且不设超时,其 `done` 绝不 reject(spawn 失败以 `killed` 结算,错误进入 stderr);`readOutput` 是消费式的,有损读取会报告 spill 文件。
94
+ 后台进程属于 subprocess 服务而非执行器:它能在仅重载执行器后存活,并在组合拆解时被终止并 join。实现必须遵守 seam 的语义——`run` 只在基础设施失败时 reject;`start` 立即返回且不设超时,其 `done` 绝不 reject(subprocess provider rejection 以 `killed` 结算,并把不声明阶段的错误写入 stderr);`readOutput` 是消费式的,有损读取会报告 spill 文件。
95
95
 
96
96
  </details>
97
97
 
@@ -156,7 +156,10 @@ export interface ShellProcess {
156
156
  exitCode: number | null;
157
157
  /** Terminating signal name, when signal-killed. */
158
158
  signal: NodeJS.Signals | null;
159
- /** Resolves when the underlying process closes (never rejects — a spawn failure settles as `killed` with the error on stderr). */
159
+ /**
160
+ * Resolves when the underlying process settles (never rejects — provider
161
+ * rejection settles as `killed` with a stage-neutral error on stderr).
162
+ */
160
163
  readonly done: Promise<void>;
161
164
  /** Sandbox facts, stamped once a confined process settles. */
162
165
  sandbox?: ShellSandboxInfo;
@@ -167,7 +170,7 @@ export interface ShellProcess {
167
170
  */
168
171
  readOutput(): ShellProcessRead;
169
172
  /**
170
- * Kill the process group. Returns false when it had already finished
173
+ * Terminate the provider-managed range. Returns false when it had already finished
171
174
  * (no-op); idempotent.
172
175
  */
173
176
  kill(): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-shell",
3
3
  "description": "Abstract bash executor seam (ctx.shell) for the DeepSeek Harness",
4
- "version": "0.1.2-alpha.5",
4
+ "version": "0.1.3-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,15 +27,15 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-sandbox": "^0.1.2-alpha.5",
31
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
30
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
31
+ "@deepseek-ai/dsh-sandbox": "^0.1.3-alpha.2",
32
32
  "@deepseek-ai/cordis": "^4.0.2",
33
- "@deepseek-ai/dsh-settings": "^0.1.2-alpha.5"
33
+ "@deepseek-ai/dsh-settings": "^0.1.3-alpha.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@deepseek-ai/dsh-sandbox": "^0.1.2-alpha.5",
36
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
37
+ "@deepseek-ai/dsh-sandbox": "^0.1.3-alpha.2",
37
38
  "@deepseek-ai/cordis": "^4.0.2",
38
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
39
- "@deepseek-ai/dsh-settings": "^0.1.2-alpha.5"
39
+ "@deepseek-ai/dsh-settings": "^0.1.3-alpha.2"
40
40
  }
41
41
  }