(command: string)
| 59 | } |
| 60 | |
| 61 | export 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 | |
| 67 | export function isAgentDeviceDaemonProcess(pid: number, expectedStartTime?: string): boolean { |
| 68 | if (!isProcessAlive(pid)) return false; |
no outgoing calls
no test coverage detected