@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.
- package/dist/accounts.d.ts +1 -0
- package/dist/host-retry.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +448 -116
- package/dist/internal-types/commands/builtins.d.ts +20 -1
- package/dist/internal-types/commands/index.d.ts +1 -1
- package/dist/internal-types/commands/menu.d.ts +6 -1
- package/dist/internal-types/fs/refresh-file-lock.d.ts +11 -0
- package/dist/internal-types/fs/with-lock.d.ts +2 -0
- package/dist/internal-types/routing-accessor/index.d.ts +33 -5
- package/dist/internal-types/setup/command-error.d.ts +1 -1
- package/dist/internal-types/setup/types.d.ts +4 -0
- package/dist/quota-refusal.d.ts +3 -1
- package/dist/routing-relay.d.ts +36 -0
- package/dist/sticky-routing.d.ts +2 -0
- package/package.json +2 -2
package/dist/accounts.d.ts
CHANGED
|
@@ -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';
|