MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readManifest

Function readManifest

apps/desktop/src/main/sidecar.ts:117–121  ·  view source on GitHub ↗
(dataDir: string)

Source from the content-addressed store, hash-verified

115};
116
117const readManifest = (dataDir: string) => {
118 const path = localServerManifestPath(dataDir);
119 if (!existsSync(path)) return null;
120 return parseExecutorLocalServerManifest(readFileSync(path, "utf8"));
121};
122
123const removeManifestIfOwnedBy = (dataDir: string, pid: number) => {
124 const manifest = readManifest(dataDir);

Callers 2

removeManifestIfOwnedByFunction · 0.70
attachToSupervisedDaemonFunction · 0.70

Calls 2

localServerManifestPathFunction · 0.70

Tested by

no test coverage detected