@kg-ai/kugou-skill 0.0.21 → 0.0.23
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 +10 -7
- package/SKILL.md +13 -14
- package/bin/darwin-arm64/kugou-cli +0 -0
- package/bin/darwin-x64/kugou-cli +0 -0
- package/bin/linux-arm64/kugou-cli +0 -0
- package/bin/linux-x64/kugou-cli +0 -0
- package/bin/win32-x64/kugou-cli.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,14 +14,14 @@ npm install -g @kg-ai/kugou-skill
|
|
|
14
14
|
|
|
15
15
|
## 前置条件
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
使用前需要扫码登录(极简流程):
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# Step 1: 获取二维码图片
|
|
21
21
|
kugou-cli auth login
|
|
22
22
|
|
|
23
|
-
# Step 2:
|
|
24
|
-
kugou-cli auth
|
|
23
|
+
# Step 2: 循环检查登录状态(直到 logged_in=true)
|
|
24
|
+
kugou-cli auth status
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
> 必须将 Step 1 输出中 `qrcode_img_path` 对应的图片发送给用户扫码。token 会自动持久化存储。
|
|
@@ -34,10 +34,7 @@ kugou-cli auth check -q <qrcode>
|
|
|
34
34
|
# 获取二维码图片
|
|
35
35
|
kugou-cli auth login
|
|
36
36
|
|
|
37
|
-
#
|
|
38
|
-
kugou-cli auth check -q <qrcode>
|
|
39
|
-
|
|
40
|
-
# 查看登录状态
|
|
37
|
+
# 检查登录状态(未完成登录时内部自动轮询)
|
|
41
38
|
kugou-cli auth status
|
|
42
39
|
|
|
43
40
|
# 登出
|
|
@@ -96,6 +93,12 @@ kugou-cli install --hermes --openclaw --codex
|
|
|
96
93
|
```bash
|
|
97
94
|
kugou-cli --version
|
|
98
95
|
kugou-cli --help
|
|
96
|
+
|
|
97
|
+
# 检查更新
|
|
98
|
+
kugou-cli update --check
|
|
99
|
+
|
|
100
|
+
# 更新(仅 npm 安装支持)
|
|
101
|
+
kugou-cli update --force
|
|
99
102
|
```
|
|
100
103
|
|
|
101
104
|
## 输出格式
|
package/SKILL.md
CHANGED
|
@@ -32,9 +32,9 @@ description: |
|
|
|
32
32
|
|
|
33
33
|
### 关键注意事项
|
|
34
34
|
|
|
35
|
-
-
|
|
35
|
+
- **登录流程极简**(详见 [references/auth.md](references/auth.md)):
|
|
36
36
|
1. `auth login` - 获取二维码图片,输出包含 `qrcode` 和 `qrcode_img_path`(**必须将图片发送给用户**)
|
|
37
|
-
2. `auth
|
|
37
|
+
2. `auth status` - 循环调用此命令检查登录状态:已登录返回 `logged_in: true`;未登录但有 pending qrcode 时内部自动检查扫码状态,扫码成功则自动完成登录
|
|
38
38
|
- **音乐命令依赖登录**:除了 `auth`、`install`、`version`、`--help` 以外,所有 `music` 子命令都需要先登录。如果收到 `"not logged in"` 错误,引导用户执行登录流程。
|
|
39
39
|
- **输出均为 JSON**:所有命令输出原始 JSON 到 stdout,错误输出到 stderr。解析 `errcode` 字段判断成功与否(`0` 为成功)。
|
|
40
40
|
- **歌曲展示规范**(详见 [references/output-format.md](references/output-format.md)):**禁止**只返回歌曲名、歌手名,**必须**以 Markdown 链接格式展示播放链接。
|
|
@@ -57,6 +57,7 @@ description: |
|
|
|
57
57
|
| [references/auth.md](references/auth.md) | 认证命令:扫码登录、查看状态、登出 |
|
|
58
58
|
| [references/music.md](references/music.md) | 音乐命令:搜索、推荐、收藏、统计、榜单 |
|
|
59
59
|
| [references/install.md](references/install.md) | 安装命令:SKILL.md 安装到各平台 |
|
|
60
|
+
| [references/update.md](references/update.md) | 更新命令:检查/执行自动更新 |
|
|
60
61
|
| [references/output-format.md](references/output-format.md) | 输出格式与展示规范 |
|
|
61
62
|
| [references/error-handling.md](references/error-handling.md) | 错误处理与常见错误 |
|
|
62
63
|
|
|
@@ -65,28 +66,26 @@ description: |
|
|
|
65
66
|
## 完整使用流程
|
|
66
67
|
|
|
67
68
|
```bash
|
|
68
|
-
# 1.
|
|
69
|
-
kugou-cli auth login
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
# 2. 查看登录状态
|
|
69
|
+
# 1. 登录(极简流程,详见 references/auth.md)
|
|
70
|
+
kugou-cli auth login # 获取二维码
|
|
71
|
+
# 循环执行以下命令直到 logged_in=true
|
|
73
72
|
kugou-cli auth status
|
|
74
73
|
|
|
75
|
-
#
|
|
74
|
+
# 2. 搜索歌曲
|
|
76
75
|
kugou-cli music search "周杰伦"
|
|
77
76
|
|
|
78
|
-
#
|
|
79
|
-
kugou-cli music recommend
|
|
77
|
+
# 3. 获取猜你喜欢
|
|
78
|
+
kugou-cli music recommend guess
|
|
80
79
|
|
|
81
|
-
#
|
|
80
|
+
# 4. 查看我的收藏
|
|
82
81
|
kugou-cli music favorites
|
|
83
82
|
|
|
84
|
-
#
|
|
83
|
+
# 5. 查看最近播放
|
|
85
84
|
kugou-cli music recent
|
|
86
85
|
|
|
87
|
-
#
|
|
86
|
+
# 6. 查看听歌统计
|
|
88
87
|
kugou-cli music stats
|
|
89
88
|
|
|
90
|
-
#
|
|
89
|
+
# 7. 查看抖音热歌榜
|
|
91
90
|
kugou-cli music charts 52144
|
|
92
91
|
```
|
|
Binary file
|
package/bin/darwin-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/linux-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|