@rdmind/rdmind 0.1.5 → 0.1.6

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 +50 -17
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -146939,7 +146939,7 @@ var init_xhsApiConfig = __esm({
146939
146939
  PALLAS_DOMAIN = process.env["PALLAS_DOMAIN"] ?? "pallas.devops.xiaohongshu.com";
146940
146940
  PALLAS_HTTP_BASE = `http://${PALLAS_DOMAIN}`;
146941
146941
  PALLAS_WS_BASE = `ws://${PALLAS_DOMAIN}`;
146942
- RDMIND_SSO_WEB_URL = "http://fe.xiaohongshu.com/apps/reddevmind-web/rdmind/sso";
146942
+ RDMIND_SSO_WEB_URL = "http://rdmind.devops.xiaohongshu.com/apps/reddevmind-web/rdmind/sso";
146943
146943
  }
146944
146944
  });
146945
146945
 
@@ -160796,7 +160796,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
160796
160796
  };
160797
160797
  }
160798
160798
  async function createContentGenerator(config2, gcConfig, isInitialAuth) {
160799
- const version3 = "0.1.5";
160799
+ const version3 = "0.1.6";
160800
160800
  const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
160801
160801
  const baseHeaders = {
160802
160802
  "User-Agent": userAgent2
@@ -210668,11 +210668,16 @@ var init_glob2 = __esm({
210668
210668
  relativePaths,
210669
210669
  this.getFileFilteringOptions()
210670
210670
  );
210671
+ const normalizePathForComparison = /* @__PURE__ */ __name((p) => process.platform === "win32" || process.platform === "darwin" ? p.toLowerCase() : p, "normalizePathForComparison");
210671
210672
  const filteredAbsolutePaths = new Set(
210672
- filteredPaths.map((p) => path40.resolve(this.config.getTargetDir(), p))
210673
+ filteredPaths.map(
210674
+ (p) => normalizePathForComparison(
210675
+ path40.resolve(this.config.getTargetDir(), p)
210676
+ )
210677
+ )
210673
210678
  );
210674
210679
  const filteredEntries = allEntries.filter(
210675
- (entry) => filteredAbsolutePaths.has(entry.fullpath())
210680
+ (entry) => filteredAbsolutePaths.has(normalizePathForComparison(entry.fullpath()))
210676
210681
  );
210677
210682
  if (!filteredEntries || filteredEntries.length === 0) {
210678
210683
  return {
@@ -225994,6 +225999,7 @@ var init_config3 = __esm({
225994
225999
  summarizeToolOutput;
225995
226000
  cliVersion;
225996
226001
  experimentalZedIntegration = false;
226002
+ chatRecordingEnabled;
225997
226003
  loadMemoryFromIncludeDirectories = false;
225998
226004
  webSearch;
225999
226005
  chatCompression;
@@ -226096,6 +226102,7 @@ var init_config3 = __esm({
226096
226102
  };
226097
226103
  this.contentGeneratorConfig = this._generationConfig;
226098
226104
  this.cliVersion = params.cliVersion;
226105
+ this.chatRecordingEnabled = params.chatRecording ?? true;
226099
226106
  this.loadMemoryFromIncludeDirectories = params.loadMemoryFromIncludeDirectories ?? false;
226100
226107
  this.chatCompression = params.chatCompression;
226101
226108
  this.interactive = params.interactive ?? false;
@@ -226134,7 +226141,7 @@ var init_config3 = __esm({
226134
226141
  (0, import_undici3.setGlobalDispatcher)(new import_undici3.ProxyAgent(this.getProxy()));
226135
226142
  }
226136
226143
  this.geminiClient = new GeminiClient(this);
226137
- this.chatRecordingService = new ChatRecordingService(this);
226144
+ this.chatRecordingService = this.chatRecordingEnabled ? new ChatRecordingService(this) : void 0;
226138
226145
  }
226139
226146
  /**
226140
226147
  * Must only be called once, throws if called again.
@@ -226223,7 +226230,7 @@ var init_config3 = __esm({
226223
226230
  startNewSession(sessionId) {
226224
226231
  this.sessionId = sessionId ?? randomUUID6();
226225
226232
  this.sessionData = void 0;
226226
- this.chatRecordingService = new ChatRecordingService(this);
226233
+ this.chatRecordingService = this.chatRecordingEnabled ? new ChatRecordingService(this) : void 0;
226227
226234
  if (this.initialized) {
226228
226235
  logStartSession(this, new StartSessionEvent(this));
226229
226236
  }
@@ -226608,6 +226615,9 @@ var init_config3 = __esm({
226608
226615
  * Returns the chat recording service.
226609
226616
  */
226610
226617
  getChatRecordingService() {
226618
+ if (!this.chatRecordingEnabled) {
226619
+ return void 0;
226620
+ }
226611
226621
  if (!this.chatRecordingService) {
226612
226622
  this.chatRecordingService = new ChatRecordingService(this);
226613
226623
  }
@@ -235966,8 +235976,8 @@ var init_git_commit = __esm({
235966
235976
  "packages/core/src/generated/git-commit.ts"() {
235967
235977
  "use strict";
235968
235978
  init_esbuild_shims();
235969
- GIT_COMMIT_INFO = "0c6afa42";
235970
- CLI_VERSION = "0.1.5";
235979
+ GIT_COMMIT_INFO = "9141f493";
235980
+ CLI_VERSION = "0.1.6";
235971
235981
  }
235972
235982
  });
235973
235983
 
@@ -275956,6 +275966,15 @@ var init_settingsSchema = __esm({
275956
275966
  default: true,
275957
275967
  description: "Play terminal bell sound when response completes or needs approval.",
275958
275968
  showInDialog: true
275969
+ },
275970
+ chatRecording: {
275971
+ type: "boolean",
275972
+ label: "Chat Recording",
275973
+ category: "General",
275974
+ requiresRestart: true,
275975
+ default: true,
275976
+ description: "Enable saving chat history to disk. Disabling this will also prevent --continue and --resume from working.",
275977
+ showInDialog: false
275959
275978
  }
275960
275979
  }
275961
275980
  },
@@ -346337,7 +346356,7 @@ __name(getPackageJson, "getPackageJson");
346337
346356
  // packages/cli/src/utils/version.ts
346338
346357
  async function getCliVersion() {
346339
346358
  const pkgJson = await getPackageJson();
346340
- return "0.1.5";
346359
+ return "0.1.6";
346341
346360
  }
346342
346361
  __name(getCliVersion, "getCliVersion");
346343
346362
 
@@ -349190,7 +349209,10 @@ async function parseArguments(settings) {
349190
349209
  }).deprecateOption(
349191
349210
  "proxy",
349192
349211
  'Use the "proxy" setting in settings.json instead. This flag will be removed in a future version.'
349193
- ).command(
349212
+ ).option("chat-recording", {
349213
+ type: "boolean",
349214
+ description: "Enable chat recording to disk. If false, chat history is not saved and --continue/--resume will not work."
349215
+ }).command(
349194
349216
  "$0 [query..]",
349195
349217
  "Launch RDMind CLI",
349196
349218
  (yargsInstance2) => yargsInstance2.positional("query", {
@@ -349722,7 +349744,11 @@ async function loadCliConfig(settings, extensions, extensionEnablementManager, a
349722
349744
  output: {
349723
349745
  format: outputSettingsFormat
349724
349746
  },
349725
- channel: argv.channel
349747
+ channel: argv.channel,
349748
+ // Precedence: explicit CLI flag > settings file > default(true).
349749
+ // NOTE: do NOT set a yargs default for `chat-recording`, otherwise argv will
349750
+ // always be true and the settings file can never disable recording.
349751
+ chatRecording: argv.chatRecording ?? settings.general?.chatRecording ?? true
349726
349752
  });
349727
349753
  }
349728
349754
  __name(loadCliConfig, "loadCliConfig");
@@ -352875,7 +352901,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
352875
352901
 
352876
352902
  // packages/cli/src/generated/git-commit.ts
352877
352903
  init_esbuild_shims();
352878
- var GIT_COMMIT_INFO2 = "0c6afa42";
352904
+ var GIT_COMMIT_INFO2 = "9141f493";
352879
352905
 
352880
352906
  // packages/cli/src/utils/systemInfo.ts
352881
352907
  async function getNpmVersion() {
@@ -387364,8 +387390,10 @@ var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1);
387364
387390
  var SessionSummaryDisplay = /* @__PURE__ */ __name(({
387365
387391
  duration: duration3
387366
387392
  }) => {
387393
+ const config2 = useConfig();
387367
387394
  const { stats } = useSessionStats();
387368
387395
  const hasMessages = stats.promptCount > 0;
387396
+ const canResume = !!config2.getChatRecordingService();
387369
387397
  return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
387370
387398
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
387371
387399
  StatsDisplay,
@@ -387374,7 +387402,7 @@ var SessionSummaryDisplay = /* @__PURE__ */ __name(({
387374
387402
  duration: duration3
387375
387403
  }
387376
387404
  ),
387377
- hasMessages && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Text3, { color: theme.text.secondary, children: [
387405
+ 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: [
387378
387406
  t3("To continue this session, run"),
387379
387407
  " ",
387380
387408
  /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Text3, { color: theme.text.accent, children: [
@@ -388315,7 +388343,7 @@ var Tips = /* @__PURE__ */ __name(({ config: config2 }) => {
388315
388343
  " ",
388316
388344
  t3("Official website:"),
388317
388345
  " ",
388318
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(dist_default6, { url: "https://fe.xiaohongshu.com/apps/reddevmind-web", children: "https://fe.xiaohongshu.com/apps/reddevmind-web" })
388346
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(dist_default6, { url: "https://rdmind.devops.xiaohongshu.com/apps/reddevmind-web", children: "https://rdmind.devops.xiaohongshu.com/apps/reddevmind-web" })
388319
388347
  ] }),
388320
388348
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text3, { color: theme.text.primary, children: " " }),
388321
388349
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text3, { color: theme.text.primary, children: t3("Usage Guide:") }),
@@ -408682,6 +408710,11 @@ var GeminiAgent = class {
408682
408710
  id: "qwen-oauth" /* QWEN_OAUTH */,
408683
408711
  name: "Qwen OAuth",
408684
408712
  description: "OAuth authentication for Qwen models with 2000 daily requests"
408713
+ },
408714
+ {
408715
+ id: "xhs-sso" /* XHS_SSO */,
408716
+ name: "Xiaohongshu SSO",
408717
+ description: "SSO authentication for Xiaohongshu"
408685
408718
  }
408686
408719
  ];
408687
408720
  const currentApprovalMode = this.config.getApprovalMode();
@@ -408690,12 +408723,12 @@ var GeminiAgent = class {
408690
408723
  name: APPROVAL_MODE_INFO[mode].name,
408691
408724
  description: APPROVAL_MODE_INFO[mode].description
408692
408725
  }));
408693
- const version3 = "0.1.5";
408726
+ const version3 = "0.1.6";
408694
408727
  return {
408695
408728
  protocolVersion: PROTOCOL_VERSION,
408696
408729
  agentInfo: {
408697
- name: "qwen-code",
408698
- title: "Qwen Code",
408730
+ name: "rdmind",
408731
+ title: "RDMind",
408699
408732
  version: version3
408700
408733
  },
408701
408734
  authMethods,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "RDMind - AI-powered coding assistant",
5
5
  "type": "module",
6
6
  "main": "cli.js",
@@ -20,7 +20,7 @@
20
20
  "locales"
21
21
  ],
22
22
  "config": {
23
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.5"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.6"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"