agentv 4.25.3-next.1 → 4.25.5-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 (29) hide show
  1. package/dist/{agentv-provider-MUIGGIP3-QCGXJ3CT.js → agentv-provider-7AMUD2GX-SDILCAKJ.js} +2 -2
  2. package/dist/{artifact-writer-ARFT3NKG.js → artifact-writer-EX6SOLA5.js} +5 -5
  3. package/dist/{chunk-GKARL6LO.js → chunk-A5INWVY3.js} +3 -3
  4. package/dist/{chunk-7QHCH76N.js → chunk-NLS5DS52.js} +2 -2
  5. package/dist/{chunk-YKILE6GM.js → chunk-WQTBGQ3M.js} +34 -13
  6. package/dist/chunk-WQTBGQ3M.js.map +1 -0
  7. package/dist/{chunk-TCW46QGJ.js → chunk-XUJ3ATR2.js} +16 -12
  8. package/dist/{chunk-TCW46QGJ.js.map → chunk-XUJ3ATR2.js.map} +1 -1
  9. package/dist/{chunk-55QZVA5X.js → chunk-XVFU4XKT.js} +21 -12
  10. package/dist/chunk-XVFU4XKT.js.map +1 -0
  11. package/dist/{chunk-FFDOEJ4U.js → chunk-ZGEGRM5T.js} +19 -19
  12. package/dist/chunk-ZGEGRM5T.js.map +1 -0
  13. package/dist/cli.js +6 -6
  14. package/dist/{dist-NRGR7DDX.js → dist-SGFUYCY5.js} +4 -4
  15. package/dist/index.js +6 -6
  16. package/dist/{interactive-GZ22O32V.js → interactive-FMDTIIH7.js} +6 -6
  17. package/dist/templates/.agentv/targets.yaml +1 -1
  18. package/dist/{ts-eval-loader-E6MROJGR-DBF6BDCY.js → ts-eval-loader-E6N374V2-VMFNVF5J.js} +3 -3
  19. package/package.json +1 -1
  20. package/dist/chunk-55QZVA5X.js.map +0 -1
  21. package/dist/chunk-FFDOEJ4U.js.map +0 -1
  22. package/dist/chunk-YKILE6GM.js.map +0 -1
  23. /package/dist/{agentv-provider-MUIGGIP3-QCGXJ3CT.js.map → agentv-provider-7AMUD2GX-SDILCAKJ.js.map} +0 -0
  24. /package/dist/{artifact-writer-ARFT3NKG.js.map → artifact-writer-EX6SOLA5.js.map} +0 -0
  25. /package/dist/{chunk-GKARL6LO.js.map → chunk-A5INWVY3.js.map} +0 -0
  26. /package/dist/{chunk-7QHCH76N.js.map → chunk-NLS5DS52.js.map} +0 -0
  27. /package/dist/{dist-NRGR7DDX.js.map → dist-SGFUYCY5.js.map} +0 -0
  28. /package/dist/{interactive-GZ22O32V.js.map → interactive-FMDTIIH7.js.map} +0 -0
  29. /package/dist/{ts-eval-loader-E6MROJGR-DBF6BDCY.js.map → ts-eval-loader-E6N374V2-VMFNVF5J.js.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
2
2
  import {
3
3
  AgentvProvider
4
- } from "./chunk-55QZVA5X.js";
4
+ } from "./chunk-XVFU4XKT.js";
5
5
  import "./chunk-5H446C7X.js";
6
6
  export {
7
7
  AgentvProvider
8
8
  };
9
- //# sourceMappingURL=agentv-provider-MUIGGIP3-QCGXJ3CT.js.map
9
+ //# sourceMappingURL=agentv-provider-7AMUD2GX-SDILCAKJ.js.map
@@ -13,13 +13,13 @@ import {
13
13
  writeArtifacts,
14
14
  writeArtifactsFromResults,
15
15
  writePerTestArtifacts
16
- } from "./chunk-GKARL6LO.js";
17
- import "./chunk-7QHCH76N.js";
16
+ } from "./chunk-A5INWVY3.js";
17
+ import "./chunk-NLS5DS52.js";
18
18
  import "./chunk-QOBQ5XYF.js";
19
19
  import "./chunk-BPGJ4HBU.js";
20
- import "./chunk-FFDOEJ4U.js";
20
+ import "./chunk-ZGEGRM5T.js";
21
21
  import "./chunk-NPVGBFF6.js";
22
- import "./chunk-55QZVA5X.js";
22
+ import "./chunk-XVFU4XKT.js";
23
23
  import "./chunk-5H446C7X.js";
24
24
  export {
25
25
  aggregateRunDir,
@@ -36,4 +36,4 @@ export {
36
36
  writeArtifactsFromResults,
37
37
  writePerTestArtifacts
38
38
  };
39
- //# sourceMappingURL=artifact-writer-ARFT3NKG.js.map
39
+ //# sourceMappingURL=artifact-writer-EX6SOLA5.js.map
@@ -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-7QHCH76N.js";
4
+ } from "./chunk-NLS5DS52.js";
5
5
  import {
6
6
  DEFAULT_THRESHOLD
7
- } from "./chunk-FFDOEJ4U.js";
7
+ } from "./chunk-ZGEGRM5T.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-GKARL6LO.js.map
693
+ //# sourceMappingURL=chunk-A5INWVY3.js.map
@@ -12,7 +12,7 @@ import {
12
12
  parseYamlValue,
13
13
  toCamelCaseDeep,
14
14
  toSnakeCaseDeep
15
- } from "./chunk-FFDOEJ4U.js";
15
+ } from "./chunk-ZGEGRM5T.js";
16
16
 
17
17
  // ../../packages/core/dist/index.js
18
18
  import { readFileSync } from "node:fs";
@@ -2304,4 +2304,4 @@ export {
2304
2304
  TranscriptProvider,
2305
2305
  createAgentKernel
2306
2306
  };
2307
- //# sourceMappingURL=chunk-7QHCH76N.js.map
2307
+ //# sourceMappingURL=chunk-NLS5DS52.js.map
@@ -15,7 +15,7 @@ import {
15
15
  resolveWorkspaceOrFilePath,
16
16
  toSnakeCaseDeep,
17
17
  writeArtifactsFromResults
18
- } from "./chunk-GKARL6LO.js";
18
+ } from "./chunk-A5INWVY3.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-7QHCH76N.js";
31
+ } from "./chunk-NLS5DS52.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-FFDOEJ4U.js";
63
+ } from "./chunk-ZGEGRM5T.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.3-next.1",
179
+ version: "4.25.5-next.1",
180
180
  description: "CLI entry point for AgentV",
181
181
  type: "module",
182
182
  repository: {
@@ -297,7 +297,10 @@ import { spawn } from "node:child_process";
297
297
  import { existsSync } from "node:fs";
298
298
  import { get } from "node:https";
299
299
  import { basename, dirname, join, win32 } from "node:path";
300
- var NPM_REGISTRY_URL = "https://registry.npmjs.org/agentv/latest";
300
+ var NPM_REGISTRY_BASE = "https://registry.npmjs.org/agentv/";
301
+ function getDistTagForVersion(version) {
302
+ return version.includes("-") ? "next" : "latest";
303
+ }
301
304
  function detectPackageManagerFromPath(scriptPath) {
302
305
  if (scriptPath.includes(".bun")) {
303
306
  return "bun";
@@ -341,9 +344,9 @@ function runCommand(cmd, args) {
341
344
  child.on("close", (code) => resolve({ exitCode: code ?? 1, stdout }));
342
345
  });
343
346
  }
344
- function fetchLatestVersion() {
347
+ function fetchLatestVersion(distTag = "latest") {
345
348
  return new Promise((resolve) => {
346
- const req = get(NPM_REGISTRY_URL, { timeout: 5e3 }, (res) => {
349
+ const req = get(`${NPM_REGISTRY_BASE}${distTag}`, { timeout: 5e3 }, (res) => {
347
350
  if (res.statusCode !== 200) {
348
351
  res.resume();
349
352
  resolve(null);
@@ -404,7 +407,7 @@ function resolvePackageManagerCommand(pm, args, options) {
404
407
  async function performSelfUpdate(options) {
405
408
  const pm = options?.pm ?? detectPackageManager();
406
409
  const currentVersion = options?.currentVersion ?? "unknown";
407
- const versionSpec = options?.versionRange ?? "latest";
410
+ const versionSpec = options?.versionRange ?? getDistTagForVersion(currentVersion === "unknown" ? "" : currentVersion);
408
411
  const scope = options?.scope ?? detectInstallScope();
409
412
  const args = getInstallArgs(pm, versionSpec, scope);
410
413
  const command = resolvePackageManagerCommand(pm, args);
@@ -3698,7 +3701,6 @@ var AZURE_SETTINGS = /* @__PURE__ */ new Set([
3698
3701
  "model",
3699
3702
  "version",
3700
3703
  "api_version",
3701
- "api_format",
3702
3704
  "temperature",
3703
3705
  "max_output_tokens"
3704
3706
  ]);
@@ -3878,6 +3880,15 @@ function validateUnknownSettings(target, provider, absolutePath, location, error
3878
3880
  "targets"
3879
3881
  ]);
3880
3882
  const removedFields = /* @__PURE__ */ new Set(["workspace_template", "workspaceTemplate"]);
3883
+ const removedPerProvider = {
3884
+ azure: /* @__PURE__ */ new Map([
3885
+ [
3886
+ "api_format",
3887
+ "The 'api_format' field is no longer supported on Azure targets. AgentV always uses Azure's Responses API (`/openai/v1/responses`). If your deployment only exposes /chat/completions, use 'provider: openai' with a deployment-scoped 'base_url' instead."
3888
+ ]
3889
+ ])
3890
+ };
3891
+ const removedForProvider = removedPerProvider[provider];
3881
3892
  for (const key of Object.keys(target)) {
3882
3893
  if (removedFields.has(key)) {
3883
3894
  errors.push({
@@ -3888,6 +3899,15 @@ function validateUnknownSettings(target, provider, absolutePath, location, error
3888
3899
  });
3889
3900
  continue;
3890
3901
  }
3902
+ if (removedForProvider?.has(key)) {
3903
+ errors.push({
3904
+ severity: "error",
3905
+ filePath: absolutePath,
3906
+ location: `${location}.${key}`,
3907
+ message: removedForProvider.get(key)
3908
+ });
3909
+ continue;
3910
+ }
3891
3911
  if (!baseFields.has(key) && !knownSettings.has(key)) {
3892
3912
  errors.push({
3893
3913
  severity: "warning",
@@ -5434,7 +5454,7 @@ async function runEvalCommand(input) {
5434
5454
  const useFileExport = !!options.otelFile;
5435
5455
  if (options.exportOtel || useFileExport) {
5436
5456
  try {
5437
- const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-NRGR7DDX.js");
5457
+ const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-SGFUYCY5.js");
5438
5458
  let endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;
5439
5459
  let headers = {};
5440
5460
  if (options.otelBackend) {
@@ -5633,7 +5653,7 @@ async function runEvalCommand(input) {
5633
5653
  const activeTestFiles = resolvedTestFiles.filter((f) => fileMetadata.has(f));
5634
5654
  let transcriptProviderFactory;
5635
5655
  if (options.transcript) {
5636
- const { TranscriptProvider } = await import("./dist-NRGR7DDX.js");
5656
+ const { TranscriptProvider } = await import("./dist-SGFUYCY5.js");
5637
5657
  const transcriptProvider = await TranscriptProvider.fromFile(options.transcript);
5638
5658
  const totalTests = [...fileMetadata.values()].reduce(
5639
5659
  (sum, meta) => sum + meta.testCases.length,
@@ -5802,7 +5822,7 @@ async function runEvalCommand(input) {
5802
5822
  if (usesDefaultArtifactWorkspace && allResults.length > 0) {
5803
5823
  const evalFile = activeTestFiles.length === 1 ? activeTestFiles[0] : "";
5804
5824
  if (isResumeAppend) {
5805
- const { writePerTestArtifacts } = await import("./artifact-writer-ARFT3NKG.js");
5825
+ const { writePerTestArtifacts } = await import("./artifact-writer-EX6SOLA5.js");
5806
5826
  await writePerTestArtifacts(allResults, runDir, {
5807
5827
  experiment: normalizeExperimentName(options.experiment)
5808
5828
  });
@@ -5985,6 +6005,7 @@ export {
5985
6005
  loadManifestResults,
5986
6006
  loadLightweightResults,
5987
6007
  HtmlWriter,
6008
+ getDistTagForVersion,
5988
6009
  detectPackageManager,
5989
6010
  detectInstallScope,
5990
6011
  fetchLatestVersion,
@@ -6025,4 +6046,4 @@ export {
6025
6046
  getCategories,
6026
6047
  filterByCategory
6027
6048
  };
6028
- //# sourceMappingURL=chunk-YKILE6GM.js.map
6049
+ //# sourceMappingURL=chunk-WQTBGQ3M.js.map