tabminal 1.2.2 → 1.2.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/package.json +7 -8
- package/src/terminal-manager.mjs +32 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabminal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "A modern, persistent web terminal with multi-tab support and real-time system monitoring.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,18 +33,17 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@fontsource/monaspace-neon": "^5.2.5",
|
|
36
|
-
"@koa/router": "^15.
|
|
36
|
+
"@koa/router": "^15.3.0",
|
|
37
37
|
"@mozilla/readability": "^0.6.0",
|
|
38
|
-
"
|
|
39
|
-
"jsdom": "^27.2.0",
|
|
38
|
+
"jsdom": "^27.4.0",
|
|
40
39
|
"koa": "^3.1.1",
|
|
41
40
|
"koa-bodyparser": "^4.4.1",
|
|
42
41
|
"koa-static": "^5.0.0",
|
|
43
42
|
"node-ansiparser": "^2.2.1",
|
|
44
|
-
"node-pty": "^1.
|
|
45
|
-
"openai": "^6.
|
|
46
|
-
"utilitas": "^
|
|
47
|
-
"ws": "^8.
|
|
43
|
+
"node-pty": "^1.1.0",
|
|
44
|
+
"openai": "^6.17.0",
|
|
45
|
+
"utilitas": "^2001.1.117",
|
|
46
|
+
"ws": "^8.19.0"
|
|
48
47
|
},
|
|
49
48
|
"repository": {
|
|
50
49
|
"type": "git",
|
package/src/terminal-manager.mjs
CHANGED
|
@@ -138,14 +138,38 @@ precmd_functions+=(_tabminal_zsh_apply_prompt_marker)
|
|
|
138
138
|
const cols = restoredData ? restoredData.cols : this.lastCols;
|
|
139
139
|
const rows = restoredData ? restoredData.rows : this.lastRows;
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
let ptyProcess;
|
|
142
|
+
try {
|
|
143
|
+
ptyProcess = pty.spawn(shell, args, {
|
|
144
|
+
name: 'xterm-256color',
|
|
145
|
+
cols: cols,
|
|
146
|
+
rows: rows,
|
|
147
|
+
cwd: initialCwd,
|
|
148
|
+
env: env,
|
|
149
|
+
encoding: 'utf8'
|
|
150
|
+
});
|
|
151
|
+
} catch (err) {
|
|
152
|
+
const spawnInfo = {
|
|
153
|
+
shell,
|
|
154
|
+
args,
|
|
155
|
+
cwd: initialCwd,
|
|
156
|
+
cols,
|
|
157
|
+
rows,
|
|
158
|
+
env: {
|
|
159
|
+
SHELL: env.SHELL,
|
|
160
|
+
TERM: env.TERM,
|
|
161
|
+
PATH: env.PATH,
|
|
162
|
+
HOME: env.HOME
|
|
163
|
+
},
|
|
164
|
+
error: {
|
|
165
|
+
message: err?.message,
|
|
166
|
+
code: err?.code,
|
|
167
|
+
errno: err?.errno
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
console.error('[Manager] Failed to spawn PTY', spawnInfo);
|
|
171
|
+
throw err;
|
|
172
|
+
}
|
|
149
173
|
|
|
150
174
|
const session = new TerminalSession(ptyProcess, {
|
|
151
175
|
id,
|