feat(memory): scope coding ajoute pour CLAUDE/GEMINI/NABIL
This commit is contained in:
+7
-3
@@ -3,15 +3,19 @@ from typing import List
|
|||||||
# Scopes matrix according to prompt.md
|
# Scopes matrix according to prompt.md
|
||||||
# agent -> list of allowed scopes
|
# agent -> list of allowed scopes
|
||||||
AGENT_SCOPES = {
|
AGENT_SCOPES = {
|
||||||
"CLAUDE": ["infra", "llm", "nyora", "perso", "tt"],
|
"CLAUDE": ["infra", "llm", "nyora", "perso", "tt", "coding"],
|
||||||
"HERMES_TT": ["infra", "llm", "tt"],
|
"HERMES_TT": ["infra", "llm", "tt"],
|
||||||
"HERMES_NYORA": ["infra", "llm", "nyora"],
|
"HERMES_NYORA": ["infra", "llm", "nyora"],
|
||||||
"HERMES_PERSO": ["infra", "llm", "nyora", "perso"],
|
"HERMES_PERSO": ["infra", "llm", "nyora", "perso"],
|
||||||
"GEMINI": ["infra", "llm", "nyora"],
|
"GEMINI": ["infra", "llm", "nyora", "coding"],
|
||||||
"NABIL": ["infra", "llm", "nyora", "perso", "tt"] # Assuming Nabil has access to all
|
"NABIL": ["infra", "llm", "nyora", "perso", "tt", "coding"] # Assuming Nabil has access to all
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# "coding" est transverse (memory_entries), pas dans ALL_SCOPES qui reste les
|
||||||
|
# scopes "rules" historiques (dict plat) ; get_agent_config/get_my_context ne
|
||||||
|
# doivent pas essayer de charger "coding" comme un scope rules classique.
|
||||||
ALL_SCOPES = ["infra", "llm", "nyora", "perso", "tt"]
|
ALL_SCOPES = ["infra", "llm", "nyora", "perso", "tt"]
|
||||||
|
MEMORY_SCOPES = ["coding"]
|
||||||
|
|
||||||
def has_scope_access(agent_name: str, scope: str) -> bool:
|
def has_scope_access(agent_name: str, scope: str) -> bool:
|
||||||
allowed_scopes = AGENT_SCOPES.get(agent_name.upper(), [])
|
allowed_scopes = AGENT_SCOPES.get(agent_name.upper(), [])
|
||||||
|
|||||||
Reference in New Issue
Block a user