@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.
@@ -289,7 +289,7 @@ function getAgentvHome() {
289
289
  if (envHome && envHome !== "undefined") {
290
290
  if (!logged) {
291
291
  logged = true;
292
- console.warn(`Using AGENTV_HOME: ${envHome}`);
292
+ console.log(`Using AGENTV_HOME: ${envHome}`);
293
293
  }
294
294
  return envHome;
295
295
  }
@@ -13015,6 +13015,9 @@ function parseExecutionDefaults(raw, configPath) {
13015
13015
  }
13016
13016
  return Object.keys(result).length > 0 ? result : void 0;
13017
13017
  }
13018
+ function isFilesystemPath(p) {
13019
+ return p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
13020
+ }
13018
13021
  function parseResultsConfig(raw, configPath) {
13019
13022
  if (raw === void 0 || raw === null) {
13020
13023
  return void 0;
@@ -13024,15 +13027,29 @@ function parseResultsConfig(raw, configPath) {
13024
13027
  return void 0;
13025
13028
  }
13026
13029
  const obj = raw;
13030
+ if (obj.mode !== "github") {
13031
+ logWarning(`Invalid results.mode in ${configPath}, expected 'github'`);
13032
+ return void 0;
13033
+ }
13027
13034
  const repo = typeof obj.repo === "string" ? obj.repo.trim() : "";
13028
- const resultsPath = typeof obj.path === "string" ? obj.path.trim() : "";
13029
13035
  if (!repo) {
13030
13036
  logWarning(`Invalid results.repo in ${configPath}, expected non-empty string`);
13031
13037
  return void 0;
13032
13038
  }
13033
- if (!resultsPath) {
13034
- logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
13035
- return void 0;
13039
+ let resultsPath;
13040
+ if (obj.path !== void 0) {
13041
+ if (typeof obj.path !== "string" || obj.path.trim().length === 0) {
13042
+ logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
13043
+ return void 0;
13044
+ }
13045
+ const trimmedPath = obj.path.trim();
13046
+ if (!isFilesystemPath(trimmedPath)) {
13047
+ logWarning(
13048
+ `Invalid results.path in ${configPath}: '${trimmedPath}' looks like a repo subdirectory. results.path now specifies the local filesystem directory for the clone (e.g., ~/data/agentv-results). Remove 'path' to use the default or set an absolute/home-relative path.`
13049
+ );
13050
+ return void 0;
13051
+ }
13052
+ resultsPath = trimmedPath;
13036
13053
  }
13037
13054
  if (obj.auto_push !== void 0 && typeof obj.auto_push !== "boolean") {
13038
13055
  logWarning(`Invalid results.auto_push in ${configPath}, expected boolean`);
@@ -13047,8 +13064,9 @@ function parseResultsConfig(raw, configPath) {
13047
13064
  branchPrefix = obj.branch_prefix.trim();
13048
13065
  }
13049
13066
  return {
13067
+ mode: "github",
13050
13068
  repo,
13051
- path: resultsPath,
13069
+ ...resultsPath !== void 0 && { path: resultsPath },
13052
13070
  ...typeof obj.auto_push === "boolean" && { auto_push: obj.auto_push },
13053
13071
  ...branchPrefix && { branch_prefix: branchPrefix }
13054
13072
  };
@@ -15741,7 +15759,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
15741
15759
  return { tests: await loadTestsFromAgentSkills(evalFilePath) };
15742
15760
  }
15743
15761
  if (format === "typescript") {
15744
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
15762
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3.js");
15745
15763
  return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
15746
15764
  }
15747
15765
  const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
@@ -15776,7 +15794,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
15776
15794
  return loadTestsFromAgentSkills(evalFilePath);
15777
15795
  }
15778
15796
  if (format === "typescript") {
15779
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
15797
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3.js");
15780
15798
  const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
15781
15799
  return suite.tests;
15782
15800
  }
@@ -19654,4 +19672,4 @@ export {
19654
19672
  loadTestById,
19655
19673
  loadEvalCaseById
19656
19674
  };
19657
- //# sourceMappingURL=chunk-QY6BS2V4.js.map
19675
+ //# sourceMappingURL=chunk-A27NE3R7.js.map