Skip to content

Commit d4ccd32

Browse files
feat: preview native Hermes adoption
1 parent fb921cf commit d4ccd32

7 files changed

Lines changed: 584 additions & 7 deletions

File tree

‎requirements.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ fastapi
22
uvicorn
33
python-multipart
44
python-dotenv
5+
# Secret-safe inspection of existing Hermes YAML configuration.
6+
PyYAML
57
httpx
68
httpcore>=1.0,<2.0
79
pydantic>=2.13.4

‎routes/ulysses_routes.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
from src.ulysses_chroma import collect_chroma_persistence
1313
from src.ulysses_catalog import default_runtime_registry
1414
from src.ulysses_discovery import HostDiscoverySnapshot, collect_host_discovery
15+
from src.ulysses_hermes import collect_hermes_adoption
1516
from src.ulysses_topology import build_topology_report
1617

1718

1819
def setup_ulysses_routes(
1920
*,
2021
collector: Callable[[], HostDiscoverySnapshot] = collect_host_discovery,
2122
chroma_collector: Callable[[], dict] = collect_chroma_persistence,
23+
hermes_collector: Callable[[], dict] = collect_hermes_adoption,
2224
) -> APIRouter:
2325
router = APIRouter(prefix="/api/ulysses", tags=["ulysses"])
2426

@@ -35,4 +37,9 @@ async def get_chroma_persistence(request: Request) -> dict:
3537
require_admin(request)
3638
return await run_in_threadpool(chroma_collector)
3739

40+
@router.get("/hermes/adoption")
41+
async def get_hermes_adoption(request: Request) -> dict:
42+
require_admin(request)
43+
return await run_in_threadpool(hermes_collector)
44+
3845
return router

0 commit comments

Comments
 (0)