{"_id":"@botanicastudios/claude-code-sdk-ts","_rev":"22-30bf0539f9757a26e4e936ee8227e848","name":"@botanicastudios/claude-code-sdk-ts","dist-tags":{"latest":"0.2.22-fork"},"versions":{"0.2.1-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.1-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.1-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"2d500905031799c49b960e00fa957538e279b4d2","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.1-fork.tgz","fileCount":23,"integrity":"sha512-JcJTMAaNlYI8uoEBFi43l61EkgsZ8bfd8q7IKYLSwxCUU0wvhMABylvtxx8by8Yw1nI3y3CwVUk31yGM8dDS9g==","signatures":[{"sig":"MEYCIQCJWrfI+X+QaNTYhMgOXlS1z1821VJ/B7m+TL090RfsaQIhAPL3RQVPzcDxHxaY0+8pOvABqg27HxbgPLWwOs0wOfL6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252297},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2855df6d9badc13c4e3b72b03422fe6ad7abb457","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.1-fork_1750720700565_0.43257956051581603","host":"s3://npm-registry-packages-npm-production"}},"0.2.2-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.2-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.2-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"2fb640003238ba8334807114d2235b6652a4fbd5","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.2-fork.tgz","fileCount":25,"integrity":"sha512-iWM1sX2MlJIcmjMDrLMGWXP2ps3dcX6qmLGE+kJ8WFIuqMSPAonqlOd3O/awAzawl3Mea2V7c4erPGe2fagfOg==","signatures":[{"sig":"MEUCIQCllUlTIMjWj0aEHPvFeUcFdlIK1iqyh2CaDLe83PmjGgIgYblo/54z/FcQ45oESNbRYrRCoinUGwJPmDbDbf9Fl5w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":362857},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"d691695ca3e8db70435d57d232dd21f169c1e7a3","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.2-fork_1750792291148_0.9174628163908962","host":"s3://npm-registry-packages-npm-production"}},"0.2.3-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.3-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.3-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"29243285be3e95c71f9b1500dc24d697f39ce96c","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.3-fork.tgz","fileCount":25,"integrity":"sha512-eSYJESVIZcHepDhGFvC9YQhg5M1CekGSXNayV/u3VTR+CP/LPXEAiY2JjkI18WgY81/2Soa41RBAnUhK65TVKg==","signatures":[{"sig":"MEYCIQDnfNmF2DMu+V2tWSBxyKRwfYuVD+uXJ+NlzvJUITvdbgIhAOozMzfEk9txsWMEXE7f2wCRY0QB1ILAKFBXzt8vlBX9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":366243},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2fe17a3f42ec41dcf896752ca987ac0070bb2e44","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.3-fork_1750795204176_0.3551388190878435","host":"s3://npm-registry-packages-npm-production"}},"0.2.4-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.4-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.4-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"ce8d838782fb7fb205ec7eb6cb0760edcc990a36","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.4-fork.tgz","fileCount":25,"integrity":"sha512-h+8UkhcoKfWTVLvBDJ3nLZew/uY50cPNpQOBwzqblEzN/VdxzlEcBL5T9iJTjsEemqtOOJjlzGamEuv7/8WdZA==","signatures":[{"sig":"MEUCIQDu1wS2F4GLW5BIkLRTcHV+RXOt55TFKJmIQRYRaVmf9gIgAb/X0FhBxuAlFtjg1wMFf5DDipMJXsYw7IxOBQZS4aw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":366248},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"2fe17a3f42ec41dcf896752ca987ac0070bb2e44","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.4-fork_1750831957408_0.8798389323034017","host":"s3://npm-registry-packages-npm-production"}},"0.2.5-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.5-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.5-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"5bfd6509bae50bf3d5188ef975fe7de6cae3f0c1","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.5-fork.tgz","fileCount":25,"integrity":"sha512-5Hm2a8dtS5QQdHVWkYMtnNF5I9Y8OoINW9IYuPB5FwauUxq2/N9Sm9+zc1VoGgtgC45ix45fyaRSuy0DzQrIbA==","signatures":[{"sig":"MEQCIDghaZEDRt6TUgwJDRxwLPrnKnV8h3sdrh+IohZicg46AiA00HUSE+7yHEYTjxvRmERx8yteSZ21C5ycRj24JZ6j5Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":372224},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"2fe17a3f42ec41dcf896752ca987ac0070bb2e44","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.5-fork_1750843035046_0.26614848757950815","host":"s3://npm-registry-packages-npm-production"}},"0.2.6-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.6-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.6-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"154d04006735d722936d628dc2289d7a3aad644d","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.6-fork.tgz","fileCount":25,"integrity":"sha512-zcGemzNIxFNGkCXXGvHum6jukCfSw+72Vs8ZGM7ycnYYcv/JEg0mNrCqQC83zULrPZAOkypW52gto57ax6IucQ==","signatures":[{"sig":"MEUCIQDH/7XyDMFjRZ0deWQMnKjICNSIjWKwzr5yAGebVAejSwIgQL/R5qW8+pOL9AQKf07Z8bA2l7aC84x471wjhfFHEOg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":384116},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"58366cbe7cd46ab0defb62cd73794a421a0c73f4","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.6-fork_1750954656706_0.9449640640014976","host":"s3://npm-registry-packages-npm-production"}},"0.2.7-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.7-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.7-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"377d4b713687f5a67f583c3701d17ce350a7066d","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.7-fork.tgz","fileCount":25,"integrity":"sha512-0DgoeXSUgdZyagNElYUyZY8GibeSvViMqKpQ7eIetb/nUIpgaw1/Uwg8sXqXmtuubiduX9T//zBXeKW5i1IPtw==","signatures":[{"sig":"MEQCIHgYLiC3zuqWDhAR4uIEFrJrIFH5JtxxSieZ9BSwQr6cAiBQKIAD8d/vMO00aJAS3uDIS7Dvz+wf3YL617/QU2gACw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":384148},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"dd3c4b06b10c54a645fb1c5376c08e9f147b0fbb","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.7-fork_1750955901112_0.94511708868698","host":"s3://npm-registry-packages-npm-production"}},"0.2.8-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.8-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.8-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"f67c4cce86eaabb51300234ef0ad1885eae387b5","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.8-fork.tgz","fileCount":25,"integrity":"sha512-KEUIYg7qszxrec7+vY2WH4bs4fK4tHx5q4hd/AC2/2LmD/N/USDFZXV6v7m+hRQW+k6G4SL2c+hkOL0aV2e3pw==","signatures":[{"sig":"MEUCIQCiYH+GhakHRXEwG6IGQmeQ3gxUynW21dgvS7G3mjbL3AIgP1Vjt1q4hx5qGBhFGgUTdqE8cLxmZgM+SHM2JZM4U3A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":386795},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"6af49bc3d2d88e79d60c58fc197947dd2bbb5986","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.8-fork_1751327555287_0.40378015894721697","host":"s3://npm-registry-packages-npm-production"}},"0.2.9-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.9-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.9-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"a2a3911f98c181300b5e9cbb2530d334440002a7","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.9-fork.tgz","fileCount":25,"integrity":"sha512-zMV4BrLMSbDSZeyz3LSUDvm2wTKftx7b5B//+Zw/O6oDAGwjcxLHmkGpIHKGUZamKcFXCYTf8L/iLWRzUOS+Gw==","signatures":[{"sig":"MEUCIHsH0J3Mv2QpgaVFWWXf03ApASC1ARaFX3pECeiwggPHAiEAwxYvUgYtZzBYW8I1KuuKjYrwOgpsJh6Eto0gUK6A2uU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":386843},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"143afe30ef8ece9de0d5e8c50de3572e01d0f248","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.9-fork_1751752933405_0.7471271051800166","host":"s3://npm-registry-packages-npm-production"}},"0.2.10-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.10-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.10-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"a31406e7d24ae37f085caf37b0add94e2fd3f371","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.10-fork.tgz","fileCount":25,"integrity":"sha512-UYX1R5bYjLUyrT25uBwlUWFN3COuNIFrLoLL31wajTeNLesZcB0mPAG0T7ULgyT1klCLqET0wNE5PK3IKdGMOQ==","signatures":[{"sig":"MEUCIQCev2TQjGHz6wVUc1Z0fQZ+ZJUkqt0xgx0gjOHV7HGYQAIgAzQgdEb/Jij1mZxLr6wuEbWUtx/ceclugbflVbjNVfE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":387056},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5d5e368e832525f4511b0baee08869c5cea9db7d","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.10-fork_1751845064642_0.6015756094995843","host":"s3://npm-registry-packages-npm-production"}},"0.2.11-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.11-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.11-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"ada80c5c99b7ab8fddb1c406480a153e8c89e390","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.11-fork.tgz","fileCount":26,"integrity":"sha512-Ro1XKSJ8tVGGcHrobXOO1TY+nBci5o+5NergEzplr6gfeIkaJPlnVvZQvpYvnrSsDdOu3e79eDZqmsypUuOvjw==","signatures":[{"sig":"MEUCIQDNdCiklC4J+iUrWzCx0sOIYjYeBeUwzU9vFHSNwjMZDgIgBJ9r1ViGwXfhvYoXELTn5WJskxgXi7TIUj1LXwLJ33s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":393190},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"d611f8229c87faee5c6f0c8bcf9b7a9cb77b39f7","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.11-fork_1751913544184_0.26777685641320037","host":"s3://npm-registry-packages-npm-production"}},"0.2.12-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.12-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.12-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"8e50ee81086dd2497b04de27caff55eda8c3bce3","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.12-fork.tgz","fileCount":26,"integrity":"sha512-rCHqUUXT1CezzgA7gAfmDQzOqFhEcab6cOQKCM0ThcjOzCQwoU8wYb5ch3/QulCHCOuh7XyqIYGJcZ3rpbag8g==","signatures":[{"sig":"MEUCIA1BMdrXirUlp/NI6PQLavUVuC/Ls64OsJCIl65jRQH/AiEA5CiquGzGgCvxPXZiy1tGvkO7VXdepn8CCaRyCYRRdj8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":393854},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"e92c6dda0bfb94a776e2d3e4d01397df63c1dd13","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.12-fork_1751980202317_0.23754384818252894","host":"s3://npm-registry-packages-npm-production"}},"0.2.13-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.13-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.13-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"2a7c8ca04e5311e320b9e051d340fc6e6a0e4cc8","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.13-fork.tgz","fileCount":27,"integrity":"sha512-GSw/f48yVfMF6rv/a7RO6isOKarBVyS6xEL4m6oxQ8jBkipDkz9D5oumhcAzH9pA3RWgG3rzR+nKixKz5IvhhQ==","signatures":[{"sig":"MEUCIQD0wZqarOfEJouVyUNzw/B8GDhHBdM+LXW9Pm7Kyp3WkAIgDA1N5o/giYUEMP628wy3HGYv3CcIxD9MdSMO7zzcgYw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":422289},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"7ab0247d3dc34f24d25e241dfe24c65bbbb5d9b8","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.13-fork_1751987709508_0.10670868315781878","host":"s3://npm-registry-packages-npm-production"}},"0.2.14-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.14-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.14-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"97d01059caf15bf34966492c8fe362a6c03bab41","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.14-fork.tgz","fileCount":27,"integrity":"sha512-bAiAHUoRDu0beuGhr0h5rlRTo/+IB3v6/YzJN1TVekN6/0AYkru1dxSxN5IwqSDUEprCMQfwLzxiru2+6/kUjA==","signatures":[{"sig":"MEQCICzypR3h4AKp9Gt/1k9gVhdTmKdBeF+KQzpU2LAPNsyxAiB5Y+SZsCaxpFkVSMocViV6/VdKJPPXyaamyrCmTJh8eg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":423573},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"5dc2c60347b44d4e1a460d10f2e1d2ab43c0c1dc","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.14-fork_1752008175867_0.7677339905693363","host":"s3://npm-registry-packages-npm-production"}},"0.2.15-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.15-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.15-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"18e28de76d66eae588af299d8b2db4328009b47e","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.15-fork.tgz","fileCount":27,"integrity":"sha512-QzsZYpXa0R/PU3ft6WmoN0cDUZVILpsT4Oe2RXDNiBJT4RsiV01+cX9F9RsgHHpM35mWDe5Q82Qd931uWPhYxQ==","signatures":[{"sig":"MEUCIQDiT05uXfzXa4Qtv62LuR8ZK8BpEyGf6Cn8BkuCDc5S/QIgdyGuZtIvT8bjIs0RPgmkVQHiuQQLOg1I+YaFPSpD19I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":442987},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"7eefe68214598ecc796abc3bf4a14319cebd61a6","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","actor":{"name":"tnjm","type":"user","email":"toby.m@rsden.com"},"email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.15-fork_1752147666780_0.08755722391800935","host":"s3://npm-registry-packages-npm-production"}},"0.2.16-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.16-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.16-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"ee058807870de5b0fdcb0ca32e3a9dd133545ac7","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.16-fork.tgz","fileCount":27,"integrity":"sha512-MZH2YJBuh0PEkuQ+Jh7StAODsH2IPqWICpjiT2uyP6bROl6PR8h33sfZQhil+7A9QG3jyY7/HXBzwxHCmrth/g==","signatures":[{"sig":"MEYCIQCDC2cFkVehQU7MCjHwNs1EDycgRp3+sgYQcHOyChdMQgIhAKRy1XjWZ9OQRwsyMsS50ZCu5oZYZf+6145V1fqi/HdU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":459015},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"d191a335d12961a56e605cd241bfc09776e699c8","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.16-fork_1753285077962_0.39303880630565","host":"s3://npm-registry-packages-npm-production"}},"0.2.17-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.17-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.17-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"97fd6007d6fee2cfbd6f998659d26c8e1363f6b7","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.17-fork.tgz","fileCount":27,"integrity":"sha512-qmuwrlyPW9giEBlNZ5V4HTfBAQoTNGHUo+ENtI9OO/NLCNOYI2IESQd9oU1uOcXzdsBA+3TUsSZv0vJzJ1UbQg==","signatures":[{"sig":"MEUCIQDz4N7t91rI030Pc+7SVN1WGGDaAztiel5/ccgxDq1vWAIgKIBKh1/SDiP9aVL3HL43qZWJWua2iX5dlGgTtGZeAEs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":458933},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"2a60d5db7c0e8091d8476097b3694f08f9ce4eb0","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.17-fork_1753937289032_0.013032262785179327","host":"s3://npm-registry-packages-npm-production"}},"0.2.18-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.18-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.18-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"79c43c52f142125fd4c9133c25c9fe4999452c41","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.18-fork.tgz","fileCount":27,"integrity":"sha512-HGk/khWUNEQQa3s5g7kpzyXGEDMNhywHFSwNRpERT3/B6bXwULkeuylLJkLcXkwk1otHBEGOxospQBlHQVF7BA==","signatures":[{"sig":"MEYCIQCpaKDq7wjeAb6mDVD5sYkC6gxHiHHSm+duP6XcqhxMgAIhAPmG0AED0eQQpHY5DPl2ROuhiZNqfHEccB8D0MsQeyfU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":476354},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"b68ff8d19d1e2ba4e1429fd13123ffe8aa9e9c5d","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.18-fork_1754085524237_0.8379703715545068","host":"s3://npm-registry-packages-npm-production"}},"0.2.19-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.19-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.19-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"170cce83d58f881783099ebbecbd34babc943ba4","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.19-fork.tgz","fileCount":27,"integrity":"sha512-LLwQdSubTDPnF8GpdpG+waykJCEGG1mVZ6wiraBfzu2D4XSi9A/N8nf4tTceaF0a/pD8UPY+kYDNBSdCoOE6Lw==","signatures":[{"sig":"MEYCIQCdNDGc/TJ8WQoUHymDFhd7CaMX1WmHyaBQiS8gcI3qQAIhAJssz8A5DmqP4KQL9hZzXBmm7L6jV9CPaMa3np/XurE+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":483454},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"705f505b154b818ac866bf2217d51009af26c47c","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.19-fork_1756814992808_0.6129805718613137","host":"s3://npm-registry-packages-npm-production"}},"0.2.20-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.20-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.20-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"503f5f1617bb6e2c452baead626c1721214607ea","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.20-fork.tgz","fileCount":27,"integrity":"sha512-NfFEs1UGY7XCdmUlNnONUchAJykJlEipf3MflUrzRlaaSoeS3jOElQZux3IRqJi5doakwaDSrcWwZ80TMNKksA==","signatures":[{"sig":"MEUCIAg/bpcd9Of9oaQWFjOXfKnoS+Z6U6WJy6iZtvK238jOAiEA2nsXpCmpdwSFfO0gyh5MqoFaulAykL4CcdWl6lR/9xU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":483544},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"1f27e0705f9c13e0b90bebf349bcd70f3c813f12","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.20-fork_1756893442565_0.09559723092409333","host":"s3://npm-registry-packages-npm-production"}},"0.2.21-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.21-fork","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","_id":"@botanicastudios/claude-code-sdk-ts@0.2.21-fork","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"dist":{"shasum":"80e41108ec0311f3eab1e34f086d20e94c6e3240","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.21-fork.tgz","fileCount":27,"integrity":"sha512-vu/FnB03Htv+Hey40x/Uj3fc75dzeiMf38vdDr0e5wy4nW/zM2DScg4ngWAjhSKesG//YSgoTT0NGazNoLtF9w==","signatures":[{"sig":"MEUCIDiBs/2lrKzB0fjTEQzDQPNSEMRWqNEK7fZxQz9PZSCpAiEA+oexb1a36SX2mlRW/hxg4CznDq6UuufFwNMDZAk2z6U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":479916},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"79cb7104e78f5b0748ee3a8abbd08f2f8bebb785","scripts":{"dev":"tsup --watch","lint":"eslint src tests --ext .ts","test":"vitest","build":"tsup","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build","typecheck":"tsc --noEmit","test:coverage":"vitest --coverage"},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"repository":{"url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git","type":"git"},"_npmVersion":"10.9.2","description":"Unofficial TypeScript port of the official Python Claude Code SDK","directories":{},"_nodeVersion":"22.15.0","dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","eslint":"^8.54.0","vitest":"^1.0.0","prettier":"^3.1.0","typescript":"^5.3.0","@types/node":"^20.10.0","@types/which":"^3.0.3","@vitest/coverage-v8":"^1.0.0","@typescript-eslint/parser":"^6.13.0","@typescript-eslint/eslint-plugin":"^6.13.0"},"_npmOperationalInternal":{"tmp":"tmp/claude-code-sdk-ts_0.2.21-fork_1757432841727_0.9193324165009658","host":"s3://npm-registry-packages-npm-production"}},"0.2.22-fork":{"name":"@botanicastudios/claude-code-sdk-ts","version":"0.2.22-fork","description":"Unofficial TypeScript port of the official Python Claude Code SDK","type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest","test:coverage":"vitest --coverage","typecheck":"tsc --noEmit","lint":"eslint src tests --ext .ts","format":"prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"","prepare":"npm run build"},"keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"author":{"name":"Daniel King & Claude"},"license":"MIT","engines":{"node":">=18.0.0"},"dependencies":{"execa":"^8.0.1","which":"^4.0.0"},"devDependencies":{"@types/node":"^20.10.0","@types/which":"^3.0.3","@typescript-eslint/eslint-plugin":"^6.13.0","@typescript-eslint/parser":"^6.13.0","@vitest/coverage-v8":"^1.0.0","eslint":"^8.54.0","prettier":"^3.1.0","tsup":"^8.0.1","typescript":"^5.3.0","vitest":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git"},"bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","_id":"@botanicastudios/claude-code-sdk-ts@0.2.22-fork","gitHead":"f0ae805079130d6064ffa7f8a5fbe1154603211b","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-nJsVKFOpAMur/0itDk4XhjaJC+CUZ82A2BhASkChtoWaN+SHVUlVpDvUVXsYQdCKIsk5DoqpfkZ2RWhwcNfA3w==","shasum":"7a03b58a0ba8ca0d6c43c1242a17ba93277400af","tarball":"https://registry.npmjs.org/@botanicastudios/claude-code-sdk-ts/-/claude-code-sdk-ts-0.2.22-fork.tgz","fileCount":27,"unpackedSize":479808,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG2C1HP2FNd2BFDuuJ+ANDFbnHsfl/EyGY3V7RoxpxjiAiEAtjOY7tnMRFnPOvllcmo6weuEZEOxsmNeHQY+XjrQf28="}]},"_npmUser":{"name":"tnjm","email":"toby.m@rsden.com"},"directories":{},"maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/claude-code-sdk-ts_0.2.22-fork_1757434289440_0.6462915010499113"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-23T23:18:20.449Z","modified":"2025-09-09T16:11:30.201Z","0.2.1-fork":"2025-06-23T23:18:20.819Z","0.2.2-fork":"2025-06-24T19:11:31.312Z","0.2.3-fork":"2025-06-24T20:00:04.454Z","0.2.4-fork":"2025-06-25T06:12:37.618Z","0.2.5-fork":"2025-06-25T09:17:15.242Z","0.2.6-fork":"2025-06-26T16:17:36.901Z","0.2.7-fork":"2025-06-26T16:38:21.333Z","0.2.8-fork":"2025-06-30T23:52:35.477Z","0.2.9-fork":"2025-07-05T22:02:13.612Z","0.2.10-fork":"2025-07-06T23:37:44.820Z","0.2.11-fork":"2025-07-07T18:39:04.404Z","0.2.12-fork":"2025-07-08T13:10:02.608Z","0.2.13-fork":"2025-07-08T15:15:09.678Z","0.2.14-fork":"2025-07-08T20:56:16.051Z","0.2.15-fork":"2025-07-10T11:41:07.010Z","0.2.16-fork":"2025-07-23T15:37:58.175Z","0.2.17-fork":"2025-07-31T04:48:09.221Z","0.2.18-fork":"2025-08-01T21:58:44.437Z","0.2.19-fork":"2025-09-02T12:09:53.031Z","0.2.20-fork":"2025-09-03T09:57:22.745Z","0.2.21-fork":"2025-09-09T15:47:21.987Z","0.2.22-fork":"2025-09-09T16:11:29.668Z"},"bugs":{"url":"https://github.com/botanicastudios/claude-code-sdk-ts/issues"},"author":{"name":"Daniel King & Claude"},"license":"MIT","homepage":"https://github.com/botanicastudios/claude-code-sdk-ts#readme","keywords":["claude","claude-code","anthropic","ai","sdk","typescript"],"repository":{"type":"git","url":"git+https://github.com/botanicastudios/claude-code-sdk-ts.git"},"description":"Unofficial TypeScript port of the official Python Claude Code SDK","maintainers":[{"name":"tnjm","email":"toby.m@rsden.com"}],"readme":"# Claude Code SDK for TypeScript\n\n[![npm version](https://badge.fury.io/js/@instantlyeasy%2Fclaude-code-sdk-ts.svg)](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts)\n[![npm downloads](https://img.shields.io/npm/dm/@instantlyeasy/claude-code-sdk-ts.svg)](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.3+-blue.svg)](https://www.typescriptlang.org/)\n[![Node.js Version](https://img.shields.io/node/v/@instantlyeasy/claude-code-sdk-ts.svg)](https://nodejs.org/)\n\nUnofficial TypeScript port of the official Python Claude Code SDK for [Claude Code](https://github.com/anthropics/claude-code), the CLI tool for interacting with Claude.\n\n> **Note**: This is a community-maintained TypeScript port. For the official Python SDK, see [claude-code-sdk](https://github.com/anthropics/claude-code-sdk).\n\n## Installation\n\n```bash\nnpm install @instantlyeasy/claude-code-sdk-ts\n# or\nyarn add @instantlyeasy/claude-code-sdk-ts\n# or\npnpm add @instantlyeasy/claude-code-sdk-ts\n```\n\n**Prerequisites:**\n\n- Node.js 18 or later\n- Claude Code CLI installed (`npm install -g @anthropic-ai/claude-code`)\n\n## Quick Start\n\n### New Fluent API (Recommended)\n\nThe SDK now includes a powerful fluent API that makes common tasks easier:\n\n```javascript\nimport { claude } from '@instantlyeasy/claude-code-sdk-ts';\n\n// Simple Hello World\nconst response = await claude().withModel('sonnet').skipPermissions().query('Say \"Hello World!\"').asText();\n\nconsole.log(response); // Outputs: Hello World!\n```\n\n### File Operations with Fluent API\n\n```javascript\nimport { claude } from '@instantlyeasy/claude-code-sdk-ts';\n\n// Create a file with automatic result extraction\nconst result = await claude()\n  .allowTools('Write')\n  .skipPermissions()\n  .query('Create a hello.txt file with \"Hello from Claude!\"')\n  .asResult();\n\nconsole.log('Task completed:', result);\n\n// Read and parse JSON data\nconst config = await claude().allowTools('Read').query('Read package.json and return its content').asJSON();\n\nconsole.log('Version:', config.version);\n```\n\n### Session Management\n\nMaintain conversation context across multiple queries with built-in session handling:\n\n```javascript\nimport { claude } from '@instantlyeasy/claude-code-sdk-ts';\n\n// Session management with explicit session ID\nconst builder = claude().withModel('sonnet').skipPermissions();\nconst parser = builder.query('Pick a random number from 1-100');\nconst sessionId = await parser.getSessionId();\nconst firstResponse = await parser.asText();\nconst secondResponse = await builder.withSessionId(sessionId).query('What number did you pick?').asText();\n// Claude remembers the number from the first query\n\n// Manual session management\nconst builder = claude().withModel('sonnet').skipPermissions();\nconst parser = builder.query('Tell me a fun fact');\nconst sessionId = await parser.getSessionId();\nconst fact = await parser.asText();\n\n// Continue conversation with session ID\nconst follow = await builder.withSessionId(sessionId).query('Tell me more about that topic').asText();\n```\n\n### Advanced Features\n\n```javascript\nimport { claude, ConsoleLogger, LogLevel } from '@instantlyeasy/claude-code-sdk-ts';\n\n// Full example with logging, event handlers, and response parsing\nconst logger = new ConsoleLogger(LogLevel.DEBUG);\n\nconst analysis = await claude()\n  .withModel('opus')\n  .allowTools('Read', 'Grep', 'Glob')\n  .inDirectory(process.cwd())\n  .withLogger(logger)\n  .onToolUse(tool => console.log(`Using ${tool.name}...`))\n  .query('Find all TODO comments in the codebase')\n  .asToolExecutions();\n\n// Get detailed tool execution results\nfor (const execution of analysis) {\n  console.log(`${execution.tool}: ${execution.isError ? 'Failed' : 'Success'}`);\n}\n```\n\n### Classic API (Original Syntax)\n\nThe original async generator API is still fully supported:\n\n```javascript\nimport { query } from '@instantlyeasy/claude-code-sdk-ts';\n\n// Simple Hello World\nfor await (const message of query('Say \"Hello World!\"')) {\n  if (message.type === 'assistant') {\n    for (const block of message.content) {\n      if (block.type === 'text') {\n        console.log(block.text); // Outputs: Hello World!\n      }\n    }\n  }\n}\n```\n\n## Authentication\n\nThis SDK delegates all authentication to the Claude CLI. There are two ways to authenticate:\n\n### 1. Claude Pro/Max Account (Recommended)\n\n```bash\n# One-time setup - login with your Claude account\nclaude login\n```\n\n### 2. API Key (If supported by your Claude CLI version)\n\nThe Claude CLI may support API key authentication in some configurations. Check your Claude CLI documentation.\n\n**Important**: The SDK does not handle authentication directly. If you see authentication errors, you need to authenticate using the Claude CLI first.\n\n## API Reference\n\n### Fluent API\n\n#### `claude(): QueryBuilder`\n\nCreates a new query builder for the fluent API.\n\n```typescript\nconst builder = claude()\n  .withModel('sonnet') // Set model\n  .allowTools('Read', 'Write') // Configure tools\n  .skipPermissions() // Skip permission prompts\n  .withTimeout(30000) // Set timeout\n  .inDirectory('/path') // Set working directory\n  .withLogger(logger) // Add logging\n  .onMessage(handler) // Add event handlers\n  .withSessionId('session-id') // Continue existing session\n  .query('Your prompt'); // Execute query\n```\n\n#### Response Parsing Methods\n\n- `.asText()` - Extract plain text from assistant messages\n- `.asJSON<T>()` - Parse JSON from the response\n- `.asResult()` - Get the final result message\n- `.asToolExecutions()` - Get all tool executions with results\n- `.findToolResults(toolName)` - Find results from specific tool\n- `.getUsage()` - Get token usage and cost statistics\n- `.stream(callback)` - Stream messages with a callback\n\n### Classic API\n\n#### `query(prompt: string, options?: ClaudeCodeOptions): AsyncGenerator<Message>`\n\nQuery Claude Code with a prompt and options.\n\n##### Parameters\n\n- `prompt` (string): The prompt to send to Claude Code\n- `options` (ClaudeCodeOptions, optional): Configuration options\n\n##### Returns\n\nAn async generator that yields `Message` objects.\n\n### Types\n\n#### `ClaudeCodeOptions`\n\n```typescript\ninterface ClaudeCodeOptions {\n  // Model selection\n  model?: string; // Claude model to use (e.g., 'opus', 'sonnet')\n\n  // Tool configuration\n  allowedTools?: ToolName[]; // Explicitly allowed tools\n  deniedTools?: ToolName[]; // Explicitly denied tools\n\n  // Permission handling\n  permissionMode?: PermissionMode; // 'default' | 'acceptEdits' | 'bypassPermissions'\n\n  // Session management\n  sessionId?: string; // Existing session ID to continue conversation\n\n  // Execution environment\n  cwd?: string; // Working directory\n  env?: Record<string, string>; // Environment variables\n\n  // MCP (Model Context Protocol) servers\n  mcpServers?: MCPServer[]; // MCP servers to connect\n\n  // SDK options\n  timeout?: number; // Timeout in milliseconds\n  debug?: boolean; // Enable debug logging (Note: may interfere with JSON parsing)\n\n  // Deprecated options (not used by CLI transport)\n  apiKey?: string; // Use `claude login` instead\n  baseUrl?: string; // Not applicable for CLI\n  maxTokens?: number; // Not configurable via CLI\n  temperature?: number; // Not configurable via CLI\n  tools?: ToolName[]; // Use allowedTools/deniedTools instead\n  context?: string[]; // Not implemented\n}\n```\n\n#### `Message`\n\n```typescript\ntype Message = UserMessage | AssistantMessage | SystemMessage | ResultMessage;\n\ninterface UserMessage {\n  type: 'user';\n  content: string;\n}\n\ninterface AssistantMessage {\n  type: 'assistant';\n  content: ContentBlock[];\n}\n\ninterface SystemMessage {\n  type: 'system';\n  content: string;\n}\n\ninterface ResultMessage {\n  type: 'result';\n  content: string;\n  usage?: UsageInfo;\n  cost?: CostInfo;\n}\n```\n\n#### `ContentBlock`\n\n```typescript\ntype ContentBlock = TextBlock | ToolUseBlock | ToolResultBlock;\n\ninterface TextBlock {\n  type: 'text';\n  text: string;\n}\n\ninterface ToolUseBlock {\n  type: 'tool_use';\n  id: string;\n  name: string;\n  input: Record<string, unknown>;\n}\n\ninterface ToolResultBlock {\n  type: 'tool_result';\n  tool_use_id: string;\n  content: string | Array<TextBlock | unknown>;\n  is_error?: boolean;\n}\n```\n\n## New Features in v0.2.0\n\n### 🎯 Fluent API\n\nA chainable API that reduces boilerplate and improves readability:\n\n- Method chaining for configuration\n- Automatic response parsing\n- Built-in event handlers\n- Type-safe throughout\n\n### 📊 Response Parsers\n\nExtract exactly what you need from Claude's responses:\n\n- Text extraction with `.asText()`\n- JSON parsing with `.asJSON<T>()`\n- Tool execution analysis\n- Usage statistics and costs\n\n### 📝 Logging Framework\n\nPluggable logging system for better debugging:\n\n- Multiple log levels (ERROR, WARN, INFO, DEBUG, TRACE)\n- Console and JSON loggers included\n- Custom logger support\n- Multi-logger for sending to multiple destinations\n\n## Examples\n\nCheck out the [examples directory](./examples) for complete, runnable examples including:\n\n- **[fluent-api-demo.js](./examples/fluent-api-demo.js)** - Comprehensive showcase of the new fluent API\n- **[response-parsing-demo.js](./examples/response-parsing-demo.js)** - Advanced response parsing techniques\n- **[sessions.js](./examples/sessions.js)** - Session management and conversation context\n- Hello World (both classic and fluent syntax)\n- File operations\n- Code analysis\n- Interactive sessions\n- Web research\n- Project scaffolding\n- Error handling\n\nFor detailed documentation on the fluent API, see [docs/FLUENT_API.md](./docs/FLUENT_API.md).\n\n## Migrating to Fluent API\n\nThe fluent API dramatically reduces boilerplate code. Here are some common migration patterns:\n\n### Before (Classic API):\n\n```javascript\nlet fullText = '';\nfor await (const message of query('Generate a story')) {\n  if (message.type === 'assistant') {\n    for (const block of message.content) {\n      if (block.type === 'text') {\n        fullText += block.text;\n      }\n    }\n  }\n}\nconsole.log(fullText);\n```\n\n### After (Fluent API):\n\n```javascript\nconst fullText = await claude().query('Generate a story').asText();\nconsole.log(fullText);\n```\n\nMore migration examples in [docs/FLUENT_API.md#migration-guide](./docs/FLUENT_API.md#migration-guide).\n\n## Error Handling\n\n```typescript\nimport { query, ClaudeSDKError, CLINotFoundError } from '@instantlyeasy/claude-code-sdk-ts';\n\ntry {\n  for await (const message of query('Hello')) {\n    console.log(message);\n  }\n} catch (error) {\n  if (error instanceof CLINotFoundError) {\n    console.error('Please install Claude Code CLI first:');\n    console.error('npm install -g @anthropic-ai/claude-code');\n  } else if (error instanceof ClaudeSDKError) {\n    console.error('SDK error:', error.message);\n  } else if (error.message?.includes('Invalid API key')) {\n    console.error('Authentication required. Please run: claude login');\n  } else {\n    console.error('Unexpected error:', error);\n  }\n}\n```\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the SDK\nnpm run build\n\n# Run tests\nnpm test\n\n# Type checking\nnpm run typecheck\n\n# Linting\nnpm run lint\n```\n\n## Changelog\n\n### v0.2.0 (Latest) 🚀\n\n**New Features:**\n\n- ✨ **Fluent API**: New chainable API with `claude()` for improved developer experience\n- 📊 **Response Parsers**: Built-in methods for extracting text, JSON, and tool results\n- 📝 **Logging Framework**: Pluggable logging system with multiple implementations\n- 🔧 **Event Handlers**: `onMessage()`, `onAssistant()`, and `onToolUse()` callbacks\n- 📈 **Usage Statistics**: Get token counts and cost information with `.getUsage()`\n\n**Improvements:**\n\n- 100% backward compatible - existing code continues to work\n- Comprehensive TypeScript support throughout\n- Extensive test coverage for all new features\n- New examples demonstrating fluent API patterns\n\n### v0.1.4\n\n- Include examples in npm package\n\n### v0.1.2\n\n- Fixed CLI command search to properly find `claude` command\n- Removed unsupported authentication flags (CLI handles auth internally)\n- Improved error messages for authentication failures\n- Updated documentation to clarify authentication flow\n\n### v0.1.1\n\n- Added `--print` flag for non-interactive mode\n- Fixed CLI path resolution\n- Initial TypeScript error fixes\n\n### v0.1.0\n\n- Initial release\n- TypeScript port of official Python SDK\n- Full support for Claude Code CLI features\n\n## License\n\nMIT\n","readmeFilename":"README.md"}