MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / daemonReachable

Function daemonReachable

packages/server-e2e/test/send-and-cancel.test.ts:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const SHORT_TIMEOUT_MS = 30_000;
26
27async 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
38async function debugPromptsReachable(): Promise<boolean> {
39 try {

Callers 1

Calls 1

fetchWithReportFunction · 0.85

Tested by

no test coverage detected