@wangyaoshen/remux 0.3.9-dev.390cb29 → 0.3.10-dev.19fb76c
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/apps/macos/Package.swift +5 -0
- package/apps/macos/Sources/Remux/AppCommand.swift +114 -0
- package/apps/macos/Sources/Remux/AppDelegate.swift +26 -0
- package/apps/macos/Sources/Remux/MainContentView.swift +56 -0
- package/apps/macos/Sources/Remux/MenuBarManager.swift +18 -26
- package/apps/macos/Sources/Remux/NotificationManager.swift +52 -7
- package/apps/macos/Sources/Remux/Views/SplitTree/SplitView.swift +1 -1
- package/apps/macos/Sources/Remux/Views/Terminal/GhosttyNativeView.swift +10 -4
- package/apps/macos/Sources/Remux/Views/Terminal/TerminalContainerView.swift +35 -5
- package/apps/macos/Sources/Remux/WindowObserver.swift +38 -0
- package/apps/macos/Tests/RemuxTests/AppCommandTests.swift +30 -0
- package/apps/macos/Tests/RemuxTests/NotificationManagerTests.swift +28 -0
- package/package.json +1 -1
- package/packages/RemuxKit/Sources/RemuxKit/Storage/KeychainStore.swift +3 -3
- package/packages/RemuxKit/Tests/RemuxKitTests/KeychainStoreTests.swift +3 -3
- package/pty-daemon.js +17 -11
- package/server.js +146 -872
- package/src/pty-daemon.ts +17 -11
- package/src/server.ts +96 -859
- package/src/session.ts +42 -4
- package/tests/auth.test.js +1 -1
- package/tests/e2e/app.spec.js +44 -4
- package/tests/pty-daemon.test.js +20 -1
- package/tests/server.test.js +49 -11
- package/vitest.config.js +1 -0
package/src/pty-daemon.ts
CHANGED
|
@@ -161,17 +161,23 @@ function main(): void {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// Create PTY
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
let ptyProcess: IPty;
|
|
165
|
+
try {
|
|
166
|
+
ptyProcess = pty.spawn(args.shell, [], {
|
|
167
|
+
name: "xterm-256color",
|
|
168
|
+
cols: args.cols,
|
|
169
|
+
rows: args.rows,
|
|
170
|
+
cwd: args.cwd,
|
|
171
|
+
env: {
|
|
172
|
+
...process.env,
|
|
173
|
+
TERM: "xterm-256color",
|
|
174
|
+
COLORTERM: "truecolor",
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
} catch (err: any) {
|
|
178
|
+
console.error(`[pty-daemon] failed to spawn PTY: ${err?.message || err}`);
|
|
179
|
+
process.exit(1);
|
|
180
|
+
}
|
|
175
181
|
|
|
176
182
|
const scrollback = new RingBuffer();
|
|
177
183
|
const clients = new Set<net.Socket>();
|