@getpaseo/cli 0.1.100 → 0.1.101
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.
|
@@ -18,9 +18,9 @@ async function resolveNodePathFromPidUnix(pid) {
|
|
|
18
18
|
return { nodePath: null, error: `ps failed: ${normalizeError(error)}` };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
async function runProcessProbe(command, args) {
|
|
21
|
+
async function runProcessProbe(command, args, options) {
|
|
22
22
|
try {
|
|
23
|
-
const { stdout } = await execCommand(command, args);
|
|
23
|
+
const { stdout } = await execCommand(command, args, { shell: options?.shell });
|
|
24
24
|
const resolved = stdout.trim();
|
|
25
25
|
return resolved
|
|
26
26
|
? { resolved }
|
|
@@ -34,7 +34,7 @@ async function resolveNodePathFromPidWindows(pid) {
|
|
|
34
34
|
const probes = [
|
|
35
35
|
{
|
|
36
36
|
label: "powershell-cim",
|
|
37
|
-
command: "powershell",
|
|
37
|
+
command: "powershell.exe",
|
|
38
38
|
args: [
|
|
39
39
|
"-NoProfile",
|
|
40
40
|
"-Command",
|
|
@@ -43,7 +43,7 @@ async function resolveNodePathFromPidWindows(pid) {
|
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
label: "powershell-process",
|
|
46
|
-
command: "powershell",
|
|
46
|
+
command: "powershell.exe",
|
|
47
47
|
args: ["-NoProfile", "-Command", `(Get-Process -Id ${pid}).Path`],
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -65,7 +65,7 @@ async function resolveNodePathFromPidWindows(pid) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
const probe = probes[index];
|
|
68
|
-
const result = await runProcessProbe(probe.command, probe.args);
|
|
68
|
+
const result = await runProcessProbe(probe.command, probe.args, { shell: false });
|
|
69
69
|
if (result.resolved) {
|
|
70
70
|
const resolved = probe.parseValue ? probe.parseValue(result.resolved) : result.resolved;
|
|
71
71
|
if (resolved)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.101",
|
|
4
4
|
"description": "Paseo CLI - control your AI coding agents from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"paseo": "bin/paseo"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@clack/prompts": "^1.0.0",
|
|
30
|
-
"@getpaseo/client": "0.1.
|
|
31
|
-
"@getpaseo/protocol": "0.1.
|
|
32
|
-
"@getpaseo/server": "0.1.
|
|
30
|
+
"@getpaseo/client": "0.1.101",
|
|
31
|
+
"@getpaseo/protocol": "0.1.101",
|
|
32
|
+
"@getpaseo/server": "0.1.101",
|
|
33
33
|
"chalk": "^5.3.0",
|
|
34
34
|
"commander": "^12.0.0",
|
|
35
35
|
"mime-types": "^2.1.35",
|