ccclub 0.2.0 → 0.2.2
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -527,7 +527,8 @@ async function rankCommand(options) {
|
|
|
527
527
|
try {
|
|
528
528
|
for (let i = 0; i < codes.length; i++) {
|
|
529
529
|
const code = codes[i];
|
|
530
|
-
const
|
|
530
|
+
const tz = -(/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
531
|
+
const url = `${config.apiUrl}/api/rank/${code}?period=${period}&tz=${tz}`;
|
|
531
532
|
const res = await fetch(url);
|
|
532
533
|
if (!res.ok) {
|
|
533
534
|
if (i === 0) spinner.stop();
|
|
@@ -754,11 +755,11 @@ async function ensureGlobalInstall() {
|
|
|
754
755
|
|
|
755
756
|
// src/index.ts
|
|
756
757
|
var program = new Command();
|
|
757
|
-
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.
|
|
758
|
+
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.2");
|
|
758
759
|
program.hook("postAction", () => ensureGlobalInstall());
|
|
759
760
|
program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
|
|
760
761
|
program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
|
|
761
|
-
program.command("sync").description("Sync local usage data to server").option("-s, --silent", "No output (used by
|
|
762
|
+
program.command("sync").description("Sync local usage data to server").option("-s, --silent", "No output (used by auto-sync hook)").action(syncCommand);
|
|
762
763
|
program.command("rank", { isDefault: true }).description("Show leaderboard rankings").option("-p, --period <period>", "daily, weekly, monthly, all-time", "daily").option("-g, --group <code>", "Group invite code").option("--global", "Show global public ranking").action(rankCommand);
|
|
763
764
|
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);
|
|
764
765
|
program.command("create").description("Create a new group").action(createGroupCommand);
|