@rudra-js/anthropic 0.7.5 → 0.7.6
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 +7 -1
- package/package.json +8 -6
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
|
|
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.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.7.6",
|
|
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
|
-
"
|
|
10
|
-
"
|
|
11
|
+
"ecommerce",
|
|
12
|
+
"typescript"
|
|
11
13
|
],
|
|
12
14
|
"license": "MIT",
|
|
13
15
|
"author": "Clive Dsouza",
|
|
@@ -50,10 +52,10 @@
|
|
|
50
52
|
"zod": "^4.0.0"
|
|
51
53
|
},
|
|
52
54
|
"peerDependencies": {
|
|
53
|
-
"@rudra-js/core": "^0.7.
|
|
55
|
+
"@rudra-js/core": "^0.7.6"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
|
-
"@rudra-js/core": "0.7.
|
|
58
|
+
"@rudra-js/core": "0.7.6",
|
|
57
59
|
"@types/node": "^26.4.1"
|
|
58
60
|
}
|
|
59
61
|
}
|