@shop-os/modelkit 0.2.13 → 0.2.14

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.
@@ -429,6 +429,11 @@ interface CallContext {
429
429
  /** "enterprise" picks keys.enterprise when every key for the provider is set, else falls back to pro. */
430
430
  tier?: "pro" | "enterprise";
431
431
  signal?: AbortSignal;
432
+ /** Media retries after the initial request. Set 0 when a durable host owns recovery.
433
+ * Unset preserves adapter defaults. Successful pending-job polls are not retries.
434
+ * Text methods use the AI SDK options.maxRetries instead.
435
+ */
436
+ maxRetries?: number;
432
437
  onUnsupported?: "error" | "coerce";
433
438
  }
434
439
 
package/dist/catalog.d.ts CHANGED
@@ -429,6 +429,11 @@ interface CallContext {
429
429
  /** "enterprise" picks keys.enterprise when every key for the provider is set, else falls back to pro. */
430
430
  tier?: "pro" | "enterprise";
431
431
  signal?: AbortSignal;
432
+ /** Media retries after the initial request. Set 0 when a durable host owns recovery.
433
+ * Unset preserves adapter defaults. Successful pending-job polls are not retries.
434
+ * Text methods use the AI SDK options.maxRetries instead.
435
+ */
436
+ maxRetries?: number;
432
437
  onUnsupported?: "error" | "coerce";
433
438
  }
434
439
 
package/dist/catalog.js CHANGED
@@ -126,7 +126,9 @@ function normalizeExposure(value) {
126
126
  if (value === "catalog") return ["cowork", "space_builder"];
127
127
  if (value === "internal") return [];
128
128
  if (Array.isArray(value)) {
129
- if (value.every((entry) => SURFACES.includes(entry))) {
129
+ if (value.every(
130
+ (entry) => SURFACES.includes(entry)
131
+ )) {
130
132
  const present = new Set(value);
131
133
  return SURFACES.filter((surface) => present.has(surface));
132
134
  }