{"_id":"@alvin0/ai-agent-sdk-provider-anthropic","_rev":"11-e96047e700ec571b7bacdb7630f24366","name":"@alvin0/ai-agent-sdk-provider-anthropic","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.0","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.0","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"786791d7d9570e0a7131d6a8922dcfe9e2871a87","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.0.tgz","fileCount":7,"integrity":"sha512-FWLt399PeilSGxtlbixCbmk3PlsjGLEnE0uWE/7Th0OL0xU2ucs0Ih4trZOplViB7lM//wsocNw/d5dw49tjCA==","signatures":[{"sig":"MEUCIQD3gd8Nnzo5f0GHeSfuraN6XBg37TTyvifMjytiisBCjQIgW7Y03tM7Wwwt1E2v+b0fDAKTPzQ/bnyiKudknnBxK/o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28162},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.0.tgz","_integrity":"sha512-FWLt399PeilSGxtlbixCbmk3PlsjGLEnE0uWE/7Th0OL0xU2ucs0Ih4trZOplViB7lM//wsocNw/d5dw49tjCA==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.0","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.0","@alvin0/ai-agent-sdk-testkit":"^0.1.0"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.0_1788971820331_0.2852742903469583","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.1","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.1","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"a060be09fc4689bbf772cbbda3ad485ee109979b","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.1.tgz","fileCount":7,"integrity":"sha512-hA9ilDbmQPhmw3xib3fS/n8+CzLHyR182fxmxyn81RSaGHjaRE3yga/mIk00gqNLB7w3FBFT1MJw/j/lCgholg==","signatures":[{"sig":"MEUCIQDAzjpwtcnniRwe0buf/yGd1Jh58k8ksjTAw2gPJGJXxwIgcALOG6H57nhUfNZQanY2YwEbVt3xsKpUrhWVvQtS8w8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30506},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.1.tgz","_integrity":"sha512-hA9ilDbmQPhmw3xib3fS/n8+CzLHyR182fxmxyn81RSaGHjaRE3yga/mIk00gqNLB7w3FBFT1MJw/j/lCgholg==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.1","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.1","@alvin0/ai-agent-sdk-testkit":"^0.1.1"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.1_1789238168323_0.44519732771261333","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.2","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.2","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"c7c89d2bcdf58aec17372b9a0160bb1688f5fc19","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.2.tgz","fileCount":7,"integrity":"sha512-oXqJsIu8QdPROA2dnOMs4EDcJc4rniShfUHkq/4G6CFwqaISIrkWF+d4g/9Z8bmpV55VD4kf0Qpu3XISiCN/qg==","signatures":[{"sig":"MEYCIQC7TYUJcwrPyixpp1fM4KrCQ8G1/A+zK3/SwIpjt7pEJgIhAKlL7ukP+xnmRAMKU5IZS21ec6WK/dlBkE3HC4G8ZMl7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32011},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.2.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.2.tgz","_integrity":"sha512-oXqJsIu8QdPROA2dnOMs4EDcJc4rniShfUHkq/4G6CFwqaISIrkWF+d4g/9Z8bmpV55VD4kf0Qpu3XISiCN/qg==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.2","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.2","@alvin0/ai-agent-sdk-testkit":"^0.1.2"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.2"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.2_1789281465391_0.5900413536796729","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.3","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.3","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"e51489e12a1470a6afe03d6ba94b64f80d0f22f9","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.3.tgz","fileCount":7,"integrity":"sha512-mMxj8IvhXiW4OcGYUN9zHcSLg+uKAM0hlkDKYm1h5Knq/5bsSMGBPaq0P0Zp0CSUU+Eon9MSNHQiIJzBtEjvgg==","signatures":[{"sig":"MEUCIEG18wwYZQd/E4yzmjHVtnSovh/fyWOrFcytLAf0vO1uAiEAvPJZZlW0C93lHA/e2i33FzRd0eXnjays4EEibs7V92k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32011},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.3.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.3.tgz","_integrity":"sha512-mMxj8IvhXiW4OcGYUN9zHcSLg+uKAM0hlkDKYm1h5Knq/5bsSMGBPaq0P0Zp0CSUU+Eon9MSNHQiIJzBtEjvgg==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.3","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.3"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.3","@alvin0/ai-agent-sdk-testkit":"^0.1.3"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.3_1789484986070_0.027384210373680773","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.4","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.4","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"729bf8017fa96839d8d5d9bf83321dfff5d2ba7d","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.4.tgz","fileCount":7,"integrity":"sha512-EJpWe1R7QRHB36S1qsP5vfheKImgs/8znXaXXwC9A35kaYtHTY5no/oABi+wT/++TwBxm7ffbYWnlifl1LmZpA==","signatures":[{"sig":"MEYCIQDQEou3ZBLinHiu7fPTA7wbL4gvYUQKvfVH4JPi7uIcywIhAMykq/4hlwC1spNupDnP/UX8waJmBmPFhj5IAjkhSbwS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD3uIFyNlM1W7v/aUiH8a4b0NfRfP5Wc4l0KWlZVBa3EwIhAMhyVpU9cg3CrWVMw7DZ5B+DrplmNhl4RAcUFh5LfoZM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47623},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.4.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.4.tgz","_integrity":"sha512-EJpWe1R7QRHB36S1qsP5vfheKImgs/8znXaXXwC9A35kaYtHTY5no/oABi+wT/++TwBxm7ffbYWnlifl1LmZpA==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.4","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.4"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.4","@alvin0/ai-agent-sdk-testkit":"^0.1.4"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.4"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.4_1789795976899_0.5129976437680615","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.5","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.5","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"5a63fda7b5bf6b14fe5fc318281e690d151f54dc","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.5.tgz","fileCount":7,"integrity":"sha512-Qx8JcRqtZ/SYPPcGFE4ip5gjhW4GaxAnBqj9i9Rm79OVNi/EEOTDjG/lpPxIMiqnuPHpGzZChn7dEuyRNjvDgA==","signatures":[{"sig":"MEYCIQCFRWEmu+Ypxyq0bIne+/bhgXYGRZ9uSUHL4JDhRxNlJAIhAIEMNnpQB73VhAGWmg2KGX3bEeQ88pngnMyRqpnsH++v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCpn9URbXaPSB1CZS5d5bNv/SK6ipOah+TcITyBv7jFnAIge8LwjcGOo371STSSNZbNfQUiXY5zl3fFHFnfEdT8UMw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47623},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.5.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.5.tgz","_integrity":"sha512-Qx8JcRqtZ/SYPPcGFE4ip5gjhW4GaxAnBqj9i9Rm79OVNi/EEOTDjG/lpPxIMiqnuPHpGzZChn7dEuyRNjvDgA==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.5","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.5"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.5","@alvin0/ai-agent-sdk-testkit":"^0.1.5"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.5_1790681089536_0.7402757585855617","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.6","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.6","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"df6b7cf9b3d6f9f2ae0d80231c1e783e72102eba","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.6.tgz","fileCount":7,"integrity":"sha512-3XPfk/inKGhjMNJlGiR7pvUWHiVK9xaB8W4XSgbjtRosXukSuSIpV8tQi/+RsyYJjP1LH6T3f7I/xEdICv7rHg==","signatures":[{"sig":"MEUCIQC+iP2dtz7lj0UC9KBC/5bzJ3gGPetEA5DC/GJ3kaQXfAIgfAeVoBdz2maJ9yzSamTeJj2FLw8Xf6AMYr1t2fpnGEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIB4ycgoqlAd0O5+e1tqZwpsXTEHaWyjPzdkW4vBx0rK0AiEArA76XP+62+N9c3T8GG81ahHlgT57Y0PwCDCM/USxuBk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47623},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.6.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.6.tgz","_integrity":"sha512-3XPfk/inKGhjMNJlGiR7pvUWHiVK9xaB8W4XSgbjtRosXukSuSIpV8tQi/+RsyYJjP1LH6T3f7I/xEdICv7rHg==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.6","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.6"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.6","@alvin0/ai-agent-sdk-testkit":"^0.1.6"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.6"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.6_1790702182340_0.2931824160117491","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.7","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.7","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"65cb9efc9dc2982b7d8bac22065e1a9a5985aa1f","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.7.tgz","fileCount":7,"integrity":"sha512-4LJ98llNmzNs0sJVmiYUD3l2m1z+IwRsZwEVrOKncX+HWvpxvnA9FrzQnCMvU+iG9pxbluvmRbE+5NjJhLjh3w==","signatures":[{"sig":"MEUCICBqYWiJ5oBqG822nonQbjLgsERfGY+xbN41F1Klj8TfAiEAj1L7fpX8saTjzRZfwHmVOx7mhMtf+C6QAJwwxYcapqs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDW5wIrM4zzxHXAEhU55vqZ+OoFbIYb7sxStjIY4og6iwIhAJaoSJCevR6DXmRB4znE9gECsYkPctpuPsMz7qrAF8J8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47623},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.7.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.7.tgz","_integrity":"sha512-4LJ98llNmzNs0sJVmiYUD3l2m1z+IwRsZwEVrOKncX+HWvpxvnA9FrzQnCMvU+iG9pxbluvmRbE+5NjJhLjh3w==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.7","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.7"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.7","@alvin0/ai-agent-sdk-testkit":"^0.1.7"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.7"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.7_1790758860095_0.9131855839645366","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.8","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.8","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"247893e64d93ba493ce1f71bfffeb45ba614694c","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.8.tgz","fileCount":7,"integrity":"sha512-WBA6eT9/8I1mZjiki3kwfoOPPqafRSR/ypssECVXNM/98WkXGR4X+DjTinZAZK4+Uv+WWrUQIrnjgKVdPv2V+g==","signatures":[{"sig":"MEYCIQCL9blX3OjWi8swpLOGgjKiQl1GR99hrcOVSUHvQHrB9QIhANkM6xmIgdg01xcKv7pwJtBpZMCICvmErdl/jZkukowA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCTe9YBzoz4ZEK+4XD6xTb4e9ujaDlygYvlp/l+UCkBkgIgSlQVibVC/1LUwzYgARwk1HhxXZocdPbEBmgFVe56LHE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47623},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.8.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.8.tgz","_integrity":"sha512-WBA6eT9/8I1mZjiki3kwfoOPPqafRSR/ypssECVXNM/98WkXGR4X+DjTinZAZK4+Uv+WWrUQIrnjgKVdPv2V+g==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.8","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.8"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.8","@alvin0/ai-agent-sdk-testkit":"^0.1.8"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.8_1791161557287_0.628528473970001","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@alvin0/ai-agent-sdk-provider-anthropic","version":"0.1.9","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.9","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"c21c1708420dca34a9793e3504de05041a59a0a6","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.9.tgz","fileCount":7,"integrity":"sha512-00lTVhg23rIxhUw/DNe3MyR/hxgfjsF7B8EVXRtZ17SEsntYpuhLVVXx+R57XLmtCNq9WFsseNoRzt3H+FP5jQ==","signatures":[{"sig":"MEUCIQDXtB1lg/ajur6bm/a8OpwkE9Ef+eBF/lCeP7kM0S9nUQIgE6JbPifwDDPuZZ93x39YvLkv+KvrRMdazwre4lTAh4A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBmFmuURDFidpWpI2k3muYu7MXSaF/bsiTh86Hr2gziqAiBBmURf5q9liqq92CmDBIwI0i7hfdkuBi906h8GNEqE0g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47873},"main":"./dist/index.js","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.9.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.9.tgz","_integrity":"sha512-00lTVhg23rIxhUw/DNe3MyR/hxgfjsF7B8EVXRtZ17SEsntYpuhLVVXx+R57XLmtCNq9WFsseNoRzt3H+FP5jQ==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.9","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.9"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.9","@alvin0/ai-agent-sdk-testkit":"^0.1.9"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.9"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.9_1791256051449_0.1251275091497046","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"_id":"@alvin0/ai-agent-sdk-provider-anthropic@0.1.10","bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"dist":{"shasum":"77aafeb31f0cb6d2e21032558c1223c9ca5cdf49","tarball":"https://registry.npmjs.org/@alvin0/ai-agent-sdk-provider-anthropic/-/ai-agent-sdk-provider-anthropic-0.1.10.tgz","fileCount":7,"integrity":"sha512-UTTzOYhApUYrAJ/JVeelvhU2CoUUsHy0+liTODYoKura/Ytxy/XlrXCqFdXbsHSxsT8+nY34PVrsg9+tByKv8g==","signatures":[{"sig":"MEQCICk7ruHy91RfGo4rndHdL5DTcu0XCw+VwMkMynPg7452AiAAz7079pT9MkbbVHEyVl6kd1eQqJankS24dIGV7biIww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIADLDPzUwxXMcOHC7ul+gnQyB39dXM+PmQCgsk2Ljv5aAiASfl8oVxqRR5PysVEHWxc1uivpZnk586FPxaYsGcKffQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alvin0%2fai-agent-sdk-provider-anthropic@0.1.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47879},"main":"./dist/index.js","name":"@alvin0/ai-agent-sdk-provider-anthropic","type":"module","_from":"file:artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.10.tgz","types":"./dist/index.d.ts","author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"pack":"pnpm pack --pack-destination artifacts","test":"vitest run --config vitest.config.ts","build":"tsdown","clean":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true});require('node:fs').rmSync('artifacts',{recursive:true,force:true})\"","test:pack":"node ../../scripts/test-packed-provider.mts provider-anthropic","typecheck":"tsc --noEmit","check:types":"attw --profile esm-only --pack .","check:publint":"publint"},"version":"0.1.10","_npmUser":{"name":"alvin0","email":"chaulamdinhai@gmail.com"},"homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","_resolved":"/home/runner/work/ai-agent-sdk/ai-agent-sdk/artifacts/alvin0-ai-agent-sdk-provider-anthropic-0.1.10.tgz","_integrity":"sha512-UTTzOYhApUYrAJ/JVeelvhU2CoUUsHy0+liTODYoKura/Ytxy/XlrXCqFdXbsHSxsT8+nY34PVrsg9+tByKv8g==","aiAgentSdk":{"roles":["model-provider"],"coreApi":1,"runtime":"universal"},"repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"_npmVersion":"10.9.3","description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","directories":{},"maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{"@alvin0/ai-agent-sdk-provider-http":"^0.1.10","@alvin0/ai-agent-sdk-protocol-anthropic-messages":"^0.1.10"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"0.22.14","vitest":"4.1.11","publint":"0.3.24","wrangler":"4.127.1","playwright":"1.62.1","typescript":"7.0.2","@arethetypeswrong/cli":"0.18.5","@alvin0/ai-agent-sdk-core":"^0.1.10","@alvin0/ai-agent-sdk-testkit":"^0.1.10"},"peerDependencies":{"@alvin0/ai-agent-sdk-core":"^0.1.10"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-agent-sdk-provider-anthropic_0.1.10_1791272528079_0.3233930558292144"}}},"time":{"created":"2026-09-09T16:37:00.116Z","modified":"2026-10-06T07:42:08.506Z","0.1.0":"2026-09-09T16:37:00.474Z","0.1.1":"2026-09-12T18:36:08.477Z","0.1.2":"2026-09-13T06:37:45.520Z","0.1.3":"2026-09-15T15:09:46.205Z","0.1.4":"2026-09-19T05:32:56.981Z","0.1.5":"2026-09-29T11:24:49.627Z","0.1.6":"2026-09-29T17:16:22.440Z","0.1.7":"2026-09-30T09:01:00.166Z","0.1.8":"2026-10-05T00:52:37.374Z","0.1.9":"2026-10-06T03:07:31.548Z","0.1.10":"2026-10-06T07:42:08.172Z"},"bugs":{"url":"https://github.com/alvin0/ai-agent-sdk/issues"},"author":{"name":"alvin0 - chaulamdinhai","email":"chaulamdinhai@gmail.com"},"license":"MIT","homepage":"https://github.com/alvin0/ai-agent-sdk/tree/main/packages/provider-anthropic#readme","repository":{"url":"git+https://github.com/alvin0/ai-agent-sdk.git","type":"git","directory":"packages/provider-anthropic"},"description":"Universal Anthropic adapter and provider plugin for ai-agent-sdk","maintainers":[{"name":"alvin0","email":"chaulamdinhai@gmail.com"}],"readme":"# @alvin0/ai-agent-sdk-provider-anthropic\n\nRuntime: **Universal** (Edge/Worker, browser, Deno, Bun, and Node).\n\nCompatible gateways can configure `baseUrl`, `models`, `fetch`, and `headers`\n(a string record or synchronous function returning one per operation).\nGeneration uses the Messages protocol.\nHeader names are case-insensitive. A `headers` entry overrides what the SDK\nwould otherwise send for that name (`accept`, `content-type`, `user-agent`,\n`anthropic-version`/`anthropic-beta`) — only a connection-level name `fetch`\nitself forbids (`host`, `content-length`, …) or a credential-shaped name (must\ngo through `apiKey`/`authHeader` instead, so it can be redacted in logs) stays\nrejected. Supply credentials with `apiKey`; use `version` and `beta` for\nAnthropic protocol headers, or `authHeader: 'bearer'` when a gateway in front\nof Anthropic expects `Authorization: Bearer` instead of this API's own\n`x-api-key`. Static records are copied.\nTrusted local HTTP gateways require `allowInsecureHttp: true`.\n\n```sh\npnpm add @alvin0/ai-agent-sdk-core @alvin0/ai-agent-sdk-provider-anthropic\n```\n\nUniversal Anthropic adapter and transactional provider plugin. Credentials are injected; this package never reads environment variables or files.\n\n```ts\nimport { ModelRegistry } from '@alvin0/ai-agent-sdk-core'\nimport { anthropicPlugin } from '@alvin0/ai-agent-sdk-provider-anthropic'\n\nconst registry = new ModelRegistry()\nregistry.install(anthropicPlugin({ apiKey: () => secretStore.get('anthropic') }))\n```\n\nUse `anthropicAdapter()` for manual route registration. Both APIs are Universal\nand require an explicit `apiKey`; environment lookup belongs to a Node wrapper.\n\nComposition: `runtime.providers`. Lifecycle: `inert-runtime-owned-registration`;\nthe runtime activates and removes the captured provider registration.\n\n## Connecting a compatible endpoint\n\nThis package speaks the Anthropic Messages wire, so any endpoint that speaks it\nback is reachable by configuration alone — Anthropic itself, DeepSeek's\n`/anthropic` compatibility surface, Kimi, MiniMax, GLM, or a local gateway:\n\n```ts\nimport { envCredential } from '@alvin0/ai-agent-sdk-auth-node'\n\nanthropicPlugin({\n  id: 'kimi',\n  displayName: 'Kimi',\n  baseUrl: 'https://api.moonshot.ai/anthropic',\n  apiKey: envCredential('KIMI_API_KEY'),\n  authHeader: 'bearer', // this endpoint expects Authorization: Bearer, not x-api-key\n})\n```\n\nEffort reaches `output_config.effort` verbatim by default (current GA models).\nFor an older model or a gateway that only understands a thinking-token budget,\nset `reasoningFormat: 'thinking-budget'` plus `thinkingBudgets` to map each\neffort id to a token count instead. `path`/`query` override the request path\nand add query-string parameters, the same way as the other two providers in\nthis SDK.\n\n## Prompt caching\n\nSet `promptCaching: true` to place Anthropic `cache_control` breakpoints on the\nstable request prefix: the system prompt, the final tool definition, and the\nconversation through the second-to-last message. `promptCachingTtl` accepts\n`'5m'` or `'1h'`; leaving it unset uses the API default.\n\nCaching is opt-in because compatible Messages gateways do not all implement\nthis extension. If a gateway returns a 400 that specifically names\n`cache_control`, the adapter retries once without breakpoints and remembers the\ndowngrade. Unrelated request errors still surface normally.\n\n## Default configuration precedence\n\n`contextWindow` and `maxTokens` resolve top-to-bottom, first match wins:\nper-call `maxTokens` → **model** (`models[].contextWindow`,\n`models[].maxTokens`) → **route** (`defaultContextWindow`/`defaultMaxTokens` on\nthis plugin) → **runtime** (`createAgentRuntime({ defaults })`) → **SDK\nconstant** (`200_000` context; `max_tokens` is REQUIRED by this API, so an\nunset value falls back to the protocol's own constant rather than being\nomitted — the one exception to \"unset means not sent\" in this SDK). This\npackage's adapter never guesses a vendor's real context window for an\nuncatalogued model id; declare it via `models: [{ id, contextWindow }]` when\nthe SDK default doesn't match reality.\n","readmeFilename":"README.md"}