@qwen-code/qwen-code 0.4.0 → 0.4.1-nightly.20251210.5fddcd50

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 (2) hide show
  1. package/cli.js +10 -4
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -145729,7 +145729,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
145729
145729
  };
145730
145730
  }
145731
145731
  async function createContentGenerator(config, gcConfig, isInitialAuth) {
145732
- const version2 = "0.4.0";
145732
+ const version2 = "0.4.1-nightly.20251210.5fddcd50";
145733
145733
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
145734
145734
  const baseHeaders = {
145735
145735
  "User-Agent": userAgent2
@@ -156647,6 +156647,12 @@ function getCachedEncodingForBuffer(buffer) {
156647
156647
  cachedSystemEncoding = getSystemEncoding();
156648
156648
  }
156649
156649
  if (cachedSystemEncoding) {
156650
+ if (cachedSystemEncoding !== "utf-8") {
156651
+ const detected = detectEncodingFromBuffer(buffer);
156652
+ if (detected === "utf-8") {
156653
+ return "utf-8";
156654
+ }
156655
+ }
156650
156656
  return cachedSystemEncoding;
156651
156657
  }
156652
156658
  return detectEncodingFromBuffer(buffer) || "utf-8";
@@ -309141,7 +309147,7 @@ __name(getPackageJson, "getPackageJson");
309141
309147
  // packages/cli/src/utils/version.ts
309142
309148
  async function getCliVersion() {
309143
309149
  const pkgJson = await getPackageJson();
309144
- return "0.4.0";
309150
+ return "0.4.1-nightly.20251210.5fddcd50";
309145
309151
  }
309146
309152
  __name(getCliVersion, "getCliVersion");
309147
309153
 
@@ -313207,7 +313213,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
313207
313213
 
313208
313214
  // packages/cli/src/generated/git-commit.ts
313209
313215
  init_esbuild_shims();
313210
- var GIT_COMMIT_INFO2 = "4513c113";
313216
+ var GIT_COMMIT_INFO2 = "9d0d932d";
313211
313217
 
313212
313218
  // packages/cli/src/utils/systemInfo.ts
313213
313219
  async function getNpmVersion() {
@@ -363593,7 +363599,7 @@ var GeminiAgent = class {
363593
363599
  name: APPROVAL_MODE_INFO[mode].name,
363594
363600
  description: APPROVAL_MODE_INFO[mode].description
363595
363601
  }));
363596
- const version2 = "0.4.0";
363602
+ const version2 = "0.4.1-nightly.20251210.5fddcd50";
363597
363603
  return {
363598
363604
  protocolVersion: PROTOCOL_VERSION,
363599
363605
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.4.0",
3
+ "version": "0.4.1-nightly.20251210.5fddcd50",
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.4.0"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.4.1-nightly.20251210.5fddcd50"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"