ccgather 2.0.28 → 2.0.30

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 +11 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -308,7 +308,7 @@ var init_ui = __esm({
308
308
  "use strict";
309
309
  import_chalk = __toESM(require("chalk"));
310
310
  import_string_width = __toESM(require("string-width"));
311
- VERSION = true ? "2.0.28" : "0.0.0";
311
+ VERSION = true ? "2.0.30" : "0.0.0";
312
312
  colors = {
313
313
  primary: import_chalk.default.hex("#DA7756"),
314
314
  // Claude coral
@@ -1379,16 +1379,18 @@ async function submit(options) {
1379
1379
  const prevTokens = prev.totalTokens || 0;
1380
1380
  const prevCost = prev.totalCost || 0;
1381
1381
  console.log(
1382
- ` ${colors.dim(`Last : \u26A1 ${formatNumber(prevTokens)} \u2502 \u{1F4B0} ${formatCost(prevCost)}`)}`
1382
+ ` ${colors.dim(`All : \u26A1 ${formatNumber(prevTokens)} \u2502 \u{1F4B0} ${formatCost(prevCost)}`)}`
1383
1383
  );
1384
1384
  await sleep(50);
1385
- const tokenChange = usageData.totalTokens - prevTokens;
1386
- const costChange = usageData.totalCost - prevCost;
1387
- const tokenSign = tokenChange >= 0 ? "+" : "";
1388
- const costSign = costChange >= 0 ? "+" : "";
1389
- console.log(
1390
- ` ${colors.muted("Now :")} \u26A1 ${colors.primary(`${tokenSign}${formatNumber(tokenChange)}`)} ${colors.dim("\u2502")} \u{1F4B0} ${colors.warning(`${costSign}${formatCost(costChange)}`)}`
1391
- );
1385
+ if (newTokens > 0 || newCost > 0) {
1386
+ console.log(
1387
+ ` ${colors.muted("New :")} \u26A1 ${colors.primary(`+${formatNumber(newTokens)}`)} ${colors.dim("\u2502")} \u{1F4B0} ${colors.warning(`+${formatCost(newCost)}`)}`
1388
+ );
1389
+ } else {
1390
+ console.log(
1391
+ ` ${colors.dim("New : No new data")}`
1392
+ );
1393
+ }
1392
1394
  await sleep(50);
1393
1395
  if (expiredDates.length > 0) {
1394
1396
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccgather",
3
- "version": "2.0.28",
3
+ "version": "2.0.30",
4
4
  "description": "CLI tool for syncing Claude Code usage data to CCgather leaderboard",
5
5
  "bin": {
6
6
  "ccgather": "dist/index.js",