fix: route remote cli through frontend

This commit is contained in:
Codex
2026-05-05 04:17:32 +00:00
parent 3ac7c75962
commit fea954f9ab
8 changed files with 328 additions and 13 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { spawn } from "node:child_process";
import { type UniDeskConfig, repoRoot } from "./config";
interface ParsedSshArgs {
export interface ParsedSshArgs {
remoteCommand: string | null;
}
@@ -9,7 +9,7 @@ const sshOptionsWithValue = new Set([
"-B", "-b", "-c", "-D", "-E", "-e", "-F", "-I", "-i", "-J", "-L", "-l", "-m", "-O", "-o", "-p", "-Q", "-R", "-S", "-W", "-w",
]);
function parseSshArgs(args: string[]): ParsedSshArgs {
export function parseSshArgs(args: string[]): ParsedSshArgs {
const remote: string[] = [];
let remoteStarted = false;
for (let index = 0; index < args.length; index += 1) {