@taptap/cli 2026.10.29 → 2026.10.31

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.
Files changed (80) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +46 -0
  3. package/README.md +3 -0
  4. package/README.zh.md +3 -0
  5. package/bin/taptap-cli-darwin-amd64 +0 -0
  6. package/bin/taptap-cli-darwin-arm64 +0 -0
  7. package/bin/taptap-cli-linux-amd64 +0 -0
  8. package/bin/taptap-cli-linux-arm64 +0 -0
  9. package/bin/taptap-cli-linux-riscv64 +0 -0
  10. package/bin/taptap-cli-windows-amd64.exe +0 -0
  11. package/bin/taptap-cli-windows-arm64.exe +0 -0
  12. package/checksums.txt +7 -7
  13. package/package.json +1 -1
  14. package/skills/index.json +9 -0
  15. package/skills/taptap-app-edit/SKILL.md +3 -1
  16. package/skills/taptap-app-edit/references/app-edit-analysis.md +3 -3
  17. package/skills/taptap-app-edit/references/app-edit-execution-rules.md +1 -1
  18. package/skills/taptap-app-edit/references/app-edit-field-map.md +2 -2
  19. package/skills/taptap-app-edit/references/app-edit-fields-and-packages.md +33 -4
  20. package/skills/taptap-app-edit/references/app-edit-version-lifecycle.md +1 -1
  21. package/skills/taptap-cli/SKILL.md +3 -0
  22. package/skills/taptap-cli/references/business-routing.md +1 -0
  23. package/skills/taptap-cli/references/cli-command-patterns.md +1 -1
  24. package/skills/taptap-cli/references/feedback.md +2 -2
  25. package/skills/taptap-cli/references/interactive-operations-flow.md +94 -0
  26. package/skills/taptap-cli/references/material-requirements.md +10 -39
  27. package/skills/taptap-cli/references/shared-execution.md +15 -1
  28. package/skills/taptap-community-management/references/read-moments.md +1 -1
  29. package/skills/taptap-community-management/references/upload-image.md +1 -1
  30. package/skills/taptap-game-sign/SKILL.md +86 -0
  31. package/skills/taptap-game-sign/references/code-import.md +41 -0
  32. package/skills/taptap-game-sign/references/game-sign-runbook.md +370 -0
  33. package/skills/taptap-materials/SKILL.md +3 -2
  34. package/skills/taptap-official-message-push/SKILL.md +94 -0
  35. package/skills/taptap-official-message-push/references/push-runbook.md +232 -0
  36. package/skills/taptap-package-management/SKILL.md +2 -2
  37. package/skills/taptap-package-management/references/package-management-diagnostics.md +1 -1
  38. package/skills/taptap-player-feedback/SKILL.md +2 -2
  39. package/skills/taptap-player-feedback/references/player-feedback-queries.md +2 -6
  40. package/skills/taptap-qualification/SKILL.md +4 -4
  41. package/skills/taptap-qualification/references/qualification-analysis.md +3 -3
  42. package/skills/taptap-test-plan/SKILL.md +6 -6
  43. package/skills/taptap-test-plan/references/test-plan-creation.md +1 -1
  44. package/skills/taptap-test-plan/references/test-plan-faq.md +3 -3
  45. package/skills/taptap-test-plan/references/test-plan-operations.md +2 -0
  46. package/skills/taptap-whats-new/SKILL.md +90 -0
  47. package/skills/taptap-whats-new/references/whats-new-runbook.md +220 -0
  48. package/taptap-suite/SKILL.md +5 -2
  49. package/taptap-suite/references/taptap-app-edit/SKILL.md +3 -1
  50. package/taptap-suite/references/taptap-app-edit/references/app-edit-analysis.md +3 -3
  51. package/taptap-suite/references/taptap-app-edit/references/app-edit-execution-rules.md +1 -1
  52. package/taptap-suite/references/taptap-app-edit/references/app-edit-field-map.md +2 -2
  53. package/taptap-suite/references/taptap-app-edit/references/app-edit-fields-and-packages.md +33 -4
  54. package/taptap-suite/references/taptap-app-edit/references/app-edit-version-lifecycle.md +1 -1
  55. package/taptap-suite/references/taptap-cli/references/business-routing.md +1 -0
  56. package/taptap-suite/references/taptap-cli/references/cli-command-patterns.md +1 -1
  57. package/taptap-suite/references/taptap-cli/references/feedback.md +2 -2
  58. package/taptap-suite/references/taptap-cli/references/interactive-operations-flow.md +94 -0
  59. package/taptap-suite/references/taptap-cli/references/material-requirements.md +10 -39
  60. package/taptap-suite/references/taptap-cli/references/shared-execution.md +15 -1
  61. package/taptap-suite/references/taptap-community-management/references/read-moments.md +1 -1
  62. package/taptap-suite/references/taptap-community-management/references/upload-image.md +1 -1
  63. package/taptap-suite/references/taptap-game-sign/SKILL.md +86 -0
  64. package/taptap-suite/references/taptap-game-sign/references/code-import.md +41 -0
  65. package/taptap-suite/references/taptap-game-sign/references/game-sign-runbook.md +370 -0
  66. package/taptap-suite/references/taptap-materials/SKILL.md +3 -2
  67. package/taptap-suite/references/taptap-official-message-push/SKILL.md +94 -0
  68. package/taptap-suite/references/taptap-official-message-push/references/push-runbook.md +232 -0
  69. package/taptap-suite/references/taptap-package-management/SKILL.md +2 -2
  70. package/taptap-suite/references/taptap-package-management/references/package-management-diagnostics.md +1 -1
  71. package/taptap-suite/references/taptap-player-feedback/SKILL.md +2 -2
  72. package/taptap-suite/references/taptap-player-feedback/references/player-feedback-queries.md +2 -6
  73. package/taptap-suite/references/taptap-qualification/SKILL.md +4 -4
  74. package/taptap-suite/references/taptap-qualification/references/qualification-analysis.md +3 -3
  75. package/taptap-suite/references/taptap-test-plan/SKILL.md +6 -6
  76. package/taptap-suite/references/taptap-test-plan/references/test-plan-creation.md +1 -1
  77. package/taptap-suite/references/taptap-test-plan/references/test-plan-faq.md +3 -3
  78. package/taptap-suite/references/taptap-test-plan/references/test-plan-operations.md +2 -0
  79. package/taptap-suite/references/taptap-whats-new/SKILL.md +90 -0
  80. package/taptap-suite/references/taptap-whats-new/references/whats-new-runbook.md +220 -0
@@ -0,0 +1,220 @@
1
+ # whats-new runbook(完整参数与返回)
2
+
3
+ 本文是 Agent 的执行参考,不是默认用户回复模板。业务回复按 [Skill 入口](../SKILL.md) 的“面向用户的回复”组织;用户明确要求技术细节时才展示相关命令。
4
+
5
+ 示例 ID、链接、时间和数量仅说明结构,执行时替换为当前目标与用户已授权的值。共享执行规范定义授权与幂等规则;已有授权不重复询问。
6
+
7
+ 所有示例都按 `--app-id <appId> --dev-id <developerId>` 传作用域;写操作额外传 `--idempotency-key <key>`,先 `--dry-run` 再看 `--yes`。
8
+ 查询参数同样放在 `--data` 里。
9
+
10
+ ## 信息确认与分步提问
11
+
12
+ 提问工具、分批收集及沿用已有答案的规则见[共享提问规则](../../taptap-cli/references/shared-execution.md#交互提问方式),本节只定义本业务的选项与分支。
13
+
14
+ - 新建且置顶未明确:用弹窗展示“不置顶/游戏详情页置顶/PC 库置顶/两处都置顶”。只缺这一项就只问这一项;时间也缺失时,可在同轮添加自由输入的展示时间问题。
15
+ - 固定选项优先在同一题完整展示;工具无法容纳四项时,先问“不置顶/需要置顶”,选择需要后再问“游戏详情页置顶/PC 库置顶/两处都置顶”。不默默省略位置选项,不把默认预选当作回答。
16
+ - 编辑先回读并保留现有置顶配置。用户只改排期且时间已明确,不弹窗重问位置;要求变更位置但目标不明,先说明当前位置再弹窗补问。
17
+ - 源内容有多个候选时,先查询核对,再用可区分的中文标题提供选择,支持用户输入其他链接。已知不可用内容不列为可选候选。工具不可用时才退回文字提问。
18
+
19
+
20
+ ## 执行顺序与分流
21
+
22
+ 1. **定位源内容**:确认目标游戏与可用源链接。无源内容先处理来源缺口;不把公告操作当作发帖。
23
+ 2. **查重并分流(A2)**:已知 content_id 直接回读;否则按源身份查重。唯一已有条目走编辑/重新上线,系统同步条目走允许的调整,完整查询无匹配才新建;多候选需选择,覆盖不完整则停止。
24
+ 3. **补齐配置**:新建收集用途/标签、起止时间与置顶选择;置顶未明确时展示下方四个中文选项;编辑从回读补齐参数,只问本次变更缺项或冲突。未涉及的配置保留,不能将缺省当成清空。
25
+ 4. **检查容量(A1)**:分类和动作明确后检查对应容量;只检查本次要占用的置顶位置。已有在线条目改排期不新增在线占用,不能因满额要求下线其他条目。新建/重新上线或新增置顶有冲突时,展示实际占用,请用户选择调整对象;调整获授权后执行并回读,再继续。
26
+ 5. **预览与执行(A3/B/A5)**:用中文展示来源名称、分类、标签、排期、置顶及影响,明确创建即启用。只准备方案则停在预览;已有执行授权且方案未变化不重复确认。新建调用 create,编辑调用所需 update,离线重新上线调用 update-status;多步变更逐步回读,不并发写。
27
+ 6. **结果核对(A4)**:回读条目的状态、有效性、实际起止时间和置顶集合;改变上线占用或置顶时再读总览核对结果。纯排期编辑无需重复核对未变化的容量。配置在线与玩家已看到分别报告。
28
+
29
+ 任一步失败或结果未知,停在当前步骤并保留目标和已完成项;先核实,不自动重建或重复上线。系统同步内容没有匹配条目时回到来源模块,不手动创建替代。只改标签时说明现有能力限制,不自动删除/重建,也不承诺删除后同源必然可重建。
30
+
31
+ ### 新建时收集置顶选择
32
+
33
+ 用户尚未明确时问:“这条内容需要放在哪个置顶位置?”并完整提供以下四个中文选项,不让用户填写英文枚举:
34
+
35
+ | 中文选项 | `top_types` |
36
+ | --- | --- |
37
+ | 不置顶 | `[]` |
38
+ | 游戏详情页置顶 | `["app_detail"]` |
39
+ | PC 库置顶 | `["pc_inventory"]` |
40
+ | 两处都置顶 | `["app_detail", "pc_inventory"]` |
41
+
42
+ 用户未提及不等于选择“不置顶”,未作选择前不替用户决定;已明确选择就直接沿用。与用途、时间的缺项自然合并询问,只缺置顶时只问置顶。预览和回读使用同一中文标签,选择明确后再查对应位置的占用;位置满时说明实际冲突,不擅自改成不置顶或另一个位置。
43
+
44
+ ### 编辑时保留现有配置
45
+
46
+ 先 get-whats-new 读取源链接、分类、标签、排期、状态与 top_types。用户只改时间时沿用当前分类、标签和完整置顶集合;不得传空集合误取消置顶。不涉及置顶的编辑或重新上线不重新询问四个选项。用户要求变更置顶但目标不明时,先说明当前中文位置,再用上述选项补问;部分位置增减保留未要求变更的位置。只改置顶优先专用操作,空集合仅用于用户明确要求取消全部置顶。已有离线条目只改排期不自动上线;用户要求恢复展示时才执行上线并回读实际排期。0/0 重新上线可能被改为当前时间起30天,不承诺永久展示。
47
+
48
+ ## 中文展示标签
49
+
50
+ Agent 用以下映射组织中文提问、预览与结果,接口字段和值保持原样;不更改用户原内容标题。需要排障时可在中文后附原始值,不默认显示整段英文或 JSON。
51
+
52
+ | 内部字段/值 | 用户看到的含义 |
53
+ | --- | --- |
54
+ | type: announcement / activity | 公告类/活动类 |
55
+ | label_type: announcement / feedback / activity / contribution | 公告/反馈/活动/征稿 |
56
+ | label_type: check_in / gift / new_version / lottery | 签到/礼包/新版本/抽奖(系统同步) |
57
+ | status: online / offline | 已启用(后台“上线中”)/已下线;启用不保证已到展示时间或客户端可见 |
58
+ | top_types: app_detail / pc_inventory / [] | 游戏详情页置顶/PC 库置顶/不置顶;两值同时存在说“两处都置顶” |
59
+ | start_time / end_time | 展示开始时间/展示结束时间;零值先核实语义,不翻译成“永久” |
60
+ | invalid / invalid_reason | 内容是否失效/无法展示的原因;true 表示已失效,false 表示未标记失效,不证明玩家已能看到 |
61
+ | capacity: used / limit | 已占用数量/容量上限 |
62
+ | exposure_count / click_count / click_rate | 曝光次数/点击次数/点击率;统计时间为0时说“暂无统计数据” |
63
+ | source: moment / topic / video / check_in / activity / gift / new_version / lottery / image_gallery / unknown | 动态/帖子/视频/签到/活动/礼包/新版本/抽奖/图集/来源未知 |
64
+
65
+ 错误优先解释业务原因和下一步,例如容量满时说明“公告位已满,请选择要下线的条目”,写入不确定时说明“操作结果尚未确认,正在核对原条目”。未知枚举保留原值并说明暂无法识别,不能擅自映射为成功或离线。
66
+
67
+ ## 场景 A:上线一条公告(从零到可核对)
68
+
69
+ 创建前按 [信息收集规则](../SKILL.md#创建前的信息收集)补齐源内容、用途与排期。预览使用业务名称展示分类、标签、时间及置顶位置,并说明创建会启用;不要要求用户填写枚举、时间戳或 content_id。已有条目只调整用户要求的配置,不为修改排期重新收集整套创建信息。
70
+
71
+ ### A2 查重(按源链接,跨类型与状态)
72
+
73
+ 签到活动启用后会自动收录,停用时会下线对应条目。签到、礼包、新版本和抽奖均先在来源模块配置,再定位已有条目;不能当作普通活动手动补建。
74
+
75
+ 使用 `find-whats-new-by-url --data '{"url":"<内容链接>"}'`,按解析后的源身份返回匹配条目。`list-whats-new` 省略 type/status 可跨分类分页;扫描超限或不完整会报错,不能当成不存在。需要按分类与状态逐项查看时,使用下面的分页流程;查重查询失败时不能据此继续创建。
76
+
77
+ ```bash
78
+ # 分页需要实际读取,不能与 --dry-run 组合。
79
+ # quality-gate: dry-run-skip=live-read
80
+ taptap-cli whats-new list-whats-new --app-id <appId> --dev-id <developerId> \
81
+ --data '{"type":"announcement","status":"online","page_size":20}' --page-all --page-limit 1000
82
+
83
+ # 分页需要实际读取,不能与 --dry-run 组合。
84
+ # quality-gate: dry-run-skip=live-read
85
+ taptap-cli whats-new list-whats-new --app-id <appId> --dev-id <developerId> \
86
+ --data '{"type":"announcement","status":"offline","page_size":20}' --page-all --page-limit 1000
87
+ ```
88
+
89
+ 完整分页后把返回里每条 `url` 与用户给的链接比对;覆盖不完整时停止创建。唯一已有条目应先回读并按用户目标复用,多候选让用户选择,避免同一链接配两次;系统同步条目会带 `label_type=check_in|gift|new_version|lottery`,这类内容不要重复创建。
90
+
91
+ ### A1 看容量与置顶位(查重、明确配置后)
92
+
93
+ 详情页置顶最多 2 个,PC 库最多 3 个,实际占用先读总览;不要将详情页上限套到 PC 库。普通排序不调整置顶先后。
94
+
95
+ ```bash
96
+ taptap-cli whats-new get-whats-new-overview --app-id <appId> --dev-id <developerId>
97
+ ```
98
+
99
+ 返回:
100
+
101
+ ```json
102
+ {
103
+ "capacity": [
104
+ {"content_type": "announcement", "used": 2, "limit": 2},
105
+ {"content_type": "activity", "used": 3, "limit": 10},
106
+ {"content_type": "new_version", "used": 1, "limit": 1}
107
+ ],
108
+ "top_slots": [
109
+ {"top_type": "app_detail", "used": 1, "content_ids": [123]},
110
+ {"top_type": "pc_inventory", "used": 0, "content_ids": []}
111
+ ],
112
+ "online_count": 5,
113
+ "checked_at": 1760000000
114
+ }
115
+ ```
116
+
117
+ 判定:本次需要新增在线占用且 `used >= limit` 时列出占用,让用户选择并确认替换对象;不得自动下线旧内容。在线容量与置顶容量分别处理,置顶满优先取消所选内容的对应置顶,不必下线整条内容。`top_slots[].content_ids` 就是占位内容,本次需要的置顶位满时用业务名称逐条说明占用;不要求用户处理无关位置。
118
+
119
+ ### A3 创建
120
+
121
+ ```bash
122
+ taptap-cli whats-new create-whats-new --app-id <appId> --dev-id <developerId> \
123
+ --data '{"url":"https://www.taptap.cn/moment/123","type":"announcement","label_type":"announcement","start_time":0,"end_time":1800100000,"top_types":["app_detail"]}' \
124
+ --idempotency-key <key> --dry-run
125
+ # 确认后把 --dry-run 换成 --yes
126
+ ```
127
+
128
+ 字段:
129
+
130
+ | 字段 | 必填 | 说明 |
131
+ | --- | --- | --- |
132
+ | `url` | 是 | TapTap 站内链接(帖子/动态/视频/签到/图集/新版本/礼包后台) |
133
+ | `type` | 是 | `announcement` 公告类、`activity` 活动类 |
134
+ | `label_type` | 是 | 手动类型:`announcement` / `feedback` / `activity` / `contribution`;创建后不可修改 |
135
+ | `start_time` / `end_time` | 是 | 秒级时间戳;避免同时为0:离线重新上线时0/0会变为当前时间起30天,须回读实际排期 |
136
+ | `top_types` | 是 | `app_detail`(游戏详情页)/ `pc_inventory`(PC 库),可空数组 |
137
+
138
+ 返回:
139
+
140
+ ```json
141
+ {"content_id": 123, "status": "online", "type": "announcement", "label_type": "announcement",
142
+ "top_types": ["app_detail"], "sort": 0, "start_time": 0, "end_time": 1800100000, "applied_at": 1760000000}
143
+ ```
144
+
145
+ 创建即启用(online),执行前须确认授权覆盖上线;不能把 create 当作保存离线草稿。回读若与预期不符,保留待核实,不盲目重复创建或上线。
146
+
147
+ 失败分支:
148
+
149
+ | 返回 | 含义 | 下一步 |
150
+ | --- | --- | --- |
151
+ | `invalid_argument`(错误的链接) | 链接不是站内可用内容,或不属于当前游戏 | 让用户换正确的站内链接 |
152
+ | `failed_precondition`(label_type 是系统同步内容) | 想手动创建签到/礼包/新版本/抽奖 | 去源模块创建,等待系统同步,再按服务端允许的动作配置 |
153
+ | `failed_precondition`(容量/置顶位) | 超过 2/10/1 或置顶位已满 | 让用户选择并确认替换对象,区分下线与取消置顶 |
154
+ | `result_unknown` | 未回读到创建结果 | 用 `list-whats-new` 核实,不要直接重试 |
155
+
156
+ ### A4 回读核对
157
+
158
+ 首次自动收录会尝试上线及详情页置顶;容量满可能留下离线条目,置顶位满可能未置顶,已有条目再次同步也不保证恢复上线。分别核对条目存在、online、有效期和置顶集合,不承诺自动替换其他内容。签到条目的默认展示结束时间是签到结束后 1 天,并非奖励兑换截止;回读实际排期,不擅自延长系统条目的展示时间。
159
+
160
+ ```bash
161
+ taptap-cli whats-new get-whats-new --app-id <appId> --dev-id <developerId> --data '{"content_id":123}'
162
+ ```
163
+
164
+ 核对 `title`、`url`、`source`、`status`、`start_time`/`end_time`、`invalid`/`invalid_reason`、`top_types`、`sort`。创建/重新上线/置顶变更后再读总览,确认占用和目标位置符合预期;不能只凭写入成功下结论。`invalid=true` 说明内容本身不可展示(帖子被删、活动缺图等),要先解决内容问题再上线。单次最多扫描 1000 条,`not_found` 时先用 `list` 缩小范围。
165
+
166
+ ### A5 已有离线条目上线并核对
167
+
168
+ ```bash
169
+ taptap-cli whats-new update-whats-new-status --app-id <appId> --dev-id <developerId> \
170
+ --data '{"content_id":123,"status":"online"}' --idempotency-key <key> --dry-run
171
+ ```
172
+
173
+ 返回 `status=online` 表示配置生效。再 `list-whats-new`(`status=online`)确认这条在在线列表里、`invalid=false`。
174
+ **口径**:配置生效 ≠ 客户端已展示;需要展示证据时说明「配置已生效,展示待验证」,PC 端没有与 Web 相同的预览能力,不要编造预览结论。
175
+
176
+ ## 场景 B:改排期 / 置顶 / 排序
177
+
178
+ ```bash
179
+ # B1 改投放时间 + 覆盖置顶集合(空数组=取消全部置顶)
180
+ taptap-cli whats-new update-whats-new --app-id <appId> --dev-id <developerId> \
181
+ --data '{"content_id":123,"type":"announcement","label_type":"announcement","start_time":1800000000,"end_time":1800100000,"top_types":["app_detail","pc_inventory"]}' \
182
+ --idempotency-key <key> --dry-run
183
+ ```
184
+
185
+ - 换链接只能「新建条目 + 下线旧条目」,`update` 不提供改 URL。
186
+ - 置顶顺序由加入时间决定,改 `top_types` 不会改变置顶区先后;用户要求调整置顶先后时,只能取消后重新设置。
187
+ - 签到类型可附 `check_in_award_ids`(≤3 个)用于公告位展示累签奖励。
188
+
189
+ ## 场景 C:下线与失效巡检
190
+
191
+ 未展示时先查源内容是否生效、条目是否收录、排期、失效原因、容量和置顶占用。收录缺失时交回来源模块或提供人工核查信息;不通过改标题、下架再上架等无关写入触发刷新。配置在线不证明客户端已可见,也不保证曝光量。
192
+
193
+ ```bash
194
+ # C1 巡检
195
+ taptap-cli whats-new check-whats-new-readiness --app-id <appId> --dev-id <developerId>
196
+
197
+ # C2 下线
198
+ taptap-cli whats-new update-whats-new-status --app-id <appId> --dev-id <developerId> \
199
+ --data '{"content_id":123,"status":"offline"}' --idempotency-key <key> --dry-run
200
+ ```
201
+
202
+ 巡检 `issues[].code`:
203
+
204
+ | code | 含义 | next_action |
205
+ | --- | --- | --- |
206
+ | `content_invalid` | 链接或对象不可展示 | 下线,或换链接后新建 |
207
+ | `content_expired` | 已过结束时间仍在线(清理任务有窗口) | 需要继续就改 `end_time`,否则下线 |
208
+ | `capacity_full` | 某类在线容量已满 | 让用户选择并确认替换对象 |
209
+ | `top_duplicate` | 同一置顶场景被多条占用 | 用 `save-whats-new-top` 调整集合 |
210
+
211
+ ## 字段与枚举
212
+
213
+ - `type`:`announcement`|`activity`
214
+ - `label_type`:`announcement`|`feedback`|`activity`|`contribution`(手动);`check_in`|`gift`|`new_version`|`lottery`(系统同步,只读创建)
215
+ - `status`:`online`|`offline`
216
+ - `top_types`:`app_detail`|`pc_inventory`
217
+ - `source`:`moment`|`topic`|`video`|`check_in`|`activity`|`gift`|`new_version`|`lottery`|`image_gallery`|`unknown`
218
+ - 运营数据:`exposure_count`、`click_count`、`click_rate`(形如 `12.34%`),`stat_updated_at=0` 表示本次没取到统计。
219
+
220
+ 运营参考:[如何利用「活动与公告」板块获得曝光](https://developer.taptap.cn/docs/store/operation/advanced-guide/exposure/event-notice/)(2026-10-30 核对)。操作以当前可用能力、实际限制和回读结果为准。