numux 2.10.2 → 2.10.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/dist/numux.js +5 -6
- package/dist/utils/color.d.ts +1 -1
- package/package.json +1 -1
package/dist/numux.js
CHANGED
|
@@ -37,7 +37,7 @@ var __require = import.meta.require;
|
|
|
37
37
|
var require_package = __commonJS((exports, module) => {
|
|
38
38
|
module.exports = {
|
|
39
39
|
name: "numux",
|
|
40
|
-
version: "2.10.
|
|
40
|
+
version: "2.10.4",
|
|
41
41
|
description: "Terminal multiplexer with dependency orchestration",
|
|
42
42
|
type: "module",
|
|
43
43
|
license: "MIT",
|
|
@@ -1058,9 +1058,8 @@ var STATUS_ANSI = {
|
|
|
1058
1058
|
skipped: hexToAnsi(BASIC_COLORS.gray)
|
|
1059
1059
|
};
|
|
1060
1060
|
var ANSI_RESET = "\x1B[0m";
|
|
1061
|
-
var ANSI_RE = /\x1b\[[0-9;?]*[A-Za-z]|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)|\x1b[()#][0-9A-Za-z]|\x1b[A-Za-z><=]/g;
|
|
1062
1061
|
function stripAnsi(str) {
|
|
1063
|
-
return
|
|
1062
|
+
return Bun.stripANSI(str);
|
|
1064
1063
|
}
|
|
1065
1064
|
var DEFAULT_PALETTE = [
|
|
1066
1065
|
BASIC_COLORS.cyan,
|
|
@@ -2704,7 +2703,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2704
2703
|
this.updateTextInfo();
|
|
2705
2704
|
const lineInfo = this.textBufferView.logicalLineInfo;
|
|
2706
2705
|
if (lineInfo) {
|
|
2707
|
-
this._lineCount = lineInfo.lineStarts.
|
|
2706
|
+
this._lineCount = lineInfo.lineStartCols?.length ?? lineInfo.lineStarts?.length ?? this._lineCount;
|
|
2708
2707
|
}
|
|
2709
2708
|
this._ansiDirty = false;
|
|
2710
2709
|
}
|
|
@@ -2713,7 +2712,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2713
2712
|
getScrollPositionForLine(lineNumber) {
|
|
2714
2713
|
const clampedLine = Math.max(0, Math.min(lineNumber, this._lineCount - 1));
|
|
2715
2714
|
const lineInfo = this.textBufferView.logicalLineInfo;
|
|
2716
|
-
const lineStarts = lineInfo?.lineStarts;
|
|
2715
|
+
const lineStarts = lineInfo?.lineStartCols ?? lineInfo?.lineStarts;
|
|
2717
2716
|
let lineYOffset = clampedLine;
|
|
2718
2717
|
if (lineStarts && lineStarts.length > clampedLine) {
|
|
2719
2718
|
lineYOffset = lineStarts[clampedLine];
|
|
@@ -2724,7 +2723,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2724
2723
|
var EMPTY_LINE_INFO = { lineStarts: [], lineStartCols: [], lineWidthColsMax: 0, lineSources: [] };
|
|
2725
2724
|
Object.defineProperty(GhosttyTerminalRenderable.prototype, "lineInfo", {
|
|
2726
2725
|
get() {
|
|
2727
|
-
return this.textBufferView
|
|
2726
|
+
return this.textBufferView?.logicalLineInfo ?? EMPTY_LINE_INFO;
|
|
2728
2727
|
},
|
|
2729
2728
|
configurable: true
|
|
2730
2729
|
});
|
package/dist/utils/color.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ import type { ProcessStatus, ResolvedNumuxConfig } from '../types';
|
|
|
30
30
|
/** ANSI color codes for process statuses */
|
|
31
31
|
export declare const STATUS_ANSI: Partial<Record<ProcessStatus, string>>;
|
|
32
32
|
export declare const ANSI_RESET = "\u001B[0m";
|
|
33
|
-
/** Strip ANSI escape sequences from text */
|
|
33
|
+
/** Strip ANSI escape sequences from text (SIMD-accelerated via Bun) */
|
|
34
34
|
export declare function stripAnsi(str: string): string;
|
|
35
35
|
/** Pick a deterministic color from the default palette based on the process name */
|
|
36
36
|
export declare function colorFromName(name: string): Color;
|