recoder-code 2.2.5 → 2.2.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/interactive.js +19 -16
  2. package/package.json +1 -1
@@ -766,22 +766,10 @@ class InteractiveRecoderChat {
766
766
  }
767
767
 
768
768
  setupKeyboardShortcuts() {
769
- if (!this.keyboardShortcutsEnabled) return;
770
-
771
- // Only set up raw mode if stdin supports it (interactive terminal)
772
- if (process.stdin.isTTY && typeof process.stdin.setRawMode === 'function') {
773
- try {
774
- process.stdin.setRawMode(true);
775
- process.stdin.on('data', (key) => {
776
- this.handleKeyboardInput(key);
777
- });
778
- } catch (error) {
779
- this.logger.warn('Could not set up keyboard shortcuts', { error: error.message });
780
- this.keyboardShortcutsEnabled = false;
781
- }
782
- } else {
783
- this.keyboardShortcutsEnabled = false;
784
- }
769
+ // Disable raw mode keyboard shortcuts to prevent double input with readline
770
+ // Readline already handles keyboard input properly
771
+ this.keyboardShortcutsEnabled = false;
772
+ return;
785
773
  }
786
774
 
787
775
  handleKeyboardInput(key) {
@@ -917,6 +905,21 @@ class InteractiveRecoderChat {
917
905
  return [hits.length ? hits : commonModels, modelPrefix];
918
906
  }
919
907
 
908
+ // Show help menu when user just types /
909
+ if (line === '/') {
910
+ console.log(chalk.cyan('\nšŸ“‹ Available Commands:'));
911
+ console.log(chalk.gray('─'.repeat(50)));
912
+ console.log(chalk.yellow(' /help') + chalk.gray(' - Show all commands'));
913
+ console.log(chalk.yellow(' /clear') + chalk.gray(' - Clear conversation'));
914
+ console.log(chalk.yellow(' /model') + chalk.gray(' - Change AI model'));
915
+ console.log(chalk.yellow(' /stats') + chalk.gray(' - Show session stats'));
916
+ console.log(chalk.yellow(' /save') + chalk.gray(' - Save conversation'));
917
+ console.log(chalk.yellow(' /exit') + chalk.gray(' - Exit interactive mode'));
918
+ console.log(chalk.gray('─'.repeat(50)));
919
+ console.log(chalk.gray('Press TAB to autocomplete • Type /help for full list\n'));
920
+ return [commands, line];
921
+ }
922
+
920
923
  // Regular command completion
921
924
  if (line.startsWith('/')) {
922
925
  const hits = commands.filter(cmd => cmd.startsWith(line));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recoder-code",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities",
5
5
  "main": "index.js",
6
6
  "scripts": {