From a4ea47be37e133f17a60f5c9c34a4817360e1a6a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 10 Jan 2026 01:48:42 +0100 Subject: [PATCH] fix: refresh @buape/carbon patch --- patches/@buape__carbon.patch | 18 +++++------------- pnpm-lock.yaml | 3 +++ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/patches/@buape__carbon.patch b/patches/@buape__carbon.patch index 0e965e609d..5cb5a2353d 100644 --- a/patches/@buape__carbon.patch +++ b/patches/@buape__carbon.patch @@ -1,6 +1,6 @@ --- a/dist/src/classes/RequestClient.js +++ b/dist/src/classes/RequestClient.js -@@ -118,6 +118,9 @@ +@@ -86,6 +86,9 @@ } } this.abortController = new AbortController(); @@ -10,7 +10,7 @@ let body; if (data?.body && typeof data.body === "object" && -@@ -178,12 +181,26 @@ +@@ -146,12 +149,26 @@ body = JSON.stringify(data.body); } } @@ -40,14 +40,6 @@ + clearTimeout(timeoutId); + } + } - let rawBody = ""; - let parsedBody; - try { -@@ -405,4 +422,4 @@ - } - } - const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, Math.max(ms, 0))); --//# sourceMappingURL=RequestClient.js.map -\ No newline at end of file -+//# sourceMappingURL=RequestClient.js.map - + if (response.status === 429) { + const responseBody = await response.json(); + const rateLimitError = new RateLimitError(response, responseBody); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9444d7cc0c..31c36f91f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ overrides: '@sinclair/typebox': 0.34.47 patchedDependencies: + '@buape/carbon': + hash: 85885a1d47a37ae00bcd21f2efbeb025284ea98981c300f095fb94c0604ff9ac + path: patches/@buape__carbon.patch '@mariozechner/pi-agent-core': hash: 01312ceb1f6be7e42822c24c9a7a4f7db56b24ae114a364855bd3819779d1cf4 path: patches/@mariozechner__pi-agent-core.patch