vent-hq 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +0 -14
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6112,12 +6112,6 @@ var SUITE_SCAFFOLD = JSON.stringify(
|
|
|
6112
6112
|
null,
|
|
6113
6113
|
2
|
|
6114
6114
|
);
|
|
6115
|
-
function detectPackageManager(cwd) {
|
|
6116
|
-
if (existsSync(path2.join(cwd, "pnpm-lock.yaml"))) return "pnpm";
|
|
6117
|
-
if (existsSync(path2.join(cwd, "yarn.lock"))) return "yarn";
|
|
6118
|
-
if (existsSync(path2.join(cwd, "bun.lockb"))) return "bun";
|
|
6119
|
-
return "npm";
|
|
6120
|
-
}
|
|
6121
6115
|
function findBinary(name) {
|
|
6122
6116
|
try {
|
|
6123
6117
|
execSync(`which ${name}`, { stdio: "pipe" });
|
|
@@ -6224,14 +6218,6 @@ async function initCommand(args) {
|
|
|
6224
6218
|
await fs3.mkdir(path2.dirname(suitePath), { recursive: true });
|
|
6225
6219
|
await fs3.writeFile(suitePath, SUITE_SCAFFOLD + "\n");
|
|
6226
6220
|
}
|
|
6227
|
-
if (existsSync(path2.join(cwd, "package.json"))) {
|
|
6228
|
-
const pm = detectPackageManager(cwd);
|
|
6229
|
-
const installCmd = pm === "npm" ? "npm install vent-hq --save-dev" : `${pm} add -D vent-hq`;
|
|
6230
|
-
try {
|
|
6231
|
-
execSync(installCmd, { cwd, stdio: "pipe" });
|
|
6232
|
-
} catch {
|
|
6233
|
-
}
|
|
6234
|
-
}
|
|
6235
6221
|
printSuccess("Ready \u2014 your coding agent can now make test calls with `npx vent-hq run`.");
|
|
6236
6222
|
return 0;
|
|
6237
6223
|
}
|