Add runtime detection and unified mcp and probe CLI commands

This commit is contained in:
gitea committed 2026-08-25 13:49:00 +08:00
1 parent 551fb9177f
commit b109f3f49f
8 files changed
+118 -19

No files matched your search

+5 -1
View File
@@ -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;
}