@deepseek-ai/dsh-sandbox-local 0.1.7-rc.1 → 0.2.0-rc.1

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
@@ -1,6 +1,64 @@
1
- # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
- # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
- # after editing either side, bring the other along and re-record with:
4
- # pnpm run verify-translation-pairing --write packages//sandbox//sandbox-local//README.md
5
- README.md: 278f2e5810e0dee12b061b33d08716cdcf5b7ae2
6
- README.zh.md: a7854c30d03d6be84bc0dc5b2a7a4bd1e07f97e4
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/sandbox/sandbox-local/README.md
5
+ /:
6
+ en: f172767891b86bf4
7
+ zh: e66e1cc8c96cc259
8
+ /deepseek-ai-dsh-sandbox-local:
9
+ en: 2331db3e4dfa8f89
10
+ zh: 0182771f7e1b1cd4
11
+ /deepseek-ai-dsh-sandbox-local/summary:
12
+ en: e8341fe6e38c08f6
13
+ zh: e38d6ff18fd2b701
14
+ /deepseek-ai-dsh-sandbox-local/table-of-contents:
15
+ en: d152484eb41ac6b4
16
+ zh: 09388d293f9be9cb
17
+ /deepseek-ai-dsh-sandbox-local/use-this-package:
18
+ en: 3759ad594d0a27fb
19
+ zh: 722010d952b9f87f
20
+ /deepseek-ai-dsh-sandbox-local/use-this-package/when-to-choose-it:
21
+ en: 722ad601000b13c7
22
+ zh: d2723f3743fe160b
23
+ /deepseek-ai-dsh-sandbox-local/use-this-package/minimal-configuration:
24
+ en: 5d5ac6aaea69b3db
25
+ zh: 8049d91463b6347d
26
+ /deepseek-ai-dsh-sandbox-local/use-this-package/confined-execution-and-enforcement:
27
+ en: 7282c9ec77fd6f01
28
+ zh: 10e385a9489105e3
29
+ /deepseek-ai-dsh-sandbox-local/use-this-package/failures-and-recovery:
30
+ en: 3808edb37dde5761
31
+ zh: a8fef8a4fd33e364
32
+ /deepseek-ai-dsh-sandbox-local/understand-the-implementation:
33
+ en: 15db6ec303151ccc
34
+ zh: 91f62c1f64192f92
35
+ /deepseek-ai-dsh-sandbox-local/understand-the-implementation/runner-selection:
36
+ en: f0c44248c2ca6acc
37
+ zh: 554e9f706671d222
38
+ /deepseek-ai-dsh-sandbox-local/understand-the-implementation/platform-profiles:
39
+ en: eae0f9047f297f42
40
+ zh: ad76290c0e4d7722
41
+ /deepseek-ai-dsh-sandbox-local/understand-the-implementation/denial-and-runner-failure-dialects:
42
+ en: 62adfc9229c656cc
43
+ zh: 11b1534b6d61e5de
44
+ /deepseek-ai-dsh-sandbox-local/understand-the-implementation/source-map:
45
+ en: 8ab5bcc8dd97df3c
46
+ zh: ee7a6a237a142cbd
47
+ /deepseek-ai-dsh-sandbox-local/further-exploration:
48
+ en: 53e91b8be78bed12
49
+ zh: 70f382c800dc191a
50
+ /deepseek-ai-dsh-sandbox-local/model-experience:
51
+ en: 40d918676086c7fe
52
+ zh: d36023a60b28fd58
53
+ /deepseek-ai-dsh-sandbox-local/model-experience/kv-cache-effect:
54
+ en: e290ccc9b3c92c08
55
+ zh: 469589ac12cdadab
56
+ /deepseek-ai-dsh-sandbox-local/known-limitations-and-deferred-work:
57
+ en: b2a6a72e340bc620
58
+ zh: 9d9b2894850a131d
59
+ /deepseek-ai-dsh-sandbox-local/known-limitations-and-deferred-work/dev-note:
60
+ en: cc273320f6a1beaf
61
+ zh: 5c57a312ddc50651
62
+ /deepseek-ai-dsh-sandbox-local/known-limitations-and-deferred-work/dev-note/future-environment-coherent-groups:
63
+ en: d50bceeb4301cd97
64
+ zh: d1c834aa2057b6e5
package/README.md CHANGED
@@ -80,6 +80,8 @@ The Seatbelt profile is allow-default with `(deny file-write*)` plus write allow
80
80
 
81
81
  The Windows rung keeps one deterministic write SID and standing ACE per workspace, while every live session/workspace pair gets a random private temp directory with a distinct SID and revocable ACE — sessions sharing a workspace share its intended write authority without inheriting one another's temp authority. A fresh provider always chooses a new temp path and SID, so crash residue cannot block or authorize a resumed session. The rung reports `partial` enforcement because NTFS hard links alias one file object across paths, reads stay unconfined, and a tree another AppContainer tool has ACL'd with a package SID is unreadable to the Low-integrity child.
82
82
 
83
+ With the built-in Windows runner and a skill registry, this provider registers the [ACL diagnosis skill](../sandbox-windows-acl/README.md#failures-and-recovery). An operator-supplied `runnerCommand` does not register it; provider disposal removes the skill and its extracted resources.
84
+
83
85
  When the built ACL runner is absent, source launch pins the `tsx/esm/api` loader and TypeScript path mapping to this installation. The command's working directory and ambient `TSX_TSCONFIG_PATH` cannot select the runner's source dependencies.
84
86
 
85
87
  ### Denial and runner-failure dialects
package/README.zh.md CHANGED
@@ -80,6 +80,8 @@ Seatbelt profile 默认允许,带 `(deny file-write*)` 与来自共享 `writab
80
80
 
81
81
  Windows 档为每个工作区保留一个确定性写入 SID 和常驻 ACE,同时为每个活跃的会话/工作区对分配一个随机私有临时目录,以及不同的 SID 和可撤销 ACE——共享工作区的会话共享其预期写权限,却不会继承彼此的临时目录权限。新的提供方总会选择新的临时路径和 SID,因此崩溃残留既无法阻止恢复的会话,也无法向其授权。该档报告 `partial` 强制执行,因为 NTFS 硬链接会把同一文件对象别名为多个路径、读取仍不受限,且被其他 AppContainer 工具以包 SID 标记过的目录树对 Low 完整性子进程不可读。
82
82
 
83
+ 当内置 Windows runner 与技能注册表同时可用时,此提供方会注册 [ACL 诊断技能](../sandbox-windows-acl/README.zh.md#failures-and-recovery)。自定义 `runnerCommand` 不注册该技能;提供方释放时移除技能及其提取的资源。
84
+
83
85
  构建后的 ACL runner 缺失时,源码启动将 `tsx/esm/api` 加载器和 TypeScript 路径映射固定到本安装目录。命令的工作目录和环境中的 `TSX_TSCONFIG_PATH` 无法选择 runner 的源码依赖。
84
86
 
85
87
  ### 拒绝与 runner 失败方言
package/lib/index.js CHANGED
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
6
6
  import { LAUNCHER_BIN, LAUNCHER_FAILURE_EXIT, grantArgs, launcherPath, probe } from "@deepseek-ai/node-addon-system/landlock-run";
7
7
  import z from "@deepseek-ai/schemastery";
8
8
  import { SandboxProvider, SandboxUnavailableError, canonicalPath, writableRoots } from "@deepseek-ai/dsh-sandbox";
9
- import { AclWriteGrant, assertTempRootOutsideWorkspace, tempWriteSid, workspaceWriteSid } from "@deepseek-ai/dsh-sandbox-windows-acl";
9
+ import { AclWriteGrant, assertTempRootOutsideWorkspace, registerAclDiagnosisSkill, tempWriteSid, workspaceWriteSid } from "@deepseek-ai/dsh-sandbox-windows-acl";
10
10
  import { assertNever } from "@deepseek-ai/dsh-util-values";
11
11
  //#region lib/types/profiles.js
12
12
  /**
@@ -282,6 +282,10 @@ var LocalSandboxProvider = class extends SandboxProvider {
282
282
  this.configuredRunnerFailureSignatures = runnerFailureSignatures;
283
283
  this.probeTimeoutMs = config.probeTimeoutMs;
284
284
  assertPositiveFinite("probeTimeoutMs", this.probeTimeoutMs);
285
+ /* v8 ignore next 3 -- Windows-only registration; the Linux coverage lane cannot take this branch */
286
+ if (process.platform === "win32" && this.runnerCommand === void 0) ctx.inject(["skills"], (skillsCtx) => {
287
+ registerAclDiagnosisSkill(skillsCtx);
288
+ });
285
289
  ctx.effect(() => () => {
286
290
  this.revokeAclGrants();
287
291
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sandbox-local",
3
3
  "description": "Local process-sandbox backends for the DeepSeek Harness sandbox seam: bwrap, the npm-distributed landlock-run launcher, macOS Seatbelt, or the Windows ACL restricted-token runner — functionally probed, fail-closed",
4
- "version": "0.1.7-rc.1",
4
+ "version": "0.2.0-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,21 +27,21 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
31
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
30
32
  "@deepseek-ai/cordis": "~4.0.4",
31
- "@deepseek-ai/dsh-llm": "0.1.7-rc.1",
32
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.1",
33
- "@deepseek-ai/dsh-session": "0.1.7-rc.1"
33
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1"
34
34
  },
35
35
  "dependencies": {
36
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.1",
36
+ "@deepseek-ai/dsh-sandbox-windows-acl": "0.2.0-rc.1",
37
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.1",
37
38
  "@deepseek-ai/node-addon-system": "~0.1.2",
38
- "@deepseek-ai/dsh-sandbox-windows-acl": "0.1.7-rc.1",
39
39
  "@deepseek-ai/schemastery": "~3.18.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@deepseek-ai/cordis": "~4.0.4",
43
- "@deepseek-ai/dsh-llm": "0.1.7-rc.1",
44
- "@deepseek-ai/dsh-session": "0.1.7-rc.1",
45
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.1"
43
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.1",
44
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
45
+ "@deepseek-ai/dsh-session": "0.2.0-rc.1"
46
46
  }
47
47
  }