blun-king-cli 9.1.2 → 9.1.3
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/blun.mjs +4 -3
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -499443,8 +499443,9 @@ var FooterComponent = class {
|
|
|
499443
499443
|
const leftLine = left.join(" ");
|
|
499444
499444
|
const leftWidth = visibleWidth(leftLine);
|
|
499445
499445
|
const context = contextMetrics(state);
|
|
499446
|
-
const
|
|
499447
|
-
const
|
|
499446
|
+
const isCompacting = this.compactionAttemptStartedAtMs !== null;
|
|
499447
|
+
const contextText = isCompacting ? formatCompactionStatus(Math.max(0, Date.now() - this.compactionAttemptStartedAtMs), this.compactionEstimatedInputTokens, colors, width) : formatContextStatus(context.usage, context.tokens, context.maxTokens, colors, width);
|
|
499448
|
+
const right = this.transientHint && !isCompacting ? chalk.hex(colors.warning).bold(this.transientHint) : chalk.hex(colors.text)(contextText);
|
|
499448
499449
|
const rightWidth = visibleWidth(right);
|
|
499449
499450
|
let line1;
|
|
499450
499451
|
if (leftWidth + 2 + rightWidth <= width) {
|
|
@@ -499456,7 +499457,7 @@ var FooterComponent = class {
|
|
|
499456
499457
|
line1 = shownLeft + " ".repeat(pad) + right;
|
|
499457
499458
|
}
|
|
499458
499459
|
const quotaLines = state.managedQuotaWindows === void 0 ? [] : formatManagedQuotaFooterLines(state.managedQuotaWindows, colors, width);
|
|
499459
|
-
const compactionLines =
|
|
499460
|
+
const compactionLines = [];
|
|
499460
499461
|
return [
|
|
499461
499462
|
truncateToWidth(line1, width),
|
|
499462
499463
|
...compactionLines,
|