MCPcopy Index your code
hub / github.com/callstack/agent-device / isAgentDeviceDaemonCommand

Function isAgentDeviceDaemonCommand

src/utils/process-identity.ts:61–65  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

59}
60
61export function isAgentDeviceDaemonCommand(command: string): boolean {
62 const normalized = command.toLowerCase().replaceAll('\\', '/');
63 if (!normalized.includes('agent-device')) return false;
64 return DAEMON_COMMAND_PATTERNS.some((pattern) => pattern.test(normalized));
65}
66
67export function isAgentDeviceDaemonProcess(pid: number, expectedStartTime?: string): boolean {
68 if (!isProcessAlive(pid)) return false;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected