@zubriq/code 0.19.8-2 → 0.19.9-2

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 (245) hide show
  1. package/README.md +5 -1
  2. package/dist/README.md +5 -1
  3. package/dist/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
  4. package/dist/bundled/qc-helper/docs/features/channels/overview.md +23 -12
  5. package/dist/bundled/qc-helper/docs/features/channels/plugins.md +1 -0
  6. package/dist/bundled/qc-helper/docs/features/channels/wecom.md +111 -0
  7. package/dist/bundled/qc-helper/docs/features/hooks.md +36 -34
  8. package/dist/bundled/qc-helper/docs/features/memory.md +1 -1
  9. package/dist/bundled/qc-helper/docs/qwen-serve.md +17 -10
  10. package/dist/bundled/review/SKILL.md +6 -2
  11. package/dist/chunks/{MaxSizedBox-DTQF2MAY.js → MaxSizedBox-DAULPOB3.js} +13 -11
  12. package/dist/chunks/{StandaloneSessionPicker-XYO5V6IL.js → StandaloneSessionPicker-5Z7LVQ7F.js} +28 -23
  13. package/dist/chunks/{acpAgent-STMSDYGP.js → acpAgent-7JXXVE6B.js} +110 -80
  14. package/dist/chunks/{agent-C6YBZNSA.js → agent-S52M66XP.js} +8 -8
  15. package/dist/chunks/{agent-headless-65TQRHOY.js → agent-headless-47CB7RWZ.js} +8 -8
  16. package/dist/chunks/{anthropicContentGenerator-FZQAEMYK.js → anthropicContentGenerator-52G6ZA3D.js} +31 -4
  17. package/dist/chunks/{artifact-tool-H2TNPNP5.js → artifact-tool-D233YJFH.js} +25 -6
  18. package/dist/chunks/{bridge-GHGQNQRB.js → bridge-O6CZID6W.js} +17 -14
  19. package/dist/chunks/{ca-HCMB2I54.js → ca-MKD32FQL.js} +26 -1
  20. package/dist/chunks/{channel-worker-supervisor-B7MSMB5K.js → channel-worker-supervisor-NZQUOEFJ.js} +3 -3
  21. package/dist/chunks/{chunk-ZCMLUE4O.js → chunk-27A4SPWJ.js} +1 -1
  22. package/dist/chunks/{chunk-O3DVJ2JO.js → chunk-2DFYBHN4.js} +507 -64
  23. package/dist/chunks/{chunk-3SBUWSLI.js → chunk-2KQ42WGR.js} +2 -2
  24. package/dist/chunks/{chunk-PADAEB6D.js → chunk-2MZ4AYIT.js} +308 -81
  25. package/dist/chunks/chunk-332PWN27.js +19 -0
  26. package/dist/chunks/{chunk-FVMWEHWU.js → chunk-3B26UVCX.js} +114 -12
  27. package/dist/chunks/{chunk-W6RH6KHR.js → chunk-3GPVYALM.js} +4 -2
  28. package/dist/chunks/{chunk-SVK2TREP.js → chunk-3KV2TYC4.js} +1 -1
  29. package/dist/chunks/{chunk-G7ZG7CA6.js → chunk-3UP777ZS.js} +8 -7
  30. package/dist/chunks/{chunk-TYOF23VK.js → chunk-43W4YSO6.js} +1 -12
  31. package/dist/chunks/{chunk-3Y2SRVRF.js → chunk-4S7YIVL6.js} +3 -3
  32. package/dist/chunks/{chunk-VEB3NYSO.js → chunk-5MBO76SL.js} +5 -0
  33. package/dist/chunks/{chunk-6N76CE6T.js → chunk-65GWYZCU.js} +10 -5
  34. package/dist/chunks/{chunk-Z3VQSA4A.js → chunk-67JZ37FW.js} +1 -1
  35. package/dist/chunks/{chunk-FACTYQFS.js → chunk-72AW57IS.js} +5352 -4135
  36. package/dist/chunks/chunk-A2X3KLC3.js +3807 -0
  37. package/dist/chunks/chunk-A7JD2K4Z.js +28 -0
  38. package/dist/chunks/{chunk-3CRBBLJZ.js → chunk-BAC5H5F4.js} +9 -9
  39. package/dist/chunks/{chunk-46IFEQDM.js → chunk-BIO6D3EL.js} +1 -1
  40. package/dist/chunks/chunk-BLNH4ALH.js +283 -0
  41. package/dist/chunks/{chunk-GXQXFHYV.js → chunk-CBYHA7QC.js} +1 -1
  42. package/dist/chunks/{chunk-NCFY7PWS.js → chunk-CCGOFQV3.js} +51 -2
  43. package/dist/chunks/{chunk-66KNL43D.js → chunk-CD6USWHZ.js} +1 -1
  44. package/dist/chunks/{chunk-J6GMF2DO.js → chunk-CJGGW5FV.js} +66 -7
  45. package/dist/chunks/{chunk-LLVYPOQV.js → chunk-COUVVSMO.js} +2 -2
  46. package/dist/chunks/{chunk-A6XKBVOM.js → chunk-EHLC565U.js} +11 -11
  47. package/dist/chunks/{chunk-VKWGD42I.js → chunk-EKPIW37S.js} +10 -10
  48. package/dist/chunks/{chunk-DNV4FSN5.js → chunk-FBET5XZ2.js} +6 -4
  49. package/dist/chunks/{chunk-UMU5USBC.js → chunk-FNQ4NTFR.js} +14 -153
  50. package/dist/chunks/{chunk-2NL7ED5Q.js → chunk-FV7425LN.js} +22 -1
  51. package/dist/chunks/{chunk-6UBX2BIL.js → chunk-G2XMNE5I.js} +4 -4
  52. package/dist/chunks/{chunk-B34OV7K2.js → chunk-GGQQA4JW.js} +13 -0
  53. package/dist/chunks/chunk-GLE2YUPU.js +34 -0
  54. package/dist/chunks/{chunk-X265R5C6.js → chunk-GN3F6PIU.js} +1 -1
  55. package/dist/chunks/{chunk-TJS7CXNX.js → chunk-HY7JTIS2.js} +5 -5
  56. package/dist/chunks/{chunk-WSVZFWN4.js → chunk-IBY3Q3HG.js} +693 -104
  57. package/dist/chunks/{chunk-VEDR5V7H.js → chunk-ITIH3WEE.js} +8 -8
  58. package/dist/chunks/chunk-JGT7AZCW.js +168 -0
  59. package/dist/chunks/{chunk-PY6PG4BL.js → chunk-K6VOOZB4.js} +6 -5
  60. package/dist/chunks/chunk-LGFAYIKX.js +115 -0
  61. package/dist/chunks/chunk-LOJIM7ZB.js +487 -0
  62. package/dist/chunks/{chunk-FT5ASRN5.js → chunk-LRKOXGF6.js} +5 -5
  63. package/dist/chunks/{chunk-AXYGF5SX.js → chunk-LSB7QUTQ.js} +15 -9
  64. package/dist/chunks/{chunk-QUR23Z2Q.js → chunk-M6F3JCGI.js} +2 -2
  65. package/dist/chunks/{chunk-DH7XPKJV.js → chunk-MCAFUCA2.js} +5 -5
  66. package/dist/chunks/{chunk-SWHGVEH5.js → chunk-O2JNBKLL.js} +1 -1
  67. package/dist/chunks/{chunk-4RQIB5UZ.js → chunk-O2YT7VB4.js} +0 -34
  68. package/dist/chunks/{chunk-4KJ2BPIT.js → chunk-OACJLMLD.js} +2 -38
  69. package/dist/chunks/{chunk-VQZSRYKB.js → chunk-OFGYDQPN.js} +423 -61
  70. package/dist/chunks/{chunk-5XZ6FOTY.js → chunk-ONGYTDFO.js} +1 -1
  71. package/dist/chunks/{chunk-RTCBBRJK.js → chunk-PBLEEGVC.js} +20 -8
  72. package/dist/chunks/{chunk-4KMU5RWV.js → chunk-PJWMYPWC.js} +45 -9
  73. package/dist/chunks/{chunk-65A6UQDZ.js → chunk-QGNRRKJJ.js} +146 -54
  74. package/dist/chunks/{chunk-GSNACUDM.js → chunk-RBXWE376.js} +5 -13
  75. package/dist/chunks/{chunk-COPJASIO.js → chunk-RRI2ZIIA.js} +10 -10
  76. package/dist/chunks/{chunk-GKUVMLJH.js → chunk-RVBG4B2L.js} +3 -3
  77. package/dist/chunks/{chunk-KSPVDFE4.js → chunk-SAIILPQ3.js} +0 -3
  78. package/dist/chunks/{chunk-AKSRZ5BA.js → chunk-SBP3QB6S.js} +17 -111
  79. package/dist/chunks/{chunk-P42OA4GP.js → chunk-TBV35OBU.js} +14 -8
  80. package/dist/chunks/{chunk-HXVVCTID.js → chunk-TWKTKDO7.js} +1 -1
  81. package/dist/chunks/chunk-U3BZFGXZ.js +167 -0
  82. package/dist/chunks/chunk-UIDXQNMV.js +13 -0
  83. package/dist/chunks/{chunk-PIORL4OD.js → chunk-UKV3D7WB.js} +0 -44
  84. package/dist/chunks/{chunk-23TH7TAA.js → chunk-UNP2RK7B.js} +2 -2
  85. package/dist/chunks/{chunk-AGTU5PQ6.js → chunk-UWRIDCTO.js} +4 -4
  86. package/dist/chunks/chunk-V35MD7KN.js +13 -0
  87. package/dist/chunks/{chunk-OMO3UY57.js → chunk-VFGM47DK.js} +681 -1232
  88. package/dist/chunks/{chunk-PMMJS5AM.js → chunk-X4BBHJZ3.js} +4 -3
  89. package/dist/chunks/chunk-XMQOLL5Z.js +8223 -0
  90. package/dist/chunks/chunk-XNXVCNAT.js +88 -0
  91. package/dist/chunks/{chunk-TDGF35EN.js → chunk-XOHNA2S6.js} +1 -1
  92. package/dist/chunks/{chunk-PYWGOON5.js → chunk-XPS3UH2D.js} +1 -1
  93. package/dist/chunks/chunk-YBRZ3S2C.js +942 -0
  94. package/dist/chunks/{chunk-RFIL6REB.js → chunk-YKZIAK7C.js} +119 -29
  95. package/dist/chunks/{chunk-7SZJYZPR.js → chunk-YWRV5OJX.js} +92 -465
  96. package/dist/chunks/chunk-Z3I3QJK3.js +47 -0
  97. package/dist/chunks/{chunk-Z33V6JSK.js → chunk-ZF7UGIJ2.js} +1 -1
  98. package/dist/chunks/chunk-ZL5HN75Q.js +61 -0
  99. package/dist/chunks/{computer-use-BH6F7LI7.js → computer-use-AK2MPP4V.js} +8 -8
  100. package/dist/chunks/{contextCommand-URWDQXBJ.js → contextCommand-XXYJTFCX.js} +12 -11
  101. package/dist/chunks/{cron-create-DDYU4DIR.js → cron-create-JSXEIPVS.js} +1 -1
  102. package/dist/chunks/{cron-delete-DFKOUZWN.js → cron-delete-OIFVEPGU.js} +1 -1
  103. package/dist/chunks/{cron-list-ME5QGAR5.js → cron-list-D4ZX4IOE.js} +1 -1
  104. package/dist/chunks/{daemon-XWG2EGFX.js → daemon-WPAENEBW.js} +71 -3
  105. package/dist/chunks/{daemon-status-provider-CLNN2UY2.js → daemon-status-provider-DOBLLAUR.js} +20 -17
  106. package/dist/chunks/{de-PLLFDERI.js → de-ZFPPQVSF.js} +26 -1
  107. package/dist/chunks/{dist-LPVU3L2M.js → dist-BEXOZXLQ.js} +6 -3792
  108. package/dist/chunks/{dist-7GU63KI5.js → dist-E6UANPIM.js} +1 -1
  109. package/dist/chunks/{dist-VHBP2PIG.js → dist-H2AEJCZ5.js} +2 -2
  110. package/dist/chunks/{dist-3UDX5T4T.js → dist-O2IRTRPP.js} +1 -1
  111. package/dist/chunks/dist-SCFLLYMK.js +3217 -0
  112. package/dist/chunks/{dist-H4HHZYCI.js → dist-Z34QPAQW.js} +2 -2
  113. package/dist/chunks/{earlyInputCapture-SFINSVH2.js → earlyInputCapture-QX7FKEPY.js} +8 -8
  114. package/dist/chunks/{edit-5OJRPFGZ.js → edit-MNTA2GNC.js} +9 -9
  115. package/dist/chunks/{en-AXARKOWO.js → en-N4EPZAQI.js} +31 -2
  116. package/dist/chunks/{enter-worktree-HK54JBSR.js → enter-worktree-WAG3SZ2O.js} +8 -8
  117. package/dist/chunks/{enterPlanMode-5GXOH5PQ.js → enterPlanMode-THDBOOSG.js} +8 -8
  118. package/dist/chunks/environment-AE6MZDKE.js +90 -0
  119. package/dist/chunks/{errors-73SZF7O7.js → errors-ITLDJFFZ.js} +10 -10
  120. package/dist/chunks/{exit-worktree-CBX23VFX.js → exit-worktree-ENFBD2E5.js} +8 -8
  121. package/dist/chunks/{exitPlanMode-HADS7AAV.js → exitPlanMode-HOSNRC22.js} +8 -8
  122. package/dist/chunks/{fast-path-3QQW3W6W.js → fast-path-CDB4XPSL.js} +12 -3
  123. package/dist/chunks/{fast-path-settings-RCRXH2JG.js → fast-path-settings-7RIFI3PK.js} +3 -2
  124. package/dist/chunks/{fr-MBMNQSQ6.js → fr-5WWMY53B.js} +30 -1
  125. package/dist/chunks/{gemini-Q4KKJMFH.js → gemini-DR4ABGLP.js} +438 -265
  126. package/dist/chunks/{geminiContentGenerator-SBKWTYFU.js → geminiContentGenerator-GGRSUJG6.js} +1 -1
  127. package/dist/chunks/{glob-ORVXVDJJ.js → glob-S3ESYOFY.js} +8 -8
  128. package/dist/chunks/{grep-TMSN6VOF.js → grep-WVRBUHNE.js} +8 -8
  129. package/dist/chunks/handleAutoUpdate-K73DXUO2.js +65 -0
  130. package/dist/chunks/{initializer-NFO725XQ.js → initializer-O2E3RKOG.js} +17 -13
  131. package/dist/chunks/{ja-HFV5QCHR.js → ja-CUHZOLEJ.js} +30 -1
  132. package/dist/chunks/{list-NP6QTWKD.js → list-7HRANYR2.js} +17 -15
  133. package/dist/chunks/{loadedSettingsAdapter-5PXZC4ZO.js → loadedSettingsAdapter-DC3DUNGS.js} +15 -13
  134. package/dist/chunks/{loop-wakeup-ZW5P6VPY.js → loop-wakeup-OHWEMFP5.js} +2 -2
  135. package/dist/chunks/{ls-L654WOAT.js → ls-7MFU2QYW.js} +1 -1
  136. package/dist/chunks/{lsp-M35KE54Y.js → lsp-XHDTPTGV.js} +2 -4
  137. package/dist/chunks/{mcp-D3C75I47.js → mcp-T676RK3N.js} +15 -13
  138. package/dist/chunks/{monitor-YZFSN33Z.js → monitor-NDBNCHYZ.js} +16 -11
  139. package/dist/chunks/{nonInteractiveCli-U7ZDVLQD.js → nonInteractiveCli-TMB4TLML.js} +52 -44
  140. package/dist/chunks/{notebook-edit-LVCCTW65.js → notebook-edit-XNEWNIID.js} +9 -9
  141. package/dist/chunks/{openaiContentGenerator-G4JHCIGX.js → openaiContentGenerator-2GGVNH4J.js} +6 -6
  142. package/dist/chunks/{pidfile-O37JZBNN.js → pidfile-U6U3KDMU.js} +8 -8
  143. package/dist/chunks/{pt-2THT3YHA.js → pt-OLYN42DS.js} +26 -1
  144. package/dist/chunks/{qwenContentGenerator-SPHKYVJF.js → qwenContentGenerator-FZR3VYQW.js} +10 -10
  145. package/dist/chunks/{read-file-MBGSR77H.js → read-file-2P3MNXBM.js} +3 -3
  146. package/dist/chunks/{record-artifact-PP3LKHTS.js → record-artifact-SQ2OKRJW.js} +3 -3
  147. package/dist/chunks/{ripGrep-WMM4G6QB.js → ripGrep-W5DKLIC2.js} +8 -8
  148. package/dist/chunks/{ru-PER5I4OI.js → ru-MKM2HFDS.js} +26 -1
  149. package/dist/chunks/{run-qwen-serve-3BOGJBTS.js → run-qwen-serve-FGGLFPLG.js} +602 -143
  150. package/dist/chunks/{scheduler-KWPXUSJ4.js → scheduler-CTJIZOWI.js} +8 -8
  151. package/dist/chunks/{send-message-OA6MV4EU.js → send-message-76GT3JMC.js} +1 -1
  152. package/dist/chunks/{serve-6JXYVZRD.js → serve-2OBCBFXZ.js} +17 -14
  153. package/dist/chunks/{server-KOSHCREY.js → server-K5VEB225.js} +1394 -328
  154. package/dist/chunks/{session-5RI6JYZ6.js → session-7EVRNUXC.js} +53 -45
  155. package/dist/chunks/{settings-URS74H6Z.js → settings-7QGLUMUT.js} +24 -20
  156. package/dist/chunks/{shell-6VOD5NUH.js → shell-JSJCMSGS.js} +8 -8
  157. package/dist/chunks/{skill-MKIISOW7.js → skill-DSJPTMVO.js} +15 -5
  158. package/dist/chunks/{spawnChannel-GM7HIIDH.js → spawnChannel-ANPAH5LN.js} +10 -10
  159. package/dist/chunks/{src-X2S7YA5D.js → src-GMUN6GZG.js} +21 -9
  160. package/dist/chunks/{startInteractiveUI-REEHDN4Z.js → startInteractiveUI-ID2KOH7Z.js} +33759 -41620
  161. package/dist/chunks/{task-create-RPFZNB4B.js → task-create-WCHTB435.js} +2 -2
  162. package/dist/chunks/{task-update-5WUG5MVQ.js → task-update-XYWMHJGJ.js} +2 -2
  163. package/dist/chunks/{team-create-MQVOXIHZ.js → team-create-FNAI6F35.js} +8 -8
  164. package/dist/chunks/{team-plan-approval-H74NA3K2.js → team-plan-approval-GPAFPCI7.js} +8 -8
  165. package/dist/chunks/{theme-manager-YMC4EJQO.js → theme-manager-366AQFJU.js} +8 -8
  166. package/dist/chunks/{tool-search-VUJGWH7W.js → tool-search-GVSOY72G.js} +6 -23
  167. package/dist/chunks/total-session-admission-FUTVSIVT.js +72 -0
  168. package/dist/chunks/{trustedFolders-UMMVN4P2.js → trustedFolders-2J5VZVXS.js} +9 -9
  169. package/dist/chunks/updateCheck-BHMVBNNI.js +65 -0
  170. package/dist/chunks/{validateNonInterActiveAuth-ORA3KCZO.js → validateNonInterActiveAuth-6BNWQW3V.js} +49 -41
  171. package/dist/chunks/{version-II46VXNW.js → version-SI22TR43.js} +2 -1
  172. package/dist/chunks/{workflow-KYFPOWKK.js → workflow-EGCATP2M.js} +9 -9
  173. package/dist/chunks/{workspace-providers-status-QDQEYCHT.js → workspace-providers-status-NSB2VFSX.js} +18 -15
  174. package/dist/chunks/workspace-registry-B3YUZ2VM.js +74 -0
  175. package/dist/chunks/{workspace-service-YBVUOSP7.js → workspace-service-U23V3DKO.js} +21 -19
  176. package/dist/chunks/{workspace-skills-status-3ASS4VEE.js → workspace-skills-status-3OHN6C62.js} +16 -14
  177. package/dist/chunks/{write-file-7ZHZO4K5.js → write-file-YJHRI5NS.js} +9 -9
  178. package/dist/chunks/{zh-RS3HZHFH.js → zh-J4F6QWQV.js} +31 -2
  179. package/dist/chunks/{zh-TW-L5GRQ4S4.js → zh-TW-XVDWOLSW.js} +31 -2
  180. package/dist/cli.js +11 -11
  181. package/dist/locales/ca.js +30 -0
  182. package/dist/locales/de.js +30 -0
  183. package/dist/locales/en.js +38 -2
  184. package/dist/locales/fr.js +36 -0
  185. package/dist/locales/ja.js +36 -0
  186. package/dist/locales/pt.js +30 -0
  187. package/dist/locales/ru.js +30 -0
  188. package/dist/locales/zh-TW.js +38 -2
  189. package/dist/locales/zh.js +38 -2
  190. package/dist/package.json +3 -3
  191. package/dist/web-shell/assets/{arc-C6tzvtOa.js → arc-BWyoJpY2.js} +1 -1
  192. package/dist/web-shell/assets/{architectureDiagram-3BPJPVTR-DSYQFGn9.js → architectureDiagram-3BPJPVTR-BT0mGrz2.js} +1 -1
  193. package/dist/web-shell/assets/{blockDiagram-GPEHLZMM-CHjBdXAD.js → blockDiagram-GPEHLZMM-BLgUWvyf.js} +1 -1
  194. package/dist/web-shell/assets/{c4Diagram-AAUBKEIU-BQzK6Yyb.js → c4Diagram-AAUBKEIU-DYx9M7oU.js} +1 -1
  195. package/dist/web-shell/assets/channel-wmPUGHtg.js +1 -0
  196. package/dist/web-shell/assets/{chunk-2J33WTMH-hpP2p3Ij.js → chunk-2J33WTMH-CfMHWbuZ.js} +1 -1
  197. package/dist/web-shell/assets/{chunk-4BX2VUAB-B5KtK1JJ.js → chunk-4BX2VUAB-B1URoqEV.js} +1 -1
  198. package/dist/web-shell/assets/{chunk-55IACEB6-BDv6Mfr2.js → chunk-55IACEB6-DAIaM4QF.js} +1 -1
  199. package/dist/web-shell/assets/{chunk-727SXJPM-BevPWfrX.js → chunk-727SXJPM-B2X34knw.js} +1 -1
  200. package/dist/web-shell/assets/{chunk-AQP2D5EJ-ChDrz2ad.js → chunk-AQP2D5EJ-Cif-zLTQ.js} +1 -1
  201. package/dist/web-shell/assets/{chunk-FMBD7UC4-ClMdVSDs.js → chunk-FMBD7UC4-H18WCXdY.js} +1 -1
  202. package/dist/web-shell/assets/{chunk-ND2GUHAM-BceV8kZS.js → chunk-ND2GUHAM-YFtetHi0.js} +1 -1
  203. package/dist/web-shell/assets/{chunk-QZHKN3VN-DtyK2wwc.js → chunk-QZHKN3VN-By2hiH3r.js} +1 -1
  204. package/dist/web-shell/assets/classDiagram-4FO5ZUOK-BA2ljEjW.js +1 -0
  205. package/dist/web-shell/assets/classDiagram-v2-Q7XG4LA2-BA2ljEjW.js +1 -0
  206. package/dist/web-shell/assets/{cose-bilkent-S5V4N54A-BGMsqwmE.js → cose-bilkent-S5V4N54A-VrcnnLZu.js} +1 -1
  207. package/dist/web-shell/assets/{dagre-BM42HDAG-C-71clpF.js → dagre-BM42HDAG-CGo-IaVV.js} +1 -1
  208. package/dist/web-shell/assets/{diagram-2AECGRRQ-WIzzlkec.js → diagram-2AECGRRQ-Dl4QjzIB.js} +1 -1
  209. package/dist/web-shell/assets/{diagram-5GNKFQAL-CtnhZUP1.js → diagram-5GNKFQAL-qMLmsO0u.js} +1 -1
  210. package/dist/web-shell/assets/{diagram-KO2AKTUF-CS_IUezp.js → diagram-KO2AKTUF-CHlmuxPI.js} +1 -1
  211. package/dist/web-shell/assets/{diagram-LMA3HP47-BQnGRwN9.js → diagram-LMA3HP47-BUwU3GwT.js} +1 -1
  212. package/dist/web-shell/assets/{diagram-OG6HWLK6-By2VIocq.js → diagram-OG6HWLK6-HEhwPDUM.js} +1 -1
  213. package/dist/web-shell/assets/{erDiagram-TEJ5UH35-Dy8WeNkr.js → erDiagram-TEJ5UH35-1n0llBmM.js} +1 -1
  214. package/dist/web-shell/assets/{flowDiagram-I6XJVG4X-Diu_4y0w.js → flowDiagram-I6XJVG4X-BN74uMnt.js} +1 -1
  215. package/dist/web-shell/assets/{ganttDiagram-6RSMTGT7-CH8euujP.js → ganttDiagram-6RSMTGT7-BoOq78i3.js} +1 -1
  216. package/dist/web-shell/assets/{gitGraphDiagram-PVQCEYII-DHiObZq1.js → gitGraphDiagram-PVQCEYII-CN8b00c8.js} +1 -1
  217. package/dist/web-shell/assets/index-CNwoO1Cn.js +783 -0
  218. package/dist/web-shell/assets/index-CWQ0z6kZ.css +5 -0
  219. package/dist/web-shell/assets/{infoDiagram-5YYISTIA-CvC9A6fh.js → infoDiagram-5YYISTIA-CCurnIna.js} +1 -1
  220. package/dist/web-shell/assets/{ishikawaDiagram-YF4QCWOH-BK46kC4E.js → ishikawaDiagram-YF4QCWOH-AwuRqdUP.js} +1 -1
  221. package/dist/web-shell/assets/{journeyDiagram-JHISSGLW-B2TIiKq4.js → journeyDiagram-JHISSGLW-B7IICk-E.js} +1 -1
  222. package/dist/web-shell/assets/{kanban-definition-UN3LZRKU-Bh0WAulO.js → kanban-definition-UN3LZRKU-BYF0OKhx.js} +1 -1
  223. package/dist/web-shell/assets/{linear-Bxe9SHMk.js → linear-GWWguGfD.js} +1 -1
  224. package/dist/web-shell/assets/{mermaid.core-B1Pv6D5B.js → mermaid.core-JqtkxvCl.js} +5 -5
  225. package/dist/web-shell/assets/{mindmap-definition-RKZ34NQL-Bz0joLH8.js → mindmap-definition-RKZ34NQL-B0MmHsZ6.js} +1 -1
  226. package/dist/web-shell/assets/{pieDiagram-4H26LBE5-CnN4x-VS.js → pieDiagram-4H26LBE5-DhImUZLQ.js} +1 -1
  227. package/dist/web-shell/assets/{quadrantDiagram-W4KKPZXB-BYWD4xO4.js → quadrantDiagram-W4KKPZXB-DGeSC3DT.js} +1 -1
  228. package/dist/web-shell/assets/{requirementDiagram-4Y6WPE33-B4MEhI9h.js → requirementDiagram-4Y6WPE33-DkspY6Re.js} +1 -1
  229. package/dist/web-shell/assets/{sankeyDiagram-5OEKKPKP-Dk_FgKLp.js → sankeyDiagram-5OEKKPKP-CaOofS2x.js} +1 -1
  230. package/dist/web-shell/assets/{sequenceDiagram-3UESZ5HK-B4ksiBZQ.js → sequenceDiagram-3UESZ5HK-DFQ_kFnN.js} +1 -1
  231. package/dist/web-shell/assets/{stateDiagram-AJRCARHV-CYf0xSPl.js → stateDiagram-AJRCARHV-D3snw0Tz.js} +1 -1
  232. package/dist/web-shell/assets/stateDiagram-v2-BHNVJYJU-BbSm_9d0.js +1 -0
  233. package/dist/web-shell/assets/{timeline-definition-PNZ67QCA-0CXeWHNY.js → timeline-definition-PNZ67QCA-l4zH8nLM.js} +1 -1
  234. package/dist/web-shell/assets/{vennDiagram-CIIHVFJN-DHoYY9v2.js → vennDiagram-CIIHVFJN-BnRlA98M.js} +1 -1
  235. package/dist/web-shell/assets/{wardley-L42UT6IY-D_65qshr.js → wardley-L42UT6IY-BS0xUdmd.js} +1 -1
  236. package/dist/web-shell/assets/{wardleyDiagram-YWT4CUSO-Cv90x1sd.js → wardleyDiagram-YWT4CUSO-DKGBUWyQ.js} +1 -1
  237. package/dist/web-shell/assets/{xychartDiagram-2RQKCTM6-5FQCYJyh.js → xychartDiagram-2RQKCTM6-DVb2HuOB.js} +1 -1
  238. package/dist/web-shell/index.html +2 -2
  239. package/package.json +3 -2
  240. package/dist/web-shell/assets/channel-V-ZaJrA6.js +0 -1
  241. package/dist/web-shell/assets/classDiagram-4FO5ZUOK-s-H0snGT.js +0 -1
  242. package/dist/web-shell/assets/classDiagram-v2-Q7XG4LA2-s-H0snGT.js +0 -1
  243. package/dist/web-shell/assets/index-DW75jq0K.css +0 -5
  244. package/dist/web-shell/assets/index-tiCo0xbZ.js +0 -779
  245. package/dist/web-shell/assets/stateDiagram-v2-BHNVJYJU-CMtrFRUb.js +0 -1
@@ -5,10 +5,10 @@ import {
5
5
  } from "./chunk-KHDZHZMH.js";
6
6
  import {
7
7
  getCliVersion
8
- } from "./chunk-TYOF23VK.js";
8
+ } from "./chunk-A7JD2K4Z.js";
9
9
  import {
10
10
  IdeClient
11
- } from "./chunk-FACTYQFS.js";
11
+ } from "./chunk-72AW57IS.js";
12
12
  import {
13
13
  createDebugLogger
14
14
  } from "./chunk-22MNNNXE.js";
@@ -27,7 +27,7 @@ import { execFile } from "node:child_process";
27
27
 
28
28
  // packages/cli/src/generated/git-commit.ts
29
29
  init_esbuild_shims();
30
- var GIT_COMMIT_INFO = "63e612d";
30
+ var GIT_COMMIT_INFO = "82f4dc1";
31
31
 
32
32
  // packages/cli/src/utils/systemInfo.ts
33
33
  var debugLogger = createDebugLogger("STATUS");
@@ -26,9 +26,6 @@ function isTerminalGoalStatusKind(kind) {
26
26
  }
27
27
  __name(isTerminalGoalStatusKind, "isTerminalGoalStatusKind");
28
28
 
29
- // packages/cli/src/ui/commands/types.ts
30
- init_esbuild_shims();
31
-
32
29
  export {
33
30
  isTerminalGoalStatusKind
34
31
  };
@@ -1,10 +1,13 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ import {
4
+ eastAsianWidth
5
+ } from "./chunk-LGFAYIKX.js";
3
6
  import {
4
7
  ansiRegex,
5
8
  init_ansi_regex,
6
9
  stripAnsi
7
- } from "./chunk-FACTYQFS.js";
10
+ } from "./chunk-72AW57IS.js";
8
11
  import {
9
12
  init_esbuild_shims
10
13
  } from "./chunk-A4BMJM77.js";
@@ -26,109 +29,6 @@ var require_emoji_regex = __commonJS({
26
29
 
27
30
  // packages/cli/node_modules/string-width/index.js
28
31
  init_esbuild_shims();
29
-
30
- // node_modules/get-east-asian-width/index.js
31
- init_esbuild_shims();
32
-
33
- // node_modules/get-east-asian-width/lookup.js
34
- init_esbuild_shims();
35
-
36
- // node_modules/get-east-asian-width/lookup-data.js
37
- init_esbuild_shims();
38
- var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
39
- var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
40
- var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
41
- var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
42
- var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
43
-
44
- // node_modules/get-east-asian-width/utilities.js
45
- init_esbuild_shims();
46
- var isInRange = /* @__PURE__ */ __name((ranges, codePoint) => {
47
- let low = 0;
48
- let high = Math.floor(ranges.length / 2) - 1;
49
- while (low <= high) {
50
- const mid = Math.floor((low + high) / 2);
51
- const i = mid * 2;
52
- if (codePoint < ranges[i]) {
53
- high = mid - 1;
54
- } else if (codePoint > ranges[i + 1]) {
55
- low = mid + 1;
56
- } else {
57
- return true;
58
- }
59
- }
60
- return false;
61
- }, "isInRange");
62
-
63
- // node_modules/get-east-asian-width/lookup.js
64
- var minimumAmbiguousCodePoint = ambiguousRanges[0];
65
- var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
66
- var minimumFullWidthCodePoint = fullwidthRanges[0];
67
- var maximumFullWidthCodePoint = fullwidthRanges.at(-1);
68
- var minimumHalfWidthCodePoint = halfwidthRanges[0];
69
- var maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
70
- var minimumNarrowCodePoint = narrowRanges[0];
71
- var maximumNarrowCodePoint = narrowRanges.at(-1);
72
- var minimumWideCodePoint = wideRanges[0];
73
- var maximumWideCodePoint = wideRanges.at(-1);
74
- var commonCjkCodePoint = 19968;
75
- var [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
76
- function findWideFastPathRange(ranges) {
77
- let fastPathStart = ranges[0];
78
- let fastPathEnd = ranges[1];
79
- for (let index = 0; index < ranges.length; index += 2) {
80
- const start = ranges[index];
81
- const end = ranges[index + 1];
82
- if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) {
83
- return [start, end];
84
- }
85
- if (end - start > fastPathEnd - fastPathStart) {
86
- fastPathStart = start;
87
- fastPathEnd = end;
88
- }
89
- }
90
- return [fastPathStart, fastPathEnd];
91
- }
92
- __name(findWideFastPathRange, "findWideFastPathRange");
93
- var isAmbiguous = /* @__PURE__ */ __name((codePoint) => {
94
- if (codePoint < minimumAmbiguousCodePoint || codePoint > maximumAmbiguousCodePoint) {
95
- return false;
96
- }
97
- return isInRange(ambiguousRanges, codePoint);
98
- }, "isAmbiguous");
99
- var isFullWidth = /* @__PURE__ */ __name((codePoint) => {
100
- if (codePoint < minimumFullWidthCodePoint || codePoint > maximumFullWidthCodePoint) {
101
- return false;
102
- }
103
- return isInRange(fullwidthRanges, codePoint);
104
- }, "isFullWidth");
105
- var isWide = /* @__PURE__ */ __name((codePoint) => {
106
- if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) {
107
- return true;
108
- }
109
- if (codePoint < minimumWideCodePoint || codePoint > maximumWideCodePoint) {
110
- return false;
111
- }
112
- return isInRange(wideRanges, codePoint);
113
- }, "isWide");
114
-
115
- // node_modules/get-east-asian-width/index.js
116
- function validate(codePoint) {
117
- if (!Number.isSafeInteger(codePoint)) {
118
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
119
- }
120
- }
121
- __name(validate, "validate");
122
- function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
123
- validate(codePoint);
124
- if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
125
- return 2;
126
- }
127
- return 1;
128
- }
129
- __name(eastAsianWidth, "eastAsianWidth");
130
-
131
- // packages/cli/node_modules/string-width/index.js
132
32
  var import_emoji_regex = __toESM(require_emoji_regex(), 1);
133
33
  var segmenter = new Intl.Segmenter();
134
34
  var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
@@ -380,7 +280,8 @@ function sanitizeSensitiveText(text, maxLength = 200) {
380
280
  }
381
281
  __name(sanitizeSensitiveText, "sanitizeSensitiveText");
382
282
  var FILENAME_CONTROL_CHARS_REGEX = /[\x00-\x1f\x7f-\x9f]/g;
383
- function escapeFilenameControlChar(ch) {
283
+ var MULTILINE_CONTROL_CHARS_REGEX = /[\x00-\x08\x0b-\x1f\x7f-\x9f]/g;
284
+ function escapeControlChar(ch) {
384
285
  switch (ch) {
385
286
  case "\b":
386
287
  return "\\b";
@@ -398,19 +299,23 @@ function escapeFilenameControlChar(ch) {
398
299
  }
399
300
  }
400
301
  }
401
- __name(escapeFilenameControlChar, "escapeFilenameControlChar");
302
+ __name(escapeControlChar, "escapeControlChar");
402
303
  function sanitizeFilenameForDisplay(name) {
403
304
  return escapeAnsiCtrlCodes(name).replace(
404
305
  FILENAME_CONTROL_CHARS_REGEX,
405
- escapeFilenameControlChar
306
+ escapeControlChar
406
307
  );
407
308
  }
408
309
  __name(sanitizeFilenameForDisplay, "sanitizeFilenameForDisplay");
310
+ function sanitizeMultilineForDisplay(text) {
311
+ return escapeAnsiCtrlCodes(text).replace(
312
+ MULTILINE_CONTROL_CHARS_REGEX,
313
+ escapeControlChar
314
+ );
315
+ }
316
+ __name(sanitizeMultilineForDisplay, "sanitizeMultilineForDisplay");
409
317
 
410
318
  export {
411
- isFullWidth,
412
- isWide,
413
- eastAsianWidth,
414
319
  stringWidth,
415
320
  getAsciiArtWidth,
416
321
  toCodePoints,
@@ -421,7 +326,8 @@ export {
421
326
  wrapToVisualLines,
422
327
  escapeAnsiCtrlCodes,
423
328
  sanitizeSensitiveText,
424
- sanitizeFilenameForDisplay
329
+ sanitizeFilenameForDisplay,
330
+ sanitizeMultilineForDisplay
425
331
  };
426
332
  /**
427
333
  * @license
@@ -8,16 +8,16 @@ import {
8
8
  initializeI18n,
9
9
  resolveLanguageSetting,
10
10
  t
11
- } from "./chunk-COPJASIO.js";
11
+ } from "./chunk-RRI2ZIIA.js";
12
12
  import {
13
13
  IdeClient
14
- } from "./chunk-FACTYQFS.js";
14
+ } from "./chunk-72AW57IS.js";
15
15
  import {
16
16
  AuthEvent,
17
17
  IdeConnectionEvent,
18
18
  logAuth,
19
19
  logIdeConnection
20
- } from "./chunk-O3DVJ2JO.js";
20
+ } from "./chunk-2DFYBHN4.js";
21
21
  import {
22
22
  getErrorMessage
23
23
  } from "./chunk-22MNNNXE.js";
@@ -65,7 +65,14 @@ function validateTheme(settings) {
65
65
  __name(validateTheme, "validateTheme");
66
66
 
67
67
  // packages/cli/src/core/initializer.ts
68
- async function initializeApp(config, settings) {
68
+ async function connectIdeForStartup(config) {
69
+ if (!config.getIdeMode()) return;
70
+ const ideClient = await IdeClient.getInstance();
71
+ await ideClient.connect();
72
+ logIdeConnection(config, new IdeConnectionEvent("start" /* START */));
73
+ }
74
+ __name(connectIdeForStartup, "connectIdeForStartup");
75
+ async function initializeApp(config, settings, options = {}) {
69
76
  await initializeI18n(
70
77
  resolveLanguageSetting(settings.merged.general?.language)
71
78
  );
@@ -73,10 +80,8 @@ async function initializeApp(config, settings) {
73
80
  const authError = await performInitialAuth(config, authType);
74
81
  const themeError = validateTheme(settings);
75
82
  const shouldOpenAuthDialog = !config.getModelsConfig().wasAuthTypeExplicitlyProvided() || !!authError;
76
- if (config.getIdeMode()) {
77
- const ideClient = await IdeClient.getInstance();
78
- await ideClient.connect();
79
- logIdeConnection(config, new IdeConnectionEvent("start" /* START */));
83
+ if (!options.deferIdeConnection) {
84
+ await connectIdeForStartup(config);
80
85
  }
81
86
  return {
82
87
  authError,
@@ -88,6 +93,7 @@ async function initializeApp(config, settings) {
88
93
  __name(initializeApp, "initializeApp");
89
94
 
90
95
  export {
96
+ connectIdeForStartup,
91
97
  initializeApp
92
98
  };
93
99
  /**
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  escapeAnsiCtrlCodes
5
- } from "./chunk-AKSRZ5BA.js";
5
+ } from "./chunk-SBP3QB6S.js";
6
6
  import {
7
7
  wrapper_default
8
8
  } from "./chunk-H6BD2ELD.js";
@@ -0,0 +1,167 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ getInstallationInfo,
5
+ performStandaloneUpdate
6
+ } from "./chunk-YBRZ3S2C.js";
7
+ import {
8
+ init_esbuild_shims
9
+ } from "./chunk-A4BMJM77.js";
10
+ import {
11
+ __name
12
+ } from "./chunk-J2S4EL5Y.js";
13
+
14
+ // packages/cli/src/utils/handleAutoUpdate.ts
15
+ init_esbuild_shims();
16
+
17
+ // packages/cli/src/utils/updateEventEmitter.ts
18
+ init_esbuild_shims();
19
+ import { EventEmitter } from "node:events";
20
+ var updateEventEmitter = new EventEmitter();
21
+
22
+ // packages/cli/src/utils/spawnWrapper.ts
23
+ init_esbuild_shims();
24
+ import { spawn } from "node:child_process";
25
+ var spawnWrapper = spawn;
26
+
27
+ // packages/cli/src/utils/handleAutoUpdate.ts
28
+ import os from "node:os";
29
+ var UPDATE_SUCCESS_MESSAGE = "Update successful! Please restart Qwen Code to use the new version. Switching model providers before restarting may not work correctly.";
30
+ var UPDATE_FAILED_MESSAGE = "Automatic update failed. Please try updating manually.";
31
+ function handleAutoUpdate(info, settings, projectRoot, spawnFn = spawnWrapper) {
32
+ if (!info) {
33
+ return;
34
+ }
35
+ const isAutoUpdateEnabled = settings.merged.general?.enableAutoUpdate !== false;
36
+ const installationInfo = getInstallationInfo(
37
+ projectRoot,
38
+ isAutoUpdateEnabled
39
+ );
40
+ let combinedMessage = info.message;
41
+ if (installationInfo.updateMessage) {
42
+ combinedMessage += `
43
+ ${installationInfo.updateMessage}`;
44
+ }
45
+ updateEventEmitter.emit("update-received", {
46
+ message: combinedMessage
47
+ });
48
+ if (installationInfo.isStandalone && installationInfo.standaloneDir && isAutoUpdateEnabled) {
49
+ performStandaloneUpdate(installationInfo.standaloneDir, info.update.latest).then((result) => {
50
+ const message = result === "deferred" ? "Update downloaded. It will be applied after you exit this session." : "Update successful! The new version will be used on your next run.";
51
+ updateEventEmitter.emit("update-success", { message });
52
+ }).catch((err) => {
53
+ updateEventEmitter.emit("update-failed", {
54
+ message: `Automatic update failed: ${err.message}. Re-run the installer to update manually.`
55
+ });
56
+ });
57
+ return;
58
+ }
59
+ if (!installationInfo.updateCommand || !isAutoUpdateEnabled) {
60
+ return;
61
+ }
62
+ const isNightly = info.update.latest.includes("nightly");
63
+ const updateCommand = installationInfo.updateCommand.replace(
64
+ "@latest",
65
+ isNightly ? "@nightly" : `@${info.update.latest}`
66
+ );
67
+ const isWindows = os.platform() === "win32";
68
+ const shell = isWindows ? "cmd.exe" : "bash";
69
+ const shellArgs = isWindows ? ["/c", updateCommand] : ["-c", updateCommand];
70
+ const updateProcess = spawnFn(shell, shellArgs, { stdio: "pipe" });
71
+ let errorOutput = "";
72
+ updateProcess.stderr.on("data", (data) => {
73
+ errorOutput += data.toString();
74
+ });
75
+ updateProcess.on("close", (code) => {
76
+ if (code === 0) {
77
+ updateEventEmitter.emit("update-success", {
78
+ message: UPDATE_SUCCESS_MESSAGE
79
+ });
80
+ } else {
81
+ updateEventEmitter.emit("update-failed", {
82
+ message: `${UPDATE_FAILED_MESSAGE} (command: ${updateCommand}, stderr: ${errorOutput.trim()})`
83
+ });
84
+ }
85
+ });
86
+ updateProcess.on("error", (err) => {
87
+ updateEventEmitter.emit("update-failed", {
88
+ message: `${UPDATE_FAILED_MESSAGE} (error: ${err.message})`
89
+ });
90
+ });
91
+ return updateProcess;
92
+ }
93
+ __name(handleAutoUpdate, "handleAutoUpdate");
94
+ function setUpdateHandler(addItem, setUpdateInfo, isIdleRef = { current: true }) {
95
+ let successfullyInstalled = false;
96
+ const pendingNotifications = [];
97
+ const addItemOrDefer = /* @__PURE__ */ __name((item) => {
98
+ if (isIdleRef.current) {
99
+ addItem(item, Date.now());
100
+ } else {
101
+ pendingNotifications.push(item);
102
+ }
103
+ }, "addItemOrDefer");
104
+ const handleUpdateRecieved = /* @__PURE__ */ __name((info) => {
105
+ setUpdateInfo(info);
106
+ const savedMessage = info.message;
107
+ setTimeout(() => {
108
+ if (!successfullyInstalled) {
109
+ addItemOrDefer({
110
+ type: "info" /* INFO */,
111
+ text: savedMessage
112
+ });
113
+ }
114
+ setUpdateInfo(null);
115
+ }, 6e4);
116
+ }, "handleUpdateRecieved");
117
+ const handleUpdateFailed = /* @__PURE__ */ __name((data) => {
118
+ setUpdateInfo(null);
119
+ addItemOrDefer({
120
+ type: "error" /* ERROR */,
121
+ text: data?.message ?? UPDATE_FAILED_MESSAGE
122
+ });
123
+ }, "handleUpdateFailed");
124
+ const handleUpdateSuccess = /* @__PURE__ */ __name((data) => {
125
+ successfullyInstalled = true;
126
+ setUpdateInfo(null);
127
+ addItemOrDefer({
128
+ type: "info" /* INFO */,
129
+ text: data?.message ?? UPDATE_SUCCESS_MESSAGE
130
+ });
131
+ }, "handleUpdateSuccess");
132
+ const handleUpdateInfo = /* @__PURE__ */ __name((data) => {
133
+ addItemOrDefer({
134
+ type: "info" /* INFO */,
135
+ text: data.message
136
+ });
137
+ }, "handleUpdateInfo");
138
+ updateEventEmitter.on("update-received", handleUpdateRecieved);
139
+ updateEventEmitter.on("update-failed", handleUpdateFailed);
140
+ updateEventEmitter.on("update-success", handleUpdateSuccess);
141
+ updateEventEmitter.on("update-info", handleUpdateInfo);
142
+ const cleanup = /* @__PURE__ */ __name(() => {
143
+ updateEventEmitter.off("update-received", handleUpdateRecieved);
144
+ updateEventEmitter.off("update-failed", handleUpdateFailed);
145
+ updateEventEmitter.off("update-success", handleUpdateSuccess);
146
+ updateEventEmitter.off("update-info", handleUpdateInfo);
147
+ pendingNotifications.length = 0;
148
+ }, "cleanup");
149
+ const flush = /* @__PURE__ */ __name(() => {
150
+ while (pendingNotifications.length > 0) {
151
+ const item = pendingNotifications.shift();
152
+ addItem(item, Date.now());
153
+ }
154
+ }, "flush");
155
+ return { cleanup, flush };
156
+ }
157
+ __name(setUpdateHandler, "setUpdateHandler");
158
+
159
+ export {
160
+ handleAutoUpdate,
161
+ setUpdateHandler
162
+ };
163
+ /**
164
+ * @license
165
+ * Copyright 2025 Google LLC
166
+ * SPDX-License-Identifier: Apache-2.0
167
+ */
@@ -0,0 +1,13 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ init_esbuild_shims
5
+ } from "./chunk-A4BMJM77.js";
6
+
7
+ // packages/cli/src/ui/commands/types.ts
8
+ init_esbuild_shims();
9
+ /**
10
+ * @license
11
+ * Copyright 2025 Google LLC
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */
@@ -229,49 +229,6 @@ var DEFAULT_OPENAI_BASE_URL = "https://api.openai.com/v1";
229
229
  var DEFAULT_DASHSCOPE_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1";
230
230
  var DASHSCOPE_PROXY_BASE_URL = process.env["DASHSCOPE_PROXY_BASE_URL"];
231
231
 
232
- // packages/core/src/utils/request-tokenizer/textTokenizer.ts
233
- init_esbuild_shims();
234
- var TextTokenizer = class {
235
- static {
236
- __name(this, "TextTokenizer");
237
- }
238
- /**
239
- * Calculate tokens for text content
240
- *
241
- * @param text - The text to estimate tokens for
242
- * @returns The estimated token count
243
- */
244
- async calculateTokens(text) {
245
- return this.calculateTokensSync(text);
246
- }
247
- /**
248
- * Calculate tokens for multiple text strings
249
- *
250
- * @param texts - Array of text strings to estimate tokens for
251
- * @returns Array of token counts corresponding to each input text
252
- */
253
- async calculateTokensBatch(texts) {
254
- return texts.map((text) => this.calculateTokensSync(text));
255
- }
256
- calculateTokensSync(text) {
257
- if (!text || text.length === 0) {
258
- return 0;
259
- }
260
- let asciiChars = 0;
261
- let nonAsciiChars = 0;
262
- for (let i = 0; i < text.length; i++) {
263
- const charCode = text.charCodeAt(i);
264
- if (charCode < 128) {
265
- asciiChars++;
266
- } else {
267
- nonAsciiChars++;
268
- }
269
- }
270
- const tokens = asciiChars / 4 + nonAsciiChars * 1.1;
271
- return Math.ceil(tokens);
272
- }
273
- };
274
-
275
232
  // packages/core/src/utils/request-tokenizer/supportedImageFormats.ts
276
233
  init_esbuild_shims();
277
234
  var SUPPORTED_IMAGE_MIME_TYPES = [
@@ -320,7 +277,6 @@ export {
320
277
  DEFAULT_OPENAI_BASE_URL,
321
278
  DEFAULT_DASHSCOPE_BASE_URL,
322
279
  DASHSCOPE_PROXY_BASE_URL,
323
- TextTokenizer,
324
280
  SUPPORTED_IMAGE_MIME_TYPES,
325
281
  isSupportedImageMimeType,
326
282
  getSupportedImageFormatsString,
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  JsonFormatter,
8
8
  parseAndFormatApiError
9
- } from "./chunk-FACTYQFS.js";
9
+ } from "./chunk-72AW57IS.js";
10
10
  import {
11
11
  FatalBudgetExceededError,
12
12
  FatalCancellationError,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-22MNNNXE.js";
16
16
  import {
17
17
  runExitCleanup
18
- } from "./chunk-ZCMLUE4O.js";
18
+ } from "./chunk-27A4SPWJ.js";
19
19
  import {
20
20
  init_esbuild_shims
21
21
  } from "./chunk-A4BMJM77.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  Colors,
5
5
  RowMouseController
6
- } from "./chunk-3SBUWSLI.js";
6
+ } from "./chunk-2KQ42WGR.js";
7
7
  import {
8
8
  theme
9
9
  } from "./chunk-IFEWJXFS.js";
@@ -11,18 +11,18 @@ import {
11
11
  Box_default,
12
12
  Text,
13
13
  require_jsx_runtime
14
- } from "./chunk-GSNACUDM.js";
14
+ } from "./chunk-RBXWE376.js";
15
15
  import {
16
16
  require_react
17
17
  } from "./chunk-KYMBIKIW.js";
18
18
  import {
19
19
  t
20
- } from "./chunk-COPJASIO.js";
20
+ } from "./chunk-RRI2ZIIA.js";
21
21
  import {
22
22
  readManyFiles,
23
23
  shouldRunVisionBridge,
24
24
  stripTerminalControlSequences
25
- } from "./chunk-FACTYQFS.js";
25
+ } from "./chunk-72AW57IS.js";
26
26
  import {
27
27
  emptyMcpResourceText,
28
28
  formatMcpResourceContents,
@@ -0,0 +1,13 @@
1
+ // Force strict mode and setup for ESM
2
+ "use strict";
3
+ import {
4
+ init_esbuild_shims
5
+ } from "./chunk-A4BMJM77.js";
6
+
7
+ // packages/cli/src/serve/acp-session-bridge.ts
8
+ init_esbuild_shims();
9
+ /**
10
+ * @license
11
+ * Copyright 2025 Qwen Team
12
+ * SPDX-License-Identifier: Apache-2.0
13
+ */