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

Function daemonReachable

packages/server-e2e/test/client.test.ts:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33const PROMPT_TIMEOUT_MS = 120_000;
34
35async function daemonReachable(): Promise<boolean> {
36 try {
37 const res = await fetchWithReport(`${BASE_URL}/api/v1/meta`, {
38 signal: AbortSignal.timeout(500),
39 });
40 return res.ok;
41 } catch {
42 return false;
43 }
44}
45
46const reachable = await daemonReachable();
47const describeLive = reachable ? describe : describe.skip;

Callers 1

client.test.tsFile · 0.70

Calls 1

fetchWithReportFunction · 0.85

Tested by

no test coverage detected