@rdmind/rdmind 0.1.1-alpha.4 → 0.1.2

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 +16 -6
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -160720,7 +160720,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
160720
160720
  };
160721
160721
  }
160722
160722
  async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
160723
- const version3 = "0.1.1-alpha.4";
160723
+ const version3 = "0.1.2";
160724
160724
  const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
160725
160725
  const baseHeaders = {
160726
160726
  "User-Agent": userAgent2
@@ -163555,6 +163555,10 @@ function getCoreSystemPrompt(userMemory, model) {
163555
163555
  throw new Error(`missing system prompt file '${systemMdPath}'`);
163556
163556
  }
163557
163557
  }
163558
+ const isGemini3 = model?.toLowerCase().includes("gemini-3-pro-preview");
163559
+ const mandatesVariant = isGemini3 ? `
163560
+
163561
+ - **Do not call tools in silence:** You must provide to the user very short and concise natural explanation (one sentence) before calling tools.` : ``;
163558
163562
  const basePrompt = systemMdEnabled ? fs22.readFileSync(systemMdPath, "utf8") : `
163559
163563
  You are RDMind, an interactive CLI agent, specializing in software engineering tasks. Your primary goal is to help users safely and efficiently, adhering strictly to the following instructions and utilizing your available tools.
163560
163564
 
@@ -163569,7 +163573,7 @@ You are RDMind, an interactive CLI agent, specializing in software engineering t
163569
163573
  - **Confirm Ambiguity/Expansion:** Do not take significant actions beyond the clear scope of the request without confirming with the user. If asked *how* to do something, explain first, don't just do it.
163570
163574
  - **Explaining Changes:** After completing a code modification or file operation *do not* provide summaries unless asked.
163571
163575
  - **Path Construction:** Before using any file system tool (e.g., ${ToolNames.READ_FILE}' or '${ToolNames.WRITE_FILE}'), you must construct the full absolute path for the file_path argument. Always combine the absolute path of the project's root directory with the file's path relative to the root. For example, if the project root is /path/to/project/ and the file is foo/bar/baz.txt, the final path you must use is /path/to/project/foo/bar/baz.txt. If the user provides a relative path, you must resolve it against the root directory to create an absolute path.
163572
- - **Do Not revert changes:** Do not revert changes to the codebase unless asked to do so by the user. Only revert changes made by you if they have resulted in an error or if the user has explicitly asked you to revert the changes.
163576
+ - **Do Not revert changes:** Do not revert changes to the codebase unless asked to do so by the user. Only revert changes made by you if they have resulted in an error or if the user has explicitly asked you to revert the changes.${mandatesVariant}
163573
163577
 
163574
163578
  # Task Management
163575
163579
  You have access to the ${ToolNames.TODO_WRITE} tool to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.
@@ -163659,8 +163663,14 @@ IMPORTANT: Always use the ${ToolNames.TODO_WRITE} tool to plan and track tasks t
163659
163663
  ## Tone and Style (CLI Interaction)
163660
163664
  - **Concise & Direct:** Adopt a professional, direct, and concise tone suitable for a CLI environment.
163661
163665
  - **Minimal Output:** Aim for fewer than 3 lines of text output (excluding tool use/code generation) per response whenever practical. Focus strictly on the user's query.
163662
- - **Clarity over Brevity (When Needed):** While conciseness is key, prioritize clarity for essential explanations or when seeking necessary clarification if a request is ambiguous.
163663
- - **No Chitchat:** Avoid conversational filler, preambles ("Okay, I will now..."), or postambles ("I have finished the changes..."). Get straight to the action or answer.
163666
+ - **Clarity over Brevity (When Needed):** While conciseness is key, prioritize clarity for essential explanations or when seeking necessary clarification if a request is ambiguous.${function() {
163667
+ if (isGemini3) {
163668
+ return "";
163669
+ } else {
163670
+ return `
163671
+ - **No Chitchat:** Avoid conversational filler, preambles ("Okay, I will now..."), or postambles ("I have finished the changes..."). Get straight to the action or answer.`;
163672
+ }
163673
+ }()}
163664
163674
  - **Formatting:** Use GitHub-flavored Markdown. Responses will be rendered in monospace.
163665
163675
  - **Tools vs. Text:** Use tools for actions, text output *only* for communication. Do not add explanatory comments within tool calls or code blocks unless specifically part of the required code/command itself.
163666
163676
  - **Handling Inability:** If unable/unwilling to fulfill a request, state so briefly (1-2 sentences) without excessive justification. Offer alternatives if appropriate.
@@ -235020,7 +235030,7 @@ var init_git_commit = __esm({
235020
235030
  "use strict";
235021
235031
  init_esbuild_shims();
235022
235032
  GIT_COMMIT_INFO = "896d0f2";
235023
- CLI_VERSION = "0.1.1-alpha.4";
235033
+ CLI_VERSION = "0.1.2";
235024
235034
  }
235025
235035
  });
235026
235036
 
@@ -345331,7 +345341,7 @@ __name(getPackageJson, "getPackageJson");
345331
345341
  // packages/cli/src/utils/version.ts
345332
345342
  async function getCliVersion() {
345333
345343
  const pkgJson = await getPackageJson();
345334
- return "0.1.1-alpha.4";
345344
+ return "0.1.2";
345335
345345
  }
345336
345346
  __name(getCliVersion, "getCliVersion");
345337
345347
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.1.1-alpha.4",
3
+ "version": "0.1.2",
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.1-alpha.4"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.2"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"