@qwen-code/qwen-code 0.18.5-nightly.20260622.6bc3f853e → 0.19.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.
- package/bundled/qc-helper/docs/configuration/qwen-ignore.md +31 -15
- package/bundled/qc-helper/docs/configuration/settings.md +15 -14
- package/bundled/qc-helper/docs/extension/introduction.md +24 -6
- package/bundled/qc-helper/docs/features/mcp.md +9 -6
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/chunks/{agent-WFLPE5MW.js → agent-IPSDEZNB.js} +24 -22
- package/chunks/{agent-headless-Q27MG73I.js → agent-headless-ZMTUWMZJ.js} +24 -22
- package/chunks/{anthropicContentGenerator-5S4OMMNL.js → anthropicContentGenerator-6MCH4X6S.js} +12 -11
- package/chunks/artifact-tool-PBX64YTT.js +675 -0
- package/chunks/{askUserQuestion-WHVYL2S2.js → askUserQuestion-5ZQOWSRT.js} +20 -7
- package/chunks/chunk-22IFUCVR.js +291 -0
- package/chunks/{chunk-XGU3ETVO.js → chunk-255L5QYW.js} +3 -3
- package/chunks/{chunk-26ZYKTYZ.js → chunk-2BIF2NVV.js} +2 -2
- package/chunks/{chunk-LTN3VYMZ.js → chunk-3UALQ56H.js} +1 -1
- package/chunks/{chunk-2O3NAOJG.js → chunk-57XRIZVC.js} +1 -1
- package/chunks/{chunk-MSJ2MXJ6.js → chunk-BGUDAULQ.js} +11 -290
- package/chunks/{chunk-FH4P6RQA.js → chunk-BNXANYLH.js} +1 -1
- package/chunks/{chunk-WE6TNQJU.js → chunk-C4K3FEQ2.js} +36 -0
- package/chunks/{chunk-G4BUMVEY.js → chunk-CGEGHF2C.js} +2 -217
- package/chunks/{chunk-GM3LTU6K.js → chunk-CICUTYTF.js} +173 -5025
- package/chunks/chunk-EEEZIVFJ.js +908 -0
- package/chunks/chunk-EJYJYJZ2.js +3703 -0
- package/chunks/{chunk-ATLUHLZE.js → chunk-EW6C27XX.js} +1 -1
- package/chunks/{chunk-QBUR6J4B.js → chunk-GAAALA2X.js} +6 -6
- package/chunks/{chunk-C6MI2ASN.js → chunk-GZCJS5WH.js} +2 -2
- package/chunks/{chunk-KGV3F6UF.js → chunk-HGNSRCRB.js} +1 -1
- package/chunks/{chunk-42HGOMED.js → chunk-JDV3VBPY.js} +216 -1
- package/chunks/{chunk-CX3SGIPK.js → chunk-JRVB4QUY.js} +2 -2
- package/chunks/{chunk-7Z2O7IBO.js → chunk-KFR4QTV3.js} +557 -22
- package/chunks/{chunk-ID533GA3.js → chunk-OTBK43JR.js} +1 -1
- package/chunks/{chunk-GOMVJKBL.js → chunk-PLY4F7QW.js} +5 -3
- package/chunks/{chunk-VKILGMZQ.js → chunk-PO5LVPK3.js} +1 -1
- package/chunks/{chunk-AE6RQU6F.js → chunk-PRYMDRBV.js} +1 -1
- package/chunks/{chunk-GBN55AWZ.js → chunk-QKUAGMGE.js} +2 -2
- package/chunks/{chunk-KQIKOTQJ.js → chunk-RYLJU2DY.js} +60 -5
- package/chunks/{chunk-SWGPABMH.js → chunk-S7ILEIB4.js} +82 -84
- package/chunks/{chunk-CTHZVIMD.js → chunk-T2VDEFUU.js} +2 -2
- package/chunks/{chunk-LF6BKGZT.js → chunk-TXVGVZYR.js} +3 -3
- package/chunks/{chunk-EJ6NFQ2L.js → chunk-VRIVIYRL.js} +5 -5
- package/chunks/{chunk-XU7BKR3B.js → chunk-XU5P23GN.js} +3 -3
- package/chunks/{chunk-CXZV4Q4J.js → chunk-YF3ORUIU.js} +6362 -4888
- package/chunks/{computer-use-F5O56FVW.js → computer-use-YYK42DD5.js} +24 -22
- package/chunks/contextCommand-BO45MUAA.js +56 -0
- package/chunks/{cron-create-THNDTYXU.js → cron-create-DXKAP5KN.js} +4 -4
- package/chunks/{cron-delete-BS5H6TFJ.js → cron-delete-WGO4PZTF.js} +4 -4
- package/chunks/{cron-list-7OBVHT7K.js → cron-list-EY7D3ZUC.js} +4 -4
- package/chunks/{dist-GKRNVFBH.js → dist-ZBX7LPJZ.js} +2 -1
- package/chunks/{edit-UV7MBOJU.js → edit-QERNJN7K.js} +24 -22
- package/chunks/{en-S3OQBISC.js → en-UTXMGXIR.js} +47 -0
- package/chunks/{enter-worktree-TSCHZMJ3.js → enter-worktree-6ZKH5IL3.js} +24 -22
- package/chunks/{enterPlanMode-LKS7VIUG.js → enterPlanMode-B2PBF4MA.js} +27 -23
- package/chunks/{exit-worktree-Q6EWFLZU.js → exit-worktree-EOCMQO4I.js} +24 -22
- package/chunks/{exitPlanMode-HS6I4D2O.js → exitPlanMode-WSRXCBRZ.js} +36 -28
- package/chunks/{geminiContentGenerator-GEZ63VSW.js → geminiContentGenerator-NTR4LTKS.js} +4 -4
- package/chunks/{glob-ZN5LKB7E.js → glob-IWDJQI2V.js} +26 -23
- package/chunks/{grep-NIKBBYBU.js → grep-2DV5BXMH.js} +24 -22
- package/chunks/{keychain-token-storage-YHXIWXIB.js → keychain-token-storage-CSYMNRPP.js} +2 -2
- package/chunks/{loop-wakeup-SSBWZ64K.js → loop-wakeup-XVSDE7QR.js} +5 -5
- package/chunks/{ls-YPFUHZRQ.js → ls-LPY3ATQQ.js} +6 -6
- package/chunks/{lsp-FD6DNVAF.js → lsp-ZT3AAXIF.js} +2 -2
- package/chunks/{monitor-A25XKPU5.js → monitor-6HBDS2RS.js} +24 -22
- package/chunks/{notebook-edit-E72AIOUS.js → notebook-edit-J5AY5BRY.js} +25 -23
- package/chunks/{openaiContentGenerator-ZDLZDXLU.js → openaiContentGenerator-ENABCJDM.js} +12 -15
- package/chunks/{qwenContentGenerator-HVJPPMTT.js → qwenContentGenerator-ISW42U7C.js} +26 -24
- package/chunks/{qwenOAuth2-WZ54YZ4J.js → qwenOAuth2-K4AASPCV.js} +5 -4
- package/chunks/{read-file-L6FM3KUX.js → read-file-NRX2FSSQ.js} +9 -8
- package/chunks/{ripGrep-YRJCUISE.js → ripGrep-WF5CKHR5.js} +24 -22
- package/chunks/{scheduler-M3742P2I.js → scheduler-PNPG5WJ3.js} +73 -27
- package/chunks/{send-message-FWFTX62Q.js → send-message-447W6NH6.js} +24 -4
- package/chunks/{serve-ZIP2GDFY.js → serve-ZBRCIIHW.js} +430 -70
- package/chunks/{shell-T5VSPJLU.js → shell-DLIL6MLU.js} +24 -22
- package/chunks/{skill-ETTFYDOV.js → skill-32TXHY4A.js} +11 -10
- package/chunks/{src-UKOPSYDK.js → src-PDDLF5BB.js} +114 -67
- package/chunks/{syntheticOutput-JY5NEDTV.js → syntheticOutput-GQRDRLGR.js} +3 -3
- package/chunks/{task-create-IGILDV25.js → task-create-66DDSTVI.js} +6 -6
- package/chunks/{task-list-KBEJVAAG.js → task-list-GOPXRSHG.js} +5 -5
- package/chunks/{task-stop-WFTMQ6AC.js → task-stop-M7NKGFX2.js} +2 -2
- package/chunks/{task-update-UIVX7ZEV.js → task-update-M5TBHLZV.js} +6 -6
- package/chunks/{team-create-DRKUVGBN.js → team-create-EHLDSJGI.js} +28 -26
- package/chunks/{team-delete-LPOXDPVB.js → team-delete-DKKDS65W.js} +5 -5
- package/chunks/{todoWrite-R4RIJKOD.js → todoWrite-4VX7X44D.js} +4 -4
- package/chunks/{tool-search-EIIK27ON.js → tool-search-FU7IZAOO.js} +9 -8
- package/chunks/{web-fetch-JU7SS6KE.js → web-fetch-YPP3V4FJ.js} +4 -4
- package/chunks/{workflow-4RGAYFSJ.js → workflow-WUDNBCGX.js} +544 -92
- package/chunks/{write-file-GLQYJFEZ.js → write-file-NVFPX6CH.js} +24 -22
- package/chunks/{zh-TW-3OKU7LDA.js → zh-TW-J2TTW67R.js} +47 -0
- package/chunks/{zh-QXLZV2PX.js → zh-YOXVTJU5.js} +47 -0
- package/cli.js +7932 -4946
- package/locales/en.js +68 -0
- package/locales/zh-TW.js +65 -0
- package/locales/zh.js +65 -0
- package/package.json +3 -2
- package/web-shell/assets/{arc-CRFN10gD.js → arc-pxOt9B72.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-IRlu1CpH.js → architectureDiagram-3BPJPVTR-B9XuYYOT.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-htIZ6iw8.js → blockDiagram-GPEHLZMM-5yK68iu4.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-A2GoRq3O.js → c4Diagram-AAUBKEIU-B1LY-qNI.js} +1 -1
- package/web-shell/assets/channel-Cx7egbSX.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CdP2AC6u.js → chunk-2J33WTMH-DkgXg7cM.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DrA07nW2.js → chunk-4BX2VUAB-DdM45KFM.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-CFGnVU2f.js → chunk-55IACEB6-CmdsDjD4.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-BTMkq3Tk.js → chunk-727SXJPM-CQ4pJ5GH.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-C9sYg04Z.js → chunk-AQP2D5EJ-Dy6UWz37.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-Cag-cj6I.js → chunk-FMBD7UC4-CC8nFqap.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-CDSTFoR7.js → chunk-ND2GUHAM-CkmS7lx7.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-CN9Z6oOs.js → chunk-QZHKN3VN-DynyqleZ.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CwH_F8cH.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CwH_F8cH.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-DuN9j8Du.js → cose-bilkent-S5V4N54A-DA0fzCsY.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-ByCWe45f.js → dagre-BM42HDAG-DHYXRqCo.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-eWyU_pKZ.js → diagram-2AECGRRQ-DWD6BcPs.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-0Bfu3Fq5.js → diagram-5GNKFQAL-CX9wnqVc.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-B6KBKkQP.js → diagram-KO2AKTUF-BpE8Kbt8.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-TToDmeA_.js → diagram-LMA3HP47-DLPcrP0C.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-CQCkC2Yx.js → diagram-OG6HWLK6-CSUCBsCe.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-Cm9ls1iB.js → erDiagram-TEJ5UH35-d3Z0uMXS.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-Dyoz80Pv.js → flowDiagram-I6XJVG4X-C7vj5FX3.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-Cfut9yaU.js → ganttDiagram-6RSMTGT7-BV9UvDV_.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-BCuJdlfD.js → gitGraphDiagram-PVQCEYII-CoWp0mW4.js} +1 -1
- package/web-shell/assets/index-CjTH6cLP.js +516 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CXKxF2VL.js → infoDiagram-5YYISTIA-DUswfJHA.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DE7HWSU8.js → ishikawaDiagram-YF4QCWOH-WidEKukx.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-D__YUfds.js → journeyDiagram-JHISSGLW-D7IRK3VN.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-D82R169M.js → kanban-definition-UN3LZRKU-CwFJ6Cja.js} +1 -1
- package/web-shell/assets/{linear-DpyMbKqT.js → linear-BQ8GvDRY.js} +1 -1
- package/web-shell/assets/{mermaid.core-D1KEFDhn.js → mermaid.core-CwF8A_xO.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BwVUFGFE.js → mindmap-definition-RKZ34NQL-TR1s0iZi.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-BO_qoEGx.js → pieDiagram-4H26LBE5-Cd91pMl9.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-Cx0ZaWPo.js → quadrantDiagram-W4KKPZXB-BGxGDNMl.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-BJPXejOA.js → requirementDiagram-4Y6WPE33-Cq3fWmYz.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-C1xeIL9i.js → sankeyDiagram-5OEKKPKP-ChLyGdq0.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-CSYKQUjf.js → sequenceDiagram-3UESZ5HK-tazy79aB.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-d9hiHlAW.js → stateDiagram-AJRCARHV-dIYLUNSf.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-luL7KTiX.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-BhCBkq8k.js → timeline-definition-PNZ67QCA-BuENhrC2.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DPPFWp_y.js → vennDiagram-CIIHVFJN-DLtum9dF.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-CcOUIgXY.js → wardley-L42UT6IY-Bf7OSF3y.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-p7oR5X7r.js → wardleyDiagram-YWT4CUSO-slMw3OB3.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-Dfr7-SEy.js → xychartDiagram-2RQKCTM6-CdxOm8oC.js} +1 -1
- package/web-shell/index.html +1 -1
- package/chunks/chunk-77WXWU44.js +0 -26
- package/chunks/contextCommand-WBVNKL2C.js +0 -54
- package/web-shell/assets/channel-WwImfsc7.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CJKQYFeJ.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CJKQYFeJ.js +0 -1
- package/web-shell/assets/index-DaebdpHq.js +0 -516
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DgReoybQ.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createDebugLogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
6
6
|
import {
|
|
7
7
|
init_esbuild_shims
|
|
8
8
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -15458,7 +15458,8 @@ var ToolNames = {
|
|
|
15458
15458
|
// subset here only goes stale on every cua-driver version bump — review
|
|
15459
15459
|
// round 1 removed the old ocu-era 9-name list, which still carried
|
|
15460
15460
|
// `get_app_state` / `perform_secondary_action` that no longer exist.
|
|
15461
|
-
WORKFLOW: "workflow"
|
|
15461
|
+
WORKFLOW: "workflow",
|
|
15462
|
+
ARTIFACT: "artifact"
|
|
15462
15463
|
};
|
|
15463
15464
|
var ToolDisplayNames = {
|
|
15464
15465
|
EDIT: "Edit",
|
|
@@ -15495,7 +15496,8 @@ var ToolDisplayNames = {
|
|
|
15495
15496
|
ENTER_WORKTREE: "EnterWorktree",
|
|
15496
15497
|
EXIT_WORKTREE: "ExitWorktree",
|
|
15497
15498
|
// computer_use__* display names are not enumerated here (see ToolNames).
|
|
15498
|
-
WORKFLOW: "Workflow"
|
|
15499
|
+
WORKFLOW: "Workflow",
|
|
15500
|
+
ARTIFACT: "Artifact"
|
|
15499
15501
|
};
|
|
15500
15502
|
var ToolNamesMigration = {
|
|
15501
15503
|
search_file_content: ToolNames.GREP,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createTask
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XU5P23GN.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveActiveTeamName
|
|
8
8
|
} from "./chunk-LD2XBG6Z.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
BaseToolInvocation,
|
|
12
12
|
ToolDisplayNames,
|
|
13
13
|
ToolNames
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PLY4F7QW.js";
|
|
15
15
|
import {
|
|
16
16
|
init_esbuild_shims
|
|
17
17
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
require_lib
|
|
5
|
+
} from "./chunk-EJYJYJZ2.js";
|
|
3
6
|
import {
|
|
4
7
|
init_esbuild_shims
|
|
5
8
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -10,7 +13,7 @@ import {
|
|
|
10
13
|
} from "./chunk-J2S4EL5Y.js";
|
|
11
14
|
|
|
12
15
|
// node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js
|
|
13
|
-
var
|
|
16
|
+
var require_lib2 = __commonJS({
|
|
14
17
|
"node_modules/node-fetch/node_modules/webidl-conversions/lib/index.js"(exports, module) {
|
|
15
18
|
"use strict";
|
|
16
19
|
init_esbuild_shims();
|
|
@@ -1887,7 +1890,7 @@ var require_URL = __commonJS({
|
|
|
1887
1890
|
"node_modules/node-fetch/node_modules/whatwg-url/lib/URL.js"(exports, module) {
|
|
1888
1891
|
"use strict";
|
|
1889
1892
|
init_esbuild_shims();
|
|
1890
|
-
var conversions =
|
|
1893
|
+
var conversions = require_lib2();
|
|
1891
1894
|
var utils = require_utils();
|
|
1892
1895
|
var Impl = require_URL_impl();
|
|
1893
1896
|
var impl = utils.implSymbol;
|
|
@@ -2083,8 +2086,60 @@ var require_public_api = __commonJS({
|
|
|
2083
2086
|
}
|
|
2084
2087
|
});
|
|
2085
2088
|
|
|
2089
|
+
// node_modules/encoding/lib/encoding.js
|
|
2090
|
+
var require_encoding = __commonJS({
|
|
2091
|
+
"node_modules/encoding/lib/encoding.js"(exports, module) {
|
|
2092
|
+
"use strict";
|
|
2093
|
+
init_esbuild_shims();
|
|
2094
|
+
var iconvLite = require_lib();
|
|
2095
|
+
module.exports.convert = convert;
|
|
2096
|
+
function convert(str, to, from) {
|
|
2097
|
+
from = checkEncoding(from || "UTF-8");
|
|
2098
|
+
to = checkEncoding(to || "UTF-8");
|
|
2099
|
+
str = str || "";
|
|
2100
|
+
var result;
|
|
2101
|
+
if (from !== "UTF-8" && typeof str === "string") {
|
|
2102
|
+
str = Buffer.from(str, "binary");
|
|
2103
|
+
}
|
|
2104
|
+
if (from === to) {
|
|
2105
|
+
if (typeof str === "string") {
|
|
2106
|
+
result = Buffer.from(str);
|
|
2107
|
+
} else {
|
|
2108
|
+
result = str;
|
|
2109
|
+
}
|
|
2110
|
+
} else {
|
|
2111
|
+
try {
|
|
2112
|
+
result = convertIconvLite(str, to, from);
|
|
2113
|
+
} catch (E) {
|
|
2114
|
+
console.error(E);
|
|
2115
|
+
result = str;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
if (typeof result === "string") {
|
|
2119
|
+
result = Buffer.from(result, "utf-8");
|
|
2120
|
+
}
|
|
2121
|
+
return result;
|
|
2122
|
+
}
|
|
2123
|
+
__name(convert, "convert");
|
|
2124
|
+
function convertIconvLite(str, to, from) {
|
|
2125
|
+
if (to === "UTF-8") {
|
|
2126
|
+
return iconvLite.decode(str, from);
|
|
2127
|
+
} else if (from === "UTF-8") {
|
|
2128
|
+
return iconvLite.encode(str, to);
|
|
2129
|
+
} else {
|
|
2130
|
+
return iconvLite.encode(iconvLite.decode(str, from), to);
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
__name(convertIconvLite, "convertIconvLite");
|
|
2134
|
+
function checkEncoding(name) {
|
|
2135
|
+
return (name || "").toString().trim().replace(/^latin[\-_]?(\d+)$/i, "ISO-8859-$1").replace(/^win(?:dows)?[\-_]?(\d+)$/i, "WINDOWS-$1").replace(/^utf[\-_]?(\d+)$/i, "UTF-$1").replace(/^ks_c_5601\-1987$/i, "CP949").replace(/^us[\-_]?ascii$/i, "ASCII").toUpperCase();
|
|
2136
|
+
}
|
|
2137
|
+
__name(checkEncoding, "checkEncoding");
|
|
2138
|
+
}
|
|
2139
|
+
});
|
|
2140
|
+
|
|
2086
2141
|
// node_modules/node-fetch/lib/index.js
|
|
2087
|
-
var
|
|
2142
|
+
var require_lib3 = __commonJS({
|
|
2088
2143
|
"node_modules/node-fetch/lib/index.js"(exports, module) {
|
|
2089
2144
|
"use strict";
|
|
2090
2145
|
init_esbuild_shims();
|
|
@@ -2217,7 +2272,7 @@ var require_lib2 = __commonJS({
|
|
|
2217
2272
|
FetchError.prototype.name = "FetchError";
|
|
2218
2273
|
var convert;
|
|
2219
2274
|
try {
|
|
2220
|
-
convert =
|
|
2275
|
+
convert = require_encoding().convert;
|
|
2221
2276
|
} catch (e) {
|
|
2222
2277
|
}
|
|
2223
2278
|
var INTERNALS = Symbol("Body internals");
|
|
@@ -4062,6 +4117,6 @@ var require_abort_controller = __commonJS({
|
|
|
4062
4117
|
});
|
|
4063
4118
|
|
|
4064
4119
|
export {
|
|
4065
|
-
|
|
4120
|
+
require_lib3 as require_lib,
|
|
4066
4121
|
require_abort_controller
|
|
4067
4122
|
};
|
|
@@ -2,38 +2,39 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
RequestTokenizer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JRVB4QUY.js";
|
|
6
6
|
import {
|
|
7
|
+
AuthType,
|
|
7
8
|
OpenAIContentConverter,
|
|
8
9
|
TaggedThinkingParser,
|
|
9
10
|
openaiRequestCaptureContext
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CICUTYTF.js";
|
|
11
12
|
import {
|
|
12
13
|
createChildAbortController
|
|
13
14
|
} from "./chunk-64WXLC72.js";
|
|
14
|
-
import {
|
|
15
|
-
buildRuntimeFetchOptions,
|
|
16
|
-
redactProxyError
|
|
17
|
-
} from "./chunk-42HGOMED.js";
|
|
18
15
|
import {
|
|
19
16
|
CAPPED_DEFAULT_MAX_TOKENS,
|
|
20
17
|
DASHSCOPE_PROXY_BASE_URL,
|
|
21
18
|
DEFAULT_DASHSCOPE_BASE_URL,
|
|
22
19
|
DEFAULT_MAX_RETRIES,
|
|
23
20
|
DEFAULT_TIMEOUT,
|
|
21
|
+
buildRuntimeFetchOptions,
|
|
24
22
|
hasExplicitOutputLimit,
|
|
25
23
|
parsePositiveIntegerEnvValue,
|
|
26
|
-
|
|
27
|
-
safeJsonParse,
|
|
24
|
+
redactProxyError,
|
|
28
25
|
tokenLimit
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JDV3VBPY.js";
|
|
27
|
+
import {
|
|
28
|
+
runtimeDiagnostics,
|
|
29
|
+
safeJsonParse
|
|
30
|
+
} from "./chunk-CGEGHF2C.js";
|
|
30
31
|
import {
|
|
31
32
|
GenerateContentResponse
|
|
32
33
|
} from "./chunk-55ZMG67I.js";
|
|
33
34
|
import {
|
|
34
35
|
createDebugLogger,
|
|
35
36
|
isAbortError
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
37
38
|
import {
|
|
38
39
|
init_esbuild_shims
|
|
39
40
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -7096,7 +7097,7 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7096
7097
|
*/
|
|
7097
7098
|
static isDashScopeProvider(contentGeneratorConfig) {
|
|
7098
7099
|
const { authType, baseUrl } = contentGeneratorConfig;
|
|
7099
|
-
if (authType ===
|
|
7100
|
+
if (authType === AuthType.QWEN_OAUTH) return true;
|
|
7100
7101
|
if (!baseUrl) return true;
|
|
7101
7102
|
const normalizedBaseUrl = baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl;
|
|
7102
7103
|
let hostname = null;
|
|
@@ -7174,7 +7175,10 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7174
7175
|
buildRequest(request, userPromptId) {
|
|
7175
7176
|
let messages = request.messages;
|
|
7176
7177
|
let tools = request.tools;
|
|
7177
|
-
|
|
7178
|
+
const flattenPlainTextForGlm = this.isGlmModel(request.model) && !this.hasFunctionCallingContext(request);
|
|
7179
|
+
if (flattenPlainTextForGlm) {
|
|
7180
|
+
messages = this.flattenTextContent(messages);
|
|
7181
|
+
} else if (this.shouldEnableCacheControl()) {
|
|
7178
7182
|
const { messages: updatedMessages, tools: updatedTools } = this.addDashScopeCacheControl(
|
|
7179
7183
|
request,
|
|
7180
7184
|
request.stream ? "all" : "system_only"
|
|
@@ -7192,6 +7196,12 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7192
7196
|
...this.buildMetadata(userPromptId) || {},
|
|
7193
7197
|
/* @ts-expect-error dashscope exclusive */
|
|
7194
7198
|
vl_high_resolution_images: true,
|
|
7199
|
+
// Default-on for supported reasoning models; user extra_body wins.
|
|
7200
|
+
// Several vision models (e.g. qwen3.6-plus, qwen3.7-plus) are reasoning
|
|
7201
|
+
// models that need this flag for multi-turn reasoning continuity.
|
|
7202
|
+
// (No @ts-expect-error needed: TS flags only the first excess property
|
|
7203
|
+
// in this cast, already suppressed on vl_high_resolution_images above.)
|
|
7204
|
+
preserve_thinking: true,
|
|
7195
7205
|
...extraBody ? extraBody : {}
|
|
7196
7206
|
};
|
|
7197
7207
|
}
|
|
@@ -7201,6 +7211,9 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7201
7211
|
messages,
|
|
7202
7212
|
...tools ? { tools } : {},
|
|
7203
7213
|
...this.buildMetadata(userPromptId) || {},
|
|
7214
|
+
// Default-on for supported reasoning models; user extra_body wins.
|
|
7215
|
+
/* @ts-expect-error dashscope exclusive */
|
|
7216
|
+
preserve_thinking: true,
|
|
7204
7217
|
...extraBody ? extraBody : {}
|
|
7205
7218
|
};
|
|
7206
7219
|
}
|
|
@@ -7289,6 +7302,63 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7289
7302
|
};
|
|
7290
7303
|
return contentArray;
|
|
7291
7304
|
}
|
|
7305
|
+
/**
|
|
7306
|
+
* True for glm-* models (e.g. glm-4.5, glm-5.2). Uses the same `^glm-` prefix
|
|
7307
|
+
* convention as the GLM matchers in tokenLimits.ts, keeping model detection
|
|
7308
|
+
* consistent across the codebase.
|
|
7309
|
+
*/
|
|
7310
|
+
isGlmModel(model) {
|
|
7311
|
+
return !!model && model.toLowerCase().startsWith("glm-");
|
|
7312
|
+
}
|
|
7313
|
+
/**
|
|
7314
|
+
* Whether the request is in "function-calling mode" — it declares `tools`, or
|
|
7315
|
+
* its history already contains a tool result / assistant tool_call. glm needs
|
|
7316
|
+
* one of these present to parse structured content-part arrays.
|
|
7317
|
+
*/
|
|
7318
|
+
hasFunctionCallingContext(request) {
|
|
7319
|
+
if (request.tools && request.tools.length > 0) {
|
|
7320
|
+
return true;
|
|
7321
|
+
}
|
|
7322
|
+
return request.messages.some((message) => {
|
|
7323
|
+
if (message.role === "tool") {
|
|
7324
|
+
return true;
|
|
7325
|
+
}
|
|
7326
|
+
if (message.role === "assistant") {
|
|
7327
|
+
const toolCalls = message.tool_calls;
|
|
7328
|
+
return Array.isArray(toolCalls) && toolCalls.length > 0;
|
|
7329
|
+
}
|
|
7330
|
+
return false;
|
|
7331
|
+
});
|
|
7332
|
+
}
|
|
7333
|
+
/**
|
|
7334
|
+
* Collapse text-only content arrays back to a plain string, leaving
|
|
7335
|
+
* media-bearing parts (image/audio/...) as arrays. Used for glm tool-less
|
|
7336
|
+
* requests, where the array form would otherwise be dropped server-side.
|
|
7337
|
+
* Multiple text parts are joined with a blank line, matching the DeepSeek
|
|
7338
|
+
* provider's flattening (separate parts read as separate blocks).
|
|
7339
|
+
* Only called on the flatten branch, which skips cache control, so no part
|
|
7340
|
+
* here carries a `cache_control` marker.
|
|
7341
|
+
*/
|
|
7342
|
+
flattenTextContent(messages) {
|
|
7343
|
+
return messages.map((message) => {
|
|
7344
|
+
if (!("content" in message) || !Array.isArray(message.content)) {
|
|
7345
|
+
return message;
|
|
7346
|
+
}
|
|
7347
|
+
const parts = message.content;
|
|
7348
|
+
if (parts.length === 0) {
|
|
7349
|
+
return message;
|
|
7350
|
+
}
|
|
7351
|
+
const isTextOnly = parts.every((part) => part && part.type === "text");
|
|
7352
|
+
if (!isTextOnly) {
|
|
7353
|
+
return message;
|
|
7354
|
+
}
|
|
7355
|
+
const text = parts.map((part) => part.text ?? "").join("\n\n");
|
|
7356
|
+
return {
|
|
7357
|
+
...message,
|
|
7358
|
+
content: text
|
|
7359
|
+
};
|
|
7360
|
+
});
|
|
7361
|
+
}
|
|
7292
7362
|
/**
|
|
7293
7363
|
* Vision-capable model patterns.
|
|
7294
7364
|
* Supports exact matches and prefix patterns for easy extension.
|
|
@@ -7468,64 +7538,6 @@ function translateReasoningEffort(request) {
|
|
|
7468
7538
|
}
|
|
7469
7539
|
__name(translateReasoningEffort, "translateReasoningEffort");
|
|
7470
7540
|
|
|
7471
|
-
// packages/core/src/core/openaiContentGenerator/provider/openrouter.ts
|
|
7472
|
-
init_esbuild_shims();
|
|
7473
|
-
var OpenRouterOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvider {
|
|
7474
|
-
static {
|
|
7475
|
-
__name(this, "OpenRouterOpenAICompatibleProvider");
|
|
7476
|
-
}
|
|
7477
|
-
constructor(contentGeneratorConfig, cliConfig) {
|
|
7478
|
-
super(contentGeneratorConfig, cliConfig);
|
|
7479
|
-
}
|
|
7480
|
-
static isOpenRouterProvider(contentGeneratorConfig) {
|
|
7481
|
-
const baseURL = contentGeneratorConfig.baseUrl ?? "";
|
|
7482
|
-
if (!baseURL) return false;
|
|
7483
|
-
try {
|
|
7484
|
-
const hostname = new URL(baseURL).hostname.toLowerCase();
|
|
7485
|
-
return hostname === "openrouter.ai" || hostname.endsWith(".openrouter.ai");
|
|
7486
|
-
} catch {
|
|
7487
|
-
return false;
|
|
7488
|
-
}
|
|
7489
|
-
}
|
|
7490
|
-
buildHeaders() {
|
|
7491
|
-
const baseHeaders = super.buildHeaders();
|
|
7492
|
-
return {
|
|
7493
|
-
...baseHeaders,
|
|
7494
|
-
"HTTP-Referer": "https://github.com/QwenLM/qwen-code.git",
|
|
7495
|
-
"X-OpenRouter-Title": "Qwen Code"
|
|
7496
|
-
};
|
|
7497
|
-
}
|
|
7498
|
-
};
|
|
7499
|
-
|
|
7500
|
-
// packages/core/src/core/openaiContentGenerator/provider/requesty.ts
|
|
7501
|
-
init_esbuild_shims();
|
|
7502
|
-
var RequestyOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvider {
|
|
7503
|
-
static {
|
|
7504
|
-
__name(this, "RequestyOpenAICompatibleProvider");
|
|
7505
|
-
}
|
|
7506
|
-
constructor(contentGeneratorConfig, cliConfig) {
|
|
7507
|
-
super(contentGeneratorConfig, cliConfig);
|
|
7508
|
-
}
|
|
7509
|
-
static isRequestyProvider(contentGeneratorConfig) {
|
|
7510
|
-
const baseURL = contentGeneratorConfig.baseUrl || "";
|
|
7511
|
-
if (!baseURL) return false;
|
|
7512
|
-
try {
|
|
7513
|
-
const host = new URL(baseURL).hostname.toLowerCase();
|
|
7514
|
-
return host === "router.requesty.ai" || host.endsWith(".requesty.ai");
|
|
7515
|
-
} catch {
|
|
7516
|
-
return false;
|
|
7517
|
-
}
|
|
7518
|
-
}
|
|
7519
|
-
buildHeaders() {
|
|
7520
|
-
const baseHeaders = super.buildHeaders();
|
|
7521
|
-
return {
|
|
7522
|
-
...baseHeaders,
|
|
7523
|
-
"HTTP-Referer": "https://github.com/QwenLM/qwen-code.git",
|
|
7524
|
-
"X-Title": "Qwen Code"
|
|
7525
|
-
};
|
|
7526
|
-
}
|
|
7527
|
-
};
|
|
7528
|
-
|
|
7529
7541
|
// packages/core/src/core/openaiContentGenerator/provider/minimax.ts
|
|
7530
7542
|
init_esbuild_shims();
|
|
7531
7543
|
var MINIMAX_KNOWN_HOSTS = ["api.minimaxi.com", "api.minimax.io"];
|
|
@@ -8518,18 +8530,6 @@ function determineProvider(contentGeneratorConfig, cliConfig) {
|
|
|
8518
8530
|
if (MiMoOpenAICompatibleProvider.isMiMoProvider(config)) {
|
|
8519
8531
|
return new MiMoOpenAICompatibleProvider(contentGeneratorConfig, cliConfig);
|
|
8520
8532
|
}
|
|
8521
|
-
if (OpenRouterOpenAICompatibleProvider.isOpenRouterProvider(config)) {
|
|
8522
|
-
return new OpenRouterOpenAICompatibleProvider(
|
|
8523
|
-
contentGeneratorConfig,
|
|
8524
|
-
cliConfig
|
|
8525
|
-
);
|
|
8526
|
-
}
|
|
8527
|
-
if (RequestyOpenAICompatibleProvider.isRequestyProvider(config)) {
|
|
8528
|
-
return new RequestyOpenAICompatibleProvider(
|
|
8529
|
-
contentGeneratorConfig,
|
|
8530
|
-
cliConfig
|
|
8531
|
-
);
|
|
8532
|
-
}
|
|
8533
8533
|
if (ModelScopeOpenAICompatibleProvider.isModelScopeProvider(config)) {
|
|
8534
8534
|
return new ModelScopeOpenAICompatibleProvider(
|
|
8535
8535
|
contentGeneratorConfig,
|
|
@@ -8555,8 +8555,6 @@ __name(determineProvider, "determineProvider");
|
|
|
8555
8555
|
export {
|
|
8556
8556
|
DashScopeOpenAICompatibleProvider,
|
|
8557
8557
|
DeepSeekOpenAICompatibleProvider,
|
|
8558
|
-
OpenRouterOpenAICompatibleProvider,
|
|
8559
|
-
RequestyOpenAICompatibleProvider,
|
|
8560
8558
|
MiniMaxOpenAICompatibleProvider,
|
|
8561
8559
|
MistralOpenAICompatibleProvider,
|
|
8562
8560
|
MiMoOpenAICompatibleProvider,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
atomicWriteFileSync
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3UALQ56H.js";
|
|
6
6
|
import {
|
|
7
7
|
Storage,
|
|
8
8
|
createDebugLogger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
10
10
|
import {
|
|
11
11
|
init_esbuild_shims
|
|
12
12
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getInboxesDir,
|
|
5
5
|
require_proper_lockfile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BIF2NVV.js";
|
|
7
7
|
import {
|
|
8
8
|
Mutex
|
|
9
9
|
} from "./chunk-OMX7CUOE.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteJSON
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3UALQ56H.js";
|
|
13
13
|
import {
|
|
14
14
|
createDebugLogger,
|
|
15
15
|
isNodeError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
resolveBundleDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YF3ORUIU.js";
|
|
6
6
|
import {
|
|
7
7
|
Storage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
9
9
|
import {
|
|
10
10
|
init_esbuild_shims
|
|
11
11
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -171,13 +171,13 @@ init_esbuild_shims();
|
|
|
171
171
|
var globImport_locales_js = __glob({
|
|
172
172
|
"./locales/ca.js": () => import("./ca-7WC7ELX6.js"),
|
|
173
173
|
"./locales/de.js": () => import("./de-ACHALDED.js"),
|
|
174
|
-
"./locales/en.js": () => import("./en-
|
|
174
|
+
"./locales/en.js": () => import("./en-UTXMGXIR.js"),
|
|
175
175
|
"./locales/fr.js": () => import("./fr-GVKZ27MF.js"),
|
|
176
176
|
"./locales/ja.js": () => import("./ja-FKZ2WZ4D.js"),
|
|
177
177
|
"./locales/pt.js": () => import("./pt-SY5NCFGR.js"),
|
|
178
178
|
"./locales/ru.js": () => import("./ru-FWNXJG4F.js"),
|
|
179
|
-
"./locales/zh-TW.js": () => import("./zh-TW-
|
|
180
|
-
"./locales/zh.js": () => import("./zh-
|
|
179
|
+
"./locales/zh-TW.js": () => import("./zh-TW-J2TTW67R.js"),
|
|
180
|
+
"./locales/zh.js": () => import("./zh-YOXVTJU5.js")
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
// packages/cli/src/i18n/index.ts
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getTasksDir,
|
|
5
5
|
require_proper_lockfile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BIF2NVV.js";
|
|
7
7
|
import {
|
|
8
8
|
Mutex
|
|
9
9
|
} from "./chunk-OMX7CUOE.js";
|
|
10
10
|
import {
|
|
11
11
|
atomicWriteJSON
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3UALQ56H.js";
|
|
13
13
|
import {
|
|
14
14
|
createDebugLogger,
|
|
15
15
|
isNodeError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C4K3FEQ2.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-A4BMJM77.js";
|