refactor: move mcp auth record ownership
This commit is contained in:
@@ -9,6 +9,7 @@ from pydantic import BaseModel
|
||||
if __package__ in {None, ""}:
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
||||
|
||||
from examples.demo_workflow import build_demo_registry, build_demo_workflow
|
||||
from wf_authoring import (
|
||||
WorkflowBuilder,
|
||||
input_from,
|
||||
@@ -19,8 +20,6 @@ from wf_authoring import (
|
||||
from wf_core import END
|
||||
from wf_core.run_state import RunState
|
||||
|
||||
from examples.demo_workflow import build_demo_registry, build_demo_workflow
|
||||
|
||||
|
||||
class ChildInput(BaseModel):
|
||||
"""Input accepted by the wrapped child workflow."""
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from wf_core import END
|
||||
from wf_mcp.broker import WfMcpService
|
||||
|
||||
@@ -9,10 +9,10 @@ from wf_artifacts import (
|
||||
FileWorkflowArtifactStore,
|
||||
WorkflowDeployment,
|
||||
)
|
||||
from wf_mcp.broker import WfMcpService
|
||||
from wf_mcp.capabilities import DiscoveredPrompt, DiscoveredResource, DiscoveredTool
|
||||
from wf_mcp.models import AuthRecord, ConnectionConfig
|
||||
from wf_mcp.sdk import ToolCallResult
|
||||
from wf_mcp.broker import WfMcpService
|
||||
from wf_mcp.sdk.base import BackendAdapter
|
||||
from wf_mcp.storage import FileStore
|
||||
from wf_mcp.workflow_surface import WorkflowSurfaceHandlers
|
||||
|
||||
@@ -3,11 +3,10 @@ from __future__ import annotations
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from examples.mcp_workflow_surface import prepare_demo_service
|
||||
from wf_artifacts import WorkflowDeployment
|
||||
from wf_mcp.workflow_surface import WorkflowSurfaceHandlers
|
||||
|
||||
from examples.mcp_workflow_surface import prepare_demo_service
|
||||
|
||||
|
||||
async def author_echo_wrapper_from_capability(root: Path) -> dict[str, Any]:
|
||||
"""Author, save, deploy, and run one wrapper from capability hints.
|
||||
|
||||
Reference in New Issue
Block a user