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

View File

@@ -1124,9 +1124,8 @@ async function deploySSHKeyToHost(
): Promise<{ success: boolean; message?: string; error?: string }> {
return new Promise((resolve) => {
const conn = new Client();
let connectionTimeout: NodeJS.Timeout;
connectionTimeout = setTimeout(() => {
const connectionTimeout = setTimeout(() => {
conn.destroy();
resolve({ success: false, error: "Connection timeout" });
}, 120000);

View File

@@ -60,7 +60,7 @@ class SSHConnectionPool {
return client;
}
return new Promise((resolve, reject) => {
return new Promise((resolve, _reject) => {
const checkAvailable = () => {
const available = connections.find((conn) => !conn.inUse);
if (available) {

View File

@@ -21,7 +21,9 @@ import { systemLogger, versionLogger } from "./utils/logger.js";
if (persistentConfig.parsed) {
Object.assign(process.env, persistentConfig.parsed);
}
} catch {}
} catch {
// Ignore errors if .env file doesn't exist
}
let version = "unknown";

View File

@@ -108,7 +108,6 @@ class AuthManager {
if (migrationResult.migrated) {
await saveMemoryDatabaseToFile();
} else {
}
} catch (error) {
databaseLogger.error("Lazy encryption migration failed", error, {

View File

@@ -37,7 +37,9 @@ class SystemCrypto {
process.env.JWT_SECRET = jwtMatch[1];
return;
}
} catch {}
} catch {
// Ignore file read errors, will generate new secret
}
await this.generateAndGuideUser();
} catch (error) {