{"_id":"@adaptivemcp/telemetry","_rev":"6-ad607eeceba08fdaece3c09c7734103d","name":"@adaptivemcp/telemetry","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@adaptivemcp/telemetry","version":"0.1.0","_id":"@adaptivemcp/telemetry@0.1.0","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"dd0b220fda329da807248f0e4a33ed03454ad1df","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.0.tgz","fileCount":21,"integrity":"sha512-Uv5Rem2Y2X29Vp/H8J+BIfafUxx5ZpjEP5tvuNxM6BfuQdtnN4cR6pJtIayL2hgXK5gNHDFu6JFX0hAPIW+5aw==","signatures":[{"sig":"MEUCID//HkyKy2YDmSbP3nc0BP1pF9IcSqMd9p8B738ixFUmAiEAguuqUKzGgSBaUnwHJet6M7FV98OSxLn5r8Xnd6wAoFA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15003},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"b9dccae7f134e038a09c1b9e11db8afbfa674ac8","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Tool execution events and observability for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/telemetry_0.1.0_1784422730348_0.0772845910290012","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@adaptivemcp/telemetry","version":"0.1.1","_id":"@adaptivemcp/telemetry@0.1.1","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"7c006315f9196e4ddad5a3049e8bac7574211717","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.1.tgz","fileCount":22,"integrity":"sha512-Pl5kUWIU3bTWwp8sWULPHU8xB2MJ3X/pg8XPPni9c7DgeBtSwb9dDaSTqc4xz/AGofydxNhqG/dsxtrjLNj4Xw==","signatures":[{"sig":"MEQCIGnJan/pCuvEEoOrdXd9L9y9nQVO0AhJsdRWQ+etr/+IAiBlj40B6y5GQfXQgxdfaj8G7pzyi9m1UN20FMnrLH27pA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16578},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ab944f02101e63d3ee95f2f22e737b56193be024","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Tool execution events and observability for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/telemetry_0.1.1_1784423841286_0.0646542555404983","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@adaptivemcp/telemetry","version":"0.1.2","license":"MIT","_id":"@adaptivemcp/telemetry@0.1.2","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"b1223cc5efeddd9ebc9ca26cacee047e3a50ac64","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.2.tgz","fileCount":22,"integrity":"sha512-fxWovZ3ZUemF+Rhugt5LWzJwqEcBETgi2fxy6H/AxC9CwfXrcw8WaaqYdX6GKnme1HHEuGx1ADu9/DeGh3ktIg==","signatures":[{"sig":"MEYCIQC5td6p0PNzRr0LWjWhVUruiPw16gryCqPTXkeED2+4KgIhAMF/AZ2g6I69qyBX6a8x7WtyGWXmZYaGGJpucm/ZrlU/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16595},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"1e65d4d6c3ddd569340aea01b27469c545474896","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Tool execution events and observability for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/telemetry_0.1.2_1784432910210_0.8587430695568274","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@adaptivemcp/telemetry","version":"0.1.3","license":"MIT","_id":"@adaptivemcp/telemetry@0.1.3","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"2af3e8d0364373638af832bf5e3f3dd385647669","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.3.tgz","fileCount":22,"integrity":"sha512-KvFV4zyJIsfOlMpc+yXtC3TqF0AXXqGzKlb3tOX3hGSg3Ahn1wI0K2xgvkq5rHu9ADYOOxRy3EKhMFaWQPHZbA==","signatures":[{"sig":"MEYCIQDwBgT+r6v41iOlSKFOXFivTd3guQABrB+8wLVBlLfEAQIhAK6vqEDWwktJlr+6Y/98O6AjggrQHf+DewUk3lTTlm+G","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16599},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"507cfadb2e49ddec1f96ce96023d3bd8f01c17a1","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Tool execution events and observability for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/telemetry_0.1.3_1784442190516_0.46873951893628796","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@adaptivemcp/telemetry","version":"0.1.4","license":"MIT","_id":"@adaptivemcp/telemetry@0.1.4","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"dist":{"shasum":"2b1fbf9a41f5e37692da9067e39a120092b0744d","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.4.tgz","fileCount":22,"integrity":"sha512-xUG0PC2t11CaHRvI7DId+CTlRHd60stXA/zc9M3pmPC0SJPeS2qxLNPCIrEWPxTBTISMSaXFyU2UJNefD6EeKQ==","signatures":[{"sig":"MEYCIQD9v2WODw3e24DMXKym5m+IMtz0Oty+HrUalAVV/1jyGwIhAMdRzlZqDdXA8N3IR9XS1yl1pQorMeEYN25cr4NVJudC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16527},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"72b57ab2c6e3a08fc0a5446bb57e8bd75dd51477","scripts":{"test":"vitest run --config ../../vitest.config.ts","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"_npmVersion":"12.0.1","description":"Tool execution events and observability for Adaptive MCP.","directories":{},"_nodeVersion":"26.5.0","dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.0","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/telemetry_0.1.4_1784448354502_0.8459816679351257","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@adaptivemcp/telemetry","version":"0.1.5","description":"Tool execution events and observability for Adaptive MCP.","license":"MIT","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run --config ../../vitest.config.ts"},"dependencies":{"@adaptivemcp/spec":"workspace:*","@adaptivemcp/memory":"workspace:*"},"devDependencies":{"typescript":"^5.6.0","vitest":"^2.1.0"},"gitHead":"00b51e676ad298a079f5de73e5cbea411fae39f2","_id":"@adaptivemcp/telemetry@0.1.5","_nodeVersion":"26.5.0","_npmVersion":"12.0.1","dist":{"integrity":"sha512-2M1M5fB4F+wc31q8IPyQM1n22kezltaz5uqIDTGYoK5uypts65pRYMHYNczppUlZcZ7B9qEYq6LPf5YNw5vJXQ==","shasum":"1affb603c90c5f01a318a36a4701f59aaefff452","tarball":"https://registry.npmjs.org/@adaptivemcp/telemetry/-/telemetry-0.1.5.tgz","fileCount":22,"unpackedSize":16527,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQClPVT3XPmCy4F7s+5P+4AfJo5gZIURqIr5RhRwMjCqxAIhAM/b9XUdv663mIQmbpbOj2oDVzPCyyjC1tEPs7isFL5u"}]},"_npmUser":{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"},"directories":{},"maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/telemetry_0.1.5_1784457335807_0.25524155246610203"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-19T00:58:50.192Z","modified":"2026-07-19T10:35:36.047Z","0.1.0":"2026-07-19T00:58:50.520Z","0.1.1":"2026-07-19T01:17:21.441Z","0.1.2":"2026-07-19T03:48:30.346Z","0.1.3":"2026-07-19T06:23:10.677Z","0.1.4":"2026-07-19T08:05:54.630Z","0.1.5":"2026-07-19T10:35:35.922Z"},"license":"MIT","description":"Tool execution events and observability for Adaptive MCP.","maintainers":[{"name":"kemalelmizan","email":"kemalelmizan@gmail.com"}],"readme":"# @adaptivemcp/telemetry\n\nTool execution events and observability for Adaptive MCP.\n\n`telemetry` is the **observe** step of the adaptation loop. It captures\n`ToolExecutionEvent`s, the atomic observations of tool executions, and folds\nthem into the store (`@adaptivemcp/memory`).\n\n## Install\n\n```bash\nnpm i @adaptivemcp/telemetry\n```\n\nRequires **Node 22+** (Node 26 recommended).\n\n## Usage\n\n```ts\nimport { MemoryStore } from \"@adaptivemcp/memory\";\nimport { TelemetryRecorder, MemoryBackedTelemetryStore } from \"@adaptivemcp/telemetry\";\n\nconst store = new MemoryStore({ path: \":memory:\" });\nconst recorder = new TelemetryRecorder({\n  store: new MemoryBackedTelemetryStore(store),\n});\n\nconst ctx = { toolName: \"deploy_service\", serverName: \"ci\" };\n\nrecorder.start(ctx);\n// ... tool runs ...\nrecorder.complete(ctx, { durationMs: 1200, output: { ok: true }, cost: { amount: 0.0021 } });\n// or, on failure:\n// recorder.fail(ctx, { message: \"rollout timed out\" });\n```\n\n## API\n\n| Export | Purpose |\n| --- | --- |\n| `TelemetryRecorder` | Ergonomic surface for emitting observations. `record(event)`, `start(ctx, extra?)`, `complete(ctx, {durationMs?, output?, cost?}, extra?)`, `fail(ctx, {message, code?}, extra?)`. |\n| `TelemetryStore` | Store interface for events. |\n| `InMemoryTelemetryStore` | Default volatile store. |\n| `MemoryBackedTelemetryStore` | Folds events directly into a `MemoryStore` (the store) via `recordExecution`. |\n| `queries` | Read-side helpers over stored events. |\n\n## License\n\nReleased under the [MIT License](../../LICENSE). Copyright (c) 2026 Kemal Elmizan.\n","readmeFilename":"README.md"}