@rudra-js/a2ui 0.8.1 → 0.8.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.
- package/README.md +14 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -16,11 +16,22 @@ It works with version 0.9 of the A2UI protocol, through `@a2ui/react` and `@a2ui
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
npm install @rudra-js/a2ui @rudra-js/core @rudra-js/react @rudra-js/attested @a2ui/react @a2ui/web_core react react-dom
|
|
19
|
+
npm install @rudra-js/a2ui@latest @rudra-js/core@latest @rudra-js/react@latest @rudra-js/attested@latest @a2ui/react@0.14 @a2ui/web_core@0.14 react react-dom
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
Run the same command in a new app, in one that already uses rudra-js or A2UI, and to upgrade. If
|
|
23
|
+
your app has `@rudra-js/anthropic`, add `@rudra-js/anthropic@latest` to the command. The
|
|
24
|
+
`@rudra-js` packages are published together, and each one's peer ranges on the others start at its
|
|
25
|
+
own version. For a bare name npm stays inside the range your `package.json` already has, so
|
|
26
|
+
without `@latest` an app on an older core can get an `ERESOLVE`. `@0.14` is the `@a2ui` release
|
|
27
|
+
this package works with. `react` and `react-dom` carry no version, so npm and pnpm keep a React 18
|
|
28
|
+
app on 18.
|
|
29
|
+
|
|
30
|
+
Everything but zod is a peer dependency, so your app holds one copy of each. npm and pnpm add
|
|
31
|
+
peers for you, but your code imports most of them itself, and pnpm lets it import only what your
|
|
32
|
+
`package.json` names. Yarn doesn't add peers, so there you need the whole list. It does move a bare
|
|
33
|
+
name to its latest version, so leave out `react` and `react-dom` if your app already has React. On
|
|
34
|
+
pnpm, read [zod](#zod) first.
|
|
24
35
|
|
|
25
36
|
Keep `skipLibCheck: true`. Without it, A2UI's own declarations fail to typecheck: they need `"dom"`
|
|
26
37
|
in `lib`, and two of their imports have no file extension, which `nodenext` refuses.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rudra-js/a2ui",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "A2UI component for rudra-js: lets an A2UI agent place a product-recommendation block whose products, prices and wording come from your shop, not from the agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rudra-js",
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@a2ui/react": "^0.14.0",
|
|
64
64
|
"@a2ui/web_core": "^0.14.0",
|
|
65
|
-
"@rudra-js/core": "^0.8.
|
|
66
|
-
"@rudra-js/react": "^0.8.
|
|
65
|
+
"@rudra-js/core": "^0.8.2",
|
|
66
|
+
"@rudra-js/react": "^0.8.2",
|
|
67
67
|
"react": "^18.2.0 || ^19.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@a2ui/react": "0.14.0",
|
|
71
71
|
"@a2ui/web_core": "0.14.0",
|
|
72
|
-
"@rudra-js/core": "0.8.
|
|
73
|
-
"@rudra-js/react": "0.8.
|
|
72
|
+
"@rudra-js/core": "0.8.2",
|
|
73
|
+
"@rudra-js/react": "0.8.2",
|
|
74
74
|
"@types/react": "^19.3.0",
|
|
75
75
|
"@types/react-dom": "^19.3.0",
|
|
76
76
|
"jsdom": "^27.4.0",
|