{"_id":"@auctra/a2a","name":"@auctra/a2a","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@auctra/a2a","version":"0.1.1","description":"A2A adapter — agent-to-agent calls become Auctra Actions for the same runtime","type":"module","sideEffects":false,"main":"./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":"npm run build"},"dependencies":{"@auctra/core":"file:../core","@auctra/authority-protocol":"file:../authority-protocol"},"devDependencies":{"typescript":"^5.8.3"},"engines":{"node":">=20"},"license":"MIT","publishConfig":{"access":"public"},"gitHead":"bd386d75fe64ba183b908e917f582bb420b82c53","_id":"@auctra/a2a@0.1.1","_nodeVersion":"26.5.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-waE5YVrproe85xEWb3QjgaqjyA2QoRUifLEM4PNHLR8kN0HMShLx+soiLaa7PjIBVOJfFsbz63Hk32GcXlPJYw==","shasum":"d250912ac0f8c60317e6198cc09bc3ced3dd8f8f","tarball":"https://registry.npmjs.org/@auctra/a2a/-/a2a-0.1.1.tgz","fileCount":5,"unpackedSize":10157,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAl3Wm4a4tyBOFvlKiOVBMJ0mPWs5v6w9hcU0pUMmzrJAiEA08VIOGypWWU2LCAjrLJZ27W2MuGUbVwo7T5jZL+wk1g="}]},"_npmUser":{"name":"matik103","email":"hookarte@gmail.com"},"directories":{},"maintainers":[{"name":"matik103","email":"hookarte@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/a2a_0.1.1_1788634582893_0.15423056188521622"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-05T18:56:22.659Z","0.1.1":"2026-09-05T18:56:23.012Z","modified":"2026-09-05T18:56:23.199Z"},"maintainers":[{"name":"matik103","email":"hookarte@gmail.com"}],"description":"A2A adapter — agent-to-agent calls become Auctra Actions for the same runtime","license":"MIT","readme":"# @auctra/a2a\n\nA2A adapter — agent-to-agent calls become Auctra Actions for the same Authority Gate.\n\n**Law:** no second security model. `executeAgentCall` → `action.execute` with\n`action_type: agent_call`. Peer identity and task attenuation are enforced by the\ngate (Atlas `delegation/a2a-peer-spoof`, `delegation/a2a-task-launder`).\n\n## Usage\n\n```ts\nimport { executeAgentCall } from \"@auctra/a2a\";\n\nconst decision = await executeAgentCall(auctraClient, {\n  fromAgentId: caller.id,\n  toAgentId: peer.id,\n  claimedIntentId: intent.id,\n  intentAnchorToken: intent.anchor_token,\n  // Optional: downstream work the peer should run — must ⊆ caller's grant scope\n  claimedActionTypes: [\"create_support_ticket\"],\n  intent: \"Hand off ticket triage\",\n  riskLevel: \"medium\",\n});\n```\n\n## What the gate checks\n\n| Claim | Block when |\n| --- | --- |\n| Peer id | Missing, cross-org, inactive, or equals caller |\n| `claimed_action_types` | Not ⊆ caller's delegation `scope.action_types` (wildcards via `actionTypeMatchesPattern`) |\n\nUndeclared peers stay fail-closed on `agent_call` (peer required). Empty `claimed_action_types` skips attenuation (caller grant still must cover `agent_call` itself).\n","readmeFilename":"README.md","_rev":"1-655e39883acc13500e72fe102d96b6c2"}