vern-llm 2.7.0 → 2.8.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.d.cts CHANGED
@@ -147,7 +147,7 @@ interface LLMErrorOptions {
147
147
  /** Every attempt made before this error was thrown, in order. Absent when nothing was retried. */
148
148
  attempts?: RetryAttempt[];
149
149
  }
150
- declare class LLMError extends Error {
150
+ export declare class LLMError extends Error {
151
151
  type: LLMErrorType;
152
152
  status?: number;
153
153
  issues?: unknown;
@@ -203,7 +203,7 @@ declare class LLMError extends Error {
203
203
  */
204
204
  toJSON(): Record<string, unknown>;
205
205
  }
206
- declare function isLLMError(err: unknown): err is LLMError;
206
+ export declare function isLLMError(err: unknown): err is LLMError;
207
207
  /**
208
208
  * Narrows `err.issues` to the exact shape {@link LLMErrorIssuesByCode} maps
209
209
  * `code` to, for any code listed there. `code` stays the only discriminator
@@ -216,7 +216,7 @@ declare function isLLMError(err: unknown): err is LLMError;
216
216
  * }
217
217
  * ```
218
218
  */
219
- declare function hasIssues<C extends keyof LLMErrorIssuesByCode>(err: LLMError, code: C): err is LLMError & {
219
+ export declare function hasIssues<C extends keyof LLMErrorIssuesByCode>(err: LLMError, code: C): err is LLMError & {
220
220
  code: C;
221
221
  issues: LLMErrorIssuesByCode[C];
222
222
  };
@@ -241,7 +241,7 @@ type EvictionOption = 'fifo' | 'lru';
241
241
  * Trivial default so the package works out of the box with no external deps.
242
242
  * Not shared across processes, swap in Redis/Upstash/etc for production.
243
243
  */
244
- declare class InMemoryCacheAdapter<T = unknown> implements CacheAdapter<T> {
244
+ export declare class InMemoryCacheAdapter<T = unknown> implements CacheAdapter<T> {
245
245
  private readonly maxSize;
246
246
  private store;
247
247
  private readonly eviction;
@@ -258,7 +258,7 @@ declare class InMemoryCacheAdapter<T = unknown> implements CacheAdapter<T> {
258
258
  /**
259
259
  * Normalizes keys before caching to avoid duplicate entries from formatting differences.
260
260
  */
261
- declare class NormalizedCacheAdapter<T = unknown> implements CacheAdapter<T> {
261
+ export declare class NormalizedCacheAdapter<T = unknown> implements CacheAdapter<T> {
262
262
  private readonly inner;
263
263
  constructor(inner?: CacheAdapter<T>);
264
264
  private normalize;
@@ -274,7 +274,7 @@ declare class NormalizedCacheAdapter<T = unknown> implements CacheAdapter<T> {
274
274
  * Two-tier cache with fast local L1 and shared L2.
275
275
  * L2 hits are promoted back to L1.
276
276
  */
277
- declare class TieredCacheAdapter<T = unknown> implements CacheAdapter<T> {
277
+ export declare class TieredCacheAdapter<T = unknown> implements CacheAdapter<T> {
278
278
  private readonly l1;
279
279
  private readonly l2;
280
280
  private readonly l1Ttl?;
@@ -372,6 +372,19 @@ interface MiddlewareCapabilities {
372
372
  */
373
373
  supportsJsonObjectMode: boolean;
374
374
  }
375
+ /**
376
+ * Not exported. Distinguishes `MiddlewareStateKey<T>` from
377
+ * `MiddlewareRef` and from a plain `{ debugName }` object literal at
378
+ * the type level, even though all three have the identical runtime
379
+ * shape. Without this, `MiddlewareStateKey<T>`/`MiddlewareRef` are
380
+ * structurally just `{ debugName: string }`, so TypeScript would treat
381
+ * a state key as a valid middleware ref (or vice versa), and would let
382
+ * anyone hand-write `{ debugName: 'auth' }` in place of a real
383
+ * `createMiddlewareRef` result. Neither is possible once this brand is
384
+ * required: only `createStateKey`, which alone has access to this
385
+ * symbol, can produce a value satisfying `MiddlewareStateKey<T>`.
386
+ */
387
+ declare const stateKeyBrand: unique symbol;
375
388
  /**
376
389
  * A typed reference to one slot in `ctx.state`. Create one with
377
390
  * `createStateKey`, export it, and import the same reference wherever
@@ -382,6 +395,7 @@ interface MiddlewareCapabilities {
382
395
  */
383
396
  interface MiddlewareStateKey<T> {
384
397
  readonly debugName: string;
398
+ readonly [stateKeyBrand]: true;
385
399
  /**
386
400
  * Never set at runtime; exists purely so `T` is actually used
387
401
  * somewhere in this interface's shape (a phantom type), which is what
@@ -392,7 +406,43 @@ interface MiddlewareStateKey<T> {
392
406
  readonly __phantom?: T;
393
407
  }
394
408
  /** Creates a new, distinct `MiddlewareStateKey`. `debugName` is used only in log lines and the `'middleware'` event; it never affects equality. */
395
- declare function createStateKey<T>(debugName: string): MiddlewareStateKey<T>;
409
+ export declare function createStateKey<T>(debugName: string): MiddlewareStateKey<T>;
410
+ /** Not exported. See `stateKeyBrand`; same reasoning, distinct symbol, so the two token types can't be cross-assigned either. */
411
+ declare const middlewareRefBrand: unique symbol;
412
+ /**
413
+ * A typed reference to one middleware's identity, for `runsAfter`/
414
+ * `runsBefore` to target. Purely an ordering concern: unlike `name`,
415
+ * `ref` is never used as a display label anywhere (`name` still covers
416
+ * that), only as a `runsAfter`/`runsBefore` match target. Create one
417
+ * with `createMiddlewareRef`, export it from the package that owns the
418
+ * middleware, and have any dependent import the same reference instead
419
+ * of typing a matching `name` string. Same reasoning as
420
+ * `MiddlewareStateKey`: a typo becomes a missing import, a compile
421
+ * error, instead of a silently unresolved (or worse, silently
422
+ * colliding) string.
423
+ */
424
+ interface MiddlewareRef {
425
+ readonly debugName: string;
426
+ readonly [middlewareRefBrand]: true;
427
+ }
428
+ /** Creates a new, distinct `MiddlewareRef`. `debugName` is used only in error messages when a reference doesn't resolve; it never affects equality, so two refs with the same `debugName` never collide. */
429
+ export declare function createMiddlewareRef(debugName: string): MiddlewareRef;
430
+ /**
431
+ * A `runsAfter`/`runsBefore` entry that escalates an unresolved
432
+ * reference from a warning to a construction-time throw. Wrap a
433
+ * `MiddlewareRef` with `requireRef` when the dependency isn't optional:
434
+ * a bare `MiddlewareRef` in `runsAfter`/`runsBefore` means "order
435
+ * relative to this if it's registered," which is the right default for
436
+ * a dependency a third party may reasonably not have installed. A
437
+ * `RequiredMiddlewareRef` means "this middleware must not run without
438
+ * that dependency having already run". The app should fail to start
439
+ * rather than run with a silently-missing ordering guarantee.
440
+ */
441
+ interface RequiredMiddlewareRef {
442
+ readonly ref: MiddlewareRef;
443
+ }
444
+ /** Wraps `ref` so `runsAfter`/`runsBefore` throws at `VernLLM` construction time if it doesn't resolve, instead of warning and continuing. */
445
+ export declare function requireRef(ref: MiddlewareRef): RequiredMiddlewareRef;
396
446
  /**
397
447
  * Typed, per-logical-call storage two middleware can deliberately share a
398
448
  * value through (a span ID one sets, another reads). Backed by a plain
@@ -404,7 +454,7 @@ interface MiddlewareStateBag {
404
454
  set<T>(key: MiddlewareStateKey<T>, value: T): void;
405
455
  }
406
456
  /** A plain, `Map`-backed `MiddlewareStateBag`. */
407
- declare function createMiddlewareStateBag(): MiddlewareStateBag;
457
+ export declare function createMiddlewareStateBag(): MiddlewareStateBag;
408
458
  /** Fields every `MiddlewareContext` variant carries, regardless of `stage`. */
409
459
  interface MiddlewareContextBase {
410
460
  requestId: string;
@@ -554,22 +604,36 @@ interface CallResult<T = unknown> {
554
604
  interface VernLLMMiddleware {
555
605
  /** Used in log lines and the `'middleware'` event. Defaults to this entry's array position when omitted. */
556
606
  name?: string;
607
+ /**
608
+ * This entry's own identity, purely for another middleware's
609
+ * `runsAfter`/`runsBefore` to target. Create with `createMiddlewareRef`,
610
+ * export it, and have a dependent import the same reference. Optional:
611
+ * only needed if something else must be able to depend on this
612
+ * specific entry. Unrelated to `name`: `ref` is never shown in logs,
613
+ * `name` is never matched against for ordering.
614
+ */
615
+ ref?: MiddlewareRef;
557
616
  /** Sort key for composition order, ascending, ties broken by array order. See the middleware docs for what "lower runs first" means for `wrap`. */
558
617
  priority?: number;
559
618
  /**
560
- * Names of other middleware this entry must run after, breaking ties
561
- * `priority` alone can't express. A referenced name absent from the
562
- * registered set is dropped, not an error, since a third party may
563
- * reasonably reference a well known name that isn't installed
564
- * everywhere. A cycle across `runsAfter`/`runsBefore` throws at
565
- * `VernLLM` construction time.
619
+ * Other middleware this entry must run after, breaking ties
620
+ * `priority` alone can't express. Matched by `ref` identity, so a
621
+ * typo or a stale copy simply fails to resolve instead of silently
622
+ * matching the wrong entry. A bare `MiddlewareRef` that doesn't
623
+ * resolve is dropped, not an error, since a third party may
624
+ * reasonably reference a well known middleware that isn't installed
625
+ * everywhere; wrap it with `requireRef` to make that same target
626
+ * mandatory instead, throwing at `VernLLM` construction time if it's
627
+ * missing. A cycle across `runsAfter`/`runsBefore` always throws,
628
+ * regardless of whether any individual entry is required.
566
629
  */
567
- runsAfter?: string[];
630
+ runsAfter?: (MiddlewareRef | RequiredMiddlewareRef)[];
568
631
  /**
569
- * Names of other middleware this entry must run before. See
570
- * `runsAfter`; an absent reference is dropped, not an error.
632
+ * Other middleware this entry must run before. See `runsAfter`; a
633
+ * bare reference is dropped if unresolved, a `requireRef`-wrapped one
634
+ * throws.
571
635
  */
572
- runsBefore?: string[];
636
+ runsBefore?: (MiddlewareRef | RequiredMiddlewareRef)[];
573
637
  /**
574
638
  * Pins this entry's slot in `wrap` nesting only, independent of
575
639
  * `priority`/`runsAfter`/`runsBefore`, which still govern
@@ -681,7 +745,7 @@ interface TrippingPolicy {
681
745
  */
682
746
  forget?(key: string): void;
683
747
  }
684
- declare class ConsecutiveTripping implements TrippingPolicy {
748
+ export declare class ConsecutiveTripping implements TrippingPolicy {
685
749
  private readonly threshold;
686
750
  private failuresByKey;
687
751
  constructor(threshold: number);
@@ -690,7 +754,7 @@ declare class ConsecutiveTripping implements TrippingPolicy {
690
754
  reset(key: string): void;
691
755
  forget(key: string): void;
692
756
  }
693
- declare class RollingTripping implements TrippingPolicy {
757
+ export declare class RollingTripping implements TrippingPolicy {
694
758
  private readonly windowMs;
695
759
  private readonly minCalls;
696
760
  private readonly failureRatio;
@@ -718,7 +782,7 @@ type CircuitState = 'closed' | 'open' | 'half-open';
718
782
  * across calls. Once the threshold is hit, short-circuits new calls with
719
783
  * LLMError('circuit_open') until the cooldown elapses and a trial succeeds.
720
784
  */
721
- declare class CircuitBreaker {
785
+ export declare class CircuitBreaker {
722
786
  private readonly cooldownMs;
723
787
  private readonly onStateChange?;
724
788
  /** Whether this breaker tracks failures per model instead of one shared circuit. */
@@ -801,7 +865,7 @@ interface RetryBudgetOptions {
801
865
  * the same primitive `RollingTripping` is built on, rather than a second
802
866
  * hand rolled window.
803
867
  */
804
- declare class RetryBudget {
868
+ export declare class RetryBudget {
805
869
  private readonly options;
806
870
  private readonly ratio;
807
871
  constructor(options: RetryBudgetOptions);
@@ -911,7 +975,7 @@ interface RateLimitAcquireResult {
911
975
  reason?: RateLimitReason;
912
976
  }
913
977
  /** Default `estimateTokens`: chars/4 over every message's content, plus the requested `max_tokens`. */
914
- declare function defaultEstimateTokens(request: WireRequest): number;
978
+ export declare function defaultEstimateTokens(request: WireRequest): number;
915
979
  /**
916
980
  * What VernLLM's dispatch layer needs from a limiter. `RateLimiter`
917
981
  * implements this; a caller wanting cross-process coordination can hand
@@ -933,7 +997,7 @@ interface RateLimiterAdapter {
933
997
  * stream of small ones. Any bucket omitted from `options` has infinite
934
998
  * capacity and never blocks.
935
999
  */
936
- declare class RateLimiter implements RateLimiterAdapter {
1000
+ export declare class RateLimiter implements RateLimiterAdapter {
937
1001
  private readonly requests?;
938
1002
  private readonly tokens?;
939
1003
  private readonly concurrency?;
@@ -1121,7 +1185,7 @@ type FallbackOn = (error: LLMError, context: {
1121
1185
  * The default `fallbackOn` policy. Exported so a caller can wrap rather
1122
1186
  * than replace it, e.g. `fallbackOn: (e, ctx) => myCheck(e) ? 'stop' : defaultFallbackOn(e, ctx)`.
1123
1187
  */
1124
- declare const defaultFallbackOn: FallbackOn;
1188
+ export declare const defaultFallbackOn: FallbackOn;
1125
1189
  /**
1126
1190
  * Thrown when the chain gives up, whether because the last target failed
1127
1191
  * or `fallbackOn` chose to stop early. Carries each attempt in order so
@@ -1131,7 +1195,7 @@ declare const defaultFallbackOn: FallbackOn;
1131
1195
  * so existing type-based handling, including reading `retryAfterMs` on an
1132
1196
  * `'api'`-typed error, keeps working on a fallback-exhausted error too.
1133
1197
  */
1134
- declare class FallbackExhaustedError extends LLMError {
1198
+ export declare class FallbackExhaustedError extends LLMError {
1135
1199
  readonly attempts: FallbackAttempt[];
1136
1200
  constructor(attempts: FallbackAttempt[]);
1137
1201
  /**
@@ -1143,7 +1207,7 @@ declare class FallbackExhaustedError extends LLMError {
1143
1207
  get retryable(): boolean;
1144
1208
  }
1145
1209
  /** Narrows `err` to {@link FallbackExhaustedError}, for direct access to its `attempts` (`provider`/`model` per failed target) without a manual `instanceof` check. */
1146
- declare function isFallbackExhaustedError(err: unknown): err is FallbackExhaustedError;
1210
+ export declare function isFallbackExhaustedError(err: unknown): err is FallbackExhaustedError;
1147
1211
  /**
1148
1212
  * Creates an empty ref box to pass as `CallParams['meta']`, so a caller can
1149
1213
  * read the `CallMeta` written by `call()` on the same line as the result
@@ -1154,7 +1218,7 @@ declare function isFallbackExhaustedError(err: unknown): err is FallbackExhauste
1154
1218
  * const result = await vern.call({ userContent: '...', meta });
1155
1219
  * meta.current?.provider;
1156
1220
  */
1157
- declare function metaRef(): {
1221
+ export declare function metaRef(): {
1158
1222
  current?: CallMeta;
1159
1223
  };
1160
1224
  //#endregion
@@ -1229,7 +1293,7 @@ interface ToolDefinition<Name extends string = string, Args = unknown> {
1229
1293
  * in `defineTool()` preserves the literal `name` type without requiring
1230
1294
  * `as const` at every call site.
1231
1295
  */
1232
- declare function defineTool<const Name extends string, Args = unknown>(tool: ToolDefinition<Name, Args>): ToolDefinition<Name, Args>;
1296
+ export declare function defineTool<const Name extends string, Args = unknown>(tool: ToolDefinition<Name, Args>): ToolDefinition<Name, Args>;
1233
1297
  /** Maps a single `ToolDefinition` to its matching `ToolCall` shape. */
1234
1298
  type ToolCallFor<T> = T extends ToolDefinition<infer N, infer A> ? {
1235
1299
  id: string;
@@ -1290,7 +1354,7 @@ type ResolvedTools<Tools, R> = [Tools] extends [never] ? ExtractTools<R> : Tools
1290
1354
  *
1291
1355
  * Pass `Tools` explicitly to override inference, e.g. `isToolCallResult<typeof tools>(result)`.
1292
1356
  */
1293
- declare function isToolCallResult<Tools extends readonly ToolDefinition[] | undefined = never, R = unknown>(result: R): result is R & ToolCallResult<NonNullable<ResolvedTools<Tools, R>>>;
1357
+ export declare function isToolCallResult<Tools extends readonly ToolDefinition[] | undefined = never, R = unknown>(result: R): result is R & ToolCallResult<NonNullable<ResolvedTools<Tools, R>>>;
1294
1358
  /** What the model should do about tools on a given call. */
1295
1359
  type ToolChoice = 'auto' | 'none' | 'required' | {
1296
1360
  name: string;
@@ -1701,6 +1765,13 @@ interface SoftFailureMeta {
1701
1765
  isFallback: boolean;
1702
1766
  /** 1-based, matching `CallMeta.attempts`. */
1703
1767
  attempt: number;
1768
+ /**
1769
+ * Token usage for this attempt, if the provider reported it on this
1770
+ * response. `undefined` when the provider omitted usage, not when
1771
+ * usage was zero, so a cost check should treat a missing value as
1772
+ * unknown rather than as free.
1773
+ */
1774
+ usage?: TokenUsage;
1704
1775
  }
1705
1776
  /**
1706
1777
  * Inspects an otherwise-successful result and optionally reclassifies it
@@ -1775,7 +1846,7 @@ type ExtractStreamValue<R> = Extract<R, StreamCallResult<unknown>> extends Strea
1775
1846
  * }
1776
1847
  * ```
1777
1848
  */
1778
- declare function isStreamResult<R = unknown>(result: R): result is R & StreamCallResult<ExtractStreamValue<R>>;
1849
+ export declare function isStreamResult<R = unknown>(result: R): result is R & StreamCallResult<ExtractStreamValue<R>>;
1779
1850
  /**
1780
1851
  * `StreamEnabledCallParams` with `jsonMode: false`. Selects the streaming
1781
1852
  * `call()` overload whose `finalResult` resolves to a plain `string`.
@@ -2075,7 +2146,7 @@ interface Logger {
2075
2146
  * Default logger. `debug` is gated by the `debug` option on VernLLM
2076
2147
  * warn/error always fire since they indicate real problems (retries, cache failures)
2077
2148
  */
2078
- declare class ConsoleLogger implements Logger {
2149
+ export declare class ConsoleLogger implements Logger {
2079
2150
  private debugEnabled;
2080
2151
  constructor(debugEnabled: boolean);
2081
2152
  debug(message: string): void;
@@ -2296,7 +2367,7 @@ type CreateMiddlewareOptions = Omit<VernLLMMiddleware, 'wrap'> & {
2296
2367
  * error afterward, so `onError` never changes what the call itself
2297
2368
  * returns or throws, only what gets observed about it.
2298
2369
  */
2299
- declare function createMiddleware(options: CreateMiddlewareOptions): VernLLMMiddleware;
2370
+ export declare function createMiddleware(options: CreateMiddlewareOptions): VernLLMMiddleware;
2300
2371
  //#endregion
2301
2372
  //#region src/vernLLM.d.ts
2302
2373
  /**
@@ -2307,7 +2378,7 @@ declare function createMiddleware(options: CreateMiddlewareOptions): VernLLMMidd
2307
2378
  * tracking, and an optional response cache. All configurable, all opt-in
2308
2379
  * beyond sensible defaults.
2309
2380
  */
2310
- declare class VernLLM {
2381
+ export declare class VernLLM {
2311
2382
  private readonly logger;
2312
2383
  /**
2313
2384
  * One `CallExecutor` per provider target: index 0 is the primary,
@@ -2518,7 +2589,7 @@ declare class VernLLM {
2518
2589
  * `T` isn't a parameter here; pin it via `llm.call<T>(params)` as usual.
2519
2590
  * `defineCachedCallParams` is the `cachedCall()` counterpart.
2520
2591
  */
2521
- declare function defineCallParams<P extends CallParams<unknown>>(params: P): P;
2592
+ export declare function defineCallParams<P extends CallParams<unknown>>(params: P): P;
2522
2593
  /**
2523
2594
  * The `cachedCall()` counterpart to `defineCallParams`: preserves the
2524
2595
  * whole `{ cacheKey, ttl, call }` object, `call.tools` included, in one
@@ -2533,7 +2604,7 @@ declare function defineCallParams<P extends CallParams<unknown>>(params: P): P;
2533
2604
  * const result = await llm.cachedCall(params);
2534
2605
  * ```
2535
2606
  */
2536
- declare function defineCachedCallParams<P extends CachedCallParams<unknown>>(params: P): P;
2607
+ export declare function defineCachedCallParams<P extends CachedCallParams<unknown>>(params: P): P;
2537
2608
  //#endregion
2538
2609
  //#region src/adapters/internal/sse.d.ts
2539
2610
  /**
@@ -2563,14 +2634,14 @@ declare function defineCachedCallParams<P extends CachedCallParams<unknown>>(par
2563
2634
  * Malformed JSON in a frame throws `LLMError('parse')`, consistent with
2564
2635
  * how malformed JSON is handled elsewhere in VernLLM.
2565
2636
  */
2566
- declare function parseSseStream(source: AsyncIterable<Uint8Array | string>): AsyncGenerator<unknown>;
2637
+ export declare function parseSseStream(source: AsyncIterable<Uint8Array | string>): AsyncGenerator<unknown>;
2567
2638
  /**
2568
2639
  * Sentinel yielded by `parseSseStream` for a comment-only frame (no
2569
2640
  * `data:` payload), the mechanism providers use for SSE keep-alive
2570
2641
  * pings. Exported so a consumer (e.g. `fromFetch`) can react to "still
2571
2642
  * alive" separately from a genuinely empty frame (`NO_DATA`, kept internal).
2572
2643
  */
2573
- declare const SSE_PING: unique symbol;
2644
+ export declare const SSE_PING: unique symbol;
2574
2645
  //#endregion
2575
2646
  //#region src/adapters/internal/imageFormat.d.ts
2576
2647
  /**
@@ -2817,7 +2888,7 @@ interface AnthropicAdapterOptions {
2817
2888
  * instead, which maps to a real constraint either way (native
2818
2889
  * `output_config.format` or a forced tool call).
2819
2890
  */
2820
- declare function fromAnthropic(anthropicClient: AnthropicClient, options?: AnthropicAdapterOptions): LLMClient;
2891
+ export declare function fromAnthropic(anthropicClient: AnthropicClient, options?: AnthropicAdapterOptions): LLMClient;
2821
2892
  //#endregion
2822
2893
  //#region src/adapters/gemini.d.ts
2823
2894
  /**
@@ -3029,7 +3100,7 @@ interface GeminiAdapterOptions {
3029
3100
  */
3030
3101
  thinkingLevelModels?: ModelCapabilityOverride;
3031
3102
  }
3032
- declare function fromGemini(client: GeminiClient, options?: GeminiAdapterOptions): LLMClient;
3103
+ export declare function fromGemini(client: GeminiClient, options?: GeminiAdapterOptions): LLMClient;
3033
3104
  //#endregion
3034
3105
  //#region src/adapters/bedrock.d.ts
3035
3106
  /** Bedrock Converse's supported inline image formats. */
@@ -3388,7 +3459,7 @@ interface AwsSendClient {
3388
3459
  * `finalizeResponse`'s `content` path exactly like the non-streaming
3389
3460
  * `create` branch above unwraps it.
3390
3461
  */
3391
- declare function fromBedrock(bedrockClient: BedrockConverseClient | AwsSendClient, options?: BedrockAdapterOptions): LLMClient;
3462
+ export declare function fromBedrock(bedrockClient: BedrockConverseClient | AwsSendClient, options?: BedrockAdapterOptions): LLMClient;
3392
3463
  //#endregion
3393
3464
  //#region src/adapters/fetch.d.ts
3394
3465
  /** The chat-completion-shaped request VernLLM builds internally */
@@ -3550,7 +3621,7 @@ interface FetchAdapterConfig {
3550
3621
  * `LLMError('validation')` instead of quietly using unrelated native
3551
3622
  * `fetch`.
3552
3623
  */
3553
- declare function fromFetch(config: FetchAdapterConfig): LLMClient;
3624
+ export declare function fromFetch(config: FetchAdapterConfig): LLMClient;
3554
3625
  //#endregion
3555
3626
  //#region src/adapters/openaiCompatible.d.ts
3556
3627
  /**
@@ -3617,7 +3688,7 @@ interface OpenAICompatibleAdapterOptions {
3617
3688
  */
3618
3689
  supportsWithResponse?: boolean;
3619
3690
  }
3620
- declare function fromOpenAICompatible(client: unknown, options?: OpenAICompatibleAdapterOptions): LLMClient;
3691
+ export declare function fromOpenAICompatible(client: unknown, options?: OpenAICompatibleAdapterOptions): LLMClient;
3621
3692
  /**
3622
3693
  * Named alias for the OpenAI SDK itself. A raw `new OpenAI(...)` instance
3623
3694
  * structurally matches most of `LLMClient`, but newer `openai` SDK major
@@ -3635,9 +3706,9 @@ declare function fromOpenAICompatible(client: unknown, options?: OpenAICompatibl
3635
3706
  * official `openai` package's client versus a fake or a test double.
3636
3707
  * Pass `supportsWithResponse: true` once you've confirmed it.
3637
3708
  */
3638
- declare const fromOpenAI: typeof fromOpenAICompatible;
3709
+ export declare const fromOpenAI: typeof fromOpenAICompatible;
3639
3710
  /** Groqs SDK matches the OpenAI wire format */
3640
- declare const fromGroq: typeof fromOpenAICompatible;
3711
+ export declare const fromGroq: typeof fromOpenAICompatible;
3641
3712
  /**
3642
3713
  * Mistrals `chat.completions`-shaped client (or their OpenAI-compat
3643
3714
  * endpoint). Mistral supports `stream_options.include_usage` (added after
@@ -3645,88 +3716,88 @@ declare const fromGroq: typeof fromOpenAICompatible;
3645
3716
  * Mistral's changelog and streaming docs), so this is a plain alias like
3646
3717
  * the others, `supportsStreamUsage` defaults to `true`.
3647
3718
  */
3648
- declare const fromMistral: typeof fromOpenAICompatible;
3719
+ export declare const fromMistral: typeof fromOpenAICompatible;
3649
3720
  /** DeepSeeks API is OpenAI-compatible */
3650
- declare const fromDeepSeek: typeof fromOpenAICompatible;
3721
+ export declare const fromDeepSeek: typeof fromOpenAICompatible;
3651
3722
  /** Cerebras inference API is OpenAI-compatible */
3652
- declare const fromCerebras: typeof fromOpenAICompatible;
3723
+ export declare const fromCerebras: typeof fromOpenAICompatible;
3653
3724
  /** Together AIs API is OpenAI-compatible */
3654
- declare const fromTogether: typeof fromOpenAICompatible;
3725
+ export declare const fromTogether: typeof fromOpenAICompatible;
3655
3726
  /** Fireworks AIs API is OpenAI-compatible */
3656
- declare const fromFireworks: typeof fromOpenAICompatible;
3727
+ export declare const fromFireworks: typeof fromOpenAICompatible;
3657
3728
  /**
3658
3729
  * Ollama exposes an OpenAI-compatible endpoint at `/v1/chat/completions`
3659
3730
  * (as opposed to its native `/api/chat` format, which differs). Point an
3660
3731
  * OpenAI SDK instances `baseURL` at your Ollama server and pass it here:
3661
3732
  * this does not talk to Ollamas native API directly.
3662
3733
  */
3663
- declare const fromOllama: typeof fromOpenAICompatible;
3734
+ export declare const fromOllama: typeof fromOpenAICompatible;
3664
3735
  /** OpenRouter's API is OpenAI-compatible */
3665
- declare const fromOpenRouter: typeof fromOpenAICompatible;
3736
+ export declare const fromOpenRouter: typeof fromOpenAICompatible;
3666
3737
  /** Perplexity's API is OpenAI-compatible */
3667
- declare const fromPerplexity: typeof fromOpenAICompatible;
3738
+ export declare const fromPerplexity: typeof fromOpenAICompatible;
3668
3739
  /** DeepInfra's API is OpenAI-compatible */
3669
- declare const fromDeepInfra: typeof fromOpenAICompatible;
3740
+ export declare const fromDeepInfra: typeof fromOpenAICompatible;
3670
3741
  /** Novita's API is OpenAI-compatible */
3671
- declare const fromNovita: typeof fromOpenAICompatible;
3742
+ export declare const fromNovita: typeof fromOpenAICompatible;
3672
3743
  /** Hyperbolic's API is OpenAI-compatible */
3673
- declare const fromHyperbolic: typeof fromOpenAICompatible;
3744
+ export declare const fromHyperbolic: typeof fromOpenAICompatible;
3674
3745
  /** Moonshot's (Kimi) API is OpenAI-compatible */
3675
- declare const fromMoonshot: typeof fromOpenAICompatible;
3746
+ export declare const fromMoonshot: typeof fromOpenAICompatible;
3676
3747
  /** Zhipu's (GLM) API is OpenAI-compatible */
3677
- declare const fromZhipu: typeof fromOpenAICompatible;
3748
+ export declare const fromZhipu: typeof fromOpenAICompatible;
3678
3749
  /**
3679
3750
  * LM Studio exposes an OpenAI-compatible endpoint at `/v1/chat/completions`.
3680
3751
  * Point an OpenAI SDK instance's `baseURL` at your local LM Studio server.
3681
3752
  */
3682
- declare const fromLMStudio: typeof fromOpenAICompatible;
3753
+ export declare const fromLMStudio: typeof fromOpenAICompatible;
3683
3754
  /**
3684
3755
  * vLLM's OpenAI-compatible server mode exposes `/v1/chat/completions`.
3685
3756
  * Point an OpenAI SDK instance's `baseURL` at your vLLM server.
3686
3757
  */
3687
- declare const fromVLLM: typeof fromOpenAICompatible;
3758
+ export declare const fromVLLM: typeof fromOpenAICompatible;
3688
3759
  /** xAI's Grok API is OpenAI-compatible */
3689
- declare const fromXAI: typeof fromOpenAICompatible;
3760
+ export declare const fromXAI: typeof fromOpenAICompatible;
3690
3761
  /** NVIDIA NIM's hosted and self-hosted endpoints are OpenAI-compatible */
3691
- declare const fromNvidiaNIM: typeof fromOpenAICompatible;
3762
+ export declare const fromNvidiaNIM: typeof fromOpenAICompatible;
3692
3763
  /** Vercel AI Gateway is OpenAI-compatible */
3693
- declare const fromVercelAIGateway: typeof fromOpenAICompatible;
3764
+ export declare const fromVercelAIGateway: typeof fromOpenAICompatible;
3694
3765
  /** Cloudflare Workers AI exposes an OpenAI-compatible endpoint */
3695
- declare const fromCloudflareWorkersAI: typeof fromOpenAICompatible;
3766
+ export declare const fromCloudflareWorkersAI: typeof fromOpenAICompatible;
3696
3767
  /** Nebius AI Studio is OpenAI-compatible */
3697
- declare const fromNebius: typeof fromOpenAICompatible;
3768
+ export declare const fromNebius: typeof fromOpenAICompatible;
3698
3769
  /** SambaNova Cloud's API is OpenAI-compatible */
3699
- declare const fromSambaNova: typeof fromOpenAICompatible;
3770
+ export declare const fromSambaNova: typeof fromOpenAICompatible;
3700
3771
  /** Baseten's model hosting exposes an OpenAI-compatible endpoint */
3701
- declare const fromBaseten: typeof fromOpenAICompatible;
3772
+ export declare const fromBaseten: typeof fromOpenAICompatible;
3702
3773
  /** Featherless AI's API is OpenAI-compatible */
3703
- declare const fromFeatherless: typeof fromOpenAICompatible;
3774
+ export declare const fromFeatherless: typeof fromOpenAICompatible;
3704
3775
  /** Friendli AI's serving endpoint is OpenAI-compatible */
3705
- declare const fromFriendli: typeof fromOpenAICompatible;
3776
+ export declare const fromFriendli: typeof fromOpenAICompatible;
3706
3777
  /** SiliconFlow's API is OpenAI-compatible */
3707
- declare const fromSiliconFlow: typeof fromOpenAICompatible;
3778
+ export declare const fromSiliconFlow: typeof fromOpenAICompatible;
3708
3779
  /** Parasail's inference API is OpenAI-compatible */
3709
- declare const fromParasail: typeof fromOpenAICompatible;
3780
+ export declare const fromParasail: typeof fromOpenAICompatible;
3710
3781
  /** StepFun's API is OpenAI-compatible */
3711
- declare const fromStepFun: typeof fromOpenAICompatible;
3782
+ export declare const fromStepFun: typeof fromOpenAICompatible;
3712
3783
  /** MiniMax's API is OpenAI-compatible */
3713
- declare const fromMiniMax: typeof fromOpenAICompatible;
3784
+ export declare const fromMiniMax: typeof fromOpenAICompatible;
3714
3785
  /** Lambda Labs' Inference API is OpenAI-compatible */
3715
- declare const fromLambdaLabs: typeof fromOpenAICompatible;
3786
+ export declare const fromLambdaLabs: typeof fromOpenAICompatible;
3716
3787
  /** Snowflake Cortex's LLM endpoint is OpenAI-compatible */
3717
- declare const fromSnowflakeCortex: typeof fromOpenAICompatible;
3788
+ export declare const fromSnowflakeCortex: typeof fromOpenAICompatible;
3718
3789
  /** Anyscale Endpoints' API is OpenAI-compatible */
3719
- declare const fromAnyscale: typeof fromOpenAICompatible;
3790
+ export declare const fromAnyscale: typeof fromOpenAICompatible;
3720
3791
  /** Lepton AI's inference API is OpenAI-compatible */
3721
- declare const fromLepton: typeof fromOpenAICompatible;
3792
+ export declare const fromLepton: typeof fromOpenAICompatible;
3722
3793
  /** Inference.net's API is OpenAI-compatible */
3723
- declare const fromInferenceNet: typeof fromOpenAICompatible;
3794
+ export declare const fromInferenceNet: typeof fromOpenAICompatible;
3724
3795
  /** Infermatic's API is OpenAI-compatible */
3725
- declare const fromInfermatic: typeof fromOpenAICompatible;
3796
+ export declare const fromInfermatic: typeof fromOpenAICompatible;
3726
3797
  /** AtlasCloud's inference API is OpenAI-compatible */
3727
- declare const fromAtlasCloud: typeof fromOpenAICompatible;
3798
+ export declare const fromAtlasCloud: typeof fromOpenAICompatible;
3728
3799
  /** 01.AI's (Yi models) API is OpenAI-compatible */
3729
- declare const from01AI: typeof fromOpenAICompatible;
3800
+ export declare const from01AI: typeof fromOpenAICompatible;
3730
3801
  //#endregion
3731
- export { type AnthropicClient, type AssistantContent, type AttemptContext, type BedrockConverseClient, type CacheAdapter, type CachedCallParams, type CachedConditionalToolCallParams, type CachedJsonModeDisabledCallParams, type CachedJsonModeEnabledCallParams, type CachedStreamCallParams, type CachedStreamConditionalToolCallParams, type CachedStreamJsonModeDisabledCallParams, type CachedStreamJsonModeEnabledCallParams, type CachedStreamToolCallParams, type CachedToolCallParams, type CallMeta, type CallParams, type CallResult, type CallWithToolsResult, CircuitBreaker, type CircuitBreakerOptions, type CircuitState, type CircuitTarget, type ConditionalToolCallParams, ConsecutiveTripping, ConsoleLogger, type ContentBlock, type ContentResult, type ConversationTurn, type CooldownBackoff, type CreateMiddlewareOptions, type DuplicateToolNamesIssue, type EvictionOption, type ExponentialBackoffOptions, type FallbackAttempt, FallbackExhaustedError, type FallbackOn, type FallbackTarget, type FetchAdapterConfig, type GeminiClient, type HistoryToolResultIssue, type ImageBlock, InMemoryCacheAdapter, type JsonModeDisabledCallParams, type JsonModeEnabledCallParams, type JsonSchemaSpec, type JsonValue, type LLMClient, LLMError, type LLMErrorCode, type LLMErrorIssuesByCode, type LLMErrorSnapshot, type LLMErrorType, type LLMRequestShape, type LLMRequestSnapshot, type Logger, type MiddlewareCapabilities, type MiddlewareContext, type MiddlewareContextBase, type MiddlewareStateBag, type MiddlewareStateKey, NormalizedCacheAdapter, type OnEvent, type OnUsage, type PreDispatchContext, type RateLimitAcquireResult, type RateLimitOptions, type RateLimitReason, type RateLimitState, RateLimiter, type RateLimiterAdapter, type RefundUsage, type ReserveUsage, type RetryAttempt, RetryBudget, type RetryBudgetOptions, RollingTripping, SSE_PING, type SchemaLike, type StreamCallResult, type StreamChunk, type StreamEnabledCallParams, type StreamJsonModeDisabledCallParams, type StreamJsonModeEnabledCallParams, type TargetCircuitState, type TextBlock, TieredCacheAdapter, type TokenUsage, type ToolCall, type ToolCallResult, type ToolChoice, type ToolDefinition, type ToolEnabledCallParams, type ToolIssue, type ToolResult, type ToolsDisabledCallParams, type TrippingPolicy, type UnknownToolChoiceIssue, type UnsupportedCapabilityIssue, VernLLM, type VernLLMEvent, type VernLLMMiddleware, type VernLLMOptions, type WireCallRequest, type WireCallRequestPatch, type WireMessage, type WireRequest, type WireResponseFormat, type WireStreamChunk, type WireTool, type WireToolCall, type WireToolChoice, createMiddleware, createMiddlewareStateBag, createStateKey, defaultEstimateTokens, defaultFallbackOn, defineCachedCallParams, defineCallParams, defineTool, from01AI, fromAnthropic, fromAnyscale, fromAtlasCloud, fromBaseten, fromBedrock, fromCerebras, fromCloudflareWorkersAI, fromDeepInfra, fromDeepSeek, fromFeatherless, fromFetch, fromFireworks, fromFriendli, fromGemini, fromGroq, fromHyperbolic, fromInferenceNet, fromInfermatic, fromLMStudio, fromLambdaLabs, fromLepton, fromMiniMax, fromMistral, fromMoonshot, fromNebius, fromNovita, fromNvidiaNIM, fromOllama, fromOpenAI, fromOpenAICompatible, fromOpenRouter, fromParasail, fromPerplexity, fromSambaNova, fromSiliconFlow, fromSnowflakeCortex, fromStepFun, fromTogether, fromVLLM, fromVercelAIGateway, fromXAI, fromZhipu, hasIssues, isFallbackExhaustedError, isLLMError, isStreamResult, isToolCallResult, metaRef, parseSseStream };
3802
+ export type { AnthropicClient, AssistantContent, AttemptContext, BedrockConverseClient, CacheAdapter, CachedCallParams, CachedConditionalToolCallParams, CachedJsonModeDisabledCallParams, CachedJsonModeEnabledCallParams, CachedStreamCallParams, CachedStreamConditionalToolCallParams, CachedStreamJsonModeDisabledCallParams, CachedStreamJsonModeEnabledCallParams, CachedStreamToolCallParams, CachedToolCallParams, CallMeta, CallParams, CallResult, CallWithToolsResult, CircuitBreakerOptions, CircuitState, CircuitTarget, ConditionalToolCallParams, ContentBlock, ContentResult, ConversationTurn, CooldownBackoff, CreateMiddlewareOptions, DuplicateToolNamesIssue, EvictionOption, ExponentialBackoffOptions, FallbackAttempt, FallbackOn, FallbackTarget, FetchAdapterConfig, GeminiClient, HistoryToolResultIssue, ImageBlock, JsonModeDisabledCallParams, JsonModeEnabledCallParams, JsonSchemaSpec, JsonValue, LLMClient, LLMErrorCode, LLMErrorIssuesByCode, LLMErrorSnapshot, LLMErrorType, LLMRequestShape, LLMRequestSnapshot, Logger, MiddlewareCapabilities, MiddlewareContext, MiddlewareContextBase, MiddlewareRef, MiddlewareStateBag, MiddlewareStateKey, OnEvent, OnUsage, PreDispatchContext, RateLimitAcquireResult, RateLimitOptions, RateLimitReason, RateLimitState, RateLimiterAdapter, RefundUsage, RequiredMiddlewareRef, ReserveUsage, RetryAttempt, RetryBudgetOptions, SchemaLike, StreamCallResult, StreamChunk, StreamEnabledCallParams, StreamJsonModeDisabledCallParams, StreamJsonModeEnabledCallParams, TargetCircuitState, TextBlock, TokenUsage, ToolCall, ToolCallResult, ToolChoice, ToolDefinition, ToolEnabledCallParams, ToolIssue, ToolResult, ToolsDisabledCallParams, TrippingPolicy, UnknownToolChoiceIssue, UnsupportedCapabilityIssue, VernLLMEvent, VernLLMMiddleware, VernLLMOptions, WireCallRequest, WireCallRequestPatch, WireMessage, WireRequest, WireResponseFormat, WireStreamChunk, WireTool, WireToolCall, WireToolChoice };
3732
3803
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/errors.ts","../src/types/cache.ts","../src/types/events.ts","../src/types/middleware.ts","../src/circuitBreaker.ts","../src/internal/retryBudget.ts","../src/internal/utils/rateLimitHint.utils.ts","../src/rateLimit.ts","../src/internal/utils/rateLimitAdapter.utils.ts","../src/types/fallback.ts","../src/types/schema.ts","../src/types/tools.ts","../src/types/usage.ts","../src/types/call.ts","../src/types/stream.ts","../src/types/client.ts","../src/internal/utils/cacheAdapter.utils.ts","../src/logger.ts","../src/types/options.ts","../src/types/createMiddleware.ts","../src/vernLLM.ts","../src/paramsHelpers.ts","../src/adapters/internal/sse.ts","../src/adapters/internal/imageFormat.ts","../src/adapters/internal/nativeStructuredOutput.ts","../src/adapters/internal/reasoningBudget.utils.ts","../src/adapters/anthropic.ts","../src/adapters/gemini.ts","../src/adapters/bedrock.ts","../src/adapters/fetch.ts","../src/adapters/openaiCompatible.ts"],"mappings":";KAAY;;;;;;;;KAqBA;;UAiPK;EACf;EACA;EACA,MAAM;EACN;;;;;;UAOe;EACf;;;;;;UAOe;EACf;EACA;;;;;;;UAQe;EACf;EACA;;;;;;UAOe;EACf;;;;;;;;;;;;;;;;;;;UAoBe;EACf,cAAc;EACd,wBAAwB;EACxB,sBAAsB;EACtB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,sBAAsB;EACtB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;UAwBT;EACf;EACA,MAAM;EACN;EACA;EACA;EACA,OAAO;;EAEP;;EAEA,WAAW;;;;;;;;UASI;;EAEf;;EAEA;;EAEA;;EAEA,UAAU;;EAEV;;;;;;;;UAuCe;EACf;EACA,OAAO;;EAEP,UAAU;;;UAIK;EACf;EACA;EACA;EACA;;EAEA,OAAO;;EAEP,WAAW;;cAGA,iBAAiB;EAYnB,MAAM;EAXR;EACA;EACA;EAC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,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyI7C,UAAU,QAAQ,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UC9GtC;;;;;;;;;;EAUf;;;;;;;;;EASA,wBAAwB,QAAQ;;;;;;EAMhC;;iBAGc,qBACd,iBACA,UAAS,iCACR;;;;;;;;;;;;;;;;;;cAoHU,mBAAU;;cAGV,iBAAQ;;;;;;;;cASR,oBAAW;;cAGX,qBAAY;;cAGZ,qBAAY;;cAGZ,qBAAY;;cAGZ,sBAAa;;;;;;;cAQb,mBAAU;;cAGV,uBAAc;;cAGd,uBAAc;;cAGd,sBAAa;;cAGb,mBAAU;;cAGV,uBAAc;;cAGd,qBAAY;;cAGZ,kBAAS;;;;;cAMT,qBAAY;;;;;cAMZ,iBAAQ;;cAGR,gBAAO;;cAGP,sBAAa;;cAGb,4BAAmB;;cAGnB,gCAAuB;;cAGvB,mBAAU;;cAGV,sBAAa;;cAGb,oBAAW;;cAGX,wBAAe;;cAGf,qBAAY;;cAGZ,wBAAe;;cAGf,qBAAY;;cAGZ,oBAAW;;cAGX,oBAAW;;cAGX,uBAAc;;cAGd,4BAAmB;;cAGnB,qBAAY;;cAGZ,mBAAU;;cAGV,yBAAgB;;cAGhB,uBAAc;;cAGd,uBAAc;;cAGd,iBAAQ"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/errors.ts","../src/types/cache.ts","../src/types/events.ts","../src/types/middleware.ts","../src/circuitBreaker.ts","../src/internal/retryBudget.ts","../src/internal/utils/rateLimitHint.utils.ts","../src/rateLimit.ts","../src/internal/utils/rateLimitAdapter.utils.ts","../src/types/fallback.ts","../src/types/schema.ts","../src/types/tools.ts","../src/types/usage.ts","../src/types/call.ts","../src/types/stream.ts","../src/types/client.ts","../src/internal/utils/cacheAdapter.utils.ts","../src/logger.ts","../src/types/options.ts","../src/types/createMiddleware.ts","../src/vernLLM.ts","../src/paramsHelpers.ts","../src/adapters/internal/sse.ts","../src/adapters/internal/imageFormat.ts","../src/adapters/internal/nativeStructuredOutput.ts","../src/adapters/internal/reasoningBudget.utils.ts","../src/adapters/anthropic.ts","../src/adapters/gemini.ts","../src/adapters/bedrock.ts","../src/adapters/fetch.ts","../src/adapters/openaiCompatible.ts"],"mappings":";KAAY;;;;;;;;KAqBA;;UAiPK;EACf;EACA;EACA,MAAM;EACN;;;;;;UAOe;EACf;;;;;;UAOe;EACf;EACA;;;;;;;UAQe;EACf;EACA;;;;;;UAOe;EACf;;;;;;;;;;;;;;;;;;;UAoBe;EACf,cAAc;EACd,wBAAwB;EACxB,sBAAsB;EACtB,qBAAqB;EACrB,2BAA2B;EAC3B,yBAAyB;EACzB,sBAAsB;EACtB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;UAwBT;EACf;EACA,MAAM;EACN;EACA;EACA;EACA,OAAO;;EAEP;;EAEA,WAAW;;;;;;;;UASI;;EAEf;;EAEA;;EAEA;;EAEA,UAAU;;EAEV;;;;;;;;UAuCe;EACf;EACA,OAAO;;EAEP,UAAU;;;UAIK;EACf;EACA;EACA;EACA;;EAEA,OAAO;;EAEP,WAAW;;qBAGA,iBAAiB;EAYnB,MAAM;EAXR;EACA;EACA;EACA;;EAEA,OAAO;;EAEP,WAAW;EAGhB,YAAA,iBACO,MAAM,cACb,UAAS;;;;;;;;;;;MAsBP;;;;;;;;MAWA;;;;;;;;;;;EAcJ,cAAc;;;;;;;;;;;;;;EA0Bd,UAAU;;wBAeI,WAAW,eAAe,OAAO;;;;;;;;;;;;;wBAgBjC,UAAU,gBAAgB,sBACxC,KAAK,UACL,MAAM,IACL,OAAO;EAAa,MAAM;EAAG,QAAQ,qBAAqB;;;;UChjB5C,aAAa;EAC5B,IAAI,cAAc;IAAU;IAAc,OAAO;;EACjD,IAAI,aAAa,OAAO,GAAG,cAAc;EACzC,QAAQ,cAAc;EACtB,YAAY,cAAc;;;;;;;KAQhB;;;;;qBAuCC,qBAAqB,wB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