@getmateo/cli 0.19.11 → 0.19.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmateo/cli",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"description": "Mateo CLI - control your AI coding agents from the command line",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,13 +34,12 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@clack/prompts": "^1.9.0",
|
|
37
|
-
"@getmateo/client": "0.19.
|
|
38
|
-
"@getmateo/protocol": "0.19.
|
|
39
|
-
"@getmateo/server": "0.19.
|
|
37
|
+
"@getmateo/client": "0.19.12",
|
|
38
|
+
"@getmateo/protocol": "0.19.12",
|
|
39
|
+
"@getmateo/server": "0.19.12",
|
|
40
40
|
"chalk": "^5.3.0",
|
|
41
41
|
"commander": "^12.0.0",
|
|
42
42
|
"mime-types": "^2.1.35",
|
|
43
|
-
"tree-kill": "^1.2.2",
|
|
44
43
|
"ws": "^8.23.0",
|
|
45
44
|
"yaml": "^2.8.4",
|
|
46
45
|
"zod": "4.6.7"
|
|
@@ -54,12 +53,12 @@
|
|
|
54
53
|
"zx": "^8.8.5"
|
|
55
54
|
},
|
|
56
55
|
"mateoBuild": {
|
|
57
|
-
"releaseVersion": "0.19.
|
|
58
|
-
"buildNumber": "
|
|
56
|
+
"releaseVersion": "0.19.12",
|
|
57
|
+
"buildNumber": "19012001",
|
|
59
58
|
"upstreamVersion": "0.17.4",
|
|
60
|
-
"builtAt": "2026-11-
|
|
61
|
-
"updateVersion": "2026.1126.
|
|
62
|
-
"sourceCommit": "
|
|
59
|
+
"builtAt": "2026-11-26T09:35:54Z",
|
|
60
|
+
"updateVersion": "2026.1126.34554",
|
|
61
|
+
"sourceCommit": "56f7dfe549e1db60c8326d1475e8c95d4829b54f",
|
|
63
62
|
"upstreamCommit": "2b3559b107243306986176b80beb0e779f9fe53e"
|
|
64
63
|
}
|
|
65
64
|
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { platform } from "node:os";
|
|
2
|
-
import { execCommand } from "@getmateo/server/process";
|
|
3
|
-
function normalizeError(error) {
|
|
4
|
-
if (error instanceof Error) {
|
|
5
|
-
return error.message;
|
|
6
|
-
}
|
|
7
|
-
return String(error);
|
|
8
|
-
}
|
|
9
|
-
async function resolveNodePathFromPidUnix(pid) {
|
|
10
|
-
try {
|
|
11
|
-
const { stdout } = await execCommand("ps", ["-o", "comm=", "-p", String(pid)]);
|
|
12
|
-
const resolved = stdout.trim();
|
|
13
|
-
return resolved
|
|
14
|
-
? { nodePath: resolved }
|
|
15
|
-
: { nodePath: null, error: "ps returned an empty command path" };
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
return { nodePath: null, error: `ps failed: ${normalizeError(error)}` };
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
async function runProcessProbe(command, args, options) {
|
|
22
|
-
try {
|
|
23
|
-
const { stdout } = await execCommand(command, args, { shell: options?.shell });
|
|
24
|
-
const resolved = stdout.trim();
|
|
25
|
-
return resolved
|
|
26
|
-
? { resolved }
|
|
27
|
-
: { resolved: null, error: `${command} returned no executable path` };
|
|
28
|
-
}
|
|
29
|
-
catch (error) {
|
|
30
|
-
return { resolved: null, error: `${command} failed: ${normalizeError(error)}` };
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
async function resolveNodePathFromPidWindows(pid) {
|
|
34
|
-
const probes = [
|
|
35
|
-
{
|
|
36
|
-
label: "powershell-cim",
|
|
37
|
-
command: "powershell.exe",
|
|
38
|
-
args: [
|
|
39
|
-
"-NoProfile",
|
|
40
|
-
"-Command",
|
|
41
|
-
`(Get-CimInstance Win32_Process -Filter "ProcessId = ${pid}").ExecutablePath`,
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: "powershell-process",
|
|
46
|
-
command: "powershell.exe",
|
|
47
|
-
args: ["-NoProfile", "-Command", `(Get-Process -Id ${pid}).Path`],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: "wmic",
|
|
51
|
-
command: "wmic",
|
|
52
|
-
args: ["process", "where", `ProcessId=${pid}`, "get", "ExecutablePath", "/VALUE"],
|
|
53
|
-
parseValue: (stdout) => {
|
|
54
|
-
const match = stdout.match(/ExecutablePath=(.+)/);
|
|
55
|
-
return match?.[1]?.trim() ?? null;
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
const errors = [];
|
|
60
|
-
async function tryProbe(index) {
|
|
61
|
-
if (index >= probes.length) {
|
|
62
|
-
return {
|
|
63
|
-
nodePath: null,
|
|
64
|
-
error: errors.join("; ") || "could not resolve executable path from PID",
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const probe = probes[index];
|
|
68
|
-
const result = await runProcessProbe(probe.command, probe.args, { shell: false });
|
|
69
|
-
if (result.resolved) {
|
|
70
|
-
const resolved = probe.parseValue ? probe.parseValue(result.resolved) : result.resolved;
|
|
71
|
-
if (resolved)
|
|
72
|
-
return { nodePath: resolved };
|
|
73
|
-
errors.push(`${probe.label} returned no executable path`);
|
|
74
|
-
}
|
|
75
|
-
else if (result.error) {
|
|
76
|
-
errors.push(`${probe.label}: ${result.error}`);
|
|
77
|
-
}
|
|
78
|
-
return tryProbe(index + 1);
|
|
79
|
-
}
|
|
80
|
-
return tryProbe(0);
|
|
81
|
-
}
|
|
82
|
-
export async function resolveNodePathFromPid(pid) {
|
|
83
|
-
return platform() === "win32"
|
|
84
|
-
? await resolveNodePathFromPidWindows(pid)
|
|
85
|
-
: await resolveNodePathFromPidUnix(pid);
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=runtime-toolchain.js.map
|