Add runtime detection and unified mcp and probe CLI commands
This commit is contained in:
1 parent
551fb9177f
commit
b109f3f49f
8 files changed
+118
-19
No files matched your search
+5
-1
@@ -133,7 +133,11 @@ function isSealHomeProcess(pid: number, appRoot: string) {
|
||||
|
||||
try {
|
||||
const command = execFileSync("ps", ["-p", String(pid), "-o", "command="], { encoding: "utf8" });
|
||||
return command.includes(appRoot) && command.includes("service") && command.includes("run");
|
||||
const matchesTarget =
|
||||
command.includes(appRoot) ||
|
||||
command.includes("seal-home") ||
|
||||
command.includes("src/cli.ts");
|
||||
return matchesTarget && command.includes("service") && command.includes("run");
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user