@qwen-code/qwen-code 0.15.12-preview.2 → 0.16.0-preview.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/settings.md +30 -34
- package/bundled/qc-helper/docs/features/lsp.md +87 -10
- package/bundled/qc-helper/docs/qwen-serve.md +74 -24
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +11 -11
- package/bundled/stuck/SKILL.md +124 -0
- package/chunks/{agent-UQY6A6OS.js → agent-ZNQPH67I.js} +15 -15
- package/chunks/{anthropicContentGenerator-4QE6LTVV.js → anthropicContentGenerator-ICBDZ6R2.js} +4 -4
- package/chunks/{askUserQuestion-QFSCBTUO.js → askUserQuestion-WQILGUSQ.js} +2 -2
- package/chunks/{ca-VQSV6JHA.js → ca-S3XJMT6P.js} +26 -0
- package/chunks/{chunk-SQNQIOD5.js → chunk-2B7UBDY5.js} +2 -2
- package/chunks/chunk-3MBY4GKN.js +350 -0
- package/chunks/{chunk-FSYKVGER.js → chunk-7QXHXMC6.js} +23 -7
- package/chunks/{chunk-PCL3EJGY.js → chunk-C3LHPHN2.js} +3924 -3683
- package/chunks/{chunk-UXW7MYAW.js → chunk-CW44BRRA.js} +1 -1
- package/chunks/{chunk-G27O2LD2.js → chunk-D5NTAHYL.js} +1 -1
- package/chunks/{chunk-CBVB66WY.js → chunk-EDYSNFEM.js} +1 -1
- package/chunks/{chunk-OCC4MZRS.js → chunk-F23NCRJ2.js} +1 -1
- package/chunks/{chunk-FYMSCRHM.js → chunk-FZIUV27X.js} +1 -1
- package/chunks/{chunk-SOIEFHIK.js → chunk-G7YTSRES.js} +1 -100
- package/chunks/{chunk-MXBWOU2L.js → chunk-JHMX4QTD.js} +15 -15
- package/chunks/{chunk-TPGOGCWM.js → chunk-JYQUJ5DS.js} +1 -1
- package/chunks/{chunk-FKVKVE6N.js → chunk-KXZ4TJB4.js} +1 -1
- package/chunks/{chunk-2WFU3IUH.js → chunk-MNPZ2WO6.js} +4864 -2303
- package/chunks/{chunk-BXNCPI75.js → chunk-NAID3ZWF.js} +2 -2
- package/chunks/{chunk-JMZQICAL.js → chunk-PPHYLJSS.js} +1 -1
- package/chunks/{chunk-CM2IESUE.js → chunk-PR4T27R7.js} +1 -1
- package/chunks/{chunk-CAWKL3UC.js → chunk-VTPOO6GV.js} +1 -1
- package/chunks/{chunk-GJXIKCKL.js → chunk-XP27SJMH.js} +76 -5
- package/chunks/{chunk-B7ZL7HUA.js → chunk-XVHR7ATJ.js} +1 -1
- package/chunks/{contextCommand-MQRG6RMG.js → contextCommand-IGBCEXI4.js} +16 -16
- package/chunks/{cron-create-WUTD5ZTH.js → cron-create-AVI3Q267.js} +2 -2
- package/chunks/{cron-delete-N3UQYCRA.js → cron-delete-ZCEGDXXV.js} +2 -2
- package/chunks/{cron-list-Z6RJJ4YH.js → cron-list-VN653OK5.js} +2 -2
- package/chunks/{de-M2IPQRBS.js → de-MNR4SMAI.js} +26 -0
- package/chunks/{edit-3KCBTA25.js → edit-74Q4AFHQ.js} +20 -16
- package/chunks/{en-N5GMPCVT.js → en-FIUWJSZR.js} +28 -0
- package/chunks/{enter-worktree-VWS5QZTU.js → enter-worktree-H72HXC7D.js} +15 -15
- package/chunks/{exit-worktree-RVXFWAPD.js → exit-worktree-FGIQO3S3.js} +15 -15
- package/chunks/{exitPlanMode-UL5DILDG.js → exitPlanMode-NBR2PK2D.js} +15 -15
- package/chunks/{fr-BTHRYEXO.js → fr-OFJFHLCR.js} +26 -0
- package/chunks/{geminiContentGenerator-O2OPGHJG.js → geminiContentGenerator-33RP4WKD.js} +3 -3
- package/chunks/{glob-57BSREPN.js → glob-WEE3CJL6.js} +15 -15
- package/chunks/{grep-XO5JOC7T.js → grep-DZKSBFZK.js} +15 -15
- package/chunks/{ja-D63TAEBO.js → ja-V6OQ6VL7.js} +26 -0
- package/chunks/{keychain-token-storage-DMFP5IJM.js → keychain-token-storage-335UOLJ6.js} +2 -2
- package/chunks/{ls-SUILOZZB.js → ls-6F3VSP6S.js} +3 -3
- package/chunks/{lsp-6TQBWVMZ.js → lsp-67Y7DJN5.js} +2 -2
- package/chunks/{monitor-BECPGO3K.js → monitor-EDZWEZVS.js} +33 -24
- package/chunks/{openaiContentGenerator-KEZQHIRM.js → openaiContentGenerator-5NQG3W64.js} +10 -10
- package/chunks/{pt-XUV7FSKC.js → pt-ZLE6SA4A.js} +26 -0
- package/chunks/{qwenContentGenerator-RPMRXTNH.js → qwenContentGenerator-4DPUUS6R.js} +17 -17
- package/chunks/{qwenOAuth2-JSQ7EPR3.js → qwenOAuth2-JE7H47TE.js} +3 -3
- package/chunks/{read-file-LGHEIQNH.js → read-file-CQOF7BQ2.js} +7 -7
- package/chunks/{ripGrep-6SFSXZ2G.js → ripGrep-KR5LKGTI.js} +15 -15
- package/chunks/{ru-7KHWMN3A.js → ru-A4OHIUNN.js} +26 -0
- package/chunks/{send-message-Q2JRAC3J.js → send-message-GB4AQZNC.js} +2 -2
- package/chunks/{serve-27O2AFE3.js → serve-GAD2PEST.js} +1299 -408
- package/chunks/{shell-J7K5KYCH.js → shell-E2HMCBGR.js} +15 -15
- package/chunks/{skill-2R7P4ATS.js → skill-KDZH6UZ6.js} +9 -9
- package/chunks/{src-CGEDVW67.js → src-LY4RU5AI.js} +96 -24
- package/chunks/{syntheticOutput-S4DRGMQM.js → syntheticOutput-HFL3DE7R.js} +3 -3
- package/chunks/{task-stop-7THHVAQS.js → task-stop-ZQF26RXS.js} +2 -2
- package/chunks/{todoWrite-WKUGUTPX.js → todoWrite-U4SC643O.js} +3 -3
- package/chunks/{tool-search-XOH3ZWVS.js → tool-search-U4XQVLFU.js} +7 -7
- package/chunks/{web-fetch-OZE6ZQUF.js → web-fetch-BRWZ4WSE.js} +4 -4
- package/chunks/{write-file-74NQ27Q2.js → write-file-NBLRMNGB.js} +20 -16
- package/chunks/{zh-TW-O36Q4V7E.js → zh-TW-552S24LR.js} +28 -0
- package/chunks/{zh-VGHU6XBB.js → zh-V32QONGV.js} +28 -0
- package/cli.js +8027 -5104
- package/locales/ca.js +40 -0
- package/locales/de.js +40 -0
- package/locales/en.js +43 -0
- package/locales/fr.js +41 -0
- package/locales/ja.js +39 -0
- package/locales/pt.js +39 -0
- package/locales/ru.js +39 -0
- package/locales/zh-TW.js +41 -0
- package/locales/zh.js +41 -0
- package/package.json +2 -2
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
RequestTokenizer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NAID3ZWF.js";
|
|
6
6
|
import {
|
|
7
7
|
buildRuntimeFetchOptions,
|
|
8
8
|
redactProxyError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VTPOO6GV.js";
|
|
10
10
|
import {
|
|
11
11
|
OpenAIContentConverter,
|
|
12
12
|
TaggedThinkingParser,
|
|
13
13
|
openaiRequestCaptureContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-C3LHPHN2.js";
|
|
15
15
|
import {
|
|
16
16
|
CAPPED_DEFAULT_MAX_TOKENS,
|
|
17
17
|
DASHSCOPE_PROXY_BASE_URL,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
hasExplicitOutputLimit,
|
|
22
22
|
safeJsonParse,
|
|
23
23
|
tokenLimit
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CW44BRRA.js";
|
|
25
25
|
import {
|
|
26
26
|
GenerateContentResponse
|
|
27
27
|
} from "./chunk-T4VD6OJ4.js";
|
|
28
28
|
import {
|
|
29
29
|
createDebugLogger,
|
|
30
30
|
isAbortError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XP27SJMH.js";
|
|
32
32
|
import {
|
|
33
33
|
init_esbuild_shims
|
|
34
34
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -7050,6 +7050,16 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7050
7050
|
constructor(contentGeneratorConfig, cliConfig) {
|
|
7051
7051
|
super(contentGeneratorConfig, cliConfig);
|
|
7052
7052
|
}
|
|
7053
|
+
/**
|
|
7054
|
+
* Determines whether to use the DashScope-compatible provider.
|
|
7055
|
+
* Covers dashscope.aliyuncs.com, dashscope-intl.aliyuncs.com,
|
|
7056
|
+
* internal Alibaba domains (*.alibaba-inc.com, *.aliyun-inc.com),
|
|
7057
|
+
* and proxy matches.
|
|
7058
|
+
*
|
|
7059
|
+
* Note: any *.alibaba-inc.com / *.aliyun-inc.com host is treated as a
|
|
7060
|
+
* DashScope-compatible endpoint by design. Keep this generic and avoid
|
|
7061
|
+
* embedding individual private gateway hostnames in provider detection.
|
|
7062
|
+
*/
|
|
7053
7063
|
static isDashScopeProvider(contentGeneratorConfig) {
|
|
7054
7064
|
const { authType, baseUrl } = contentGeneratorConfig;
|
|
7055
7065
|
if (authType === "qwen-oauth" /* QWEN_OAUTH */) return true;
|
|
@@ -7062,16 +7072,22 @@ var DashScopeOpenAICompatibleProvider = class _DashScopeOpenAICompatibleProvider
|
|
|
7062
7072
|
hostname = null;
|
|
7063
7073
|
}
|
|
7064
7074
|
const isDashscopeOrigin = hostname !== null && (hostname === "dashscope.aliyuncs.com" || hostname === "dashscope-intl.aliyuncs.com" || hostname.endsWith(".dashscope.aliyuncs.com") || hostname.endsWith(".dashscope-intl.aliyuncs.com"));
|
|
7075
|
+
const isInternalOrigin = hostname !== null && (hostname.endsWith(".alibaba-inc.com") || hostname.endsWith(".aliyun-inc.com"));
|
|
7065
7076
|
const normalizedProxyUrl = DASHSCOPE_PROXY_BASE_URL?.endsWith("/") ? DASHSCOPE_PROXY_BASE_URL.slice(0, -1) : DASHSCOPE_PROXY_BASE_URL;
|
|
7066
7077
|
const isProxyMatch = Boolean(
|
|
7067
7078
|
normalizedProxyUrl && normalizedBaseUrl.toLowerCase() === normalizedProxyUrl.toLowerCase()
|
|
7068
7079
|
);
|
|
7069
|
-
if (normalizedProxyUrl && !isDashscopeOrigin && !isProxyMatch) {
|
|
7080
|
+
if (normalizedProxyUrl && !isDashscopeOrigin && !isInternalOrigin && !isProxyMatch) {
|
|
7070
7081
|
debugLogger.debug(
|
|
7071
7082
|
`DASHSCOPE_PROXY_BASE_URL is configured but the request baseUrl does not match. DashScope headers/cache control will be skipped.`
|
|
7072
7083
|
);
|
|
7073
7084
|
}
|
|
7074
|
-
|
|
7085
|
+
if (isInternalOrigin) {
|
|
7086
|
+
debugLogger.debug(
|
|
7087
|
+
`DashScope provider activated via internal origin: ${hostname}`
|
|
7088
|
+
);
|
|
7089
|
+
}
|
|
7090
|
+
return isDashscopeOrigin || isInternalOrigin || isProxyMatch;
|
|
7075
7091
|
}
|
|
7076
7092
|
buildHeaders() {
|
|
7077
7093
|
const version = this.cliConfig.getCliVersion() || "unknown";
|