mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
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.
29 lines
612 B
Python
29 lines
612 B
Python
"""Backward-compatible shim.
|
|
|
|
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.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.agents.shared.permissions import (
|
|
Rule,
|
|
RuleAction,
|
|
Ruleset,
|
|
aggregate_action,
|
|
evaluate,
|
|
evaluate_many,
|
|
wildcard_match,
|
|
)
|
|
|
|
__all__ = [
|
|
"Rule",
|
|
"RuleAction",
|
|
"Ruleset",
|
|
"aggregate_action",
|
|
"evaluate",
|
|
"evaluate_many",
|
|
"wildcard_match",
|
|
]
|