SurfSense/surfsense_backend/app/agents/new_chat/permissions.py

30 lines
612 B
Python
Raw Normal View History

"""Backward-compatible shim.
2026-04-28 09:22:19 -07:00
The permission evaluator now lives in the shared agent kernel at
``app.agents.shared.permissions``. This module re-exports it so frozen
single-agent code (``chat_deepagent`` and ``subagents/*``) keeps working
until that stack is retired.
2026-04-28 09:22:19 -07:00
"""
from __future__ import annotations
from app.agents.shared.permissions import (
Rule,
RuleAction,
Ruleset,
aggregate_action,
evaluate,
evaluate_many,
wildcard_match,
)
2026-04-28 09:22:19 -07:00
__all__ = [
"Rule",
"RuleAction",
"Ruleset",
"aggregate_action",
"evaluate",
"evaluate_many",
"wildcard_match",
]