{"_id":"@dvvezig/bridge-a2a","name":"@dvvezig/bridge-a2a","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dvvezig/bridge-a2a","version":"0.1.0","type":"module","description":"Wraps any external A2A agent as a Zig participant. The external agent never knows it's in a room.","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"zod":"^4.0.0","@dvvezig/core":"0.1.0","@dvvezig/sdk":"0.1.0"},"license":"MIT","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/REPLACE-ME/zig-protocol.git","directory":"packages/bridge-a2a"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","test":"vitest run"},"_id":"@dvvezig/bridge-a2a@0.1.0","bugs":{"url":"https://github.com/REPLACE-ME/zig-protocol/issues"},"homepage":"https://github.com/REPLACE-ME/zig-protocol#readme","_integrity":"sha512-D5G7GhfZ3TVKnAeEd9WZ65xjRndpAta76cEMCLGDUQvGtApZQ92uymxYOrtl1I6u6LfpuBRcUvmzWI6qtWtkwQ==","_resolved":"/private/var/folders/rv/3j68grc57wl2t8kyhp3qhhtc0000gn/T/f62ed0ced681b448ee9195253ac0dfe5/dvvezig-bridge-a2a-0.1.0.tgz","_from":"file:dvvezig-bridge-a2a-0.1.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-D5G7GhfZ3TVKnAeEd9WZ65xjRndpAta76cEMCLGDUQvGtApZQ92uymxYOrtl1I6u6LfpuBRcUvmzWI6qtWtkwQ==","shasum":"4c53547916c48fdf71c0a2ce5408d0d3ab986e19","tarball":"https://registry.npmjs.org/@dvvezig/bridge-a2a/-/bridge-a2a-0.1.0.tgz","fileCount":28,"unpackedSize":64562,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDCULQKK3Zu4whlil7znOQ0Pe5bmWvW3q6GKL9G6eI0HAiBMoXMeOPu8svdu8DirgYPgnp8we5S6fx+UmOMV+LAzWA=="}]},"_npmUser":{"name":"dvvezig","email":"bodunde@thezig.io"},"directories":{},"maintainers":[{"name":"dvvezig","email":"bodunde@thezig.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bridge-a2a_0.1.0_1781346365353_0.5781583003259794"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-13T10:26:05.234Z","0.1.0":"2026-06-13T10:26:05.499Z","modified":"2026-06-13T10:26:05.674Z"},"maintainers":[{"name":"dvvezig","email":"bodunde@thezig.io"}],"description":"Wraps any external A2A agent as a Zig participant. The external agent never knows it's in a room.","homepage":"https://github.com/REPLACE-ME/zig-protocol#readme","repository":{"type":"git","url":"git+https://github.com/REPLACE-ME/zig-protocol.git","directory":"packages/bridge-a2a"},"bugs":{"url":"https://github.com/REPLACE-ME/zig-protocol/issues"},"license":"MIT","readme":"# @dvvezig/bridge-a2a\n\nBridge existing A2A agents into Zig rooms.\n\nThis package discovers an A2A Agent Card, maps it into a Zig capability card, starts a room participant, forwards routed Zig messages to the external A2A service, and maps A2A task state back onto Zig gates and surfaces.\n\n```bash\nnpm install @dvvezig/bridge-a2a\n```\n\n```ts\nimport { discoverA2aAgent, startA2aBridge } from \"@dvvezig/bridge-a2a\";\n\nconst { card, client } = await discoverA2aAgent(\"https://agent.example/.well-known/agent.json\");\nawait runtime.admit(\"hq\", { participantId: \"fx-bot\", handle: \"agent\", card, scope: \"mentions-only\" });\n\nawait startA2aBridge({\n  transport,\n  room: \"hq\",\n  participantId: \"fx-bot\",\n  a2a: client,\n  card,\n});\n```\n\nScoping is enforced before the bridge sees the stream, so a restrictive scope such as `mentions-only` keeps bystander room traffic out of the external A2A service.\n","readmeFilename":"README.md","_rev":"1-d5281b86122d1d6c80d500af1f2063ad"}