refactor(backend): final cleanup pass

- re-register WebAuthn passkey routes (registration was dropped in the
  #1054 merge, breaking passkey login) and document all six endpoints
- delete utils/simple-db-ops.ts (last caller migrated to DataCrypto)
- starter: use the typed serverReady export, collapse the four-way
  version lookup to env then package.json candidates
- add OpenAPI JSDoc to c2s-tunnel-presets endpoints
- strip block-divider comment banners
This commit is contained in:
LukeGus
2026-07-16 04:42:31 -05:00
parent 9c8528e4d2
commit f3a4d5662c
11 changed files with 216 additions and 233 deletions
-6
View File
@@ -54,10 +54,8 @@ interface TmuxSessionOverview extends TmuxSessionSummary {
tags: string[];
}
// ---------------------------------------------------------------------------
// SSH connection (lean variant of the per-module pattern used by server-stats
// and docker; jump hosts and SOCKS5 reuse the shared helpers)
// ---------------------------------------------------------------------------
async function buildSshConfig(host: SSHHost): Promise<ConnectConfig> {
const base: ConnectConfig = {
@@ -241,9 +239,7 @@ async function withHostConnection<T>(
return withConnection(getPoolKey(host), connectToHost(host), fn);
}
// ---------------------------------------------------------------------------
// tmux queries
// ---------------------------------------------------------------------------
async function tmuxAvailable(conn: Client): Promise<boolean> {
try {
@@ -326,9 +322,7 @@ async function collectPaneMetrics(
);
}
// ---------------------------------------------------------------------------
// Express app
// ---------------------------------------------------------------------------
const app = express();
const authManager = AuthManager.getInstance();