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

Function removeManifestIfOwnedBy

apps/desktop/src/main/sidecar.ts:123–127  ·  view source on GitHub ↗
(dataDir: string, pid: number)

Source from the content-addressed store, hash-verified

121};
122
123const removeManifestIfOwnedBy = (dataDir: string, pid: number) => {
124 const manifest = readManifest(dataDir);
125 if (manifest?.pid !== pid) return;
126 rmSync(localServerManifestPath(dataDir), { force: true });
127};
128
129const writeSidecarManifest = (input: {
130 readonly dataDir: string;

Callers 2

attachToSupervisedDaemonFunction · 0.85
cleanupManifestFunction · 0.85

Calls 2

readManifestFunction · 0.70
localServerManifestPathFunction · 0.70

Tested by

no test coverage detected