gemini-cli-leo 0.1.22 → 0.1.23
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/gemini.mjs +21 -17
- package/package.json +1 -1
package/gemini.mjs
CHANGED
|
@@ -173269,8 +173269,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
|
|
|
173269
173269
|
var init_git_commit = __esm({
|
|
173270
173270
|
"packages/core/dist/src/generated/git-commit.js"() {
|
|
173271
173271
|
"use strict";
|
|
173272
|
-
GIT_COMMIT_INFO = "
|
|
173273
|
-
CLI_VERSION = "0.1.
|
|
173272
|
+
GIT_COMMIT_INFO = "e52526b";
|
|
173273
|
+
CLI_VERSION = "0.1.23";
|
|
173274
173274
|
}
|
|
173275
173275
|
});
|
|
173276
173276
|
|
|
@@ -316451,7 +316451,7 @@ function getVersion() {
|
|
|
316451
316451
|
}
|
|
316452
316452
|
versionPromise = (async () => {
|
|
316453
316453
|
const pkgJson = await getPackageJson(__dirname4);
|
|
316454
|
-
return "0.1.
|
|
316454
|
+
return "0.1.23";
|
|
316455
316455
|
})();
|
|
316456
316456
|
return versionPromise;
|
|
316457
316457
|
}
|
|
@@ -479699,7 +479699,7 @@ var GIT_COMMIT_INFO2;
|
|
|
479699
479699
|
var init_git_commit2 = __esm({
|
|
479700
479700
|
"packages/cli/src/generated/git-commit.ts"() {
|
|
479701
479701
|
"use strict";
|
|
479702
|
-
GIT_COMMIT_INFO2 = "
|
|
479702
|
+
GIT_COMMIT_INFO2 = "e52526b";
|
|
479703
479703
|
}
|
|
479704
479704
|
});
|
|
479705
479705
|
|
|
@@ -526977,6 +526977,12 @@ var init_paginateFooterColumns = __esm({
|
|
|
526977
526977
|
// packages/cli/src/ui/components/Footer.tsx
|
|
526978
526978
|
import process60 from "node:process";
|
|
526979
526979
|
import os45 from "node:os";
|
|
526980
|
+
function formatCompactCount(count2) {
|
|
526981
|
+
return new Intl.NumberFormat("en-US", {
|
|
526982
|
+
notation: "compact",
|
|
526983
|
+
maximumFractionDigits: 1
|
|
526984
|
+
}).format(count2).toLowerCase();
|
|
526985
|
+
}
|
|
526980
526986
|
function useFooterPage(pageCount) {
|
|
526981
526987
|
const [page, setPage] = (0, import_react58.useState)(0);
|
|
526982
526988
|
(0, import_react58.useEffect)(() => {
|
|
@@ -527349,11 +527355,7 @@ var init_Footer = __esm({
|
|
|
527349
527355
|
for (const m3 of Object.values(uiState.sessionStats.metrics.models))
|
|
527350
527356
|
total += m3.tokens.total;
|
|
527351
527357
|
if (total > 0) {
|
|
527352
|
-
const
|
|
527353
|
-
notation: "compact",
|
|
527354
|
-
maximumFractionDigits: 1
|
|
527355
|
-
});
|
|
527356
|
-
const formatted = formatter.format(total).toLowerCase();
|
|
527358
|
+
const formatted = formatCompactCount(total);
|
|
527357
527359
|
addCol(
|
|
527358
527360
|
id,
|
|
527359
527361
|
header,
|
|
@@ -527373,14 +527375,16 @@ var init_Footer = __esm({
|
|
|
527373
527375
|
cached2 += m3.tokens.cached;
|
|
527374
527376
|
prompt += m3.tokens.prompt;
|
|
527375
527377
|
}
|
|
527376
|
-
|
|
527377
|
-
|
|
527378
|
-
|
|
527379
|
-
|
|
527380
|
-
|
|
527381
|
-
|
|
527382
|
-
|
|
527383
|
-
|
|
527378
|
+
if (prompt > 0) {
|
|
527379
|
+
const rate = Math.round(cached2 / prompt * 100);
|
|
527380
|
+
const formatted = `${rate}% ~${formatCompactCount(cached2)} / ${formatCompactCount(prompt)}`;
|
|
527381
|
+
addCol(
|
|
527382
|
+
id,
|
|
527383
|
+
header,
|
|
527384
|
+
() => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Text3, { color: itemColor, children: formatted }),
|
|
527385
|
+
formatted.length
|
|
527386
|
+
);
|
|
527387
|
+
}
|
|
527384
527388
|
break;
|
|
527385
527389
|
}
|
|
527386
527390
|
default:
|