@qwen-code/qwen-code 0.6.0-nightly.20251228.2bc80795 → 0.6.0-nightly.20251230.105ad743

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 (3) hide show
  1. package/README.md +1 -0
  2. package/cli.js +39 -22
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -191,6 +191,7 @@ See [settings](https://qwenlm.github.io/qwen-code-docs/en/users/configuration/se
191
191
 
192
192
  Looking for a graphical interface?
193
193
 
194
+ - [**AionUi**](https://github.com/iOfficeAI/AionUi) A modern GUI for command-line AI tools including Qwen Code
194
195
  - [**Gemini CLI Desktop**](https://github.com/Piebald-AI/gemini-cli-desktop) A cross-platform desktop/web/mobile UI for Qwen Code
195
196
 
196
197
  ## Troubleshooting
package/cli.js CHANGED
@@ -70952,16 +70952,21 @@ var require_dist3 = __commonJS({
70952
70952
  });
70953
70953
 
70954
70954
  // packages/core/dist/src/utils/schemaValidator.js
70955
- function fixBooleanCasing(data) {
70955
+ function fixBooleanValues(data) {
70956
70956
  for (const key of Object.keys(data)) {
70957
70957
  if (!(key in data))
70958
70958
  continue;
70959
- if (typeof data[key] === "object") {
70960
- fixBooleanCasing(data[key]);
70961
- } else if (data[key] === "True")
70962
- data[key] = "true";
70963
- else if (data[key] === "False")
70964
- data[key] = "false";
70959
+ const value = data[key];
70960
+ if (typeof value === "object" && value !== null) {
70961
+ fixBooleanValues(value);
70962
+ } else if (typeof value === "string") {
70963
+ const lower3 = value.toLowerCase();
70964
+ if (lower3 === "true") {
70965
+ data[key] = true;
70966
+ } else if (lower3 === "false") {
70967
+ data[key] = false;
70968
+ }
70969
+ }
70965
70970
  }
70966
70971
  }
70967
70972
  var import_ajv, addFormats, AjvClass, ajValidator, addFormatsFunc, SchemaValidator;
@@ -71002,19 +71007,18 @@ var init_schemaValidator = __esm({
71002
71007
  return "Value of params must be an object";
71003
71008
  }
71004
71009
  const validate3 = ajValidator.compile(schema);
71005
- const valid = validate3(data);
71010
+ let valid = validate3(data);
71006
71011
  if (!valid && validate3.errors) {
71007
- fixBooleanCasing(data);
71008
- const validate4 = ajValidator.compile(schema);
71009
- const valid2 = validate4(data);
71010
- if (!valid2 && validate4.errors) {
71011
- return ajValidator.errorsText(validate4.errors, { dataVar: "params" });
71012
+ fixBooleanValues(data);
71013
+ valid = validate3(data);
71014
+ if (!valid && validate3.errors) {
71015
+ return ajValidator.errorsText(validate3.errors, { dataVar: "params" });
71012
71016
  }
71013
71017
  }
71014
71018
  return null;
71015
71019
  }
71016
71020
  };
71017
- __name(fixBooleanCasing, "fixBooleanCasing");
71021
+ __name(fixBooleanValues, "fixBooleanValues");
71018
71022
  }
71019
71023
  });
71020
71024
 
@@ -131561,10 +131565,23 @@ var init_converter = __esm({
131561
131565
  if (message.role === "assistant" && merged.length > 0) {
131562
131566
  const lastMessage = merged[merged.length - 1];
131563
131567
  if (lastMessage.role === "assistant") {
131564
- const combinedContent = [
131565
- typeof lastMessage.content === "string" ? lastMessage.content : "",
131566
- typeof message.content === "string" ? message.content : ""
131567
- ].filter(Boolean).join("");
131568
+ const lastContent = lastMessage.content;
131569
+ const currentContent = message.content;
131570
+ const useArrayFormat = Array.isArray(lastContent) || Array.isArray(currentContent);
131571
+ let combinedContent;
131572
+ if (useArrayFormat) {
131573
+ const lastParts = Array.isArray(lastContent) ? lastContent : typeof lastContent === "string" && lastContent ? [{ type: "text", text: lastContent }] : [];
131574
+ const currentParts = Array.isArray(currentContent) ? currentContent : typeof currentContent === "string" && currentContent ? [{ type: "text", text: currentContent }] : [];
131575
+ combinedContent = [
131576
+ ...lastParts,
131577
+ ...currentParts
131578
+ ];
131579
+ } else {
131580
+ const lastText = typeof lastContent === "string" ? lastContent : "";
131581
+ const currentText = typeof currentContent === "string" ? currentContent : "";
131582
+ const mergedText = [lastText, currentText].filter(Boolean).join("");
131583
+ combinedContent = mergedText || null;
131584
+ }
131568
131585
  const lastToolCalls = "tool_calls" in lastMessage ? lastMessage.tool_calls || [] : [];
131569
131586
  const currentToolCalls = "tool_calls" in message ? message.tool_calls || [] : [];
131570
131587
  const combinedToolCalls = [...lastToolCalls, ...currentToolCalls];
@@ -154418,7 +154435,7 @@ __export(geminiContentGenerator_exports, {
154418
154435
  createGeminiContentGenerator: () => createGeminiContentGenerator
154419
154436
  });
154420
154437
  function createGeminiContentGenerator(config2, gcConfig) {
154421
- const version2 = "0.6.0-nightly.20251228.2bc80795";
154438
+ const version2 = "0.6.0-nightly.20251230.105ad743";
154422
154439
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
154423
154440
  const baseHeaders = {
154424
154441
  "User-Agent": userAgent2
@@ -355401,7 +355418,7 @@ __name(getPackageJson, "getPackageJson");
355401
355418
  // packages/cli/src/utils/version.ts
355402
355419
  async function getCliVersion() {
355403
355420
  const pkgJson = await getPackageJson();
355404
- return "0.6.0-nightly.20251228.2bc80795";
355421
+ return "0.6.0-nightly.20251230.105ad743";
355405
355422
  }
355406
355423
  __name(getCliVersion, "getCliVersion");
355407
355424
 
@@ -363449,7 +363466,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
363449
363466
 
363450
363467
  // packages/cli/src/generated/git-commit.ts
363451
363468
  init_esbuild_shims();
363452
- var GIT_COMMIT_INFO2 = "00a75304";
363469
+ var GIT_COMMIT_INFO2 = "b501de4c";
363453
363470
 
363454
363471
  // packages/cli/src/utils/systemInfo.ts
363455
363472
  async function getNpmVersion() {
@@ -414388,7 +414405,7 @@ var GeminiAgent = class {
414388
414405
  name: APPROVAL_MODE_INFO[mode].name,
414389
414406
  description: APPROVAL_MODE_INFO[mode].description
414390
414407
  }));
414391
- const version2 = "0.6.0-nightly.20251228.2bc80795";
414408
+ const version2 = "0.6.0-nightly.20251230.105ad743";
414392
414409
  return {
414393
414410
  protocolVersion: PROTOCOL_VERSION,
414394
414411
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.6.0-nightly.20251228.2bc80795",
3
+ "version": "0.6.0-nightly.20251230.105ad743",
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.6.0-nightly.20251228.2bc80795"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.6.0-nightly.20251230.105ad743"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"