tokmon 0.19.7 → 0.19.8
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.
- package/dist/cli.js +5 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -362,7 +362,7 @@ import { Box as Box2, Text as Text2 } from "ink";
|
|
|
362
362
|
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
363
363
|
var GAP = 2;
|
|
364
364
|
var MIN_CARD = 56;
|
|
365
|
-
var MIN_CARD_DENSE =
|
|
365
|
+
var MIN_CARD_DENSE = 50;
|
|
366
366
|
var CARD_H = { full: 14, compact: 12, mini: 8 };
|
|
367
367
|
var VARIANT_ORDER = ["full", "compact", "mini"];
|
|
368
368
|
var INDICATOR_ROWS = 1;
|
|
@@ -502,13 +502,13 @@ function Rule({ inner }) {
|
|
|
502
502
|
function SummaryRow({ label, s }) {
|
|
503
503
|
const cachedPct = s.tokens > 0 ? Math.round(s.cacheRead / s.tokens * 100) : 0;
|
|
504
504
|
return /* @__PURE__ */ jsxs2(Box2, { children: [
|
|
505
|
-
/* @__PURE__ */ jsx2(Box2, { width: 11, children: /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: label }) }),
|
|
506
|
-
/* @__PURE__ */ jsx2(Box2, { width: 11, justifyContent: "flex-end", children: /* @__PURE__ */ jsx2(Text2, { bold: true, color: "yellow", children: currency(s.cost) }) }),
|
|
507
|
-
/* @__PURE__ */ jsx2(Box2, { width: 13, justifyContent: "flex-end", children: /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
|
|
505
|
+
/* @__PURE__ */ jsx2(Box2, { width: 11, flexShrink: 0, children: /* @__PURE__ */ jsx2(Text2, { dimColor: true, wrap: "truncate", children: label }) }),
|
|
506
|
+
/* @__PURE__ */ jsx2(Box2, { width: 11, flexShrink: 0, justifyContent: "flex-end", children: /* @__PURE__ */ jsx2(Text2, { bold: true, color: "yellow", wrap: "truncate", children: currency(s.cost) }) }),
|
|
507
|
+
/* @__PURE__ */ jsx2(Box2, { width: 13, flexShrink: 0, justifyContent: "flex-end", children: /* @__PURE__ */ jsxs2(Text2, { dimColor: true, wrap: "truncate", children: [
|
|
508
508
|
tokens(s.tokens),
|
|
509
509
|
" tok"
|
|
510
510
|
] }) }),
|
|
511
|
-
/* @__PURE__ */ jsx2(Box2, { flexGrow: 1, justifyContent: "flex-end", children: cachedPct > 0 ? /* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
|
|
511
|
+
/* @__PURE__ */ jsx2(Box2, { flexGrow: 1, justifyContent: "flex-end", children: cachedPct > 0 ? /* @__PURE__ */ jsxs2(Text2, { dimColor: true, wrap: "truncate", children: [
|
|
512
512
|
cachedPct,
|
|
513
513
|
"% cached"
|
|
514
514
|
] }) : /* @__PURE__ */ jsx2(Text2, { children: " " }) })
|
package/package.json
CHANGED