agentv 4.25.1 → 4.25.3-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 (52) hide show
  1. package/dist/{agentv-provider-TXM4UEUT-SUZSAXWZ.js → agentv-provider-MUIGGIP3-QCGXJ3CT.js} +2 -2
  2. package/dist/{artifact-writer-HGCLGCCA.js → artifact-writer-ARFT3NKG.js} +5 -7
  3. package/dist/chunk-55QZVA5X.js +616 -0
  4. package/dist/chunk-55QZVA5X.js.map +1 -0
  5. package/dist/{chunk-5Z3QIGCT.js → chunk-7QHCH76N.js} +11 -15
  6. package/dist/chunk-7QHCH76N.js.map +1 -0
  7. package/dist/{chunk-BTHPLK43.js → chunk-FFDOEJ4U.js} +18334 -14538
  8. package/dist/chunk-FFDOEJ4U.js.map +1 -0
  9. package/dist/{chunk-VBMGJOS6.js → chunk-GKARL6LO.js} +3 -3
  10. package/dist/{chunk-BAUNAXHT.js → chunk-HSHTTN6C.js} +6 -6
  11. package/dist/{chunk-SR4I5KET.js → chunk-R3CXYNTN.js} +8 -8
  12. package/dist/{chunk-ZQ5YI3RR.js → chunk-TCW46QGJ.js} +6 -6
  13. package/dist/{chunk-AWSSD3XU.js → chunk-YKILE6GM.js} +27 -12
  14. package/dist/chunk-YKILE6GM.js.map +1 -0
  15. package/dist/cli.js +6 -8
  16. package/dist/cli.js.map +1 -1
  17. package/dist/{dist-ACKVXAB3.js → dist-NRGR7DDX.js} +4 -6
  18. package/dist/{esm-UYZ3HJBU.js → esm-NNMQYIKT.js} +4 -4
  19. package/dist/{esm-QNEMCJPL.js → esm-TTEMJEVV.js} +3 -3
  20. package/dist/{esm-ZADQ4XQH-5LX2IKZV.js → esm-ZADQ4XQH-QUFGGZL4.js} +8 -8
  21. package/dist/index.js +6 -8
  22. package/dist/{interactive-A42HOUBD.js → interactive-GZ22O32V.js} +6 -8
  23. package/dist/{interactive-A42HOUBD.js.map → interactive-GZ22O32V.js.map} +1 -1
  24. package/dist/{src-PXDA7QIS.js → src-76ISS3LH.js} +9 -9
  25. package/dist/templates/.agentv/targets.yaml +31 -0
  26. package/dist/{ts-eval-loader-4CFPGHGT-CVAN5S2D.js → ts-eval-loader-E6MROJGR-DBF6BDCY.js} +3 -5
  27. package/package.json +2 -2
  28. package/dist/chunk-5Z3QIGCT.js.map +0 -1
  29. package/dist/chunk-AWSSD3XU.js.map +0 -1
  30. package/dist/chunk-BTHPLK43.js.map +0 -1
  31. package/dist/chunk-HQDCIXVH.js +0 -51
  32. package/dist/chunk-HQDCIXVH.js.map +0 -1
  33. package/dist/chunk-JFD3TI3N.js +0 -456
  34. package/dist/chunk-JFD3TI3N.js.map +0 -1
  35. package/dist/chunk-ZKO2LGRR.js +0 -25365
  36. package/dist/chunk-ZKO2LGRR.js.map +0 -1
  37. package/dist/token-OWTDW6LT.js +0 -66
  38. package/dist/token-OWTDW6LT.js.map +0 -1
  39. package/dist/token-util-S5R2C23V.js +0 -8
  40. package/dist/ts-eval-loader-4CFPGHGT-CVAN5S2D.js.map +0 -1
  41. /package/dist/{agentv-provider-TXM4UEUT-SUZSAXWZ.js.map → agentv-provider-MUIGGIP3-QCGXJ3CT.js.map} +0 -0
  42. /package/dist/{artifact-writer-HGCLGCCA.js.map → artifact-writer-ARFT3NKG.js.map} +0 -0
  43. /package/dist/{chunk-VBMGJOS6.js.map → chunk-GKARL6LO.js.map} +0 -0
  44. /package/dist/{chunk-BAUNAXHT.js.map → chunk-HSHTTN6C.js.map} +0 -0
  45. /package/dist/{chunk-SR4I5KET.js.map → chunk-R3CXYNTN.js.map} +0 -0
  46. /package/dist/{chunk-ZQ5YI3RR.js.map → chunk-TCW46QGJ.js.map} +0 -0
  47. /package/dist/{dist-ACKVXAB3.js.map → dist-NRGR7DDX.js.map} +0 -0
  48. /package/dist/{esm-UYZ3HJBU.js.map → esm-NNMQYIKT.js.map} +0 -0
  49. /package/dist/{esm-QNEMCJPL.js.map → esm-TTEMJEVV.js.map} +0 -0
  50. /package/dist/{esm-ZADQ4XQH-5LX2IKZV.js.map → esm-ZADQ4XQH-QUFGGZL4.js.map} +0 -0
  51. /package/dist/{src-PXDA7QIS.js.map → src-76ISS3LH.js.map} +0 -0
  52. /package/dist/{token-util-S5R2C23V.js.map → ts-eval-loader-E6MROJGR-DBF6BDCY.js.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
2
  import {
3
3
  toTranscriptJsonLines
4
- } from "./chunk-5Z3QIGCT.js";
4
+ } from "./chunk-7QHCH76N.js";
5
5
  import {
6
6
  DEFAULT_THRESHOLD
7
- } from "./chunk-BTHPLK43.js";
7
+ } from "./chunk-FFDOEJ4U.js";
8
8
 
9
9
  // src/commands/eval/artifact-writer.ts
10
10
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -690,4 +690,4 @@ export {
690
690
  writePerTestArtifacts,
691
691
  writeArtifactsFromResults
692
692
  };
693
- //# sourceMappingURL=chunk-VBMGJOS6.js.map
693
+ //# sourceMappingURL=chunk-GKARL6LO.js.map
@@ -3,7 +3,11 @@ import {
3
3
  SDK_INFO,
4
4
  getStringFromEnv,
5
5
  init_esm as init_esm3
6
- } from "./chunk-SR4I5KET.js";
6
+ } from "./chunk-R3CXYNTN.js";
7
+ import {
8
+ diag,
9
+ init_esm
10
+ } from "./chunk-LRULMAAA.js";
7
11
  import {
8
12
  ATTR_SERVICE_NAME,
9
13
  ATTR_TELEMETRY_SDK_LANGUAGE,
@@ -11,10 +15,6 @@ import {
11
15
  ATTR_TELEMETRY_SDK_VERSION,
12
16
  init_esm as init_esm2
13
17
  } from "./chunk-VQ2ZO7XJ.js";
14
- import {
15
- diag,
16
- init_esm
17
- } from "./chunk-LRULMAAA.js";
18
18
  import {
19
19
  __esm
20
20
  } from "./chunk-5H446C7X.js";
@@ -562,4 +562,4 @@ export {
562
562
  serviceInstanceIdDetector,
563
563
  init_esm4 as init_esm
564
564
  };
565
- //# sourceMappingURL=chunk-BAUNAXHT.js.map
565
+ //# sourceMappingURL=chunk-HSHTTN6C.js.map
@@ -1,11 +1,4 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
- import {
3
- ATTR_TELEMETRY_SDK_LANGUAGE,
4
- ATTR_TELEMETRY_SDK_NAME,
5
- ATTR_TELEMETRY_SDK_VERSION,
6
- TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
7
- init_esm as init_esm2
8
- } from "./chunk-VQ2ZO7XJ.js";
9
2
  import {
10
3
  DiagLogLevel,
11
4
  TraceFlags,
@@ -18,6 +11,13 @@ import {
18
11
  propagation,
19
12
  trace
20
13
  } from "./chunk-LRULMAAA.js";
14
+ import {
15
+ ATTR_TELEMETRY_SDK_LANGUAGE,
16
+ ATTR_TELEMETRY_SDK_NAME,
17
+ ATTR_TELEMETRY_SDK_VERSION,
18
+ TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,
19
+ init_esm as init_esm2
20
+ } from "./chunk-VQ2ZO7XJ.js";
21
21
  import {
22
22
  __esm,
23
23
  __export
@@ -1235,4 +1235,4 @@ export {
1235
1235
  esm_exports,
1236
1236
  init_esm3 as init_esm
1237
1237
  };
1238
- //# sourceMappingURL=chunk-SR4I5KET.js.map
1238
+ //# sourceMappingURL=chunk-R3CXYNTN.js.map
@@ -44,7 +44,7 @@ import {
44
44
  validateFileReferences,
45
45
  validateTargetsFile,
46
46
  validateWorkspacePaths
47
- } from "./chunk-AWSSD3XU.js";
47
+ } from "./chunk-YKILE6GM.js";
48
48
  import {
49
49
  RESULT_INDEX_FILENAME,
50
50
  aggregateRunDir,
@@ -52,7 +52,7 @@ import {
52
52
  resolveRunManifestPath,
53
53
  toSnakeCaseDeep as toSnakeCaseDeep2,
54
54
  writeArtifactsFromResults
55
- } from "./chunk-VBMGJOS6.js";
55
+ } from "./chunk-GKARL6LO.js";
56
56
  import {
57
57
  DEFAULT_CATEGORY,
58
58
  addBenchmark,
@@ -71,7 +71,7 @@ import {
71
71
  toTranscriptJsonLines,
72
72
  transpileEvalYamlFile,
73
73
  trimBaselineResult
74
- } from "./chunk-5Z3QIGCT.js";
74
+ } from "./chunk-7QHCH76N.js";
75
75
  import {
76
76
  DEFAULT_THRESHOLD,
77
77
  createBuiltinRegistry,
@@ -101,7 +101,7 @@ import {
101
101
  runStartsWithAssertion,
102
102
  toCamelCaseDeep,
103
103
  toSnakeCaseDeep
104
- } from "./chunk-BTHPLK43.js";
104
+ } from "./chunk-FFDOEJ4U.js";
105
105
  import {
106
106
  __commonJS,
107
107
  __require,
@@ -3996,7 +3996,7 @@ var evalRunCommand = command({
3996
3996
  },
3997
3997
  handler: async (args) => {
3998
3998
  if (args.evalPaths.length === 0 && process.stdin.isTTY) {
3999
- const { launchInteractiveWizard } = await import("./interactive-A42HOUBD.js");
3999
+ const { launchInteractiveWizard } = await import("./interactive-GZ22O32V.js");
4000
4000
  await launchInteractiveWizard();
4001
4001
  return;
4002
4002
  }
@@ -11985,4 +11985,4 @@ export {
11985
11985
  preprocessArgv,
11986
11986
  runCli
11987
11987
  };
11988
- //# sourceMappingURL=chunk-ZQ5YI3RR.js.map
11988
+ //# sourceMappingURL=chunk-TCW46QGJ.js.map
@@ -15,7 +15,7 @@ import {
15
15
  resolveWorkspaceOrFilePath,
16
16
  toSnakeCaseDeep,
17
17
  writeArtifactsFromResults
18
- } from "./chunk-VBMGJOS6.js";
18
+ } from "./chunk-GKARL6LO.js";
19
19
  import {
20
20
  ResponseCache,
21
21
  RunBudgetTracker,
@@ -28,7 +28,7 @@ import {
28
28
  shouldEnableCache,
29
29
  shouldSkipCacheForTemperature,
30
30
  syncResultsRepo
31
- } from "./chunk-5Z3QIGCT.js";
31
+ } from "./chunk-7QHCH76N.js";
32
32
  import {
33
33
  CLI_PLACEHOLDERS,
34
34
  COMMON_TARGET_SETTINGS,
@@ -60,7 +60,7 @@ import {
60
60
  subscribeToCopilotSdkLogEntries,
61
61
  subscribeToPiLogEntries,
62
62
  toCamelCaseDeep
63
- } from "./chunk-BTHPLK43.js";
63
+ } from "./chunk-FFDOEJ4U.js";
64
64
 
65
65
  // src/commands/eval/shared.ts
66
66
  import { constants } from "node:fs";
@@ -176,7 +176,7 @@ async function findRepoRoot(start) {
176
176
  // package.json
177
177
  var package_default = {
178
178
  name: "agentv",
179
- version: "4.25.1",
179
+ version: "4.25.3-next.1",
180
180
  description: "CLI entry point for AgentV",
181
181
  type: "module",
182
182
  repository: {
@@ -204,11 +204,11 @@ var package_default = {
204
204
  "test:watch": "bun test --watch"
205
205
  },
206
206
  dependencies: {
207
- "@ai-sdk/openai": "^3.0.0",
208
207
  "@anthropic-ai/claude-agent-sdk": "^0.2.49",
209
208
  "@github/copilot-sdk": "^0.1.25",
210
209
  "@hono/node-server": "^1.19.11",
211
210
  "@inquirer/prompts": "^8.2.1",
211
+ "@mariozechner/pi-ai": "^0.72.1",
212
212
  "@openai/codex-sdk": "^0.104.0",
213
213
  "cmd-ts": "^0.14.3",
214
214
  dotenv: "^16.4.5",
@@ -307,9 +307,24 @@ function detectPackageManagerFromPath(scriptPath) {
307
307
  function detectPackageManager() {
308
308
  return detectPackageManagerFromPath(process.argv[1] ?? "");
309
309
  }
310
- function detectInstallScopeFromPath(scriptPath) {
311
- const hasSegment = scriptPath.includes("/node_modules/") || scriptPath.includes("\\node_modules\\");
312
- return hasSegment ? "local" : "global";
310
+ function detectInstallScopeFromPath(scriptPath, cwd = process.cwd()) {
311
+ const normalizedScriptPath = scriptPath.replace(/\\/g, "/");
312
+ const normalizedCwd = cwd.replace(/\\/g, "/");
313
+ if (!normalizedScriptPath.includes("/node_modules/")) {
314
+ return "global";
315
+ }
316
+ if (normalizedScriptPath.includes("/.npm/_npx/") || normalizedScriptPath.includes("/npm-cache/_npx/")) {
317
+ return "local";
318
+ }
319
+ const packageRoot = normalizedScriptPath.split("/node_modules/")[0];
320
+ if (!packageRoot) {
321
+ return "global";
322
+ }
323
+ const scriptPathComparable = process.platform === "win32" ? normalizedScriptPath.toLowerCase() : normalizedScriptPath;
324
+ const cwdComparable = process.platform === "win32" ? normalizedCwd.toLowerCase() : normalizedCwd;
325
+ const packageRootComparable = process.platform === "win32" ? packageRoot.toLowerCase() : packageRoot;
326
+ const projectOwnsPackage = cwdComparable === packageRootComparable || cwdComparable.startsWith(`${packageRootComparable}/`);
327
+ return projectOwnsPackage ? "local" : "global";
313
328
  }
314
329
  function detectInstallScope() {
315
330
  return detectInstallScopeFromPath(process.argv[1] ?? "");
@@ -5419,7 +5434,7 @@ async function runEvalCommand(input) {
5419
5434
  const useFileExport = !!options.otelFile;
5420
5435
  if (options.exportOtel || useFileExport) {
5421
5436
  try {
5422
- const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-ACKVXAB3.js");
5437
+ const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-NRGR7DDX.js");
5423
5438
  let endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;
5424
5439
  let headers = {};
5425
5440
  if (options.otelBackend) {
@@ -5618,7 +5633,7 @@ async function runEvalCommand(input) {
5618
5633
  const activeTestFiles = resolvedTestFiles.filter((f) => fileMetadata.has(f));
5619
5634
  let transcriptProviderFactory;
5620
5635
  if (options.transcript) {
5621
- const { TranscriptProvider } = await import("./dist-ACKVXAB3.js");
5636
+ const { TranscriptProvider } = await import("./dist-NRGR7DDX.js");
5622
5637
  const transcriptProvider = await TranscriptProvider.fromFile(options.transcript);
5623
5638
  const totalTests = [...fileMetadata.values()].reduce(
5624
5639
  (sum, meta) => sum + meta.testCases.length,
@@ -5787,7 +5802,7 @@ async function runEvalCommand(input) {
5787
5802
  if (usesDefaultArtifactWorkspace && allResults.length > 0) {
5788
5803
  const evalFile = activeTestFiles.length === 1 ? activeTestFiles[0] : "";
5789
5804
  if (isResumeAppend) {
5790
- const { writePerTestArtifacts } = await import("./artifact-writer-HGCLGCCA.js");
5805
+ const { writePerTestArtifacts } = await import("./artifact-writer-ARFT3NKG.js");
5791
5806
  await writePerTestArtifacts(allResults, runDir, {
5792
5807
  experiment: normalizeExperimentName(options.experiment)
5793
5808
  });
@@ -6010,4 +6025,4 @@ export {
6010
6025
  getCategories,
6011
6026
  filterByCategory
6012
6027
  };
6013
- //# sourceMappingURL=chunk-AWSSD3XU.js.map
6028
+ //# sourceMappingURL=chunk-YKILE6GM.js.map