dsh-permission-rules 0.5.2 → 0.5.4
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/CHANGELOG.md +16 -0
- package/README.es.md +1 -1
- package/README.hi.md +1 -1
- package/README.md +2 -1
- package/README.pt.md +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +17 -17
- package/lib/client.js.map +1 -1
- package/lib/index.js +7 -8
- package/lib/typert.host.js +17 -17
- package/lib/types/runtime.d.ts +7 -8
- package/lib/types/runtime.d.ts.map +1 -1
- package/package.json +26 -24
- package/src/runtime.ts +7 -8
package/lib/index.js
CHANGED
|
@@ -3280,14 +3280,13 @@ async function apply(ctx, config) {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Whether a `@deepseek-ai/dsh-session` version line predates the
|
|
3283
|
-
* `ignorable` envelope-marker surface:
|
|
3284
|
-
*
|
|
3285
|
-
*
|
|
3286
|
-
*
|
|
3287
|
-
*
|
|
3288
|
-
*
|
|
3289
|
-
*
|
|
3290
|
-
* append probe.
|
|
3283
|
+
* `ignorable` envelope-marker surface: the released `0.1.0-rc.1`–`0.1.0-rc.7`
|
|
3284
|
+
* lines silently drop the marker from `Session.append` options, so audit
|
|
3285
|
+
* events written by those builds land unmarked and break resume on
|
|
3286
|
+
* stricter hosts. `0.1.0-rc.8` and later stamp the marker. Extend the
|
|
3287
|
+
* bound if a future rc line regresses. Non-matching (later rc, stable, or
|
|
3288
|
+
* unresolvable) versions are treated as possibly-marker-aware and verified
|
|
3289
|
+
* by the append probe.
|
|
3291
3290
|
* @param version - the installed peer version string.
|
|
3292
3291
|
* @returns true for the known-unmarked rc.1–rc.7 lines.
|
|
3293
3292
|
*/
|
package/lib/typert.host.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/zod/v4/core/core.js
|
|
1
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
2
2
|
var _a$1;
|
|
3
3
|
function $constructor(name, initializer, params) {
|
|
4
4
|
function init(inst, def) {
|
|
@@ -57,7 +57,7 @@ function config(newConfig) {
|
|
|
57
57
|
return globalConfig;
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
|
-
//#region node_modules/zod/v4/core/util.js
|
|
60
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
61
61
|
function getEnumValues(entries) {
|
|
62
62
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
63
63
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -371,7 +371,7 @@ function issue(...args) {
|
|
|
371
371
|
return { ...iss };
|
|
372
372
|
}
|
|
373
373
|
//#endregion
|
|
374
|
-
//#region node_modules/zod/v4/core/errors.js
|
|
374
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
375
375
|
const initializer$1 = (inst, def) => {
|
|
376
376
|
inst.name = "$ZodError";
|
|
377
377
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -431,7 +431,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
431
431
|
return fieldErrors;
|
|
432
432
|
}
|
|
433
433
|
//#endregion
|
|
434
|
-
//#region node_modules/zod/v4/core/parse.js
|
|
434
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
435
435
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
436
436
|
const ctx = _ctx ? {
|
|
437
437
|
..._ctx,
|
|
@@ -545,7 +545,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
545
545
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
546
546
|
};
|
|
547
547
|
//#endregion
|
|
548
|
-
//#region node_modules/zod/v4/core/regexes.js
|
|
548
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
549
549
|
/**
|
|
550
550
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
551
551
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -610,7 +610,7 @@ const _null$2 = /^null$/i;
|
|
|
610
610
|
const lowercase = /^[^A-Z]*$/;
|
|
611
611
|
const uppercase = /^[^a-z]*$/;
|
|
612
612
|
//#endregion
|
|
613
|
-
//#region node_modules/zod/v4/core/checks.js
|
|
613
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
614
614
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
615
615
|
var _a;
|
|
616
616
|
inst._zod ?? (inst._zod = {});
|
|
@@ -972,7 +972,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
972
972
|
};
|
|
973
973
|
});
|
|
974
974
|
//#endregion
|
|
975
|
-
//#region node_modules/zod/v4/core/doc.js
|
|
975
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
976
976
|
var Doc = class {
|
|
977
977
|
constructor(args = []) {
|
|
978
978
|
this.content = [];
|
|
@@ -1003,14 +1003,14 @@ var Doc = class {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
1005
|
//#endregion
|
|
1006
|
-
//#region node_modules/zod/v4/core/versions.js
|
|
1006
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1007
1007
|
const version = {
|
|
1008
1008
|
major: 4,
|
|
1009
1009
|
minor: 4,
|
|
1010
1010
|
patch: 3
|
|
1011
1011
|
};
|
|
1012
1012
|
//#endregion
|
|
1013
|
-
//#region node_modules/zod/v4/core/schemas.js
|
|
1013
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1014
1014
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1015
1015
|
var _a;
|
|
1016
1016
|
inst ?? (inst = {});
|
|
@@ -2147,7 +2147,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
2149
|
//#endregion
|
|
2150
|
-
//#region node_modules/zod/v4/core/registries.js
|
|
2150
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
2151
2151
|
var _a;
|
|
2152
2152
|
var $ZodRegistry = class {
|
|
2153
2153
|
constructor() {
|
|
@@ -2194,7 +2194,7 @@ function registry() {
|
|
|
2194
2194
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2195
2195
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2196
2196
|
//#endregion
|
|
2197
|
-
//#region node_modules/zod/v4/core/api.js
|
|
2197
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
2198
2198
|
// @__NO_SIDE_EFFECTS__
|
|
2199
2199
|
function _string(Class, params) {
|
|
2200
2200
|
return new Class({
|
|
@@ -2706,7 +2706,7 @@ function _check(fn, params) {
|
|
|
2706
2706
|
return ch;
|
|
2707
2707
|
}
|
|
2708
2708
|
//#endregion
|
|
2709
|
-
//#region node_modules/zod/v4/core/to-json-schema.js
|
|
2709
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2710
2710
|
function initializeContext(params) {
|
|
2711
2711
|
let target = params?.target ?? "draft-2020-12";
|
|
2712
2712
|
if (target === "draft-4") target = "draft-04";
|
|
@@ -3001,7 +3001,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
3001
3001
|
return finalize(ctx, schema);
|
|
3002
3002
|
};
|
|
3003
3003
|
//#endregion
|
|
3004
|
-
//#region node_modules/zod/v4/core/json-schema-processors.js
|
|
3004
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
3005
3005
|
const formatMap = {
|
|
3006
3006
|
guid: "uuid",
|
|
3007
3007
|
url: "uri",
|
|
@@ -3240,7 +3240,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
3240
3240
|
seen.ref = def.innerType;
|
|
3241
3241
|
};
|
|
3242
3242
|
//#endregion
|
|
3243
|
-
//#region node_modules/zod/v4/classic/iso.js
|
|
3243
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
3244
3244
|
const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
|
|
3245
3245
|
$ZodISODateTime.init(inst, def);
|
|
3246
3246
|
ZodStringFormat.init(inst, def);
|
|
@@ -3270,7 +3270,7 @@ function duration(params) {
|
|
|
3270
3270
|
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
3271
3271
|
}
|
|
3272
3272
|
//#endregion
|
|
3273
|
-
//#region node_modules/zod/v4/classic/errors.js
|
|
3273
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
3274
3274
|
const initializer = (inst, issues) => {
|
|
3275
3275
|
$ZodError.init(inst, issues);
|
|
3276
3276
|
inst.name = "ZodError";
|
|
@@ -3292,7 +3292,7 @@ const initializer = (inst, issues) => {
|
|
|
3292
3292
|
};
|
|
3293
3293
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
|
|
3294
3294
|
//#endregion
|
|
3295
|
-
//#region node_modules/zod/v4/classic/parse.js
|
|
3295
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
3296
3296
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
3297
3297
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3298
3298
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3306,7 +3306,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
3306
3306
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
3307
3307
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3308
3308
|
//#endregion
|
|
3309
|
-
//#region node_modules/zod/v4/classic/schemas.js
|
|
3309
|
+
//#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
3310
3310
|
const _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
3311
3311
|
function _installLazyMethods(inst, group, methods) {
|
|
3312
3312
|
const proto = Object.getPrototypeOf(inst);
|
package/lib/types/runtime.d.ts
CHANGED
|
@@ -381,14 +381,13 @@ export declare class PermissionRulesRuntime {
|
|
|
381
381
|
export declare function apply(ctx: Context, config: Config): Promise<void>;
|
|
382
382
|
/**
|
|
383
383
|
* Whether a `@deepseek-ai/dsh-session` version line predates the
|
|
384
|
-
* `ignorable` envelope-marker surface:
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
* append probe.
|
|
384
|
+
* `ignorable` envelope-marker surface: the released `0.1.0-rc.1`–`0.1.0-rc.7`
|
|
385
|
+
* lines silently drop the marker from `Session.append` options, so audit
|
|
386
|
+
* events written by those builds land unmarked and break resume on
|
|
387
|
+
* stricter hosts. `0.1.0-rc.8` and later stamp the marker. Extend the
|
|
388
|
+
* bound if a future rc line regresses. Non-matching (later rc, stable, or
|
|
389
|
+
* unresolvable) versions are treated as possibly-marker-aware and verified
|
|
390
|
+
* by the append probe.
|
|
392
391
|
* @param version - the installed peer version string.
|
|
393
392
|
* @returns true for the known-unmarked rc.1–rc.7 lines.
|
|
394
393
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/runtime.ts"],"names":[],"mappings":"AAAA;;;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;IACH,uBAAuB,IAAI,IAAI;IAa/B,0EAA0E;IAC1E,OAAO,CAAC,iBAAiB;IAUzB,+EAA+E;IAC/E,OAAO,CAAC,WAAW;IAmCnB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,cAAc;IAetB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAyC5B,qHAAqH;IACrH,OAAO,CAAC,kBAAkB;IAU1B,8FAA8F;IAC9F,OAAO,CAAC,aAAa;IAarB;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;IAYnB,4DAA4D;IAC5D,kBAAkB,IAAI,MAAM;IAI5B,sEAAsE;IACtE,kBAAkB,IAAI,MAAM;IAI5B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAevB;AAED;;;;;GAKG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BvE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-permission-rules",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Declarative Claude Code-style permission rules plus a Codex-style process-level network policy for DeepSeek Harness: ordered allow/deny/ask rules with tool-name, argument (glob/regex), workspace-path, and network-target (domain/ip/port/scheme) matching on the tools/pre-execute waterfall, a built-in local HTTP/CONNECT proxy governing shell subprocess traffic, three network modes mapped onto the official sandbox presets, full session-log audit, HMR rule reload, and a settings page with a rule editor, block counters, and recent interception lists.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -76,9 +76,7 @@
|
|
|
76
76
|
],
|
|
77
77
|
"compatibility": {
|
|
78
78
|
"dshVersions": [
|
|
79
|
-
"0.1.
|
|
80
|
-
"0.1.0-rc.7",
|
|
81
|
-
"0.1.0-rc.7"
|
|
79
|
+
"0.1.1-rc.2"
|
|
82
80
|
]
|
|
83
81
|
},
|
|
84
82
|
"capability": {
|
|
@@ -121,12 +119,12 @@
|
|
|
121
119
|
},
|
|
122
120
|
"peerDependencies": {
|
|
123
121
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
124
|
-
"@deepseek-ai/dsh-agent": "0.1.0-rc.
|
|
125
|
-
"@deepseek-ai/dsh-commands": "0.1.0-rc.
|
|
126
|
-
"@deepseek-ai/dsh-llm": "0.1.0-rc.
|
|
127
|
-
"@deepseek-ai/dsh-session": "0.1.0-rc.
|
|
128
|
-
"@deepseek-ai/dsh-tools": "0.1.0-rc.
|
|
129
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.0-rc.
|
|
122
|
+
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.8 <0.2.0",
|
|
123
|
+
"@deepseek-ai/dsh-commands": ">=0.1.0-rc.8 <0.2.0",
|
|
124
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
|
|
125
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
126
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
|
|
127
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.0-rc.8 <0.2.0",
|
|
130
128
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
131
129
|
"react": "^18.2.0"
|
|
132
130
|
},
|
|
@@ -140,25 +138,29 @@
|
|
|
140
138
|
},
|
|
141
139
|
"devDependencies": {
|
|
142
140
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
141
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.6",
|
|
143
142
|
"@deepseek-ai/cordis-plugin-loader": "1.0.2",
|
|
144
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-client-
|
|
147
|
-
"@deepseek-ai/dsh-client-
|
|
148
|
-
"@deepseek-ai/dsh-client-
|
|
149
|
-
"@deepseek-ai/dsh-client-ui-
|
|
150
|
-
"@deepseek-ai/dsh-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
152
|
-
"@deepseek-ai/dsh-
|
|
153
|
-
"@deepseek-ai/dsh-
|
|
154
|
-
"@deepseek-ai/dsh-
|
|
155
|
-
"@deepseek-ai/dsh-
|
|
156
|
-
"@deepseek-ai/dsh-
|
|
143
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-brand": "0.1.1-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
148
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-commands": "0.1.1-rc.2",
|
|
151
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-session-projection": "0.1.1-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-subagent": "0.1.1-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-user-approval": "0.1.1-rc.2",
|
|
157
159
|
"@deepseek-ai/schemastery": "^3.18.0",
|
|
158
160
|
"@eslint/js": "^10.0.1",
|
|
159
161
|
"@types/node": "^22.19.0",
|
|
160
162
|
"@vitest/coverage-v8": "^3.2.0",
|
|
161
|
-
"dsh-auto-review": "file:vendor/dsh-auto-review-0.5.
|
|
163
|
+
"dsh-auto-review": "file:vendor/dsh-auto-review-0.5.4.tgz",
|
|
162
164
|
"eslint": "^10.8.1",
|
|
163
165
|
"globals": "^17.11.0",
|
|
164
166
|
"react": "18.3.1",
|
package/src/runtime.ts
CHANGED
|
@@ -1173,14 +1173,13 @@ export async function apply(ctx: Context, config: Config): Promise<void> {
|
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
1175
1175
|
* Whether a `@deepseek-ai/dsh-session` version line predates the
|
|
1176
|
-
* `ignorable` envelope-marker surface:
|
|
1177
|
-
*
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
* append probe.
|
|
1176
|
+
* `ignorable` envelope-marker surface: the released `0.1.0-rc.1`–`0.1.0-rc.7`
|
|
1177
|
+
* lines silently drop the marker from `Session.append` options, so audit
|
|
1178
|
+
* events written by those builds land unmarked and break resume on
|
|
1179
|
+
* stricter hosts. `0.1.0-rc.8` and later stamp the marker. Extend the
|
|
1180
|
+
* bound if a future rc line regresses. Non-matching (later rc, stable, or
|
|
1181
|
+
* unresolvable) versions are treated as possibly-marker-aware and verified
|
|
1182
|
+
* by the append probe.
|
|
1184
1183
|
* @param version - the installed peer version string.
|
|
1185
1184
|
* @returns true for the known-unmarked rc.1–rc.7 lines.
|
|
1186
1185
|
*/
|