Skip to content

Commit d03a45d

Browse files
committed
fix(agents): drop unused failover classification re-exports
1 parent 3c82328 commit d03a45d

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎src/agents/failover/classification-rules.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ function hasBillingApiErrorType(raw: string): boolean {
388388
function isAmbiguousGeneric429BalanceMessage(raw: string): boolean {
389389
return /\binsufficient\s+account\s+balance\b/i.test(raw) && !hasStructuredBilling429Signal(raw);
390390
}
391-
export function isBilling429MessageForProvider(raw: string, provider: string | undefined): boolean {
391+
function isBilling429MessageForProvider(raw: string, provider: string | undefined): boolean {
392392
if (!isBillingErrorMessage(raw)) {
393393
return false;
394394
}

‎src/agents/failover/classify.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ import {
5151
type PreparedProviderFailoverOwner,
5252
} from "./provider-patterns.js";
5353
import type { FailoverClassification, FailoverReason, FailoverSignal } from "./signal.js";
54-
export {
55-
isBilling429MessageForProvider,
56-
isGenericUnknownStreamErrorMessage,
57-
isTransientHttpError,
58-
isUnclassifiedNoBodyHttpSignal,
59-
} from "./classification-rules.js";
54+
export { isUnclassifiedNoBodyHttpSignal } from "./classification-rules.js";
6055
export {
6156
isContextOverflowError,
6257
isLikelyContextOverflowError,

0 commit comments

Comments
 (0)