@qwen-code/qwen-code 0.5.0 → 0.5.1-nightly.20251216.52faa0da

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 +35 -11
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -145740,7 +145740,7 @@ function createContentGeneratorConfig(config, authType, generationConfig) {
145740
145740
  };
145741
145741
  }
145742
145742
  async function createContentGenerator(config, gcConfig, isInitialAuth) {
145743
- const version2 = "0.5.0";
145743
+ const version2 = "0.5.1-nightly.20251216.52faa0da";
145744
145744
  const userAgent2 = `QwenCode/${version2} (${process.platform}; ${process.arch})`;
145745
145745
  const baseHeaders = {
145746
145746
  "User-Agent": userAgent2
@@ -194689,8 +194689,9 @@ var init_glob2 = __esm({
194689
194689
  });
194690
194690
  const relativePaths = allEntries.map((p) => path37.relative(this.config.getTargetDir(), p.fullpath()));
194691
194691
  const { filteredPaths } = this.fileService.filterFilesWithReport(relativePaths, this.getFileFilteringOptions());
194692
- const filteredAbsolutePaths = new Set(filteredPaths.map((p) => path37.resolve(this.config.getTargetDir(), p)));
194693
- const filteredEntries = allEntries.filter((entry) => filteredAbsolutePaths.has(entry.fullpath()));
194692
+ const normalizePathForComparison = /* @__PURE__ */ __name((p) => process.platform === "win32" || process.platform === "darwin" ? p.toLowerCase() : p, "normalizePathForComparison");
194693
+ const filteredAbsolutePaths = new Set(filteredPaths.map((p) => normalizePathForComparison(path37.resolve(this.config.getTargetDir(), p))));
194694
+ const filteredEntries = allEntries.filter((entry) => filteredAbsolutePaths.has(normalizePathForComparison(entry.fullpath())));
194694
194695
  if (!filteredEntries || filteredEntries.length === 0) {
194695
194696
  return {
194696
194697
  llmContent: `No files found matching pattern "${this.params.pattern}" ${searchLocationDescription}`,
@@ -208380,6 +208381,7 @@ var init_config3 = __esm({
208380
208381
  summarizeToolOutput;
208381
208382
  cliVersion;
208382
208383
  experimentalZedIntegration = false;
208384
+ chatRecordingEnabled;
208383
208385
  loadMemoryFromIncludeDirectories = false;
208384
208386
  webSearch;
208385
208387
  chatCompression;
@@ -208477,6 +208479,7 @@ var init_config3 = __esm({
208477
208479
  };
208478
208480
  this.contentGeneratorConfig = this._generationConfig;
208479
208481
  this.cliVersion = params.cliVersion;
208482
+ this.chatRecordingEnabled = params.chatRecording ?? true;
208480
208483
  this.loadMemoryFromIncludeDirectories = params.loadMemoryFromIncludeDirectories ?? false;
208481
208484
  this.chatCompression = params.chatCompression;
208482
208485
  this.interactive = params.interactive ?? false;
@@ -208515,7 +208518,7 @@ var init_config3 = __esm({
208515
208518
  (0, import_undici3.setGlobalDispatcher)(new import_undici3.ProxyAgent(this.getProxy()));
208516
208519
  }
208517
208520
  this.geminiClient = new GeminiClient(this);
208518
- this.chatRecordingService = new ChatRecordingService(this);
208521
+ this.chatRecordingService = this.chatRecordingEnabled ? new ChatRecordingService(this) : void 0;
208519
208522
  }
208520
208523
  /**
208521
208524
  * Must only be called once, throws if called again.
@@ -208589,7 +208592,7 @@ var init_config3 = __esm({
208589
208592
  startNewSession(sessionId) {
208590
208593
  this.sessionId = sessionId ?? randomUUID5();
208591
208594
  this.sessionData = void 0;
208592
- this.chatRecordingService = new ChatRecordingService(this);
208595
+ this.chatRecordingService = this.chatRecordingEnabled ? new ChatRecordingService(this) : void 0;
208593
208596
  if (this.initialized) {
208594
208597
  logStartSession(this, new StartSessionEvent(this));
208595
208598
  }
@@ -208972,6 +208975,9 @@ var init_config3 = __esm({
208972
208975
  * Returns the chat recording service.
208973
208976
  */
208974
208977
  getChatRecordingService() {
208978
+ if (!this.chatRecordingEnabled) {
208979
+ return void 0;
208980
+ }
208975
208981
  if (!this.chatRecordingService) {
208976
208982
  this.chatRecordingService = new ChatRecordingService(this);
208977
208983
  }
@@ -296020,6 +296026,15 @@ var SETTINGS_SCHEMA = {
296020
296026
  default: true,
296021
296027
  description: "Play terminal bell sound when response completes or needs approval.",
296022
296028
  showInDialog: true
296029
+ },
296030
+ chatRecording: {
296031
+ type: "boolean",
296032
+ label: "Chat Recording",
296033
+ category: "General",
296034
+ requiresRestart: true,
296035
+ default: true,
296036
+ description: "Enable saving chat history to disk. Disabling this will also prevent --continue and --resume from working.",
296037
+ showInDialog: false
296023
296038
  }
296024
296039
  }
296025
296040
  },
@@ -310014,7 +310029,7 @@ __name(getPackageJson, "getPackageJson");
310014
310029
  // packages/cli/src/utils/version.ts
310015
310030
  async function getCliVersion() {
310016
310031
  const pkgJson = await getPackageJson();
310017
- return "0.5.0";
310032
+ return "0.5.1-nightly.20251216.52faa0da";
310018
310033
  }
310019
310034
  __name(getCliVersion, "getCliVersion");
310020
310035
 
@@ -310588,7 +310603,10 @@ async function parseArguments(settings) {
310588
310603
  }).deprecateOption(
310589
310604
  "proxy",
310590
310605
  'Use the "proxy" setting in settings.json instead. This flag will be removed in a future version.'
310591
- ).command(
310606
+ ).option("chat-recording", {
310607
+ type: "boolean",
310608
+ description: "Enable chat recording to disk. If false, chat history is not saved and --continue/--resume will not work."
310609
+ }).command(
310592
310610
  "$0 [query..]",
310593
310611
  "Launch Qwen Code CLI",
310594
310612
  (yargsInstance2) => yargsInstance2.positional("query", {
@@ -311113,7 +311131,11 @@ async function loadCliConfig(settings, extensions, extensionEnablementManager, a
311113
311131
  output: {
311114
311132
  format: outputSettingsFormat
311115
311133
  },
311116
- channel: argv.channel
311134
+ channel: argv.channel,
311135
+ // Precedence: explicit CLI flag > settings file > default(true).
311136
+ // NOTE: do NOT set a yargs default for `chat-recording`, otherwise argv will
311137
+ // always be true and the settings file can never disable recording.
311138
+ chatRecording: argv.chatRecording ?? settings.general?.chatRecording ?? true
311117
311139
  });
311118
311140
  }
311119
311141
  __name(loadCliConfig, "loadCliConfig");
@@ -314091,7 +314113,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
314091
314113
 
314092
314114
  // packages/cli/src/generated/git-commit.ts
314093
314115
  init_esbuild_shims();
314094
- var GIT_COMMIT_INFO2 = "4cbb57a7";
314116
+ var GIT_COMMIT_INFO2 = "3e79909b";
314095
314117
 
314096
314118
  // packages/cli/src/utils/systemInfo.ts
314097
314119
  async function getNpmVersion() {
@@ -345180,8 +345202,10 @@ var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1);
345180
345202
  var SessionSummaryDisplay = /* @__PURE__ */ __name(({
345181
345203
  duration
345182
345204
  }) => {
345205
+ const config = useConfig();
345183
345206
  const { stats } = useSessionStats();
345184
345207
  const hasMessages = stats.promptCount > 0;
345208
+ const canResume = !!config.getChatRecordingService();
345185
345209
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
345186
345210
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
345187
345211
  StatsDisplay,
@@ -345190,7 +345214,7 @@ var SessionSummaryDisplay = /* @__PURE__ */ __name(({
345190
345214
  duration
345191
345215
  }
345192
345216
  ),
345193
- hasMessages && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Text3, { color: theme.text.secondary, children: [
345217
+ hasMessages && canResume && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Text3, { color: theme.text.secondary, children: [
345194
345218
  t2("To continue this session, run"),
345195
345219
  " ",
345196
345220
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Text3, { color: theme.text.accent, children: [
@@ -364637,7 +364661,7 @@ var GeminiAgent = class {
364637
364661
  name: APPROVAL_MODE_INFO[mode].name,
364638
364662
  description: APPROVAL_MODE_INFO[mode].description
364639
364663
  }));
364640
- const version2 = "0.5.0";
364664
+ const version2 = "0.5.1-nightly.20251216.52faa0da";
364641
364665
  return {
364642
364666
  protocolVersion: PROTOCOL_VERSION,
364643
364667
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.5.0",
3
+ "version": "0.5.1-nightly.20251216.52faa0da",
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.0"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.5.1-nightly.20251216.52faa0da"
24
24
  },
25
25
  "dependencies": {
26
26
  "tiktoken": "^1.0.21"