@agentv/core 4.30.0 → 4.31.0-next.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/{chunk-Z2BBOGE4.js → chunk-QY6BS2V4.js} +10 -27
- package/dist/{chunk-Z2BBOGE4.js.map → chunk-QY6BS2V4.js.map} +1 -1
- package/dist/evaluation/validation/index.cjs +32 -44
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +32 -44
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +18 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -14
- package/dist/index.d.ts +12 -14
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/{ts-eval-loader-JL5DGTJL.js → ts-eval-loader-TWWSN6OX.js} +2 -2
- package/package.json +1 -1
- /package/dist/{ts-eval-loader-JL5DGTJL.js.map → ts-eval-loader-TWWSN6OX.js.map} +0 -0
|
@@ -13024,48 +13024,31 @@ function parseResultsConfig(raw, configPath) {
|
|
|
13024
13024
|
return void 0;
|
|
13025
13025
|
}
|
|
13026
13026
|
const obj = raw;
|
|
13027
|
-
const exportConfig = parseResultsExportConfig(obj.export, configPath);
|
|
13028
|
-
if (!exportConfig) {
|
|
13029
|
-
return void 0;
|
|
13030
|
-
}
|
|
13031
|
-
return { export: exportConfig };
|
|
13032
|
-
}
|
|
13033
|
-
function parseResultsExportConfig(raw, configPath) {
|
|
13034
|
-
if (raw === void 0 || raw === null) {
|
|
13035
|
-
return void 0;
|
|
13036
|
-
}
|
|
13037
|
-
if (typeof raw !== "object" || Array.isArray(raw)) {
|
|
13038
|
-
logWarning(`Invalid results.export in ${configPath}, expected object`);
|
|
13039
|
-
return void 0;
|
|
13040
|
-
}
|
|
13041
|
-
const obj = raw;
|
|
13042
13027
|
const repo = typeof obj.repo === "string" ? obj.repo.trim() : "";
|
|
13043
|
-
const
|
|
13028
|
+
const resultsPath = typeof obj.path === "string" ? obj.path.trim() : "";
|
|
13044
13029
|
if (!repo) {
|
|
13045
|
-
logWarning(`Invalid results.
|
|
13030
|
+
logWarning(`Invalid results.repo in ${configPath}, expected non-empty string`);
|
|
13046
13031
|
return void 0;
|
|
13047
13032
|
}
|
|
13048
|
-
if (!
|
|
13049
|
-
logWarning(`Invalid results.
|
|
13033
|
+
if (!resultsPath) {
|
|
13034
|
+
logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
|
|
13050
13035
|
return void 0;
|
|
13051
13036
|
}
|
|
13052
13037
|
if (obj.auto_push !== void 0 && typeof obj.auto_push !== "boolean") {
|
|
13053
|
-
logWarning(`Invalid results.
|
|
13038
|
+
logWarning(`Invalid results.auto_push in ${configPath}, expected boolean`);
|
|
13054
13039
|
return void 0;
|
|
13055
13040
|
}
|
|
13056
13041
|
let branchPrefix;
|
|
13057
13042
|
if (obj.branch_prefix !== void 0) {
|
|
13058
13043
|
if (typeof obj.branch_prefix !== "string" || obj.branch_prefix.trim().length === 0) {
|
|
13059
|
-
logWarning(
|
|
13060
|
-
`Invalid results.export.branch_prefix in ${configPath}, expected non-empty string`
|
|
13061
|
-
);
|
|
13044
|
+
logWarning(`Invalid results.branch_prefix in ${configPath}, expected non-empty string`);
|
|
13062
13045
|
return void 0;
|
|
13063
13046
|
}
|
|
13064
13047
|
branchPrefix = obj.branch_prefix.trim();
|
|
13065
13048
|
}
|
|
13066
13049
|
return {
|
|
13067
13050
|
repo,
|
|
13068
|
-
path:
|
|
13051
|
+
path: resultsPath,
|
|
13069
13052
|
...typeof obj.auto_push === "boolean" && { auto_push: obj.auto_push },
|
|
13070
13053
|
...branchPrefix && { branch_prefix: branchPrefix }
|
|
13071
13054
|
};
|
|
@@ -15758,7 +15741,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
|
|
|
15758
15741
|
return { tests: await loadTestsFromAgentSkills(evalFilePath) };
|
|
15759
15742
|
}
|
|
15760
15743
|
if (format === "typescript") {
|
|
15761
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15744
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
|
|
15762
15745
|
return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15763
15746
|
}
|
|
15764
15747
|
const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
|
|
@@ -15793,7 +15776,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
|
|
|
15793
15776
|
return loadTestsFromAgentSkills(evalFilePath);
|
|
15794
15777
|
}
|
|
15795
15778
|
if (format === "typescript") {
|
|
15796
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15779
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
|
|
15797
15780
|
const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15798
15781
|
return suite.tests;
|
|
15799
15782
|
}
|
|
@@ -19671,4 +19654,4 @@ export {
|
|
|
19671
19654
|
loadTestById,
|
|
19672
19655
|
loadEvalCaseById
|
|
19673
19656
|
};
|
|
19674
|
-
//# sourceMappingURL=chunk-
|
|
19657
|
+
//# sourceMappingURL=chunk-QY6BS2V4.js.map
|