deploy: fix TemplateResponse signature

This commit is contained in:
Antigravity
2026-06-24 22:10:04 +00:00
commit 458cdaa3c2
78 changed files with 2085 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
from typing import List
# Scopes matrix according to prompt.md
# agent -> list of allowed scopes
AGENT_SCOPES = {
"CLAUDE": ["infra", "llm", "nyora", "perso", "tt"],
"HERMES_TT": ["infra", "llm", "tt"],
"HERMES_NYORA": ["infra", "llm", "nyora"],
"HERMES_PERSO": ["infra", "llm", "nyora", "perso"],
"GEMINI": ["infra", "llm", "nyora"],
"NABIL": ["infra", "llm", "nyora", "perso", "tt"] # Assuming Nabil has access to all
}
ALL_SCOPES = ["infra", "llm", "nyora", "perso", "tt"]
def has_scope_access(agent_name: str, scope: str) -> bool:
allowed_scopes = AGENT_SCOPES.get(agent_name.upper(), [])
return scope in allowed_scopes
def get_allowed_scopes(agent_name: str) -> List[str]:
return AGENT_SCOPES.get(agent_name.upper(), [])