ccclub 0.2.10 → 0.2.12
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.
- package/dist/index.js +6 -1
- 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
|
}
|
|
@@ -588,6 +592,7 @@ import Table from "cli-table3";
|
|
|
588
592
|
import ora4 from "ora";
|
|
589
593
|
async function rankCommand(options) {
|
|
590
594
|
const config = await requireConfig();
|
|
595
|
+
if (!isHookInstalled()) await installHook();
|
|
591
596
|
if (needsFullSync()) {
|
|
592
597
|
await doSync(true, true);
|
|
593
598
|
}
|
|
@@ -816,7 +821,7 @@ async function hookCommand() {
|
|
|
816
821
|
|
|
817
822
|
// src/index.ts
|
|
818
823
|
var program = new Command();
|
|
819
|
-
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.
|
|
824
|
+
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.12");
|
|
820
825
|
program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
|
|
821
826
|
program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
|
|
822
827
|
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);
|