@lmzhen/dsh-evolution-threat 0.32.4 → 0.32.5
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.md +9 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
# @lmzhen/dsh-evolution-threat
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
every evolution write tool and refuses the call on a pattern hit. It registers no prompt or tool
|
|
5
|
-
schema — a denial is its only model-visible effect.
|
|
3
|
+
> 内部安全组件,写入前扫描注入/密钥/外泄等威胁。
|
|
6
4
|
|
|
7
|
-
##
|
|
5
|
+
## 你会看到
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- **Prompt prefix / KV cache:** unchanged by this package: family-level rules single-sourced in `packages/README.md` §"Model-visible prompt prefix and the KV cache".
|
|
11
|
-
- **Mount it?** yes — the `evolution-threat` row, in `evolution-host`/`evolution-all`/one-click `evolution-preset`.
|
|
7
|
+
用户看到的是写入被拒时的提示。
|
|
12
8
|
|
|
13
|
-
##
|
|
9
|
+
## 什么时候会用到
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
- `maxScanChars` — `65536` — the scan window size in normalized characters. Legal range is `>= 4097` — a smaller window cannot guarantee full-coverage scanning (the overlap floor is `PATTERN_OVERLAP + 1` in evolution-core), so the schema rejects it at load and the assembly clamp falls back to the default. The whole text is always scanned in overlapping windows; this value is not a total cap.
|
|
17
|
-
- `threatExemptLabels` (default `[]`): pattern labels the deployment knows to be benign. The exemption surface is per config site: this guard row, the tool-skill-manage row, the evolution-commands row (its own SkillLibrary for the command write paths), the evolution-learning-graph row (its own SkillLibrary for the graph edit/delete write channel) and the memory store options each carry their OWN list and must be set separately. A label exempted only on the store side still blocks here.
|
|
11
|
+
每次写记忆/技能前。
|
|
18
12
|
|
|
19
|
-
##
|
|
13
|
+
## 默认 / 前提
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
默认开启;审批关闭也扫描。
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
## 边界
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- P2-4 (v14) closed the store-vs-guard asymmetry for the STORE gates (`SkillLibrary`/`MemoryStore` options)
|
|
28
|
-
- (v17 audit: the evolution-commands site was missing from this enumeration; the evolution-learning-graph site was missing from it as well.)
|
|
19
|
+
规则集手工维护,不保证穷尽。
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-threat",
|
|
3
3
|
"description": "Write-time threat guard for evolution tools (community build)",
|
|
4
|
-
"version": "0.32.
|
|
4
|
+
"version": "0.32.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
30
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.32.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
|
|
39
|
-
"@lmzhen/dsh-evolution-core": "^0.32.
|
|
39
|
+
"@lmzhen/dsh-evolution-core": "^0.32.5"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|