@adaptic/lumic-utils 1.0.15 → 1.0.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.
@@ -7815,12 +7815,19 @@ function sanitizeObject(obj, sensitiveFields = ['apiKey', 'token', 'secret', 'pa
7815
7815
  // llm-anthropic.ts
7816
7816
  /**
7817
7817
  * Determines if an Anthropic API error should be retried.
7818
- * Retries on rate limits (429) and overloaded (529) errors.
7818
+ * Retries on:
7819
+ * - 429 rate limit
7820
+ * - 500 internal server error (transient)
7821
+ * - 503 service unavailable (transient)
7822
+ * - 529 overloaded
7823
+ * - Messages containing "rate limit" or "overloaded"
7819
7824
  */
7820
7825
  const isRetryableAnthropicError = (error) => {
7821
7826
  if (error instanceof Error) {
7822
7827
  const message = error.message;
7823
7828
  if (message.includes('429') ||
7829
+ message.includes('500') ||
7830
+ message.includes('503') ||
7824
7831
  message.includes('529') ||
7825
7832
  message.includes('rate limit') ||
7826
7833
  message.includes('overloaded')) {
@@ -22675,11 +22682,11 @@ let poolConfig = DEFAULT_POOL_CONFIG;
22675
22682
  async function loadApolloModules() {
22676
22683
  if (typeof window === "undefined" || process.env.AWS_EXECUTION_ENV) {
22677
22684
  // Server-side (or Lambda): load the CommonJS‑based implementation.
22678
- return (await Promise.resolve().then(function () { return require('./apollo-client.server-DqSN1Fiy.js'); }));
22685
+ return (await Promise.resolve().then(function () { return require('./apollo-client.server-bp1Spce0.js'); }));
22679
22686
  }
22680
22687
  else {
22681
22688
  // Client-side: load the ESM‑based implementation.
22682
- return (await Promise.resolve().then(function () { return require('./apollo-client.client-DcvDB-WD.js'); }));
22689
+ return (await Promise.resolve().then(function () { return require('./apollo-client.client-BxYrv3du.js'); }));
22683
22690
  }
22684
22691
  }
22685
22692
  /**
@@ -81390,4 +81397,4 @@ exports.withCorrelationId = withCorrelationId;
81390
81397
  exports.withMetrics = withMetrics;
81391
81398
  exports.withRateLimit = withRateLimit;
81392
81399
  exports.withRetry = withRetry;
81393
- //# sourceMappingURL=index-BD1cU0P8.js.map
81400
+ //# sourceMappingURL=index-CeftMshp.js.map