ccclub 0.2.64 → 0.2.65

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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -967,7 +967,7 @@ import chalk6 from "chalk";
967
967
  import ora5 from "ora";
968
968
  async function profileCommand(options) {
969
969
  const config = await requireConfig();
970
- const hasUpdate = options.name !== void 0 || options.avatar !== void 0 || options.public || options.private || options.plan !== void 0;
970
+ const hasUpdate = options.name !== void 0 || options.avatar !== void 0 || options.public || options.private || options.plan !== void 0 || options.url !== void 0;
971
971
  if (!hasUpdate) {
972
972
  const spinner2 = ora5("Fetching profile...").start();
973
973
  try {
@@ -986,6 +986,7 @@ async function profileCommand(options) {
986
986
  console.log(` Avatar: ${profile.avatar || chalk6.dim("(default)")}`);
987
987
  console.log(` Visibility: ${profile.visibility === "public" ? chalk6.green("public") : chalk6.dim("private")}`);
988
988
  console.log(` Plan: ${profile.plan ? PLAN_LABELS[profile.plan] || profile.plan : chalk6.dim("(not set)")}`);
989
+ console.log(` URL: ${profile.url || chalk6.dim("(not set)")}`);
989
990
  console.log();
990
991
  } catch (err) {
991
992
  spinner2.fail(`Error: ${err instanceof Error ? err.message : err}`);
@@ -1009,6 +1010,7 @@ async function profileCommand(options) {
1009
1010
  if (options.public) body.visibility = "public";
1010
1011
  if (options.private) body.visibility = "private";
1011
1012
  if (options.plan !== void 0) body.plan = options.plan === "none" ? "" : options.plan;
1013
+ if (options.url !== void 0) body.url = options.url;
1012
1014
  const spinner = ora5("Updating profile...").start();
1013
1015
  try {
1014
1016
  const res = await fetch(`${config.apiUrl}/api/profile`, {
@@ -1035,6 +1037,7 @@ async function profileCommand(options) {
1035
1037
  console.log(` Avatar: ${profile.avatar || chalk6.dim("(default)")}`);
1036
1038
  console.log(` Visibility: ${profile.visibility === "public" ? chalk6.green("public") : chalk6.dim("private")}`);
1037
1039
  console.log(` Plan: ${profile.plan ? PLAN_LABELS[profile.plan] || profile.plan : chalk6.dim("(not set)")}`);
1040
+ console.log(` URL: ${profile.url || chalk6.dim("(not set)")}`);
1038
1041
  console.log();
1039
1042
  } catch (err) {
1040
1043
  spinner.fail(`Error: ${err instanceof Error ? err.message : err}`);
@@ -1213,7 +1216,7 @@ async function hookCommand() {
1213
1216
  }
1214
1217
 
1215
1218
  // src/index.ts
1216
- var VERSION = "0.2.64";
1219
+ var VERSION = "0.2.65";
1217
1220
  startUpdateCheck(VERSION);
1218
1221
  var program = new Command();
1219
1222
  program.name("ccclub").description("Claude Code leaderboard among friends").version(VERSION, "-v, -V, --version");
@@ -1237,7 +1240,7 @@ program.command("join").description("Join a group with a 6-letter invite code").
1237
1240
  program.command("sync").description("Upload usage data (runs automatically on session end)").addOption(new Option("-s, --silent").hideHelp()).option("-f, --force", "Force full re-sync of all data").addOption(new Option("--full", "Same as --force").hideHelp()).action(
1238
1241
  (options) => syncCommand({ ...options, full: options.full || options.force })
1239
1242
  );
1240
- program.command("profile").description("View or update your profile").option("-n, --name <name>", "Set display name").option("--avatar <url>", "Set avatar URL (empty to reset)").option("--public", "Make profile visible in global ranking").option("--private", "Hide from global ranking").option("--plan <plan>", "pro ($20) | max100 ($100) | max200 ($200) | api | none").action(profileCommand);
1243
+ program.command("profile").description("View or update your profile").option("-n, --name <name>", "Set display name").option("--avatar <url>", "Set avatar URL (empty to reset)").option("--public", "Make profile visible in global ranking").option("--private", "Hide from global ranking").option("--plan <plan>", "pro ($20) | max100 ($100) | max200 ($200) | api | none").option("--url <url>", "Link your name to a URL (GitHub, website, etc.)").action(profileCommand);
1241
1244
  program.command("create").description("Create an additional group").action(createGroupCommand);
1242
1245
  program.command("leave").description("Leave a group").argument("[code]", "Group invite code").action((code) => leaveCommand(code));
1243
1246
  program.command("show-data").description("Preview exactly what gets uploaded (privacy check)").action(showDataCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccclub",
3
- "version": "0.2.64",
3
+ "version": "0.2.65",
4
4
  "type": "module",
5
5
  "description": "Claude Code leaderboard among friends",
6
6
  "bin": {