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

Function removeManifestIfOwnedBy

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

Source from the content-addressed store, hash-verified

127};
128
129const removeManifestIfOwnedBy = (dataDir: string, pid: number) => {
130 const manifest = readManifest(dataDir);
131 if (manifest?.pid !== pid) return;
132 rmSync(localServerManifestPath(dataDir), { force: true });
133};
134
135const writeSidecarManifest = (input: {
136 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