{"_id":"agent-trace-kit","name":"agent-trace-kit","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"agent-trace-kit","version":"0.1.0","description":"Deterministic capture, replay, and diffing for agent traces across tool and protocol boundaries.","type":"module","exports":{".":"./src/index.js"},"scripts":{"test":"node --test"},"keywords":["agent","tracing","debugging","mcp","a2a","ag-ui"],"license":"MIT","engines":{"node":">=18"},"_id":"agent-trace-kit@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-fsX8Z5B8m6qFV3srnEZRkEFwO9mDt1XhI/8H6yN6i4KqNlfskK2Lvm4ul00d2G9KYn5CuKumoGV2PCmVtoVyMQ==","shasum":"610ca1788178c093e28fab9698f8252560934a2b","tarball":"https://registry.npmjs.org/agent-trace-kit/-/agent-trace-kit-0.1.0.tgz","fileCount":4,"unpackedSize":6718,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFaCQVllcNswd5Af7GpmyWfJJ3W9zJoZpoXFNh5UlhdCAiEA3cbHr5Q40/KYParM4G4Z5I/2bLNx6PQoap7pSM16iF8="}]},"_npmUser":{"name":"ryanmccollum1","email":"eldiablo27033@gmail.com"},"directories":{},"maintainers":[{"name":"ryanmccollum1","email":"eldiablo27033@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-trace-kit_0.1.0_1775066554176_0.1981537835920344"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T18:02:34.175Z","0.1.0":"2026-04-01T18:02:34.310Z","modified":"2026-04-01T18:02:34.800Z"},"maintainers":[{"name":"ryanmccollum1","email":"eldiablo27033@gmail.com"}],"description":"Deterministic capture, replay, and diffing for agent traces across tool and protocol boundaries.","keywords":["agent","tracing","debugging","mcp","a2a","ag-ui"],"license":"MIT","readme":"# agent-trace-kit\n\n`agent-trace-kit` records heterogeneous agent events into one deterministic timeline, then helps replay and diff runs.\n\n## Features\n\n- Normalizes MCP, A2A, AG-UI, tool, and app events\n- Deterministically sorts concurrent events using timestamp, sequence, and source identity\n- Groups events by span and reconstructs parent-child trees\n- Diffs two runs and points to the first divergence\n\n## Usage\n\n```js\nimport { TraceRecorder, diffTraces } from \"agent-trace-kit\";\n\nconst recorder = new TraceRecorder();\nrecorder.add({\n  protocol: \"mcp\",\n  source: \"server\",\n  kind: \"tool_call\",\n  timestamp: \"2026-04-01T10:00:00.000Z\",\n  runId: \"run-1\",\n  spanId: \"span-1\",\n  payload: { tool: \"lookup\", args: { symbol: \"BTC\" } }\n});\n\nconst trace = recorder.finalize();\nconst diff = diffTraces(trace, trace);\nconsole.log(diff.status);\n```\n","readmeFilename":"README.md","_rev":"1-8fbfaa199a83101b63117bd69ae74982"}