@deepseek-ai/dsh-sandbox-windows-acl 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-windows-acl/README.md
5
- README.md: bba311fbb5337d6390b49a4b2898751906beb0f8
6
- README.zh.md: 24110bd35cc022e03bfe0156178072cc435dd564
5
+ README.md: c86c66395ce326293f93a5573e36b09eeff362d5
6
+ README.zh.md: 0aaa7f52e26410e40c9930a7d34e8126dfe76bb4
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-sandbox-windows-acl` confines Windows processes by write restriction: a child runs under a restricted token whose write access is limited to the workspace and a private temp directory, so `workspace-write` allows those writes and `read-only` allows none. It ships as the win32 rung of `dsh-sandbox-local`: mounting the local provider on Windows gives every confined bash or pwsh call this backend automatically. It can also be embedded directly through the `AclSandbox` API to spawn confined children with captured stdio. Every Win32 call is checked and failures throw, so a child is never spawned unrestricted. Enforcement is partial by design — the restricted token must retain Everyone for process initialization, and NTFS hard links can alias one file object across paths — so the backend reports `partial` and callers that need the absolute boundary can surface it.
12
+ On Windows, this package confines child-process writes to the workspace and a private temporary directory. `workspace-write` grants both locations, while `read-only` grants neither. Mounting `dsh-sandbox-local` selects this behavior automatically for confined bash and PowerShell commands, or callers can use the public `AclSandbox` API directly with captured standard streams. Any failed Win32 operation prevents the child from starting unrestricted. The guarantee is intentionally partial because process startup retains Everyone access and NTFS hard links can expose the same file through another path; callers can detect this limitation through the reported `partial` enforcement level.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-library"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-sandbox-windows-acl` 通过写入限制隔离 Windows 进程:子进程在受限令牌下运行,其写访问仅限于工作区与私有临时目录,因此 `workspace-write` 允许这些写入,`read-only` 则不允许任何写入。它作为 `dsh-sandbox-local` 的 win32 档交付:在 Windows 上挂载本地提供方,就能让每次受限 bash 或 pwsh 调用自动使用此后端。也可以通过 `AclSandbox` API 直接嵌入,以捕获 stdio 的方式 spawn 受限子进程。每个 Win32 调用都有检查,失败即抛出异常,因此子进程绝不会不受限制地 spawn。强制执行按设计为部分实现——受限令牌必须为进程初始化保留 Everyone,且 NTFS 硬链接可以把同一文件对象别名为多个路径——因此后端报告 `partial`,需要绝对边界的调用方可以向上暴露它。
12
+ 在 Windows 上,本包将子进程的写入限制在工作区和私有临时目录内。`workspace-write` 授予对这两个位置的写入权限,`read-only` 则均不授予。挂载 `dsh-sandbox-local` 后,受限的 bash 和 PowerShell 命令会自动获得此行为;调用方也可以直接使用公开 `AclSandbox` API,并捕获标准流。任何 Win32 操作失败都会阻止子进程在不受限制的情况下启动。该保证特意标记为部分强制,因为进程启动会保留 Everyone 访问权限,NTFS 硬链接也可以通过其他路径暴露同一文件;调用方可通过报告的 `partial` 强制级别检测此限制。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-sandbox-windows-acl",
3
3
  "description": "Windows ACL write-restriction sandbox backend (restricted-token spawn with capability-SID write allowlist) for the DeepSeek Harness sandbox seam",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "koffi": "^3.1.0",
40
- "@deepseek-ai/dsh-win32-process": "^0.1.3-alpha.2"
40
+ "@deepseek-ai/dsh-win32-process": "^0.1.5-alpha.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@deepseek-ai/dsh-pwsh-local": "^0.1.3-alpha.2",
44
- "@deepseek-ai/dsh-sandbox-local": "^0.1.3-alpha.2",
43
+ "@deepseek-ai/dsh-pwsh-local": "^0.1.5-alpha.2",
44
+ "@deepseek-ai/dsh-sandbox-local": "^0.1.5-alpha.2",
45
45
  "@deepseek-ai/cordis": "^4.0.2"
46
46
  }
47
47
  }