@qwen-code/qwen-code 0.5.1 → 0.5.2

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 +24 -9
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -142265,7 +142265,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
142265
142265
  };
142266
142266
  }
142267
142267
  async function createContentGenerator(config, gcConfig, isInitialAuth) {
142268
- const version2 = "0.5.1";
142268
+ const version2 = "0.5.2";
142269
142269
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
142270
142270
  const baseHeaders = {
142271
142271
  "User-Agent": userAgent2
@@ -179925,11 +179925,26 @@ import { promisify as promisify5 } from "node:util";
179925
179925
  import os17 from "node:os";
179926
179926
  import path34 from "node:path";
179927
179927
  async function getProcessInfo(pid) {
179928
- const { stdout } = await execAsync(`ps -p ${pid} -o ppid=,comm=`);
179929
- const [ppidStr, ...commandParts] = stdout.trim().split(/\s+/);
179930
- const parentPid = parseInt(ppidStr, 10);
179931
- const command2 = commandParts.join(" ");
179932
- return { parentPid, name: path34.basename(command2), command: command2 };
179928
+ try {
179929
+ const command2 = `ps -o ppid=,command= -p ${pid}`;
179930
+ const { stdout } = await execAsync(command2);
179931
+ const trimmedStdout = stdout.trim();
179932
+ if (!trimmedStdout) {
179933
+ return { parentPid: 0, name: "", command: "" };
179934
+ }
179935
+ const parts = trimmedStdout.split(/\s+/);
179936
+ const ppidString = parts[0];
179937
+ const parentPid = parseInt(ppidString, 10);
179938
+ const fullCommand = trimmedStdout.substring(ppidString.length).trim();
179939
+ const processName = path34.basename(fullCommand.split(" ")[0]);
179940
+ return {
179941
+ parentPid: isNaN(parentPid) ? 1 : parentPid,
179942
+ name: processName,
179943
+ command: fullCommand
179944
+ };
179945
+ } catch (_e) {
179946
+ return { parentPid: 0, name: "", command: "" };
179947
+ }
179933
179948
  }
179934
179949
  async function getIdeProcessInfoForUnix() {
179935
179950
  const shells = ["zsh", "bash", "sh", "tcsh", "csh", "ksh", "fish", "dash"];
@@ -325358,7 +325373,7 @@ __name(getPackageJson, "getPackageJson");
325358
325373
  // packages/cli/src/utils/version.ts
325359
325374
  async function getCliVersion() {
325360
325375
  const pkgJson = await getPackageJson();
325361
- return "0.5.1";
325376
+ return "0.5.2";
325362
325377
  }
325363
325378
  __name(getCliVersion, "getCliVersion");
325364
325379
 
@@ -329444,7 +329459,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
329444
329459
 
329445
329460
  // packages/cli/src/generated/git-commit.ts
329446
329461
  init_esbuild_shims();
329447
- var GIT_COMMIT_INFO2 = "4cd3372b";
329462
+ var GIT_COMMIT_INFO2 = "2d43cf2c";
329448
329463
 
329449
329464
  // packages/cli/src/utils/systemInfo.ts
329450
329465
  async function getNpmVersion() {
@@ -380264,7 +380279,7 @@ var GeminiAgent = class {
380264
380279
  name: APPROVAL_MODE_INFO[mode].name,
380265
380280
  description: APPROVAL_MODE_INFO[mode].description
380266
380281
  }));
380267
- const version2 = "0.5.1";
380282
+ const version2 = "0.5.2";
380268
380283
  return {
380269
380284
  protocolVersion: PROTOCOL_VERSION,
380270
380285
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
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.5.1"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.5.2"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"