@deepseek-ai/dsh-fs-sandbox 0.2.1-rc.3 → 0.2.2-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 +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/index.js +3 -3
- package/lib/types/index.d.ts +3 -3
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +12 -12
package/README.i18n.yaml
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
en: a954957753339bbf
|
|
22
22
|
zh: c6633e86de8b2707
|
|
23
23
|
/deepseek-ai-dsh-fs-sandbox/use-this-package/how-the-fence-behaves:
|
|
24
|
-
en:
|
|
25
|
-
zh:
|
|
24
|
+
en: 61625544970c8ed2
|
|
25
|
+
zh: 64907677a518d876
|
|
26
26
|
/deepseek-ai-dsh-fs-sandbox/use-this-package/observable-success-and-failures:
|
|
27
27
|
en: 722f744eb7b3b040
|
|
28
28
|
zh: b95db78f9968f9c5
|
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ The backend's config is unchanged from the local backend's (`cwd` resolution def
|
|
|
43
43
|
|
|
44
44
|
### How the fence behaves
|
|
45
45
|
|
|
46
|
-
The effective mode comes from the calling session's override or escalation grant, falling back to the deployment default when neither is in force. `read-only` denies every mutation with the structured `FS_SANDBOX_DENIED`. `workspace-write` allows a mutation only when the target canonicalizes under the workspace root or a platform temp area (`/tmp`, `os.tmpdir()`) — the same writable set the Seatbelt profile grants. `danger-full-access` delegates unfenced.
|
|
46
|
+
The effective mode comes from the calling session's override or escalation grant, falling back to the deployment default when neither is in force. `read-only` denies every mutation with the structured `FS_SANDBOX_DENIED`. `workspace-write` allows a mutation only when the target canonicalizes under the workspace root, an explicit additional writable root, or a platform temp area (`/tmp`, `os.tmpdir()`) — the same writable set the Seatbelt profile grants. `danger-full-access` delegates unfenced.
|
|
47
47
|
|
|
48
48
|
### Observable success and failures
|
|
49
49
|
|
package/README.zh.md
CHANGED
|
@@ -43,7 +43,7 @@ kind: "package-reference"
|
|
|
43
43
|
|
|
44
44
|
### 围栏行为
|
|
45
45
|
|
|
46
|
-
有效模式来自调用会话的覆盖值或升级授权,两者都未生效时才回退到部署默认值。`read-only` 以结构化 `FS_SANDBOX_DENIED` 拒绝所有变更。`workspace-write`
|
|
46
|
+
有效模式来自调用会话的覆盖值或升级授权,两者都未生效时才回退到部署默认值。`read-only` 以结构化 `FS_SANDBOX_DENIED` 拒绝所有变更。`workspace-write` 只允许目标规范化后位于工作区根目录、显式额外可写根目录或平台临时区域(`/tmp`、`os.tmpdir()`)之下的变更——与 Seatbelt profile 授权的可写集合相同。`danger-full-access` 不加围栏直接委托。
|
|
47
47
|
|
|
48
48
|
### 可观察的成功与失败
|
|
49
49
|
|
package/lib/index.js
CHANGED
|
@@ -86,9 +86,9 @@ async function isPathUnder(path, root, caseSensitive = process.platform !== "win
|
|
|
86
86
|
*
|
|
87
87
|
* Per-call policy: `read-only` denies every mutation; `workspace-write` allows
|
|
88
88
|
* a mutation only when the target canonicalizes under the policy's workspace
|
|
89
|
-
* root or a platform temp area from the
|
|
90
|
-
* `danger-full-access` delegates unfenced. A
|
|
91
|
-
* `FS_SANDBOX_DENIED`.
|
|
89
|
+
* root, an explicit additional writable root, or a platform temp area from the
|
|
90
|
+
* shared `writableRoots` policy; `danger-full-access` delegates unfenced. A
|
|
91
|
+
* denial throws the structured `FS_SANDBOX_DENIED`.
|
|
92
92
|
*
|
|
93
93
|
* @module @deepseek-ai/dsh-fs-sandbox
|
|
94
94
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
*
|
|
20
20
|
* Per-call policy: `read-only` denies every mutation; `workspace-write` allows
|
|
21
21
|
* a mutation only when the target canonicalizes under the policy's workspace
|
|
22
|
-
* root or a platform temp area from the
|
|
23
|
-
* `danger-full-access` delegates unfenced. A
|
|
24
|
-
* `FS_SANDBOX_DENIED`.
|
|
22
|
+
* root, an explicit additional writable root, or a platform temp area from the
|
|
23
|
+
* shared `writableRoots` policy; `danger-full-access` delegates unfenced. A
|
|
24
|
+
* denial throws the structured `FS_SANDBOX_DENIED`.
|
|
25
25
|
*
|
|
26
26
|
* @module @deepseek-ai/dsh-fs-sandbox
|
|
27
27
|
*/
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-fs-sandbox",
|
|
3
3
|
"description": "Sandbox-enforcing implementation of the DeepSeek Harness filesystem seam: fences write/edit by the per-call sandbox mode (read-only denies mutation, workspace-write contains it to the workspace + temp roots) while reads pass through",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
33
|
-
"@deepseek-ai/dsh-fs-local": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
35
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
36
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
32
|
+
"@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
|
|
33
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
36
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
40
|
-
"@deepseek-ai/dsh-fs-local": "0.2.
|
|
41
|
-
"@deepseek-ai/dsh-sandbox": "0.2.
|
|
42
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.
|
|
43
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
44
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
39
|
+
"@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
|
|
40
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.2",
|
|
43
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
44
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2"
|
|
45
45
|
}
|
|
46
46
|
}
|