@livx.cc/agentx 0.99.134 → 0.99.135
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/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5716,7 +5716,7 @@ var Agent = class _Agent {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
const sc = err2?.statusCode;
|
|
5718
5718
|
const serverSide = sc >= 500 || sc === 408 || /Service Unavailable|overloaded|Internal server error|Bad gateway|Gateway time/i.test(String(err2?.message ?? ""));
|
|
5719
|
-
const network = !sc && /ECONNRESET|ECONNREFUSED|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|EPIPE|socket hang up|socket connection was closed|closed unexpectedly|
|
|
5719
|
+
const network = !sc && /ECONNRESET|ECONNREFUSED|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|EPIPE|socket hang up|socket connection was closed|closed unexpectedly|premature close|fetch failed|network|terminated|UND_ERR/i.test(String(err2?.message ?? err2?.code ?? err2));
|
|
5720
5720
|
const stalled = err2?.code === "stall";
|
|
5721
5721
|
const empty = err2?.code === "empty" || err2?.code === "cursor_silent";
|
|
5722
5722
|
const maxAttempts = empty ? Math.max(o.emptyRetries, 0) : 2;
|