mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: use explicit system config getter
This commit is contained in:
@@ -107,12 +107,13 @@ API dependencies must narrow that object to a domain runtime (for example,
|
||||
`AgentChatRuntime`) instead of adding a string key to a global service map.
|
||||
Legacy registries may delegate the same object while domains migrate, but they
|
||||
must not construct a second set of service instances.
|
||||
Canonical host consumers of the process-wide module, plugin and scheduler
|
||||
runtimes must call `get_module_manager()`, `get_plugin_manager()` and
|
||||
`get_scheduler()` explicitly. The class-shaped `ModuleManager` and `Scheduler`
|
||||
application facades, and concrete plugin manager class paths, remain compatibility
|
||||
boundaries for plugins and startup composition; host code must not import those
|
||||
facades or alias a getter back to a manager class name.
|
||||
Canonical host consumers of the process-wide module, plugin, scheduler and
|
||||
system-configuration runtimes must call `get_module_manager()`,
|
||||
`get_plugin_manager()`, `get_scheduler()` and `get_configured_system_config()`
|
||||
explicitly. The class-shaped `ModuleManager` and `Scheduler` application facades,
|
||||
the concrete plugin manager class paths and DB `SystemConfigOper` remain
|
||||
compatibility or composition boundaries; host code must not import those facades
|
||||
or alias a getter back to a manager/Oper class name.
|
||||
API, Scheduler and Chain deployment values are exposed as frozen snapshots from
|
||||
`HostRuntime.configuration`; canonical callers must not add a fresh direct
|
||||
`settings` import when the required field belongs to an existing snapshot.
|
||||
|
||||
Reference in New Issue
Block a user