tokmon 0.6.0 → 0.6.1
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 +17 -10
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -543,12 +543,12 @@ function App({ interval: cliInterval }) {
|
|
|
543
543
|
setCursor((c) => c + 1);
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
|
-
if (key.pageDown) {
|
|
547
|
-
setCursor((c) => c + Math.max(1, rows - 12));
|
|
546
|
+
if (key.pageDown || input === "G") {
|
|
547
|
+
setCursor((c) => input === "G" ? 99999 : c + Math.max(1, rows - 12));
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
if (key.pageUp) {
|
|
551
|
-
setCursor((c) => Math.max(0, c - Math.max(1, rows - 12)));
|
|
550
|
+
if (key.pageUp || input === "g") {
|
|
551
|
+
setCursor((c) => input === "g" ? 0 : Math.max(0, c - Math.max(1, rows - 12)));
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
554
|
}, { isActive: isTTY });
|
|
@@ -583,7 +583,7 @@ function App({ interval: cliInterval }) {
|
|
|
583
583
|
tableLoading && !table ? /* @__PURE__ */ jsx(Spinner, { label: "Loading 6 months of history" }) : /* @__PURE__ */ jsx(TableView, { rows: tableData, cursor, expanded, maxRows: rows - 12, wide: cols > 90 })
|
|
584
584
|
] })
|
|
585
585
|
] }),
|
|
586
|
-
/* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
586
|
+
(tab === 0 || showSettings) && /* @__PURE__ */ jsxs(Box, { marginTop: 1, children: [
|
|
587
587
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "by " }),
|
|
588
588
|
/* @__PURE__ */ jsx(Text, { children: "David Ilie" }),
|
|
589
589
|
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " (" }),
|
|
@@ -807,14 +807,21 @@ function TableView({ rows: allRows, cursor, expanded, maxRows, wide }) {
|
|
|
807
807
|
W.total > 0 && /* @__PURE__ */ jsx(Text, { bold: true, color: "yellow", children: col(tokens(totals.input + totals.output + totals.cacheCreate + totals.cacheRead), W.total) }),
|
|
808
808
|
/* @__PURE__ */ jsx(Text, { bold: true, color: "yellowBright", children: col(currency(totals.cost), W.cost) })
|
|
809
809
|
] }),
|
|
810
|
-
/* @__PURE__ */ jsx(Box, {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
" rows \xB7 ",
|
|
810
|
+
/* @__PURE__ */ jsx(Box, { height: 1 }),
|
|
811
|
+
/* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
812
|
+
"\u2191\u2193 navigate \xB7 Enter detail \xB7 g top G bottom \xB7 ",
|
|
814
813
|
clampedCursor + 1,
|
|
815
814
|
"/",
|
|
816
815
|
allRows.length
|
|
817
|
-
] })
|
|
816
|
+
] }),
|
|
817
|
+
/* @__PURE__ */ jsx(Box, { height: 1 }),
|
|
818
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
819
|
+
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "by " }),
|
|
820
|
+
/* @__PURE__ */ jsx(Text, { children: "David Ilie" }),
|
|
821
|
+
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " (" }),
|
|
822
|
+
/* @__PURE__ */ jsx(Text, { color: "cyan", children: "davidilie.com" }),
|
|
823
|
+
/* @__PURE__ */ jsx(Text, { dimColor: true, children: ") \xB7 s=settings q=quit" })
|
|
824
|
+
] })
|
|
818
825
|
] });
|
|
819
826
|
}
|
|
820
827
|
function RowDetail({ row, indent }) {
|