@grekt/cli 6.43.0-beta.4 → 6.43.0-beta.6
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.js +6 -4
- package/package.json +2 -2
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
|
-
|
|
104503
|
+
const { existsSync: existsSync2 } = await import("fs");
|
|
104504
|
+
if (!existsSync2(outputPath)) {
|
|
104504
104505
|
const stderr = await new Response(proc2.stderr).text();
|
|
104505
|
-
|
|
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.
|
|
104991
|
+
version: "6.43.0-beta.6",
|
|
104990
104992
|
description: "AI tools versioned, synced, and shared across tools and teams",
|
|
104991
104993
|
type: "module",
|
|
104992
104994
|
bin: {
|
|
@@ -105021,7 +105023,7 @@ var package_default = {
|
|
|
105021
105023
|
},
|
|
105022
105024
|
dependencies: {
|
|
105023
105025
|
"@aws-sdk/client-s3": "^3.971.0",
|
|
105024
|
-
"@grekt/engine": "6.2.0
|
|
105026
|
+
"@grekt/engine": "6.2.0",
|
|
105025
105027
|
"@inquirer/prompts": "^7.2.0",
|
|
105026
105028
|
"@supabase/supabase-js": "^2.91.0",
|
|
105027
105029
|
chalk: "^5.4.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grekt/cli",
|
|
3
|
-
"version": "6.43.0-beta.
|
|
3
|
+
"version": "6.43.0-beta.6",
|
|
4
4
|
"description": "AI tools versioned, synced, and shared across tools and teams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@aws-sdk/client-s3": "^3.971.0",
|
|
38
|
-
"@grekt/engine": "6.2.0
|
|
38
|
+
"@grekt/engine": "6.2.0",
|
|
39
39
|
"@inquirer/prompts": "^7.2.0",
|
|
40
40
|
"@supabase/supabase-js": "^2.91.0",
|
|
41
41
|
"chalk": "^5.4.1",
|