MCPcopy Create free account
hub / github.com/EvoMap/evolver / isCurrentLoopCommand

Function isCurrentLoopCommand

src/ops/lifecycle.js:499–506  ·  view source on GitHub ↗
(cmd, cwd)

Source from the content-addressed store, hash-verified

497}
498
499function isCurrentLoopCommand(cmd, cwd) {
500 var raw = String(cmd || '');
501 var lower = raw.toLowerCase();
502 if (!lower.includes('node') || !lower.includes('--loop')) return false;
503 if (commandIncludesPath(raw, getLoopScript())) return true;
504 if (commandIncludesPath(raw, path.join(getRepoRoot(), 'index.js'))) return true;
505 return commandUsesCurrentRepoRelativeIndex(raw, cwd);
506}
507
508function readPidFile(file) {
509 try {

Callers 1

getOwnedLoopPidsFunction · 0.85

Calls 4

commandIncludesPathFunction · 0.85
getLoopScriptFunction · 0.85
getRepoRootFunction · 0.85

Tested by

no test coverage detected