feat(sofiia-console): add docs index and runbook search API (FTS5)

adds SQLite docs index (files/chunks + FTS5) and CLI rebuild

exposes authenticated runbook search/preview/raw endpoints

Made-with: Cursor
This commit is contained in:
Apple
2026-03-03 04:26:34 -08:00
parent bddb6cd75a
commit ef3ff80645
6 changed files with 484 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ from .nodes import get_nodes_dashboard
from .monitor import collect_all_nodes
from .ops import run_ops_action, OPS_ACTIONS
from .docs_router import docs_router
from .runbooks_router import runbooks_router
from . import db as _app_db
from .metrics import (
SOFIIA_SEND_REQUESTS_TOTAL,
@@ -462,6 +463,8 @@ app.add_middleware(
# Projects + Documents + Sessions + Dialog Map API
app.include_router(docs_router)
# Runbooks / docs index (read-only search & preview, PR1.1)
app.include_router(runbooks_router)
# ── WebSocket event bus ───────────────────────────────────────────────────────
_ws_clients: Set[WebSocket] = set()