agentshield-sdk 7.2.0 → 7.2.1
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 +5 -4
- package/package.json +4 -3
- package/src/circuit-breaker.js +321 -321
- package/src/detector-core.js +3 -3
- package/src/distributed.js +402 -359
- package/src/fuzzer.js +764 -764
- package/src/index.js +23 -7
- package/src/main.js +6 -2
- package/src/mcp-security-runtime.js +30 -5
- package/src/mcp-server.js +12 -8
- package/src/middleware.js +303 -208
- package/src/multi-agent.js +421 -404
- package/src/pii.js +401 -390
- package/src/stream-scanner.js +34 -4
- package/src/testing.js +505 -505
- package/src/utils.js +199 -83
- package/types/index.d.ts +374 -0
package/README.md
CHANGED
|
@@ -388,7 +388,7 @@ validator.validate(plugin); // Safety & quality validation
|
|
|
388
388
|
|
|
389
389
|
### VS Code Extension (v2.0)
|
|
390
390
|
|
|
391
|
-
The `vscode-extension/` directory contains a VS Code extension that provides inline diagnostics and real-time scanning for JS/TS/Python/Markdown files with
|
|
391
|
+
The `vscode-extension/` directory contains a VS Code extension that provides inline diagnostics and real-time scanning for JS/TS/Python/Markdown files with 141 detection patterns.
|
|
392
392
|
|
|
393
393
|
### Enterprise Features (v2.1)
|
|
394
394
|
|
|
@@ -833,8 +833,9 @@ Automatically scan PRs for injection threats with Check Run annotations:
|
|
|
833
833
|
### Real-Time Dashboard (v5.0)
|
|
834
834
|
|
|
835
835
|
```javascript
|
|
836
|
-
|
|
837
|
-
const {
|
|
836
|
+
// Dashboard is a standalone sub-project - import directly:
|
|
837
|
+
const { ThreatStreamServer } = require('./dashboard-live/server');
|
|
838
|
+
const { DashboardIntegration } = require('./dashboard-live/integration');
|
|
838
839
|
|
|
839
840
|
const server = new ThreatStreamServer({ port: 3001 });
|
|
840
841
|
server.start();
|
|
@@ -998,7 +999,7 @@ Total: **1,282 test assertions** across 15 test suites.
|
|
|
998
999
|
|
|
999
1000
|
## CI/CD
|
|
1000
1001
|
|
|
1001
|
-
A GitHub Actions workflow is included at `.github/workflows/ci.yml`. It runs all tests across Node.js
|
|
1002
|
+
A GitHub Actions workflow is included at `.github/workflows/ci.yml`. It runs all tests across Node.js 18, 20, and 22 on every push and PR.
|
|
1002
1003
|
|
|
1003
1004
|
## Privacy
|
|
1004
1005
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentshield-sdk",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "The security standard for MCP and AI agents. Protects against prompt injection, confused deputy attacks, data exfiltration, and 30+ threats. Zero dependencies, runs locally.",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"test:v6": "node test/test-v6-modules.js",
|
|
30
30
|
"test:adaptive": "node test/test-adaptive-defense.js",
|
|
31
31
|
"test:ipia": "node test/test-ipia-detector.js",
|
|
32
|
-
"test:
|
|
32
|
+
"test:production": "node test/test-production-readiness.js",
|
|
33
|
+
"test:full": "npm test && node test/test-mcp-security.js && node test/test-confused-deputy.js && node test/test-v6-modules.js && node test/test-adaptive-defense.js && node test/test-ipia-detector.js && node test/test-production-readiness.js && npm run test:all",
|
|
33
34
|
"test:coverage": "c8 --reporter=text --reporter=lcov --reporter=json-summary npm test",
|
|
34
35
|
"lint": "node test/lint.js",
|
|
35
36
|
"lint:eslint": "eslint src/ test/ bin/",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"benchmark:generate": "node scripts/generate-dataset.js",
|
|
54
55
|
"benchmark:baseline": "node scripts/run-benchmark.js --save-baseline",
|
|
55
56
|
"benchmark:regression": "node scripts/run-benchmark.js --check-regression",
|
|
56
|
-
"prepublishOnly": "npm
|
|
57
|
+
"prepublishOnly": "npm run test:full"
|
|
57
58
|
},
|
|
58
59
|
"keywords": [
|
|
59
60
|
"ai",
|