@kg-ai/kugou-skill 0.1.11 → 0.1.12
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/SKILL.md
CHANGED
|
@@ -32,8 +32,8 @@ description: |
|
|
|
32
32
|
1. 检查安装 → npm install -g @kg-ai/kugou-skill
|
|
33
33
|
2. 检查登录态 → kugou-cli auth status
|
|
34
34
|
3. 登录决策(按以下优先级严格判断,不要跳步):
|
|
35
|
-
├─ 状态 a:已登录(logged_in: true)→ 跳到第 6 步
|
|
36
|
-
├─ 状态 b:未登录 + 用户**明确**说"我有 secret" → 调 `kugou-cli auth set-secret "<secret>"` 一次完成 → 跳到第 6 步
|
|
35
|
+
├─ 状态 a:已登录(logged_in: true)→ 跳到第 6 步
|
|
36
|
+
├─ 状态 b:未登录 + 用户**明确**说"我有 secret" → 调 `kugou-cli auth set-secret "<secret>"` 一次完成 → 跳到第 6 步
|
|
37
37
|
├─ 状态 c:未登录 + 当前环境**无法**渲染远程 URL 图片 **且** 无法读取本地二维码文件 → **强制**走 set-secret(同上)
|
|
38
38
|
└─ 状态 d:未登录 + 其他所有情况 → 走扫码流程(第 4 步)
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ description: |
|
|
|
45
45
|
- 几次都返回 `waiting` 且未出现 `scanned` → 进入阶段 B
|
|
46
46
|
- **阶段 B(等用户回复)**:停下,告诉用户"请用酷狗 APP 扫码登录,扫完后告诉我已扫码",**不再调 status**,等用户**主动回复"已扫码"**
|
|
47
47
|
- **阶段 C(验证一次)**:用户回复"已扫码"后,**调一次** `auth status`:
|
|
48
|
-
- `logged_in: true` → 完成,跳到第 6 步
|
|
48
|
+
- `logged_in: true` → 完成,跳到第 6 步
|
|
49
49
|
- `scanned`(已扫但未确认)→ 等几秒再调一次,最多**额外**调几次,仍是 scanned 就告诉用户"手机端是否已点确认?"
|
|
50
50
|
- `failed` 或 `{"logged_in": false}` → 重新 `auth login` 拿新图,从阶段 A 重新开始
|
|
51
51
|
5. **首次要展示歌曲/歌单前探测本机客户端可用性**(详见 [references/control.md §13](references/control.md#13-client-detection-control-detect)):
|
|
@@ -55,7 +55,7 @@ description: |
|
|
|
55
55
|
- 退出码 `0` → 本机有客户端,标记 `client_available = true`
|
|
56
56
|
- 退出码 `2` → 本机没装客户端,标记 `client_available = false`
|
|
57
57
|
- 退出码 `1` → 探测过程出错(注册表权限等),按 `false` 处理并继续
|
|
58
|
-
- **不影响 control 命令本身**:当用户主动要求 `control play` 等命令时,仍按原本的 `control` 错误处理(找不到客户端会由 `control start` 报"handshake file not found",不要用探测结果跳过 `control` 调用)
|
|
58
|
+
- **不影响 control 命令本身**:当用户主动要求 `control play` 等命令时,仍按原本的 `control` 错误处理(找不到客户端会由 `control start` 报"handshake file not found",不要用探测结果跳过 `control` 调用)
|
|
59
59
|
- **何时不探测**:用户请求只查询统计数据、查收藏/最近播放、看错误页等**不展示歌曲列表**的纯查询场景;登录流程本身;debug / 排错场景
|
|
60
60
|
|
|
61
61
|
6. 按请求类型分流:
|
|
@@ -177,7 +177,7 @@ description: |
|
|
|
177
177
|
|
|
178
178
|
详见 [references/control.md §3 current](./references/control.md#3-current--获取当前播放)。
|
|
179
179
|
|
|
180
|
-
### 推荐理由规范
|
|
180
|
+
### 推荐理由规范
|
|
181
181
|
|
|
182
182
|
仅在 agent **主动推荐**场景下,歌曲列表之后**必须**追加一段 220-260 字的推荐理由(详见 [references/output-format.md#5-推荐理由主动推荐场景必写](references/output-format.md#5-推荐理由主动推荐场景必写)):
|
|
183
183
|
|
|
Binary file
|
package/bin/darwin-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|
package/bin/linux-x64/kugou-cli
CHANGED
|
Binary file
|
|
Binary file
|