{"_id":"@agent-monitor/core","_rev":"11-44779c53462d6e41f6f66f15ae947d8c","name":"@agent-monitor/core","dist-tags":{"latest":"4.1.1"},"versions":{"0.1.0":{"name":"@agent-monitor/core","version":"0.1.0","license":"MIT","_id":"@agent-monitor/core@0.1.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"334ad14aafffffb3aed81eca569b42ad85985c91","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.0.tgz","fileCount":45,"integrity":"sha512-ne5IKkpMWePzP2Vu4WdVkq9Qg1pARgk30MpAQCOnKaBEquwx8+S76akkF64Ccb0/uP7qtiDfaahz9lLJeXp7YA==","signatures":[{"sig":"MEUCIBJxG7ApmTNS3Ta2Z9J7FLIpNUaXE259Fdixo1fJg6+0AiEAnwZpLOByBnNNe4eFB7C+Gc5rbcpEhY3GaWKUQusOrus=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24486},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"fca55a06df56f9e8ba27ffbb3fc1be980b251a9a","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1788339412434_0.9460055040589286","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-monitor/core","version":"0.1.1","license":"MIT","_id":"@agent-monitor/core@0.1.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"de81c1657dbce5e4b96ed0db97b12e86d3969b9f","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.1.tgz","fileCount":45,"integrity":"sha512-MZDAq4oWrizx+gayUROhW8jg9jVXMuc1Lri/L1kCa+9l1E2Hpqx1jBzuICA+XZv1SyoYWDW9UM3Rh7jRgukY1A==","signatures":[{"sig":"MEQCIG9WvSIOLdrcd8LmTOGx2K34ejDYeSG3mSwmOFS+FHuzAiA1S20ZcHeiobjPzQTCXAQoYFAerzBZT2FC+g1A8QnOig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24486},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"812d18f379d25b9e2ed19dc7f7d40e6901b49906","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1788339865572_0.37758630997707754","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-monitor/core","version":"0.1.2","license":"MIT","_id":"@agent-monitor/core@0.1.2","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"fc63ee0a5f5300043c53797c8c8040185b8b6570","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.2.tgz","fileCount":45,"integrity":"sha512-gT7zwUkhXiMGKxl1JdomkZ28w52vaeLoDPmJVAEX+bcLp5EnC9cTVI7JIXlhZFtFkr4Onp1QjLW2XnEGqECwoA==","signatures":[{"sig":"MEUCIQD6I/RafLq7zNgxMxG1ustuyu6M+Ea8SXzcKjb5iUt5JgIgJS7SWhpOMP2arIEqedmRcHxvSCAEbHn8EorUtsSNbiM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24486},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"fa3ef7024addaa9f73812e29f9d2e4bb6758645d","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.2_1788340651734_0.9966123025056428","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agent-monitor/core","version":"0.1.3","license":"MIT","_id":"@agent-monitor/core@0.1.3","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"f984ed0305e499205e3a230a686010355a2f16b9","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.3.tgz","fileCount":45,"integrity":"sha512-hkF0AQVBaLPsy/PpL4FzmyiPhsCQGZ+SXG5yYA4SY8Rn+4OT8CtgFa1/AwoMs8zRscD588+uC37p74VK8lzkug==","signatures":[{"sig":"MEUCIHhajRYB8+CkHw93XHlFO7DP2dQ740k5N+sSxYBRsEiaAiEA0g3M37pCCFz0OzLo6gaxOMAAnx0EVw2v7gc7CtOayxE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24486},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"0e24c5f85b8a3b95f94e62c7feadcadeb5903242","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.3_1788341195057_0.1676816494912996","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@agent-monitor/core","version":"0.1.4","license":"MIT","_id":"@agent-monitor/core@0.1.4","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"12e294cc289fb438b946d3122777da586b8a7940","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.4.tgz","fileCount":45,"integrity":"sha512-IpZhwpINtfBvAev8efEukB6qiXqNJmjgx0Juh0PIfn/uUYyW+HzuOE+Q8kA8KQEoScyDeobZz5PH5BibcLVF2A==","signatures":[{"sig":"MEYCIQCrtSg67RI9vgcy7lwlaEI6A0e/HzCDqLCHhIjfPnQn6AIhAP4C7TsMJqS8evWHcj2n/os8SACBCy4Yxwjupmq96Ok1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25385},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"7315e6f2cf129e1bd72bd6dddbbba67d59006c94","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.4_1788341873214_0.7472873882567681","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@agent-monitor/core","version":"0.1.5","license":"MIT","_id":"@agent-monitor/core@0.1.5","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"4bfe8afd34beeb2ed9579461a21e61abb30e050b","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.1.5.tgz","fileCount":45,"integrity":"sha512-1AX17NVDdpfsP/TATcxQPeVNDwuAgFm5mB1exNl9OBwSUO2YIb2MZETPMD+1YOoP+BYiM/0eW158y9UpK3hiUA==","signatures":[{"sig":"MEYCIQDhjfRb6GtYRkKFi0430JYcb3oW/7vQkWdhQVZQiOJ9RgIhAMrdoHMTwA2j0AkZsykowOZM7C8nEwVTh37iZb0GQHv6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25385},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"60114294eac30d21928d2305776e57bb626ec395","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, and deterministic risk engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.5_1788342203177_0.4835421229479375","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agent-monitor/core","version":"0.2.0","license":"MIT","_id":"@agent-monitor/core@0.2.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"290ee3a91fa4f14b04239a0b59acaff01ac10130","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.2.0.tgz","fileCount":66,"integrity":"sha512-HTC0Q2Vr97ahj16EAN2ZWenQhe4lCk/KkxnjwfDAAmU2m74yLNaRRVskdoietK2DyP4JvSdGrUAGUkRqHpFLwQ==","signatures":[{"sig":"MEUCIBk0DaU4K7ZiST8pXVr54E3ApmrpzbLsmzSi3D0N8jLmAiEA70fANXG2xetLElqqtKa8QMY2FqWni1LcjX0TheXx6w4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74822},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"27e11a0bfebf2912e016ba953857ef125e5c1e66","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0_1788346185003_0.4494847515792826","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@agent-monitor/core","version":"0.2.1","license":"MIT","_id":"@agent-monitor/core@0.2.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"f70a843b967b3f530daecc0cf75297cfb91017e7","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.2.1.tgz","fileCount":66,"integrity":"sha512-Ue17uPltbzK0codMcBP9xoZhpQ9iYtXvHwolmLxmtvefdx2/ngq7UFXGSf6aSHNxIwHooouTTBEgUc3k233rYg==","signatures":[{"sig":"MEUCIGtOJsOySGx8q9/7yKI70OuSrt16OrnBPMYlugbyqmiCAiEAu/TmcDGzSG+hZ3c8aCZHpz4K8oPoB8DVOXnS8LUEB2w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75564},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"ee06240cc2ca9b181ac105ec8e5dc6b5178f6308","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.2.1_1788348185150_0.7579519240017403","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agent-monitor/core","version":"0.3.0","license":"MIT","_id":"@agent-monitor/core@0.3.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"db2be00862c2fb43ced18c42f73890d821e6247e","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-0.3.0.tgz","fileCount":106,"integrity":"sha512-57AzZkKXX8khSn+vPYxDm5JSF7xn8lpjq4BWHxEQfQQ9Sp2kOpVWLuh+3cG6fFpfv9mXnvj+cfP3V6Q46GW3Wg==","signatures":[{"sig":"MEQCIACBjFrfQOXx8FPy1E1ntZv7TeosIVSreEpnNlpc3ANzAiAuz6/ic9/gI0jGhRcy/ckZ3AoHY8Wd5/47DcBNtoGyrQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":143428},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"a17f596740cb003dfee6eb6ee1e73589ba7b87ec","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0_1788521703613_0.3064646828144262","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@agent-monitor/core","version":"4.1.0","license":"MIT","_id":"@agent-monitor/core@4.1.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"0cec5fbd6c11137c85530297b4e6b1e3dff32d58","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-4.1.0.tgz","fileCount":154,"integrity":"sha512-XAzxd/3PXpTQ/1rdjPZwpS0It6rpBF0wfYn7GorpTqSTKmr5JGWQVFslQkZVegktIvwVz8f4B2FFF55Qxv7p7w==","signatures":[{"sig":"MEUCIFvAtPckPk/RUFd6Y3driOJNfEDThx+YNi1IpBCkB55AAiEAtVSHUw5WpGpaAnvUFmEvoYTrXMvAGt+lLa9wQL/5HLc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":216941},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"6bd026354267b19131d79bd47afa4fa35eb5c753","scripts":{"build":"tsc","clean":"rm -rf dist"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_4.1.0_1788539994548_0.16124744728837426","host":"s3://npm-registry-packages-npm-production"}},"4.1.1":{"name":"@agent-monitor/core","version":"4.1.1","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"_id":"@agent-monitor/core@4.1.1","gitHead":"6bebe161c22d341804b4da801d6bb5fcedf1b3f0","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-Rb9RAQDPpAgcgeNodHl2epkloxnt3TecYIq3sLneMGgOrZ0YMyAIcacPENREX3bxUsmgRuyFPtJLhTwkO3sVdA==","shasum":"90b98bad1895f579a80983c5b2b3b46b163e0213","tarball":"https://registry.npmjs.org/@agent-monitor/core/-/core-4.1.1.tgz","fileCount":154,"unpackedSize":216941,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDLfEBTIQq05J049vZr5c+6iox6N+ipsteZwXvkQZY7igIhAKLnLE27ISYR4wMKQ9N9Tpt5dQo4E1Ctdk5oBilPjBEU"}]},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"directories":{},"maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_4.1.1_1788596389110_0.2546661921006388"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T08:56:52.277Z","modified":"2026-09-05T08:19:49.430Z","0.1.0":"2026-09-02T08:56:52.575Z","0.1.1":"2026-09-02T09:04:25.713Z","0.1.2":"2026-09-02T09:17:31.872Z","0.1.3":"2026-09-02T09:26:35.188Z","0.1.4":"2026-09-02T09:37:53.338Z","0.1.5":"2026-09-02T09:43:23.323Z","0.2.0":"2026-09-02T10:49:45.131Z","0.2.1":"2026-09-02T11:23:05.292Z","0.3.0":"2026-09-04T11:35:03.755Z","4.1.0":"2026-09-04T16:39:54.665Z","4.1.1":"2026-09-05T08:19:49.250Z"},"license":"MIT","description":"Core domain schema, event types, deterministic risk engine, and policy engine for Agent Monitor","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"readme":"# `@agent-monitor/core`\n\nCore domain models, event interfaces, deterministic risk analysis, and additive policy engine for Agent Monitor.\n\n---\n\n## Overview\n\n`@agent-monitor/core` is the foundational, **zero-dependency** package containing pure TypeScript definitions and deterministic algorithms for observing and controlling AI agents.\n\n---\n\n## Key Modules\n\n- **`normalization/`**:\n  - `ActionNormalizer`: Canonical action mapping from arbitrary MCP tool calls, raw process commands, and resource URIs into strongly-typed action intents.\n- **`behavior/`**:\n  - `BehavioralEngine`: Correlates multi-step action sequences across a session (`SEC_MUTATION_TO_READ`, `SEC_TRAVERSAL_TO_EXEC`, `SEC_DENIAL_TO_ALTERNATIVE`, `SEC_SENSITIVE_TO_NETWORK`) with sliding window memory bounds.\n- **`fingerprint/`**:\n  - `computeToolFingerprint`: Cryptographic SHA-256 fingerprinting of external tool schemas for runtime mutation (rug-pull) detection.\n- **`policy/`**:\n  - `PolicyEngine`: Synchronous evaluation engine with additive rule specificity.\n  - `versioning`: Policy version models, immutable SHA-256 content hashing, diff computation, and rollbacks.\n  - `matcher`: Glob and command pattern matching (`**/*.secret`, `git push *`).\n  - `defaults`: Built-in default secure rules (`ALLOW`, `DENY`, `ASK`).\n- **`risk/`**:\n  - `RiskAnalyzer`: Evaluates pre-execution risk scores (0–100) mapped to CWE categories.\n  - `SessionRiskEngine`: Aggregates multi-action session risk with factor explainability breakdown.\n- **`incidents/`**:\n  - `SecurityIncident`: Case model, severity levels, triage status, and correlated event schema.\n- **`audit/`**:\n  - `computeEventHash`, `verifyEventChain`: Cryptographic SHA-256 event hash chaining and tamper detection.\n- **`mcp/`**:\n  - Downstream MCP source interfaces, health metrics, and quarantine status.\n- **`events/`**:\n  - Complete domain event types and cryptographic hash chaining interfaces.\n- **`actions/`**:\n  - Canonical action models (`ActionKind`, `ActionCategory`).\n- **`approvals/`**:\n  - Approval status and request types.\n\n\n---\n\n## Installation\n\n```bash\nnpm install @agent-monitor/core\n```\n\n---\n\n## Example Usage\n\n### Evaluating a Policy:\n\n```typescript\nimport { PolicyEngine } from \"@agent-monitor/core\";\n\nconst engine = new PolicyEngine();\nconst result = engine.evaluate(\n  { kind: \"process.exec\", params: { command: \"git push origin main\" } },\n  { workspaceRoot: process.cwd() },\n);\n\nconsole.log(result.decision); // 'ASK'\nconsole.log(result.reason); // 'Pushing changes to a remote repository requires human approval.'\n```\n\n### Analyzing Risk:\n\n```typescript\nimport { RiskAnalyzer } from \"@agent-monitor/core\";\n\nconst analyzer = new RiskAnalyzer();\nconst risk = analyzer.analyze(\"file.read\", { path: \".env\" });\n\nconsole.log(risk.score); // 40\nconsole.log(risk.level); // 'HIGH'\n```\n","readmeFilename":"README.md"}