mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
Promote the agent feature-flag resolver (AgentFeatureFlags / get_flags) out of `new_chat` into the cross-agent `app/agents/shared` kernel. feature_flags is a pure leaf consumed across the multi-agent middleware stack, the chat routes, and tests. Moved it via git mv (content unchanged) and flipped all 37 importers to app.agents.shared.feature_flags. A thin re-export shim remains at new_chat/feature_flags.py only for the not-yet-retired single-agent (chat_deepagent); it goes away with the single-agent deletion. Behavior-preserving: only import paths change. 1243 tests green.
22 lines
581 B
Python
22 lines
581 B
Python
"""Backward-compatible shim.
|
|
|
|
The agent feature-flag resolver moved to :mod:`app.agents.shared.feature_flags`
|
|
as part of promoting the shared agent toolkit out of ``new_chat`` into the
|
|
cross-agent kernel. Import from there directly; this re-export keeps the
|
|
not-yet-retired single-agent stack working during the migration and will be
|
|
removed with it.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from app.agents.shared.feature_flags import (
|
|
AgentFeatureFlags,
|
|
get_flags,
|
|
reload_for_tests,
|
|
)
|
|
|
|
__all__ = [
|
|
"AgentFeatureFlags",
|
|
"get_flags",
|
|
"reload_for_tests",
|
|
]
|