ccclub 0.2.3 → 0.2.4
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 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -191,7 +191,7 @@ async function collectUsageEntries() {
|
|
|
191
191
|
} catch {
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
|
-
if (parsed.type === "
|
|
194
|
+
if (parsed.type === "user" && parsed.timestamp) {
|
|
195
195
|
const humanKey = `${parsed.sessionId || ""}:${parsed.timestamp}`;
|
|
196
196
|
if (!seenHuman.has(humanKey)) {
|
|
197
197
|
seenHuman.add(humanKey);
|
|
@@ -315,7 +315,7 @@ function aggregateToBlocks(entries, humanTurns = []) {
|
|
|
315
315
|
|
|
316
316
|
// src/commands/sync.ts
|
|
317
317
|
async function syncCommand(options) {
|
|
318
|
-
await doSync(false, options.silent);
|
|
318
|
+
await doSync(options.full || false, options.silent);
|
|
319
319
|
}
|
|
320
320
|
async function doSync(firstSync = false, silent = false) {
|
|
321
321
|
const config = await requireConfig();
|
|
@@ -781,11 +781,11 @@ async function ensureGlobalInstall() {
|
|
|
781
781
|
|
|
782
782
|
// src/index.ts
|
|
783
783
|
var program = new Command();
|
|
784
|
-
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.
|
|
784
|
+
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.2.4");
|
|
785
785
|
program.hook("postAction", () => ensureGlobalInstall());
|
|
786
786
|
program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
|
|
787
787
|
program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
|
|
788
|
-
program.command("sync").description("Sync local usage data to server").option("-s, --silent", "No output (used by auto-sync hook)").action(syncCommand);
|
|
788
|
+
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);
|
|
789
789
|
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);
|
|
790
790
|
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);
|
|
791
791
|
program.command("create").description("Create a new group").action(createGroupCommand);
|