{"_id":"@ctgh/a2ui-vue","_rev":"9-358eb07ecc5433481027c0a88e0b1b29","name":"@ctgh/a2ui-vue","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@ctgh/a2ui-vue","version":"0.1.0","license":"MIT","_id":"@ctgh/a2ui-vue@0.1.0","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"9eb8b3309f193c8e71157e9c815586c1b3234179","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.1.0.tgz","fileCount":53,"integrity":"sha512-aOU8vUV9OdiMKbq6A3GO0maZdE/wZCc7wM2r1ewjR4weD62kvqEHjZEQqI3d4rkhVw09URWCUXg56IhkFxUAyA==","signatures":[{"sig":"MEYCIQC4xS3Ioe8mkWa1SpNjRz6GYkZjd/pUatu1lQQms3SU9gIhAJLuasqdpHQyrVswBMMLtZ/u7iL8/Y6R19UTO0aXyWr1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153604},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c438c256fb32068f34f053025544630144dd56ef","scripts":{"lint":"eslint src","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.1.0_1783403263302_0.8106265907486101","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@ctgh/a2ui-vue","version":"0.2.0","license":"MIT","_id":"@ctgh/a2ui-vue@0.2.0","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"40770669b50eb219f7a765847003e031c029d026","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.2.0.tgz","fileCount":55,"integrity":"sha512-jUDIKJ/3+6qLIYbQSwo3Nw4GLuCs8l1lzIx9/CMbP1rfxNbcGvtBaqSUJMhiKaPU99d3PFg71cTaS+JJ0L+Olw==","signatures":[{"sig":"MEQCIDdodl2UVNjyMlwDzxrhjw8Rx4bVtKs+jaQnKMnOBnjZAiA4drWFzwHwHqxT6K4lKwtyfZbXecXa9wd8GIEYLQTywg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174406},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"98c37db257158af581a636bc6de0e5523d1bc1ea","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.2.0_1783502493846_0.02181547006393747","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@ctgh/a2ui-vue","version":"0.2.1","license":"MIT","_id":"@ctgh/a2ui-vue@0.2.1","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"b2ef1d4a28fa0b28b664aa430b551de721852171","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.2.1.tgz","fileCount":55,"integrity":"sha512-Y4gqCMtOR3BcJrLLFbgJV9fnzuhFK5z1C4PxX3f7Rzew1GqGocBLf71Sro2WbYIc277kd5ciy5a3hj4INdLiFw==","signatures":[{"sig":"MEYCIQCINJDZsM6lOPi4SGdBqwssiFJuYZdaAUybv7WzJ9y8kQIhANkRLpI7ufdWOKykMPhQ5UKFBPCROMXJmZt2HKteSuwc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":185195},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"b059e1c283ad362f92cb0d11f97d4716c1f768c3","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.2.1_1785291551931_0.30676223645191936","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@ctgh/a2ui-vue","version":"0.2.2","license":"MIT","_id":"@ctgh/a2ui-vue@0.2.2","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"23cd9df6f234e5b8f4d79e652997a2bda4d4efad","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.2.2.tgz","fileCount":55,"integrity":"sha512-oujw9KMJbH+ojAowLKEXAOQ3MaJQq94oEh8V/tmpUO8BQXmg6VsmNtRAKcArjVbUgv9lReHOWe2wPUJO2IWzBw==","signatures":[{"sig":"MEQCIAD7Y3LFDE52H7E9hOP1XPwgtfWHycjHa6XISKd0vTXRAiA6T0SVYBBfvymdryuiMXyDzeDRfWyWz51woWueseiqnQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":185195},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"073133de17472c2d725b54934b06bfd07e721df0","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.2.2_1785304356122_0.17161239831713293","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@ctgh/a2ui-vue","version":"0.2.3","license":"MIT","_id":"@ctgh/a2ui-vue@0.2.3","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"bd796ec854fe905f6fb21853d2fc8000fedea5f0","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.2.3.tgz","fileCount":55,"integrity":"sha512-nlonWurE1lg5IjvGD+Y/Eg7QVbp5tbQiOsCUtO4Ji4aQ3Kfpc1sPEwGi0Fbx5y38WoYpJNx3q19W3pfjQqyxmg==","signatures":[{"sig":"MEYCIQDWj0gQWsbdpOda0k/fSPuc7QZYnz+EVfxBDsgSkYnu5QIhAJxrdPuCyd+k5Sk4iqsOI8g58IbZEuc4GXKol23yefkQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190400},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"807635e43b24eb34addadc184582a4981bf3dd27","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.2.3_1785395149471_0.6542305034912439","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@ctgh/a2ui-vue","version":"0.2.4","license":"MIT","_id":"@ctgh/a2ui-vue@0.2.4","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"9f942baa81bc1a4e2c2a743eb4cb4cb431790570","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.2.4.tgz","fileCount":55,"integrity":"sha512-7i9TkFRVRHrGtYoNdljBPOXpCJiq6nk2tDpKt15wwZixlJVBtjYk5R7FNSE9lpAQF1qcdT35Wp0iYygFS/irHQ==","signatures":[{"sig":"MEUCIQDS0+fZOSZjU7F2xTUSxmpYF4lyvzUaBb7GPmMLQxIFZQIgVvJkWayqAypVo70Y2ita2+9rbCBQrTO7ZVjxQ+jFCHc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190400},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9e12e041907f0edd472607916d4cdb259e8a910b","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.2.4_1785462773968_0.036808024377792625","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@ctgh/a2ui-vue","version":"0.3.0","license":"MIT","_id":"@ctgh/a2ui-vue@0.3.0","maintainers":[{"name":"shuoka","email":"15811519008@163.com"}],"dist":{"shasum":"1e181f5566a16dfee5be16a874dc50c9db6f5ad6","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.3.0.tgz","fileCount":55,"integrity":"sha512-fqBtaQ+MV7mX7fxlBlstJsAoPYDMdcte4MtKGHiEHMoxZA9CTvLnHic2tCqBUPYMfFY6d3xWGjjI0HV2g7gKvA==","signatures":[{"sig":"MEUCIQCj4T4niEWYi3ZnMmd2Sv7qZEDFXUo5lQXoiUElLsCckAIgWi1Goluj9EELiYmnCAZTxrvC6Shkwjcy0PUs3pCGImE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":190400},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"dc21ad193ce2ee5919ceabd509c89d7245f9bf2d","scripts":{"lint":"eslint src","test":"vitest run --config vitest.config.ts","build":"vite build","prepack":"npm run build","typecheck":"vue-tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"shuoka","email":"15811519008@163.com"},"repository":{"url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","type":"git","directory":"packages/ui"},"_npmVersion":"11.16.0","description":"Vue renderer and wrapper library for A2UI.","directories":{},"sideEffects":["./dist/plugin.js","./dist/index.js"],"_nodeVersion":"24.18.0","dependencies":{"@ctgh/a2ui-web-core":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"vue":"^3.5.39"},"_npmOperationalInternal":{"tmp":"tmp/a2ui-vue_0.3.0_1785917210315_0.31291004587519433","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@ctgh/a2ui-vue","version":"0.3.1","description":"Vue renderer and wrapper library for A2UI.","license":"MIT","repository":{"type":"git","url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","directory":"packages/ui"},"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"sideEffects":false,"peerDependencies":{"vue":"^3.5.39"},"dependencies":{"@ctgh/a2ui-web-core":"0.3.1"},"engines":{"node":">=20"},"scripts":{"build":"vite build","typecheck":"vue-tsc --noEmit -p tsconfig.json","lint":"eslint src","test":"vitest run --config vitest.config.ts","prepack":"npm run build"},"gitHead":"75b9f8f769c5a7ef3e03cc0f900347d427dc9c55","_id":"@ctgh/a2ui-vue@0.3.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-39umqA6UtnK+6lX6oHdN39PqQ5G2IWar6bGIlR+szw+0d53mfAQMMqbxz+FDEXoYkjgskVtYxshUyXxurHduxA==","shasum":"ef0a21bd8415ae52397848f9f9c5874ae072b3a0","tarball":"https://registry.npmjs.org/@ctgh/a2ui-vue/-/a2ui-vue-0.3.1.tgz","fileCount":68,"unpackedSize":1478580,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFAHA5dp+90OJqkdLtvGqk+MNoq1TZmVKEmPOJBsbgZCAiAt6MFoNcjTPteHXkEIgW02eyHf/3VEZ54EHlAk+jmGKA=="}]},"_npmUser":{"name":"lindaxujin","email":"jinlei.xu1@ctg.cn"},"directories":{},"maintainers":[{"name":"shuoka","email":"15811519008@163.com"},{"name":"lindaxujin","email":"jinlei.xu1@ctg.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/a2ui-vue_0.3.1_1788935361173_0.3028219695956842"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-07T05:47:43.170Z","modified":"2026-09-09T06:29:21.555Z","0.1.0":"2026-07-07T05:47:43.456Z","0.2.0":"2026-07-08T09:21:33.981Z","0.2.1":"2026-07-29T02:19:12.082Z","0.2.2":"2026-07-29T05:52:36.264Z","0.2.3":"2026-07-30T07:05:49.658Z","0.2.4":"2026-07-31T01:52:54.098Z","0.3.0":"2026-08-05T08:06:50.451Z","0.3.1":"2026-09-09T06:29:21.308Z"},"license":"MIT","repository":{"type":"git","url":"https://git.ctgh.com/git/shuo.yang5/npm-star.git","directory":"packages/ui"},"description":"Vue renderer and wrapper library for A2UI.","maintainers":[{"name":"shuoka","email":"15811519008@163.com"},{"name":"lindaxujin","email":"jinlei.xu1@ctg.cn"}],"readme":"# @ctgh/a2ui-vue\n\nVue 3 renderer and wrapper library for [A2UI](https://a2ui.org) v0.9.\n\n> **完整使用说明**见仓库 [docs/usage.md](../../docs/usage.md)。  \n> **发版流程**见 [docs/publishing.md](../../docs/publishing.md)。\n\n## What it exports\n\n- `A2uiSurface` — renders an A2UI `SurfaceModel`\n- `basicCatalog` — Vue implementations for the A2UI basic catalog (18 components)\n- `A2uiPlugin` / `createA2uiPlugin` — Vue plugin helpers\n- `createA2uiComponent` — helper for building custom Vue A2UI components\n- Core A2UI types and models re-exported from `@ctgh/a2ui-web-core` (`MessageProcessor`, `Catalog`, etc.)\n\n## Installation\n\nInstall the Vue wrapper and Vue runtime in one step:\n\n```bash\nnpm install @ctgh/a2ui-vue vue\n```\n\nThat is the only install step for normal apps; `@ctgh/a2ui-web-core` comes in transitively through `@ctgh/a2ui-vue`.\n\n**Requirements:** Node.js ≥ 20, Vue ^3.5.39\n\n## Quick start\n\n```ts\nimport { MessageProcessor, basicCatalog } from '@ctgh/a2ui-vue';\n\nconst processor = new MessageProcessor([basicCatalog]);\nprocessor.processMessages([{/* A2UI messages */}]);\n```\n\n```vue\n<template>\n  <A2uiSurface :surface=\"surface\" />\n</template>\n\n<script setup lang=\"ts\">\nimport { A2uiSurface } from '@ctgh/a2ui-vue';\nimport type { SurfaceModel } from '@ctgh/a2ui-vue';\n\ndefineProps<{\n  surface: SurfaceModel;\n}>();\n</script>\n```\n\n## Global plugin\n\n```ts\nimport { createApp } from 'vue';\nimport App from './App.vue';\nimport { A2uiPlugin } from '@ctgh/a2ui-vue';\n\ncreateApp(App).use(A2uiPlugin).mount('#app');\n```\n\nThe plugin registers `A2uiSurface`, basic catalog components, and injects default styles.\n\n## Extending the catalog\n\n```ts\nimport { createA2uiComponent, TextApi, Catalog, BASIC_FUNCTIONS } from '@ctgh/a2ui-vue';\n\nexport const MyText = createA2uiComponent(TextApi, ({ props }) => props.text);\n\nconst catalog = new Catalog('https://example.com/my-catalog.json', [MyText], BASIC_FUNCTIONS);\n```\n\n## Playground\n\nA runnable demo lives in [`packages/examples/playground`](../examples/playground/README.md) (monorepo only, not published).\n\n## License\n\nMIT (`@ctgh/a2ui-vue`). Depends on `@ctgh/a2ui-web-core` (Apache-2.0).\n","readmeFilename":"README.md"}