@rdmind/rdmind 0.1.3-alpha.4 → 0.1.3-alpha.5

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 +14 -13
  2. package/package.json +2 -2
package/cli.js CHANGED
@@ -160739,7 +160739,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
160739
160739
  };
160740
160740
  }
160741
160741
  async function createContentGenerator(config2, gcConfig, isInitialAuth) {
160742
- const version3 = "0.1.3-alpha.4";
160742
+ const version3 = "0.1.3-alpha.5";
160743
160743
  const userAgent2 = `QwenCode/${version3} (${process.platform}; ${process.arch})`;
160744
160744
  const baseHeaders = {
160745
160745
  "User-Agent": userAgent2
@@ -235698,8 +235698,8 @@ var init_git_commit = __esm({
235698
235698
  "packages/core/src/generated/git-commit.ts"() {
235699
235699
  "use strict";
235700
235700
  init_esbuild_shims();
235701
- GIT_COMMIT_INFO = "30365ed6";
235702
- CLI_VERSION = "0.1.3-alpha.4";
235701
+ GIT_COMMIT_INFO = "5e9005a1";
235702
+ CLI_VERSION = "0.1.3-alpha.5";
235703
235703
  }
235704
235704
  });
235705
235705
 
@@ -346167,7 +346167,7 @@ __name(getPackageJson, "getPackageJson");
346167
346167
  // packages/cli/src/utils/version.ts
346168
346168
  async function getCliVersion() {
346169
346169
  const pkgJson = await getPackageJson();
346170
- return "0.1.3-alpha.4";
346170
+ return "0.1.3-alpha.5";
346171
346171
  }
346172
346172
  __name(getCliVersion, "getCliVersion");
346173
346173
 
@@ -352534,7 +352534,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
352534
352534
 
352535
352535
  // packages/cli/src/generated/git-commit.ts
352536
352536
  init_esbuild_shims();
352537
- var GIT_COMMIT_INFO2 = "30365ed6";
352537
+ var GIT_COMMIT_INFO2 = "5e9005a1";
352538
352538
 
352539
352539
  // packages/cli/src/utils/systemInfo.ts
352540
352540
  async function getNpmVersion() {
@@ -392368,7 +392368,7 @@ function formatSlashCommandLabel(command2) {
392368
392368
  __name(formatSlashCommandLabel, "formatSlashCommandLabel");
392369
392369
 
392370
392370
  // packages/cli/src/ui/hooks/useCommandCompletion.tsx
392371
- function useCommandCompletion(buffer, dirs, cwd7, slashCommands, commandContext, reverseSearchActive = false, config2) {
392371
+ function useCommandCompletion(buffer, dirs, cwd7, slashCommands, commandContext, reverseSearchActive = false, config2, shellModeActive = false) {
392372
392372
  const {
392373
392373
  suggestions,
392374
392374
  activeSuggestionIndex,
@@ -392390,7 +392390,7 @@ function useCommandCompletion(buffer, dirs, cwd7, slashCommands, commandContext,
392390
392390
  const cursorCol = buffer.cursor[1];
392391
392391
  const { completionMode, query, completionStart, completionEnd } = (0, import_react92.useMemo)(() => {
392392
392392
  const currentLine = buffer.lines[cursorRow] || "";
392393
- if (cursorRow === 0 && isSlashCommand(currentLine.trim())) {
392393
+ if (cursorRow === 0 && !shellModeActive && isSlashCommand(currentLine.trim())) {
392394
392394
  return {
392395
392395
  completionMode: "SLASH" /* SLASH */,
392396
392396
  query: currentLine,
@@ -392439,7 +392439,7 @@ function useCommandCompletion(buffer, dirs, cwd7, slashCommands, commandContext,
392439
392439
  completionStart: -1,
392440
392440
  completionEnd: -1
392441
392441
  };
392442
- }, [cursorRow, cursorCol, buffer.lines]);
392442
+ }, [cursorRow, cursorCol, buffer.lines, shellModeActive]);
392443
392443
  useAtCompletion({
392444
392444
  enabled: completionMode === "AT" /* AT */,
392445
392445
  pattern: query || "",
@@ -392779,7 +392779,8 @@ var InputPrompt = /* @__PURE__ */ __name(({
392779
392779
  slashCommands,
392780
392780
  commandContext,
392781
392781
  reverseSearchActive,
392782
- config2
392782
+ config2,
392783
+ shellModeActive
392783
392784
  );
392784
392785
  const reverseSearchCompletion = useReverseSearchCompletion(
392785
392786
  buffer,
@@ -397050,6 +397051,9 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
397050
397051
  const trimmedQuery = query.trim();
397051
397052
  onDebugMessage(`User query: '${trimmedQuery}'`);
397052
397053
  await logger6?.logMessage("user" /* USER */, trimmedQuery);
397054
+ if (shellModeActive && handleShellCommand(trimmedQuery, abortSignal)) {
397055
+ return { queryToSend: null, shouldProceed: false };
397056
+ }
397053
397057
  const slashCommandResult = isSlashCommand(trimmedQuery) ? await handleSlashCommand2(trimmedQuery) : false;
397054
397058
  if (slashCommandResult) {
397055
397059
  switch (slashCommandResult.type) {
@@ -397083,9 +397087,6 @@ var useGeminiStream = /* @__PURE__ */ __name((geminiClient, history, addItem, co
397083
397087
  }
397084
397088
  }
397085
397089
  }
397086
- if (shellModeActive && handleShellCommand(trimmedQuery, abortSignal)) {
397087
- return { queryToSend: null, shouldProceed: false };
397088
- }
397089
397090
  if (isAtCommand(trimmedQuery)) {
397090
397091
  const atCommandResult = await handleAtCommand({
397091
397092
  query: trimmedQuery,
@@ -407648,7 +407649,7 @@ var GeminiAgent = class {
407648
407649
  name: APPROVAL_MODE_INFO[mode].name,
407649
407650
  description: APPROVAL_MODE_INFO[mode].description
407650
407651
  }));
407651
- const version3 = "0.1.3-alpha.4";
407652
+ const version3 = "0.1.3-alpha.5";
407652
407653
  return {
407653
407654
  protocolVersion: PROTOCOL_VERSION,
407654
407655
  agentInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdmind/rdmind",
3
- "version": "0.1.3-alpha.4",
3
+ "version": "0.1.3-alpha.5",
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-alpha.4"
23
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.1.3-alpha.5"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"