@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
|
@@ -1462,51 +1462,60 @@ async function validateConfigFile(filePath) {
|
|
|
1462
1462
|
message: "Field 'results' must be an object"
|
|
1463
1463
|
});
|
|
1464
1464
|
} else {
|
|
1465
|
-
const
|
|
1466
|
-
if (
|
|
1467
|
-
|
|
1465
|
+
const resultsRecord = results;
|
|
1466
|
+
if (resultsRecord.mode !== "github") {
|
|
1467
|
+
errors.push({
|
|
1468
|
+
severity: "error",
|
|
1469
|
+
filePath,
|
|
1470
|
+
location: "results.mode",
|
|
1471
|
+
message: "Field 'results.mode' must be 'github'"
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
if (typeof resultsRecord.repo !== "string" || resultsRecord.repo.trim().length === 0) {
|
|
1475
|
+
errors.push({
|
|
1476
|
+
severity: "error",
|
|
1477
|
+
filePath,
|
|
1478
|
+
location: "results.repo",
|
|
1479
|
+
message: "Field 'results.repo' must be a non-empty string"
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
if (resultsRecord.path !== void 0) {
|
|
1483
|
+
if (typeof resultsRecord.path !== "string" || resultsRecord.path.trim().length === 0) {
|
|
1468
1484
|
errors.push({
|
|
1469
1485
|
severity: "error",
|
|
1470
1486
|
filePath,
|
|
1471
|
-
location: "results.
|
|
1472
|
-
message: "Field 'results.
|
|
1487
|
+
location: "results.path",
|
|
1488
|
+
message: "Field 'results.path' must be a non-empty string"
|
|
1473
1489
|
});
|
|
1474
1490
|
} else {
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1491
|
+
const p = resultsRecord.path.trim();
|
|
1492
|
+
const isFilesystemPath = p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
|
|
1493
|
+
if (!isFilesystemPath) {
|
|
1477
1494
|
errors.push({
|
|
1478
1495
|
severity: "error",
|
|
1479
1496
|
filePath,
|
|
1480
|
-
location: "results.
|
|
1481
|
-
message:
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
if (typeof exportRecord.path !== "string" || exportRecord.path.trim().length === 0) {
|
|
1485
|
-
errors.push({
|
|
1486
|
-
severity: "error",
|
|
1487
|
-
filePath,
|
|
1488
|
-
location: "results.export.path",
|
|
1489
|
-
message: "Field 'results.export.path' must be a non-empty string"
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
if (exportRecord.auto_push !== void 0 && typeof exportRecord.auto_push !== "boolean") {
|
|
1493
|
-
errors.push({
|
|
1494
|
-
severity: "error",
|
|
1495
|
-
filePath,
|
|
1496
|
-
location: "results.export.auto_push",
|
|
1497
|
-
message: "Field 'results.export.auto_push' must be a boolean"
|
|
1498
|
-
});
|
|
1499
|
-
}
|
|
1500
|
-
if (exportRecord.branch_prefix !== void 0 && (typeof exportRecord.branch_prefix !== "string" || exportRecord.branch_prefix.trim().length === 0)) {
|
|
1501
|
-
errors.push({
|
|
1502
|
-
severity: "error",
|
|
1503
|
-
filePath,
|
|
1504
|
-
location: "results.export.branch_prefix",
|
|
1505
|
-
message: "Field 'results.export.branch_prefix' must be a non-empty string"
|
|
1497
|
+
location: "results.path",
|
|
1498
|
+
message: `'results.path' must be an absolute or home-relative filesystem path (e.g., ~/data/agentv-results). Found: '${p}'. Remove 'path' to use the default.`
|
|
1506
1499
|
});
|
|
1507
1500
|
}
|
|
1508
1501
|
}
|
|
1509
1502
|
}
|
|
1503
|
+
if (resultsRecord.auto_push !== void 0 && typeof resultsRecord.auto_push !== "boolean") {
|
|
1504
|
+
errors.push({
|
|
1505
|
+
severity: "error",
|
|
1506
|
+
filePath,
|
|
1507
|
+
location: "results.auto_push",
|
|
1508
|
+
message: "Field 'results.auto_push' must be a boolean"
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
if (resultsRecord.branch_prefix !== void 0 && (typeof resultsRecord.branch_prefix !== "string" || resultsRecord.branch_prefix.trim().length === 0)) {
|
|
1512
|
+
errors.push({
|
|
1513
|
+
severity: "error",
|
|
1514
|
+
filePath,
|
|
1515
|
+
location: "results.branch_prefix",
|
|
1516
|
+
message: "Field 'results.branch_prefix' must be a non-empty string"
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1510
1519
|
}
|
|
1511
1520
|
}
|
|
1512
1521
|
const allowedFields = /* @__PURE__ */ new Set([
|