MCPcopy Create free account
hub / github.com/Noumena-Network/code / isRunningFromLocalInstallation

Function isRunningFromLocalInstallation

src/utils/localInstaller.ts:45–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * Check if we're running from our managed local installation
44 */
45export function isRunningFromLocalInstallation(): boolean {
46 const execPath = process.argv[1] || ''
47 return execPath.includes(`${getLocalInstallDir()}/node_modules/`)
48}
49
50/**
51 * Write `content` to `path` only if the file does not already exist.

Callers 1

Calls 1

getLocalInstallDirFunction · 0.85

Tested by

no test coverage detected