@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.
@@ -13024,48 +13024,31 @@ function parseResultsConfig(raw, configPath) {
13024
13024
  return void 0;
13025
13025
  }
13026
13026
  const obj = raw;
13027
- const exportConfig = parseResultsExportConfig(obj.export, configPath);
13028
- if (!exportConfig) {
13029
- return void 0;
13030
- }
13031
- return { export: exportConfig };
13032
- }
13033
- function parseResultsExportConfig(raw, configPath) {
13034
- if (raw === void 0 || raw === null) {
13035
- return void 0;
13036
- }
13037
- if (typeof raw !== "object" || Array.isArray(raw)) {
13038
- logWarning(`Invalid results.export in ${configPath}, expected object`);
13039
- return void 0;
13040
- }
13041
- const obj = raw;
13042
13027
  const repo = typeof obj.repo === "string" ? obj.repo.trim() : "";
13043
- const exportPath = typeof obj.path === "string" ? obj.path.trim() : "";
13028
+ const resultsPath = typeof obj.path === "string" ? obj.path.trim() : "";
13044
13029
  if (!repo) {
13045
- logWarning(`Invalid results.export.repo in ${configPath}, expected non-empty string`);
13030
+ logWarning(`Invalid results.repo in ${configPath}, expected non-empty string`);
13046
13031
  return void 0;
13047
13032
  }
13048
- if (!exportPath) {
13049
- logWarning(`Invalid results.export.path in ${configPath}, expected non-empty string`);
13033
+ if (!resultsPath) {
13034
+ logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
13050
13035
  return void 0;
13051
13036
  }
13052
13037
  if (obj.auto_push !== void 0 && typeof obj.auto_push !== "boolean") {
13053
- logWarning(`Invalid results.export.auto_push in ${configPath}, expected boolean`);
13038
+ logWarning(`Invalid results.auto_push in ${configPath}, expected boolean`);
13054
13039
  return void 0;
13055
13040
  }
13056
13041
  let branchPrefix;
13057
13042
  if (obj.branch_prefix !== void 0) {
13058
13043
  if (typeof obj.branch_prefix !== "string" || obj.branch_prefix.trim().length === 0) {
13059
- logWarning(
13060
- `Invalid results.export.branch_prefix in ${configPath}, expected non-empty string`
13061
- );
13044
+ logWarning(`Invalid results.branch_prefix in ${configPath}, expected non-empty string`);
13062
13045
  return void 0;
13063
13046
  }
13064
13047
  branchPrefix = obj.branch_prefix.trim();
13065
13048
  }
13066
13049
  return {
13067
13050
  repo,
13068
- path: exportPath,
13051
+ path: resultsPath,
13069
13052
  ...typeof obj.auto_push === "boolean" && { auto_push: obj.auto_push },
13070
13053
  ...branchPrefix && { branch_prefix: branchPrefix }
13071
13054
  };
@@ -15758,7 +15741,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
15758
15741
  return { tests: await loadTestsFromAgentSkills(evalFilePath) };
15759
15742
  }
15760
15743
  if (format === "typescript") {
15761
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-JL5DGTJL.js");
15744
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
15762
15745
  return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
15763
15746
  }
15764
15747
  const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
@@ -15793,7 +15776,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
15793
15776
  return loadTestsFromAgentSkills(evalFilePath);
15794
15777
  }
15795
15778
  if (format === "typescript") {
15796
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-JL5DGTJL.js");
15779
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-TWWSN6OX.js");
15797
15780
  const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
15798
15781
  return suite.tests;
15799
15782
  }
@@ -19671,4 +19654,4 @@ export {
19671
19654
  loadTestById,
19672
19655
  loadEvalCaseById
19673
19656
  };
19674
- //# sourceMappingURL=chunk-Z2BBOGE4.js.map
19657
+ //# sourceMappingURL=chunk-QY6BS2V4.js.map