@candledottv/cli 0.8.2 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.js +28 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -19175,10 +19175,12 @@ async function executionStatus(cfg, doFetch) {
19175
19175
  ["tier", tier],
19176
19176
  ["limits", limits]
19177
19177
  ].filter(([, r]) => !r.ok);
19178
+ const tierBody = tier.ok ? tier.body : undefined;
19178
19179
  return {
19179
19180
  text: JSON.stringify({
19180
19181
  success: true,
19181
19182
  ready: unreadable.length === 0 ? true : undefined,
19183
+ notice: tierBody?.maxExpired ? tierBody.maxExpiredNotice : undefined,
19182
19184
  unreadable: unreadable.length > 0 ? unreadable.map(([name]) => name) : undefined,
19183
19185
  wallets: wallets2.body,
19184
19186
  tier: tier.body,
@@ -19545,7 +19547,7 @@ var init_tools = __esm(() => {
19545
19547
  });
19546
19548
 
19547
19549
  // ../mcp/src/version.ts
19548
- var SERVER_VERSION = "0.6.2";
19550
+ var SERVER_VERSION = "0.6.3";
19549
19551
 
19550
19552
  // ../mcp/src/server.ts
19551
19553
  var exports_server = {};
@@ -20258,7 +20260,7 @@ async function resolveApiKey(deps, profile) {
20258
20260
  }
20259
20261
 
20260
20262
  // src/version.ts
20261
- var CLI_VERSION = "0.8.2";
20263
+ var CLI_VERSION = "0.8.3";
20262
20264
 
20263
20265
  // src/commands/auth.ts
20264
20266
  var DEVICE_CODE_PATH = "/api/v1/agent/device/code";
@@ -20735,6 +20737,30 @@ async function doctor(args, ctx) {
20735
20737
  passDetail
20736
20738
  }));
20737
20739
  }
20740
+ if (!apiKey) {
20741
+ rows.push({ check: "Plan", state: "SKIP", detail: "no API key to check" });
20742
+ } else {
20743
+ const tierRes = await apiRequest("/api/v1/agent/tier", {
20744
+ auth: "key",
20745
+ credentials: { apiKey },
20746
+ apiUrl,
20747
+ fetch: deps.fetch,
20748
+ env: deps.env
20749
+ });
20750
+ const tierBody = tierRes.ok ? tierRes.body : undefined;
20751
+ if (!tierBody || typeof tierBody.tier !== "string") {
20752
+ rows.push({ check: "Plan", state: "SKIP", detail: "tier not reported" });
20753
+ } else if (tierBody.maxExpired) {
20754
+ rows.push({
20755
+ check: "Plan",
20756
+ state: "WARN",
20757
+ detail: tierBody.maxExpiredNotice ?? `Max expired; this account is now on the ${tierBody.tier} plan`
20758
+ });
20759
+ } else {
20760
+ const fee = typeof tierBody.feeBps === "number" ? ` (${tierBody.feeBps / 100}% trade fee)` : "";
20761
+ rows.push({ check: "Plan", state: "PASS", detail: `${tierBody.tier}${fee}` });
20762
+ }
20763
+ }
20738
20764
  let account;
20739
20765
  if (!apiKey) {
20740
20766
  rows.push({ check: "Launch wallet delegated", state: "SKIP", detail: "no API key to check" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candledottv/cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "The Candle CLI: authorize a device from your browser, then manage API keys, wallets, and setup health from the terminal",
5
5
  "type": "module",
6
6
  "bin": {