{"_id":"@agentscope-chat/iframe-sdk","_rev":"2-2978a6405bbe592cf0daf8bc4d2a6077","name":"@agentscope-chat/iframe-sdk","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@agentscope-chat/iframe-sdk","version":"1.0.0","keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"author":{"name":"agentscope-chat"},"license":"MIT","_id":"@agentscope-chat/iframe-sdk@1.0.0","maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"dist":{"shasum":"e480645cab594098227a5008854ad6ed4b97ec00","tarball":"https://registry.npmjs.org/@agentscope-chat/iframe-sdk/-/iframe-sdk-1.0.0.tgz","fileCount":6,"integrity":"sha512-JvW3sWhi2ohJVtk7SQumTGPJA2/5cEL/3feGtBJKJTJ7M0bgMZHb1td19e++K6gQK7pdCvciKacOhz8u3UFbew==","signatures":[{"sig":"MEYCIQDO9BuZIzCtB9MsUeBinkq0ijc7pl1t5NW5/tu1n3QLlwIhAJ+V0RJ/pynljSkzNpi+8tjPyTNahAMchrt9luEEAxDT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28332},"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"}},"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":"iframe SDK for AI Assistant agent platform communication with host systems","directories":{},"_nodeVersion":"22.22.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/iframe-sdk_1.0.0_1787127518597_0.2187651557820176","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"_id":"@agentscope-chat/iframe-sdk@1.1.0","dist":{"shasum":"550717da6c795714981ee29110157b9d561c1f8b","tarball":"https://registry.npmjs.org/@agentscope-chat/iframe-sdk/-/iframe-sdk-1.1.0.tgz","fileCount":6,"integrity":"sha512-xd7VPlNPiPQzTkNvkO0p7owkG7T+/PCiae1d8sFrhEDEmvEACA5+3E9fgMdQe3ipfDTbp1V51dMr3Gpd/tzsIA==","signatures":[{"sig":"MEUCICQA319PF7/W08egdZnveBq9v98w5K1vATCisaIhPF8dAiEAihVP2TDKclpcM2hcv9zx4467+RXaOanm+k3wE5IgSfM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDZ27YftIdCWFEYOXktBmGV7zMKBrlg/6z3RsD9DvHnEwIhAONIknwbBNnms8wCzFf4S9zCmdMIfB87BKtHKlk2Exg+"}],"unpackedSize":30407},"main":"./dist/index.js","name":"@agentscope-chat/iframe-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"}},"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.1.0","_npmUser":{"name":"starry123","email":"3247477694@qq.com"},"keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"_npmVersion":"10.9.4","description":"iframe SDK for AI Assistant agent platform communication with host 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/iframe-sdk_1.1.0_1790247637099_0.44441570187126067"}}},"time":{"created":"2026-08-19T08:18:38.483Z","modified":"2026-09-24T11:00:37.374Z","1.0.0":"2026-08-19T08:18:38.737Z","1.1.0":"2026-09-24T11:00:37.165Z"},"author":{"name":"agentscope-chat"},"license":"MIT","keywords":["ai","ai-assistant","iframe","embed","sdk","chat"],"description":"iframe SDK for AI Assistant agent platform communication with host systems","maintainers":[{"name":"starry123","email":"3247477694@qq.com"}],"readme":"# @agentscope-chat/iframe-sdk\r\n\r\n智能体 iframe 端与宿主业务系统的 `postMessage` 通信 SDK。\r\n\r\n```bash\r\nnpm install @agentscope-chat/iframe-sdk\r\n```\r\n\r\n```ts\r\nimport { createAgentBridge } from '@agentscope-chat/iframe-sdk'\r\n\r\nconst bridge = createAgentBridge({\r\n  parentOrigin: new URLSearchParams(location.search).get('parentOrigin') || '',\r\n  onReady: ({ token, appId, capabilities }) => {\r\n    console.log('ready', { appId, capabilities })\r\n  },\r\n  onHandshakeFailed: (err) => {\r\n    console.error(err)\r\n  },\r\n})\r\n```","readmeFilename":"README.md"}