MCPcopy Create free account
hub / github.com/SethGammon/Citadel / runNode

Function runNode

scripts/next-action.js:79–96  ·  view source on GitHub ↗
(projectRoot, repair)

Source from the content-addressed store, hash-verified

77}
78
79function runNode(projectRoot, repair) {
80 const args = [...repair.args];
81 if (repair.appendProjectRoot) args.push(projectRoot);
82 if (repair.appendProjectRootFlag) args.push('--project-root', projectRoot);
83
84 const result = spawnSync(process.execPath, args, {
85 cwd: projectRoot,
86 env: { ...process.env, CLAUDE_PROJECT_DIR: projectRoot },
87 encoding: 'utf8',
88 stdio: ['ignore', 'pipe', 'pipe'],
89 });
90
91 return {
92 status: result.status ?? 1,
93 stdout: result.stdout || '',
94 stderr: result.stderr || '',
95 };
96}
97
98function summarizeSnapshot(snapshot) {
99 return {

Callers 1

resolveNextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected