@taptap/cli 2026.8.27

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 (64) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +16 -0
  3. package/CHANGELOG.md +308 -0
  4. package/LICENSE +21 -0
  5. package/README.md +301 -0
  6. package/README.zh.md +295 -0
  7. package/affordance/README.md +32 -0
  8. package/affordance/app.md +140 -0
  9. package/bin/taptap-cli-darwin-amd64 +0 -0
  10. package/bin/taptap-cli-darwin-arm64 +0 -0
  11. package/bin/taptap-cli-linux-amd64 +0 -0
  12. package/bin/taptap-cli-linux-arm64 +0 -0
  13. package/bin/taptap-cli-linux-riscv64 +0 -0
  14. package/bin/taptap-cli-windows-amd64.exe +0 -0
  15. package/bin/taptap-cli-windows-arm64.exe +0 -0
  16. package/checksums.txt +7 -0
  17. package/hooks/hooks.json +53 -0
  18. package/package.json +50 -0
  19. package/scripts/claude-hooks/dispatch.mjs +563 -0
  20. package/scripts/claude-hooks/dispatch.test.mjs +362 -0
  21. package/scripts/install-wizard.js +338 -0
  22. package/scripts/run.js +121 -0
  23. package/scripts/skills-source.js +17 -0
  24. package/skills/index.json +14 -0
  25. package/skills/taptap-app-edit/SKILL.md +125 -0
  26. package/skills/taptap-app-edit/references/app-edit-analysis.md +80 -0
  27. package/skills/taptap-app-edit/references/app-edit-audit-and-history.md +274 -0
  28. package/skills/taptap-app-edit/references/app-edit-field-map.md +131 -0
  29. package/skills/taptap-app-edit/references/app-edit-fields-and-packages.md +109 -0
  30. package/skills/taptap-app-edit/references/app-edit-version-lifecycle.md +72 -0
  31. package/skills/taptap-app-edit/references/review-risk-checklist.md +128 -0
  32. package/skills/taptap-asset-library/SKILL.md +117 -0
  33. package/skills/taptap-asset-library/references/asset-library-ingest.md +99 -0
  34. package/skills/taptap-asset-library/references/asset-library-search.md +72 -0
  35. package/skills/taptap-cli/SKILL.md +82 -0
  36. package/skills/taptap-cli/references/business-routing.md +55 -0
  37. package/skills/taptap-cli/references/cli-command-patterns.md +166 -0
  38. package/skills/taptap-cli/references/material-requirements.md +107 -0
  39. package/skills/taptap-cli/references/official-review-rules-v4.md +287 -0
  40. package/skills/taptap-cli/references/operation-handbooks.md +35 -0
  41. package/skills/taptap-cli/references/shared-execution.md +126 -0
  42. package/skills/taptap-cli/references/sources/operation-handbooks/manifest.json +57 -0
  43. package/skills/taptap-cli/references/sources/v4/agree.md +408 -0
  44. package/skills/taptap-cli/references/sources/v4/manifest.json +25 -0
  45. package/skills/taptap-cli/references/sources/v4/material.md +217 -0
  46. package/skills/taptap-dashboard-stats/SKILL.md +71 -0
  47. package/skills/taptap-dashboard-stats/references/dashboard-metrics-cheatsheet.md +79 -0
  48. package/skills/taptap-identity/SKILL.md +98 -0
  49. package/skills/taptap-identity/references/identity-behavior-rules.md +115 -0
  50. package/skills/taptap-materials/SKILL.md +102 -0
  51. package/skills/taptap-package-management/SKILL.md +120 -0
  52. package/skills/taptap-package-management/references/package-management-diagnostics.md +65 -0
  53. package/skills/taptap-package-management/references/package-management-page-paths.md +11 -0
  54. package/skills/taptap-publish-game/SKILL.md +77 -0
  55. package/skills/taptap-publish-game/references/publish-game-creation.md +308 -0
  56. package/skills/taptap-qualification/SKILL.md +85 -0
  57. package/skills/taptap-qualification/references/qualification-analysis.md +96 -0
  58. package/skills/taptap-qualification/references/qualification-draft.md +70 -0
  59. package/skills/taptap-qualification/references/qualification-lifecycle.md +55 -0
  60. package/skills/taptap-qualification/references/qualification-materials.md +143 -0
  61. package/skills/taptap-test-plan/SKILL.md +125 -0
  62. package/skills/taptap-test-plan/references/test-plan-creation.md +103 -0
  63. package/skills/taptap-test-plan/references/test-plan-faq.md +71 -0
  64. package/skills/taptap-test-plan/references/test-plan-operations.md +57 -0
package/README.zh.md ADDED
@@ -0,0 +1,295 @@
1
+ # taptap-cli
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![Go Version](https://img.shields.io/badge/go-%3E%3D1.26.5-blue.svg)](https://go.dev/)
5
+ [![Package](https://img.shields.io/badge/package-%40taptap%2Fcli-00a2ff.svg)](https://developer.taptap.cn/v3/cli)
6
+ [![Distribution](https://img.shields.io/badge/distribution-internal-orange.svg)](https://developer.taptap.cn/v3/cli)
7
+
8
+ [中文版](./README.zh.md) | [English](./README.md)
9
+
10
+ TapTap 官方 CLI 工具,由 [TapTap](https://github.com/taptap) 团队维护 — 让人类和 AI Agent 都能在终端中操作 TapTap。覆盖账号与游戏、游戏创建、资料维护、上架资质、审核发布、包体管理、数据表现、测试计划、游戏素材等核心业务域,提供 50+ 个可调用业务工具及 10 个 AI Agent [Skills](./skills/)。
11
+
12
+ [安装](#安装与快速开始) · [AI 助手 Skills](#ai-助手-skills) · [认证](#认证) · [命令](#命令调用) · [进阶用法](#进阶用法) · [安全](#安全与风险提示使用前必读) · [贡献](#贡献)
13
+
14
+ ## 为什么选 taptap-cli?
15
+
16
+ - **为 Agent 原生设计** — 全部 10 个 Skill 开箱即用,适配 Claude Code、Codex、Cursor 等主流 AI 工具
17
+ - **覆盖面广** — 9 类核心业务工作流、50+ 个精选业务工具、10 个 AI Agent [Skills](./skills/)
18
+ - **AI 友好调优** — 每条命令经过 Agent 实测验证,提供更友好的参数、智能默认值和结构化输出,大幅提升 Agent 调用成功率
19
+ - **快速上手** — 一条命令完成安装、交互式链接授权,从安装到完成第一次 TapTap 业务操作只需三步
20
+ - **安全可控** — 高风险操作先确认、执行前可预览,登录凭证仅保存在本机
21
+ - **清晰命令模型** — 常见任务使用快捷命令,精确操作使用服务命令,并通过 `schema` 查看当前参数
22
+
23
+ ## 功能
24
+
25
+ | 类别 | 能力 |
26
+ | ------------- | -------------------------------------------- |
27
+ | 👤 账号与游戏 | 查看登录状态,查询开发者账号和游戏,获取开发者账号 ID 与游戏 ID |
28
+ | 🎮 游戏创建 | 创建游戏草稿,配置厂商、名称、类型与包体方向 |
29
+ | 📝 资料维护 | 分析资料缺口,读取和修改游戏资料与主包体 |
30
+ | ✅ 上架资质 | 识别版号、备案、隐私、防沉迷、AI/IP 等资质缺口,管理非敏感材料与增量提审 |
31
+ | 🚀 审核发布 | 提交或撤销审核,定时或立即发布,管理草稿与版本历史 |
32
+ | 📦 包体管理 | 上传和管理 APK、Windows、H5 包,查询包体状态和自测入口 |
33
+ | 📊 数据表现 | 查询下载、浏览、曝光、转化、预约、订单、评分、关注与收藏数据 |
34
+ | 🧪 测试计划 | 创建和管理 CBT/OBT 计划、招募、资格、测试用户与激活码 |
35
+ | 🗂️ 游戏素材 | 上传图片和视频,检索和收录游戏素材,扫描本地目录或压缩包 |
36
+
37
+ ## 安装与快速开始
38
+
39
+ ### 环境要求
40
+
41
+ 开始之前,请确保具备以下条件:
42
+
43
+ - Node.js `v16`+(`npm`/`npx`,用于 npm 分发版 CLI 和 Skills)
44
+ - Go `v1.26.5+` 和 Python 3(仅源码构建需要)
45
+ - 已注册并完成必要认证的 TapTap 开发者账号
46
+
47
+ ### 快速开始(人类用户)
48
+
49
+ > **Note for AI assistants:** 如果你是 AI Agent 且正在协助用户执行安装,请直接跳转到[快速开始(AI Agent)](#快速开始ai-agent)执行,那里包含你需要完成的所有步骤。
50
+
51
+ #### 安装
52
+
53
+ 以下两种方式**任选其一**:
54
+
55
+ **方式一 — 从 npm 安装:**
56
+
57
+ ```bash
58
+ npm i -g @taptap/cli
59
+ ```
60
+
61
+ **方式二 — 从源码安装:**
62
+
63
+ 需要 Go `v1.26.5+` 和 Python 3。
64
+
65
+ ```bash
66
+ git clone https://github.com/taptap/cli.git
67
+ cd cli
68
+ make install
69
+ ```
70
+
71
+ 在需要使用 TapTap 能力的项目根目录安装 Skills:
72
+
73
+ ```bash
74
+ npx skills add taptap/cli -a universal
75
+ ```
76
+
77
+ 如需额外同步全局安装的官方 Skills:
78
+
79
+ ```bash
80
+ taptap-cli update
81
+ ```
82
+
83
+ #### 配置与使用
84
+
85
+ ```bash
86
+ # 1. 开始链接登录授权(仅需确认一次)
87
+ taptap-cli auth login
88
+
89
+ # 2. 开始使用
90
+ taptap-cli app get-app-module \
91
+ --dev-id <developer-id> --app-id <app-id> \
92
+ --data '{"module_id":"basic-info"}'
93
+ ```
94
+
95
+ ### 快速开始(AI Agent)
96
+
97
+ > 以下步骤面向 AI Agent,用户打开登录链接并确认授权。
98
+
99
+ **第 1 步 — 安装**
100
+
101
+ ```bash
102
+ npm i -g @taptap/cli
103
+
104
+ npx skills add taptap/cli -a universal
105
+ ```
106
+
107
+ 请在目标项目根目录运行 `npx skills add taptap/cli -a universal`。如需额外同步
108
+ 全局安装的官方 Skills,可运行 `taptap-cli update`。
109
+
110
+ 更多全局安装和 Agent 支持范围见
111
+ [Skills CLI 官方指引](https://github.com/vercel-labs/skills)。
112
+
113
+ **第 2 步 — 登录**
114
+
115
+ > 后台运行命令,将命令返回的登录链接直接提供给用户,并继续执行返回的恢复命令。
116
+
117
+ ```bash
118
+ taptap-cli auth login --no-wait --json
119
+ ```
120
+
121
+ **第 3 步 — 继续登录**
122
+
123
+ > 立即在后台执行返回的恢复命令,持续轮询直到授权成功或 device code 过期。
124
+
125
+ **第 4 步 — 验证**
126
+
127
+ ```bash
128
+ taptap-cli auth status
129
+ ```
130
+
131
+ ## AI 助手 Skills
132
+
133
+ | Skill | 说明 |
134
+ | --------------------------------- | ------------------------------------------- |
135
+ | `taptap-cli` | 查找可用功能、判断当前操作范围、选择命令、处理输出和错误(所有业务 Skill 的总入口) |
136
+ | `taptap-identity` | 查询登录状态、开发者账号、游戏、开发者账号 ID 和游戏 ID |
137
+ | `taptap-publish-game` | 新游戏创建、创建预览和创建后的资料/包体/测试计划交接 |
138
+ | `taptap-app-edit` | 游戏资料维护、字段修改、审核提交、发布、定时、草稿和版本历史 |
139
+ | `taptap-qualification` | 游戏上架资质识别、材料补齐、敏感资质页面指引、资质增量提审和撤回 |
140
+ | `taptap-asset-library` | 游戏图片素材库检索、批量参考图查找和图片收录 |
141
+ | `taptap-materials` | 盘点本地图片、视频和包体,并将每项物料路由到对应上传流程 |
142
+ | `taptap-package-management` | APK、Windows、H5 包体管理,查询包体状态和诊断自测二维码 |
143
+ | `taptap-dashboard-stats` | 下载、曝光、转化、预约、评分、订单等数据查询和趋势解释 |
144
+ | `taptap-test-plan` | 封闭测试与开放测试计划、招募配置、资格发放批次、用户资格和激活码管理 |
145
+
146
+ ## 认证
147
+
148
+ | 命令 | 说明 |
149
+ | --------------- | -------------------------------------------------- |
150
+ | `auth login` | 链接登录授权,并在本机保存登录凭证(token) |
151
+ | `auth logout` | 登出并删除已存储的本地凭证 |
152
+ | `auth status` | 查看当前服务地址、登录状态和配置文件路径 |
153
+ | `auth login --no-wait --json` | 启动非阻塞链接登录 |
154
+ | `auth login --device-code <code>` | 用户授权后继续检查登录结果,并写入本机登录凭证 |
155
+
156
+ ```bash
157
+ # 链接登录
158
+ taptap-cli auth login
159
+
160
+ # AI 助手模式:获取登录链接
161
+ taptap-cli auth login --no-wait --json
162
+
163
+ # 查看登录状态和当前服务地址
164
+ taptap-cli auth status
165
+
166
+ # 登出并清除本地凭证
167
+ taptap-cli auth logout
168
+
169
+ # 更新通过 npm/pnpm 安装的 CLI
170
+ taptap-cli update
171
+ ```
172
+
173
+ 源码安装的 CLI 请重新构建并安装,或下载对应的 release 二进制进行更新。
174
+
175
+ ## 命令调用
176
+
177
+ CLI 为常见任务提供快捷命令,也为精确操作提供服务命令。使用 `schema` 查看当前
178
+ 版本支持的参数。
179
+
180
+ ### 1. 标准命令
181
+
182
+ 需要精确控制时使用服务命令。写操作支持 `--dry-run` 预览。
183
+
184
+ ```bash
185
+ taptap-cli package-management get-package-overview --dev-id <developer-id> --app-id <app-id>
186
+ taptap-cli dashboard-stats get-dashboard-stats --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
187
+ taptap-cli app submit-app-review --dev-id <developer-id> --app-id <app-id> --data '{"review_fingerprint":"sha256:<64-hex>","release_schedule":{"kind":"immediate"}}' --idempotency-key <key> --dry-run
188
+ ```
189
+
190
+ 仅在维护仍使用兼容 alias 的自动化时运行 `taptap-cli aliases` 查看清单。
191
+
192
+ ### 2. 服务命令
193
+
194
+ 服务命令会与 TapTap 业务能力保持同步。
195
+
196
+ ```bash
197
+ taptap-cli app get-app-module --dev-id <developer-id> --app-id <app-id> --data '{"module_id":"basic-info"}'
198
+ taptap-cli app save-changes --dev-id <developer-id> --app-id <app-id> --data @changes.json --idempotency-key <key> --dry-run
199
+ ```
200
+
201
+ ### 3. Schema 发现
202
+
203
+ 构造请求前,可查看全部服务、单个服务或单个方法的参数契约。
204
+
205
+ ```bash
206
+ taptap-cli schema
207
+ taptap-cli schema app
208
+ taptap-cli schema app get-app-module
209
+ ```
210
+
211
+ ## 进阶用法
212
+
213
+ ### 输出格式
214
+
215
+ ```bash
216
+ --format json # JSON 成功/错误外壳(默认;普通命令省略)
217
+ --format pretty # 人类友好的摘要
218
+ --format table # 表格输出
219
+ --format ndjson # 一条记录一行 JSON
220
+ --format csv # CSV 输出
221
+ --fields a,b # 裁剪输出字段
222
+ --jq '<expr>' # 使用 jq 1.8 语法筛选或转换结果
223
+ ```
224
+
225
+ 资源查询、业务操作和上传请使用 CLI 提供的命令:
226
+
227
+ ```bash
228
+ taptap-cli schema
229
+ taptap-cli developer +list
230
+ taptap-cli app +list --dev-id <developer-id> --page-all
231
+ ```
232
+
233
+ 不要手工拼接或调用后端接口路径。
234
+
235
+ ### JSON 输出格式
236
+
237
+ 默认 JSON 输出中,成功结果和错误结果采用不同的固定结构。
238
+
239
+ 成功结果写入 **标准输出(stdout)**,程序退出码为 0:
240
+
241
+ ```json
242
+ { "ok": true, "data": { "result": "..." } }
243
+ ```
244
+
245
+ 错误结果写入 **错误输出(stderr)**,程序退出码不为 0:
246
+
247
+ ```json
248
+ { "ok": false, "error": { "type": "validation", "subtype": "invalid_argument", "message": "工具调用需要有效的 --dev-id", "param": "--dev-id" } }
249
+ ```
250
+
251
+ 判断命令是否成功,请检查 `ok == true`(或程序退出码),**不要使用业务结果中的 `code == 0` 判断**。成功结果的业务数据位于 `data`;失败结果的错误类型位于 `error.type` 和 `error.subtype`。完整错误分类见 [errs/ERROR_CONTRACT.md](errs/ERROR_CONTRACT.md)。
252
+
253
+ ### 分页
254
+
255
+ ```bash
256
+ --page-all # 自动翻页获取所有数据
257
+ --page-limit 5 # 最多获取 5 页
258
+ --page-delay 500 # 每页请求间隔 500ms
259
+ ```
260
+
261
+ ### Dry Run
262
+
263
+ 对可能产生副作用的命令,建议先用 `--dry-run` 预览请求:
264
+
265
+ ```bash
266
+ taptap-cli app submit-app-review --dev-id <developer-id> --app-id <app-id> --data '{"review_fingerprint":"sha256:<64-hex>","release_schedule":{"kind":"immediate"}}' --idempotency-key <key> --dry-run
267
+ ```
268
+
269
+ ### Schema 自省
270
+
271
+ 使用 `schema` 查看命令参数、必填字段和支持的取值:
272
+
273
+ ```bash
274
+ taptap-cli schema
275
+ taptap-cli schema app
276
+ taptap-cli schema app get-app-module
277
+ ```
278
+
279
+ ## 安全与风险提示(使用前必读)
280
+
281
+ 本工具可供 AI 助手调用以自动化执行上述 TapTap 业务操作,存在模型生成错误信息、执行结果不符合预期、恶意内容影响模型判断等固有风险;完成登录授权后,AI 助手将以您的开发者身份在账号权限范围内执行操作,可能导致敏感数据泄露、越权操作等高风险后果,请您谨慎操作和使用。
282
+
283
+ 为降低上述风险,工具已在多个层面启用默认安全保护,但上述风险仍然存在。我们强烈建议不要主动绕过任何默认安全保护;一旦放开相关限制,上述风险将显著提高,由此产生的后果需由您自行承担。
284
+
285
+ 我们建议您先在测试游戏或非生产资料上验证 AI 助手的操作流程;正式操作前,应重新确认开发者账号 ID(`developerId`)、游戏 ID(`appId`)、版本状态、包体 ID 和即将写入的内容。请勿将登录凭证、浏览器会话信息、密钥或未公开资料写入命令日志、自动化任务日志或 AI 助手对话。
286
+
287
+ 请您充分知悉全部使用风险,使用本工具即视为您自愿承担相关所有责任。
288
+
289
+ ## 贡献
290
+
291
+ 欢迎具有仓库权限的团队成员贡献!如果你发现 bug 或有功能建议,请提交 [Issue](https://github.com/taptap/cli/issues) 或 [Pull Request](https://github.com/taptap/cli/pulls)。
292
+
293
+ 对于较大的改动,建议先通过 Issue 与我们讨论。
294
+
295
+ 提交 PR 前,请先阅读 [测试说明](./docs/testing.md) 和 [发布前契约审计](./docs/release-contract.md),其中列出了贡献者和 AI Agent 使用的本地构建、测试和发布检查清单。
@@ -0,0 +1,32 @@
1
+ # Affordance
2
+
3
+ Per-command usage guidance for TapTap CLI, authored as one Markdown file per
4
+ OpenAPI tag or local shortcut service (`<service>.md`). It is surfaced in
5
+ `taptap-cli <command> --help` and the `schema` output, and is read lazily from
6
+ the binary-embedded content. There is no generated capability allowlist here:
7
+ OpenAPI remains the only executable API contract.
8
+
9
+ ## Format
10
+
11
+ Each file uses the same constrained Markdown vocabulary as lark-cli:
12
+
13
+ # <service>
14
+ > skill: <name> optional default skill for every command below
15
+ ## <command> command path after the service; nested paths use spaces
16
+ <lead paragraph> when to use this command
17
+ ### Avoid when when another command or workflow is a better fit
18
+ ### Prerequisites inputs or prior reads required before execution
19
+ ### Tips constraints and non-obvious behavior
20
+ ### Examples **description** followed by a fenced command
21
+ ### Skills skill names or name/relative-path references
22
+ ### <other heading> custom section passed through unchanged
23
+
24
+ Reference another command with `[[command]]`; it renders as an inline command
25
+ reference in help and schema output.
26
+
27
+ OpenAPI methods use their CLI name (`## create-app`). Nested local shortcuts use
28
+ their relative command path (`## task create`). A top-level shortcut that is
29
+ itself the service uses its command name (`## upload-video`).
30
+
31
+ Keep entries concise. Do not duplicate flags, field types, risk, HTTP routes, or
32
+ JSON Schema constraints already supplied by OpenAPI.
@@ -0,0 +1,140 @@
1
+ # app
2
+
3
+ ## create-app
4
+
5
+ Create a new TapTap game draft after the developer, title, category, and package direction are known.
6
+
7
+ ### Skills
8
+
9
+ - taptap-publish-game/references/publish-game-creation.md
10
+
11
+ ### Avoid when
12
+
13
+ - The game already exists and only its store information needs changing → use [[save-changes]]
14
+ - The developer or game scope is still unknown → use [[+list]] or read `taptap-identity`
15
+
16
+ ### Prerequisites
17
+
18
+ - A confirmed developer ID and game title
19
+ - A confirmed package direction such as APK, Windows, mini app, or H5
20
+
21
+ ### Examples
22
+
23
+ **Preview creation without writing**
24
+
25
+ ```bash
26
+ taptap-cli app create-app --dev-id "<developer_id>" --data '{"title":"<game_name>","category":"adventure","developer_role":"developer","package_type":"h5"}' --idempotency-key "<key>" --dry-run
27
+ ```
28
+
29
+ ## analyze-app-status
30
+
31
+ Inspect the current draft, missing fields, package requirements, validation issues, and review readiness before choosing a write operation.
32
+
33
+ ### Skills
34
+
35
+ - taptap-app-edit/references/app-edit-analysis.md
36
+
37
+ ### Avoid when
38
+
39
+ - You already know the exact module to inspect → use [[get-app-module]]
40
+
41
+ ### Examples
42
+
43
+ **Analyze one game draft**
44
+
45
+ ```bash
46
+ taptap-cli app analyze-app-status --dev-id "<developer_id>" --app-id "<app_id>"
47
+ ```
48
+
49
+ ## save-changes
50
+
51
+ Save explicit store-information changes after inspecting the current draft and confirming the exact fields to update.
52
+
53
+ ### Skills
54
+
55
+ - taptap-app-edit/references/app-edit-fields-and-packages.md
56
+
57
+ ### Avoid when
58
+
59
+ - You only need to inspect current readiness → use [[analyze-app-status]]
60
+ - You are changing the selected package rather than store fields → use [[select-package]]
61
+
62
+ ### Prerequisites
63
+
64
+ - Current draft state from [[analyze-app-status]] or [[get-app-module]]
65
+ - An idempotency key and explicit user-approved field values
66
+
67
+ ### Examples
68
+
69
+ **Preview exact changes**
70
+
71
+ ```bash
72
+ taptap-cli app save-changes --dev-id "<developer_id>" --app-id "<app_id>" --data @changes.json --idempotency-key "<key>" --dry-run
73
+ ```
74
+
75
+ ## submit-app-review
76
+
77
+ Submit the completed draft for review only after the readiness analysis reports no blockers and the user explicitly confirms submission.
78
+
79
+ ### Skills
80
+
81
+ - taptap-app-edit/references/app-edit-version-lifecycle.md
82
+
83
+ ### Avoid when
84
+
85
+ - Required fields, qualifications, or package binding are incomplete → use [[analyze-app-status]] first
86
+ - You need the server-side review precheck but are not ready to execute its write-classified request → prepare a dedicated idempotency key and explicit `--yes` before using [[precheck-app-review]]
87
+
88
+ ### Prerequisites
89
+
90
+ - A [[prepare-review-snapshot]] result whose `review_snapshot.fingerprint` and `release_schedule` were passed unchanged through [[precheck-app-review]]
91
+ - A successful [[precheck-app-review]] result for that same snapshot
92
+ - Explicit user confirmation for this high-risk write
93
+
94
+ ### Examples
95
+
96
+ **Preview the review submission request**
97
+
98
+ ```bash
99
+ taptap-cli app submit-app-review --dev-id "<developer_id>" --app-id "<app_id>" --data '{"review_fingerprint":"sha256:<fingerprint_from_snapshot>","release_schedule":{"kind":"immediate"}}' --idempotency-key "<key>" --dry-run
100
+ ```
101
+
102
+ ## +list
103
+
104
+ List games visible to the current account when an app ID is not yet known.
105
+
106
+ ### Skills
107
+
108
+ - taptap-identity/references/identity-behavior-rules.md
109
+
110
+ ### Avoid when
111
+
112
+ - You already know the app ID and only need to save it as the active scope → use [[+select]]
113
+
114
+ ## +select
115
+
116
+ Persist a known app and developer pair as the current CLI scope for subsequent local workflows.
117
+
118
+ ### Skills
119
+
120
+ - taptap-identity/references/identity-behavior-rules.md
121
+
122
+ ### Prerequisites
123
+
124
+ - A developer ID and app ID discovered from [[+list]] or another authoritative read
125
+
126
+ ## +bind-spark-version
127
+
128
+ Bind an existing TapTap Spark package version to the current game draft.
129
+
130
+ ### Skills
131
+
132
+ - taptap-app-edit/references/app-edit-fields-and-packages.md
133
+
134
+ ### Avoid when
135
+
136
+ - You are uploading a new package rather than selecting an existing Spark version → read `taptap-package-management`
137
+
138
+ ### Prerequisites
139
+
140
+ - A known developer ID, app ID, and Spark package version
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/checksums.txt ADDED
@@ -0,0 +1,7 @@
1
+ c1f8d3b6e25b76ef0ca3b68850628d121fd0d688d6416d83ab9225823dd11d27 bin/taptap-cli-darwin-amd64
2
+ 9b60bd661ed103334b3a9aeedf3b2b3c1a79ee59a7ecfb9a83711ec3adc7533d bin/taptap-cli-darwin-arm64
3
+ f3622eb6c1b730f2ccffc6efe4154dc37f6ce5e0694ec487a7638004062e18e4 bin/taptap-cli-linux-amd64
4
+ e125b44c2d05962fb1a9451cf701d85cacfed779c74d1d8b55fa666b5bb5502d bin/taptap-cli-linux-arm64
5
+ 68e84c11510ca259bc2b3b568ec95a5e2ba2511457eb9ea4d4856a9f1c34a5d2 bin/taptap-cli-linux-riscv64
6
+ 7d698e3f3639630482b4902e1bb0e14b88f91d42fa0fae30d1b82c94b0786368 bin/taptap-cli-windows-amd64.exe
7
+ 92fc9d507036d34949e0b1c618a6bda6e898c3c0d13f58b272d9e7b8f0c9c683 bin/taptap-cli-windows-arm64.exe
@@ -0,0 +1,53 @@
1
+ {
2
+ "description": "TapTap CLI session checks, conservative command permissions, and result guidance",
3
+ "hooks": {
4
+ "SessionStart": [
5
+ {
6
+ "matcher": "startup|resume|clear|compact|fork",
7
+ "hooks": [
8
+ {
9
+ "type": "command",
10
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/claude-hooks/dispatch.mjs\"",
11
+ "timeout": 5
12
+ }
13
+ ]
14
+ }
15
+ ],
16
+ "PreToolUse": [
17
+ {
18
+ "matcher": "Bash|PowerShell",
19
+ "hooks": [
20
+ {
21
+ "type": "command",
22
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/claude-hooks/dispatch.mjs\"",
23
+ "timeout": 2
24
+ }
25
+ ]
26
+ }
27
+ ],
28
+ "PostToolUse": [
29
+ {
30
+ "matcher": "Bash|PowerShell",
31
+ "hooks": [
32
+ {
33
+ "type": "command",
34
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/claude-hooks/dispatch.mjs\"",
35
+ "timeout": 2
36
+ }
37
+ ]
38
+ }
39
+ ],
40
+ "PostToolUseFailure": [
41
+ {
42
+ "matcher": "Bash|PowerShell",
43
+ "hooks": [
44
+ {
45
+ "type": "command",
46
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/claude-hooks/dispatch.mjs\"",
47
+ "timeout": 2
48
+ }
49
+ ]
50
+ }
51
+ ]
52
+ }
53
+ }
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@taptap/cli",
3
+ "version": "2026.8.27",
4
+ "description": "TapTap AI Agent CLI",
5
+ "bin": {
6
+ "taptap-cli": "scripts/run.js"
7
+ },
8
+ "os": [
9
+ "darwin",
10
+ "linux",
11
+ "win32"
12
+ ],
13
+ "cpu": [
14
+ "x64",
15
+ "arm64",
16
+ "riscv64"
17
+ ],
18
+ "engines": {
19
+ "node": ">=16"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/taptap/cli.git"
24
+ },
25
+ "license": "MIT",
26
+ "publishConfig": {
27
+ "registry": "https://registry.npmjs.org/",
28
+ "access": "public",
29
+ "tag": "latest"
30
+ },
31
+ "dependencies": {
32
+ "@clack/prompts": "^1.2.0"
33
+ },
34
+ "files": [
35
+ "bin",
36
+ "scripts/install-wizard.js",
37
+ "scripts/skills-source.js",
38
+ "scripts/run.js",
39
+ "checksums.txt",
40
+ "CHANGELOG.md",
41
+ "README.md",
42
+ "README.zh.md",
43
+ "LICENSE",
44
+ ".claude-plugin",
45
+ "hooks",
46
+ "affordance",
47
+ "scripts/claude-hooks",
48
+ "skills"
49
+ ]
50
+ }