@thenewlabs/entangle-connect 2.4.0 → 2.5.0
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/terminal.d.ts.map +1 -1
- package/dist/terminal.js +42 -27
- package/dist/terminal.js.map +1 -1
- package/package.json +4 -4
package/dist/terminal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"AA+CA,wBAAsB,YAAY,CAChC,KAAK,EAAE,MAAM,EACb,CAAC,EAAE,MAAM,EACT,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAC3F,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA6If"}
|
package/dist/terminal.js
CHANGED
|
@@ -4,15 +4,20 @@ import { promptHidden } from './prompt.js';
|
|
|
4
4
|
const output = new OutputHandler({ mode: parseOutputMode(process.env.OUTPUT_MODE || 'text') });
|
|
5
5
|
// Prefix key: Ctrl-B (like tmux). After it, a single command byte drives windows.
|
|
6
6
|
const PREFIX = 0x02; // Ctrl-B
|
|
7
|
-
// ANSI helpers for the reserved
|
|
7
|
+
// ANSI helpers for the reserved tmux-style bar on the BOTTOM row.
|
|
8
8
|
const SAVE_CURSOR = '\x1b7'; // DECSC: cursor position + attributes
|
|
9
9
|
const RESTORE_CURSOR = '\x1b8'; // DECRC
|
|
10
|
-
|
|
10
|
+
// Blue tmux-style bar to match the host: dim blue bar background, brighter blue
|
|
11
|
+
// for the active tab, bright white text, and a full reset at the end.
|
|
12
|
+
const BAR_BG = '\x1b[48;5;25m'; // bar background (blue)
|
|
13
|
+
const ACTIVE_BG = '\x1b[48;5;33m'; // active tab background (brighter blue)
|
|
14
|
+
const TEXT = '\x1b[97m'; // bright white text
|
|
11
15
|
const RESET = '\x1b[0m';
|
|
12
|
-
// Build the
|
|
13
|
-
// active window in
|
|
16
|
+
// Build the full-width bottom bar, e.g. ` 1:shell 2:logs 3:build ` on a blue
|
|
17
|
+
// background, with the active window's tab in a brighter blue. The line is
|
|
18
|
+
// padded/truncated to exactly `cols` visible columns so it fills the row.
|
|
14
19
|
function renderTabBar(state, cols) {
|
|
15
|
-
let out =
|
|
20
|
+
let out = `${BAR_BG}${TEXT}`;
|
|
16
21
|
let width = 0;
|
|
17
22
|
state.windows.forEach((w, i) => {
|
|
18
23
|
if (width >= cols)
|
|
@@ -23,16 +28,18 @@ function renderTabBar(state, cols) {
|
|
|
23
28
|
if (label.length > remaining)
|
|
24
29
|
label = label.slice(0, remaining);
|
|
25
30
|
width += label.length;
|
|
26
|
-
out += i === state.activeIndex ? `${
|
|
31
|
+
out += i === state.activeIndex ? `${ACTIVE_BG}${label}${BAR_BG}` : label;
|
|
27
32
|
});
|
|
28
|
-
|
|
33
|
+
if (width < cols)
|
|
34
|
+
out += ' '.repeat(cols - width); // pad the rest of the bar
|
|
35
|
+
return `${out}${RESET}`;
|
|
29
36
|
}
|
|
30
|
-
// Repaint
|
|
31
|
-
// scroll region keeps shell output off row
|
|
32
|
-
// the scroll region because origin mode (DECOM) is off by default.
|
|
33
|
-
function drawTabBar(state, cols) {
|
|
37
|
+
// Repaint the bottom bar (row `rows`) without disturbing the shell's cursor. The
|
|
38
|
+
// scroll region keeps shell output off row `rows`; absolute CUP (`\x1b[<rows>;1H`)
|
|
39
|
+
// ignores the scroll region because origin mode (DECOM) is off by default.
|
|
40
|
+
function drawTabBar(state, cols, rows) {
|
|
34
41
|
const bar = renderTabBar(state, cols);
|
|
35
|
-
process.stdout.write(`${SAVE_CURSOR}\x1b[
|
|
42
|
+
process.stdout.write(`${SAVE_CURSOR}\x1b[${rows};1H\x1b[2K${bar}${RESTORE_CURSOR}`);
|
|
36
43
|
}
|
|
37
44
|
export async function openTerminal(wsUrl, S, options, password) {
|
|
38
45
|
const { cwd, cols = 80, rows = 24 } = options;
|
|
@@ -65,16 +72,22 @@ export async function openTerminal(wsUrl, S, options, password) {
|
|
|
65
72
|
}
|
|
66
73
|
process.stdin.pause();
|
|
67
74
|
};
|
|
75
|
+
// Physical terminal geometry, falling back to the negotiated size.
|
|
76
|
+
const termCols = () => process.stdout.columns || cols;
|
|
77
|
+
const termRows = () => process.stdout.rows || rows;
|
|
78
|
+
// Reserve the BOTTOM row for the bar: the shell area is rows 1..rows-1, so
|
|
79
|
+
// the pty gets one fewer row than the physical terminal.
|
|
80
|
+
const shellRows = () => Math.max(1, termRows() - 1);
|
|
68
81
|
// Last window-state the server sent us; drives the tab bar and `prefix-x`.
|
|
69
82
|
let lastState;
|
|
70
83
|
let tabBarDirty = false;
|
|
71
84
|
conn.onWindowState((state) => {
|
|
72
85
|
lastState = state;
|
|
73
86
|
tabBarDirty = false; // a fresh full repaint below supersedes any pending one
|
|
74
|
-
drawTabBar(state,
|
|
87
|
+
drawTabBar(state, termCols(), termRows());
|
|
75
88
|
});
|
|
76
89
|
// A shell `clear`, a full-screen app, or the server's switch repaint emits a
|
|
77
|
-
// full-screen clear that blanks the reserved row
|
|
90
|
+
// full-screen clear that blanks the reserved bottom row until the next
|
|
78
91
|
// window-state (which may never arrive for a plain `clear`). So after any pty
|
|
79
92
|
// output we mark the tab bar dirty and repaint it from the last known state
|
|
80
93
|
// on a small coalescing interval (unref'd so it never keeps the process up).
|
|
@@ -82,12 +95,9 @@ export async function openTerminal(wsUrl, S, options, password) {
|
|
|
82
95
|
if (!tabBarDirty || !lastState)
|
|
83
96
|
return;
|
|
84
97
|
tabBarDirty = false;
|
|
85
|
-
drawTabBar(lastState,
|
|
98
|
+
drawTabBar(lastState, termCols(), termRows());
|
|
86
99
|
}, 60);
|
|
87
100
|
repaintTimer.unref?.();
|
|
88
|
-
// Reserve row 1 for the tab bar: the shell area is rows 2..rows, so the pty
|
|
89
|
-
// gets one fewer row than the physical terminal.
|
|
90
|
-
const shellRows = () => Math.max(1, (process.stdout.rows || rows) - 1);
|
|
91
101
|
// Ctrl-B prefix state machine over stdin. When the prefix is seen, the next
|
|
92
102
|
// byte is a window command; every other byte forwards to the shell pty.
|
|
93
103
|
let prefixArmed = false;
|
|
@@ -141,25 +151,30 @@ export async function openTerminal(wsUrl, S, options, password) {
|
|
|
141
151
|
onOpened: () => {
|
|
142
152
|
if (process.stdin.isTTY)
|
|
143
153
|
process.stdin.setRawMode(true);
|
|
144
|
-
// Reserve row
|
|
145
|
-
// scroll over the
|
|
146
|
-
process.stdout.write(`\x1b[
|
|
154
|
+
// Reserve the bottom row: scroll region = rows 1..rows-1, so the shell
|
|
155
|
+
// can never scroll over the bar.
|
|
156
|
+
process.stdout.write(`\x1b[1;${shellRows()}r`);
|
|
147
157
|
scrollRegionSet = true;
|
|
148
158
|
if (lastState)
|
|
149
|
-
drawTabBar(lastState,
|
|
159
|
+
drawTabBar(lastState, termCols(), termRows());
|
|
150
160
|
process.stdin.resume();
|
|
151
161
|
process.stdin.on('data', onStdin);
|
|
152
162
|
process.stdout.on('resize', () => {
|
|
153
|
-
|
|
154
|
-
//
|
|
155
|
-
|
|
163
|
+
// (a) Drop the scroll region so the resize can't corrupt the reserved
|
|
164
|
+
// row, (b) resize the pty — this emits a STREAM_RESIZE which the server
|
|
165
|
+
// answers with a clear + active-window replay, so we do NOT locally
|
|
166
|
+
// reconstruct the screen, (c) re-establish the reserved region for the
|
|
167
|
+
// new size, and (d) redraw the bottom bar.
|
|
168
|
+
process.stdout.write('\x1b[r');
|
|
169
|
+
handle.resize(termCols(), shellRows());
|
|
170
|
+
process.stdout.write(`\x1b[1;${shellRows()}r`);
|
|
156
171
|
if (lastState)
|
|
157
|
-
drawTabBar(lastState,
|
|
172
|
+
drawTabBar(lastState, termCols(), termRows());
|
|
158
173
|
});
|
|
159
174
|
},
|
|
160
175
|
onData: (chunk) => {
|
|
161
176
|
process.stdout.write(Buffer.from(chunk));
|
|
162
|
-
// Shell output may have cleared row
|
|
177
|
+
// Shell output may have cleared the bottom row; schedule a coalesced repaint.
|
|
163
178
|
tabBarDirty = true;
|
|
164
179
|
},
|
|
165
180
|
onExit: (code, signal) => {
|
package/dist/terminal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC;AAE/F,kFAAkF;AAClF,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,SAAS;AAE9B,
|
|
1
|
+
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../src/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC;AAE/F,kFAAkF;AAClF,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,SAAS;AAE9B,kEAAkE;AAClE,MAAM,WAAW,GAAG,OAAO,CAAC,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,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thenewlabs/entangle-connect",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"prepublishOnly": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@thenewlabs/entangle-crypto": "^2.
|
|
16
|
-
"@thenewlabs/entangle-protocol": "^2.
|
|
17
|
-
"@thenewlabs/entangle-utils": "^2.
|
|
15
|
+
"@thenewlabs/entangle-crypto": "^2.5.0",
|
|
16
|
+
"@thenewlabs/entangle-protocol": "^2.5.0",
|
|
17
|
+
"@thenewlabs/entangle-utils": "^2.5.0",
|
|
18
18
|
"cborg": "^4.5.8",
|
|
19
19
|
"commander": "^15.0.0",
|
|
20
20
|
"ws": "^8.21.0"
|