#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")"

echo "📝 Generating initial CI configuration..."
echo ""

# config.ncl is already provided as the initial state
if [ -f "config.ncl" ]; then
    echo "✅ Initial config.ncl already exists"
    echo ""
    echo "Current configuration:"
    echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
    cat config.ncl
    echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
    echo ""
    echo "Next steps:"
    echo "  ./02-roundtrip-cli.sh   # Edit with CLI backend"
    echo "  ./03-roundtrip-tui.sh   # Edit with TUI backend"
    echo "  ./04-roundtrip-web.sh   # Edit with Web backend"
else
    echo "❌ config.ncl not found!"
    exit 1
fi
