@qwen-code/qwen-code 0.4.1-nightly.20251212.58d3a9c2 → 0.5.0-nightly.20251212.8b29dd13

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 +23 -7
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -82949,7 +82949,8 @@ var init_qwen_logger = __esm({
82949
82949
  properties: {
82950
82950
  auth_type: authType,
82951
82951
  model: this.config?.getModel(),
82952
- base_url: authType === AuthType2.USE_OPENAI ? this.config?.getContentGeneratorConfig().baseUrl || "" : ""
82952
+ base_url: authType === AuthType2.USE_OPENAI ? this.config?.getContentGeneratorConfig().baseUrl || "" : "",
82953
+ ...this.config?.getChannel?.() ? { channel: this.config.getChannel() } : {}
82953
82954
  },
82954
82955
  _v: `qwen-code@${version2}`
82955
82956
  };
@@ -142086,10 +142087,12 @@ var init_dashscope = __esm({
142086
142087
  };
142087
142088
  }
142088
142089
  buildMetadata(userPromptId) {
142090
+ const channel = this.cliConfig.getChannel?.();
142089
142091
  return {
142090
142092
  metadata: {
142091
142093
  sessionId: this.cliConfig.getSessionId?.(),
142092
- promptId: userPromptId
142094
+ promptId: userPromptId,
142095
+ ...channel ? { channel } : {}
142093
142096
  }
142094
142097
  };
142095
142098
  }
@@ -145754,7 +145757,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
145754
145757
  };
145755
145758
  }
145756
145759
  async function createContentGenerator(config, gcConfig, isInitialAuth) {
145757
- const version2 = "0.4.1-nightly.20251212.58d3a9c2";
145760
+ const version2 = "0.5.0-nightly.20251212.8b29dd13";
145758
145761
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
145759
145762
  const baseHeaders = {
145760
145763
  "User-Agent": userAgent2
@@ -208416,6 +208419,7 @@ var init_config3 = __esm({
208416
208419
  enableToolOutputTruncation;
208417
208420
  eventEmitter;
208418
208421
  useSmartEdit;
208422
+ channel;
208419
208423
  constructor(params) {
208420
208424
  this.sessionId = params.sessionId ?? randomUUID5();
208421
208425
  this.sessionData = params.sessionData;
@@ -208512,6 +208516,7 @@ var init_config3 = __esm({
208512
208516
  this.enableToolOutputTruncation = params.enableToolOutputTruncation ?? true;
208513
208517
  this.useSmartEdit = params.useSmartEdit ?? false;
208514
208518
  this.extensionManagement = params.extensionManagement ?? true;
208519
+ this.channel = params.channel;
208515
208520
  this.storage = new Storage(this.targetDir);
208516
208521
  this.vlmSwitchMode = params.vlmSwitchMode;
208517
208522
  this.inputFormat = params.inputFormat ?? InputFormat.TEXT;
@@ -208892,6 +208897,9 @@ var init_config3 = __esm({
208892
208897
  getCliVersion() {
208893
208898
  return this.cliVersion;
208894
208899
  }
208900
+ getChannel() {
208901
+ return this.channel;
208902
+ }
208895
208903
  /**
208896
208904
  * Get the current FileSystemService
208897
208905
  */
@@ -309185,7 +309193,7 @@ __name(getPackageJson, "getPackageJson");
309185
309193
  // packages/cli/src/utils/version.ts
309186
309194
  async function getCliVersion() {
309187
309195
  const pkgJson = await getPackageJson();
309188
- return "0.4.1-nightly.20251212.58d3a9c2";
309196
+ return "0.5.0-nightly.20251212.8b29dd13";
309189
309197
  }
309190
309198
  __name(getCliVersion, "getCliVersion");
309191
309199
 
@@ -309809,6 +309817,10 @@ async function parseArguments(settings) {
309809
309817
  }).option("experimental-acp", {
309810
309818
  type: "boolean",
309811
309819
  description: "Starts the agent in ACP mode"
309820
+ }).option("channel", {
309821
+ type: "string",
309822
+ choices: ["VSCode", "ACP", "SDK", "CI"],
309823
+ description: "Channel identifier (VSCode, ACP, SDK, CI)"
309812
309824
  }).option("allowed-mcp-server-names", {
309813
309825
  type: "array",
309814
309826
  string: true,
@@ -309988,6 +310000,9 @@ async function parseArguments(settings) {
309988
310000
  }
309989
310001
  }
309990
310002
  result["query"] = q || void 0;
310003
+ if (result["experimentalAcp"] && !result["channel"]) {
310004
+ result["channel"] = "ACP";
310005
+ }
309991
310006
  return result;
309992
310007
  }
309993
310008
  __name(parseArguments, "parseArguments");
@@ -310276,7 +310291,8 @@ async function loadCliConfig(settings, extensions, extensionEnablementManager, a
310276
310291
  useSmartEdit: argv.useSmartEdit ?? settings.useSmartEdit,
310277
310292
  output: {
310278
310293
  format: outputSettingsFormat
310279
- }
310294
+ },
310295
+ channel: argv.channel
310280
310296
  });
310281
310297
  }
310282
310298
  __name(loadCliConfig, "loadCliConfig");
@@ -313251,7 +313267,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
313251
313267
 
313252
313268
  // packages/cli/src/generated/git-commit.ts
313253
313269
  init_esbuild_shims();
313254
- var GIT_COMMIT_INFO2 = "ff26a54d";
313270
+ var GIT_COMMIT_INFO2 = "b59de9a8";
313255
313271
 
313256
313272
  // packages/cli/src/utils/systemInfo.ts
313257
313273
  async function getNpmVersion() {
@@ -363762,7 +363778,7 @@ var GeminiAgent = class {
363762
363778
  name: APPROVAL_MODE_INFO[mode].name,
363763
363779
  description: APPROVAL_MODE_INFO[mode].description
363764
363780
  }));
363765
- const version2 = "0.4.1-nightly.20251212.58d3a9c2";
363781
+ const version2 = "0.5.0-nightly.20251212.8b29dd13";
363766
363782
  return {
363767
363783
  protocolVersion: PROTOCOL_VERSION,
363768
363784
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.4.1-nightly.20251212.58d3a9c2",
3
+ "version": "0.5.0-nightly.20251212.8b29dd13",
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.1-nightly.20251212.58d3a9c2"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.5.0-nightly.20251212.8b29dd13"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"