@qwen-code/qwen-code 0.19.0 → 0.19.1-nightly.20260624.a234860a4

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 (141) hide show
  1. package/bundled/qc-helper/SKILL.md +13 -5
  2. package/bundled/qc-helper/docs/configuration/_meta.ts +1 -0
  3. package/bundled/qc-helper/docs/configuration/auth.md +68 -48
  4. package/bundled/qc-helper/docs/configuration/model-providers.md +217 -195
  5. package/bundled/qc-helper/docs/configuration/settings.md +30 -14
  6. package/bundled/qc-helper/docs/configuration/themes.md +7 -4
  7. package/bundled/qc-helper/docs/extension/extension-releasing.md +1 -1
  8. package/bundled/qc-helper/docs/extension/introduction.md +3 -15
  9. package/bundled/qc-helper/docs/features/arena.md +3 -3
  10. package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
  11. package/bundled/qc-helper/docs/features/channels/plugins.md +1 -1
  12. package/bundled/qc-helper/docs/features/commands.md +6 -1
  13. package/bundled/qc-helper/docs/features/headless.md +1 -1
  14. package/bundled/qc-helper/docs/features/mcp.md +24 -8
  15. package/bundled/qc-helper/docs/features/sandbox.md +2 -2
  16. package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
  17. package/bundled/qc-helper/docs/integration-github-action.md +2 -2
  18. package/bundled/qc-helper/docs/overview.md +1 -1
  19. package/bundled/qc-helper/docs/quickstart.md +9 -5
  20. package/bundled/qc-helper/docs/qwen-serve.md +15 -3
  21. package/bundled/qc-helper/docs/support/tos-privacy.md +1 -1
  22. package/chunks/{agent-IPSDEZNB.js → agent-6KV474S5.js} +7 -7
  23. package/chunks/{agent-headless-ZMTUWMZJ.js → agent-headless-XO7MM6JT.js} +7 -7
  24. package/chunks/{anthropicContentGenerator-6MCH4X6S.js → anthropicContentGenerator-7352A7I5.js} +2 -2
  25. package/chunks/{artifact-tool-PBX64YTT.js → artifact-tool-5J4HUZAV.js} +1 -1
  26. package/chunks/{askUserQuestion-5ZQOWSRT.js → askUserQuestion-HF7HCWDD.js} +1 -1
  27. package/chunks/{chunk-PO5LVPK3.js → chunk-2QDQTWCI.js} +1 -1
  28. package/chunks/{chunk-255L5QYW.js → chunk-3BR4OIOE.js} +1 -1
  29. package/chunks/{chunk-KFR4QTV3.js → chunk-54J4JDWT.js} +123 -174
  30. package/chunks/{chunk-S7ILEIB4.js → chunk-76BDT2HH.js} +4 -5
  31. package/chunks/{chunk-YF3ORUIU.js → chunk-7QBKO4A6.js} +2348 -1817
  32. package/chunks/{chunk-GAAALA2X.js → chunk-C4JC2FL3.js} +7 -6
  33. package/chunks/{chunk-CICUTYTF.js → chunk-HNYTRFAM.js} +52 -45
  34. package/chunks/{chunk-JRVB4QUY.js → chunk-KBXLIVWQ.js} +1 -1
  35. package/chunks/{chunk-QKUAGMGE.js → chunk-NKJ6LRCR.js} +1 -1
  36. package/chunks/{chunk-57XRIZVC.js → chunk-NWLUISRA.js} +1 -1
  37. package/chunks/{chunk-VRIVIYRL.js → chunk-TKXRLRTF.js} +4 -4
  38. package/chunks/{computer-use-YYK42DD5.js → computer-use-WOKHYISX.js} +7 -7
  39. package/chunks/{contextCommand-BO45MUAA.js → contextCommand-JSYQAO3O.js} +9 -9
  40. package/chunks/{cron-create-DXKAP5KN.js → cron-create-A5637KCI.js} +9 -6
  41. package/chunks/{cron-delete-WGO4PZTF.js → cron-delete-AADOSEOZ.js} +1 -1
  42. package/chunks/{cron-list-EY7D3ZUC.js → cron-list-OFCPTT2Y.js} +1 -1
  43. package/chunks/{edit-QERNJN7K.js → edit-6EN6NO6G.js} +7 -7
  44. package/chunks/{en-UTXMGXIR.js → en-7OGNWWME.js} +1 -0
  45. package/chunks/{enter-worktree-6ZKH5IL3.js → enter-worktree-XJ4S74CL.js} +7 -7
  46. package/chunks/{enterPlanMode-B2PBF4MA.js → enterPlanMode-GQNQIH2V.js} +7 -7
  47. package/chunks/{exit-worktree-EOCMQO4I.js → exit-worktree-6MKLATVB.js} +7 -7
  48. package/chunks/{exitPlanMode-WSRXCBRZ.js → exitPlanMode-YACWA5GO.js} +7 -7
  49. package/chunks/{geminiContentGenerator-NTR4LTKS.js → geminiContentGenerator-OLJGOIWO.js} +1 -1
  50. package/chunks/{glob-IWDJQI2V.js → glob-YHSIN2LG.js} +7 -7
  51. package/chunks/{grep-2DV5BXMH.js → grep-5EMEAJBO.js} +7 -7
  52. package/chunks/{loop-wakeup-XVSDE7QR.js → loop-wakeup-DGSMT4N6.js} +2 -2
  53. package/chunks/{ls-LPY3ATQQ.js → ls-UGRZ4ZOM.js} +1 -1
  54. package/chunks/{lsp-ZT3AAXIF.js → lsp-72IJURW3.js} +1 -1
  55. package/chunks/{monitor-6HBDS2RS.js → monitor-ZGXTGINM.js} +7 -7
  56. package/chunks/{notebook-edit-J5AY5BRY.js → notebook-edit-O7WO3APR.js} +7 -7
  57. package/chunks/{openaiContentGenerator-ENABCJDM.js → openaiContentGenerator-N4FCEGU2.js} +6 -6
  58. package/chunks/{qwenContentGenerator-ISW42U7C.js → qwenContentGenerator-BOAZ7MMG.js} +9 -9
  59. package/chunks/{read-file-NRX2FSSQ.js → read-file-RB35MI5I.js} +3 -3
  60. package/chunks/{ripGrep-WF5CKHR5.js → ripGrep-CWJOA6JG.js} +7 -7
  61. package/chunks/{scheduler-PNPG5WJ3.js → scheduler-XUBHNI2Z.js} +7 -7
  62. package/chunks/{send-message-447W6NH6.js → send-message-URUZ7PLA.js} +1 -1
  63. package/chunks/{serve-ZBRCIIHW.js → serve-P356SCA2.js} +197 -31
  64. package/chunks/{shell-DLIL6MLU.js → shell-5TRHTPML.js} +7 -7
  65. package/chunks/{skill-32TXHY4A.js → skill-RW6N7GHL.js} +3 -3
  66. package/chunks/{src-PDDLF5BB.js → src-SPEHQKTK.js} +35 -9
  67. package/chunks/{syntheticOutput-GQRDRLGR.js → syntheticOutput-65FRJGWM.js} +2 -2
  68. package/chunks/{task-create-66DDSTVI.js → task-create-IH45HOFT.js} +2 -2
  69. package/chunks/{task-list-GOPXRSHG.js → task-list-FUB6JWSX.js} +1 -1
  70. package/chunks/{task-stop-M7NKGFX2.js → task-stop-P6IOHQM3.js} +1 -1
  71. package/chunks/{task-update-M5TBHLZV.js → task-update-RTUT7LJV.js} +2 -2
  72. package/chunks/{team-create-EHLDSJGI.js → team-create-D6GSPXCO.js} +7 -7
  73. package/chunks/{team-delete-DKKDS65W.js → team-delete-RXGYRMHC.js} +1 -1
  74. package/chunks/{todoWrite-4VX7X44D.js → todoWrite-O6JK24G6.js} +1 -1
  75. package/chunks/{tool-search-FU7IZAOO.js → tool-search-6YIMUUVD.js} +3 -3
  76. package/chunks/{web-fetch-YPP3V4FJ.js → web-fetch-KUMBROUI.js} +2 -2
  77. package/chunks/{workflow-WUDNBCGX.js → workflow-ML3XFTCN.js} +23 -15
  78. package/chunks/{write-file-NVFPX6CH.js → write-file-VLT6ODLK.js} +7 -7
  79. package/chunks/{zh-YOXVTJU5.js → zh-3RMSEO5M.js} +1 -0
  80. package/chunks/{zh-TW-J2TTW67R.js → zh-TW-R7WRLTJS.js} +1 -0
  81. package/cli.js +778 -382
  82. package/locales/en.js +1 -0
  83. package/locales/zh-TW.js +1 -0
  84. package/locales/zh.js +1 -0
  85. package/package.json +3 -3
  86. package/web-shell/assets/{arc-pxOt9B72.js → arc-DHUeMnnj.js} +1 -1
  87. package/web-shell/assets/{architectureDiagram-3BPJPVTR-B9XuYYOT.js → architectureDiagram-3BPJPVTR-DlX12yyj.js} +1 -1
  88. package/web-shell/assets/{blockDiagram-GPEHLZMM-5yK68iu4.js → blockDiagram-GPEHLZMM-DTFUXMUT.js} +1 -1
  89. package/web-shell/assets/{c4Diagram-AAUBKEIU-B1LY-qNI.js → c4Diagram-AAUBKEIU-CWdB54fk.js} +1 -1
  90. package/web-shell/assets/channel-C3WhMjjP.js +1 -0
  91. package/web-shell/assets/{chunk-2J33WTMH-DkgXg7cM.js → chunk-2J33WTMH-CF5C5jNR.js} +1 -1
  92. package/web-shell/assets/{chunk-4BX2VUAB-DdM45KFM.js → chunk-4BX2VUAB-Cw7Ydfji.js} +1 -1
  93. package/web-shell/assets/{chunk-55IACEB6-CmdsDjD4.js → chunk-55IACEB6-CnbI1ZCw.js} +1 -1
  94. package/web-shell/assets/{chunk-727SXJPM-CQ4pJ5GH.js → chunk-727SXJPM-DmSy00Pe.js} +1 -1
  95. package/web-shell/assets/{chunk-AQP2D5EJ-Dy6UWz37.js → chunk-AQP2D5EJ-DgNgXqBu.js} +1 -1
  96. package/web-shell/assets/{chunk-FMBD7UC4-CC8nFqap.js → chunk-FMBD7UC4-tz2IvOXv.js} +1 -1
  97. package/web-shell/assets/{chunk-ND2GUHAM-CkmS7lx7.js → chunk-ND2GUHAM-DaBLEBPa.js} +1 -1
  98. package/web-shell/assets/{chunk-QZHKN3VN-DynyqleZ.js → chunk-QZHKN3VN-DVCQST3O.js} +1 -1
  99. package/web-shell/assets/classDiagram-4FO5ZUOK-CQ6TXPif.js +1 -0
  100. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CQ6TXPif.js +1 -0
  101. package/web-shell/assets/{cose-bilkent-S5V4N54A-DA0fzCsY.js → cose-bilkent-S5V4N54A-CAKTcdCQ.js} +1 -1
  102. package/web-shell/assets/{dagre-BM42HDAG-DHYXRqCo.js → dagre-BM42HDAG-BdkBwlKg.js} +1 -1
  103. package/web-shell/assets/{diagram-2AECGRRQ-DWD6BcPs.js → diagram-2AECGRRQ-DYt3G65F.js} +1 -1
  104. package/web-shell/assets/{diagram-5GNKFQAL-CX9wnqVc.js → diagram-5GNKFQAL-BWvROWjY.js} +1 -1
  105. package/web-shell/assets/{diagram-KO2AKTUF-BpE8Kbt8.js → diagram-KO2AKTUF-BvvgwIaQ.js} +1 -1
  106. package/web-shell/assets/{diagram-LMA3HP47-DLPcrP0C.js → diagram-LMA3HP47-E7NLSNKg.js} +1 -1
  107. package/web-shell/assets/{diagram-OG6HWLK6-CSUCBsCe.js → diagram-OG6HWLK6-CYmUBgpE.js} +1 -1
  108. package/web-shell/assets/{erDiagram-TEJ5UH35-d3Z0uMXS.js → erDiagram-TEJ5UH35-BU5gY30h.js} +1 -1
  109. package/web-shell/assets/{flowDiagram-I6XJVG4X-C7vj5FX3.js → flowDiagram-I6XJVG4X-V_ZssSZ9.js} +1 -1
  110. package/web-shell/assets/{ganttDiagram-6RSMTGT7-BV9UvDV_.js → ganttDiagram-6RSMTGT7-QIShlsdI.js} +1 -1
  111. package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CoWp0mW4.js → gitGraphDiagram-PVQCEYII-DJxdu2YS.js} +1 -1
  112. package/web-shell/assets/index-BPnhI7gl.css +1 -0
  113. package/web-shell/assets/index-De4rqTsW.js +706 -0
  114. package/web-shell/assets/{infoDiagram-5YYISTIA-DUswfJHA.js → infoDiagram-5YYISTIA-BqjdrFeO.js} +1 -1
  115. package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-WidEKukx.js → ishikawaDiagram-YF4QCWOH-BP_a2YZ2.js} +1 -1
  116. package/web-shell/assets/{journeyDiagram-JHISSGLW-D7IRK3VN.js → journeyDiagram-JHISSGLW-BXg-S3Lk.js} +1 -1
  117. package/web-shell/assets/{kanban-definition-UN3LZRKU-CwFJ6Cja.js → kanban-definition-UN3LZRKU-BksAkdEJ.js} +1 -1
  118. package/web-shell/assets/{linear-BQ8GvDRY.js → linear-D2m9-ODE.js} +1 -1
  119. package/web-shell/assets/{mermaid.core-CwF8A_xO.js → mermaid.core-dTtkZp2F.js} +5 -5
  120. package/web-shell/assets/{mindmap-definition-RKZ34NQL-TR1s0iZi.js → mindmap-definition-RKZ34NQL-Bft9my8O.js} +1 -1
  121. package/web-shell/assets/{pieDiagram-4H26LBE5-Cd91pMl9.js → pieDiagram-4H26LBE5-Cw8S-alZ.js} +1 -1
  122. package/web-shell/assets/{quadrantDiagram-W4KKPZXB-BGxGDNMl.js → quadrantDiagram-W4KKPZXB-DaDoTMts.js} +1 -1
  123. package/web-shell/assets/{requirementDiagram-4Y6WPE33-Cq3fWmYz.js → requirementDiagram-4Y6WPE33-Cp5kSpwj.js} +1 -1
  124. package/web-shell/assets/{sankeyDiagram-5OEKKPKP-ChLyGdq0.js → sankeyDiagram-5OEKKPKP-CW8RsJJZ.js} +1 -1
  125. package/web-shell/assets/{sequenceDiagram-3UESZ5HK-tazy79aB.js → sequenceDiagram-3UESZ5HK-DTfpIiJK.js} +1 -1
  126. package/web-shell/assets/{stateDiagram-AJRCARHV-dIYLUNSf.js → stateDiagram-AJRCARHV-DixFVzEs.js} +1 -1
  127. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DZgE04s3.js +1 -0
  128. package/web-shell/assets/{timeline-definition-PNZ67QCA-BuENhrC2.js → timeline-definition-PNZ67QCA-DYsbXn5l.js} +1 -1
  129. package/web-shell/assets/{vennDiagram-CIIHVFJN-DLtum9dF.js → vennDiagram-CIIHVFJN-HUpRpuUp.js} +1 -1
  130. package/web-shell/assets/{wardley-L42UT6IY-Bf7OSF3y.js → wardley-L42UT6IY-cT3nQH_T.js} +1 -1
  131. package/web-shell/assets/{wardleyDiagram-YWT4CUSO-slMw3OB3.js → wardleyDiagram-YWT4CUSO-Dmm7J6Qc.js} +1 -1
  132. package/web-shell/assets/{xychartDiagram-2RQKCTM6-CdxOm8oC.js → xychartDiagram-2RQKCTM6-CX0L5p9C.js} +1 -1
  133. package/web-shell/index.html +3 -3
  134. package/web-shell/assets/channel-Cx7egbSX.js +0 -1
  135. package/web-shell/assets/classDiagram-4FO5ZUOK-CwH_F8cH.js +0 -1
  136. package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CwH_F8cH.js +0 -1
  137. package/web-shell/assets/index-BDZiTAkl.css +0 -1
  138. package/web-shell/assets/index-CjTH6cLP.js +0 -516
  139. package/web-shell/assets/stateDiagram-v2-BHNVJYJU-luL7KTiX.js +0 -1
  140. package/chunks/{chunk-JDV3VBPY.js → chunk-F6XNTYNE.js} +202 -202
  141. package/chunks/{chunk-PLY4F7QW.js → chunk-L7U2RI5O.js} +54 -54
@@ -7,7 +7,7 @@ import {
7
7
  getLanguageSettingsOptions,
8
8
  t,
9
9
  writeStderrLine
10
- } from "./chunk-VRIVIYRL.js";
10
+ } from "./chunk-TKXRLRTF.js";
11
11
  import {
12
12
  DEFAULT_STOP_HOOK_BLOCK_CAP,
13
13
  DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,
@@ -20,7 +20,10 @@ import {
20
20
  require_main,
21
21
  resolveModelConfig,
22
22
  stripRuntimeSnapshotPrefix
23
- } from "./chunk-YF3ORUIU.js";
23
+ } from "./chunk-7QBKO4A6.js";
24
+ import {
25
+ external_exports
26
+ } from "./chunk-K5PGHDBN.js";
24
27
  import {
25
28
  DEFAULT_QWEN_CUSTOM_IGNORE_FILE_NAMES
26
29
  } from "./chunk-EEEZIVFJ.js";
@@ -28,7 +31,7 @@ import {
28
31
  AuthType,
29
32
  MODEL_GENERATION_CONFIG_FIELDS,
30
33
  isWithinRoot
31
- } from "./chunk-CICUTYTF.js";
34
+ } from "./chunk-HNYTRFAM.js";
32
35
  import {
33
36
  atomicWriteFileSync
34
37
  } from "./chunk-3UALQ56H.js";
@@ -13896,6 +13899,7 @@ var SERVE_STATUS_EXT_METHODS = {
13896
13899
  sessionSupportedCommands: "qwen/status/session/supported_commands",
13897
13900
  sessionTasks: "qwen/status/session/tasks",
13898
13901
  sessionStats: "qwen/status/session/stats",
13902
+ sessionLspStatus: "qwen/status/session/lsp",
13899
13903
  sessionRewindSnapshots: "qwen/status/session/rewind_snapshots",
13900
13904
  workspaceHooks: "qwen/status/workspace/hooks",
13901
13905
  sessionHooks: "qwen/status/session/hooks",
@@ -14816,89 +14820,6 @@ function resolveColor(colorValue) {
14816
14820
  return void 0;
14817
14821
  }
14818
14822
  __name(resolveColor, "resolveColor");
14819
- var INK_NAME_TO_HEX = {
14820
- black: "#000000",
14821
- red: "#ff0000",
14822
- green: "#00ff00",
14823
- yellow: "#ffff00",
14824
- blue: "#0000ff",
14825
- cyan: "#00ffff",
14826
- magenta: "#ff00ff",
14827
- white: "#ffffff",
14828
- gray: "#808080",
14829
- grey: "#808080",
14830
- blackbright: "#808080",
14831
- redbright: "#ff8080",
14832
- greenbright: "#80ff80",
14833
- yellowbright: "#ffff80",
14834
- bluebright: "#8080ff",
14835
- cyanbright: "#80ffff",
14836
- magentabright: "#ff80ff",
14837
- whitebright: "#ffffff"
14838
- };
14839
- function toHex(color) {
14840
- const resolved = (resolveColor(color) ?? color).toLowerCase();
14841
- if (resolved.startsWith("#")) {
14842
- if (/^#[0-9a-f]{3}$/.test(resolved)) {
14843
- return `#${resolved.slice(1).split("").map((c) => c + c).join("")}`;
14844
- }
14845
- if (/^#[0-9a-f]{6}$/.test(resolved)) {
14846
- return resolved;
14847
- }
14848
- return void 0;
14849
- }
14850
- return INK_NAME_TO_HEX[resolved];
14851
- }
14852
- __name(toHex, "toHex");
14853
- function interpolateColor(color1, color2, factor) {
14854
- if (factor <= 0) {
14855
- return color1;
14856
- }
14857
- if (factor >= 1) {
14858
- return color2;
14859
- }
14860
- const h1 = toHex(color1);
14861
- const h2 = toHex(color2);
14862
- if (!h1 || !h2) {
14863
- return "";
14864
- }
14865
- const r1 = parseInt(h1.slice(1, 3), 16);
14866
- const g1 = parseInt(h1.slice(3, 5), 16);
14867
- const b1 = parseInt(h1.slice(5, 7), 16);
14868
- const r2 = parseInt(h2.slice(1, 3), 16);
14869
- const g2 = parseInt(h2.slice(3, 5), 16);
14870
- const b2 = parseInt(h2.slice(5, 7), 16);
14871
- const lerp = /* @__PURE__ */ __name((a, b) => Math.round(a + (b - a) * factor), "lerp");
14872
- const toByte = /* @__PURE__ */ __name((n) => Math.max(0, Math.min(255, n)).toString(16).padStart(2, "0"), "toByte");
14873
- return `#${toByte(lerp(r1, r2))}${toByte(lerp(g1, g2))}${toByte(lerp(b1, b2))}`;
14874
- }
14875
- __name(interpolateColor, "interpolateColor");
14876
- function subtleBandColor(bgColor, factor = 0.06) {
14877
- const hex = toHex(bgColor);
14878
- if (!hex) {
14879
- return "";
14880
- }
14881
- const r = parseInt(hex.slice(1, 3), 16);
14882
- const g = parseInt(hex.slice(3, 5), 16);
14883
- const b = parseInt(hex.slice(5, 7), 16);
14884
- const isDark = (r * 299 + g * 587 + b * 114) / 1e3 < 128;
14885
- const target = isDark ? "#ffffff" : "#000000";
14886
- return interpolateColor(hex, target, factor);
14887
- }
14888
- __name(subtleBandColor, "subtleBandColor");
14889
- var _supportsTrueColor;
14890
- function supportsTrueColor() {
14891
- if (_supportsTrueColor !== void 0) return _supportsTrueColor;
14892
- const colorterm = process.env["COLORTERM"];
14893
- if (colorterm === "truecolor" || colorterm === "24bit" || colorterm === "kmscon") {
14894
- return _supportsTrueColor = true;
14895
- }
14896
- if (process.stdout.getColorDepth && process.stdout.getColorDepth() >= 24) {
14897
- return _supportsTrueColor = true;
14898
- }
14899
- return _supportsTrueColor = false;
14900
- }
14901
- __name(supportsTrueColor, "supportsTrueColor");
14902
14823
 
14903
14824
  // packages/cli/src/ui/themes/theme.ts
14904
14825
  var lightTheme = {
@@ -15658,7 +15579,7 @@ var SETTINGS_SCHEMA = {
15658
15579
  category: "Model",
15659
15580
  requiresRestart: false,
15660
15581
  default: {},
15661
- description: "Model providers configuration grouped by authType. Each authType maps to a ProviderConfig object with protocol and models fields.",
15582
+ description: "Model providers configuration grouped by authType. Each authType contains an array of model configurations.",
15662
15583
  showInDialog: false,
15663
15584
  mergeStrategy: "replace" /* REPLACE */
15664
15585
  },
@@ -16786,7 +16707,12 @@ var SETTINGS_SCHEMA = {
16786
16707
  category: "Context",
16787
16708
  requiresRestart: false,
16788
16709
  default: 5,
16789
- description: "Number of most-recent compactable tool results to preserve when clearing. Floor at 1.",
16710
+ description: "Integer number of most-recent compactable tool results to preserve when clearing. Values below 1 are floored to 1.",
16711
+ jsonSchemaOverride: {
16712
+ type: "integer",
16713
+ default: 5,
16714
+ description: "Integer number of most-recent compactable tool results to preserve when clearing. Values below 1 are floored to 1."
16715
+ },
16790
16716
  showInDialog: false
16791
16717
  },
16792
16718
  toolResultsTotalCharsThreshold: {
@@ -17714,7 +17640,12 @@ var SETTINGS_SCHEMA = {
17714
17640
  description: "Maximum consecutive blocking Stop/SubagentStop hook decisions before Qwen Code overrides the hook loop and ends the turn. Can be overridden by QWEN_CODE_STOP_HOOK_BLOCK_CAP.",
17715
17641
  // This is an advanced safety valve for runaway hook loops, not a common
17716
17642
  // interactive preference.
17717
- showInDialog: false
17643
+ showInDialog: false,
17644
+ jsonSchemaOverride: {
17645
+ type: "integer",
17646
+ minimum: 1,
17647
+ default: DEFAULT_STOP_HOOK_BLOCK_CAP
17648
+ }
17718
17649
  },
17719
17650
  hooks: {
17720
17651
  type: "object",
@@ -19099,7 +19030,7 @@ var V3ToV4Migration = class {
19099
19030
  };
19100
19031
  var v3ToV4Migration = new V3ToV4Migration();
19101
19032
 
19102
- // packages/cli/src/config/migration/versions/v4-to-v5.ts
19033
+ // packages/cli/src/config/migration/versions/v5-to-v4.ts
19103
19034
  init_esbuild_shims();
19104
19035
  var PROVIDER_KEY_TO_PROTOCOL = {
19105
19036
  openai: "openai",
@@ -19108,28 +19039,34 @@ var PROVIDER_KEY_TO_PROTOCOL = {
19108
19039
  "vertex-ai": "gemini",
19109
19040
  anthropic: "anthropic"
19110
19041
  };
19111
- var V4ToV5Migration = class {
19042
+ function isWrappedProviderConfig(value) {
19043
+ return typeof value === "object" && value !== null && !Array.isArray(value);
19044
+ }
19045
+ __name(isWrappedProviderConfig, "isWrappedProviderConfig");
19046
+ var V5ToV4Migration = class {
19112
19047
  static {
19113
- __name(this, "V4ToV5Migration");
19048
+ __name(this, "V5ToV4Migration");
19114
19049
  }
19115
- fromVersion = 4;
19116
- toVersion = 5;
19050
+ fromVersion = 5;
19051
+ toVersion = 4;
19117
19052
  shouldMigrate(settings) {
19118
19053
  if (typeof settings !== "object" || settings === null) {
19119
19054
  return false;
19120
19055
  }
19121
19056
  const s = settings;
19122
- if (s["$version"] !== 4 && s["$version"] !== void 0) {
19123
- return false;
19124
- }
19125
- if (s["$version"] === 4) {
19057
+ if (s["$version"] === 5) {
19126
19058
  return true;
19127
19059
  }
19060
+ if (s["$version"] !== void 0) {
19061
+ return false;
19062
+ }
19128
19063
  const modelProviders = s["modelProviders"];
19129
19064
  if (typeof modelProviders !== "object" || modelProviders === null) {
19130
19065
  return false;
19131
19066
  }
19132
- return Object.values(modelProviders).some((v) => Array.isArray(v));
19067
+ return Object.values(modelProviders).some(
19068
+ (v) => isWrappedProviderConfig(v)
19069
+ );
19133
19070
  }
19134
19071
  migrate(settings, _scope) {
19135
19072
  if (typeof settings !== "object" || settings === null) {
@@ -19141,35 +19078,40 @@ var V4ToV5Migration = class {
19141
19078
  if (typeof modelProviders === "object" && modelProviders !== null) {
19142
19079
  const providers = modelProviders;
19143
19080
  for (const [key, value] of Object.entries(providers)) {
19144
- if (!Array.isArray(value)) {
19081
+ if (Array.isArray(value)) {
19145
19082
  continue;
19146
19083
  }
19147
- if (!Object.hasOwn(PROVIDER_KEY_TO_PROTOCOL, key)) {
19084
+ if (!isWrappedProviderConfig(value)) {
19085
+ continue;
19086
+ }
19087
+ const derivedProtocol = Object.hasOwn(PROVIDER_KEY_TO_PROTOCOL, key) ? PROVIDER_KEY_TO_PROTOCOL[key] : void 0;
19088
+ if (typeof value.protocol === "string" && derivedProtocol !== void 0 && value.protocol !== derivedProtocol) {
19148
19089
  warnings.push(
19149
- `Unknown provider key "${key}", defaulting protocol to "openai". If this provider uses a different protocol (anthropic, gemini), edit settings.json to set "protocol" explicitly.`
19090
+ `Provider "${key}" declared protocol "${value.protocol}", but V4 derives protocol "${derivedProtocol}" from the provider key. The explicit protocol has been dropped.`
19150
19091
  );
19151
19092
  }
19152
- providers[key] = {
19153
- protocol: Object.hasOwn(PROVIDER_KEY_TO_PROTOCOL, key) ? PROVIDER_KEY_TO_PROTOCOL[key] : "openai",
19154
- models: value
19155
- };
19093
+ providers[key] = Array.isArray(value.models) ? value.models : [];
19156
19094
  }
19157
19095
  }
19158
- result["$version"] = 5;
19096
+ result["$version"] = 4;
19159
19097
  return { settings: result, warnings };
19160
19098
  }
19161
19099
  };
19162
- var v4ToV5Migration = new V4ToV5Migration();
19100
+ var v5ToV4Migration = new V5ToV4Migration();
19163
19101
 
19164
19102
  // packages/cli/src/config/migration/index.ts
19165
19103
  var ALL_MIGRATIONS = [
19166
19104
  v1ToV2Migration,
19167
19105
  v2ToV3Migration,
19168
- v3ToV4Migration,
19169
- v4ToV5Migration
19106
+ v3ToV4Migration
19107
+ ];
19108
+ var DOWNGRADE_MIGRATIONS = [v5ToV4Migration];
19109
+ var CONVERGENCE_MIGRATIONS = [
19110
+ ...ALL_MIGRATIONS,
19111
+ ...DOWNGRADE_MIGRATIONS
19170
19112
  ];
19171
19113
  function runMigrations(settings, scope) {
19172
- const scheduler = new MigrationScheduler([...ALL_MIGRATIONS], scope);
19114
+ const scheduler = new MigrationScheduler([...CONVERGENCE_MIGRATIONS], scope);
19173
19115
  return scheduler.migrate(settings);
19174
19116
  }
19175
19117
  __name(runMigrations, "runMigrations");
@@ -19179,11 +19121,11 @@ function needsMigration(settings) {
19179
19121
  }
19180
19122
  const s = settings;
19181
19123
  const version = s["$version"];
19182
- const hasApplicableMigration = ALL_MIGRATIONS.some(
19124
+ const hasApplicableMigration = CONVERGENCE_MIGRATIONS.some(
19183
19125
  (migration) => migration.shouldMigrate(settings)
19184
19126
  );
19185
19127
  if (typeof version === "number") {
19186
- if (version >= SETTINGS_VERSION) {
19128
+ if (version === SETTINGS_VERSION) {
19187
19129
  return false;
19188
19130
  }
19189
19131
  return hasApplicableMigration;
@@ -19250,7 +19192,7 @@ var dotEnvSourcedKeys = /* @__PURE__ */ new Set();
19250
19192
  var settingsEnvSourcedKeys = /* @__PURE__ */ new Set();
19251
19193
  var lastReloadSnapshot = /* @__PURE__ */ new Map();
19252
19194
  var lastReloadSnapshotSeeded = false;
19253
- var SETTINGS_VERSION = 5;
19195
+ var SETTINGS_VERSION = 4;
19254
19196
  var SETTINGS_VERSION_KEY = "$version";
19255
19197
  function getSystemSettingsPath() {
19256
19198
  if (process2.env["QWEN_CODE_SYSTEM_SETTINGS_PATH"]) {
@@ -19331,16 +19273,9 @@ function hasAnyProviderEntries(modelProviders) {
19331
19273
  if (!isPlainObject2(modelProviders)) {
19332
19274
  return false;
19333
19275
  }
19334
- return Object.values(modelProviders).some((providerModels) => {
19335
- if (Array.isArray(providerModels)) {
19336
- return providerModels.length > 0;
19337
- }
19338
- if (isPlainObject2(providerModels)) {
19339
- const models = providerModels["models"];
19340
- return Array.isArray(models) && models.length > 0;
19341
- }
19342
- return false;
19343
- });
19276
+ return Object.values(modelProviders).some(
19277
+ (providerModels) => Array.isArray(providerModels) && providerModels.length > 0
19278
+ );
19344
19279
  }
19345
19280
  __name(hasAnyProviderEntries, "hasAnyProviderEntries");
19346
19281
  function getModelProvidersOverrideWarnings(loadedSettings) {
@@ -19654,72 +19589,86 @@ function detectQwenHomeRedirectWithoutMigration(activeUserSettingsPath) {
19654
19589
  return `QWEN_HOME points to "${activeQwenDir}" but no settings.json was found there. Existing config remains at "${legacyQwenDir}" \u2014 OAuth tokens, settings, memory, extensions, and skills are not auto-migrated. Copy them manually if you want them to apply at the new location.`;
19655
19590
  }
19656
19591
  __name(detectQwenHomeRedirectWithoutMigration, "detectQwenHomeRedirectWithoutMigration");
19657
- function findEnvFile(settings, startDir, userLevelPaths = getUserLevelEnvPaths()) {
19592
+ function findEnvFiles(settings, startDir, userLevelPaths = getUserLevelEnvPaths()) {
19658
19593
  const homeDir = homedir();
19659
19594
  const isTrusted = isWorkspaceTrusted(settings).isTrusted;
19660
19595
  const globalQwenDir = Storage.getGlobalQwenDir();
19661
19596
  const legacyQwenDir = path4.normalize(path4.join(homeDir, QWEN_DIR));
19662
19597
  const hasCustomConfigDir = path4.normalize(globalQwenDir) !== legacyQwenDir;
19598
+ const found = [];
19599
+ const seen = /* @__PURE__ */ new Set();
19663
19600
  const canUseEnvFile = /* @__PURE__ */ __name((filePath) => isTrusted !== false || userLevelPaths.has(path4.normalize(filePath)), "canUseEnvFile");
19664
- const findHomeCandidate = /* @__PURE__ */ __name(() => {
19601
+ const pushCandidate = /* @__PURE__ */ __name((filePath) => {
19602
+ const normalized = path4.normalize(filePath);
19603
+ if (!seen.has(normalized) && fs6.existsSync(filePath) && canUseEnvFile(filePath)) {
19604
+ seen.add(normalized);
19605
+ found.push(filePath);
19606
+ return true;
19607
+ }
19608
+ return false;
19609
+ }, "pushCandidate");
19610
+ const pushHomeCandidates = /* @__PURE__ */ __name(() => {
19665
19611
  const candidates = [path4.join(globalQwenDir, ".env")];
19666
19612
  if (hasCustomConfigDir) {
19667
19613
  candidates.push(path4.join(legacyQwenDir, ".env"));
19668
19614
  }
19669
19615
  candidates.push(path4.join(homeDir, ".env"));
19670
19616
  for (const candidate of candidates) {
19671
- if (fs6.existsSync(candidate) && canUseEnvFile(candidate)) {
19672
- return candidate;
19673
- }
19617
+ pushCandidate(candidate);
19674
19618
  }
19675
- return null;
19676
- }, "findHomeCandidate");
19619
+ }, "pushHomeCandidates");
19677
19620
  let currentDir = path4.resolve(startDir);
19678
19621
  let visitedHomeDir = false;
19679
19622
  while (true) {
19680
19623
  if (currentDir === homeDir) {
19681
19624
  visitedHomeDir = true;
19682
- const found = findHomeCandidate();
19683
- if (found) return found;
19625
+ pushHomeCandidates();
19626
+ return found;
19684
19627
  } else {
19685
19628
  const geminiEnvPath = path4.join(currentDir, QWEN_DIR, ".env");
19686
- if (fs6.existsSync(geminiEnvPath) && canUseEnvFile(geminiEnvPath)) {
19687
- return geminiEnvPath;
19629
+ if (pushCandidate(geminiEnvPath)) {
19630
+ pushHomeCandidates();
19631
+ return found;
19688
19632
  }
19689
19633
  const envPath = path4.join(currentDir, ".env");
19690
- if (fs6.existsSync(envPath) && canUseEnvFile(envPath)) {
19691
- return envPath;
19634
+ if (pushCandidate(envPath)) {
19635
+ pushHomeCandidates();
19636
+ return found;
19692
19637
  }
19693
19638
  }
19694
19639
  const parentDir = path4.dirname(currentDir);
19695
19640
  if (parentDir === currentDir || !parentDir) {
19696
- return visitedHomeDir ? null : findHomeCandidate();
19641
+ if (!visitedHomeDir) {
19642
+ pushHomeCandidates();
19643
+ }
19644
+ return found;
19697
19645
  }
19698
19646
  currentDir = parentDir;
19699
19647
  }
19700
19648
  }
19701
- __name(findEnvFile, "findEnvFile");
19702
- function setUpCloudShellEnvironment(envFilePath) {
19703
- if (envFilePath && fs6.existsSync(envFilePath)) {
19649
+ __name(findEnvFiles, "findEnvFiles");
19650
+ function setUpCloudShellEnvironmentFromFiles(envFilePaths) {
19651
+ for (const envFilePath of envFilePaths) {
19652
+ if (!fs6.existsSync(envFilePath)) {
19653
+ continue;
19654
+ }
19704
19655
  const envFileContent = fs6.readFileSync(envFilePath);
19705
19656
  const parsedEnv = dotenv.parse(envFileContent);
19706
19657
  if (parsedEnv["GOOGLE_CLOUD_PROJECT"]) {
19707
19658
  process2.env["GOOGLE_CLOUD_PROJECT"] = parsedEnv["GOOGLE_CLOUD_PROJECT"];
19708
- } else {
19709
- process2.env["GOOGLE_CLOUD_PROJECT"] = "cloudshell-gca";
19659
+ return;
19710
19660
  }
19711
- } else {
19712
- process2.env["GOOGLE_CLOUD_PROJECT"] = "cloudshell-gca";
19713
19661
  }
19662
+ process2.env["GOOGLE_CLOUD_PROJECT"] = "cloudshell-gca";
19714
19663
  }
19715
- __name(setUpCloudShellEnvironment, "setUpCloudShellEnvironment");
19664
+ __name(setUpCloudShellEnvironmentFromFiles, "setUpCloudShellEnvironmentFromFiles");
19716
19665
  function loadEnvironment(settings) {
19717
19666
  const userLevelPaths = getUserLevelEnvPaths();
19718
- const envFilePath = findEnvFile(settings, process2.cwd(), userLevelPaths);
19667
+ const envFilePaths = findEnvFiles(settings, process2.cwd(), userLevelPaths);
19719
19668
  if (process2.env["CLOUD_SHELL"] === "true") {
19720
- setUpCloudShellEnvironment(envFilePath);
19669
+ setUpCloudShellEnvironmentFromFiles(envFilePaths);
19721
19670
  }
19722
- if (envFilePath) {
19671
+ for (const envFilePath of envFilePaths) {
19723
19672
  try {
19724
19673
  const envFileContent = fs6.readFileSync(envFilePath, "utf-8");
19725
19674
  const parsedEnv = dotenv.parse(envFileContent);
@@ -19739,7 +19688,7 @@ function loadEnvironment(settings) {
19739
19688
  process2.env[key] = parsedEnv[key];
19740
19689
  dotEnvSourcedKeys.add(key);
19741
19690
  }
19742
- if (!lastReloadSnapshotSeeded) {
19691
+ if (!lastReloadSnapshotSeeded && !lastReloadSnapshot.has(key)) {
19743
19692
  lastReloadSnapshot.set(key, parsedEnv[key]);
19744
19693
  }
19745
19694
  }
@@ -19766,14 +19715,14 @@ function loadEnvironment(settings) {
19766
19715
  __name(loadEnvironment, "loadEnvironment");
19767
19716
  function reloadEnvironment(settings, workspaceCwd) {
19768
19717
  const userLevelPaths = getUserLevelEnvPaths();
19769
- const envFilePath = findEnvFile(settings, workspaceCwd, userLevelPaths);
19718
+ const envFilePaths = findEnvFiles(settings, workspaceCwd, userLevelPaths);
19770
19719
  if (process2.env["CLOUD_SHELL"] === "true") {
19771
- setUpCloudShellEnvironment(envFilePath);
19720
+ setUpCloudShellEnvironmentFromFiles(envFilePaths);
19772
19721
  }
19773
19722
  let dotEnvReadFailed = false;
19774
19723
  const newDotEnvKeys = /* @__PURE__ */ new Map();
19775
19724
  const newSettingsEnvKeys = /* @__PURE__ */ new Map();
19776
- if (envFilePath) {
19725
+ for (const envFilePath of envFilePaths) {
19777
19726
  try {
19778
19727
  const envFileContent = fs6.readFileSync(envFilePath, "utf-8");
19779
19728
  const parsedEnv = dotenv.parse(envFileContent);
@@ -19788,7 +19737,9 @@ function reloadEnvironment(settings, workspaceCwd) {
19788
19737
  continue;
19789
19738
  }
19790
19739
  if (!isQwenScopedEnvFile && excludedVars.includes(key)) continue;
19791
- newDotEnvKeys.set(key, parsedEnv[key]);
19740
+ if (!newDotEnvKeys.has(key)) {
19741
+ newDotEnvKeys.set(key, parsedEnv[key]);
19742
+ }
19792
19743
  }
19793
19744
  } catch {
19794
19745
  dotEnvReadFailed = true;
@@ -20370,7 +20321,7 @@ __name(getPackageJson, "getPackageJson");
20370
20321
  // packages/cli/src/utils/version.ts
20371
20322
  async function getCliVersion() {
20372
20323
  const pkgJson = await getPackageJson();
20373
- return "0.19.0";
20324
+ return "0.19.1-nightly.20260624.a234860a4";
20374
20325
  }
20375
20326
  __name(getCliVersion, "getCliVersion");
20376
20327
 
@@ -20591,8 +20542,9 @@ function parseAcpModelOption(input) {
20591
20542
  if (openIdx >= 0 && closeIdx === trimmed.length - 1 && openIdx < closeIdx) {
20592
20543
  const maybeModelId = trimmed.slice(0, openIdx);
20593
20544
  const maybeAuthType = trimmed.slice(openIdx + 1, closeIdx);
20594
- if (maybeAuthType) {
20595
- return { modelId: maybeModelId, authType: maybeAuthType };
20545
+ const parsedAuthType = external_exports.nativeEnum(AuthType).safeParse(maybeAuthType);
20546
+ if (parsedAuthType.success) {
20547
+ return { modelId: maybeModelId, authType: parsedAuthType.data };
20596
20548
  }
20597
20549
  }
20598
20550
  return { modelId: trimmed };
@@ -20602,11 +20554,11 @@ __name(parseAcpModelOption, "parseAcpModelOption");
20602
20554
  // packages/cli/src/utils/modelConfigUtils.ts
20603
20555
  init_esbuild_shims();
20604
20556
  var AUTH_ENV_MODEL_VARS = {
20605
- [AuthType.USE_OPENAI]: ["OPENAI_MODEL", "QWEN_MODEL"],
20606
- [AuthType.USE_GEMINI]: ["GEMINI_MODEL"],
20607
- [AuthType.USE_VERTEX_AI]: ["GOOGLE_MODEL"],
20608
- [AuthType.USE_ANTHROPIC]: ["ANTHROPIC_MODEL"],
20609
- [AuthType.QWEN_OAUTH]: []
20557
+ ["openai" /* USE_OPENAI */]: ["OPENAI_MODEL", "QWEN_MODEL"],
20558
+ ["gemini" /* USE_GEMINI */]: ["GEMINI_MODEL"],
20559
+ ["vertex-ai" /* USE_VERTEX_AI */]: ["GOOGLE_MODEL"],
20560
+ ["anthropic" /* USE_ANTHROPIC */]: ["ANTHROPIC_MODEL"],
20561
+ ["qwen-oauth" /* QWEN_OAUTH */]: []
20610
20562
  };
20611
20563
  function getIgnoredTopLevelGenerationConfigFields(settingsGenerationConfig, modelProvider) {
20612
20564
  if (!settingsGenerationConfig || !modelProvider) {
@@ -20632,19 +20584,19 @@ function buildIgnoredTopLevelGenerationConfigWarning(authType, modelProvider, ig
20632
20584
  __name(buildIgnoredTopLevelGenerationConfigWarning, "buildIgnoredTopLevelGenerationConfigWarning");
20633
20585
  function getAuthTypeFromEnv() {
20634
20586
  if (process.env["QWEN_OAUTH"]) {
20635
- return AuthType.QWEN_OAUTH;
20587
+ return "qwen-oauth" /* QWEN_OAUTH */;
20636
20588
  }
20637
20589
  if (process.env["OPENAI_API_KEY"] && (process.env["OPENAI_MODEL"] || process.env["QWEN_MODEL"]) && process.env["OPENAI_BASE_URL"]) {
20638
- return AuthType.USE_OPENAI;
20590
+ return "openai" /* USE_OPENAI */;
20639
20591
  }
20640
20592
  if (process.env["GEMINI_API_KEY"] && process.env["GEMINI_MODEL"]) {
20641
- return AuthType.USE_GEMINI;
20593
+ return "gemini" /* USE_GEMINI */;
20642
20594
  }
20643
20595
  if (process.env["GOOGLE_API_KEY"] && process.env["GOOGLE_MODEL"]) {
20644
- return AuthType.USE_VERTEX_AI;
20596
+ return "vertex-ai" /* USE_VERTEX_AI */;
20645
20597
  }
20646
20598
  if (process.env["ANTHROPIC_API_KEY"] && process.env["ANTHROPIC_MODEL"] && process.env["ANTHROPIC_BASE_URL"]) {
20647
- return AuthType.USE_ANTHROPIC;
20599
+ return "anthropic" /* USE_ANTHROPIC */;
20648
20600
  }
20649
20601
  return void 0;
20650
20602
  }
@@ -20673,9 +20625,8 @@ function resolveCliGenerationConfig(inputs) {
20673
20625
  let modelProvider;
20674
20626
  let disambiguationWarning;
20675
20627
  if (resolvedModel && authType && settings.modelProviders) {
20676
- const providerConfig = settings.modelProviders[authType];
20677
- if (providerConfig && providerConfig.models) {
20678
- const providers = providerConfig.models;
20628
+ const providers = settings.modelProviders[authType];
20629
+ if (providers && Array.isArray(providers)) {
20679
20630
  const persistedBaseUrl = settings.model?.baseUrl;
20680
20631
  if (resolvedFromSettings && persistedBaseUrl) {
20681
20632
  const exactMatch = providers.find(
@@ -20763,7 +20714,7 @@ import { execFile } from "node:child_process";
20763
20714
 
20764
20715
  // packages/cli/src/generated/git-commit.ts
20765
20716
  init_esbuild_shims();
20766
- var GIT_COMMIT_INFO = "fc883d958";
20717
+ var GIT_COMMIT_INFO = "2e8d05638";
20767
20718
 
20768
20719
  // packages/cli/src/utils/systemInfo.ts
20769
20720
  var debugLogger4 = createDebugLogger("STATUS");
@@ -20853,7 +20804,7 @@ async function getExtendedSystemInfo(context) {
20853
20804
  const baseInfo = await getSystemInfo(context);
20854
20805
  const memoryUsage = formatMemoryUsage(process4.memoryUsage().rss);
20855
20806
  const sandboxEnv = getSandboxEnv(true);
20856
- const contentGeneratorConfig = baseInfo.selectedAuthType === AuthType.USE_OPENAI || baseInfo.selectedAuthType === AuthType.USE_ANTHROPIC ? context.services.config?.getContentGeneratorConfig() : void 0;
20807
+ const contentGeneratorConfig = baseInfo.selectedAuthType === "openai" /* USE_OPENAI */ || baseInfo.selectedAuthType === "anthropic" /* USE_ANTHROPIC */ ? context.services.config?.getContentGeneratorConfig() : void 0;
20857
20808
  const baseUrl = contentGeneratorConfig?.baseUrl;
20858
20809
  const apiKeyEnvKey = contentGeneratorConfig?.apiKeyEnvKey;
20859
20810
  const gitCommit = GIT_COMMIT_INFO && !["N/A"].includes(GIT_COMMIT_INFO) ? GIT_COMMIT_INFO : void 0;
@@ -20918,8 +20869,6 @@ __name(formatLspStatusSnapshot, "formatLspStatusSnapshot");
20918
20869
  export {
20919
20870
  require_strip_json_comments,
20920
20871
  resolveColor,
20921
- subtleBandColor,
20922
- supportsTrueColor,
20923
20872
  lightTheme,
20924
20873
  darkTheme,
20925
20874
  ansiTheme,
@@ -2,13 +2,12 @@
2
2
  "use strict";
3
3
  import {
4
4
  RequestTokenizer
5
- } from "./chunk-JRVB4QUY.js";
5
+ } from "./chunk-KBXLIVWQ.js";
6
6
  import {
7
- AuthType,
8
7
  OpenAIContentConverter,
9
8
  TaggedThinkingParser,
10
9
  openaiRequestCaptureContext
11
- } from "./chunk-CICUTYTF.js";
10
+ } from "./chunk-HNYTRFAM.js";
12
11
  import {
13
12
  createChildAbortController
14
13
  } from "./chunk-64WXLC72.js";
@@ -23,7 +22,7 @@ import {
23
22
  parsePositiveIntegerEnvValue,
24
23
  redactProxyError,
25
24
  tokenLimit
26
- } from "./chunk-JDV3VBPY.js";
25
+ } from "./chunk-F6XNTYNE.js";
27
26
  import {
28
27
  runtimeDiagnostics,
29
28
  safeJsonParse
@@ -7097,7 +7096,7 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
7097
7096
  */
7098
7097
  static isDashScopeProvider(contentGeneratorConfig) {
7099
7098
  const { authType, baseUrl } = contentGeneratorConfig;
7100
- if (authType === AuthType.QWEN_OAUTH) return true;
7099
+ if (authType === "qwen-oauth" /* QWEN_OAUTH */) return true;
7101
7100
  if (!baseUrl) return true;
7102
7101
  const normalizedBaseUrl = baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl;
7103
7102
  let hostname = null;