buddy-reroll 0.2.0 → 0.3.0

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/README.md CHANGED
@@ -1,29 +1,59 @@
1
1
  # buddy-reroll
2
2
 
3
- Reroll your [Claude Code](https://docs.anthropic.com/en/docs/claude-code) `/buddy` companion to any species, rarity, eye, hat, and shiny combination.
3
+ Pick the perfect [Claude Code](https://docs.anthropic.com/en/docs/claude-code) `/buddy` companion any species, rarity, eye, hat, shiny, and stat combination you want.
4
+
5
+ <img width="1390" height="1010" alt="buddy-reroll screenshot" src="https://github.com/user-attachments/assets/0786f4b8-35e2-4433-90af-25a0d9ebe1a9" />
6
+
7
+ <p align="center" width="100%">
8
+ <video src="https://github.com/user-attachments/assets/5de52c98-ce3c-428f-bd2d-7f208e1a6d38" width="80%" controls></video>
9
+ </p>
4
10
 
5
11
  ## Install
6
12
 
7
13
  ```bash
14
+ # Bun (recommended)
8
15
  bun install -g buddy-reroll
16
+
17
+ # npm
18
+ npm install -g buddy-reroll
19
+
20
+ # No install needed
21
+ npx buddy-reroll
9
22
  ```
10
23
 
24
+ Bun gives the speediest experience, but Node.js >= 20 works just as well.
25
+
11
26
  ## Usage
12
27
 
13
28
  ```bash
14
- # Interactive mode (recommended)
29
+ # Interactive pick your buddy step by step
15
30
  buddy-reroll
16
31
 
17
- # Non-interactive
32
+ # Know what you want? Go direct
18
33
  buddy-reroll --species dragon --rarity legendary --eye ✦ --hat propeller --shiny
19
34
 
20
- # Partial spec (unspecified fields are left random)
35
+ # Just pick a few things, leave the rest to chance
21
36
  buddy-reroll --species cat --rarity epic
22
37
 
23
- # Show current companion
38
+ # Choose your buddy's strengths
39
+ buddy-reroll --peak WISDOM --dump CHAOS
40
+
41
+ # See what's available
42
+ buddy-reroll --list
43
+
44
+ # Check your current buddy
24
45
  buddy-reroll --current
25
46
 
26
- # Restore original binary
47
+ # Keep your buddy after Claude updates
48
+ buddy-reroll --hook
49
+
50
+ # Stop keeping after updates
51
+ buddy-reroll --unhook
52
+
53
+ # Something wrong? Check your setup
54
+ buddy-reroll --doctor
55
+
56
+ # Undo everything
27
57
  buddy-reroll --restore
28
58
  ```
29
59
 
@@ -36,12 +66,53 @@ buddy-reroll --restore
36
66
  | `--eye` | `·` `✦` `×` `◉` `@` `°` |
37
67
  | `--hat` | none, crown, tophat, propeller, halo, wizard, beanie, tinyduck |
38
68
  | `--shiny` | `--shiny` / `--no-shiny` |
69
+ | `--peak` | Best stat — DEBUGGING, PATIENCE, CHAOS, WISDOM, SNARK |
70
+ | `--dump` | Weakest stat (can't match `--peak`) |
71
+ | `--list` | See all options |
72
+ | `--current` | Show your current buddy |
73
+ | `--restore` | Undo changes and go back to default |
74
+ | `--doctor` | Check if everything is set up right |
75
+ | `--hook` | Keep your buddy after Claude Code updates |
76
+ | `--unhook` | Stop keeping after updates |
77
+ | `--version`, `-v` | Print version |
78
+
79
+ ## Keeping your buddy
80
+
81
+ Claude Code updates can reset your companion. `--hook` tells Claude to automatically restore your buddy every time it starts up.
82
+
83
+ ```bash
84
+ buddy-reroll --hook # set it up once
85
+ buddy-reroll --unhook # remove whenever you want
86
+ ```
87
+
88
+ ## How fast is it?
89
+
90
+ buddy-reroll uses all your CPU cores (up to 8) to find the right companion. Bun is a bit faster because of its native hashing, but both runtimes produce identical results.
91
+
92
+ | Runtime | Speed | Notes |
93
+ |---|---|---|
94
+ | Bun | Faster | Recommended |
95
+ | Node.js >= 20 | Slightly slower | Works great too |
39
96
 
40
97
  ## Requirements
41
98
 
42
- - [Bun](https://bun.sh) (uses `Bun.hash()` to match Claude Code's internal hashing)
99
+ - Node.js >= 20 or [Bun](https://bun.sh)
43
100
  - Claude Code
44
101
 
102
+ ## Troubleshooting
103
+
104
+ ```bash
105
+ buddy-reroll --doctor
106
+ ```
107
+
108
+ This checks your setup — where Claude is installed, whether buddy-reroll can write to it, and what to do next if something's off.
109
+
110
+ If Claude was installed system-wide and isn't writable, you can point to a different location:
111
+
112
+ ```bash
113
+ CLAUDE_BINARY_PATH=/path/to/claude buddy-reroll --doctor
114
+ ```
115
+
45
116
  ## License
46
117
 
47
118
  MIT