v1.6.0: max_bot fixes — feature keys, flush→commit, test-run, categories, broadcast page, proxy error handling, deploy scripts

This commit is contained in:
2026-05-24 07:50:38 +03:00
parent bd048ea23d
commit 493e0b37a1
127 changed files with 6082 additions and 65 deletions
+40
View File
@@ -143,6 +143,12 @@ ROUTE_PERMISSIONS: dict[tuple[str, str], tuple[str, ...]] = {
("GET", "/service/bot-settings/users"): ("owner",),
("GET", "/service/bot-settings/test-runner"): ("owner",),
("GET", "/service/bot-settings/analytics"): ("owner",),
("GET", "/service/bot-settings/risk-questions"): ("owner",),
("GET", "/service/bot-settings/handoffs"): ("owner",),
("GET", "/service/bot-settings/notifications"): ("owner",),
("GET", "/service/bot-settings/broadcasts"): ("owner",),
("GET", "/service/bot-settings/storage"): ("owner",),
("GET", "/service/bot-settings/tickets"): ("owner",),
# === PORTAL / ROLE SETTINGS ===
("GET", "/service/portal-settings"): ("owner",),
@@ -179,6 +185,34 @@ ROUTE_PERMISSIONS: dict[tuple[str, str], tuple[str, ...]] = {
("GET", "/service/api/bot/broadcast/history"): ("owner",),
("POST", "/service/api/bot/broadcast"): ("owner",),
# === BOT RISK QUESTIONS ===
("GET", "/service/api/bot/risk-questions"): ("owner",),
("POST", "/service/api/bot/risk-questions/create"): ("owner",),
("POST", "/service/api/bot/risk-questions/edit"): ("owner",),
("POST", "/service/api/bot/risk-questions/toggle"): ("owner",),
("POST", "/service/api/bot/risk-questions/delete"): ("owner",),
# === BOT STORAGE ===
("GET", "/service/api/bot/storage/list"): ("owner",),
("GET", "/service/api/bot/storage/search"): ("owner",),
("GET", "/service/api/bot/storage/public-link"): ("owner",),
("GET", "/service/api/bot/storage/download"): ("owner",),
# === BOT TICKETS ===
("GET", "/service/api/bot/tickets"): ("owner",),
("GET", "/service/api/bot/tickets/{ticket_id}"): ("owner",),
("POST", "/service/api/bot/tickets/create"): ("owner",),
("POST", "/service/api/bot/tickets/{ticket_id}/message"): ("owner",),
("POST", "/service/api/bot/tickets/{ticket_id}/status"): ("owner",),
("GET", "/service/api/bot/engineers"): ("owner",),
# === BOT HANDOFFS / NOTIFICATIONS (non-standard paths) ===
("GET", "/service/bot-settings/handoffs/poll"): ("owner",),
("POST", "/service/bot-settings/handoffs/{handoff_id}/take"): ("owner",),
("POST", "/service/api/bot/handoffs/{handoff_id}/close"): ("owner",),
("GET", "/service/bot-settings/notifications/data"): ("owner",),
("POST", "/service/bot-settings/notifications/{notif_id}/read"): ("owner",),
# === OTHER API (main.py) ===
("GET", "/service/api/shs"): ("owner", "engineer", "technician"),
("GET", "/service/api/tasks"): ("owner", "engineer", "technician"),
@@ -207,6 +241,12 @@ DYNAMIC_ROUTES: set[tuple[str, str]] = {
("GET", "/service/documents/{slug}/edit"),
("POST", "/service/documents/{slug}/edit"),
("GET", "/service/documents/{slug}/download"),
("POST", "/service/bot-settings/handoffs/{handoff_id}/take"),
("POST", "/service/bot-settings/notifications/{notif_id}/read"),
("POST", "/service/api/bot/handoffs/{handoff_id}/close"),
("GET", "/service/api/bot/tickets/{ticket_id}"),
("POST", "/service/api/bot/tickets/{ticket_id}/message"),
("POST", "/service/api/bot/tickets/{ticket_id}/status"),
}
# Routes excluded from discover test (internal framework routes)