#!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")/.." npm ci --ignore-scripts --no-audit --no-fund uv sync --project apps/market-api --frozen --no-dev --no-install-project npm run lint --workspace=apps/web npm test --workspace=apps/web npm run build --workspace=apps/web -- --outDir /tmp/message-check-web node tests/native_api/test_auth_schema.mjs npm run test:runtime node --test plugins/mcp-export/tests/*.test.mjs apps/market-api/.venv/bin/python -m unittest discover -s tests/native_api -v apps/market-api/.venv/bin/python tests/security/mcp_revocation.py apps/market-api/.venv/bin/python tests/security/recovery_logs.py if [[ "${1:-}" == "--browser" ]]; then uv sync --project apps/market-api --frozen --group test --no-install-project apps/market-api/.venv/bin/python tests/e2e/cloud_delivery.py fi