@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.
@@ -1931,22 +1931,43 @@ async function validateConfigFile(filePath) {
1931
1931
  });
1932
1932
  } else {
1933
1933
  const resultsRecord = results;
1934
- if (typeof resultsRecord.repo !== "string" || resultsRecord.repo.trim().length === 0) {
1934
+ if (resultsRecord.mode !== "github") {
1935
1935
  errors.push({
1936
1936
  severity: "error",
1937
1937
  filePath,
1938
- location: "results.repo",
1939
- message: "Field 'results.repo' must be a non-empty string"
1938
+ location: "results.mode",
1939
+ message: "Field 'results.mode' must be 'github'"
1940
1940
  });
1941
1941
  }
1942
- if (typeof resultsRecord.path !== "string" || resultsRecord.path.trim().length === 0) {
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.path",
1947
- message: "Field 'results.path' must be a non-empty string"
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",