nexus-agents 3.9.4 → 3.9.5

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.
@@ -52,7 +52,7 @@ import {
52
52
  } from "./chunk-OQLFRJCW.js";
53
53
 
54
54
  // src/version.ts
55
- var VERSION = true ? "3.9.4" : "dev";
55
+ var VERSION = true ? "3.9.5" : "dev";
56
56
 
57
57
  // src/config/schemas-core.ts
58
58
  import { z } from "zod";
@@ -1560,7 +1560,7 @@ function formatCapacity(capacity) {
1560
1560
  }
1561
1561
  function printInstalledCliDetails(cli) {
1562
1562
  writeLine(` Version: ${cli.version} (${formatVersionStatus(cli.versionStatus)})`);
1563
- const authText = cli.authenticated ? `${colors.green}${cli.authMethod ?? "Authenticated"}${colors.reset}` : `${colors.red}Not authenticated${colors.reset}`;
1563
+ const authText = cli.authState === "authenticated" ? `${colors.green}${cli.authMethod ?? "Authenticated"}${colors.reset}` : cli.authState === "unverified" ? `${colors.yellow}unverified (no non-interactive auth check)${colors.reset}` : `${colors.red}Not authenticated${colors.reset}`;
1564
1564
  writeLine(` Auth: ${authText}`);
1565
1565
  if (cli.capacity !== void 0) {
1566
1566
  writeLine(` Capacity: ${formatCapacity(cli.capacity)}`);
@@ -1979,6 +1979,10 @@ function getFixCommand(name, issue) {
1979
1979
  function createNotFoundResult(name, errorMsg) {
1980
1980
  return {
1981
1981
  name,
1982
+ // Not installed, so auth was never probed. `not-authenticated` would claim
1983
+ // a determination nobody made; the auth line is not printed for an
1984
+ // uninstalled CLI anyway (#4661).
1985
+ authState: "unverified",
1982
1986
  installed: false,
1983
1987
  version: "N/A",
1984
1988
  versionStatus: "unsupported",
@@ -1996,15 +2000,21 @@ function detectAuthMethod(name) {
1996
2000
  };
1997
2001
  return authMethods[name];
1998
2002
  }
2003
+ function resolveAuthState(authenticated, probeState) {
2004
+ if (authenticated) return "authenticated";
2005
+ return probeState === "unknown" ? "unverified" : "not-authenticated";
2006
+ }
1999
2007
  function createHealthyResult(name, health, authProbe, capacity) {
2000
2008
  const versionOk = health.healthy;
2001
2009
  const authenticated = versionOk && authProbe.state === "authenticated";
2010
+ const authState = resolveAuthState(authenticated, authProbe.state);
2002
2011
  const result = {
2003
2012
  name,
2004
2013
  installed: true,
2005
2014
  version: health.version,
2006
2015
  versionStatus: health.versionStatus,
2007
2016
  authenticated,
2017
+ authState,
2008
2018
  ...authenticated && { authMethod: detectAuthMethod(name) },
2009
2019
  ...capacity !== void 0 && { capacity }
2010
2020
  };
@@ -2018,7 +2028,7 @@ function createHealthyResult(name, health, authProbe, capacity) {
2018
2028
  fix: authProbe.fixCommand
2019
2029
  };
2020
2030
  }
2021
- if (!authenticated) {
2031
+ if (authState === "not-authenticated") {
2022
2032
  return { ...result, fix: getFixCommand(name, "auth") };
2023
2033
  }
2024
2034
  if (health.versionStatus === "outdated") {
@@ -2324,7 +2334,7 @@ async function runDoctorFix(result) {
2324
2334
  writeLine2("\u2500".repeat(40));
2325
2335
  let fixCount = 0;
2326
2336
  if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
2327
- const { runSetup } = await import("./setup-command-QI3LDW4D.js");
2337
+ const { runSetup } = await import("./setup-command-EJFRH3LH.js");
2328
2338
  const setupResult = runSetup({
2329
2339
  skipMcp: true,
2330
2340
  skipRules: true,
@@ -2437,4 +2447,4 @@ export {
2437
2447
  startStdioServer,
2438
2448
  closeServer
2439
2449
  };
2440
- //# sourceMappingURL=chunk-KBX4JSBE.js.map
2450
+ //# sourceMappingURL=chunk-JB3ZZ3Y2.js.map