{"_id":"@add-mesh/delegation","name":"@add-mesh/delegation","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@add-mesh/delegation","version":"0.1.0","description":"ADD Protocol Layer 2: attenuable capability delegation chains and invocation binding","keywords":["add-protocol","capabilities","delegation","macaroon","ucan","agents"],"license":"Apache-2.0","author":{"name":"das-subha123"},"homepage":"https://github.com/das-subha123/agent-mesh-protocol#readme","repository":{"type":"git","url":"git+https://github.com/das-subha123/agent-mesh-protocol.git","directory":"packages/delegation"},"bugs":{"url":"https://github.com/das-subha123/agent-mesh-protocol/issues"},"type":"module","main":"./dist/src/index.js","types":"./dist/src/index.d.ts","exports":{".":{"types":"./dist/src/index.d.ts","default":"./dist/src/index.js"}},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"scripts":{"prepublishOnly":"npm --prefix ../.. run build"},"dependencies":{"@add-mesh/core":"0.1.0","@noble/hashes":"2.2.0"},"gitHead":"6b938a6c0d7d742a1d81b5cdc90172d2c468dc8f","_id":"@add-mesh/delegation@0.1.0","_nodeVersion":"22.14.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-2VAeiRwVWFg7221Dn/9LHQ0uuycx+26DPkQOK6oHcmHN2Li9FHfGtZsJTEu1y8Z+afYgm9YqZ1pDNt0hOGdHBg==","shasum":"350c2928554aaf31d81a22e2a6221c7d6f3a0202","tarball":"https://registry.npmjs.org/@add-mesh/delegation/-/delegation-0.1.0.tgz","fileCount":31,"unpackedSize":124120,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBPu0r5yE4liFMVtGYmR7QKK1BszJE4X/B8v3HVMsR8tAiEAzBbVUhpQVHLUTqnW4wqhs7zYPTFQslc1BvIbdULncvw="}]},"_npmUser":{"name":"das-subha123","email":"subhodeepds@gmail.com"},"directories":{},"maintainers":[{"name":"das-subha123","email":"subhodeepds@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/delegation_0.1.0_1785007928675_0.4033887725391341"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T19:32:08.454Z","0.1.0":"2026-07-25T19:32:08.818Z","modified":"2026-07-25T19:32:09.014Z"},"maintainers":[{"name":"das-subha123","email":"subhodeepds@gmail.com"}],"description":"ADD Protocol Layer 2: attenuable capability delegation chains and invocation binding","homepage":"https://github.com/das-subha123/agent-mesh-protocol#readme","keywords":["add-protocol","capabilities","delegation","macaroon","ucan","agents"],"repository":{"type":"git","url":"git+https://github.com/das-subha123/agent-mesh-protocol.git","directory":"packages/delegation"},"author":{"name":"das-subha123"},"bugs":{"url":"https://github.com/das-subha123/agent-mesh-protocol/issues"},"license":"Apache-2.0","readme":"# @add-mesh/delegation\r\n\r\nAttenuable capability chains and invocation binding — part of the **ADD Protocol** (Agent Discovery, Delegation & Trust),\r\nan open overlay for the Agentic Web that sits above A2A and MCP.\r\n\r\nSpecification: [ADD-DELEG-00](https://github.com/das-subha123/agent-mesh-protocol/blob/main/spec/add-deleg-00.md)\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @add-mesh/delegation\r\n```\r\n\r\n## Usage\r\n\r\n```ts\r\nconst chain = await attenuateDelegation(agentA, [root], {\r\n  aud: agentB.did,\r\n  can: ['invoice/read'],\r\n  on: 'https://api.example.com/invoices/42',\r\n  ttlSeconds: 60,\r\n});\r\n```\r\n\r\nEvery link can only narrow what it received — widening is rejected at mint time\r\n*and* at verification time. A chain alone is a bearer credential; pair it with\r\nan invocation so the request is bound to the holder's key.\r\n\r\n## Documentation\r\n\r\nFull documentation, specifications, and runnable examples: [https://github.com/das-subha123/agent-mesh-protocol](https://github.com/das-subha123/agent-mesh-protocol)\r\n\r\nTwo implementations — TypeScript and Python — are developed together and\r\nvalidated against the same normative test vectors, so envelopes produced by one\r\nare byte-identical to the other.\r\n\r\n## License\r\n\r\nApache-2.0\r\n","readmeFilename":"README.md","_rev":"1-6742f6763183f6445bed7d604a679fa3"}