@qwen-code/qwen-code 0.12.1-nightly.20260311.bf99f956 → 0.12.1

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 -1
  2. package/cli.js +19 -6
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -38,7 +38,7 @@ Qwen Code is an open-source AI agent for the terminal, optimized for [Qwen3-Code
38
38
  #### Linux / macOS
39
39
 
40
40
  ```bash
41
- curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh | bash
41
+ bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)"
42
42
  ```
43
43
 
44
44
  #### Windows (Run as Administrator CMD)
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.1-nightly.20260311.bf99f956";
157675
+ const version2 = "0.12.1";
157676
157676
  const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
157677
157677
  const baseHeaders = {
157678
157678
  "User-Agent": userAgent2
@@ -219907,7 +219907,8 @@ var init_edit = __esm({
219907
219907
  * It needs to calculate the diff to show the user.
219908
219908
  */
219909
219909
  async shouldConfirmExecute(abortSignal) {
219910
- if (this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT) {
219910
+ const mode = this.config.getApprovalMode();
219911
+ if (mode === ApprovalMode.AUTO_EDIT || mode === ApprovalMode.YOLO) {
219911
219912
  return false;
219912
219913
  }
219913
219914
  let editData;
@@ -231837,7 +231838,8 @@ var init_write_file = __esm({
231837
231838
  return `Writing to ${shortenPath(relativePath)}`;
231838
231839
  }
231839
231840
  async shouldConfirmExecute(_abortSignal) {
231840
- if (this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT) {
231841
+ const mode = this.config.getApprovalMode();
231842
+ if (mode === ApprovalMode.AUTO_EDIT || mode === ApprovalMode.YOLO) {
231841
231843
  return false;
231842
231844
  }
231843
231845
  const correctedContentResult = await getCorrectedFileContent(this.config, this.params.file_path, this.params.content);
@@ -390470,7 +390472,7 @@ __name(getPackageJson, "getPackageJson");
390470
390472
  // packages/cli/src/utils/version.ts
390471
390473
  async function getCliVersion() {
390472
390474
  const pkgJson = await getPackageJson();
390473
- return "0.12.1-nightly.20260311.bf99f956";
390475
+ return "0.12.1";
390474
390476
  }
390475
390477
  __name(getCliVersion, "getCliVersion");
390476
390478
 
@@ -398031,7 +398033,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
398031
398033
 
398032
398034
  // packages/cli/src/generated/git-commit.ts
398033
398035
  init_esbuild_shims();
398034
- var GIT_COMMIT_INFO = "3890d8fb";
398036
+ var GIT_COMMIT_INFO = "150521d8";
398035
398037
 
398036
398038
  // packages/cli/src/utils/systemInfo.ts
398037
398039
  async function getNpmVersion() {
@@ -456638,7 +456640,7 @@ var QwenAgent = class {
456638
456640
  async initialize(args) {
456639
456641
  this.clientCapabilities = args.clientCapabilities;
456640
456642
  const authMethods = buildAuthMethods();
456641
- const version2 = "0.12.1-nightly.20260311.bf99f956";
456643
+ const version2 = "0.12.1";
456642
456644
  return {
456643
456645
  protocolVersion: PROTOCOL_VERSION,
456644
456646
  agentInfo: {
@@ -457326,6 +457328,17 @@ function setWindowTitle(title, settings) {
457326
457328
  __name(setWindowTitle, "setWindowTitle");
457327
457329
 
457328
457330
  // packages/cli/index.ts
457331
+ process.on("uncaughtException", (error40) => {
457332
+ if (process.platform === "win32" && error40 instanceof Error && error40.message === "Cannot resize a pty that has already exited") {
457333
+ return;
457334
+ }
457335
+ if (error40 instanceof Error) {
457336
+ writeStderrLine(error40.stack ?? error40.message);
457337
+ } else {
457338
+ writeStderrLine(String(error40));
457339
+ }
457340
+ process.exit(1);
457341
+ });
457329
457342
  main().catch((error40) => {
457330
457343
  if (error40 instanceof FatalError) {
457331
457344
  let errorMessage = error40.message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.12.1-nightly.20260311.bf99f956",
3
+ "version": "0.12.1",
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.1-nightly.20260311.bf99f956"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.12.1"
24
24
  },
25
25
  "dependencies": {},
26
26
  "optionalDependencies": {