{"_id":"@aiagentwatch/sdk","_rev":"7-ee44a4471efc41c7db9e2977bc0bcdf2","name":"@aiagentwatch/sdk","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.1":{"name":"@aiagentwatch/sdk","version":"1.0.1","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.1","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"00accf38856b23998a8697f3790f496e2dc9c04a","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.1.tgz","fileCount":16,"integrity":"sha512-9Zzr1+InJrH1n98gjCui0/yvcTEMo8XR3WVqoIFPPU1oXYo7v0tgKUPprERuoQXTUskwHtkfTU7dKODCbdmmvw==","signatures":[{"sig":"MEUCIBdQGLqQuhmEQxULGaY/1CK8+OQ3e6WoZVahrLw3krIVAiEAnTXO8APwBs8/K01aXRCG8IJji8OjpbBwu8LTR1wLfII=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17703},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"7f15aef7204cf48760110f62b18ab3d750548d28","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.1_1777233837569_0.8726373706746835","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aiagentwatch/sdk","version":"1.0.3","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.3","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"7803340f654c83aa12a80c41fcea9a538d1ab852","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.3.tgz","fileCount":17,"integrity":"sha512-oHVfbEzi8FZe1OmuSBUUCkWOBnpzcgPvO9fekEfnPleRpnGoFdXr5c1UAV9m02gdZqYavSwspg31+X2H8UyPog==","signatures":[{"sig":"MEQCIFchiFBL0dRpCJBU3Y0ZLC0C7ZlhiYpr24cp9djfC2IEAiB4hIuNVnbPtlKcQvXCP3z4vc2OOzubEPyHeu6WrZSLfw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21359},"main":"dist/index.js","_from":"file:aiagentwatch-sdk-1.0.3.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/e8259777011af92e2d09bc2acc5d0b8b/aiagentwatch-sdk-1.0.3.tgz","_integrity":"sha512-oHVfbEzi8FZe1OmuSBUUCkWOBnpzcgPvO9fekEfnPleRpnGoFdXr5c1UAV9m02gdZqYavSwspg31+X2H8UyPog==","repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.3_1777294948447_0.8691285728272016","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@aiagentwatch/sdk","version":"1.0.4","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.4","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"705bdde8502e0c053b4bd312df54c9f29d869936","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.4.tgz","fileCount":17,"integrity":"sha512-pc4veyGg8CUYYubs+hAn0C81DAZUXP8OqPmSFu3e1g7dgnhKwjBMGTuDldXMjQ38KyjPYGFJ2SgmcNFg0beHhg==","signatures":[{"sig":"MEUCIDtu8Ycz2PSXbPMaI+zHiyjQOcy/WowSNJzFZZ0AKqdIAiEA+tGfUji0EF8Ob2/OGZwtEn+Pbf13CpZ2WNPN648yiK4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21769},"main":"dist/index.js","_from":"file:aiagentwatch-sdk-1.0.4.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/6e7ec25f8d5a0cbb75dd7425cef35489/aiagentwatch-sdk-1.0.4.tgz","_integrity":"sha512-pc4veyGg8CUYYubs+hAn0C81DAZUXP8OqPmSFu3e1g7dgnhKwjBMGTuDldXMjQ38KyjPYGFJ2SgmcNFg0beHhg==","repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.4_1777295154743_0.8276374263457293","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@aiagentwatch/sdk","version":"1.0.5","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.5","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"258133ce06e949b15a8abd6b0eb1ca5bdc523401","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.5.tgz","fileCount":17,"integrity":"sha512-WXLS3Us0M9Ok+vLhyYJ6y08EkplrLSlvacoR4jB+j2LVllepYbdS8GsJkpdzOVDZDv9m0oIkzxalhYV9hCfZbA==","signatures":[{"sig":"MEUCICfTZTjUWITA6SJE3Y8EWg2WewYz5Aeqz0qdNgXUAuUNAiEA+jo6JM9ni3kSTzgsBM29Atpefnjbxuaes935WKuNA9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21946},"main":"dist/index.js","_from":"file:aiagentwatch-sdk-1.0.5.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/a111b3f189bf1aac973edfca8645fc46/aiagentwatch-sdk-1.0.5.tgz","_integrity":"sha512-WXLS3Us0M9Ok+vLhyYJ6y08EkplrLSlvacoR4jB+j2LVllepYbdS8GsJkpdzOVDZDv9m0oIkzxalhYV9hCfZbA==","repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.5_1777296280669_0.9175266266658815","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@aiagentwatch/sdk","version":"1.0.6","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.6","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"72dc23e938332f437469f2d68bcf86719323ea89","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.6.tgz","fileCount":17,"integrity":"sha512-FP204zZY6Fm7l+k6G9L24K/fzAMtgy1VQGK41rHdm/rdJjZ/vc0JBZyexfya0QMgwfWdatuF7ffui7cNh6e1+Q==","signatures":[{"sig":"MEUCIFVXaSpVqLHUENNFj1QnDpWXfVfF71R5mxVxyLBsEG5aAiEAubo8QCfTu+v+asgorSAhSojf62kwktxw9UG1JHnSHqk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22483},"main":"dist/index.js","_from":"file:aiagentwatch-sdk-1.0.6.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/2571da71a9feeeac0053302625edf2e0/aiagentwatch-sdk-1.0.6.tgz","_integrity":"sha512-FP204zZY6Fm7l+k6G9L24K/fzAMtgy1VQGK41rHdm/rdJjZ/vc0JBZyexfya0QMgwfWdatuF7ffui7cNh6e1+Q==","repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.6_1777297435645_0.8415827333130632","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@aiagentwatch/sdk","version":"1.0.7","keywords":["agent","llm","monitoring","debug"],"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","_id":"@aiagentwatch/sdk@1.0.7","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"dist":{"shasum":"b6b1b9770d9adf9acde53c0d09817d4e2ea814af","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.7.tgz","fileCount":17,"integrity":"sha512-pQvwVcoP8kazE9gxsiHl4G0IqjwD40TO1ayC1D6f5J7NKXX603iENu+Nz0f1fUEQK9PKs0Fp7i6plKh25UkHJA==","signatures":[{"sig":"MEYCIQCef4+FgfbCubEC/soyIufdRfidSnifWl3F2l4J9joEugIhAN8D2l/l5g0cirdQNOWU2kLOXsqPYwK98K6b575JJWgb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22817},"main":"dist/index.js","_from":"file:aiagentwatch-sdk-1.0.7.tgz","types":"dist/index.d.ts","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsc"},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/1c44d87a92551354b6d81a6ceadfee7e/aiagentwatch-sdk-1.0.7.tgz","_integrity":"sha512-pQvwVcoP8kazE9gxsiHl4G0IqjwD40TO1ayC1D6f5J7NKXX603iENu+Nz0f1fUEQK9PKs0Fp7i6plKh25UkHJA==","repository":{"url":"git+https://github.com/shakibkhatri/AgentWatch.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.6.0","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"ws":"^8.16.0","chokidar":"^3.6.0"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.4.0","@types/ws":"^8.5.10","typescript":"^5.4.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.0.7_1777297819758_0.18725785847073206","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@aiagentwatch/sdk","version":"1.0.8","description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/shakibkhatri/AgentWatch.git","directory":"packages/sdk"},"keywords":["agent","llm","monitoring","debug"],"main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"chokidar":"^3.6.0","ws":"^8.16.0"},"devDependencies":{"typescript":"^5.4.0","vitest":"^1.4.0","@types/node":"^20.0.0","@types/ws":"^8.5.10"},"scripts":{"build":"tsc","test":"vitest run","dev":"tsc -w"},"_id":"@aiagentwatch/sdk@1.0.8","bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"homepage":"https://github.com/shakibkhatri/AgentWatch#readme","_integrity":"sha512-df7XulC6Yu6R9E+iFY76rCVEPIFaUmYxVGqC3HKWDDmsWbRloia3rODoNogi5UYuAmDXsKXgY01XrHMuQERaEg==","_resolved":"/private/var/folders/_m/m9vw7zqn5bs6yg1rkbpbrrt80000gp/T/8f03ac4c99002c6691a8b1cd9e9ccb87/aiagentwatch-sdk-1.0.8.tgz","_from":"file:aiagentwatch-sdk-1.0.8.tgz","_nodeVersion":"24.10.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-df7XulC6Yu6R9E+iFY76rCVEPIFaUmYxVGqC3HKWDDmsWbRloia3rODoNogi5UYuAmDXsKXgY01XrHMuQERaEg==","shasum":"cf32bd8601f98774542ca59376000405f0a3742f","tarball":"https://registry.npmjs.org/@aiagentwatch/sdk/-/sdk-1.0.8.tgz","fileCount":17,"unpackedSize":24085,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHRsv/P/UhrciYHoAOgv7EZv71HoBi4EYfNps0dBry/bAiEAlU/PrThFHf9uHEuscXofVCrkA6nZoRNfNGCSdJKyMos="}]},"_npmUser":{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"},"directories":{},"maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.8_1777298774965_0.0660275430574726"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T20:03:57.464Z","modified":"2026-04-27T14:06:15.286Z","1.0.1":"2026-04-26T20:03:57.708Z","1.0.3":"2026-04-27T13:02:28.618Z","1.0.4":"2026-04-27T13:05:54.864Z","1.0.5":"2026-04-27T13:24:40.819Z","1.0.6":"2026-04-27T13:43:55.793Z","1.0.7":"2026-04-27T13:50:19.916Z","1.0.8":"2026-04-27T14:06:15.138Z"},"bugs":{"url":"https://github.com/shakibkhatri/AgentWatch/issues"},"author":{"name":"Shakib Khatri","email":"shakibkhatri@gmail.com"},"license":"MIT","homepage":"https://github.com/shakibkhatri/AgentWatch#readme","keywords":["agent","llm","monitoring","debug"],"repository":{"type":"git","url":"git+https://github.com/shakibkhatri/AgentWatch.git","directory":"packages/sdk"},"description":"The Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.","maintainers":[{"name":"shakibkhatri","email":"shakibkhatri@gmail.com"}],"readme":"# @aiagentwatch/sdk\n\nThe Node.js SDK for AgentWatch. Stream exactly what your agent is doing to the AgentWatch dashboard in real-time.\n\n## Installation\n\n```bash\nnpm install @aiagentwatch/sdk\n```\n\n## Quickstart\n\n```typescript\nimport { AgentWatcher } from '@aiagentwatch/sdk';\n\n// Initialize the watcher\nconst watcher = new AgentWatcher({\n  apiKey: 'your-api-key', // Found on the dashboard\n  agentId: 'your-agent-id', // Found on the dashboard\n  relayUrl: 'https://your-project.cloudfunctions.net'\n});\n\n// Start monitoring file changes and stdout\nawait watcher.start();\n\n// ... Your agent's logic ...\n\n// Report token usage when calling LLMs\nwatcher.reportTokenUsage(1200, 400, 'claude-sonnet-4-6');\n\n// Pause execution and ask for human approval before dangerous actions\nconst decision = await watcher.checkpoint('Delete all files in /tmp/build');\nif (decision === 'rejected') {\n  console.log('Action rejected by human.');\n  process.exit(0);\n}\n\n// Ensure events are flushed\nawait watcher.stop();\n```\n","readmeFilename":"README.md"}