@rdmind/rdmind 0.1.3 → 0.1.4-alpha.0

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 +31 -11
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -157976,6 +157976,20 @@ var init_converter2 = __esm({
157976
157976
  resetStreamingToolCalls() {
157977
157977
  this.streamingToolCallParser.reset();
157978
157978
  }
157979
+ /**
157980
+ * Unescape newline sequences in reasoning content from Gemini models.
157981
+ * Gemini sometimes returns reasoning_content with escaped newlines (\\n)
157982
+ * that need to be converted to actual newline characters.
157983
+ *
157984
+ * @param text The text with potential escaped newlines
157985
+ * @returns The text with escaped newlines converted to actual newlines
157986
+ */
157987
+ unescapeReasoningContent(text) {
157988
+ if (!text) return text;
157989
+ let result = text.replace(/\\n/g, "\n");
157990
+ result = result.replace(/\n{4,}/g, "\n\n\n");
157991
+ return result;
157992
+ }
157979
157993
  /**
157980
157994
  * Convert Gemini tool parameters to OpenAI JSON Schema format
157981
157995
  */
@@ -158328,7 +158342,8 @@ var init_converter2 = __esm({
158328
158342
  const parts = [];
158329
158343
  const reasoningText = choice2.message.reasoning_content;
158330
158344
  if (reasoningText) {
158331
- parts.push({ text: reasoningText, thought: true });
158345
+ const unescapedReasoningText = this.unescapeReasoningContent(reasoningText);
158346
+ parts.push({ text: unescapedReasoningText, thought: true });
158332
158347
  }
158333
158348
  if (choice2.message.content) {
158334
158349
  parts.push({ text: choice2.message.content });
@@ -158399,7 +158414,8 @@ var init_converter2 = __esm({
158399
158414
  const parts = [];
158400
158415
  const reasoningText = choice2.delta.reasoning_content;
158401
158416
  if (reasoningText) {
158402
- parts.push({ text: reasoningText, thought: true });
158417
+ const unescapedReasoningText = this.unescapeReasoningContent(reasoningText);
158418
+ parts.push({ text: unescapedReasoningText, thought: true });
158403
158419
  }
158404
158420
  if (choice2.delta?.content) {
158405
158421
  if (typeof choice2.delta.content === "string") {
@@ -160785,7 +160801,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
160785
160801
  };
160786
160802
  }
160787
160803
  async function createContentGenerator(config2, gcConfig, isInitialAuth) {
160788
- const version3 = "0.1.3";
160804
+ const version3 = "0.1.4-alpha.0";
160789
160805
  const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
160790
160806
  const baseHeaders = {
160791
160807
  "User-Agent": userAgent2
@@ -235931,8 +235947,8 @@ var init_git_commit = __esm({
235931
235947
  "packages/core/src/generated/git-commit.ts"() {
235932
235948
  "use strict";
235933
235949
  init_esbuild_shims();
235934
- GIT_COMMIT_INFO = "aeac6827";
235935
- CLI_VERSION = "0.1.3";
235950
+ GIT_COMMIT_INFO = "4f0a7859";
235951
+ CLI_VERSION = "0.1.4-alpha.0";
235936
235952
  }
235937
235953
  });
235938
235954
 
@@ -346404,7 +346420,7 @@ __name(getPackageJson, "getPackageJson");
346404
346420
  // packages/cli/src/utils/version.ts
346405
346421
  async function getCliVersion() {
346406
346422
  const pkgJson = await getPackageJson();
346407
- return "0.1.3";
346423
+ return "0.1.4-alpha.0";
346408
346424
  }
346409
346425
  __name(getCliVersion, "getCliVersion");
346410
346426
 
@@ -352771,7 +352787,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
352771
352787
 
352772
352788
  // packages/cli/src/generated/git-commit.ts
352773
352789
  init_esbuild_shims();
352774
- var GIT_COMMIT_INFO2 = "aeac6827";
352790
+ var GIT_COMMIT_INFO2 = "4f0a7859";
352775
352791
 
352776
352792
  // packages/cli/src/utils/systemInfo.ts
352777
352793
  async function getNpmVersion() {
@@ -395230,7 +395246,9 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config2, addItem) => {
395230
395246
  addItem(
395231
395247
  {
395232
395248
  type: "info" /* INFO */,
395233
- text: `Authenticated successfully with ${authType} credentials.`
395249
+ text: t3("Authenticated successfully with {{authType}} credentials.", {
395250
+ authType
395251
+ })
395234
395252
  },
395235
395253
  Date.now()
395236
395254
  );
@@ -395267,7 +395285,9 @@ var useAuthCommand = /* @__PURE__ */ __name((settings, config2, addItem) => {
395267
395285
  addItem(
395268
395286
  {
395269
395287
  type: "info" /* INFO */,
395270
- text: `Authenticated successfully with ${authType} credentials.`
395288
+ text: t3("Authenticated successfully with {{authType}} credentials.", {
395289
+ authType
395290
+ })
395271
395291
  },
395272
395292
  Date.now()
395273
395293
  );
@@ -405978,7 +405998,7 @@ var homeDirectoryCheck = {
405978
405998
  fs110.realpath(os47.homedir())
405979
405999
  ]);
405980
406000
  if (workspaceRealPath === homeRealPath) {
405981
- return "\u5F53\u524D\u6B63\u5728 ~ \u76EE\u5F55\u4E0B\u8FD0\u884C RDMind\uFF0C\u5EFA\u8BAE\u8FDB\u5165\u9879\u76EE\u76EE\u5F55";
406001
+ return "\u5F53\u524D\u6B63\u5728\u4E3B\u76EE\u5F55\u4E0B\u8FD0\u884C RDMind\uFF0C\u5EFA\u8BAE\u8FDB\u5165\u9879\u76EE\u76EE\u5F55";
405982
406002
  }
405983
406003
  return null;
405984
406004
  } catch (_err) {
@@ -408506,7 +408526,7 @@ var GeminiAgent = class {
408506
408526
  name: APPROVAL_MODE_INFO[mode].name,
408507
408527
  description: APPROVAL_MODE_INFO[mode].description
408508
408528
  }));
408509
- const version3 = "0.1.3";
408529
+ const version3 = "0.1.4-alpha.0";
408510
408530
  return {
408511
408531
  protocolVersion: PROTOCOL_VERSION,
408512
408532
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-alpha.0",
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.3"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.4-alpha.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"