blun-king-cli 9.1.1 → 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/bin/blun.js +16 -2
- package/bin/king.js +16 -2
- package/blun.mjs +4 -3
- package/package.json +1 -1
package/bin/blun.js
CHANGED
|
@@ -254,10 +254,24 @@ async function installLeaseIsClear() {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
async function main() {
|
|
257
|
+
const explicitUpdateRequest = process.argv.length === 3
|
|
258
|
+
&& /^(?:update|upgrade)$/iu.test(process.argv[2] || '');
|
|
257
259
|
const result = await acquireNoticeLease();
|
|
258
|
-
if (!result.acquired)
|
|
260
|
+
if (!result.acquired) {
|
|
261
|
+
process.stderr.write(explicitUpdateRequest
|
|
262
|
+
? 'BLUN laeuft noch. Beende die laufende Konsole und starte das Update erneut.\n'
|
|
263
|
+
: 'BLUN laeuft bereits in einer anderen Konsole.\n');
|
|
264
|
+
process.exitCode = 1;
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
259
267
|
try {
|
|
260
|
-
if (!await installLeaseIsClear())
|
|
268
|
+
if (!await installLeaseIsClear()) {
|
|
269
|
+
process.stderr.write(explicitUpdateRequest
|
|
270
|
+
? 'BLUN laeuft noch. Beende die laufende Konsole und starte das Update erneut.\n'
|
|
271
|
+
: 'BLUN laeuft bereits in einer anderen Konsole.\n');
|
|
272
|
+
process.exitCode = 1;
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
261
275
|
result.lease.assertOwned();
|
|
262
276
|
const { runLauncher } = require('./launcher-runtime');
|
|
263
277
|
result.lease.assertOwned();
|
package/bin/king.js
CHANGED
|
@@ -254,10 +254,24 @@ async function installLeaseIsClear() {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
async function main() {
|
|
257
|
+
const explicitUpdateRequest = process.argv.length === 3
|
|
258
|
+
&& /^(?:update|upgrade)$/iu.test(process.argv[2] || '');
|
|
257
259
|
const result = await acquireNoticeLease();
|
|
258
|
-
if (!result.acquired)
|
|
260
|
+
if (!result.acquired) {
|
|
261
|
+
process.stderr.write(explicitUpdateRequest
|
|
262
|
+
? 'BLUN laeuft noch. Beende die laufende Konsole und starte das Update erneut.\n'
|
|
263
|
+
: 'BLUN laeuft bereits in einer anderen Konsole.\n');
|
|
264
|
+
process.exitCode = 1;
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
259
267
|
try {
|
|
260
|
-
if (!await installLeaseIsClear())
|
|
268
|
+
if (!await installLeaseIsClear()) {
|
|
269
|
+
process.stderr.write(explicitUpdateRequest
|
|
270
|
+
? 'BLUN laeuft noch. Beende die laufende Konsole und starte das Update erneut.\n'
|
|
271
|
+
: 'BLUN laeuft bereits in einer anderen Konsole.\n');
|
|
272
|
+
process.exitCode = 1;
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
261
275
|
result.lease.assertOwned();
|
|
262
276
|
const { runLauncher } = require('./launcher-runtime');
|
|
263
277
|
result.lease.assertOwned();
|
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,
|