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

Function spawn

packages/server/test/start.test.ts:125–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125async function spawn(): Promise<RunningServer> {
126 const r = await startServer({
127 serviceOverrides: [fixedTokenAuth()],
128 host: '127.0.0.1',
129 port: 0,
130 lockPath,
131 logger: silentLogger(),
132 coreProcessOptions: { homeDir: bridgeHome },
133 });
134 running.push(r);
135 return r;
136}
137
138describe('startServer — lock + healthz smoke', () => {
139 it('acquires the lock and writes pid/port; close releases', async () => {

Callers 15

start.test.tsFile · 0.70
runScenarioFunction · 0.50
runTelemetryCrashScriptFunction · 0.50
walkDirectoryWithFdFunction · 0.50
spawnInlineWorkersFunction · 0.50
runFunction · 0.50
manager.test.tsFile · 0.50
runHookFunction · 0.50
killProcessTreeWindowsFunction · 0.50
grepWithRgMethod · 0.50
runCommandFunction · 0.50
killChildFunction · 0.50

Calls 4

startServerFunction · 0.90
fixedTokenAuthFunction · 0.90
silentLoggerFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected