@deepseek-ai/dsh-sandbox-local 0.1.7-rc.2 → 0.2.0-rc.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
@@ -36,8 +36,8 @@
36
36
  en: f0c44248c2ca6acc
37
37
  zh: 554e9f706671d222
38
38
  /deepseek-ai-dsh-sandbox-local/understand-the-implementation/platform-profiles:
39
- en: e87ee1858b20e643
40
- zh: fabdc6db8264dc11
39
+ en: eae0f9047f297f42
40
+ zh: ad76290c0e4d7722
41
41
  /deepseek-ai-dsh-sandbox-local/understand-the-implementation/denial-and-runner-failure-dialects:
42
42
  en: 62adfc9229c656cc
43
43
  zh: 11b1534b6d61e5de
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.2",
4
+ "version": "0.2.0-rc.2",
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.1.7-rc.2",
31
30
  "@deepseek-ai/cordis": "~4.0.4",
32
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
33
- "@deepseek-ai/dsh-session": "0.1.7-rc.2"
31
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
32
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.2",
33
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2"
34
34
  },
35
35
  "dependencies": {
36
- "@deepseek-ai/dsh-sandbox-windows-acl": "0.1.7-rc.2",
36
+ "@deepseek-ai/dsh-sandbox-windows-acl": "0.2.0-rc.2",
37
+ "@deepseek-ai/dsh-util-values": "0.2.0-rc.2",
37
38
  "@deepseek-ai/node-addon-system": "~0.1.2",
38
- "@deepseek-ai/schemastery": "~3.18.4",
39
- "@deepseek-ai/dsh-util-values": "0.1.7-rc.2"
39
+ "@deepseek-ai/schemastery": "~3.18.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
43
42
  "@deepseek-ai/cordis": "~4.0.4",
44
- "@deepseek-ai/dsh-sandbox": "0.1.7-rc.2",
45
- "@deepseek-ai/dsh-session": "0.1.7-rc.2"
43
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.2",
44
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
45
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2"
46
46
  }
47
47
  }