@adaptic/utils 0.0.1026 → 0.0.1028

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.cjs CHANGED
@@ -63277,58 +63277,59 @@ function routeSupports(route, needs) {
63277
63277
  var defaults$1 = {
63278
63278
  _readme: "Applied to any provider whose published ceiling is unknown. Chosen to be comfortably below the slowest plausible published limit: being slower than necessary costs latency, while being faster than permitted costs 429s that the fallback chain will read as provider ill-health and use to open a circuit breaker. The asymmetry is what makes the conservative side the correct default.",
63279
63279
  basis: "conservative-default",
63280
- requests_per_minute: 60,
63281
- max_concurrent: 4,
63282
- acquire_timeout_ms: 15000
63280
+ requests_per_minute: 120,
63281
+ max_concurrent: 12,
63282
+ acquire_timeout_ms: 15000,
63283
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63283
63284
  };
63284
63285
  var providers$1 = {
63285
63286
  anthropic: {
63286
63287
  basis: "conservative-default",
63287
- requests_per_minute: 50,
63288
- max_concurrent: 4,
63288
+ requests_per_minute: 120,
63289
+ max_concurrent: 12,
63289
63290
  acquire_timeout_ms: 15000,
63290
63291
  source: null,
63291
- note: "Anthropic publishes tier-dependent limits; the account's tier is not recorded here. Transcribe the real ceiling from the console at W3-07 and set basis to published."
63292
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63292
63293
  },
63293
63294
  openai: {
63294
63295
  basis: "conservative-default",
63295
- requests_per_minute: 60,
63296
- max_concurrent: 4,
63296
+ requests_per_minute: 120,
63297
+ max_concurrent: 12,
63297
63298
  acquire_timeout_ms: 15000,
63298
63299
  source: null,
63299
- note: "Tier-dependent. No alias routes here today; the entry exists so a revert to an OpenAI incumbent inherits a bounded client rather than an unbounded one."
63300
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63300
63301
  },
63301
63302
  deepseek: {
63302
63303
  basis: "conservative-default",
63303
- requests_per_minute: 60,
63304
- max_concurrent: 4,
63304
+ requests_per_minute: 120,
63305
+ max_concurrent: 12,
63305
63306
  acquire_timeout_ms: 30000,
63306
63307
  source: null,
63307
- note: "Serves llm.extract, a batch-class alias, so a longer acquire timeout is appropriate: a batch caller can afford to queue where a hot-path caller cannot."
63308
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63308
63309
  },
63309
63310
  deepinfra: {
63310
63311
  basis: "conservative-default",
63311
- requests_per_minute: 60,
63312
- max_concurrent: 4,
63312
+ requests_per_minute: 240,
63313
+ max_concurrent: 24,
63313
63314
  acquire_timeout_ms: 15000,
63314
63315
  source: null,
63315
- note: "Awaiting W3-02. Transcribe the published ceiling then."
63316
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63316
63317
  },
63317
63318
  fireworks: {
63318
63319
  basis: "conservative-default",
63319
- requests_per_minute: 60,
63320
- max_concurrent: 4,
63320
+ requests_per_minute: 120,
63321
+ max_concurrent: 12,
63321
63322
  acquire_timeout_ms: 15000,
63322
63323
  source: null,
63323
- note: "The backlog calls out recording Fireworks' published RPM ceiling specifically (W3-03 -> W4-04). Do that at onboarding."
63324
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63324
63325
  },
63325
63326
  zai: {
63326
63327
  basis: "conservative-default",
63327
- requests_per_minute: 60,
63328
- max_concurrent: 4,
63328
+ requests_per_minute: 120,
63329
+ max_concurrent: 12,
63329
63330
  acquire_timeout_ms: 15000,
63330
63331
  source: null,
63331
- note: "Awaiting W3-04."
63332
+ note: "Raised 2026-09-15 after the 4-concurrent ceiling was measured starving the live equity decision path: the alias chain reported 'exhausted its fallback chain' with every leg skipped by this guard (deepinfra primary+secondary and the anthropic incumbent), 173 of 473 signal-coordination calls failed (36.6%), and decisions were lost outright. Corroborating evidence at the time: ZERO 429s observed on any provider, the engine's own global fan-out gate permits 100 concurrent with 17 active, and 877 signal-analysis calls had been admitted to that gate. Concurrency and RPM are raised TOGETHER because they bind in series - lifting max_concurrent alone would only move the bottleneck to the token bucket. STILL conservative-default, NOT published: no provider console was read for these numbers, so they remain a deliberate under-estimate of an unknown ceiling. Transcribe the real tier limits (W3-07) and set basis to published."
63332
63333
  },
63333
63334
  groq: {
63334
63335
  basis: "conservative-default",
@@ -67431,6 +67432,15 @@ const DEFAULT_LOAD_TIMEOUT_MS = 30_000;
67431
67432
  */
67432
67433
  class StampedeProtectedCache {
67433
67434
  cache;
67435
+ /**
67436
+ * Options with every defaultable field resolved.
67437
+ *
67438
+ * `onEvent` is deliberately excluded from the `Required` half: it is an
67439
+ * observability hook with no meaningful default, so its absence is a real
67440
+ * state rather than a gap to fill. Declaring it required would force a
67441
+ * no-op stand-in and erase the difference between "no observer attached"
67442
+ * and "an observer that does nothing".
67443
+ */
67434
67444
  options;
67435
67445
  pendingRefreshes = new Map();
67436
67446
  stats = {