-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
main.py
27 lines (24 loc) · 1.14 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import sys
# clear modules cache if package is reloaded (after update?)
prefix = __package__ + '.plugins' # type: ignore # don't clear the base package
for module_name in [module_name for module_name in sys.modules if module_name.startswith(prefix)]:
del sys.modules[module_name]
del prefix
from .plugins.active_view_event import ActiveViewEventListener # noqa: E402, F401
from .plugins.ai_chat_event import AIChatViewEventListener # noqa: E402, F401
from .plugins.buffer import ( # noqa: E402, F401
EraseRegionCommand,
ReplaceRegionCommand,
TextStreamAtCommand,
)
from .plugins.openai import Openai # noqa: E402, F401
from .plugins.openai_panel import OpenaiPanelCommand # noqa: E402, F401
from .plugins.output_panel import SharedOutputPanelListener # noqa: E402, F401
from .plugins.phantom_streamer import PhantomStreamer # noqa: E402, F401
from .plugins.settings_reloader import ReloadSettingsListener # noqa: E402, F401
from .plugins.stop_worker_execution import ( # noqa: E402
StopOpenaiExecutionCommand, # noqa: F401
)
from .plugins.worker_running_context import ( # noqa: E402,
OpenaiWorkerRunningContext, # noqa: F401
)