ccclub 0.1.7 → 0.1.9
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
|
@@ -67,7 +67,8 @@ function getApiUrl() {
|
|
|
67
67
|
async function requireConfig() {
|
|
68
68
|
const config = await loadConfig();
|
|
69
69
|
if (!config) {
|
|
70
|
-
|
|
70
|
+
console.error('Not initialized. Run "ccclub init" or "ccclub join <code>" first.');
|
|
71
|
+
process.exit(1);
|
|
71
72
|
}
|
|
72
73
|
return config;
|
|
73
74
|
}
|
|
@@ -523,7 +524,7 @@ async function rankCommand(options) {
|
|
|
523
524
|
console.log(table.toString());
|
|
524
525
|
console.log(chalk4.dim(`
|
|
525
526
|
Dashboard: ${config.apiUrl}/g/${groupCode}`));
|
|
526
|
-
console.log(chalk4.dim(" Data syncs automatically every hour. Run ccclub sync to update now."));
|
|
527
|
+
console.log(chalk4.dim(" Data syncs automatically ") + chalk4.white("every hour") + chalk4.dim(". Run ") + chalk4.white("ccclub sync") + chalk4.dim(" to update now."));
|
|
527
528
|
} catch (err) {
|
|
528
529
|
spinner.fail(`Error: ${err instanceof Error ? err.message : err}`);
|
|
529
530
|
}
|
|
@@ -685,7 +686,7 @@ async function ensureGlobalInstall() {
|
|
|
685
686
|
|
|
686
687
|
// src/index.ts
|
|
687
688
|
var program = new Command();
|
|
688
|
-
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.1.
|
|
689
|
+
program.name("ccclub").description("CCClub - Compare Claude Code usage with friends").version("0.1.9");
|
|
689
690
|
program.hook("postAction", () => ensureGlobalInstall());
|
|
690
691
|
program.command("init").description("Initialize CCClub (one-time setup)").action(initCommand);
|
|
691
692
|
program.command("join").description("Join a friend's group").argument("<invite-code>", "6-character invite code").action(joinCommand);
|