@wodecorp/openui-vue-a2ui 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +43 -1
  2. package/package.json +14 -9
package/README.md CHANGED
@@ -1,9 +1,51 @@
1
1
  # @wodecorp/openui-vue-a2ui
2
2
 
3
- A2UI protocol adapter and Vue 3 renderer (`@wodecorp/openui-vue-a2ui` & `@wodecorp/openui-vue-a2ui/vue`) built on `@openuidev/lang-core` and `@wodecorp/openui-vue-lang`.
3
+ A2UI v1.0 protocol client (`createA2UIClient`) and Vue 3 renderer (`<A2UIRenderer />`) for OpenUI — supporting surface lifecycle (`createSurface`, `updateComponents`, `updateDataModel`, `deleteSurface`), JSON Pointer state sync, and bidirectional agent/renderer function calls.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
8
  pnpm add @wodecorp/openui-vue-a2ui @wodecorp/openui-vue-lang vue zod
9
9
  ```
10
+
11
+ ## Usage
12
+
13
+ ```vue
14
+ <script setup lang="ts">
15
+ import { onMounted } from "vue";
16
+ import { createA2UIClient } from "@wodecorp/openui-vue-a2ui";
17
+ import { A2UIRenderer } from "@wodecorp/openui-vue-a2ui/vue";
18
+ import { openuiLibrary } from "@wodecorp/openui-vue-ui";
19
+
20
+ const client = createA2UIClient({
21
+ schema: openuiLibrary.toJSONSchema(),
22
+ rootName: openuiLibrary.root,
23
+ });
24
+
25
+ onMounted(async () => {
26
+ await client.process({
27
+ version: "v1.0",
28
+ createSurface: {
29
+ surfaceId: "main",
30
+ catalogId: "openui-vue-default",
31
+ sendDataModel: true,
32
+ components: ['root = Card([TextContent("Hello A2UI v1.0")])'],
33
+ dataModel: {},
34
+ },
35
+ });
36
+ });
37
+ </script>
38
+
39
+ <template>
40
+ <A2UIRenderer :client="client" surface-id="main" :library="openuiLibrary" />
41
+ </template>
42
+ ```
43
+
44
+ ## Subpath Exports
45
+
46
+ - `.` — `createA2UIClient`, JSON Pointer helpers, and protocol types
47
+ - `./vue` — `A2UIRenderer` Vue 3 component and `A2UIRendererProps`
48
+
49
+ ## License
50
+
51
+ MIT
package/package.json CHANGED
@@ -1,21 +1,26 @@
1
1
  {
2
2
  "name": "@wodecorp/openui-vue-a2ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A2UI protocol adapter and Vue 3 renderer for OpenUI",
5
5
  "license": "MIT",
6
+ "author": "wodecorp",
7
+ "homepage": "https://www.npmjs.com/org/wodecorp",
8
+ "keywords": [
9
+ "openui",
10
+ "a2ui",
11
+ "vue",
12
+ "vue3",
13
+ "agent-ui",
14
+ "protocol"
15
+ ],
6
16
  "type": "module",
7
17
  "engines": {
8
- "node": ">=18"
18
+ "node": ">=18.18.0"
9
19
  },
10
20
  "sideEffects": false,
11
21
  "publishConfig": {
12
22
  "access": "public"
13
23
  },
14
- "repository": {
15
- "type": "git",
16
- "url": "http://10.1.1.156/wode/openuivue.git",
17
- "directory": "packages/vue-a2ui"
18
- },
19
24
  "files": [
20
25
  "dist",
21
26
  "README.md",
@@ -51,13 +56,13 @@
51
56
  "@openuidev/lang-core": "^1.2.0"
52
57
  },
53
58
  "peerDependencies": {
54
- "@wodecorp/openui-vue-lang": "^0.1.0",
59
+ "@wodecorp/openui-vue-lang": "^0.1.2",
55
60
  "vue": "^3.4.0",
56
61
  "zod": "^3.25.0 || ^4.0.0"
57
62
  },
58
63
  "devDependencies": {
59
64
  "@vue/test-utils": "^2.4.6",
60
- "@wodecorp/openui-vue-lang": "0.1.0",
65
+ "@wodecorp/openui-vue-lang": "0.1.2",
61
66
  "jsdom": "^26.1.0",
62
67
  "tsdown": "^0.23.7",
63
68
  "typescript": "^5.9.3",