( options: ParsedServerOptions, )
| 241 | * server keeps running in the background after this returns. |
| 242 | */ |
| 243 | export async function startServerBackground( |
| 244 | options: ParsedServerOptions, |
| 245 | ): Promise<EnsureDaemonResult> { |
| 246 | return ensureDaemon({ |
| 247 | host: options.host, |
| 248 | port: options.port, |
| 249 | logLevel: options.logLevel, |
| 250 | debugEndpoints: options.debugEndpoints, |
| 251 | insecureNoTls: options.insecureNoTls, |
| 252 | allowRemoteShutdown: options.allowRemoteShutdown, |
| 253 | allowRemoteTerminals: options.allowRemoteTerminals, |
| 254 | allowedHosts: options.allowedHosts, |
| 255 | idleGraceMs: options.idleGraceMs, |
| 256 | }); |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * `kimi server run --daemon` — runs the local server as a background daemon. |
nothing calls this directly
no test coverage detected