wf_api: new neutral protocol

crazy test case btw wtf
This commit is contained in:
lda
2026-06-01 17:51:01 +07:00 Verified
parent d05da78847
commit 3b74174b6a
11 changed files with 1341 additions and 11 deletions
+4 -3
View File
@@ -5,9 +5,10 @@ from pathlib import Path
import typer
from wf_api import WorkflowApi
from wf_mcp.broker import build_service_from_config, load_broker_config
from wf_mcp.broker.service import WfMcpService
from wf_mcp.workflow_surface import WorkflowSurfaceHandlers
from wf_mcp.broker.service.workflow_api_backend import WfMcpWorkflowApiBackend
@dataclass(frozen=True)
@@ -22,7 +23,7 @@ class CliContext:
config_path: Path
service: WfMcpService
handlers: WorkflowSurfaceHandlers
handlers: WorkflowApi
def config_path_from_context(ctx: typer.Context) -> str:
@@ -40,5 +41,5 @@ def load_cli_context(config_path: str | Path) -> CliContext:
return CliContext(
config_path=resolved_config_path,
service=service,
handlers=WorkflowSurfaceHandlers(service),
handlers=WorkflowApi(WfMcpWorkflowApiBackend(service)),
)