{"_id":"@aramb-ai/sdk","_rev":"12-f53b6a280ddf5de9a25e3f236a211f0c","name":"@aramb-ai/sdk","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"@aramb-ai/sdk","version":"0.0.1","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.1","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"154c96acf88f3f96c80d8c5a374b9acc06b60e5b","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.1.tgz","fileCount":10,"integrity":"sha512-I6mjh9LD+DTEmWhwiSrMdG/GtsVAs7DCAJSA0V2OhpMQuiS/1u5qg3Y1s2AIfTBhvO4ykOoOPxKkGubotSOPSw==","signatures":[{"sig":"MEQCIEUWfEw9rkjaAsWlcXKrAomdDDtZGbNIHSZ0glH2XUQKAiBFPOcHUoThVlPdoH6ukm725pwee39AMJfgYLcKMNnEGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110134},"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":"e1716f7b7d4b3a88d3769536b0e4fe32de883136","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"11.7.0","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.1_1784105521668_0.5566848134989311","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@aramb-ai/sdk","version":"0.0.2","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.2","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"81131d12ca7a0654a6f8c66fd078498d159bd7ab","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.2.tgz","fileCount":10,"integrity":"sha512-R8WP0svrxYZ01KNN65FO3blk1w23es1VGz+Pwo5ZlwCOKGmXkHhRoa2ShLaylBf+ztUuJYaWXPoPr7HGsH/glg==","signatures":[{"sig":"MEUCIQDuwDf8f9TMrQyNjUyrEIy077kx0pOyr9Yz3smmdIGLDgIgEiVtrj1t64bauwBSS6AAvPP0FJzR234ppfijts6qFsM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":187701},"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":"4de5d8c9a38b5b0ccb4d9a562b3352ffd075fb56","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.2_1784280336086_0.7764641557771341","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@aramb-ai/sdk","version":"0.0.3","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.3","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"f7f1d0b411c6349ea6df95a74bb8a6cd37c45609","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.3.tgz","fileCount":10,"integrity":"sha512-1LZCyixqJErKqyjQhQyktXz8KSYFzLbbDQIUajHsw9eMtQqME4Po9tpR6a8hnzBxLgClcFwHejQA9PaTp6eZXA==","signatures":[{"sig":"MEQCIEE4hR8b8sGKMYF+W1+2fP4vV2XO8SYcVO+9QDLKl+rzAiABohfmuCfM88Lx7bIY+9J56ecqwm0cMZDB3PAS9XWC9g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190278},"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":"abfe986c3da96c0c323ec873ef50f3688a895608","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.3_1784368723080_0.25076525404428884","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@aramb-ai/sdk","version":"0.0.4","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.4","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"5d3b9ad7c9dba62842910cce3d14a3cefa603e9d","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.4.tgz","fileCount":10,"integrity":"sha512-VYzT6h+pQY5Laq3j6HvMXEFzAtNPC2k/eKP5LXdMYiK1MsokrHjREf/DO6S1kIJ1LZ9OoxvD0cQygU8Jp8HHSQ==","signatures":[{"sig":"MEUCIGcwe4FqzFs0ONKAYzlcytr+iMDIf5KIrDk4LC/bdH56AiEAhPg1TkDyvnUH0vmEelj13tui1urTGQMpHABib5ZGM4Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190590},"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":"3378975cbc3b9fd6f74503d7cc58032362d36da1","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.4_1784707326563_0.6920573774453376","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@aramb-ai/sdk","version":"0.0.5","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.5","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"de3723a27f09b05aad28a589905dd1accaa66ddf","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.5.tgz","fileCount":10,"integrity":"sha512-qfC0sty7hsPHrwxaU0pkdHTwn2/AX92+j2PmBwP26c4BO97D8uEE6/tvS2Pys8aECWom4Ut76ei+WDTE04VGrQ==","signatures":[{"sig":"MEYCIQDdlS70UzUFmHuo+TKNdP9O53XGsHYnrje40fs934e/vwIhAMPYYvLPbK/Sx4peHwiS8qGqKOXNox94ESgxj+Io4Tna","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":231168},"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":"24e69f5279bf3979d10098d7400b103001fd4a7d","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.5_1784717706075_0.20450907699708543","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@aramb-ai/sdk","version":"0.0.6","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.6","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"c082341b6fbbb2314fe9d4896cf6b0bb9b68db83","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.6.tgz","fileCount":10,"integrity":"sha512-5Tzkf+jEaYcEO4axucCdmJFJiwA+6ofSpmo0BuWNm1NNUUAgHgorpUM6OC7ngSM84zUWkJLDAHGwnAhYwzoHYA==","signatures":[{"sig":"MEUCIQCkwMoj3gq9En+N7nved22bApT7vSzpKcPPSGt2JCqeHAIgN3X1uce6krSv84/QpGn6Gc4x1Lset2aTPRezI6mK8Xg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":233950},"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":"3658a5c913e5e89e59a5d405342a9276bc91c2cb","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.6_1784722122856_0.5155215430846929","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@aramb-ai/sdk","version":"0.0.7","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.7","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"9006c5fdb70ef4a61216717000fb427e4ccd72ff","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.7.tgz","fileCount":10,"integrity":"sha512-14tijp4rcnnpN0Hw7tYrhX2dZmZGBz9OwM+QZOOVZBLnBUwpnmcI0dvvfl40DG3umwLx257zjYGFRw9HuUdH3A==","signatures":[{"sig":"MEYCIQCOu7F2gwrBPBSuv7HJhD5DTpjML+fcs+PWts3I19nSngIhAOYWu0GL3A+e2yf8Vyd3UE0gMXLUOZIn0Ynvr9xC4A8C","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":239865},"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":"749f3f0af00b270c549394406ffa1b43bac8d6f8","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.7_1784729807483_0.0010653452559814536","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@aramb-ai/sdk","version":"0.0.8","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.8","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"04c5938c1e2b79f4a5bcce7039d7298bdd3aac91","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.8.tgz","fileCount":10,"integrity":"sha512-XINcAZrzgCsLWhebKCd+mjQkmYOmHNc3R7B4PPteNYeHaw6Rw8CjIhjkmQzzb94MxTwB1cxX2E1rnRyCXQK+ww==","signatures":[{"sig":"MEUCIQCR8Emh1oTLbzGZYMJCDMMF8N5Ch4aLui9PTkiUHIdWuAIgW27YJ4nQVZ8pSJ5OYMfw7sXrewvpZp0nxuAWMJI/+GA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":244275},"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":"ec20a26942554a4201ef53c0f38a4373c0410412","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.8_1784872249879_0.8524680128457922","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@aramb-ai/sdk","version":"0.0.9","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.9","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"4c5f28c48c27a7bde0eee01b949332a48a78c09d","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.9.tgz","fileCount":10,"integrity":"sha512-AQGrHu2QK//jLrY5JZKBl4te6731ITgKLN/DkW0yviZKkeRDxmHMwJ0a+1bQAcFHsxdnOfiGfEkSvPb+SL889A==","signatures":[{"sig":"MEUCIDPh1Ea+r9eY8XNHuocNI4K9+2jjrXKoyJFIvnvRkoyIAiEAzCP+4UvXaIfcVMNcnRg0vHOvjX3MwZWAlVxkRyAqKl0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":248813},"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":"1d9a049d28cd1ff64492332d2ae7eefeb78fea99","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.9_1785161927698_0.9639735542264161","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@aramb-ai/sdk","version":"0.0.10","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.10","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"a576e4149d8b6a0c7a9f1cf4a17b2a64e20fddf7","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.10.tgz","fileCount":10,"integrity":"sha512-KsWXsBG9MyC7uuMJmcIvR89jVxElq1tvRTFovRDqu6YRtP6bdgFwU3RbDeKJwqlmn6j2dKlMaSBujBmFSRaCSA==","signatures":[{"sig":"MEYCIQDhvC70nyqMe7XQKhmKQ+Pao6R0UaudjPZ9HTG+9JjYawIhAJRta7yP/AJxGeSjGXj8EsU1fgM5hme2XDI8QNKZ9mLX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":252059},"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":"cfdcc800388bd7155f0321157b5480691d47209a","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.10_1785231757171_0.560862672025803","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@aramb-ai/sdk","version":"0.0.11","keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","_id":"@aramb-ai/sdk@0.0.11","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"dist":{"shasum":"d4858f31c64e2eeab193fb271d3877dcb420cd34","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.11.tgz","fileCount":10,"integrity":"sha512-uc0BcdNGr/+dbQTPm/SYNHsw5k+V5x8Ou7CAJ/69pilkCi+YazbCkV0x7ubtANReYY0ygR2cOsCedVxHki017g==","signatures":[{"sig":"MEUCIQCSDVN7peEmYgDMupu4SBAiHUC4rR6u6GyY1Xmf8MyMXgIgOMX1Ap4gFocK9tQDatmDTtW61f0/SDtNQpFHoSx7EMI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":254543},"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":"82be7489cc82b73ddc5994eb464e538cfcea6a9d","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"repository":{"url":"git+https://github.com/clode-labs/aramb-sdk-node.git","type":"git"},"_npmVersion":"10.8.2","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{"ws":"^8.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^2.1.5","@types/ws":"^8.5.12","typescript":"^5.6.3","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.11_1786101455642_0.20997194833674904","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@aramb-ai/sdk","version":"0.0.12","description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","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"}},"sideEffects":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/clode-labs/aramb-sdk-node.git"},"homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit","test":"vitest run","prepublishOnly":"npm run build"},"keywords":["aramb","agent","ai","sdk","llm"],"license":"MIT","dependencies":{"ws":"^8.18.0"},"devDependencies":{"@types/node":"^22.9.0","@types/ws":"^8.5.12","tsup":"^8.3.5","typescript":"^5.6.3","vitest":"^2.1.5"},"engines":{"node":">=18"},"_id":"@aramb-ai/sdk@0.0.12","gitHead":"7e31b31908391eae69d1400c5de8f8862b5db530","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-ocbDTOAiKluSDveOi3s2DDLHs9imifhh4JDXE0ljE+lbs9+YsVXFafaHZd4ECmCVsmxoTab3Giv/YtjZZQYTLQ==","shasum":"1a7fbf8a32c032326876477718e1b92f36bf4079","tarball":"https://registry.npmjs.org/@aramb-ai/sdk/-/sdk-0.0.12.tgz","fileCount":10,"unpackedSize":260761,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH/p93RiUR4oCN9WkRT/CjCkKAAtxi5riP5dt9+UvZVuAiEApaurKH+RPqrTlMBGIVXHBBufVqSa5HW0RyTVIHAW6f0="}]},"_npmUser":{"name":"sivaramclode","email":"sivaram@clode.io"},"directories":{},"maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.0.12_1786442142069_0.7357313541473729"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T08:52:01.498Z","modified":"2026-08-11T09:55:42.426Z","0.0.1":"2026-07-15T08:52:01.808Z","0.0.2":"2026-07-17T09:25:36.248Z","0.0.3":"2026-07-18T09:58:43.215Z","0.0.4":"2026-07-22T08:02:06.724Z","0.0.5":"2026-07-22T10:55:06.213Z","0.0.6":"2026-07-22T12:08:42.997Z","0.0.7":"2026-07-22T14:16:47.614Z","0.0.8":"2026-07-24T05:50:50.041Z","0.0.9":"2026-07-27T14:18:47.863Z","0.0.10":"2026-07-28T09:42:37.304Z","0.0.11":"2026-08-07T11:17:35.805Z","0.0.12":"2026-08-11T09:55:42.234Z"},"bugs":{"url":"https://github.com/clode-labs/aramb-sdk-node/issues"},"license":"MIT","homepage":"https://github.com/clode-labs/aramb-sdk-node#readme","keywords":["aramb","agent","ai","sdk","llm"],"repository":{"type":"git","url":"git+https://github.com/clode-labs/aramb-sdk-node.git"},"description":"Typed Node/TypeScript SDK for the aramb agent gateway — create agents, stream replies, read usage.","maintainers":[{"name":"aramb-labs","email":"release@aramb.ai"},{"name":"sivaramclode","email":"sivaram@clode.io"}],"readme":"# @aramb-ai/sdk\n\nThe Node/TypeScript SDK for the **aramb** agent gateway. Three primitives — create an\nagent, talk to it (streaming or awaited), read usage — over a small, fully-typed surface.\n\n```bash\nnpm install @aramb-ai/sdk\n```\n\nRequires Node 18+ (uses the built-in `fetch`). Server-side only: your `apiKey` is sent on\nevery request and must never ship to a browser.\n\n---\n\n## The three primitives\n\n```ts\nimport { Aramb } from '@aramb-ai/sdk';\n\nconst aramb = new Aramb({ apiKey: process.env.ARAMB_KEY! });\n```\n\n`new Aramb({ apiKey, baseUrl? })` — `baseUrl` defaults to the hosted gateway\n(`https://gateway.aramb.dev`); pass it only to target another environment.\n\n### 1. Create an agent — `createAgent`\n\nDefine an agent once (e.g. at deploy time) from its identity. The `systemPrompt` **is** the\nagent — the persona it embodies, not instructions layered onto a generic assistant — so write\nit as who the agent is. Returns an `agentId` you reuse for every conversation.\n\n```ts\nconst { agentId } = await aramb.createAgent({\n  systemPrompt: 'You are a supportive running coach. Keep replies under 4 sentences.',\n  name: 'coach', // optional\n  isolationMode: 'per_user', // optional; server default\n});\n```\n\n`isolationMode` controls how your end-users are separated under one agent:\n\n- `per_user` (default) — each end-user (`subTenant`) gets their **own** project + VM +\n  isolated transcript.\n- `shared` — all end-users share **one** project (and one VM).\n\nOmit it and the server applies `per_user`.\n\n### 2. Talk to it — `session(...)`\n\nA **session** is one conversation, scoped to a single end-user via `subTenant` (your own\nstable per-user id — used for isolation and usage accounting). It owns a WebSocket to the\ngateway, dialed lazily on the first call. Optionally pass `subTenantDisplay` — a\nhuman-readable label (email/username) shown next to the opaque `subTenant` in the console;\nit never becomes the isolation or meter key.\n\n```ts\n// subTenant = your stable per-user id; subTenantDisplay = a readable label for the console.\nconst session = aramb.session({ agentId, subTenant: user.id, subTenantDisplay: user.email });\n\n// Awaited: get the whole reply at once.\nconst { reply, usage } = await session.run('I ran 5k today, how do I recover?');\nconsole.log(reply);            // full text\nconsole.log(usage?.tokens);    // token count, when the gateway reports it\n\n// Streaming: render tokens as they arrive.\nfor await (const chunk of session.stream('Plan my week.')) {\n  process.stdout.write(chunk.delta);\n}\n\nawait session.close(); // release the socket when the conversation is done\n```\n\nRuns on one session are **serialized**: calling `run`/`stream` again before the previous\nfinishes queues it, so deltas never interleave. Use one session per concurrent user.\n\n### 3. Read usage — `getUsage`\n\n```ts\nconst all = await aramb.getUsage();                       // every product + sub-tenant\nconst one = await aramb.getUsage({ subTenant: 'user-42' }); // scoped to one user\n// { products: [{ product, subTenants: [{ subTenant, tokens }] }] }\n```\n\n---\n\n## Frame & event model\n\nUnder the hood the gateway streams typed **frames**. `run`/`stream` consume the reply\nframes for you; lifecycle frames are surfaced as **events** on the session:\n\n```ts\nsession.on('status', (state) => {});  // 'provisioning' | 'ready' | 'reconnecting' | 'failed'\nsession.on('turn', (phase) => {});    // 'start' | 'end'\nsession.on('error', (err) => {});     // ArambError — also rejects the in-flight run/stream\n```\n\n| Frame | Surfaced as |\n|-------|-------------|\n| `status` | `status` event |\n| `turn` | `turn` event |\n| `chunk` | joined into `run()`'s reply / yielded by `stream()` as `.delta` |\n| `done` | resolves `run()` / ends `stream()` |\n| `error` | `error` event **and** rejects the in-flight call |\n\nThe session reconnects automatically on a transient socket drop mid-run (emitting\n`status: 'reconnecting'` and resending the input); after the reconnect budget is exhausted\nit rejects with `code: 'connection_failed'`.\n\n## Error handling\n\nEvery failure — HTTP, socket, or an `error` frame — throws an `ArambError` with a stable,\nmachine-readable `code` (e.g. `unauthorized`, `over_quota`, `connection_failed`). Transport\ninternals are never leaked.\n\n```ts\nimport { ArambError, isArambError } from '@aramb-ai/sdk';\n\ntry {\n  await session.run('hi');\n} catch (err) {\n  if (isArambError(err) && err.code === 'unauthorized') {\n    // handle a bad/expired key\n  }\n}\n```\n\n---\n\n## Quickstart — a coaching chat backend\n\nA complete, runnable Express server: one shared agent, one session per user, streaming and\nawaited endpoints, plus a usage route. Copy it as-is.\n\n```ts\nimport express from 'express';\nimport { Aramb, type Session } from '@aramb-ai/sdk';\n\nconst aramb = new Aramb({ apiKey: process.env.ARAMB_KEY! });\n\n// Create the agent once at startup; reuse its id for everyone. The system\n// prompt is the agent's identity — the persona it is, not a decoration block.\nconst { agentId } = await aramb.createAgent({\n  systemPrompt: 'You are a supportive running coach. Keep replies under 4 sentences.',\n});\n\n// One session per end-user, keyed by your app's user id (the subTenant).\nconst sessions = new Map<string, Session>();\nfunction sessionFor(userId: string): Session {\n  let s = sessions.get(userId);\n  if (!s) {\n    s = aramb.session({ agentId, subTenant: userId });\n    s.on('error', (err) => console.error(`session ${userId}:`, err.code, err.message));\n    sessions.set(userId, s);\n  }\n  return s;\n}\n\nconst app = express();\napp.use(express.json());\n\n// Awaited reply.\napp.post('/chat/:userId', async (req, res) => {\n  try {\n    const { reply } = await sessionFor(req.params.userId).run(req.body.message);\n    res.json({ reply });\n  } catch (err: any) {\n    res.status(502).json({ error: err.code ?? 'unknown', message: err.message });\n  }\n});\n\n// Streamed reply (Server-Sent Events).\napp.post('/chat/:userId/stream', async (req, res) => {\n  res.setHeader('Content-Type', 'text/event-stream');\n  try {\n    for await (const chunk of sessionFor(req.params.userId).stream(req.body.message)) {\n      res.write(`data: ${JSON.stringify(chunk.delta)}\\n\\n`);\n    }\n  } catch (err: any) {\n    res.write(`event: error\\ndata: ${JSON.stringify(err.code ?? 'unknown')}\\n\\n`);\n  }\n  res.end();\n});\n\n// Per-user token usage.\napp.get('/usage/:userId', async (req, res) => {\n  res.json(await aramb.getUsage({ subTenant: req.params.userId }));\n});\n\napp.listen(3000, () => console.log('coach backend on :3000'));\n```\n\nFull method reference: [`docs/api.md`](./docs/api.md).\n","readmeFilename":"README.md"}