betterstart-cli 0.0.77 → 0.0.78

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/cli.js CHANGED
@@ -20086,10 +20086,11 @@ import * as p5 from "@clack/prompts";
20086
20086
  var RENDER_OVERHEAD = 7;
20087
20087
  var MIN_MESSAGE_WIDTH = 8;
20088
20088
  function fitSpinnerMessage(message) {
20089
+ const normalized = message.replace(/\t/g, " ");
20089
20090
  const columns = process.stdout.columns ?? 80;
20090
20091
  const max = Math.max(columns - RENDER_OVERHEAD, MIN_MESSAGE_WIDTH);
20091
- const visible = stripVTControlCharacters(message);
20092
- if (visible.length <= max) return message;
20092
+ const visible = stripVTControlCharacters(normalized);
20093
+ if (visible.length <= max) return normalized;
20093
20094
  return `${visible.slice(0, max - 1)}\u2026`;
20094
20095
  }
20095
20096
  var CLACK_LINE_ROWS = 2;
@@ -23539,7 +23540,8 @@ function deploymentLine(line) {
23539
23540
  if (typeof jsonMessage === "string") message = jsonMessage;
23540
23541
  } catch {
23541
23542
  }
23542
- return /^\.+$/.test(message) ? void 0 : message.slice(0, 140);
23543
+ message = message.replace(/\s+/g, " ").trim();
23544
+ return message === "" || /^\.+$/.test(message) ? void 0 : message.slice(0, 140);
23543
23545
  }
23544
23546
  async function readFailedDeploymentLogs(session, cwd, service) {
23545
23547
  const logs = await runRailway(