@grekt/cli 6.43.0-beta.4 → 6.43.0-beta.5

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -104500,9 +104500,11 @@ async function runViaCli(mode, config) {
104500
104500
  const cmd = getCommand(mode);
104501
104501
  const proc2 = Bun.spawn([...cmd, "eval", "--config", configPath, "--output", outputPath, "--no-cache"], { stdout: "pipe", stderr: "pipe" });
104502
104502
  const exitCode = await proc2.exited;
104503
- if (exitCode !== 0) {
104503
+ const { existsSync: existsSync2 } = await import("fs");
104504
+ if (!existsSync2(outputPath)) {
104504
104505
  const stderr = await new Response(proc2.stderr).text();
104505
- throw new Error(`promptfoo eval failed: ${stderr}`);
104506
+ const stdout = await new Response(proc2.stdout).text();
104507
+ throw new Error(`promptfoo eval failed (exit ${exitCode}): ${stderr || stdout}`);
104506
104508
  }
104507
104509
  const output = JSON.parse(readFileSync2(outputPath, "utf-8"));
104508
104510
  const results = extractResultsArray(output);
@@ -104986,7 +104988,7 @@ var whoamiCommand = new Command("whoami").description("Show current user").actio
104986
104988
  // package.json
104987
104989
  var package_default = {
104988
104990
  name: "@grekt/cli",
104989
- version: "6.43.0-beta.4",
104991
+ version: "6.43.0-beta.5",
104990
104992
  description: "AI tools versioned, synced, and shared across tools and teams",
104991
104993
  type: "module",
104992
104994
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grekt/cli",
3
- "version": "6.43.0-beta.4",
3
+ "version": "6.43.0-beta.5",
4
4
  "description": "AI tools versioned, synced, and shared across tools and teams",
5
5
  "type": "module",
6
6
  "bin": {