@qwen-code/qwen-code 0.19.11-nightly.20260717.f8e6e8931 → 0.19.11

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 (185) hide show
  1. package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +7 -42
  2. package/bundled/qc-helper/docs/qwen-serve.md +40 -42
  3. package/chunks/{MaxSizedBox-JGTP7YJQ.js → MaxSizedBox-L6TGYDM3.js} +2 -2
  4. package/chunks/{StandaloneSessionPicker-2XQDOYZ5.js → StandaloneSessionPicker-AKEQHU5P.js} +14 -14
  5. package/chunks/{acpAgent-RXRJA7GD.js → acpAgent-PTNBGJDN.js} +110 -209
  6. package/chunks/{agent-UQP53UWQ.js → agent-AJOMOZPJ.js} +2 -2
  7. package/chunks/{agent-headless-I52OXDCK.js → agent-headless-CYKOMAXS.js} +2 -2
  8. package/chunks/{bridge-3DVRNBSF.js → bridge-QKISWPCI.js} +6 -6
  9. package/chunks/{chunk-PNCWEDF6.js → chunk-2OG646IN.js} +1 -1
  10. package/chunks/{chunk-VHCSIMTF.js → chunk-3AYLDB6B.js} +1 -1
  11. package/chunks/{chunk-4UBEB74N.js → chunk-3M75MSVA.js} +1 -1
  12. package/chunks/{chunk-EMJJBXS7.js → chunk-4AGTGMCQ.js} +1 -1
  13. package/chunks/{chunk-6ANLV27M.js → chunk-4HUDDSO5.js} +2 -2
  14. package/chunks/{chunk-X5HZX4EP.js → chunk-4IJMTYCB.js} +8 -8
  15. package/chunks/{chunk-FEYHXPZG.js → chunk-4ROQY23C.js} +4 -4
  16. package/chunks/{chunk-YOJGIRTD.js → chunk-574PTLMU.js} +27 -64
  17. package/chunks/{chunk-UF6ZTWU5.js → chunk-5Z452MMD.js} +10 -10
  18. package/chunks/{chunk-3KSHYS4T.js → chunk-6EDDYPI3.js} +4 -4
  19. package/chunks/{chunk-AEKHQ3E5.js → chunk-6Y6ORE2G.js} +4 -4
  20. package/chunks/{chunk-UJG4VV2O.js → chunk-7NMU22Q3.js} +3 -3
  21. package/chunks/{chunk-BZ5D7OVV.js → chunk-7ZYHLN67.js} +72 -23
  22. package/chunks/{chunk-DD45XVOQ.js → chunk-AU3MFJPL.js} +3 -3
  23. package/chunks/{chunk-R3VWUU2E.js → chunk-AVEOWVOM.js} +1 -1
  24. package/chunks/{chunk-I6NOSIVF.js → chunk-BUAXJVNP.js} +1 -1
  25. package/chunks/{chunk-BDHYJ2MM.js → chunk-BXBDC476.js} +1 -1
  26. package/chunks/{chunk-6VMOP2Z7.js → chunk-BYB3GF2T.js} +2 -2
  27. package/chunks/{chunk-FXK3QMRD.js → chunk-BYH2JRK3.js} +3 -3
  28. package/chunks/{chunk-L263ROM6.js → chunk-CAHY5ABC.js} +1 -1
  29. package/chunks/{chunk-DPXB3XRN.js → chunk-CF5VJRGC.js} +1 -1
  30. package/chunks/{chunk-VFEZWI6F.js → chunk-CH2XVB47.js} +1 -1
  31. package/chunks/{chunk-6RV42SFP.js → chunk-CITWNIXJ.js} +4 -4
  32. package/chunks/{chunk-IIXEI2VE.js → chunk-CPFIQVZJ.js} +1 -1
  33. package/chunks/{chunk-46Y6SSQ7.js → chunk-FMNYGWOD.js} +3 -3
  34. package/chunks/{chunk-IHJRUIWN.js → chunk-FXKOAEXP.js} +10 -10
  35. package/chunks/{chunk-G5ZKRK2E.js → chunk-FYQ22K62.js} +1 -1
  36. package/chunks/{chunk-Y3TNSHKF.js → chunk-GLNHPRZT.js} +1 -1
  37. package/chunks/{chunk-5WWYHNAH.js → chunk-GNBBAQ6J.js} +5 -5
  38. package/chunks/{chunk-XQDPCQ3A.js → chunk-HASK4LMI.js} +4 -4
  39. package/chunks/{chunk-D7KYA6EY.js → chunk-JD44PNGJ.js} +3 -3
  40. package/chunks/{chunk-JY74T7PW.js → chunk-JWICTOXS.js} +1 -1
  41. package/chunks/{chunk-7ZFXHKKZ.js → chunk-K7VD4XLT.js} +1 -1
  42. package/chunks/{chunk-KW46DBFM.js → chunk-KXYJPRT5.js} +2 -15
  43. package/chunks/{chunk-X6YQWCIJ.js → chunk-L4Y55KIS.js} +1 -1
  44. package/chunks/{chunk-6WVLHULT.js → chunk-LS56TX3M.js} +1 -1
  45. package/chunks/{chunk-BTSE2DUP.js → chunk-MQOVXZAF.js} +25 -46
  46. package/chunks/{chunk-4HTHLSIH.js → chunk-N5VIZTND.js} +1 -1
  47. package/chunks/{chunk-R6AO7HBQ.js → chunk-NJOFRXTM.js} +36 -73
  48. package/chunks/{chunk-GCRFH57X.js → chunk-NVTQZXR7.js} +4 -4
  49. package/chunks/{chunk-T7CZYIAU.js → chunk-QDJ2R4CM.js} +3 -3
  50. package/chunks/{chunk-SE6GSFAO.js → chunk-QOTQH4CB.js} +2 -2
  51. package/chunks/{chunk-E7ECGLZW.js → chunk-QYG4BY6Q.js} +1 -1
  52. package/chunks/{chunk-AVAU67KP.js → chunk-RP5R7MB6.js} +10 -10
  53. package/chunks/{chunk-CC2UASQ4.js → chunk-S63Z5V42.js} +3 -3
  54. package/chunks/{chunk-NROLDLP4.js → chunk-SQ5BK3GO.js} +1 -1
  55. package/chunks/{chunk-W7H223ZZ.js → chunk-STZQCNN3.js} +1 -1
  56. package/chunks/{chunk-3LS57JZI.js → chunk-SY7NEYX4.js} +1 -1
  57. package/chunks/{chunk-AHAH5H6D.js → chunk-T76DGHGG.js} +3 -3
  58. package/chunks/{chunk-NABT4VOY.js → chunk-THXDQSTA.js} +20 -20
  59. package/chunks/{chunk-GLEJW7T2.js → chunk-TL4R5TRK.js} +1 -1
  60. package/chunks/{chunk-XK42MWWO.js → chunk-V2DXTLUE.js} +2 -2
  61. package/chunks/{chunk-W6J7RSCK.js → chunk-VFX7EZIR.js} +1 -1
  62. package/chunks/{chunk-O3WCEZEN.js → chunk-WMNXXRGL.js} +20 -11
  63. package/chunks/{chunk-PSDTLRAV.js → chunk-Y3KFTWVX.js} +5 -5
  64. package/chunks/{chunk-4YR7FSAM.js → chunk-YFVO2HOR.js} +4 -4
  65. package/chunks/{chunk-ZK4AMPKI.js → chunk-YGYSMY2R.js} +23 -24
  66. package/chunks/{chunk-AH3YAJU6.js → chunk-YLSSEUAM.js} +8 -8
  67. package/chunks/{chunk-WZJELXEU.js → chunk-ZIXOTAPZ.js} +3 -92
  68. package/chunks/{computer-use-LTW3VB6L.js → computer-use-VZZMJEQ7.js} +2 -2
  69. package/chunks/{contextCommand-GLMC6CTP.js → contextCommand-PORKIZSY.js} +4 -4
  70. package/chunks/{create-sub-session-YMWQAWSN.js → create-sub-session-XVFKHAFW.js} +2 -2
  71. package/chunks/{daemon-PRB64RP5.js → daemon-IHR6WSPB.js} +1 -1
  72. package/chunks/{daemon-status-provider-5OMM5JHF.js → daemon-status-provider-ABLBA3UJ.js} +10 -10
  73. package/chunks/{earlyInputCapture-A3WSRN4T.js → earlyInputCapture-DJCU5SPU.js} +2 -2
  74. package/chunks/{edit-7PG4AH27.js → edit-O4VV5AO6.js} +2 -2
  75. package/chunks/{enter-worktree-QUSB44RE.js → enter-worktree-XQYDDI2I.js} +2 -2
  76. package/chunks/{enterPlanMode-NVSIEL7X.js → enterPlanMode-CESVMQBV.js} +2 -2
  77. package/chunks/{environment-AHHXHQTI.js → environment-5KXOLZNR.js} +4 -4
  78. package/chunks/{errors-NSWSRXC7.js → errors-EBUTCBAQ.js} +4 -4
  79. package/chunks/{exit-worktree-FXYEYHPL.js → exit-worktree-MWGNSPNX.js} +2 -2
  80. package/chunks/{exitPlanMode-JI5GK3F6.js → exitPlanMode-HYQL4XMB.js} +2 -2
  81. package/chunks/{fast-path-X7EVDLKZ.js → fast-path-6V73F2T2.js} +2 -2
  82. package/chunks/{gemini-YRLHY5KS.js → gemini-TEFJZCIZ.js} +33 -33
  83. package/chunks/{geminiContentGenerator-SPLFPV5E.js → geminiContentGenerator-M56BEXWI.js} +1 -1
  84. package/chunks/{glob-WASUBCSA.js → glob-DMYFEEAZ.js} +2 -2
  85. package/chunks/{grep-DUVG3NGA.js → grep-GYE47MD4.js} +2 -2
  86. package/chunks/{handleAutoUpdate-NGE5AQ2N.js → handleAutoUpdate-OLUY4L7L.js} +6 -6
  87. package/chunks/{i18n-QNVR36NB.js → i18n-462JC7IY.js} +3 -3
  88. package/chunks/{initializer-ZY7ORPMH.js → initializer-Y7WD4D2I.js} +7 -7
  89. package/chunks/{installationInfo-4R75MFTB.js → installationInfo-I2Z3BKCE.js} +3 -3
  90. package/chunks/{list-36JCMZRS.js → list-XQ5MSAXP.js} +10 -10
  91. package/chunks/{loadedSettingsAdapter-PQIOJUSJ.js → loadedSettingsAdapter-TQOWYE7C.js} +7 -7
  92. package/chunks/{mcp-QXY6XA6H.js → mcp-22LLEEVM.js} +7 -7
  93. package/chunks/{monitor-AVEKRSY3.js → monitor-VKG324X3.js} +2 -2
  94. package/chunks/{nonInteractiveCli-YWIBKX4M.js → nonInteractiveCli-UMYUT643.js} +32 -32
  95. package/chunks/{notebook-edit-4SBTJX72.js → notebook-edit-FJJRBQ3S.js} +2 -2
  96. package/chunks/{openaiContentGenerator-4EBAO7LR.js → openaiContentGenerator-4T2OGTR5.js} +2 -2
  97. package/chunks/{pidfile-JMIUPXSU.js → pidfile-XL3MDCBM.js} +2 -2
  98. package/chunks/{processUtils-EOINMEIH.js → processUtils-7UCFN34D.js} +2 -2
  99. package/chunks/{qwenContentGenerator-M7UBL3JS.js → qwenContentGenerator-PQUXJDIZ.js} +3 -3
  100. package/chunks/{read-file-DXSEFHCV.js → read-file-3EYQML7E.js} +1 -1
  101. package/chunks/{ripGrep-VTRVFMDJ.js → ripGrep-S6WPGQNA.js} +2 -2
  102. package/chunks/{run-qwen-serve-P7WQDZAS.js → run-qwen-serve-NSKBT3HU.js} +26 -39
  103. package/chunks/{runtime-UHYO6JGN.js → runtime-LG5ZZ3VH.js} +8 -8
  104. package/chunks/{scheduler-WTK7ZLV5.js → scheduler-PLX3VVTB.js} +2 -2
  105. package/chunks/{serve-AG2AOG56.js → serve-S2ZLRZZR.js} +7 -7
  106. package/chunks/{server-G5MM2BRI.js → server-5ECMV4TM.js} +79 -136
  107. package/chunks/{session-NUAGEMVS.js → session-ILSONWG4.js} +33 -33
  108. package/chunks/{settings-VQA5PR2M.js → settings-BOE7WWSA.js} +6 -6
  109. package/chunks/{shell-X33RWGLP.js → shell-VW664JIZ.js} +2 -2
  110. package/chunks/{skill-PHSU2OPP.js → skill-COHV6625.js} +1 -1
  111. package/chunks/{spawnChannel-D6TZN4W7.js → spawnChannel-5UUR5XOZ.js} +4 -4
  112. package/chunks/{src-6OJFUPTL.js → src-XPKFZ3RN.js} +2 -2
  113. package/chunks/{standalone-update-ZARRW44Y.js → standalone-update-IOOJ2NZQ.js} +4 -4
  114. package/chunks/{startInteractiveUI-C6IZRTF3.js → startInteractiveUI-3NGJGXXS.js} +41 -45
  115. package/chunks/{team-create-H434NQP2.js → team-create-UPLVZQFX.js} +2 -2
  116. package/chunks/{team-plan-approval-IIOHXZU6.js → team-plan-approval-F5F432RO.js} +2 -2
  117. package/chunks/{theme-manager-IEOPHMX6.js → theme-manager-JJE4BJ67.js} +2 -2
  118. package/chunks/{tool-search-WIIEDALL.js → tool-search-LRXI4JLZ.js} +1 -1
  119. package/chunks/{total-session-admission-WU3DORRW.js → total-session-admission-I4DHN6UP.js} +7 -7
  120. package/chunks/{trustedFolders-JVUTUAJ3.js → trustedFolders-SEH7LNX2.js} +3 -3
  121. package/chunks/{update-relaunch-X5EQKCH5.js → update-relaunch-T6ZKBUA6.js} +5 -5
  122. package/chunks/{updateCheck-TGO2X735.js → updateCheck-FWLXZPRO.js} +4 -4
  123. package/chunks/{validateNonInterActiveAuth-2MEUL2ME.js → validateNonInterActiveAuth-X6K2VWYT.js} +28 -28
  124. package/chunks/{version-KBGQKZWV.js → version-LIFSOGSE.js} +1 -1
  125. package/chunks/{workflow-PAOSF4CG.js → workflow-NX2DFWGD.js} +3 -3
  126. package/chunks/{workspace-providers-status-AYHJYSVO.js → workspace-providers-status-VYD6M2NE.js} +10 -10
  127. package/chunks/{workspace-registration-store-GZMR53QL.js → workspace-registration-store-2Y6PWOEL.js} +1 -1
  128. package/chunks/{workspace-registry-C2IXZWPF.js → workspace-registry-PKBDBWCA.js} +7 -7
  129. package/chunks/{workspace-service-KDDAW33F.js → workspace-service-HHORUHTS.js} +12 -12
  130. package/chunks/{workspace-skills-status-WWEZBZXY.js → workspace-skills-status-O5Q26LIY.js} +8 -8
  131. package/chunks/{write-file-ACN3TAIX.js → write-file-NVAEZ3J2.js} +2 -2
  132. package/cli.js +11 -11
  133. package/package.json +3 -3
  134. package/web-shell/assets/{arc-Blc5_CnD.js → arc-H74fE8UR.js} +1 -1
  135. package/web-shell/assets/{architectureDiagram-3BPJPVTR-Dyv1BvGP.js → architectureDiagram-3BPJPVTR-DN3kEq-I.js} +1 -1
  136. package/web-shell/assets/{blockDiagram-GPEHLZMM-CVAb8DyB.js → blockDiagram-GPEHLZMM-BrqbsFUF.js} +1 -1
  137. package/web-shell/assets/{c4Diagram-AAUBKEIU-ClHPb_6S.js → c4Diagram-AAUBKEIU-ClFhU1P-.js} +1 -1
  138. package/web-shell/assets/channel-NFC5ADAa.js +1 -0
  139. package/web-shell/assets/{chunk-2J33WTMH-Dad9g3ZA.js → chunk-2J33WTMH-jCIcG0_M.js} +1 -1
  140. package/web-shell/assets/{chunk-4BX2VUAB-IJJSSdDs.js → chunk-4BX2VUAB-DSkGe62-.js} +1 -1
  141. package/web-shell/assets/{chunk-55IACEB6-DRcc-Hl9.js → chunk-55IACEB6-BxBHOGTd.js} +1 -1
  142. package/web-shell/assets/{chunk-727SXJPM-DOCFB-6a.js → chunk-727SXJPM-v_DS7dH7.js} +1 -1
  143. package/web-shell/assets/{chunk-AQP2D5EJ-CRZnSjHp.js → chunk-AQP2D5EJ-1RzEKRPq.js} +1 -1
  144. package/web-shell/assets/{chunk-FMBD7UC4-BwUI4Yes.js → chunk-FMBD7UC4-DyrSbLOX.js} +1 -1
  145. package/web-shell/assets/{chunk-ND2GUHAM-DLy8doxd.js → chunk-ND2GUHAM-BCmdsZiy.js} +1 -1
  146. package/web-shell/assets/{chunk-QZHKN3VN-Bhz7iysj.js → chunk-QZHKN3VN-CphHGW2D.js} +1 -1
  147. package/web-shell/assets/classDiagram-4FO5ZUOK-DHgwjz3X.js +1 -0
  148. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DHgwjz3X.js +1 -0
  149. package/web-shell/assets/{cose-bilkent-S5V4N54A-jT1e8KzN.js → cose-bilkent-S5V4N54A-D5kRC7Fi.js} +1 -1
  150. package/web-shell/assets/{dagre-BM42HDAG-C1veApQk.js → dagre-BM42HDAG-DIiyJJ0U.js} +1 -1
  151. package/web-shell/assets/{diagram-2AECGRRQ-C_NOwKeT.js → diagram-2AECGRRQ-BOcuB8xU.js} +1 -1
  152. package/web-shell/assets/{diagram-5GNKFQAL-Bigfuz1r.js → diagram-5GNKFQAL-CMgiZ4d3.js} +1 -1
  153. package/web-shell/assets/{diagram-KO2AKTUF-CpXltPpU.js → diagram-KO2AKTUF-Ctx8pfN0.js} +1 -1
  154. package/web-shell/assets/{diagram-LMA3HP47-DYawbYbH.js → diagram-LMA3HP47-BT5REAWC.js} +1 -1
  155. package/web-shell/assets/{diagram-OG6HWLK6-D2t-ttd1.js → diagram-OG6HWLK6-CJkUqXcp.js} +1 -1
  156. package/web-shell/assets/{erDiagram-TEJ5UH35-Buc53PB5.js → erDiagram-TEJ5UH35-DyvNNX6v.js} +1 -1
  157. package/web-shell/assets/{flowDiagram-I6XJVG4X-DwdFsCN7.js → flowDiagram-I6XJVG4X-VBf8_My8.js} +1 -1
  158. package/web-shell/assets/{ganttDiagram-6RSMTGT7-XhiEKGoP.js → ganttDiagram-6RSMTGT7-CviJnR7B.js} +1 -1
  159. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-D6We014a.js → gitGraphDiagram-PVQCEYII-BY66_Oze.js} +1 -1
  160. package/web-shell/assets/{index-BctAmeF3.js → index-8xIBbHV3.js} +197 -197
  161. package/web-shell/assets/{index-CAWqS-bZ.js → index-DhYuvi3j.js} +1 -1
  162. package/web-shell/assets/{infoDiagram-5YYISTIA-C_iugRHQ.js → infoDiagram-5YYISTIA-D2jaewWZ.js} +1 -1
  163. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-CAn9Kaix.js → ishikawaDiagram-YF4QCWOH-BpnNTyi5.js} +1 -1
  164. package/web-shell/assets/{journeyDiagram-JHISSGLW-BjDYOkEB.js → journeyDiagram-JHISSGLW-CA55GNZF.js} +1 -1
  165. package/web-shell/assets/{kanban-definition-UN3LZRKU-Br_oI3Ob.js → kanban-definition-UN3LZRKU-DyiSl_Ts.js} +1 -1
  166. package/web-shell/assets/{linear-BqnWHE9E.js → linear-B-sN3dkV.js} +1 -1
  167. package/web-shell/assets/{mermaid.core-CT-sofSb.js → mermaid.core-xf9SXDdb.js} +5 -5
  168. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BbvrZR4B.js → mindmap-definition-RKZ34NQL-DXhr2kRk.js} +1 -1
  169. package/web-shell/assets/{pieDiagram-4H26LBE5-gAwi3h_Q.js → pieDiagram-4H26LBE5-DUXpbfGQ.js} +1 -1
  170. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-CONvBIuO.js → quadrantDiagram-W4KKPZXB-NeDQYeWw.js} +1 -1
  171. package/web-shell/assets/{requirementDiagram-4Y6WPE33-lpkrcy1e.js → requirementDiagram-4Y6WPE33-BSbFRL1A.js} +1 -1
  172. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-Bk6FJHqb.js → sankeyDiagram-5OEKKPKP-gg27cAaN.js} +1 -1
  173. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-B9b9bBzt.js → sequenceDiagram-3UESZ5HK-Bi_1TSs4.js} +1 -1
  174. package/web-shell/assets/{stateDiagram-AJRCARHV-JqBGC-S3.js → stateDiagram-AJRCARHV-CboCCRaf.js} +1 -1
  175. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-CXRqms6P.js +1 -0
  176. package/web-shell/assets/{timeline-definition-PNZ67QCA-CCCceXDP.js → timeline-definition-PNZ67QCA-DrGpF_jn.js} +1 -1
  177. package/web-shell/assets/{vennDiagram-CIIHVFJN-EHRnmZ09.js → vennDiagram-CIIHVFJN-DCaJU67x.js} +1 -1
  178. package/web-shell/assets/{wardley-L42UT6IY-CYIcHx3_.js → wardley-L42UT6IY-p0QcW1aP.js} +1 -1
  179. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-B81AuYRl.js → wardleyDiagram-YWT4CUSO-DiEVxj1W.js} +1 -1
  180. package/web-shell/assets/{xychartDiagram-2RQKCTM6-DOQ6E3z7.js → xychartDiagram-2RQKCTM6-iQB8nSlA.js} +1 -1
  181. package/web-shell/index.html +1 -1
  182. package/web-shell/assets/channel-DkPTtnGS.js +0 -1
  183. package/web-shell/assets/classDiagram-4FO5ZUOK-DBdPU8ix.js +0 -1
  184. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-DBdPU8ix.js +0 -1
  185. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-B_w4fDnm.js +0 -1
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  MissingCliEntryError
5
- } from "./chunk-W6J7RSCK.js";
5
+ } from "./chunk-VFX7EZIR.js";
6
6
  import {
7
7
  redactLogCredentials
8
8
  } from "./chunk-M5GB774H.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  t
5
- } from "./chunk-EMJJBXS7.js";
5
+ } from "./chunk-4AGTGMCQ.js";
6
6
  import {
7
7
  init_esbuild_shims
8
8
  } from "./chunk-5O2XNYP6.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-YUZI3WAC.js";
6
6
  import {
7
7
  resolveBundleDir
8
- } from "./chunk-R6AO7HBQ.js";
8
+ } from "./chunk-NJOFRXTM.js";
9
9
  import {
10
10
  Storage
11
11
  } from "./chunk-7NFB7LBQ.js";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  JsonFormatter,
8
8
  parseAndFormatApiError
9
- } from "./chunk-R6AO7HBQ.js";
9
+ } from "./chunk-NJOFRXTM.js";
10
10
  import {
11
11
  FatalBudgetExceededError,
12
12
  FatalCancellationError,
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-7NFB7LBQ.js";
16
16
  import {
17
17
  runExitCleanup
18
- } from "./chunk-L263ROM6.js";
18
+ } from "./chunk-CAHY5ABC.js";
19
19
  import {
20
20
  init_esbuild_shims
21
21
  } from "./chunk-5O2XNYP6.js";
@@ -2,12 +2,12 @@
2
2
  "use strict";
3
3
  import {
4
4
  buildPermissionSettings
5
- } from "./chunk-7ZFXHKKZ.js";
5
+ } from "./chunk-K7VD4XLT.js";
6
6
  import {
7
7
  resolveVoiceStreamConfig,
8
8
  resolveVoiceTranscriptionConfig,
9
9
  transcribeVoiceAudio
10
- } from "./chunk-I6NOSIVF.js";
10
+ } from "./chunk-BUAXJVNP.js";
11
11
  import {
12
12
  getVoiceSettingsScope,
13
13
  isSelectableVoiceModel,
@@ -16,7 +16,7 @@ import {
16
16
  readVoiceMode,
17
17
  readVoiceModel,
18
18
  resolveVoiceTransport
19
- } from "./chunk-4UBEB74N.js";
19
+ } from "./chunk-3M75MSVA.js";
20
20
  import {
21
21
  WorkspacePermissionRulesSessionRequiredError,
22
22
  WorkspaceSettingsPartialPersistError,
@@ -32,7 +32,7 @@ import {
32
32
  WorkspaceInitPathEscapeError,
33
33
  WorkspaceInitRaceError,
34
34
  WorkspaceInitSymlinkError
35
- } from "./chunk-X6YQWCIJ.js";
35
+ } from "./chunk-L4Y55KIS.js";
36
36
  import {
37
37
  BridgeChannelClosedError,
38
38
  SERVE_CONTROL_EXT_METHODS,
@@ -46,20 +46,20 @@ import {
46
46
  createIdleWorkspaceProvidersStatus,
47
47
  createIdleWorkspaceSkillsStatus,
48
48
  mapDomainErrorToErrorKind
49
- } from "./chunk-W6J7RSCK.js";
49
+ } from "./chunk-VFX7EZIR.js";
50
50
  import {
51
51
  getPersistScopeForModelSelection,
52
52
  loadSettings
53
- } from "./chunk-5WWYHNAH.js";
53
+ } from "./chunk-GNBBAQ6J.js";
54
54
  import {
55
55
  getWorkspaceTrustStatus
56
- } from "./chunk-PNCWEDF6.js";
56
+ } from "./chunk-2OG646IN.js";
57
57
  import {
58
58
  writeStderrLine
59
59
  } from "./chunk-YUZI3WAC.js";
60
60
  import {
61
61
  ModelsConfig
62
- } from "./chunk-R6AO7HBQ.js";
62
+ } from "./chunk-NJOFRXTM.js";
63
63
  import {
64
64
  createDebugLogger
65
65
  } from "./chunk-7NFB7LBQ.js";
@@ -2,13 +2,13 @@
2
2
  "use strict";
3
3
  import {
4
4
  loadSettings
5
- } from "./chunk-5WWYHNAH.js";
5
+ } from "./chunk-GNBBAQ6J.js";
6
6
  import {
7
7
  getCurrentLanguage
8
- } from "./chunk-EMJJBXS7.js";
8
+ } from "./chunk-4AGTGMCQ.js";
9
9
  import {
10
10
  isWorkspaceTrusted
11
- } from "./chunk-PNCWEDF6.js";
11
+ } from "./chunk-2OG646IN.js";
12
12
  import {
13
13
  require_strip_json_comments
14
14
  } from "./chunk-ALGGS7UH.js";
@@ -26,7 +26,7 @@ import {
26
26
  hashMcpServerConfig,
27
27
  isGatedMcpScope,
28
28
  normalizeClaudeMcpServer
29
- } from "./chunk-R6AO7HBQ.js";
29
+ } from "./chunk-NJOFRXTM.js";
30
30
  import {
31
31
  atomicWriteFile
32
32
  } from "./chunk-WIEO4CWB.js";
@@ -36,10 +36,10 @@ import {
36
36
  SessionShellDisabledError,
37
37
  WorkspaceMismatchError,
38
38
  isNotCurrentlyGeneratingCancelError
39
- } from "./chunk-X6YQWCIJ.js";
39
+ } from "./chunk-L4Y55KIS.js";
40
40
  import {
41
41
  defaultSpawnChannelFactory
42
- } from "./chunk-VHCSIMTF.js";
42
+ } from "./chunk-3AYLDB6B.js";
43
43
  import {
44
44
  BridgeChannelClosedError,
45
45
  BridgeTimeoutError,
@@ -48,7 +48,7 @@ import {
48
48
  STATUS_SCHEMA_VERSION,
49
49
  createIdleWorkspaceExtensionsStatus,
50
50
  createIdleWorkspaceHooksStatus
51
- } from "./chunk-W6J7RSCK.js";
51
+ } from "./chunk-VFX7EZIR.js";
52
52
  import {
53
53
  canonicalizeWorkspace
54
54
  } from "./chunk-W7FJ3N32.js";
@@ -68,11 +68,11 @@ import {
68
68
  metadataBudgetBytes,
69
69
  normalizeSnapshotPayload,
70
70
  stableSessionArtifactId
71
- } from "./chunk-R6AO7HBQ.js";
71
+ } from "./chunk-NJOFRXTM.js";
72
72
  import {
73
73
  DAEMON_TRACEPARENT_META_KEY,
74
74
  DAEMON_TRACESTATE_META_KEY
75
- } from "./chunk-BTSE2DUP.js";
75
+ } from "./chunk-MQOVXZAF.js";
76
76
  import {
77
77
  init_esbuild_shims
78
78
  } from "./chunk-5O2XNYP6.js";
@@ -567,8 +567,8 @@ var MultiClientPermissionMediator = class {
567
567
  * an identical line (the unanimity condition is the NORMAL
568
568
  * operating mode for M=2, not a rare edge); a busy session with
569
569
  * many tool calls would produce dozens of duplicate stderr lines
570
- * within seconds. One emit per mediator (= per bridge/runtime lifetime
571
- * since each bridge constructs one) is enough to make the
570
+ * within seconds. One emit per mediator (= per daemon lifetime
571
+ * since the bridge constructs one) is enough to make the
572
572
  * configuration visible without spam.
573
573
  */
574
574
  unanimityBreadcrumbEmitted = false;
@@ -4799,14 +4799,6 @@ function isRecord2(value) {
4799
4799
  return typeof value === "object" && value !== null && !Array.isArray(value);
4800
4800
  }
4801
4801
  __name(isRecord2, "isRecord");
4802
- function getCanonicalModelId(response, fallback) {
4803
- if (!isRecord2(response) || !isRecord2(response["_meta"])) return fallback;
4804
- const modelSwitch = response["_meta"]["qwenModelSwitch"];
4805
- if (!isRecord2(modelSwitch)) return fallback;
4806
- const modelId = modelSwitch["modelId"];
4807
- return typeof modelId === "string" ? modelId : fallback;
4808
- }
4809
- __name(getCanonicalModelId, "getCanonicalModelId");
4810
4802
  function isBulkReplayUpdate(value) {
4811
4803
  if (!isRecord2(value)) return false;
4812
4804
  const updateType = value["sessionUpdate"];
@@ -5563,13 +5555,11 @@ function createAcpSessionBridge(opts) {
5563
5555
  if (channelInfo && !channelInfo.isDying) return channelInfo;
5564
5556
  if (inFlightChannelSpawn) return await inFlightChannelSpawn;
5565
5557
  const promise = (async () => {
5566
- const acpChannelId = randomUUID2();
5567
5558
  const channel = await telemetry.withSpan(
5568
5559
  "channel.spawn",
5569
5560
  {
5570
5561
  "qwen-code.daemon.bridge.operation": "channel.spawn",
5571
- "qwen-code.daemon.channel.reused": false,
5572
- "qwen-code.daemon.acp_channel.id": acpChannelId
5562
+ "qwen-code.daemon.channel.reused": false
5573
5563
  },
5574
5564
  async () => await channelFactory(boundWorkspace, childEnvOverrides)
5575
5565
  );
@@ -5655,7 +5645,6 @@ function createAcpSessionBridge(opts) {
5655
5645
  );
5656
5646
  const connection = new ClientSideConnection(() => client, channel.stream);
5657
5647
  const info = {
5658
- id: acpChannelId,
5659
5648
  channel,
5660
5649
  connection,
5661
5650
  client,
@@ -5745,8 +5734,7 @@ function createAcpSessionBridge(opts) {
5745
5734
  await telemetry.withSpan(
5746
5735
  "channel.initialize",
5747
5736
  {
5748
- "qwen-code.daemon.bridge.operation": "channel.initialize",
5749
- "qwen-code.daemon.acp_channel.id": acpChannelId
5737
+ "qwen-code.daemon.bridge.operation": "channel.initialize"
5750
5738
  },
5751
5739
  async () => await withTimeout(
5752
5740
  connection.initialize({
@@ -5786,15 +5774,7 @@ function createAcpSessionBridge(opts) {
5786
5774
  }
5787
5775
  __name(ensureChannel, "ensureChannel");
5788
5776
  async function doSpawn(modelServiceId, effectiveScope, approvalMode, requestedClientId, onSessionRegistered, parentSessionId, sourceType, sourceId) {
5789
- const channelPath = channelInfo && !channelInfo.isDying ? "reused" : inFlightChannelSpawn ? "joined" : "spawned_on_request";
5790
- const ci = await telemetry.withSpan(
5791
- "channel.wait",
5792
- {
5793
- "qwen-code.daemon.bridge.operation": "channel.wait",
5794
- "qwen-code.daemon.channel.path": channelPath
5795
- },
5796
- ensureChannel
5797
- );
5777
+ const ci = await ensureChannel();
5798
5778
  ci.sessionSpawnsInFlight++;
5799
5779
  let sessionRegistered = false;
5800
5780
  let sessionRemovedDuringInitialization = false;
@@ -5806,27 +5786,16 @@ function createAcpSessionBridge(opts) {
5806
5786
  "session.new",
5807
5787
  {
5808
5788
  "qwen-code.daemon.bridge.operation": "session.new",
5809
- "qwen-code.daemon.session_scope": effectiveScope,
5810
- "qwen-code.daemon.channel.path": channelPath,
5811
- "qwen-code.daemon.acp_channel.id": ci.id
5789
+ "qwen-code.daemon.session_scope": effectiveScope
5812
5790
  },
5813
- async () => {
5814
- const response = await withTimeout(
5815
- ci.connection.newSession(
5816
- telemetry.injectPromptContext({
5817
- cwd: boundWorkspace,
5818
- mcpServers: []
5819
- })
5820
- ),
5821
- initTimeoutMs,
5822
- "newSession"
5823
- );
5824
- telemetry.event("session.new.completed", {
5825
- "session.id": response.sessionId,
5826
- "qwen-code.daemon.acp_channel.id": ci.id
5827
- });
5828
- return response;
5829
- }
5791
+ async () => await withTimeout(
5792
+ ci.connection.newSession({
5793
+ cwd: boundWorkspace,
5794
+ mcpServers: []
5795
+ }),
5796
+ initTimeoutMs,
5797
+ "newSession"
5798
+ )
5830
5799
  );
5831
5800
  } catch (err) {
5832
5801
  if (hasNoChannelWork(ci, { ignoreCurrentSessionSpawn: true })) {
@@ -5990,7 +5959,7 @@ function createAcpSessionBridge(opts) {
5990
5959
  entry.modelRoundtripInFlight = true;
5991
5960
  let succeeded = false;
5992
5961
  try {
5993
- const result = await Promise.race([
5962
+ await Promise.race([
5994
5963
  withTimeout(
5995
5964
  conn.unstable_setSessionModel({
5996
5965
  sessionId: entry.sessionId,
@@ -6006,7 +5975,7 @@ function createAcpSessionBridge(opts) {
6006
5975
  type: "settings_changed",
6007
5976
  data: {
6008
5977
  key: "model.name",
6009
- value: getCanonicalModelId(result, modelId)
5978
+ value: modelId
6010
5979
  },
6011
5980
  ...originatorClientId ? { originatorClientId } : {}
6012
5981
  });
@@ -8562,7 +8531,7 @@ function createAcpSessionBridge(opts) {
8562
8531
  type: "settings_changed",
8563
8532
  data: {
8564
8533
  key: "model.name",
8565
- value: getCanonicalModelId(result, req.modelId)
8534
+ value: req.modelId
8566
8535
  },
8567
8536
  ...originatorClientId ? { originatorClientId } : {}
8568
8537
  });
@@ -9506,17 +9475,11 @@ function createAcpSessionBridge(opts) {
9506
9475
  },
9507
9476
  async preheat() {
9508
9477
  if (shuttingDown) return;
9509
- await telemetry.withSpan(
9510
- "channel.preheat",
9511
- { "qwen-code.daemon.bridge.operation": "channel.preheat" },
9512
- async () => {
9513
- const ci = await ensureChannel();
9514
- const idleMs = resolvedChannelIdleTimeoutMs();
9515
- if (idleMs > 0 && hasNoChannelWork(ci)) {
9516
- await startIdleTimer(ci);
9517
- }
9518
- }
9519
- );
9478
+ const ci = await ensureChannel();
9479
+ const idleMs = resolvedChannelIdleTimeoutMs();
9480
+ if (idleMs > 0 && hasNoChannelWork(ci)) {
9481
+ await startIdleTimer(ci);
9482
+ }
9520
9483
  }
9521
9484
  };
9522
9485
  return bridgeApi;
@@ -13,7 +13,7 @@ import {
13
13
  getCommandSubcommandNames,
14
14
  splitMarkdownTableRow,
15
15
  useSessionStats
16
- } from "./chunk-6VMOP2Z7.js";
16
+ } from "./chunk-BYB3GF2T.js";
17
17
  import {
18
18
  Colors,
19
19
  RowMouseController,
@@ -23,7 +23,7 @@ import {
23
23
  useMouseEvents,
24
24
  useSettings,
25
25
  useTerminalSize
26
- } from "./chunk-G5ZKRK2E.js";
26
+ } from "./chunk-FYQ22K62.js";
27
27
  import {
28
28
  CompactToolGroupDisplay,
29
29
  SCREEN_READER_MODEL_PREFIX,
@@ -48,7 +48,7 @@ import {
48
48
  useKeypress,
49
49
  wrapAnsi,
50
50
  wrapForMultiplexer
51
- } from "./chunk-GCRFH57X.js";
51
+ } from "./chunk-NVTQZXR7.js";
52
52
  import {
53
53
  MINIMUM_MAX_HEIGHT,
54
54
  MaxSizedBox
@@ -65,7 +65,7 @@ import {
65
65
  } from "./chunk-OWT2CAEQ.js";
66
66
  import {
67
67
  relaunchApp
68
- } from "./chunk-6WVLHULT.js";
68
+ } from "./chunk-LS56TX3M.js";
69
69
  import {
70
70
  isTerminalGoalStatusKind
71
71
  } from "./chunk-7X7TEQNX.js";
@@ -101,18 +101,18 @@ import {
101
101
  } from "./chunk-57OAHC2Y.js";
102
102
  import {
103
103
  createLoadedSettingsAdapter
104
- } from "./chunk-NROLDLP4.js";
104
+ } from "./chunk-SQ5BK3GO.js";
105
105
  import {
106
106
  getPersistScopeForModelSelection
107
- } from "./chunk-5WWYHNAH.js";
107
+ } from "./chunk-GNBBAQ6J.js";
108
108
  import {
109
109
  getCurrentLanguage,
110
110
  localizeToolDisplayName,
111
111
  t
112
- } from "./chunk-EMJJBXS7.js";
112
+ } from "./chunk-4AGTGMCQ.js";
113
113
  import {
114
114
  isWorkspaceTrusted
115
- } from "./chunk-PNCWEDF6.js";
115
+ } from "./chunk-2OG646IN.js";
116
116
  import {
117
117
  ALL_PROVIDERS,
118
118
  IdeClient,
@@ -132,7 +132,7 @@ import {
132
132
  resolveBaseUrl,
133
133
  resolveMetadataKey,
134
134
  resolveOwnsModel
135
- } from "./chunk-R6AO7HBQ.js";
135
+ } from "./chunk-NJOFRXTM.js";
136
136
  import {
137
137
  stripAnsi
138
138
  } from "./chunk-T4TZQJ7W.js";
@@ -141,7 +141,7 @@ import {
141
141
  formatVisionBridgeNoticeDisplay,
142
142
  getMCPServerStatus,
143
143
  isVisionBridgeNoticeDisplay
144
- } from "./chunk-BTSE2DUP.js";
144
+ } from "./chunk-MQOVXZAF.js";
145
145
  import {
146
146
  ToolDisplayNames,
147
147
  ToolNames,
@@ -3,17 +3,17 @@
3
3
  import {
4
4
  getGitVersion,
5
5
  getNpmVersion
6
- } from "./chunk-CC2UASQ4.js";
6
+ } from "./chunk-S63Z5V42.js";
7
7
  import {
8
8
  buildEnvStatusFromEnv,
9
9
  snapshotProcessEnv
10
- } from "./chunk-3LS57JZI.js";
10
+ } from "./chunk-SY7NEYX4.js";
11
11
  import {
12
12
  mapDomainErrorToErrorKind
13
- } from "./chunk-W6J7RSCK.js";
13
+ } from "./chunk-VFX7EZIR.js";
14
14
  import {
15
15
  canUseRipgrep
16
- } from "./chunk-R6AO7HBQ.js";
16
+ } from "./chunk-NJOFRXTM.js";
17
17
  import {
18
18
  init_esbuild_shims
19
19
  } from "./chunk-5O2XNYP6.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  formatHistoryGapNotice,
5
5
  indexGapsByChild
6
- } from "./chunk-DPXB3XRN.js";
6
+ } from "./chunk-CF5VJRGC.js";
7
7
  import {
8
8
  sanitizeTerminalText
9
9
  } from "./chunk-SUARMD4Q.js";
@@ -15,12 +15,12 @@ import {
15
15
  } from "./chunk-YUZI3WAC.js";
16
16
  import {
17
17
  getActiveGoal
18
- } from "./chunk-R6AO7HBQ.js";
18
+ } from "./chunk-NJOFRXTM.js";
19
19
  import {
20
20
  apiActivityTracker,
21
21
  formatVisionBridgeNoticeDisplay,
22
22
  isVisionBridgeNoticeDisplay
23
- } from "./chunk-BTSE2DUP.js";
23
+ } from "./chunk-MQOVXZAF.js";
24
24
  import {
25
25
  ToolNames
26
26
  } from "./chunk-JGUT3LWZ.js";
@@ -1735,7 +1735,7 @@ async function extractMetadata(conversation, config) {
1735
1735
  const gitBranch = firstRecord?.gitBranch;
1736
1736
  let gitRepo;
1737
1737
  if (cwd) {
1738
- const { getGitRepoName } = await import("./src-6OJFUPTL.js");
1738
+ const { getGitRepoName } = await import("./src-XPKFZ3RN.js");
1739
1739
  gitRepo = getGitRepoName(cwd);
1740
1740
  }
1741
1741
  let model;
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  getExtensionManager
5
- } from "./chunk-4YR7FSAM.js";
5
+ } from "./chunk-YFVO2HOR.js";
6
6
  import {
7
7
  getPlugin,
8
8
  parseChannelConfig,
@@ -13,14 +13,14 @@ import {
13
13
  } from "./chunk-ZQIYGQCG.js";
14
14
  import {
15
15
  loadSettings
16
- } from "./chunk-5WWYHNAH.js";
16
+ } from "./chunk-GNBBAQ6J.js";
17
17
  import {
18
18
  writeStderrLine,
19
19
  writeStdoutLine
20
20
  } from "./chunk-YUZI3WAC.js";
21
21
  import {
22
22
  hashDaemonWorkspace
23
- } from "./chunk-BTSE2DUP.js";
23
+ } from "./chunk-MQOVXZAF.js";
24
24
  import {
25
25
  Storage
26
26
  } from "./chunk-7NFB7LBQ.js";
@@ -1,25 +1,25 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
3
  import {
4
- buildAcpModelOptions,
4
+ formatAcpModelId,
5
5
  getAuthTypeFromEnv,
6
- getCurrentAcpModelId,
7
6
  parseAcpBaseModelId,
8
7
  resolveCliGenerationConfig,
9
8
  sanitizeProviderBaseUrl
10
- } from "./chunk-WZJELXEU.js";
9
+ } from "./chunk-ZIXOTAPZ.js";
11
10
  import {
12
11
  snapshotProcessEnv
13
- } from "./chunk-3LS57JZI.js";
12
+ } from "./chunk-SY7NEYX4.js";
14
13
  import {
15
14
  STATUS_SCHEMA_VERSION
16
- } from "./chunk-W6J7RSCK.js";
15
+ } from "./chunk-VFX7EZIR.js";
17
16
  import {
18
17
  loadSettings
19
- } from "./chunk-5WWYHNAH.js";
18
+ } from "./chunk-GNBBAQ6J.js";
20
19
  import {
21
- ModelsConfig
22
- } from "./chunk-R6AO7HBQ.js";
20
+ ModelsConfig,
21
+ resolveProviderProtocol
22
+ } from "./chunk-NJOFRXTM.js";
23
23
  import {
24
24
  APPROVAL_MODES
25
25
  } from "./chunk-F333XEAU.js";
@@ -75,24 +75,17 @@ function buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options) {
75
75
  const currentAuth = selectedAuthType;
76
76
  const currentModelId = (resolvedCliConfig.model || modelsConfig.getModel() || "").trim();
77
77
  const hasCurrentModel = currentModelId.length > 0;
78
- const modelCameFromSettings = !argv.model && settings.model?.name?.trim() === currentModelId;
79
- const currentBaseUrl = modelCameFromSettings && settings.model?.baseUrl !== void 0 ? settings.model.baseUrl || void 0 : resolvedCliConfig.sources["baseUrl"] ? resolvedCliConfig.baseUrl || void 0 : void 0;
80
- const currentRegistryBaseUrl = modelCameFromSettings && currentAuth ? settings.model?.baseUrl !== void 0 ? settings.model.baseUrl || null : modelsConfig.getResolvedModel(currentAuth, currentModelId)?.registryBaseUrl ?? null : void 0;
81
- const modelOptions = buildAcpModelOptions(
82
- modelsConfig.getAllConfiguredModels()
83
- );
84
- const currentAcpModelId = hasCurrentModel ? getCurrentAcpModelId(
85
- modelOptions,
86
- currentModelId,
87
- currentAuth,
88
- currentRegistryBaseUrl
89
- ) : void 0;
78
+ const currentAcpModelId = hasCurrentModel && currentAuth ? formatAcpModelId(currentModelId, currentAuth) : currentModelId || void 0;
79
+ const currentBaseUrl = resolvedCliConfig.sources["baseUrl"] ? resolvedCliConfig.baseUrl || void 0 : void 0;
90
80
  const fastModelId = typeof settings.fastModel === "string" && settings.fastModel.length > 0 ? settings.fastModel : void 0;
91
81
  const visionModelId = typeof settings.visionModel === "string" && settings.visionModel.length > 0 ? settings.visionModel : void 0;
92
82
  const approvalMode = resolveApprovalMode(settings);
93
83
  const providers = /* @__PURE__ */ new Map();
94
- for (const option of modelOptions) {
95
- const { model, effectiveModelId, modelId } = option;
84
+ const explicitModelBaseUrls = buildExplicitModelBaseUrls(
85
+ settings.modelProviders,
86
+ settings.providerProtocol
87
+ );
88
+ for (const model of modelsConfig.getAllConfiguredModels().filter(isMainSelectableModel)) {
96
89
  if (model.isRuntimeModel) continue;
97
90
  const authType = String(model.authType);
98
91
  let provider = providers.get(authType);
@@ -106,7 +99,15 @@ function buildWorkspaceProvidersStatus(workspaceCwd, acpChannelLive, options) {
106
99
  };
107
100
  providers.set(authType, provider);
108
101
  }
109
- const isCurrent = currentAuth === model.authType && currentAcpModelId === modelId;
102
+ const effectiveModelId = model.id;
103
+ const modelId = formatAcpModelId(effectiveModelId, model.authType);
104
+ const isCurrent = currentAuth === model.authType && hasCurrentModel && matchesCurrentModel(currentModelId, effectiveModelId, modelId) && matchesCurrentBaseUrl(
105
+ currentBaseUrl,
106
+ model.baseUrl,
107
+ model.baseUrl !== void 0 && explicitModelBaseUrls.has(
108
+ modelBaseUrlKey(authType, effectiveModelId, model.baseUrl)
109
+ )
110
+ );
110
111
  const providerModel = {
111
112
  modelId,
112
113
  baseModelId: parseAcpBaseModelId(effectiveModelId),
@@ -181,6 +182,54 @@ function resolveApprovalMode(settings) {
181
182
  return "auto" /* AUTO */;
182
183
  }
183
184
  __name(resolveApprovalMode, "resolveApprovalMode");
185
+ function isMainSelectableModel(model) {
186
+ return model.fastOnly !== true && model.voiceOnly !== true;
187
+ }
188
+ __name(isMainSelectableModel, "isMainSelectableModel");
189
+ function matchesCurrentModel(currentModelId, baseModelId, acpModelId) {
190
+ return currentModelId === baseModelId || currentModelId === acpModelId;
191
+ }
192
+ __name(matchesCurrentModel, "matchesCurrentModel");
193
+ function matchesCurrentBaseUrl(currentBaseUrl, modelBaseUrl, modelHasExplicitBaseUrl) {
194
+ if (!currentBaseUrl) return !modelHasExplicitBaseUrl;
195
+ return currentBaseUrl === modelBaseUrl;
196
+ }
197
+ __name(matchesCurrentBaseUrl, "matchesCurrentBaseUrl");
198
+ function buildExplicitModelBaseUrls(modelProviders, providerProtocol) {
199
+ const baseUrls = /* @__PURE__ */ new Set();
200
+ if (!modelProviders) return baseUrls;
201
+ for (const [providerId, providerConfig] of Object.entries(modelProviders)) {
202
+ const authType = resolveProviderProtocol(providerId, providerProtocol);
203
+ if (!authType) continue;
204
+ const models = readProviderModels(providerConfig);
205
+ for (const model of models) {
206
+ if (typeof model.id === "string" && typeof model.baseUrl === "string" && model.baseUrl.length > 0) {
207
+ baseUrls.add(modelBaseUrlKey(authType, model.id, model.baseUrl));
208
+ }
209
+ }
210
+ }
211
+ return baseUrls;
212
+ }
213
+ __name(buildExplicitModelBaseUrls, "buildExplicitModelBaseUrls");
214
+ function readProviderModels(providerConfig) {
215
+ if (Array.isArray(providerConfig)) {
216
+ return providerConfig.filter(isProviderModelBaseUrlConfig);
217
+ }
218
+ if (typeof providerConfig !== "object" || providerConfig === null) {
219
+ return [];
220
+ }
221
+ const { models } = providerConfig;
222
+ return Array.isArray(models) ? models.filter(isProviderModelBaseUrlConfig) : [];
223
+ }
224
+ __name(readProviderModels, "readProviderModels");
225
+ function isProviderModelBaseUrlConfig(value) {
226
+ return typeof value === "object" && value !== null;
227
+ }
228
+ __name(isProviderModelBaseUrlConfig, "isProviderModelBaseUrlConfig");
229
+ function modelBaseUrlKey(authType, modelId, baseUrl) {
230
+ return `${authType}\0${modelId}\0${baseUrl}`;
231
+ }
232
+ __name(modelBaseUrlKey, "modelBaseUrlKey");
184
233
  var URL_LIKE_PATTERN = /\b[A-Za-z][A-Za-z\d+.-]*:\/\/[^\s'"`<>]+/g;
185
234
  var URL_START_PATTERN = /\b[A-Za-z][A-Za-z\d+.-]*:\/\//g;
186
235
  function sanitizeProviderWarning(warning) {
@@ -3,16 +3,16 @@
3
3
  import {
4
4
  getInstallationInfo,
5
5
  resolveUpdateCommand
6
- } from "./chunk-GLEJW7T2.js";
6
+ } from "./chunk-TL4R5TRK.js";
7
7
  import {
8
8
  performStandaloneUpdate
9
- } from "./chunk-XK42MWWO.js";
9
+ } from "./chunk-V2DXTLUE.js";
10
10
  import {
11
11
  updateEventEmitter
12
12
  } from "./chunk-YAF2MQZ6.js";
13
13
  import {
14
14
  t
15
- } from "./chunk-EMJJBXS7.js";
15
+ } from "./chunk-4AGTGMCQ.js";
16
16
  import {
17
17
  createDebugLogger
18
18
  } from "./chunk-7NFB7LBQ.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  TotalSessionLimitExceededError,
5
5
  WorkspaceDrainingError
6
- } from "./chunk-X6YQWCIJ.js";
6
+ } from "./chunk-L4Y55KIS.js";
7
7
  import {
8
8
  init_esbuild_shims
9
9
  } from "./chunk-5O2XNYP6.js";
@@ -5,7 +5,7 @@ import {
5
5
  isTranscribableVoiceModel,
6
6
  readVoiceLanguage,
7
7
  resolveVoiceTransport
8
- } from "./chunk-4UBEB74N.js";
8
+ } from "./chunk-3M75MSVA.js";
9
9
  import {
10
10
  resolvePath
11
11
  } from "./chunk-FSA7ERJ2.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-QHTIBUWB.js";
9
9
  import {
10
10
  t
11
- } from "./chunk-EMJJBXS7.js";
11
+ } from "./chunk-4AGTGMCQ.js";
12
12
  import {
13
13
  require_clean,
14
14
  require_constants,