@raquezha/noheadroom 0.2.4 → 0.2.5

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
@@ -226,6 +226,8 @@ async function handleContextCompression(runtime, event, ctx) {
226
226
  // until the actual compressible candidate material changes.
227
227
  runtime.state.lastInputFingerprint = inputFingerprint;
228
228
  runtime.state.lastGuardSkipCandidateFingerprint = candidateFingerprint;
229
+ // ponytail: clear stats.last so renderFooterStatus shows idle instead of stale savings
230
+ runtime.state.stats.last = undefined;
229
231
  runtime.refreshStatus(ctx);
230
232
  return undefined;
231
233
  }
@@ -488,7 +490,7 @@ function renderFooterStatus(ctx, config, state) {
488
490
  if (!state.stats.last)
489
491
  return paint("success", "✓") + paint("dim", " Headroom");
490
492
  const pct = Math.round((1 - state.stats.last.compressionRatio) * 100);
491
- return (paint("success", "✓") + paint("dim", ` Headroom -${pct}% (${state.stats.last.tokensSaved.toLocaleString()} sve)`));
493
+ return (paint("success", "✓") + paint("dim", ` Headroom -${pct}% (${state.stats.last.tokensSaved.toLocaleString()} saved)`));
492
494
  }
493
495
  async function showProxyStats(ctx, client, config) {
494
496
  if (isRemoteBlocked(config)) {
@@ -291,6 +291,8 @@ async function handleContextCompression(
291
291
  // until the actual compressible candidate material changes.
292
292
  runtime.state.lastInputFingerprint = inputFingerprint;
293
293
  runtime.state.lastGuardSkipCandidateFingerprint = candidateFingerprint;
294
+ // ponytail: clear stats.last so renderFooterStatus shows idle instead of stale savings
295
+ runtime.state.stats.last = undefined;
294
296
  runtime.refreshStatus(ctx);
295
297
  return undefined;
296
298
  }
@@ -582,7 +584,7 @@ function renderFooterStatus(ctx: ExtensionContext, config: HeadroomConfig, state
582
584
 
583
585
  const pct = Math.round((1 - state.stats.last.compressionRatio) * 100);
584
586
  return (
585
- paint("success", "✓") + paint("dim", ` Headroom -${pct}% (${state.stats.last.tokensSaved.toLocaleString()} sve)`)
587
+ paint("success", "✓") + paint("dim", ` Headroom -${pct}% (${state.stats.last.tokensSaved.toLocaleString()} saved)`)
586
588
  );
587
589
  }
588
590
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raquezha/noheadroom",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Personal Headroom compression bridge for Pi with Docker-first defaults and Pi tool-name adaptation",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",