ccgather 2.0.37 → 2.0.39

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 +7 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -266,7 +266,7 @@ var init_ui = __esm({
266
266
  "use strict";
267
267
  import_chalk = __toESM(require("chalk"));
268
268
  import_string_width = __toESM(require("string-width"));
269
- VERSION = true ? "2.0.37" : "0.0.0";
269
+ VERSION = true ? "2.0.39" : "0.0.0";
270
270
  colors = {
271
271
  primary: import_chalk.default.hex("#DA7756"),
272
272
  // Claude coral
@@ -1384,7 +1384,7 @@ async function submit(options) {
1384
1384
  console.log(` ${colors.muted(" send at least one message in Claude Code.")}`);
1385
1385
  console.log();
1386
1386
  const debugInfo = getSessionPathDebugInfo();
1387
- console.log(` ${colors.dim("\u2500".repeat(40))}`);
1387
+ console.log(` ${colors.dim("\u2500".repeat(48))}`);
1388
1388
  console.log(` ${colors.muted("Searched paths:")}`);
1389
1389
  for (const pathInfo of debugInfo.searchedPaths) {
1390
1390
  const status = pathInfo.exists ? colors.success("\u2713") : colors.error("\u2717");
@@ -1455,7 +1455,8 @@ async function submit(options) {
1455
1455
  console.log();
1456
1456
  const sectionHeader = (icon, title) => {
1457
1457
  const text = `${icon} ${title} `;
1458
- const lineLength = 40 - text.length;
1458
+ const textWidth = getDisplayWidth(text);
1459
+ const lineLength = 48 - textWidth;
1459
1460
  return ` ${colors.white.bold(text)}${colors.dim("\u2500".repeat(Math.max(0, lineLength)))}`;
1460
1461
  };
1461
1462
  const accumulatedTokens = result.previous?.totalTokens || usageData.totalTokens;
@@ -1491,7 +1492,7 @@ async function submit(options) {
1491
1492
  console.log(
1492
1493
  ` ${colors.muted(`+ ${otherCount} other`)} \u26A1 ${colors.primary(formatNumber(di.otherDevicesTokens))} ${colors.dim("\u2502")} \u{1F4B0} ${colors.warning(formatCost(di.otherDevicesCost))}`
1493
1494
  );
1494
- console.log(` ${colors.dim("\u2500".repeat(33))}`);
1495
+ console.log(` ${colors.dim("\u2500".repeat(45))}`);
1495
1496
  console.log(
1496
1497
  ` ${colors.white.bold("Combined")} \u26A1 ${colors.primary(formatNumber(di.combinedTokens))} ${colors.dim("\u2502")} \u{1F4B0} ${colors.warning(formatCost(di.combinedCost))} ${colors.success("\u2713")}`
1497
1498
  );
@@ -1522,7 +1523,7 @@ async function submit(options) {
1522
1523
  }
1523
1524
  }
1524
1525
  console.log();
1525
- console.log(sectionHeader("\u2B06\uFE0F", "Level Progress"));
1526
+ console.log(sectionHeader("\u2B06\uFE0F ", "Level Progress"));
1526
1527
  console.log();
1527
1528
  console.log(
1528
1529
  ` ${colors.muted("Lv.")}${colors.white(String(currentLevel.level))} ${currentLevel.icon} ${currentLevel.color(currentLevel.name)}`
@@ -1546,7 +1547,7 @@ async function submit(options) {
1546
1547
  }
1547
1548
  console.log();
1548
1549
  const leaderboardUrl = `https://ccgather.com/leaderboard?u=${username}`;
1549
- console.log(` ${colors.dim("\u2500".repeat(40))}`);
1550
+ console.log(` ${colors.dim("\u2500".repeat(48))}`);
1550
1551
  console.log(` ${colors.muted("View full stats:")} ${link(leaderboardUrl)}`);
1551
1552
  console.log();
1552
1553
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccgather",
3
- "version": "2.0.37",
3
+ "version": "2.0.39",
4
4
  "description": "CLI tool for syncing Claude Code usage data to CCgather leaderboard",
5
5
  "bin": {
6
6
  "ccgather": "dist/index.js",