{"_id":"bringyourownagent","_rev":"9-96d820f10acdb44265fcfacc901f7600","name":"bringyourownagent","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.0-stage":{"name":"bringyourownagent","version":"0.0.0-stage","_id":"bringyourownagent@0.0.0-stage","stub":true,"maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"dist":{"shasum":"d3d0ca70a740b4de470aa4e2f00ea100c89e6a0b","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-RQuCD+k5KbqFK5vcEBwOyiFWGBPzAWQMpM4zUhanuhLVb4SFWVzQXr3B2CzxaNuD0LY7hZFBaqpf9VZuUhgWEg==","signatures":[{"sig":"MEYCIQCnaKLlgdNkdh0GmYuArE7dncHe5rgnL4cBoK5tvgE+MwIhAMNCTYr75ap2pgpyrZOd4MOWP9ieyf1FUSYI3upHSvCL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":339},"_npmUser":{"name":"ultrathinker","email":"universeissilent42@gmail.com"},"deprecated":"Placeholder created by npm staged publishing. Use 0.0.1 or later.","description":"Temporary package placeholder for staged publishing","directories":{}},"0.0.1":{"name":"bringyourownagent","version":"0.0.1","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":"ultrathinker <universeissilent42@gmail.com> (https://github.com/ultrathinker)","license":"Apache-2.0","_id":"bringyourownagent@0.0.1","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"be022c648c4b081ba79367ba2763a76291d32028","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.1.tgz","fileCount":14,"integrity":"sha512-ZJz8kUZbDO1M3CtRzx3gd1c1QdE+1EzidD2xzlyBvW2RuiYS3em4zRD6Doejb/G1EB25Zh17pTO2xi5MNxrUdQ==","signatures":[{"sig":"MEUCIQCUc6ZE4T428BPLCraFhDLEeqaHoZueVd9XbOmAvw4yogIgY649nZgtiiP1yFCxBJ9+sT1IPpm4jVBvrhV9Docz1oA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGu02Gm3JQkOKKX22505aCcpQ+BNj6Oa9GNgjoRelT7tAiBWSdXSDSUlD46hRJW+2IQHFmwvGTUIZDXyct6KuT/nPw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66704},"main":"./src/index.js","type":"module","_from":"file:C:/VS_PROJECTS/_NonWork/BYOA/bringyourownagent/sdk/js","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --test"},"_npmUser":{"name":"ultrathinker","email":"universeissilent42@gmail.com"},"_resolved":"C:\\VS_PROJECTS\\_NonWork\\BYOA\\bringyourownagent\\sdk\\js","_integrity":null,"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation and the call gate.","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.1_1791633233027_0.7946145271409442","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"bringyourownagent","version":"0.0.2","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","_id":"bringyourownagent@0.0.2","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"8da382517858a7e150380826cb0f9a66e9017954","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.2.tgz","fileCount":14,"integrity":"sha512-sIH+6rvtKIhP4SLBkzardp3iewCaOM3fdssPInUA7EjpA0lRYdgiR+IZrImCG+Rp+0rshADvJ1tH7cu0g6xsFQ==","signatures":[{"sig":"MEQCIDvCjr+CfT/DcCD79oouFaLByP0Gyhokqv/7lL+Q8XKLAiBr6QJHDGBTeofz0/agTHsA3JmVK9qsBWFhuN3TtKS4XQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCcjt+ZU4sKYg/jQZN/46pr6bnMdPbNX97Ua6BaJGNHAgIgOSTrkTjkVuf9WuYuOCGeoTfVWAtQFVal21eDh6vT33g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66904},"main":"./src/index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"gitHead":"44f09bea22a8290aa1353de86e5840cbffcaa10b","scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.0","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation and the call gate.","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.2_1791634160212_0.11791217157732103","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"bringyourownagent","version":"0.0.3","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","_id":"bringyourownagent@0.0.3","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"7f61ae35d8ac8eebc0f8518e17511ab16630e8fd","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.3.tgz","fileCount":21,"integrity":"sha512-kMefrdNrvrSDDqdu4U3sbV9cBcvMF/Ki6djKx27YbmW/2fC3CsD4ISm1QPT/45QjOsVL54HvCjHFbkCA4UMvMA==","signatures":[{"sig":"MEQCIHpheHthX+1eabob08LJomq01jhdm69I17lOgCr1MOnnAiBqJaswigcnka7oNja75Ed/0rZQyJvOtiquQTc5wx1TTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIEUL/8Fnx0u5lqWWLc5VjYDeZUxMOFbxtJSXvrGFMCKQAiEAhNZt6UXsZOJPbuiQihUc2pZjaoHBUVFUDyY2geEEgDM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":148773},"main":"./src/index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./relay":{"types":"./src/site/relay.d.ts","default":"./src/site/relay.js"},"./browser":{"types":"./src/site/browser.d.ts","default":"./src/site/browser.js"},"./crossdevice":{"types":"./src/site/crossdevice.d.ts","default":"./src/site/crossdevice.js"},"./package.json":"./package.json"},"gitHead":"dfc0d04b5cee1de2a5aa283e10afcff01d20b672","scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.0","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.0"},"peerDependencies":{"ws":"^8.18.0"},"peerDependenciesMeta":{"ws":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.3_1793190901706_0.9238513215700516","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"bringyourownagent","version":"0.0.4","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","_id":"bringyourownagent@0.0.4","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"d394784c36f0efb80b590e0dbfd38d1ad8806e21","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.4.tgz","fileCount":21,"integrity":"sha512-gSjS9hEmHoS3EI2MuM0DqDPDDcUuEvLHiXa0kGuFqMfWT/j5aJ0ofKuNTyB3BmiKTyyOGG1Q2RqLnDl1yOgJNw==","signatures":[{"sig":"MEQCIC3MHN3aJ7pr6OrahI6SJCIQB+1mA+z483uldsHCoceiAiBMHdqo6mWzDh+u6zqMTlHsuO/dhBTN/Yj0aHB+enNLYg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGrVF7vVbo2MqXLLO6oKzquVHFCNvxxSlI7eVMmHkHecAiABOgYVqZgwtkFkb7SmXkGofOltXuQMVK6RcwevT73jYg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":162466},"main":"./src/index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./relay":{"types":"./src/site/relay.d.ts","default":"./src/site/relay.js"},"./browser":{"types":"./src/site/browser.d.ts","default":"./src/site/browser.js"},"./crossdevice":{"types":"./src/site/crossdevice.d.ts","default":"./src/site/crossdevice.js"},"./package.json":"./package.json"},"gitHead":"9301cd2579089d166b208696f3e5c229910e5457","scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.1","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.0"},"peerDependencies":{"ws":"^8.18.0"},"peerDependenciesMeta":{"ws":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.4_1793468106631_0.8364727413671839","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"bringyourownagent","version":"0.0.5","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","_id":"bringyourownagent@0.0.5","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"6d8890852234474d50a1e6e0a48d34ce15144a4f","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.5.tgz","fileCount":21,"integrity":"sha512-GgnUv/c+vDvTPxzPRYNqAWCBRMtiBm7O2F1nAMLGSBTvdjMto+ZZWuImayixU47JpidSdtS+B82QnFofl7GJuQ==","signatures":[{"sig":"MEQCICb7rQLCoVnHmeNpBFbStQzr1VQfqp34fmN64jFjPkTgAiA4f1Tsu8NuKn53GDrETZHzc3HvkKihvJSUSU40fGPiOA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHGoTdpE9Pwk5soCg9sNvjpM6me4sOXGfEbj6BCaJgIvAiBnPxmPqjWiVKaSLMa4qlTDeJj+RKfpb+oVxRqYfHpSTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":162813},"main":"./src/index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./relay":{"types":"./src/site/relay.d.ts","default":"./src/site/relay.js"},"./browser":{"types":"./src/site/browser.d.ts","default":"./src/site/browser.js"},"./crossdevice":{"types":"./src/site/crossdevice.d.ts","default":"./src/site/crossdevice.js"},"./package.json":"./package.json"},"gitHead":"b388590de0ed7f95e9112972b23467459eb73fc0","scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.1","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.0"},"peerDependencies":{"ws":"^8.18.0"},"peerDependenciesMeta":{"ws":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.5_1793525974186_0.25252545176560637","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"bringyourownagent","version":"0.0.6","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","_id":"bringyourownagent@0.0.6","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"homepage":"https://bringyourownagent.org","bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"bin":{"bringyourownagent":"bin/bringyourownagent.js"},"dist":{"shasum":"c655ab2aacd342c29ec7e0ea4858856b18ec624d","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.6.tgz","fileCount":21,"integrity":"sha512-grcR3UfH0wqFnerWu47jR0MpsOpAjh+9sE4h+WPGqJ2fDzMYB+cjX4y/Dvo2jB5qbZD9/LzUxiLemW+ACl5gOw==","signatures":[{"sig":"MEQCIChTNlJl4/jU/UANhJ++UxkPrmgbnJ9BdFLgRWsCUwJvAiBVHG0BaAsXJhodenMNPgxy7Maibj1xIqk8LMPeiMIOYg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDhdpkNilNL0FFvqGV8KrICq70P6z411BD6XVZY6GX7BgIgPu9Q6vphO1o5iU01yAOrg0dnSd1/apt/GQ6qK2QhKu0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":168532},"main":"./src/index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./relay":{"types":"./src/site/relay.d.ts","default":"./src/site/relay.js"},"./browser":{"types":"./src/site/browser.d.ts","default":"./src/site/browser.js"},"./crossdevice":{"types":"./src/site/crossdevice.d.ts","default":"./src/site/crossdevice.js"},"./package.json":"./package.json"},"gitHead":"f230ae6b1049680ec7509a17771dd5232e2eb81e","scripts":{"test":"node --test"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.1","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.0"},"peerDependencies":{"ws":"^8.18.0"},"peerDependenciesMeta":{"ws":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/bringyourownagent_0.0.6_1793532656402_0.4458179047680326","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"_id":"bringyourownagent@0.0.7","bin":{"bringyourownagent":"bin/bringyourownagent.js"},"bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"dist":{"shasum":"22e1ba5c395afd13b6d309969f323023fa4e196e","tarball":"https://registry.npmjs.org/bringyourownagent/-/bringyourownagent-0.0.7.tgz","fileCount":21,"integrity":"sha512-ohFZYR/VdBSJ1dP7xz2xG1mx++DfH6KbIWFVHJlbJxbBhGLkrkfkymspNfuhyP/CXplLv+oHD273oKcjAnZjwA==","signatures":[{"sig":"MEQCIBiXpaOCS09OXbHmW1X3BgMhhZmctJeea67g7angFM5MAiBZJjbHqMFcq1DjuqlVgItWnna4n7jCI2PsBmyLmI0ykA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHelEyxmFGZ9i7qZtI4oC4R2i4VvdqgV8ica50cZsHZWAiEAyYrGeN1q9GDkuqisXxeDw3saw+7wEYjTIdtisO4+hqM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bringyourownagent@0.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":172231},"main":"./src/index.js","name":"bringyourownagent","type":"module","types":"./index.d.ts","author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","default":"./src/index.js"},"./relay":{"types":"./src/site/relay.d.ts","default":"./src/site/relay.js"},"./browser":{"types":"./src/site/browser.d.ts","default":"./src/site/browser.js"},"./crossdevice":{"types":"./src/site/crossdevice.d.ts","default":"./src/site/crossdevice.js"},"./package.json":"./package.json"},"gitHead":"bc7abdd3360bc4366c956852e59de054644dfae8","license":"Apache-2.0","scripts":{"test":"node --test"},"version":"0.0.7","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"48176396-21ca-485f-909a-362c4b7042b6"}},"homepage":"https://bringyourownagent.org","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"_npmVersion":"11.19.1","description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","directories":{},"maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.22.1","_hasShrinkwrap":false,"devDependencies":{"ws":"^8.18.0"},"peerDependencies":{"ws":"^8.18.0"},"peerDependenciesMeta":{"ws":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bringyourownagent_0.0.7_1793612540499_0.1353536019093653"}}},"time":{"created":"2026-10-10T11:52:57.722Z","modified":"2026-11-02T09:42:20.947Z","0.0.0-stage":"2026-10-10T11:52:57.722Z","0.0.1":"2026-10-10T11:53:53.111Z","0.0.2":"2026-10-10T12:09:20.296Z","0.0.3":"2026-10-28T12:35:01.817Z","0.0.4":"2026-10-31T17:35:06.717Z","0.0.5":"2026-11-01T09:39:34.258Z","0.0.6":"2026-11-01T11:30:56.511Z","0.0.7":"2026-11-02T09:42:20.588Z"},"bugs":{"url":"https://github.com/bringyourownagent/bringyourownagent/issues"},"author":{"url":"https://github.com/ultrathinker","name":"ultrathinker","email":"universeissilent42@gmail.com"},"license":"Apache-2.0","homepage":"https://bringyourownagent.org","keywords":["byoa","bring-your-own-agent","ai","agents","agent-wallet","protocol","manifest","grant","local-models"],"repository":{"url":"git+https://github.com/bringyourownagent/bringyourownagent.git","type":"git","directory":"sdk/js"},"description":"Early draft reference implementation of BYOA (Bring Your Own Agent): manifest validation, the call gate, and the site's side of the wallet connection (page helpers and a relay for the direct link).","maintainers":[{"name":"ultrathinker","email":"universeissilent42@gmail.com"}],"readme":"# bringyourownagent (Node.js)\n\nThis is an early draft implementation of **BYOA (Bring Your Own Agent)**, an open protocol that lets websites and apps use the visitor's own AI agents (their subscriptions, API keys, connected accounts, local models or home servers) within limits the visitor sets. Versions 0.0.x implement only the first rules: it checks a requester's **manifest**, and it decides whether one **call** may go ahead under the visitor's **grant**. The rules are a [draft for discussion](https://github.com/bringyourownagent/bringyourownagent/blob/main/spec/rules-0.1-draft.md) and will change. ES module, Node.js 18 or newer, zero dependencies, TypeScript types included.\n\n## Install\n\n```sh\nnpm install bringyourownagent\n```\n\nThe package and its command are both named `bringyourownagent`.\n\n## Example\n\nWith the manifest shown on the BYOA site ([`sdk/examples/manifest.json`](https://github.com/bringyourownagent/bringyourownagent/blob/main/sdk/examples/manifest.json): a family geography game, voice clips up to 15 seconds):\n\n```js\nimport { readFileSync } from 'node:fs';\nimport { validateManifest, checkCall } from 'bringyourownagent';\n\nconst manifest = JSON.parse(readFileSync('manifest.json', 'utf8'));\nconsole.log(validateManifest(manifest).ok);               // true\n\nconst grant = { byoa: '0.1-draft', skills: ['audio.transcribe'],\n  budget: { perSession: '0.20 USD' }, expiresAt: '2026-10-10T13:00:00Z' };\nconst call = { skill: 'audio.transcribe', at: '2026-10-10T12:00:00Z', provider: 'local-model',\n  estimatedCost: '0 USD', input: { clipSeconds: 42 } };\nconst result = checkCall(manifest, grant, call, { spent: '0.04 USD' });\nconsole.log(result.decision, result.reasons[0].code);    // blocked clip-too-long\n```\n\n- `validateManifest(manifest)` returns `{ ok, errors, warnings }`; each item is `{ code, path, message }` with a stable code and a JSON Pointer path. Problems are returned as data, never thrown.\n- `checkCall(manifest, grant, call, state?)` returns `{ decision, reasons }`. The decision is one of `allowed`, `warn`, `ask`, `blocked`; each reason has a stable code. Invalid input blocks the call instead of throwing.\n- While a limit or warning needs a measurement, the call must state it: `input.clipSeconds` under a clip limit, `input.textChars` under a text limit or a \"warn me if it sends text\" condition. Use `0` when there is no such input; a missing value blocks the call.\n- `checkCall` only evaluates. Your wallet runs the call, then records its time and real cost in the state, and must not check two calls of one grant against the same state at once (see \"Execution contract\" in the rules).\n- Money is handled as BigInt micro-units, never as floating point: `'0.1 USD'` plus `'0.2 USD'` fits a budget of `'0.3 USD'` exactly.\n\n## The purpose judge hook\n\nThe hard limits are checked by code. Judging whether a call fits the declared purpose in words needs a model, and is not part of this library. It plugs in as a judge that returns an opinion (`{ decision, code?, message? }`) or `null`. An opinion can only make the decision stricter; a judge that throws, returns something else or is not a function gives `ask`.\n\n```js\nconst result = checkCall(manifest, grant, call, state, { judge: mySyncJudge });\n```\n\nA judge that calls a model is usually asynchronous. Check first, and ask the judge only if the call is not already blocked:\n\n```js\nimport { applyOpinion, checkCall } from 'bringyourownagent';\n\nasync function decide(manifest, grant, call, state) {\n  const result = checkCall(manifest, grant, call, state);\n  if (result.decision === 'blocked') return result;\n  let opinion;\n  try {\n    opinion = await myAsyncJudge(manifest, grant, call);\n  } catch {\n    opinion = { decision: 'ask', code: 'purpose-judge-error', message: 'the purpose judge failed' };\n  }\n  return applyOpinion(result, opinion);\n}\n```\n\n## Command line\n\n```sh\nnpx bringyourownagent validate manifest.json\nnpx bringyourownagent check --manifest manifest.json --grant grant.json --call call.json [--state state.json]\nnpx bringyourownagent check --json ...      # machine-readable output\n```\n\nExit codes: `0` the manifest is valid or the call may proceed (`allowed`, `warn`); `1` the manifest is invalid or the call may not proceed (`ask`, `blocked`); `2` usage error or unreadable input. Example files are in [`sdk/examples/`](https://github.com/bringyourownagent/bringyourownagent/tree/main/sdk/examples).\n\n## For sites: reach the visitor's agent wallet (draft)\n\nBesides the rules, the package has the two halves of a site that asks the visitor's own agent wallet for AI. They follow [spec/CONTRACT.md](https://github.com/bringyourownagent/bringyourownagent/blob/main/spec/CONTRACT.md) and [spec/CONTRACT-DIRECT.md](https://github.com/bringyourownagent/bringyourownagent/blob/main/spec/CONTRACT-DIRECT.md). A complete example site is in [`sdk/examples/site/`](https://github.com/bringyourownagent/bringyourownagent/tree/main/sdk/examples/site).\n\n**In the page** (`bringyourownagent/browser`, no dependencies, an ES module):\n\n```js\nimport { hasExtension, requestWithExtension, callWithExtension, connectWithoutExtension } from 'bringyourownagent/browser';\n\nbutton.onclick = async () => {              // both need a click\n  if (hasExtension()) {\n    const grant = await requestWithExtension(manifest);          // null: AI unavailable, use your own path\n    const answer = await callWithExtension(grant, 'text.generate', { messages }, { choices: ['yes', 'no'] });\n  } else {\n    const r = await connectWithoutExtension({                     // starts the wallet with a bringyourownagent:// link\n      onIssued: ({ link, check }) => showWaiting(check, link),    // show the check code big; the wallet shows the same\n    });\n    // r = { state: 'connected', pairing } | { state: 'timeout' | 'expired' | 'cancelled' | 'error' }\n  }\n};\n```\n\nWhile the page waits it shows the **check code** in large letters, with a line like \"Your wallet will show this code. Allow only if it matches.\" The wallet shows the same four characters before Allow, so a link that somebody else sent to the visitor cannot pair his wallet with their page (spec/CONTRACT-DIRECT.md section 3a).\n\n**On your server** (`bringyourownagent/relay`, needs `npm install ws`):\n\n```js\nimport { createRelay } from 'bringyourownagent/relay';\n\nconst relay = createRelay({ manifest, endpoint: 'wss://your-host/byoa/ws', connectCheck: true });   // the manifest is validated now\nawait relay.attach(httpServer, '/byoa/ws');                                      // the wallet connects here\n\n// your routes: POST /byoa/code      -> relay.newCode(pageKey, { ip })     { code, link, check }   (ip: the connection's, or your proxy's header)\n//              GET  /byoa/state     -> relay.codeState(pageKey, code)     { state, pairing? }\n//              POST /byoa/cancel    -> relay.cancel(pageKey, code)\n\nconst wallet = relay.walletFor(pairing);                                          // what the page kept after connecting\nconst answer = await wallet?.call('text.generate', { messages }, { maxTokens: 8, choices: ['yes', 'no'] });\n// { ok: true, output: { text }, receipt } or { ok: false }; never an exception. The answer is user input.\n```\n\nThe relay keeps codes (192 random bits, 10 minutes, single use, rate limited per address and per page) and pairings in memory, sends nothing before a valid `hello`, echoes the manifest in `welcome`, allows 4 calls in flight per wallet (a bounded queue behind them; the wait counts from the call), gives the first call after a connect a longer wait, drops a silent or over-old connection, caps open sockets, and cuts what a wallet hands back down to what the skill defines (a receipt of two short strings, an `output` under 64 KB). The grant it passes on is the contract's own shape: `wallet.grant.capabilities` (the closed list of wallet 0.36), `models` (the text list the calls use) and `modelsBySkill` (every skill's participants), each entry with the `can` and, for an agent, `abilities` verdicts the wallet gave — booleans only, at most four keys, unknown names dropped (spec/CONTRACT.md section 3.3). A picture call, `wallet.call('image.generate', { prompt, references, count, aspect, maxSide, maxBytes }, { model })` (wallet 0.37), answers `{ ok: true, output: { images: [{ mime, size, sha256, data, reduced }] } }`: the relay joins the wallet's picture parts and checks size, SHA-256 and the type the bytes are (spec/CONTRACT.md section 3.7). `wallet.on('failing')` tells you when three calls in a row failed. The pairing is a secret of your server: keep it server-side, not in script the page can read. Behind a reverse proxy, forward the WebSocket path (Apache: `ProxyPass /byoa/ws ws://127.0.0.1:PORT/byoa/ws`).\n\n**For a visitor on a phone, or on a computer with no wallet** (`bringyourownagent/crossdevice`, no dependencies, an ES module): a phone browser does not launch the wallet's link, so offer the link for another device instead. After `POST /byoa/code` has answered `{ link, check }`:\n\n```js\nimport { createCrossDeviceBlock, isMobileBrowser, CROSS_DEVICE_CSS } from 'bringyourownagent/crossdevice';\n\nif (isMobileBrowser()) {                       // nothing on a phone handles bringyourownagent://, so do not fire the link there\n  waitingArea.append(createCrossDeviceBlock({ link, check }));   // the check code, the link to copy, Share (where there is one), a QR code\n}\n// On a computer the link probably started the wallet. Offer the same block there too (beside the waiting text, or behind a \"Use my phone\" button):\n// its QR code is for the phone's camera.\n// webWallet: 'https://wallet.example/'  your own web wallet instead of the project's (https://wallet.bringyourownagent.org/, \"Agent wallet (web)\"),\n//                                       which the block offers by default: a button, and the QR code opens it with the link. `webWallet: null` offers none.\n// handoff:   'https://your-host/byoa/hand/<token>'  offers an https address instead of the raw link, and the QR code carries it: it is short, so it always\n//                                                  fits (spec/CONTRACT-PAIR.md section 2; the .NET relay's `HandOff = true` makes it). `short` is its typed form\n```\n\nThe block is built with the DOM and everything is set as text, never as markup. The QR code is made here (a small encoder, no network). We recommend it for the visitor whose wallet is on a phone: he photographs it from the screen, and the code carries `<web wallet>#link=<link>`, which the phone opens in the project's native wallet when that is installed (an Android App Link) and in the web wallet otherwise; either one asks with the check code. A real link carries the site's manifest and is often over 3,000 characters, more than any QR code holds (2,953 bytes): give the block the `handoff` address then, and the code carries that; without one, a link that is too long gets one plain line in place of the code. The block shows the code on a computer and leaves it out on a phone, which cannot photograph its own screen (`showQr: true` shows it anyway). See [spec/CONTRACT-PAIR.md](https://github.com/bringyourownagent/bringyourownagent/blob/main/spec/CONTRACT-PAIR.md) (section 5 for the QR code and the App Link); in the wallet the visitor opens Sites, chooses **Connect a site by link…** and pastes the link.\n\n## Development\n\nThe tests include the shared test vectors in `sdk/test-vectors/`, which the Python package must pass identically. From `sdk/js/` in the repository:\n\n```sh\nnpm test        # node --test\n```\n\n## Links\n\n- Website: <https://bringyourownagent.org>\n- Repository: <https://github.com/bringyourownagent/bringyourownagent>\n- Rules implemented here (draft): [spec/rules-0.1-draft.md](https://github.com/bringyourownagent/bringyourownagent/blob/main/spec/rules-0.1-draft.md)\n- Python package with the same rules: [`bringyourownagent` on PyPI](https://pypi.org/project/bringyourownagent/)\n- Changes between versions: [CHANGELOG](https://github.com/bringyourownagent/bringyourownagent/blob/main/sdk/CHANGELOG.md). Releases are published only from GitHub Actions through trusted publishing.\n\n## License\n\n[Apache License 2.0](LICENSE).\n","readmeFilename":"README.md"}