@aidotnet/nextcowork-device-service 2.8.3 → 2.8.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/RUNTIME.json +1 -1
- package/bin.mjs +6 -1
- package/bin.mjs.map +1 -1
- package/package.json +1 -1
package/RUNTIME.json
CHANGED
package/bin.mjs
CHANGED
|
@@ -5455,6 +5455,11 @@ function shellDialect(shell) {
|
|
|
5455
5455
|
if (name === "powershell" || name === "pwsh" || name === "pwsh-preview") return "powershell";
|
|
5456
5456
|
return name === "fish" ? "fish" : "posix";
|
|
5457
5457
|
}
|
|
5458
|
+
function terminalShellArgs(shell, platform = process.platform) {
|
|
5459
|
+
if (platform === "win32") return [];
|
|
5460
|
+
const name = shell.split("/").pop()?.toLowerCase();
|
|
5461
|
+
return name !== void 0 && ["sh", "bash", "zsh", "dash", "ksh", "mksh", "fish"].includes(name) ? ["-l"] : [];
|
|
5462
|
+
}
|
|
5458
5463
|
function quoteShellArg(shell, arg) {
|
|
5459
5464
|
switch (shellDialect(shell)) {
|
|
5460
5465
|
case "cmd":
|
|
@@ -33553,7 +33558,7 @@ function localEnvironment(host2, rootPath) {
|
|
|
33553
33558
|
},
|
|
33554
33559
|
openTerminal: async (options) => {
|
|
33555
33560
|
const pty = await import("node-pty");
|
|
33556
|
-
return pty.spawn(terminalShell,
|
|
33561
|
+
return pty.spawn(terminalShell, terminalShellArgs(terminalShell), {
|
|
33557
33562
|
...options,
|
|
33558
33563
|
name: "xterm-256color",
|
|
33559
33564
|
env: { ...process.env, TERM: "xterm-256color", ...options.env ?? {} }
|