#!/bin/sh
# Diagnostic healthcheck for local smoke-tests.
#
# StartOS 0.4 uses the TypeScript `checkPortListening` probe defined in
# `startos/main.ts`; this script is NOT wired into the manifest. It's here
# so you can `docker exec` into the container and validate end-to-end DB
# connectivity against the app's /api/health endpoint.

set -eu

PORT="${PORT:-3000}"
curl -fsS "http://127.0.0.1:${PORT}/api/health"
