feat: add exec host routing + node daemon

This commit is contained in:
Peter Steinberger committed 2026-01-18 07:46:00 +00:00
1 parent 49bd2d96fa
commit ae0b4c4990
38 files changed
+2370 -117

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export function buildNodeShellCommand(command: string, platform?: string | null) {
const normalized = String(platform ?? "")
.trim()
.toLowerCase();
if (normalized.includes("win")) {
return ["cmd.exe", "/d", "/s", "/c", command];
}
return ["/bin/sh", "-lc", command];
}