@aexhq/sdk 0.41.4 → 0.41.5
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/_contracts/http.js +2 -1
- package/dist/cli.mjs +2 -1
- package/dist/cli.mjs.sha256 +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/_contracts/http.js
CHANGED
|
@@ -129,6 +129,7 @@ const DEFAULT_TRANSIENT_GET_RETRY = {
|
|
|
129
129
|
};
|
|
130
130
|
const TRANSIENT_READ_CODES = new Set([
|
|
131
131
|
"ConnectionRefused",
|
|
132
|
+
"FailedToOpenSocket",
|
|
132
133
|
"ECONNRESET",
|
|
133
134
|
"ECONNREFUSED",
|
|
134
135
|
"ETIMEDOUT",
|
|
@@ -187,7 +188,7 @@ function transientReadErrorCode(err) {
|
|
|
187
188
|
if (code && TRANSIENT_READ_CODES.has(code))
|
|
188
189
|
return code;
|
|
189
190
|
const text = err instanceof Error ? `${err.name}: ${err.message}` : String(err);
|
|
190
|
-
if (/fetch failed|socket hang up|other side closed|terminated|network.*reset/i.test(text))
|
|
191
|
+
if (/FailedToOpenSocket|fetch failed|socket hang up|other side closed|terminated|network.*reset|unable to connect/i.test(text))
|
|
191
192
|
return "fetch";
|
|
192
193
|
return undefined;
|
|
193
194
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -2262,6 +2262,7 @@ var DEFAULT_TRANSIENT_GET_RETRY = {
|
|
|
2262
2262
|
};
|
|
2263
2263
|
var TRANSIENT_READ_CODES = /* @__PURE__ */ new Set([
|
|
2264
2264
|
"ConnectionRefused",
|
|
2265
|
+
"FailedToOpenSocket",
|
|
2265
2266
|
"ECONNRESET",
|
|
2266
2267
|
"ECONNREFUSED",
|
|
2267
2268
|
"ETIMEDOUT",
|
|
@@ -2319,7 +2320,7 @@ function transientReadErrorCode(err2) {
|
|
|
2319
2320
|
if (code && TRANSIENT_READ_CODES.has(code))
|
|
2320
2321
|
return code;
|
|
2321
2322
|
const text = err2 instanceof Error ? `${err2.name}: ${err2.message}` : String(err2);
|
|
2322
|
-
if (/fetch failed|socket hang up|other side closed|terminated|network.*reset/i.test(text))
|
|
2323
|
+
if (/FailedToOpenSocket|fetch failed|socket hang up|other side closed|terminated|network.*reset|unable to connect/i.test(text))
|
|
2323
2324
|
return "fetch";
|
|
2324
2325
|
return void 0;
|
|
2325
2326
|
}
|
package/dist/cli.mjs.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4e757178bfe41df635aed38aa9fe18034b19bdeff785065a643e41e03ef67e83 cli.mjs
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aexhq/sdk",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.5",
|
|
4
4
|
"description": "TypeScript SDK for running autonomous agent sessions across providers (Anthropic, OpenAI, DeepSeek, Gemini, Mistral) behind one interface.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|