|
swarm stage 1: instance identity, PSK, hive registry, announce loop
- navi/identity.py: adjective-animal names + uuid in instance.json (generated at install, renameable by hand) - navi/swarm.py: HiveAnnouncer - periodic POST /announce to the hive with non-blocking reachability tracking (transitional logs, /health export, hive_status context provider reports outages to the agent) - hive/: standalone FastAPI address book (SQLite, port 8087, PSK via X-Swarm-Key with .swarm-key.previous rotation window, TTL online status, host from client IP, port from payload). Not installed or started by default - run manually on the main server. - ports moved to 8099 (API) / 8098 (UI MCP) - install.sh: PYTHONIOENCODING=utf-8 in the systemd unit, generates instance.json and .swarm-key on fresh installs |
|---|
|
|
| .env.example |
|---|
| .gitignore |
|---|
| deploy/env.template |
|---|
| deploy/install.sh |
|---|
| docs/config.md |
|---|
| docs/index.md |
|---|
| hive/README.md 0 → 100644 |
|---|
| hive/__init__.py 0 → 100644 |
|---|
| hive/app.py 0 → 100644 |
|---|
| hive/db.py 0 → 100644 |
|---|
| hive/hive.service 0 → 100644 |
|---|
| navi/api/routes/health.py |
|---|
| navi/config.py |
|---|
| navi/context_providers/hive_status.py 0 → 100644 |
|---|
| navi/core/context_builder.py |
|---|
| navi/identity.py 0 → 100644 |
|---|
| navi/main.py |
|---|
| navi/swarm.py 0 → 100644 |
|---|
| tests/unit/test_hive.py 0 → 100644 |
|---|
| tests/unit/test_identity.py 0 → 100644 |
|---|
| tests/unit/test_swarm.py 0 → 100644 |
|---|