@qwen-code/qwen-code 0.12.0 → 0.12.1-nightly.20260311.bf99f956
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/cli.js +25 -20
- package/locales/zh.js +1 -1
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -157672,7 +157672,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
157672
157672
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
157673
157673
|
});
|
|
157674
157674
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
157675
|
-
const version2 = "0.12.
|
|
157675
|
+
const version2 = "0.12.1-nightly.20260311.bf99f956";
|
|
157676
157676
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
157677
157677
|
const baseHeaders = {
|
|
157678
157678
|
"User-Agent": userAgent2
|
|
@@ -223773,6 +223773,9 @@ var init_oauth_utils = __esm({
|
|
|
223773
223773
|
const authServerMetadata2 = await this.discoverAuthorizationServerMetadata(authServerUrl);
|
|
223774
223774
|
if (authServerMetadata2) {
|
|
223775
223775
|
const config2 = this.metadataToOAuthConfig(authServerMetadata2);
|
|
223776
|
+
if (resourceMetadata.scopes_supported?.length) {
|
|
223777
|
+
config2.scopes = resourceMetadata.scopes_supported;
|
|
223778
|
+
}
|
|
223776
223779
|
if (authServerMetadata2.registration_endpoint) {
|
|
223777
223780
|
debugLogger50.debug(`Dynamic client registration is supported at: ${authServerMetadata2.registration_endpoint}`);
|
|
223778
223781
|
}
|
|
@@ -223825,7 +223828,11 @@ var init_oauth_utils = __esm({
|
|
|
223825
223828
|
const authServerUrl = resourceMetadata.authorization_servers[0];
|
|
223826
223829
|
const authServerMetadata = await this.discoverAuthorizationServerMetadata(authServerUrl);
|
|
223827
223830
|
if (authServerMetadata) {
|
|
223828
|
-
|
|
223831
|
+
const config2 = this.metadataToOAuthConfig(authServerMetadata);
|
|
223832
|
+
if (resourceMetadata.scopes_supported?.length) {
|
|
223833
|
+
config2.scopes = resourceMetadata.scopes_supported;
|
|
223834
|
+
}
|
|
223835
|
+
return config2;
|
|
223829
223836
|
}
|
|
223830
223837
|
return null;
|
|
223831
223838
|
}
|
|
@@ -309532,7 +309539,7 @@ var init_zh = __esm({
|
|
|
309532
309539
|
'Theme "{{themeName}}" not found.': '\u672A\u627E\u5230\u4E3B\u9898 "{{themeName}}"\u3002',
|
|
309533
309540
|
'Theme "{{themeName}}" not found in selected scope.': '\u5728\u6240\u9009\u4F5C\u7528\u57DF\u4E2D\u672A\u627E\u5230\u4E3B\u9898 "{{themeName}}"\u3002',
|
|
309534
309541
|
"Clear conversation history and free up context": "\u6E05\u9664\u5BF9\u8BDD\u5386\u53F2\u5E76\u91CA\u653E\u4E0A\u4E0B\u6587",
|
|
309535
|
-
"Compresses the context by replacing it with a summary.": "\u901A\u8FC7\
|
|
309542
|
+
"Compresses the context by replacing it with a summary.": "\u901A\u8FC7\u6458\u8981\u66FF\u6362\u6765\u538B\u7F29\u4E0A\u4E0B\u6587",
|
|
309536
309543
|
"open full Qwen Code documentation in your browser": "\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u5B8C\u6574\u7684 Qwen Code \u6587\u6863",
|
|
309537
309544
|
"Configuration not available.": "\u914D\u7F6E\u4E0D\u53EF\u7528",
|
|
309538
309545
|
"change the auth method": "\u66F4\u6539\u8BA4\u8BC1\u65B9\u6CD5",
|
|
@@ -381722,7 +381729,8 @@ var SETTINGS_SCHEMA = {
|
|
|
381722
381729
|
requiresRestart: true,
|
|
381723
381730
|
default: void 0,
|
|
381724
381731
|
description: "A list of MCP servers to allow.",
|
|
381725
|
-
showInDialog: false
|
|
381732
|
+
showInDialog: false,
|
|
381733
|
+
mergeStrategy: "concat" /* CONCAT */
|
|
381726
381734
|
},
|
|
381727
381735
|
excluded: {
|
|
381728
381736
|
type: "array",
|
|
@@ -381731,7 +381739,8 @@ var SETTINGS_SCHEMA = {
|
|
|
381731
381739
|
requiresRestart: true,
|
|
381732
381740
|
default: void 0,
|
|
381733
381741
|
description: "A list of MCP servers to exclude.",
|
|
381734
|
-
showInDialog: false
|
|
381742
|
+
showInDialog: false,
|
|
381743
|
+
mergeStrategy: "concat" /* CONCAT */
|
|
381735
381744
|
}
|
|
381736
381745
|
}
|
|
381737
381746
|
},
|
|
@@ -390461,7 +390470,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
390461
390470
|
// packages/cli/src/utils/version.ts
|
|
390462
390471
|
async function getCliVersion() {
|
|
390463
390472
|
const pkgJson = await getPackageJson();
|
|
390464
|
-
return "0.12.
|
|
390473
|
+
return "0.12.1-nightly.20260311.bf99f956";
|
|
390465
390474
|
}
|
|
390466
390475
|
__name(getCliVersion, "getCliVersion");
|
|
390467
390476
|
|
|
@@ -398022,7 +398031,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
398022
398031
|
|
|
398023
398032
|
// packages/cli/src/generated/git-commit.ts
|
|
398024
398033
|
init_esbuild_shims();
|
|
398025
|
-
var GIT_COMMIT_INFO = "
|
|
398034
|
+
var GIT_COMMIT_INFO = "3890d8fb";
|
|
398026
398035
|
|
|
398027
398036
|
// packages/cli/src/utils/systemInfo.ts
|
|
398028
398037
|
async function getNpmVersion() {
|
|
@@ -428880,7 +428889,7 @@ function useTextBuffer({
|
|
|
428880
428889
|
const openInExternalEditor = (0, import_react46.useCallback)(
|
|
428881
428890
|
async (opts = {}) => {
|
|
428882
428891
|
const editor = opts.editor ?? process.env["VISUAL"] ?? process.env["EDITOR"] ?? (process.platform === "win32" ? "notepad" : "vi");
|
|
428883
|
-
const tmpDir = fs99.mkdtempSync(pathMod.join(os35.tmpdir(), "
|
|
428892
|
+
const tmpDir = fs99.mkdtempSync(pathMod.join(os35.tmpdir(), "qwen-edit-"));
|
|
428884
428893
|
const filePath = pathMod.join(tmpDir, "buffer.txt");
|
|
428885
428894
|
fs99.writeFileSync(filePath, text, "utf8");
|
|
428886
428895
|
dispatch({ type: "create_undo_snapshot" });
|
|
@@ -438854,7 +438863,7 @@ var ServerDetailStep = /* @__PURE__ */ __name(({
|
|
|
438854
438863
|
] }),
|
|
438855
438864
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Box_default, { children: [
|
|
438856
438865
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Box_default, { width: LABEL_WIDTH, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Text3, { color: theme.text.primary, children: t4("Source:") }) }),
|
|
438857
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Text3, { color: theme.text.primary, children: server.
|
|
438866
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Text3, { color: theme.text.primary, children: server.source === "user" ? t4("User Settings") : server.source === "project" ? t4("Workspace Settings") : t4("Extension") }) })
|
|
438858
438867
|
] }),
|
|
438859
438868
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(Box_default, { children: [
|
|
438860
438869
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Box_default, { width: LABEL_WIDTH, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Text3, { color: theme.text.primary, children: t4("Command:") }) }),
|
|
@@ -439280,14 +439289,10 @@ var MCPManagementDialog = /* @__PURE__ */ __name(({
|
|
|
439280
439289
|
let source2 = "user";
|
|
439281
439290
|
if (serverConfig.extensionName) {
|
|
439282
439291
|
source2 = "extension";
|
|
439283
|
-
}
|
|
439284
|
-
let scope = "user";
|
|
439285
|
-
if (serverConfig.extensionName) {
|
|
439286
|
-
scope = "extension";
|
|
439287
439292
|
} else if (workspaceSettings.mcpServers?.[name3]) {
|
|
439288
|
-
|
|
439293
|
+
source2 = "project";
|
|
439289
439294
|
} else if (userSettings.mcpServers?.[name3]) {
|
|
439290
|
-
|
|
439295
|
+
source2 = "user";
|
|
439291
439296
|
}
|
|
439292
439297
|
const isDisabled = config2.isMcpServerDisabled(name3);
|
|
439293
439298
|
const invalidToolCount = serverTools.filter(
|
|
@@ -439297,7 +439302,6 @@ var MCPManagementDialog = /* @__PURE__ */ __name(({
|
|
|
439297
439302
|
name: name3,
|
|
439298
439303
|
status,
|
|
439299
439304
|
source: source2,
|
|
439300
|
-
scope,
|
|
439301
439305
|
config: serverConfig,
|
|
439302
439306
|
toolCount: serverTools.length,
|
|
439303
439307
|
invalidToolCount,
|
|
@@ -439463,13 +439467,13 @@ var MCPManagementDialog = /* @__PURE__ */ __name(({
|
|
|
439463
439467
|
const server = selectedServer;
|
|
439464
439468
|
const settings = loadSettings();
|
|
439465
439469
|
let targetScope = "user";
|
|
439466
|
-
if (server.
|
|
439470
|
+
if (server.source === "extension") {
|
|
439467
439471
|
debugLogger120.warn(
|
|
439468
439472
|
`Cannot disable extension MCP server '${server.name}'`
|
|
439469
439473
|
);
|
|
439470
439474
|
setIsLoading(false);
|
|
439471
439475
|
return;
|
|
439472
|
-
} else if (server.
|
|
439476
|
+
} else if (server.source === "project") {
|
|
439473
439477
|
targetScope = "workspace";
|
|
439474
439478
|
}
|
|
439475
439479
|
const scopeSettings = settings.forScope(
|
|
@@ -446703,7 +446707,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
446703
446707
|
const userMessageTimestamp = Date.now();
|
|
446704
446708
|
if (!options2?.isContinuation) {
|
|
446705
446709
|
setModelSwitchedFromQuotaError(false);
|
|
446706
|
-
if (pendingRetryCountdownItemRef.current) {
|
|
446710
|
+
if (pendingRetryCountdownItemRef.current || pendingRetryErrorItemRef.current) {
|
|
446707
446711
|
clearRetryCountdown();
|
|
446708
446712
|
}
|
|
446709
446713
|
}
|
|
@@ -446821,6 +446825,7 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
|
|
|
446821
446825
|
handleLoopDetectedEvent,
|
|
446822
446826
|
clearRetryCountdown,
|
|
446823
446827
|
pendingRetryCountdownItemRef,
|
|
446828
|
+
pendingRetryErrorItemRef,
|
|
446824
446829
|
setPendingRetryErrorItem
|
|
446825
446830
|
]
|
|
446826
446831
|
);
|
|
@@ -456633,7 +456638,7 @@ var QwenAgent = class {
|
|
|
456633
456638
|
async initialize(args) {
|
|
456634
456639
|
this.clientCapabilities = args.clientCapabilities;
|
|
456635
456640
|
const authMethods = buildAuthMethods();
|
|
456636
|
-
const version2 = "0.12.
|
|
456641
|
+
const version2 = "0.12.1-nightly.20260311.bf99f956";
|
|
456637
456642
|
return {
|
|
456638
456643
|
protocolVersion: PROTOCOL_VERSION,
|
|
456639
456644
|
agentInfo: {
|
package/locales/zh.js
CHANGED
|
@@ -138,7 +138,7 @@ export default {
|
|
|
138
138
|
'在所选作用域中未找到主题 "{{themeName}}"。',
|
|
139
139
|
'Clear conversation history and free up context': '清除对话历史并释放上下文',
|
|
140
140
|
'Compresses the context by replacing it with a summary.':
|
|
141
|
-
'
|
|
141
|
+
'通过摘要替换来压缩上下文',
|
|
142
142
|
'open full Qwen Code documentation in your browser':
|
|
143
143
|
'在浏览器中打开完整的 Qwen Code 文档',
|
|
144
144
|
'Configuration not available.': '配置不可用',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwen-code/qwen-code",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-nightly.20260311.bf99f956",
|
|
4
4
|
"description": "Qwen Code - AI-powered coding assistant",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"locales"
|
|
21
21
|
],
|
|
22
22
|
"config": {
|
|
23
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.
|
|
23
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.1-nightly.20260311.bf99f956"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"optionalDependencies": {
|