@ttmg/cli 0.4.6-vibe-beta.24 → 0.4.7

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 (133) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +230 -24
  3. package/dist/index.js +7580 -3198
  4. package/dist/index.js.map +1 -1
  5. package/dist/package.json +23 -13
  6. package/dist/public/assets/{Card-CN2lxY0Y.js → Card-BC5ydRHh.js} +1 -1
  7. package/dist/public/assets/Detail-DPCqXgFa.js +1 -0
  8. package/dist/public/assets/Detail-DPCqXgFa.js.br +0 -0
  9. package/dist/public/assets/MonetizationMode-BGXVb7wG.js +1 -0
  10. package/dist/public/assets/MonetizationModeSummary-LeYQ02Tv.js +1 -0
  11. package/dist/public/assets/{SectionHeader-BKc3BWXP.js → SectionHeader-BQDU_6TX.js} +1 -1
  12. package/dist/public/assets/baseForm-3VpF68Sz.css +1 -0
  13. package/dist/public/assets/baseForm-3VpF68Sz.css.br +0 -0
  14. package/dist/public/assets/baseForm-dqhahTXM.js +10 -0
  15. package/dist/public/assets/baseForm-dqhahTXM.js.br +0 -0
  16. package/dist/public/assets/{compass-D6waJ52O.js → compass-DfWJoWl3.js} +1 -1
  17. package/dist/public/assets/{index-Csmg5oyu.js → index-3IxvKwO3.js} +1 -1
  18. package/dist/public/assets/index-BAmVtXgk.js +1 -0
  19. package/dist/public/assets/index-BAmVtXgk.js.br +0 -0
  20. package/dist/public/assets/index-BBHaV7vS.js +1 -0
  21. package/dist/public/assets/index-BIkx7MZA.js +1 -0
  22. package/dist/public/assets/index-BIkx7MZA.js.br +0 -0
  23. package/dist/public/assets/index-BT67axp7.css +1 -0
  24. package/dist/public/assets/index-Ba7wrRXG.js +1 -0
  25. package/dist/public/assets/index-Ba7wrRXG.js.br +0 -0
  26. package/dist/public/assets/index-BhTApVX6.js +1 -0
  27. package/dist/public/assets/{index-BqwflQml.js → index-BkbwTqmH.js} +1 -1
  28. package/dist/public/assets/{index-YVB9ZW00.js → index-BmS73Skw.js} +1 -1
  29. package/dist/public/assets/{index-Ckp_mJJy.css → index-BoFbvk-8.css} +1 -1
  30. package/dist/public/assets/index-BoFbvk-8.css.br +0 -0
  31. package/dist/public/assets/{index-CcUgN29Y.js → index-BqslPc39.js} +1 -1
  32. package/dist/public/assets/index-C0-lsmcf.js +1 -0
  33. package/dist/public/assets/index-C947zURI.js +1 -0
  34. package/dist/public/assets/index-C947zURI.js.br +0 -0
  35. package/dist/public/assets/index-CC4YJwDI.js +1 -0
  36. package/dist/public/assets/{index-BvPolBSn.js → index-CDxeVVlI.js} +1 -1
  37. package/dist/public/assets/{index-BwrZjkCc.js → index-CF4RJ3VA.js} +1 -1
  38. package/dist/public/assets/{index-rLkONFpx.js → index-CSOt669g.js} +1 -1
  39. package/dist/public/assets/index-CbUw1wBM.js +3 -0
  40. package/dist/public/assets/index-CbUw1wBM.js.br +0 -0
  41. package/dist/public/assets/index-DLHXV9xo.css +1 -0
  42. package/dist/public/assets/index-DLHXV9xo.css.br +0 -0
  43. package/dist/public/assets/{index-8sDAOAcS.js → index-DRKEUX85.js} +1 -1
  44. package/dist/public/assets/index-DRKEUX85.js.br +0 -0
  45. package/dist/public/assets/index-DS-Ah-pZ.js +1 -0
  46. package/dist/public/assets/index-DcpswdR4.js +21 -0
  47. package/dist/public/assets/index-DcpswdR4.js.br +0 -0
  48. package/dist/public/assets/{index-B6hY5GdS.js → index-DpCdlpoj.js} +1 -1
  49. package/dist/public/assets/index-FKgvaTum.js +1 -0
  50. package/dist/public/assets/index-FKgvaTum.js.br +0 -0
  51. package/dist/public/assets/index-_IVh5FZw.js +1 -0
  52. package/dist/public/assets/index-docEsXsM.css +1 -0
  53. package/dist/public/assets/index-docEsXsM.css.br +0 -0
  54. package/dist/public/assets/{index-Cb4Ja0tZ.js → index-ejkbZVVo.js} +1 -1
  55. package/dist/public/assets/{index-BLWgpW64.js → index-wGfWSqnF.js} +1 -1
  56. package/dist/public/assets/index-xPCWyPvk.js +2 -0
  57. package/dist/public/assets/{layers-Dbwq9AyL.js → layers-kzl3dc3j.js} +1 -1
  58. package/dist/public/assets/{list-checks-og1usOZf.js → list-checks-Ce0l0Ylc.js} +1 -1
  59. package/dist/public/assets/{sparkles-p-dZbjGb.js → sparkles-Dnyv9lnL.js} +1 -1
  60. package/dist/public/assets/{triangle-alert-BZVAEUiL.js → triangle-alert-BaPLcm_f.js} +1 -1
  61. package/dist/public/assets/{zap-BAhZUPPa.js → zap-DyzOTCOX.js} +1 -1
  62. package/dist/public/index.html +2 -2
  63. package/dist/scripts/dev-client-preview-control-smoke.js +4 -0
  64. package/dist/scripts/dev-remote-resources-smoke.js +88 -0
  65. package/dist/scripts/dev-workflow-smoke.js +15 -1
  66. package/dist/scripts/docs/README.md +19 -0
  67. package/dist/scripts/docs/capture.js +46 -3
  68. package/dist/scripts/docs/check.js +9 -0
  69. package/dist/scripts/docs/privacy-guard.js +74 -0
  70. package/dist/scripts/docs/privacy-guard.test.js +116 -0
  71. package/dist/scripts/docs/render.js +2 -2
  72. package/dist/scripts/docs/scenarios/devtool-guide.mjs +13 -17
  73. package/dist/scripts/language-route.test.js +14 -0
  74. package/dist/scripts/localization-process.test.js +69 -0
  75. package/dist/scripts/remoteResources.js +54 -0
  76. package/dist/scripts/removed-features-smoke.js +42 -0
  77. package/dist/scripts/run-ts-test.js +3 -1
  78. package/dist/scripts/skills-process.test.js +48 -0
  79. package/dist/scripts/unity-check-process.test.js +103 -0
  80. package/dist/scripts/unity-report-template.html +148 -0
  81. package/dist/scripts/verify-agent-contract.js +56 -0
  82. package/dist/scripts/verify-locales.js +50 -0
  83. package/dist/scripts/wasm-collect-smoke.js +8 -2
  84. package/dist/scripts/wasm-worker.js +4 -0
  85. package/dist/scripts/worker.js +27 -3
  86. package/dist/scripts/workflow-review-smoke.js +36 -0
  87. package/package.json +23 -13
  88. package/skills/README.md +16 -0
  89. package/vibe-upload.md +4 -4
  90. package/dist/openDataContext/template/open_context.html.hbs +0 -29
  91. package/dist/openDataContext/template/open_context_sdk.js.hbs +0 -16
  92. package/dist/public/assets/Detail-CELZZ-4h.js +0 -1
  93. package/dist/public/assets/Detail-CELZZ-4h.js.br +0 -0
  94. package/dist/public/assets/MonetizationMode-C7DNqium.js +0 -1
  95. package/dist/public/assets/MonetizationModeSummary-DYE7XUq1.js +0 -1
  96. package/dist/public/assets/baseForm-BAvk37jF.css +0 -1
  97. package/dist/public/assets/baseForm-BAvk37jF.css.br +0 -0
  98. package/dist/public/assets/baseForm-I9suIiQn.js +0 -10
  99. package/dist/public/assets/baseForm-I9suIiQn.js.br +0 -0
  100. package/dist/public/assets/col-BXewy14r.css +0 -1
  101. package/dist/public/assets/col-BXewy14r.css.br +0 -0
  102. package/dist/public/assets/col-w9Q-2mgM.js +0 -1
  103. package/dist/public/assets/index-8sDAOAcS.js.br +0 -0
  104. package/dist/public/assets/index-BFPQPvSA.css +0 -1
  105. package/dist/public/assets/index-BIrFkB6r.js +0 -1
  106. package/dist/public/assets/index-BIrFkB6r.js.br +0 -0
  107. package/dist/public/assets/index-BY3eQmfP.js +0 -1
  108. package/dist/public/assets/index-BY3eQmfP.js.br +0 -0
  109. package/dist/public/assets/index-BegU9LBT.js +0 -21
  110. package/dist/public/assets/index-BegU9LBT.js.br +0 -0
  111. package/dist/public/assets/index-BrOFdVbv.js +0 -1
  112. package/dist/public/assets/index-CLKKui8G.js +0 -1
  113. package/dist/public/assets/index-CYnulX57.css +0 -1
  114. package/dist/public/assets/index-CYnulX57.css.br +0 -0
  115. package/dist/public/assets/index-CgXOkYrX.js +0 -1
  116. package/dist/public/assets/index-CgXOkYrX.js.br +0 -0
  117. package/dist/public/assets/index-Ckp_mJJy.css.br +0 -0
  118. package/dist/public/assets/index-CsiIrLKY.js +0 -1
  119. package/dist/public/assets/index-DDecPuod.js +0 -1
  120. package/dist/public/assets/index-DDy4PkWT.js +0 -1
  121. package/dist/public/assets/index-DEQ2hVPA.js +0 -1
  122. package/dist/public/assets/index-DEQ2hVPA.js.br +0 -0
  123. package/dist/public/assets/index-DGkgqtgJ.js +0 -1
  124. package/dist/public/assets/index-FVHabbDB.js +0 -1
  125. package/dist/public/assets/index-M8jf-YAZ.js +0 -1
  126. package/dist/public/assets/index-Q0GC8Irj.js +0 -1
  127. package/dist/public/assets/index-Q0GC8Irj.js.br +0 -0
  128. package/dist/public/assets/index-mjEeEQcC.js +0 -1
  129. package/dist/public/assets/index-mjEeEQcC.js.br +0 -0
  130. package/dist/public/assets/index-vlN_-PRJ.css +0 -1
  131. package/src/commands/common/game/categories.test.ts +0 -38
  132. package/src/commands/common/game/categories.ts +0 -48
  133. package/src/commands/common/game/categoryCatalog.json +0 -522
@@ -0,0 +1,148 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
5
+ <title>Unity 检查报告</title>
6
+ <style>
7
+ :root{color-scheme:light;--bg:#fff;--canvas:#fafaf9;--ink:#252727;--muted:#727775;--line:#eaece9;--accent:#46695f;--hover:#f7f8f6;--selected:#eff4f0;--amber:#91682c;--amber-bg:#f8f2e7;--green:#4e7160;--soft:#f3f4f2;--mono:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}
8
+ *{box-sizing:border-box}html{scrollbar-gutter:stable}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}[hidden]{display:none!important}h1,h2,h3,p{margin:0}.muted{color:var(--muted)}.mono{font:var(--mono)}.spacer{flex:1}
9
+ .topbar{height:48px;background:rgba(250,250,249,.96);border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:4}.brand{display:flex;align-items:center;gap:8px;font-weight:650;letter-spacing:-.3px}.brand svg{height:19px;width:19px}.crumb{color:#9aa09b;font-size:13px}.product{color:#606662;font-size:13px}.page{max-width:1256px;margin:auto;padding:34px 40px 30px}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:1.6px;color:var(--muted);margin-bottom:7px}.game-title{display:flex;align-items:center;gap:12px}h1{font-size:29px;line-height:1.3;letter-spacing:-.9px;font-weight:650}.version{font-size:12px;border:1px solid var(--line);border-radius:5px;padding:2px 7px;color:#6c716e;white-space:nowrap}.metadata{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:9px}.metadata .sep{color:#c5c9c4}.export{position:relative;margin-top:22px}.export-button{border:1px solid #dfe3de;box-shadow:0 1px 2px #18261a04;background:white;border-radius:7px;padding:6px 11px;display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.export-button:hover{background:var(--hover)}.export-button .chevron{width:12px;height:12px;color:var(--muted)}.export-menu{position:absolute;right:0;top:38px;width:196px;padding:5px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px #17251b13;border-radius:9px;z-index:6}.export-menu button{display:block;text-align:left;width:100%;padding:8px 10px;font-size:13px;border-radius:5px}.export-menu button:hover{background:var(--soft)}.export-menu small{display:block;color:var(--muted);padding:4px 10px;font-size:11px}
10
+ .overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:34px;padding:25px 0 27px;margin-top:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-label{font-size:11px;color:var(--muted);letter-spacing:.6px;margin-bottom:7px}.overview h2{font-size:17px;line-height:1.55;font-weight:600;letter-spacing:-.25px}.overview p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:7px;max-width:460px}.overview-counts{display:flex;gap:15px;align-items:center;margin-top:12px;font-size:12px;color:var(--muted)}.count-link{font-size:12px;padding:0;display:inline-flex;align-items:center;gap:6px}.count-link:hover{text-decoration:underline;text-underline-offset:3px}.tiny-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:#a6ada6}.candidate .tiny-dot{background:#b28b49}.known .tiny-dot{background:#6e9380}.package-summary{align-self:center}.package-top{display:flex;align-items:baseline;gap:10px;font-size:12px;color:var(--muted)}.package-top strong{color:var(--ink);font-weight:600;font-size:16px;letter-spacing:-.4px}.package-top button{margin-left:auto;font-size:11px;color:var(--muted);padding:0}.package-top button:hover{color:var(--ink)}.package-bar{display:flex;height:8px;gap:2px;border-radius:3px;overflow:hidden;margin:12px 0 11px}.package-bar span{background:var(--color);min-width:2px}.package-legend{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.package-legend strong{font-weight:500;color:#515b55}
11
+ .viewbar{display:flex;align-items:center;gap:20px;margin-top:25px;border-bottom:1px solid var(--line)}.view-tab{font-size:13px;padding:0 0 12px;color:var(--muted);position:relative}.view-tab.active{color:var(--ink);font-weight:600}.view-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:#5b7061}.view-count{margin-left:auto;font-size:11px;color:#8c918d;padding-bottom:12px}.filterbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 13px}.filters{display:flex;gap:3px;align-items:center;flex-wrap:wrap}.filter{font-size:12px;color:var(--muted);padding:5px 9px;border-radius:6px;white-space:nowrap}.filter:hover{background:var(--hover)}.filter.active{color:#334b3d;background:#edf2ed;font-weight:500}.filter .num{margin-left:5px;opacity:.65;font-size:11px}.search{display:flex;align-items:center;gap:7px;width:176px;color:#8a918c;padding:3px 0 3px 8px;border-radius:5px}.search:focus-within{background:var(--soft)}.search svg{height:14px;width:14px}.search input{border:0;outline:none;background:none;width:100%;font-size:12px;color:var(--ink);padding:3px 0}.search input::placeholder{color:#959b96}
12
+ .checks{width:100%;table-layout:fixed;border-collapse:collapse}.checks th{text-align:left;color:#929792;font-size:11px;font-weight:400;padding:9px 12px;border-bottom:1px solid var(--line)}.checks th:first-child{width:49%;padding-left:0}.checks th:nth-child(2){width:13%}.checks th:nth-child(3){width:34%}.checks th:last-child{width:4%;padding-right:0}.checks td{padding:17px 12px;border-bottom:1px solid #f0f1ee;vertical-align:middle}.checks td:first-child{padding-left:0}.checks td:last-child{padding-right:0;text-align:right;color:#a7aea8}.checks tbody tr{cursor:pointer;transition:background .12s}.checks tbody tr:hover{background:var(--hover)}.checks tbody tr.selected{background:var(--selected)}.finding{display:flex;align-items:flex-start;gap:12px}.finding-icon{margin-top:3px;color:#8f9991}.finding-icon svg{width:16px;height:16px}.finding-icon.candidate{color:#ac874b}.finding-icon.known{color:#73917f}.finding-title{display:block;font-size:14px;font-weight:500;padding:0;text-align:left;line-height:1.65;letter-spacing:-.15px}.finding-summary{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.65}.status{font-size:11px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:2px 7px;border-radius:5px;color:#737c74;background:#f2f4f0}.status.candidate{background:var(--amber-bg);color:var(--amber)}.status.known{background:#edf4ed;color:#5c7b65}.next-step{font-size:12px;line-height:1.8;color:#69736b}.empty{padding:55px 20px;color:var(--muted);text-align:center;font-size:13px}.empty button{display:block;margin:14px auto 0;padding:5px 12px;background:var(--soft);border-radius:6px;font-size:12px}.report-foot{margin-top:22px;display:flex;justify-content:space-between;gap:14px;color:#969b95;font-size:11px}.report-foot a{color:inherit}
13
+ .resource-intro{display:flex;justify-content:space-between;align-items:baseline;margin:25px 0 17px}.resource-intro h2{font-size:16px;font-weight:600}.resource-intro p{font-size:12px;color:var(--muted)}.resource-list{border-top:1px solid var(--line)}.resource-row{display:grid;grid-template-columns:180px 1fr 110px 35px;gap:22px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}.resource-row strong{font-size:13px;font-weight:500}.resource-row button{padding:0;font-size:13px;text-align:left}.resource-row button:hover{text-decoration:underline}.resource-meter{height:6px;background:var(--soft);border-radius:3px;overflow:hidden}.resource-meter span{display:block;height:100%;background:var(--color)}.resource-bytes{text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.resource-percent{font-size:11px;color:var(--muted);text-align:right}.resource-note{color:var(--muted);font-size:11px;margin-top:11px}.resource-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:45px;margin-top:34px}.resource-bottom h3{font-size:14px;font-weight:500;margin-bottom:13px}.texture-line{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:9px}.resource-bottom p{font-size:12px;color:var(--muted);line-height:1.9}.inline-link{font-size:12px;display:inline-flex;align-items:center;gap:5px;color:var(--accent);padding:0;margin-top:13px}.inline-link:hover{text-decoration:underline}
14
+ .backdrop{position:fixed;inset:0;background:#17241b30;z-index:10;animation:fade .15s ease-out}.drawer{position:fixed;right:0;top:0;bottom:0;width:480px;max-width:100%;background:white;z-index:11;box-shadow:-12px 0 48px #182a1d14;display:flex;flex-direction:column;animation:slide .18s ease-out}.drawer-nav{height:54px;flex:none;display:flex;align-items:center;gap:9px;padding:0 25px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.icon-button{height:28px;width:28px;border-radius:5px;display:inline-grid;place-items:center}.icon-button:hover:not(:disabled){background:var(--soft)}.drawer-content{padding:28px 30px 36px;overflow:auto;overscroll-behavior:contain;flex:1}.drawer-kicker{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-bottom:12px}.drawer h2{font-size:23px;font-weight:600;letter-spacing:-.5px;line-height:1.45}.detail-lead{font-size:14px;line-height:1.9;color:#59655c;margin-top:12px}.impact-line{display:flex;gap:7px;align-items:flex-start;margin-top:14px;font-size:12px;color:var(--amber)}.impact-line svg{width:14px;height:14px;margin-top:3px}.detail-section{margin-top:26px}.detail-section h3{font-size:12px;font-weight:600;margin-bottom:8px}.detail-section p{font-size:13px;line-height:1.9;color:#69726b}.evidence-box{background:#f6f7f4;padding:12px 14px;border-radius:7px;margin-top:12px;overflow-wrap:anywhere;font:var(--mono);color:#68746a}.detail-note{margin-top:12px;font-size:12px!important;color:#8b928b!important}.action-section{padding-top:23px;border-top:1px solid var(--line)}.document-link{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;margin-top:14px;font-size:13px;color:#42624b}.document-link:hover{background:var(--hover);text-decoration:none;border-color:#d0dbd0}.document-link small{display:block;font-size:11px;color:#90988f;margin-top:3px}.detail-meta{margin-top:28px;padding-top:15px;border-top:1px solid var(--line);font:10px/1.7 ui-monospace,SFMono-Regular,monospace;color:#9ca39b;overflow-wrap:anywhere}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:9px 16px;background:#35463a;color:#fff;font-size:12px;border-radius:8px;box-shadow:0 4px 18px #12241715;z-index:20}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
15
+ .overview{padding-top:20px;padding-bottom:20px}.viewbar{margin-top:20px}.overview-counts{display:none}
16
+ @keyframes fade{from{opacity:0}to{opacity:1}}@keyframes slide{from{transform:translateX(24px);opacity:.7}to{transform:translateX(0);opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
17
+ @media(min-width:1400px){.drawer{width:520px}.drawer-content{padding:30px 36px}}
18
+ @media(max-width:800px){.page{padding:26px 24px}.topbar{padding:0 24px}.overview{gap:24px;grid-template-columns:1.4fr 1fr}.overview h2{font-size:16px}.checks th:first-child{width:47%}.checks th:nth-child(2){width:15%}.checks th:nth-child(3){width:34%}.checks td{padding:16px 8px}.finding{gap:8px}.next-step{font-size:11px}.filter{padding:5px 7px}.search{width:140px}.resource-row{grid-template-columns:150px 1fr 85px 32px;gap:15px}}
19
+ @media(max-width:600px){.topbar{height:44px;padding:0 18px}.page{padding:24px 18px}h1{font-size:25px}.game-title{gap:8px;flex-wrap:wrap}.heading{gap:10px}.export{margin-top:19px}.export-button{padding:6px 8px}.export-button>svg:first-child{display:none}.metadata{font-size:11px}.overview{grid-template-columns:1fr;gap:20px;padding:20px 0;margin-top:21px}.package-summary{max-width:100%}.overview-counts{gap:13px}.viewbar{margin-top:21px}.filterbar{flex-wrap:wrap;gap:8px}.search{width:100%;padding-left:8px;background:var(--canvas)}.checks th:first-child{width:76%}.checks th:nth-child(2){width:24%}.checks th:nth-child(3),.checks th:nth-child(4),.checks td:nth-child(3),.checks td:nth-child(4){display:none}.checks td{padding:16px 5px}.finding-title{font-size:13px}.finding-summary{font-size:11px}.report-foot{font-size:10px;flex-wrap:wrap}.resource-intro{display:block}.resource-intro p{margin-top:5px}.resource-row{grid-template-columns:116px 1fr 74px;gap:10px}.resource-percent{display:none}.resource-bottom{grid-template-columns:1fr;gap:25px}.drawer{width:100%}.drawer-nav{padding:0 18px}.drawer-content{padding:24px}.drawer h2{font-size:21px}}
20
+ </style>
21
+ </head>
22
+ <body>
23
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden"><defs>
24
+ <symbol id="i-cube" viewBox="0 0 24 24"><path d="m12 3 8 4.5v9L12 21l-8-4.5v-9zM4 7.5l8 4.5 8-4.5M12 12v9M8 5.3l8 4.5v4.7"/></symbol>
25
+ <symbol id="i-download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M4 17v4h16v-4"/></symbol>
26
+ <symbol id="i-down" viewBox="0 0 24 24"><path d="m7 10 5 5 5-5"/></symbol>
27
+ <symbol id="i-right" viewBox="0 0 24 24"><path d="m9 6 6 6-6 6"/></symbol>
28
+ <symbol id="i-left" viewBox="0 0 24 24"><path d="m15 6-6 6 6 6"/></symbol>
29
+ <symbol id="i-search" viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="6.5"/><path d="m15.5 15.5 5 5"/></symbol>
30
+ <symbol id="i-candidate" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="M12 7v6m0 3v.3"/></symbol>
31
+ <symbol id="i-known" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="m8 12 3 3 5-6"/></symbol>
32
+ <symbol id="i-unknown" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" stroke-dasharray="2 3"/><path d="M10 9.5a2 2 0 1 1 3 1.7c-1 .6-1 1-1 1.8m0 3v.2"/></symbol>
33
+ <symbol id="i-external" viewBox="0 0 24 24"><path d="M14 4h6v6M20 4l-9 9M10 4H4v16h16v-6"/></symbol>
34
+ <symbol id="i-close" viewBox="0 0 24 24"><path d="m6 6 12 12M18 6 6 18"/></symbol>
35
+ </defs></svg>
36
+ <div id="report-page">
37
+ <header class="topbar"><span class="brand"><svg><use href="#i-cube"/></svg>ttmg</span><span class="crumb">/</span><span class="product">Unity 检查</span></header>
38
+ <main class="page">
39
+ <div class="heading"><div><div class="eyebrow">LOCAL PACKAGE</div><div class="game-title"><h1 id="game-name">Unity 检查</h1><span class="version" id="version">本地目录</span></div><div class="metadata"><span id="unity-version">静态分析</span><span class="sep">·</span><span id="source-date"></span><span class="sep">·</span><span>包内检查</span></div></div><div class="export"><button class="export-button" id="export-toggle" aria-expanded="false" aria-controls="export-menu"><svg><use href="#i-download"/></svg>导出报告<svg class="chevron"><use href="#i-down"/></svg></button><div class="export-menu" id="export-menu" hidden><small>导出完整报告</small><button id="csv">CSV 表格</button><button id="json">JSON 数据</button></div></div></div>
40
+ <section class="overview" aria-label="检查概览"><div><div class="section-label">Overview</div><h2 id="overview-title">检查概览</h2><p id="overview-summary"></p><div class="overview-counts" id="overview-counts"></div></div><div class="package-summary"><div class="package-top"><span>目录文件大小</span><strong id="package-size"></strong><button data-view="assets" aria-label="查看资源分布">查看构成 ↗</button></div><div class="package-bar" id="package-bar" aria-hidden="true"></div><div class="package-legend"><span id="package-largest"></span><span>磁盘文件字节</span></div></div></section>
41
+ <div class="viewbar" role="tablist" aria-label="报告视图"><button class="view-tab active" id="checks-tab" role="tab" aria-selected="true" aria-controls="pane" data-view="checks">检查项</button><button class="view-tab" id="assets-tab" role="tab" aria-selected="false" aria-controls="pane" data-view="assets">资源分布</button><span class="view-count" id="view-count"></span></div>
42
+ <section id="pane" role="tabpanel" aria-labelledby="checks-tab"></section>
43
+ <footer class="report-foot"><span id="report-scope"></span><span id="report-coverage"></span></footer>
44
+ </main>
45
+ </div>
46
+ <div class="backdrop" id="backdrop" hidden></div>
47
+ <aside class="drawer" id="drawer" role="dialog" aria-modal="true" aria-labelledby="detail-title" hidden><div class="drawer-nav"><span>检查详情</span><span class="spacer"></span><span id="detail-position"></span><button class="icon-button" id="previous" aria-label="上一项"><svg><use href="#i-left"/></svg></button><button class="icon-button" id="next" aria-label="下一项"><svg><use href="#i-right"/></svg></button><button class="icon-button" id="close-detail" aria-label="关闭详情"><svg><use href="#i-close"/></svg></button></div><div class="drawer-content" id="detail-content"></div></aside>
48
+ <div class="toast" id="toast" role="status" hidden></div>
49
+ <script id="report-data" type="application/json">__REPORT_DATA__</script>
50
+ <script>
51
+ const machineReport=JSON.parse(document.getElementById('report-data').textContent);
52
+ const metricLabels={wasmFileCount:'Wasm 文件',wasmStoredBytes:'Wasm 文件大小',wasmDecodedBytes:'Wasm 解压后',artifactCount:'产物数',brotliArtifactCount:'Brotli 产物',debugSectionCount:'内嵌调试段',streamingAssetsFileBytes:'StreamingAssets 文件大小',streamingAssetsSubpackageCount:'StreamingAssets 分包'};
53
+ const statusLabels={applied:'包内已确认',not_applied:'包内未应用',partial:'部分应用',unknown:'待确认',not_applicable:'不适用'};
54
+ const report={game:machineReport.project.name,version:'本地目录',sourceDate:machineReport.generatedAt,docs:{},checks:machineReport.checks.map(c=>{
55
+ return {id:c.ruleId,name:c.name,group:['not_applied','partial'].includes(c.status)?'candidate':c.status==='unknown'?'unknown':'known',status:statusLabels[c.status],actual:c.summary,advice:c.nextActions.find(a=>a.kind!=='measure')?.description||c.nextActions[0]?.description||'无',basis:c.reasonCode,
56
+ location:c.evidence.map(e=>e.path+' '+JSON.stringify(e.locator)+' → '+JSON.stringify(e.observed)).join('\n')||'尚无可用于判定的包内证据',
57
+ explanation:c.metrics.length?c.metrics.map(m=>(metricLabels[m.name]||m.name)+':'+(m.unit==='bytes'?(m.value/1048576).toFixed(2)+' MiB':m.value)).join(' · '):c.summary,
58
+ missing:c.missingInputs.map(i=>i.description).join(' ')||'无',verify:c.verification,doc:c.ruleId};
59
+ })};
60
+ machineReport.checks.forEach(c=>report.docs[c.ruleId]={...c.documentation,revision:''});
61
+ const rank={candidate:0,unknown:1,known:2};report.checks.sort((a,b)=>rank[a.group]-rank[b.group]);
62
+ const $=s=>document.querySelector(s),$$=s=>Array.from(document.querySelectorAll(s));
63
+ const esc=x=>String(x??'').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
64
+ const icon=n=>`<svg aria-hidden="true"><use href="#i-${n}"/></svg>`;
65
+ const counts={all:report.checks.length,candidate:0,unknown:0,known:0};
66
+ report.checks.forEach(x=>counts[x.group]++);
67
+ const groupNames={candidate:'优化候选',unknown:'待补材料',known:'已确认'};
68
+ const presentation={};
69
+ const colors=['#9cac9b','#bac8ba','#cbd4c9','#e2e7df'];
70
+ const totalBytes=machineReport.package.totalFileBytes||1;
71
+ const groups=machineReport.package.groups.map((g,i)=>({name:g.name,bytes:g.sizeBytes,color:colors[i%colors.length],id:g.name==='StreamingAssets'?'unity.resources.delivery':g.name==='wasmcode'?'unity.wasm.split':null}));
72
+ let filter='all',query='',view='checks',selected=null,returnFocus=null,toastTimer;
73
+ const mib=n=>(n/1048576).toFixed(2);
74
+ const display=x=>presentation[x.id]||{title:x.name,summary:x.actual,next:x.advice};
75
+ function items(){return report.checks.filter(x=>(filter==='all'||x.group===filter)&&[x.name,x.actual,x.advice,x.location,display(x).title].join(' ').toLowerCase().includes(query.toLowerCase()));}
76
+ function toast(message){clearTimeout(toastTimer);$('#toast').textContent=message;$('#toast').hidden=false;toastTimer=setTimeout(()=>{$('#toast').hidden=true;},3000);}
77
+ function renderOverview(){
78
+ $('#game-name').textContent=report.game;$('#version').textContent=report.version;$('#unity-version').textContent='静态分析';$('#source-date').textContent=report.sourceDate;
79
+ $('#overview-title').textContent=counts.candidate+' 项优化候选 · '+counts.unknown+' 项待确认';
80
+ $('#overview-summary').textContent='已判定 '+machineReport.coverage.evaluatedRules+' / '+machineReport.checks.length+' 项。'+(machineReport.comparison?'与基线相比 '+machineReport.comparison.changes.length+' 项检查变化。':'')+'运行耗时与优化收益需真机测量。';
81
+ $('#package-size').textContent=mib(machineReport.package.totalFileBytes)+' MiB';
82
+ $('#package-largest').textContent=groups.length?groups[0].name+' 占 '+(groups[0].bytes/totalBytes*100).toFixed(1)+'%':'未读取文件';
83
+ $('#report-scope').textContent='包内静态检查 · '+({partial:'待补材料',completed:'检查完成',failed:'检查失败'}[machineReport.status])+' · '+machineReport.project.sourceHash?.slice(0,12);
84
+ $('#report-coverage').textContent=machineReport.coverage.scannedFiles+' 个文件 · 资源对象尚未解析';
85
+ $('#source-date').textContent=report.sourceDate.replace('T',' ').slice(0,19)+' UTC';
86
+ $('#overview-counts').innerHTML=['candidate','unknown','known'].map(g=>`<button class="count-link ${g}" data-summary-filter="${g}"><span class="tiny-dot"></span>${counts[g]} ${groupNames[g]}</button>`).join('');
87
+ $('#package-bar').innerHTML=groups.map(g=>`<span style="width:${g.bytes/totalBytes*100}%;--color:${g.color}"></span>`).join('');
88
+ }
89
+ function setView(nextView){view=nextView;$$('.view-tab').forEach(b=>{const active=b.dataset.view===view;b.classList.toggle('active',active);b.setAttribute('aria-selected',String(active));});$('#pane').setAttribute('aria-labelledby',view==='checks'?'checks-tab':'assets-tab');renderPane();}
90
+ function renderPane(){
91
+ if(view==='checks'){
92
+ $('#pane').innerHTML=`<div class="filterbar"><div class="filters" aria-label="筛选检查结果">${[['all','全部'],['candidate','优化候选'],['unknown','待补材料'],['known','已确认']].map(([g,label])=>`<button class="filter ${filter===g?'active':''}" data-filter="${g}" aria-pressed="${filter===g}">${label}<span class="num">${counts[g]}</span></button>`).join('')}</div><label class="search">${icon('search')}<input id="search" type="search" aria-label="搜索检查项" placeholder="搜索检查项" value="${esc(query)}"></label></div><div id="results"></div>`;
93
+ renderTable();
94
+ }else{
95
+ $('#view-count').textContent='包体与资源';
96
+ $('#pane').innerHTML=`<div class="resource-intro"><h2>包体构成</h2><p>目录文件 · ${mib(machineReport.package.totalFileBytes)} MiB</p></div><div class="resource-list">${groups.map(g=>`<div class="resource-row"><strong>${g.id?`<button data-open="${g.id}" aria-haspopup="dialog">${esc(g.name)}</button>`:esc(g.name)}</strong><span class="resource-meter"><span style="width:${g.bytes/totalBytes*100}%;--color:${g.color}"></span></span><span class="resource-bytes">${mib(g.bytes)} MiB</span><span class="resource-percent">${(g.bytes/totalBytes*100).toFixed(1)}%</span></div>`).join('')}</div><p class="resource-note">按实际文件大小统计,压缩文件保留压缩后的大小。</p><div class="resource-bottom"><div><h3>纹理与音频</h3><p>当前未解析资源对象。请补充同次构建的资源清单,或接入资源解析器。</p></div><div><h3>运行性能</h3><p>当前报告未包含真机采样。</p></div></div>`;
97
+ }
98
+ }
99
+ function renderTable(){
100
+ const rows=items();$('#view-count').textContent=rows.length===report.checks.length?report.checks.length+' 项检查':`${rows.length} / ${report.checks.length} 项`;
101
+ $('#results').innerHTML=rows.length?`<table class="checks" aria-label="Unity 检查结果"><thead><tr><th scope="col">检查项与发现</th><th scope="col">结果</th><th scope="col">下一步</th><th scope="col"><span class="sr-only">详情</span></th></tr></thead><tbody>${rows.map(x=>{const p=display(x);return `<tr data-row="${x.id}" class="${selected===x.id?'selected':''}"><td><div class="finding"><span class="finding-icon ${x.group}">${icon(x.group)}</span><div><button class="finding-title" data-open="${x.id}" aria-haspopup="dialog">${esc(p.title)}</button><p class="finding-summary">${esc(p.summary)}</p></div></div></td><td><span class="status ${x.group}">${esc(p.result||x.status)}</span></td><td class="next-step">${esc(p.next)}</td><td>${icon('right')}</td></tr>`;}).join('')}</tbody></table>`:`<div class="empty">没有匹配的检查项<button id="clear-filter">清除筛选</button></div>`;
102
+ }
103
+ function openDetail(id,trigger){
104
+ const wasOpen=!$('#drawer').hidden;if(!wasOpen)returnFocus=trigger||document.activeElement;
105
+ selected=id;renderDetail();$$('[data-row]').forEach(row=>row.classList.toggle('selected',row.dataset.row===selected));
106
+ $('#export-menu').hidden=true;$('#export-toggle').setAttribute('aria-expanded','false');
107
+ $('#drawer').hidden=false;$('#backdrop').hidden=false;$('#report-page').inert=true;document.body.style.overflow='hidden';$('#detail-content').scrollTop=0;
108
+ if(!wasOpen)$('#close-detail').focus();
109
+ }
110
+ function detailItems(){const list=items();return list.some(x=>x.id===selected)?list:report.checks;}
111
+ function renderDetail(){
112
+ const x=report.checks.find(x=>x.id===selected),p=display(x),d=report.docs[x.doc],list=detailItems(),index=list.findIndex(x=>x.id===selected);
113
+ $('#detail-position').textContent=`${index+1} / ${list.length}`;$('#previous').disabled=index===0;$('#next').disabled=index===list.length-1;
114
+ $('#detail-content').innerHTML=`<div class="drawer-kicker"><span>${groupNames[x.group]}</span><span>·</span><span class="status ${x.group}">${esc(p.result||x.status)}</span></div><h2 id="detail-title">${esc(p.title)}</h2><p class="detail-lead">${esc(x.actual)}</p>${p.context?`<div class="impact-line">${icon('candidate')}<span>${esc(p.context)}</span></div>`:''}<section class="detail-section"><h3>判断依据</h3><p>${esc(x.explanation)}</p><div class="evidence-box">${esc(x.location)}</div><p class="detail-note">还需确认:${esc(x.missing)}</p></section><section class="detail-section action-section"><h3>下一步怎么做</h3><p>${esc(x.advice)}</p><a class="document-link" href="${esc(d.url)}" target="_blank" rel="noopener noreferrer"><span>${esc(d.title)}<small>${d.access==='internal'?'飞书内部文档':'Unity 官方文档'}${d.revision?' · '+esc(d.revision):''}</small></span>${icon('external')}</a></section><section class="detail-section"><h3>改完后如何验证</h3><p>${esc(x.verify)}</p></section><div class="detail-meta">${esc(x.id)}<br>${esc(report.version)} · ${esc(report.sourceDate)}</div>`;
115
+ }
116
+ function closeDetail(){
117
+ $('#drawer').hidden=true;$('#backdrop').hidden=true;$('#report-page').inert=false;document.body.style.overflow='';selected=null;$$('[data-row]').forEach(row=>row.classList.remove('selected'));
118
+ if(returnFocus?.isConnected)returnFocus.focus();else $('#checks-tab').focus();
119
+ }
120
+ function moveDetail(delta){const list=detailItems(),i=list.findIndex(x=>x.id===selected),next=list[i+delta];if(next)openDetail(next.id);}
121
+ document.addEventListener('click',e=>{
122
+ const b=e.target.closest('button');if(b?.dataset.open){openDetail(b.dataset.open,b);return;}
123
+ const row=e.target.closest('[data-row]');if(row){openDetail(row.dataset.row,row.querySelector('button'));return;}
124
+ if(b?.dataset.view){setView(b.dataset.view);return;}
125
+ if(b?.dataset.summaryFilter){filter=b.dataset.summaryFilter;query='';setView('checks');return;}
126
+ if(b?.dataset.filter){filter=b.dataset.filter;renderPane();return;}
127
+ if(b?.id==='clear-filter'){filter='all';query='';renderPane();return;}
128
+ if(!e.target.closest('.export')){$('#export-menu').hidden=true;$('#export-toggle').setAttribute('aria-expanded','false');}
129
+ });
130
+ $('#pane').addEventListener('input',e=>{if(e.target.id==='search'){query=e.target.value;renderTable();}});
131
+ $('#pane').addEventListener('keydown',e=>{
132
+ const button=e.target.closest('[data-open]');if(!button||!['ArrowUp','ArrowDown'].includes(e.key))return;
133
+ const buttons=$$('#results [data-open]'),index=buttons.indexOf(button),next=buttons[index+(e.key==='ArrowDown'?1:-1)];if(next){e.preventDefault();next.focus();}
134
+ });
135
+ document.addEventListener('keydown',e=>{
136
+ if(e.key==='Escape'){if(!$('#drawer').hidden){e.preventDefault();closeDetail();}else if(!$('#export-menu').hidden){$('#export-menu').hidden=true;$('#export-toggle').setAttribute('aria-expanded','false');$('#export-toggle').focus();}return;}
137
+ if(e.key==='Tab'&&!$('#drawer').hidden){const focusable=$$('#drawer button:not(:disabled),#drawer a[href]'),first=focusable[0],last=focusable[focusable.length-1];if(e.shiftKey&&document.activeElement===first){e.preventDefault();last.focus();}else if(!e.shiftKey&&document.activeElement===last){e.preventDefault();first.focus();}}
138
+ });
139
+ $('#backdrop').addEventListener('click',closeDetail);$('#close-detail').addEventListener('click',closeDetail);$('#previous').addEventListener('click',()=>moveDetail(-1));$('#next').addEventListener('click',()=>moveDetail(1));
140
+ $('#export-toggle').addEventListener('click',()=>{const show=$('#export-menu').hidden;$('#export-menu').hidden=!show;$('#export-toggle').setAttribute('aria-expanded',String(show));});
141
+ function download(name,content,type){const u=URL.createObjectURL(new Blob([content],{type})),a=document.createElement('a');a.href=u;a.download=name;a.click();setTimeout(()=>URL.revokeObjectURL(u),1000);$('#export-menu').hidden=true;$('#export-toggle').setAttribute('aria-expanded','false');toast('已导出 '+machineReport.checks.length+' 项检查');}
142
+ function csvCell(v){let s=String(v??'');if(/^[\s]*[=+@-]/.test(s))s="'"+s;return '"'+s.replace(/"/g,'""')+'"';}
143
+ $('#csv').addEventListener('click',()=>{const headers=['ruleId','ruleVersion','name','status','reasonCode','summary','metrics','evidence','missingInputs','nextActions','verification','documentation','sourceHash'];const rows=machineReport.checks.map(c=>[c.ruleId,c.ruleVersion,c.name,c.status,c.reasonCode,c.summary,JSON.stringify(c.metrics),JSON.stringify(c.evidence),JSON.stringify(c.missingInputs),JSON.stringify(c.nextActions),c.verification,c.documentation.url,machineReport.project.sourceHash]);download('unity-check.csv','\uFEFF'+[headers,...rows].map(r=>r.map(csvCell).join(',')).join('\r\n'),'text/csv;charset=utf-8');});
144
+ $('#json').addEventListener('click',()=>download('unity-check.json',JSON.stringify(machineReport,null,2),'application/json;charset=utf-8'));
145
+ renderOverview();renderPane();
146
+ </script>
147
+ </body>
148
+ </html>
@@ -139,6 +139,17 @@ assert.equal(capabilities.commands.vibeUpload.skillWorkflow.keepUploadProcessRun
139
139
  assert.equal(capabilities.commands.vibeUpload.skillWorkflow.realUploadSuccess.simulation, false);
140
140
  assert.equal(capabilities.commands.vibeUpload.appInfoFields.defaultedByCli.includes('privacy_policy'), true);
141
141
  assert.equal(packageJson.files.includes('vibe-upload.md'), true);
142
+ assert.equal(packageJson.files.includes('CHANGELOG.md'), true);
143
+ assert.equal(packageJson.files.includes('skills'), true);
144
+ const skillsResult = runCli(['skills', 'list', '--format', 'json']);
145
+ assertExit(skillsResult, 0, 'skills list');
146
+ const bundledSkills = parseSingleJson(skillsResult, 'skills list');
147
+ assert.equal(bundledSkills.command, 'skills list');
148
+ assert.equal(bundledSkills.platformWrite, false);
149
+ assert.ok(Array.isArray(bundledSkills.skills));
150
+ const installWithoutTarget = runCli(['skills', 'install', '--format', 'json']);
151
+ assertExit(installWithoutTarget, 1, 'skills install without target');
152
+ assert.equal(parseSingleJson(installWithoutTarget, 'skills install without target').errorCode, 'SKILLS_TARGET_REQUIRED');
142
153
  assert.equal(capabilities.structuredOutput.stdoutProtocolOnly, true);
143
154
  assert.equal(capabilities.commands.check.platformWrite, false);
144
155
  assert.equal(capabilities.commands.check.ai.option, '--ai');
@@ -305,6 +316,33 @@ try {
305
316
  } finally {
306
317
  fs.rmSync(packagingFixture, { recursive: true, force: true });
307
318
  }
319
+ const cdnFixture = fs.mkdtempSync(path.join(os.tmpdir(), 'ttmg-installed-cdn-gate-'));
320
+ try {
321
+ fs.writeFileSync(path.join(cdnFixture, 'game.js'), 'console.log("fixture");');
322
+ fs.writeFileSync(path.join(cdnFixture, 'game.json'), '{}');
323
+ fs.mkdirSync(path.join(cdnFixture, 'remote/content-pack'), { recursive: true });
324
+ fs.writeFileSync(path.join(cdnFixture, 'remote/content-pack/asset.bin'), Buffer.alloc(5 * 1024 * 1024));
325
+ fs.writeFileSync(path.join(cdnFixture, 'project.config.json'), JSON.stringify({
326
+ remote_cdn_resources: { base_url: 'https://cdn.example.com/game/', dirs: ['remote/content-pack'] },
327
+ }));
328
+ const checkSizes = () => {
329
+ const checked = runCli(['check', '--dir', cdnFixture, '--format', 'json', '--include-passed']);
330
+ assertExit(checked, 0, 'installed CDN resource size check');
331
+ return parseSingleJson(checked, 'installed CDN resource size check').diagnostics.filter(item => item.type === 'size');
332
+ };
333
+ const hosted = checkSizes();
334
+ for (const name of ['main', 'project']) {
335
+ const diagnostic = hosted.find(item => item.name === name);
336
+ assert.ok(diagnostic?.passed, `installed ttmg-pack counted CDN resources in ${name}`);
337
+ assert.ok(diagnostic.metrics.sizeBytes < 1024, `${name} retained remote resource bytes`);
338
+ }
339
+ fs.writeFileSync(path.join(cdnFixture, 'project.config.json'), '{}');
340
+ const ordinary = checkSizes().find(item => item.name === 'main');
341
+ assert.equal(ordinary?.passed, false, 'undeclared resources must retain the normal main-package limit');
342
+ assert.ok(ordinary.metrics.sizeBytes > 5 * 1024 * 1024);
343
+ } finally {
344
+ fs.rmSync(cdnFixture, { recursive: true, force: true });
345
+ }
308
346
  if (process.platform !== 'win32') {
309
347
  const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ttmg-evidence-symlink-'));
310
348
  try {
@@ -443,6 +481,20 @@ try {
443
481
  fs.rmSync(tempDirectory, { recursive: true, force: true });
444
482
  }
445
483
 
484
+ assertExit(runWithoutWasmBinding(['preview', '--help']), 0, 'preview help without binding');
485
+ const invalidPreview = runCli(['preview', '--format', 'json']);
486
+ assertExit(invalidPreview, 1, 'preview missing client key');
487
+ assert.equal(parseSingleJson(invalidPreview, 'preview').errorCode, 'PREVIEW_INVALID_OPTIONS');
488
+ assert.equal(parseSingleJson(invalidPreview, 'preview').platformWrite, false);
489
+ const invalidLaunch = runCli(['dev', '--mode', 'client-preview', '--launch-config', 'missing-launch-file', '--format', 'json']);
490
+ assertExit(invalidLaunch, 1, 'launch configuration missing file');
491
+ assert.equal(parseSingleJson(invalidLaunch, 'launch configuration').errorCode, 'DEV_LAUNCH_CONFIG_INVALID');
492
+ for (const operation of ['apply', 'restore']) {
493
+ assertExit(runWithoutWasmBinding(['wasm', operation, '--help']), 0, `wasm ${operation} help without binding`);
494
+ const invalid = runCli(['wasm', operation, '--format', 'json']);
495
+ assertExit(invalid, 1, `wasm ${operation} missing options`);
496
+ assert.equal(parseSingleJson(invalid, `wasm ${operation}`).errorCode, 'WASM_APPLY_INVALID_OPTIONS');
497
+ }
446
498
  for (const operation of ['prepare', 'split']) {
447
499
  assertExit(runWithoutWasmBinding(['wasm', operation, '--help']), 0, `wasm ${operation} help without binding`);
448
500
  const invalid = runCli(['wasm', operation, '--format', 'json']);
@@ -479,3 +531,7 @@ const captureSmoke = spawnSync(process.execPath, [path.join(cliRoot, 'scripts/de
479
531
  assertExit(captureSmoke, 0, 'capture built-artifact process smoke');
480
532
  console.log(captureSmoke.stdout.trim());
481
533
  console.log('built CLI agent contract verified');
534
+
535
+ const removedFeaturesSmoke = spawnSync(process.execPath, [path.join(cliRoot, 'scripts/removed-features-smoke.js')], { cwd: cliRoot, encoding: 'utf8', timeout: 90000 });
536
+ assertExit(removedFeaturesSmoke, 0, 'removed features process smoke');
537
+ console.log(removedFeaturesSmoke.stdout.trim());
@@ -0,0 +1,50 @@
1
+ const assert = require('node:assert/strict');
2
+ const fs = require('node:fs');
3
+ const path = require('node:path');
4
+ const vm = require('node:vm');
5
+ const { createRequire } = require('node:module');
6
+ const ts = require('typescript');
7
+
8
+ const root = path.resolve(__dirname, '..');
9
+ const source = path.join(root, 'src/libs/i18n/messages.ts');
10
+ const compiled = ts.transpileModule(fs.readFileSync(source, 'utf8'), {
11
+ compilerOptions: { module: ts.ModuleKind.CommonJS, resolveJsonModule: true, esModuleInterop: true },
12
+ }).outputText;
13
+ const context = { exports: {}, require: createRequire(source) };
14
+ vm.runInNewContext(compiled, context);
15
+ const cli = context.exports.messages;
16
+ const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
17
+ const ide = Object.fromEntries(['en-US', 'zh-CN', 'ja-JP', 'ko-KR'].map(language =>
18
+ [language, read(path.join(root, '../ide/src/i18n/locales', language + '.json'))]));
19
+ const integration = read(path.join(root, 'src/shared/integrationMessages.json'));
20
+ const workerSource = fs.readFileSync(path.join(root, 'scripts/worker.js'), 'utf8');
21
+ const workerFile = ts.createSourceFile('worker.js', workerSource, ts.ScriptTarget.Latest, true);
22
+ let workerCopy;
23
+ const findWorkerMessages = node => {
24
+ if (ts.isVariableDeclaration(node) && node.name.getText(workerFile) === 'messages')
25
+ workerCopy = vm.runInNewContext('(' + node.initializer.getText(workerFile) + ')');
26
+ ts.forEachChild(node, findWorkerMessages);
27
+ };
28
+ findWorkerMessages(workerFile);
29
+ const placeholders = value => (value.match(/\{\{[^{}]+\}\}|\{[a-zA-Z0-9_]+\}/g) || []).sort();
30
+ const flags = value => (value.match(/--[a-zA-Z][\w-]*/g) || []).sort();
31
+ const tags = value => (value.match(/<\/?[a-zA-Z][^>]*>/g) || []).sort();
32
+ const commands = value => (value.match(/\bttmg(?:\s+(?:setup|config|set|lang|dev|upload|preview|check|doctor|build|auth|status|integration|game|categories|wasm|preload|skills|list|install|session|logs|capture|screenshot|sync|observe|test-account|add|login|prepare|split|apply|restore|start|plan|cancel))+/g) || []).sort();
33
+ for (const [name, catalog] of Object.entries({ cli, ide, integration, worker: workerCopy })) {
34
+ for (const language of ['ja-JP', 'ko-KR']) {
35
+ assert.deepEqual(Object.keys(catalog[language]).sort(), Object.keys(catalog['en-US']).sort(), `${name}/${language}: keys`);
36
+ for (const [key, english] of Object.entries(catalog['en-US'])) {
37
+ const value = catalog[language][key];
38
+ assert.equal(typeof value, 'string', `${name}/${language}/${key}: string`);
39
+ assert.ok(value.trim() || !english.trim(), `${name}/${language}/${key}: non-empty`);
40
+ assert.deepEqual(placeholders(value), placeholders(english), `${name}/${language}/${key}: placeholders`);
41
+ assert.deepEqual(flags(value), flags(english), `${name}/${language}/${key}: command options`);
42
+ assert.deepEqual(tags(value), tags(english), `${name}/${language}/${key}: markup`);
43
+ assert.deepEqual(commands(value), commands(english), `${name}/${language}/${key}: literal CLI commands`);
44
+ for (const code of ['en-US', 'zh-CN', 'ja-JP', 'ko-KR'])
45
+ assert.equal(value.includes(code), english.includes(code), `${name}/${language}/${key}: ${code}`);
46
+ assert.ok(!/ZXQ\d+QXZ|\[\[\d+\]\]/i.test(value), `${name}/${language}/${key}: temporary marker`);
47
+ }
48
+ }
49
+ console.log(`${name}: Japanese/Korean keys, placeholders and command options verified (${Object.keys(catalog['en-US']).length} keys)`);
50
+ }
@@ -18,17 +18,19 @@ fs.writeFileSync(rc, JSON.stringify({ cookie: secret }));
18
18
  let mode = 'success'; const calls = [];
19
19
  const server = http.createServer(async (req, res) => {
20
20
  let body = ''; for await (const b of req) body += b;
21
- calls.push({ url: req.url, method: req.method, body: body ? JSON.parse(body) : null, cookie: req.headers.cookie });
21
+ calls.push({ url: req.url, method: req.method, body: body ? JSON.parse(body) : null, cookie: req.headers.cookie,
22
+ ppe: req.headers['x-use-ppe'], lane: req.headers['x-tt-env'] });
22
23
  res.setHeader('content-type', 'application/json');
23
24
  const data = mode === 'auth' ? { code: -401, message: secret }
24
25
  : req.url.includes('/start') ? { code: 0, collect_state: 'open', cookie: secret }
25
26
  : { code: 0, func_ids: [1, 0, 1], boot_func_ids: [0], cookie: secret };
26
27
  res.end(JSON.stringify(data));
27
28
  });
28
- async function run(args) {
29
+ async function run(args, environment = {}) {
29
30
  return new Promise((resolve, reject) => {
30
31
  const child = spawn(process.execPath, ['-r', preload, entry, ...args], { cwd: root,
31
32
  env: { ...process.env, TTMGRC_PATH: rc, TTMG_COLLECT_TEST_PORT: String(server.address().port),
33
+ TTMG_PPE_ENV: '', ...environment,
32
34
  HTTP_PROXY: '', HTTPS_PROXY: '', ALL_PROXY: '', http_proxy: '', https_proxy: '', all_proxy: '',
33
35
  NO_COLOR: '1', FORCE_COLOR: '0' } });
34
36
  let stdout = '', stderr = '';
@@ -49,6 +51,7 @@ function result(r, code = 0) {
49
51
  const a = result(await run(['wasm','collect','start', ...args, '--verbose']));
50
52
  assert.equal(a.collectState,'open'); assert.equal(calls[0].cookie,secret);
51
53
  assert.equal(calls[0].body.reset,false);
54
+ assert.equal(calls[0].ppe,undefined);assert.equal(calls[0].lane,undefined);
52
55
  result(await run(['wasm','collect','start',...args,'--reset']));
53
56
  assert.equal(calls[1].body.reset,true);
54
57
  const beforeDefault = calls.length;
@@ -72,6 +75,9 @@ function result(r, code = 0) {
72
75
  const unknown=await run(['wasm','collect','export',...args,'--reset']);assert.notEqual(unknown.code,0);
73
76
  assert.equal(calls.length,count);
74
77
  assert.deepEqual(fs.readFileSync(input),wasm);
78
+ fs.writeFileSync(rc, JSON.stringify({ cookie: secret }));mode='success';
79
+ result(await run(['wasm','collect','start',...args], { TTMG_PPE_ENV: 'ppe_fixture' }));
80
+ assert.equal(calls.at(-1).ppe,'1');assert.equal(calls.at(-1).lane,'ppe_fixture');
75
81
  console.log('Wasm collect process contract passed: local login transport, reset, export-to-split, clean verbose output; fixture only');
76
82
  })().catch(e => { console.error(e); process.exitCode=1; }).finally(() => {
77
83
  server.closeAllConnections();server.close();fs.rmSync(root,{recursive:true,force:true});
@@ -51,6 +51,10 @@ process.once('message', request => {
51
51
  throw new Error('Native output escaped its assigned directory.');
52
52
  return path.basename(file);
53
53
  });
54
+ detail.artifactRoles = Object.fromEntries([
55
+ ['main', result.mainWasmPath], ['sub', result.subWasmPath], ['archive', result.archivePath],
56
+ ].filter(([, file]) => file).map(([role, file]) => [role, path.basename(file)]));
57
+ detail.splitVersion = Date.now();
54
58
  response = { ok: true, detail };
55
59
  } else throw new Error('Unknown Wasm operation.');
56
60
  response.detail.bindingVersion = require('@anrans001/ttmg-wasmtool/package.json').version;
@@ -2,6 +2,7 @@
2
2
  * 子线程进行编译(Worker)
3
3
  */
4
4
  const { debugPkgs } = require('ttmg-pack');
5
+ const { prepareRemoteResources } = require('./remoteResources');
5
6
  const https = require('https');
6
7
  const chalk = require('chalk');
7
8
  const fs = require('fs');
@@ -11,6 +12,26 @@ const { parentPort } = require('worker_threads');
11
12
  const { execSync } = require('child_process');
12
13
 
13
14
  const messages = {
15
+ 'ja-JP': {
16
+ 'worker.compile.missingClientKey': 'clientKey が指定されていません',
17
+ 'worker.compile.tempDir': 'ローカルデバッグ用アセットの一時ディレクトリ: {dir}',
18
+ 'worker.compile.initOutputFailed': '出力ディレクトリを初期化できませんでした: {error}',
19
+ 'worker.compile.buildFailed': 'ビルドに失敗しました',
20
+ 'worker.update.noGlobalInstall': '{pkgName} のグローバルインストールが見つかりません',
21
+ 'worker.update.available': '新しいバージョンがあります',
22
+ 'worker.update.changelog': '変更履歴:',
23
+ 'worker.update.toUpdate': '次のコマンドで更新してください:',
24
+ },
25
+ 'ko-KR': {
26
+ 'worker.compile.missingClientKey': 'clientKey가 지정되지 않았습니다',
27
+ 'worker.compile.tempDir': '로컬 디버깅 에셋 임시 디렉터리: {dir}',
28
+ 'worker.compile.initOutputFailed': '출력 디렉터리를 초기화하지 못했습니다: {error}',
29
+ 'worker.compile.buildFailed': '빌드에 실패했습니다',
30
+ 'worker.update.noGlobalInstall': '{pkgName}의 전역 설치를 찾을 수 없습니다',
31
+ 'worker.update.available': '새 버전을 사용할 수 있습니다',
32
+ 'worker.update.changelog': '변경 내역:',
33
+ 'worker.update.toUpdate': '다음 명령으로 업데이트하세요:',
34
+ },
14
35
  'en-US': {
15
36
  'worker.compile.missingClientKey': 'Missing clientKey',
16
37
  'worker.compile.tempDir': 'Game local debug assets temp directory: {dir}',
@@ -38,7 +59,7 @@ const messages = {
38
59
  let currentLang = 'en-US';
39
60
 
40
61
  function setWorkerLanguage(lang) {
41
- currentLang = lang === 'zh-CN' ? 'zh-CN' : 'en-US';
62
+ currentLang = Object.prototype.hasOwnProperty.call(messages, lang) ? lang : 'en-US';
42
63
  }
43
64
 
44
65
  function t(key, params = {}) {
@@ -144,7 +165,7 @@ async function compile(context = {}) {
144
165
  parentPort?.postMessage({ type: 'status', status: 'start' });
145
166
 
146
167
  // 调用打包
147
- const { isSuccess, errorMsg, packages, checkResults } = await debugPkgs(
168
+ const { isSuccess, errorMsg, packages, checkResults, packageConfig } = await debugPkgs(
148
169
  {
149
170
  entry: entryDir,
150
171
  output: outputDir,
@@ -167,7 +188,7 @@ async function compile(context = {}) {
167
188
  // concurrency: 4,
168
189
  },
169
190
  {
170
- lang,
191
+ lang: lang === 'zh-CN' ? 'zh-CN' : 'en-US',
171
192
  },
172
193
  );
173
194
  if (fs.existsSync(path.join(outputDir, '__TTMG_TEMP__'))) {
@@ -186,11 +207,14 @@ async function compile(context = {}) {
186
207
  checkResults: checkResults || [],
187
208
  });
188
209
  } else {
210
+ const remoteCdnResources = packageConfig?.remote_cdn_resources;
211
+ prepareRemoteResources(entryDir, outputDir, remoteCdnResources);
189
212
  parentPort?.postMessage({
190
213
  type: 'status',
191
214
  status: 'end',
192
215
  isSuccess: true,
193
216
  packages,
217
+ remoteCdnResources,
194
218
  checkResults: checkResults || [],
195
219
  });
196
220
  }
@@ -0,0 +1,36 @@
1
+ const assert = require('node:assert/strict');
2
+ const { spawnSync } = require('node:child_process');
3
+ const fs = require('node:fs');
4
+ const os = require('node:os');
5
+ const path = require('node:path');
6
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'ttmg-workflow-process-'));
7
+ const cli = path.resolve(__dirname, '../dist/index.js');
8
+ const run = args => spawnSync(process.execPath, [cli, ...args], {
9
+ cwd: root, encoding: 'utf8', timeout: 15000,
10
+ });
11
+ try {
12
+ const before = fs.readdirSync(root);
13
+ const init = run(['init']);
14
+ assert.equal(init.status, 1);
15
+ assert.match(init.stderr, /not supported|暂不支持/);
16
+ assert.deepEqual(fs.readdirSync(root), before);
17
+ assert.ok(!fs.existsSync(path.join(root, 'game.js')));
18
+ assert.ok(!fs.existsSync(path.join(root, 'game.json')));
19
+ const checklist = run(['integration', '--mode', 'iaa', '--format', 'json']);
20
+ assert.equal(checklist.status, 0, checklist.stderr);
21
+ const data = JSON.parse(checklist.stdout);
22
+ assert.equal(data.projectChecked, false);
23
+ assert.equal(data.capabilities.find(x => x.key === 'login').requirement, 'conditional');
24
+ for (const args of [ ['integration', 'unexpected', '--format', 'json'],
25
+ ['integration', '--unknown'], ['integration', '--mode', 'bad', '--format', 'json'],
26
+ ['upload', '--check', '--vibe', '--format', 'json'] ]) assert.notEqual(run(args).status, 0);
27
+ fs.writeFileSync(path.join(root, 'game.json'), JSON.stringify({ subpackages: [{ name: 'level', root: 'level' }] }));
28
+ fs.mkdirSync(path.join(root, 'level'));
29
+ const beforePreload = fs.readFileSync(path.join(root, 'game.json'), 'utf8');
30
+ const start = run(['preload', 'start', '--format', 'json']);
31
+ assert.notEqual(start.status, 0, 'unreleased preload must not be callable');
32
+ assert.equal(fs.readFileSync(path.join(root, 'game.json'), 'utf8'), beforePreload);
33
+ assert.equal(fs.existsSync(path.join(root, '.ttmg', 'preload')), false);
34
+ assert.equal(JSON.parse(run(['capabilities', '--format', 'json']).stdout).commands.preload.available, false);
35
+ console.log('Workflow built CLI smoke passed: unsupported init and preload, checklist, and invalid input.');
36
+ } finally { fs.rmSync(root, { recursive: true, force: true }); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttmg/cli",
3
- "version": "0.4.6-vibe-beta.24",
3
+ "version": "0.4.7",
4
4
  "description": "TikTok Mini Game Command Line Tool",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -8,6 +8,8 @@
8
8
  },
9
9
  "files": [
10
10
  "dist",
11
+ "skills",
12
+ "CHANGELOG.md",
11
13
  "vibe-upload.md"
12
14
  ],
13
15
  "publishConfig": {
@@ -19,38 +21,48 @@
19
21
  "test:game-categories": "node scripts/run-ts-test.js src/commands/common/game/categories.test.ts",
20
22
  "test:vibe": "npm run test:game-categories && node scripts/run-ts-test.js src/commands/common/vibe/vibe.test.ts && node scripts/run-ts-test.js src/commands/common/vibe/preview.test.ts",
21
23
  "test:vibe-process": "node scripts/vibe-upload-smoke.js",
22
- "prepack": "npm run build && npm run verify:dist-version && npm run verify:agent-contract",
24
+ "prepack": "npm run build && npm run verify:dist-version && npm run verify:agent-contract && npm run verify:locales",
23
25
  "build": "node scripts/build.js",
24
26
  "verify:dist-version": "node scripts/verify-dist-version.js",
25
27
  "verify:agent-contract": "node scripts/verify-agent-contract.js",
26
28
  "test:network": "node -r ts-node/register src/commands/native/dev/utils/getLocalIPs.test.ts",
27
- "test:upload-preview": "node scripts/run-ts-test.js src/commands/common/upload.test.ts",
29
+ "test:upload-preview": "node scripts/run-ts-test.js src/commands/common/upload.test.ts && node scripts/run-ts-test.js src/commands/common/preview.test.ts",
28
30
  "test:preview-page": "node scripts/run-ts-test.js src/commands/common/previewPageServer.test.ts",
29
31
  "test:preview-page-detached": "node scripts/run-ts-test.js src/commands/common/previewPageDetached.test.ts",
30
32
  "test:preview-page-process": "node scripts/preview-page-server-smoke.js",
31
33
  "test:login": "node scripts/run-ts-test.js src/commands/common/login.test.ts",
34
+ "test:api-routing": "node scripts/run-ts-test.js src/libs/api/request.test.ts && node scripts/run-ts-test.js src/libs/api/fetchGameInfo.test.ts",
32
35
  "test:auth": "node scripts/run-ts-test.js src/commands/common/auth.test.ts",
33
36
  "test:capabilities": "node scripts/run-ts-test.js src/commands/common/capabilities.test.ts",
37
+ "test:skills": "node scripts/run-ts-test.js src/commands/common/skills.test.ts",
38
+ "test:skills-pack": "node scripts/skills-process.test.js",
34
39
  "test:test-account": "node scripts/run-ts-test.js src/commands/common/testAccount.test.ts",
35
- "test:dev-session": "node scripts/run-ts-test.js src/commands/native/dev/agentSession.test.ts && npm run test:packaging-compatibility",
40
+ "test:dev-session": "node scripts/run-ts-test.js src/commands/native/dev/agentSession.test.ts && node scripts/run-ts-test.js src/commands/native/dev/launchConfig.test.ts && node scripts/run-ts-test.js src/commands/native/dev/background.test.ts && npm run test:packaging-compatibility && npm run test:dev-remote-resources",
36
41
  "test:packaging-compatibility": "node scripts/run-ts-test.js src/commands/native/dev/packagingCompatibility.test.ts",
37
42
  "test:dev-session-command": "node scripts/run-ts-test.js src/commands/native/dev/session.test.ts && node scripts/run-ts-test.js src/commands/native/dev/projectSession.test.ts && node scripts/run-ts-test.js src/commands/native/dev/scanPage.test.ts && node scripts/run-ts-test.js src/commands/native/dev/runtime/logArchive.test.ts && node scripts/run-ts-test.js src/commands/native/dev/capture.test.ts",
38
43
  "test:dev-runtime-event": "node scripts/run-ts-test.js src/commands/native/dev/utils/scoket.test.ts",
39
44
  "test:dev-runtime-client": "node scripts/run-ts-test.js src/commands/native/dev/runtime/runtime.test.ts",
40
45
  "test:dev-session-control": "node scripts/run-ts-test.js src/commands/native/dev/runtime/sessionControl.test.ts && node scripts/run-ts-test.js src/commands/native/dev/runtime/previewWorkflow.test.ts",
41
46
  "test:dev-runtime-session-follow": "node scripts/run-ts-test.js src/commands/native/dev/runtime/runtimeSessionFollow.test.ts",
42
- "test:dev-client-preview-orchestrator": "node scripts/run-ts-test.js src/commands/native/dev/runtime/clientPreviewOrchestrator.test.ts",
47
+ "test:dev-client-preview-orchestrator": "node scripts/run-ts-test.js src/commands/native/dev/runtime/clientPreviewOrchestrator.test.ts && node scripts/run-ts-test.js src/commands/native/dev/runtime/buildExecution.test.ts",
43
48
  "test:dev-watch-change": "node scripts/run-ts-test.js src/commands/native/dev/utils/watchChange.test.ts",
49
+ "test:dev-remote-resources": "node scripts/run-ts-test.js src/commands/native/dev/remoteResources.test.ts",
50
+ "test:dev-remote-process": "node scripts/dev-remote-resources-smoke.js",
44
51
  "test:dev-game-ready-process": "npm run build && node scripts/dev-game-ready-smoke.js",
45
52
  "test:dev-default-process": "npm run build && node scripts/dev-default-smoke.js",
46
53
  "test:dev-client-preview-control-process": "npm run build && node scripts/dev-client-preview-control-smoke.js",
47
54
  "test:check": "node scripts/run-ts-test.js src/commands/native/check/check.test.ts",
48
55
  "test:check-ai": "node scripts/run-ts-test.js src/commands/native/check/ai.test.ts",
56
+ "test:check-unity": "node scripts/run-ts-test.js src/commands/native/check/unity/unity.test.ts",
49
57
  "test:build-structured": "node scripts/run-ts-test.js src/commands/native/build/build.test.ts",
50
58
  "test:doctor": "node scripts/run-ts-test.js src/commands/native/doctor/doctor.test.ts",
51
- "test:wasm": "node scripts/run-ts-test.js src/commands/native/wasm/wasm.test.ts && node scripts/run-ts-test.js src/commands/native/wasm/collect.test.ts && node scripts/acceptance-fixture.test.js",
52
- "test:agent-contract": "npm run test:login && npm run test:auth && npm run test:capabilities && npm run test:test-account && npm run test:upload-preview && npm run test:preview-page && npm run test:check && npm run test:check-ai && npm run test:build-structured && npm run test:doctor && npm run test:wasm && npm run test:dev-session && npm run test:dev-session-command && npm run test:dev-runtime-event && npm run test:dev-runtime-client && npm run test:dev-session-control && npm run test:dev-runtime-session-follow && npm run test:dev-client-preview-orchestrator && npm run test:dev-watch-change && npm run test:network && npm run test:vibe && npx tsc --noEmit && npm run build && npm run test:vibe-process && npm run test:preview-page-process && npm run test:preview-page-detached && npm run verify:dist-version && npm run verify:agent-contract",
53
- "test:agent-contract:full": "npm run test:agent-contract && npm run test:dev-default-process && npm run test:dev-game-ready-process && npm run test:dev-client-preview-control-process && node scripts/dev-workflow-smoke.js",
59
+ "test:wasm": "node scripts/run-ts-test.js src/commands/native/dev/unity/localOnly.test.ts && node scripts/run-ts-test.js src/commands/native/wasm/wasm.test.ts && node scripts/run-ts-test.js src/commands/native/wasm/apply.test.ts && node scripts/run-ts-test.js src/commands/native/wasm/collect.test.ts && node scripts/acceptance-fixture.test.js",
60
+ "test:workflow-review": "node scripts/run-ts-test.js src/commands/common/integration.test.ts && node scripts/run-ts-test.js src/commands/native/preload.test.ts && node scripts/run-ts-test.js src/commands/common/checkedPackage.test.ts",
61
+ "verify:locales": "node scripts/verify-locales.js",
62
+ "test:localization": "npm run verify:locales && node scripts/run-ts-test.js src/shared/languages.test.ts && node scripts/language-route.test.js && node scripts/run-ts-test.js src/commands/native/dev/server/data/changelog.test.ts",
63
+ "test:agent-contract": "npm run test:localization && npm run test:workflow-review && npm run test:api-routing && npm run test:login && npm run test:auth && npm run test:capabilities && npm run test:skills && npm run test:test-account && npm run test:upload-preview && npm run test:preview-page && npm run test:check && npm run test:check-ai && npm run test:check-unity && npm run test:build-structured && npm run test:doctor && npm run test:wasm && npm run test:dev-session && npm run test:dev-session-command && npm run test:dev-runtime-event && npm run test:dev-runtime-client && npm run test:dev-session-control && npm run test:dev-runtime-session-follow && npm run test:dev-client-preview-orchestrator && npm run test:dev-watch-change && npm run test:network && npm run test:vibe && npx tsc --noEmit && npm run build && npm run test:vibe-process && npm run test:preview-page-process && npm run test:preview-page-detached && npm run verify:dist-version && npm run verify:agent-contract && node scripts/unity-check-process.test.js && npm run test:skills-pack && node scripts/localization-process.test.js",
64
+ "test:workflow-process": "node scripts/workflow-review-smoke.js",
65
+ "test:agent-contract:full": "npm run test:agent-contract && npm run test:workflow-process && npm run test:dev-default-process && npm run test:dev-game-ready-process && npm run test:dev-client-preview-control-process && node scripts/dev-workflow-smoke.js && npm run test:dev-remote-process",
54
66
  "publish:beta": "npm publish --registry=https://registry.npmjs.org/ --access public --tag beta",
55
67
  "setup": "node scripts/setup.js",
56
68
  "reset:local-state": "node scripts/resetLocalState.js",
@@ -69,20 +81,18 @@
69
81
  "axios": "^1.11.0",
70
82
  "boxen": "^6.2.1",
71
83
  "chalk": "^4.1.2",
72
- "cheerio": "^1.1.1",
73
84
  "chokidar": "^4.0.3",
74
85
  "chrome-launcher": "^1.2.0",
75
86
  "chrome-remote-interface": "^0.33.3",
76
87
  "commander": "^11.1.0",
77
88
  "esbuild": "^0.25.9",
78
89
  "estraverse": "^5.3.0",
79
- "express": "4.18.2",
90
+ "express": "4.22.3",
80
91
  "express-fileupload": "1.5.2",
81
92
  "express-static-gzip": "^3.0.0",
82
93
  "form-data": "^4.0.4",
83
- "glob": "^11.0.3",
94
+ "glob": "^11.1.0",
84
95
  "got": "^11.8.5",
85
- "handlebars": "4.7.8",
86
96
  "https-proxy-agent": "^5.0.1",
87
97
  "inquirer": "^12.7.0",
88
98
  "jsdom": "^26.1.0",
@@ -93,7 +103,7 @@
93
103
  "p-limit": "5.0.0",
94
104
  "prettier": "^3.6.2",
95
105
  "qrcode": "^1.5.4",
96
- "qs": "6.12.1",
106
+ "qs": "6.17.1",
97
107
  "semver": "^7.7.2",
98
108
  "socks-proxy-agent": "^9.0.0",
99
109
  "ttmg-pack": "0.4.13",