{"_id":"@chuhuai/ai-agent","_rev":"9-0009d1d193c121abdca345fd27b4a43e","name":"@chuhuai/ai-agent","dist-tags":{"latest":"0.1.8"},"versions":{"0.1.0":{"name":"@chuhuai/ai-agent","version":"0.1.0","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.0","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"ac13ab11908dd2e04682e74e5df0d5fdf5b53cba","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.0.tgz","fileCount":9,"integrity":"sha512-0r756UYkHR+wDgyUItvQ8FM3cTHWqlBE1Q9ESgzeeRi0OSkl5oUOVs/QrHZRJkn05ihET7GAxuJIXuIuioKgfA==","signatures":[{"sig":"MEQCIHN+UecrWr07E0oKy8GTSsLurt6kd+Nw65lVNjh8piteAiBUckKE+Grm1FabdEPbg3TlfTExKYpdrQRC9e7HZ4kgNQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10748721},"main":"./dist/index.cjs","type":"module","_from":"file:D:/project/chuhuai/000-all/ch-ai-agent/packages/agent-web/chuhuai-ai-agent-0.1.0.tgz","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_resolved":"D:\\project\\chuhuai\\000-all\\ch-ai-agent\\packages\\agent-web\\chuhuai-ai-agent-0.1.0.tgz","_integrity":"sha512-0r756UYkHR+wDgyUItvQ8FM3cTHWqlBE1Q9ESgzeeRi0OSkl5oUOVs/QrHZRJkn05ihET7GAxuJIXuIuioKgfA==","_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.0_1786588044204_0.7012581040237109","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@chuhuai/ai-agent","version":"0.1.1","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.1","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"528062c8102236ddfb59fdb51231221d495a5dab","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.1.tgz","fileCount":9,"integrity":"sha512-vFkk1c+jGRUZkGJmlA5WiRUoS2xL1uyhReuogtkcUOu9YjYgbI+iRNMdKkVyjEap6mXOZy/beTDKKhQ3N4sZLg==","signatures":[{"sig":"MEUCIQDYd6z/cDrz5HMfqg2tR6rXJmh1WkLTX+JphtuJBivudgIgWUlo4l6KLPM1BOK9eKw/p6oXqkQD59tqZB8OLMNy3/4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10748547},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.1_1786592281534_0.2723553151630267","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@chuhuai/ai-agent","version":"0.1.2","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.2","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"4c3e766a947c385a06a051fcaafeb3907ea15c9d","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.2.tgz","fileCount":9,"integrity":"sha512-a6s72iShyVcNLZKXUahdeNAPMJXnkXxTC9C4t+D4l3WPecPyt4pLL1XSxSof8adlyW3er4Mnnq/v+4907BsPSg==","signatures":[{"sig":"MEYCIQC5Fm4I2xJeCLivfaQAmJffhUPIZx6khFyPr3u0mybbrAIhAPVnxr41sTcUDlL9S+TyQto8uY5VFg1Pb8Fw8ns6lTa3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10748695},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.2_1786603993461_0.3517054581740551","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@chuhuai/ai-agent","version":"0.1.3","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.3","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"63d8d6665c603652006d6db0aa2ad7c2fe79c900","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.3.tgz","fileCount":9,"integrity":"sha512-GLtS9G4M/qf1zFgb+V+vabZUZCVMH1sRrHCa0M9lOzeF7VptRR17w+c8Uup/PkDfUK9+p0TIgKr1Z9yMbZPCHg==","signatures":[{"sig":"MEUCIQCnbdLs7OX4ZeO4T8c8dzqARAWx50BhGnUISaAKmN1grQIgWbL8Cj3bODX/k8JlO8eDoj+R/5uxOOmVLuaa5vxc7uc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10748730},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.3_1786607631106_0.3744209724881571","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@chuhuai/ai-agent","version":"0.1.4","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.4","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"054cca93641ce911267c5377682fc7502f1219ee","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.4.tgz","fileCount":9,"integrity":"sha512-dsSJSkasP42et6+CcWQOj81HyYNh278uCIdsWduxFJeX9XEBBIl0+9BkFxzoRolUOCNweBREO2+5abVV5oxu1Q==","signatures":[{"sig":"MEQCIHI4CDehHCMAkFTteu+tFsUXXMOfsMya9o+szj1Wlm+KAiBU7GiYNBdU5KSoJC/MCIBn3xmbA4AENsiZSupAvwMwTQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10755519},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.4_1786610271781_0.4239006319087435","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@chuhuai/ai-agent","version":"0.1.5","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.5","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"773a6e439a7894faec4d1a699f0576c30863feda","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.5.tgz","fileCount":9,"integrity":"sha512-PJuGK5eCQxSt9Yp76N7Rv2MUQ2cV2gm1Euzjs8NQ1e379Pb/YKmMWj/MgdcCV4fJQrLpuCUhfyvnY+5ORqtGvg==","signatures":[{"sig":"MEUCIDOTsjjCvkYPwhmiwGX20+EXz+6Hea/Glzl25U0kwAzWAiEAlHtjOKLmDs1VnlxXn/Q/WK/clGjejIqWEOGxwiVHk2I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10759616},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.5_1786612978416_0.72616670496941","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@chuhuai/ai-agent","version":"0.1.6","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.6","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"2447842664418505a076aea8d45b96824a702b62","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.6.tgz","fileCount":9,"integrity":"sha512-Ts+ssuNoSrsa4XUXPKAC3aKWonZ7GOsTYiaZWnHKXJXB3AEFyY0js4eTicrV0VJFWdPZOnP0guGeiqekVp8aeA==","signatures":[{"sig":"MEQCIALIuzQecb9N3Rc+Xx/UCmrgNBgPGK0Dnn5W0Kgz96WmAiAxCuKO4OVWrzsvrRtTHesKJ8lw1zzMAJ9AeIc+YdbCjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10759451},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.6_1786615374641_0.820809793344607","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@chuhuai/ai-agent","version":"0.1.7","license":"UNLICENSED","_id":"@chuhuai/ai-agent@0.1.7","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"dist":{"shasum":"90c1ed128a6f8fbc321564e652b39f7ace668d6e","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.7.tgz","fileCount":9,"integrity":"sha512-Gc5bavzaNnlJWJO0/DPmRAjkxywTfI59eybHcJr9Ehg2wMbk3bCjuOD9q8LxzjrUVU2VIyF74okmNSl9mugATA==","signatures":[{"sig":"MEQCIHTHzvJ+36kVgV/BWvyZsy7O4JvpeuRcwv8A0l1ZBA8eAiAxU8i8A7fleNF0ay8KOE01qbkjCRxUQzxSXSjunFlFRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10759307},"main":"./dist/index.cjs","type":"module","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","scripts":{"build":"vite build","prepack":"npm run build"},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"_npmVersion":"10.9.3","description":"楚淮信访智能体 Vue 组件包","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vue":"3.3.4","vite":"4.4.8","pinia":"2.1.7","@chai/core":"workspace:*","element-plus":"2.3.14","sass-embedded":"^1.100.0","@vue/compiler-sfc":"3.3.4","@vitejs/plugin-vue":"4.2.3","@element-plus/icons-vue":"2.1.0"},"peerDependencies":{"vue":"^3.3.4","pinia":"~2.1.7","element-plus":"~2.3.14","@element-plus/icons-vue":"~2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-agent_0.1.7_1786669549724_0.29812512963007887","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@chuhuai/ai-agent","version":"0.1.8","description":"楚淮信访智能体 Vue 组件包","license":"UNLICENSED","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"scripts":{"build":"vite build","prepack":"npm run build"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"peerDependencies":{"vue":"^3.3.4","element-plus":"~2.3.14","pinia":"~2.1.7","@element-plus/icons-vue":"~2.1.0"},"devDependencies":{"@chai/core":"workspace:*","vue":"3.3.4","element-plus":"2.3.14","pinia":"2.1.7","@element-plus/icons-vue":"2.1.0","@vue/compiler-sfc":"3.3.4","vite":"4.4.8","@vitejs/plugin-vue":"4.2.3","sass-embedded":"^1.100.0"},"_id":"@chuhuai/ai-agent@0.1.8","gitHead":"b7e469d925dd5621cbd21255d2a06235efc72765","_nodeVersion":"24.15.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-CQVJTQJKsgwAfFi9iTkj7CLOa0MVvl21qZl9W6EOONeljL74EAEKmXKI7DoYcdIMal5JlsMqaM8EDSJDbEX/zg==","shasum":"bb2a7315ee845065053a64d442833f769cf2aaa5","tarball":"https://registry.npmjs.org/@chuhuai/ai-agent/-/ai-agent-0.1.8.tgz","fileCount":9,"unpackedSize":10759813,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGP9KfjFfvgy0nChh7DERR82IkLKMMXP8xT2P9Isl1LwAiAbWSv63yGBLNe7QY3Q37xA29wJeK7EfmHEMp/qjB0qZQ=="}]},"_npmUser":{"name":"chuhuai","email":"1506287334@qq.com"},"directories":{},"maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-agent_0.1.8_1786672296782_0.8826694849521699"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-13T02:27:24.023Z","modified":"2026-08-14T01:51:37.190Z","0.1.0":"2026-08-13T02:27:24.454Z","0.1.1":"2026-08-13T03:38:01.813Z","0.1.2":"2026-08-13T06:53:13.730Z","0.1.3":"2026-08-13T07:53:51.370Z","0.1.4":"2026-08-13T08:37:51.999Z","0.1.5":"2026-08-13T09:22:58.661Z","0.1.6":"2026-08-13T10:02:54.908Z","0.1.7":"2026-08-14T01:05:50.071Z","0.1.8":"2026-08-14T01:51:37.032Z"},"license":"UNLICENSED","description":"楚淮信访智能体 Vue 组件包","maintainers":[{"name":"chuhuai","email":"1506287334@qq.com"}],"readme":"# @chuhuai/ai-agent\n\n楚淮信访智能体的 Vue 3 组件包。当前版本提供可独立构建、安装和注册的完整工作台根组件。\n\n## 运行时要求\n\n组件包的最低 Vue 版本为 `3.3.4`。组件源码采用 Vue 3.3 已支持的模板引用和 `modelValue` / `update:*` 双向绑定契约，构建产物不会引用 Vue 3.4/3.5 才新增的运行时 API。\n\n为与 `ch-ygxf-ui` 的现有依赖保持一致，兼容基线为 Vue `3.3.4`、Element Plus `2.3.x`、Pinia `2.1.x` 和 Element Plus Icons `2.1.x`。Pinia `2.2+` 与 `3.x` 对 Vue 的最低版本要求更高，不能用于 Vue 3.3.4 宿主。\n\n## 过渡架构\n\n构建配置将 `~` 映射到仓库中的 `apps/extension` 绝对目录，供后续迁移期间按既有模块边界复用扩展源码。该 alias 仅用于包内构建，不属于公开导出；消费者只应从包根入口和 `style.css` 导入。\n\n## 构建\n\n在仓库根目录执行：\n\n```powershell\npnpm --filter @chuhuai/ai-agent build\n```\n\n## 安装与使用\n\n安装组件包及其 peer dependencies：\n\n```powershell\npnpm add @chuhuai/ai-agent vue@3.3.4 element-plus@2.3.14 pinia@2.1.7 @element-plus/icons-vue@2.1.0\n```\n\n在现有 Vue 应用中注册根组件：\n\n```js\nimport { createApp } from 'vue'\nimport App from './App.vue'\nimport { createChAiAgent } from '@chuhuai/ai-agent'\nimport '@chuhuai/ai-agent/style.css'\n\nconst app = createApp(App)\n\napp.use(createChAiAgent())\napp.mount('#app')\n```\n\n注册后可在模板中使用 `<ChAiAgentRoot />`。也可以从包根入口导入同名组件，在局部组件中直接使用。\n\n## 展示模式\n\nWeb 组件的悬浮与贴靠布局由组件自身管理。用户切换到“贴靠侧栏”后，组件会自动定位其所在的宿主应用根节点、为主页面留出侧栏宽度，并把智能体渲染到独立的 `body` 容器；切回悬浮模式或卸载组件时会自动恢复宿主宽度。宿主项目不需要监听 `update:displayMode`、`update:panelWidth`，也不需要为导航栏、主内容或固定定位元素增加专用 CSS。\n\n宿主只需正常挂载组件并导入 `@chuhuai/ai-agent/style.css`。贴靠模式右侧导航中的收起按钮由组件提供，点击后会切回悬浮模式并关闭工作台。\n\n## 服务配置\n\n公网组件不内置任何客户环境的服务地址、单位信息或签名密钥。可信宿主必须在挂载时通过 `config` 传入：\n\n```js\nconst agentConfig = {\n  // 可以使用宿主 Vite 代理路径，也可以使用允许浏览器跨域访问的完整地址。\n  gatewayBaseUrl: '/dev-api',\n  fastGptBaseUrl: '/ai-api',\n  md5Secret: import.meta.env.VITE_MD5SECRET,\n  // 可选：AI 文书和类案预警的外部系统地址；不配置时关闭对应跳转能力。\n  systemUrl: import.meta.env.VITE_SYSTEM_URL,\n  chAiUrl: import.meta.env.VITE_CH_AI_URL,\n  // 可选：请求超时，单位为毫秒。\n  gatewayTimeoutMs: 30000,\n  fastGptTimeoutMs: 180000,\n}\n```\n\n其中 `gatewayBaseUrl`、`fastGptBaseUrl`、`md5Secret` 必填，`systemUrl`、`chAiUrl` 和超时可选。`/dev-api` 只是宿主开发服务器的代理路径，不等同于 `systemUrl` 或 `chAiUrl`；生产环境必须由宿主 Web 服务器配置同名反向代理，或者改传可跨域访问的完整服务地址。\n\n签名密钥传给浏览器组件后仍可被最终用户查看，不能把它当作真正的服务端秘密。正式公网部署应优先让宿主后端完成签名，或给前端使用受限、可轮换的租户凭据。\n\n## 宿主授权策略\n\n组件默认要求完成服务授权，适用于无法直接提供可信服务配置的第三方宿主。宿主必须显式声明是否免授权，组件不会根据域名、部署地址或项目名称猜测：\n\n```vue\n<!-- ch-ygxf-ui：直接复用宿主 Token、用户摘要和服务配置，不展示授权码入口。 -->\n<ChAiAgentRoot\n  :config=\"agentConfig\"\n  :authorization-required=\"false\"\n  :get-token=\"getToken\"\n  :get-user=\"getUser\"\n/>\n\n<!-- 第三方宿主：服务配置和业务身份由授权码 + 组件登录流程建立。 -->\n<ChAiAgentRoot\n  :authorization-required=\"true\"\n/>\n```\n\n`authorizationRequired` 同时决定授权页和业务身份来源：\n\n- `false`：用于 `ch-ygxf-ui` 等可信宿主，必须通过 `config`、`getToken`、`getUser` 注入当前宿主配置和身份。\n- `true`（默认）：用于第三方宿主，授权码提供服务配置，组件内登录流程获取并维护业务 Token 和用户信息；不读取宿主的 `getToken`、`getUser`。\n\n免授权只表示复用可信宿主现有身份，不等于绕过业务接口鉴权。该属性是挂载时的接入策略，宿主切换策略时应重新挂载组件。\n\n当前版本沿用构建时的 FastGPT 场景 App ID。不同租户动态注入场景 App ID 暂未纳入本版本；这些 ID 不应包含访问密钥或 Token。\n","readmeFilename":"README.md"}