blun-king-cli 9.1.377 → 9.1.379

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/blun.mjs +17 -2
  2. package/package.json +1 -1
package/blun.mjs CHANGED
@@ -516233,7 +516233,9 @@ function requestRunningUpdateAtSafeBoundary(tui) {
516233
516233
  })) {
516234
516234
  if (tui.runningUpdatePreparedNoticeVersion !== version) {
516235
516235
  tui.runningUpdatePreparedNoticeVersion = version;
516236
- tui.showStatus(runningUpdateNoticeText(version, mode), "success");
516236
+ const notice = runningUpdateNoticeText(version, mode);
516237
+ if (typeof tui.showRunningUpdateStatus === "function") tui.showRunningUpdateStatus(notice);
516238
+ else tui.showStatus(notice, "success");
516237
516239
  }
516238
516240
  return false;
516239
516241
  }
@@ -516363,6 +516365,7 @@ var BlunTUI = class {
516363
516365
  runningUpdatePreparedVersion;
516364
516366
  runningUpdatePreparedMode;
516365
516367
  runningUpdatePreparedNoticeVersion;
516368
+ runningUpdatePreparedNoticeComponent;
516366
516369
  runningUpdateMessageDispose;
516367
516370
  startupPhaseMs = {};
516368
516371
  lastActivityMode;
@@ -517409,6 +517412,7 @@ var BlunTUI = class {
517409
517412
  for (const item of inFlight.items) item.channelAcknowledge?.();
517410
517413
  if (this.queueFlushBatchRemaining > 0) this.queueFlushBatchRemaining = Math.max(0, this.queueFlushBatchRemaining - inFlight.items.length);
517411
517414
  this.track("channel_queue_quarantined", { count: inFlight.items.length, attempts: CHANNEL_DELIVERY_MAX_FAILURES });
517415
+ this.showError(uiText("blunTui.steer.failed", { error: formatErrorMessage$2(error) }));
517412
517416
  this.updateQueueDisplay();
517413
517417
  this.state.ui.requestRender();
517414
517418
  this.scheduleQueueDrain();
@@ -517425,7 +517429,6 @@ var BlunTUI = class {
517425
517429
  ...item,
517426
517430
  channelDeliveryFailures: failureCount
517427
517431
  })), ...this.state.queuedMessages];
517428
- if (error !== void 0) this.showError(uiText("blunTui.steer.failed", { error: formatErrorMessage$2(error) }));
517429
517432
  this.updateQueueDisplay();
517430
517433
  this.state.ui.requestRender();
517431
517434
  this.scheduleQueueDrain();
@@ -518944,6 +518947,18 @@ var BlunTUI = class {
518944
518947
  for (const child of toDispose) if (hasDispose(child)) child.dispose();
518945
518948
  children.splice(0, children.length, ...newChildren);
518946
518949
  }
518950
+ showRunningUpdateStatus(message) {
518951
+ const next = new StatusMessageComponent(message, "success");
518952
+ const current = this.runningUpdatePreparedNoticeComponent;
518953
+ const children = this.state.transcriptContainer.children;
518954
+ const currentIndex = current === void 0 ? -1 : children.indexOf(current);
518955
+ if (currentIndex >= 0) {
518956
+ if (hasDispose(current)) current.dispose();
518957
+ children.splice(currentIndex, 1, next);
518958
+ } else this.state.transcriptContainer.addChild(next);
518959
+ this.runningUpdatePreparedNoticeComponent = next;
518960
+ this.state.ui.requestRender();
518961
+ }
518947
518962
  showStatus(message, color) {
518948
518963
  this.telegramRemoteCommandContext?.responses.push(message);
518949
518964
  this.state.transcriptContainer.addChild(new StatusMessageComponent(message, color));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.377",
3
+ "version": "9.1.379",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {