@ttmg/cli 0.4.8 → 0.4.9-alpha.0
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/CHANGELOG.md +0 -10
- package/README.md +7 -42
- package/dist/index.js +1446 -1698
- package/dist/index.js.map +1 -1
- package/dist/package.json +5 -4
- package/dist/public/assets/{Card-hIN4OSH3.js → Card-BC5ydRHh.js} +1 -1
- package/dist/public/assets/Detail-DPCqXgFa.js +1 -0
- package/dist/public/assets/Detail-DPCqXgFa.js.br +0 -0
- package/dist/public/assets/MonetizationMode-BGXVb7wG.js +1 -0
- package/dist/public/assets/MonetizationModeSummary-LeYQ02Tv.js +1 -0
- package/dist/public/assets/{SectionHeader-CnHCh7yA.js → SectionHeader-BQDU_6TX.js} +1 -1
- package/dist/public/assets/{baseForm-t_NrFk0x.js → baseForm-dqhahTXM.js} +2 -2
- package/dist/public/assets/baseForm-dqhahTXM.js.br +0 -0
- package/dist/public/assets/{compass-CeFvwCmG.js → compass-DfWJoWl3.js} +1 -1
- package/dist/public/assets/index-3FxbJxwu.css +1 -0
- package/dist/public/assets/{index-CIX6OSmR.js → index-3IxvKwO3.js} +1 -1
- package/dist/public/assets/index-AtMMzkp0.css +1 -0
- package/dist/public/assets/{index-CHfngLxh.js → index-BAmVtXgk.js} +1 -1
- package/dist/public/assets/index-BAmVtXgk.js.br +0 -0
- package/dist/public/assets/index-BBHaV7vS.js +1 -0
- package/dist/public/assets/index-BIkx7MZA.js +1 -0
- package/dist/public/assets/index-BIkx7MZA.js.br +0 -0
- package/dist/public/assets/index-Ba7wrRXG.js +1 -0
- package/dist/public/assets/index-Ba7wrRXG.js.br +0 -0
- package/dist/public/assets/index-BdixrK5I.css +1 -0
- package/dist/public/assets/index-BdixrK5I.css.br +0 -0
- package/dist/public/assets/{index-B0tBBQNM.js → index-BhTApVX6.js} +1 -1
- package/dist/public/assets/{index-yEl03rPV.js → index-BkbwTqmH.js} +1 -1
- package/dist/public/assets/{index-vJ1StYwi.js → index-BmS73Skw.js} +1 -1
- package/dist/public/assets/{index-BHIhYKfz.css → index-BoFbvk-8.css} +1 -1
- package/dist/public/assets/index-BoFbvk-8.css.br +0 -0
- package/dist/public/assets/{index-D88nGIrd.js → index-BqslPc39.js} +1 -1
- package/dist/public/assets/index-C0-lsmcf.js +1 -0
- package/dist/public/assets/index-C947zURI.js +1 -0
- package/dist/public/assets/index-C947zURI.js.br +0 -0
- package/dist/public/assets/index-CC4YJwDI.js +1 -0
- package/dist/public/assets/index-CDxeVVlI.js +1 -0
- package/dist/public/assets/index-CF4RJ3VA.js +1 -0
- package/dist/public/assets/index-CSOt669g.js +1 -0
- package/dist/public/assets/{index-n-a8bnJy.js → index-CbUw1wBM.js} +1 -1
- package/dist/public/assets/index-CbUw1wBM.js.br +0 -0
- package/dist/public/assets/index-Czg0RYGI.css +1 -0
- package/dist/public/assets/index-Czg0RYGI.css.br +0 -0
- package/dist/public/assets/{index-CCYAfkkd.css → index-DKxf26_O.css} +1 -1
- package/dist/public/assets/index-DRKEUX85.js +1 -0
- package/dist/public/assets/index-DRKEUX85.js.br +0 -0
- package/dist/public/assets/{index-BbAB3ylH.js → index-DS-Ah-pZ.js} +1 -1
- package/dist/public/assets/index-DcpswdR4.js +21 -0
- package/dist/public/assets/index-DcpswdR4.js.br +0 -0
- package/dist/public/assets/index-DfVst8q1.css +1 -0
- package/dist/public/assets/index-DpCdlpoj.js +1 -0
- package/dist/public/assets/index-FKgvaTum.js +1 -0
- package/dist/public/assets/index-FKgvaTum.js.br +0 -0
- package/dist/public/assets/index-HqjZ5P-l.css +1 -0
- package/dist/public/assets/index-WyNc-BTG.css +1 -0
- package/dist/public/assets/index-WyNc-BTG.css.br +0 -0
- package/dist/public/assets/index-_IVh5FZw.js +1 -0
- package/dist/public/assets/{index-DJgKNXSG.css → index-docEsXsM.css} +1 -1
- package/dist/public/assets/index-docEsXsM.css.br +0 -0
- package/dist/public/assets/index-ejkbZVVo.js +1 -0
- package/dist/public/assets/index-faRHENEQ.css +1 -0
- package/dist/public/assets/index-wGfWSqnF.js +1 -0
- package/dist/public/assets/index-xPCWyPvk.js +2 -0
- package/dist/public/assets/layers-kzl3dc3j.js +1 -0
- package/dist/public/assets/{list-checks-DYOelRzb.js → list-checks-Ce0l0Ylc.js} +1 -1
- package/dist/public/assets/{sparkles-BDWC6uCQ.js → sparkles-Dnyv9lnL.js} +1 -1
- package/dist/public/assets/{triangle-alert-DHzwEo5k.js → triangle-alert-BaPLcm_f.js} +1 -1
- package/dist/public/assets/{zap-ByAYRk2l.js → zap-DyzOTCOX.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/scripts/dev-remote-resources-smoke.js +1 -2
- package/dist/scripts/verify-agent-contract.js +8 -13
- package/dist/scripts/worker.js +1 -0
- package/package.json +5 -4
- package/dist/public/assets/Detail-ySFmflhQ.js +0 -1
- package/dist/public/assets/Detail-ySFmflhQ.js.br +0 -0
- package/dist/public/assets/MonetizationMode-Cu52igtn.js +0 -1
- package/dist/public/assets/MonetizationModeSummary-OwjWh0LR.js +0 -1
- package/dist/public/assets/baseForm-t_NrFk0x.js.br +0 -0
- package/dist/public/assets/chevron-right-GDVyTyUp.js +0 -1
- package/dist/public/assets/circle-check-CoS-kyHi.js +0 -1
- package/dist/public/assets/index-B5YK1BrP.css +0 -1
- package/dist/public/assets/index-B5YK1BrP.css.br +0 -0
- package/dist/public/assets/index-BHIhYKfz.css.br +0 -0
- package/dist/public/assets/index-BHg_s4I9.js +0 -1
- package/dist/public/assets/index-C6lW7Zjz.js +0 -1
- package/dist/public/assets/index-C9BUllr0.js +0 -1
- package/dist/public/assets/index-C9BUllr0.js.br +0 -0
- package/dist/public/assets/index-C9h2if-G.js +0 -1
- package/dist/public/assets/index-CAlbYpul.js +0 -1
- package/dist/public/assets/index-CAlbYpul.js.br +0 -0
- package/dist/public/assets/index-CEbZ4IEL.js +0 -1
- package/dist/public/assets/index-CEmEOml-.css +0 -1
- package/dist/public/assets/index-CHfngLxh.js.br +0 -0
- package/dist/public/assets/index-CHvRzJfA.js +0 -1
- package/dist/public/assets/index-CN48pR5h.css +0 -1
- package/dist/public/assets/index-CTVCQm_e.js +0 -1
- package/dist/public/assets/index-CZP2ErD4.js +0 -1
- package/dist/public/assets/index-CaNXgeLN.css +0 -1
- package/dist/public/assets/index-Cc4ScSCv.js +0 -1
- package/dist/public/assets/index-CeDioqbo.js +0 -1
- package/dist/public/assets/index-D0ap_iEL.js +0 -1
- package/dist/public/assets/index-DA4Kkz7E.js +0 -1
- package/dist/public/assets/index-DHe58AF2.css +0 -1
- package/dist/public/assets/index-DHe58AF2.css.br +0 -0
- package/dist/public/assets/index-DJgKNXSG.css.br +0 -0
- package/dist/public/assets/index-DQC7-8WJ.js +0 -1
- package/dist/public/assets/index-Dju1-uxC.js +0 -1
- package/dist/public/assets/index-Dju1-uxC.js.br +0 -0
- package/dist/public/assets/index-DusVz4qh.css +0 -1
- package/dist/public/assets/index-YJB7hrl4.js +0 -21
- package/dist/public/assets/index-YJB7hrl4.js.br +0 -0
- package/dist/public/assets/index-_E01H4Eg.js +0 -1
- package/dist/public/assets/index-_E01H4Eg.js.br +0 -0
- package/dist/public/assets/index-kykURETO.css +0 -1
- package/dist/public/assets/index-kykURETO.css.br +0 -0
- package/dist/public/assets/index-n-a8bnJy.js.br +0 -0
- package/dist/public/assets/index-zyypH9vs.css +0 -1
- package/dist/public/assets/info-CXVvw540.js +0 -1
- package/dist/public/assets/integrationMetadata-DJN4qhTl.js +0 -1
- package/dist/public/assets/layers-A_WDqv_u.js +0 -1
- package/dist/public/assets/package-KM_YN61y.js +0 -1
- package/dist/public/assets/platformCapabilities-X9JVc715.js +0 -1
- package/dist/public/assets/refresh-cw-By5amaxb.js +0 -1
- package/dist/public/assets/smartphone-DFFbplpM.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
## 0.4.8 · 2026-11-10
|
|
2
|
-
|
|
3
|
-
- Clarify upload progress and retry preview for an existing version without creating another upload. Expired preview pages provide the command to reopen the same version.
|
|
4
|
-
- Add a standalone Local pre-check page before Upload / Preview. Preserve the report across navigation and invalidate it when build files change. The page focuses on check results; upload remains a separate sidebar destination.
|
|
5
|
-
- Show one manual-verification notice for Unity platform capabilities while retaining package/configuration checks. Other engines show requirements separately from detected calls and guide links. Basic SDK APIs such as networking and subpackages are excluded from the integration inventory.
|
|
6
|
-
- DevTool uploads now check and ZIP the same isolated package snapshot. Invalid configuration and applicable package-size limits prevent upload; ordinary CLI check and upload defaults retain their existing thresholds.
|
|
7
|
-
- Replace the mandatory API pass/fail section with a platform capability inventory shared by DevTool and `ttmg check`. Report detected, undetected and uncheckable calls, source locations and integration guides. Static matches do not verify behavior on a phone.
|
|
8
|
-
- Align integration guidance with current requirements: home-screen shortcut and sidebar revisit are required for every game; login is required for IAP and player-identity features. IAA is the default monetization mode.
|
|
9
|
-
- Keep capability hints separate from package/configuration diagnostics and upload blocking. Scan platform integration calls for login, authorization, payments, ads, revisit and sharing; exclude basic SDK APIs, comments and strings from the inventory.
|
|
10
|
-
|
|
11
1
|
## 0.4.7 · 2026-11-03
|
|
12
2
|
|
|
13
3
|
- Add Japanese and Korean to DevTool, the CLI, and QR-code preview pages. Switching languages preserves the current page and debugging state.
|
package/README.md
CHANGED
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
### @ttmg/cli
|
|
2
2
|
|
|
3
|
-
Develop, debug, check and upload TikTok Mini Games with the DevTool command package.
|
|
4
|
-
|
|
5
|
-
使用 DevTool 命令包开发、调试、检查和上传 TikTok 小游戏。
|
|
6
|
-
|
|
7
|
-
#### Quick start / 快速开始
|
|
8
|
-
|
|
9
|
-
Install the published CLI, log in, then start DevTool from the Native game build directory:
|
|
10
|
-
|
|
11
|
-
安装已发布的 CLI,在 Native 游戏构建目录中登录并启动 DevTool:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g @ttmg/cli
|
|
15
|
-
ttmg --version
|
|
16
|
-
ttmg login
|
|
17
|
-
ttmg dev --client-key <CLIENT_KEY>
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
In DevTool, use **Local pre-check** to inspect the build, then **Upload & preview** to create a platform version and preview it. Static checks do not replace testing the game on a device. To use the terminal instead, run `ttmg check` and then `ttmg upload --check --preview --client-key <CLIENT_KEY>`.
|
|
21
|
-
|
|
22
|
-
在 DevTool 中先用 **本地预检** 检查构建产物,再通过 **上传预览** 创建平台版本并扫码预览。静态检查不能替代真机验证。也可以在终端执行 `ttmg check`,再执行 `ttmg upload --check --preview --client-key <CLIENT_KEY>`。
|
|
23
|
-
|
|
24
|
-
To reopen an existing version, use `ttmg preview --client-key <CLIENT_KEY> --version-id <VERSION_ID> --wait --serve-preview-page`; this does not upload again. For command options, use `ttmg <command> --help`. Vibe QR upload is a separate opt-in PPE trial; see the [Vibe guide](vibe-upload.md).
|
|
25
|
-
|
|
26
|
-
重新打开已有版本时,执行 `ttmg preview --client-key <CLIENT_KEY> --version-id <VERSION_ID> --wait --serve-preview-page`,无需重复上传。命令参数可通过 `ttmg <command> --help` 查看。Vibe 扫码上传是单独启用的 PPE 试用,详见 [Vibe 接入说明](vibe-upload.md)。
|
|
27
|
-
|
|
28
|
-
#### Local pre-check / 本地预检
|
|
29
|
-
|
|
30
|
-
DevTool has a separate **Local pre-check** page for the current Native build output. Package/configuration diagnostics, capability requirements and detected calls are shown separately. Unity uses a manual-verification notice with integration and verification links. The notice does not block upload. Reports survive navigation and are marked stale after file changes. Open **Upload & preview** from the sidebar to upload; DevTool checks the exact upload snapshot and blocks invalid configuration or applicable package-size limits before sending it to the platform. Ordinary CLI check and upload defaults retain their existing thresholds.
|
|
31
|
-
|
|
32
|
-
DevTool 的 **本地预检** 独立检查当前 Native 构建产物,将包与配置问题、能力接入要求和调用检测分开展示。Unity 展示手动验证提示和指引,该提示不单独阻断上传。报告在页面切换时保留,文件变化后标为旧结果。上传从侧栏 **上传预览** 进入;DevTool 上传时复检实际上传快照,配置无效或适用包体超限时不上传。普通 CLI 检查和上传的默认阈值保持兼容。
|
|
33
|
-
|
|
34
3
|
#### Bundled Skills / 内置 Skills
|
|
35
4
|
|
|
36
5
|
`ttmg skills list --format json` lists the Skills shipped with the installed CLI. `ttmg skills install --target <skills-directory>` copies them to an explicitly selected Agent Skills directory. The initial bundle contains no game-development Skills; the command reports an empty bundle until Skills are added. Install is opt-in, preserves identical copies, and reports conflicts instead of overwriting changed files. Selecting a directory and reloading the Agent do not by themselves prove automatic discovery. See [Skills](skills/README.md).
|
|
@@ -53,9 +22,9 @@ Version `0.4.7` includes CDN resource sizing, debug-file isolation, structured c
|
|
|
53
22
|
|
|
54
23
|
The default operation deadline is 30 minutes, configurable up to 60 minutes with `--timeout <seconds>`. The page stays available during the operation and for 30 minutes after the CLI finishes. Failures preserve the upload receipt; do not upload again automatically. Page language follows the browser.
|
|
55
24
|
|
|
56
|
-
|
|
25
|
+
Quick Start:`ttmg upload --vibe`。Skill 传入游戏标题、用户头像与 Native 工程或 ZIP;详细步骤见 [Vibe 接入说明](vibe-upload.md)。当前为 PPE 测试链路,上传成功不代表审核通过或正式发布。
|
|
57
26
|
|
|
58
|
-
|
|
27
|
+
Quick Start: `ttmg upload --vibe`. Supply the game title, user-provided icon, and Native project or ZIP through the Skill. See the [Vibe guide](vibe-upload.md). This is a PPE trial; upload success does not mean review approval or production release.
|
|
59
28
|
|
|
60
29
|
Tool 试用使用 `--minis-type MINI_TOOL`,仅支持 Native 包、效率办公分类、US 和 SDK 1.0.0。Tool 使用独立工程目录,默认游戏流程保持 `MINI_GAME`。
|
|
61
30
|
|
|
@@ -68,9 +37,9 @@ For the Tool trial, use `--minis-type MINI_TOOL` in a separate project directory
|
|
|
68
37
|
|
|
69
38
|
Vibe 版本支持手机扫码授权上传、可选 `--description`、分类查询及 `--category / --subcategory`。默认描述为 `Discover the fun of TikTok Mini Games.`,默认分类为 Other/Other。完整流程见 [Quick Start](vibe-upload.md)。
|
|
70
39
|
|
|
71
|
-
|
|
40
|
+
0.4.7 发布准备期间使用本地候选包;正式发布后可按固定版本安装:
|
|
72
41
|
|
|
73
|
-
|
|
42
|
+
During release preparation, install the local candidate tarball. After publication, use the exact version:
|
|
74
43
|
|
|
75
44
|
```bash
|
|
76
45
|
npm install -g @ttmg/cli@0.4.7
|
|
@@ -983,9 +952,9 @@ fails, the platform upload remains `ready` and `previewPage.status` is `failed`,
|
|
|
983
952
|
so callers must not retry the upload just to recreate the page.
|
|
984
953
|
NDJSON 状态依次为 `precheck`、`packaging`、`uploading`、`processing`,最终进入 `ready` 或 `failed`。平台处理阶段的 `platformStatus` 使用 `waiting_for_asset`、`pending`、`processing`、`success`、`failed` 等可读值;可选的 `platformStatusRaw` 仅保留平台原始枚举用于排障。成功结果包含 `previewUrl`、与其一致的 `qrPayload`、平台版本地址和 `platformWrite: true`。
|
|
985
954
|
增加 `--serve-preview-page` 后,每次成功上传都会返回新的 `previewPage.url`。响应式本地页面通过两个二维码和直接链接依次承接测试账号授权与预览启动;HTML 和二维码只驻留内存。同一个 Client Key 反复上传时复用同一个 localhost 服务,新地址会立即替换旧页面并重新计算 1 小时有效期;到期后清除内存中的二维码,原地址继续显示 1 小时的重新执行提示,随后服务退出。不同 Client Key 使用独立服务。默认文本模式会打印浏览器展示信息并自动打开页面,`--no-open` 可关闭自动打开;JSON 和 NDJSON 模式不会调用系统浏览器,而是返回 `preferredAction: "open_url"` 和链接降级方式供 Agent 执行。系统临时目录只保存最小进程协同信息,不写入页面资源或项目内容。如果本地页面失败,平台上传仍保持 `ready`,并通过 `previewPage.status=failed` 返回局部失败;调用方不能为重新生成页面而重复上传。
|
|
986
|
-
# Workflow updates
|
|
955
|
+
# Workflow updates (unreleased)
|
|
987
956
|
|
|
988
|
-
|
|
957
|
+
DevTool's launch settings page can import/export `ttmg.launch.json`. It uses the same schema and validation as `ttmg dev --mode client-preview --launch-config ttmg.launch.json`. Scene, independent package, query and developer settings are included; credentials are excluded. Import previews the settings; save applies them. Validate independent packages against the current project. This shares launch settings, not the global account or Client Key defaults.
|
|
989
958
|
|
|
990
959
|
`ttmg init` does not create Native projects. It now reports this explicitly and exits 1. Start from an existing Native package.
|
|
991
960
|
|
|
@@ -998,11 +967,7 @@ ttmg upload --dir ./game --client-key YOUR_CLIENT_KEY --check --preview --format
|
|
|
998
967
|
|
|
999
968
|
```
|
|
1000
969
|
|
|
1001
|
-
The integration checklist shares metadata and translations with the page.
|
|
1002
|
-
|
|
1003
|
-
Starting in 0.4.8, `ttmg check --format json` includes a separate `platformCapabilities` array. DevTool shows the same results under **Local pre-check → Platform capability check**, with links back to capability integration. Basic SDK APIs such as networking and subpackages are excluded from this inventory. Each row reports `detected`, `not_detected`, or `not_checked`, the business requirement, matched API calls and relative file locations, the integration guide, and `verification: not_evaluated`. This replaces the old generic API warnings in the CLI diagnostics. Package/configuration diagnostics and `--fail-on` continue to determine the command's exit status; capability hints do not block uploads.
|
|
1004
|
-
|
|
1005
|
-
The scanner parses JavaScript call shapes such as `tt.login()`, `tt['pay']()` and `TTMinis.game.addShortcut()`; comments and string literals are not evidence. It does not establish reachability, backend configuration or device behavior. Aliases and dynamically selected APIs may be missed. Unity binary calls are `not_checked`; unreadable, oversized or unparseable files make absent matches `not_checked` with `scan_incomplete`. Neither a static match nor a successful package check proves that a required feature works on a phone. Revisit mission rewards are optional and are not treated as required entry APIs.
|
|
970
|
+
The integration checklist shares metadata and translations with the page. Requirement labels describe business integration guidance (`requirementScope: business_guidance`), not verified platform upload or review rules (`platformRequirementsChecked: false`). `conditional` means the capability depends on the game's needs; this includes IAA business login and revisit features. Platform Login API upload checks are separate and are not waived by the checklist. Static detection does not prove login, ads or payments work. `verification: not_evaluated` remains until tested separately.
|
|
1006
971
|
|
|
1007
972
|
Default upload's precheck covers local login, application access and the source directory; it does not run code checks. `--check` opts into the existing static code checks on an isolated package snapshot; errors block version creation, warnings remain visible. The check report and `packageArtifact.sha256` identify the bytes associated with `versionId`. The ZIP hash is not proof that a device ran the game. `--check` is not supported by `--vibe`. Checked upload rejects symlinks and special files; original source files are not modified. Existing version lookup still uses `ttmg preview`.
|
|
1008
973
|
### Language
|