blun-king-cli 9.1.2 → 9.1.4
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 +8 -3
- package/package.json +1 -1
package/blun.mjs
CHANGED
|
@@ -14106,6 +14106,10 @@ var init_toolkit = __esmMin((() => {
|
|
|
14106
14106
|
limits: result.parsed.limits
|
|
14107
14107
|
};
|
|
14108
14108
|
} catch (error) {
|
|
14109
|
+
if (error instanceof OAuthUnauthorizedError) return {
|
|
14110
|
+
kind: "error",
|
|
14111
|
+
code: "unauthenticated"
|
|
14112
|
+
};
|
|
14109
14113
|
return {
|
|
14110
14114
|
kind: "error",
|
|
14111
14115
|
message: error instanceof Error ? error.message : String(error)
|
|
@@ -499443,8 +499447,9 @@ var FooterComponent = class {
|
|
|
499443
499447
|
const leftLine = left.join(" ");
|
|
499444
499448
|
const leftWidth = visibleWidth(leftLine);
|
|
499445
499449
|
const context = contextMetrics(state);
|
|
499446
|
-
const
|
|
499447
|
-
const
|
|
499450
|
+
const isCompacting = this.compactionAttemptStartedAtMs !== null;
|
|
499451
|
+
const contextText = isCompacting ? formatCompactionStatus(Math.max(0, Date.now() - this.compactionAttemptStartedAtMs), this.compactionEstimatedInputTokens, colors, width) : formatContextStatus(context.usage, context.tokens, context.maxTokens, colors, width);
|
|
499452
|
+
const right = this.transientHint && !isCompacting ? chalk.hex(colors.warning).bold(this.transientHint) : chalk.hex(colors.text)(contextText);
|
|
499448
499453
|
const rightWidth = visibleWidth(right);
|
|
499449
499454
|
let line1;
|
|
499450
499455
|
if (leftWidth + 2 + rightWidth <= width) {
|
|
@@ -499456,7 +499461,7 @@ var FooterComponent = class {
|
|
|
499456
499461
|
line1 = shownLeft + " ".repeat(pad) + right;
|
|
499457
499462
|
}
|
|
499458
499463
|
const quotaLines = state.managedQuotaWindows === void 0 ? [] : formatManagedQuotaFooterLines(state.managedQuotaWindows, colors, width);
|
|
499459
|
-
const compactionLines =
|
|
499464
|
+
const compactionLines = [];
|
|
499460
499465
|
return [
|
|
499461
499466
|
truncateToWidth(line1, width),
|
|
499462
499467
|
...compactionLines,
|