Feature engineering improvements #376

Merged
LukeGus merged 20 commits from feature-engineering-improvements into dev-1.8.0 2025-10-08 01:06:01 +00:00
5 changed files with 8 additions and 6 deletions
Showing only changes of commit d75b76dbb9 - Show all commits
+1 -2
View File
@@ -1124,9 +1124,8 @@ async function deploySSHKeyToHost(
): Promise<{ success: boolean; message?: string; error?: string }> { ): Promise<{ success: boolean; message?: string; error?: string }> {
return new Promise((resolve) => { return new Promise((resolve) => {
const conn = new Client(); const conn = new Client();
let connectionTimeout: NodeJS.Timeout;
connectionTimeout = setTimeout(() => { const connectionTimeout = setTimeout(() => {
conn.destroy(); conn.destroy();
resolve({ success: false, error: "Connection timeout" }); resolve({ success: false, error: "Connection timeout" });
}, 120000); }, 120000);
+1 -1
View File
@@ -60,7 +60,7 @@ class SSHConnectionPool {
return client; return client;
} }
return new Promise((resolve, reject) => { return new Promise((resolve, _reject) => {
const checkAvailable = () => { const checkAvailable = () => {
const available = connections.find((conn) => !conn.inUse); const available = connections.find((conn) => !conn.inUse);
if (available) { if (available) {
+3 -1
View File
@@ -21,7 +21,9 @@ import { systemLogger, versionLogger } from "./utils/logger.js";
if (persistentConfig.parsed) { if (persistentConfig.parsed) {
Object.assign(process.env, persistentConfig.parsed); Object.assign(process.env, persistentConfig.parsed);
} }
} catch {} } catch {
// Ignore errors if .env file doesn't exist
}
let version = "unknown"; let version = "unknown";
-1
View File
@@ -108,7 +108,6 @@ class AuthManager {
if (migrationResult.migrated) { if (migrationResult.migrated) {
await saveMemoryDatabaseToFile(); await saveMemoryDatabaseToFile();
} else {
} }
} catch (error) { } catch (error) {
databaseLogger.error("Lazy encryption migration failed", error, { databaseLogger.error("Lazy encryption migration failed", error, {
+3 -1
View File
@@ -37,7 +37,9 @@ class SystemCrypto {
process.env.JWT_SECRET = jwtMatch[1]; process.env.JWT_SECRET = jwtMatch[1];
return; return;
} }
} catch {} } catch {
// Ignore file read errors, will generate new secret
}
await this.generateAndGuideUser(); await this.generateAndGuideUser();
} catch (error) { } catch (error) {