@morlay/dsh-sandbox-local 0.0.6 → 0.0.8

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/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@morlay/dsh-sandbox-local",
3
- "version": "0.0.6",
4
- "description": "Configurable sandbox bundle: replaces the shipped process-sandbox provider and filesystem fence with implementations that add extra writable roots, read-only roots and access denials on top of the upstream semantics, and owns the runtime-context snapshot (`sandbox:policy` / `approval:policy`) with the deployment's own wording.",
3
+ "version": "0.0.8",
4
+ "description": "Configurable sandbox for dsh: replaces the shipped process-sandbox provider and filesystem fence with implementations that add extra writable roots, read-only roots and access denials on top of the upstream semantics, and owns the runtime-context snapshot (`sandbox:policy` / `approval:policy`) with the deployment's own wording.",
5
5
  "keywords": [
6
6
  "dsh",
7
- "dsh-bundle",
8
7
  "dsh-plugin",
9
8
  "permission",
10
9
  "sandbox"
@@ -34,46 +33,44 @@
34
33
  "devDependencies": {
35
34
  "@deepseek-ai/cordis": "4.0.4",
36
35
  "@deepseek-ai/cosmokit": "1.8.5",
37
- "@deepseek-ai/dsh-agent": "0.2.0-rc.1",
38
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.1",
39
- "@deepseek-ai/dsh-client-locale": "0.2.0-rc.1",
40
- "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.1",
41
- "@deepseek-ai/dsh-fs": "0.2.0-rc.1",
42
- "@deepseek-ai/dsh-fs-local": "0.2.0-rc.1",
43
- "@deepseek-ai/dsh-fs-sandbox": "0.2.0-rc.1",
44
- "@deepseek-ai/dsh-sandbox": "0.2.0-rc.1",
45
- "@deepseek-ai/dsh-sandbox-local": "0.2.0-rc.1",
46
- "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.1",
47
- "@deepseek-ai/dsh-scope": "0.2.0-rc.1",
48
- "@deepseek-ai/dsh-session": "0.2.0-rc.1",
49
- "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.1",
50
- "@deepseek-ai/dsh-user-approval": "0.2.0-rc.1",
51
- "@morlay/dsh-client-ui-primitives": "0.0.6"
36
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
37
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.2",
38
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
39
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
40
+ "@deepseek-ai/dsh-fs": "0.2.0-rc.2",
41
+ "@deepseek-ai/dsh-fs-local": "0.2.0-rc.2",
42
+ "@deepseek-ai/dsh-fs-sandbox": "0.2.0-rc.2",
43
+ "@deepseek-ai/dsh-sandbox": "0.2.0-rc.2",
44
+ "@deepseek-ai/dsh-sandbox-local": "0.2.0-rc.2",
45
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
46
+ "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
47
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
48
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
49
+ "@deepseek-ai/dsh-user-approval": "0.2.0-rc.2",
50
+ "@morlay/dsh-client-ui-primitives": "0.0.8"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "@deepseek-ai/cordis": "^4.0.4",
55
54
  "@deepseek-ai/cosmokit": "^1.8.5",
56
- "@deepseek-ai/dsh-agent": "^0.2.0-rc.1",
57
- "@deepseek-ai/dsh-client-locale": "^0.2.0-rc.1",
58
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.1",
59
- "@deepseek-ai/dsh-fs": "^0.2.0-rc.1",
60
- "@deepseek-ai/dsh-fs-local": "^0.2.0-rc.1",
61
- "@deepseek-ai/dsh-fs-sandbox": "^0.2.0-rc.1",
62
- "@deepseek-ai/dsh-sandbox": "^0.2.0-rc.1",
63
- "@deepseek-ai/dsh-sandbox-local": "^0.2.0-rc.1",
64
- "@deepseek-ai/dsh-sandbox-policy": "^0.2.0-rc.1",
65
- "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
66
- "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.1",
67
- "@deepseek-ai/schemastery": "^3.18.4",
68
- "@morlay/dsh-client-ui-primitives": "0.0.6"
55
+ "@deepseek-ai/dsh-agent": "^0.2.0-rc.2",
56
+ "@deepseek-ai/dsh-client-locale": "^0.2.0-rc.2",
57
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.2",
58
+ "@deepseek-ai/dsh-fs": "^0.2.0-rc.2",
59
+ "@deepseek-ai/dsh-fs-local": "^0.2.0-rc.2",
60
+ "@deepseek-ai/dsh-fs-sandbox": "^0.2.0-rc.2",
61
+ "@deepseek-ai/dsh-sandbox": "^0.2.0-rc.2",
62
+ "@deepseek-ai/dsh-sandbox-local": "^0.2.0-rc.2",
63
+ "@deepseek-ai/dsh-sandbox-policy": "^0.2.0-rc.2",
64
+ "@deepseek-ai/dsh-session": "^0.2.0-rc.2",
65
+ "@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2",
66
+ "@deepseek-ai/schemastery": "^3.18.4"
69
67
  },
70
68
  "dsh": {
71
69
  "client": {
72
70
  "platform": "web",
73
71
  "inject": [
74
72
  "@deepseek-ai/dsh-client-locale",
75
- "@deepseek-ai/dsh-client-ui-slots",
76
- "@morlay/dsh-client-ui-primitives"
73
+ "@deepseek-ai/dsh-client-ui-slots"
77
74
  ]
78
75
  }
79
76
  },
@@ -4,6 +4,7 @@
4
4
  import type { Context } from "@deepseek-ai/cordis";
5
5
  import type {} from "@deepseek-ai/dsh-client-locale/client";
6
6
  import type {} from "@deepseek-ai/dsh-client-ui-slots";
7
+ import { apply as installUiPrimitives } from "@morlay/dsh-client-ui-primitives/client";
7
8
  import { en, zh, type SandboxFieldLocaleKey } from "./locales.ts";
8
9
 
9
10
  // 本包 host 行 id:行配置页读的就是这个命名空间。
@@ -27,6 +28,8 @@ export const inject = ["locale"];
27
28
 
28
29
  // 给 `access` 补文案。
29
30
  export function apply(ctx: Context): void {
31
+ // 基础面随本包 inline(不再是装配行):装上它提供的字典、字段槽与按行配置页;多份副本只装一次。
32
+ installUiPrimitives(ctx);
30
33
  const t = ctx.locale.bind(NS);
31
34
  ctx.effect(() => ctx.locale.register(NS, { zh, en }), "sandbox-local: field locale");
32
35
  // 提示面由行配置表单提供:等它可用再注册(`ctx.get` 在它还没提供时拿不到,注册会被静静跳过)。