Add admin web UI (Phase 2): spend dashboard, media gallery, provider management

Fastify + single-page frontend on shared @nexusai/core. Reads the same SQLite
journal and media dir. Features: usage stats (by provider/capability/day),
content gallery (image/audio/video with local file serving + path-traversal
guard), provider CRUD with encrypted keys (masked in UI), enable/disable,
set-default, and real key validation via zero-cost /media/models call.
Adds Journal.getById and NordRouterMediaProvider.checkKey to core.
This commit is contained in:
OpenCode
2026-08-17 17:22:07 +07:00
parent 62c692c5a1
commit 679e56424b
13 changed files with 1495 additions and 5 deletions
+4
View File
@@ -41,5 +41,9 @@ NEXUS_STT_COMPUTE=auto # auto | int8 | float16
# HuggingFace mirror (for restricted networks)
# HF_ENDPOINT=https://hf-mirror.com
# --- Admin web UI (packages/admin) ---
NEXUS_ADMIN_HOST=127.0.0.1
NEXUS_ADMIN_PORT=4123
# --- Proxy (optional) ---
# NEXUS_HTTP_PROXY=http://proxy:8080