import { createApp } from "./app.ts"; import config from "./config.ts"; import { startSshServer } from "./services/sshServer.ts"; for (const cmd of ["git", "ssh-keygen"]) { const result = Bun.spawnSync(["which", cmd]); if (result.exitCode !== 0) { console.error(`Missing required command: ${cmd}`); process.exit(1); } } await createApp(config.PORT); if (!config.SSH_DISABLED) await startSshServer(); console.log(`Hearthforge running at http://localhost:${config.PORT}`);