@douyin-minigame/cli 0.5.0 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @douyin-minigame/cli
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b2b47dc148: 新增 `auth login --open-browser`,支持默认登录、分段式登录和恢复授权时打开系统默认浏览器;启动失败保留授权链接并继续原流程,JSON 输出保持不变。
8
+
9
+ 同步登录帮助与 Skill,CLI 最低版本提升至 `0.6.0`。
10
+
11
+ ## 0.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 1a90662924: 修正发行人热度榜名称
16
+
3
17
  ## 0.5.0
4
18
 
5
19
  ### Minor Changes
package/README.md CHANGED
@@ -110,6 +110,7 @@ dymg analytics behavior-query \
110
110
  | 命令 | 说明 |
111
111
  | ------------------------- | ------------------------------------------------------------------- |
112
112
  | `auth login` | 发起登录授权,默认等待用户在浏览器完成授权并自动完成登录 |
113
+ | `auth login --open-browser` | 打开系统默认浏览器,等待授权并保存登录态 |
113
114
  | `auth login --no-wait` | 打印授权链接后结束进程,适合 Agent 发起登录流程;可配合 `--json` |
114
115
  | `auth login --resume` | 继续完成上一次 `--no-wait` 发起的登录流程 |
115
116
  | `auth status` | 查看当前登录状态;可通过 `--json` 获取结构化结果 |
@@ -123,6 +124,10 @@ dymg auth login --no-wait --json
123
124
  dymg auth login --resume
124
125
  ```
125
126
 
127
+ 需要自动打开 CLI 所在机器的默认浏览器时,在 `auth login --no-wait --json` 后添加 `--open-browser`。
128
+ 恢复授权时可执行 `dymg auth login --resume --open-browser` 重新打开未过期的授权链接。
129
+ 浏览器打开失败会保留授权链接,授权流程仍可继续;打开浏览器不代表登录完成。
130
+
126
131
  ## 命令总览
127
132
 
128
133
  | 命令组 | 命令 | 用途 |