{"_id":"@aihu/agent-a2a","_rev":"6-bfdea4130250fdca9e81ec6e0f4eb504","name":"@aihu/agent-a2a","dist-tags":{"canary":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","latest":"1.0.1"},"versions":{"0.1.0":{"name":"@aihu/agent-a2a","version":"0.1.0","license":"MIT","_id":"@aihu/agent-a2a@0.1.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"13641b11a0bb6cc68d447b88fc7d1dab99fce1e0","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-0.1.0.tgz","fileCount":7,"integrity":"sha512-rayobgOfMcqCOAqGPcHqcRpCRvpWPUCOwLZwz8l7w6T2ic6Bsu+NoYP2xVjo+2NlDDZcDRxd4fN2URO9E4u2eA==","signatures":[{"sig":"MEUCIEnxrsctsqN2fVv70ZSqx/orStWAYBhU6K+17Zpq+awHAiEA9Fo1R+d5glxMgKZj+jiYecHPS3dzwRrOXtdKbZA5+Qo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8667},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"02c309492183f2abf030a21a847ac41b1e9ffb00","scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-a2a"},"_npmVersion":"10.9.0","description":"A2A (Agent-to-Agent) protocol bindings for @aihu/agent-service.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@aihu/agent-service":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agent-a2a_0.1.0_1778009796260_0.4872622553940027","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aihu/agent-a2a","version":"0.1.1","license":"MIT","_id":"@aihu/agent-a2a@0.1.1","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":"https://github.com/fellwork/aihu/issues","dist":{"shasum":"d55669af0372651b63b6d2566cbaae0ef4998e2d","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-0.1.1.tgz","fileCount":7,"integrity":"sha512-ZyAaIQ/LGFgrGwhXwnSnKx2mFXDD+l+8kD+9xDaicq+HZR1Wdd3FlvvFkDQ6bkK1TNroakp7BwDtRw01nXgN3Q==","signatures":[{"sig":"MEUCICvPAqLg065V76wFWxplTz25DynJPuuW87i6hV/HTc+LAiEA3e69oRkpLReLfRwdoFmVSC78cTjqLWkuOZ31I3iRdEU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10592},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","shasum":"d55669af0372651b63b6d2566cbaae0ef4998e2d","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_integrity":"sha512-ZyAaIQ/LGFgrGwhXwnSnKx2mFXDD+l+8kD+9xDaicq+HZR1Wdd3FlvvFkDQ6bkK1TNroakp7BwDtRw01nXgN3Q==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-a2a"},"_npmVersion":"10.8.3","description":"A2A (Agent-to-Agent) protocol bindings for @aihu/agent-service.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{"@aihu/agent-service":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agent-a2a_0.1.1_1778018667525_0.5085585599055442","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@aihu/agent-a2a","version":"0.1.2","license":"MIT","_id":"@aihu/agent-a2a@0.1.2","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"93b5ba36f9c29339d3b9bbe0ab44ff73c858a02b","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-0.1.2.tgz","fileCount":7,"integrity":"sha512-jO4BBzzYLfIlSNHYjgGmknI+N5yz5cVNXjek+we0xEUKLOUhLOqm/p1B1a4LJkrbQGRM7YoNyNbmLY+ow2lKDw==","signatures":[{"sig":"MEQCIFDntXO99hoJ/HO7IRkNPK5wJrTClHbJeSkrOdhnGKfzAiArYT24v2jf8Z5FeQ6cHvQIb72Z/Ay9AIlEuEETeN/mUw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-a2a@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10744},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.3vZADN9UY8/aihu-agent-a2a-0.1.2.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.3vZADN9UY8/aihu-agent-a2a-0.1.2.tgz","_integrity":"sha512-jO4BBzzYLfIlSNHYjgGmknI+N5yz5cVNXjek+we0xEUKLOUhLOqm/p1B1a4LJkrbQGRM7YoNyNbmLY+ow2lKDw==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-a2a"},"_npmVersion":"10.8.2","description":"A2A (Agent-to-Agent) protocol bindings for @aihu/agent-service.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@aihu/agent-service":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agent-a2a_0.1.2_1780691022140_0.14890278341038998","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":{"name":"@aihu/agent-a2a","version":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","license":"MIT","_id":"@aihu/agent-a2a@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"f03686d182e1e83c4def6549e4bba3278c74a474","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","fileCount":7,"integrity":"sha512-dcV2k+Qe89214iWqzdHOoS+dz40WHY3FYv7XuVcpEDH8Xy3C7XrkveeaCN2JUDd84kWBd4ZsoUmIbaqCdNMlqQ==","signatures":[{"sig":"MEQCIEa7DjKaIWaFoF8f33tr2thGbyIhAPt9l5aZfgtanYo0AiAp03RJjLUsesw5sxuhNCyJ5y2bxfAwPpiCietlSghSAQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-a2a@0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46898},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.jFAzHoBWWv/aihu-agent-a2a-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.jFAzHoBWWv/aihu-agent-a2a-0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113.tgz","_integrity":"sha512-dcV2k+Qe89214iWqzdHOoS+dz40WHY3FYv7XuVcpEDH8Xy3C7XrkveeaCN2JUDd84kWBd4ZsoUmIbaqCdNMlqQ==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-a2a"},"_npmVersion":"10.8.2","description":"A2A (Agent2Agent) protocol bindings (spec v1.0.1, JSON-RPC) for @aihu/agent-service.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@aihu/agent-service":"0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/agent-a2a_0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113_1784720309636_0.9113815794712274","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@aihu/agent-a2a","version":"1.0.0","license":"MIT","_id":"@aihu/agent-a2a@1.0.0","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"dist":{"shasum":"3648e20ce76f09854de53c1dfa3199de90ab954d","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-1.0.0.tgz","fileCount":7,"integrity":"sha512-QzKHcC2bVXs257tRU+QCpFZSlIGRbWDp31LnPL0YxdQEjV7ehfasJcLo0hudUFXOzSO8I8oqj5zTPyMlUCsZZw==","signatures":[{"sig":"MEUCICdI0/JAvDiJw7/IvulEfKtUnUbmPqZAkP2Uf98vpbmnAiEAiCjDLHj820vjXpCPidTlG9JKOH+BEfAkTxKZyju0zJk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-a2a@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46750},"main":"./dist/index.js","type":"module","_from":"file:/tmp/tmp.9aD5gq8rEX/aihu-agent-a2a-1.0.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"_resolved":"/tmp/tmp.9aD5gq8rEX/aihu-agent-a2a-1.0.0.tgz","_integrity":"sha512-QzKHcC2bVXs257tRU+QCpFZSlIGRbWDp31LnPL0YxdQEjV7ehfasJcLo0hudUFXOzSO8I8oqj5zTPyMlUCsZZw==","repository":{"url":"git+https://github.com/fellwork/aihu.git","type":"git","directory":"packages/agent-a2a"},"_npmVersion":"10.8.2","description":"A2A (Agent2Agent) protocol bindings (spec v1.0.1, JSON-RPC) for @aihu/agent-service.","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"@aihu/agent-service":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/agent-a2a_1.0.0_1784729049987_0.6486152877505871","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aihu/agent-a2a","version":"1.0.1","type":"module","license":"MIT","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"rolldown -c rolldown.config.ts","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"dependencies":{"@aihu/agent-service":"0.4.0"},"description":"A2A (Agent2Agent) protocol bindings (spec v1.0.1, JSON-RPC) for @aihu/agent-service.","repository":{"type":"git","url":"git+https://github.com/fellwork/aihu.git","directory":"packages/agent-a2a"},"homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","bugs":{"url":"https://github.com/fellwork/aihu/issues"},"publishConfig":{"access":"public"},"sideEffects":false,"_id":"@aihu/agent-a2a@1.0.1","_integrity":"sha512-/wG4kuw3hLGxMX4PWAnDfmidTUK5DmRZeKLRaooQoZiaK0G/BGQJrvw4S+b/5fcSs6+Ppvo3h7p67nbIVNtIxg==","_resolved":"/tmp/tmp.JD2030bais/aihu-agent-a2a-1.0.1.tgz","_from":"file:/tmp/tmp.JD2030bais/aihu-agent-a2a-1.0.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/wG4kuw3hLGxMX4PWAnDfmidTUK5DmRZeKLRaooQoZiaK0G/BGQJrvw4S+b/5fcSs6+Ppvo3h7p67nbIVNtIxg==","shasum":"817165a51d36bdc886642a7fe7dba734eafe29a4","tarball":"https://registry.npmjs.org/@aihu/agent-a2a/-/agent-a2a-1.0.1.tgz","fileCount":7,"unpackedSize":46802,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aihu%2fagent-a2a@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4V3/zwQLdsblv0dcMNwELlNlqVk0eyaYrFi4FvRha2gIgFi8dQWgEUVNIK7/FwWtgxK2YrTTfZHtFjSusT4c3lZ8="}]},"_npmUser":{"name":"srmcguirt","email":"srmcguirt@gmail.com"},"directories":{},"maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-a2a_1.0.1_1786247257484_0.0647840735118641"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-05T19:36:36.129Z","modified":"2026-08-09T03:47:37.965Z","0.1.0":"2026-05-05T19:36:36.427Z","0.1.1":"2026-05-05T22:04:27.730Z","0.1.2":"2026-06-05T20:23:42.403Z","0.0.0-canary-331b0151f7756608a00168b6de1d3b7bae639113":"2026-07-22T11:38:29.774Z","1.0.0":"2026-07-22T14:04:10.126Z","1.0.1":"2026-08-09T03:47:37.655Z"},"bugs":{"url":"https://github.com/fellwork/aihu/issues"},"license":"MIT","homepage":"https://github.com/fellwork/aihu/tree/main/packages/agent-a2a#readme","repository":{"type":"git","url":"git+https://github.com/fellwork/aihu.git","directory":"packages/agent-a2a"},"description":"A2A (Agent2Agent) protocol bindings (spec v1.0.1, JSON-RPC) for @aihu/agent-service.","maintainers":[{"name":"srmcguirt","email":"srmcguirt@gmail.com"}],"readme":"# @aihu/agent-a2a\n\n> **Aihu** — agentic discovery and interaction, for human purpose.\n\nA2A (Agent2Agent) protocol bindings (spec v1.0.1, JSON-RPC) for @aihu/agent-service.\n\nPart of the **agent surface** layer of Aihu. Every Aihu component exposes its agent surface via the `@agent` block; this package implements one slice of the dispatch + protocol surface that connects `@agent` actions to live runtime signals (per the [Live-Binding RFC](../../docs/superpowers/specs/2026-05-05-spec-live-binding.md)).\n\n<!-- BEGIN_HANDWRITTEN: prose -->\nImplements the [Agent2Agent (A2A) Protocol Specification v1.0.1](https://a2a-protocol.org/v1.0.1/specification), JSON-RPC 2.0 binding. `mountA2aAdapter(service, options?)` wraps an `AgentService` with two routes:\n\n| Method | Path | Description |\n|---|---|---|\n| `GET` | `{prefix}/.well-known/agent-card.json` | Agent card (spec §4.4.1) — `supportedInterfaces`, `capabilities`, `skills` |\n| `POST` | `{prefix}/a2a` | JSON-RPC 2.0 endpoint — `SendMessage`, `SendStreamingMessage` (SSE), `GetTask`, `ListTasks`, `CancelTask`, `SubscribeToTask`, `GetExtendedAgentCard` |\n\n**Skill addressing:** every aihu action is exposed as an A2A skill with id `\"<tag>/<action>\"`. A `Message` invokes one with a data part — `{ \"data\": { \"skill\": \"x-counter/increment\", \"params\": { … } } }` — or a text part whose text is the skill id (params then come from the first data part, if any).\n\n**Tasks:** results are persisted to a `TaskStore` (in-memory by default, injectable via `options.taskStore`), so `GetTask`/`ListTasks`/`CancelTask` are real. The gate's verdict maps onto task state: 401 `AUTH_REQUIRED` → `TASK_STATE_AUTH_REQUIRED` (resumable by re-sending with `message.taskId` and credentials), 403 `SCOPE_DENIED` → `TASK_STATE_REJECTED`; the full gate envelope rides in a status-message data part for audit.\n\n**Attribution (thesis §4 tier 0):** pass `options.resolveAuth` to derive a `RequestContext` per request; absent or throwing resolvers degrade to an explicit anonymous context, which still fails closed on scoped bindings.\n\n**⚠ v0.1.x wire is gone (semver-major):** the pre-v0.2 REST paths (`/a2a/tasks/send`, `/a2a/tasks/sendSubscribe`, `/.well-known/agent.json`), the `\"tag/action\"` string-message hack, and the `[DONE]` streaming sentinel are all removed in favor of the spec wire above.\n<!-- END_HANDWRITTEN: prose -->\n\n## Install\n\n<!-- BEGIN_AUTOGEN: install -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n```bash\nnpm install @aihu/agent-a2a\n# or\nbun add @aihu/agent-a2a\n```\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: install -->\n\n## Package facts\n\n<!-- BEGIN_AUTOGEN: stats -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n| | |\n|---|---|\n| **Version** | `1.0.1` |\n| **Tier** | C — Agent surface — A2A (Agent2Agent) protocol, spec v1.0.1 JSON-RPC binding |\n| **Bundle size** | 2.62 kB (gz) — limit 3000 B |\n| **Published files** | 3 entries |\n| **License** | MIT |\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: stats -->\n\n## Exports\n\n<!-- BEGIN_AUTOGEN: exports -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n| Subpath | ESM | CJS |\n|---|---|---|\n| `.` | `./dist/index.js` | `—` |\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: exports -->\n\n## Dependencies\n\n<!-- BEGIN_AUTOGEN: deps -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n**Dependencies:**\n\n- `@aihu/agent-service` — `workspace:*`\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: deps -->\n\n## See also\n\n<!-- BEGIN_AUTOGEN: see-also -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\n- [@aihu/agent-service](../agent-service)\n- [@aihu/agent](../agent)\n- [Aihu framework root](../../README.md)\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: see-also -->\n\n## License\n\n<!-- BEGIN_AUTOGEN: license -->\n<!-- regenerate: bun scripts/sync-readme.ts (also runs in pre-commit + CI) -->\n\nMIT — see [LICENSE](../../LICENSE).\n\n<sub><i>Auto-generated against `@aihu/agent-a2a@1.0.1`.</i></sub>\n\n<!-- END_AUTOGEN: license -->\n","readmeFilename":"README.md"}