()
| 153 | } |
| 154 | |
| 155 | async function serviceStatus() { |
| 156 | const { stdout } = await execFileAsync( |
| 157 | simdeckBinary(), |
| 158 | ["service", "status"], |
| 159 | { |
| 160 | timeout: 15000, |
| 161 | }, |
| 162 | ); |
| 163 | const parsed = JSON.parse(stdout); |
| 164 | return parsed.service || parsed; |
| 165 | } |
| 166 | |
| 167 | function serviceLooksUsable(status, config) { |
| 168 | if (!status?.httpUrl || !status?.accessToken) { |
no test coverage detected