()
| 25 | const SHORT_TIMEOUT_MS = 30_000; |
| 26 | |
| 27 | async function daemonReachable(): Promise<boolean> { |
| 28 | try { |
| 29 | const res = await fetchWithReport(`${BASE_URL}${API_PREFIX}/meta`, { |
| 30 | signal: AbortSignal.timeout(500), |
| 31 | }); |
| 32 | return res.ok; |
| 33 | } catch { |
| 34 | return false; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | async function debugPromptsReachable(): Promise<boolean> { |
| 39 | try { |
no test coverage detected