{"_id":"@agentic-profile/a2a-client","_rev":"11-df430215e00d8eec41de30eb4e8b104d","name":"@agentic-profile/a2a-client","dist-tags":{"latest":"0.6.5"},"versions":{"0.4.15":{"name":"@agentic-profile/a2a-client","version":"0.4.15","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.4.15","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"73792c413212cf56c83e8750c7eceb12cb7c1ca2","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.4.15.tgz","fileCount":35,"integrity":"sha512-d8iGuwO2s4Ngft11epFyEpqloOOPTKEthazPjlOAwlpPWLCwneEdUDBnrpHPqG4K83koQ7sRdkaluFkm6QhAbw==","signatures":[{"sig":"MEUCIQCZDNosuF8Diyx5Y1HBedJNcS6zyvRJz5ZcRGkPydAgkAIgVzekUk4Zqd5ZDm32FKr+cHwKx7DYjhsRSpdfx2Ci5nE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":451294},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"b153ac77d23407dee7f5239021dccef93d007492","scripts":{"test":"jest","build":"tsup","a2a:cli":"npx tsx --inspect=9230 tests/cli.ts","prepare":"tsup"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.3.0","description":"Typescript client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@agentic-profile/auth":"^0.4.10"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.1","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@agentic-profile/express-common":"^0.4.14"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.4.15_1746992069206_0.7237318274525473","host":"s3://npm-registry-packages-npm-production"}},"0.4.16":{"name":"@agentic-profile/a2a-client","version":"0.4.16","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.4.16","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"1af687442f4a9c72d04125807210173134924a84","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.4.16.tgz","fileCount":41,"integrity":"sha512-mg1Rsqa6IgbFI1dkvDT2XKcG25LLDUEnhcGmLpel8Bu+wBPzq9X9CiNNIbJjTYpPg18+B37Yj+Mbdm1zZSIVaQ==","signatures":[{"sig":"MEQCIHLk+eUGhT9qCvI0jVbtzxqYQHMldzQUFemsRRcobM39AiBULym1yV+bFK+2O8fZQk0vMDzPYDIC/u4ags3Qlo7DFw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":450662},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"15425449c7acb225d8ac4d946cbca982a06fbf19","scripts":{"test":"jest","build":"tsup","a2a:cli":"npx tsx --inspect=9230 tests/cli.ts","prepare":"tsup","setup-my-agent":"npx tsx scripts/create-global-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.3.0","description":"Typescript client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@agentic-profile/auth":"^0.4.10"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.1","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@agentic-profile/express-common":"^0.4.14"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.4.16_1747094339570_0.641470564894981","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@agentic-profile/a2a-client","version":"0.5.0","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.5.0","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"0dbf97a9c37923779f5a301e15cf6be5e5c7ceb4","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.5.0.tgz","fileCount":45,"integrity":"sha512-FT61nJrrzUVIAYl1e37HMG3v87/LYiNE3NYarib8yqtyz75sOpMmiFCkWlwty+3kBfnI4llpEgMh1KqaeJm+Hw==","signatures":[{"sig":"MEYCIQCQ+DfI2Y7FVsM/qqcQGCtvzYM7AM4LN1411O5YmRsl/gIhAJNGa1JBnRia7+vVZp0K4S8HRFsbbI84+1rU96SNO6Ka","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":553749},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","import":"./dist/cli.js","require":"./dist/cli.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"e3e2ecddd358e67eabba11b008af1a673d12223e","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.3.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.12.0","dependencies":{"@agentic-profile/auth":"^0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.5.0_1747295611023_0.3724774383570979","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@agentic-profile/a2a-client","version":"0.5.1","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.5.1","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"d8849f31575c5341bbc720b4cc92c5bef4ce7c9e","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.5.1.tgz","fileCount":45,"integrity":"sha512-k+1QtDLqfq5NoCvoOEg6+ztoEEaD309i3jcwgGqbxOK/tQZuZLNSfg9zoWVwsvNpS9SWFMEeZcKcETMwHoiqgw==","signatures":[{"sig":"MEUCIEzDjJDLUF9g+zKFILIn68S5QCu4PKS3cZ8Yg6rzFZZ0AiEAvOay0HgxrSdGcSpPh43tk/+rTDPmaQXtxgsFkKJtqEI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":551652},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli.d.ts","import":"./dist/cli.js","require":"./dist/cli.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"5ca54e54300ca9e2fdc1c5e59dccda4389bcb413","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.4.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@agentic-profile/auth":"^0.5.0","@agentic-profile/common":"^0.5.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.5.1_1747865137498_0.41298693805162534","host":"s3://npm-registry-packages-npm-production"}},"0.5.4":{"name":"@agentic-profile/a2a-client","version":"0.5.4","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.5.4","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"512ec52f5d9321087755adb4b19a7e9702ecba5f","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.5.4.tgz","fileCount":63,"integrity":"sha512-o65xcX4zGZ2vIYHcMFxBLtHQj44Q5ra55PJXa3bcEmXtKuSet7ZX7CWLLd7SGB405wl3/lC9OvmUUX33bvrKMQ==","signatures":[{"sig":"MEYCIQDTfps+yKv29AfXvxd0PVRHCkAsz8hPK1GgJbUnWxm1PAIhAIj/BaPA23Pm4oDhDm+a6fkLkhPxIa2E/vkxJph6pGnW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":777755},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"ef8e3a8481ff472313937f7fa2b56be17f6be384","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.4.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@agentic-profile/auth":"^0.5.4","@agentic-profile/common":"^0.5.4"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.5.5"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.5.4_1748240051356_0.7658140624632608","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@agentic-profile/a2a-client","version":"0.6.0","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.6.0","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/a2a-client/issues"},"dist":{"shasum":"9edef352d68d338038d814edeca5fd6cd67d5e73","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.0.tgz","fileCount":69,"integrity":"sha512-mhLiLSSN7RfTLuZ+p/f/U+qJRhvByd1JB0/S0mpAFZYqRNbVnF9i0sLIleUTatEJII8Vr5NAS0GQ+sL8RwgMpg==","signatures":[{"sig":"MEUCID7G/WS5MxGk7Oo5Uh8VF3a3DijcpcUHZYJ3b6yqPb5HAiEA3z5VwQbENdjevIq1cTRDepLo3V6U5zOXaX5DY8YWawI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":780504},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"cb36b982d5ae522ab613b3b8c5e020b8578d781b","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/a2a-client.git","type":"git"},"_npmVersion":"11.4.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@agentic-profile/auth":"^0.6.0","@agentic-profile/common":"^0.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.6.0_1749359124322_0.5744013445490399","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@agentic-profile/a2a-client","version":"0.6.1","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.6.1","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"dist":{"shasum":"638d541457008adba95c23048686ca3e34e14a1d","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.1.tgz","fileCount":69,"integrity":"sha512-gkhA9+kYuvkW6n3JUa9yKCDMnjhHdq0T3RjDdLaOQLgcx1xnKz3cti1dkTvz/ktCqldT+rwMLESVxrXwRtAfHA==","signatures":[{"sig":"MEUCIEI/Nk0+Ey55O3G3IHdJv7Vztk9JfbK5bxbQpyAh/msdAiEAzhgV247DCxEbjjmItzHISEXOBMur7j2oZR03YJEaXg4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":780552},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"ef0bbc419592ea621bdb0619c3209a379c68436f","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git","type":"git"},"_npmVersion":"11.4.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@agentic-profile/auth":"^0.6.0","@agentic-profile/common":"^0.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.6.1_1749417475325_0.24875070530412224","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@agentic-profile/a2a-client","version":"0.6.2","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.6.2","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"dist":{"shasum":"a2079866782b5ed8c48ee69edf541dfce1448f84","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.2.tgz","fileCount":69,"integrity":"sha512-jqqGCQtq5s6bm3w/bkaZv0P+XWOBzotcYpmL4reZB42gg5b4MuUvgo2q3ExfE9BlOpTxNJu2RlzpSV3ZVCzNpg==","signatures":[{"sig":"MEUCIHC+0VIZdaFypjOYTXRJrVcqsJPWL5lBCU24fLadL1RVAiEAhZkUDxSHmrEnipZAG8phpV6oHLv+7TKh9aOn4IcJPNg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":780126},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"63dbcc1ef2293d4621a777863eda63f84dfbe01b","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git","type":"git"},"_npmVersion":"11.4.0","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"@agentic-profile/auth":"^0.6.0","@agentic-profile/common":"^0.6.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.6.2_1749594529245_0.9496255626966719","host":"s3://npm-registry-packages-npm-production"}},"0.6.3":{"name":"@agentic-profile/a2a-client","version":"0.6.3","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.6.3","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"dist":{"shasum":"41341c24f45248180699af76f98cd4f59d4ae779","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.3.tgz","fileCount":63,"integrity":"sha512-72TnHhmqc2ZBaSGom5qVmT9YkxAoQvVKz7Oik3prR02yRCtRRdB7gfIqHjGwcg2gK/CKdsnaZxXXdpvda9MuHQ==","signatures":[{"sig":"MEQCIBUgCdsCVF9295iuV49+LKOe6ZoLFEFBt8LH40Im3aDWAiBnZQjqiZxVR8M/Uye7wod4BIgdjUDqqLExZ1vp6yz5tQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":716202},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"893b31a20e16d7eb02c4f948fad73371ae4e3060","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git","type":"git"},"_npmVersion":"11.6.2","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"on-headers":">=1.1.0","@a2a-js/sdk":"^0.3.5","brace-expansion":">=2.0.2","@agentic-profile/auth":"^0.6.2","@agentic-profile/common":"^0.6.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.6.3_1762385361002_0.009608832163740422","host":"s3://npm-registry-packages-npm-production"}},"0.6.4":{"name":"@agentic-profile/a2a-client","version":"0.6.4","author":{"name":"Mike Prince"},"license":"Apache-2","_id":"@agentic-profile/a2a-client@0.6.4","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"dist":{"shasum":"baa5fcfaae8766ad4acd613530339e5d25b7503f","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.4.tgz","fileCount":63,"integrity":"sha512-0SkVQjG1py2at5+uBVSkhOv83Ov3vWJAnGnD0yvOe+1wkeDyVqn6VSTKg5666LCzkMBNYpdz8e9vvWWFFMRytw==","signatures":[{"sig":"MEQCIFPkeUyXYrmj1cE+jSWY1CXGUmFMnx5+ukYmMuFYgaJ9AiBM/HZalzuTqiehv/8LO+wSmnCQUqGsr/jo2hUnjN6hJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":740690},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"}},"gitHead":"b11ceb0290d46b3244c5898163ccf69e29de50b7","scripts":{"cli":"npx tsx scripts/cli.ts","test":"jest","build":"tsup","prepare":"tsup","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts"},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"repository":{"url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git","type":"git"},"_npmVersion":"11.6.2","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","directories":{},"_nodeVersion":"22.15.1","dependencies":{"on-headers":">=1.1.0","@a2a-js/sdk":"^0.3.5","brace-expansion":">=2.0.2","@agentic-profile/auth":"^0.6.2","@agentic-profile/common":"^0.6.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac","devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.3","@types/node":"^22.15.17","@agentic-profile/express-common":"^0.6.0"},"_npmOperationalInternal":{"tmp":"tmp/a2a-client_0.6.4_1762390421008_0.9369902232959924","host":"s3://npm-registry-packages-npm-production"}},"0.6.5":{"name":"@agentic-profile/a2a-client","version":"0.6.5","description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prepare":"tsup","cli":"npx tsx scripts/cli.ts","create-demo-user":"npx tsx scripts/create-demo-user-agentic-profile.ts","build":"tsup","test":"jest"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"./schema":{"types":"./dist/schema.d.ts","import":"./dist/schema.js","require":"./dist/schema.js"},"./cli":{"types":"./dist/cli/index.d.ts","import":"./dist/cli/index.js","require":"./dist/cli/index.js"}},"type":"module","repository":{"type":"git","url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git"},"author":{"name":"Mike Prince"},"license":"Apache-2","bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","dependencies":{"@a2a-js/sdk":"^0.3.5","@agentic-profile/auth":"^0.6.2","@agentic-profile/common":"^0.6.2","brace-expansion":">=2.0.2","on-headers":">=1.1.0"},"devDependencies":{"@agentic-profile/express-common":"^0.6.0","@types/node":"^22.15.17","tsup":"^8.4.0","typescript":"^5.8.3"},"packageManager":"pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac","gitHead":"88255e3e985533c3a2cd387fd13608b06580e94d","_id":"@agentic-profile/a2a-client@0.6.5","_nodeVersion":"22.15.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-4+2anmFfAosSkOiMCjnGven2fmgcrLHyd0h2MRH1KBFd6t7T/vA7u1TQX08NEsK7HPpL9VEIkRy85G9sM6KdqQ==","shasum":"545c96e8cd7d168e18a52ec37b3816cb3ddf3062","tarball":"https://registry.npmjs.org/@agentic-profile/a2a-client/-/a2a-client-0.6.5.tgz","fileCount":63,"unpackedSize":737906,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDmW+4fAUX9vnL9rRDQdyVsW6cF9o1mF599a0j1STpnwAIhAPGFl2Fry632nHfdFi+Tv3EZrs1G7NWR0QuphNf8AcN4"}]},"_npmUser":{"name":"mikeprince","email":"mike@mobido.com"},"directories":{},"maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/a2a-client_0.6.5_1762415266302_0.050394086465843424"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-11T19:34:29.141Z","modified":"2025-11-06T07:47:46.735Z","0.4.15":"2025-05-11T19:34:29.407Z","0.4.16":"2025-05-12T23:58:59.760Z","0.5.0":"2025-05-15T07:53:31.218Z","0.5.1":"2025-05-21T22:05:37.768Z","0.5.4":"2025-05-26T06:14:11.589Z","0.6.0":"2025-06-08T05:05:24.510Z","0.6.1":"2025-06-08T21:17:55.519Z","0.6.2":"2025-06-10T22:28:49.422Z","0.6.3":"2025-11-05T23:29:21.199Z","0.6.4":"2025-11-06T00:53:41.258Z","0.6.5":"2025-11-06T07:47:46.513Z"},"bugs":{"url":"https://github.com/agentic-profile/agentic-profile-a2a-client/issues"},"author":{"name":"Mike Prince"},"license":"Apache-2","homepage":"https://github.com/agentic-profile/agentic-profile-a2a-client#readme","repository":{"type":"git","url":"git+https://github.com/agentic-profile/agentic-profile-a2a-client.git"},"description":"A2A (Agent-to-Agent) client for AI Agents using A2A and the Agentic Profile","maintainers":[{"name":"mikeprince","email":"mike@mobido.com"}],"readme":"# Typescript/Javascript A2A Client with Agentic Profile support\n\nThis project contains a TypeScript client implementation for the Agent-to-Agent (A2A) communication protocol that is derived from [Google's A2A sample code](https://github.com/google/A2A.git).  This client is suitable for use in browsers or servers and is available as an easy-to-use NPM package.\n\n> For a demonstration of this library and examples of its implemention, please download the [SDK](https://github.com/agentic-profile/agentic-profile-a2a)\n\nAdditional support has been added for Agentic Profiles which scope agents by users and businesses, give those entities globally unique ids, and provide universal authentication. All these new capabilites are accomplished with standards (W3C DID documents, IETF JWK) and minimal glue code.\n\n\n### Key Features of the Client\n\n- **Globally Unique Agent Ids:** Scoped to users and businesses, to enable much easier discovery and powerful features like reputation.\n- **Universal Authentication:** Leverages DID document authentication methods such as JSON Web Keys.\n- **JSON-RPC Communication:** Handles sending requests and receiving responses (both standard and streaming via Server-Sent Events) according to the JSON-RPC 2.0 specification.\n- **A2A Methods:** Implements standard A2A methods like `sendTask`, `sendTaskSubscribe`, `getTask`, `cancelTask`, `setTaskPushNotification`, `getTaskPushNotification`, and `resubscribeTask`.\n- **Error Handling:** Provides basic error handling for network issues and JSON-RPC errors.\n- **Streaming Support:** Manages Server-Sent Events (SSE) for real-time task updates (`sendTaskSubscribe`, `resubscribeTask`).\n- **Extensibility:** Allows providing a custom `fetch` implementation for different environments (e.g., Node.js).\n\n\n## Quickstart\n\nFor a demonstration of this library and examples of its implemention, please download the [SDK](https://github.com/agentic-profile/agentic-profile-a2a) and follow the instructions there.\n\n\n## Basic Usage\n\n```typescript\nimport {\n  A2AClient,\n  Task,\n  TaskQueryParams,\n  TaskSendParams\n} from \"@agentic-profile/a2a-client\";\nimport { v4 as uuidv4 } from \"uuid\"; // Example for generating task IDs\n\nconst client = new A2AClient(\"http://localhost:41241\"); // Replace with your server URL\n\nasync function run() {\n  try {\n    // Send a simple task (pass only params)\n    const taskId = uuidv4();\n    const sendParams: TaskSendParams = {\n      id: taskId,\n      message: { role: \"user\", parts: [{ text: \"Hello, agent!\", type: \"text\" }] },\n    };\n    // Method now returns Task | null directly\n    const taskResult: Task | null = await client.sendTask(sendParams);\n    console.log(\"Send Task Result:\", taskResult);\n\n    // Get task status (pass only params)\n    const getParams: TaskQueryParams = { id: taskId };\n    // Method now returns Task | null directly\n    const getTaskResult: Task | null = await client.getTask(getParams);\n    console.log(\"Get Task Result:\", getTaskResult);\n  } catch (error) {\n    console.error(\"A2A Client Error:\", error);\n  }\n}\n\nrun();\n```\n\n\n## Streaming Usage\n\n```typescript\nimport {\n  A2AClient,\n  TaskStatusUpdateEvent,\n  TaskArtifactUpdateEvent,\n  TaskSendParams, // Use params type directly\n} from \"@agentic-profile/a2a-client\";\nimport { v4 as uuidv4 } from \"uuid\";\n\nconst client = new A2AClient(\"http://localhost:41241\");\n\nasync function streamTask() {\n  const streamingTaskId = uuidv4();\n  try {\n    console.log(`\\n--- Starting streaming task ${streamingTaskId} ---`);\n    // Construct just the params\n    const streamParams: TaskSendParams = {\n      id: streamingTaskId,\n      message: { role: \"user\", parts: [{ text: \"Stream me some updates!\", type: \"text\" }] },\n    };\n    // Pass only params to the client method\n    const stream = client.sendTaskSubscribe(streamParams);\n\n    // Stream now yields the event payloads directly\n    for await (const event of stream) {\n      // Type guard to differentiate events based on structure\n      if (\"status\" in event) {\n        // It's a TaskStatusUpdateEvent\n        const statusEvent = event as TaskStatusUpdateEvent; // Cast for clarity\n        console.log(\n          `[${streamingTaskId}] Status Update: ${statusEvent.status.state} - ${\n            statusEvent.status.message?.parts[0]?.text ?? \"No message\"\n          }`\n        );\n        if (statusEvent.final) {\n          console.log(`[${streamingTaskId}] Stream marked as final.`);\n          break; // Exit loop when server signals completion\n        }\n      } else if (\"artifact\" in event) {\n        // It's a TaskArtifactUpdateEvent\n        const artifactEvent = event as TaskArtifactUpdateEvent; // Cast for clarity\n        console.log(\n          `[${streamingTaskId}] Artifact Update: ${\n            artifactEvent.artifact.name ??\n            `Index ${artifactEvent.artifact.index}`\n          } - Part Count: ${artifactEvent.artifact.parts.length}`\n        );\n        // Process artifact content (e.g., artifactEvent.artifact.parts[0].text)\n      } else {\n        console.warn(\"Received unknown event structure:\", event);\n      }\n    }\n    console.log(`--- Streaming task ${streamingTaskId} finished ---`);\n  } catch (error) {\n    console.error(`Error during streaming task ${streamingTaskId}:`, error);\n  }\n}\n\nstreamTask();\n```\n\nThis client is designed to work with servers implementing the A2A protocol specification.\n\n\n## Enhancing A2A with the Agentic Profile\n\nThe Agentic Profile is a thin layer over A2A, MCP, and other HTTP protocols, and provides:\n\n- Globally unique - user and business scoped - agent identity\n- Universal authentication\n\nThe Agentic Profile is standards based:\n\n- [W3C DIDs](https://www.w3.org/TR/did-1.0/) and DID documents provide globally unique ids that are scoped to users and businesses\n- [IETF JSON Web Keys](https://datatracker.ietf.org/doc/html/rfc7517) provide universal authentication \n\n\n## Why do we need user and business scoped agent identity?\n\nIdentity is essential for digital communication between parties because it establishes trust, accountability, and context — without which meaningful, secure interaction is nearly impossible.\n\nCurrent agent protocols focus on individual agent identity, which while accomplishing the communications goal, does not establish trust and accountability which derive from clear relationships with the people or business the agent represents.\n\nFor example, you trust an employee of a bank because they are in the bank building, behind the counter, and wearing a company nametag.\n\n\n### How does the Agentic Profile solve this?\n\nThe Agentic Profile provides the digital equivalent of how we judge employees, by using a verifiable document provided by the person or business, and declaring all the agents that represent the person or business.\n\nFor example the business at the DNS domain matchwise.ai can have a \"chat-agent\", which combined becomes matchwise.ai#chat-agent.  [Concensys](https://consensys.io/) helped create the [DID specification](https://www.w3.org/TR/did-1.0/) which has a URI format that results in did:web:matchwise.ai#chat-agent.  DID documents (what you find using the did:web:matchwise.ai URI) provides a list of HTTP services, which are equivalent to agents.  The Agentic Profile simply lists the agents in the DID document services. \n\nWith the Agentic Profile, the person or business is the first class citizen, and all the agents that represent them are clearly defined.\n\n\n### How does A2A fit in?\n\nVery easily.  For each DID document service/agent, we specify the \"type\" as \"A2A\" and use the serviceEndpoint to reference the agent.json file.\n\n\n## Why do we need decentralized authentication?\n\nMost agent authentication is done using shared keys and HTTP Authorization headers.  While this is easy to implement, it is very insecure.\n\nAnother popular option is OAuth, but that has another host of problems including dramatically increasing the attack surface and the challenges of making sure both agents agree on the same authentication service provider.  OAuth is really good for human-to-service authentication, but not very good for dynamic environments where the agent might have to create a new account with a new authentication service or complete MFA.\n\n\n### How does the Agentic Profile solve this?\n\nPublic key cryptography, which is used extensively for internet communication, is ideal for decentralized authentication.  It is very easy to publish an agents public key via the Agentic Profile, and then the agent can use its secret key to authenticate.  JSON Web Tokens + EdDSA are mature and widely used standards, and the ones Agentic Profile uses.\n\nWith great options like JWT+EdDSA, centralized authentication systems like OAuth are unecessary.\n","readmeFilename":"README.md"}