claude-buddy-cli 1.0.0 → 1.0.1
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/CLAUDE.md +10 -3
- package/README.md +61 -0
- package/package.json +2 -2
package/CLAUDE.md
CHANGED
|
@@ -9,12 +9,19 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
|
|
9
9
|
## 命令
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
#
|
|
13
|
-
|
|
12
|
+
# 从 npm 全局安装(推荐)
|
|
13
|
+
npm install -g claude-buddy-cli
|
|
14
|
+
buddy-cli
|
|
14
15
|
|
|
15
|
-
#
|
|
16
|
+
# 开发时本地链接
|
|
16
17
|
npm link
|
|
17
18
|
buddy-cli
|
|
19
|
+
|
|
20
|
+
# 直接运行
|
|
21
|
+
node index.js
|
|
22
|
+
|
|
23
|
+
# 卸载全局安装
|
|
24
|
+
npm uninstall -g claude-buddy-cli
|
|
18
25
|
```
|
|
19
26
|
|
|
20
27
|
## 架构
|
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# claude-buddy-cli
|
|
2
|
+
|
|
3
|
+
为 Claude Code 生成 lucky buddy ID 的 CLI 工具。
|
|
4
|
+
|
|
5
|
+
## 功能
|
|
6
|
+
|
|
7
|
+
Claude Code 有一个 buddy system,会给每个用户分配一个稀有度等级。本工具通过暴力搜索生成 "legendary" 稀有度的用户 ID,让你的 Claude Code 拥有最幸运的 buddy。
|
|
8
|
+
|
|
9
|
+
稀有度概率:
|
|
10
|
+
- **legendary**: 1%(金色,最稀有)
|
|
11
|
+
- **epic**: 4%
|
|
12
|
+
- **rare**: 10%
|
|
13
|
+
- **uncommon**: 25%
|
|
14
|
+
- **common**: 60%
|
|
15
|
+
|
|
16
|
+
## 解决的问题
|
|
17
|
+
|
|
18
|
+
Claude Code 的 buddy 稀有度由用户 ID 决定,但默认分配的 ID 通常是普通稀有度。本工具帮你找到一个 legendary ID,写入 `~/.claude.json` 配置文件,让你的 Claude Code 从此拥有金色 legendary buddy。
|
|
19
|
+
|
|
20
|
+
## 安装
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g claude-buddy-cli
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 使用
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
buddy-cli
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
运行后会自动搜索 legendary ID:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
🎰 Buddy Gacha
|
|
36
|
+
Searching for legendary...
|
|
37
|
+
|
|
38
|
+
✨ LEGENDARY FOUND!
|
|
39
|
+
ID: user_abc12345
|
|
40
|
+
Draws: 42
|
|
41
|
+
|
|
42
|
+
Updated ~/.claude.json
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
找到 legendary 后会自动更新 Claude Code 配置文件,下次启动 Claude Code 即可生效。
|
|
46
|
+
|
|
47
|
+
## 卸载
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm uninstall -g claude-buddy-cli
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 技术原理
|
|
54
|
+
|
|
55
|
+
- 使用 FNV-1a 哈希算法生成确定性种子
|
|
56
|
+
- Mulberry32 PRNG 确保结果可重现
|
|
57
|
+
- 每个 ID 的稀有度完全由哈希值决定,无法伪造
|
|
58
|
+
|
|
59
|
+
## 许可证
|
|
60
|
+
|
|
61
|
+
ISC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-buddy-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Find legendary buddy ID for Claude Code",
|
|
6
6
|
"main": "index.js",
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
"keywords": [],
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "ISC"
|
|
13
|
-
}
|
|
13
|
+
}
|