@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
|
@@ -1930,51 +1930,60 @@ async function validateConfigFile(filePath) {
|
|
|
1930
1930
|
message: "Field 'results' must be an object"
|
|
1931
1931
|
});
|
|
1932
1932
|
} else {
|
|
1933
|
-
const
|
|
1934
|
-
if (
|
|
1935
|
-
|
|
1933
|
+
const resultsRecord = results;
|
|
1934
|
+
if (resultsRecord.mode !== "github") {
|
|
1935
|
+
errors.push({
|
|
1936
|
+
severity: "error",
|
|
1937
|
+
filePath,
|
|
1938
|
+
location: "results.mode",
|
|
1939
|
+
message: "Field 'results.mode' must be 'github'"
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
if (typeof resultsRecord.repo !== "string" || resultsRecord.repo.trim().length === 0) {
|
|
1943
|
+
errors.push({
|
|
1944
|
+
severity: "error",
|
|
1945
|
+
filePath,
|
|
1946
|
+
location: "results.repo",
|
|
1947
|
+
message: "Field 'results.repo' must be a non-empty string"
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
if (resultsRecord.path !== void 0) {
|
|
1951
|
+
if (typeof resultsRecord.path !== "string" || resultsRecord.path.trim().length === 0) {
|
|
1936
1952
|
errors.push({
|
|
1937
1953
|
severity: "error",
|
|
1938
1954
|
filePath,
|
|
1939
|
-
location: "results.
|
|
1940
|
-
message: "Field 'results.
|
|
1955
|
+
location: "results.path",
|
|
1956
|
+
message: "Field 'results.path' must be a non-empty string"
|
|
1941
1957
|
});
|
|
1942
1958
|
} else {
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1959
|
+
const p = resultsRecord.path.trim();
|
|
1960
|
+
const isFilesystemPath = p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
|
|
1961
|
+
if (!isFilesystemPath) {
|
|
1945
1962
|
errors.push({
|
|
1946
1963
|
severity: "error",
|
|
1947
1964
|
filePath,
|
|
1948
|
-
location: "results.
|
|
1949
|
-
message:
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
if (typeof exportRecord.path !== "string" || exportRecord.path.trim().length === 0) {
|
|
1953
|
-
errors.push({
|
|
1954
|
-
severity: "error",
|
|
1955
|
-
filePath,
|
|
1956
|
-
location: "results.export.path",
|
|
1957
|
-
message: "Field 'results.export.path' must be a non-empty string"
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
if (exportRecord.auto_push !== void 0 && typeof exportRecord.auto_push !== "boolean") {
|
|
1961
|
-
errors.push({
|
|
1962
|
-
severity: "error",
|
|
1963
|
-
filePath,
|
|
1964
|
-
location: "results.export.auto_push",
|
|
1965
|
-
message: "Field 'results.export.auto_push' must be a boolean"
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
if (exportRecord.branch_prefix !== void 0 && (typeof exportRecord.branch_prefix !== "string" || exportRecord.branch_prefix.trim().length === 0)) {
|
|
1969
|
-
errors.push({
|
|
1970
|
-
severity: "error",
|
|
1971
|
-
filePath,
|
|
1972
|
-
location: "results.export.branch_prefix",
|
|
1973
|
-
message: "Field 'results.export.branch_prefix' must be a non-empty string"
|
|
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.`
|
|
1974
1967
|
});
|
|
1975
1968
|
}
|
|
1976
1969
|
}
|
|
1977
1970
|
}
|
|
1971
|
+
if (resultsRecord.auto_push !== void 0 && typeof resultsRecord.auto_push !== "boolean") {
|
|
1972
|
+
errors.push({
|
|
1973
|
+
severity: "error",
|
|
1974
|
+
filePath,
|
|
1975
|
+
location: "results.auto_push",
|
|
1976
|
+
message: "Field 'results.auto_push' must be a boolean"
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
if (resultsRecord.branch_prefix !== void 0 && (typeof resultsRecord.branch_prefix !== "string" || resultsRecord.branch_prefix.trim().length === 0)) {
|
|
1980
|
+
errors.push({
|
|
1981
|
+
severity: "error",
|
|
1982
|
+
filePath,
|
|
1983
|
+
location: "results.branch_prefix",
|
|
1984
|
+
message: "Field 'results.branch_prefix' must be a non-empty string"
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1978
1987
|
}
|
|
1979
1988
|
}
|
|
1980
1989
|
const allowedFields = /* @__PURE__ */ new Set([
|