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

Function daemonReachable

packages/server-e2e/test/prompt-queue-steer.test.ts:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34async 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
45async function debugPromptsReachable(): Promise<boolean> {
46 try {

Callers 1

Calls 1

fetchWithReportFunction · 0.85

Tested by

no test coverage detected