@pidgeon-ai/cli 1.42.1 → 1.42.2
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.
|
@@ -1975,17 +1975,23 @@ async function* streamEvents(options) {
|
|
|
1975
1975
|
continue;
|
|
1976
1976
|
}
|
|
1977
1977
|
backoffMs = 1e3;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1978
|
+
try {
|
|
1979
|
+
for await (const frame of frames(response.body, options.signal)) {
|
|
1980
|
+
if (frame.id) lastEventId = frame.id;
|
|
1981
|
+
if (!frame.data) continue;
|
|
1982
|
+
if (frame.event === "error") continue;
|
|
1983
|
+
let parsed;
|
|
1984
|
+
try {
|
|
1985
|
+
parsed = JSON.parse(frame.data);
|
|
1986
|
+
} catch {
|
|
1987
|
+
continue;
|
|
1988
|
+
}
|
|
1989
|
+
yield parsed;
|
|
1987
1990
|
}
|
|
1988
|
-
|
|
1991
|
+
} catch {
|
|
1992
|
+
if (options.signal?.aborted) return;
|
|
1993
|
+
await sleep(backoffMs, options.signal);
|
|
1994
|
+
backoffMs = Math.min(backoffMs * 2, 3e4);
|
|
1989
1995
|
}
|
|
1990
1996
|
}
|
|
1991
1997
|
}
|
|
@@ -3314,4 +3320,4 @@ export {
|
|
|
3314
3320
|
find,
|
|
3315
3321
|
run
|
|
3316
3322
|
};
|
|
3317
|
-
//# sourceMappingURL=chunk-
|
|
3323
|
+
//# sourceMappingURL=chunk-M7BO7YR6.js.map
|