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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. 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
- throw new Error('Not initialized. Run "ccclub init" first.');
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.7");
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccclub",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "See how much Claude Code you and your friends are using",
6
6
  "bin": {