recoder-code 2.0.0 → 2.0.3

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.
@@ -1,6 +1,8 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
- const chalk = require('chalk');
3
+ // Handle chalk properly
4
+ const chalkModule = require('chalk');
5
+ const chalk = chalkModule.default || chalkModule;
4
6
  const util = require('util');
5
7
 
6
8
  class DebugLogger {
@@ -972,54 +972,15 @@ class InteractiveRecoderChat {
972
972
 
973
973
  displayWelcome() {
974
974
  console.clear();
975
- const currentConv = this.getCurrentConversation();
976
-
977
- // ASCII Art Banner like Claude Code
978
- console.log(chalk.bold.blue('██████╗ ███████╗ ██████╗ ██████╗ ██████╗ ███████╗██████╗ '));
979
- console.log(chalk.bold.blue('██╔══██╗██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗'));
980
- console.log(chalk.bold.blue('██████╔╝█████╗ ██║ ██║ ██║██║ ██║█████╗ ██████╔╝'));
981
- console.log(chalk.bold.blue('██╔══██╗██╔══╝ ██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗'));
982
- console.log(chalk.bold.blue('██║ ██║███████╗╚██████╗╚██████╔╝██████╔╝███████╗██║ ██║'));
983
- console.log(chalk.bold.blue('╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝'));
984
- console.log(chalk.gray(' ████████████████████████████████████████████████████████ '));
985
- console.log(chalk.bold.green('🚀 Welcome to Recoder Interactive Chat'));
986
- console.log(chalk.gray('═══════════════════════════════════════'));
987
- console.log(chalk.yellow(`📡 Connected to: ${currentConv.model}`));
988
- console.log(chalk.gray(`🔑 Session ID: ${this.sessionId}`));
989
- console.log(chalk.cyan(`💬 Current Chat: ${currentConv.name} (${this.conversations.size} total)`));
990
-
991
- // Show voice status
992
- const voiceStatus = this.voiceManager.getStatus();
993
- if (voiceStatus.textToSpeechEnabled || voiceStatus.speechToTextEnabled) {
994
- const sttStatus = voiceStatus.speechToTextEnabled ? chalk.green('STT') : chalk.gray('STT');
995
- const ttsStatus = voiceStatus.textToSpeechEnabled ? chalk.green('TTS') : chalk.gray('TTS');
996
- console.log(chalk.gray(`🎤 Voice: ${sttStatus} | ${ttsStatus}`));
997
- }
998
-
999
- // Show IDE integration status
1000
- const ideContext = this.ideIntegration.getCurrentContext();
1001
- if (ideContext.ide !== 'terminal') {
1002
- console.log(chalk.gray(`🔧 IDE: ${chalk.cyan(ideContext.ide)} | Workspace: ${path.basename(ideContext.workspaceRoot)}`));
1003
- }
1004
975
 
976
+ // Simple welcome message like Claude Code
977
+ console.log('');
978
+ console.log(chalk.bold('✱ Welcome to Recoder-Code!'));
1005
979
  console.log('');
1006
- console.log(chalk.gray('Available commands:'));
1007
- console.log(chalk.gray(' /help - Show help'));
1008
- console.log(chalk.gray(' /clear - Clear conversation'));
1009
- console.log(chalk.gray(' /model - Switch model'));
1010
- console.log(chalk.gray(' /stats - Show usage stats'));
1011
- console.log(chalk.gray(' /save - Save conversation'));
1012
- console.log(chalk.gray(' /load - Load conversation'));
1013
- console.log(chalk.gray(' /chats - Manage conversations'));
1014
- console.log(chalk.gray(' /exit - Exit chat'));
980
+ console.log(chalk.gray('/help for help, /status for your current setup'));
1015
981
  console.log('');
1016
- console.log(chalk.gray('Multi-line input:'));
1017
- console.log(chalk.gray(' ``` - Start/end multi-line mode'));
982
+ console.log(chalk.gray(`cwd: ${process.cwd()}`));
1018
983
  console.log('');
1019
- console.log(chalk.gray('Quick shortcuts:'));
1020
- console.log(chalk.gray(' Ctrl+L - Clear screen'));
1021
- console.log(chalk.gray(' Ctrl+S - Quick save'));
1022
- console.log(chalk.gray(' Tab - Autocomplete'));
1023
984
  console.log('');
1024
985
  // Show session suggestions if available
1025
986
  this.showSessionSuggestions();
package/config.js CHANGED
@@ -4,10 +4,11 @@ module.exports = {
4
4
  maxTokens: 4096,
5
5
  temperature: 0.7,
6
6
  apiKey: process.env.OPENROUTER_API_KEY,
7
- model: process.env.OPENROUTER_MODEL || 'anthropic/claude-sonnet-4',
7
+ model: process.env.OPENROUTER_MODEL || 'deepseek/deepseek-chat-v3.1:free',
8
8
  fallbackModels: process.env.OPENROUTER_FALLBACK_MODELS ?
9
9
  process.env.OPENROUTER_FALLBACK_MODELS.split(',') :
10
10
  [
11
+ 'deepseek/deepseek-chat-v3.1:free',
11
12
  'anthropic/claude-3.5-sonnet'
12
13
  ],
13
14
  baseURL: 'https://openrouter.ai/api/v1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "recoder-code",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
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": {
@@ -27,7 +27,7 @@
27
27
  "security:audit": "npm audit --audit-level moderate",
28
28
  "optimize": "node scripts/optimize-package.js",
29
29
  "health-check": "node scripts/health-check.js",
30
- "postinstall": "echo 'Recoder-Code installed! Run: recoder-code --setup'",
30
+ "postinstall": "node -e \"console.log('\\n🚀 Recoder-Code installed successfully!\\n\\n✅ Quick Start:\\n recoder-code --setup\\n recoder-code\\n\\n💡 If command not found, restart your terminal or run:\\n export PATH=\\\"$(npm config get prefix)/bin:$PATH\\\"\\n')\"",
31
31
  "prepare": "echo 'Package prepared for distribution'",
32
32
  "prepublishOnly": "npm run prepare && npm run security:audit"
33
33
  },