#!/usr/bin/env bash
# dev-up-noauth.sh — start Continuum in bypass mode (no Zitadel, no login required).
#
# Every request is stamped as the seed dev user:
#   user  dev@local  (00000000-0000-0000-0000-000000000001)
#   workspace  Local Dev Workspace  (00000000-0000-0000-0000-000000000001)
#
# Zitadel services are skipped — faster cold start, nothing to configure.
# Use dev-up-auth.sh when you need real login / multi-tenancy / SSO.
# Mobile is separate — run ./mobile-up-noauth.sh in another terminal.

set -euo pipefail
cd "$(dirname "$0")/src"

export AUTH_BYPASS=true
export ENVIRONMENT=development

echo ""
echo "  Continuum — bypass mode"
echo "  API   http://localhost:8000"
echo "  UI    http://localhost:5173"
echo "  Auth  BYPASSED — all requests run as seed dev user"
echo ""

exec docker compose up db redis api worker ui "$@"
