83b680b2ea
新增 check_postgres_preflight() —— make dev 链 (check.py → serve.sh) 的最后一道 preflight: - config.yaml 不存在 → silent skip(让 setup_wizard 引导) - backend != postgres → silent skip - DATABASE_URL 未设 → FAIL with hint - postgres 设了但 host:port 3s socket 不通 → FAIL with 启 docker 提示 - 通则 OK + 显示 host:port 不在 serve.sh 里加:Makefile 已经把 check.py 串在 serve.sh 之前,FAIL 会 自然阻断启动;避免 bash + python 两处实现 PG 探测。 doctor.py 的 check_database 是事后诊断(make doctor);本 check 是事前 preflight(make dev/start)—— 互补。 Stage 0 PR2 T2.6. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>