@duetso/agent 0.1.130 → 0.1.131
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/package.json
CHANGED
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
* - HTTP/2 and websocket churn: "websocket closed", "other side closed",
|
|
38
38
|
* "reset before headers", "http2 request did not get a response",
|
|
39
39
|
* "ended without sending chunks", "terminated".
|
|
40
|
+
* - Streaming truncation: "stream ended" (covers Anthropic's
|
|
41
|
+
* `Anthropic stream ended before message_stop`, which pi-ai throws
|
|
42
|
+
* when the SSE stream closes without a terminal `message_stop`
|
|
43
|
+
* event — a transient transport failure that retries cleanly).
|
|
40
44
|
* - Timeouts: "request timed out", generic "timeout", "retry delay" (the
|
|
41
45
|
* marker pi-ai emits when `maxRetryDelayMs` is exceeded so higher-level
|
|
42
46
|
* logic can take over).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transient-error.d.ts","sourceRoot":"","sources":["../../../src/turn-runner/transient-error.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"transient-error.d.ts","sourceRoot":"","sources":["../../../src/turn-runner/transient-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAmBlE;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAIhF;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,OAAO,CAK/E;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,8BAA8B,EAAE,oBAI5C,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,oBAAqD,GAC5D,MAAM,CAKR"}
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
* - HTTP/2 and websocket churn: "websocket closed", "other side closed",
|
|
38
38
|
* "reset before headers", "http2 request did not get a response",
|
|
39
39
|
* "ended without sending chunks", "terminated".
|
|
40
|
+
* - Streaming truncation: "stream ended" (covers Anthropic's
|
|
41
|
+
* `Anthropic stream ended before message_stop`, which pi-ai throws
|
|
42
|
+
* when the SSE stream closes without a terminal `message_stop`
|
|
43
|
+
* event — a transient transport failure that retries cleanly).
|
|
40
44
|
* - Timeouts: "request timed out", generic "timeout", "retry delay" (the
|
|
41
45
|
* marker pi-ai emits when `maxRetryDelayMs` is exceeded so higher-level
|
|
42
46
|
* logic can take over).
|
|
@@ -51,7 +55,7 @@
|
|
|
51
55
|
* pi-coding-agent's `_isRetryableError` so behavior stays consistent
|
|
52
56
|
* between the two retry sites in the pi ecosystem.
|
|
53
57
|
*/
|
|
54
|
-
const TRANSIENT_PATTERN = /overloaded|provider.?returned.?error|rate.?limit|too many requests|429|500|502|503|504|service.?unavailable|server.?error|internal.?error|network.?error|connection.?error|connection.?refused|connection.?lost|websocket.?closed|websocket.?error|other side closed|fetch failed|upstream.?connect|reset before headers|socket hang up|ended without|http2 request did not get a response|timed? out|timeout|terminated|retry delay|\bECONN(?:RESET|REFUSED|ABORTED)\b|\bETIMEDOUT\b|\bEPIPE\b|\bEAI_AGAIN\b/i;
|
|
58
|
+
const TRANSIENT_PATTERN = /overloaded|provider.?returned.?error|rate.?limit|too many requests|429|500|502|503|504|service.?unavailable|server.?error|internal.?error|network.?error|connection.?error|connection.?refused|connection.?lost|websocket.?closed|websocket.?error|other side closed|fetch failed|upstream.?connect|reset before headers|socket hang up|ended without|stream ended|http2 request did not get a response|timed? out|timeout|terminated|retry delay|\bECONN(?:RESET|REFUSED|ABORTED)\b|\bETIMEDOUT\b|\bEPIPE\b|\bEAI_AGAIN\b/i;
|
|
55
59
|
/**
|
|
56
60
|
* Patterns excluded even when `TRANSIENT_PATTERN` matches. These are
|
|
57
61
|
* client-side failures whose payload would fail identically on retry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transient-error.js","sourceRoot":"","sources":["../../../src/turn-runner/transient-error.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"transient-error.js","sourceRoot":"","sources":["../../../src/turn-runner/transient-error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAIH;;;;GAIG;AACH,MAAM,iBAAiB,GACrB,6fAA6f,CAAC;AAEhgB;;;;;GAKG;AACH,MAAM,qBAAqB,GACzB,mKAAmK,CAAC;AAEtK;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,YAAgC;IACrE,IAAI,CAAC,YAAY;QAAE,OAAO,KAAK,CAAC;IAChC,IAAI,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAC9C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,QAAwB;IACpE,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC3C,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC;IACrD,IAAI,IAAI,CAAC,UAAU,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC;IAC9C,OAAO,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnD,CAAC;AAmBD,MAAM,CAAC,MAAM,8BAA8B,GAAyB;IAClE,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,KAAK;IACl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