MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / globalPackageRoot

Function globalPackageRoot

scripts/bench/agent-control-benchmark.mjs:1114–1120  ·  view source on GitHub ↗
(packageName)

Source from the content-addressed store, hash-verified

1112}
1113
1114function globalPackageRoot(packageName) {
1115 const result = run("npm", ["root", "-g"], { timeoutMs: 10000 });
1116 if (!result.ok) {
1117 throw new Error("Could not resolve global npm root for Argent.");
1118 }
1119 return path.join(result.stdout.trim(), packageName);
1120}
1121
1122function assertBinary(filePath, hint) {
1123 const result = spawnSync(filePath, ["--version"], {

Callers 1

startArgentToolServerFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected