mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-04 04:23:20 +00:00
Captures the stock-LangGraph deployment of this fork at Sea Haven: - systemd/open-swe.service: langgraph dev (:2024) + store seed ExecStartPost - seed_store.sh: re-seeds team_settings + user_mappings (in-memory store resets on restart); env-parameterized, no secrets - nginx/openswe.conf: dashboard SPA + scoped /dashboard/api proxy (security boundary; agent API not exposed) - aegra/: deferred self-hosted-runtime alternative (not active on stock) - DEPLOYMENT.md: full runbook (models, build, ingress, OAuth callback) Secrets and internal infra identifiers are intentionally excluded (public fork); real values live in private IT docs.
19 lines
987 B
Python
19 lines
987 B
Python
"""Aegra entrypoint for Open SWE graphs.
|
|
|
|
Aegra loads graph files standalone via importlib.spec_from_file_location, which
|
|
gives them a synthetic module name and breaks agent/*.py's package-relative
|
|
imports (e.g. `from .dashboard.admin import ...`). Re-exporting the graphs here
|
|
through the installed ``agent`` package (absolute imports) restores correct
|
|
``__package__`` resolution, so the relative imports inside the agent modules work.
|
|
"""
|
|
|
|
from agent.server import traced_agent as agent_graph
|
|
from agent.reviewer import traced_reviewer_agent as reviewer_graph
|
|
from agent.analyzer import traced_analyzer as analyzer_graph
|
|
|
|
# Open SWE's FastAPI webapp (GitHub/Slack webhooks + dashboard API), mounted by
|
|
# Aegra via the "http" key in aegra.json. Absolute import for the same reason as
|
|
# the graphs above (relative imports break under Aegra's standalone file loader).
|
|
from agent.webapp import app as webapp_app
|
|
|
|
__all__ = ["agent_graph", "reviewer_graph", "analyzer_graph", "webapp_app"]
|