MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / isRunningFromNodeModules

Function isRunningFromNodeModules

scripts/sparc2/sparc2-cli-wrapper.js:69–75  ·  view source on GitHub ↗

* Check if we're running from a global installation (node_modules) * @returns {boolean} True if running from node_modules, false otherwise

()

Source from the content-addressed store, hash-verified

67 * @returns {boolean} True if running from node_modules, false otherwise
68 */
69function isRunningFromNodeModules() {
70 // More robust check for node_modules
71 return __dirname.includes('node_modules') ||
72 __dirname.includes('/usr/local/') ||
73 __dirname.includes('/usr/lib/') ||
74 __dirname.includes('/usr/share/');
75}
76
77/**
78 * Find the CLI TypeScript source file

Callers 2

showDiagnosticsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected