ccgather 2.0.21 → 2.0.22

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -304,7 +304,7 @@ var init_ui = __esm({
304
304
  "use strict";
305
305
  import_chalk = __toESM(require("chalk"));
306
306
  import_string_width = __toESM(require("string-width"));
307
- VERSION = true ? "2.0.21" : "0.0.0";
307
+ VERSION = true ? "2.0.22" : "0.0.0";
308
308
  colors = {
309
309
  primary: import_chalk.default.hex("#DA7756"),
310
310
  // Claude coral
@@ -1470,11 +1470,11 @@ async function submit(options) {
1470
1470
  console.log();
1471
1471
  const previousTokens = result.previous?.totalTokens || 0;
1472
1472
  const previousLevelInfo = getLevelProgress(previousTokens);
1473
- const previousLevel = previousLevelInfo.current.level;
1474
- const currentLevelNum = currentLevel.level;
1473
+ const previousLevelNum = previousLevelInfo.current.level;
1474
+ const serverLevel = result.currentLevel || currentLevel.level;
1475
1475
  let levelChangeText = "";
1476
- if (previousTokens > 0 && currentLevelNum > previousLevel) {
1477
- const levelChange = currentLevelNum - previousLevel;
1476
+ if (previousTokens > 0 && serverLevel > previousLevelNum) {
1477
+ const levelChange = serverLevel - previousLevelNum;
1478
1478
  levelChangeText = ` ${colors.success(`\u2191${levelChange}`)}`;
1479
1479
  }
1480
1480
  await sleep(200);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccgather",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "CLI tool for syncing Claude Code usage data to CCgather leaderboard",
5
5
  "bin": {
6
6
  "ccgather": "dist/index.js",