agentv 3.2.0 → 3.2.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.
@@ -25,12 +25,12 @@ import {
25
25
  subscribeToCopilotCliLogEntries,
26
26
  subscribeToCopilotSdkLogEntries,
27
27
  subscribeToPiLogEntries
28
- } from "./chunk-OR4WXZAF.js";
28
+ } from "./chunk-QHH6QXNY.js";
29
29
 
30
30
  // package.json
31
31
  var package_default = {
32
32
  name: "agentv",
33
- version: "3.2.0",
33
+ version: "3.2.1",
34
34
  description: "CLI entry point for AgentV",
35
35
  type: "module",
36
36
  repository: {
@@ -3634,6 +3634,21 @@ function createDisplayIdTracker() {
3634
3634
  }
3635
3635
  };
3636
3636
  }
3637
+ function extractModelName(target) {
3638
+ if (target.kind === "azure") {
3639
+ return target.config.deploymentName;
3640
+ }
3641
+ if ("model" in target.config && typeof target.config.model === "string") {
3642
+ return target.config.model;
3643
+ }
3644
+ return void 0;
3645
+ }
3646
+ function buildTargetLabelSuffix(providerLabel, target) {
3647
+ const parts = [`provider=${providerLabel}`];
3648
+ const model = extractModelName(target);
3649
+ if (model) parts.push(`model=${model}`);
3650
+ return `[${parts.join(", ")}]`;
3651
+ }
3637
3652
  function applyVerboseOverride(selection, cliVerbose) {
3638
3653
  const { resolvedTarget } = selection;
3639
3654
  if (resolvedTarget.kind !== "cli") {
@@ -3691,7 +3706,7 @@ async function prepareFileMetadata(params) {
3691
3706
  const providerLabel = options.dryRun ? `${sel.resolvedTarget.kind} (dry-run)` : sel.resolvedTarget.kind;
3692
3707
  return {
3693
3708
  selection: sel,
3694
- inlineTargetLabel: `${sel.targetName} [provider=${providerLabel}]`
3709
+ inlineTargetLabel: `${sel.targetName} ${buildTargetLabelSuffix(providerLabel, sel.resolvedTarget)}`
3695
3710
  };
3696
3711
  });
3697
3712
  } else {
@@ -3711,7 +3726,7 @@ async function prepareFileMetadata(params) {
3711
3726
  selections = [
3712
3727
  {
3713
3728
  selection,
3714
- inlineTargetLabel: `${selection.targetName} [provider=${providerLabel}]`
3729
+ inlineTargetLabel: `${selection.targetName} ${buildTargetLabelSuffix(providerLabel, selection.resolvedTarget)}`
3715
3730
  }
3716
3731
  ];
3717
3732
  }
@@ -3765,7 +3780,7 @@ async function runSingleEvalFile(params) {
3765
3780
  await ensureFileExists(testFilePath, "Test file");
3766
3781
  const resolvedTargetSelection = applyVerboseOverride(selection, options.verbose);
3767
3782
  const providerLabel = options.dryRun ? `${resolvedTargetSelection.resolvedTarget.kind} (dry-run)` : resolvedTargetSelection.resolvedTarget.kind;
3768
- const targetMessage = options.verbose ? `Using target (${resolvedTargetSelection.targetSource}): ${resolvedTargetSelection.targetName} [provider=${providerLabel}] via ${resolvedTargetSelection.targetsFilePath}` : `Using target: ${inlineTargetLabel}`;
3783
+ const targetMessage = options.verbose ? `Using target (${resolvedTargetSelection.targetSource}): ${resolvedTargetSelection.targetName} ${buildTargetLabelSuffix(providerLabel, resolvedTargetSelection.resolvedTarget)} via ${resolvedTargetSelection.targetsFilePath}` : `Using target: ${inlineTargetLabel}`;
3769
3784
  if (!progressReporter.isInteractive || options.verbose) {
3770
3785
  console.log(targetMessage);
3771
3786
  }
@@ -3923,7 +3938,7 @@ async function runEvalCommand(input) {
3923
3938
  const useFileExport = !!(options.otelFile || options.traceFile);
3924
3939
  if (options.exportOtel || useFileExport) {
3925
3940
  try {
3926
- const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-3BMOAU4X.js");
3941
+ const { OtelTraceExporter, OTEL_BACKEND_PRESETS } = await import("./dist-NOJMJ5CF.js");
3927
3942
  let endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT;
3928
3943
  let headers = {};
3929
3944
  if (options.otelBackend) {
@@ -4245,4 +4260,4 @@ export {
4245
4260
  selectTarget,
4246
4261
  runEvalCommand
4247
4262
  };
4248
- //# sourceMappingURL=chunk-PCQA43SA.js.map
4263
+ //# sourceMappingURL=chunk-QZRZDCHV.js.map