@qwen-code/qwen-code 0.20.1 → 0.20.2-gdpval-vl-bridge.0

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 (219) hide show
  1. package/bundled/qc-helper/docs/integration-github-action.md +9 -9
  2. package/chunks/{MaxSizedBox-4WZYPSRU.js → MaxSizedBox-LJXM44LM.js} +10 -11
  3. package/chunks/{StandaloneSessionPicker-PE4JAIFA.js → StandaloneSessionPicker-PJL4SUNJ.js} +25 -26
  4. package/chunks/{acpAgent-BVIKGJ2C.js → acpAgent-QILHBOVE.js} +121 -80
  5. package/chunks/{agent-DHLFAOUV.js → agent-MITS5NNF.js} +10 -11
  6. package/chunks/{agent-headless-ZP5WTNXZ.js → agent-headless-CSKMTZYT.js} +10 -11
  7. package/chunks/{anthropicContentGenerator-NMSS7IMV.js → anthropicContentGenerator-HGWAHO24.js} +6 -8
  8. package/chunks/{bridge-XAK7JKMD.js → bridge-OTBUREJB.js} +14 -15
  9. package/chunks/{channel-worker-group-LFBT7K64.js → channel-worker-group-QZV2SP5U.js} +3 -3
  10. package/chunks/{channel-worker-manager-3RUPERG2.js → channel-worker-manager-3GMAU45H.js} +3 -3
  11. package/chunks/{channel-worker-supervisor-A3KVATD3.js → channel-worker-supervisor-QCXSXCRY.js} +2 -2
  12. package/chunks/{chunk-76OFFG6L.js → chunk-2DGTZXPP.js} +1 -1
  13. package/chunks/{chunk-BWQRDISK.js → chunk-2M6SP3YW.js} +1 -1
  14. package/chunks/chunk-3Z43GZUQ.js +32 -0
  15. package/chunks/{chunk-N5ARKAVE.js → chunk-4I7Z3D2K.js} +6 -6
  16. package/chunks/{chunk-EFIOE2EH.js → chunk-4WI3O5SO.js} +1 -1
  17. package/chunks/{chunk-27CLX4FV.js → chunk-54ABO2GD.js} +1 -1
  18. package/chunks/{chunk-BKZEHVPV.js → chunk-5G3ZVADU.js} +148 -47
  19. package/chunks/{chunk-PIHKWN7M.js → chunk-5IDR6XE4.js} +1 -1
  20. package/chunks/{chunk-Q3GGJDYN.js → chunk-5VLWDXVW.js} +3 -3
  21. package/chunks/{chunk-3KQSDUK3.js → chunk-5ZJ76VN7.js} +7 -8
  22. package/chunks/{chunk-R7MPKABX.js → chunk-6KTYB3BL.js} +70 -36
  23. package/chunks/{chunk-4DSBFQMI.js → chunk-6KWPAL2Y.js} +2 -2
  24. package/chunks/{chunk-PSVSP2OS.js → chunk-6PMESZR4.js} +3 -3
  25. package/chunks/{chunk-TXRKCFWS.js → chunk-7UOLRSUW.js} +1 -1
  26. package/chunks/{chunk-DRIXALGM.js → chunk-7Z3BQV36.js} +2 -2
  27. package/chunks/{chunk-KQQ757OQ.js → chunk-ACW3VNUE.js} +1 -1
  28. package/chunks/{chunk-TPR35HHZ.js → chunk-AIAHTIQX.js} +3 -3
  29. package/chunks/{chunk-KSZZBDVD.js → chunk-AWRZQTYG.js} +25 -25
  30. package/chunks/{chunk-PPIHLGNE.js → chunk-B3QY5TAE.js} +1 -1
  31. package/chunks/{chunk-M7WBGLYP.js → chunk-BULDBTYC.js} +2 -0
  32. package/chunks/{chunk-JYS55H6Z.js → chunk-CBOQ3HY7.js} +400 -3
  33. package/chunks/{chunk-6PRNSLMB.js → chunk-CNXESX7W.js} +16 -17
  34. package/chunks/{chunk-S3YQCNJE.js → chunk-DZDM2LCO.js} +1 -1
  35. package/chunks/{chunk-JKFHJK5U.js → chunk-ENTIQ7PN.js} +4 -4
  36. package/chunks/{chunk-7SWFAKVH.js → chunk-ERCSSQY3.js} +10 -10
  37. package/chunks/{chunk-3LH5Q2AR.js → chunk-EXVVHNPJ.js} +4 -4
  38. package/chunks/{chunk-JTUAAVUT.js → chunk-FFDPKCID.js} +2 -2
  39. package/chunks/{chunk-CHXKGIMK.js → chunk-FLLYXUZE.js} +1 -1
  40. package/chunks/{chunk-X7XWGRDT.js → chunk-GCEE2HJ5.js} +3 -3
  41. package/chunks/{chunk-7LH6CHKG.js → chunk-GHERLCN5.js} +1 -1
  42. package/chunks/{chunk-QD6BRERJ.js → chunk-GHRSKGHF.js} +1 -1
  43. package/chunks/{chunk-5G2SK2OO.js → chunk-IGAR75ZK.js} +192 -105
  44. package/chunks/{chunk-AZD6KAV7.js → chunk-ISOHMBTV.js} +3 -3
  45. package/chunks/{chunk-JO7FGOSY.js → chunk-JIK3TDIA.js} +3 -3
  46. package/chunks/{chunk-EWXXMRMP.js → chunk-JJEBXTZW.js} +2 -2
  47. package/chunks/{chunk-QUHJRRUA.js → chunk-KCJDKAVN.js} +29 -18
  48. package/chunks/{chunk-G6LRTI62.js → chunk-KXFNYTHD.js} +4 -4
  49. package/chunks/{chunk-OUDZVU7H.js → chunk-LCKGROQ7.js} +7 -5
  50. package/chunks/{chunk-JJEFX6U5.js → chunk-LESHKUWF.js} +2 -4
  51. package/chunks/{chunk-WCFTQD7H.js → chunk-LX4HOTPK.js} +1 -1
  52. package/chunks/{chunk-6NHK6HS7.js → chunk-MDZTPSXO.js} +1 -1
  53. package/chunks/{chunk-MTSYH4MB.js → chunk-MQCQ2RPF.js} +2 -2
  54. package/chunks/{chunk-R3BCL5XW.js → chunk-NOXG3VV4.js} +3 -3
  55. package/chunks/{chunk-QSJ6JIF5.js → chunk-OBGWF32G.js} +3 -3
  56. package/chunks/{chunk-BZAEENUV.js → chunk-PCW6IHMC.js} +2 -2
  57. package/chunks/{chunk-KDPIV6WC.js → chunk-PFSXIGJ4.js} +1 -1
  58. package/chunks/{chunk-766HLFAG.js → chunk-QOXNPPAQ.js} +3 -3
  59. package/chunks/{chunk-GEB2CGUV.js → chunk-QPYT2PMU.js} +1368 -984
  60. package/chunks/{chunk-IS2SBY6T.js → chunk-RCUEYZDE.js} +36 -2
  61. package/chunks/{chunk-JIBBZH37.js → chunk-RWAYXN3M.js} +23 -25
  62. package/chunks/{chunk-5EA5NVXS.js → chunk-RXIGY3Z7.js} +1 -1
  63. package/chunks/{chunk-NNFK277W.js → chunk-RXXCWIIT.js} +1 -1
  64. package/chunks/{chunk-SP32MK6J.js → chunk-S5OLFBI4.js} +1 -1
  65. package/chunks/{chunk-LPMBFOWH.js → chunk-SD4BYEST.js} +33 -33
  66. package/chunks/{chunk-DPRMI6NU.js → chunk-SJFV5DCS.js} +1 -1
  67. package/chunks/{chunk-PBED7USE.js → chunk-SJYO564B.js} +1 -1
  68. package/chunks/{chunk-4BRH6FP5.js → chunk-TQOHIH3J.js} +4 -4
  69. package/chunks/{chunk-3SXF4GMQ.js → chunk-TSHDJIHT.js} +1 -1
  70. package/chunks/{chunk-Q2V2ADXF.js → chunk-TZD76DW5.js} +4 -4
  71. package/chunks/{chunk-7NDXG4MB.js → chunk-VMK4GQ7U.js} +7 -7
  72. package/chunks/{chunk-52T5UHAZ.js → chunk-VO6WUB5V.js} +1 -1
  73. package/chunks/{chunk-LYEKAAEH.js → chunk-VV6A6GOJ.js} +3 -3
  74. package/chunks/{chunk-EC2ET5ZZ.js → chunk-WO7ZDMC3.js} +1 -1
  75. package/chunks/{chunk-WML6JOGQ.js → chunk-WUK6EDXF.js} +5 -7
  76. package/chunks/{chunk-JHFVJQRO.js → chunk-XP4OZD4C.js} +1 -1
  77. package/chunks/{chunk-Y2DAH52F.js → chunk-YLBIIEB3.js} +4 -4
  78. package/chunks/{chunk-RYSMKY43.js → chunk-Z4CVMZDO.js} +4 -4
  79. package/chunks/{chunk-D6ZOVZLF.js → chunk-Z4KOWJRT.js} +1 -1
  80. package/chunks/{chunk-D53NR4GO.js → chunk-ZLEQDVBN.js} +66 -52
  81. package/chunks/{computer-use-MV4K6WJM.js → computer-use-XH5KVSRK.js} +10 -11
  82. package/chunks/{config-utils-WYUQ7II4.js → config-utils-FYTBZLCJ.js} +1 -1
  83. package/chunks/{contextCommand-TQD36VNX.js → contextCommand-TLVGNAYE.js} +12 -13
  84. package/chunks/{create-sub-session-JOW4BKMC.js → create-sub-session-EJ6CRFF2.js} +10 -11
  85. package/chunks/{daemon-KLPTQIE4.js → daemon-GJRFILYS.js} +185 -18
  86. package/chunks/{daemon-status-provider-TII4SMCZ.js → daemon-status-provider-KOO2M6UX.js} +18 -19
  87. package/chunks/{earlyInputCapture-2V57RG6H.js → earlyInputCapture-XQBXXREG.js} +10 -11
  88. package/chunks/{edit-TTUH7PWR.js → edit-KYBZLIFH.js} +10 -11
  89. package/chunks/{enter-worktree-D4IVCXYB.js → enter-worktree-4QGJGFEV.js} +10 -11
  90. package/chunks/{enterPlanMode-WRUJTVYN.js → enterPlanMode-JVGORNU6.js} +10 -11
  91. package/chunks/{environment-SEPKXB2C.js → environment-BHBI5AZ6.js} +12 -13
  92. package/chunks/{errors-YSVGBLBU.js → errors-JEUC6I3K.js} +12 -13
  93. package/chunks/{exit-worktree-MZ4JSSP6.js → exit-worktree-CWTHMB5Z.js} +10 -11
  94. package/chunks/{exitPlanMode-HAZLSSOJ.js → exitPlanMode-BBSMHTLY.js} +10 -11
  95. package/chunks/{fast-path-EVBVIE2U.js → fast-path-TKXQ2N7L.js} +3 -3
  96. package/chunks/{fast-path-settings-XB3CPUJT.js → fast-path-settings-DAOVFADC.js} +2 -2
  97. package/chunks/{gemini-APQ76464.js → gemini-TZWFMMSH.js} +53 -54
  98. package/chunks/{geminiContentGenerator-LB4MA2LI.js → geminiContentGenerator-WWGEJKFB.js} +1 -1
  99. package/chunks/{glob-LABYMYKG.js → glob-CUK5IVAR.js} +10 -11
  100. package/chunks/{grep-HKIKJCAS.js → grep-5KK7VUB2.js} +10 -11
  101. package/chunks/{handleAutoUpdate-RWAAL2UM.js → handleAutoUpdate-7VWATKG6.js} +15 -16
  102. package/chunks/{i18n-ZUVDAJIJ.js → i18n-S3SUCYS6.js} +11 -12
  103. package/chunks/{initializer-7YUHIC36.js → initializer-4TGXLN4W.js} +16 -17
  104. package/chunks/{installationInfo-DVEOMWDE.js → installationInfo-HP345PUE.js} +11 -12
  105. package/chunks/{list-WHCZSIR2.js → list-Z4B2PADO.js} +19 -20
  106. package/chunks/{loadedSettingsAdapter-YCWN6AK3.js → loadedSettingsAdapter-HPSBPLTA.js} +16 -17
  107. package/chunks/{managed-npm-update-PG3463CJ.js → managed-npm-update-MIAA4DVB.js} +11 -12
  108. package/chunks/{mcp-VLHDCKAN.js → mcp-SRDAT3US.js} +16 -17
  109. package/chunks/{monitor-GG4F4YM6.js → monitor-WXB5MY4U.js} +10 -11
  110. package/chunks/{nonInteractiveCli-UYXYV4YX.js → nonInteractiveCli-2GFHBH47.js} +46 -47
  111. package/chunks/{notebook-edit-US4VLN6Q.js → notebook-edit-A22GKYUC.js} +10 -11
  112. package/chunks/{openaiContentGenerator-CVEDTMDB.js → openaiContentGenerator-ZQ6CYL4U.js} +7 -8
  113. package/chunks/{pidfile-QQ45OIOY.js → pidfile-PBV63DT4.js} +10 -11
  114. package/chunks/{processUtils-3WMHLQE5.js → processUtils-D3F5NRBV.js} +2 -2
  115. package/chunks/{qwenContentGenerator-Y2GRNYZQ.js → qwenContentGenerator-2N24PNP3.js} +15 -16
  116. package/chunks/{qwenOAuth2-J2X6E5VO.js → qwenOAuth2-YFFJOT4S.js} +7 -8
  117. package/chunks/{read-file-C7Z266CU.js → read-file-PJ6S7IGJ.js} +4 -4
  118. package/chunks/{resumeHistoryUtils-KBQWX77U.js → resumeHistoryUtils-RQUWKOKB.js} +13 -14
  119. package/chunks/{ripGrep-RW26MTQ3.js → ripGrep-I5FH2I7V.js} +10 -11
  120. package/chunks/{run-qwen-serve-MXFMOMEL.js → run-qwen-serve-4VHQN3CF.js} +67 -48
  121. package/chunks/{runtime-APNO3V6D.js → runtime-K4BTMDOK.js} +18 -19
  122. package/chunks/{scheduler-L6FYCGVO.js → scheduler-YLNOB2ZX.js} +10 -11
  123. package/chunks/{sdk-exporters-http-IDGLRBGP.js → sdk-exporters-http-6MCQH335.js} +2 -2
  124. package/chunks/{sdk-impl-5ESZBGJQ.js → sdk-impl-HOLWAXC6.js} +9 -2
  125. package/chunks/{send-message-PYIJ2PZL.js → send-message-KBO6X4ZS.js} +1 -1
  126. package/chunks/{serve-6QBXDVWT.js → serve-CNPQK3RE.js} +16 -17
  127. package/chunks/{server-5TJJEMVQ.js → server-YMIGPXOS.js} +1322 -178
  128. package/chunks/{session-BWEUHKQB.js → session-ZJHIJ6XL.js} +49 -50
  129. package/chunks/{settings-O7IUQNRR.js → settings-IJECFRXI.js} +18 -19
  130. package/chunks/{shell-R5L4NQYY.js → shell-LFSMRD3H.js} +10 -11
  131. package/chunks/{skill-ITEOSNW6.js → skill-HOUMVQOO.js} +4 -4
  132. package/chunks/{spawnChannel-E7NTWSGW.js → spawnChannel-H5V2VAS4.js} +12 -13
  133. package/chunks/{src-FFXGUTNL.js → src-PT66JDFR.js} +45 -33
  134. package/chunks/{standalone-update-JCJOXW4P.js → standalone-update-BELF5IPT.js} +13 -14
  135. package/chunks/{startInteractiveUI-IJSBLZFO.js → startInteractiveUI-POZD5EYR.js} +150 -144
  136. package/chunks/{team-create-OVSZTJZO.js → team-create-IXRXGMLS.js} +10 -11
  137. package/chunks/{team-plan-approval-SLEVDLT5.js → team-plan-approval-4LIT4KTC.js} +10 -11
  138. package/chunks/{theme-manager-V6ZQISHM.js → theme-manager-5POAFV4H.js} +10 -11
  139. package/chunks/{tool-search-KYIF6C6E.js → tool-search-TDETP5WK.js} +4 -4
  140. package/chunks/{total-session-admission-EU77XTL7.js → total-session-admission-E7DO4SAC.js} +14 -15
  141. package/chunks/{tree-sitter-4D7QS7F6.js → tree-sitter-L5BFT64K.js} +1 -1
  142. package/chunks/{tree-sitter-bash-VEJGF5XF.js → tree-sitter-bash-ZKDNQGID.js} +1 -1
  143. package/chunks/{trustedFolders-DDEF3ADH.js → trustedFolders-TYGSOWS6.js} +11 -12
  144. package/chunks/{chunk-5I5BM454.js → undici-3FJYTMOF.js} +24 -399
  145. package/chunks/{chunk-L573Z2QZ.js → undici-PYHBDDPN.js} +1 -5
  146. package/chunks/{update-relaunch-XEZTDP6K.js → update-relaunch-IWFT5NLP.js} +5 -5
  147. package/chunks/{updateCheck-KZ5LZ545.js → updateCheck-5EGA5DYR.js} +13 -14
  148. package/chunks/{useAutoAcceptIndicator-47EZERGQ.js → useAutoAcceptIndicator-SD44HHNK.js} +18 -19
  149. package/chunks/{validateNonInterActiveAuth-J2DM4LWZ.js → validateNonInterActiveAuth-5NAZUFHP.js} +43 -44
  150. package/chunks/{version-PN7WYXHP.js → version-ZSU7UBMZ.js} +1 -1
  151. package/chunks/{web-fetch-WRI5QRFR.js → web-fetch-QGHG72G2.js} +6 -7
  152. package/chunks/{web-search-2HCXNAVX.js → web-search-F6CEDF53.js} +13 -12
  153. package/chunks/{workflow-U5XBPGQZ.js → workflow-DWUUO6GZ.js} +11 -12
  154. package/chunks/{workspace-providers-status-2T54GIJZ.js → workspace-providers-status-XOINT6H3.js} +19 -20
  155. package/chunks/{workspace-registration-store-F3V4KBIW.js → workspace-registration-store-WMR4IVHM.js} +1 -1
  156. package/chunks/{workspace-registry-U6QVZ5BU.js → workspace-registry-E3R2OXHI.js} +14 -15
  157. package/chunks/{workspace-service-734D36QD.js → workspace-service-46DNRBIV.js} +21 -22
  158. package/chunks/{workspace-skills-status-5ABUKOAQ.js → workspace-skills-status-ENBQGA5A.js} +17 -18
  159. package/chunks/{write-file-CIH4I4CS.js → write-file-RVSFV5UL.js} +10 -11
  160. package/cli.js +12 -12
  161. package/package.json +3 -3
  162. package/web-shell/assets/{arc-ByltRugA.js → arc-DIQrcXXh.js} +1 -1
  163. package/web-shell/assets/{architectureDiagram-3BPJPVTR-CCRTto5d.js → architectureDiagram-3BPJPVTR-CbPd-DSw.js} +1 -1
  164. package/web-shell/assets/{blockDiagram-GPEHLZMM-Jfy36u1L.js → blockDiagram-GPEHLZMM-yzBIVhMX.js} +1 -1
  165. package/web-shell/assets/{c4Diagram-AAUBKEIU-4d5FfEZ0.js → c4Diagram-AAUBKEIU-B88Swcsu.js} +1 -1
  166. package/web-shell/assets/channel-BaTMUesZ.js +1 -0
  167. package/web-shell/assets/{chunk-2J33WTMH-BPwxCEro.js → chunk-2J33WTMH-BbOLo6NX.js} +1 -1
  168. package/web-shell/assets/{chunk-4BX2VUAB-jY7ZmJWY.js → chunk-4BX2VUAB-Bg6in0r0.js} +1 -1
  169. package/web-shell/assets/{chunk-55IACEB6-C98HgCsS.js → chunk-55IACEB6-Bv9QRyLI.js} +1 -1
  170. package/web-shell/assets/{chunk-727SXJPM-cDu-ge-q.js → chunk-727SXJPM-CFokiv61.js} +1 -1
  171. package/web-shell/assets/{chunk-AQP2D5EJ-BKdJwxXK.js → chunk-AQP2D5EJ-DS2Oxf6L.js} +1 -1
  172. package/web-shell/assets/{chunk-FMBD7UC4-DnuxqwMu.js → chunk-FMBD7UC4-D2NkHD3B.js} +1 -1
  173. package/web-shell/assets/{chunk-ND2GUHAM-C4fZNPv0.js → chunk-ND2GUHAM-BsT_UC5B.js} +1 -1
  174. package/web-shell/assets/{chunk-QZHKN3VN-Cf4XWOmz.js → chunk-QZHKN3VN-tnJo3zln.js} +1 -1
  175. package/web-shell/assets/classDiagram-4FO5ZUOK-CyBPzWud.js +1 -0
  176. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CyBPzWud.js +1 -0
  177. package/web-shell/assets/{cose-bilkent-S5V4N54A-C82mFiqj.js → cose-bilkent-S5V4N54A-BTMa6DAZ.js} +1 -1
  178. package/web-shell/assets/{dagre-BM42HDAG-Df8KACER.js → dagre-BM42HDAG-ujGX7Owg.js} +1 -1
  179. package/web-shell/assets/{diagram-2AECGRRQ-EzNs7s_2.js → diagram-2AECGRRQ-fU4-dbPa.js} +1 -1
  180. package/web-shell/assets/{diagram-5GNKFQAL-BRLNvreg.js → diagram-5GNKFQAL-Bdm-TYSA.js} +1 -1
  181. package/web-shell/assets/{diagram-KO2AKTUF-2HLYHRjC.js → diagram-KO2AKTUF-Bkhz85Z9.js} +1 -1
  182. package/web-shell/assets/{diagram-LMA3HP47-DeH0NzSp.js → diagram-LMA3HP47-Bzu3q26p.js} +1 -1
  183. package/web-shell/assets/{diagram-OG6HWLK6-k5Gn47-G.js → diagram-OG6HWLK6-CZrXbG5Q.js} +1 -1
  184. package/web-shell/assets/{erDiagram-TEJ5UH35-gPHFo79f.js → erDiagram-TEJ5UH35-BjozEAYu.js} +1 -1
  185. package/web-shell/assets/{flowDiagram-I6XJVG4X-DYBOiTRW.js → flowDiagram-I6XJVG4X-B3a2I8c-.js} +1 -1
  186. package/web-shell/assets/{ganttDiagram-6RSMTGT7-cxjAuic9.js → ganttDiagram-6RSMTGT7-CIMn9fNm.js} +1 -1
  187. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-3nPqpmCP.js → gitGraphDiagram-PVQCEYII-DlFy9KRx.js} +1 -1
  188. package/web-shell/assets/{index-Cl8d-1bK.js → index-BODUAzQA.js} +1 -1
  189. package/web-shell/assets/index-C54DNMF7.js +1209 -0
  190. package/web-shell/assets/index-lWqBfc78.css +5 -0
  191. package/web-shell/assets/{infoDiagram-5YYISTIA-Dph21pR5.js → infoDiagram-5YYISTIA-BmKjQgCy.js} +1 -1
  192. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js → ishikawaDiagram-YF4QCWOH-BrQEMZz2.js} +1 -1
  193. package/web-shell/assets/{journeyDiagram-JHISSGLW-CR-IzvnU.js → journeyDiagram-JHISSGLW-D-2r7Xrt.js} +1 -1
  194. package/web-shell/assets/{kanban-definition-UN3LZRKU-BYmuybuC.js → kanban-definition-UN3LZRKU-CndsFHCX.js} +1 -1
  195. package/web-shell/assets/{linear-CngEEoy8.js → linear-D-IwNnKx.js} +1 -1
  196. package/web-shell/assets/{mermaid.core-G6fbZRPf.js → mermaid.core-4ll09sri.js} +5 -5
  197. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BtnqnUwJ.js → mindmap-definition-RKZ34NQL-maMRIxjo.js} +1 -1
  198. package/web-shell/assets/{pieDiagram-4H26LBE5-XTq6UHIA.js → pieDiagram-4H26LBE5-aunUDhrJ.js} +1 -1
  199. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D1J5PrsS.js → quadrantDiagram-W4KKPZXB-D3K0P1NZ.js} +1 -1
  200. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CLcBUy3t.js → requirementDiagram-4Y6WPE33-CX2X9HRc.js} +1 -1
  201. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-iwKV02_6.js → sankeyDiagram-5OEKKPKP-CDroWk7l.js} +1 -1
  202. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-7NFYQcEX.js → sequenceDiagram-3UESZ5HK-DTk-2b16.js} +1 -1
  203. package/web-shell/assets/{stateDiagram-AJRCARHV-Bvm4Wih6.js → stateDiagram-AJRCARHV-Cud64hQr.js} +1 -1
  204. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-g-uUpecT.js +1 -0
  205. package/web-shell/assets/{timeline-definition-PNZ67QCA-B4FZFE9O.js → timeline-definition-PNZ67QCA-DfD5okf_.js} +1 -1
  206. package/web-shell/assets/{vennDiagram-CIIHVFJN-CvMBpmtL.js → vennDiagram-CIIHVFJN-BYl8ay25.js} +1 -1
  207. package/web-shell/assets/{wardley-L42UT6IY-E3ag2327.js → wardley-L42UT6IY-BZFAt10J.js} +1 -1
  208. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BEXWlgxC.js → wardleyDiagram-YWT4CUSO-BIWn0GA7.js} +1 -1
  209. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CICK05gI.js → xychartDiagram-2RQKCTM6-1_H4xblT.js} +1 -1
  210. package/web-shell/index.html +2 -2
  211. package/web-shell/assets/channel-4N2UIFcG.js +0 -1
  212. package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +0 -1
  213. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +0 -1
  214. package/web-shell/assets/index-B7jzUZ_s.css +0 -5
  215. package/web-shell/assets/index-gE8OWwj_.js +0 -1197
  216. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +0 -1
  217. package/chunks/{chunk-D7WXIW7H.js → chunk-H24SOJIQ.js} +3 -3
  218. package/chunks/{chunk-QZJY47IE.js → chunk-PEJWA3QQ.js} +5 -5
  219. package/chunks/{dist-HMU6CYS4.js → dist-XBJVSWS2.js} +1 -1
@@ -2,13 +2,13 @@
2
2
  "use strict";
3
3
  import {
4
4
  HistoryReplayer
5
- } from "./chunk-6PRNSLMB.js";
5
+ } from "./chunk-CNXESX7W.js";
6
6
  import {
7
7
  redactLogCredentials
8
8
  } from "./chunk-M5GB774H.js";
9
9
  import {
10
10
  getResponseText
11
- } from "./chunk-GEB2CGUV.js";
11
+ } from "./chunk-QPYT2PMU.js";
12
12
  import {
13
13
  init_esbuild_shims
14
14
  } from "./chunk-5O2XNYP6.js";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  formatHistoryGapNotice,
19
19
  indexGapsByChild
20
- } from "./chunk-NNFK277W.js";
20
+ } from "./chunk-RXXCWIIT.js";
21
21
  import {
22
22
  stringWidth
23
23
  } from "./chunk-H2XVO6NE.js";
@@ -29,10 +29,10 @@ import {
29
29
  } from "./chunk-E5Z2AVNV.js";
30
30
  import {
31
31
  t
32
- } from "./chunk-WCFTQD7H.js";
32
+ } from "./chunk-LX4HOTPK.js";
33
33
  import {
34
34
  getToolResponseDisplayText
35
- } from "./chunk-GEB2CGUV.js";
35
+ } from "./chunk-QPYT2PMU.js";
36
36
  import {
37
37
  stripAnsi
38
38
  } from "./chunk-T4TZQJ7W.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-JESCGQM3.js";
6
6
  import {
7
7
  formatFetchErrorForUser
8
- } from "./chunk-EWXXMRMP.js";
8
+ } from "./chunk-JJEBXTZW.js";
9
9
  import {
10
10
  combineAbortSignals
11
11
  } from "./chunk-DJ2GSRLV.js";
@@ -2,11 +2,11 @@
2
2
  "use strict";
3
3
  import {
4
4
  STATUS_SCHEMA_VERSION
5
- } from "./chunk-BWQRDISK.js";
5
+ } from "./chunk-2M6SP3YW.js";
6
6
  import {
7
7
  detectRuntime,
8
8
  redactProxyCredentials
9
- } from "./chunk-5I5BM454.js";
9
+ } from "./chunk-CBOQ3HY7.js";
10
10
  import {
11
11
  init_esbuild_shims
12
12
  } from "./chunk-5O2XNYP6.js";
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  import {
4
4
  ChannelWorkerStartupError
5
- } from "./chunk-D7WXIW7H.js";
5
+ } from "./chunk-H24SOJIQ.js";
6
6
  import {
7
7
  ChannelWebhookEnqueueError
8
8
  } from "./chunk-QKTHJXCS.js";
@@ -3,13 +3,13 @@
3
3
  import {
4
4
  resolveModelConfig,
5
5
  resolveProviderProtocol
6
- } from "./chunk-GEB2CGUV.js";
6
+ } from "./chunk-QPYT2PMU.js";
7
7
  import {
8
8
  external_exports
9
9
  } from "./chunk-H6XPXXMH.js";
10
10
  import {
11
11
  stripRuntimeSnapshotPrefix
12
- } from "./chunk-PIHKWN7M.js";
12
+ } from "./chunk-5IDR6XE4.js";
13
13
  import {
14
14
  REASONING_EFFORT_TIERS,
15
15
  normalizeReasoningEffort
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  AuthType,
19
19
  MODEL_GENERATION_CONFIG_FIELDS
20
- } from "./chunk-5G2SK2OO.js";
20
+ } from "./chunk-IGAR75ZK.js";
21
21
  import {
22
22
  init_esbuild_shims
23
23
  } from "./chunk-5O2XNYP6.js";
@@ -1,18 +1,33 @@
1
1
  // Force strict mode and setup for ESM
2
2
  "use strict";
3
+ import {
4
+ CompactToolGroupDisplay,
5
+ SCREEN_READER_MODEL_PREFIX,
6
+ SCREEN_READER_USER_PREFIX,
7
+ SHELL_COMMAND_NAME,
8
+ SHELL_NAME,
9
+ STATUS_INDICATOR_WIDTH,
10
+ ToolElapsedTime,
11
+ ToolStatusIndicator,
12
+ buildResumedHistoryItems,
13
+ build_default,
14
+ estimateCompactToolGroupHeight,
15
+ isCollapsibleTool,
16
+ wrapAnsi
17
+ } from "./chunk-6PMESZR4.js";
3
18
  import {
4
19
  disableMouseEvents,
5
20
  enableMouseEvents,
6
21
  useKeypress,
7
22
  useKeypressContext
8
- } from "./chunk-Q2V2ADXF.js";
23
+ } from "./chunk-TZD76DW5.js";
9
24
  import {
10
25
  formatSupportedModes,
11
26
  getCommandDisplayName,
12
27
  getCommandSourceBadge,
13
28
  getCommandSourceGroup,
14
29
  getCommandSubcommandNames
15
- } from "./chunk-PBED7USE.js";
30
+ } from "./chunk-SJYO564B.js";
16
31
  import {
17
32
  calculateAverageLatency,
18
33
  calculateCacheHitRate,
@@ -22,7 +37,7 @@ import {
22
37
  computeSessionStats,
23
38
  getSystemInfoFields,
24
39
  levelLabel
25
- } from "./chunk-JTUAAVUT.js";
40
+ } from "./chunk-FFDPKCID.js";
26
41
  import {
27
42
  wrapForMultiplexer
28
43
  } from "./chunk-4LVZNIDO.js";
@@ -30,21 +45,6 @@ import {
30
45
  MINIMUM_MAX_HEIGHT,
31
46
  MaxSizedBox
32
47
  } from "./chunk-SP5WRGVG.js";
33
- import {
34
- CompactToolGroupDisplay,
35
- SCREEN_READER_MODEL_PREFIX,
36
- SCREEN_READER_USER_PREFIX,
37
- SHELL_COMMAND_NAME,
38
- SHELL_NAME,
39
- STATUS_INDICATOR_WIDTH,
40
- ToolElapsedTime,
41
- ToolStatusIndicator,
42
- buildResumedHistoryItems,
43
- build_default,
44
- estimateCompactToolGroupHeight,
45
- isCollapsibleTool,
46
- wrapAnsi
47
- } from "./chunk-PSVSP2OS.js";
48
48
  import {
49
49
  theme
50
50
  } from "./chunk-6IL7KRLE.js";
@@ -65,7 +65,7 @@ import {
65
65
  } from "./chunk-5QWWOFGG.js";
66
66
  import {
67
67
  relaunchApp
68
- } from "./chunk-CHXKGIMK.js";
68
+ } from "./chunk-FLLYXUZE.js";
69
69
  import {
70
70
  resolveColor,
71
71
  themeManager
@@ -102,18 +102,18 @@ import {
102
102
  } from "./chunk-57OAHC2Y.js";
103
103
  import {
104
104
  createLoadedSettingsAdapter
105
- } from "./chunk-EC2ET5ZZ.js";
105
+ } from "./chunk-WO7ZDMC3.js";
106
106
  import {
107
107
  getPersistScopeForModelSelection
108
- } from "./chunk-7SWFAKVH.js";
108
+ } from "./chunk-ERCSSQY3.js";
109
109
  import {
110
110
  getCurrentLanguage,
111
111
  localizeToolDisplayName,
112
112
  t
113
- } from "./chunk-WCFTQD7H.js";
113
+ } from "./chunk-LX4HOTPK.js";
114
114
  import {
115
115
  isWorkspaceTrusted
116
- } from "./chunk-S3YQCNJE.js";
116
+ } from "./chunk-DZDM2LCO.js";
117
117
  import {
118
118
  ALL_PROVIDERS,
119
119
  IdeClient,
@@ -135,7 +135,7 @@ import {
135
135
  resolveBaseUrl,
136
136
  resolveMetadataKey,
137
137
  resolveOwnsModel
138
- } from "./chunk-GEB2CGUV.js";
138
+ } from "./chunk-QPYT2PMU.js";
139
139
  import {
140
140
  stripAnsi
141
141
  } from "./chunk-T4TZQJ7W.js";
@@ -145,7 +145,7 @@ import {
145
145
  getMCPServerStatus,
146
146
  isVisionBridgeNoticeDisplay,
147
147
  uiTelemetryService
148
- } from "./chunk-5G2SK2OO.js";
148
+ } from "./chunk-IGAR75ZK.js";
149
149
  import {
150
150
  ToolDisplayNames,
151
151
  ToolNames,
@@ -7,7 +7,7 @@ import {
7
7
  isQwenQuotaExceededError,
8
8
  isRateLimitError,
9
9
  retryContext
10
- } from "./chunk-5G2SK2OO.js";
10
+ } from "./chunk-IGAR75ZK.js";
11
11
  import {
12
12
  createDebugLogger,
13
13
  getErrorStatus,
@@ -57,6 +57,7 @@ var EVENT_ARENA_SESSION_ENDED = "qwen-code.arena_session_ended";
57
57
  var EVENT_MEMORY_EXTRACT = "qwen-code.memory.extract";
58
58
  var EVENT_MEMORY_DREAM = "qwen-code.memory.dream";
59
59
  var EVENT_MEMORY_RECALL = "qwen-code.memory.recall";
60
+ var EVENT_MEMORY_RECALL_DELIVERY = "qwen-code.memory.recall.delivery";
60
61
  var SPAN_INTERACTION = "qwen-code.interaction";
61
62
  var SPAN_LLM_REQUEST = "qwen-code.llm_request";
62
63
  var SPAN_TOOL = "qwen-code.tool";
@@ -135,6 +136,7 @@ export {
135
136
  EVENT_MEMORY_EXTRACT,
136
137
  EVENT_MEMORY_DREAM,
137
138
  EVENT_MEMORY_RECALL,
139
+ EVENT_MEMORY_RECALL_DELIVERY,
138
140
  SPAN_INTERACTION,
139
141
  SPAN_LLM_REQUEST,
140
142
  SPAN_TOOL,
@@ -676,6 +676,390 @@ function asOptionalRecord(value) {
676
676
  }
677
677
  __name(asOptionalRecord, "asOptionalRecord");
678
678
 
679
+ // packages/core/src/utils/runtimeFetchOptions.ts
680
+ init_esbuild_shims();
681
+ var debugLogger = createDebugLogger("RUNTIME_FETCH");
682
+ var undiciModule;
683
+ var undiciModulePromise;
684
+ async function loadUndici() {
685
+ undiciModulePromise ??= import("./undici-3FJYTMOF.js").then((mod) => {
686
+ const keys = Object.keys(mod);
687
+ if (keys.length === 1 && keys[0] === "default") {
688
+ return mod.default;
689
+ }
690
+ return mod;
691
+ });
692
+ return undiciModulePromise;
693
+ }
694
+ __name(loadUndici, "loadUndici");
695
+ async function preloadRuntimeFetchModule() {
696
+ if (undiciModule) return;
697
+ undiciModule = await loadUndici();
698
+ }
699
+ __name(preloadRuntimeFetchModule, "preloadRuntimeFetchModule");
700
+ function requireUndici() {
701
+ if (!undiciModule) {
702
+ throw new Error(
703
+ "undici is not loaded yet; await preloadRuntimeFetchModule() before building runtime fetch options or dispatchers"
704
+ );
705
+ }
706
+ return undiciModule;
707
+ }
708
+ __name(requireUndici, "requireUndici");
709
+ function isTlsVerificationDisabled() {
710
+ const flag = process.env["QWEN_TLS_INSECURE"];
711
+ if (flag !== void 0 && /^(1|true|yes|on)$/i.test(flag.trim())) {
712
+ return true;
713
+ }
714
+ return process.env["NODE_TLS_REJECT_UNAUTHORIZED"] === "0";
715
+ }
716
+ __name(isTlsVerificationDisabled, "isTlsVerificationDisabled");
717
+ function detectRuntime() {
718
+ if (typeof process !== "undefined" && process.versions?.["bun"]) {
719
+ return "bun";
720
+ }
721
+ if (typeof process !== "undefined" && process.versions?.node) {
722
+ return "node";
723
+ }
724
+ return "unknown";
725
+ }
726
+ __name(detectRuntime, "detectRuntime");
727
+ function buildRuntimeFetchOptions(sdkType, proxyUrl) {
728
+ const runtime = detectRuntime();
729
+ switch (runtime) {
730
+ case "bun": {
731
+ if (sdkType === "openai") {
732
+ return {
733
+ fetchOptions: {
734
+ timeout: false
735
+ }
736
+ };
737
+ } else {
738
+ const bunFetch = /* @__PURE__ */ __name(async (input, init) => {
739
+ const bunFetchOptions = {
740
+ ...init,
741
+ // @ts-expect-error - Bun-specific timeout option
742
+ timeout: false
743
+ };
744
+ return fetch(input, bunFetchOptions);
745
+ }, "bunFetch");
746
+ return {
747
+ fetch: bunFetch
748
+ };
749
+ }
750
+ }
751
+ case "node": {
752
+ return buildFetchOptionsWithDispatcher(sdkType, proxyUrl);
753
+ }
754
+ default: {
755
+ return buildFetchOptionsWithDispatcher(sdkType, proxyUrl);
756
+ }
757
+ }
758
+ }
759
+ __name(buildRuntimeFetchOptions, "buildRuntimeFetchOptions");
760
+ var dispatcherCache = /* @__PURE__ */ new Map();
761
+ var proxyFailureCounts = /* @__PURE__ */ new Map();
762
+ var NO_DISPATCHER_FALLBACK = {
763
+ openai: void 0,
764
+ anthropic: {}
765
+ };
766
+ function getOrCreateSharedDispatcher(proxyUrl, insecure = isTlsVerificationDisabled()) {
767
+ const cacheKey = insecure ? `${proxyUrl}#insecure` : proxyUrl;
768
+ const cached = dispatcherCache.get(cacheKey);
769
+ if (cached) {
770
+ return cached;
771
+ }
772
+ const { EnvHttpProxyAgent } = requireUndici();
773
+ const dispatcher = new EnvHttpProxyAgent({
774
+ httpProxy: proxyUrl,
775
+ httpsProxy: proxyUrl,
776
+ headersTimeout: 0,
777
+ bodyTimeout: 0,
778
+ keepAliveTimeout: 6e4,
779
+ // EnvHttpProxyAgent can dispatch either directly or through a proxy.
780
+ // `connect` covers a direct NO_PROXY connection, `requestTls` covers the
781
+ // origin through a proxy, and `proxyTls` covers an HTTPS proxy itself.
782
+ ...insecure ? {
783
+ connect: { rejectUnauthorized: false },
784
+ requestTls: { rejectUnauthorized: false },
785
+ proxyTls: { rejectUnauthorized: false }
786
+ } : {}
787
+ });
788
+ dispatcherCache.set(cacheKey, dispatcher);
789
+ return dispatcher;
790
+ }
791
+ __name(getOrCreateSharedDispatcher, "getOrCreateSharedDispatcher");
792
+ function extractHostnameFromProxyUrl(proxyUrl) {
793
+ try {
794
+ const url = new URL(proxyUrl);
795
+ if (url.hostname) {
796
+ return url.port ? `${url.hostname}:${url.port}` : url.hostname;
797
+ }
798
+ } catch {
799
+ }
800
+ const match = proxyUrl.match(/@([^:/\s]+)(:\d+)?/);
801
+ return match ? match[1] + (match[2] ?? "") : redactProxyCredentials(proxyUrl);
802
+ }
803
+ __name(extractHostnameFromProxyUrl, "extractHostnameFromProxyUrl");
804
+ function hasPlausibleProxyPort(host) {
805
+ const portMatch = host.match(/:(\d{1,5})$/);
806
+ if (!portMatch) {
807
+ return false;
808
+ }
809
+ const port = Number(portMatch[1]);
810
+ return port >= 80 && port <= 65535;
811
+ }
812
+ __name(hasPlausibleProxyPort, "hasPlausibleProxyPort");
813
+ function hasLocalOrProxyLikeHost(host) {
814
+ const hostWithoutPort = host.replace(/:\d{1,5}$/, "").toLowerCase();
815
+ if (hostWithoutPort === "localhost") {
816
+ return true;
817
+ }
818
+ if (/^\d{1,3}(\.\d{1,3}){3}$/.test(hostWithoutPort)) {
819
+ return true;
820
+ }
821
+ return hostWithoutPort.split(/[.-]/).some((label) => /^(proxy|gateway|gw|squid)\d*$/.test(label));
822
+ }
823
+ __name(hasLocalOrProxyLikeHost, "hasLocalOrProxyLikeHost");
824
+ function hasNetworkErrorContext(message, offset) {
825
+ const context = message.slice(Math.max(0, offset - 80), offset).toLowerCase();
826
+ return /\b(connect|dispatcher|econnrefused|econnreset|enotfound|etimedout|proxy|tunnel)\b/.test(
827
+ context
828
+ );
829
+ }
830
+ __name(hasNetworkErrorContext, "hasNetworkErrorContext");
831
+ function shouldRedactTokenOnlyCredential(host, message, offset) {
832
+ return hasPlausibleProxyPort(host) && (hasLocalOrProxyLikeHost(host) || hasNetworkErrorContext(message, offset));
833
+ }
834
+ __name(shouldRedactTokenOnlyCredential, "shouldRedactTokenOnlyCredential");
835
+ function redactProxyCredentials(message) {
836
+ let result = message.replace(/\/\/[^/\s]*@/g, "//<redacted>@");
837
+ result = result.replace(
838
+ /(^|[\s([=:])([^\s/@()[\]=]+@[^@\s/()[\]=]+)/g,
839
+ (match, prefix, candidate, offset, message2) => {
840
+ const atIndex = candidate.indexOf("@");
841
+ const userInfo = candidate.slice(0, atIndex);
842
+ const host = candidate.slice(atIndex + 1);
843
+ if (!userInfo.includes(":") && !shouldRedactTokenOnlyCredential(host, message2, offset)) {
844
+ return match;
845
+ }
846
+ return `${prefix}<redacted>@${host}`;
847
+ }
848
+ );
849
+ return result;
850
+ }
851
+ __name(redactProxyCredentials, "redactProxyCredentials");
852
+ function redactProxyError(error) {
853
+ return redactProxyErrorValue(error, /* @__PURE__ */ new WeakMap());
854
+ }
855
+ __name(redactProxyError, "redactProxyError");
856
+ function redactProxyErrorValue(error, seen) {
857
+ if (typeof error === "string") {
858
+ return redactProxyCredentials(error);
859
+ }
860
+ if (!error || typeof error !== "object") {
861
+ return error;
862
+ }
863
+ if (seen.has(error)) {
864
+ return seen.get(error);
865
+ }
866
+ const errorRecord = error;
867
+ const needsClone = shouldCloneForRedaction(error, errorRecord);
868
+ const redactedMessage = typeof errorRecord.message === "string" ? redactProxyCredentials(errorRecord.message) : void 0;
869
+ const redactedStack = typeof errorRecord.stack === "string" ? redactProxyCredentials(errorRecord.stack) : void 0;
870
+ let redactedCause = errorRecord.cause;
871
+ let redactedErrors = errorRecord.errors;
872
+ if (needsClone) {
873
+ const clone = Object.create(Object.getPrototypeOf(error));
874
+ seen.set(error, clone);
875
+ if (errorRecord.cause !== void 0) {
876
+ redactedCause = redactProxyErrorValue(errorRecord.cause, seen);
877
+ }
878
+ if (errorRecord.errors !== void 0) {
879
+ redactedErrors = redactProxyErrorCollection(errorRecord.errors, seen);
880
+ }
881
+ cloneErrorWithRedactedFields(
882
+ error,
883
+ clone,
884
+ redactedMessage,
885
+ redactedStack,
886
+ redactedCause,
887
+ redactedErrors
888
+ );
889
+ return clone;
890
+ }
891
+ seen.set(error, error);
892
+ try {
893
+ if (redactedMessage !== void 0) {
894
+ errorRecord.message = redactedMessage;
895
+ }
896
+ if (redactedStack !== void 0) {
897
+ errorRecord.stack = redactedStack;
898
+ }
899
+ if (errorRecord.cause !== void 0) {
900
+ redactedCause = redactProxyErrorValue(errorRecord.cause, seen);
901
+ errorRecord.cause = redactedCause;
902
+ }
903
+ if (errorRecord.errors !== void 0) {
904
+ redactedErrors = redactProxyErrorCollection(errorRecord.errors, seen);
905
+ errorRecord.errors = redactedErrors;
906
+ }
907
+ return error;
908
+ } catch {
909
+ const clone = Object.create(Object.getPrototypeOf(error));
910
+ seen.set(error, clone);
911
+ if (errorRecord.cause !== void 0) {
912
+ redactedCause = redactProxyErrorValue(errorRecord.cause, seen);
913
+ }
914
+ if (errorRecord.errors !== void 0) {
915
+ redactedErrors = redactProxyErrorCollection(errorRecord.errors, seen);
916
+ }
917
+ cloneErrorWithRedactedFields(
918
+ error,
919
+ clone,
920
+ redactedMessage,
921
+ redactedStack,
922
+ redactedCause,
923
+ redactedErrors
924
+ );
925
+ return clone;
926
+ }
927
+ }
928
+ __name(redactProxyErrorValue, "redactProxyErrorValue");
929
+ function redactProxyErrorCollection(errors, seen) {
930
+ if (!Array.isArray(errors)) {
931
+ return redactProxyErrorValue(errors, seen);
932
+ }
933
+ if (seen.has(errors)) {
934
+ return seen.get(errors);
935
+ }
936
+ const redactedErrors = [];
937
+ seen.set(errors, redactedErrors);
938
+ for (const error of errors) {
939
+ redactedErrors.push(redactProxyErrorValue(error, seen));
940
+ }
941
+ return redactedErrors;
942
+ }
943
+ __name(redactProxyErrorCollection, "redactProxyErrorCollection");
944
+ function shouldCloneForRedaction(error, errorRecord) {
945
+ return typeof errorRecord.message === "string" && !canAssignProperty(error, "message") || typeof errorRecord.stack === "string" && !canAssignProperty(error, "stack") || errorRecord.cause !== void 0 && !canAssignProperty(error, "cause") || errorRecord.errors !== void 0 && !canAssignProperty(error, "errors");
946
+ }
947
+ __name(shouldCloneForRedaction, "shouldCloneForRedaction");
948
+ function canAssignProperty(target, key) {
949
+ let current = target;
950
+ while (current) {
951
+ const descriptor = Object.getOwnPropertyDescriptor(current, key);
952
+ if (descriptor) {
953
+ if ("writable" in descriptor) {
954
+ return descriptor.writable === true;
955
+ }
956
+ return typeof descriptor.set === "function";
957
+ }
958
+ current = Object.getPrototypeOf(current);
959
+ }
960
+ return Object.isExtensible(target);
961
+ }
962
+ __name(canAssignProperty, "canAssignProperty");
963
+ function cloneErrorWithRedactedFields(error, clone, redactedMessage, redactedStack, redactedCause, redactedErrors) {
964
+ const copiedKeys = /* @__PURE__ */ new Set();
965
+ for (const key of Reflect.ownKeys(error)) {
966
+ const descriptor = Object.getOwnPropertyDescriptor(error, key);
967
+ if (!descriptor) {
968
+ continue;
969
+ }
970
+ copiedKeys.add(key);
971
+ const updatedDescriptor = getRedactedPropertyDescriptor(
972
+ key,
973
+ descriptor,
974
+ redactedMessage,
975
+ redactedStack,
976
+ redactedCause,
977
+ redactedErrors
978
+ );
979
+ try {
980
+ Object.defineProperty(clone, key, updatedDescriptor);
981
+ } catch {
982
+ }
983
+ }
984
+ defineMissingRedactedValue(clone, copiedKeys, "message", redactedMessage);
985
+ defineMissingRedactedValue(clone, copiedKeys, "stack", redactedStack);
986
+ defineMissingRedactedValue(clone, copiedKeys, "cause", redactedCause);
987
+ defineMissingRedactedValue(clone, copiedKeys, "errors", redactedErrors);
988
+ }
989
+ __name(cloneErrorWithRedactedFields, "cloneErrorWithRedactedFields");
990
+ function getRedactedPropertyDescriptor(key, descriptor, redactedMessage, redactedStack, redactedCause, redactedErrors) {
991
+ const redactedValue = key === "message" ? redactedMessage : key === "stack" ? redactedStack : key === "cause" ? redactedCause : key === "errors" ? redactedErrors : void 0;
992
+ if (redactedValue === void 0) {
993
+ return { ...descriptor };
994
+ }
995
+ if ("value" in descriptor) {
996
+ return { ...descriptor, value: redactedValue };
997
+ }
998
+ return {
999
+ configurable: descriptor.configurable,
1000
+ enumerable: descriptor.enumerable,
1001
+ value: redactedValue,
1002
+ writable: true
1003
+ };
1004
+ }
1005
+ __name(getRedactedPropertyDescriptor, "getRedactedPropertyDescriptor");
1006
+ function defineMissingRedactedValue(target, copiedKeys, key, value) {
1007
+ if (value === void 0 || copiedKeys.has(key)) {
1008
+ return;
1009
+ }
1010
+ try {
1011
+ Object.defineProperty(target, key, {
1012
+ configurable: true,
1013
+ enumerable: false,
1014
+ value,
1015
+ writable: true
1016
+ });
1017
+ } catch {
1018
+ }
1019
+ }
1020
+ __name(defineMissingRedactedValue, "defineMissingRedactedValue");
1021
+ function recordProxyFailure(hostname) {
1022
+ const failureCount = (proxyFailureCounts.get(hostname) ?? 0) + 1;
1023
+ proxyFailureCounts.set(hostname, failureCount);
1024
+ return failureCount;
1025
+ }
1026
+ __name(recordProxyFailure, "recordProxyFailure");
1027
+ function buildFetchOptionsWithDispatcher(sdkType, proxyUrl) {
1028
+ const insecure = isTlsVerificationDisabled();
1029
+ const { Agent, fetch: undiciFetch } = requireUndici();
1030
+ if (!proxyUrl) {
1031
+ const NO_PROXY_KEY = insecure ? "__no_proxy__#insecure" : "__no_proxy__";
1032
+ let dispatcher = dispatcherCache.get(NO_PROXY_KEY);
1033
+ if (!dispatcher) {
1034
+ dispatcher = new Agent({
1035
+ headersTimeout: 0,
1036
+ bodyTimeout: 0,
1037
+ keepAliveTimeout: 6e4,
1038
+ // For a direct (non-proxy) Agent, `connect` options flow straight to
1039
+ // the TLS connector, so this disables upstream cert verification.
1040
+ ...insecure ? { connect: { rejectUnauthorized: false } } : {}
1041
+ });
1042
+ dispatcherCache.set(NO_PROXY_KEY, dispatcher);
1043
+ }
1044
+ return { fetchOptions: { dispatcher }, fetch: undiciFetch };
1045
+ }
1046
+ try {
1047
+ const dispatcher = getOrCreateSharedDispatcher(proxyUrl, insecure);
1048
+ return { fetchOptions: { dispatcher }, fetch: undiciFetch };
1049
+ } catch (error) {
1050
+ const hostname = extractHostnameFromProxyUrl(proxyUrl);
1051
+ const failureCount = recordProxyFailure(hostname);
1052
+ const failureLabel = failureCount === 1 ? "first failure" : `failure #${failureCount}`;
1053
+ const errorMessage = error instanceof Error ? error.message : String(error);
1054
+ const redactedMessage = redactProxyCredentials(errorMessage);
1055
+ const logMessage = `Failed to create proxy dispatcher for ${hostname} (${failureLabel}), falling back to direct connection: ${redactedMessage}`;
1056
+ debugLogger.warn(logMessage);
1057
+ console.error(`[RUNTIME_FETCH] ${logMessage}`);
1058
+ return NO_DISPATCHER_FALLBACK[sdkType];
1059
+ }
1060
+ }
1061
+ __name(buildFetchOptionsWithDispatcher, "buildFetchOptionsWithDispatcher");
1062
+
679
1063
  // packages/core/src/utils/tool-name-utils.ts
680
1064
  init_esbuild_shims();
681
1065
  var MAX_TOOL_NAME_LENGTH = 63;
@@ -1443,7 +1827,7 @@ function atEndOfBlockComment(text, i) {
1443
1827
  __name(atEndOfBlockComment, "atEndOfBlockComment");
1444
1828
 
1445
1829
  // packages/core/src/utils/safeJsonParse.ts
1446
- var debugLogger = createDebugLogger("JSON_PARSE");
1830
+ var debugLogger2 = createDebugLogger("JSON_PARSE");
1447
1831
  function safeJsonParse(jsonString, fallbackValue = {}) {
1448
1832
  if (!jsonString || typeof jsonString !== "string") {
1449
1833
  return fallbackValue;
@@ -1455,7 +1839,7 @@ function safeJsonParse(jsonString, fallbackValue = {}) {
1455
1839
  const repairedJson = jsonrepair(jsonString);
1456
1840
  return JSON.parse(repairedJson);
1457
1841
  } catch (repairError) {
1458
- debugLogger.error("Failed to parse JSON even with jsonrepair:", {
1842
+ debugLogger2.error("Failed to parse JSON even with jsonrepair:", {
1459
1843
  originalError: error,
1460
1844
  repairError,
1461
1845
  jsonString
@@ -1603,7 +1987,15 @@ export {
1603
1987
  RuntimeDiagnosticsCollector,
1604
1988
  runtimeDiagnostics,
1605
1989
  summarizeOpenAIWireRequest,
1606
- summarizeAnthropicWireRequest
1990
+ summarizeAnthropicWireRequest,
1991
+ loadUndici,
1992
+ preloadRuntimeFetchModule,
1993
+ isTlsVerificationDisabled,
1994
+ detectRuntime,
1995
+ buildRuntimeFetchOptions,
1996
+ getOrCreateSharedDispatcher,
1997
+ redactProxyCredentials,
1998
+ redactProxyError
1607
1999
  };
1608
2000
  /**
1609
2001
  * @license
@@ -1620,3 +2012,8 @@ export {
1620
2012
  * Copyright 2026 Qwen
1621
2013
  * SPDX-License-Identifier: Apache-2.0
1622
2014
  */
2015
+ /**
2016
+ * @license
2017
+ * Copyright 2025 Qwen Team
2018
+ * SPDX-License-Identifier: Apache-2.0
2019
+ */