9294b44831
* fix: resolve pipeline and star import cycles - Add bootstrap.py and stage_order.py to break circular dependencies - Export Context, PluginManager, StarTools from star module - Update pipeline __init__ to defer imports - Split pipeline initialization into separate bootstrap module Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: add logging for get_config() failure in Star class * fix: reorder logger initialization in base.py --------- Co-authored-by: whatevertogo <whatevertogo@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
510 B
Python
20 lines
510 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
from astrbot.core.config import AstrBotConfig
|
|
|
|
from .context_utils import call_event_hook, call_handler
|
|
|
|
|
|
@dataclass
|
|
class PipelineContext:
|
|
"""上下文对象,包含管道执行所需的上下文信息"""
|
|
|
|
astrbot_config: AstrBotConfig # AstrBot 配置对象
|
|
plugin_manager: Any # 插件管理器对象
|
|
astrbot_config_id: str
|
|
call_handler = call_handler
|
|
call_event_hook = call_event_hook
|