@morlay/dsh-sandbox-local 0.0.5 → 0.0.7
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/dist/client.cjs +16696 -0
- package/dist/client.d.cts +5 -6
- package/dist/client.d.mts +5 -6
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/rows.d.cts +4 -5
- package/dist/rows.d.mts +4 -5
- package/package.json +30 -33
- package/src/client/index.ts +3 -0
package/dist/client.d.cts
CHANGED
|
@@ -7,14 +7,13 @@ declare const zh: {
|
|
|
7
7
|
type SandboxFieldLocaleKey = keyof typeof zh;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/client/index.d.ts
|
|
10
|
-
declare const SANDBOX_NS = "sandbox-local";
|
|
11
|
-
declare const NS = "settings.sandbox-local";
|
|
10
|
+
export declare const SANDBOX_NS = "sandbox-local";
|
|
11
|
+
export declare const NS = "settings.sandbox-local";
|
|
12
12
|
declare module "@deepseek-ai/dsh-client-ui-slots" {
|
|
13
13
|
interface LocaleNamespaceMap {
|
|
14
14
|
"settings.sandbox-local": SandboxFieldLocaleKey;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
declare const inject: string[];
|
|
18
|
-
declare function apply(ctx: Context): void;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { NS, SANDBOX_NS, apply, inject };
|
|
17
|
+
export declare const inject: string[];
|
|
18
|
+
export declare function apply(ctx: Context): void;
|
|
19
|
+
//#endregion
|
package/dist/client.d.mts
CHANGED
|
@@ -7,14 +7,13 @@ declare const zh: {
|
|
|
7
7
|
type SandboxFieldLocaleKey = keyof typeof zh;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/client/index.d.ts
|
|
10
|
-
declare const SANDBOX_NS = "sandbox-local";
|
|
11
|
-
declare const NS = "settings.sandbox-local";
|
|
10
|
+
export declare const SANDBOX_NS = "sandbox-local";
|
|
11
|
+
export declare const NS = "settings.sandbox-local";
|
|
12
12
|
declare module "@deepseek-ai/dsh-client-ui-slots" {
|
|
13
13
|
interface LocaleNamespaceMap {
|
|
14
14
|
"settings.sandbox-local": SandboxFieldLocaleKey;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
declare const inject: string[];
|
|
18
|
-
declare function apply(ctx: Context): void;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { NS, SANDBOX_NS, apply, inject };
|
|
17
|
+
export declare const inject: string[];
|
|
18
|
+
export declare function apply(ctx: Context): void;
|
|
19
|
+
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import z from "@deepseek-ai/schemastery";
|
|
|
4
4
|
import { Config as Config$1 } from "@deepseek-ai/dsh-fs-local";
|
|
5
5
|
import { Config as Config$2 } from "@deepseek-ai/dsh-sandbox-local";
|
|
6
6
|
//#region src/config.d.ts
|
|
7
|
-
interface Config extends Config$2, Config$1 {
|
|
7
|
+
export interface Config extends Config$2, Config$1 {
|
|
8
8
|
access?: string | string[];
|
|
9
9
|
}
|
|
10
10
|
interface ResolvedConfig extends Omit<Config, "access" | "runnerCommand" | "runnerFailureSignatures" | "probeTimeoutMs" | "cwd" | "diffBasisMaxBytes"> {
|
|
@@ -15,11 +15,11 @@ interface ResolvedConfig extends Omit<Config, "access" | "runnerCommand" | "runn
|
|
|
15
15
|
readonly cwd: Volatile<string>;
|
|
16
16
|
readonly diffBasisMaxBytes: Volatile<number>;
|
|
17
17
|
}
|
|
18
|
-
declare const Config: z<Config, ResolvedConfig>;
|
|
18
|
+
export declare const Config: z<Config, ResolvedConfig>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/index.d.ts
|
|
21
|
-
declare const name = "sandbox-local";
|
|
22
|
-
declare const inject: string[];
|
|
23
|
-
declare function apply(ctx: Context, config: ResolvedConfig): void;
|
|
21
|
+
export declare const name = "sandbox-local";
|
|
22
|
+
export declare const inject: string[];
|
|
23
|
+
export declare function apply(ctx: Context, config: ResolvedConfig): void;
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export type { ResolvedConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { Config as Config$2 } from "@deepseek-ai/dsh-sandbox-local";
|
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
import { Volatile } from "@deepseek-ai/cosmokit";
|
|
6
6
|
//#region src/config.d.ts
|
|
7
|
-
interface Config extends Config$2, Config$1 {
|
|
7
|
+
export interface Config extends Config$2, Config$1 {
|
|
8
8
|
access?: string | string[];
|
|
9
9
|
}
|
|
10
10
|
interface ResolvedConfig extends Omit<Config, "access" | "runnerCommand" | "runnerFailureSignatures" | "probeTimeoutMs" | "cwd" | "diffBasisMaxBytes"> {
|
|
@@ -15,11 +15,11 @@ interface ResolvedConfig extends Omit<Config, "access" | "runnerCommand" | "runn
|
|
|
15
15
|
readonly cwd: Volatile<string>;
|
|
16
16
|
readonly diffBasisMaxBytes: Volatile<number>;
|
|
17
17
|
}
|
|
18
|
-
declare const Config: z<Config, ResolvedConfig>;
|
|
18
|
+
export declare const Config: z<Config, ResolvedConfig>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/index.d.ts
|
|
21
|
-
declare const name = "sandbox-local";
|
|
22
|
-
declare const inject: string[];
|
|
23
|
-
declare function apply(ctx: Context, config: ResolvedConfig): void;
|
|
21
|
+
export declare const name = "sandbox-local";
|
|
22
|
+
export declare const inject: string[];
|
|
23
|
+
export declare function apply(ctx: Context, config: ResolvedConfig): void;
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export type { ResolvedConfig };
|
package/dist/rows.d.cts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
//#region src/rows.d.ts
|
|
2
|
-
interface PatchRow {
|
|
2
|
+
export interface PatchRow {
|
|
3
3
|
readonly id?: string;
|
|
4
4
|
readonly disabled?: boolean;
|
|
5
5
|
readonly insert?: readonly RowEntry[];
|
|
6
6
|
}
|
|
7
|
-
interface RowEntry {
|
|
7
|
+
export interface RowEntry {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly name: string;
|
|
10
10
|
readonly config?: Readonly<Record<string, unknown>>;
|
|
11
11
|
}
|
|
12
|
-
declare function sandboxRows(): readonly PatchRow[];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { PatchRow, RowEntry, sandboxRows };
|
|
12
|
+
export declare function sandboxRows(): readonly PatchRow[];
|
|
13
|
+
//#endregion
|
package/dist/rows.d.mts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
//#region src/rows.d.ts
|
|
2
|
-
interface PatchRow {
|
|
2
|
+
export interface PatchRow {
|
|
3
3
|
readonly id?: string;
|
|
4
4
|
readonly disabled?: boolean;
|
|
5
5
|
readonly insert?: readonly RowEntry[];
|
|
6
6
|
}
|
|
7
|
-
interface RowEntry {
|
|
7
|
+
export interface RowEntry {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly name: string;
|
|
10
10
|
readonly config?: Readonly<Record<string, unknown>>;
|
|
11
11
|
}
|
|
12
|
-
declare function sandboxRows(): readonly PatchRow[];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { PatchRow, RowEntry, sandboxRows };
|
|
12
|
+
export declare function sandboxRows(): readonly PatchRow[];
|
|
13
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/dsh-sandbox-local",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Configurable sandbox
|
|
3
|
+
"version": "0.0.7",
|
|
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.
|
|
38
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.
|
|
39
|
-
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.
|
|
40
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.
|
|
41
|
-
"@deepseek-ai/dsh-fs": "0.2.0-rc.
|
|
42
|
-
"@deepseek-ai/dsh-fs-local": "0.2.0-rc.
|
|
43
|
-
"@deepseek-ai/dsh-fs-sandbox": "0.2.0-rc.
|
|
44
|
-
"@deepseek-ai/dsh-sandbox": "0.2.0-rc.
|
|
45
|
-
"@deepseek-ai/dsh-sandbox-local": "0.2.0-rc.
|
|
46
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.
|
|
47
|
-
"@deepseek-ai/dsh-scope": "0.2.0-rc.
|
|
48
|
-
"@deepseek-ai/dsh-session": "0.2.0-rc.
|
|
49
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.
|
|
50
|
-
"@deepseek-ai/dsh-user-approval": "0.2.0-rc.
|
|
51
|
-
"@morlay/dsh-client-ui-primitives": "0.0.
|
|
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.7"
|
|
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.
|
|
57
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.0-rc.
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.0-rc.
|
|
59
|
-
"@deepseek-ai/dsh-fs": "^0.2.0-rc.
|
|
60
|
-
"@deepseek-ai/dsh-fs-local": "^0.2.0-rc.
|
|
61
|
-
"@deepseek-ai/dsh-fs-sandbox": "^0.2.0-rc.
|
|
62
|
-
"@deepseek-ai/dsh-sandbox": "^0.2.0-rc.
|
|
63
|
-
"@deepseek-ai/dsh-sandbox-local": "^0.2.0-rc.
|
|
64
|
-
"@deepseek-ai/dsh-sandbox-policy": "^0.2.0-rc.
|
|
65
|
-
"@deepseek-ai/dsh-session": "^0.2.0-rc.
|
|
66
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.
|
|
67
|
-
"@deepseek-ai/schemastery": "^3.18.4"
|
|
68
|
-
"@morlay/dsh-client-ui-primitives": "0.0.5"
|
|
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
|
},
|
package/src/client/index.ts
CHANGED
|
@@ -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` 在它还没提供时拿不到,注册会被静静跳过)。
|