@agentv/core 4.30.0 → 4.31.1-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-A27NE3R7.js} +28 -27
- package/dist/chunk-A27NE3R7.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +42 -33
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +42 -33
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +297 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -19
- package/dist/index.d.ts +34 -19
- package/dist/index.js +277 -51
- package/dist/index.js.map +1 -1
- package/dist/{ts-eval-loader-JL5DGTJL.js → ts-eval-loader-XR6DNOZ3.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-Z2BBOGE4.js.map +0 -1
- /package/dist/{ts-eval-loader-JL5DGTJL.js.map → ts-eval-loader-XR6DNOZ3.js.map} +0 -0
|
@@ -289,7 +289,7 @@ function getAgentvHome() {
|
|
|
289
289
|
if (envHome && envHome !== "undefined") {
|
|
290
290
|
if (!logged) {
|
|
291
291
|
logged = true;
|
|
292
|
-
console.
|
|
292
|
+
console.log(`Using AGENTV_HOME: ${envHome}`);
|
|
293
293
|
}
|
|
294
294
|
return envHome;
|
|
295
295
|
}
|
|
@@ -13015,6 +13015,9 @@ function parseExecutionDefaults(raw, configPath) {
|
|
|
13015
13015
|
}
|
|
13016
13016
|
return Object.keys(result).length > 0 ? result : void 0;
|
|
13017
13017
|
}
|
|
13018
|
+
function isFilesystemPath(p) {
|
|
13019
|
+
return p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
|
|
13020
|
+
}
|
|
13018
13021
|
function parseResultsConfig(raw, configPath) {
|
|
13019
13022
|
if (raw === void 0 || raw === null) {
|
|
13020
13023
|
return void 0;
|
|
@@ -13024,48 +13027,46 @@ function parseResultsConfig(raw, configPath) {
|
|
|
13024
13027
|
return void 0;
|
|
13025
13028
|
}
|
|
13026
13029
|
const obj = raw;
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
return void 0;
|
|
13030
|
-
}
|
|
13031
|
-
return { export: exportConfig };
|
|
13032
|
-
}
|
|
13033
|
-
function parseResultsExportConfig(raw, configPath) {
|
|
13034
|
-
if (raw === void 0 || raw === null) {
|
|
13030
|
+
if (obj.mode !== "github") {
|
|
13031
|
+
logWarning(`Invalid results.mode in ${configPath}, expected 'github'`);
|
|
13035
13032
|
return void 0;
|
|
13036
13033
|
}
|
|
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
13034
|
const repo = typeof obj.repo === "string" ? obj.repo.trim() : "";
|
|
13043
|
-
const exportPath = typeof obj.path === "string" ? obj.path.trim() : "";
|
|
13044
13035
|
if (!repo) {
|
|
13045
|
-
logWarning(`Invalid results.
|
|
13036
|
+
logWarning(`Invalid results.repo in ${configPath}, expected non-empty string`);
|
|
13046
13037
|
return void 0;
|
|
13047
13038
|
}
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13039
|
+
let resultsPath;
|
|
13040
|
+
if (obj.path !== void 0) {
|
|
13041
|
+
if (typeof obj.path !== "string" || obj.path.trim().length === 0) {
|
|
13042
|
+
logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
|
|
13043
|
+
return void 0;
|
|
13044
|
+
}
|
|
13045
|
+
const trimmedPath = obj.path.trim();
|
|
13046
|
+
if (!isFilesystemPath(trimmedPath)) {
|
|
13047
|
+
logWarning(
|
|
13048
|
+
`Invalid results.path in ${configPath}: '${trimmedPath}' looks like a repo subdirectory. results.path now specifies the local filesystem directory for the clone (e.g., ~/data/agentv-results). Remove 'path' to use the default or set an absolute/home-relative path.`
|
|
13049
|
+
);
|
|
13050
|
+
return void 0;
|
|
13051
|
+
}
|
|
13052
|
+
resultsPath = trimmedPath;
|
|
13051
13053
|
}
|
|
13052
13054
|
if (obj.auto_push !== void 0 && typeof obj.auto_push !== "boolean") {
|
|
13053
|
-
logWarning(`Invalid results.
|
|
13055
|
+
logWarning(`Invalid results.auto_push in ${configPath}, expected boolean`);
|
|
13054
13056
|
return void 0;
|
|
13055
13057
|
}
|
|
13056
13058
|
let branchPrefix;
|
|
13057
13059
|
if (obj.branch_prefix !== void 0) {
|
|
13058
13060
|
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
|
-
);
|
|
13061
|
+
logWarning(`Invalid results.branch_prefix in ${configPath}, expected non-empty string`);
|
|
13062
13062
|
return void 0;
|
|
13063
13063
|
}
|
|
13064
13064
|
branchPrefix = obj.branch_prefix.trim();
|
|
13065
13065
|
}
|
|
13066
13066
|
return {
|
|
13067
|
+
mode: "github",
|
|
13067
13068
|
repo,
|
|
13068
|
-
path:
|
|
13069
|
+
...resultsPath !== void 0 && { path: resultsPath },
|
|
13069
13070
|
...typeof obj.auto_push === "boolean" && { auto_push: obj.auto_push },
|
|
13070
13071
|
...branchPrefix && { branch_prefix: branchPrefix }
|
|
13071
13072
|
};
|
|
@@ -15758,7 +15759,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
|
|
|
15758
15759
|
return { tests: await loadTestsFromAgentSkills(evalFilePath) };
|
|
15759
15760
|
}
|
|
15760
15761
|
if (format === "typescript") {
|
|
15761
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15762
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3.js");
|
|
15762
15763
|
return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15763
15764
|
}
|
|
15764
15765
|
const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
|
|
@@ -15793,7 +15794,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
|
|
|
15793
15794
|
return loadTestsFromAgentSkills(evalFilePath);
|
|
15794
15795
|
}
|
|
15795
15796
|
if (format === "typescript") {
|
|
15796
|
-
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-
|
|
15797
|
+
const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3.js");
|
|
15797
15798
|
const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
|
|
15798
15799
|
return suite.tests;
|
|
15799
15800
|
}
|
|
@@ -19671,4 +19672,4 @@ export {
|
|
|
19671
19672
|
loadTestById,
|
|
19672
19673
|
loadEvalCaseById
|
|
19673
19674
|
};
|
|
19674
|
-
//# sourceMappingURL=chunk-
|
|
19675
|
+
//# sourceMappingURL=chunk-A27NE3R7.js.map
|