{"_id":"@agent-wall/core","_rev":"2-32c000b1593f8b2fc047a3efb5a6b62c","name":"@agent-wall/core","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@agent-wall/core","version":"0.1.0","author":{"name":"Yalelet Dessalegn"},"license":"MIT","_id":"@agent-wall/core@0.1.0","maintainers":[{"name":"higgs_boson","email":"yabelectronics@gmail.com"}],"homepage":"https://agent-wall.github.io/agent-wall/","bugs":{"url":"https://github.com/agent-wall/agent-wall/issues"},"dist":{"shasum":"3f0790b1947b42d79e9adb262f5d0c4b53ee7f79","tarball":"https://registry.npmjs.org/@agent-wall/core/-/core-0.1.0.tgz","fileCount":38,"integrity":"sha512-aoIrCZts5u8Ra9cf2KQfYO01FTuJXF6IN396VJUnZP881OYvUykpkxSHJfhETWqhkGZGapPzX1e5L6m8NMST+Q==","signatures":[{"sig":"MEUCIQCpjc4cPpQlmQRuWk7DMc/N4gSLkA+E/Y351IFlk6frRgIgUYlCcb1RREOrF8eyBakSUKmtEfBAkjdOmwZMk3hMo3s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":596353},"main":"./dist/index.js","type":"module","_from":"file:agent-wall-core-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"higgs_boson","email":"yabelectronics@gmail.com"},"_resolved":"/tmp/1636edca8c5c10d3d5bb2b3d4ee9c11f/agent-wall-core-0.1.0.tgz","_integrity":"sha512-aoIrCZts5u8Ra9cf2KQfYO01FTuJXF6IN396VJUnZP881OYvUykpkxSHJfhETWqhkGZGapPzX1e5L6m8NMST+Q==","repository":{"url":"git+https://github.com/agent-wall/agent-wall.git","type":"git"},"_npmVersion":"10.8.2","description":"Core proxy engine and policy evaluator for Agent Wall","directories":{},"_nodeVersion":"20.20.0","dependencies":{"ws":"^8.19.0","zod":"^3.25.67","js-yaml":"^4.1.0","minimatch":"^10.0.1","cross-spawn":"^7.0.6"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","@types/ws":"^8.18.1","typescript":"^5.9.3","@types/node":"^22.16.4","@types/js-yaml":"^4.0.9","@types/cross-spawn":"^6.0.6"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1771324064960_0.6915995576354199","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-wall/core","version":"0.1.1","description":"Core proxy engine and policy evaluator for Agent Wall","license":"MIT","author":{"name":"Yalelet Dessalegn"},"homepage":"https://agent-wall.github.io/agent-wall/","bugs":{"url":"https://github.com/agent-wall/agent-wall/issues"},"repository":{"type":"git","url":"git+https://github.com/agent-wall/agent-wall.git"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"dependencies":{"cross-spawn":"^7.0.6","js-yaml":"^4.1.0","minimatch":"^10.0.1","ws":"^8.19.0","zod":"^3.25.67"},"devDependencies":{"@types/cross-spawn":"^6.0.6","@types/js-yaml":"^4.0.9","@types/node":"^22.16.4","@types/ws":"^8.18.1","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^3.2.4"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@agent-wall/core@0.1.1","_integrity":"sha512-Gz9lx/xejH3Ksvz6yg9sWB4R3bfzcAyxR6I5vt7dC5uuoWBCoegUay5B1KMiZhaEBygfF9hujn+8SKn/GUjH7g==","_resolved":"/tmp/cdcae8989ea2475897fc012570bb8a81/agent-wall-core-0.1.1.tgz","_from":"file:agent-wall-core-0.1.1.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Gz9lx/xejH3Ksvz6yg9sWB4R3bfzcAyxR6I5vt7dC5uuoWBCoegUay5B1KMiZhaEBygfF9hujn+8SKn/GUjH7g==","shasum":"3bd1878a818d7e6fc2709e6a334ac7725761d4df","tarball":"https://registry.npmjs.org/@agent-wall/core/-/core-0.1.1.tgz","fileCount":38,"unpackedSize":596362,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC8Zg3fuQv7gekEVxDj9JVa4Z1e5FZIMNJptKHJKQa+tQIgEuXkAA94li09zZPqtFZU76CevjTc9Oc1+uYyH/fhNq4="}]},"_npmUser":{"name":"higgs_boson","email":"yabelectronics@gmail.com"},"directories":{},"maintainers":[{"name":"higgs_boson","email":"yabelectronics@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.1.1_1771325770444_0.9756448088221155"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-17T10:27:44.895Z","modified":"2026-02-17T10:56:10.727Z","0.1.0":"2026-02-17T10:27:45.149Z","0.1.1":"2026-02-17T10:56:10.615Z"},"bugs":{"url":"https://github.com/agent-wall/agent-wall/issues"},"author":{"name":"Yalelet Dessalegn"},"license":"MIT","homepage":"https://agent-wall.github.io/agent-wall/","repository":{"type":"git","url":"git+https://github.com/agent-wall/agent-wall.git"},"description":"Core proxy engine and policy evaluator for Agent Wall","maintainers":[{"name":"higgs_boson","email":"yabelectronics@gmail.com"}],"readme":"# @agent-wall/core\n\nCore proxy engine and security modules for [Agent Wall](https://github.com/agent-wall/agent-wall) — a security firewall for AI agents.\n\n[![npm](https://img.shields.io/npm/v/@agent-wall/core)](https://www.npmjs.com/package/@agent-wall/core)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/agent-wall/agent-wall/blob/main/LICENSE)\n\n> **Most users should install [`@agent-wall/cli`](https://www.npmjs.com/package/@agent-wall/cli) (the CLI) instead.** This package is for programmatic usage — embedding Agent Wall into your own tools.\n\n## Install\n\n```bash\nnpm install @agent-wall/core\n```\n\n## What's Inside\n\n| Module | Description |\n|--------|-------------|\n| `StdioProxy` | Two-way MCP protocol interception proxy |\n| `PolicyEngine` | First-match-wins rule evaluator (glob, rate limiting, strict mode) |\n| `ResponseScanner` | Secret/PII detection with ReDoS protection |\n| `InjectionDetector` | 30+ prompt injection patterns |\n| `EgressControl` | URL/SSRF protection (RFC1918, metadata, IP obfuscation) |\n| `KillSwitch` | Emergency deny-all (file, signal, programmatic) |\n| `ChainDetector` | Multi-step attack pattern detection |\n| `AuditLogger` | HMAC-SHA256 signed JSON lines with rotation |\n| `PolicyLoader` | YAML config with Zod validation and hot-reload |\n| `DashboardServer` | WebSocket + HTTP server for real-time dashboard |\n\n## Usage\n\n```typescript\nimport {\n  StdioProxy,\n  PolicyEngine,\n  ResponseScanner,\n  InjectionDetector,\n  EgressControl,\n  KillSwitch,\n  ChainDetector,\n  AuditLogger,\n  loadPolicy,\n} from \"@agent-wall/core\";\n\n// Load policy from YAML\nconst { config } = loadPolicy(\"./agent-wall.yaml\");\n\n// Create security modules\nconst policyEngine = new PolicyEngine(config);\nconst scanner = new ResponseScanner(config.responseScanning);\nconst injectionDetector = new InjectionDetector();\nconst egressControl = new EgressControl();\nconst killSwitch = new KillSwitch();\nconst chainDetector = new ChainDetector();\n\n// Create proxy\nconst proxy = new StdioProxy({\n  command: \"npx\",\n  args: [\"@modelcontextprotocol/server-filesystem\", \"/home/user\"],\n  policyEngine,\n  responseScanner: scanner,\n  injectionDetector,\n  egressControl,\n  killSwitch,\n  chainDetector,\n});\n\nawait proxy.start();\n```\n\n## Documentation\n\nFull docs: [agent-wall.github.io/agent-wall](https://agent-wall.github.io/agent-wall/)\n\nAPI reference: [agent-wall.github.io/agent-wall/api/core](https://agent-wall.github.io/agent-wall/api/core)\n\n## License\n\n[MIT](https://github.com/agent-wall/agent-wall/blob/main/LICENSE)\n","readmeFilename":"README.md"}