5a581c78a2
Build / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Lint / ruff (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.11) (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.12) (push) Has been cancelled
Test / pytest (windows-latest, 3.11) (push) Has been cancelled
Test / pytest (windows-latest, 3.12) (push) Has been cancelled
Introduce provider, model, and invocation contracts with encrypted configuration persistence. Add web runtime fencing, route fallback, recovery middleware, workspace scoping, and comprehensive tests.
31 lines
1021 B
Bash
Executable File
31 lines
1021 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
PROJECT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
LANGGRAPH_CONFIG="${PROJECT_DIR}/EvoScientist/langgraph_dev/langgraph.json"
|
|
HOST="${EVOSCIENTIST_LANGGRAPH_HOST:-127.0.0.1}"
|
|
PORT="${EVOSCIENTIST_LANGGRAPH_DEV_PORT:-3076}"
|
|
WEB_ENV="${PROJECT_DIR}/../Ai4Sci-Web/.env"
|
|
|
|
if [[ ! -x "${PROJECT_DIR}/.venv/bin/langgraph" ]]; then
|
|
echo "LangGraph executable not found: ${PROJECT_DIR}/.venv/bin/langgraph" >&2
|
|
echo "Run 'uv sync' in ${PROJECT_DIR} first." >&2
|
|
exit 1
|
|
fi
|
|
|
|
cd "${PROJECT_DIR}"
|
|
|
|
# The Web Gateway always supplies a verified conversation workspace scope.
|
|
export EVOSCIENTIST_DEPLOY_MODE="${EVOSCIENTIST_DEPLOY_MODE:-full}"
|
|
export EVOSCIENTIST_WORKSPACE_DIR="${EVOSCIENTIST_WORKSPACE_DIR:-${PROJECT_DIR}/../.ai4sci/workspace}"
|
|
|
|
exec uv run --env-file "${WEB_ENV}" langgraph dev \
|
|
--config "${LANGGRAPH_CONFIG}" \
|
|
--host "${HOST}" \
|
|
--port "${PORT}" \
|
|
--no-browser \
|
|
--no-reload \
|
|
--allow-blocking \
|
|
--n-jobs-per-worker 1
|