acp-kernel 0.0.59-pr.219.73 → 0.0.59-pr.222.74

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
@@ -2931,14 +2931,16 @@ function tierLabel(block) {
2931
2931
  }
2932
2932
  function tierBreakdown(blocks, countTokens) {
2933
2933
  const tierTokens = {};
2934
+ const tierCounts = {};
2934
2935
  for (const block of blocks) {
2935
2936
  tierTokens[block.tier] = (tierTokens[block.tier] ?? 0) + summaryTokensOf(block, countTokens);
2937
+ tierCounts[block.tier] = (tierCounts[block.tier] ?? 0) + 1;
2936
2938
  }
2937
2939
  const tiers = Object.keys(tierTokens).map(Number);
2938
2940
  if (tiers.length <= 1) return null;
2939
2941
  const parts = [];
2940
2942
  for (const tier of [1, 2, 3]) {
2941
- if (tierTokens[tier]) parts.push(`T${tier}: ${formatTokens2(tierTokens[tier])}`);
2943
+ if (tierTokens[tier]) parts.push(`T${tier}: ${formatTokens2(tierTokens[tier])} (${tierCounts[tier]} blocks)`);
2942
2944
  }
2943
2945
  return parts.join(" | ");
2944
2946
  }
@@ -3032,6 +3034,11 @@ function renderOverview(visible, summaryTokens, blocks, state, countTokens, limi
3032
3034
  ` ${block.blockId} (${tierLabel(block)}) ${formatTokens2(eff)}\u2192${formatTokens2(summaryTokensOf(block, countTokens))} ${block.effectiveMessageIds.length} msgs "${topic}"`
3033
3035
  );
3034
3036
  }
3037
+ if (blocks.length > limit) {
3038
+ lines.push(
3039
+ ` ... and ${blocks.length - limit} more blocks not shown (scope:"compressed", limit:${blocks.length} for full list)`
3040
+ );
3041
+ }
3035
3042
  }
3036
3043
  lines.push("");
3037
3044
  lines.push(