@taptap/cli 2026.11.29-beta.1 → 2026.11.30-beta.1
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/README.md +3 -1
- package/README.zh.md +3 -1
- package/affordance/app.md +13 -0
- package/affordance/developer.md +27 -0
- package/affordance/game-service.md +87 -0
- 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/index.json +6 -0
- package/skills/taptap-cli/SKILL.md +4 -2
- package/skills/taptap-community-management/SKILL.md +5 -0
- package/skills/taptap-community-management/references/forum-feed.md +14 -0
- package/skills/taptap-dashboard-stats/SKILL.md +12 -8
- package/skills/taptap-dashboard-stats/references/forum-stats-cheatsheet.md +1 -1
- package/skills/taptap-dashboard-stats/references/instant-game-overviews.md +17 -0
- package/skills/taptap-development/SKILL.md +72 -0
- package/skills/taptap-development/references/multiplayer-diagnosis.md +28 -0
- package/skills/taptap-development/references/performance-checklist.md +31 -0
- package/skills/taptap-game-service/SKILL.md +51 -0
- package/skills/taptap-game-service/references/ad-config.md +13 -0
- package/skills/taptap-game-service/references/debug-feedback.md +12 -0
- package/skills/taptap-game-service/references/leaderboard.md +24 -0
- package/skills/taptap-game-service/references/share-template.md +14 -0
- package/skills/taptap-identity/SKILL.md +3 -0
- package/skills/taptap-identity/references/project-binding.md +16 -0
- package/skills/taptap-package-management/SKILL.md +4 -0
- package/skills/taptap-package-management/references/h5-directory-upload.md +16 -0
- package/skills/taptap-player-feedback/SKILL.md +7 -7
- package/skills/taptap-player-feedback/references/review-actions.md +39 -0
- package/taptap-suite/SKILL.md +7 -5
- package/taptap-suite/references/taptap-community-management/SKILL.md +5 -0
- package/taptap-suite/references/taptap-community-management/references/forum-feed.md +14 -0
- package/taptap-suite/references/taptap-dashboard-stats/SKILL.md +12 -8
- package/taptap-suite/references/taptap-dashboard-stats/references/forum-stats-cheatsheet.md +1 -1
- package/taptap-suite/references/taptap-dashboard-stats/references/instant-game-overviews.md +17 -0
- package/taptap-suite/references/taptap-development/SKILL.md +72 -0
- package/taptap-suite/references/taptap-development/references/multiplayer-diagnosis.md +28 -0
- package/taptap-suite/references/taptap-development/references/performance-checklist.md +31 -0
- package/taptap-suite/references/taptap-game-service/SKILL.md +51 -0
- package/taptap-suite/references/taptap-game-service/references/ad-config.md +13 -0
- package/taptap-suite/references/taptap-game-service/references/debug-feedback.md +12 -0
- package/taptap-suite/references/taptap-game-service/references/leaderboard.md +24 -0
- package/taptap-suite/references/taptap-game-service/references/share-template.md +14 -0
- package/taptap-suite/references/taptap-identity/SKILL.md +3 -0
- package/taptap-suite/references/taptap-identity/references/project-binding.md +16 -0
- package/taptap-suite/references/taptap-package-management/SKILL.md +4 -0
- package/taptap-suite/references/taptap-package-management/references/h5-directory-upload.md +16 -0
- package/taptap-suite/references/taptap-player-feedback/SKILL.md +7 -7
- package/taptap-suite/references/taptap-player-feedback/references/review-actions.md +39 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 分享模板资源
|
|
2
|
+
|
|
3
|
+
可使用对应的 game-service 资源命令(以 `taptap-cli schema game-service <resource> --names` 为准):
|
|
4
|
+
|
|
5
|
+
- `taptap-cli game-service share-template create --data '{"contents":"来玩游戏","remark":"邀请好友"}' --idempotency-key "<key>" --yes`
|
|
6
|
+
- `taptap-cli game-service share-template list --page-size 20`
|
|
7
|
+
- `taptap-cli game-service share-template get --data '{"template_code":"<code>"}'`
|
|
8
|
+
|
|
9
|
+
- `contents` 最多 21 个 UTF-8 字节;中文约 7 个字。纯空白拒绝。
|
|
10
|
+
- `remark` 最多 100 个 Unicode 字符,必填。
|
|
11
|
+
- 审核状态:`pending` / `approved` / `rejected` / `error`;只有 `approved` 可用于客户端。
|
|
12
|
+
- 拒绝时读取 `audit_reason`,不要改写模板码或复用其他游戏的模板。
|
|
13
|
+
|
|
14
|
+
客户端接入与官方文档入口:`taptap-cli development docs --sources share`。
|
|
@@ -22,6 +22,8 @@ identity 是所有业务 skill 的前置定位能力。它只确认登录态、
|
|
|
22
22
|
|
|
23
23
|
**总览范围 — `overview` 是账号范围与游戏样例总览,只允许可选的 `--dev-id` 和 `--page-size`。不要对它使用 `--page-all`、`--page-limit` 或 `--page-delay`;需要完整游戏列表时,先标准调用一次 `overview`,再对返回的明确 developerId 使用 `app +list --page-all --page-size 50`。**
|
|
24
24
|
|
|
25
|
+
scope 优先级与项目绑定见 [project binding](references/project-binding.md)。
|
|
26
|
+
|
|
25
27
|
身份发现中的页面入口优先使用本次 `app +list` / `overview` 每个游戏返回的 `page_url`;接口缺失时的规范地址推导按 [shared execution](../taptap-cli/references/shared-execution.md)「人工页面交接和链接输出」执行,推导入口必须标记为非服务端返回。
|
|
26
28
|
|
|
27
29
|
**CRITICAL — 未登录时使用 `taptap-cli auth login --no-wait --json`。不要输出、记录或上报 access token;token 只由 CLI 保存在本机凭证存储,不进入日志、埋点或错误上报。**
|
|
@@ -43,6 +45,7 @@ identity 是所有业务 skill 的前置定位能力。它只确认登录态、
|
|
|
43
45
|
| 按游戏名找 app | `taptap-cli app +list --dev-id <developerId> --kw "<keyword>"` |
|
|
44
46
|
| 查看某厂商下所有 app | `taptap-cli app +list --dev-id <developerId> --page-all --page-size 50` |
|
|
45
47
|
| 用户说“切到某厂商/某游戏” | `developer +enter` / `app +select` 校验并保存 CLI scope;不要声称切换了网页状态 |
|
|
48
|
+
| 当前目录固定到一个游戏项目 | `app +bind-project`;查看/核对/解除见 [project binding](references/project-binding.md) |
|
|
46
49
|
| 权限不足、找不到厂商/游戏 | 先核对调用 scope 与目标参数,再按实际错误说明限制与下一步 |
|
|
47
50
|
|
|
48
51
|
## 常用命令
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# 项目绑定
|
|
2
|
+
|
|
3
|
+
项目绑定把当前目录固定到一个真实厂商/应用,保存在 `.taptap/project.json`,只含环境、profile、厂商/应用 ID、包类型/运行时和核对时间等非凭证数据。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
taptap-cli app +bind-project --dev-id <id> --app-id <id>
|
|
7
|
+
taptap-cli app +current-project
|
|
8
|
+
taptap-cli app +current-project --refresh
|
|
9
|
+
taptap-cli app +unbind-project
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- `+bind-project` 先按当前账号核对应用属于该厂商;只有一个候选也不会静默绑定。
|
|
13
|
+
- scope 优先级:显式参数 → 当前项目绑定 → profile 已选 scope;显式换厂商时不得混入旧 app。
|
|
14
|
+
- `+current-project --refresh` 只在 `getMiniAppInfo` 可用时读取实时身份;不可用或失败时标记为 stale,不把绑定当作新鲜成功。
|
|
15
|
+
- `+unbind-project` 只清项目绑定,不退出登录;清凭证用 `auth logout`。
|
|
16
|
+
- 换凭证后重新核对归属;本地绑定不是权限。
|
|
@@ -62,6 +62,10 @@ taptap-cli schema package-management get-test-qr-code
|
|
|
62
62
|
|
|
63
63
|
上表除 TapTap 制造(Maker)一处外,其余“不能做”事项——各类型的资料页主包体绑定、资料字段、提审、发布——一律转 `taptap-app-edit`。
|
|
64
64
|
|
|
65
|
+
## H5 目录与方向
|
|
66
|
+
|
|
67
|
+
`upload-h5-package` 也接受构建目录;目录上传必须显式指定真实方向,CLI 会生成确定性 ZIP。排除项、方向和版本细则见 [H5 目录上传](references/h5-directory-upload.md)。
|
|
68
|
+
|
|
65
69
|
## 执行规则
|
|
66
70
|
|
|
67
71
|
- 先调 `get-available-package-types` 拿 `available_package_types`;只用其中实际返回的类型,不要补充不可见类型。矩阵为空时不要重试同一命令,按 `empty_reason` 分流,见 [diagnostics](references/package-management-diagnostics.md)「查包体库状态」。
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# H5 目录上传与方向
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
taptap-cli upload-h5-package dist --dev-id <id> --app-id <id> \
|
|
5
|
+
--screen-orientation 0 --yes
|
|
6
|
+
taptap-cli package-management update-h5-package-orientation \
|
|
7
|
+
--dev-id <id> --app-id <id> \
|
|
8
|
+
--data '{"version_id":"<version_id>","screen_orientation":1,"expected_screen_orientation":0}' \
|
|
9
|
+
--idempotency-key "<key>" --yes
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- 目录必须有根级 `index.html`;CLI 生成确定性 ZIP(ZIP 根下一层游戏目录 / `index.html`)。
|
|
13
|
+
- 排除 `.secret`、`.taptap*`、`.git`、`.gitignore`、`.DS_Store`、`.env`、`node_modules`、`.tmp`、`.cache` 和符号链接。
|
|
14
|
+
- 目录上传必须显式传 `--screen-orientation`(0=横屏,1=竖屏);未知方向在打包/上传前报错,不默认横屏。
|
|
15
|
+
- ZIP 输入保持原行为;预检仍要求根下只有一个游戏目录且包含 `index.html`。
|
|
16
|
+
- 方向更新只改当前可编辑 H5 开发版本,必须带 `expected_screen_orientation`;已发布/审核中版本用原始 `h5_package_id` 创建新开发版本,不重传字节。
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: taptap-player-feedback
|
|
3
3
|
version: 1.0.0
|
|
4
|
-
description: "TapTap
|
|
4
|
+
description: "TapTap 玩家评价 runbook。用于按评分、互动状态、关键字和时间范围分页检索玩家评价正文、配图、作者与该评价下的回复,并解释分页上限和评分口径;支持用户明确授权下的点赞与官方回复;不负责评分统计与趋势(转 taptap-dashboard-stats)、资料提审或删除评价。"
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
7
7
|
bins: ["taptap-cli"]
|
|
8
|
-
cliHelp: "taptap-cli player-feedback --help;taptap-cli schema player-feedback list-player-reviews"
|
|
8
|
+
cliHelp: "taptap-cli player-feedback --help;taptap-cli schema player-feedback list-player-reviews;taptap-cli schema player-feedback list-review-feed;taptap-cli schema player-feedback reply-review"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# player-feedback
|
|
12
12
|
|
|
13
13
|
开始前先读 [`../taptap-cli/references/shared-execution.md`](../taptap-cli/references/shared-execution.md)(身份、JSON 输出外壳、错误处理、确认门禁)。
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
原管理列表 `list-player-reviews` 只读;评价流、点赞与官方回复是独立接口,回复需用户明确授权,细节见 [review actions](references/review-actions.md)。执行前以当前环境的实际命令目录为准:没有 `like-review` / `reply-review` 时按未开放处理,不伪造写入。
|
|
16
16
|
|
|
17
17
|
**CRITICAL — 深分页硬上限:`page × page_size` 必须 ≤ 10000。越界时服务端返回空列表且 `total=0`,无法区分「确实没有评价」与「翻页越界」。禁止发起越界调用;需要更多数据时先按时间或评分缩小范围再查。**
|
|
18
18
|
|
|
@@ -34,8 +34,8 @@ metadata:
|
|
|
34
34
|
| 看某条评价的回复 | 响应里的 `comments[]`;总数看 `comment_total` |
|
|
35
35
|
| 判断官方有没有回复 | 看 `has_official_comment`,再看 `comments[].is_official` |
|
|
36
36
|
| 要「全部评价」或跨月数据 | 显式传 `"start_date":0`,并先读 [queries](references/player-feedback-queries.md) 确认分页切分 |
|
|
37
|
-
| 要评分趋势、好评率、评分分布 | 转 `taptap-dashboard-stats` |
|
|
38
|
-
|
|
|
37
|
+
| 要评分趋势、好评率、评分分布 | 转 `taptap-dashboard-stats`,优先用 `get-review-overview` |
|
|
38
|
+
| 评价流、点赞、官方回复 | [review actions](references/review-actions.md) |
|
|
39
39
|
|
|
40
40
|
## 常用命令
|
|
41
41
|
|
|
@@ -90,7 +90,7 @@ taptap-cli player-feedback list-player-reviews \
|
|
|
90
90
|
- `total` 在翻页越界时为 `0`,**不要把 `total=0` 当作「没有评价」**;先用一次 `page=1` 的查询确认基线。
|
|
91
91
|
- `author` 可能为 `null`(评价者资料不可见)。此时不要编造昵称,也不要回退到 `user_id` 展示给用户。
|
|
92
92
|
- `comments` 只是该评价下的前若干条回复,总数以 `comment_total` 为准。
|
|
93
|
-
-
|
|
93
|
+
- 原管理列表只读;点赞和回复只走独立接口,回复必须有用户授权。
|
|
94
94
|
|
|
95
95
|
## 输出规则
|
|
96
96
|
|
|
@@ -110,7 +110,7 @@ taptap-cli player-feedback list-player-reviews \
|
|
|
110
110
|
## 不在本 skill 范围
|
|
111
111
|
|
|
112
112
|
- 评分/评价统计、好评率、评分分布与趋势:转 `taptap-dashboard-stats`。
|
|
113
|
-
-
|
|
113
|
+
- 删除评价、举报处置等后台操作:CLI 不支持,给开发者中心入口。
|
|
114
114
|
- 资料提审、撤审、发布:转 `taptap-app-edit`。
|
|
115
115
|
- 测试计划资格、激活码:转 `taptap-test-plan`。
|
|
116
116
|
- 社区帖子、动态和评论区的非评价内容:转 `taptap-community-management`。
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# 评价流、点赞与官方回复
|
|
2
|
+
|
|
3
|
+
## 评价流
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
taptap-cli player-feedback list-review-feed \
|
|
7
|
+
--dev-id <id> --app-id <id> \
|
|
8
|
+
--data '{"sort":"new","limit":10,"is_collapsed":false,"filter_platform":"mobile"}'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- `sort`:`new` / `hot` / `spent`;`filter_platform`:`mobile` / `pc` / `web`。
|
|
12
|
+
- 首请求省略 `cursor`,后续原样传 `next_cursor`;scope 和筛选保持一致。
|
|
13
|
+
- `has_more=false` 时不再传 cursor;空页但 `has_more=true` 仍有后续。
|
|
14
|
+
- `total` 可能包含过滤前条目,不能用 list 长度推断结束。
|
|
15
|
+
|
|
16
|
+
## 点赞
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
taptap-cli player-feedback like-review \
|
|
20
|
+
--dev-id <id> --app-id <id> \
|
|
21
|
+
--data '{"review_id":"<review_id>"}' --idempotency-key "<key>" --yes
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
点赞不是状态切换;只有 `executed=true` 且 `vote_value=up` 才算成功。重复调用是再次执行。
|
|
25
|
+
|
|
26
|
+
## 官方回复两步
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
taptap-cli player-feedback reply-review \
|
|
30
|
+
--dev-id <id> --app-id <id> \
|
|
31
|
+
--data '{"review_id":"<review_id>","contents":"<text>","confirm_high_risk":false}' \
|
|
32
|
+
--idempotency-key "<evaluate-key>" --yes
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
1. 低风险会直接发送;中/高风险返回 `sent=false`、`need_confirmation=true`、`draft`,此时没有发送。
|
|
36
|
+
2. 把 `draft` 原文展示给用户,等待对完全相同正文的明确确认。
|
|
37
|
+
3. 确认后用另一个幂等键提交 `confirm_high_risk=true`,正文必须完全一致;正文变更重新评估。
|
|
38
|
+
4. `sent=true` 且 `need_confirmation=false` 才表示已发送。
|
|
39
|
+
5. `result_unknown` 先读回核对,不换 key 重发,也不重复发送。
|