agentv 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.
Files changed (30) hide show
  1. package/dist/{artifact-writer-JJLJUUUY.js → artifact-writer-FZ5RUHWC.js} +4 -4
  2. package/dist/{chunk-L3FMZXCD.js → chunk-377GONL7.js} +30 -29
  3. package/dist/chunk-377GONL7.js.map +1 -0
  4. package/dist/{chunk-J4AMO3MD.js → chunk-A346PC3C.js} +102 -41
  5. package/dist/{chunk-J4AMO3MD.js.map → chunk-A346PC3C.js.map} +1 -1
  6. package/dist/{chunk-B2YJVU72.js → chunk-E6KALARL.js} +140 -64
  7. package/dist/chunk-E6KALARL.js.map +1 -0
  8. package/dist/{chunk-YFVD6FC6.js → chunk-IJPWTVDU.js} +3 -3
  9. package/dist/{chunk-LUZRCQNH.js → chunk-LOYPSIE7.js} +278 -52
  10. package/dist/chunk-LOYPSIE7.js.map +1 -0
  11. package/dist/cli.js +5 -5
  12. package/dist/{dist-GYCHDLTZ.js → dist-CRYAFKLS.js} +11 -7
  13. package/dist/index.js +5 -5
  14. package/dist/{interactive-DIQOOZX4.js → interactive-O5EUQPCE.js} +5 -5
  15. package/dist/studio/assets/index-9UixPaIJ.js +116 -0
  16. package/dist/studio/assets/index-BAvxZ1rb.css +1 -0
  17. package/dist/studio/assets/{index-SVeKAE-f.js → index-DPrj3J9P.js} +1 -1
  18. package/dist/studio/index.html +2 -2
  19. package/dist/{ts-eval-loader-JL5DGTJL-U5LTKGOE.js → ts-eval-loader-XR6DNOZ3-GA7B5N26.js} +2 -2
  20. package/package.json +1 -1
  21. package/dist/chunk-B2YJVU72.js.map +0 -1
  22. package/dist/chunk-L3FMZXCD.js.map +0 -1
  23. package/dist/chunk-LUZRCQNH.js.map +0 -1
  24. package/dist/studio/assets/index-BUmBj4ej.js +0 -116
  25. package/dist/studio/assets/index-CIpCCDKl.css +0 -1
  26. /package/dist/{artifact-writer-JJLJUUUY.js.map → artifact-writer-FZ5RUHWC.js.map} +0 -0
  27. /package/dist/{chunk-YFVD6FC6.js.map → chunk-IJPWTVDU.js.map} +0 -0
  28. /package/dist/{dist-GYCHDLTZ.js.map → dist-CRYAFKLS.js.map} +0 -0
  29. /package/dist/{interactive-DIQOOZX4.js.map → interactive-O5EUQPCE.js.map} +0 -0
  30. /package/dist/{ts-eval-loader-JL5DGTJL-U5LTKGOE.js.map → ts-eval-loader-XR6DNOZ3-GA7B5N26.js.map} +0 -0
@@ -14,11 +14,11 @@ import {
14
14
  writeArtifactsFromResults,
15
15
  writeInitialBenchmarkArtifact,
16
16
  writePerTestArtifacts
17
- } from "./chunk-YFVD6FC6.js";
18
- import "./chunk-LUZRCQNH.js";
17
+ } from "./chunk-IJPWTVDU.js";
18
+ import "./chunk-LOYPSIE7.js";
19
19
  import "./chunk-QOBQ5XYF.js";
20
20
  import "./chunk-BPGJ4HBU.js";
21
- import "./chunk-L3FMZXCD.js";
21
+ import "./chunk-377GONL7.js";
22
22
  import "./chunk-NPVGBFF6.js";
23
23
  import "./chunk-M7BUKBAF.js";
24
24
  import "./chunk-5H446C7X.js";
@@ -38,4 +38,4 @@ export {
38
38
  writeInitialBenchmarkArtifact,
39
39
  writePerTestArtifacts
40
40
  };
41
- //# sourceMappingURL=artifact-writer-JJLJUUUY.js.map
41
+ //# sourceMappingURL=artifact-writer-FZ5RUHWC.js.map
@@ -6037,7 +6037,7 @@ async function expandFileReferences(tests, evalFileDir) {
6037
6037
  return expanded;
6038
6038
  }
6039
6039
 
6040
- // ../../packages/core/dist/chunk-Z2BBOGE4.js
6040
+ // ../../packages/core/dist/chunk-A27NE3R7.js
6041
6041
  import path46 from "node:path";
6042
6042
  import { pathToFileURL as pathToFileURL2 } from "node:url";
6043
6043
  import { existsSync as existsSync6 } from "node:fs";
@@ -18704,7 +18704,7 @@ var RequestError = class _RequestError extends Error {
18704
18704
  }
18705
18705
  };
18706
18706
 
18707
- // ../../packages/core/dist/chunk-Z2BBOGE4.js
18707
+ // ../../packages/core/dist/chunk-A27NE3R7.js
18708
18708
  import { exec as execCallback } from "node:child_process";
18709
18709
  import { readdirSync, statSync } from "node:fs";
18710
18710
  import { readFile as readFile22, readdir as readdir2, stat as stat2 } from "node:fs/promises";
@@ -19035,7 +19035,7 @@ function getAgentvHome() {
19035
19035
  if (envHome && envHome !== "undefined") {
19036
19036
  if (!logged) {
19037
19037
  logged = true;
19038
- console.warn(`Using AGENTV_HOME: ${envHome}`);
19038
+ console.log(`Using AGENTV_HOME: ${envHome}`);
19039
19039
  }
19040
19040
  return envHome;
19041
19041
  }
@@ -31441,6 +31441,9 @@ function parseExecutionDefaults(raw, configPath) {
31441
31441
  }
31442
31442
  return Object.keys(result).length > 0 ? result : void 0;
31443
31443
  }
31444
+ function isFilesystemPath(p) {
31445
+ return p.startsWith("/") || p.startsWith("~/") || p.startsWith("~\\") || p === "~" || /^[A-Za-z]:[/\\]/.test(p);
31446
+ }
31444
31447
  function parseResultsConfig(raw, configPath) {
31445
31448
  if (raw === void 0 || raw === null) {
31446
31449
  return void 0;
@@ -31450,48 +31453,46 @@ function parseResultsConfig(raw, configPath) {
31450
31453
  return void 0;
31451
31454
  }
31452
31455
  const obj = raw;
31453
- const exportConfig = parseResultsExportConfig(obj.export, configPath);
31454
- if (!exportConfig) {
31455
- return void 0;
31456
- }
31457
- return { export: exportConfig };
31458
- }
31459
- function parseResultsExportConfig(raw, configPath) {
31460
- if (raw === void 0 || raw === null) {
31456
+ if (obj.mode !== "github") {
31457
+ logWarning(`Invalid results.mode in ${configPath}, expected 'github'`);
31461
31458
  return void 0;
31462
31459
  }
31463
- if (typeof raw !== "object" || Array.isArray(raw)) {
31464
- logWarning(`Invalid results.export in ${configPath}, expected object`);
31465
- return void 0;
31466
- }
31467
- const obj = raw;
31468
31460
  const repo = typeof obj.repo === "string" ? obj.repo.trim() : "";
31469
- const exportPath = typeof obj.path === "string" ? obj.path.trim() : "";
31470
31461
  if (!repo) {
31471
- logWarning(`Invalid results.export.repo in ${configPath}, expected non-empty string`);
31462
+ logWarning(`Invalid results.repo in ${configPath}, expected non-empty string`);
31472
31463
  return void 0;
31473
31464
  }
31474
- if (!exportPath) {
31475
- logWarning(`Invalid results.export.path in ${configPath}, expected non-empty string`);
31476
- return void 0;
31465
+ let resultsPath;
31466
+ if (obj.path !== void 0) {
31467
+ if (typeof obj.path !== "string" || obj.path.trim().length === 0) {
31468
+ logWarning(`Invalid results.path in ${configPath}, expected non-empty string`);
31469
+ return void 0;
31470
+ }
31471
+ const trimmedPath = obj.path.trim();
31472
+ if (!isFilesystemPath(trimmedPath)) {
31473
+ logWarning(
31474
+ `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.`
31475
+ );
31476
+ return void 0;
31477
+ }
31478
+ resultsPath = trimmedPath;
31477
31479
  }
31478
31480
  if (obj.auto_push !== void 0 && typeof obj.auto_push !== "boolean") {
31479
- logWarning(`Invalid results.export.auto_push in ${configPath}, expected boolean`);
31481
+ logWarning(`Invalid results.auto_push in ${configPath}, expected boolean`);
31480
31482
  return void 0;
31481
31483
  }
31482
31484
  let branchPrefix;
31483
31485
  if (obj.branch_prefix !== void 0) {
31484
31486
  if (typeof obj.branch_prefix !== "string" || obj.branch_prefix.trim().length === 0) {
31485
- logWarning(
31486
- `Invalid results.export.branch_prefix in ${configPath}, expected non-empty string`
31487
- );
31487
+ logWarning(`Invalid results.branch_prefix in ${configPath}, expected non-empty string`);
31488
31488
  return void 0;
31489
31489
  }
31490
31490
  branchPrefix = obj.branch_prefix.trim();
31491
31491
  }
31492
31492
  return {
31493
+ mode: "github",
31493
31494
  repo,
31494
- path: exportPath,
31495
+ ...resultsPath !== void 0 && { path: resultsPath },
31495
31496
  ...typeof obj.auto_push === "boolean" && { auto_push: obj.auto_push },
31496
31497
  ...branchPrefix && { branch_prefix: branchPrefix }
31497
31498
  };
@@ -34149,7 +34150,7 @@ async function loadTestSuite(evalFilePath, repoRoot, options) {
34149
34150
  return { tests: await loadTestsFromAgentSkills(evalFilePath) };
34150
34151
  }
34151
34152
  if (format === "typescript") {
34152
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-JL5DGTJL-U5LTKGOE.js");
34153
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3-GA7B5N26.js");
34153
34154
  return loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
34154
34155
  }
34155
34156
  const { tests, parsed, suiteWorkspacePath } = await loadTestsFromYaml(
@@ -34184,7 +34185,7 @@ async function loadTests(evalFilePath, repoRoot, options) {
34184
34185
  return loadTestsFromAgentSkills(evalFilePath);
34185
34186
  }
34186
34187
  if (format === "typescript") {
34187
- const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-JL5DGTJL-U5LTKGOE.js");
34188
+ const { loadTsEvalSuite: loadTsEvalSuite2 } = await import("./ts-eval-loader-XR6DNOZ3-GA7B5N26.js");
34188
34189
  const suite = await loadTsEvalSuite2(evalFilePath, resolveToAbsolutePath(repoRoot), options);
34189
34190
  return suite.tests;
34190
34191
  }
@@ -38084,4 +38085,4 @@ export {
38084
38085
  loadTsEvalFile,
38085
38086
  loadTsEvalSuite
38086
38087
  };
38087
- //# sourceMappingURL=chunk-L3FMZXCD.js.map
38088
+ //# sourceMappingURL=chunk-377GONL7.js.map