{"_id":"@amarsia/react","_rev":"12-3c59447b1f8f098e8346e42971e6b2d4","name":"@amarsia/react","dist-tags":{"latest":"1.5.1"},"versions":{"0.1.1":{"name":"@amarsia/react","version":"0.1.1","author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@0.1.1","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"2bd5b78af82fa7d42315e80bd239f07d1b425691","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-0.1.1.tgz","fileCount":8,"integrity":"sha512-tCHl5G6bgh4q2oPK27wuEspO1E69mVi+p2N4EdYR54HLtEbDeqF9KphxVVe+eiseaPD3SDNjun+4hMyEnPJnew==","signatures":[{"sig":"MEUCIQDY5lr6SetG5xm5TL6gfTYv7bJzxN0ueDIi3nXog8MjgAIgOaBAOvmnYh97617cq1XqWJkQ3D5tFvWAYdDZyBHvObs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3077},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9357d542ceacab9526809dce8bc7663eeae34fb4","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git"},"_npmVersion":"10.8.2","description":"React/Next.js wrapper package for the Amarsia SDK.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.1","dependencies":{"@amarsia/sdk":"^0.1.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_0.1.1_1774356910895_0.8444446376215198","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@amarsia/react","version":"1.0.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.0.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"11e11ce801452b6cd7502291624fed53b11c30d2","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.0.0.tgz","fileCount":8,"integrity":"sha512-2ROqEyn6c54GNsOAHVg4N4bjr2iAHJsGvsrgCnlta14GrSP/crchMgr708iln3lEwJdfbgdhLCE8GkdN5noZ6w==","signatures":[{"sig":"MEQCIBiqZsSnOdry1lFvGo/+VydfqzGWW9tMTffjWJ5/bBAaAiABf/PE1C1oHRU82rxIz8lPFOs38YYtw44vQLJcD9ZYeA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":19167},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"818ffe2154fb995bfc73898ea03cc57cf964a5d6","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.1","dependencies":{"@amarsia/sdk":"^1.0.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.0.0_1774366718492_0.591747611494466","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@amarsia/react","version":"1.1.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.1.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"b67a59add31901d071640a3f76dd0aaf8717bb40","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.1.0.tgz","fileCount":6,"integrity":"sha512-nh61A+o8lp8hCfYSjbrwujyh69Y2QsR8nKqaKL5bseTNUVh1+alH2gKJXmf1eyy2HWFlr5ivv7mCnr3xE0N5JA==","signatures":[{"sig":"MEYCIQCiaiNhZH3jCmIusESLsC/pNnHwEPxWZN1QHSjyWk+srgIhAJecfCAKdEPp5zuHIwmIW0y9DwBnIcFMNJSuolniw/p0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14470},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"dcff2e636cd697bd54507f3c02338d263e0e5e14","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.1","dependencies":{"@amarsia/sdk":"^1.1.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.1.0_1774429570902_0.7143049199132601","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@amarsia/react","version":"1.2.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.2.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"94c557ca4972e6cdf018d91caef64e66881af9f9","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.2.0.tgz","fileCount":6,"integrity":"sha512-JUXvpIq/t0FIMWMFDK5qdlv0r2KMVMUoJlkPCcmvaqpTDjPIFV2/82PAgBT7w9ddNsxEC4qp8gq7u65/RWRaKA==","signatures":[{"sig":"MEUCIDtHHecwQQ7oHy7CTwx4HLTYVr8CkJe86bn3deO44szNAiEAwATom50MuUf+p9KoE92KMzz0zVAnvGc6pTbJyHEhPYI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14616},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e18a49663d000e3787dbe202643ee666adbe07aa","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.2.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.2.0_1776420794247_0.44255818042689765","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@amarsia/react","version":"1.2.1","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.2.1","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"1628194d26fd606534f0fed5a3ae07dbc853d577","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.2.1.tgz","fileCount":6,"integrity":"sha512-EBXq7jKq87W0tGEI5692rdWfa9Z/0lfWO7BeocviaTZh2/SV8xgK+6MKoMz47yeaW5EJQD6apLpAqQvGCJs3qQ==","signatures":[{"sig":"MEYCIQDLN12KPC2q0QcdYqhEaX2l+QhPQ8wdW6JDF/XsysJG5AIhALUDmnupWA29KU2lteqjB9+wzKXXjOcK0jRz4vJPdRya","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15092},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f274f36c4c4ce88b334b044cac4e844f252313c0","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.2.1"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.2.1_1776685334990_0.7150524681294641","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@amarsia/react","version":"1.2.2","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.2.2","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"00a4e0370bc914941aed8f6c21832629b5798208","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.2.2.tgz","fileCount":6,"integrity":"sha512-CtrtzIncz9svPnqz+SBj7LWFL7SA2FyYpscdJhoef83NY1v7Hs9fwUdZB4EyahuKh+cGL9j9sGNPGeJCIgCKwA==","signatures":[{"sig":"MEYCIQDUtXaEEr59DMSBQOPqJVWPJkPKjFQ47iCzPEmyoFsGFQIhAPijh9afSpePd0fBXVr/gbo21EiYvlaJ34jennjiAVL6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15518},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"308d178cafcda217f66b9eb69b337fbb16633a61","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.2.2"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.2.2_1776755727041_0.554025054443652","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@amarsia/react","version":"1.2.3","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.2.3","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"1e0168eeb5aa8842e6878352b08a8fb2d9108905","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.2.3.tgz","fileCount":6,"integrity":"sha512-YE1ZsqqY+KYjEqc1lGOotTfWou139dLo02D/iSSf4MXxii0bg7lnicGR0jFo35c/KKWRLrPbyARH30dzHOfGWQ==","signatures":[{"sig":"MEUCIEoNKhLqZBD10PRcx3xnlJu9az4+CpgZNdu2GoNChqOyAiEA1ddETuCzD8w0jGQHx7CzIqC4EkmznwBsCtP88UU+DLU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15518},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"406ec9fa8726b3f7037e558b7471732bbd36603c","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.2.3"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.2.3_1777312961940_0.9395156484136116","host":"s3://npm-registry-packages-npm-production"}},"1.2.4":{"name":"@amarsia/react","version":"1.2.4","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.2.4","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"8e58c2d2724476946bfe2cc9653f6269c2502459","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.2.4.tgz","fileCount":6,"integrity":"sha512-QNfFVUwD/oVRMHGienbga2W8HdmgUxyG4N8nR1whfOOFj7ceMFU5rYvIdqxMGR8LSeJ6wUAdufz2XyPIHnfRiw==","signatures":[{"sig":"MEUCIQCYF6vf8/gve8+3ZaMiAxsi9m8NEiEBteF9iCvVoMHMbAIget2gThF2wheJA3dZaXUTW9njmdab99Vio/JazhrHYT0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.2.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15677},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4618ffd77489bdaad8d7e8b8be8e7810e0722c50","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.2.4"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.2.4_1779964197832_0.36862584362005","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@amarsia/react","version":"1.3.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.3.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"e169fcd0d5d1e22306e810daec17b2f0302e56b6","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.3.0.tgz","fileCount":6,"integrity":"sha512-jzCCu5wOHz59STg8tiXqsyZMVh7tiIOvJLerFHkhNSpLlQY7FNf+07mkQbYGvdXhqzgiGEWgKMAu1JNKJaXKaA==","signatures":[{"sig":"MEYCIQCda/CyCVPkvXEMXeT75ckMYrzK3sRQcxK+OYyxoe1XVAIhAJ0zVTUO5yWzild6JcMSYZJeFdK7BC/HUgJW30AhDDe9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15677},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"8d2f321b037b07bcaf6374d58b49824348e4df28","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.3.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.3.0_1783433198663_0.7832476504159782","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@amarsia/react","version":"1.4.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.4.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"7883c58a2a9be237d502a251e1de7165ae1ce99e","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.4.0.tgz","fileCount":6,"integrity":"sha512-Ne9kMPuRxar5gTIdtEtoI8genUmQJ81AlwLr64Ti+Evy3Db6Bgn4HYNBJz0x9uhFYBAf/vNSnrJf/5Yzb64sEQ==","signatures":[{"sig":"MEQCICICnL9LW46Vy/Be5ETOh9xj9EZqqGgmHqgFlDImr6+dAiAnmYv3koJqHytLLG7G+BoFK8v/Hr/LT/n+dVyGkifiYA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":15677},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9bba5c7a657e58da0b7b35bc23b1af5f40850576","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.4.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.4.0_1783603604213_0.5937321883470292","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@amarsia/react","version":"1.5.0","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"author":{"name":"Amarsia"},"license":"MIT","_id":"@amarsia/react@1.5.0","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"dist":{"shasum":"5740efd94702dd68b3832904d87ac68a2ad80efb","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.5.0.tgz","fileCount":6,"integrity":"sha512-pPJC5rm0eXgI+JviQVNPJuisi6EV9vmhobtxTsBMTJQhno6F1WmzDmFJALZIGJj+pWdWb93GFhf1u5A6/OLFWA==","signatures":[{"sig":"MEUCIB8ecyHRCz9wGtLJdg8MEO49XY2xhjdDT+NbuG6b+ehaAiEAwOuJ68CerJxEFgkhNMYgVdutVeGbYShUIT+SMSVJukE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17781},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c2fd5a64be1531181dd2e329400ecc936232db46","scripts":{"lint":"eslint src","build":"npm run clean && tsup","clean":"rimraf dist","lint:fix":"eslint src --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"repository":{"url":"git+https://github.com/Amarsia/amarsia-packages.git","type":"git","directory":"packages/react"},"_npmVersion":"10.8.2","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"@amarsia/sdk":"^1.5.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/react_1.5.0_1783928127056_0.25743276276225613","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@amarsia/react","version":"1.5.1","description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","license":"MIT","author":{"name":"Amarsia"},"repository":{"type":"git","url":"git+https://github.com/Amarsia/amarsia-packages.git","directory":"packages/react"},"homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"sideEffects":false,"engines":{"node":">=18"},"scripts":{"clean":"rimraf dist","build":"npm run clean && tsup","typecheck":"tsc --noEmit","lint":"eslint src","lint:fix":"eslint src --fix"},"dependencies":{"@amarsia/sdk":"^1.5.1"},"peerDependencies":{"react":">=18","react-dom":">=18"},"publishConfig":{"access":"public","provenance":true},"_id":"@amarsia/react@1.5.1","gitHead":"3f8297a803f5b2cfbf3f7c21daef33d64a81da48","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-7o1DCcwozRS/YqWIbBADWeoB4RF5k8sVHWrDEytV3KBnNi9kETV+1QXl9zYlFC/BB+9HWYIkebKiLwbaDCLl7g==","shasum":"a41d679dae299069955566250c64882ac55456e8","tarball":"https://registry.npmjs.org/@amarsia/react/-/react-1.5.1.tgz","fileCount":6,"unpackedSize":17781,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@amarsia%2freact@1.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDvy0e/sJ3t27yN8PB3MaHlBUrTgYDtVnSnjtV32p+0QAiEA/jguHHWT0PfOhZPmtrb/KEIauj4Fr2V5jYvPAsDpv+k="}]},"_npmUser":{"name":"anuj.amarsia","email":"anuj@amarsia.com"},"directories":{},"maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react_1.5.1_1783935478457_0.7294830733748028"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-24T12:55:10.825Z","modified":"2026-07-13T09:37:58.999Z","0.1.1":"2026-03-24T12:55:11.052Z","1.0.0":"2026-03-24T15:38:38.622Z","1.1.0":"2026-03-25T09:06:11.169Z","1.2.0":"2026-04-17T10:13:14.401Z","1.2.1":"2026-04-20T11:42:15.139Z","1.2.2":"2026-04-21T07:15:27.208Z","1.2.3":"2026-04-27T18:02:42.081Z","1.2.4":"2026-05-28T10:29:57.962Z","1.3.0":"2026-07-07T14:06:38.793Z","1.4.0":"2026-07-09T13:26:44.384Z","1.5.0":"2026-07-13T07:35:27.200Z","1.5.1":"2026-07-13T09:37:58.581Z"},"bugs":{"url":"https://github.com/Amarsia/amarsia-packages/issues"},"author":{"name":"Amarsia"},"license":"MIT","homepage":"https://github.com/Amarsia/amarsia-packages/tree/main/packages/react#readme","keywords":["ai","sdk","amarsia","assistant","streaming","llm","orchestration","agent builder","react","nextjs","react hooks","ai chat","stateful hooks","react ai sdk","nextjs ai sdk"],"repository":{"type":"git","url":"git+https://github.com/Amarsia/amarsia-packages.git","directory":"packages/react"},"description":"The official React and Next.js SDK wrapper for Amarsia — build AI assistants with stateful hooks.","maintainers":[{"name":"anuj.amarsia","email":"anuj@amarsia.com"}],"readme":"# @amarsia/react\n\nReact wrapper for `@amarsia/sdk`.\n\n- docs: [docs.amarsia.com](https://docs.amarsia.com)\n- npm: [@amarsia/react](https://www.npmjs.com/package/@amarsia/react)\n- repository: [amarsia-packages/packages/react](https://github.com/Amarsia/amarsia-packages/tree/main/packages/react)\n- core SDK: [@amarsia/sdk](https://www.npmjs.com/package/@amarsia/sdk)\n\nThis package is intentionally thin:\n\n- no API/config logic duplicated from SDK\n- no custom state model\n- only React hooks over SDK controllers\n\nAny behavior changes in `@amarsia/sdk` automatically flow through here.\n\n## What Is `@amarsia/react`?\n\n`@amarsia/react` is the official React and Next.js integration for Amarsia AI APIs. It gives you simple stateful hooks for:\n\n- one-shot AI calls (`useRun`)\n- streaming AI output (`useStream`)\n- stateful multi-turn chat (`useConversation`)\n- durable agent timelines (`useAgent`)\n\nThis is useful for chat UIs, copilots, AI forms, and agentic app experiences.\n\n## Install\n\n```bash\nnpm install @amarsia/react\n```\n\n`@amarsia/react` already depends on `@amarsia/sdk`, so it is installed automatically.\n\nIf your app imports from `@amarsia/sdk` directly (for example `amarsia.init(...)`), install both explicitly:\n\n```bash\nnpm install @amarsia/react @amarsia/sdk\n```\n\n## Quick Start\n\n```tsx\nimport { amarsia } from \"@amarsia/sdk\";\nimport { useConversation } from \"@amarsia/react\";\n\nconst client = amarsia.init({\n  // apiKey is optional. Omit it for public workflows (authentication off)\n  // where requests are authorized by the workflow's allowlist instead.\n  apiKey: process.env.NEXT_PUBLIC_AMARSIA_API_KEY,\n  deploymentId: process.env.NEXT_PUBLIC_AMARSIA_DEPLOYMENT_ID!\n});\n\nexport function Chat() {\n  const { conversation, id, status, live, data } = useConversation(client);\n\n  async function onSend(prompt: string) {\n    await conversation.stream({\n      content: [{ type: \"text\", text: prompt }]\n    });\n  }\n\n  return (\n    <div>\n      <div>Conversation ID: {id ?? \"not started\"}</div>\n      <div>Status: {status}</div>\n      <pre>{live || String(data?.content ?? \"\")}</pre>\n      <button onClick={() => void onSend(\"Hello\")}>Send</button>\n    </div>\n  );\n}\n```\n\n## API Contract Reference\n\n`@amarsia/react` is a thin hook layer over SDK controller contracts.\n\n### Hook input contract\n\nEach hook accepts the corresponding controller from a single SDK client:\n\n```ts\nconst client = amarsia.init(...);\nuseRun(client);          // uses client.run\nuseStream(client);       // uses client.stream\nuseConversation(client); // uses client.conversation\nuseAgent(client);        // uses client.agent\nuseAmarsia(client);      // all four\n```\n\n### Shared hook state contract\n\nAll hook states include:\n\n```ts\n{\n  status: \"idle\" | \"loading\" | \"streaming\" | \"success\" | \"error\";\n  data: unknown | null;\n  live: string; // transient live stream buffer\n  error: { name: string; message: string; ... } | null;\n  meta: Record<string, unknown> | null;\n  raw: unknown;\n}\n```\n\n### `useRun(client)`\n\nReturns SDK run state + callable run controller.\n\n```tsx\nimport { useRun } from \"@amarsia/react\";\n\nconst { run, status, data, error, meta, live } = useRun(client);\nawait run({\n  content: [{ type: \"text\", text: \"Write a release note.\" }]\n});\n```\n\n`run` callable contract (from SDK):\n\n```ts\nrun({\n  content: MessageContent[];\n  variables?: Record<string, unknown>;\n  deploymentId?: string;\n}): Promise<RunResponse>\n```\n\n### `useStream(client)`\n\nReturns SDK stream state + callable stream controller.\n\n```tsx\nimport { useStream } from \"@amarsia/react\";\n\nconst { stream: streamController, status, live, data } = useStream(client);\nawait streamController({\n  content: [{ type: \"text\", text: \"Generate checklist.\" }]\n});\n```\n\nAbort current stream:\n\n```ts\nstreamController.abort();\n```\n\n`stream` callable contract (from SDK):\n\n```ts\nstream({\n  content: MessageContent[];\n  variables?: Record<string, unknown>;\n  deploymentId?: string;\n  signal?: AbortSignal;\n}): Promise<StreamResponse>\n```\n\n### `useConversation(client)`\n\nReturns SDK conversation state + conversation controller.\n\n```tsx\nimport { useConversation } from \"@amarsia/react\";\n\nconst { conversation, id, messages, messagesPageInfo } = useConversation(client);\n\nconversation.start(); // new clean state\nconversation.start(\"conv_existing_123\"); // bind to known conversation\n\nawait conversation.run({\n  content: [{ type: \"text\", text: \"Continue this chat.\" }]\n});\n\nawait conversation.loadMessages(); // first page with API defaults\nawait conversation.loadMessages({ conversationId: \"conv_existing_123\" }); // fetch by explicit id\nawait conversation.loadMessages({ page: 2, pageSize: 20, append: true }); // append + dedupe by message id\n\nawait conversation.list({\n  page: 1,\n  pageSize: 20,\n  meta: { team: \"growth\" }\n});\n```\n\n`conversation` callable contract (from SDK):\n\n```ts\nconversation.start(conversationId?: string, deploymentId?: string): void;\n\nconversation.run({\n  content: MessageContent[];\n  historyLimit?: number;\n  signal?: AbortSignal;\n  variables?: Record<string, unknown>; // fresh-conversation only\n  meta?: Record<string, string | number | boolean>; // fresh-conversation only\n}): Promise<ConversationData>;\n\nconversation.stream({\n  content: MessageContent[];\n  historyLimit?: number;\n  signal?: AbortSignal;\n  variables?: Record<string, unknown>; // fresh-conversation only\n  meta?: Record<string, string | number | boolean>; // fresh-conversation only\n}): Promise<ConversationData>;\n\nconversation.loadMessages({ conversationId?, page?, pageSize?, append? }): Promise<ConversationMessage[]>;\nconversation.list({ page?, pageSize?, meta? }): Promise<ChatConversation[]>;\nconversation.abort(): void;\n```\n\n`conversation.list(...)` uses the active conversation/client deployment context and maps to `/v1/runner/{deployment_id}/conversations` in the core SDK.\nThe list and message-history endpoint responses use `items`; the SDK returns those item arrays and stores them in `conversation.conversations` or `conversation.messages`.\n\nNote:\n- Most apps should switch deployments by creating a new SDK client (`amarsia.init({ deploymentId: \"dep_...\" })`) instead of passing `deploymentId` to `conversation.start(...)`.\n- The second `deploymentId` argument on `conversation.start(...)` is an advanced option.\n\nResume pattern in React (typical):\n\n```tsx\nimport { useEffect } from \"react\";\nimport { useConversation } from \"@amarsia/react\";\n\nconst { conversation } = useConversation(client);\n\nuseEffect(() => {\n  const storedConversationId = \"conv_abc123\"; // read from route/session/db\n  if (storedConversationId) conversation.start(storedConversationId);\n}, [conversation]);\n```\n\n### `useAgent(client)`\n\nSubscribes to the durable agent controller while keeping its methods available:\n\n```tsx\nimport { useAgent } from \"@amarsia/react\";\n\nconst {\n  history,\n  historyPageInfo,\n  messages,\n  pendingToolCalls,\n  status,\n  agent\n} = useAgent(client);\n\nawait agent.resolveTool(pendingToolCalls[0].callId, { approved: true });\n\nif (historyPageInfo?.hasMore) {\n  await agent.loadMoreHistory();\n}\n```\n\nUse `agent.get(conversationId)` for a one-time server snapshot. Use\n`agent.open(conversationId)` when the component should remain synchronized;\nthe hook rerenders through `subscribe()` as the controller state changes.\nRender `history` for the ordered message/tool/action timeline; `messages` is\nthe derived message-only view.\n\n### `useAmarsia(client)`\n\nConvenience hook that returns all four:\n\n```tsx\nimport { useAmarsia } from \"@amarsia/react\";\n\nconst { run, stream, conversation, agent } = useAmarsia(client);\n```\n\nReturn contract:\n\n```ts\n{\n  run: ReturnType<typeof useRun>;\n  stream: ReturnType<typeof useStream>;\n  conversation: ReturnType<typeof useConversation>;\n  agent: ReturnType<typeof useAgent>;\n}\n```\n\n## Why this package is simple\n\n- Uses `useSyncExternalStore` only; no hidden reducer/context layer.\n- Reads SDK state directly via `getState()` and `subscribe(...)`.\n- Calls SDK methods directly (`run(...)`, `stream(...)`, `conversation.run(...)`, `conversation.stream(...)`).\n\nIf you already use `@amarsia/sdk`, this package just removes manual `useState/useEffect` wiring.\n\n## FAQ\n\n### Is this the official Amarsia React package?\n\nYes. `@amarsia/react` is the official React wrapper for `@amarsia/sdk`.\n\n### Do I need both `@amarsia/react` and `@amarsia/sdk`?\n\n`@amarsia/react` installs `@amarsia/sdk` automatically. If you import SDK APIs directly in your app, install both explicitly.\n\n### Does this support Next.js?\n\nYes. The hooks work in React and Next.js client components.\n\n### Where is payload field-level API reference?\n\nSee `@amarsia/sdk` README API reference section and full docs at [docs.amarsia.com](https://docs.amarsia.com).\n\n### Search terms\n\nAmarsia React SDK, Amarsia Next.js SDK, Amarsia React hooks, Amarsia streaming chat React, Amarsia conversation hooks.\n","readmeFilename":"README.md"}