{"_id":"@alonchat/sdk","name":"@alonchat/sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@alonchat/sdk","version":"0.1.0","description":"Official TypeScript SDK for chatting with AlonChat agents and using project operations.","keywords":["alonchat","ai-agent","chatbot","typescript","sdk"],"homepage":"https://alonchat.com/docs/developer/sdk-cli","license":"Apache-2.0","type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"node ../../node_modules/typescript/bin/tsc -p tsconfig.json"},"engines":{"node":">=20"},"dependencies":{"@alonchat/contracts":"0.1.0"},"gitHead":"7de705f026b638ad581ce00e5d566c91d2862fee","_id":"@alonchat/sdk@0.1.0","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-V+3ctfs+KW3WR27bqT4jGHX/z6FkfVHg64kBnzddXVDtbRcJai/8sK40k4Wfk1DQhFy8eF5uYoPaw/BglLNsZg==","shasum":"88521c8d27ddbfb49036501e20050a4f3a5c41fc","tarball":"https://registry.npmjs.org/@alonchat/sdk/-/sdk-0.1.0.tgz","fileCount":7,"unpackedSize":60114,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD0zgB8mA4FWczmmTn/WWQe0aFHdgJ+buThPlXwixWH2AIgA/UOCIHCaCtVVNXOvKKLmu4PYQ1FLTvKp5B+0nswT4o="}]},"_npmUser":{"name":"alabalon","email":"rradofina@alabalon.com"},"directories":{},"maintainers":[{"name":"alabalon","email":"rradofina@alabalon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.0_1785769955074_0.8264492221424382"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T15:12:34.853Z","0.1.0":"2026-08-03T15:12:35.214Z","modified":"2026-08-03T15:12:35.461Z"},"maintainers":[{"name":"alabalon","email":"rradofina@alabalon.com"}],"description":"Official TypeScript SDK for chatting with AlonChat agents and using project operations.","homepage":"https://alonchat.com/docs/developer/sdk-cli","keywords":["alonchat","ai-agent","chatbot","typescript","sdk"],"license":"Apache-2.0","readme":"# `@alonchat/sdk`\n\nThe official TypeScript client for sending messages to AlonChat agents and using project-scoped\noperations.\n\n## Install\n\n```bash\nnpm install @alonchat/sdk\n```\n\n## Chat with an agent\n\n```ts\nimport { AlonChatClient } from '@alonchat/sdk'\n\nconst alonchat = new AlonChatClient({\n  apiKey: process.env.ALONCHAT_API_KEY!,\n})\n\nconst result = await alonchat.sendMessage({\n  agentId: process.env.ALONCHAT_AGENT_ID!,\n  message: 'What time do you close?',\n  idempotencyKey: crypto.randomUUID(),\n})\n\nconsole.log(result.response)\nconsole.log(result.conversationId)\n```\n\nRead hosted billing state:\n\n```ts\nconst subscription = await alonchat.getBillingSubscription()\nconst usage = await alonchat.getBillingUsage() // requires billing_read\n```\n\nPass `conversationId` into the next call to continue the same conversation. Use `streamMessage(...)`\nwhen you need Server-Sent Event updates.\n\nVersioned agent-workbench operations are available through `executeOperation(...)`. They can inspect\ncurrent setup, read bounded production transcripts, validate an evidence-backed proposal, and save a\nreview-gated design session. See the\n[agent workbench guide](https://alonchat.com/docs/developer/agent-workbench) for permissions and the\nowner-approval boundary.\n\nAPI keys are server-side credentials. Do not expose them in browser or mobile application bundles.\n\n[Developer documentation](https://alonchat.com/docs/developer/sdk-cli)\n\nLicensed under Apache-2.0. The package is a thin client; the AlonChat application and hosted runtime\nremain proprietary.\n","readmeFilename":"README.md","_rev":"1-d8073e202ffc3bd9080316dac9c9a012"}