@evident-ai/cli 3.1.1-dev.993411a → 3.1.1-dev.a99e616

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.
package/dist/index.js CHANGED
@@ -645,11 +645,7 @@ var EventTypes = {
645
645
  // CLI lifecycle
646
646
  CLI_STARTED: "cli.started",
647
647
  CLI_COMMAND: "cli.command",
648
- CLI_ERROR: "cli.error",
649
- // Deprecation telemetry (#412) — usage of the old `--agent`/`EVIDENT_AGENT_KEY`
650
- // names instead of the preferred `--runner`/`EVIDENT_RUNNER_KEY` (#409).
651
- DEPRECATED_AGENT_FLAG_USED: "cli.deprecated_agent_flag_used",
652
- DEPRECATED_AGENT_KEY_ENV_USED: "cli.deprecated_agent_key_env_used"
648
+ CLI_ERROR: "cli.error"
653
649
  };
654
650
 
655
651
  // src/lib/auth.ts
@@ -660,12 +656,11 @@ async function getAuthCredentials() {
660
656
  return {
661
657
  token: runnerKey,
662
658
  authType: "agent_key",
663
- keySource: "runner_key",
664
659
  notice: agentKey ? "Both EVIDENT_RUNNER_KEY and EVIDENT_AGENT_KEY are set; using EVIDENT_RUNNER_KEY." : void 0
665
660
  };
666
661
  }
667
662
  if (agentKey) {
668
- return { token: agentKey, authType: "agent_key", keySource: "agent_key" };
663
+ return { token: agentKey, authType: "agent_key" };
669
664
  }
670
665
  const userToken = process.env.EVIDENT_TOKEN;
671
666
  if (userToken) {
@@ -4719,19 +4714,6 @@ async function run(options) {
4719
4714
  sessionCleanupTimers: [],
4720
4715
  authHeader: ""
4721
4716
  };
4722
- if (!options.runner && options.agent) {
4723
- telemetry.info(
4724
- EventTypes.DEPRECATED_AGENT_FLAG_USED,
4725
- "Deprecated --agent flag used instead of --runner",
4726
- { command: "run" },
4727
- state.agentId
4728
- );
4729
- const agentFlagNotice = "--agent is deprecated, use --runner instead; will be removed in a future release.";
4730
- log2(state, agentFlagNotice, "warn");
4731
- if (state.interactive && !state.json) {
4732
- logActivity(state, { type: "info", level: "warn", message: agentFlagNotice });
4733
- }
4734
- }
4735
4717
  if (state.idleTimeout === null && (process.env.GITHUB_ACTIONS || process.env.CI)) {
4736
4718
  log2(
4737
4719
  state,
@@ -4782,19 +4764,6 @@ async function run(options) {
4782
4764
  logActivity(state, { type: "info", level: "warn", message: credentials2.notice });
4783
4765
  }
4784
4766
  }
4785
- if (credentials2.keySource === "agent_key") {
4786
- telemetry.info(
4787
- EventTypes.DEPRECATED_AGENT_KEY_ENV_USED,
4788
- "Deprecated EVIDENT_AGENT_KEY env var used instead of EVIDENT_RUNNER_KEY",
4789
- { command: "run" },
4790
- state.agentId
4791
- );
4792
- const agentKeyNotice = "EVIDENT_AGENT_KEY is deprecated, use EVIDENT_RUNNER_KEY instead; will be removed in a future release.";
4793
- log2(state, agentKeyNotice, "warn");
4794
- if (state.interactive && !state.json) {
4795
- logActivity(state, { type: "info", level: "warn", message: agentKeyNotice });
4796
- }
4797
- }
4798
4767
  if (!state.agentId) {
4799
4768
  if (credentials2.authType === "agent_key") {
4800
4769
  const resolved = await resolveAgentIdFromKey(state.authHeader);