This commit is contained in:
ZacharyZhang-NY committed 2026-04-05 20:14:48 -04:00
1 parent 09971cabc2
commit 9145572422
163 files changed
+3348 -2874

No files matched your search

+1 -7
View File
@@ -1,4 +1,3 @@
import { execSync } from "node:child_process";
import {
IPC_CHANNELS,
companyInputSchema,
@@ -96,12 +95,7 @@ export function registerCoreAdminHandlers({
});
registerHandle(IPC_CHANNELS.checkNodeInstalled, async () => {
try {
const raw = execSync("node --version", { encoding: "utf8", timeout: 10000 }).trim();
return ok({ installed: true, version: raw || null });
} catch {
return ok({ installed: false, version: null });
}
return ok({ installed: true, version: process.version });
});
registerHandle(IPC_CHANNELS.openTerminalCommand, async (_event, payload) => {