@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.
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +16 -0
- package/CHANGELOG.md +308 -0
- package/LICENSE +21 -0
- package/README.md +301 -0
- package/README.zh.md +295 -0
- package/affordance/README.md +32 -0
- package/affordance/app.md +140 -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 -0
- package/hooks/hooks.json +53 -0
- package/package.json +50 -0
- package/scripts/claude-hooks/dispatch.mjs +563 -0
- package/scripts/claude-hooks/dispatch.test.mjs +362 -0
- package/scripts/install-wizard.js +338 -0
- package/scripts/run.js +121 -0
- package/scripts/skills-source.js +17 -0
- package/skills/index.json +14 -0
- package/skills/taptap-app-edit/SKILL.md +125 -0
- package/skills/taptap-app-edit/references/app-edit-analysis.md +80 -0
- package/skills/taptap-app-edit/references/app-edit-audit-and-history.md +274 -0
- package/skills/taptap-app-edit/references/app-edit-field-map.md +131 -0
- package/skills/taptap-app-edit/references/app-edit-fields-and-packages.md +109 -0
- package/skills/taptap-app-edit/references/app-edit-version-lifecycle.md +72 -0
- package/skills/taptap-app-edit/references/review-risk-checklist.md +128 -0
- package/skills/taptap-asset-library/SKILL.md +117 -0
- package/skills/taptap-asset-library/references/asset-library-ingest.md +99 -0
- package/skills/taptap-asset-library/references/asset-library-search.md +72 -0
- package/skills/taptap-cli/SKILL.md +82 -0
- package/skills/taptap-cli/references/business-routing.md +55 -0
- package/skills/taptap-cli/references/cli-command-patterns.md +166 -0
- package/skills/taptap-cli/references/material-requirements.md +107 -0
- package/skills/taptap-cli/references/official-review-rules-v4.md +287 -0
- package/skills/taptap-cli/references/operation-handbooks.md +35 -0
- package/skills/taptap-cli/references/shared-execution.md +126 -0
- package/skills/taptap-cli/references/sources/operation-handbooks/manifest.json +57 -0
- package/skills/taptap-cli/references/sources/v4/agree.md +408 -0
- package/skills/taptap-cli/references/sources/v4/manifest.json +25 -0
- package/skills/taptap-cli/references/sources/v4/material.md +217 -0
- package/skills/taptap-dashboard-stats/SKILL.md +71 -0
- package/skills/taptap-dashboard-stats/references/dashboard-metrics-cheatsheet.md +79 -0
- package/skills/taptap-identity/SKILL.md +98 -0
- package/skills/taptap-identity/references/identity-behavior-rules.md +115 -0
- package/skills/taptap-materials/SKILL.md +102 -0
- package/skills/taptap-package-management/SKILL.md +120 -0
- package/skills/taptap-package-management/references/package-management-diagnostics.md +65 -0
- package/skills/taptap-package-management/references/package-management-page-paths.md +11 -0
- package/skills/taptap-publish-game/SKILL.md +77 -0
- package/skills/taptap-publish-game/references/publish-game-creation.md +308 -0
- package/skills/taptap-qualification/SKILL.md +85 -0
- package/skills/taptap-qualification/references/qualification-analysis.md +96 -0
- package/skills/taptap-qualification/references/qualification-draft.md +70 -0
- package/skills/taptap-qualification/references/qualification-lifecycle.md +55 -0
- package/skills/taptap-qualification/references/qualification-materials.md +143 -0
- package/skills/taptap-test-plan/SKILL.md +125 -0
- package/skills/taptap-test-plan/references/test-plan-creation.md +103 -0
- package/skills/taptap-test-plan/references/test-plan-faq.md +71 -0
- package/skills/taptap-test-plan/references/test-plan-operations.md +57 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "taptap-cli",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "TapTap Frontend Team"
|
|
5
|
+
},
|
|
6
|
+
"metadata": {
|
|
7
|
+
"description": "TapTap CLI skills —— 应用资料编辑、素材库管理、数据查询、测试计划等能力。随 @taptap/cli npm 包分发。"
|
|
8
|
+
},
|
|
9
|
+
"plugins": [
|
|
10
|
+
{
|
|
11
|
+
"name": "taptap-cli",
|
|
12
|
+
"source": "./",
|
|
13
|
+
"description": "TapTap CLI skills(app 编辑 / 素材库 / 数据表现 / 测试计划)",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "TapTap Frontend Team"
|
|
16
|
+
},
|
|
17
|
+
"category": "productivity"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "taptap-cli",
|
|
3
|
+
"version": "2026.8.27",
|
|
4
|
+
"description": "TapTap CLI skills —— 应用资料编辑、素材库管理、数据查询、测试计划等能力。供 Claude Code / Codex 等外部 AI 消费。",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "TapTap Frontend Team"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [
|
|
9
|
+
"taptap",
|
|
10
|
+
"game",
|
|
11
|
+
"developer",
|
|
12
|
+
"agent"
|
|
13
|
+
],
|
|
14
|
+
"skills": "./skills/",
|
|
15
|
+
"hooks": "./hooks/hooks.json"
|
|
16
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable TapTap CLI changes are documented here.
|
|
4
|
+
|
|
5
|
+
## [v2026.8.27] - 2026-08-27
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- Add a local AI image workflow for game icons, promotional images, and
|
|
10
|
+
Windows materials, with explicit rule discovery, generation planning, and
|
|
11
|
+
local validation before upload.
|
|
12
|
+
- Preserve real gameplay evidence by restricting screenshot processing to
|
|
13
|
+
user-provided or actual in-game captures instead of generated gameplay.
|
|
14
|
+
|
|
15
|
+
### Improvements
|
|
16
|
+
|
|
17
|
+
- Add scene-specific generation guidance that keeps each game's visual
|
|
18
|
+
identity, focal subject, composition, text, and source-image requirements
|
|
19
|
+
explicit.
|
|
20
|
+
- Prefer existing local materials before model generation and produce
|
|
21
|
+
executable, cross-platform-safe upload handoffs for validated candidates.
|
|
22
|
+
- Improve command usability with copyable OpenAPI `--data` examples,
|
|
23
|
+
`--json` shorthand for developer and app listing, and clearer H5 zip-layout
|
|
24
|
+
diagnostics.
|
|
25
|
+
- Expand material guidance for game icons, recommendation assets, and the
|
|
26
|
+
distinction between creation placeholders, material review, and submission
|
|
27
|
+
blockers.
|
|
28
|
+
|
|
29
|
+
### Fixes
|
|
30
|
+
|
|
31
|
+
- Align AI image rules with the public image contract and enforce
|
|
32
|
+
source-preserving screenshot validation.
|
|
33
|
+
- Send package-selection binding data in the declared request body and keep
|
|
34
|
+
capability background refreshes on a stable cache path.
|
|
35
|
+
|
|
36
|
+
## [v2026.8.26] - 2026-08-26
|
|
37
|
+
|
|
38
|
+
### Highlights
|
|
39
|
+
|
|
40
|
+
- Simplify TapTap Account device authorization for AI Agents by returning one
|
|
41
|
+
actionable login link and supporting resumable authorization polling.
|
|
42
|
+
- Add lifecycle-aware handoffs that recommend the matching official operations
|
|
43
|
+
handbook for reservation, testing, first launch, and long-term operation.
|
|
44
|
+
|
|
45
|
+
### Improvements
|
|
46
|
+
|
|
47
|
+
- Standardize authorization and Developer Center handoffs so user-facing links
|
|
48
|
+
are presented immediately, once, and without duplicate formatting.
|
|
49
|
+
- Derive lifecycle guidance from verified test-plan and complete release-history
|
|
50
|
+
evidence, with the TapTap developer quick-start guide as the safe fallback.
|
|
51
|
+
- Snapshot official handbook titles, links, and source descriptions in the
|
|
52
|
+
packaged Skills, with contract coverage for release contents and output rules.
|
|
53
|
+
- Keep README login guidance focused on the user action and align packaged Skill
|
|
54
|
+
metadata with the current release contract.
|
|
55
|
+
|
|
56
|
+
### Fixes
|
|
57
|
+
|
|
58
|
+
- Prevent onboarding and game-creation flows from requiring a second request
|
|
59
|
+
before presenting the relevant Developer Center page.
|
|
60
|
+
- Avoid guessing between first-launch and long-term guidance when release
|
|
61
|
+
history is incomplete, unknown, or conflicting.
|
|
62
|
+
|
|
63
|
+
## [v2026.8.24] - 2026-08-24
|
|
64
|
+
|
|
65
|
+
### Highlights
|
|
66
|
+
|
|
67
|
+
- Align the CLI with the forge capability contract: `developer`/`app`/`task`/
|
|
68
|
+
`materials` shortcuts now use the `+` prefix, review-snapshot and precheck
|
|
69
|
+
operations are read-only, and create-app no longer sends the removed
|
|
70
|
+
`confirm` field.
|
|
71
|
+
|
|
72
|
+
### Improvements
|
|
73
|
+
|
|
74
|
+
- Reject non-image payloads behind image extensions while trusting
|
|
75
|
+
unsniffable image formats by extension.
|
|
76
|
+
- Support `--dev-id` filtering for developer listing and surface review
|
|
77
|
+
status consistently.
|
|
78
|
+
- Type the APK upload result instead of parsing a loose map, and sync the
|
|
79
|
+
affordance help to the renamed `+` commands.
|
|
80
|
+
|
|
81
|
+
## [v2026.8.21] - 2026-08-21
|
|
82
|
+
|
|
83
|
+
### Highlights
|
|
84
|
+
|
|
85
|
+
- Add source-traceable TapTap publishing review guidance and a pre-submit risk
|
|
86
|
+
checklist based on the approved official material and review rules.
|
|
87
|
+
- Strengthen package upload and stable release integrity so validation,
|
|
88
|
+
checksums, metadata, and uploaded bytes remain bound to the same input.
|
|
89
|
+
|
|
90
|
+
### Improvements
|
|
91
|
+
|
|
92
|
+
- Guide users from unsupported schema lookups to the exact command `--help`
|
|
93
|
+
path while keeping command discovery language user-facing.
|
|
94
|
+
- Improve stable release retries and package publication ordering, and make
|
|
95
|
+
release builds and official review document snapshots more reproducible.
|
|
96
|
+
|
|
97
|
+
### Fixes
|
|
98
|
+
|
|
99
|
+
- Ensure developer-center page links use `https://developer.taptap.cn` instead
|
|
100
|
+
of the Capability API host while preserving configured custom environments,
|
|
101
|
+
`/v3/...` paths, query parameters, and fragments.
|
|
102
|
+
- Keep page, login, and Capability API endpoints separated without changing
|
|
103
|
+
API request URLs, upload targets, or non-page URLs.
|
|
104
|
+
- Bound official review document downloads across stalled responses and
|
|
105
|
+
redirects so source refreshes fail clearly instead of hanging.
|
|
106
|
+
|
|
107
|
+
## [v2026.8.20] - 2026-08-20
|
|
108
|
+
|
|
109
|
+
### Highlights
|
|
110
|
+
|
|
111
|
+
- Expand TapTap CLI to 50+ business tools and 10 AI Agent Skills across game
|
|
112
|
+
creation, profile editing, qualifications, review and release, packages,
|
|
113
|
+
statistics, test plans, and game assets.
|
|
114
|
+
- Keep service commands and parameter schemas aligned with current TapTap
|
|
115
|
+
capabilities while preserving reliable offline command discovery.
|
|
116
|
+
- Replace the legacy CLI-token login flow with secure TapTap Account QR-code
|
|
117
|
+
authorization for both human users and AI Agents.
|
|
118
|
+
|
|
119
|
+
### Improvements
|
|
120
|
+
|
|
121
|
+
- Improve Agent login with terminal QR codes, PNG fallback, resumable polling,
|
|
122
|
+
and safer credential persistence.
|
|
123
|
+
- Add local H5 package validation before upload and strengthen APK, Windows,
|
|
124
|
+
H5, and TapTap Maker package selection and binding workflows.
|
|
125
|
+
- Add safer write recovery with stable idempotency, result readback, and clear
|
|
126
|
+
handling when the final server outcome cannot be confirmed.
|
|
127
|
+
- Improve game list status, developer and game page links, app review
|
|
128
|
+
readiness, and user-facing guidance across the bundled Skills.
|
|
129
|
+
- Expand diagnostics, command schema inspection, release verification, and
|
|
130
|
+
contract tests for CLI commands and packaged Skills.
|
|
131
|
+
|
|
132
|
+
### Fixes
|
|
133
|
+
|
|
134
|
+
- Preserve the correct login profile during resumable authorization and prevent
|
|
135
|
+
failed verification from replacing a valid saved login.
|
|
136
|
+
- Preserve server-provided game review/listing status labels and canonical
|
|
137
|
+
Developer Center page paths without guessing missing status or dashboard metrics.
|
|
138
|
+
- Fix command routing when local and remote capability definitions differ,
|
|
139
|
+
including safer handling of updated parameters and disabled operations.
|
|
140
|
+
- Fix concurrent profile writes, upload identity checks, package slot updates,
|
|
141
|
+
and response parsing edge cases.
|
|
142
|
+
|
|
143
|
+
## [v2026.7.22] - 2026-07-22
|
|
144
|
+
|
|
145
|
+
### Highlights
|
|
146
|
+
|
|
147
|
+
- Align CLI capability discovery, command routing, tool schemas, and bundled
|
|
148
|
+
TapTap skills with the latest workflow capabilities.
|
|
149
|
+
- Strengthen repository review, release provenance, upload, and runtime safety
|
|
150
|
+
checks.
|
|
151
|
+
|
|
152
|
+
### Improvements
|
|
153
|
+
|
|
154
|
+
- Refresh app editing, dashboard statistics, game creation, and test plan
|
|
155
|
+
skill references and capability maps.
|
|
156
|
+
- Expand contract coverage for capabilities, schemas, public commands, skills,
|
|
157
|
+
package verification, and security-sensitive execution paths.
|
|
158
|
+
|
|
159
|
+
### Fixes
|
|
160
|
+
|
|
161
|
+
- Prevent unsafe or ambiguous write execution while preserving explicit
|
|
162
|
+
confirmation requirements.
|
|
163
|
+
- Fix stale scope, package binding, upload boundary, and release verification
|
|
164
|
+
edge cases.
|
|
165
|
+
|
|
166
|
+
### Added
|
|
167
|
+
|
|
168
|
+
- Go implementation of the TapTap CLI command surface.
|
|
169
|
+
- TapTap business Skills for identity, game creation, profile editing,
|
|
170
|
+
qualifications, asset library, package management, dashboard statistics,
|
|
171
|
+
and test plans.
|
|
172
|
+
- Extension hooks and policy contracts for custom builds.
|
|
173
|
+
- Sidecar credential isolation with HMAC-signed TapTap token and session-cookie
|
|
174
|
+
forwarding.
|
|
175
|
+
- Events bus, consumer, schema, status, and lifecycle infrastructure for
|
|
176
|
+
registered TapTap event sources.
|
|
177
|
+
|
|
178
|
+
### Changed
|
|
179
|
+
|
|
180
|
+
- `cmd` is limited to argument parsing, routing, and output selection.
|
|
181
|
+
- Skill-domain workflows live under `shortcuts/<domain>` and shared command
|
|
182
|
+
plumbing lives under `shortcuts/common`.
|
|
183
|
+
- Build metadata is generated only from the bundled TapTap tool catalog.
|
|
184
|
+
- CI validates TapTap build, tests, lint, scripts, plugins, and Sidecar behavior
|
|
185
|
+
without external live credentials.
|
|
186
|
+
|
|
187
|
+
### Removed
|
|
188
|
+
|
|
189
|
+
- Non-TapTap commands, identities, API metadata, examples, issue fixtures, and
|
|
190
|
+
release paths.
|
|
191
|
+
|
|
192
|
+
## [v2026.7.16] - 2026-07-16
|
|
193
|
+
|
|
194
|
+
### Features
|
|
195
|
+
|
|
196
|
+
- Add Windows package branch support for default, game, and launcher packages.
|
|
197
|
+
- Support safe multi-package Windows ingest with current-slot reads before
|
|
198
|
+
every binding.
|
|
199
|
+
- Add package-management updates for canonical page paths, self-test behavior,
|
|
200
|
+
and Tap mini-game capability confirmation.
|
|
201
|
+
|
|
202
|
+
### Reliability
|
|
203
|
+
|
|
204
|
+
- Require explicit confirmation before ingest uploads and draft writes.
|
|
205
|
+
- Return non-zero partial-failure results when an ingest pipeline does not fully
|
|
206
|
+
complete.
|
|
207
|
+
- Preserve uploaded package IDs and Windows branches when a later binding step
|
|
208
|
+
fails.
|
|
209
|
+
- Replace the native `plugin install` / `skills install` linker with the
|
|
210
|
+
standard `npx skills add taptap/cli -a universal` project installation flow.
|
|
211
|
+
|
|
212
|
+
## [v0.0.2] - 2026-07-15
|
|
213
|
+
|
|
214
|
+
### Highlights
|
|
215
|
+
|
|
216
|
+
- Use `taptap-cli` as the single command name, with built-in self-update and
|
|
217
|
+
easier bundled skill installation.
|
|
218
|
+
- Improve game creation, package upload and selection, review, and game
|
|
219
|
+
publishing for APK, Windows, H5, and Tap mini games.
|
|
220
|
+
- Improve command discovery, help content, and onboarding guidance.
|
|
221
|
+
|
|
222
|
+
### Improvements
|
|
223
|
+
|
|
224
|
+
- Clearly report each available distribution status before and after release.
|
|
225
|
+
Publishing a version no longer implies that entries marked "Coming soon" are
|
|
226
|
+
playable or downloadable.
|
|
227
|
+
- Add safer previews and confirmations for package and release changes.
|
|
228
|
+
- Improve upload recovery and package status consistency.
|
|
229
|
+
|
|
230
|
+
### Fixes
|
|
231
|
+
|
|
232
|
+
- Fix plugin host detection.
|
|
233
|
+
- Fix edge cases in Windows package selection and H5 package binding.
|
|
234
|
+
|
|
235
|
+
## [v0.0.1] - 2026-07-14
|
|
236
|
+
|
|
237
|
+
### Initial Release
|
|
238
|
+
|
|
239
|
+
The first internal release of `@taptap/cli`, the command-line interface for
|
|
240
|
+
TapTap workflows.
|
|
241
|
+
|
|
242
|
+
### Features
|
|
243
|
+
|
|
244
|
+
#### Core Commands
|
|
245
|
+
|
|
246
|
+
- `taptap-cli auth` - Complete browser-based authentication flow, including
|
|
247
|
+
login, logout, local token status, and device-code continuation for
|
|
248
|
+
AI-assisted login.
|
|
249
|
+
- `taptap-cli developer` - List accessible developer accounts and inspect
|
|
250
|
+
developer-level suggestions.
|
|
251
|
+
- `taptap-cli app` - List apps under a developer account and locate target
|
|
252
|
+
games by keyword.
|
|
253
|
+
- `taptap-cli skills` - List, read, and install bundled AI agent skills.
|
|
254
|
+
- `taptap-cli plugin install` - Install bundled skills into supported AI
|
|
255
|
+
clients.
|
|
256
|
+
- `taptap-cli completion` - Generate shell completion scripts for Zsh, Bash,
|
|
257
|
+
and Fish.
|
|
258
|
+
- `taptap-cli version` - Show package and contract versions.
|
|
259
|
+
|
|
260
|
+
#### Workflow Shortcuts
|
|
261
|
+
|
|
262
|
+
- `app:analyze` - Analyze app profile readiness and next actions.
|
|
263
|
+
- `stats:get` - Query dashboard metrics.
|
|
264
|
+
- `game:create` - Create a game draft.
|
|
265
|
+
- `audit:submit` - Preview or submit app profile review.
|
|
266
|
+
- `release:publish` - Publish a scheduled release immediately.
|
|
267
|
+
- `packages:overview` - Inspect package management status.
|
|
268
|
+
|
|
269
|
+
#### Domain Commands
|
|
270
|
+
|
|
271
|
+
- `identity` - Discover developer accounts, apps, and current scope.
|
|
272
|
+
- `publish-game` - Create new game drafts.
|
|
273
|
+
- `app-edit` - Analyze and update app profile drafts, packages, review
|
|
274
|
+
submission, release scheduling, and version history.
|
|
275
|
+
- `package-management` - Inspect package status and test QR codes.
|
|
276
|
+
- `dashboard-stats` - Query store, game, sales, review, and community metrics.
|
|
277
|
+
- `test-plan` - Manage test plans, recruitment, batches, qualifications, and
|
|
278
|
+
activation codes.
|
|
279
|
+
|
|
280
|
+
#### Uploads And Ingest
|
|
281
|
+
|
|
282
|
+
- Upload image assets.
|
|
283
|
+
- Upload profile videos.
|
|
284
|
+
- Upload Android APK packages.
|
|
285
|
+
- Upload Windows/PC packages.
|
|
286
|
+
- Upload H5 game packages.
|
|
287
|
+
- Upload Tap mini game packages.
|
|
288
|
+
- Scan local folders or archives with `ingest` to classify assets and prepare
|
|
289
|
+
follow-up actions.
|
|
290
|
+
|
|
291
|
+
#### AI Agent Skills
|
|
292
|
+
|
|
293
|
+
- `taptap-cli`
|
|
294
|
+
- `taptap-identity`
|
|
295
|
+
- `taptap-publish-game`
|
|
296
|
+
- `taptap-app-edit`
|
|
297
|
+
- `taptap-package-management`
|
|
298
|
+
- `taptap-dashboard-stats`
|
|
299
|
+
- `taptap-test-plan`
|
|
300
|
+
|
|
301
|
+
#### Developer Experience
|
|
302
|
+
|
|
303
|
+
- Structured JSON output for automation and AI agents.
|
|
304
|
+
- Stable success/error envelope and typed error categories.
|
|
305
|
+
- Confirmation gates for irreversible writes.
|
|
306
|
+
- `--dry-run` previews for supported high-risk operations.
|
|
307
|
+
- Output controls with `--limit`, `--cursor`, `--fields`, and `--jq`.
|
|
308
|
+
- Internal Nexus distribution for controlled rollout.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TapTap
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# taptap-cli
|
|
2
|
+
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
[](https://go.dev/)
|
|
5
|
+
[](https://developer.taptap.cn/v3/cli)
|
|
6
|
+
[](https://developer.taptap.cn/v3/cli)
|
|
7
|
+
|
|
8
|
+
[中文版](./README.zh.md) | [English](./README.md)
|
|
9
|
+
|
|
10
|
+
The official TapTap CLI tool, maintained by the [TapTap](https://github.com/taptap) team — built for humans and AI Agents. Covers core business domains including identity and games, game creation, app profiles, release qualifications, review and release, package management, dashboard statistics, test plans, game assets, and more, with 50+ business tools and 10 AI Agent [Skills](./skills/).
|
|
11
|
+
|
|
12
|
+
[Install](#installation--quick-start) · [AI Agent Skills](#agent-skills) · [Auth](#authentication) · [Commands](#command-system) · [Advanced](#advanced-usage) · [Security](#security--risk-warnings-read-before-use) · [Contributing](#contributing)
|
|
13
|
+
|
|
14
|
+
## Why taptap-cli?
|
|
15
|
+
|
|
16
|
+
- **Agent-Native Design** — Includes all ten Skills out of the box, compatible with Claude Code, Codex, Cursor, and other popular AI tools
|
|
17
|
+
- **Wide Coverage** — 9 core business workflows, 50+ business tools, and 10 AI Agent [Skills](./skills/)
|
|
18
|
+
- **AI-Friendly & Optimized** — Every command is tested with real Agents, featuring concise parameters, smart defaults, and structured output to maximize Agent call success rates
|
|
19
|
+
- **Get Started Fast** — One-command installation and interactive link authorization, from install to the first TapTap operation in just 3 steps
|
|
20
|
+
- **Secure & Controllable** — High-risk actions require confirmation, changes can be previewed before execution, and credentials stay on the local machine
|
|
21
|
+
- **Clear Command Model** — Use shortcuts for common tasks, service commands for precise operations, and `schema` to check current parameters
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
| Category | Capabilities |
|
|
26
|
+
| ------------- | -------------------------------------------- |
|
|
27
|
+
| 👤 Identity & Games | Check login status, find developer accounts and games, resolve `developerId` and `appId` |
|
|
28
|
+
| 🎮 Game Creation | Create game drafts; configure publisher, title, genre, and package direction |
|
|
29
|
+
| 📝 App Profile | Analyze profile gaps; read and update game profiles and primary packages |
|
|
30
|
+
| ✅ Release Qualifications | Identify license, filing, privacy, anti-addiction, and AI/IP gaps; manage non-sensitive materials and incremental reviews |
|
|
31
|
+
| 🚀 Review & Release | Submit or withdraw review, schedule or publish releases, manage drafts and version history |
|
|
32
|
+
| 📦 Package Management | Upload and manage APK, Windows, and H5 packages; inspect package status and self-test entry points |
|
|
33
|
+
| 📊 Dashboard Stats | Query downloads, views, impressions, conversion, reservations, orders, ratings, follows, and favorites |
|
|
34
|
+
| 🧪 Test Plans | Create and manage CBT/OBT plans, recruitment, qualifications, test users, and activation codes |
|
|
35
|
+
| 🗂️ Game Assets | Upload images and videos, search and ingest game assets, scan local folders or archives |
|
|
36
|
+
|
|
37
|
+
## Installation & Quick Start
|
|
38
|
+
|
|
39
|
+
### Requirements
|
|
40
|
+
|
|
41
|
+
Before you start, make sure you have:
|
|
42
|
+
|
|
43
|
+
- Node.js `v16`+ (`npm`/`npx`) for the npm-distributed CLI and Skills
|
|
44
|
+
- Go `v1.26.5+` and Python 3 for building from source
|
|
45
|
+
- A registered TapTap developer account with the required authentication completed
|
|
46
|
+
|
|
47
|
+
### Quick Start (Human Users)
|
|
48
|
+
|
|
49
|
+
> **Note for AI assistants:** If you are an AI Agent helping the user with installation, jump directly to [Quick Start (AI Agent)](#quick-start-ai-agent), which contains all the steps you need to complete.
|
|
50
|
+
|
|
51
|
+
#### Install
|
|
52
|
+
|
|
53
|
+
Choose **one** of the following methods:
|
|
54
|
+
|
|
55
|
+
**Option 1 - From npm:**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm i -g @taptap/cli
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Option 2 - From source:**
|
|
62
|
+
|
|
63
|
+
Requires Go `v1.26.5+` and Python 3.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
git clone https://github.com/taptap/cli.git
|
|
67
|
+
cd cli
|
|
68
|
+
make install
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
From the target project root, install the Skills with:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npx skills add taptap/cli -a universal
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
To additionally synchronize globally installed official Skills:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
taptap-cli update
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### Configure & Use
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# 1. Start link-based login (one-time user confirmation)
|
|
87
|
+
taptap-cli auth login
|
|
88
|
+
|
|
89
|
+
# 2. Start using the CLI
|
|
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
|
+
## Quick Start (AI Agent)
|
|
96
|
+
|
|
97
|
+
> The following steps are for AI Agents. The user completes authorization by opening the returned login link.
|
|
98
|
+
|
|
99
|
+
**Step 1 - Install**
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
npm i -g @taptap/cli
|
|
103
|
+
|
|
104
|
+
npx skills add taptap/cli -a universal
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Run `npx skills add taptap/cli -a universal` from the target project root. To
|
|
108
|
+
additionally synchronize globally installed official Skills, run
|
|
109
|
+
`taptap-cli update`.
|
|
110
|
+
|
|
111
|
+
For global installation and supported agents,
|
|
112
|
+
see the [Skills CLI guide](https://github.com/vercel-labs/skills).
|
|
113
|
+
|
|
114
|
+
**Step 2 - Login**
|
|
115
|
+
|
|
116
|
+
> Run the command in the background, give the returned login link to the user, and continue with the returned recovery command.
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
taptap-cli auth login --no-wait --json
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**Step 3 - Continue login**
|
|
123
|
+
|
|
124
|
+
> Immediately execute the returned recovery command in the background. It polls until authorization succeeds or the device code expires.
|
|
125
|
+
|
|
126
|
+
**Step 4 - Verify**
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
taptap-cli auth status
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Agent Skills
|
|
133
|
+
|
|
134
|
+
| Skill | Description |
|
|
135
|
+
| --------------------------------- | ------------------------------------------- |
|
|
136
|
+
| `taptap-cli` | Discover available capabilities, identify the current operating scope, choose commands, and handle output and errors (the entry point for all business Skills) |
|
|
137
|
+
| `taptap-identity` | Check login status, list developer accounts and games, and resolve developer and game IDs |
|
|
138
|
+
| `taptap-publish-game` | Create new games, preview creation, and hand off to profile, package, and test-plan workflows |
|
|
139
|
+
| `taptap-app-edit` | Maintain game profiles, update fields, submit review, publish, schedule release, reset drafts, and inspect version history |
|
|
140
|
+
| `taptap-qualification` | Identify release qualifications, fill non-sensitive materials, route sensitive input to the web console, and submit or withdraw incremental qualification reviews |
|
|
141
|
+
| `taptap-asset-library` | Search the game image asset library, find references in batches, and ingest uploaded images |
|
|
142
|
+
| `taptap-materials` | Inspect local images, videos, and packages, then route each item through the dedicated upload workflow |
|
|
143
|
+
| `taptap-package-management` | Manage APK, Windows, and H5 packages, inspect package status, and diagnose self-test QR codes |
|
|
144
|
+
| `taptap-dashboard-stats` | Query downloads, impressions, conversion, reservations, ratings, orders, and explain metric trends |
|
|
145
|
+
| `taptap-test-plan` | Manage CBT and OBT plans, recruitment settings, qualification batches, user qualifications, and activation codes |
|
|
146
|
+
|
|
147
|
+
## Authentication
|
|
148
|
+
|
|
149
|
+
| Command | Description |
|
|
150
|
+
| --------------- | -------------------------------------------------- |
|
|
151
|
+
| `auth login` | Start link-based login and save local credentials (token) |
|
|
152
|
+
| `auth logout` | Sign out and remove stored local credentials |
|
|
153
|
+
| `auth status` | Show the current service URL, login status, and config path |
|
|
154
|
+
| `auth login --no-wait --json` | Start non-blocking link-based login |
|
|
155
|
+
| `auth login --device-code <code>` | Resume the login flow after user authorization and save the local credential |
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
# Link-based login
|
|
159
|
+
taptap-cli auth login
|
|
160
|
+
|
|
161
|
+
# Agent mode: get a login link
|
|
162
|
+
taptap-cli auth login --no-wait --json
|
|
163
|
+
|
|
164
|
+
# Show login status and the current service URL
|
|
165
|
+
taptap-cli auth status
|
|
166
|
+
|
|
167
|
+
# Sign out and clear local credentials
|
|
168
|
+
taptap-cli auth logout
|
|
169
|
+
|
|
170
|
+
# Update an npm/pnpm-installed CLI
|
|
171
|
+
taptap-cli update
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
For source-installed binaries, rebuild and reinstall from source or download a
|
|
175
|
+
release binary instead.
|
|
176
|
+
|
|
177
|
+
## Command System
|
|
178
|
+
|
|
179
|
+
The CLI provides workflow shortcuts for common tasks and service commands for
|
|
180
|
+
precise operations. Use `schema` to check the parameters supported by the
|
|
181
|
+
current version.
|
|
182
|
+
|
|
183
|
+
### 1. Canonical Commands
|
|
184
|
+
|
|
185
|
+
Use service commands when you need precise control. Write operations support
|
|
186
|
+
`--dry-run` previews.
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
taptap-cli package-management get-package-overview --dev-id <developer-id> --app-id <app-id>
|
|
190
|
+
taptap-cli dashboard-stats get-dashboard-stats --dev-id <developer-id> --app-id <app-id> --data '{"metric":"download"}'
|
|
191
|
+
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
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Run `taptap-cli aliases` only when maintaining automation that still uses the compatibility aliases.
|
|
195
|
+
|
|
196
|
+
### 2. Service Commands
|
|
197
|
+
|
|
198
|
+
Service commands are kept in sync with TapTap business capabilities.
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
taptap-cli app get-app-module --dev-id <developer-id> --app-id <app-id> --data '{"module_id":"basic-info"}'
|
|
202
|
+
taptap-cli app save-changes --dev-id <developer-id> --app-id <app-id> --data @changes.json --idempotency-key <key> --dry-run
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 3. Schema Discovery
|
|
206
|
+
|
|
207
|
+
Inspect all services, one service, or one method before constructing a request.
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
taptap-cli schema
|
|
211
|
+
taptap-cli schema app
|
|
212
|
+
taptap-cli schema app get-app-module
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Advanced Usage
|
|
216
|
+
|
|
217
|
+
### Output Formats
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
--format json # JSON success/error envelopes (default; omit in normal commands)
|
|
221
|
+
--format pretty # Human-friendly summary
|
|
222
|
+
--format table # Table output
|
|
223
|
+
--format ndjson # One JSON record per line
|
|
224
|
+
--format csv # CSV output
|
|
225
|
+
--fields a,b # Keep selected output fields
|
|
226
|
+
--jq '<expr>' # Filter or transform output with jq 1.8 syntax
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Use the built-in commands for resource discovery, business operations, and
|
|
230
|
+
uploads:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
taptap-cli schema
|
|
234
|
+
taptap-cli developer +list
|
|
235
|
+
taptap-cli app +list --dev-id <developer-id> --page-all
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
Do not construct or call backend API paths manually.
|
|
239
|
+
|
|
240
|
+
### JSON Output Contract
|
|
241
|
+
|
|
242
|
+
The default JSON output uses distinct stable envelopes for success and errors.
|
|
243
|
+
|
|
244
|
+
Success goes to **stdout**, exit code `0`:
|
|
245
|
+
|
|
246
|
+
```json
|
|
247
|
+
{ "ok": true, "data": { "result": "..." } }
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Errors go to **stderr**, with a non-zero exit code:
|
|
251
|
+
|
|
252
|
+
```json
|
|
253
|
+
{ "ok": false, "error": { "type": "validation", "subtype": "invalid_argument", "message": "...", "param": "--dev-id" } }
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
To check whether a command succeeded, test `ok == true` (or the exit code) - **do not** use `code == 0` from a business result. Successful business data lives under `data`; failure classification lives under `error.type` and `error.subtype`. See [errs/ERROR_CONTRACT.md](errs/ERROR_CONTRACT.md) for the complete error taxonomy.
|
|
257
|
+
|
|
258
|
+
### Pagination
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
--page-all # Fetch all pages automatically
|
|
262
|
+
--page-limit 5 # Fetch at most 5 pages
|
|
263
|
+
--page-delay 500 # Wait 500 ms between page requests
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Dry Run
|
|
267
|
+
|
|
268
|
+
For commands that may have side effects, preview the request with `--dry-run` first:
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
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
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Schema Introspection
|
|
275
|
+
|
|
276
|
+
Use `schema` to inspect command parameters, required fields, and supported
|
|
277
|
+
values:
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
taptap-cli schema
|
|
281
|
+
taptap-cli schema app
|
|
282
|
+
taptap-cli schema app get-app-module
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Security & Risk Warnings (Read Before Use)
|
|
286
|
+
|
|
287
|
+
This tool can be invoked by AI Agents to automate the TapTap operations described above and carries inherent risks, including model-generated mistakes, unexpected execution results, and malicious content influencing model decisions. After login authorization, the AI Agent acts as you under your developer account and within its granted permissions. This may expose sensitive data, cause unauthorized operations, or lead to other high-risk outcomes. Use the tool with care.
|
|
288
|
+
|
|
289
|
+
To reduce these risks, the CLI enables default safeguards at multiple layers. These protections do not eliminate the risks. We strongly recommend that you do not bypass any default safety control; relaxing them significantly increases the risk and leaves the consequences with you.
|
|
290
|
+
|
|
291
|
+
We recommend validating AI Agent workflows against a test game or non-production profile first. Before any production operation, re-check the developer ID (`developerId`), game ID (`appId`), version status, package ID, and the content about to be written. Do not put credentials, browser session data, keys, or unpublished materials in command logs, automation logs, or AI Agent conversations.
|
|
292
|
+
|
|
293
|
+
Please make sure you understand all usage risks. By using this tool, you voluntarily assume all related responsibilities.
|
|
294
|
+
|
|
295
|
+
## Contributing
|
|
296
|
+
|
|
297
|
+
Contributions are welcome from team members with repository access! If you find a bug or have feature suggestions, please submit an [Issue](https://github.com/taptap/cli/issues) or [Pull Request](https://github.com/taptap/cli/pulls).
|
|
298
|
+
|
|
299
|
+
For major changes, we recommend discussing them with us first via an Issue.
|
|
300
|
+
|
|
301
|
+
Before opening a PR, see the [testing guide](./docs/testing.md) and [release contract audit](./docs/release-contract.md) for the local build, test, and release checklist used by contributors and AI Agents.
|