{"_id":"@ahxlo/lite-ai-websdk","_rev":"10-638df3b3ae067b5ee24ddda382b830fb","name":"@ahxlo/lite-ai-websdk","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.1":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.1","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"MIT","_id":"@ahxlo/lite-ai-websdk@1.0.1","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://github.com/ahxlo/lite-ai-websdk#readme","bugs":{"url":"https://github.com/ahxlo/lite-ai-websdk/issues"},"dist":{"shasum":"05f596503f276250010a5164eeb4e1f3349a7a5f","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.1.tgz","fileCount":7,"integrity":"sha512-2wHd62mE40xIXsFhOHcxLxumkukBizVUUJpp1x6SrD6IRUosFjt0MULstnkOrPKQjCQ0EIOcBfos/CO07MLz2g==","signatures":[{"sig":"MEUCIGMFJUa9fXb4DGuVX+JKXo+lHl1fIfUJSd2zgo4QQQBwAiEAkdOPjDrT65ZGnMu5X0pKdDfAJj27pAnEUsxjGVCxKiI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":402240},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"032c07b93f3d05d62ecd199202ff68fcc3ea3c3d","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc --declaration --emitDeclarationOnly --module esnext --moduleResolution bundler --outDir dist src/index.ts src/types.ts","build:backend":"npm run build && node scripts/copy-to-backend.mjs"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"git+https://github.com/ahxlo/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"20.19.4","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.1_1779726860306_0.5118516350701949","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.2","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.2","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"55ef058b553a77adb227fb7250b41378913f93ba","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.2.tgz","fileCount":7,"integrity":"sha512-tnIhLRk693YoQLj6czb3vv0diq4MP6jtTtwWsYr87ljxR1kR+yfCDBdLgA2U5NnImsr+gYueBUU63JyyibL6kw==","signatures":[{"sig":"MEQCIB1lNAN+Gox9pwMVnt4CX/CJV5xO9jZNSKkxDWtBG+uvAiBllXlNAXKmLZ4vKg1EnU9OIwRvMKr/J7aVU7EMhwoRiw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":401448},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"032c07b93f3d05d62ecd199202ff68fcc3ea3c3d","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc --declaration --emitDeclarationOnly --module esnext --moduleResolution bundler --outDir dist src/index.ts src/types.ts"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"20.19.4","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.2_1779728162013_0.514060597619229","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.3","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.3","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"47888c4266c8352c5e7b3ebd0075a864e9baff95","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.3.tgz","fileCount":7,"integrity":"sha512-Q3QOhK4S2TowFopkK767pV8t5fceYzLfeqclyRCKQVvvaGOHW4K8n5MBT0gzTsoLyJpGaTqcAjKu2ufbpTs6KA==","signatures":[{"sig":"MEQCIF+aDe+P+d48ImrRyDWygn+/55xcE2d7wvOwAwBzakcwAiAzuJJhRjrlbBN9SAGnwsu67ysXgkOkc8RI/8Gchzm1BQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":406376},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"b50d3aeb4c747cbdee8fe03ebfa5138f0ec14806","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc -p tsconfig.build.json","publish:npm":"npm publish --access public","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.9.4","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"22.21.1","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.3_1780227278729_0.7567233469409151","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.4","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.4","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"5e85311ec4ffbe32276e93b2b3d524031c2c855a","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.4.tgz","fileCount":7,"integrity":"sha512-R9/Q2kReqhdzvu4eDdHAL0F3n9Rcu3qxANpT8z415k//MvJVRCOYsh0wWelppbzdr6WFQvIAyad6v8KYwPN2Yg==","signatures":[{"sig":"MEUCIQCgvvRfJr/04wEEKPgpaJ9G0+v/KIpwkfGYxJoDsJg7IAIgaknVhNFMtmp51eaqIva43TKQ0r8ArhM+eZ1En1W8HTo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":415065},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"4885fef2efe0f3683d6f7aaee5f9d0c5efcca1db","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc -p tsconfig.build.json","publish:npm":"npm publish --access public","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"20.19.4","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.4_1780572990632_0.8318591700702336","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.5","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.5","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"bd8b0fcb65df2addf34a745bf99c370cf7f04c46","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.5.tgz","fileCount":7,"integrity":"sha512-Xcs6cJR+1+eKOAs7Nx0pmaCBX4R1zUIAfsxd4mcU/nX90CZk6DSZRdezxXnln2OW0BC4k8lUtTaqYQDO6aC8hQ==","signatures":[{"sig":"MEQCIFkYrrzqaxmGZf62b4sTU2nk1utgQb3d1uaf6qKElhMrAiBB4/Q/uBerPoBrNauYJ2KXpUVnv87QCCUDda/JzFlS+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":538100},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"30f0e7e3b4fd1810ad43dfad9eddfe6263537b2d","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc -p tsconfig.build.json","publish:npm":"npm publish --access public","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.9.8","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"22.23.1","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.5_1786330567443_0.3180189184322988","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.6","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.6","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"047b921881605506b76e34d47edc28ff6164f824","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.6.tgz","fileCount":7,"integrity":"sha512-2kMvokT2cPAWgwhta4Ioz+7wrAANivO7DlBGVVQf37+dLyAA2COEcVm5WfSDxgp9r61XibcqTZk7J8DKEtiGMA==","signatures":[{"sig":"MEQCIEoZUrgy+bMjaX2SH0laH9qsB70N5xkIpg+Z7UjTVvxPAiAuHHOGFs2zaThBsKv/Ja1e5Jqolo5dpSb7jKTa5N/1vA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":640430},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"136db33e1667f00ce18c706a892e30fb6339e23e","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc -p tsconfig.build.json","publish:npm":"npm publish --access public","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.9.8","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"22.23.1","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.6_1788758977676_0.8496716443788201","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.7","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","_id":"@ahxlo/lite-ai-websdk@1.0.7","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","dist":{"shasum":"81183c3e00c5427c011a1485dbf80d1883289283","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.7.tgz","fileCount":7,"integrity":"sha512-ZAHG9fjb7TtClyide6UNT0eWerTdpYW/DACi6rbLfmn1EZkl70dwiGRlEGLdNvF4vWgoEi9Uzqz34zDgo549WA==","signatures":[{"sig":"MEQCIB9JJRdDwcPPS48obbIP+ZYkDzffe4tz4+zcvm88a4eIAiA2fZ5fh7gN37upkhmRq5cdGD3xYItjvBSAI2HIejkdvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":659911},"main":"./dist/index.esm.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.esm.js"}},"gitHead":"555c8e023c708bb7a8ca16292569b17706614020","scripts":{"dev":"vite --host 0.0.0.0","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","prepack":"npm run build","preview":"vite preview","build:esm":"vite build --config vite.config.esm.ts","build:iife":"vite build --config vite.config.iife.ts","pack:check":"npm pack --dry-run","build:types":"vue-tsc -p tsconfig.build.json","publish:npm":"npm publish --access public","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public"},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"repository":{"url":"https://gitee.com/Anlooi/lite-ai-websdk.git","type":"git"},"_npmVersion":"10.9.4","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","directories":{},"sideEffects":true,"_nodeVersion":"22.21.1","dependencies":{"marked":"^18.0.4"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.5.30","sass":"^1.83.0","vite":"8.0.5","vue-tsc":"^2.1.10","typescript":"^5.7.2","@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","vite-plugin-css-injected-by-js":"^3.5.2"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lite-ai-websdk_1.0.7_1788785533274_0.657048925163044","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@ahxlo/lite-ai-websdk","version":"1.0.8","description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","type":"module","main":"./dist/index.esm.js","module":"./dist/index.esm.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.esm.js","types":"./dist/index.d.ts"}},"sideEffects":true,"scripts":{"dev":"vite --host 0.0.0.0","build:iife":"vite build --config vite.config.iife.ts","build:esm":"vite build --config vite.config.esm.ts","build":"npm run build:iife && npm run build:esm && npm run build:types && node scripts/prune-dist-for-publish.mjs","build:types":"vue-tsc -p tsconfig.build.json","preview":"vite preview","prepack":"npm run build","pack:check":"npm pack --dry-run","publish:check":"npm run pack:check","publish:dry-run":"npm publish --dry-run --access public","publish:npm":"npm publish --access public"},"dependencies":{"marked":"^18.0.4"},"devDependencies":{"@types/node":"^25.9.1","@vitejs/plugin-vue":"^6.0.0","sass":"^1.83.0","typescript":"^5.7.2","vite":"8.0.5","vite-plugin-css-injected-by-js":"^3.5.2","vue":"3.5.30","vue-tsc":"^2.1.10"},"peerDependencies":{"vue":"^3.5.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"license":"Apache-2.0","repository":{"type":"git","url":"https://gitee.com/Anlooi/lite-ai-websdk.git"},"homepage":"https://gitee.com/Anlooi/lite-ai-websdk","_id":"@ahxlo/lite-ai-websdk@1.0.8","gitHead":"8af3c25c23d3042d20da3f996bb162463b15be0e","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-/2M49SVxLmnH7HYgqP7yE0g+n8JOH5gmuLSDy3Asytc1Fvb0XNI8ac8EcRE+g5AeHD4X9h0ULwjTZ5aZnKb6Yw==","shasum":"2112deb45f0f58b47c8f9f3cccac146979aa1ca9","tarball":"https://registry.npmjs.org/@ahxlo/lite-ai-websdk/-/lite-ai-websdk-1.0.8.tgz","fileCount":7,"unpackedSize":662479,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCRBHplMg5fE8CD+hf28Tei8JMYcS2dPd8GSnUQEl7IsAIhAJkno3/vHzyhJ77bCzTAjtEYxvBGM/G0v6unDr00pmZB"}]},"_npmUser":{"name":"niko_hxx","email":"niko_hxx@163.com"},"directories":{},"maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lite-ai-websdk_1.0.8_1788838004445_0.6005918984551588"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-25T16:34:20.116Z","modified":"2026-09-08T03:26:44.734Z","1.0.0":"2026-05-25T10:57:48.235Z","1.0.1":"2026-05-25T16:34:20.457Z","1.0.2":"2026-05-25T16:56:02.155Z","1.0.3":"2026-05-31T11:34:38.909Z","1.0.4":"2026-06-04T11:36:30.801Z","1.0.5":"2026-08-10T02:56:07.607Z","1.0.6":"2026-09-07T05:29:37.880Z","1.0.7":"2026-09-07T12:52:13.480Z","1.0.8":"2026-09-08T03:26:44.574Z"},"license":"Apache-2.0","homepage":"https://gitee.com/Anlooi/lite-ai-websdk","keywords":["ai","aigc","embed","widget","chat","vue3","websdk"],"repository":{"type":"git","url":"https://gitee.com/Anlooi/lite-ai-websdk.git"},"description":"Ahxlo 智能体 Web 嵌入聊天 SDK（CDN IIFE / npm ESM）","maintainers":[{"name":"niko_hxx","email":"niko_hxx@163.com"}],"readme":"# @ahxlo/lite-ai-websdk\r\n\r\nAhxlo 智能体 Web 嵌入聊天 SDK。支持 **npm（ESM）** 与 **CDN（IIFE）** 接入。\r\n\r\n**对接后端：** [ahxlo-cloud-core-v2](../ahxlo-cloud-core-v2) 开放嵌入接口（`/indexApi/open/embed/**`）。应用需开启嵌入（`embedEnabled=1`）。\r\n\r\n## 要求\r\n\r\n| 项 | 说明 |\r\n| --- | --- |\r\n| 开放 API | 已部署 Ahxlo **cloud-core-v2** 开放接口，基路径形如 `https://your-api.example.com/indexApi`；应用已开启嵌入 |\r\n| npm 宿主 | `vue@^3.5`（peerDependency，ESM 接入时由宿主提供） |\r\n| 浏览器 | ES2020+、SSE |\r\n\r\n## 开放接口（v2）\r\n\r\n| 方法 | 路径 | 说明 |\r\n| --- | --- | --- |\r\n| GET | `/open/embed/app/{appId}` | 公开应用配置（含 `modelConfig` / `dialogueExperience` / `webSdkConfig`） |\r\n| GET | `/open/embed/app/{appId}/sessions` | 访客会话列表 |\r\n| GET | `/open/embed/app/{appId}/messages` | 会话消息分页 |\r\n| DELETE | `/open/embed/app/{appId}/sessions/{conversationId}` | 删除会话 |\r\n| POST | `/open/embed/completions` | SSE 流式对话（JSON：`appId`、`prompt`、`enableThink`、`media`…） |\r\n| POST | `/open/embed/upload` | 访客附件上传（图片/视频） |\r\n| POST | `/open/embed/follow-up-questions` | 追问建议 |\r\n\r\n身份头：`X-Embed-Guest-Key`（必填）、可选 `X-Embed-User-Id` / `X-Embed-User-Name`。  \r\nSSE 载荷对齐 `AigcSsePayload`：`meta` / `text` / `think` / `tool` / `citation` / `done` / `error`（含 `chatId`）。\r\n\r\n生成参数（temperature、sandbox、知识库等）由服务端按应用 `modelConfig` 注入，**无需**在 SDK 请求中传递。SDK 仅传访客身份、`appId`、`prompt`、`conversationId`、`enableThink` 与可选 `media`。\r\n\r\n## 安装\r\n\r\n### npm\r\n\r\n```bash\r\nnpm install @ahxlo/lite-ai-websdk\r\n```\r\n\r\n### CDN\r\n\r\n从 npm 发布产物加载（推荐固定版本号）：\r\n\r\n| 源 | 地址 |\r\n| --- | --- |\r\n| jsDelivr | `https://cdn.jsdelivr.net/npm/@ahxlo/lite-ai-websdk@1/dist/aigc-widget.js` |\r\n| unpkg | `https://unpkg.com/@ahxlo/lite-ai-websdk@1/dist/aigc-widget.js` |\r\n\r\n- 使用 `@1`：始终解析为最新 **1.x**（如 `1.0.2`），一般**无需**每次 patch 改 URL。\r\n- 使用 `@1.0.2`：锁定该版本，升级 SDK 时需手动改地址。\r\n- 亦可自托管 `dist/aigc-widget.js`。\r\n\r\n## 快速接入\r\n\r\n### CDN（IIFE）\r\n\r\n```html\r\n<script src=\"https://cdn.jsdelivr.net/npm/@ahxlo/lite-ai-websdk@1/dist/aigc-widget.js\"></script>\r\n<script>\r\n  window.AigcEmbed.init({\r\n    appId: 'YOUR_APP_ID',\r\n    apiBase: 'https://your-api.example.com/indexApi',\r\n    user: { id: 'user-1', name: '访客' }\r\n  });\r\n</script>\r\n```\r\n\r\n- 加载完成后调用 `window.AigcEmbed.init`，**必须**传入 `appId`、`apiBase`。\r\n- 样式已内联，无需额外 CSS。\r\n- 脚本使用 `async` / `defer` 时，在 `onload` 或 `DOMContentLoaded` 后再调用 `init`。\r\n\r\n### npm（ESM）\r\n\r\n```ts\r\nimport { createAigcEmbed } from '@ahxlo/lite-ai-websdk';\r\n\r\nconst embed = createAigcEmbed({\r\n  appId: 'YOUR_APP_ID',\r\n  apiBase: 'https://your-api.example.com/indexApi'\r\n});\r\n\r\nembed.init({ user: { id: 'user-1', name: '访客' } });\r\nembed.open();\r\nembed.close();\r\nembed.destroy();\r\n```\r\n\r\n- 不挂载 `window.AigcEmbed`。\r\n- 同一 `appId` 多次调用 `createAigcEmbed` 返回同一实例。\r\n\r\n## API\r\n\r\n### `window.AigcEmbed`（CDN）\r\n\r\n| 方法 | 签名 | 说明 |\r\n| --- | --- | --- |\r\n| `init` | `(options: EmbedInitOptions) => void` | 挂载；`appId`、`apiBase` 必填 |\r\n| `open` | `(appId?: string \\| number) => void` | 打开面板 |\r\n| `close` | `(appId?: string \\| number) => void` | 关闭面板 |\r\n| `destroy` | `(appId?: string \\| number) => void` | 销毁实例 |\r\n\r\n### `createAigcEmbed`（npm）\r\n\r\n```ts\r\nfunction createAigcEmbed(options: {\r\n  appId: string | number;\r\n  apiBase: string;\r\n  cssUrl?: string;\r\n  webSdkConfig?: EmbedWebSdkConfigInput;\r\n}): AigcEmbedInstance;\r\n```\r\n\r\n| 成员 | 签名 | 说明 |\r\n| --- | --- | --- |\r\n| `init` | `(options?: EmbedInitOptions) => void` | 挂载 |\r\n| `open` | `() => void` | 打开面板 |\r\n| `close` | `() => void` | 关闭面板 |\r\n| `destroy` | `() => void` | 销毁实例 |\r\n\r\n### `EmbedInitOptions`\r\n\r\n| 字段 | 类型 | 说明 |\r\n| --- | --- | --- |\r\n| `appId` | `string \\| number` | 应用 ID |\r\n| `apiBase` | `string` | 开放 API 根路径（含 `/indexApi`） |\r\n| `cssUrl` | `string` | 外链样式表（可选） |\r\n| `user` | `EmbedUserInfo` | 访客身份 |\r\n| `user.id` | `string` | 业务用户 ID |\r\n| `user.name` | `string` | 展示名称 |\r\n| `position` | `'right-bottom' \\| 'left-bottom'` | FAB 位置，默认 `right-bottom` |\r\n| `zIndex` | `number` | 层级，默认 `2147483000` |\r\n| `webSdkConfig` | `EmbedWebSdkConfigInput` | 窗体 / FAB 外观覆盖 |\r\n\r\n类型见 `dist/index.d.ts`、`dist/types.d.ts`。\r\n\r\n## 应用配置（体验对齐）\r\n\r\nSDK 从公开 `config` 读取并生效：\r\n\r\n| 配置 | 行为 |\r\n| --- | --- |\r\n| `modelConfig.enableThink` / `showThink` | 深度思考默认值与 UI 展示 |\r\n| `modelConfig.enableVisionImage` / `enableVisionVideo` | 输入区附件入口；发送带 `media[]` |\r\n| `dialogueExperience.followUp.enabled` | 回复后追问建议芯片 |\r\n| `dialogueExperience.shortcuts` / `bubbleTheme` / `chatBackground` | 快捷指令、气泡主题、背景 |\r\n| `webSdkConfig` | 窗体 / FAB 外观 |\r\n\r\n## 包内容\r\n\r\n| 路径 | 说明 |\r\n| --- | --- |\r\n| `dist/index.esm.js` | ESM |\r\n| `dist/aigc-widget.js` | IIFE（CDN） |\r\n| `dist/index.d.ts` | 入口类型 |\r\n| `dist/types.d.ts` | 选项类型 |\r\n\r\n## 发布\r\n\r\n发版到 npm 的步骤、检查项与常见问题见 [PUBLISH.md](./PUBLISH.md)。\r\n\r\n## 许可证\r\n\r\n[Apache License 2.0](./LICENSE)\r\n","readmeFilename":"README.md"}