MCPcopy Create free account
hub / github.com/cortexkit/magic-context / legacyRpcPortFilePath

Function legacyRpcPortFilePath

packages/plugin/src/shared/rpc-utils.ts:39–41  ·  view source on GitHub ↗
(storageDir: string, directory: string)

Source from the content-addressed store, hash-verified

37
38/** Legacy single-port file used by v0.18.0 and earlier. */
39export function legacyRpcPortFilePath(storageDir: string, directory: string): string {
40 return join(rpcPortDir(storageDir, directory), "port");
41}
42
43export function isPidAlive(pid: number): boolean {
44 if (!Number.isInteger(pid) || pid <= 0) return false;

Callers 1

constructorMethod · 0.90

Calls 1

rpcPortDirFunction · 0.85

Tested by

no test coverage detected