@rudra-js/anthropic 0.7.5 → 0.8.0

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 +7 -1
  2. package/package.json +9 -7
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @rudra-js/anthropic
2
2
 
3
+ This package is part of [rudra-js](https://rudrajs.com).
4
+
5
+ rudra-js is an open-source TypeScript library (MIT) you install from npm. A language model designs one product-recommendation block for a page in your shop, rudra-js checks it against your catalog, and React renders it.
6
+
7
+ It is not a hosted platform, a visual or low-code app builder, or a workspace you sign up for.
8
+
3
9
  An Anthropic adapter for
4
10
  [`@rudra-js/core`](https://github.com/clivedsouza1010/rudra-js/tree/main/packages/core)'s
5
11
  `ComponentProvider`.
@@ -118,7 +124,7 @@ anything.
118
124
  When the API answers with an error, the `Error` we throw carries the status code
119
125
  and the vendor's error category, like `anthropic responded 400
120
126
  (invalid_request_error)`. We leave the vendor's own message out. It quotes the
121
- request back, and for this framework the request can hold a shopper's search
127
+ request back, and in rudra-js the request can hold a shopper's search
122
128
  terms, which an adopter's `console.error(error)` would then write to a log. A
123
129
  test in `anthropic-provider.test.ts` puts a search term in that message and
124
130
  asserts it does not reach the thrown error.
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@rudra-js/anthropic",
3
- "version": "0.7.5",
4
- "description": "An Anthropic adapter for @rudra-js/core, with no vendor SDK",
3
+ "version": "0.8.0",
4
+ "description": "Anthropic adapter for rudra-js (@rudra-js/core), with no vendor SDK",
5
5
  "keywords": [
6
+ "rudra-js",
7
+ "product-recommendations",
6
8
  "anthropic",
7
9
  "claude",
8
10
  "llm",
9
- "rudra",
10
- "server-components"
11
+ "ecommerce",
12
+ "typescript"
11
13
  ],
12
14
  "license": "MIT",
13
15
  "author": "Clive Dsouza",
@@ -47,13 +49,13 @@
47
49
  "access": "public"
48
50
  },
49
51
  "dependencies": {
50
- "zod": "^4.0.0"
52
+ "zod": "^4.6.7"
51
53
  },
52
54
  "peerDependencies": {
53
- "@rudra-js/core": "^0.7.5"
55
+ "@rudra-js/core": "^0.8.0"
54
56
  },
55
57
  "devDependencies": {
56
- "@rudra-js/core": "0.7.5",
58
+ "@rudra-js/core": "0.8.0",
57
59
  "@types/node": "^26.4.1"
58
60
  }
59
61
  }