ccclub 0.2.10 → 0.2.11

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -433,6 +433,10 @@ async function initCommand() {
433
433
  console.log(chalk3.yellow("Already initialized!"));
434
434
  console.log(` User: ${existing.displayName}`);
435
435
  console.log(` Groups: ${existing.groups.join(", ") || "(none)"}`);
436
+ if (!isHookInstalled()) {
437
+ const hookOk = await installHook();
438
+ if (hookOk) console.log(chalk3.green(" Auto-sync hook installed!"));
439
+ }
436
440
  console.log(chalk3.dim('\n Run "ccclub" to see rankings'));
437
441
  return;
438
442
  }
@@ -816,7 +820,7 @@ async function hookCommand() {
816
820
 
817
821
  // src/index.ts
818
822
  var program = new Command();
819
- program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.10");
823
+ program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.11");
820
824
  program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
821
825
  program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
822
826
  program.command("sync").description("Sync local usage data to server").option("-s, --silent", "No output (used by auto-sync hook)").option("-f, --full", "Force full re-sync of all data").action(syncCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccclub",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "type": "module",
5
5
  "description": "See how much Claude Code you and your friends are using",
6
6
  "bin": {