@cortexkit/opencode-anthropic-auth 2.10.1 → 2.11.0

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 CHANGED
@@ -1 +1 @@
1
- import{t as a}from"./index-hzf7nz91.js";import"./index-2ra790fx.js";import"./index-jc8zwxvw.js";import"./index-k6303ymz.js";import"./index-m7k9zxem.js";import"./index-crx0xd9j.js";import"./index-n8xr16kr.js";export{a as AnthropicAuthPlugin};
1
+ import{t as a}from"./index-q2wk9wtw.js";import"./index-2ra790fx.js";import"./index-jc8zwxvw.js";import"./index-k6303ymz.js";import"./index-m7k9zxem.js";import"./index-crx0xd9j.js";import"./index-n8xr16kr.js";export{a as AnthropicAuthPlugin};
@@ -1,22 +1 @@
1
- import { type AccountStorage, type OAuthQuotaSnapshot, type StickyRouteCandidate } from '@cortexkit/anthropic-auth-core';
2
- export declare const ROUTING_HOLD_LIMIT_MS: number;
3
- export type RoutingChoice = {
4
- account_id: string;
5
- credential_id: string;
6
- hold?: {
7
- retry_after_ms: number;
8
- };
9
- };
10
- type RoutingSubject = {
11
- accountIdentity?: string;
12
- credentialId?: string;
13
- };
14
- export declare function routingChoiceMatches(choice: RoutingChoice, account: RoutingSubject): boolean;
15
- /** Opus model requests spend accounts with exhausted Fable quota first, preserving the others for Fable requests. */
16
- export declare function routingReserveAllows(accountId: string, candidates: readonly StickyRouteCandidate[], storage: AccountStorage | null, modelId: string): boolean;
17
- export declare function createRoutingRelay(quotaFor?: (subject: RoutingSubject) => Promise<OAuthQuotaSnapshot | undefined>): {
18
- override: (sessionId: string, reason: string) => void;
19
- accountFor(sessionId: string, modelId: string, candidates: readonly RoutingSubject[]): Promise<RoutingChoice | null>;
20
- report(sessionId: string, subject: RoutingSubject, headers: Headers, status: number, modelId?: string, served?: boolean): void;
21
- };
22
- export {};
1
+ export { createRoutingRelay, ROUTING_HOLD_LIMIT_MS, type RoutingChoice, RoutingRefusalError, routingCandidates, routingChoiceMatches, } from '@cortexkit/anthropic-auth-core';