micro-models-agent 0.28.4 → 0.28.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.
Files changed (2) hide show
  1. package/dist/main.js +12 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -27380,8 +27380,13 @@ ${t("image.clipboard_empty")}`));
27380
27380
  console.log();
27381
27381
  }
27382
27382
  }
27383
+ lastCompactionShown = 0;
27383
27384
  showContextBar(result) {
27384
- if (result.contextUsed !== undefined && result.contextLimit !== undefined && result.contextLimit > 0) {
27385
+ if (result.contextUsed === undefined || result.contextLimit === undefined || result.contextLimit <= 0) {
27386
+ return;
27387
+ }
27388
+ const ui = this.config.ui;
27389
+ if (ui?.showContextStats) {
27385
27390
  console.log();
27386
27391
  const ctxLine = formatContextBar(result.contextUsed, result.contextLimit, result.compactionCount, result.contextQuality);
27387
27392
  console.log(ctxLine);
@@ -27389,6 +27394,12 @@ ${t("image.clipboard_empty")}`));
27389
27394
  const apiLine = pc2.dim(` API: ${result.promptTokens} prompt + ${result.completionTokens} completion = ${result.totalTokens} total`);
27390
27395
  console.log(apiLine);
27391
27396
  }
27397
+ } else if (ui?.showCompaction && result.compactionCount !== undefined) {
27398
+ if (result.compactionCount > this.lastCompactionShown) {
27399
+ this.lastCompactionShown = result.compactionCount;
27400
+ console.log(pc2.dim(`
27401
+ ⟳ Context compacted (${result.compactionCount})`));
27402
+ }
27392
27403
  }
27393
27404
  }
27394
27405
  start() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.28.4",
3
+ "version": "0.28.5",
4
4
  "description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
5
5
  "type": "module",
6
6
  "bin": {