@vincemakes/kiso-provider-anthropic 0.1.32 → 0.1.34
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 +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -275,15 +275,18 @@ function toAnthropicTools(tools) {
|
|
|
275
275
|
}));
|
|
276
276
|
}
|
|
277
277
|
function toAnthropicError(err) {
|
|
278
|
+
// P3 (0.1.42): the honest label — every real-provider error names its
|
|
279
|
+
// provider, so a terminal never reads as a scripted-model failure.
|
|
280
|
+
const label = "[anthropic] request failed: ";
|
|
278
281
|
// D4: connection-level failures are recognized, not lumped into unknown.
|
|
279
282
|
if (err instanceof Anthropic.APIConnectionTimeoutError) {
|
|
280
|
-
return { code: "timeout", retryable: true, message: err.message };
|
|
283
|
+
return { code: "timeout", retryable: true, message: label + err.message };
|
|
281
284
|
}
|
|
282
285
|
if (err instanceof Anthropic.APIConnectionError) {
|
|
283
|
-
return { code: "network", retryable: true, message: err.message };
|
|
286
|
+
return { code: "network", retryable: true, message: label + err.message };
|
|
284
287
|
}
|
|
285
288
|
if (err instanceof Anthropic.APIError) {
|
|
286
|
-
return mapApiError(err.status, err.message);
|
|
289
|
+
return mapApiError(err.status, label + err.message);
|
|
287
290
|
}
|
|
288
291
|
return err;
|
|
289
292
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-provider-anthropic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "kiso Anthropic adapter — 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.1.
|
|
25
|
+
"@vincemakes/kiso-core": "0.1.33"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^26.1.2",
|