claude-friends 0.4.7 → 0.4.8

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/cli.js CHANGED
@@ -53,9 +53,10 @@ if (command === "setup") {
53
53
  console.log(`Already set up as "${existing.username}".`);
54
54
  } else {
55
55
  console.log(`
56
- To set up claude-friends, open Claude Code and type:
56
+ To set up claude-friends:
57
57
 
58
- /friends
58
+ 1. Restart Claude Code (if you just installed)
59
+ 2. Type /friends to start the guided setup
59
60
 
60
61
  This will walk you through picking a username and adding friends.
61
62
  `);
@@ -254,7 +255,7 @@ This will walk you through picking a username and adding friends.
254
255
 
255
256
  } else if (command === "whoami") {
256
257
  const config = getConfig();
257
- if (!config) { console.log("Not set up. Run: claude-friends setup"); process.exit(1); }
258
+ if (!config) { console.log("not-set-up"); process.exit(0); }
258
259
  console.log(config.username);
259
260
 
260
261
  } else if (command === "serve") {
@@ -1,16 +1,16 @@
1
1
  See who's online.
2
2
 
3
- First, check if claude-friends is set up by running `claude-friends whoami`. If it returns "Not set up", run the onboarding flow below BEFORE doing anything else. If it IS set up, skip to "Show friends".
3
+ First, check if claude-friends is set up by running `claude-friends whoami`. If the output is "not-set-up", run the onboarding flow below BEFORE doing anything else. If it returns an actual username, skip to "Show friends".
4
4
 
5
5
  ## Onboarding (only if not set up)
6
6
 
7
7
  Walk the user through setup using AskUserQuestion:
8
8
 
9
- 1. Explain: "claude-friends lets you see when your friends are coding in Claude Code. Friendship is mutual — you can only see each other online if you've BOTH added each other."
9
+ 1. Explain: "claude-friends lets you see when your friends are coding in Claude Code. Friendship is mutual — you can only see each other online if you've BOTH added each other. Let's get you set up!"
10
10
 
11
- 2. Before asking the user to pick a username, generate 2-3 suggestions based on their system username (e.g. first name, initials, short nickname). Run `claude-friends check-username <name>` for EACH suggestion IN PARALLEL to check availability. Only include suggestions that return "available" as options in the AskUserQuestion. This way every option shown is guaranteed available. If the user types their own via "Other", run the check after — if taken, tell them immediately and re-ask.
11
+ 2. Ask the user to pick a username using AskUserQuestion. Generate 2-3 suggestions based on their system username (e.g. first name, initials, short nickname) and run `claude-friends check-username <name>` for EACH suggestion IN PARALLEL. Only include suggestions that return "available" as options. The user MUST explicitly choose one or type their own via "Other" — never auto-select for them. If they type a custom username via "Other", check availability after and re-ask if taken.
12
12
 
13
- 3. Run `claude-friends setup-noninteractive <username>` to register the chosen username.
13
+ 3. Run `claude-friends setup-noninteractive <username>` to register the chosen username.
14
14
 
15
15
  4. Ask "Want to add some friends?" (Yes / No). If yes, go DIRECTLY to asking for a username — do NOT show an intermediate screen. Use AskUserQuestion with two options like "Skip" and "Done adding" so the user types their friend's username via "Other". After each add:
16
16
  - Run `claude-friends add <friend>` and show the result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-friends",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "See who's online in Claude Code. Add friends, share status, nudge each other.",
5
5
  "type": "module",
6
6
  "bin": {