@douyin-minigame/cli 0.7.0 → 0.8.0-alpha.20261204090540.dev
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 +10 -0
- package/README.md +39 -20
- package/Third party software notice.json +15 -0
- package/dist/cli.js +114 -111
- package/dist/mintplay/capabilities/identity.json +40 -0
- package/dist/mintplay/capabilities/official.mpbundle +3471 -0
- package/dist/mintplay/dist/init.d.ts +2 -0
- package/dist/mintplay/dist/init.js +2250 -0
- package/dist/mintplay/dist/rename-no-replace-darwin-arm64 +0 -0
- package/dist/mintplay/dist/rename-no-replace-linux-x64 +0 -0
- package/dist/mintplay/dist/rename-no-replace-win32-x64.exe +0 -0
- package/dist/mintplay/package.json +5 -0
- package/package.json +2 -1
- package/skills/douyin-minigame/SKILL.md +82 -144
- package/skills/douyin-minigame/references/capabilities/ad-monetization.md +2 -2
- package/skills/douyin-minigame/references/capabilities/add-shortcut.md +2 -4
- package/skills/douyin-minigame/references/capabilities/customer-service.md +1 -3
- package/skills/douyin-minigame/references/capabilities/sidebar-retention.md +1 -3
- package/skills/douyin-minigame/references/capabilities/social-share.md +3 -5
- package/skills/douyin-minigame/references/capability-integration.md +38 -0
- package/skills/douyin-minigame/references/commands/ability.md +1 -4
- package/skills/douyin-minigame/references/commands/analytics.md +41 -31
- package/skills/douyin-minigame/references/commands/auth.md +19 -58
- package/skills/douyin-minigame/references/commands/feedback.md +22 -10
- package/skills/douyin-minigame/references/commands/game.md +2 -8
- package/skills/douyin-minigame/references/commands/growth.md +30 -36
- package/skills/douyin-minigame/references/commands/insight.md +6 -4
- package/skills/douyin-minigame/references/commands/mintplay.md +11 -0
- package/skills/douyin-minigame/references/commands/performance.md +27 -17
- package/skills/douyin-minigame/references/commands/publisher.md +20 -13
- package/skills/douyin-minigame/references/commands/revenue.md +30 -7
- package/skills/douyin-minigame/references/commands/update.md +26 -20
- package/skills/douyin-minigame/references/parameters.md +26 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @douyin-minigame/cli
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- da5c766fc4: 新增后台自动更新:业务命令结束后静默更新至 `latest`,支持 `GAME_CLI_DISABLE_AUTO_UPDATE=true` 关闭。
|
|
8
|
+
|
|
9
|
+
完善 `check-update` / `update`:支持 npm、pnpm、Yarn Classic、bun 全局安装识别与指定版本更新,安装后核验入口与版本并同步 Skill。
|
|
10
|
+
|
|
11
|
+
优化随包 Skill:改用任务路由按需加载 reference,保留引擎适配文档,登录环境自检改为按需执行,补齐批量查询与失败分组处理规则。
|
|
12
|
+
|
|
3
13
|
## 0.7.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
| CLI 命令名 | `dymg` |
|
|
10
10
|
| npm 包名 | `@douyin-minigame/cli` |
|
|
11
11
|
| 运行时 | Node.js 24.x |
|
|
12
|
-
|
|
|
13
|
-
| 随包 Skill | `skills/douyin-minigame` |
|
|
12
|
+
| Agent 支持 | `douyin-minigame` Skill |
|
|
14
13
|
| 输出方式 | 数据/列表查询写入 CSV/raw/summary;纯状态查询写入 raw/summary |
|
|
15
14
|
|
|
16
15
|
## 能力范围
|
|
@@ -95,13 +94,13 @@ dymg auth status
|
|
|
95
94
|
dymg game game-list
|
|
96
95
|
```
|
|
97
96
|
|
|
98
|
-
4.
|
|
97
|
+
4. 查询业务数据,并指定输出根目录。日期使用 `YYYY-MM-DD`,按执行当天计算:`<yesterday>` / `<today>` 为昨天 / 今天;`<start-date>` / `<end-date>` 使用对应命令允许窗口内的起止日期。
|
|
99
98
|
|
|
100
99
|
```bash
|
|
101
100
|
dymg analytics behavior-query \
|
|
102
101
|
--app-id <app-id> \
|
|
103
|
-
--start-date
|
|
104
|
-
--end-date
|
|
102
|
+
--start-date <start-date> \
|
|
103
|
+
--end-date <end-date> \
|
|
105
104
|
--output-dir ./dymg-output
|
|
106
105
|
```
|
|
107
106
|
|
|
@@ -170,13 +169,19 @@ dymg update --target-version 1.2.3
|
|
|
170
169
|
dymg update --skip-skills
|
|
171
170
|
```
|
|
172
171
|
|
|
173
|
-
`update` 默认会更新 CLI 并同步随包发布的 Skill;传入 `--skip-skills` 时只更新 CLI。未显式传入 `--package-manager` 时,CLI
|
|
172
|
+
`update` 默认会更新 CLI 并同步随包发布的 Skill;传入 `--skip-skills` 时只更新 CLI。未显式传入 `--package-manager` 时,CLI 会尝试根据当前环境或已登记配置识别;识别失败时,需要显式传入 `--package-manager npm|pnpm|yarn|bun`。`yarn` 使用 Yarn Classic 的全局安装命令。
|
|
173
|
+
|
|
174
|
+
`--target-version` 接受 semver 版本号、`latest` 或 `beta` / `alpha` / `next` / `stable` 标签;指定版本与已探测的全局安装版本一致时跳过 CLI 安装。
|
|
174
175
|
|
|
175
176
|
`skills install` 把随包发布的 Agent Skill 同步到本机全局 Skill 目录。该命令兼容全局安装和 `npx` 临时调用场景。
|
|
176
177
|
|
|
177
|
-
`check-update`
|
|
178
|
+
`check-update` 用于手动检查更新;在交互终端发现新版本时,会提供“现在更新 / 暂不更新”选择,确认后更新 CLI 并同步 Skill。CI、Agent 或非交互终端仅显示更新提示,不执行安装;需要更新时可执行 `dymg update`。
|
|
179
|
+
|
|
180
|
+
CLI 在业务命令结束后按需启动静默更新,正常间隔为 24 小时,失败后间隔 1 小时。后台任务不阻塞当前命令,不改变其执行结果。
|
|
178
181
|
|
|
179
|
-
CLI
|
|
182
|
+
自动更新支持 Windows / macOS / Linux 上通过 npm、pnpm、Yarn Classic 或 bun 全局安装的 CLI。后台沿用当前安装的包管理器,始终安装 `latest`,再由新版 CLI 同步 Skill。`--target-version <具体版本>` 只影响当次手动更新。设置 `GAME_CLI_DISABLE_AUTO_UPDATE=true` 可关闭后台自动更新,不影响手动执行 `check-update`、`update` 或 `skills install`。CI 环境不启用后台任务,本地或 `npx` 临时调用不自动安装。
|
|
183
|
+
|
|
184
|
+
自动更新失败后,下次触发会重新执行 CLI 安装和 Skill 同步。手动更新重试时需保留本次指定的版本、包管理器和 `--skip-skills`。
|
|
180
185
|
|
|
181
186
|
### 查询游戏列表
|
|
182
187
|
|
|
@@ -199,17 +204,19 @@ dymg insight theme-list --include-top-videos --page 1 --page-size 20
|
|
|
199
204
|
```bash
|
|
200
205
|
dymg analytics behavior-query \
|
|
201
206
|
--app-id <app-id> \
|
|
202
|
-
--start-date
|
|
203
|
-
--end-date
|
|
207
|
+
--start-date <start-date> \
|
|
208
|
+
--end-date <end-date>
|
|
204
209
|
|
|
205
210
|
dymg analytics retention-query \
|
|
206
211
|
--app-id <app-id> \
|
|
207
|
-
--start-date
|
|
208
|
-
--end-date
|
|
212
|
+
--start-date <start-date> \
|
|
213
|
+
--end-date <end-date> \
|
|
209
214
|
--retention-scene 1
|
|
210
215
|
|
|
211
216
|
dymg analytics device-query \
|
|
212
217
|
--app-id <app-id> \
|
|
218
|
+
--start-date <start-date> \
|
|
219
|
+
--end-date <end-date> \
|
|
213
220
|
--dimension 1 \
|
|
214
221
|
--top-n 20
|
|
215
222
|
```
|
|
@@ -221,8 +228,8 @@ dymg analytics device-query \
|
|
|
221
228
|
```bash
|
|
222
229
|
dymg growth metric-query \
|
|
223
230
|
--app-id <app-id> \
|
|
224
|
-
--activate-start-date
|
|
225
|
-
--activate-end-date
|
|
231
|
+
--activate-start-date <yesterday> \
|
|
232
|
+
--activate-end-date <today> \
|
|
226
233
|
--dimension 1,2 \
|
|
227
234
|
--metric 1,24 \
|
|
228
235
|
--life-time 24:1,2 \
|
|
@@ -231,8 +238,8 @@ dymg growth metric-query \
|
|
|
231
238
|
|
|
232
239
|
dymg growth metric-query \
|
|
233
240
|
--app-id <app-id> \
|
|
234
|
-
--activate-start-date
|
|
235
|
-
--activate-end-date
|
|
241
|
+
--activate-start-date <start-date> \
|
|
242
|
+
--activate-end-date <end-date> \
|
|
236
243
|
--dimension 1 \
|
|
237
244
|
--metric 11,21 \
|
|
238
245
|
--life-time 11:7,14,30 \
|
|
@@ -253,11 +260,14 @@ dymg growth metric-query \
|
|
|
253
260
|
|
|
254
261
|
| 场景 | 规则 |
|
|
255
262
|
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
|
256
|
-
| 用户分析 | `analytics realtime-query`
|
|
257
|
-
| 增长分析 | `--freshness-type 1`
|
|
263
|
+
| 用户分析 | `analytics realtime-query` 仅查询今天;其他查询的日期允许闭区间 `[今天前89天, 昨天]` |
|
|
264
|
+
| 增长分析 | `--freshness-type 1` 查询昨天、今天;`--freshness-type 2` 的日期允许闭区间 `[今天前179天, 昨天]` |
|
|
265
|
+
| 性能指标 | 启动、运行、网络性能的日期允许闭区间 `[今天前30天, 昨天]`;指标枚举见对应命令 `--help` |
|
|
266
|
+
| 广告收入 | 日期允许闭区间 `[今天前364天, 昨天]` |
|
|
267
|
+
| 支付收入与流水 | 查询日期为闭区间 `[startDate, endDate]`,`endDate - startDate ≤ 89 天`,结束日期不晚于今天 |
|
|
258
268
|
| 榜单分页 | `insight ranking-list --page-size` 最大为 200,且 `page * pageSize` 不能超过 200 |
|
|
259
|
-
| 游戏类型筛选 | `insight ranking-list --game-type-list` 和 `insight hotspot-list --game-type-ids` 使用游戏类型/分类标签 ID
|
|
260
|
-
| 热点筛选 | `insight hotspot-list
|
|
269
|
+
| 游戏类型筛选 | `insight ranking-list --game-type-list` 和 `insight hotspot-list --game-type-ids` 使用游戏类型/分类标签 ID,完整枚举见对应命令 `--help` 和随包 Skill reference |
|
|
270
|
+
| 热点筛选 | `insight hotspot-list --top-n` 为整数 `1-50`,平台默认 `20` |
|
|
261
271
|
| 热门元素/题材 | `insight element-list --page-size` 和 `insight theme-list --page-size` 最大为 50 |
|
|
262
272
|
| 输出目录 | `--output-dir` 是输出根目录,CLI 会继续创建 `command-timestamp` 子目录 |
|
|
263
273
|
|
|
@@ -314,3 +324,12 @@ dymg growth metric-query \
|
|
|
314
324
|
## 发布说明
|
|
315
325
|
|
|
316
326
|
当前 npm 包发布编译后的 CLI 产物、随包 Agent Skill 和必要元数据。
|
|
327
|
+
|
|
328
|
+
### MintPlay
|
|
329
|
+
|
|
330
|
+
dymg 随包提供 MintPlay 运行时和项目创作技能。初始化时可先用 `--dry-run` 预览项目变更。
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
dymg mintplay init --agent codex --project . --dry-run --json
|
|
334
|
+
dymg mintplay init --agent codex --project .
|
|
335
|
+
```
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"url": "https://www.npmjs.com/package/commander"
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"component": "cross-spawn",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"url": "https://www.npmjs.com/package/cross-spawn"
|
|
38
|
+
},
|
|
34
39
|
{
|
|
35
40
|
"component": "csv-parse",
|
|
36
41
|
"license": "MIT",
|
|
@@ -56,6 +61,16 @@
|
|
|
56
61
|
"license": "MIT",
|
|
57
62
|
"url": "https://www.npmjs.com/package/ora"
|
|
58
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"component": "proper-lockfile",
|
|
66
|
+
"license": "MIT",
|
|
67
|
+
"url": "https://www.npmjs.com/package/proper-lockfile"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"component": "semver",
|
|
71
|
+
"license": "ISC",
|
|
72
|
+
"url": "https://www.npmjs.com/package/semver"
|
|
73
|
+
},
|
|
59
74
|
{
|
|
60
75
|
"component": "typescript",
|
|
61
76
|
"license": "Apache-2.0",
|