import { bootstrap } from "./bootstrap"; import { parseRuntimeArgs } from "./config"; import { createConsoleFallback } from "./logger"; async function main() { const { configPath } = parseRuntimeArgs(); await bootstrap({ configPath, mode: "development" }); } void main().catch((error) => { createConsoleFallback().fatal(`启动失败: ${error instanceof Error ? error.message : String(error)}`); process.exit(1); });