{"_id":"@agent-monitor/agent","_rev":"10-f2efb385cc728a6c257c10b0aa7dba13","name":"@agent-monitor/agent","dist-tags":{"latest":"4.1.1"},"versions":{"0.1.1":{"name":"@agent-monitor/agent","version":"0.1.1","license":"MIT","_id":"@agent-monitor/agent@0.1.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"14a15bcbd02e9227c0cf3afb445ece65abf3960e","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.1.1.tgz","fileCount":53,"integrity":"sha512-XCO55MeTfQ7a3LG+RAy+3dgkEtxE0RmGcD3BgXtnCFc+by+v9rIMZVeZkj0yk5sh4brK0GSuZataMjOGsj27/A==","signatures":[{"sig":"MEQCIFl2k2f8QoytSW59P6qM18kGedyazUaiU78H3MkH8ruPAiApvJhvDbmXkZm528o6YCV+lEB4rzqp3rhDiJQZLDaW9A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61737},"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":"Safe tools, security guardrails, ActionInterceptor, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.1_1788339888293_0.48501017764442","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-monitor/agent","version":"0.1.2","license":"MIT","_id":"@agent-monitor/agent@0.1.2","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"2c1ebf4b9af223185efb122dc97e2eb1a4f27c7d","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.1.2.tgz","fileCount":53,"integrity":"sha512-PdgGPraT7lOgVAY+hV+MywmIv5WUS3TGnn0f/JCfLqTNeQKkN5rY/dcNSyK/ar50yxznJNdK9cIIdYCmq5CQoA==","signatures":[{"sig":"MEYCIQDUevXAzmdHiXD2vJTxGTOtkPI4N6iGSXoTY3N5YqNlVAIhAJscke3sYOJeYJigONx7C5ZEfYEzPnEK9O63DETgI/PD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61737},"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":"Safe tools, security guardrails, ActionInterceptor, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.2_1788340655293_0.26720963483765403","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agent-monitor/agent","version":"0.1.3","license":"MIT","_id":"@agent-monitor/agent@0.1.3","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"fc4297e107413212194636dbda7ee5a9ae4fb46b","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.1.3.tgz","fileCount":53,"integrity":"sha512-XbQdWKSud5YpIB9JPhRTnuxGmH8Dm/BjqYsuNiOHAeeaDbocl9DzfDeGHRwFcVYNUBwNUnZP+jgVtkIerJoEQA==","signatures":[{"sig":"MEUCIQDlNd/iIp5zHWWFCz/z3I+1+A5ERoMO+PIzMkkTgX9+IgIgfOHlQoHSAOZi0D5V35MOU4EBvspkmQr3iQpCvcsAWwM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61737},"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":"Safe tools, security guardrails, ActionInterceptor, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.3_1788341201188_0.9755315028620628","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@agent-monitor/agent","version":"0.1.4","license":"MIT","_id":"@agent-monitor/agent@0.1.4","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"ad8dbadf1afaa093af0ff3e833c47c65a05376b0","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.1.4.tgz","fileCount":53,"integrity":"sha512-bupgxtEByBVSY7pI5YJF/s/yBmfMESFmpxEgDWyl4pyLOt97dAF3H4F2e2738V39lzlqbcZAvK2hk1Lj9J0Q2g==","signatures":[{"sig":"MEUCICcH5JfSdqPjHpuuH/96kzoVxr8K7vMFg2NjHqo9joPjAiEAk64G12Xo4SDI5saQc9oq64U4TKzMVU01cWONOiVgBKQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61737},"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":"Safe tools, security guardrails, ActionInterceptor, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.4_1788341888428_0.8883851593812855","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@agent-monitor/agent","version":"0.1.5","license":"MIT","_id":"@agent-monitor/agent@0.1.5","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"cc4d3b240fbe907a5a1fa20195c1e0437f733d9c","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.1.5.tgz","fileCount":53,"integrity":"sha512-mt5lzZDS8DUpd7kKspUpXKyB3NMDzLB3N3YoumO+mFgXRLS3ngQtURDB8uH64n+2PiSwGxrDriEhLYyFDSDzwA==","signatures":[{"sig":"MEUCIDWG8PWFC+nFQsNBBeT0pqCNlppDWdi9doCw9R0AGs5fAiEA4LsUv8AMGz/2Nm36m+uF/yRVNWXNGcQbt3u/4uw/lSM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61737},"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":"Safe tools, security guardrails, ActionInterceptor, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.1.5_1788342207170_0.4756065164017014","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agent-monitor/agent","version":"0.2.0","license":"MIT","_id":"@agent-monitor/agent@0.2.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"3297bd5a325384d37fc7a065e4f9a9acee84ac32","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.2.0.tgz","fileCount":62,"integrity":"sha512-CyAaIgJik8IbBCAWi+69vyQZ741z+jngVbAxVS7RZrKJiIKXeeUiXCu1U6n6ovqcx1MTgi38rFAVvajlrmKTMA==","signatures":[{"sig":"MEUCIFMe7kQ41BCm5/Qrt+A5p9duQ/OwOjkj6zIHKCLxQ0H3AiEAmt45xaaOW/0dbYVnJehdIJpRoj9YvDjtTCp64Qx24m4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":87177},"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":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.2.0_1788346189218_0.42679913561194804","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@agent-monitor/agent","version":"0.2.1","license":"MIT","_id":"@agent-monitor/agent@0.2.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"975f27d9730fe628d8dbad4d53ff3f82411eb91c","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.2.1.tgz","fileCount":62,"integrity":"sha512-En4Gvrf2dhKSvFdDj+cugL/bJPmDyxiaZP+MHJ/Xc3bdrCBrbHwiW/OY9dvNZdduFmsriKq8z48J6YPcT0E7+w==","signatures":[{"sig":"MEUCICXHGCJ1GL3g6e4zzxEf/tG9u4YM7rWvx3wjUp8Zh1hbAiEAyqKJTA4VNK+qTMtpfJDcIQ0UJw+v7dDX9oKhQlVOtS0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91744},"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":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.2.1_1788348189438_0.7318219983911947","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agent-monitor/agent","version":"0.3.0","license":"MIT","_id":"@agent-monitor/agent@0.3.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"160c2cc3909d424e71b7457fd20b21eff697b82b","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-0.3.0.tgz","fileCount":62,"integrity":"sha512-arQlFNtFkwQ2o7dgjdCMUbkXA+GP4Ifnih1EOFz8cUK1sEiWQeZuKPGj2j4u95qZ+RA9UcusoSeZfbME9ibkWA==","signatures":[{"sig":"MEYCIQDydegzNCVGyfBt0E7KJxMeFsmhd05lfUYuW/nCtaPVVwIhAInPpf644GbRV3VApv1LNK7YpPzVNO/Oc9WzdcqQlEGE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":105097},"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":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_0.3.0_1788521707142_0.32548699278158","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@agent-monitor/agent","version":"4.1.0","license":"MIT","_id":"@agent-monitor/agent@4.1.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"c605652998ce96dafb8e44df225e159e6315c004","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-4.1.0.tgz","fileCount":62,"integrity":"sha512-6O4f0FjEPLYpeReSY6TGjW29lQVWbjoJp3WGf7+u71vPUkC0Y0o+IEQ/22S0xnD+fDDVxcRqZaa4V7rBcxVXfA==","signatures":[{"sig":"MEUCIQDv+QP25Ytn/uf3iWbRqpcGE5TrdzpvaHYmK/qgftSQJQIgOanLraizkYsmUWTrP30TcSduDib9LY9KYv+09z3jmWM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117897},"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":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"diff":"^7.0.0","@agent-monitor/core":"^4.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/diff":"^7.0.0","@types/node":"^20.17.0"},"_npmOperationalInternal":{"tmp":"tmp/agent_4.1.0_1788539998777_0.7783848355529779","host":"s3://npm-registry-packages-npm-production"}},"4.1.1":{"name":"@agent-monitor/agent","version":"4.1.1","description":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent 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"},"dependencies":{"@agent-monitor/core":"^4.1.1","diff":"^7.0.0"},"devDependencies":{"@types/diff":"^7.0.0","@types/node":"^20.17.0","typescript":"^5.6.3"},"_id":"@agent-monitor/agent@4.1.1","gitHead":"6bebe161c22d341804b4da801d6bb5fcedf1b3f0","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-IL0eRHKK3JiCfcLS4LtHj+lsbQ1O6ek5jlaH2/BkfxIKSIX8RebJ0ZHZbRopiAUcO6D6+wsB17fa+dlgfaBQMg==","shasum":"cf935a6e7ab2d3e54e0eb9811b7195c8c7efadca","tarball":"https://registry.npmjs.org/@agent-monitor/agent/-/agent-4.1.1.tgz","fileCount":62,"unpackedSize":117897,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfNdhv2Lsn9FqJOlmhwdArkhW9q9hIWaw5cJOor6yNjQIgNdCLCQ864Yhg6fBrfE0cyQmCTouzdKLqUupqdsNlOss="}]},"_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/agent_4.1.1_1788596404043_0.45290652654651464"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T09:04:48.121Z","modified":"2026-09-05T08:20:04.372Z","0.1.1":"2026-09-02T09:04:48.428Z","0.1.2":"2026-09-02T09:17:35.412Z","0.1.3":"2026-09-02T09:26:41.321Z","0.1.4":"2026-09-02T09:38:08.565Z","0.1.5":"2026-09-02T09:43:27.303Z","0.2.0":"2026-09-02T10:49:49.335Z","0.2.1":"2026-09-02T11:23:09.564Z","0.3.0":"2026-09-04T11:35:07.304Z","4.1.0":"2026-09-04T16:39:58.915Z","4.1.1":"2026-09-05T08:20:04.186Z"},"license":"MIT","description":"Safe tools, security guardrails, ActionInterceptor, ApprovalManager, and DeepSeek coding agent for Agent Monitor","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"readme":"# `@agent-monitor/agent`\n\nAction interception, security guardrails, safe tool definitions, approval management, and reference DeepSeek autonomous agent runtime.\n\n---\n\n## Overview\n\n`@agent-monitor/agent` sits between the AI model and the operating system. It provides the runtime interception harness, containment guardrails, safe tools, and the DeepSeek client implementation.\n\n---\n\n## Key Modules\n\n- **`ActionInterceptor`**:\n  - Intercepts tool calls before execution.\n  - Enforces authoritative pre- and post-approval Kill Switch circuit breaker.\n  - Enforces workspace containment and symlink checks.\n  - Evaluates deterministic policies and coordinates human approval.\n  - Emits strictly sequenced audit events.\n- **`ApprovalManager`**:\n  - Manages pending approval requests.\n  - Handles asynchronous resolution and expiration timeouts.\n- **`tools/`**:\n  - Safe tools: `readFileTool`, `writeFileTool`, `listFilesTool`, `runCommandTool`.\n  - Guardrails: `resolveSafeWorkspacePath` (iterative URL decoding, POSIX and Windows backslash normalization, canonical symlink validation).\n  - Child Process Isolation: `runCommandTool` sanitizes `process.env` to prevent accidental credential leakage to child processes.\n- **`deepseek/`**:\n  - `DeepSeekClient`: Lightweight HTTP client for DeepSeek Chat API.\n  - `DeepSeekCodingAgent`: Reference autonomous coding agent loop.\n\n---\n\n## Installation\n\n```bash\nnpm install @agent-monitor/agent @agent-monitor/core\n```\n\n---\n\n## Example Usage\n\n```typescript\nimport {\n  ActionInterceptor,\n  readFileTool,\n  writeFileTool,\n  runCommandTool,\n} from \"@agent-monitor/agent\";\nimport { PolicyEngine } from \"@agent-monitor/core\";\n\nconst interceptor = new ActionInterceptor({\n  sink: {\n    emit: async (event) => console.log(\"Event:\", event.type),\n  },\n  policyEngine: new PolicyEngine(),\n});\n\ninterceptor.registerTool(readFileTool);\ninterceptor.registerTool(writeFileTool);\ninterceptor.registerTool(runCommandTool);\n\nconst output = await interceptor.invoke(\n  \"read_file\",\n  { path: \"package.json\" },\n  {\n    sessionId: \"ses_123\",\n    agentId: \"my-agent\",\n    workspaceRoot: process.cwd(),\n  },\n);\n```\n","readmeFilename":"README.md"}