oh-my-promptfoo 1.30.0 → 1.30.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/cli.js +1 -1
- package/dist/{eval-progress-C04gykFe.js → eval-progress-CpCOk5jU.js} +5 -4
- package/dist/{eval-progress-C04gykFe.js.map → eval-progress-CpCOk5jU.js.map} +1 -1
- package/dist/eval-progress.js +1 -1
- package/dist/reporting.cjs +4 -3
- package/dist/reporting.cjs.map +1 -1
- package/dist/reporting.d.cts +1 -1
- package/dist/reporting.d.ts +1 -1
- package/dist/reporting.js +4 -3
- package/dist/reporting.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {createRequire as __allagentsCreateRequire} from "node:module";const require=__allagentsCreateRequire(import.meta.url);
|
|
3
|
-
import { a as renderSummary, i as renderProgress, n as readProgress, o as summarizeEvaluation, r as renderConsoleSummary, s as addSourceLinks } from "./eval-progress-
|
|
3
|
+
import { a as renderSummary, i as renderProgress, n as readProgress, o as summarizeEvaluation, r as renderConsoleSummary, s as addSourceLinks } from "./eval-progress-CpCOk5jU.js";
|
|
4
4
|
import { t as canonicalJson } from "./config-dkfko4h5.js";
|
|
5
5
|
import { n as secrets } from "./redaction-Be3UM1sZ.js";
|
|
6
6
|
import { n as helperInvoke, t as helperAvailable } from "./helper-CQLUwsX4.js";
|
|
@@ -7019,7 +7019,7 @@ function graderMeasurements(grade, failed) {
|
|
|
7019
7019
|
cost: record(component.tokensUsed).cost,
|
|
7020
7020
|
tokenUsage: component.tokensUsed,
|
|
7021
7021
|
cached: metadata.judgeAccounting === void 0 && metadata.cachedResponse === true
|
|
7022
|
-
}, typeof judge === "string" && judge.startsWith("copilot:") ? judge.slice(8) :
|
|
7022
|
+
}, typeof judge === "string" && judge.startsWith("copilot:") ? judge.slice(8) : metadata.model),
|
|
7023
7023
|
usage: usage(component.tokensUsed)
|
|
7024
7024
|
}];
|
|
7025
7025
|
}
|
|
@@ -7090,7 +7090,7 @@ function summarizeEvaluation(document, exitCode, options = {}) {
|
|
|
7090
7090
|
counts[status]++;
|
|
7091
7091
|
const grader = graderMeasurements(row.gradingResult, hasError);
|
|
7092
7092
|
const provider = record(row.provider).id;
|
|
7093
|
-
const testLabel = label(test.description);
|
|
7093
|
+
const testLabel = label(record(test.metadata).id) ?? label(test.description);
|
|
7094
7094
|
const candidateLabel = label(record(row.provider).label);
|
|
7095
7095
|
return {
|
|
7096
7096
|
row: index + 1,
|
|
@@ -7218,7 +7218,8 @@ function renderSummary(report) {
|
|
|
7218
7218
|
};
|
|
7219
7219
|
let truncated = false;
|
|
7220
7220
|
for (const item of report.cases) {
|
|
7221
|
-
const
|
|
7221
|
+
const parents = new Set(item.assertions.map((check) => check.reference.split(".").slice(0, -1).join(".")));
|
|
7222
|
+
const checks = item.assertions.filter((check) => !parents.has(check.reference));
|
|
7222
7223
|
const tokens = sumUsage([item.candidateUsage, item.graderUsage]).total;
|
|
7223
7224
|
if (!add(`| ${title(item)} | ${time(item.latencyMs)} | ${number(tokens)} | ${money(sumCosts([item.candidateCost, item.graderCost]))} | ${badge(item.status)} | ${checks.length ? `${checks.filter((check) => check.status === "pass").length} / ${checks.length}` : "unknown"} | ${score(item.score)} / ${item.threshold === void 0 ? "—" : score(item.threshold)} |`)) {
|
|
7224
7225
|
truncated = true;
|
|
@@ -7325,4 +7326,4 @@ function readProgress(input) {
|
|
|
7325
7326
|
}
|
|
7326
7327
|
export { renderSummary as a, renderProgress as i, readProgress as n, summarizeEvaluation as o, renderConsoleSummary as r, addSourceLinks as s, afterEach as t };
|
|
7327
7328
|
|
|
7328
|
-
//# sourceMappingURL=eval-progress-
|
|
7329
|
+
//# sourceMappingURL=eval-progress-CpCOk5jU.js.map
|