mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
refactor(automations): vertical-slice actions and triggers by domain
This commit is contained in:
parent
ce45e11009
commit
8c32455818
24 changed files with 86 additions and 108 deletions
|
|
@ -1 +1,24 @@
|
|||
"""Action implementations. One subpackage per built-in action type."""
|
||||
"""Actions domain: registry surface + built-in action packages.
|
||||
|
||||
Each action lives in its own subpackage (``agent_task/``, ...) and self-registers
|
||||
at import time via its ``definition`` module. Side-effect imports below ensure
|
||||
the registry is populated whenever anyone touches the actions package.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .store import all_actions, get_action, register_action
|
||||
from .types import ActionContext, ActionDefinition, ActionHandler, ActionHandlerFactory
|
||||
|
||||
__all__ = [
|
||||
"ActionContext",
|
||||
"ActionDefinition",
|
||||
"ActionHandler",
|
||||
"ActionHandlerFactory",
|
||||
"all_actions",
|
||||
"get_action",
|
||||
"register_action",
|
||||
]
|
||||
|
||||
# Built-in actions self-register at import time.
|
||||
from . import agent_task # noqa: E402, F401
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue