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

Function bootDaemon

packages/server/test/question.e2e.test.ts:66–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64});
65
66async function bootDaemon(): Promise<RunningServer> {
67 server = await startServer({
68 serviceOverrides: [fixedTokenAuth()],
69 host: '127.0.0.1',
70 port: 0,
71 lockPath,
72 logger: pino({ level: 'silent' }),
73 coreProcessOptions: { homeDir: bridgeHome },
74 wsGatewayOptions: { pingIntervalMs: 5_000, pongTimeoutMs: 5_000 },
75 });
76 return server;
77}
78
79function appOf(r: RunningServer): {
80 inject: (req: unknown) => Promise<{ statusCode: number; json: () => unknown }>;

Callers 1

Calls 2

startServerFunction · 0.90
fixedTokenAuthFunction · 0.90

Tested by

no test coverage detected