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

Function bootPublicReal

packages/server/test/host-exposure.e2e.test.ts:264–277  ·  view source on GitHub ↗

* Boot a 0.0.0.0 server using the REAL auth impl (no fixed-token override) so * the password `verifyPassword` path is exercised. `KIMI_CODE_PASSWORD` is set * so the M6.3 gate passes and the password is itself a valid bearer.

()

Source from the content-addressed store, hash-verified

262 * so the M6.3 gate passes and the password is itself a valid bearer.
263 */
264 async function bootPublicReal(): Promise<RunningServer> {
265 process.env['KIMI_CODE_PASSWORD'] = 'test-pw';
266 const { lockPath, homeDir } = tmpPaths();
267 const server = await startServer({
268 host: '0.0.0.0',
269 port: 0,
270 lockPath,
271 insecureNoTls: true,
272 logger: pino({ level: 'silent' }),
273 coreProcessOptions: { homeDir },
274 });
275 running.push(server);
276 return server;
277 }
278
279 /** Boot a 0.0.0.0 server with a deterministic fixed token. */
280 async function bootPublicFixed(token = 'real-token'): Promise<RunningServer> {

Callers 1

Calls 3

startServerFunction · 0.90
tmpPathsFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected