{"_id":"@bodhi_lab/bodhi-web-sdk","name":"@bodhi_lab/bodhi-web-sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bodhi_lab/bodhi-web-sdk","version":"0.1.0","private":false,"description":"Thin web helpers for calling hosted Bodhi embed APIs","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"sideEffects":false,"publishConfig":{"access":"public"},"license":"MIT","dependencies":{"@bodhi_lab/bodhi-sdk-core":"0.1.0"},"devDependencies":{"tsup":"^8.4.0","typescript":"^5.7.0","vitest":"^3.0.0"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit","test":"vitest run"},"_id":"@bodhi_lab/bodhi-web-sdk@0.1.0","_integrity":"sha512-Sr5sRlm7SokZ1+w2hksiD0ha/0BP1lBIocZ2IlHWjrF1P7z/fBEu1JAMg/xQNL0sQzi5PRR/oZcvNatfRvEn1g==","_resolved":"/private/var/folders/x3/fz4m80xx1hbd41v2ylhmqh0r0000gn/T/e2dfe2fdb8970d2238795e078f90e6f3/bodhi_lab-bodhi-web-sdk-0.1.0.tgz","_from":"file:bodhi_lab-bodhi-web-sdk-0.1.0.tgz","_nodeVersion":"23.11.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-Sr5sRlm7SokZ1+w2hksiD0ha/0BP1lBIocZ2IlHWjrF1P7z/fBEu1JAMg/xQNL0sQzi5PRR/oZcvNatfRvEn1g==","shasum":"033d3624415ca7f7e3fe90176ab8ab599c5db936","tarball":"https://registry.npmjs.org/@bodhi_lab/bodhi-web-sdk/-/bodhi-web-sdk-0.1.0.tgz","fileCount":8,"unpackedSize":21374,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHa0/3XHpYWoLsQp5c7rFK5xKFrWqpu+sJC+Yf40VoiGAiBIVEk5VoCveTD/ntl9lsVRGtxLErsyh8cyLaMezoTvXw=="}]},"_npmUser":{"name":"bodhi_lab","email":"bodhiagent@gmail.com"},"directories":{},"maintainers":[{"name":"bodhi_lab","email":"bodhiagent@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bodhi-web-sdk_0.1.0_1777676066155_0.47768607718311196"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-01T22:54:26.052Z","0.1.0":"2026-05-01T22:54:26.298Z","modified":"2026-05-01T22:54:26.519Z"},"maintainers":[{"name":"bodhi_lab","email":"bodhiagent@gmail.com"}],"description":"Thin web helpers for calling hosted Bodhi embed APIs","license":"MIT","readme":"<!-- SPDX-License-Identifier: MIT -->\n\n# @bodhi_lab/bodhi-web-sdk\n\nThin browser helpers for calling hosted Bodhi embed APIs.\n\n## Scope\n\nThis package does **not** include any agent runtime or backend logic.\n\nIt only helps your app:\n\n- call `POST /api/embed/avatar-sessions` for a saved `ua_*` agent\n- call `POST /api/embed/widget-sessions` for a published `wg_*` widget\n- build the hosted `/embed/avatar` iframe URL\n\n## Example\n\n```ts\nimport {\n  buildEmbedAvatarPageUrl,\n  createAgentAvatarEmbedSession,\n} from '@bodhi_lab/bodhi-web-sdk';\n\nconst session = await createAgentAvatarEmbedSession(\n  'https://YOUR_BODHI_API_ORIGIN',\n  'ua_0123456789abcdef',\n  {\n    headers: {\n      Authorization: 'Bearer YOUR_AUTH_TOKEN',\n    },\n  },\n);\n\nconst iframeUrl = buildEmbedAvatarPageUrl(\n  'https://YOUR_BODHI_WEB_ORIGIN',\n  session,\n).toString();\n```\n","readmeFilename":"README.md","_rev":"1-bfb1a462b985e0ae2d14e94c75dd8e7a"}