MCPcopy
hub / github.com/vectorize-io/hindsight / startDaemon

Method startDaemon

hindsight-all-npm/src/server.ts:227–242  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

225 }
226
227 private async startDaemon(env: NodeJS.ProcessEnv): Promise<void> {
228 const [cmd, ...baseArgs] = getEmbedCommand({
229 embedVersion: this.embedVersion,
230 embedPackagePath: this.embedPackagePath,
231 });
232 const args = [
233 ...baseArgs,
234 "daemon",
235 "--profile",
236 this.profile,
237 "start",
238 ...this.extraDaemonStartArgs,
239 ];
240
241 await this.runCommand(cmd, args, env, "daemon.start");
242 }
243
244 /**
245 * Spawn `cmd` with `args`, pipe its output through the logger, and resolve

Callers 1

startMethod · 0.95

Calls 2

runCommandMethod · 0.95
getEmbedCommandFunction · 0.85

Tested by

no test coverage detected