#!/usr/bin/env bash set -euo pipefail CONFIG_PATH="${1:-configs/dev.yaml}" if [[ ! -f internal/app/ui/dist/index.html ]]; then echo "UI build not found; building frontend first..." make ui-build fi go run ./cmd/amcs-server --config "$CONFIG_PATH"