@taptap/cli 2026.10.27 → 2026.10.29
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +40 -0
- package/README.md +8 -0
- package/affordance/app.md +19 -3
- package/bin/taptap-cli-darwin-amd64 +0 -0
- package/bin/taptap-cli-darwin-arm64 +0 -0
- package/bin/taptap-cli-linux-amd64 +0 -0
- package/bin/taptap-cli-linux-arm64 +0 -0
- package/bin/taptap-cli-linux-riscv64 +0 -0
- package/bin/taptap-cli-windows-amd64.exe +0 -0
- package/bin/taptap-cli-windows-arm64.exe +0 -0
- package/checksums.txt +7 -7
- package/package.json +1 -1
- package/skills/taptap-app-edit/SKILL.md +1 -1
- package/skills/taptap-app-edit/references/app-edit-audit-and-history.md +13 -6
- package/skills/taptap-app-edit/references/app-edit-execution-rules.md +2 -2
- package/skills/taptap-app-edit/references/app-edit-field-map.md +2 -0
- package/skills/taptap-app-edit/references/app-edit-fields-and-packages.md +1 -0
- package/skills/taptap-cli/SKILL.md +7 -2
- package/skills/taptap-cli/references/business-routing.md +1 -1
- package/skills/taptap-cli/references/cli-command-patterns.md +4 -2
- package/skills/taptap-cli/references/feedback.md +34 -0
- package/skills/taptap-cli/references/operation-handbooks.md +6 -0
- package/skills/taptap-cli/references/shared-execution.md +8 -6
- package/skills/taptap-community-management/SKILL.md +29 -17
- package/skills/taptap-community-management/references/publish-post.md +236 -0
- package/skills/taptap-community-management/references/read-moments.md +43 -5
- package/skills/taptap-community-management/references/read-replies.md +2 -2
- package/skills/taptap-community-management/references/reply-moment.md +89 -0
- package/skills/taptap-community-management/references/upload-image.md +63 -0
- package/skills/taptap-community-management/references/upload-video.md +96 -0
- package/skills/taptap-identity/SKILL.md +4 -2
- package/skills/taptap-package-management/SKILL.md +1 -1
- package/skills/taptap-package-management/references/package-management-diagnostics.md +3 -0
- package/taptap-suite/SKILL.md +6 -3
- package/taptap-suite/references/taptap-app-edit/SKILL.md +1 -1
- package/taptap-suite/references/taptap-app-edit/references/app-edit-audit-and-history.md +13 -6
- package/taptap-suite/references/taptap-app-edit/references/app-edit-execution-rules.md +2 -2
- package/taptap-suite/references/taptap-app-edit/references/app-edit-field-map.md +2 -0
- package/taptap-suite/references/taptap-app-edit/references/app-edit-fields-and-packages.md +1 -0
- package/taptap-suite/references/taptap-cli/references/business-routing.md +1 -1
- package/taptap-suite/references/taptap-cli/references/cli-command-patterns.md +4 -2
- package/taptap-suite/references/taptap-cli/references/feedback.md +34 -0
- package/taptap-suite/references/taptap-cli/references/operation-handbooks.md +6 -0
- package/taptap-suite/references/taptap-cli/references/shared-execution.md +8 -6
- package/taptap-suite/references/taptap-community-management/SKILL.md +29 -17
- package/taptap-suite/references/taptap-community-management/references/publish-post.md +236 -0
- package/taptap-suite/references/taptap-community-management/references/read-moments.md +43 -5
- package/taptap-suite/references/taptap-community-management/references/read-replies.md +2 -2
- package/taptap-suite/references/taptap-community-management/references/reply-moment.md +89 -0
- package/taptap-suite/references/taptap-community-management/references/upload-image.md +63 -0
- package/taptap-suite/references/taptap-community-management/references/upload-video.md +96 -0
- package/taptap-suite/references/taptap-identity/SKILL.md +4 -2
- package/taptap-suite/references/taptap-package-management/SKILL.md +1 -1
- package/taptap-suite/references/taptap-package-management/references/package-management-diagnostics.md +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
All notable TapTap CLI changes are documented here.
|
|
4
4
|
|
|
5
|
+
## [v2026.10.29] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- Make repeated test QR code generation idempotent when the PNG is unchanged,
|
|
10
|
+
and choose a default filename based on the rendered target.
|
|
11
|
+
- Preserve flag values while accepting metadata-style flag aliases, and report
|
|
12
|
+
unknown fields and invalid enum values with actionable recovery guidance.
|
|
13
|
+
- Retry operation resolution when the capability catalog changes during dispatch.
|
|
14
|
+
- Preserve caller expectations on package-selection and field-save conflicts;
|
|
15
|
+
return recovery hints without automatically overwriting concurrent changes.
|
|
16
|
+
- Stop review submission on definite precheck failures, including a missing draft,
|
|
17
|
+
while keeping unavailable or AI-only precheck results advisory. Validate explicit
|
|
18
|
+
release schedules before dispatch.
|
|
19
|
+
- Exclude expected OAuth device-flow polling from interface errors, classify
|
|
20
|
+
validation failures consistently, and redact credentials from failure telemetry.
|
|
21
|
+
|
|
22
|
+
### Improvements
|
|
23
|
+
|
|
24
|
+
- Include sanitized failure messages and recovery hints in telemetry to make
|
|
25
|
+
command failures easier to diagnose.
|
|
26
|
+
- Clarify supported module IDs, QR target inputs, dashboard metrics, draft fields,
|
|
27
|
+
and conflict recovery steps in command diagnostics and Skill guidance.
|
|
28
|
+
|
|
29
|
+
## [v2026.10.28] - 2026-10-28
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- Add `community-management +upload-image` and `+upload-video` shortcuts for posting
|
|
34
|
+
media. They return an image URL with dimensions, or a `videoId` ready for draft
|
|
35
|
+
creation.
|
|
36
|
+
- Add posting and replying to the `taptap-community-management` skill: draft
|
|
37
|
+
`create`/`update`/`get`/`publish`, first-level replies and child replies. Guidance
|
|
38
|
+
covers request shapes, allowed reply content, scope versus target forum, and
|
|
39
|
+
preview-before-publish.
|
|
40
|
+
|
|
41
|
+
### Improvements
|
|
42
|
+
|
|
43
|
+
- Internal fixes and reliability improvements.
|
|
44
|
+
|
|
5
45
|
## [v2026.10.27] - 2026-10-27
|
|
6
46
|
|
|
7
47
|
### Improvements
|
package/README.md
CHANGED
|
@@ -295,6 +295,14 @@ Please make sure you understand all usage risks. By using this tool, you volunta
|
|
|
295
295
|
|
|
296
296
|
## Feedback & Support
|
|
297
297
|
|
|
298
|
+
Hit a problem with the CLI? Submit it from the terminal and it reaches the team's review queue:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
taptap-cli feedback 'app get-app-module 一直 403,看不懂 hint'
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Submissions are collected so the team can review them periodically; nobody replies to an individual submission. When you need a fast follow-up or an answer, use the QQ group below.
|
|
305
|
+
|
|
298
306
|
For questions or to share usage experience, join the taptap-cli user group on QQ (group number **1127966239**): [join the group chat](https://qm.qq.com/q/WdnGISBu2m).
|
|
299
307
|
|
|
300
308
|
Bug reports and feature requests are still best submitted via [Issues](https://github.com/taptap/cli/issues).
|
package/affordance/app.md
CHANGED
|
@@ -56,7 +56,7 @@ Read current fields, constraints, options, and values before editing one module.
|
|
|
56
56
|
|
|
57
57
|
### Tips
|
|
58
58
|
|
|
59
|
-
- Use `module_id`, not `module`.
|
|
59
|
+
- Use `module_id`, not `module`. The accepted set is closed and exact: `basic-info`, `assets-upload`, `profile-promotion`, `windows-exclusive`, `platform-status`, `release-settings`, `package`, `developer-info`, `other-settings`. Shortened or translated ids are rejected with 400 `invalid_parameters` — `other`, `others`, `settings`, `basic`, `store`, `assets`, `platform` are not module ids, and "其他设置" is `other-settings`.
|
|
60
60
|
- If the server rejects a module, use its current available-module information and the field map; do not guess another alias. Module availability and returned fields remain server-controlled.
|
|
61
61
|
|
|
62
62
|
### Examples
|
|
@@ -149,6 +149,20 @@ Save explicit store-information changes after inspecting the current draft and c
|
|
|
149
149
|
taptap-cli app save-changes --dev-id "<developer_id>" --app-id "<app_id>" --data @changes.json --idempotency-key "<key>" --dry-run
|
|
150
150
|
```
|
|
151
151
|
|
|
152
|
+
## precheck-app-review
|
|
153
|
+
|
|
154
|
+
Run the review precheck for the current draft: completeness blockers plus the content pre-audit verdict. Precheck is advisory — it is not a precondition for submission, and a precheck that produced no verdict must not block the flow.
|
|
155
|
+
|
|
156
|
+
### Skills
|
|
157
|
+
|
|
158
|
+
- taptap-app-edit/references/app-edit-audit-and-history.md
|
|
159
|
+
|
|
160
|
+
### Tips
|
|
161
|
+
|
|
162
|
+
- Read `preaudit_status` first: `passed` = machine review approved; `rejected` = content issues found; `unavailable` = the machine review did not run this time (retry the precheck later or submit directly; never ask the user to edit material).
|
|
163
|
+
- `preaudit_passed: false` is not a content verdict by itself. When `preaudit_status` is absent (older server), fall back to `preaudit_passed`; when both are absent, the preaudit result is unknown.
|
|
164
|
+
- `blockers` come from the completeness check and are returned even when `preaudit_status` is `unavailable`; they still describe what submission would reject.
|
|
165
|
+
|
|
152
166
|
## submit-app-review
|
|
153
167
|
|
|
154
168
|
Submit a draft for review after showing the current preparation results and obtaining explicit user confirmation. A failed content preaudit does not itself prohibit submission; the submission endpoint validates the current state.
|
|
@@ -165,12 +179,14 @@ Submit a draft for review after showing the current preparation results and obta
|
|
|
165
179
|
### Prerequisites
|
|
166
180
|
|
|
167
181
|
- A [[prepare-review-snapshot]] result and the same draft's [[precheck-app-review]] result, with any chosen `release_schedule` passed unchanged from precheck to submission
|
|
168
|
-
- Show `
|
|
182
|
+
- Show `blockers`, `warnings`, and `preaudit_status` independently; see [[precheck-app-review]] for how the three verdict states are presented, and let the user explicitly choose to continue when issues remain
|
|
169
183
|
- Explicit user confirmation for this high-risk write
|
|
170
184
|
|
|
171
185
|
### Tips
|
|
172
186
|
|
|
173
|
-
- HTTP success does not mean content preaudit passed
|
|
187
|
+
- HTTP success does not mean content preaudit passed: when neither `preaudit_status` nor `preaudit_passed` is present, the preaudit result stays unknown. Required agreement consent is separate from `--yes`.
|
|
188
|
+
- The CLI stops before submission when precheck reports a definite business blocker (`READ_ONLY`, `MISSING_REQUIRED`, `MISSING_PACKAGE`, or `VALIDATION_ERROR`); resolve the reported fields/state and rerun. AI-only findings remain advisory.
|
|
189
|
+
- A precheck with `preaudit_status: "unavailable"` carries no AI verdict and does not itself block submission; explicit business blockers still apply. See [[precheck-app-review]].
|
|
174
190
|
- Submission accepted, review approved, scheduled release, and online release are different stages; report only the stage supported by the response.
|
|
175
191
|
|
|
176
192
|
### Examples
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/checksums.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
c2568265093b91f07e9313e6032662d6216bc9032461f221a93c3f8362bbc4ed bin/taptap-cli-darwin-amd64
|
|
2
|
+
e5fb5d7a3776f9e2ded8c6c576588a7d80028e8f9037b6a09c60ba604eb0f359 bin/taptap-cli-darwin-arm64
|
|
3
|
+
9bd2884426f16f927b60874b2ad5893aeafc542c336e7fd8e0da02ebef71660f bin/taptap-cli-linux-amd64
|
|
4
|
+
17cedf798c6dae51a20be34e06fb3166b0b48320fb1b7b90d50e15402b978a9b bin/taptap-cli-linux-arm64
|
|
5
|
+
59c58af555e607286b13b61cd5c035d0eac1b269b48da27c1303256817108c32 bin/taptap-cli-linux-riscv64
|
|
6
|
+
156596215aef417f51216952a1900660c2ba5501eaad377992916adbf89b1af9 bin/taptap-cli-windows-amd64.exe
|
|
7
|
+
c3226e6affabda35d05408b112966edb46fdf86449d747b2f57d19eb34968e85 bin/taptap-cli-windows-arm64.exe
|
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@ taptap-cli app publish-scheduled-release --app-id <appId> --dev-id <developerId>
|
|
|
79
79
|
- 发布成功后交接运营手册:用 `list-app-versions --page-all` 读完整历史,按共享「运营阶段手册交接」区分「首次上线」与「长线运营」,正本见 [operation handbooks](../taptap-cli/references/operation-handbooks.md)。
|
|
80
80
|
- 图片和视频以当次返回的 `image_spec` / `video_spec` 为准;`trailer` 与 `gameplay_demo_video` 不能使用同一个 `videoId`。
|
|
81
81
|
- 提审意图必须单独确认;只有用户明确表达“提交审核 / 提审”后才可调用 `prepare-review-snapshot`,预审结果后仍须再次确认才可 `submit-app-review`。三步契约见 [audit and history](references/app-edit-audit-and-history.md)。
|
|
82
|
-
- 预检 HTTP 200 / 顶层成功不等于内容预审通过;分别解释预审结果、阻断项和风险。预审不通过本身不禁止提审,展示问题后用户明确继续/「强制提交」即可进入提交,由服务端裁决。仅在本次 blockers
|
|
82
|
+
- 预检 HTTP 200 / 顶层成功不等于内容预审通过;分别解释预审结果、阻断项和风险。预审不通过本身不禁止提审,展示问题后用户明确继续/「强制提交」即可进入提交,由服务端裁决。仅在本次 blockers 明确为空时说“阻塞项:无”;`preaudit_status === "passed"` 且无阻断时说明“提交状态:可提交审核”,`rejected` 时同时说明内容风险,`preaudit_status === "unavailable"`(机审暂时不可用、本次没审成)说明“本次预检没得出结论,可稍后重试预检,也可直接提交”,不得说成内容未通过或要求改资料。不得原样输出 `Blocker`、`preaudit_passed=true` 等机器字段;完整组合见 [audit and history](references/app-edit-audit-and-history.md)。
|
|
83
83
|
- 关卡 / TapTap 制造游戏在体检阶段就引导签 SCE 协议:用户明确同意后调 `taptap-cli app agree-sce-agreement --yes`,再重查确认 blocker 消失。
|
|
84
84
|
- 每次写入后输出 handoff;面向用户报告业务语言,不默认输出完整 raw JSON 或 schema。
|
|
85
85
|
|
|
@@ -49,29 +49,36 @@ H5 开通 PC 分发入口时按两阶段执行:
|
|
|
49
49
|
|
|
50
50
|
#### 步骤 ② `precheck-app-review`
|
|
51
51
|
|
|
52
|
-
传入完全相同的 `release_schedule
|
|
52
|
+
传入完全相同的 `release_schedule`。先按本节的返回表判定:`blockers` 非空、或 `preaudit_status === "rejected"` 时,向用户逐项展示 `blockers`(服务端报告的阻断原因,提交时仍由服务端校验)与 `warnings`(风险提示),并询问是否继续;`preaudit_status === "unavailable"` 走下面「没审成」的分支,不要当成卡点、也不要建议改资料。预检是**可跳过**的:用户明确「强制提交」时允许进入步骤 ③ 执行 `submit-app-review`,由服务端做最终校验裁决;未明确时建议先修复 `blockers`。
|
|
53
53
|
|
|
54
|
-
向用户展示预检结果时保留业务语义,不直接回显字段名或布尔值。正式预检通过(`
|
|
54
|
+
向用户展示预检结果时保留业务语义,不直接回显字段名或布尔值。正式预检通过(`preaudit_status === "passed"`)、且没有阻断项(`blockers` 为空)时,固定输出:
|
|
55
55
|
|
|
56
56
|
- 阻塞项:无
|
|
57
57
|
- 提交状态:可提交审核
|
|
58
58
|
|
|
59
|
-
`
|
|
59
|
+
`preaudit_status === "rejected"`(机审未通过)且本次 `blockers` 明确为空时,仍输出「阻塞项:无」「提交状态:可提交审核」,但**必须同时说明「内容预审未通过:不阻断提交,但提交后可能被审核驳回」**并逐项展示 `PREAUDIT` warnings——「可提交」与「机审未过」两者要同时说清,不能只报其一。
|
|
60
|
+
|
|
61
|
+
`preaudit_status === "unavailable"`(机审服务暂时不可用,本次没得出预审结论;此时 `preaudit_passed` 为 `false`)**既不是「未通过」,也不是阻断项**:告诉用户本次预检没跑成,并给出两个选项——稍后重试 `precheck-app-review`,或直接提交(提交后仍会走内容审核);展示 `PREAUDIT_UNAVAILABLE` 时不得表述成「内容预审未通过」,也不得因此要求用户修改资料。若本次 `blockers` 非空,仍按阻断项处理。
|
|
62
|
+
|
|
63
|
+
取值不在上述三态内(未来新增或拼写异常)时按「没有结论」处理:既不当作 `passed`,也不当作阻断项。
|
|
64
|
+
|
|
65
|
+
若响应里没有 `preaudit_status`(旧服务端),退回按 `preaudit_passed` 判断:`true` 视为已通过;`false` 且 `blockers` 为空时按「机审未通过」处理,不要自行当成「没审成」。
|
|
60
66
|
|
|
61
67
|
`preaudit_passed` 只用于内部流程判断,不得向用户原样输出 `Blocker`、`preaudit_passed=true` 等机器字段。存在阻断项时,逐项展示服务端返回的阻断原因,不得输出“可提交审核”;用户明确「强制提交」时说明提交可能被服务端拒绝,允许继续。
|
|
62
68
|
|
|
63
69
|
| 返回 | 含义 | 处理 |
|
|
64
70
|
| --- | --- | --- |
|
|
65
71
|
| `blockers` 非空 | 存在阻断项 | 逐项展示阻断原因及提交可能被拒绝的风险,询问是否「强制提交」;用户确认时允许进入步骤 ③ |
|
|
66
|
-
| `
|
|
72
|
+
| `preaudit_status === "rejected"` | 机审未通过 | 展示 `PREAUDIT` warnings,说明「不阻断提交,但提交后可能被审核驳回」;询问是否继续 |
|
|
73
|
+
| `preaudit_status === "unavailable"` | 机审没跑成,没有结论 | 展示 `PREAUDIT_UNAVAILABLE`,说明「本次预检未得出结论,可稍后重试预检,也可直接提交(提交后仍会审核)」;不要求修改资料 |
|
|
67
74
|
| `warnings` 非空 | 有风险提示 | 展示 `warnings`,询问"是否继续提交?" |
|
|
68
|
-
| `
|
|
75
|
+
| `preaudit_status === "passed"` 且 `blockers` 为空 | 可提交 | 等待最终提交确认 |
|
|
69
76
|
| `version_id` 与步骤 ① 不一致 | 复核后版本已变化 | 回到步骤 ①重新生成快照并复核,禁止沿用旧快照 |
|
|
70
77
|
| 顶层 `ok: false` | 工具失败 | 按 `error.type` / `error.subtype` 告知失败,停止;业务成功或状态读取当前 operation 已声明字段 |
|
|
71
78
|
|
|
72
79
|
#### 步骤 ③ `submit-app-review`
|
|
73
80
|
|
|
74
|
-
步骤 ② 预检是**可跳过**的:`
|
|
81
|
+
步骤 ② 预检是**可跳过**的:`preaudit_status === "passed"` 且 `blockers` 为空时可直接提交;否则向用户展示卡点后,用户明确「强制提交」仍可进入本步执行 `submit-app-review`,最终由提交接口按当前状态校验裁决。`preaudit_status === "unavailable"` 时预检没有结论,重试预检还是直接提交由用户选择,不要自行卡住流程。预检调用成功不代表内容通过;字段缺失或预检执行失败时标记未确认,不伪造通过结果。
|
|
75
82
|
|
|
76
83
|
参数:
|
|
77
84
|
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
|
|
63
63
|
- HTTP 200 / 顶层成功只说明预检执行成功;分别读取预审结果、blockers 和 warnings。预审通过不能覆盖非空 blockers,blockers 为空也不能把预审未通过说成通过。字段缺失时说明结果未知,不补写“阻塞项:无”。
|
|
64
64
|
- 预审不通过本身不禁止提审。展示本次问题与风险,用户明确选择继续/「强制提交」后允许 submit,由提交接口裁决;不要自行新增本地硬门禁或宣称必定被拒绝。
|
|
65
|
-
-
|
|
66
|
-
- `
|
|
65
|
+
- 本次预审通过(`preaudit_status === "passed"`)且 blockers 明确为空时展示“阻塞项:无”和“提交状态:可提交审核”;`preaudit_status === "rejected"` 且无阻断时同时说明“不阻断提交,但可能被审核驳回”;`preaudit_status === "unavailable"` 说明“本次预检没得出内容预审结论,可稍后重试预检,也可直接提交”,不得说成预审未通过。
|
|
66
|
+
- `preaudit_status` 是机审结论的主口径(缺失时退回 `preaudit_passed`);两者都仅用于内部判断,不得原样输出 `Blocker`、`preaudit_passed=true` 等机器字段。
|
|
67
67
|
- blockers 按服务端原文展示;协议同意仍走下方独立签署流程,不能用继续提交的授权代替签约。
|
|
68
68
|
- 资质缺口(`QUALIFICATION_INCOMPLETE`)是 warning、submit 不卡控 → 展示"继续提审可能被驳回"并询问是否继续。
|
|
69
69
|
- 复核返回风险数据不可用且要求确认时展示 warning;`--yes` 不代表已核对。schema 未声明风险确认输入时停止并报告契约缺口,不补造本地 flag。
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
| `developer-info` | 开发者信息 | `developer_type`(厂商类型)、`author_name`、`publisher_name`、`developer_message` |
|
|
37
37
|
| `other-settings` | 其他设置 | `download_site`(官网)、`chatting_*`(社群信息)、`is_proxy_required`(需网络工具)、`is_google_play_required`、`supported_vr`、`android_version`(Android 系统版本)、`pc_game_anti_addiction_status`(PC 防沉迷)、`pc_whatsnew`(Windows 包体更新日志) |
|
|
38
38
|
|
|
39
|
+
`module_id` 只能取上表这 9 个值,服务端不接受缩写或翻译:`other`、`others`、`settings`、`basic`、`store`、`assets`、`platform` 都会返回 400 `invalid_parameters`。「其他设置」的 id 是 `other-settings`,不是 `other`。
|
|
40
|
+
|
|
39
41
|
**重点**:游戏名 field_id 是 `title`,不是 `name`。简介 field_id 是 `description`。
|
|
40
42
|
|
|
41
43
|
### 字段可见性与按平台 / 类型的条件渲染
|
|
@@ -41,6 +41,7 @@ Skill 分析只用于资料准备建议。用户明确要求提审后,展示 `
|
|
|
41
41
|
|
|
42
42
|
- 先区分缺少 `expected`、字段值漂移、字段约束不符与草稿不可编辑;不要把所有 conflict 都归因其他人修改。
|
|
43
43
|
- conflict 或响应含 `stale` 时,重新读取受影响字段与当前草稿。目标值已经存在则报告“当前值已符合目标”,不重复写,也不声称刚才失败的请求完成了保存。
|
|
44
|
+
- 409 的 `error_description` 会点名漂移字段的中文名;按 [field map](app-edit-field-map.md) 把它对到 `field_id` 与所属 `module_id`,再用 `get-app-module --data '{"module_id":...}'` 读该模块的 `current_value`,原样回填到对应 change 的 `expected`。同一目标再冲突一次就停止重试,报告观察到的状态,不要原样重发。
|
|
44
45
|
- 仍需修改时,展示新旧差异,按原用户目标重新决定变更,并使用最新 `expected`;不得自动 `force`、撤审或撤销定时。请求内容变化时使用新的意图幂等键,不复用不同 payload 的旧 key。
|
|
45
46
|
- `updated_fields` 与 `stale` 分别核对;批量保存只报告有写入回执或同资源回读证据的字段。只成功部分时保留已完成项,不整批重复保存;只有 dry-run 或后续提审成功不能补足此前字段保存证据。
|
|
46
47
|
- 草稿不可编辑时按实际版本状态解释可选操作;无草稿时先核对 `create-draft` 前置条件,不自动撤审或重置来绕过状态限制。
|
|
@@ -27,17 +27,19 @@ TapTap CLI 总入口,同时承担 TapTap 业务 skill 的共享执行规范。
|
|
|
27
27
|
| 用户意图 | 进入 skill | 起手动作 |
|
|
28
28
|
| --- | --- | --- |
|
|
29
29
|
| 查询 CLI 能力、安装或读取 skills | `taptap-cli` | 服务命令用 `schema`,其他命令用 `--help`,skill 用 `skills list` |
|
|
30
|
-
| 登录、当前身份、找 developerId/appId | `taptap-identity` |
|
|
30
|
+
| 登录、当前身份、找 developerId/appId | `taptap-identity` | 已有适用的调用 scope 不重复查;先区分目标资源 ID,否则查候选 |
|
|
31
31
|
| 创建、注册、申请或入驻厂商 | `taptap-identity` | 首轮直接提供当前环境的开发者中心入口;不先查厂商列表 |
|
|
32
32
|
| 创建新游戏、选择游戏类型或包体方向 | `taptap-publish-game` | 先收集并确认创建字段 |
|
|
33
33
|
| 改资料、素材、主包体、整版提审/撤审/发布 | `taptap-app-edit` | 先 read-before-write |
|
|
34
34
|
| 上传本地图片、视频或包体(单个文件或目录/zip 盘点) | `taptap-materials` | 先盘点和确认用途,再逐项上传和交接 |
|
|
35
|
+
| 上传帖子配图或帖子视频(发帖用) | `taptap-community-management` | 图片 `+upload-image`、视频 `+upload-video`;不建素材库记录,句柄不可互换 |
|
|
35
36
|
| 查资质缺口、补资质材料、资质增量提审/撤回 | `taptap-qualification` | 先确认发布意图,再分析 |
|
|
36
37
|
| 检索、生成或收录游戏图片素材 | `taptap-asset-library` | 先本地素材后生图;上传执行转 `taptap-materials` |
|
|
37
38
|
| 查包体库、线上/待处理包、自测入口 | `taptap-package-management` | 先读 overview |
|
|
38
39
|
| 查下载、PV、转化、订单、评分统计等数据 | `taptap-dashboard-stats` | 先确认指标、维度和时间范围 |
|
|
39
40
|
| 查玩家评价正文、差评、官方回复 | `taptap-player-feedback` | 先确认时间范围和评分口径 |
|
|
40
41
|
| 查论坛帖子、子版块、帖子正文、一级回复和子回复 | `taptap-community-management` | 先确认帖子意图、子版块和时间范围 |
|
|
42
|
+
| 把本地图片传成帖子配图(发帖用) | `taptap-community-management` | 先确认用途是发帖配图,别走素材库 `upload` |
|
|
41
43
|
| 管理测试计划、资格批次、用户资格、激活码 | `taptap-test-plan` | 先区分状态层级 |
|
|
42
44
|
|
|
43
45
|
## 常用命令
|
|
@@ -53,12 +55,13 @@ taptap-cli app --help
|
|
|
53
55
|
taptap-cli player-feedback --help
|
|
54
56
|
taptap-cli community-management --help
|
|
55
57
|
taptap-cli schema <service> <method>
|
|
58
|
+
taptap-cli feedback '<用户原话摘要>' --trigger user-complaint
|
|
56
59
|
```
|
|
57
60
|
|
|
58
61
|
## 执行规则
|
|
59
62
|
|
|
60
63
|
- 判断请求是否属于 TapTap 开发者后台;不是就不要强行套 CLI。复杂流程和写操作先读 [shared execution](references/shared-execution.md)。
|
|
61
|
-
-
|
|
64
|
+
- 先区分调用 scope 与目标资源 ID;跨论坛列表的目标 App 使用 `forum_app_id`,调用 scope 仍用已授权 `developer_id` / `app_id`,详见 [业务路由](references/business-routing.md)中的社区管理 skill。缺调用 scope 时转 `taptap-identity`;多候选让用户选择,不猜 ID,也不复用可能过期的历史 ID。交接命令显式带 `--dev-id` 和 `--app-id`。
|
|
62
65
|
- 参数不确定时先判断命令类型:服务命令使用 `schema <service> <method>` 查看输入输出;其他命令使用完整命令路径加 `--help`;再按业务主文件和领域 reference 查证,不猜字段或枚举。`config command inspect --argv-json` 只判断命令是否识别、来源、风险和策略,不提供参数说明或完整 contract。
|
|
63
66
|
- 优先使用已准入的 `taptap-cli <domain> <verb>`;当前能力缺失时说明 CLI 暂不支持,并给可执行替代路径。
|
|
64
67
|
- 需要用户转到网页继续时,遵循 [shared execution](references/shared-execution.md) 的人工页面交接规范:已知可靠入口必须首轮提供,URL 单独占一行且只展示一次;不要使用 Markdown 链接包装、追加追踪参数或猜测页面路径。
|
|
@@ -68,6 +71,7 @@ taptap-cli schema <service> <method>
|
|
|
68
71
|
- `--data` / `--params` 都支持短 inline JSON、`-` stdin 和当前目录内的相对 `@file`;长 JSON 或多行 JSON 优先使用 `@file`。typed flag 与 `--data` 中的同名字段必须一致,否则 CLI 拒绝请求。
|
|
69
72
|
- 默认输出就是 JSON,普通命令、脚本、Skill 示例和生成命令都不要追加冗余的 `--format json`。只有命令自身默认输出文本或原始内容,而调用方明确需要结构化 JSON 时才显式追加。顶层成功看退出码或 `ok === true`;失败看 `error.type`、`error.subtype`、`error.message`、`error.hint`。业务工具自己的 `data.result.ok` 只表示业务结果,不是顶层 envelope。
|
|
70
73
|
- 面向用户回复时先给业务结论,再给风险和下一步;把字段 ID、camelCase key、数值状态和内部工具名翻译成可读标签。除非用户明确要求调试信息,不粘贴完整 raw JSON、schema 或底层请求。
|
|
74
|
+
- CLI 自身的问题(报错看不懂、行为不合预期)在用户明确受阻或同一 `error.subtype` 连续失败 2 次时用 `taptap-cli feedback` 上报,条件与话术见 [feedback](references/feedback.md)。
|
|
71
75
|
- `auth status` 只在用户询问当前身份、登录失败或错误要求重登时运行,不作为每个任务的固定前置。唯一额外场景是人工页面交接需要区分当前构建环境且上下文中没有 `serverUrl`:此时只运行 `auth status --offline --json` 读取环境地址,不检查 Token 或访问网络。
|
|
72
76
|
|
|
73
77
|
## References
|
|
@@ -76,6 +80,7 @@ taptap-cli schema <service> <method>
|
|
|
76
80
|
| --- | --- |
|
|
77
81
|
| [shared execution](references/shared-execution.md) | 复杂流程、写操作、确认门禁、错误处理和输出边界。 |
|
|
78
82
|
| [CLI command patterns](references/cli-command-patterns.md) | auth、命令树、上传或安装 skills 的具体命令。 |
|
|
83
|
+
| [feedback](references/feedback.md) | CLI 问题反馈的触发条件、脱敏和回执话术。 |
|
|
79
84
|
| [business routing](references/business-routing.md) | 请求横跨多个业务域或路由不确定。 |
|
|
80
85
|
| [运营阶段识别与官方手册](references/operation-handbooks.md) | 提审、测试、首次上线或版本更新完成后的状态识别与运营手册交接。 |
|
|
81
86
|
| [游戏物料要求](references/material-requirements.md) | 回答图片、视频、Windows 素材规格或判断素材是否合规。 |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
- **论坛数据统计 ≠ 论坛帖子/回复内容**:论坛访问量、活跃用户、内容发布/删除/移动、回复数、论坛关注与内容总数等统计走 `taptap-dashboard-stats` 的 `get-forum-stats`;论坛帖子正文、一级回复与子回复走 `taptap-community-management`。回复数与回复内容不是同一接口、同一口径,不能互相替代
|
|
18
18
|
- **评分统计 ≠ 评价正文**:评分/评价的统计指标、趋势和分布走 `taptap-dashboard-stats`;单条评价的正文、配图、作者和回复走 `taptap-player-feedback`。两者口径不同,不能用对方的数据替代;用户说「好评」时必须先区分是统计口径还是列表筛选口径
|
|
19
19
|
- **玩家评价 ≠ 论坛帖子**:评分/评价的正文、配图、作者和回复走 `taptap-player-feedback`;论坛帖子(动态)的标题、正文、图片、一级回复和子回复走 `taptap-community-management`。两者是不同接口、不同口径,不能互相替代
|
|
20
|
-
- **社区内容处置 ≠ CLI
|
|
20
|
+
- **社区内容处置 ≠ CLI 可写**:置顶、加精、沉底、删除都不由 CLI 执行,列表和详情只返回可读状态;论坛域发帖链路和帖子回复链路见 `taptap-community-management`
|
|
21
21
|
|
|
22
22
|
### 跨 skill 串联(一次任务要换 skill 接力)
|
|
23
23
|
|
|
@@ -110,7 +110,9 @@ taptap-cli overview --dev-id <N>
|
|
|
110
110
|
|
|
111
111
|
### 文件上传
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
资料与包体的本地物料统一走 `taptap-materials` skill(路由与边界见 [business routing](business-routing.md))。它负责盘点、确认用途、逐项调用六个端到端 shortcut,并把资料字段和包体绑定交给对应业务 skill。
|
|
114
|
+
|
|
115
|
+
**CRITICAL — 社区帖子的配图/视频不走这套**:帖子图片、视频分别用 `community-management +upload-image` / `+upload-video`(见 `taptap-community-management` 的 upload-image / upload-video / publish-post 手册)。一级回复只支持文字和图片,图片同样用 `+upload-image`;子回复只支持文字,所有回复都不支持视频(见 reply-moment 手册)。它们不建素材库记录、不写资料字段,图片产物 `url` 可用于帖子或一级回复,`videoId` 只用于帖子;两条链路权限不同、句柄不可互换,不要用这里的 `upload` / `upload-video` 顶替社区上传。
|
|
114
116
|
|
|
115
117
|
- `materials +inspect <directory|archive>` 是该 skill 所需的只读盘点契约;它输出 manifest、skipped 和 handoff,供后续逐项上传。
|
|
116
118
|
- 当前用户只提供目录或混合 zip 时,先执行 `taptap-cli materials +inspect <directory|archive>`,再让用户确认 manifest 中的歧义项和每个文件用途;然后按下方六个 shortcut 执行。不要把旧的批量写入命令作为替代。
|
|
@@ -132,7 +134,7 @@ taptap-cli upload ./image.png --app-id <id> --dev-id <id> --idempotency-key <sam
|
|
|
132
134
|
`upload` 仅用于图片。视频和 APK / PC / H5 包体用专用的 **app scope 上传命令**(必须带 `--app-id`,即游戏已创建后才能用;大文件直传云存储,不经过 taptap-cli):
|
|
133
135
|
|
|
134
136
|
```bash
|
|
135
|
-
# 视频(预告片 / 实机录屏)→ 七牛直传,返回
|
|
137
|
+
# 视频(预告片 / 实机录屏)→ 七牛直传,返回 videoId(后台转码)
|
|
136
138
|
taptap-cli upload-video <path> --scene trailer --app-id <id> --dev-id <id> --dry-run
|
|
137
139
|
taptap-cli upload-video <path> --scene trailer --app-id <id> --dev-id <id> --yes
|
|
138
140
|
# PC 包(exe / zip)→ OSS 分片直传,返回 packageId(后台解析)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 反馈与问题收集
|
|
2
|
+
|
|
3
|
+
CLI 自身的问题(报错看不懂、行为不合预期、缺能力、文档误导)用 `taptap-cli feedback` 提交,直接进团队的问题表。不做工单、不逐条回复。
|
|
4
|
+
|
|
5
|
+
## 什么时候提交
|
|
6
|
+
|
|
7
|
+
只在这两种情况提交,其余一律不提交:
|
|
8
|
+
|
|
9
|
+
1. 用户明确表达受阻或不满:`这什么破命令`、`我卡住了`、`为什么一直失败`、`看不懂这个报错`、`能不能加个 XX`。
|
|
10
|
+
2. 同一 `error.subtype` 在同一任务里连续失败 2 次以上。
|
|
11
|
+
|
|
12
|
+
不提交:普通报错、用户只是在问问题、用户说不用提交、你自己没有证据说明 CLI 有问题。
|
|
13
|
+
|
|
14
|
+
## 命令
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
taptap-cli feedback '<用户原话摘要>' --command '<失败的命令>' --trigger user-complaint
|
|
18
|
+
taptap-cli feedback '<...>' --command '<...>' --error '<category>/<subtype>' --trigger command-failure
|
|
19
|
+
taptap-cli feedback '<...>' --dry-run # 只打印 payload,不发送
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`--trigger` 只能是 `user-complaint` / `command-failure` / `agent-request`。用户自己抱怨用第一个,你自己判断的失败用 `command-failure`。
|
|
23
|
+
|
|
24
|
+
## 写描述的要求
|
|
25
|
+
|
|
26
|
+
- 是**用户原话的摘要**,500 字以内。
|
|
27
|
+
- 不要粘贴整段对话、完整 JSON、图片或未公开素材。
|
|
28
|
+
- CLI 会自动脱敏令牌、Bearer 凭据和键值形式的密钥并截断长度,但脱敏不是许可:不要主动把凭据写进去。
|
|
29
|
+
|
|
30
|
+
## 回执话术
|
|
31
|
+
|
|
32
|
+
提交后必须告诉用户:已提交给 TapTap 团队、会定期查看整理;需要快速跟进或要答复请进 QQ 群 1127966239。
|
|
33
|
+
|
|
34
|
+
不要承诺会有人逐条回复。提交失败是网络错误,最多重试一次,然后把 QQ 群给用户。
|
|
@@ -31,6 +31,12 @@ taptap-cli app list-app-versions --app-id <appId> --dev-id <developerId> --page-
|
|
|
31
31
|
|
|
32
32
|
若分页被 `--page-limit` 截断、返回条目数无法覆盖 `result.total`、任一 item 的 `status` 为空或超出 `draft/reviewing/scheduled/online/offline/rejected`,且没有可解释的 `last_event`,均视为历史不完整,阶段回退 `unknown`。统计发布历史时按 `version` 去重:同一版本同时出现 `status=online` 和 `last_event=published` 只算一个已发布版本。
|
|
33
33
|
|
|
34
|
+
## 发布后的社区发帖(可选 tip)
|
|
35
|
+
|
|
36
|
+
handoff 收尾时可以顺带问一句:要不要根据本次发布内容或版本更新,去游戏论坛发个帖子?用户说要,就直接交给 `taptap-community-management`,本节不展开命令与写法。
|
|
37
|
+
|
|
38
|
+
发帖是可选动作,不占用下面「每次 handoff 最多输出一个手册」的名额。
|
|
39
|
+
|
|
34
40
|
## 输出格式
|
|
35
41
|
|
|
36
42
|
每次 handoff 最多输出一个手册:先用一句话说明“为什么适合当前阶段”和从 `description` 压缩出的用途,再将 `url` 裸链单独一行输出一次。不要使用 Markdown 链接包装、括号重复 URL、追踪参数或二维码。
|
|
@@ -30,9 +30,9 @@ taptap-cli schema <service> <method>
|
|
|
30
30
|
|
|
31
31
|
## 身份和资源 scope
|
|
32
32
|
|
|
33
|
-
业务命令通常需要 `developerId` 和 `appId
|
|
33
|
+
业务命令通常需要 `developerId` 和 `appId`。先按当前 operation 的 schema 判断 ID 的角色,再决定是否需要发现调用 scope:
|
|
34
34
|
|
|
35
|
-
1.
|
|
35
|
+
1. 如果用户已给明确且适用于本次操作的调用 scope,直接使用,不要重复跑身份探测。目标资源 ID 不一定是调用 scope:跨论坛读帖时,论坛 URL 中的 App ID 用于 `forum_app_id`,`developer_id` / `app_id` 仍使用已授权组合,见 [业务路由](business-routing.md)中的社区管理 skill。
|
|
36
36
|
2. 如果缺 `developerId` 且用户只给厂商名、账号描述或“我的厂商”,再转 `taptap-identity` 查厂商候选。
|
|
37
37
|
3. 如果缺 `appId` 且用户只给游戏名、截图或“这个游戏”,用已知 `developerId` 调 `app +list --kw` 查游戏候选。
|
|
38
38
|
4. 只有出现未登录、权限不足或用户明确询问当前账号时,才运行 `auth status --json`。
|
|
@@ -66,7 +66,7 @@ metadata 命令只要暴露 `--idempotency-key`,预览和真实写入都必须
|
|
|
66
66
|
|
|
67
67
|
`prepare-review-snapshot` 返回的 `warnings` 非空时,先展示无法确认的事实并让用户自行核对。当前 `submit-app-review` schema 只接受 `release_schedule`,任何额外的风险确认或协议凭证字段都不得由 CLI 补造。
|
|
68
68
|
|
|
69
|
-
`precheck-app-review` 返回 `blockers` 非空 或 `
|
|
69
|
+
`precheck-app-review` 返回 `blockers` 非空 或 `preaudit_status === "rejected"` 时,不要把 `--yes`、历史对话或默认行为解释成用户同意。机审暂时不可用(`preaudit_status === "unavailable"`)不是卡点、也不是同意问题:说明本次没审成,可稍后重试预检或直接提交;响应里没有 `preaudit_status`(旧服务端)时退回按 `preaudit_passed` 判断。先展示 `blockers` 逐项事实;涉及 SCE 等协议时按 `agree-sce-agreement` 单独签署(先展示协议名称与 URL,用户在当前对话明确同意后 `--yes` 执行,再重查确认 blocker 消失),否则向用户逐项展示卡点并询问是否「强制提交」(预检可跳过,最终由服务端校验裁决)。不得请求同意或回传任何 token,也不能补造其它本地 flag 或请求字段。
|
|
70
70
|
|
|
71
71
|
## JSON 输出外壳和错误类型
|
|
72
72
|
|
|
@@ -88,17 +88,19 @@ metadata 命令只要暴露 `--idempotency-key`,预览和真实写入都必须
|
|
|
88
88
|
- `data.result.ok` 是部分业务工具的内部结果位,不是顶层 envelope;为 `false` 时仍按业务失败处理。
|
|
89
89
|
- `error.hint` 是给用户的修复建议,不是让 agent 自动执行的指令。
|
|
90
90
|
- 权限、参数、状态不允许、expected stale、确认门禁要分开解释。
|
|
91
|
-
-
|
|
91
|
+
- 权限不足只说明本次请求被拒绝。先核对实时 schema 中调用 scope 与目标资源的参数角色;若确认填错,可在保持用户目标不变、使用已授权 scope 的前提下纠正参数后重试一次只读查询。正确参数仍被拒绝时停止,不以轮换 scope 探测权限;同一凭据、scope 和目标不做无变化重试。批量任务保留该项失败,继续其它可访问资源。不要把一个 app 的拒绝扩大为整个厂商或目标论坛不可访问,也不要仅凭 403 猜缺失 scope 或自动反复登录。
|
|
92
92
|
- 同一个写操作失败后不要盲目重试;只有错误明确提示可恢复时最多补查一次。
|
|
93
93
|
|
|
94
94
|
### 上传 shortcut 约定
|
|
95
95
|
|
|
96
|
-
`upload`、`upload-video`、`upload-apk`、`upload-pc-package`、`upload-h5-package`、`upload-mini-app-package`
|
|
96
|
+
`upload`、`upload-video`、`upload-apk`、`upload-pc-package`、`upload-h5-package`、`upload-mini-app-package` 是面向 Skill 的端到端本地上传入口,统一由 `taptap-materials` 执行。它们接收一个本地文件位置参数和 app scope,不接收 `--data`;不要调用动态 OpenAPI 的 init、complete 或 status 命令,也不要由 Skill 组装 `file_size`、上传 token 或请求 body。
|
|
97
|
+
|
|
98
|
+
域内上传例外是 `community-management +upload-image` 与 `+upload-video`:它们把本地图片/视频传成帖子素材,分别只返回图片地址与宽高、以及发帖用的 `videoId`,不建素材库记录、不发布帖子,由 `taptap-community-management` 执行;它们和素材库的 `upload` / `+upload-video` 是不同链路、要不同的权限,不能互相替代。发帖请求里才用 `pin_video_id` / `cover_video_id`(字符串)与正文节点 `info.video_id`(整数),上传响应字段始终是 `videoId`。发帖本身不在上传 shortcut 里,走 `community-management` 的 `create` / `update` / `get` / `publish-draft` 四步,同样归 `taptap-community-management`。
|
|
97
99
|
|
|
98
100
|
- 默认输出 JSON,支持的 `--format` 只有 `json` 和 `pretty`;普通 Agent 调用不追加冗余的 `--format json`。
|
|
99
101
|
- 上传 preview 使用 `--dry-run`;用户确认后用相同文件与 scope 追加 `--yes`。省略 `--yes` 的确认门禁是 exit code `10`。
|
|
100
102
|
- 顶层 `ok=true` / exit code `0` 才表示 shortcut 成功。部分失败或其它错误是非零退出;保留响应中已有的远端句柄,只重试没有句柄的文件。
|
|
101
|
-
-
|
|
103
|
+
- 六个素材库 shortcut 都注册 `--idempotency-key`(省略时由 CLI 自动派生),但只有素材库 `upload` 必须显式提供稳定 key;社区 `+upload-image` / `+upload-video` 省略时按内容派生。顶层 `upload-video` 的 preview 会读取实时 `video_spec`;社区两个上传的 preview 都是纯本地,不发网络请求。
|
|
102
104
|
- H5 上传任务和遗留 Tap 小游戏上传任务的状态与恢复由 CLI task workflow 负责;Skill 只能使用 `task +list|get|resume`,不能重新发起协议阶段。
|
|
103
105
|
|
|
104
106
|
## 人工页面交接和链接输出
|
|
@@ -1,56 +1,68 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: taptap-community-management
|
|
3
|
-
version: 1.
|
|
4
|
-
description: "TapTap
|
|
3
|
+
version: 1.4.0
|
|
4
|
+
description: "TapTap 社区论坛管理 runbook。按帖子意图、子版块和排序分页检索当前或指定 App 论坛的帖子,读取帖子详情(正文与图片/视频元信息)、一级回复和子回复,并解释深分页上限、置顶回复与统计口径;另支持上传帖子配图与帖子视频(拿图片地址或 video_id,不建素材库记录),走 create/update/get/publish-draft 四步建草稿并发帖,以及以个人身份发一级回复和子回复。不负责玩家评价(转 taptap-player-feedback)、经营数据(转 taptap-dashboard-stats),也不做置顶、加精、删除等内容处置。"
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
7
7
|
bins: ["taptap-cli"]
|
|
8
|
-
cliHelp: "taptap-cli community-management --help;taptap-cli schema community-management
|
|
8
|
+
cliHelp: "taptap-cli community-management --help;taptap-cli community-management +upload-image --help;taptap-cli community-management +upload-video --help;taptap-cli schema community-management create-community-topic-draft"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# community-management
|
|
12
12
|
|
|
13
13
|
开始前先读 [`../taptap-cli/references/shared-execution.md`](../taptap-cli/references/shared-execution.md)(身份、JSON 输出外壳、错误处理)。
|
|
14
14
|
|
|
15
|
-
本 skill
|
|
15
|
+
本 skill 负责读社区内容、上传素材、发帖与回帖;不做置顶、加精、删除等处置。
|
|
16
16
|
|
|
17
17
|
## 快速决策
|
|
18
18
|
|
|
19
19
|
| 用户意图 | Reference | 起手命令 |
|
|
20
20
|
| --- | --- | --- |
|
|
21
|
-
|
|
|
21
|
+
| 帖子列表、排序、子版块或求助反馈筛选 | [read-moments](references/read-moments.md) | `list-community-moments` |
|
|
22
22
|
| 看帖子正文和图片 | [read-moments](references/read-moments.md) | `get-community-moment` |
|
|
23
23
|
| 查有哪些子版块 / 取 `group_label_id` | [read-moments](references/read-moments.md) | `list-community-group-labels` |
|
|
24
24
|
| 看帖子的一级回复 | [read-replies](references/read-replies.md) | `list-community-moment-replies` |
|
|
25
25
|
| 看某条回复下的子回复 | [read-replies](references/read-replies.md) | `list-community-moment-child-replies` |
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
26
|
+
| 回复数统计与 `stat` / `total` 口径 | [read-replies](references/read-replies.md) | — |
|
|
27
|
+
| 有本地图片,要传成帖子配图 | [upload-image](references/upload-image.md) | `+upload-image <image>` |
|
|
28
|
+
| 有本地视频,要拿发帖用的 `videoId` | [upload-video](references/upload-video.md) | `+upload-video <video>` |
|
|
29
|
+
| 要发帖、改草稿或发布草稿 | [publish-post](references/publish-post.md) | `create-community-topic-draft`(草稿真实写入才返回 `preview_url`) |
|
|
30
|
+
| 回帖(一级回复) | [reply-moment](references/reply-moment.md) | `create-community-moment-reply` |
|
|
31
|
+
| 回帖(某条回复下的子回复) | [reply-moment](references/reply-moment.md) | `create-community-moment-reply-child`(传 `parent_reply_id`) |
|
|
32
|
+
| 玩家评价或经营数据 | 转 `taptap-player-feedback` / `taptap-dashboard-stats` | — |
|
|
33
|
+
| 要置顶、加精、删除或处理内容 | 本 skill 不承接;说明边界 | — |
|
|
29
34
|
|
|
30
35
|
## 执行规则
|
|
31
36
|
|
|
32
|
-
**CRITICAL —
|
|
37
|
+
**CRITICAL — 分页别贪全:`list-*` 三个列表命令 `page_size` 1–100、`page × page_size` ≤ 10000;`get-community-moment` / `list-community-group-labels` 不分页。要更多数据先加筛选,不要 `--page-all` 拉全量。**
|
|
33
38
|
|
|
34
39
|
**CRITICAL — `moment_id` / `parent_reply_id` 是位数很长的十进制整数 ID,必须当作字符串原样回传:不要转成数字(会丢精度),也不要补零或重新拼接。**
|
|
35
40
|
|
|
36
|
-
**CRITICAL — `list-community-moment-replies` 只返回直接回复帖子的那一层;某条回复下的回复要用 `list-community-moment-child-replies` 传 `parent_reply_id
|
|
41
|
+
**CRITICAL — `list-community-moment-replies` 只返回直接回复帖子的那一层;某条回复下的回复要用 `list-community-moment-child-replies` 传 `parent_reply_id`,读接口里的父回复可以是任意层级。写入子回复时 `parent_reply_id` 必须是该帖的一级回复(见 reply-moment);要回复「回复下的回复」时用 `reply_to_reply_id` 指向更深的那条。**
|
|
37
42
|
|
|
38
|
-
-
|
|
39
|
-
|
|
43
|
+
**CRITICAL — `+upload-video` 返回的 `videoId` 才是发帖句柄;`normal` / `transcoding` / `regulating` 都能直接发帖引用,不要因状态不是 `normal` 重传,也不要拿素材库 ID 顶替。**
|
|
44
|
+
|
|
45
|
+
**CRITICAL — 发帖与回帖的请求形状、正文白名单、身份与不可逆边界见各自 reference;`draft_id` 只在顶层,`contents` 是 JSON 字符串;草稿先给 `preview_url` 确认再发布。**
|
|
46
|
+
|
|
47
|
+
- 写能力:`+upload-image`、`+upload-video`、发帖与回帖都需要论坛版主/主管理员权限;缺权限按共享约定解释,不要绕过。
|
|
48
|
+
- `forum_app_id` 指定目标论坛,`developer_id` / `app_id` 保留已授权调用 scope;缺 scope 转 `taptap-identity`。参数、可见性与权限错误排查见 [read-moments](references/read-moments.md)。
|
|
40
49
|
- `--data` 只写 reference 列出的字段;`app_id` / `developer_id` 用 `--app-id` / `--dev-id`,不要重复写进 `--data`。
|
|
41
|
-
-
|
|
42
|
-
- 本 skill 不做任何写操作,也不要调用其它业务域的写接口代表用户处置社区内容。
|
|
50
|
+
- 泛问「社区」时先确认:看哪类帖、要不要某个子版块、要列表还是正文。
|
|
43
51
|
|
|
44
52
|
## References
|
|
45
53
|
|
|
46
54
|
| Reference | 什么时候读 |
|
|
47
55
|
| --- | --- |
|
|
48
|
-
| [read moments](references/read-moments.md) |
|
|
49
|
-
| [
|
|
56
|
+
| [read moments](references/read-moments.md) | 调用 scope 与跨论坛查询、权限排查、子版块、正文与图片。 |
|
|
57
|
+
| [upload image](references/upload-image.md) | 帖子配图:权限、产物、与素材库的区别。 |
|
|
58
|
+
| [upload video](references/upload-video.md) | 帖子视频:登记、`videoId`、状态与重试。 |
|
|
59
|
+
| [publish post](references/publish-post.md) | 发帖:论坛与身份、四步链路、文档字段、正文节点与发布边界。 |
|
|
60
|
+
| [reply moment](references/reply-moment.md) | 回帖:一级回复与子回复、正文白名单与重试。 |
|
|
61
|
+
| [read replies](references/read-replies.md) | 一级/子回复、置顶与 `stat` / `total`。 |
|
|
50
62
|
|
|
51
63
|
## 不在本 skill 范围
|
|
52
64
|
|
|
53
65
|
- 玩家评价(评分、评价正文、评价回复):转 `taptap-player-feedback`。
|
|
54
66
|
- 评分、下载、曝光、转化等经营数据:转 `taptap-dashboard-stats`。
|
|
55
|
-
-
|
|
67
|
+
- 置顶、加精、沉底、删除或其它处置:本 skill 不承接;写操作只覆盖草稿、发布与回复。
|
|
56
68
|
- 创建游戏、修改资料、包体、资质、测试计划:转对应业务 skill。
|