{"_id":"@microsoft/agent-host-protocol","_rev":"13-acc44a9ced061f948e312aac34644601","name":"@microsoft/agent-host-protocol","dist-tags":{"latest":"0.9.0"},"versions":{"0.2.0":{"name":"@microsoft/agent-host-protocol","version":"0.2.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.2.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"a4d6af9cea18179f67fdaf87900dd79abe474d53","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.2.0.tgz","fileCount":297,"integrity":"sha512-LvmSCvy43ppbta0UC9PdkDZM9RabUvPgsCVMzlBakF5J2i4cTwlAcRmQZIC8/OtWknj3fxVwEmQV9mqj3lIpcQ==","signatures":[{"sig":"MEUCIA7XlvgrNRw/6n6SM3kb4EUcPKuP189MrnwZ1rS+N2zBAiEAtwApheS+c5M/n/7kjK7PsOg4me0CxvSh5PDLH7R2nOY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1180336},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\33440428-5d91-4589-a688-17718c94ed12\\microsoft-agent-host-protocol-0.2.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\33440428-5d91-4589-a688-17718c94ed12\\microsoft-agent-host-protocol-0.2.0.tgz","_integrity":"sha512-LvmSCvy43ppbta0UC9PdkDZM9RabUvPgsCVMzlBakF5J2i4cTwlAcRmQZIC8/OtWknj3fxVwEmQV9mqj3lIpcQ==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.2.0_1780070473426_0.47197534768469174","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@microsoft/agent-host-protocol","version":"0.3.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.3.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"9b05bb6d429c0275399ea99997a735c94c9325cf","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.3.0.tgz","fileCount":297,"integrity":"sha512-znmpzVfDUfISAMiyM4cnEpjEjTAbEqQp3rdk75M25pHR2KJ2/FlgcVs7ktG3l090+XKsj4JA4zpxir5n1hgPaQ==","signatures":[{"sig":"MEUCIQClSlZVYECF54wUCVTsfCu+Acu0NmAPTolYep4FMDnugQIgOj98m4vlxMHcn/I4otFKu1mxsu7NVzUcgDVepo0RIDg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1238818},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\4a140607-f92f-4855-8739-d27f471f09f5\\microsoft-agent-host-protocol-0.3.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\4a140607-f92f-4855-8739-d27f471f09f5\\microsoft-agent-host-protocol-0.3.0.tgz","_integrity":"sha512-znmpzVfDUfISAMiyM4cnEpjEjTAbEqQp3rdk75M25pHR2KJ2/FlgcVs7ktG3l090+XKsj4JA4zpxir5n1hgPaQ==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.3.0_1780937755637_0.8762894586278389","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@microsoft/agent-host-protocol","version":"0.4.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.4.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"148a4b47944f5aa4743332abaa1af9d8928d5bd2","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.4.0.tgz","fileCount":332,"integrity":"sha512-+O5MmDS+2A/Ry8nEGQAHOLK8+hTPRlJiKhWtFD1xOdVPPtGay+8zPhIxp2eEfywVijyAcv54EWAVjf7OBJmbMg==","signatures":[{"sig":"MEYCIQDlF1vNZS+/ozfrxlEJrqi//wUvJFb8QGS8UYHMEo4S+AIhAPCSIPpEmCrHzTnR+477zLUNEUYcSLdBE6JR8uVtOaNs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1353415},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\8873f656-a53f-492e-bca3-b5395d5e6047\\microsoft-agent-host-protocol-0.4.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App2\\temp\\8873f656-a53f-492e-bca3-b5395d5e6047\\microsoft-agent-host-protocol-0.4.0.tgz","_integrity":"sha512-+O5MmDS+2A/Ry8nEGQAHOLK8+hTPRlJiKhWtFD1xOdVPPtGay+8zPhIxp2eEfywVijyAcv54EWAVjf7OBJmbMg==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.4.0_1781904391313_0.06104745054805605","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@microsoft/agent-host-protocol","version":"0.5.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.5.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"9c7bcfe48311b487229e4cb787c6be8c63d31e1e","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.5.0.tgz","fileCount":332,"integrity":"sha512-R8HEZ81QHT1FjWlTKdiNNf8Ld5+Coj/OsZQOZnevkT+fA0J6a/9Y3UyevsFXb/Y6geAthWdF7RX7aHL2x44gcA==","signatures":[{"sig":"MEUCIQD2BSUoeuJsmwJMucXHNwIPZ3IOaqj4ctsYqzKqzup8cwIgLC8dGHPCnKlZObnBfMNlTLbEFX8atnMZ+wSSHQMcPnU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1369870},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\0e2fba4f-8539-4c1e-b4d1-75cdf56ee506\\microsoft-agent-host-protocol-0.5.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\0e2fba4f-8539-4c1e-b4d1-75cdf56ee506\\microsoft-agent-host-protocol-0.5.0.tgz","_integrity":"sha512-R8HEZ81QHT1FjWlTKdiNNf8Ld5+Coj/OsZQOZnevkT+fA0J6a/9Y3UyevsFXb/Y6geAthWdF7RX7aHL2x44gcA==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.5.0_1782534233051_0.5569978960611162","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@microsoft/agent-host-protocol","version":"0.5.1","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.5.1","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"e48ab6d055f625a78c50b02a9c6a9e3331ad3b65","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.5.1.tgz","fileCount":332,"integrity":"sha512-0rRfHtcFpKErIAS720wqNuK81pD0mdPGftydcteWgtGH/PMbmnJxmNrnDM1OIsI0RTewkXyNDLklbBiKg610NA==","signatures":[{"sig":"MEUCID+L60pM2cA61SVF8neJZcf98oMzi7XRDP12RwSI/AmJAiEA0cTorPLCNXPkRUwh9PuDjMn+Q7iXiENMVyVaA83Ed7s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1420204},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\bb3d1386-47fc-4449-b1c6-dfa6a6c053e8\\microsoft-agent-host-protocol-0.5.1.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\bb3d1386-47fc-4449-b1c6-dfa6a6c053e8\\microsoft-agent-host-protocol-0.5.1.tgz","_integrity":"sha512-0rRfHtcFpKErIAS720wqNuK81pD0mdPGftydcteWgtGH/PMbmnJxmNrnDM1OIsI0RTewkXyNDLklbBiKg610NA==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.5.1_1783023764202_0.2957035421437444","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@microsoft/agent-host-protocol","version":"0.5.2","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.5.2","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"7bf9d60c0e295065666cfd14518b67970d15c0de","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.5.2.tgz","fileCount":332,"integrity":"sha512-TVIFIM15NWry5jKZIck4SlbiXcbBWVqJzXjJ77wUloTmiQPnNGJk/DfgEhpozRxZqawvHAMi7ys8LcQlUwqmiA==","signatures":[{"sig":"MEUCICe0DWVUwoC/ESZl1q+mlnE6RXKoA04ErdyGGw8sdPUHAiEAqcbfxhrsxXCy1Blz9WhfREqTmVIbo3LWbbHH29BazSQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1473003},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\d1076bc5-8cb8-435d-bba3-9c2de9535cac\\microsoft-agent-host-protocol-0.5.2.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\d1076bc5-8cb8-435d-bba3-9c2de9535cac\\microsoft-agent-host-protocol-0.5.2.tgz","_integrity":"sha512-TVIFIM15NWry5jKZIck4SlbiXcbBWVqJzXjJ77wUloTmiQPnNGJk/DfgEhpozRxZqawvHAMi7ys8LcQlUwqmiA==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.5.2_1783632629191_0.16776431615899456","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@microsoft/agent-host-protocol","version":"0.6.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.6.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"4d8718e2d84e984e6eaa08d8793d950ddffe4d86","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.6.0.tgz","fileCount":332,"integrity":"sha512-ckr9XLadXmUfF2lWSwTMu+VoJH0l8qbLfsWuoL7riIOGFCBml4JWIZYeIrPl18xrfbdeM4u2Jlu/OVjz8qbUpQ==","signatures":[{"sig":"MEQCIAduaa6dG9jOvUcKprT2jfcWL+CCEANNXY1Yor76d+g4AiAo/xpVwb2p1glPH9VVcsVLWh7kmjTIax5eBrNNwkPADw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1524895},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\6b2cc663-cb64-4005-902c-ebb19958514f\\microsoft-agent-host-protocol-0.6.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\6b2cc663-cb64-4005-902c-ebb19958514f\\microsoft-agent-host-protocol-0.6.0.tgz","_integrity":"sha512-ckr9XLadXmUfF2lWSwTMu+VoJH0l8qbLfsWuoL7riIOGFCBml4JWIZYeIrPl18xrfbdeM4u2Jlu/OVjz8qbUpQ==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.6.0_1784573123918_0.96439478176143","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@microsoft/agent-host-protocol","version":"0.7.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.7.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"5ef70e0f9cd0fa2ae8ed5a7a9dde238ffe63e91a","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.7.0.tgz","fileCount":332,"integrity":"sha512-sUBNkYTwvAxUWHWMTe7XlE8MVYpLbeGe57Z3hQGqcaSL28JBqcEbmCaxxnx/x6G9i/rAQGJ4O6wJT3xcAFL7gg==","signatures":[{"sig":"MEYCIQDTkAfpvxB+dyRN89GLXc1S6qfTQFOvWx9211j085jI0QIhAN/6Bw2WWfdNRJa2jQElj1WaJUaSB+xb3Lq1z3l5Qhu0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1572834},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\a7318101-7ce5-4d34-bee1-289d2a9d5605\\microsoft-agent-host-protocol-0.7.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\a7318101-7ce5-4d34-bee1-289d2a9d5605\\microsoft-agent-host-protocol-0.7.0.tgz","_integrity":"sha512-sUBNkYTwvAxUWHWMTe7XlE8MVYpLbeGe57Z3hQGqcaSL28JBqcEbmCaxxnx/x6G9i/rAQGJ4O6wJT3xcAFL7gg==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.7.0_1786036949551_0.25474843711115236","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@microsoft/agent-host-protocol","version":"0.8.0","keywords":["ahp","agent","protocol","json-rpc","websocket"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@microsoft/agent-host-protocol@0.8.0","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"homepage":"https://microsoft.github.io/agent-host-protocol/","bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"tag":"latest","dist":{"shasum":"c0fcb1e1a92597f2107ea4aa2dd9f0d521ddbb82","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.8.0.tgz","fileCount":332,"integrity":"sha512-Tg1EsWXENx55RB3igfaSTclxvck2RcBS+LPRSGxi86yLhoeJgldtjSH5aDZZTll0tSw7fzbkSOte3/B9ExRFVg==","signatures":[{"sig":"MEUCIQCP0h5Jo1fTEHpwLvm0R8AMdF3dp/dBDzJP2+8LlHuojAIgAWvNrjF6j2HzbjqcOy7IbKfrZK0OMPbh1mMaYkIsCrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1571397},"main":"./dist/types/index.js","type":"module","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\de9195c3-ac0a-4673-8311-0ed2ec33dffc\\microsoft-agent-host-protocol-0.8.0.tgz","types":"./dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/types/index.js"},"./ws":{"types":"./dist/ws/index.d.ts","import":"./dist/ws/index.js"},"./hosts":{"types":"./dist/client/hosts/index.d.ts","import":"./dist/client/hosts/index.js"},"./client":{"types":"./dist/client/index.d.ts","import":"./dist/client/index.js"}},"scripts":{"test":"node --test --import tsx test/*.test.ts","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\de9195c3-ac0a-4673-8311-0ed2ec33dffc\\microsoft-agent-host-protocol-0.8.0.tgz","_integrity":"sha512-Tg1EsWXENx55RB3igfaSTclxvck2RcBS+LPRSGxi86yLhoeJgldtjSH5aDZZTll0tSw7fzbkSOte3/B9ExRFVg==","repository":{"url":"git+https://github.com/microsoft/agent-host-protocol.git","type":"git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","directories":{},"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.7.0","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-host-protocol_0.8.0_1787016430127_0.9948536857852992","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@microsoft/agent-host-protocol","version":"0.9.0","description":"TypeScript client for the Agent Host Protocol (AHP).","type":"module","license":"MIT","author":{"name":"Microsoft Corporation"},"homepage":"https://microsoft.github.io/agent-host-protocol/","repository":{"type":"git","url":"git+https://github.com/microsoft/agent-host-protocol.git","directory":"clients/typescript"},"bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"keywords":["ahp","agent","protocol","json-rpc","websocket"],"main":"./dist/types/index.js","types":"./dist/types/index.d.ts","exports":{".":{"import":"./dist/types/index.js","types":"./dist/types/index.d.ts"},"./client":{"import":"./dist/client/index.js","types":"./dist/client/index.d.ts"},"./hosts":{"import":"./dist/client/hosts/index.js","types":"./dist/client/hosts/index.d.ts"},"./ws":{"import":"./dist/ws/index.js","types":"./dist/ws/index.d.ts"}},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"node --test --import tsx test/*.test.ts","clean":"rm -rf dist"},"devDependencies":{"@types/node":"^22.10.0","tsx":"^4.19.0","typescript":"^5.7.0"},"_id":"@microsoft/agent-host-protocol@0.9.0","_integrity":"sha512-XY6zOqLSqlNianiWbEpZkzKRB2AKwcDPk9yAbp+afxyxhWzTfpJKy+03T5rIipJDnqf45rXiJ5JV/dzUA8JHLw==","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\d4b37be2-0bcd-4db6-8597-7688a51dd567\\microsoft-agent-host-protocol-0.9.0.tgz","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\d4b37be2-0bcd-4db6-8597-7688a51dd567\\microsoft-agent-host-protocol-0.9.0.tgz","tag":"latest","_nodeVersion":"18.5.0","dist":{"integrity":"sha512-XY6zOqLSqlNianiWbEpZkzKRB2AKwcDPk9yAbp+afxyxhWzTfpJKy+03T5rIipJDnqf45rXiJ5JV/dzUA8JHLw==","shasum":"2663646c7cc69ad883434df97c12bda7fd40cdc9","tarball":"https://registry.npmjs.org/@microsoft/agent-host-protocol/-/agent-host-protocol-0.9.0.tgz","fileCount":372,"unpackedSize":1717021,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFLHBM3kZDwggoHNeWfXuqETxB0foWrFGQDaMPngOc+/AiADuDDtblUdq2QwLA6oY+GNBYTBl2bFmuTfARmHWf1ssA=="}]},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"directories":{},"maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-host-protocol_0.9.0_1787953245767_0.9741116144729325"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-29T16:01:13.302Z","modified":"2026-08-28T21:40:46.336Z","0.2.0":"2026-05-29T16:01:13.661Z","0.3.0":"2026-06-08T16:55:55.784Z","0.4.0":"2026-06-19T21:26:31.527Z","0.5.0":"2026-06-27T04:23:53.195Z","0.5.1":"2026-07-02T20:22:44.378Z","0.5.2":"2026-07-09T21:30:29.348Z","0.6.0":"2026-07-20T18:45:24.108Z","0.7.0":"2026-08-06T17:22:29.746Z","0.8.0":"2026-08-18T01:27:10.291Z","0.9.0":"2026-08-28T21:40:45.928Z"},"bugs":{"url":"https://github.com/microsoft/agent-host-protocol/issues"},"author":{"name":"Microsoft Corporation"},"license":"MIT","homepage":"https://microsoft.github.io/agent-host-protocol/","keywords":["ahp","agent","protocol","json-rpc","websocket"],"repository":{"type":"git","url":"git+https://github.com/microsoft/agent-host-protocol.git","directory":"clients/typescript"},"description":"TypeScript client for the Agent Host Protocol (AHP).","maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"readme":"# @microsoft/agent-host-protocol\n\nTypeScript client for the [Agent Host Protocol (AHP)](https://microsoft.github.io/agent-host-protocol/).\n\n[![npm](https://img.shields.io/npm/v/@microsoft/agent-host-protocol.svg)](https://www.npmjs.com/package/@microsoft/agent-host-protocol)\n\nBrowser-friendly client built on the global `WebSocket` API. Works in\nmodern browsers and Node 21+ without additional runtime dependencies.\n\n## Entry points\n\nThe package exposes four subpath exports:\n\n| Import path | What it gives you |\n|---|---|\n| `@microsoft/agent-host-protocol`        | Wire types, actions, commands, reducers, version constants. No I/O. |\n| `@microsoft/agent-host-protocol/client` | `AhpClient`, `Subscription`, `AhpStateMirror`, the `AhpTransport` interface, `InMemoryTransport`, and the error taxonomy. |\n| `@microsoft/agent-host-protocol/hosts`  | `MultiHostClient`, `HostClientHandle`, `ReconnectPolicy`, `ClientIdStore` (with `InMemoryClientIdStore`), `MultiHostStateMirror`, and the `Host*Error` family. Builds on `/client` to manage one or more host connections with reconnect, generation-checked handles, and fan-in events. |\n| `@microsoft/agent-host-protocol/ws`     | `WebSocketTransport` — an `AhpTransport` implementation backed by the global `WebSocket`. |\n\nThe split mirrors the Rust SDK (`ahp-types`, `ahp`, `ahp::hosts`,\n`ahp-ws`) — wire types and reducers are decoupled from the client,\nwhich is in turn decoupled from a specific transport and from the\nmulti-host orchestration layer.\n\n## Quickstart\n\n```ts\nimport { ActionType, type ActionEnvelope } from '@microsoft/agent-host-protocol';\nimport { AhpClient, AhpStateMirror } from '@microsoft/agent-host-protocol/client';\nimport { WebSocketTransport } from '@microsoft/agent-host-protocol/ws';\n\nconst transport = await WebSocketTransport.connect('ws://localhost:12345');\nconst client = new AhpClient(transport);\nconst mirror = new AhpStateMirror();\n\nclient.connect();\n\nconst init = await client.initialize({\n  clientId: 'my-client',\n  protocolVersions: ['0.3.0'],\n  initialSubscriptions: ['ahp-root://'],\n});\n\nfor (const snapshot of init.snapshots) {\n  mirror.applySnapshot(snapshot);\n}\n\nconst root = client.attachSubscription('ahp-root://');\n(async () => {\n  for await (const event of root) {\n    if (event.type === 'action') mirror.apply(event.params);\n  }\n})();\n\nconst sessionUri = `ahp-session:/${crypto.randomUUID()}`;\nclient.dispatch(sessionUri, {\n  type: ActionType.SessionTurnStarted,\n  // … remaining action fields\n} as unknown as ActionEnvelope['action']);\n```\n\n## Pluggable transports\n\n`AhpClient` is transport-agnostic. Any framed message stream — a\nWebSocket, a Unix socket, stdio, or an in-memory pair for tests — can\nback an `AhpTransport`:\n\n```ts\nimport type { AhpTransport, TransportFrame, JsonRpcMessage } from '@microsoft/agent-host-protocol/client';\n\nclass MyTransport implements AhpTransport {\n  send(message: JsonRpcMessage | string): void { /* … */ }\n  async recv(): Promise<TransportFrame | null> { /* … */ }\n  close(): void { /* … */ }\n}\n```\n\n`InMemoryTransport.pair()` returns two connected halves that exchange\ntext frames — handy for unit tests that don't need a real socket.\n\n## Reducers and state mirror\n\nThe reducer functions (`rootReducer`, `sessionReducer`,\n`terminalReducer`, `changesetReducer`) are pure: replaying actions in\n`serverSeq` order on any prior snapshot yields identical state. This\nis the same property the Rust and Swift clients rely on for\nreconnection.\n\n`AhpStateMirror` is a convenience that holds one `RootState`, a\n`Map<URI, SessionState>`, a `Map<URI, TerminalState>`, and a\n`Map<URI, ChangesetState>`. Apply `Snapshot`s and `ActionEnvelope`s and\nit keeps those maps up to date. Larger apps usually keep their own\nstate and call the reducers directly.\n\n## Errors\n\n| Class | When it's thrown |\n|---|---|\n| `RpcError`           | JSON-RPC error response from the server. Carries `code`, `message`, `data`. |\n| `RpcTimeoutError`    | Client-side timeout fired before the server responded. Carries `method`, `timeoutMs`. Distinct from `RpcError`. |\n| `TransportError`     | Failure of the underlying transport. `kind: 'closed' \\| 'io' \\| 'protocol'`. |\n| `ClientClosedError`  | Request was in flight when the client was shut down. |\n| `AhpClientError`     | Base class for every error this SDK throws — use `instanceof` to catch them all. |\n\nMalformed inbound frames don't throw — they're logged via `console.warn` and the channel stays alive (matching the Rust client's `tracing::warn!` behavior). Pending requests still time out via `RpcTimeoutError` if the dropped frame would have been their reply.\n\n## Server-initiated requests\n\nSome AHP methods (currently `resourceRequest`) can be initiated by the\nserver. By default, the client responds with JSON-RPC `MethodNotFound`\nso the server does not leak a pending request. Install a typed handler\nto take over:\n\n```ts\nclient.setServerRequestHandler(async (method, params) => {\n  if (method === 'resourceRequest') {\n    return { /* … */ };\n  }\n  throw new RpcError(JsonRpcErrorCodes.MethodNotFound, 'unhandled');\n});\n```\n\n## Reconnection\n\n`AhpClient.reconnect(...)` sends the typed AHP `reconnect` request on\nan already-open transport. It does not decide when to reconnect, how\noften to retry, whether authentication errors are terminal, or how to\nupdate UI while reconnecting — those policies live in the app.\n\nA typical app-level reconnect flow is:\n\n1. Open a fresh transport and `AhpClient`.\n2. Attach event streams before the handshake.\n3. Call `connect()` and `reconnect({ clientId, lastSeenServerSeq, subscriptions })`.\n4. Apply the returned replay actions or snapshots to your app store.\n5. Re-fetch `listSessions` or other ephemeral data — protocol\n   notifications are not replayed.\n\nIf you'd rather not write that loop yourself, see\n[`@microsoft/agent-host-protocol/hosts`](#multi-host-orchestration) —\nit ships a `MultiHostClient` that owns the reconnect supervisor,\nre-subscribes across reconnects, mirrors root state, and exposes\ngeneration-checked client handles. Single-host consumers use\n`MultiHostClient.single(...)`.\n\n## Multi-host orchestration\n\nFor apps that talk to **one or more** AHP hosts at once (a local\nsessions server plus a tunnel-attached remote, multiple project hosts\nin a sidebar, …), the `@microsoft/agent-host-protocol/hosts` entry\npoint ships `MultiHostClient`:\n\n```ts\nimport { ActionType } from '@microsoft/agent-host-protocol';\nimport { WebSocketTransport } from '@microsoft/agent-host-protocol/ws';\nimport {\n  MultiHostClient,\n  type HostTransportFactory,\n} from '@microsoft/agent-host-protocol/hosts';\n\nconst openLocal: HostTransportFactory = async (_hostId, _signal) =>\n  WebSocketTransport.connect('ws://localhost:12345');\n\n// Single-host: same API, never see \"registry\" concepts.\nconst { multi, host } = await MultiHostClient.single({\n  id: 'local',\n  label: 'Local sessions server',\n  transportFactory: openLocal,\n});\nconsole.log(`connected to ${host.label}: ${host.state.status}`);\n\n// Multi-host: add as many as you need.\nawait multi.addHost({\n  id: 'tunnel',\n  label: 'Tunnel',\n  transportFactory: async (_id, _signal) =>\n    WebSocketTransport.connect('wss://my-tunnel.example/sessions'),\n});\n\n// Fan-in of every inbound event, tagged with host of origin.\nfor await (const event of multi.events()) {\n  console.log(`[${event.hostId}] ${event.channel}`, event.event.type);\n}\n```\n\nEach host runs its own reconnect supervisor with the configured\n`ReconnectPolicy` (defaults to exponential backoff from 250 ms to 30 s\nwith 25 % jitter), re-subscribes to known URIs after reconnects, and\nmirrors root state plus a session-summary cache so `MultiHostClient\n.aggregatedSessions()` and `aggregatedAgents()` are snapshot reads,\nnot fan-out subscriptions. Every successful (re)connect bumps a per-\nhost `generation` counter; `HostClientHandle`s minted at an earlier\ngeneration throw `HostReconnectedError` instead of silently writing to\nthe new connection.\n\nPersistent `clientId`s are pluggable via the `ClientIdStore`\ninterface. The default `InMemoryClientIdStore` is session-stable;\nproduction apps that need cross-launch identity wrap their platform's\nsecure storage (`localStorage`, IndexedDB, Node `fs`,\n`safeStorage`, …) in a custom `ClientIdStore`.\n\nFor multi-host state, `MultiHostStateMirror` keys per-resource state\nby `(hostId, uri)` so URIs that legitimately collide across hosts\n(the normal case for session URIs) don't clobber each other.\n\n## Wire types\n\nThe wire types under `src/types/` are generated from `types/*.ts` at the\nrepository root and are **not committed** to the repo — avoiding a\nbyte-for-byte duplication of the canonical TypeScript sources. Regenerate\nthem whenever you pull or change the protocol:\n\n```bash\nnpm run generate:typescript    # from the repo root\n```\n\nGenerated files carry a banner; do not edit them by hand. The\n`generate:typescript` script is also part of `npm run generate`, which\nregenerates every language's client output.\n\n## Protocol version mapping\n\nThis package exports two protocol-version constants from its default\nentry point:\n\n```ts\nimport { PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS } from '@microsoft/agent-host-protocol';\n```\n\n- `PROTOCOL_VERSION` — SemVer string for the version this package's\n  source tree implements.\n- `SUPPORTED_PROTOCOL_VERSIONS` — every version this package is willing\n  to negotiate (most-preferred-first). Pass it as `protocolVersions` on\n  `InitializeParams`:\n\n  ```ts\n  await client.initialize({\n    clientId: 'my-client',\n    protocolVersions: [...SUPPORTED_PROTOCOL_VERSIONS],\n    initialSubscriptions: ['ahp-root://'],\n  });\n  ```\n\nThe same information is mirrored, in machine-readable form, in\n[`release-metadata.json`](release-metadata.json) and, in human-readable\nform, in [`CHANGELOG.md`](CHANGELOG.md). CI verifies all three sources\nagree on every PR.\n\n## Development\n\nFrom a fresh checkout:\n\n```bash\n# 1. Install the root tooling and generate the TS client's wire types.\nnpm install\nnpm run generate:typescript\n\n# 2. Work in the client package.\ncd clients/typescript\nnpm install\nnpm run typecheck\nnpm test\nnpm run build\n```\n\nCI runs the generate step automatically before the install/typecheck/test/build\nsequence, so contributors only need to remember step 1 locally after pulling\nprotocol changes.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}