recoder-code 2.1.1 → 2.1.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.
- package/cli/interactive.js +12 -4
- package/cli/run.js +4 -1
- package/package.json +1 -1
package/cli/interactive.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const readline = require('readline');
|
|
4
|
-
|
|
4
|
+
// Handle chalk properly
|
|
5
|
+
const chalkModule = require('chalk');
|
|
6
|
+
const chalk = chalkModule.default || chalkModule;
|
|
5
7
|
const fs = require('fs');
|
|
6
8
|
const path = require('path');
|
|
7
9
|
const crypto = require('crypto');
|
|
@@ -113,7 +115,9 @@ class InteractiveRecoderChat {
|
|
|
113
115
|
this.visionAnalyzer = null;
|
|
114
116
|
this.nlProcessor = null;
|
|
115
117
|
|
|
116
|
-
this.initializeAdvancedSystems()
|
|
118
|
+
this.initializeAdvancedSystems().catch(error => {
|
|
119
|
+
console.log(chalk.yellow(`⚠️ Advanced features initialization failed: ${error.message}`));
|
|
120
|
+
});
|
|
117
121
|
|
|
118
122
|
// Initialize project manager for persistence
|
|
119
123
|
this.projectManager = new ProjectManager();
|
|
@@ -151,8 +155,12 @@ class InteractiveRecoderChat {
|
|
|
151
155
|
|
|
152
156
|
this.setupEventHandlers();
|
|
153
157
|
this.initializeFileWatcher();
|
|
154
|
-
this.analyzeProjectContext()
|
|
155
|
-
|
|
158
|
+
this.analyzeProjectContext().catch(error => {
|
|
159
|
+
console.log(chalk.yellow(`⚠️ Project context analysis failed: ${error.message}`));
|
|
160
|
+
});
|
|
161
|
+
this.loadPlugins().catch(error => {
|
|
162
|
+
console.log(chalk.yellow(`⚠️ Plugin loading failed: ${error.message}`));
|
|
163
|
+
});
|
|
156
164
|
this.displayWelcome();
|
|
157
165
|
}
|
|
158
166
|
|
package/cli/run.js
CHANGED
|
@@ -2316,7 +2316,10 @@ async function main() {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
|
|
2318
2318
|
if (require.main === module) {
|
|
2319
|
-
main()
|
|
2319
|
+
main().catch(error => {
|
|
2320
|
+
console.error('Error:', error.message);
|
|
2321
|
+
process.exit(1);
|
|
2322
|
+
});
|
|
2320
2323
|
}
|
|
2321
2324
|
|
|
2322
2325
|
module.exports = { RecoderCode };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "recoder-code",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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": {
|