@wrongstack/webui 0.24.0 → 0.32.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.
@@ -19,7 +19,7 @@ import {
19
19
  CollaborationBus,
20
20
  collabPauseMiddleware,
21
21
  collabInjectMiddleware,
22
- estimateRequestTokens,
22
+ estimateRequestTokensCalibrated,
23
23
  EventBus,
24
24
  HybridCompactor as HybridCompactor2,
25
25
  ProviderRegistry,
@@ -1436,7 +1436,7 @@ async function startWebUI(opts = {}) {
1436
1436
  autoCompactor = new AutoCompactionMiddleware(
1437
1437
  compactor,
1438
1438
  effectiveMaxContext,
1439
- (ctx) => estimateRequestTokens(ctx.messages, ctx.systemPrompt, ctx.tools ?? []).total,
1439
+ (ctx) => estimateRequestTokensCalibrated(ctx.messages, ctx.systemPrompt, ctx.tools ?? []).total,
1440
1440
  {
1441
1441
  warn: initialContextPolicy.thresholds.warn,
1442
1442
  soft: initialContextPolicy.thresholds.soft,