@qwen-code/qwen-code 0.20.0-preview.0 → 0.20.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 (341) hide show
  1. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  2. package/bundled/qc-helper/docs/features/auto-mode.md +16 -19
  3. package/bundled/qc-helper/docs/features/commands.md +0 -54
  4. package/bundled/qc-helper/docs/features/sub-agents.md +7 -16
  5. package/bundled/qc-helper/docs/integration-github-action.md +10 -10
  6. package/bundled/qc-helper/docs/qwen-serve.md +1 -2
  7. package/bundled/review/DESIGN.md +2 -2
  8. package/bundled/review/SKILL.md +4 -4
  9. package/chunks/{MaxSizedBox-53BTJ3JK.js → MaxSizedBox-B5YGZSYE.js} +34 -41
  10. package/chunks/{StandaloneSessionPicker-VMFIXQ44.js → StandaloneSessionPicker-CEGO2AZX.js} +50 -57
  11. package/chunks/{acpAgent-5WYAVSFG.js → acpAgent-YUR43TLG.js} +496 -1487
  12. package/chunks/{agent-44FM7PBX.js → agent-H4JIDL7S.js} +30 -37
  13. package/chunks/agent-headless-TTBEREQV.js +61 -0
  14. package/chunks/{anthropicContentGenerator-NMSS7IMV.js → anthropicContentGenerator-HVKLXOOU.js} +12 -13
  15. package/chunks/{artifact-tool-56T5IMBP.js → artifact-tool-WBCAMD3O.js} +3 -3
  16. package/chunks/{askUserQuestion-E25OBIC2.js → askUserQuestion-6DZC4UV5.js} +3 -3
  17. package/chunks/{bridge-IQZT3KU2.js → bridge-VL7ITBU5.js} +35 -42
  18. package/chunks/{build-GHIZ4MSZ.js → build-SSCNEHZZ.js} +1 -1
  19. package/chunks/{ca-N6VVUFVB.js → ca-2SL2BXTK.js} +201 -611
  20. package/chunks/{channel-worker-group-LFBT7K64.js → channel-worker-group-53CMOPFT.js} +5 -5
  21. package/chunks/{channel-worker-manager-3RUPERG2.js → channel-worker-manager-UTXILKC2.js} +5 -5
  22. package/chunks/{channel-worker-supervisor-A3KVATD3.js → channel-worker-supervisor-ZGO2W2MD.js} +4 -4
  23. package/chunks/{chunk-2LI23QA6.js → chunk-2HOVDT7W.js} +1 -1
  24. package/chunks/{chunk-JWJVZHT5.js → chunk-2LL7TXB4.js} +2 -2
  25. package/chunks/{chunk-22OH7L7I.js → chunk-333CXMNJ.js} +5 -5
  26. package/chunks/{chunk-J3VSRG5Y.js → chunk-33XUAINQ.js} +21 -61
  27. package/chunks/{chunk-S4BT3PX3.js → chunk-4EP2PYYL.js} +5 -5
  28. package/chunks/{chunk-CJTAUXKG.js → chunk-4ILMYHEI.js} +3 -3
  29. package/chunks/{chunk-JIHHXJFH.js → chunk-4N3KMAIL.js} +32 -128
  30. package/chunks/{chunk-6ZBPS62S.js → chunk-4ODB7WIB.js} +1 -1
  31. package/chunks/{chunk-YDLVKCZJ.js → chunk-4XNLIGVA.js} +298 -576
  32. package/chunks/{chunk-Q6DEGTYO.js → chunk-542SK7KV.js} +1608 -243
  33. package/chunks/{chunk-EPN5MKRH.js → chunk-5JBR5XIK.js} +2 -2
  34. package/chunks/{chunk-E4IMU4Y5.js → chunk-5SCI6E3E.js} +1 -1
  35. package/chunks/{chunk-IE7TPOXP.js → chunk-6AFUCL3D.js} +1 -1
  36. package/chunks/{chunk-5I5BM454.js → chunk-6EFTQYW7.js} +1 -1
  37. package/chunks/{chunk-45AIVIUL.js → chunk-7PZ2ATFZ.js} +29 -54
  38. package/chunks/{chunk-VI7UU7ZI.js → chunk-7RMOXZTC.js} +4 -4
  39. package/chunks/{chunk-C3YZ5CLY.js → chunk-7SXZC7ID.js} +6 -7
  40. package/chunks/{chunk-X6KLM4LZ.js → chunk-A5LYNIW7.js} +8 -8
  41. package/chunks/{chunk-GZBHRTNM.js → chunk-AJSJ5TTU.js} +1 -1
  42. package/chunks/{chunk-IT27F3ES.js → chunk-AKX4WPPP.js} +86 -307
  43. package/chunks/{chunk-EJFHUF3D.js → chunk-ANPINBOF.js} +5 -5
  44. package/chunks/{chunk-JJEFX6U5.js → chunk-AQIEINAY.js} +1766 -28
  45. package/chunks/{chunk-7Z6JQEL6.js → chunk-AYCDXHZB.js} +1 -1
  46. package/chunks/{chunk-BKZEHVPV.js → chunk-B3KGZCQN.js} +169 -177
  47. package/chunks/{chunk-6X4GWOPW.js → chunk-BDBMYST4.js} +1 -1
  48. package/chunks/{chunk-BEKZWVJJ.js → chunk-BMWMT5Y2.js} +373 -3
  49. package/chunks/{chunk-5MZSD2JX.js → chunk-BRRF37CO.js} +6 -6
  50. package/chunks/{chunk-QLJUC7TG.js → chunk-BVLROR2T.js} +1 -1
  51. package/chunks/{chunk-OQB4EXO4.js → chunk-C27BYUX6.js} +11 -14
  52. package/chunks/{chunk-VTKWURCJ.js → chunk-CB2HFGRV.js} +6 -31
  53. package/chunks/chunk-CPCVCKKF.js +358 -0
  54. package/chunks/{chunk-OAGG6CRR.js → chunk-CV63PP6U.js} +1 -1
  55. package/chunks/{chunk-XFWD3PCA.js → chunk-CZF3E5GF.js} +1 -1
  56. package/chunks/{chunk-QF4DPYPH.js → chunk-D22SX43D.js} +1 -1
  57. package/chunks/{chunk-X6N25LXS.js → chunk-D2VIDMVM.js} +2 -2
  58. package/chunks/{chunk-7KZ2KYAD.js → chunk-DBE4QFZS.js} +23 -27
  59. package/chunks/{chunk-VHYCUGOT.js → chunk-DP5GXXNZ.js} +1 -5
  60. package/chunks/{chunk-Q2YKNMLS.js → chunk-EAUYY7SS.js} +3 -3
  61. package/chunks/{chunk-KHOVYUHX.js → chunk-EIAK6Q2B.js} +2 -2
  62. package/chunks/{chunk-NPQDJGKU.js → chunk-EZVDJFZ7.js} +1 -1
  63. package/chunks/{chunk-FODK6UMO.js → chunk-FEOZBUMT.js} +27 -0
  64. package/chunks/{chunk-6NHK6HS7.js → chunk-FLSVD6BS.js} +3 -3
  65. package/chunks/{chunk-XP32LURS.js → chunk-FQD7GFSV.js} +3 -3
  66. package/chunks/{chunk-T2L47JJK.js → chunk-FSL5W5TI.js} +3 -3
  67. package/chunks/{chunk-JCW2R7WC.js → chunk-G45X5TRN.js} +72 -1
  68. package/chunks/{chunk-ZHERRXZJ.js → chunk-GKY2OJ7R.js} +1 -1
  69. package/chunks/{chunk-6IL7KRLE.js → chunk-GMGDLUC7.js} +1 -1
  70. package/chunks/{chunk-E5MVGARW.js → chunk-HZPN55E5.js} +1 -1
  71. package/chunks/{chunk-LMQNDPVP.js → chunk-I2PYAYFM.js} +3 -3
  72. package/chunks/{chunk-JD5FHQ3N.js → chunk-IR46U7RB.js} +3 -3
  73. package/chunks/{chunk-BXXWWCLA.js → chunk-IVPSS6EL.js} +4 -4
  74. package/chunks/{chunk-4K56OJFJ.js → chunk-JD3MKVKL.js} +1 -1
  75. package/chunks/{chunk-SP5WRGVG.js → chunk-JNWZQ27S.js} +3 -3
  76. package/chunks/{chunk-RUNR5DAE.js → chunk-KDC6GNQR.js} +4 -4
  77. package/chunks/{chunk-JT7HACMQ.js → chunk-KG3XV6FH.js} +2 -29
  78. package/chunks/{chunk-BRHHXGWL.js → chunk-KOR3XKCA.js} +4 -10
  79. package/chunks/{chunk-H4OWOFZL.js → chunk-KQNM4EO7.js} +5 -137
  80. package/chunks/{chunk-4K7VDKAD.js → chunk-KTUQMDEP.js} +1 -1
  81. package/chunks/{chunk-6RQ5IPUX.js → chunk-KX6UK4VJ.js} +19929 -22391
  82. package/chunks/{chunk-JYS55H6Z.js → chunk-MAQQGNQ5.js} +7 -66
  83. package/chunks/{chunk-GOWMC4CS.js → chunk-MJ6S23WZ.js} +4 -4
  84. package/chunks/{chunk-D7WXIW7H.js → chunk-NBMIC7DR.js} +4 -4
  85. package/chunks/{chunk-NYPUWHHC.js → chunk-NDMQLV4Y.js} +4 -4
  86. package/chunks/{chunk-FFFM6NJV.js → chunk-NEEB7UEN.js} +2 -1
  87. package/chunks/{chunk-6AWRQ4T2.js → chunk-NGFEPAE6.js} +6 -8
  88. package/chunks/{chunk-RVLZCXEE.js → chunk-NIJEXGV6.js} +10 -79
  89. package/chunks/{chunk-6OHCY3OB.js → chunk-O3OCNYY5.js} +2 -2
  90. package/chunks/{chunk-J63IP5ZT.js → chunk-O3Z73NBP.js} +7 -7
  91. package/chunks/{chunk-RWCQJC5W.js → chunk-OEO2ERWK.js} +33 -54
  92. package/chunks/{chunk-KQQ757OQ.js → chunk-OLMETXLX.js} +2 -2
  93. package/chunks/{chunk-LIZRAKPB.js → chunk-OOCI5VVU.js} +1 -1
  94. package/chunks/{chunk-GPSKDNEE.js → chunk-OONJNQ42.js} +3 -3
  95. package/chunks/{chunk-YM3SZTH4.js → chunk-OP4MOGXF.js} +1 -8
  96. package/chunks/{chunk-CHLNJN3C.js → chunk-OWCALFEG.js} +1 -1
  97. package/chunks/{chunk-5JX7FPHW.js → chunk-OYZWQNWG.js} +2 -2
  98. package/chunks/{chunk-QBUDF33N.js → chunk-PBATSWUQ.js} +1 -1
  99. package/chunks/{chunk-DKZISEDB.js → chunk-PBWEWI4N.js} +69 -76
  100. package/chunks/{chunk-DORJSBMF.js → chunk-PF4CHQOJ.js} +6 -6
  101. package/chunks/{chunk-SOMSZ6W3.js → chunk-PGEPSDJI.js} +8 -13
  102. package/chunks/{chunk-4LVZNIDO.js → chunk-QKYTTBYW.js} +1 -1
  103. package/chunks/{chunk-VYPFXUCB.js → chunk-R3VWUU2E.js} +1 -1
  104. package/chunks/{chunk-RV4C2ZFG.js → chunk-RFIAR4YL.js} +1 -1
  105. package/chunks/{chunk-66RKDODM.js → chunk-S2PD3EZD.js} +1 -1
  106. package/chunks/{chunk-RAUHV362.js → chunk-S2W2LVDU.js} +3 -3
  107. package/chunks/{chunk-VLBJ7ZUG.js → chunk-S2XVRHDN.js} +1 -1
  108. package/chunks/chunk-SEKHYHMS.js +45 -0
  109. package/chunks/{chunk-KNTYRZD4.js → chunk-SJMV7ZBK.js} +8 -8
  110. package/chunks/{chunk-THJNPLI4.js → chunk-TB6UDU4T.js} +16 -16
  111. package/chunks/{chunk-CMRYLH67.js → chunk-TIH2ZTOC.js} +2 -2
  112. package/chunks/{chunk-K4VB66QF.js → chunk-TKLLK6XQ.js} +11 -11
  113. package/chunks/{chunk-QTROYZUC.js → chunk-TMQ6XQCX.js} +53 -170
  114. package/chunks/{chunk-QNLNLENL.js → chunk-UEY4AYUL.js} +2 -2
  115. package/chunks/{chunk-FSXCGBXB.js → chunk-VDWBQ5AW.js} +1 -1
  116. package/chunks/{chunk-45DNGJKC.js → chunk-VEXFOTEO.js} +3 -3
  117. package/chunks/{chunk-A7CUSHP7.js → chunk-VZQUV7VK.js} +1 -1
  118. package/chunks/chunk-W7FJ3N32.js +49 -0
  119. package/chunks/{chunk-UGYMA4EI.js → chunk-W7H223ZZ.js} +1 -1
  120. package/chunks/{chunk-UH3WSE5L.js → chunk-X6YQWCIJ.js} +1 -13
  121. package/chunks/{chunk-H4AR2JQF.js → chunk-XVVH63JG.js} +3 -3
  122. package/chunks/{chunk-QKTHJXCS.js → chunk-Y2ENGUD6.js} +1 -1
  123. package/chunks/{chunk-QD6BRERJ.js → chunk-YWEW33JY.js} +7 -7
  124. package/chunks/{chunk-57FIIFJN.js → chunk-ZEOZL37W.js} +1 -1
  125. package/chunks/chunk-ZFKNWQGQ.js +74639 -0
  126. package/chunks/{computer-use-FMEBQMCB.js → computer-use-NIWQNUZF.js} +35 -42
  127. package/chunks/{config-utils-WYUQ7II4.js → config-utils-AHQ6YZ66.js} +3 -3
  128. package/chunks/contextCommand-L2COEUHS.js +66 -0
  129. package/chunks/{create-sub-session-MLELTOCW.js → create-sub-session-MGNX52P3.js} +30 -37
  130. package/chunks/{create-sub-session-AZ77LBL3.js → create-sub-session-P26FE5GG.js} +3 -3
  131. package/chunks/{cron-create-KTWJM7QT.js → cron-create-JWFHBDRQ.js} +5 -5
  132. package/chunks/{cron-delete-2P3I5ULL.js → cron-delete-GDX4E26G.js} +5 -5
  133. package/chunks/{cron-list-PXDPGEDQ.js → cron-list-USMAIWPT.js} +5 -5
  134. package/chunks/{daemon-KLPTQIE4.js → daemon-RG2MAI6T.js} +81 -138
  135. package/chunks/daemon-status-provider-NL4IAG7B.js +74 -0
  136. package/chunks/{de-4IBXM7CN.js → de-I7ZIYXZC.js} +1 -5
  137. package/chunks/{dist-HMU6CYS4.js → dist-2BHAYBKP.js} +2 -2
  138. package/chunks/{dist-PJLG2XYX.js → dist-2MIU4UUH.js} +1 -1
  139. package/chunks/{dist-UIFWIFRO.js → dist-53PZYC5B.js} +2 -2
  140. package/chunks/{dist-OAV7LJGJ.js → dist-AU7NQQRP.js} +1 -1
  141. package/chunks/{dist-OMW6WDEO.js → dist-FUTEXY6A.js} +1 -1
  142. package/chunks/{dist-XRYV6TJP.js → dist-WGTQO7F2.js} +25 -65
  143. package/chunks/{earlyInputCapture-N3J42S2G.js → earlyInputCapture-L6I2A22T.js} +31 -38
  144. package/chunks/{edit-T6GO7VPW.js → edit-3QV3JZJL.js} +37 -42
  145. package/chunks/{en-USMCCJAJ.js → en-XE34GKAA.js} +1 -5
  146. package/chunks/{enter-worktree-OL3FMR3A.js → enter-worktree-4GMMF7EG.js} +35 -42
  147. package/chunks/{enterPlanMode-LEP7BSBX.js → enterPlanMode-L5UWBAUC.js} +36 -48
  148. package/chunks/{environment-6LNBH2LJ.js → environment-3OV7UQOT.js} +32 -39
  149. package/chunks/{errors-IM3H4DNG.js → errors-LEOF5QG4.js} +32 -39
  150. package/chunks/{exit-worktree-6MOANJMY.js → exit-worktree-DDP57JLV.js} +35 -42
  151. package/chunks/{exitPlanMode-VLBSWDJK.js → exitPlanMode-CJBLGPIP.js} +35 -42
  152. package/chunks/{fast-path-3Z3JY4BL.js → fast-path-M6RP2ING.js} +3 -4
  153. package/chunks/{fast-path-settings-XB3CPUJT.js → fast-path-settings-DAOVFADC.js} +2 -2
  154. package/chunks/{fr-WVHEBDDB.js → fr-X7KDVZIY.js} +1 -5
  155. package/chunks/{gemini-VDE6O6CX.js → gemini-H4PHBJTL.js} +89 -97
  156. package/chunks/{geminiContentGenerator-NN4ZWALY.js → geminiContentGenerator-VURJYPWP.js} +5 -5
  157. package/chunks/{getMachineId-bsd-QFVLPUPT.js → getMachineId-bsd-EXV7SWPA.js} +1 -1
  158. package/chunks/{getMachineId-darwin-DGMQQE2E.js → getMachineId-darwin-IUOMFXU3.js} +1 -1
  159. package/chunks/{getMachineId-linux-R4Z6CSWC.js → getMachineId-linux-K7XJYFHL.js} +1 -1
  160. package/chunks/{getMachineId-unsupported-Z3SBVBUV.js → getMachineId-unsupported-EA5FDRJ6.js} +1 -1
  161. package/chunks/{getMachineId-win-SCK5UFDT.js → getMachineId-win-KBA6RAI5.js} +1 -1
  162. package/chunks/{glob-7AZHIY3Z.js → glob-2KUSRAVQ.js} +35 -42
  163. package/chunks/{grep-E2KEORSD.js → grep-B5RXVESV.js} +35 -42
  164. package/chunks/handleAutoUpdate-QQVIWXKT.js +67 -0
  165. package/chunks/{i18n-VP4NCTZN.js → i18n-N6OBDORT.js} +31 -38
  166. package/chunks/initializer-6WCFNDLL.js +72 -0
  167. package/chunks/installationInfo-6J3WPXNS.js +64 -0
  168. package/chunks/{ja-KY4ROZTE.js → ja-2ICT3KXF.js} +1 -5
  169. package/chunks/{keychain-token-storage-6ACJDYIB.js → keychain-token-storage-DWRJMNH3.js} +3 -3
  170. package/chunks/list-HOWQSWP6.js +75 -0
  171. package/chunks/loadedSettingsAdapter-AO4YBRXZ.js +69 -0
  172. package/chunks/{loop-wakeup-RNMRVA66.js → loop-wakeup-5GLTUBHA.js} +6 -6
  173. package/chunks/{ls-J2ZI5XYK.js → ls-FHBY3Y7I.js} +5 -5
  174. package/chunks/{lsp-UMS3NUB5.js → lsp-B6VMEW6Y.js} +3 -3
  175. package/chunks/mcp-QH7QNXOH.js +69 -0
  176. package/chunks/{monitor-NDYKU5VS.js → monitor-GLJZDNPS.js} +35 -42
  177. package/chunks/nonInteractiveCli-TI7EMPXD.js +126 -0
  178. package/chunks/{notebook-edit-GF3HSMXN.js → notebook-edit-AVCIWS4F.js} +38 -43
  179. package/chunks/{openaiContentGenerator-GE2I3C2T.js → openaiContentGenerator-B7W24G3D.js} +17 -22
  180. package/chunks/{pidfile-KS4IGGNX.js → pidfile-UEHAT6DH.js} +31 -38
  181. package/chunks/{processUtils-TEQQ47A2.js → processUtils-XZPY2PBB.js} +2 -2
  182. package/chunks/{pt-OK455PLH.js → pt-JJ4XPIBP.js} +1 -5
  183. package/chunks/{qwenContentGenerator-NDYOEIUY.js → qwenContentGenerator-6GUTWJIC.js} +35 -44
  184. package/chunks/{qwenOAuth2-CXDOBPSK.js → qwenOAuth2-GASEEWGU.js} +15 -18
  185. package/chunks/{read-file-QDVJX75S.js → read-file-SQJONF6A.js} +11 -13
  186. package/chunks/{read-mcp-resource-F6HYMDUY.js → read-mcp-resource-AKCL7I43.js} +3 -3
  187. package/chunks/{record-artifact-7GCFLDD7.js → record-artifact-PEUB7727.js} +3 -3
  188. package/chunks/{resumeHistoryUtils-5EAQ76W4.js → resumeHistoryUtils-PFQ2A23X.js} +36 -43
  189. package/chunks/ripGrep-QCK22GDU.js +59 -0
  190. package/chunks/{ru-7SPDGMGD.js → ru-STR4KTW7.js} +1 -5
  191. package/chunks/{run-qwen-serve-TC6M3WTJ.js → run-qwen-serve-OZGR3FQA.js} +82 -104
  192. package/chunks/{runtime-BB73E3Z3.js → runtime-SNVAP6EH.js} +40 -49
  193. package/chunks/{scheduler-NDU5OFSJ.js → scheduler-Z7QLMUWA.js} +30 -37
  194. package/chunks/{send-message-PYIJ2PZL.js → send-message-3RHE7HSM.js} +4 -6
  195. package/chunks/{serve-BTIRWZJ4.js → serve-BT7KS6SC.js} +36 -43
  196. package/chunks/{server-JKAQBE2E.js → server-SO64U3X5.js} +284 -988
  197. package/chunks/{session-66QFVVDS.js → session-2KL2WQAH.js} +173 -92
  198. package/chunks/{settings-NBN6GY7E.js → settings-KITVOUSV.js} +39 -46
  199. package/chunks/{shell-JDSLAQVH.js → shell-BITUVH2R.js} +30 -37
  200. package/chunks/{skill-TNMHTO3C.js → skill-SOQHY455.js} +20 -24
  201. package/chunks/{spawnChannel-TFLHHXOC.js → spawnChannel-2BU3AULL.js} +32 -39
  202. package/chunks/{src-YFXMPRBL.js → src-43LM7JLB.js} +209 -279
  203. package/chunks/{standalone-update-2CQVQRSC.js → standalone-update-YG5JUYCM.js} +32 -39
  204. package/chunks/{startInteractiveUI-6C6PENRW.js → startInteractiveUI-3RGTGEX5.js} +895 -1092
  205. package/chunks/{syntheticOutput-H7RTI5KL.js → syntheticOutput-FG5PQKIR.js} +4 -4
  206. package/chunks/{task-create-7474AJJD.js → task-create-HX32YXO7.js} +8 -10
  207. package/chunks/{task-list-633HGOIB.js → task-list-QWSY4ZIU.js} +6 -6
  208. package/chunks/{task-stop-MNUGHPIA.js → task-stop-GWC6UWAL.js} +3 -3
  209. package/chunks/{task-update-66GQB5LI.js → task-update-NCTAB73Q.js} +8 -10
  210. package/chunks/{team-create-IPBHD26Z.js → team-create-FXN3PEBP.js} +35 -42
  211. package/chunks/{team-delete-BB3CG3QF.js → team-delete-KK37HTOG.js} +6 -6
  212. package/chunks/{team-plan-approval-WIGEJXXM.js → team-plan-approval-GEIZ356Q.js} +35 -42
  213. package/chunks/theme-manager-IAETOI25.js +63 -0
  214. package/chunks/{todoWrite-KRAUN54W.js → todoWrite-ERCAMLFS.js} +5 -5
  215. package/chunks/{tool-search-J3CBYJRB.js → tool-search-XKK7DNOK.js} +17 -21
  216. package/chunks/total-session-admission-BJLDHKJN.js +69 -0
  217. package/chunks/{trustedFolders-5FJRCHGN.js → trustedFolders-5XCVNEUU.js} +31 -38
  218. package/chunks/{update-relaunch-S5APSFJS.js → update-relaunch-FMVZK6XF.js} +17 -17
  219. package/chunks/updateCheck-YZZB7YBU.js +70 -0
  220. package/chunks/{useAutoAcceptIndicator-WZVJ52U3.js → useAutoAcceptIndicator-ZSQX4I2H.js} +40 -47
  221. package/chunks/{validateNonInterActiveAuth-64SVMELJ.js → validateNonInterActiveAuth-PRVEB6GG.js} +72 -79
  222. package/chunks/{version-SQL27GUA.js → version-AZMG6KWL.js} +1 -1
  223. package/chunks/{web-fetch-K7QCHIOJ.js → web-fetch-EPGJ5OQQ.js} +41 -100
  224. package/chunks/{workflow-BFTW72A5.js → workflow-UTNVPW22.js} +39 -47
  225. package/chunks/workspace-providers-status-EADV364W.js +72 -0
  226. package/chunks/{workspace-registration-store-VAVPVIF3.js → workspace-registration-store-F3ZX3YHT.js} +2 -8
  227. package/chunks/workspace-registry-W6VMFYZU.js +73 -0
  228. package/chunks/workspace-service-F3KIN2UN.js +84 -0
  229. package/chunks/workspace-skills-status-YVICUR5Y.js +71 -0
  230. package/chunks/write-file-CVGF2OKV.js +596 -0
  231. package/chunks/{zh-WY5DWYZD.js → zh-6ANG2HTL.js} +1 -5
  232. package/chunks/{zh-TW-BM47YBFH.js → zh-TW-4RR3YHNN.js} +1 -5
  233. package/cli-entry.js +12 -164
  234. package/cli.js +11 -18
  235. package/locales/ca.js +203 -772
  236. package/locales/de.js +2 -8
  237. package/locales/en.js +2 -8
  238. package/locales/fr.js +2 -8
  239. package/locales/ja.js +2 -8
  240. package/locales/pt.js +2 -8
  241. package/locales/ru.js +2 -8
  242. package/locales/zh-TW.js +2 -8
  243. package/locales/zh.js +2 -8
  244. package/package.json +3 -3
  245. package/web-shell/assets/{arc-ByltRugA.js → arc-Buk1besA.js} +1 -1
  246. package/web-shell/assets/{architectureDiagram-3BPJPVTR-CCRTto5d.js → architectureDiagram-3BPJPVTR-B1aUKYDC.js} +1 -1
  247. package/web-shell/assets/{blockDiagram-GPEHLZMM-Jfy36u1L.js → blockDiagram-GPEHLZMM-CRTdg3Zx.js} +1 -1
  248. package/web-shell/assets/{c4Diagram-AAUBKEIU-4d5FfEZ0.js → c4Diagram-AAUBKEIU-DFdRMp5g.js} +1 -1
  249. package/web-shell/assets/channel-04R0vLbG.js +1 -0
  250. package/web-shell/assets/{chunk-2J33WTMH-BPwxCEro.js → chunk-2J33WTMH-4rYQdkEI.js} +1 -1
  251. package/web-shell/assets/{chunk-4BX2VUAB-jY7ZmJWY.js → chunk-4BX2VUAB-Coi-pQJy.js} +1 -1
  252. package/web-shell/assets/{chunk-55IACEB6-C98HgCsS.js → chunk-55IACEB6-BtBjz02t.js} +1 -1
  253. package/web-shell/assets/{chunk-727SXJPM-cDu-ge-q.js → chunk-727SXJPM-CGYOWorl.js} +1 -1
  254. package/web-shell/assets/{chunk-AQP2D5EJ-BKdJwxXK.js → chunk-AQP2D5EJ-CH5AKhqx.js} +1 -1
  255. package/web-shell/assets/{chunk-FMBD7UC4-DnuxqwMu.js → chunk-FMBD7UC4-Cd50-w85.js} +1 -1
  256. package/web-shell/assets/{chunk-ND2GUHAM-C4fZNPv0.js → chunk-ND2GUHAM-C2wF3KCK.js} +1 -1
  257. package/web-shell/assets/{chunk-QZHKN3VN-Cf4XWOmz.js → chunk-QZHKN3VN-pCeRTaWi.js} +1 -1
  258. package/web-shell/assets/classDiagram-4FO5ZUOK-Bw9SOwAV.js +1 -0
  259. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Bw9SOwAV.js +1 -0
  260. package/web-shell/assets/{cose-bilkent-S5V4N54A-C82mFiqj.js → cose-bilkent-S5V4N54A-B-_fAB6D.js} +1 -1
  261. package/web-shell/assets/{dagre-BM42HDAG-Df8KACER.js → dagre-BM42HDAG-ChSPNHpL.js} +1 -1
  262. package/web-shell/assets/{diagram-2AECGRRQ-EzNs7s_2.js → diagram-2AECGRRQ-BX7cFOF3.js} +1 -1
  263. package/web-shell/assets/{diagram-5GNKFQAL-BRLNvreg.js → diagram-5GNKFQAL-BQUTW92n.js} +1 -1
  264. package/web-shell/assets/{diagram-KO2AKTUF-2HLYHRjC.js → diagram-KO2AKTUF-BkYPh3e4.js} +1 -1
  265. package/web-shell/assets/{diagram-LMA3HP47-DeH0NzSp.js → diagram-LMA3HP47-Cl6jsNyx.js} +1 -1
  266. package/web-shell/assets/{diagram-OG6HWLK6-k5Gn47-G.js → diagram-OG6HWLK6-DRWoHz8n.js} +1 -1
  267. package/web-shell/assets/{erDiagram-TEJ5UH35-gPHFo79f.js → erDiagram-TEJ5UH35-CGvFcZco.js} +1 -1
  268. package/web-shell/assets/{flowDiagram-I6XJVG4X-DYBOiTRW.js → flowDiagram-I6XJVG4X-vms6oVdv.js} +1 -1
  269. package/web-shell/assets/{ganttDiagram-6RSMTGT7-cxjAuic9.js → ganttDiagram-6RSMTGT7-ukT_sfmi.js} +1 -1
  270. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-3nPqpmCP.js → gitGraphDiagram-PVQCEYII-Bn2ZE2Ut.js} +1 -1
  271. package/web-shell/assets/index-DgkKrjw3.js +1187 -0
  272. package/web-shell/assets/index-Rv6mOAN9.css +5 -0
  273. package/web-shell/assets/{index-Cl8d-1bK.js → index-wFXp7W68.js} +1 -1
  274. package/web-shell/assets/{infoDiagram-5YYISTIA-Dph21pR5.js → infoDiagram-5YYISTIA-DHJdSi7x.js} +1 -1
  275. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-Cjg1hSaG.js → ishikawaDiagram-YF4QCWOH-DOvd2Wph.js} +1 -1
  276. package/web-shell/assets/{journeyDiagram-JHISSGLW-CR-IzvnU.js → journeyDiagram-JHISSGLW-CH_urMCT.js} +1 -1
  277. package/web-shell/assets/{kanban-definition-UN3LZRKU-BYmuybuC.js → kanban-definition-UN3LZRKU-FKiBdgbH.js} +1 -1
  278. package/web-shell/assets/{linear-CngEEoy8.js → linear-0ZVQFVKf.js} +1 -1
  279. package/web-shell/assets/{mermaid.core-G6fbZRPf.js → mermaid.core-DJ05ZZIK.js} +5 -5
  280. package/web-shell/assets/{mindmap-definition-RKZ34NQL-BtnqnUwJ.js → mindmap-definition-RKZ34NQL-BPuUhkUm.js} +1 -1
  281. package/web-shell/assets/{pieDiagram-4H26LBE5-XTq6UHIA.js → pieDiagram-4H26LBE5-yLFKcXyG.js} +1 -1
  282. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D1J5PrsS.js → quadrantDiagram-W4KKPZXB-irWqc1pE.js} +1 -1
  283. package/web-shell/assets/{requirementDiagram-4Y6WPE33-CLcBUy3t.js → requirementDiagram-4Y6WPE33-B_4uMoIV.js} +1 -1
  284. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-iwKV02_6.js → sankeyDiagram-5OEKKPKP-ciA4GPwk.js} +1 -1
  285. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-7NFYQcEX.js → sequenceDiagram-3UESZ5HK-CRdZvy0U.js} +1 -1
  286. package/web-shell/assets/{stateDiagram-AJRCARHV-Bvm4Wih6.js → stateDiagram-AJRCARHV-DaYIkCCn.js} +1 -1
  287. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DWBoO4UY.js +1 -0
  288. package/web-shell/assets/{timeline-definition-PNZ67QCA-B4FZFE9O.js → timeline-definition-PNZ67QCA-oBUKv6iH.js} +1 -1
  289. package/web-shell/assets/{vennDiagram-CIIHVFJN-CvMBpmtL.js → vennDiagram-CIIHVFJN-CGW9Sdmb.js} +1 -1
  290. package/web-shell/assets/{wardley-L42UT6IY-E3ag2327.js → wardley-L42UT6IY-CvwKJOCm.js} +1 -1
  291. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-BEXWlgxC.js → wardleyDiagram-YWT4CUSO-Ipc260sN.js} +1 -1
  292. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CICK05gI.js → xychartDiagram-2RQKCTM6-D6-CM7pK.js} +1 -1
  293. package/web-shell/index.html +2 -2
  294. package/chunks/agent-headless-CDBMKM44.js +0 -68
  295. package/chunks/chunk-2RFKHEXL.js +0 -74
  296. package/chunks/chunk-43T5WDQ7.js +0 -127
  297. package/chunks/chunk-6PVPNMXU.js +0 -29
  298. package/chunks/chunk-7362QS5B.js +0 -2256
  299. package/chunks/chunk-FMXMKPI5.js +0 -1780
  300. package/chunks/chunk-GLNBDYUX.js +0 -38
  301. package/chunks/chunk-HTR4WV6U.js +0 -327
  302. package/chunks/chunk-KWK7UE6L.js +0 -6194
  303. package/chunks/chunk-M7WBGLYP.js +0 -151
  304. package/chunks/chunk-NABLFI57.js +0 -82
  305. package/chunks/chunk-OQ5SYCPE.js +0 -10017
  306. package/chunks/chunk-OZYV6F53.js +0 -391
  307. package/chunks/chunk-TJQXJJX7.js +0 -121
  308. package/chunks/chunk-U7ZFW55U.js +0 -2098
  309. package/chunks/chunk-WHGVTP7Q.js +0 -1049
  310. package/chunks/chunk-XHATNRQA.js +0 -1500
  311. package/chunks/chunk-ZJVVETCV.js +0 -20600
  312. package/chunks/contextCommand-5YK3QNNJ.js +0 -73
  313. package/chunks/daemon-status-provider-FXMOD242.js +0 -81
  314. package/chunks/handleAutoUpdate-BCNVTQWW.js +0 -74
  315. package/chunks/initializer-5UB4SRPK.js +0 -79
  316. package/chunks/installationInfo-LNYJCXN3.js +0 -73
  317. package/chunks/list-NIZ77KPE.js +0 -82
  318. package/chunks/loadedSettingsAdapter-IQPRO2SO.js +0 -76
  319. package/chunks/managed-npm-update-GFRDCD77.js +0 -333
  320. package/chunks/mcp-TCUL7LT2.js +0 -76
  321. package/chunks/nonInteractiveCli-UHSHJDFD.js +0 -133
  322. package/chunks/ripGrep-WANMXNVT.js +0 -66
  323. package/chunks/sdk-exporters-grpc-ETLH47EP.js +0 -23214
  324. package/chunks/sdk-exporters-http-T3POX73F.js +0 -563
  325. package/chunks/sdk-impl-NSLPDH6I.js +0 -9193
  326. package/chunks/theme-manager-OZYKJG3W.js +0 -70
  327. package/chunks/total-session-admission-CNBQRM44.js +0 -76
  328. package/chunks/updateCheck-BPSMOZXS.js +0 -89
  329. package/chunks/web-search-KQPQFM7A.js +0 -731
  330. package/chunks/workspace-providers-status-4PLI2VFC.js +0 -79
  331. package/chunks/workspace-registry-I4ZRHGBS.js +0 -80
  332. package/chunks/workspace-service-RXYBWBDJ.js +0 -91
  333. package/chunks/workspace-skills-status-35Z2FU4I.js +0 -78
  334. package/chunks/write-file-KCL5RI2I.js +0 -66
  335. package/web-shell/assets/channel-4N2UIFcG.js +0 -1
  336. package/web-shell/assets/classDiagram-4FO5ZUOK-Q4dYOtsh.js +0 -1
  337. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-Q4dYOtsh.js +0 -1
  338. package/web-shell/assets/index-B7jzUZ_s.css +0 -5
  339. package/web-shell/assets/index-gE8OWwj_.js +0 -1197
  340. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-xXU_zO2Z.js +0 -1
  341. package/chunks/{chunk-QZJY47IE.js → chunk-PEJWA3QQ.js} +5 -5
@@ -1,391 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- delay
5
- } from "./chunk-BEKZWVJJ.js";
6
- import {
7
- isTlsVerificationDisabled
8
- } from "./chunk-5I5BM454.js";
9
- import {
10
- getErrorMessage
11
- } from "./chunk-OQB4EXO4.js";
12
- import {
13
- init_esbuild_shims
14
- } from "./chunk-5O2XNYP6.js";
15
- import {
16
- __name
17
- } from "./chunk-J2S4EL5Y.js";
18
-
19
- // packages/core/src/utils/fetch.ts
20
- init_esbuild_shims();
21
- import { URL } from "node:url";
22
- var PRIVATE_IP_RANGES = [
23
- /^10\./,
24
- /^127\./,
25
- /^172\.(1[6-9]|2[0-9]|3[0-1])\./,
26
- /^192\.168\./,
27
- // IPv4 link-local (incl. cloud metadata endpoints) and CGNAT 100.64.0.0/10.
28
- /^169\.254\./,
29
- /^100\.(6[4-9]|[7-9][0-9]|1[01][0-9]|12[0-7])\./,
30
- /^0\.0\.0\.0$/,
31
- /^::1$/,
32
- /^::$/,
33
- // ULA fc00::/7 covers fc00: through fdff: (fd00: is the common prefix in
34
- // practice); link-local fe80::/10 covers fe80: through febf:.
35
- /^f[cd][0-9a-f]{2}:/i,
36
- /^fe[89ab][0-9a-f]:/i
37
- ];
38
- var TLS_ERROR_CODES = /* @__PURE__ */ new Set([
39
- "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
40
- "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
41
- "SELF_SIGNED_CERT_IN_CHAIN",
42
- "DEPTH_ZERO_SELF_SIGNED_CERT",
43
- "CERT_HAS_EXPIRED",
44
- "ERR_TLS_CERT_ALTNAME_INVALID"
45
- ]);
46
- var FETCH_TROUBLESHOOTING_ERROR_CODES = /* @__PURE__ */ new Set([
47
- ...TLS_ERROR_CODES,
48
- "ECONNRESET",
49
- "ETIMEDOUT",
50
- "ECONNREFUSED",
51
- "ENOTFOUND",
52
- "EAI_AGAIN",
53
- "EHOSTUNREACH",
54
- "ENETUNREACH"
55
- ]);
56
- var FetchError = class extends Error {
57
- constructor(message, code) {
58
- super(message);
59
- this.code = code;
60
- this.name = "FetchError";
61
- }
62
- static {
63
- __name(this, "FetchError");
64
- }
65
- };
66
- var CONNECTION_LEVEL_ERROR_CODES = /* @__PURE__ */ new Set([
67
- ...TLS_ERROR_CODES,
68
- "ECONNREFUSED",
69
- "EPROTO",
70
- "ERR_SSL_WRONG_VERSION_NUMBER",
71
- // Servers that don't speak TLS on 443 often reset during the handshake
72
- // rather than refusing the connection. Safe to include: the http fallback
73
- // only ever fires for URLs the caller requested as http.
74
- "ECONNRESET",
75
- "UND_ERR_SOCKET",
76
- // Filtered port 443 (silent drop): undici's own bounded connect timeout.
77
- // Deliberately NOT the full-budget ETIMEDOUT — that can fire mid-body on
78
- // a healthy https server, and a fallback there would double a worst-case
79
- // 60s wait for an ambiguous gain.
80
- "UND_ERR_CONNECT_TIMEOUT"
81
- ]);
82
- function isConnectionLevelError(error) {
83
- return error instanceof FetchError && error.code !== void 0 && CONNECTION_LEVEL_ERROR_CODES.has(error.code);
84
- }
85
- __name(isConnectionLevelError, "isConnectionLevelError");
86
- function mappedIpv4(hostname) {
87
- const match = /^::ffff:(.+)$/i.exec(hostname);
88
- if (!match) return void 0;
89
- const tail = match[1];
90
- if (tail.includes(".")) return tail;
91
- const groups = tail.split(":");
92
- if (groups.length !== 2) return void 0;
93
- const hi = Number.parseInt(groups[0], 16);
94
- const lo = Number.parseInt(groups[1], 16);
95
- if (Number.isNaN(hi) || Number.isNaN(lo)) return void 0;
96
- return `${hi >> 8}.${hi & 255}.${lo >> 8}.${lo & 255}`;
97
- }
98
- __name(mappedIpv4, "mappedIpv4");
99
- function isPrivateIp(url) {
100
- try {
101
- const hostname = new URL(url).hostname.replace(/^\[|\]$/g, "");
102
- const target = mappedIpv4(hostname) ?? hostname;
103
- return PRIVATE_IP_RANGES.some((range) => range.test(target));
104
- } catch (_e) {
105
- return false;
106
- }
107
- }
108
- __name(isPrivateIp, "isPrivateIp");
109
- var INTERNAL_HOST_SUFFIXES = [".local", ".internal", ".lan", ".home.arpa"];
110
- function isPrivateHost(url) {
111
- try {
112
- const hostname = new URL(url).hostname.toLowerCase();
113
- return hostname === "localhost" || hostname.endsWith(".localhost") || hostname === "host.docker.internal" || // Single-label hostnames (intranet, ci, printserver) are never public.
114
- // IPv6 literals are bracketed and dot-free but CAN be public — they
115
- // are classified by isPrivateIp below, not by this heuristic.
116
- !hostname.includes(".") && !hostname.startsWith("[") || INTERNAL_HOST_SUFFIXES.some((suffix) => hostname.endsWith(suffix)) || isPrivateIp(url);
117
- } catch {
118
- return false;
119
- }
120
- }
121
- __name(isPrivateHost, "isPrivateHost");
122
- var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
123
- function isPermittedRedirect(originalUrl, redirectUrl) {
124
- try {
125
- const original = new URL(originalUrl);
126
- const redirect = new URL(redirectUrl);
127
- if (redirect.protocol !== original.protocol) return false;
128
- if (redirect.port !== original.port) return false;
129
- if (redirect.username || redirect.password) return false;
130
- const stripWww = /* @__PURE__ */ __name((hostname) => hostname.replace(/^www\./, ""), "stripWww");
131
- return stripWww(original.hostname) === stripWww(redirect.hostname);
132
- } catch {
133
- return false;
134
- }
135
- }
136
- __name(isPermittedRedirect, "isPermittedRedirect");
137
- var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([403, 429]);
138
- var RETRYABLE_ERROR_CODES = /* @__PURE__ */ new Set([
139
- "ECONNRESET",
140
- "EAI_AGAIN",
141
- "UND_ERR_SOCKET"
142
- ]);
143
- var RETRY_DELAY_MS = 500;
144
- async function fetchWithPolicy(url, options) {
145
- const timeoutSignal = AbortSignal.timeout(options.timeoutMs);
146
- const signal = options.signal ? AbortSignal.any([options.signal, timeoutSignal]) : timeoutSignal;
147
- const abortError = /* @__PURE__ */ __name(() => {
148
- if (options.signal?.aborted) {
149
- return options.signal.reason instanceof Error ? options.signal.reason : new FetchError("Request aborted", "ABORT_ERR");
150
- }
151
- if (timeoutSignal.aborted) {
152
- return new FetchError(
153
- `Request timed out after ${options.timeoutMs}ms`,
154
- "ETIMEDOUT"
155
- );
156
- }
157
- return void 0;
158
- }, "abortError");
159
- let first;
160
- try {
161
- first = await fetchPolicyAttempt(url, options, signal, timeoutSignal);
162
- } catch (error) {
163
- if (error instanceof FetchError && error.code !== void 0 && RETRYABLE_ERROR_CODES.has(error.code) && !signal.aborted) {
164
- try {
165
- await delay(RETRY_DELAY_MS, signal);
166
- } catch {
167
- throw abortError() ?? error;
168
- }
169
- return fetchPolicyAttempt(url, options, signal, timeoutSignal);
170
- }
171
- throw error;
172
- }
173
- if (first.kind === "response" && RETRYABLE_STATUSES.has(first.status) && !signal.aborted) {
174
- try {
175
- await delay(RETRY_DELAY_MS, signal);
176
- return await fetchPolicyAttempt(url, options, signal, timeoutSignal);
177
- } catch {
178
- const aborted = abortError();
179
- if (aborted) throw aborted;
180
- return first;
181
- }
182
- }
183
- return first;
184
- }
185
- __name(fetchWithPolicy, "fetchWithPolicy");
186
- async function fetchPolicyAttempt(url, options, signal, timeoutSignal) {
187
- const wrapAbort = /* @__PURE__ */ __name((error) => {
188
- if (options.signal?.aborted) {
189
- throw options.signal.reason instanceof Error ? options.signal.reason : new FetchError("Request aborted", "ABORT_ERR");
190
- }
191
- if (timeoutSignal.aborted) {
192
- throw new FetchError(
193
- `Request timed out after ${options.timeoutMs}ms`,
194
- "ETIMEDOUT"
195
- );
196
- }
197
- if (error instanceof FetchError) throw error;
198
- const code = getErrorCode(error) ?? (error instanceof Error ? getErrorCode(error.cause) : void 0);
199
- throw new FetchError(getErrorMessage(error), code);
200
- }, "wrapAbort");
201
- let currentUrl = url;
202
- for (let hop = 0; hop <= options.maxRedirects; hop++) {
203
- let response;
204
- try {
205
- response = await fetch(currentUrl, {
206
- signal,
207
- headers: options.headers,
208
- redirect: "manual"
209
- });
210
- } catch (error) {
211
- return wrapAbort(error);
212
- }
213
- if (REDIRECT_STATUSES.has(response.status)) {
214
- const location = response.headers.get("location");
215
- await response.body?.cancel().catch(() => {
216
- });
217
- if (!location) {
218
- throw new FetchError("Redirect response missing Location header");
219
- }
220
- let redirectUrl;
221
- try {
222
- redirectUrl = new URL(location, currentUrl).toString();
223
- } catch {
224
- throw new FetchError(
225
- `Redirect response has a malformed Location header: ${location}`
226
- );
227
- }
228
- if (!isPermittedRedirect(currentUrl, redirectUrl)) {
229
- return {
230
- kind: "cross-host-redirect",
231
- originalUrl: currentUrl,
232
- redirectUrl,
233
- status: response.status
234
- };
235
- }
236
- currentUrl = redirectUrl;
237
- continue;
238
- }
239
- if (response.status < 200 || response.status >= 300) {
240
- await response.body?.cancel().catch(() => {
241
- });
242
- return {
243
- kind: "response",
244
- status: response.status,
245
- statusText: response.statusText,
246
- contentType: response.headers.get("content-type") ?? "",
247
- contentDisposition: response.headers.get("content-disposition") ?? "",
248
- body: Buffer.alloc(0),
249
- finalUrl: currentUrl
250
- };
251
- }
252
- const contentLength = Number(response.headers.get("content-length"));
253
- if (Number.isFinite(contentLength) && contentLength > options.maxBytes) {
254
- await response.body?.cancel().catch(() => {
255
- });
256
- throw new FetchError(
257
- `Response too large: ${contentLength} bytes exceeds the ${options.maxBytes}-byte limit`,
258
- "EMSGSIZE"
259
- );
260
- }
261
- const chunks = [];
262
- let total = 0;
263
- if (response.body) {
264
- const reader = response.body.getReader();
265
- try {
266
- for (; ; ) {
267
- const { done, value } = await reader.read();
268
- if (done) break;
269
- total += value.byteLength;
270
- if (total > options.maxBytes) {
271
- throw new FetchError(
272
- `Response too large: exceeded the ${options.maxBytes}-byte limit while streaming`,
273
- "EMSGSIZE"
274
- );
275
- }
276
- chunks.push(value);
277
- }
278
- } catch (error) {
279
- await reader.cancel().catch(() => {
280
- });
281
- if (error instanceof FetchError) throw error;
282
- return wrapAbort(error);
283
- } finally {
284
- reader.releaseLock();
285
- }
286
- }
287
- return {
288
- kind: "response",
289
- status: response.status,
290
- statusText: response.statusText,
291
- contentType: response.headers.get("content-type") ?? "",
292
- contentDisposition: response.headers.get("content-disposition") ?? "",
293
- body: Buffer.concat(chunks, total),
294
- finalUrl: currentUrl
295
- };
296
- }
297
- throw new FetchError(
298
- `Too many redirects (exceeded ${options.maxRedirects})`,
299
- "EMAXREDIRECTS"
300
- );
301
- }
302
- __name(fetchPolicyAttempt, "fetchPolicyAttempt");
303
- function getErrorCode(error) {
304
- if (!error || typeof error !== "object") {
305
- return void 0;
306
- }
307
- if ("code" in error && typeof error["code"] === "string") {
308
- return error["code"];
309
- }
310
- return void 0;
311
- }
312
- __name(getErrorCode, "getErrorCode");
313
- function formatUnknownErrorMessage(error) {
314
- if (typeof error === "string") {
315
- return error;
316
- }
317
- if (typeof error === "number" || typeof error === "boolean" || typeof error === "bigint") {
318
- return String(error);
319
- }
320
- if (error instanceof Error) {
321
- return error.message;
322
- }
323
- if (!error || typeof error !== "object") {
324
- return void 0;
325
- }
326
- const message = error["message"];
327
- if (typeof message === "string") {
328
- return message;
329
- }
330
- return void 0;
331
- }
332
- __name(formatUnknownErrorMessage, "formatUnknownErrorMessage");
333
- function formatErrorCause(error) {
334
- if (!(error instanceof Error)) {
335
- return void 0;
336
- }
337
- const cause = error.cause;
338
- if (!cause) {
339
- return void 0;
340
- }
341
- const causeCode = getErrorCode(cause);
342
- const causeMessage = formatUnknownErrorMessage(cause);
343
- if (!causeCode && !causeMessage) {
344
- return void 0;
345
- }
346
- if (causeCode && causeMessage && !causeMessage.includes(causeCode)) {
347
- return `${causeCode}: ${causeMessage}`;
348
- }
349
- return causeMessage ?? causeCode;
350
- }
351
- __name(formatErrorCause, "formatErrorCause");
352
- function formatFetchErrorForUser(error, options = {}) {
353
- const errorMessage = getErrorMessage(error);
354
- const code = error instanceof Error ? getErrorCode(error.cause) ?? getErrorCode(error) : getErrorCode(error);
355
- const cause = formatErrorCause(error);
356
- const fullErrorMessage = [
357
- errorMessage,
358
- cause ? `(cause: ${cause})` : void 0
359
- ].filter(Boolean).join(" ");
360
- const shouldShowFetchHints = errorMessage.toLowerCase().includes("fetch failed") || code != null && FETCH_TROUBLESHOOTING_ERROR_CODES.has(code);
361
- const shouldShowTlsHint = code != null && TLS_ERROR_CODES.has(code);
362
- if (!shouldShowFetchHints) {
363
- return fullErrorMessage;
364
- }
365
- const hintLines = [
366
- "",
367
- "Troubleshooting:",
368
- ...options.url ? [`- Confirm you can reach ${options.url} from this machine.`] : [],
369
- "- If you are behind a proxy, pass `--proxy <url>` (or set `proxy` in settings).",
370
- ...shouldShowTlsHint ? isTlsVerificationDisabled() ? [
371
- "- TLS verification is already disabled (`--insecure` / `QWEN_TLS_INSECURE`), so this is likely a network or protocol issue rather than a certificate trust problem."
372
- ] : [
373
- "- If your network uses a corporate TLS inspection CA, set `NODE_EXTRA_CA_CERTS` to your CA bundle.",
374
- "- For a trusted self-signed endpoint, pass `--insecure` (or set `QWEN_TLS_INSECURE=1`) to skip certificate verification."
375
- ] : []
376
- ];
377
- return `${fullErrorMessage}${hintLines.join("\n")}`;
378
- }
379
- __name(formatFetchErrorForUser, "formatFetchErrorForUser");
380
-
381
- export {
382
- isConnectionLevelError,
383
- isPrivateHost,
384
- fetchWithPolicy,
385
- formatFetchErrorForUser
386
- };
387
- /**
388
- * @license
389
- * Copyright 2025 Google LLC
390
- * SPDX-License-Identifier: Apache-2.0
391
- */
@@ -1,121 +0,0 @@
1
- // Force strict mode and setup for ESM
2
- "use strict";
3
- import {
4
- AuthType
5
- } from "./chunk-ZJVVETCV.js";
6
- import {
7
- init_esbuild_shims
8
- } from "./chunk-5O2XNYP6.js";
9
- import {
10
- __name
11
- } from "./chunk-J2S4EL5Y.js";
12
-
13
- // packages/core/src/utils/runtimeModelPrefix.ts
14
- init_esbuild_shims();
15
- var RUNTIME_SNAPSHOT_PREFIX = "$runtime|";
16
- function stripRuntimeSnapshotPrefix(modelId) {
17
- let id = modelId;
18
- while (id.startsWith(RUNTIME_SNAPSHOT_PREFIX)) {
19
- const stripped = id.split("|").slice(2).join("|");
20
- if (!stripped) break;
21
- id = stripped;
22
- }
23
- return id;
24
- }
25
- __name(stripRuntimeSnapshotPrefix, "stripRuntimeSnapshotPrefix");
26
-
27
- // packages/core/src/utils/modelId.ts
28
- init_esbuild_shims();
29
- var AUTH_TYPES = new Set(Object.values(AuthType));
30
- function resolveModelId(model, context = {}) {
31
- return resolveModelIdSelector(parseModelIdSelector(model), context);
32
- }
33
- __name(resolveModelId, "resolveModelId");
34
- function buildModelIdContext(config) {
35
- return {
36
- currentModel: config.getModel?.(),
37
- currentAuthType: config.getContentGeneratorConfig?.()?.authType,
38
- fastModel: config.getFastModel?.(),
39
- getAvailableModels: /* @__PURE__ */ __name((authTypes) => config.getAllConfiguredModels?.(authTypes) ?? [], "getAvailableModels")
40
- };
41
- }
42
- __name(buildModelIdContext, "buildModelIdContext");
43
- function parseModelIdSelector(model) {
44
- const trimmed = model?.trim();
45
- if (!trimmed || trimmed === "inherit") {
46
- return { kind: "inherit" };
47
- }
48
- if (trimmed === "fast") {
49
- return { kind: "fast" };
50
- }
51
- const colonIndex = trimmed.indexOf(":");
52
- if (colonIndex === -1) {
53
- return { kind: "model", modelId: trimmed };
54
- }
55
- const maybeAuthType = trimmed.slice(0, colonIndex).trim();
56
- const modelId = trimmed.slice(colonIndex + 1).trim();
57
- if (!AUTH_TYPES.has(maybeAuthType)) {
58
- return { kind: "model", modelId: trimmed };
59
- }
60
- if (!modelId) {
61
- throw new Error(
62
- "Model selector must include a model ID after the authType"
63
- );
64
- }
65
- return {
66
- kind: "model",
67
- authType: maybeAuthType,
68
- modelId
69
- };
70
- }
71
- __name(parseModelIdSelector, "parseModelIdSelector");
72
- function resolveAuthTypeForBareModel(modelId, context) {
73
- if (context.currentAuthType && context.getAvailableModels) {
74
- const currentModels = context.getAvailableModels([context.currentAuthType]);
75
- if (currentModels.some((model) => model.id === modelId)) {
76
- return context.currentAuthType;
77
- }
78
- }
79
- const configuredModel = context.getAvailableModels ? context.getAvailableModels().find((model) => model.id === modelId) : void 0;
80
- return configuredModel?.authType ?? context.currentAuthType;
81
- }
82
- __name(resolveAuthTypeForBareModel, "resolveAuthTypeForBareModel");
83
- function resolveModelIdSelector(selector, context) {
84
- if (selector.kind === "model") {
85
- const authType = selector.authType ?? resolveAuthTypeForBareModel(selector.modelId, context);
86
- return {
87
- ...authType ? { authType } : {},
88
- modelId: selector.modelId
89
- };
90
- }
91
- if (selector.kind === "inherit") {
92
- return context.currentModel ? {
93
- ...context.currentAuthType ? { authType: context.currentAuthType } : {},
94
- modelId: context.currentModel
95
- } : void 0;
96
- }
97
- if (!context.fastModel) {
98
- return void 0;
99
- }
100
- const fastSelector = parseModelIdSelector(context.fastModel);
101
- if (fastSelector.kind === "fast") {
102
- return void 0;
103
- }
104
- return resolveModelIdSelector(fastSelector, {
105
- ...context,
106
- fastModel: void 0
107
- });
108
- }
109
- __name(resolveModelIdSelector, "resolveModelIdSelector");
110
-
111
- export {
112
- RUNTIME_SNAPSHOT_PREFIX,
113
- stripRuntimeSnapshotPrefix,
114
- resolveModelId,
115
- buildModelIdContext
116
- };
117
- /**
118
- * @license
119
- * Copyright 2025 Qwen
120
- * SPDX-License-Identifier: Apache-2.0
121
- */