@vincemakes/kiso-provider-anthropic 0.39.2 → 0.40.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.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* The id in the start block IS the callId the kernel echoes back.
|
|
14
14
|
*/
|
|
15
15
|
import Anthropic from "@anthropic-ai/sdk";
|
|
16
|
-
import { mapApiError, parseRetryAfter, streamFailure } from "@vincemakes/kiso-core";
|
|
16
|
+
import { connectionFailure, mapApiError, parseRetryAfter, streamFailure } from "@vincemakes/kiso-core";
|
|
17
17
|
/**
|
|
18
18
|
* High-level factory (round 7): builds the adapter FROM CONFIG, owning the SDK
|
|
19
19
|
* inside this package. Consumers (and the runtime's lazy provider path)
|
|
@@ -445,7 +445,7 @@ function toAnthropicError(err) {
|
|
|
445
445
|
return { code: "timeout", retryable: true, message: label + err.message };
|
|
446
446
|
}
|
|
447
447
|
if (err instanceof Anthropic.APIConnectionError) {
|
|
448
|
-
return
|
|
448
|
+
return connectionFailure(err, label + err.message);
|
|
449
449
|
}
|
|
450
450
|
if (err instanceof Anthropic.APIError) {
|
|
451
451
|
// CX-1 F8: the kernel owns retries — Retry-After travels with the error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-provider-anthropic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "kiso Anthropic adapter \u2014 official SDK wire events mapped to the kiso event union.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@anthropic-ai/sdk": "^0.115.0",
|
|
25
|
-
"@vincemakes/kiso-core": "0.
|
|
25
|
+
"@vincemakes/kiso-core": "0.40.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^26.1.2",
|