@qwen-code/qwen-code 0.7.0-nightly.20260109.f776075a → 0.7.0-nightly.20260111.bde31d12

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 +41 -13
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -131353,7 +131353,7 @@ var init_converter = __esm({
131353
131353
  const response = new GenerateContentResponse();
131354
131354
  if (choice2) {
131355
131355
  const parts = [];
131356
- const reasoningText = choice2.delta.reasoning_content;
131356
+ const reasoningText = choice2.delta?.reasoning_content;
131357
131357
  if (reasoningText) {
131358
131358
  parts.push({ text: reasoningText, thought: true });
131359
131359
  }
@@ -155198,7 +155198,7 @@ __export(geminiContentGenerator_exports, {
155198
155198
  createGeminiContentGenerator: () => createGeminiContentGenerator
155199
155199
  });
155200
155200
  function createGeminiContentGenerator(config2, gcConfig) {
155201
- const version2 = "0.7.0-nightly.20260109.f776075a";
155201
+ const version2 = "0.7.0-nightly.20260111.bde31d12";
155202
155202
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
155203
155203
  const baseHeaders = {
155204
155204
  "User-Agent": userAgent2
@@ -285416,11 +285416,11 @@ var require_command_exists = __commonJS({
285416
285416
  return '"' + s5 + '"';
285417
285417
  }, "cleanInput");
285418
285418
  }
285419
- module2.exports = /* @__PURE__ */ __name(function commandExists3(commandName, callback) {
285419
+ module2.exports = /* @__PURE__ */ __name(function commandExists4(commandName, callback) {
285420
285420
  var cleanedCommandName = cleanInput(commandName);
285421
285421
  if (!callback && typeof Promise !== "undefined") {
285422
285422
  return new Promise(function(resolve25, reject) {
285423
- commandExists3(commandName, function(error2, output) {
285423
+ commandExists4(commandName, function(error2, output) {
285424
285424
  if (output) {
285425
285425
  resolve25(commandName);
285426
285426
  } else {
@@ -357823,7 +357823,7 @@ __name(getPackageJson, "getPackageJson");
357823
357823
  // packages/cli/src/utils/version.ts
357824
357824
  async function getCliVersion() {
357825
357825
  const pkgJson = await getPackageJson();
357826
- return "0.7.0-nightly.20260109.f776075a";
357826
+ return "0.7.0-nightly.20260111.bde31d12";
357827
357827
  }
357828
357828
  __name(getCliVersion, "getCliVersion");
357829
357829
 
@@ -365720,7 +365720,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
365720
365720
 
365721
365721
  // packages/cli/src/generated/git-commit.ts
365722
365722
  init_esbuild_shims();
365723
- var GIT_COMMIT_INFO2 = "50284c40";
365723
+ var GIT_COMMIT_INFO2 = "5a2ac91b";
365724
365724
 
365725
365725
  // packages/cli/src/utils/systemInfo.ts
365726
365726
  async function getNpmVersion() {
@@ -367356,8 +367356,8 @@ var mcpCommand2 = {
367356
367356
  // packages/cli/src/ui/commands/memoryCommand.ts
367357
367357
  init_esbuild_shims();
367358
367358
  import path85 from "node:path";
367359
- import os30 from "os";
367360
- import fs77 from "fs/promises";
367359
+ import os30 from "node:os";
367360
+ import fs77 from "node:fs/promises";
367361
367361
  var memoryCommand = {
367362
367362
  name: "memory",
367363
367363
  get description() {
@@ -367396,7 +367396,11 @@ ${memoryContent}
367396
367396
  kind: "built-in" /* BUILT_IN */,
367397
367397
  action: /* @__PURE__ */ __name(async (context2) => {
367398
367398
  try {
367399
- const projectMemoryPath = path85.join(process.cwd(), "QWEN.md");
367399
+ const workingDir = context2.services.config?.getWorkingDir?.() ?? process.cwd();
367400
+ const projectMemoryPath = path85.join(
367401
+ workingDir,
367402
+ getCurrentGeminiMdFilename()
367403
+ );
367400
367404
  const memoryContent = await fs77.readFile(
367401
367405
  projectMemoryPath,
367402
367406
  "utf-8"
@@ -367439,7 +367443,7 @@ ${memoryContent}
367439
367443
  const globalMemoryPath = path85.join(
367440
367444
  os30.homedir(),
367441
367445
  QWEN_DIR4,
367442
- "QWEN.md"
367446
+ getCurrentGeminiMdFilename()
367443
367447
  );
367444
367448
  const globalMemoryContent = await fs77.readFile(
367445
367449
  globalMemoryPath,
@@ -393386,9 +393390,31 @@ var import_react52 = __toESM(require_react(), 1);
393386
393390
  init_esbuild_shims();
393387
393391
  var import_react51 = __toESM(require_react(), 1);
393388
393392
  import { spawnSync as spawnSync5 } from "child_process";
393393
+ var commandExistsCache = /* @__PURE__ */ new Map();
393394
+ function commandExists3(cmd) {
393395
+ if (commandExistsCache.has(cmd)) {
393396
+ return commandExistsCache.get(cmd);
393397
+ }
393398
+ const exists2 = commandExists(cmd);
393399
+ commandExistsCache.set(cmd, exists2);
393400
+ return exists2;
393401
+ }
393402
+ __name(commandExists3, "commandExists");
393403
+ function getExecutableCommand(editorType) {
393404
+ const commandConfig = editorCommands[editorType];
393405
+ const commands = process.platform === "win32" ? commandConfig.win32 : commandConfig.default;
393406
+ const availableCommand = commands.find((cmd) => commandExists3(cmd));
393407
+ if (!availableCommand) {
393408
+ throw new Error(
393409
+ `No available editor command found for ${editorType}. Tried: ${commands.join(", ")}. Please install one of these editors or set a different preferredEditor in settings.`
393410
+ );
393411
+ }
393412
+ return availableCommand;
393413
+ }
393414
+ __name(getExecutableCommand, "getExecutableCommand");
393389
393415
  function getEditorCommand(preferredEditor) {
393390
393416
  if (preferredEditor) {
393391
- return preferredEditor;
393417
+ return getExecutableCommand(preferredEditor);
393392
393418
  }
393393
393419
  switch (process.platform) {
393394
393420
  case "darwin":
@@ -393420,8 +393446,10 @@ function useLaunchEditor() {
393420
393446
  const wasRaw = stdin?.isRaw ?? false;
393421
393447
  try {
393422
393448
  setRawMode?.(false);
393449
+ const needsShell = process.platform === "win32" && (editorCommand2.endsWith(".cmd") || editorCommand2.endsWith(".bat"));
393423
393450
  const { status, error: error2 } = spawnSync5(editorCommand2, editorArgs, {
393424
- stdio: "inherit"
393451
+ stdio: "inherit",
393452
+ shell: needsShell
393425
393453
  });
393426
393454
  if (error2) throw error2;
393427
393455
  if (typeof status === "number" && status !== 0) {
@@ -416999,7 +417027,7 @@ var GeminiAgent = class {
416999
417027
  name: APPROVAL_MODE_INFO[mode].name,
417000
417028
  description: APPROVAL_MODE_INFO[mode].description
417001
417029
  }));
417002
- const version2 = "0.7.0-nightly.20260109.f776075a";
417030
+ const version2 = "0.7.0-nightly.20260111.bde31d12";
417003
417031
  return {
417004
417032
  protocolVersion: PROTOCOL_VERSION,
417005
417033
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.7.0-nightly.20260109.f776075a",
3
+ "version": "0.7.0-nightly.20260111.bde31d12",
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.7.0-nightly.20260109.f776075a"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.7.0-nightly.20260111.bde31d12"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"