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

Function removeOwnManifest

apps/desktop/src/sidecar/server.ts:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120};
121
122const removeOwnManifest = () => {
123 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: best-effort cleanup on shutdown
124 try {
125 if (!existsSync(manifestPath)) return;
126 const parsed = parseExecutorLocalServerManifest(readFileSync(manifestPath, "utf8"));
127 if (parsed?.pid === process.pid) rmSync(manifestPath, { force: true });
128 } catch {
129 // ignore
130 }
131};
132
133const server = await startServer({
134 port: requestedPort,

Callers 1

stopFunction · 0.85

Calls 1

Tested by

no test coverage detected