refactor(agents): move permissions to app/agents/shared (slice 4a)

Relocate the permission evaluator (wildcard matcher + rule evaluation) to the
shared kernel and flip 43 non-frozen importers. A re-export shim remains at
new_chat/permissions.py for the frozen single-agent stack (chat_deepagent and
subagents/{config,providers/linear,providers/slack}); it will be removed when
that stack is retired.
This commit is contained in:
CREDO23 2026-06-04 12:38:30 +02:00
parent 3efe51e6ec
commit 8fca2753aa
45 changed files with 260 additions and 231 deletions

View file

@ -19,7 +19,7 @@ from sqlalchemy.orm.attributes import flag_modified
from app.agents.multi_agent_chat.constants import (
CONNECTOR_TYPE_TO_CONNECTOR_AGENT_MAPS,
)
from app.agents.new_chat.permissions import Rule, Ruleset
from app.agents.shared.permissions import Rule, Ruleset
from app.db import SearchSourceConnector, async_session_maker
logger = logging.getLogger(__name__)