agentid-sdk 0.1.14 → 0.1.16
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/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2398,6 +2398,9 @@ var AgentID = class {
|
|
|
2398
2398
|
return { ok: true, status: response.status, reason: null };
|
|
2399
2399
|
}
|
|
2400
2400
|
const reason = responseBody && typeof responseBody === "object" && typeof responseBody.reason === "string" ? responseBody.reason ?? null : null;
|
|
2401
|
+
if (response.status === 409 && reason === "replay_detected") {
|
|
2402
|
+
return { ok: true, status: response.status, reason };
|
|
2403
|
+
}
|
|
2401
2404
|
const retryable = response.status >= 500 || response.status === 429;
|
|
2402
2405
|
if (retryable && attempt < INGEST_MAX_ATTEMPTS - 1) {
|
|
2403
2406
|
await waitForIngestRetry(attempt);
|
package/dist/index.mjs
CHANGED
|
@@ -2360,6 +2360,9 @@ var AgentID = class {
|
|
|
2360
2360
|
return { ok: true, status: response.status, reason: null };
|
|
2361
2361
|
}
|
|
2362
2362
|
const reason = responseBody && typeof responseBody === "object" && typeof responseBody.reason === "string" ? responseBody.reason ?? null : null;
|
|
2363
|
+
if (response.status === 409 && reason === "replay_detected") {
|
|
2364
|
+
return { ok: true, status: response.status, reason };
|
|
2365
|
+
}
|
|
2363
2366
|
const retryable = response.status >= 500 || response.status === 429;
|
|
2364
2367
|
if (retryable && attempt < INGEST_MAX_ATTEMPTS - 1) {
|
|
2365
2368
|
await waitForIngestRetry(attempt);
|