@absolutejs/absolute 0.19.0-beta.680 → 0.19.0-beta.681

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/index.js CHANGED
@@ -2577,12 +2577,11 @@ var padLine = (value, width) => {
2577
2577
  }
2578
2578
  return `${value}${" ".repeat(width - plainLength)}`;
2579
2579
  };
2580
- var replaceRightEdge = (value, width, marker) => {
2580
+ var appendRightEdge = (value, width, marker) => {
2581
2581
  if (width <= 0) {
2582
2582
  return "";
2583
2583
  }
2584
- const padded = padLine(truncateText(value, width), width);
2585
- return `${padded.slice(0, Math.max(0, width - 1))}${marker}`;
2584
+ return `${padLine(value, Math.max(0, width - 1))}${marker}`;
2586
2585
  };
2587
2586
  var wrapText = (value, width) => {
2588
2587
  if (width <= 0) {
@@ -2793,10 +2792,11 @@ var createWorkspaceTui = ({
2793
2792
  const footerLines = 3;
2794
2793
  const fixedHeight = rows.length + footerLines;
2795
2794
  const logHeight = Math.max(height - fixedHeight, 3);
2795
+ const logWidth = Math.max(width - 1, 1);
2796
2796
  const contentLines = helpVisible ? helpLines : logEntries.flatMap((entry) => {
2797
2797
  const prefixPlain = `${entry.timestamp} [${entry.source}] `;
2798
2798
  const prefixColor = `${colors.dim}${entry.timestamp}${colors.reset} ${getSourceColor(entry.source)}[${entry.source}]${colors.reset} `;
2799
- const wrapped = wrapText(entry.message, Math.max(width - prefixPlain.length, 12));
2799
+ const wrapped = wrapText(entry.message, Math.max(logWidth - prefixPlain.length, 12));
2800
2800
  return wrapped.map((line, index) => {
2801
2801
  if (index === 0) {
2802
2802
  return `${prefixColor}${getLogColor(entry.level)}${line}${colors.reset}`;
@@ -2828,11 +2828,11 @@ var createWorkspaceTui = ({
2828
2828
  };
2829
2829
  for (let index = 0;index < visibleContent.length; index++) {
2830
2830
  const marker = getScrollbarMarker(index);
2831
- rows.push(marker ? replaceRightEdge(visibleContent[index] ?? "", width, marker) : padLine(visibleContent[index] ?? "", width));
2831
+ rows.push(marker ? appendRightEdge(visibleContent[index] ?? "", width, marker) : padLine(visibleContent[index] ?? "", width));
2832
2832
  }
2833
2833
  for (let index = visibleContent.length;index < logHeight; index++) {
2834
2834
  const marker = getScrollbarMarker(index);
2835
- rows.push(marker ? replaceRightEdge("", width, marker) : " ".repeat(width));
2835
+ rows.push(marker ? appendRightEdge("", width, marker) : " ".repeat(width));
2836
2836
  }
2837
2837
  rows.push(divider);
2838
2838
  const logState = !helpVisible && logScrollOffset > 0 ? `logs scrolled back ${logScrollOffset} line${logScrollOffset === 1 ? "" : "s"} \xB7 End for latest` : "live logs";
package/package.json CHANGED
@@ -302,5 +302,5 @@
302
302
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
303
303
  },
304
304
  "types": "./dist/src/index.d.ts",
305
- "version": "0.19.0-beta.680"
305
+ "version": "0.19.0-beta.681"
306
306
  }