@agentv/core 4.31.0-next.1 → 4.31.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-QY6BS2V4.js → chunk-A27NE3R7.js} +27 -9
- package/dist/chunk-A27NE3R7.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +27 -6
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +27 -6
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +285 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -6
- package/dist/index.d.ts +23 -6
- package/dist/index.js +267 -41
- package/dist/index.js.map +1 -1
- package/dist/{ts-eval-loader-TWWSN6OX.js → ts-eval-loader-XR6DNOZ3.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-QY6BS2V4.js.map +0 -1
- /package/dist/{ts-eval-loader-TWWSN6OX.js.map → ts-eval-loader-XR6DNOZ3.js.map} +0 -0
|
@@ -1931,22 +1931,43 @@ async function validateConfigFile(filePath) {
|
|
|
1931
1931
|
});
|
|
1932
1932
|
} else {
|
|
1933
1933
|
const resultsRecord = results;
|
|
1934
|
-
if (
|
|
1934
|
+
if (resultsRecord.mode !== "github") {
|
|
1935
1935
|
errors.push({
|
|
1936
1936
|
severity: "error",
|
|
1937
1937
|
filePath,
|
|
1938
|
-
location: "results.
|
|
1939
|
-
message: "Field 'results.
|
|
1938
|
+
location: "results.mode",
|
|
1939
|
+
message: "Field 'results.mode' must be 'github'"
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
|
-
if (typeof resultsRecord.
|
|
1942
|
+
if (typeof resultsRecord.repo !== "string" || resultsRecord.repo.trim().length === 0) {
|
|
1943
1943
|
errors.push({
|
|
1944
1944
|
severity: "error",
|
|
1945
1945
|
filePath,
|
|
1946
|
-
location: "results.
|
|
1947
|
-
message: "Field 'results.
|
|
1946
|
+
location: "results.repo",
|
|
1947
|
+
message: "Field 'results.repo' must be a non-empty string"
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
|
+
if (resultsRecord.path !== void 0) {
|
|
1951
|
+
if (typeof resultsRecord.path !== "string" || resultsRecord.path.trim().length === 0) {
|
|
1952
|
+
errors.push({
|
|
1953
|
+
severity: "error",
|
|
1954
|
+
filePath,
|
|
1955
|
+
location: "results.path",
|
|
1956
|
+
message: "Field 'results.path' must be a non-empty string"
|
|
1957
|
+
});
|
|
1958
|
+
} else {
|
|
1959
|
+
const p = resultsRecord.path.trim();
|
|
1960
|
+
const isFilesystemPath = p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
|
|
1961
|
+
if (!isFilesystemPath) {
|
|
1962
|
+
errors.push({
|
|
1963
|
+
severity: "error",
|
|
1964
|
+
filePath,
|
|
1965
|
+
location: "results.path",
|
|
1966
|
+
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.`
|
|
1967
|
+
});
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1950
1971
|
if (resultsRecord.auto_push !== void 0 && typeof resultsRecord.auto_push !== "boolean") {
|
|
1951
1972
|
errors.push({
|
|
1952
1973
|
severity: "error",
|