MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / botStatus

Function botStatus

src/cli/bot-process.ts:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28export interface BotStatus { running: boolean; pid?: number }
29
30export async function botStatus(): Promise<BotStatus> {
31 const pid = parsePid(await fs.readFile(pidFilePath(), 'utf-8').catch(() => null));
32 if (pid && isAlive(pid)) return { running: true, pid };
33 return { running: false };
34}
35
36function resolveCliPath(): string {
37 return process.env.QODEX_CLI_PATH || 'qodex';

Callers 3

startBotFunction · 0.85
stopBotFunction · 0.85
gatherDashboardDataFunction · 0.85

Calls 3

parsePidFunction · 0.85
pidFilePathFunction · 0.85
isAliveFunction · 0.85

Tested by

no test coverage detected