()
| 32 | } |
| 33 | |
| 34 | async function daemonReachable(): Promise<boolean> { |
| 35 | try { |
| 36 | const res = await fetchWithReport(`${BASE_URL}${API_PREFIX}/meta`, { |
| 37 | signal: AbortSignal.timeout(500), |
| 38 | }); |
| 39 | return res.ok; |
| 40 | } catch { |
| 41 | return false; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | async function debugPromptsReachable(): Promise<boolean> { |
| 46 | try { |
no test coverage detected