{"_id":"@ahpd/agent-claude","_rev":"12-63bf9661c6ba26f561803668e8c0f6f9","name":"@ahpd/agent-claude","dist-tags":{"latest":"0.8.0"},"versions":{"0.1.0":{"name":"@ahpd/agent-claude","version":"0.1.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":"Luiz Fernando Softov <lfs@softov.dev>","license":"MIT","_id":"@ahpd/agent-claude@0.1.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"b6619ec2f70853e1b7cda4fbf1af8318a13f1a08","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.1.0.tgz","fileCount":38,"integrity":"sha512-vjblKLrt2aBQS6zvB2qxbfT48Khp1ew+YM/nhnuHszyeWnLjxckHbUll8g+NoKxgy5TuSd0pwN83O8/K5rTsLw==","signatures":[{"sig":"MEUCIQCpWsTcZYgRp5SPfCyUncaM92SrVTtnwbMuvB7EGDoIIAIgK5pV8yx84YUzOt6igYG4ShSl87C3m1A2UnrAzmzNWXw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":422213},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"softov","email":"lfs@softov.dev"},"deprecated":"Depends on @ahpd/server@0.1.0, which is now @ahpd/sdk. Use 0.2.0.","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"description":"The Claude backend for @ahpd/server","directories":{},"_nodeVersion":"26.0.0","dependencies":{"zod":"^4.4.3","@ahpd/server":"^0.1.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.1.0_1788690819444_0.5493216066310866","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ahpd/agent-claude","version":"0.2.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":"Luiz Fernando Softov <lfs@softov.dev>","license":"MIT","_id":"@ahpd/agent-claude@0.2.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"16dacdaa6ca9e12bfb762c876caef161c269113a","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.2.0.tgz","fileCount":38,"integrity":"sha512-mIf+fFGWWniacEnYXw8rxV+xzCViugsaDC5DZV7qtp5UzSehj5giXdx40Dut88toVk9uwgFpHu38b9DVeM5q/A==","signatures":[{"sig":"MEUCIEgYxfy+EqGaTNUEhwFeB5gs6Oyxttw5hskZdmjdrneDAiEAuqquxa4zmEWf+fhrN2GBMfZN+pQqli3Ete178cWWFU0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAZW1nsn24lY0+cVDiGAL7kEgJQSxm1UnuwGCf6KWcowAiBvASTJTBUabHtKDGTc4LEWDzRo4KcbPqOqYQPqSWvuqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":422129},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"softov","email":"lfs@softov.dev"},"repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"26.0.0","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.2.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.2.0_1788692167727_0.18532873067416022","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@ahpd/agent-claude","version":"0.3.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":"Luiz Fernando Softov <lfs@softov.dev>","license":"MIT","_id":"@ahpd/agent-claude@0.3.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"13fc9e86947b0d0553eed803f3beef885f1d46cf","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.3.0.tgz","fileCount":38,"integrity":"sha512-knp/2TtFh1VKcY7vqj/J95PYfamAKLVOUa5ZQP3lSUIKrPSG8zXStkF8Pf4iNznG2GLY1JFIyus7Hsxbs23VVQ==","signatures":[{"sig":"MEYCIQDLV4Y7iKiAVjsfhcna5Ix5od5Fw4bu25ACHEvYYD8hfgIhAIa5PblL3GmTe64139/X2q27Ys5FE+imYirhZ0VUN3om","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCIOAwTo2knaqAEvQtreccYfE3CC3mbPO9GSbfAotLFgQIhAPwMCdwrh/B5IOnOuCu+M1k8Hy80wENsPeKYU6p2HTP3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":422129},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"softov","email":"lfs@softov.dev"},"repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"26.0.0","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.3.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.3.0_1788710150388_0.8343102641162681","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@ahpd/agent-claude","version":"0.4.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.4.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"3a7cb7ba412cf5729dcda59d020db3a19150e3eb","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.4.0.tgz","fileCount":38,"integrity":"sha512-yTMW+xPKgikZuQaooMu9jS+vSSpb8dxAwom5wH2XVNqO9FHHueUbZg1sKATf+aG4GdHv75yhk8QPb+ynbXcr1Q==","signatures":[{"sig":"MEQCIDz865IgAiA+0RRCda3RXryJZRd66Xu04FDUC8VKJtBEAiBJRfChtTh6YZgjrz/lTwYZcsT1i6xMwAnoXCStIMzG7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":422576},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.4.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.4.0.tgz","_integrity":"sha512-yTMW+xPKgikZuQaooMu9jS+vSSpb8dxAwom5wH2XVNqO9FHHueUbZg1sKATf+aG4GdHv75yhk8QPb+ynbXcr1Q==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.4.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.4.0_1788734886078_0.7644325969665826","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@ahpd/agent-claude","version":"0.5.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.5.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"9d10c6cd0d400640b77db1fdc4afe3110361c9b9","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.5.0.tgz","fileCount":43,"integrity":"sha512-TSGzMI4hpXLF2a8i3kKyP9nMD3otv5sNu4hqPJ387b9quzKble/MIYh/E1BWpc+uZmoHFPSb7h/tnx5TFUwQVw==","signatures":[{"sig":"MEQCIBCZTUyE64rDxfRF71/lrhY3omo/zfD+kN0uB8EJGQmZAiB4lheW0gnOeu0NJo4ZATq7sZQDfLoATVqRDqOGh300OA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":464264},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.5.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.5.0.tgz","_integrity":"sha512-TSGzMI4hpXLF2a8i3kKyP9nMD3otv5sNu4hqPJ387b9quzKble/MIYh/E1BWpc+uZmoHFPSb7h/tnx5TFUwQVw==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.5.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.5.0_1789724139852_0.8615726703254034","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@ahpd/agent-claude","version":"0.6.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.6.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"84b9b070750d9b81bbb8f70375908540ac40c6fe","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.6.0.tgz","fileCount":43,"integrity":"sha512-/EyiPxvFVjgvaPLtOw4salOBekaN+eWgmUm6cnuc5MUOQ2XphFnAGaK1y8keA2mxUZ77yjbHqIckuPnpGwyuuA==","signatures":[{"sig":"MEQCIHnxmibHkugZBg56Y3/UtgMZuZIS/afHpdbdU0IGhufTAiAovvgSXL8s+0Spk8pNjbGPG1iyBfUL80B0gJq60/8SZA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":464264},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.6.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.6.0.tgz","_integrity":"sha512-/EyiPxvFVjgvaPLtOw4salOBekaN+eWgmUm6cnuc5MUOQ2XphFnAGaK1y8keA2mxUZ77yjbHqIckuPnpGwyuuA==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.6.0","@anthropic-ai/claude-agent-sdk":"^0.3.250"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.6.0_1789820861053_0.17079892645196937","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@ahpd/agent-claude","version":"0.6.1","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.6.1","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"9f1d0142fe16915f166ce801886097ed83838230","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.6.1.tgz","fileCount":43,"integrity":"sha512-4xkV2DHZ3phKQzKLPkbqzx2i8E6bbJVb6TiLnNdcwzgDWMxGB86wf8atjy4V1qfp7LSAvKBg2q9MAMCHBboEow==","signatures":[{"sig":"MEQCIBBREp6YIP95AqVAamukV6taAGgPg1dEtxceKNX+k4CBAiBu8F8EZ6ZCKSnG5bnpcLD8UeR28P+VPXQPzAwqVmGYSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":476112},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.6.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.6.1.tgz","_integrity":"sha512-4xkV2DHZ3phKQzKLPkbqzx2i8E6bbJVb6TiLnNdcwzgDWMxGB86wf8atjy4V1qfp7LSAvKBg2q9MAMCHBboEow==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.6.1","@anthropic-ai/claude-agent-sdk":"^0.3.278"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.6.1_1789895453727_0.5836649429798424","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@ahpd/agent-claude","version":"0.6.2","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.6.2","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"430f2260e2e7bf50771467279acd748be98bc5d9","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.6.2.tgz","fileCount":43,"integrity":"sha512-Jygdype+v9SFMkDz2Zi6uXKTwnJLgodVCYpB/bCuSukxYSzEYyo/8z4cJwCZ/Ib52W39G8boygDplEg9wpqXTg==","signatures":[{"sig":"MEUCIBA2JZEUAF2zCbLSzbiG89k6QgiVu9PSji2tJFjp/T6eAiEA0sUhbB/o7A5LFLm772lXTtbRJr7OO0jZrttJcBN0I1g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":480610},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.6.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.6.2.tgz","_integrity":"sha512-Jygdype+v9SFMkDz2Zi6uXKTwnJLgodVCYpB/bCuSukxYSzEYyo/8z4cJwCZ/Ib52W39G8boygDplEg9wpqXTg==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.6.2","@anthropic-ai/claude-agent-sdk":"^0.3.278"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.6.2_1790082756971_0.40196054241265666","host":"s3://npm-registry-packages-npm-production"}},"0.6.3":{"name":"@ahpd/agent-claude","version":"0.6.3","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.6.3","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"d284e77c208cda1fee181d599a73e9ad13570ba6","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.6.3.tgz","fileCount":43,"integrity":"sha512-YawhsrXQs//x0g0MHkRe0SQ2I6Kbhk9sPfi1YwYdI+oD3q97R8peYXZWjTPZiY5QDk7TZt5WcIPyPy1+cARB7g==","signatures":[{"sig":"MEUCIQDCBWnQ0WM3ovtU0Fo+dVpHKWAn9Vb4LStRF0PHIoNqvgIgVTW226xoFP5uWZoEHO6cRqKfQZxQq7Wid62FjhPI6EE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.6.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":480610},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.6.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.6.3.tgz","_integrity":"sha512-YawhsrXQs//x0g0MHkRe0SQ2I6Kbhk9sPfi1YwYdI+oD3q97R8peYXZWjTPZiY5QDk7TZt5WcIPyPy1+cARB7g==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.0.2","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@ahpd/sdk":"^0.6.3","@anthropic-ai/claude-agent-sdk":"^0.3.278"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.6.3_1790087881703_0.08448089086482247","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@ahpd/agent-claude","version":"0.7.0","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","_id":"@ahpd/agent-claude@0.7.0","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"homepage":"https://github.com/softov/ahpd#readme","bugs":{"url":"https://github.com/softov/ahpd/issues"},"ahpd":{"entry":"./dist/index.js","title":"Claude","options":{"paths":{"required":false},"provider":{"required":false},"computerConfigDir":{"required":false},"computerExecutable":{"required":false}}},"dist":{"shasum":"03a5dea1f195ff3c5e8fa426579c10125acc4ace","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.7.0.tgz","fileCount":53,"integrity":"sha512-E+e+ttVWNFO4CMuGmpiNl+7+ACdnfWJhu80keSvCbeCq+lAjZ/FJeauw38ZZ06IaAVwRxKHDaBwIU8xIb9wxSQ==","signatures":[{"sig":"MEQCIDoYVQ4lDTghWE48UT9OLYA5uEpXAtebSfSuPLxJCNJ/AiB22MaUhLEfScQfXx6mb0r42iptmBFYxF2ZxiSpIZVTtw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":533496},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.7.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"scripts":{},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"softov","email":"lfs@softov.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:ce838a43-b65b-47df-b35c-3b3f2f6746f1"}},"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.7.0.tgz","_integrity":"sha512-E+e+ttVWNFO4CMuGmpiNl+7+ACdnfWJhu80keSvCbeCq+lAjZ/FJeauw38ZZ06IaAVwRxKHDaBwIU8xIb9wxSQ==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.1.0","description":"The Claude backend for @ahpd/sdk","directories":{},"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anthropic-ai/claude-agent-sdk":"^0.3.278"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@ahpd/sdk":"0.7.0","@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@ahpd/sdk":"^0.7","@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"tmp":"tmp/agent-claude_0.7.0_1790374938538_0.05154464437486772","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"_id":"@ahpd/agent-claude@0.8.0","ahpd":{"entry":"./dist/index.js","title":"Claude","options":{"paths":{"required":false},"provider":{"required":false},"workerStop":{"required":false},"computerConfigDir":{"required":false},"computerExecutable":{"required":false}}},"bugs":{"url":"https://github.com/softov/ahpd/issues"},"dist":{"shasum":"276d8def9ba76eb1fbe405d5815fd376329a1b0c","tarball":"https://registry.npmjs.org/@ahpd/agent-claude/-/agent-claude-0.8.0.tgz","integrity":"sha512-ut0oCjXw9NXhKEMeKCT2YJcvGtDzb9ROnXcUuEP5H7EwlSGLrpaE13xeUUmEUVGsaJIM+OGJtQpOfMCU4xsh0A==","fileCount":53,"unpackedSize":641129,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ahpd%2fagent-claude@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDHNdzyU9eTmOhST1/mLVaOTT9ZfvWV4iZKrChSA9LahAIgQYB0OTHRyv3a3mRuMYnWAbpxHE/gfyRosybxY4AF4Uo="}]},"main":"./dist/index.js","name":"@ahpd/agent-claude","type":"module","_from":"file:/home/runner/work/_temp/ahpd-agent-claude-0.8.0.tgz","types":"./dist/index.d.ts","author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"module":"./dist/index.js","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","development":"./src/index.ts"}},"license":"MIT","scripts":{"test":"cd ../.. && vitest run packages/agent-claude/test"},"typings":"./dist/index.d.ts","version":"0.8.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"ce838a43-b65b-47df-b35c-3b3f2f6746f1"},"approver":{"name":"softov","email":"lfs@softov.dev"}},"homepage":"https://github.com/softov/ahpd/tree/main/packages/agent-claude#readme","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"_resolved":"/home/runner/work/_temp/ahpd-agent-claude-0.8.0.tgz","_integrity":"sha512-ut0oCjXw9NXhKEMeKCT2YJcvGtDzb9ROnXcUuEP5H7EwlSGLrpaE13xeUUmEUVGsaJIM+OGJtQpOfMCU4xsh0A==","repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"_npmVersion":"12.1.0","description":"Claude Code as an Agent Host Protocol backend: a plugin for the ahpd daemon and an Agent for @ahpd/sdk","directories":{},"maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"_nodeVersion":"22.23.2","dependencies":{"zod":"^4.4.3","@anthropic-ai/claude-agent-sdk":"^0.3.278"},"publishConfig":{"access":"public"},"devDependencies":{"@ahpd/sdk":"0.8.0","@microsoft/agent-host-protocol":"^0.9.0"},"peerDependencies":{"@ahpd/sdk":"^0.8","@microsoft/agent-host-protocol":"^0.9.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agent-claude_0.8.0_1790626916697_0.45324132407651896"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-06T10:33:39.284Z","modified":"2026-09-28T20:21:57.132Z","0.1.0":"2026-09-06T10:33:39.585Z","0.2.0":"2026-09-06T10:56:07.820Z","0.3.0":"2026-09-06T15:55:50.469Z","0.4.0":"2026-09-06T22:48:06.211Z","0.5.0":"2026-09-18T09:35:39.940Z","0.6.0":"2026-09-19T12:27:41.198Z","0.6.1":"2026-09-20T09:10:53.804Z","0.6.2":"2026-09-22T13:12:37.122Z","0.6.3":"2026-09-22T14:38:01.840Z","0.7.0":"2026-09-25T22:22:18.629Z","0.8.0":"2026-09-28T20:21:56.815Z"},"bugs":{"url":"https://github.com/softov/ahpd/issues"},"author":{"name":"Luiz Fernando Softov","email":"lfs@softov.dev"},"license":"MIT","homepage":"https://github.com/softov/ahpd/tree/main/packages/agent-claude#readme","keywords":["ahp","agent-host-protocol","agent-host","agent","ai","protocol","json-rpc","websocket","claude","claude-code","anthropic","backend","adapter"],"repository":{"url":"git+https://github.com/softov/ahpd.git","type":"git","directory":"packages/agent-claude"},"description":"Claude Code as an Agent Host Protocol backend: a plugin for the ahpd daemon and an Agent for @ahpd/sdk","maintainers":[{"name":"softov","email":"lfs@softov.dev"}],"readme":"# @ahpd/agent-claude\n\n[![npm](https://img.shields.io/npm/v/%40ahpd%2Fagent-claude)](https://www.npmjs.com/package/@ahpd/agent-claude)\n[![CI](https://github.com/softov/ahpd/actions/workflows/ci.yml/badge.svg)](https://github.com/softov/ahpd/actions/workflows/ci.yml)\n![license MIT](https://img.shields.io/badge/license-MIT-blue)\n![node >=22](https://img.shields.io/badge/node-%3E%3D22-5fa04e)\n![Agent Host Protocol 0.9.0](https://img.shields.io/badge/AHP-0.9.0-0b7285)\n\nClaude Code as a backend for [`@ahpd/sdk`](https://www.npmjs.com/package/@ahpd/sdk), and the plugin that lets the [`@ahpd/server`](https://www.npmjs.com/package/@ahpd/server) daemon run it.\n\nPart of [ahpd](https://github.com/softov/ahpd). The source is in [`packages/agent-claude`](https://github.com/softov/ahpd/tree/main/packages/agent-claude).\n\n## In the daemon\n\nInstall it where the daemon resolves a plugin name from, and name it:\n\n```bash\nahpd plugin install @ahpd/agent-claude\nahpd --plugin @ahpd/agent-claude\n```\n\n```json\n{\n  \"plugins\": [\"@ahpd/agent-claude\"]\n}\n```\n\nIt takes no options in the ordinary install: it catalogues whatever directories the daemon was started on. A configuration may narrow or rename that:\n\n| option | |\n| --- | --- |\n| `paths` | the directories it catalogues, and where a session goes by default. Defaults to the host's |\n| `provider` | the id clients name. `claude` unless something else already is |\n| `computerExecutable` | where the CLI is *inside a machine*. `claude` on the image's PATH by default |\n| `computerConfigDir` | the configuration directory the CLI reads *inside a machine*. `/ahpd/claude` by default; `false` leaves the image's own |\n| `workerStop` | what a stop given in a subagent's chat stops. `worker` by default, which stops that subagent and lets the turn that started it go on; `session` cancels that turn instead |\n\n## In your own host\n\n```bash\npnpm add @ahpd/agent-claude @ahpd/sdk @microsoft/agent-host-protocol\n```\n\n```ts\nimport { createHost, listen } from '@ahpd/sdk';\nimport { claude } from '@ahpd/agent-claude';\n\nconst path = process.cwd();\nconst host = createHost({ path, agents: [claude({ paths: [path] })] });\nawait listen({ port: 9187 }, (peer) => host.accept(peer));\n```\n\n`createHost` takes a list of agents, so this can run alongside other backends. The plugin entry wraps the same `claude()`.\n\n## What it does\n\nIt starts the [Claude agent SDK](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk), converts its message stream into AHP state actions, and reads Claude's transcript files.\n\n| export | |\n| --- | --- |\n| `claude(options)` | the `Agent` to pass to `createHost` |\n| `createSession(options)` | one live session |\n| `catalogue(dir)` | Claude's sessions in a directory, as rows a host can list |\n| `turnsOf(sessionId, dir)` | a past session read from its transcript, as turns |\n| `subagentsOf(sessionId, dir, turns)` | the subagent chats a past session ran, linked to the calls that spawned them |\n| `probe(options)` | runs a CLI at startup to read the available models and commands |\n| `apply(host, options)` | the plugin entry, with `name` and `title` beside it |\n\n## Supported\n\nTurns and streaming, tool calls and approvals, questions from the agent, model and effort selection, permission modes, MCP servers and OAuth sign-in, skills and slash commands, multiple chats per session, forking a chat from a turn, truncating a chat back to a turn, session titles, token usage, and context compaction.\n\nAn approval offers Allow once, an \"always\" choice and Deny when the SDK suggests a permission to keep for the call. The \"always\" choice is labelled by what the suggestions do, and picking it returns them to the SDK as `updatedPermissions`. With no suggestion, the approval is approve or deny.\n\nA subagent Claude runs is its own chat. Every `Task` and `Agent` call opens one through the host's `Start.subagent`, read-only and named `ahp-chat://subagent/…`, and the subagent's text, thinking, tool calls and permission asks are drawn there instead of in the turn that spawned it. A stop given in the subagent's chat stops that subagent through the SDK's `stopTask`, and the turn that started it goes on and sees the call end. With `workerStop: \"session\"`, or before Claude has named the subagent's task, it cancels that turn instead. On a host without `Start.subagent` the subagent's output stays inline. A session read back from disk rebuilds each subagent's chat from the CLI's `subagents/*.meta.json` and `.jsonl` files.\n\nSessions the host is not running are read from Claude's transcripts, so clients can browse and read them without starting a process. The agent starts when a turn is sent.\n\n## Credentials\n\nSessions use whatever the Claude CLI is signed in with. A client can push a token instead. Pushed tokens are held per connection and are not used for other clients' sessions.\n\n## Documentation\n\n| | |\n| --- | --- |\n| [PLUGINS.md](https://github.com/softov/ahpd/blob/main/docs/PLUGINS.md) | Loading a plugin into the daemon |\n| [AGENT.md](https://github.com/softov/ahpd/blob/main/docs/AGENT.md) | The `Agent` and `Session` contracts this implements |\n| [AHP.md](https://github.com/softov/ahpd/blob/main/docs/AHP.md) | Which actions are served, which are refused, and why |\n\n## License\n\nMIT © Softov\n\n","readmeFilename":"README.md"}