ccclub 0.2.68 → 0.2.70

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -841,6 +841,7 @@ async function rankCommand(options) {
841
841
  console.log(chalk6.red("No group found. Run 'ccclub init' or 'ccclub join <code>' first."));
842
842
  return;
843
843
  }
844
+ const localUsagePromise = fetchUsageLimits().catch(() => null);
844
845
  const spinner = ora4("Loading leaderboard...").start();
845
846
  try {
846
847
  for (let i = 0; i < codes.length; i++) {
@@ -856,6 +857,11 @@ async function rankCommand(options) {
856
857
  }
857
858
  const data = await res.json();
858
859
  if (i === 0) spinner.stop();
860
+ const localSnapshot = await localUsagePromise;
861
+ if (localSnapshot) {
862
+ const me = data.rankings.find((r) => r.userId === config.userId);
863
+ if (me) me.usageSnapshot = localSnapshot;
864
+ }
859
865
  printGroup(data, code, period, config, options.cache);
860
866
  const range = period === "weekly" ? "7d" : period === "monthly" || period === "all-time" ? "30d" : period === "yesterday" ? "yesterday" : "24h";
861
867
  await printActivity(config.apiUrl, code, range);
@@ -1303,7 +1309,7 @@ async function hookCommand() {
1303
1309
  }
1304
1310
 
1305
1311
  // src/index.ts
1306
- var VERSION = "0.2.68";
1312
+ var VERSION = "0.2.70";
1307
1313
  startUpdateCheck(VERSION);
1308
1314
  var program = new Command();
1309
1315
  program.name("ccclub").description("Claude Code leaderboard among friends").version(VERSION, "-v, -V, --version");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccclub",
3
- "version": "0.2.68",
3
+ "version": "0.2.70",
4
4
  "type": "module",
5
5
  "description": "Claude Code leaderboard among friends",
6
6
  "bin": {