@cortexkit/anthropic-auth-core 2.10.1 → 2.11.1

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.
@@ -437,6 +437,7 @@ export declare function quotaRefusalTiming(input: {
437
437
  }): {
438
438
  resetAt: number | undefined;
439
439
  retryAfterSeconds: number | undefined;
440
+ limitName?: string;
440
441
  };
441
442
  /** Compatibility accessor for callers that need only the capped retry delay. */
442
443
  export declare function killswitchRetryAfterSeconds(mainQuota: OAuthQuotaSnapshot | undefined, fallbackAccounts: Array<QuotaResetEvidence>, now: number, scopedModelId?: string, options?: {
@@ -0,0 +1,6 @@
1
+ /** Hosts recheck availability periodically instead of sleeping until a distant quota reset. */
2
+ export declare const MAX_HOST_RETRY_MS: number;
3
+ export declare function clampHostRetryMs(delayMs: number): number;
4
+ /** Keep quota reset headers intact: they are evidence, not instructions to the host. */
5
+ export declare function hostRetryHeaders(upstream: Headers, now?: number): Headers;
6
+ export declare function hostRetryResponse(response: Response, now?: number): Response;
package/dist/index.d.ts CHANGED
@@ -21,6 +21,7 @@ export * from './dump.ts';
21
21
  export * from './fast.ts';
22
22
  export * from './holder-registry.ts';
23
23
  export * from './host-paths.ts';
24
+ export * from './host-retry.ts';
24
25
  export * from './json.ts';
25
26
  export * from './killswitch.ts';
26
27
  export * from './logger.ts';
@@ -101,6 +102,7 @@ export * from './request-gzip.ts';
101
102
  export * from './request-history.ts';
102
103
  export * from './routing.ts';
103
104
  export * from './routing-peek.ts';
105
+ export * from './routing-relay.ts';
104
106
  export * from './routing-reports.ts';
105
107
  export * from './server-fallback-usage.ts';
106
108
  export * from './session-cache-activity.ts';