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

Function daemonReachable

packages/server-e2e/test/refresh-replay.test.ts:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39const PROMPT_TIMEOUT_MS = 120_000;
40
41async function daemonReachable(): Promise<boolean> {
42 try {
43 const res = await fetchWithReport(`${BASE_URL}${API_PREFIX}/meta`, {
44 signal: AbortSignal.timeout(500),
45 });
46 return res.ok;
47 } catch {
48 return false;
49 }
50}
51
52interface Envelope<T> {
53 code: number;

Callers 1

Calls 1

fetchWithReportFunction · 0.85

Tested by

no test coverage detected