{"_id":"@agentscope-chat/host-sdk","_rev":"3-e7bd30d7071a499b69c15cfb75667c23","name":"@agentscope-chat/host-sdk","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@agentscope-chat/host-sdk","version":"1.0.0","keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"author":{"name":"agentscope-chat"},"license":"MIT","_id":"@agentscope-chat/host-sdk@1.0.0","maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"dist":{"shasum":"e379067dbb2bf8426d60d294b1f53f0fedad6fcf","tarball":"https://registry.npmjs.org/@agentscope-chat/host-sdk/-/host-sdk-1.0.0.tgz","fileCount":13,"integrity":"sha512-GuuxhBfdHP6C82nc+wg58IVTZeQ1X4PaMztUo8p1zGBowXQETM+PaUhGVIvKIucwZJ6FKojQo9bc4M7uo3OzQg==","signatures":[{"sig":"MEYCIQCGiyhtopYaBWhb0K2YY47TjtXThecuxWgHfvLhbNM6vwIhAN7mkzXBD3c8fwmulXJv9vg/NXM74EG1At6ozAnWhu74","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":773642},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","require":"./dist/tools/index.cjs"}},"gitHead":"686eb9b91bf6f616a8a5d7934d180107cf1f0144","scripts":{"build":"tsup","release":"npm run typecheck && npm run build && npm publish --access public","typecheck":"tsc -p tsconfig.json --noEmit","release:dry":"npm run typecheck && npm run build && npm pack --dry-run","version:major":"npm version major --no-git-tag-version","version:minor":"npm version minor --no-git-tag-version","version:patch":"npm version patch --no-git-tag-version"},"_npmUser":{"name":"starry123","email":"3247477694@qq.com"},"_npmVersion":"10.9.4","description":"Host SDK for embedding AI Assistant iframe into business systems","directories":{},"_nodeVersion":"22.22.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/host-sdk_1.0.0_1787127397579_0.5348356726110981","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@agentscope-chat/host-sdk","version":"1.1.0","keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"author":{"name":"agentscope-chat"},"license":"MIT","_id":"@agentscope-chat/host-sdk@1.1.0","maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"dist":{"shasum":"10c548cb8adcbcd659c08a43ee5df5c4480e317e","tarball":"https://registry.npmjs.org/@agentscope-chat/host-sdk/-/host-sdk-1.1.0.tgz","fileCount":13,"integrity":"sha512-1M0FChcQEycwqn2ybk6pUDX/KMGxJckGmragC+RRpSlzu3se1gm9i+Ry8pVPvH3NUrzTcrs6Q4suh5S8QFs3Nw==","signatures":[{"sig":"MEUCIQCK7B6ySuOi/ULGmLQxnyHXocdjkJA+6QzwDXcbxM2eqQIgfjpZ0oE2iLxR+/wroWNNIwut4m9ZyKZTxwnJBksJyhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":774389},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","require":"./dist/tools/index.cjs"}},"gitHead":"c3577572e97cf2513c16bc3ea9388b7265193338","scripts":{"build":"tsup","release":"npm run typecheck && npm run build && npm publish --access public","typecheck":"tsc -p tsconfig.json --noEmit","release:dry":"npm run typecheck && npm run build && npm pack --dry-run","version:major":"npm version major --no-git-tag-version","version:minor":"npm version minor --no-git-tag-version","version:patch":"npm version patch --no-git-tag-version"},"_npmUser":{"name":"starry123","email":"3247477694@qq.com"},"_npmVersion":"10.9.4","description":"Host SDK for embedding AI Assistant iframe into business systems","directories":{},"_nodeVersion":"22.22.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/host-sdk_1.1.0_1787820642276_0.33020845353182415","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"_id":"@agentscope-chat/host-sdk@1.2.0","dist":{"shasum":"2d7061dc77ae7d17b646b1636f45d18a7e5abedd","tarball":"https://registry.npmjs.org/@agentscope-chat/host-sdk/-/host-sdk-1.2.0.tgz","fileCount":13,"integrity":"sha512-769PGfERb24Nptn2cvd+UzkmTLpPn+aprXfnIpsPblS2aFW/IK5aOlMKQFY1ps9N+F8stM9PXLrL4Su0rAYIRg==","signatures":[{"sig":"MEUCIAwmMtTp3njg0HIhB0nmunQtEKUGxYIC5CtJoWRN5uGoAiEA86QXXtlXT76SQWPcsWNOlmddT6otuW6iaiBLUDjRenI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1t1prUOfGQcF/U5dOwjeuo06SDJkPMUmowQ2J3OpZ+QIhAKlYiYQP9+z3Vq+fIjd4GqL+BwpKoGXCnIcSP36TWnTc"}],"unpackedSize":781203},"main":"./dist/index.js","name":"@agentscope-chat/host-sdk","type":"module","types":"./dist/index.d.ts","author":{"name":"agentscope-chat"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./tools":{"types":"./dist/tools/index.d.ts","import":"./dist/tools/index.js","require":"./dist/tools/index.cjs"}},"gitHead":"1f27cd5a8238214bf0b760678b73c50edb6b455f","license":"MIT","scripts":{"build":"tsup","release":"npm run typecheck && npm run build && npm publish --access public","typecheck":"tsc -p tsconfig.json --noEmit","release:dry":"npm run typecheck && npm run build && npm pack --dry-run","version:major":"npm version major --no-git-tag-version","version:minor":"npm version minor --no-git-tag-version","version:patch":"npm version patch --no-git-tag-version"},"version":"1.2.0","_npmUser":{"name":"starry123","email":"3247477694@qq.com"},"keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"_npmVersion":"10.9.4","description":"Host SDK for embedding AI Assistant iframe into business systems","directories":{},"maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"_nodeVersion":"22.22.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"peerDependencies":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/host-sdk_1.2.0_1790246934852_0.37032280919114835"}}},"time":{"created":"2026-08-19T08:16:37.389Z","modified":"2026-09-24T10:48:55.204Z","1.0.0":"2026-08-19T08:16:37.800Z","1.1.0":"2026-08-27T08:50:42.499Z","1.2.0":"2026-09-24T10:48:54.969Z"},"author":{"name":"agentscope-chat"},"license":"MIT","keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"description":"Host SDK for embedding AI Assistant iframe into business systems","maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"readme":"# @agentscope-chat/host-sdk\r\n\r\n宿主业务系统与智能体 iframe 的 `postMessage` 通信 SDK。\r\n\r\n```bash\r\nnpm install @agentscope-chat/host-sdk\r\n```\r\n\r\n```ts\r\nimport { createHostBridge } from '@agentscope-chat/host-sdk'\r\n\r\nconst bridge = createHostBridge({\r\n  appId: 'my-app',\r\n  iframeUrl: 'https://agent.example.com/embed',\r\n  token: () => localStorage.getItem('token') || '',\r\n})\r\n```","readmeFilename":"README.md"}