@ttmg/cli 0.4.6-vibe-beta.17 → 0.4.6-vibe-beta.18

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  ### @ttmg/cli
2
2
 
3
- `0.4.6-vibe-beta.17` 支持上传后扫码预览:`ttmg upload --vibe` 上传完成后继续查询同一任务,收到 `preview_url` 后在原页面显示预览二维码。等待期间保持进程运行;超时或查询失败仍保留上传成功状态,请勿直接重传。详见 [Vibe 接入说明](vibe-upload.md)。
3
+ `0.4.6-vibe-beta.18` 在上传成功后短暂显示成功提示,再平滑返回原扫码界面,保留最初的绑定二维码,终态 `qrPurpose=authorization_binding`。CLI 继续查询同一任务,并通过 `previewUrl` 返回后端预览链接;电脑页面不切换为试玩码。预览超时或查询失败仍保留上传回执,请勿直接重传。详见 [Vibe 接入说明](vibe-upload.md)。
4
4
 
5
- Version `0.4.6-vibe-beta.17`: `ttmg upload --vibe` keeps polling the same task after upload and shows a game preview QR on the original page when `preview_url` arrives. Keep the process running. A preview timeout or lookup failure preserves the upload receipt; do not upload again.
5
+ Version `0.4.6-vibe-beta.18`: after upload, the page briefly confirms success, then smoothly returns to the original binding QR. The CLI keeps polling the same task and returns its preview link in `previewUrl`; the page QR remains for binding. A preview timeout or lookup failure preserves the upload receipt; do not upload again.
6
6
 
7
7
  Vibe 手机扫码授权与上传:`ttmg upload --vibe --dir ./game --title "My game" --icon ./avatar.png --format ndjson`。用户在手机 TikTok 扫码授权后,原命令自动上传。只收集标题和本地头像,并使用游戏目录或代码包;其他应用资料由 CLI 补齐。页面展示标题、头像、描述、类型和子类型。见 [Vibe 接入说明](vibe-upload.md)。
8
8
 
9
- 扫码上传使用 `0.4.6-vibe-beta.17`,安装后核对版本与能力声明。Snow Crew 已在 PPE 完成真实上传并取得预览链接,用户确认扫码预览跑通;正式环境未开放。
9
+ 扫码上传使用 `0.4.6-vibe-beta.18`,安装后核对版本与能力声明。Snow Crew 已在 PPE 完成真实绑定上传,本次返回原绑定码的页面体验已由用户验证。预览链接的完整链路此前已在 beta.17 验证;正式环境未开放。
10
10
 
11
11
  `ttmg` is a command-line tool designed for managing and developing mini-game projects. It supports initialization, development, debugging, and packaging for both H5 and native mini-games.
12
12
  `ttmg` 是一款专为小游戏项目管理与开发设计的命令行工具,支持 H5 小游戏和原生小游戏的初始化、开发调试及打包构建。
@@ -18,7 +18,7 @@ Vibe 版本支持手机扫码授权上传、可选 `--description`、分类查
18
18
  固定版本安装(发布标签为 `vibe-beta`):
19
19
 
20
20
  ```bash
21
- npm install -g @ttmg/cli@0.4.6-vibe-beta.17
21
+ npm install -g @ttmg/cli@0.4.6-vibe-beta.18
22
22
  ttmg --version
23
23
  ttmg capabilities --format json
24
24
  ttmg upload --help
package/dist/index.js CHANGED
@@ -7263,8 +7263,8 @@ Vibe QR upload (real PPE trial):
7263
7263
  Keep this process running. At waiting_authorization, scan the QR on pageUrl with TikTok on your phone.
7264
7264
  pageUrl is the local QR/progress page on the CLI computer. Reopen it with authorizationOpenCommand.
7265
7265
  The CLI polls and uploads avatar, app_info and package automatically after authorization. Do not start a second upload.
7266
- After upload, waiting_preview keeps polling the same task until previewUrl is available; pageUrl then shows the game preview QR.
7267
- Preview ready: previewReady=true and qrPurpose=game_preview. A preview timeout preserves uploaded=true; check the task, do not reupload.
7266
+ After upload, pageUrl returns to the original binding QR. waiting_preview keeps polling the same task until previewUrl is available.
7267
+ previewReady=true means the preview link is available; qrPurpose=authorization_binding describes the original QR retained on pageUrl. A preview timeout preserves uploaded=true; do not reupload.
7268
7268
  Real success: terminal=true, status=uploaded, uploaded=true, simulation=false. On failure, read errorCode and nextAction.
7269
7269
  The local QR page opens for every output format; --no-open disables automatic opening.
7270
7270
  The page displays the submitted title, icon, description, category and subcategory.
@@ -7713,8 +7713,8 @@ Vibe 扫码上传(真实 PPE 试用):
7713
7713
  保持原进程运行。在 waiting_authorization 阶段,使用手机 TikTok 扫描 pageUrl 页面中的二维码。
7714
7714
  pageUrl 是 CLI 所在电脑的二维码/进度页;重新打开时,执行返回的 authorizationOpenCommand。
7715
7715
  CLI 负责轮询,授权后自动上传 avatar、app_info、package,不再启动第二次上传。
7716
- 上传后进入 waiting_preview,继续查询同一任务;拿到 previewUrl 后,原 pageUrl 页面展示游戏预览二维码。
7717
- previewReady=true 且 qrPurpose=game_preview 表示可扫码预览;等待超时仍保留 uploaded=true,请核对任务,不要重传。
7716
+ 上传成功后 pageUrl 平滑返回原绑定二维码;waiting_preview 继续查询同一任务直到取得 previewUrl。
7717
+ previewReady=true 表示预览链接已返回;qrPurpose=authorization_binding 表示 pageUrl 保留原绑定码。等待超时仍保留 uploaded=true,请核对任务,不要重传。
7718
7718
  真实成功:terminal=true、status=uploaded、uploaded=true、simulation=false。失败时读取 errorCode 和 nextAction。
7719
7719
  所有输出格式都会打开本地二维码页;--no-open 可关闭自动打开。
7720
7720
  页面展示本次提交的标题、头像、描述、类型和子类型。
@@ -16382,7 +16382,7 @@ async function authStatus(options = {}) {
16382
16382
  return result;
16383
16383
  }
16384
16384
 
16385
- var version = "0.4.6-vibe-beta.17";
16385
+ var version = "0.4.6-vibe-beta.18";
16386
16386
  var engines = {
16387
16387
  node: ">=20.19.1 <21 || >=22"
16388
16388
  };
@@ -17268,13 +17268,14 @@ function getCapabilities() {
17268
17268
  provisionalHttpAdapter: 'loopback-only',
17269
17269
  httpContract: 'minis-import-task',
17270
17270
  authorizationQr: true,
17271
- previewQr: true,
17271
+ previewQr: false,
17272
17272
  preview: {
17273
17273
  taskEndpoint: 'get_minis_import_task_detail_for_agent',
17274
17274
  waitingStatus: 'waiting_preview',
17275
17275
  resultFields: ['previewUrl', 'previewReady', 'clientKey', 'appId', 'codeAssetId', 'minisCenterHistoryId'],
17276
17276
  readiness: 'nonempty-valid-preview-url',
17277
- qrPurpose: 'game_preview',
17277
+ qrPurpose: 'authorization_binding',
17278
+ pageQrSource: 'original-landing-url',
17278
17279
  sameTask: true,
17279
17280
  timeout: 'shared-operation-timeout',
17280
17281
  failurePreservesUploaded: true,
@@ -19340,6 +19341,7 @@ body{margin:0;min-height:100vh;min-height:100svh;display:flex;align-items:center
19340
19341
  .game-details{margin:16px 0 0;font-size:13px}.game-details>div:first-child,.game-categories>div{display:flex;align-items:baseline;justify-content:center;gap:8px}.game-details dt{flex-shrink:0;font-size:11px;color:#9298a2;margin:0}.game-details dd{min-width:0;margin:0;text-align:left;overflow-wrap:anywhere}
19341
19342
  .game-description{white-space:pre-wrap;line-height:1.65}.game-categories{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}
19342
19343
  .scan-action{text-align:center;font-size:13px;font-weight:500;margin:26px 0 10px}.qr-area{display:flex;justify-content:center}.qr-frame{padding:8px;width:208px;height:208px}.qr-frame img{display:block;width:192px;height:192px;max-width:100%}
19344
+ .game+.qr-area{margin-top:20px}.scan-hint{text-align:center;font-size:11px;color:#7a818c;line-height:1.7;margin:8px 0 0}
19343
19345
  .upload-area{display:flex;align-items:center;flex-direction:column;gap:16px;padding-top:26px}.percentage{font-size:34px;line-height:1;font-variant-numeric:tabular-nums;font-weight:550}.percentage span{font-size:16px;color:#858e9d;padding-left:3px}
19344
19346
  .progress-wrap{width:100%}progress{display:block;width:100%;height:4px;border:none;border-radius:20px;overflow:hidden;background:#edf0f4;accent-color:#4c6378}progress::-webkit-progress-bar{background:#edf0f4;border-radius:20px}progress::-webkit-progress-value{background:#4c6378;border-radius:20px}progress::-moz-progress-bar{background:#4c6378;border-radius:20px}.transfer-label{text-align:center;font-size:11px;color:#8b939f;margin:8px 0 0}
19345
19347
  .footer{text-align:center;font-size:10px;line-height:1.7;color:#a0a5ae;margin:24px 0 0}.footer .dot{display:inline-block;height:5px;width:5px;border-radius:50%;background:#c1995e;vertical-align:middle;margin-right:5px}.mock-badge{width:fit-content;margin:0 0 10px auto;font-size:10px;padding:2px 7px;border:1px solid #dfe2e7;border-radius:5px;color:#707783}
@@ -19352,6 +19354,37 @@ const VIBE_PAGE_HTML_LIMIT = 16 * 1024 * 1024;
19352
19354
  const pageUpdates = `(() => {
19353
19355
  let etag;
19354
19356
  const terminal = () => ['complete', 'preview', 'failed'].includes(document.querySelector('main')?.dataset.phase);
19357
+ const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
19358
+ async function replace(current, updated) {
19359
+ const animate = current.dataset.phase !== updated.dataset.phase && current.animate &&
19360
+ !window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
19361
+ const height = current.getBoundingClientRect().height;
19362
+ if (animate) await current.animate([{opacity: 1}, {opacity: 0}], {duration: 140, fill: 'forwards'}).finished.catch(() => {});
19363
+ current.replaceWith(updated);
19364
+ if (animate) await updated.animate([
19365
+ {opacity: 0, height: height + 'px', overflow: 'hidden'},
19366
+ {opacity: 1, height: updated.getBoundingClientRect().height + 'px', overflow: 'hidden'}
19367
+ ], {duration: 280, easing: 'ease-out'}).finished.catch(() => {});
19368
+ }
19369
+ async function show(updated) {
19370
+ let current = document.querySelector('main');
19371
+ if (!current || current.outerHTML === updated.outerHTML) return;
19372
+ if (updated.dataset.uploadedBinding === 'true' && current.dataset.uploadedBinding !== 'true') {
19373
+ // Return to the original binding QR after showing the upload receipt,
19374
+ // even when polling skips intermediate upload states.
19375
+ const success = updated.cloneNode(true);
19376
+ success.dataset.phase = 'upload_success';
19377
+ delete success.dataset.uploadedBinding;
19378
+ const heading = success.querySelector('.heading');
19379
+ success.querySelector('h1').textContent = heading.dataset.uploadTitle;
19380
+ success.querySelector('.subtitle').textContent = heading.dataset.uploadSubtitle;
19381
+ success.querySelectorAll('.qr-area, .scan-action, .scan-hint').forEach(node => node.remove());
19382
+ await replace(current, success);
19383
+ current = success;
19384
+ await delay(1200);
19385
+ }
19386
+ await replace(current, updated);
19387
+ }
19355
19388
  async function refresh() {
19356
19389
  if (terminal()) return;
19357
19390
  try {
@@ -19359,8 +19392,8 @@ const pageUpdates = `(() => {
19359
19392
  if (response.ok) {
19360
19393
  etag = response.headers.get('etag');
19361
19394
  const next = new DOMParser().parseFromString(await response.text(), 'text/html');
19362
- const current = document.querySelector('main'), updated = next.querySelector('main');
19363
- if (current && updated && current.outerHTML !== updated.outerHTML) current.replaceWith(updated);
19395
+ const updated = next.querySelector('main');
19396
+ if (updated) await show(updated);
19364
19397
  document.title = next.title;
19365
19398
  }
19366
19399
  } catch { /* Keep the current page readable during a temporary connection failure. */ }
@@ -19373,6 +19406,8 @@ async function renderVibePage(input) {
19373
19406
  const zh = input.language !== 'en-US';
19374
19407
  const phase = input.phase ||
19375
19408
  (input.purpose === 'authorization_binding' ? 'binding' : 'uploading');
19409
+ const uploadedBinding = !input.simulation && input.purpose === 'authorization_binding' &&
19410
+ (phase === 'waiting_preview' || phase === 'preview' || phase === 'complete');
19376
19411
  const copy = zh
19377
19412
  ? {
19378
19413
  steps: ['扫码授权', '上传游戏', '完成'],
@@ -19397,7 +19432,6 @@ async function renderVibePage(input) {
19397
19432
  bindingCode: '授权绑定二维码',
19398
19433
  accepted: input.simulation ? '模拟完成' : '已上传',
19399
19434
  mockNote: input.hybrid ? '真实创建 / 查询任务 · 授权 / 上传为模拟 · 不改变真实任务状态' : '模拟运行 · 无需扫码,不会真实上传',
19400
- footer: '临时页面 · 15 分钟后关闭',
19401
19435
  }
19402
19436
  : {
19403
19437
  steps: ['Authorize', 'Upload', 'Done'],
@@ -19426,7 +19460,6 @@ async function renderVibePage(input) {
19426
19460
  bindingCode: 'Authorization QR',
19427
19461
  accepted: input.simulation ? 'Simulation complete' : 'Uploaded',
19428
19462
  mockNote: input.hybrid ? 'Real task creation / polling · Mock authorization / upload · Real task status unchanged' : 'Mock only · no scan needed, nothing is uploaded',
19429
- footer: 'Temporary page · closes after 15 minutes',
19430
19463
  };
19431
19464
  if (input.web) {
19432
19465
  copy.steps[0] = zh ? '网页授权' : 'Web authorization';
@@ -19445,34 +19478,42 @@ async function renderVibePage(input) {
19445
19478
  : '<span class="game-icon" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="none"><path d="M7 7h10c2 0 3 2 3 4l1 5c.4 2-1 3-2.5 2l-3-2h-7l-3 2C4 19 2.6 18 3 16l1-5c0-2 1-4 3-4Z" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/><path d="M8 10v4m-2-2h4m6-1h.01M18 13h.01" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg></span>';
19446
19479
  const game = `<div class="game"><div class="game-summary">${icon}<p class="game-title">${escape(input.title)}</p></div><dl class="game-details"><div><dt>${zh ? '描述' : 'Description'}</dt><dd class="game-description">${escape(input.description ?? VIBE_PPE_DEFAULT_APP_INFO.description)}</dd></div><div class="game-categories"><div><dt>${zh ? '类型' : 'Category'}</dt><dd>${escape(input.category ?? VIBE_PPE_DEFAULT_APP_INFO.category)}</dd></div><div><dt>${zh ? '子类型' : 'Subcategory'}</dt><dd>${escape(input.subcategory ?? VIBE_PPE_DEFAULT_APP_INFO.subcategory)}</dd></div></div></dl></div>`;
19447
19480
  const checkIcon = '<svg width="12" height="12" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="m3 8 3 3 7-7" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>';
19448
- const title = phase === 'waiting_preview' ? (zh ? '正在准备预览' : 'Preparing preview')
19449
- : phase === 'preview' ? (zh ? '扫码预览游戏' : 'Scan to preview')
19450
- : phase === 'binding'
19451
- ? copy.bindingTitle
19452
- : phase === 'uploading'
19453
- ? copy.uploadingTitle
19454
- : phase === 'failed'
19455
- ? copy.failedTitle
19456
- : copy.completeTitle;
19457
- const subtitle = phase === 'waiting_preview' ? (zh ? '游戏内容已上传,预览就绪后会自动显示二维码。' : 'Game content uploaded. The preview QR will appear when ready.')
19458
- : phase === 'preview' ? (zh ? '上传完成,使用手机 TikTok 扫描下方二维码。' : 'Upload complete. Scan the QR below with TikTok on your phone.')
19459
- : phase === 'complete' && !input.simulation ? escape(input.message)
19481
+ const uploadSuccessTitle = zh ? '上传成功' : 'Upload complete';
19482
+ const uploadSuccessSubtitle = zh
19483
+ ? '游戏内容已上传,正在返回扫码页面。'
19484
+ : 'Your game has been uploaded. Returning to the scan page.';
19485
+ const title = uploadedBinding ? (zh ? '扫码打开绑定页面' : 'Scan to open the binding page')
19486
+ : phase === 'waiting_preview' ? (zh ? '正在准备预览' : 'Preparing preview')
19487
+ : phase === 'preview' ? (zh ? '扫码预览游戏' : 'Scan to preview')
19460
19488
  : phase === 'binding'
19461
- ? copy.bindingSubtitle
19489
+ ? copy.bindingTitle
19462
19490
  : phase === 'uploading'
19463
- ? copy.uploadingSubtitle
19491
+ ? copy.uploadingTitle
19464
19492
  : phase === 'failed'
19465
- ? escape(input.message)
19466
- : copy.completeSubtitle;
19467
- const qr = (phase === 'binding' || phase === 'preview') && !input.web && input.qrUrl
19493
+ ? copy.failedTitle
19494
+ : copy.completeTitle;
19495
+ const subtitle = uploadedBinding ? (phase === 'complete' ? escape(input.message) : zh
19496
+ ? '本次游戏代码包已上传完成,再次扫码即可查看预览版本并提交审核。'
19497
+ : 'Your game package has been uploaded. Scan again to view the preview version and submit it for review.')
19498
+ : phase === 'waiting_preview' ? (zh ? '游戏内容已上传,预览就绪后会自动显示二维码。' : 'Game content uploaded. The preview QR will appear when ready.')
19499
+ : phase === 'preview' ? (zh ? '上传完成,使用手机 TikTok 扫描下方二维码。' : 'Upload complete. Scan the QR below with TikTok on your phone.')
19500
+ : phase === 'complete' && !input.simulation ? escape(input.message)
19501
+ : phase === 'binding'
19502
+ ? copy.bindingSubtitle
19503
+ : phase === 'uploading'
19504
+ ? copy.uploadingSubtitle
19505
+ : phase === 'failed'
19506
+ ? escape(input.message)
19507
+ : copy.completeSubtitle;
19508
+ const qr = (phase === 'binding' || phase === 'preview' || uploadedBinding) && !input.web && input.qrUrl
19468
19509
  ? await QRCode.toDataURL(input.qrUrl, {
19469
19510
  width: 384,
19470
19511
  margin: 4,
19471
19512
  errorCorrectionLevel: 'M',
19472
19513
  })
19473
19514
  : '';
19474
- const purpose = phase === 'preview' ? (zh ? '游戏预览二维码' : 'Game preview QR') : copy.bindingCode;
19475
- const done = phase === 'complete' || phase === 'preview';
19515
+ const purpose = phase === 'preview' && !uploadedBinding ? (zh ? '游戏预览二维码' : 'Game preview QR') : copy.bindingCode;
19516
+ const done = phase === 'complete' || phase === 'preview' || phase === 'waiting_preview';
19476
19517
  const progress = typeof input.progressPercent === 'number' &&
19477
19518
  Number.isFinite(input.progressPercent)
19478
19519
  ? Math.max(0, Math.min(100, Math.round(input.progressPercent)))
@@ -19483,11 +19524,11 @@ async function renderVibePage(input) {
19483
19524
  ? `<div class="upload-area"><div class="percentage">${progress}<span>%</span></div><div class="progress-wrap"><progress aria-label="${copy.uploadLabel}" max="100" value="${progress}"></progress><p class="transfer-label">${copy.uploadLabel}</p></div></div>`
19484
19525
  : '';
19485
19526
  return `<!doctype html><html lang="${zh ? 'zh-CN' : 'en'}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${escape(title)} · ${escape(input.title)}</title><style>${vibePageStyles}</style><script src="?updates" defer></script></head>
19486
- <body><main class="shell" data-phase="${phase}">${input.simulation ? `<p class="mock-badge">${copy.mock}</p>` : ''}
19527
+ <body><main class="shell" data-phase="${phase}"${uploadedBinding ? ' data-uploaded-binding="true"' : ''}>${input.simulation ? `<p class="mock-badge">${copy.mock}</p>` : ''}
19487
19528
  <section class="card" aria-labelledby="page-title">${phase === 'failed' ? '' : `<ol class="steps" aria-label="${zh ? '上传步骤' : 'Upload steps'}">${copy.steps.map((label, i) => `<li class="step ${done || i < step ? 'done' : i === step ? 'active' : ''}"${!done && i === step ? ' aria-current="step"' : ''}><span class="step-number">${done || i < step ? checkIcon : i + 1}</span>${label}</li>`).join('')}</ol>`}
19488
- <div class="heading"><h1 id="page-title">${title}</h1><p class="subtitle" role="status">${subtitle}</p></div>${game}${phase === 'binding' ? `<p class="scan-action">${copy.bindingAction}</p>` : ''}${content}
19529
+ <div class="heading"${uploadedBinding ? ` data-upload-title="${escape(uploadSuccessTitle)}" data-upload-subtitle="${escape(uploadSuccessSubtitle)}"` : ''}><h1 id="page-title">${title}</h1><p class="subtitle" role="status">${subtitle}</p></div>${game}${phase === 'binding' || uploadedBinding ? `<p class="scan-action">${copy.bindingAction}</p>` : ''}${content}${uploadedBinding ? `<p class="scan-hint">${zh ? '这是本次上传的原绑定二维码,无需重复上传。' : 'This is the original binding QR for this upload. No need to upload again.'}</p>` : ''}
19489
19530
  </section>
19490
- <p class="footer">${input.simulation ? `<span class="dot" aria-hidden="true"></span>${copy.mockNote}` : copy.footer}</p></main></body></html>`;
19531
+ ${input.simulation ? `<p class="footer"><span class="dot" aria-hidden="true"></span>${copy.mockNote}</p>` : ''}</main></body></html>`;
19491
19532
  }
19492
19533
  async function createVibePageServer() {
19493
19534
  const route = `/${crypto.randomBytes(24).toString('hex')}`;
@@ -20037,8 +20078,9 @@ async function executeVibeUpload(options, onEvent = () => { }, dependencies = {}
20037
20078
  throw progressPageError;
20038
20079
  if (!result.simulation) {
20039
20080
  emit('waiting_preview', { previewReady: false, terminal: false, nextAction: 'wait',
20040
- qrPurpose: undefined, authorizationOpenCommand: undefined });
20081
+ qrPurpose: 'authorization_binding', authorizationOpenCommand: undefined });
20041
20082
  await page.update({ ...pageGame, language: getCurrentLanguage(), phase: 'waiting_preview',
20083
+ qrUrl: authorizationUrl, purpose: 'authorization_binding',
20042
20084
  simulation: false, message: text('waiting_preview') });
20043
20085
  while (true) {
20044
20086
  ensureActive();
@@ -20062,17 +20104,17 @@ async function executeVibeUpload(options, onEvent = () => { }, dependencies = {}
20062
20104
  ...pageGame,
20063
20105
  language: getCurrentLanguage(),
20064
20106
  phase: result.previewReady ? 'preview' : 'complete',
20065
- qrUrl: result.previewUrl,
20066
- purpose: result.previewReady ? 'game_preview' : undefined,
20107
+ qrUrl: result.simulation ? undefined : authorizationUrl,
20108
+ purpose: result.simulation ? undefined : 'authorization_binding',
20067
20109
  simulation: result.simulation,
20068
20110
  message: text('uploaded', result.simulation),
20069
20111
  });
20070
20112
  page.detach();
20071
20113
  detached = true;
20072
20114
  return emit('uploaded', { terminal: true, nextAction: result.previewReady ? 'scan_qr' : 'none',
20073
- qrPurpose: result.previewReady ? 'game_preview' : undefined,
20115
+ qrPurpose: result.previewReady ? 'authorization_binding' : undefined,
20074
20116
  ...(result.previewReady ? { message: getCurrentLanguage() === 'zh-CN'
20075
- ? '上传完成,请使用 TikTok 扫码预览游戏。' : 'Upload complete. Scan with TikTok to preview your game.' } : {}) });
20117
+ ? '上传完成。原绑定二维码已保留,可使用 TikTok 再次扫码打开绑定页面。' : 'Upload complete. The original binding QR is available to reopen the binding page with TikTok.' } : {}) });
20076
20118
  }
20077
20119
  catch (error) {
20078
20120
  const code = timedOut
@@ -20181,7 +20223,11 @@ async function executeVibeUpload(options, onEvent = () => { }, dependencies = {}
20181
20223
  simulation: result.simulation,
20182
20224
  hybrid: result.backend === 'ppe-mock',
20183
20225
  phase: result.uploaded ? 'complete' : 'failed',
20184
- message,
20226
+ message: result.uploaded && !result.simulation
20227
+ ? getCurrentLanguage() === 'zh-CN'
20228
+ ? '本次游戏代码包已上传完成,可在手机端查看预览版本并提交审核。'
20229
+ : 'Your game package has been uploaded. You can view the preview version and submit it for review on your phone.'
20230
+ : message,
20185
20231
  });
20186
20232
  page.detach();
20187
20233
  detached = true;