@drakon-systems/shieldcortex-realtime 4.10.6 → 4.11.0
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/interceptor.ts +8 -3
- package/openclaw.plugin.json +4 -4
- package/package.json +2 -2
package/interceptor.ts
CHANGED
|
@@ -40,13 +40,18 @@ const CONTENT_FIELDS: Record<string, string[]> = {
|
|
|
40
40
|
mcp__memory__remember: ['content', 'title'],
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
// Defaults relaxed in v4.11.0: critical/high no longer block the tool call with
|
|
44
|
+
// a synchronous approval prompt. The defence pipeline still runs and
|
|
45
|
+
// `failurePolicy` still denies on critical/high, so the block is preserved —
|
|
46
|
+
// what changes is the user-facing approval gate. Opt back in with
|
|
47
|
+
// `severityActions: { high: 'require_approval', critical: 'require_approval' }`.
|
|
43
48
|
const DEFAULT_CONFIG: InterceptorConfig = {
|
|
44
49
|
enabled: true,
|
|
45
50
|
severityActions: {
|
|
46
51
|
low: 'log',
|
|
47
|
-
medium: '
|
|
48
|
-
high: '
|
|
49
|
-
critical: '
|
|
52
|
+
medium: 'log',
|
|
53
|
+
high: 'warn',
|
|
54
|
+
critical: 'log',
|
|
50
55
|
},
|
|
51
56
|
failurePolicy: {
|
|
52
57
|
low: 'allow',
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "shieldcortex-realtime",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"name": "ShieldCortex Real-time Scanner",
|
|
5
5
|
"description": "Real-time defence scanning on LLM input, memory extraction on LLM output, and active tool call interception with approval gating.",
|
|
6
6
|
"kind": null,
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"additionalProperties": false,
|
|
109
109
|
"properties": {
|
|
110
110
|
"low": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "log" },
|
|
111
|
-
"medium": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "
|
|
112
|
-
"high": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "
|
|
113
|
-
"critical": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "
|
|
111
|
+
"medium": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "log" },
|
|
112
|
+
"high": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "warn" },
|
|
113
|
+
"critical": { "type": "string", "enum": ["log", "warn", "require_approval"], "default": "log" }
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"failurePolicy": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakon-systems/shieldcortex-realtime",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
4
4
|
"description": "OpenClaw plugin for ShieldCortex real-time defence scanning and optional memory extraction.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"pack:verify": "npm pack --dry-run"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"shieldcortex": "^4.
|
|
27
|
+
"shieldcortex": "^4.11.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=18.0.0"
|