tokmon 0.12.5 → 0.12.6

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/cli.js +13 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1605,17 +1605,22 @@ function DashboardView({ slots, stats, compact: _compact }) {
1605
1605
  borderBottom: false,
1606
1606
  children: [
1607
1607
  /* @__PURE__ */ jsx(Text, { bold: true, children: "Claude" }),
1608
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1608
1609
  /* @__PURE__ */ jsx(SummaryRow, { label: "Today", summary: agg.today }),
1609
1610
  /* @__PURE__ */ jsx(SummaryRow, { label: "This Week", summary: agg.week }),
1610
1611
  /* @__PURE__ */ jsx(SummaryRow, { label: "This Month", summary: agg.month }),
1611
- agg.burnRate > 0 && /* @__PURE__ */ jsxs(Box, { children: [
1612
- /* @__PURE__ */ jsx(Box, { width: 14, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: "Burn rate" }) }),
1613
- /* @__PURE__ */ jsx(Box, { width: 12, justifyContent: "flex-end", children: /* @__PURE__ */ jsx(Text, { color: "red", children: currency(agg.burnRate) }) }),
1614
- /* @__PURE__ */ jsx(Text, { dimColor: true, children: "/hr" })
1612
+ agg.burnRate > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
1613
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1614
+ /* @__PURE__ */ jsxs(Box, { children: [
1615
+ /* @__PURE__ */ jsx(Box, { width: 14, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: "Burn rate" }) }),
1616
+ /* @__PURE__ */ jsx(Box, { width: 12, justifyContent: "flex-end", children: /* @__PURE__ */ jsx(Text, { color: "red", children: currency(agg.burnRate) }) }),
1617
+ /* @__PURE__ */ jsx(Text, { dimColor: true, children: "/hr" })
1618
+ ] })
1615
1619
  ] })
1616
1620
  ]
1617
1621
  }
1618
1622
  ),
1623
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1619
1624
  /* @__PURE__ */ jsx(RateLimitsCard, { items })
1620
1625
  ] });
1621
1626
  }
@@ -1663,15 +1668,18 @@ function RateLimitsCard({ items }) {
1663
1668
  borderBottom: false,
1664
1669
  children: [
1665
1670
  /* @__PURE__ */ jsx(Text, { bold: true, children: "Rate Limits" }),
1671
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1666
1672
  !anyData ? anyError ? /* @__PURE__ */ jsx(Box, { flexDirection: "column", children: items.map(({ slot, s }) => s.billing?.error && /* @__PURE__ */ jsxs(Box, { children: [
1667
1673
  /* @__PURE__ */ jsx(Text, { color: slot.color, children: "\u25CF " }),
1668
1674
  /* @__PURE__ */ jsx(Box, { width: 22, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: truncateName(slot.name, 20) }) }),
1669
1675
  /* @__PURE__ */ jsx(Text, { color: "red", children: s.billing.error })
1670
1676
  ] }, slot.id ?? "__default__")) }) : /* @__PURE__ */ jsx(Text, { dimColor: true, children: "Fetching..." }) : /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
1671
1677
  /* @__PURE__ */ jsx(MetricBlock, { label: "5h", pick: (b) => b?.session, items, showResets: true }),
1678
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1672
1679
  /* @__PURE__ */ jsx(MetricBlock, { label: "Week", pick: (b) => b?.weekly, items, showResets: true }),
1680
+ /* @__PURE__ */ jsx(Box, { height: 1 }),
1673
1681
  /* @__PURE__ */ jsx(MetricBlock, { label: "Sonnet", pick: (b) => b?.sonnet, items }),
1674
- items.some((i) => i.s.billing?.extraUsage) && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
1682
+ items.some((i) => i.s.billing?.extraUsage) && /* @__PURE__ */ jsxs(Box, { flexDirection: "column", marginTop: 1, children: [
1675
1683
  /* @__PURE__ */ jsx(Text, { bold: true, dimColor: true, children: "Extra" }),
1676
1684
  items.map(({ slot, s }) => {
1677
1685
  const e = s.billing?.extraUsage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tokmon",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "description": "Terminal dashboard for Claude Code usage and costs",
5
5
  "type": "module",
6
6
  "bin": {