{"_id":"@agent-monitor/server","_rev":"11-ab5d093d9e3fc5cf406c54427f1a74ac","name":"@agent-monitor/server","dist-tags":{"latest":"4.1.1"},"versions":{"0.1.0":{"name":"@agent-monitor/server","version":"0.1.0","license":"MIT","_id":"@agent-monitor/server@0.1.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"4290b977195aca9ef53748046518d046d1059ac2","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.0.tgz","fileCount":21,"integrity":"sha512-fabbReutV+HluMIwlPLUBFcW95IuwIeTven5OClzm2m7/wXBV4JmaHfJIMLFHdYUZQ9f3DRrkRy9U3x7dFYBCw==","signatures":[{"sig":"MEUCIQCgGB8utt++6cInfXaLa+9+UeWq3+j4C5q1ckhCSNMqVwIgPwgGHDV9sK3CE2Qu1YBRTtNHcH0nMfDoCu1U35Ngg0c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35622},"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":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.0_1788339479567_0.17453989885355758","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-monitor/server","version":"0.1.1","license":"MIT","_id":"@agent-monitor/server@0.1.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"f3ef4d9258d6ccde5fb056a19131ff45b4e1a7ed","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.1.tgz","fileCount":21,"integrity":"sha512-FMIARDgDzjbFHUrQRVHV5y4zXiH7GCppBtTiPDo3IGRuTAo1UW8N+Q7QAxE1/J4vV5rhLM843JAvB8HwuREpvQ==","signatures":[{"sig":"MEYCIQC1l2Ri3T790MlDPdtWAE0FFjgNCE6YseAxSeKXM+9y2wIhAIKRMzfmKljfSOVHIW138xy3XUhzhrKUGr9TA7ZwznL8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35622},"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":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.1_1788339878771_0.26704961606167843","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-monitor/server","version":"0.1.2","license":"MIT","_id":"@agent-monitor/server@0.1.2","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"cb11c99f7a2ba6d9e4edf46b374c2ecfff7103ca","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.2.tgz","fileCount":45,"integrity":"sha512-MmvUP5lSos4PtSNKw4MC8PUOJBGI1k2/0uVJotX/2C/qCPbfYaqoPBsP/8ff8KQ+GE8dDpjDLoLKlsR94/ZMzQ==","signatures":[{"sig":"MEUCIQCxmklhz5wsU6hOc7Y3ilYg8EBVdb+75tzMSXcN/PtEywIgdgwnnI7dlwm+IlI6s/HZvqf3k6oW4A/LDqiMZYZp58s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":917461},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.2_1788340654036_0.4769054993439381","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agent-monitor/server","version":"0.1.3","license":"MIT","_id":"@agent-monitor/server@0.1.3","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"5f6e719f3a43eef24efba6dcb97ba095bde818b0","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.3.tgz","fileCount":47,"integrity":"sha512-6N3vqi9FDLFfiCSdYFZ0c/UrVzxaw39pQLUtOROFREFyJ8ToywlMiYgOciurlRUbBrlV4gLnjkChYjgtGPPxqA==","signatures":[{"sig":"MEQCIBYE4YocNUqMWWKoFgivzTiYi77DEoIwc8kTLP9zKJVGAiA6CduZR2ek4wkHr2CSHNm3Uzz2oi2ab2dDFhpd8MsTwA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":918047},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.3_1788341198374_0.2901052360925329","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@agent-monitor/server","version":"0.1.4","license":"MIT","_id":"@agent-monitor/server@0.1.4","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"87ee446b322f307a276f412c4414ae08cea50bd9","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.4.tgz","fileCount":51,"integrity":"sha512-DHmJIMqQDZKXcgceDUVI0j3jV2kz7TEGbqB1FAW9p8Q+i8dqjHlrB1aXmAicWdKUf6spAsmhzVvBM5bDfrhhHA==","signatures":[{"sig":"MEUCIQDM7OfKdgEqvT4CFA1MBBmfvvkHhTcr1kU4lHxwn4QE4wIgKI+ZSe9uMKRiILgU7RgAlPlwoyt8eDPMDgzeSrwoRSU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":924085},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.4_1788341886654_0.12091751809461226","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@agent-monitor/server","version":"0.1.5","license":"MIT","_id":"@agent-monitor/server@0.1.5","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"57a4857284ead12c55e5b3051deb4f71f870c165","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.1.5.tgz","fileCount":56,"integrity":"sha512-HpLCy8Lnpgu99/Yadj783cuH3gCPSwHovi/PUkHcvq4LZ3kBqE1qWvUPQVvcBYJgEptaaqSD8r5lTs/JLfooDw==","signatures":[{"sig":"MEUCIQCb4HMZSLhhBOY9mD22XoUcZ7wjeQQHM9xpHRWWRs5FnwIgdCMB1n+eq0lVOw4CT/RE0h7C6H4Y/cSwFw/zcH5GEM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":965232},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.1.5_1788342205607_0.9422768380508413","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@agent-monitor/server","version":"0.2.0","license":"MIT","_id":"@agent-monitor/server@0.2.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"370835ea55ec1ae168403202110137785f3d54d2","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.2.0.tgz","fileCount":62,"integrity":"sha512-h5gfrVx9zHrDe7STx+W6iOslHbdEkKsdRNiglDoMd7rd0fP4NDEmQF2P23R59h0wLkAVp7LgX0qPNl2HYzJ+dw==","signatures":[{"sig":"MEUCIQCknExHvaelB/WTHDMtwgcdpKsCi81zqqGoClIuk7tJ/AIgRpezhbJpIx8FrWtJUyn6FDnYu9Ukj8Zbrv9lr6rDqaw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1069103},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.2.0_1788346187538_0.6637615939090244","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@agent-monitor/server","version":"0.2.1","license":"MIT","_id":"@agent-monitor/server@0.2.1","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"4bdf0d6325357a5c66c50193d7901fec25d17d0f","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.2.1.tgz","fileCount":62,"integrity":"sha512-5OCWhj8DZT9vuFNqw/69PTu/2SeYx9iu+bnsBpmyadTAzYscf4Hl73/TFcALXW6EhWlL6I9/OD+BaLK6HJX3lw==","signatures":[{"sig":"MEYCIQDhv6wFPDYem9O1q/4agPxC/Ck1iH8tki411sxVB1d6VwIhAPT2pOjkfCtYO+s7Pwm9ayBT8xMPUlvWv4pC1lX7VsSY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1069162},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.2.1_1788348187312_0.0034290075656047136","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@agent-monitor/server","version":"0.3.0","license":"MIT","_id":"@agent-monitor/server@0.3.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"1a0bb334c03df3a8e524432d1ed382b509536afd","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-0.3.0.tgz","fileCount":62,"integrity":"sha512-1oEKBEjDld+q3q7dPpSqpH3SB7vNvoOgSY//0xvjA2Axu2kzJRon0bmM9SHgEHu0djyfeT71BhPIuJTuJBt1hQ==","signatures":[{"sig":"MEUCIQCyPnYRso1dKEGEK5tbu1/e4FQTtX+0l/2Dgxag8FzDFgIgWDfxM+mRVS/LV38ho2PBGuKze586CuXcyjTuIQs2l00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1099146},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_0.3.0_1788521705741_0.8706800795319805","host":"s3://npm-registry-packages-npm-production"}},"4.1.0":{"name":"@agent-monitor/server","version":"4.1.0","license":"MIT","_id":"@agent-monitor/server@4.1.0","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"dist":{"shasum":"42d3585f55ba17789b274070fc112ea73c732e80","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-4.1.0.tgz","fileCount":78,"integrity":"sha512-8aEsFBad1v9md/Ob7AsjTyof6GlGVl5UaP9kWXdPg9Aa9ja4mY0gm+V1+RyhfVL0SFZ6GOGqsqp9799iKZE58A==","signatures":[{"sig":"MEUCIH03uycWAFgWzV4csuHDjZapCisyRh8IekuWi2MvcFVkAiEA5NTD9iawQI+wbbWClSk80QMTZuUj4w+zJdZ74TUj0KY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1226663},"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 public"},"_npmUser":{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"},"_npmVersion":"10.9.0","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server for Agent Monitor","directories":{},"_nodeVersion":"22.11.0","dependencies":{"better-sqlite3":"^11.8.1","@agent-monitor/core":"^4.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^20.17.0","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/server_4.1.0_1788539997248_0.9079166634731108","host":"s3://npm-registry-packages-npm-production"}},"4.1.1":{"name":"@agent-monitor/server","version":"4.1.1","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server 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 public"},"dependencies":{"@agent-monitor/core":"^4.1.1","better-sqlite3":"^11.8.1"},"devDependencies":{"@types/better-sqlite3":"^7.6.12","@types/node":"^20.17.0","typescript":"^5.6.3"},"_id":"@agent-monitor/server@4.1.1","gitHead":"6bebe161c22d341804b4da801d6bb5fcedf1b3f0","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-reVVvpBdA6yW/5YB6AWqeawSQpLgtTHblBBCm3zGprvnq3dmMfXxbRHzxEbi6Rb/MJAxdPaltI9tEF67yZmG/A==","shasum":"3674e5e5354a39091d6742a70d4b47a822cabc4a","tarball":"https://registry.npmjs.org/@agent-monitor/server/-/server-4.1.1.tgz","fileCount":88,"unpackedSize":1382100,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAn1eQL9CMYdpZP4Ou7E0ro600DYxeoJh3q/jCKT3Sq6AiBIvhgBVbd1Nhkv5nW0F3/tRm26+BHo0TpcawR7D5QdyQ=="}]},"_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/server_4.1.1_1788596402611_0.5626743984339755"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T08:57:59.447Z","modified":"2026-09-05T08:20:02.925Z","0.1.0":"2026-09-02T08:57:59.692Z","0.1.1":"2026-09-02T09:04:38.891Z","0.1.2":"2026-09-02T09:17:34.172Z","0.1.3":"2026-09-02T09:26:38.510Z","0.1.4":"2026-09-02T09:38:06.811Z","0.1.5":"2026-09-02T09:43:25.768Z","0.2.0":"2026-09-02T10:49:47.675Z","0.2.1":"2026-09-02T11:23:07.466Z","0.3.0":"2026-09-04T11:35:05.876Z","4.1.0":"2026-09-04T16:39:57.445Z","4.1.1":"2026-09-05T08:20:02.754Z"},"license":"MIT","description":"SQLite WAL persistence, atomic approvals, and real-time SSE streaming server for Agent Monitor","maintainers":[{"name":"ssarthak.s","email":"ssarthakxd@gmail.com"}],"readme":"# `@agent-monitor/server`\n\nLocal SQLite WAL persistence, atomic approval resolution, in-memory EventBus, SSE streaming, and REST control plane server.\n\n---\n\n## Overview\n\n`@agent-monitor/server` handles all backend data persistence, real-time pub/sub distribution, and API routing. It embeds the Next.js static web control plane.\n\n---\n\n## Key Modules\n\n- **`db/database.ts`**: Initializes Better-SQLite3 with `journal_mode = WAL`, foreign keys, and indexes.\n- **`db/migrations/`**: Transactional migration runner executing schema migrations 001 to 007 (`007_v41_production_hardening`) on startup.\n- **`db/repository.ts`**: `SessionRepository` providing atomic CRUD for sessions, chained events, approvals, authoritative kill switch, sticky MCP quarantine, policy versions, incidents, and tool fingerprints.\n- **`bus.ts`**: In-memory `EventBus` for session-scoped pub/sub.\n- **`app.ts`**: `MonitorServer` handling HTTP REST routes, SSE live stream (`/events/stream`), and static DevTools file serving with strict local-origin CORS validation.\n\n---\n\n## API Routes\n\n| Route | Method | Description |\n| :--- | :--- | :--- |\n| `/health` | `GET` | Server health check. |\n| `/policy` | `GET` | Active policies and defaults. |\n| `/policy/evaluate` | `POST` | Dry-run policy evaluation. |\n| `/policy/versions` | `GET` | List all immutable policy versions and active version. |\n| `/policy/versions/active` | `GET` | Get currently active policy version. |\n| `/policy/versions/diff` | `GET` | Compute diff between two policy versions. |\n| `/policy/history` | `GET` | View policy mutation and activation history. |\n| `/policy/versions/:id/activate` | `POST` | Activate a specific policy version. |\n| `/policy/versions/:id/rollback` | `POST` | Roll back active policy to historical version. |\n| `/policy/rules/:id/toggle` | `POST` | Toggle a policy rule enabled/disabled. |\n| `/incidents` | `GET` / `POST` | List security incidents with filters or create an incident. |\n| `/incidents/:id` | `GET` / `PATCH` | Get incident details or update status/notes. |\n| `/incidents/:id/events` | `GET` | Retrieve correlated events for an incident. |\n| `/mcp/sources` | `GET` | List registered downstream MCP sources and health. |\n| `/mcp/sources/:id` | `GET` | Show MCP source runtime stats and quarantine details. |\n| `/mcp/sources/:id/quarantine` | `POST` | Quarantine an untrusted MCP source. |\n| `/mcp/sources/:id/trust` | `POST` | Lift quarantine on an MCP source. |\n| `/audit/verify` | `GET` | Cryptographically verify SHA-256 event hash chain. |\n| `/sessions/:id/risk-breakdown` | `GET` | Detailed multi-vector session risk explainability breakdown. |\n| `/sessions` | `GET` / `POST` | List or create sessions. |\n| `/sessions/:id` | `GET` | Get session details. |\n| `/sessions/:id/events` | `GET` / `POST` | Historical events or insert new event. |\n| `/sessions/:id/approvals` | `GET` | List approvals for session. |\n| `/approvals/:id/approve` | `POST` | Atomically approve an action. |\n| `/approvals/:id/deny` | `POST` | Atomically deny an action. |\n| `/sessions/:id/kill` | `POST` | Authoritatively activate local Kill Switch. |\n| `/sessions/:id/resume` | `POST` | Authoritatively resume killed session. |\n| `/sessions/:id/control` | `GET` | Inspect kill switch status and session control state. |\n| `/sessions/:id/tools` | `GET` | Inspect tool fingerprints & rug-pull mutation state. |\n| `/sessions/:id/behavioral-matches` | `GET` | Retrieve detected behavioral exfiltration flows. |\n| `/events/stream` | `GET` | Real-time Server-Sent Events (SSE) stream. |\n\n\n---\n\n## Installation\n\n```bash\nnpm install @agent-monitor/server @agent-monitor/core\n```\n","readmeFilename":"README.md"}