panopticon-cli 0.6.1 → 0.6.3

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.
@@ -18,9 +18,9 @@
18
18
  }
19
19
  })();
20
20
  </script>
21
- <script type="module" crossorigin src="/assets/index-BCLmEMRf.js"></script>
21
+ <script type="module" crossorigin src="/assets/index-DuamiNtC.js"></script>
22
22
  <link rel="modulepreload" crossorigin href="/assets/chunk-BEqpzyXh.js">
23
- <link rel="stylesheet" crossorigin href="/assets/index-BEdq7CFf.css">
23
+ <link rel="stylesheet" crossorigin href="/assets/index-CpSmB2ts.css">
24
24
  </head>
25
25
  <body>
26
26
  <div id="root"></div>
@@ -21168,10 +21168,8 @@ async function getClaudeAuthStatus() {
21168
21168
  const oauth = JSON.parse(raw).claudeAiOauth ?? {};
21169
21169
  if (oauth.accessToken) {
21170
21170
  expiresAt = typeof oauth.expiresAt === "number" ? oauth.expiresAt : null;
21171
- if (expiresAt && expiresAt < Date.now()) {
21172
- expired = true;
21173
- loggedIn = false;
21174
- } else loggedIn = true;
21171
+ expired = !!(expiresAt && expiresAt < Date.now());
21172
+ loggedIn = true;
21175
21173
  subscriptionType = typeof oauth.subscriptionType === "string" ? oauth.subscriptionType : null;
21176
21174
  rateLimitTier = typeof oauth.rateLimitTier === "string" ? oauth.rateLimitTier : null;
21177
21175
  }
@@ -22473,8 +22471,16 @@ const getTrackerStatusRoute = HttpRouter.add("GET", "/api/tracker-status", Effec
22473
22471
  rally: "Rally"
22474
22472
  };
22475
22473
  const configured = [];
22474
+ const cfgs = listProjects().map((p) => p.config);
22475
+ const trackerHasProjects = {
22476
+ linear: cfgs.some((c) => !!c.linear_project),
22477
+ github: cfgs.some((c) => !!c.github_repo),
22478
+ rally: cfgs.some((c) => !!c.rally_project),
22479
+ gitlab: cfgs.some((c) => !!c.gitlab_repo)
22480
+ };
22476
22481
  const trackersToCheck = [primary, secondary].filter(Boolean);
22477
22482
  for (const trackerType of trackersToCheck) {
22483
+ if (trackerHasProjects[trackerType] === false) continue;
22478
22484
  const envVar = trackerEnvVars[trackerType] || `${trackerType.toUpperCase()}_API_KEY`;
22479
22485
  const hasEnvKey = !!process.env[envVar];
22480
22486
  const hasConfigKey = !!(yamlConfig.trackerKeys || {})[trackerType];