oh-my-promptfoo 1.30.1 → 1.30.2
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-CpCOk5jU.js → eval-progress-Beb_83eu.js} +7 -3
- package/dist/{eval-progress-CpCOk5jU.js.map → eval-progress-Beb_83eu.js.map} +1 -1
- package/dist/eval-progress.js +1 -1
- package/dist/reporting.cjs +6 -2
- package/dist/reporting.cjs.map +1 -1
- package/dist/reporting.js +6 -2
- 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-Beb_83eu.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";
|
|
@@ -6962,11 +6962,15 @@ function roots(components) {
|
|
|
6962
6962
|
return result;
|
|
6963
6963
|
}
|
|
6964
6964
|
function assertionReports(grade, authored, label) {
|
|
6965
|
+
const assertionLabel = (input) => {
|
|
6966
|
+
const assertion = record(input);
|
|
6967
|
+
return label(assertion.metric) ?? (["skill-used", "not-skill-used"].includes(assertion.type) ? label(assertion.value) : void 0);
|
|
6968
|
+
};
|
|
6965
6969
|
const result = [];
|
|
6966
6970
|
const visit = (components, prefix) => {
|
|
6967
6971
|
components.forEach((component, index) => {
|
|
6968
6972
|
const reference = `${prefix}${index + 1}`;
|
|
6969
|
-
const metricLabel =
|
|
6973
|
+
const metricLabel = assertionLabel(component.assertion);
|
|
6970
6974
|
result.push({
|
|
6971
6975
|
reference,
|
|
6972
6976
|
type: assertionType(label(record(component.assertion).type)),
|
|
@@ -6981,7 +6985,7 @@ function assertionReports(grade, authored, label) {
|
|
|
6981
6985
|
const components = roots(record(grade).componentResults);
|
|
6982
6986
|
if (components.length) visit(components, "");
|
|
6983
6987
|
else if (Array.isArray(authored)) authored.forEach((input, index) => {
|
|
6984
|
-
const metricLabel =
|
|
6988
|
+
const metricLabel = assertionLabel(input);
|
|
6985
6989
|
result.push({
|
|
6986
6990
|
reference: String(index + 1),
|
|
6987
6991
|
type: assertionType(label(record(input).type)),
|
|
@@ -7326,4 +7330,4 @@ function readProgress(input) {
|
|
|
7326
7330
|
}
|
|
7327
7331
|
export { renderSummary as a, renderProgress as i, readProgress as n, summarizeEvaluation as o, renderConsoleSummary as r, addSourceLinks as s, afterEach as t };
|
|
7328
7332
|
|
|
7329
|
-
//# sourceMappingURL=eval-progress-
|
|
7333
|
+
//# sourceMappingURL=eval-progress-Beb_83eu.js.map
|