@deepseek-ai/dsh-sandbox 0.1.3-alpha.2 → 0.1.5-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/sandbox/sandbox/README.md
5
- README.md: 764ebd4c0de4286712006dbf37dc58a59351835a
6
- README.zh.md: 05dc954717374f4e02c54b2b072b0f5b3acbf48c
5
+ README.md: b80e923e3dc6d5fd95f79546cdfa39a9ef82055f
6
+ README.zh.md: 9d80a3621be0533bf31294702da7f6b9c9292ae2
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-sandbox` confines same-world subprocesses to a file-effect policy: commands run `read-only`, write only under the session workspace (`workspace-write`), or run unrestricted (`danger-full-access`), and every confined execution runs under a per-call policy. The bash and pwsh executors consume it, so a command — and everything it spawns — runs confined without the consumer knowing which platform runner is behind it. When the requested mode cannot be enforced, the call fails closed with a `SANDBOX_UNAVAILABLE` error instead of running unconfined. A denied call can request a strictly wider mode that a human approves once. Confinement is same-world only — backends share the host kernel and filesystem, while containers, microVMs, and remote executors replace whole capabilities instead.
12
+ Use `dsh-sandbox` to run a subprocess and everything it spawns under a per-call file-access policy. A command can run without writes (`read-only`), write only inside its workspace (`workspace-write`), or run unrestricted (`danger-full-access`). If the requested mode cannot be enforced, the call fails with `SANDBOX_UNAVAILABLE` instead of running unconfined. After a denied call, the model can request one strictly wider mode for human approval. This is same-world confinement: the process still shares the host kernel and filesystem; use a container, microVM, or remote executor when the whole environment must be isolated.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-sandbox` 将同世界子进程限制在文件效果策略之下:命令以 `read-only` 运行、只能写入会话工作区(`workspace-write`)或不受限制地运行(`danger-full-access`),每次受限执行都遵循一份逐调用策略。bash 与 pwsh 执行器直接消费它,因此命令及其派生的所有进程都在限制下运行,消费方无需知道背后是哪个平台 runner。无法强制执行所请求的模式时,调用以 `SANDBOX_UNAVAILABLE` 错误快速失败,绝不会不受限制地运行。被拒绝的调用可以请求一个由人类批准一次、严格更宽的模式。隔离仅限同世界——后端与宿主共享内核和文件系统,容器、microVM 与远程执行器会替换整个能力。
12
+ 使用 `dsh-sandbox`,可以让子进程及其派生的所有进程在逐调用文件访问策略下运行。命令可以禁止写入(`read-only`)、只写入工作区(`workspace-write`),或不受限制地运行(`danger-full-access`)。无法强制执行所请求的模式时,调用以 `SANDBOX_UNAVAILABLE` 失败,绝不会不受限制地运行。调用被拒绝后,模型可以请求一个严格更宽的模式,交由人类批准一次。这是同世界隔离:进程仍与宿主共享内核和文件系统;需要隔离整个环境时,请使用容器、microVM 或远程执行器。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sandbox",
3
3
  "description": "Abstract process-sandbox seam (ctx.sandbox) for the DeepSeek Harness: same-world confinement vocabulary and the SandboxProvider contract",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,16 +27,16 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/cordis": "^4.0.2",
31
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
32
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2"
30
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
31
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
32
+ "@deepseek-ai/cordis": "^4.0.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.2",
36
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
37
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2"
36
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
37
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2"
38
38
  },
39
39
  "dependencies": {
40
- "@deepseek-ai/dsh-util-values": "^0.1.3-alpha.2"
40
+ "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.2"
41
41
  }
42
42
  }