@mtreeai/msapling-cli 2.3.6-beta.34 → 2.3.6-beta.35

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 +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11936,8 +11936,8 @@ function formatTable(results) {
11936
11936
  const model = r.model.slice(0, 39).padEnd(40);
11937
11937
  const ttft = r.ttft_ms != null ? r.ttft_ms.toFixed(0).padStart(9) : " - ";
11938
11938
  const tps = r.tps != null ? r.tps.toFixed(1).padStart(7) : " - ";
11939
- const tok = r.total_tokens.toString().padStart(8);
11940
- const cost = r.cost_usd.toFixed(5).padStart(9);
11939
+ const tok = (r.total_tokens ?? 0).toString().padStart(8);
11940
+ const cost = (typeof r.cost_usd === "number" ? r.cost_usd : 0).toFixed(5).padStart(9);
11941
11941
  const err = r.error ? ` \u26A0 ${r.error}` : "";
11942
11942
  return `${model} ${ttft} ${tps} ${tok} ${cost}${err}`;
11943
11943
  });
@@ -12370,7 +12370,7 @@ var init_version = __esm({
12370
12370
  description: "Show version information for CLI and core packages",
12371
12371
  category: "debug",
12372
12372
  handler: async (_args, context) => {
12373
- const cliVersion = true ? "2.3.6-beta.34" : "(dev)";
12373
+ const cliVersion = true ? "2.3.6-beta.35" : "(dev)";
12374
12374
  const coreVersion = true ? "2.3.2" : "(dev)";
12375
12375
  const runtime = process.version;
12376
12376
  context.addMessage("system", "MSapling Version Info");
@@ -12379,7 +12379,7 @@ var init_version = __esm({
12379
12379
  context.addMessage("system", row2("Core (@msapling/core)", coreVersion));
12380
12380
  context.addMessage("system", row2("Runtime (Node/Bun)", runtime));
12381
12381
  try {
12382
- const ts = "2026-06-02T15:12:47.326Z";
12382
+ const ts = "2026-06-02T15:15:26.911Z";
12383
12383
  if (ts && ts !== "__BUILD_TIMESTAMP__") {
12384
12384
  context.addMessage("system", row2("Build Timestamp", ts));
12385
12385
  }
@@ -13111,11 +13111,12 @@ var init_budget = __esm({
13111
13111
  try {
13112
13112
  const data = await context.client.getBillingBuckets();
13113
13113
  context.addMessage("system", "Budget Buckets:");
13114
+ const n = (v) => typeof v === "number" && Number.isFinite(v) ? v : Number(v) || 0;
13114
13115
  if (data && typeof data === "object") {
13115
13116
  for (const [key, val] of Object.entries(data)) {
13116
13117
  const bucket = val;
13117
- const remaining = bucket.remaining ?? bucket.balance ?? 0;
13118
- const limit = bucket.limit ?? bucket.cap ?? 0;
13118
+ const remaining = n(bucket?.remaining ?? bucket?.balance);
13119
+ const limit = n(bucket?.limit ?? bucket?.cap);
13119
13120
  context.addMessage("system", ` - ${key}: $${remaining.toFixed(4)} / $${limit.toFixed(4)}`);
13120
13121
  }
13121
13122
  } else {
@@ -17896,7 +17897,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
17896
17897
  var Header = () => /* @__PURE__ */ jsxs(Box, { borderStyle: "single", borderColor: "cyan", paddingX: 1, marginBottom: 1, children: [
17897
17898
  /* @__PURE__ */ jsxs(Text, { bold: true, color: "cyan", children: [
17898
17899
  "\u25CF MSapling CLI v",
17899
- "2.3.6-beta.34"
17900
+ "2.3.6-beta.35"
17900
17901
  ] }),
17901
17902
  /* @__PURE__ */ jsx(Box, { marginLeft: 2, children: /* @__PURE__ */ jsx(Text, { color: "gray", children: "Platinum Tier Architecture" }) })
17902
17903
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtreeai/msapling-cli",
3
- "version": "2.3.6-beta.34",
3
+ "version": "2.3.6-beta.35",
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",