@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.
@@ -1930,50 +1930,38 @@ async function validateConfigFile(filePath) {
1930
1930
  message: "Field 'results' must be an object"
1931
1931
  });
1932
1932
  } else {
1933
- const exportConfig = results.export;
1934
- if (exportConfig !== void 0) {
1935
- if (typeof exportConfig !== "object" || exportConfig === null || Array.isArray(exportConfig)) {
1936
- errors.push({
1937
- severity: "error",
1938
- filePath,
1939
- location: "results.export",
1940
- message: "Field 'results.export' must be an object"
1941
- });
1942
- } else {
1943
- const exportRecord = exportConfig;
1944
- if (typeof exportRecord.repo !== "string" || exportRecord.repo.trim().length === 0) {
1945
- errors.push({
1946
- severity: "error",
1947
- filePath,
1948
- location: "results.export.repo",
1949
- message: "Field 'results.export.repo' must be a non-empty string"
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"
1974
- });
1975
- }
1976
- }
1933
+ const resultsRecord = results;
1934
+ if (typeof resultsRecord.repo !== "string" || resultsRecord.repo.trim().length === 0) {
1935
+ errors.push({
1936
+ severity: "error",
1937
+ filePath,
1938
+ location: "results.repo",
1939
+ message: "Field 'results.repo' must be a non-empty string"
1940
+ });
1941
+ }
1942
+ if (typeof resultsRecord.path !== "string" || resultsRecord.path.trim().length === 0) {
1943
+ errors.push({
1944
+ severity: "error",
1945
+ filePath,
1946
+ location: "results.path",
1947
+ message: "Field 'results.path' must be a non-empty string"
1948
+ });
1949
+ }
1950
+ if (resultsRecord.auto_push !== void 0 && typeof resultsRecord.auto_push !== "boolean") {
1951
+ errors.push({
1952
+ severity: "error",
1953
+ filePath,
1954
+ location: "results.auto_push",
1955
+ message: "Field 'results.auto_push' must be a boolean"
1956
+ });
1957
+ }
1958
+ if (resultsRecord.branch_prefix !== void 0 && (typeof resultsRecord.branch_prefix !== "string" || resultsRecord.branch_prefix.trim().length === 0)) {
1959
+ errors.push({
1960
+ severity: "error",
1961
+ filePath,
1962
+ location: "results.branch_prefix",
1963
+ message: "Field 'results.branch_prefix' must be a non-empty string"
1964
+ });
1977
1965
  }
1978
1966
  }
1979
1967
  }