ccclub 0.2.24 → 0.2.26
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 +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -676,6 +676,10 @@ async function rankCommand(options) {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
function formatTokens(n) {
|
|
679
|
+
if (n >= 1e9) {
|
|
680
|
+
const b = n / 1e9;
|
|
681
|
+
return b % 1 === 0 ? `${b}B` : `${parseFloat(b.toFixed(1))}B`;
|
|
682
|
+
}
|
|
679
683
|
if (n >= 1e6) {
|
|
680
684
|
const m = n / 1e6;
|
|
681
685
|
return m % 1 === 0 ? `${m}M` : `${parseFloat(m.toFixed(1))}M`;
|
|
@@ -887,11 +891,12 @@ async function hookCommand() {
|
|
|
887
891
|
|
|
888
892
|
// src/index.ts
|
|
889
893
|
var program = new Command();
|
|
890
|
-
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.
|
|
894
|
+
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.26");
|
|
891
895
|
program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
|
|
892
896
|
program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
|
|
893
897
|
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);
|
|
894
|
-
program.command("rank", { isDefault: true }).description("Show leaderboard
|
|
898
|
+
program.command("rank", { isDefault: true, hidden: true }).description("Show leaderboard").option("-p, --period <period>", "daily | weekly | monthly | all-time", "daily").option("-g, --group <code>", "Group invite code").option("--global", "Show global public ranking").option("--cache", "Include cache tokens in count").action(rankCommand);
|
|
899
|
+
program.command("-p weekly|monthly|all-time", { hidden: false }).description("Switch period (default: daily)");
|
|
895
900
|
program.command("profile").description("View or update your profile").option("-n, --name <name>", "Set display name").option("--avatar <url>", "Set avatar URL (empty string to reset)").option("--public", "Set profile visibility to public").option("--private", "Set profile visibility to private").action(profileCommand);
|
|
896
901
|
program.command("create").description("Create a new group").action(createGroupCommand);
|
|
897
902
|
program.command("show-data").description("Show exactly what data CCClub uploads (privacy audit)").action(showDataCommand);
|