@drakon-systems/shieldcortex-realtime 5.0.7 → 5.2.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/dist/interceptor.js +2 -0
- package/dist/openclaw.plugin.json +1 -1
- package/interceptor.ts +6 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/interceptor.js
CHANGED
|
@@ -819,6 +819,8 @@ export function createInterceptor(config, pipeline, options) {
|
|
|
819
819
|
...(v.matches && v.matches.length > 0 ? { matches: v.matches } : {}),
|
|
820
820
|
// #189: an allow that leaned on the reviewed-script allowlist says so.
|
|
821
821
|
...(v.reviewedScripts && v.reviewedScripts.length > 0 ? { reviewedScripts: v.reviewedScripts } : {}),
|
|
822
|
+
// #517: files a `$(cat …)` substitution spliced into the scanned command.
|
|
823
|
+
...(v.expandedSubstitutions && v.expandedSubstitutions.length > 0 ? { expandedSubstitutions: v.expandedSubstitutions } : {}),
|
|
822
824
|
};
|
|
823
825
|
}
|
|
824
826
|
// ── Approval broker (#143) ────────────────────────────────────────────────
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "shieldcortex-realtime",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.2.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,
|
package/interceptor.ts
CHANGED
|
@@ -74,6 +74,8 @@ export interface ToolGuardVerdictLike {
|
|
|
74
74
|
}>;
|
|
75
75
|
/** Files the reviewed-script allowlist exempted from folding (#189). */
|
|
76
76
|
reviewedScripts?: string[];
|
|
77
|
+
/** Files a `$(cat …)` substitution spliced into the scanned command (#517). */
|
|
78
|
+
expandedSubstitutions?: string[];
|
|
77
79
|
}
|
|
78
80
|
/** Optional 4th-parameter seam on the real evaluator (issue #4): the guard core
|
|
79
81
|
* stays pure/synchronous and asks the CALLER to resolve an invoked script's
|
|
@@ -287,6 +289,8 @@ export interface InterceptAuditEntry {
|
|
|
287
289
|
escalated?: { by: 'session-taint'; from: string; to: string; reason: string };
|
|
288
290
|
/** Files the reviewed-script allowlist exempted from folding (#189). */
|
|
289
291
|
reviewedScripts?: string[];
|
|
292
|
+
/** Files a `$(cat …)` substitution spliced into the scanned command (#517). */
|
|
293
|
+
expandedSubstitutions?: string[];
|
|
290
294
|
/**
|
|
291
295
|
* Native contract drift: a reviewed exact-name host contract carried fields
|
|
292
296
|
* ShieldCortex does not read, which the guard dropped before validation and
|
|
@@ -1254,6 +1258,8 @@ export function createInterceptor(
|
|
|
1254
1258
|
...(v.matches && v.matches.length > 0 ? { matches: v.matches } : {}),
|
|
1255
1259
|
// #189: an allow that leaned on the reviewed-script allowlist says so.
|
|
1256
1260
|
...(v.reviewedScripts && v.reviewedScripts.length > 0 ? { reviewedScripts: v.reviewedScripts } : {}),
|
|
1261
|
+
// #517: files a `$(cat …)` substitution spliced into the scanned command.
|
|
1262
|
+
...(v.expandedSubstitutions && v.expandedSubstitutions.length > 0 ? { expandedSubstitutions: v.expandedSubstitutions } : {}),
|
|
1257
1263
|
};
|
|
1258
1264
|
}
|
|
1259
1265
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "shieldcortex-realtime",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.2.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,
|
package/package.json
CHANGED