@ttmg/cli 0.4.6-vibe-beta.19 → 0.4.6-vibe-beta.20

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttmg/cli",
3
- "version": "0.4.6-vibe-beta.19",
3
+ "version": "0.4.6-vibe-beta.20",
4
4
  "description": "TikTok Mini Game Command Line Tool",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -495,7 +495,7 @@ async function main() {
495
495
  const readyPage = await (await fetch(output.at(-1).pageUrl)).text();
496
496
  assert.match(readyPage, /Progress QR/);
497
497
  assert.match(readyPage, /Game preview QR/);
498
- assert.ok(readyPage.indexOf('alt="Game preview QR"') < readyPage.indexOf('alt="Progress QR"'));
498
+ assert.ok(readyPage.indexOf('alt="Progress QR"') < readyPage.indexOf('alt="Game preview QR"'));
499
499
  assert.match(readyPage, /data-phase="preview"/);
500
500
  assert.equal(output.filter(e => e.terminal).length, 1);
501
501
  assert.equal(webPolls, 7, 'Keep polling the same task until preview URL is available');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttmg/cli",
3
- "version": "0.4.6-vibe-beta.19",
3
+ "version": "0.4.6-vibe-beta.20",
4
4
  "description": "TikTok Mini Game Command Line Tool",
5
5
  "license": "ISC",
6
6
  "bin": {
package/vibe-upload.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  `ttmg upload --vibe` 将本地小游戏上传到 TikTok Mini Games。用户提供游戏标题和头像,在手机 TikTok 扫码授权后,CLI 自动完成头像、应用资料和代码包上传。Skill 负责准备工程、调用命令和读取结果;CLI 负责素材校验、打包、授权轮询及上传。
4
4
 
5
- `0.4.6-vibe-beta.19` 支持手机授权、自动上传、同任务轮询和双二维码预览。预览就绪后优先展示「扫码预览」,保留原码用于「查看进度」。页面按浏览器语言显示中英文,两个二维码的图案尺寸和白边一致。当前为 PPE 测试链路,上传完成不代表审核通过或正式发布。
5
+ `0.4.6-vibe-beta.20` 支持手机授权、自动上传、同任务轮询和双二维码预览。左侧保留原码用于「查看进度」,右侧从加载态切换为「扫码预览」。页面按浏览器语言显示中英文,两个二维码的图案尺寸和白边一致,头像与整块应用信息垂直居中。当前为 PPE 测试链路,上传完成不代表审核通过或正式发布。
6
6
 
7
- Version `0.4.6-vibe-beta.19` supports phone authorization, automatic upload, same-task polling and two QR codes: Preview first, then Check progress. Page language follows the browser, and both QR codes use equal visible dimensions. This is a PPE trial; upload success is not review approval or production release.
7
+ Version `0.4.6-vibe-beta.20` supports phone authorization, automatic upload, same-task polling and two QR codes: Check progress on the left, and the preview loader or QR on the right. Page language follows the browser, both QR codes use equal visible dimensions, and the icon is vertically centered beside the app details. This is a PPE trial; upload success is not review approval or production release.
8
8
 
9
9
  ## Quick Start
10
10
 
@@ -24,7 +24,7 @@ ttmg upload --vibe --dir ./game --title "星环守卫" --icon ./avatar.png --for
24
24
 
25
25
  3. CLI 自动上传头像、应用资料和代码包,页面展示进度与结果。
26
26
 
27
- 4. 上传成功后短暂显示成功提示,随后展示预览加载态并保留原二维码;CLI 持续查询同一任务,兼容状态 9(等待提交代码审核)。拿到有效 `previewUrl` 后,预览码优先显示,原码保留为「查看进度」,无需重复上传。
27
+ 4. 上传成功后短暂显示成功提示,随后左侧保留原二维码、右侧展示预览加载态;CLI 持续查询同一任务,兼容状态 9(等待提交代码审核)。拿到有效 `previewUrl` 后,右侧加载态切换为预览码,左侧原码保留为「查看进度」,无需重复上传。
28
28
 
29
29
  5. Skill 收到 `terminal=true`、`status=uploaded`、`uploaded=true`、`previewReady=true`、`simulation=false` 且退出码为 0 后,提示用户扫码预览。主码的 `qrPurpose` 为 `game_preview` 或 `tool_preview`。
30
30
 
@@ -38,10 +38,10 @@ ttmg upload --vibe --dir ./game --title "星环守卫" --icon ./avatar.png --for
38
38
 
39
39
  在独立 Tool 工程目录调用:`ttmg upload --vibe --minis-type MINI_TOOL --dir ./tool --title "Focus Timer" --icon ./icon.png --format ndjson`。工程身份首次创建后固定类型,不要复用小游戏的 `.ttmg/vibe-project.json`。
40
40
 
41
- 安装后确认版本为 `0.4.6-vibe-beta.19`。能力声明中 `authorizationMode=qr`、`previewQr=true`,预览主码用途为 `game_preview`(Tool 为 `tool_preview`),原码仍保留。支持 Node.js 20.19.1–20.x 或 22 及以上版本。
41
+ 安装后确认版本为 `0.4.6-vibe-beta.20`。能力声明中 `authorizationMode=qr`、`previewQr=true`,预览主码用途为 `game_preview`(Tool 为 `tool_preview`),原码仍保留。支持 Node.js 20.19.1–20.x 或 22 及以上版本。
42
42
 
43
43
  ```sh
44
- npm install -g @ttmg/cli@0.4.6-vibe-beta.19
44
+ npm install -g @ttmg/cli@0.4.6-vibe-beta.20
45
45
  ttmg --version
46
46
  ttmg capabilities --format json
47
47
  ```