feat(plugin-system): add workflow pipeline and cross-plugin service registry

This commit is contained in:
DrSmoothl
2026-02-20 19:24:05 +08:00
parent 6bcd7cbebb
commit 6fcc53a22b
16 changed files with 1036 additions and 19 deletions

View File

@@ -0,0 +1,14 @@
from enum import Enum
class WorkflowErrorCode(Enum):
"""Workflow统一错误码"""
PLUGIN_NOT_READY = "PLUGIN_NOT_READY"
STEP_TIMEOUT = "STEP_TIMEOUT"
BAD_PAYLOAD = "BAD_PAYLOAD"
DOWNSTREAM_FAILED = "DOWNSTREAM_FAILED"
POLICY_BLOCKED = "POLICY_BLOCKED"
def __str__(self) -> str:
return self.value