@mtreeai/msapling-cli 2.3.6-beta.12 → 2.3.6-beta.13

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 +14 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13295,7 +13295,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
13295
13295
  var Header = () => /* @__PURE__ */ jsxs(Box, { borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
13296
13296
  /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
13297
13297
  "\u25CF MSapling CLI v",
13298
- "2.3.6-beta.12"
13298
+ "2.3.6-beta.13"
13299
13299
  ] }),
13300
13300
  /* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
13301
13301
  ] });
@@ -13317,6 +13317,13 @@ function shouldShowCapMeter(user) {
13317
13317
  }
13318
13318
  var Footer = ({ user }) => {
13319
13319
  if (!user) return null;
13320
+ const num = (v) => typeof v === "number" && Number.isFinite(v) ? v : 0;
13321
+ const fuel = num(user.fuel_credits);
13322
+ const tokensByok = num(user.tokens_byok);
13323
+ const costByok = num(user.cost_byok);
13324
+ const tokensOllama = num(user.tokens_ollama);
13325
+ const costOllama = num(user.cost_ollama);
13326
+ const tokensPurchased = num(user.tokens_purchased);
13320
13327
  const showCapMeter = shouldShowCapMeter(user);
13321
13328
  const dailyUsed = user.daily_tokens_used;
13322
13329
  const dailyLimit = user.daily_tokens_limit;
@@ -13327,26 +13334,26 @@ var Footer = ({ user }) => {
13327
13334
  /* @__PURE__ */ jsx2(Text2, { bold: true, children: "Usage Dashboard (6-Track)" }),
13328
13335
  /* @__PURE__ */ jsxs2(Text2, { color: "yellow", children: [
13329
13336
  "$",
13330
- user.fuel_credits.toFixed(4),
13337
+ fuel.toFixed(4),
13331
13338
  " Fuel"
13332
13339
  ] })
13333
13340
  ] }),
13334
13341
  /* @__PURE__ */ jsxs2(Box2, { flexDirection: "row", gap: 2, marginTop: 0, children: [
13335
13342
  /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
13336
13343
  "BYOK: ",
13337
- user.tokens_byok.toLocaleString(),
13344
+ tokensByok.toLocaleString(),
13338
13345
  " t / $",
13339
- user.cost_byok.toFixed(2)
13346
+ costByok.toFixed(2)
13340
13347
  ] }),
13341
13348
  /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
13342
13349
  "Ollama: ",
13343
- user.tokens_ollama.toLocaleString(),
13350
+ tokensOllama.toLocaleString(),
13344
13351
  " t / $",
13345
- user.cost_ollama.toFixed(2)
13352
+ costOllama.toFixed(2)
13346
13353
  ] }),
13347
13354
  /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
13348
13355
  "Purchased: ",
13349
- user.tokens_purchased.toLocaleString(),
13356
+ tokensPurchased.toLocaleString(),
13350
13357
  " t"
13351
13358
  ] })
13352
13359
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtreeai/msapling-cli",
3
- "version": "2.3.6-beta.12",
3
+ "version": "2.3.6-beta.13",
4
4
  "description": "MSapling CLI — React/Ink terminal client for the MSapling backend (chat, projects, MDrive, agent tools). Proprietary; redistribution prohibited.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "MSapling Team",