refactor: move mcp auth record ownership

This commit is contained in:
lda
2026-06-06 15:01:39 +07:00 Verified
parent 0028528269
commit a28ca5434a
150 changed files with 557 additions and 549 deletions
+3 -1
View File
@@ -8,7 +8,6 @@ from .commands import (
admin,
artifacts,
caps,
config as config_commands,
deployments,
docs,
drafts,
@@ -17,6 +16,9 @@ from .commands import (
schema,
sources,
)
from .commands import (
config as config_commands,
)
from .context import CliTyperState
app = typer.Typer(
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from typing import Annotated
import typer
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from typing import Annotated, Literal
import typer
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from typing import Annotated
import typer
+1 -2
View File
@@ -5,9 +5,8 @@ from typing import Annotated
import typer
from wf_mcp.broker.config import migrate_broker_config_file
from wf_cli.io import emit_json
from wf_mcp.broker.config import migrate_broker_config_file
app = typer.Typer(
name="config",
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from pathlib import Path
from typing import Annotated
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from pathlib import Path
from typing import Annotated, Literal
+6 -3
View File
@@ -1,14 +1,15 @@
from __future__ import annotations
from pathlib import Path
import time
from pathlib import Path
from typing import Annotated
import typer
from wf_api import TraceRange
from wf_cli.context import load_cli_context_from_typer
from wf_cli.io import CliInputError, emit_json, parse_json_input
from wf_cli.remote_errors import run_cli_operation
from wf_api import TraceRange
app = typer.Typer(
name="run",
@@ -99,7 +100,9 @@ def watch_run(
context = load_cli_context_from_typer(ctx)
started_at = time.monotonic()
while True:
payload = run_cli_operation(context, context.handlers.inspect_run(run_id=run_id))
payload = run_cli_operation(
context, context.handlers.inspect_run(run_id=run_id)
)
if payload.get("status") in _STOPPED_RUN_STATUSES:
if include_trace:
trace_payload = run_cli_operation(
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
import json
from pathlib import Path
from typing import Annotated, Any
+1
View File
@@ -1,4 +1,5 @@
from __future__ import annotations
from typing import Annotated
import typer
+4 -4
View File
@@ -1,17 +1,17 @@
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
import json
from collections.abc import Mapping
from dataclasses import dataclass
from pathlib import Path
import typer
from pydantic import ValidationError
from wf_api import (
WorkflowApi,
WorkflowAdminApi,
WorkflowAdminSurface,
WorkflowApi,
WorkflowApiSurface,
WorkflowSourceAdminApi,
WorkflowSourceAdminSurface,
@@ -267,7 +267,7 @@ def _rpc_timeout_from_optional_config(
return override
try:
config = load_workflow_config(path)
except (FileNotFoundError, json.JSONDecodeError, ValidationError):
except FileNotFoundError, json.JSONDecodeError, ValidationError:
return 30.0
target = config.client.target
if isinstance(target, RpcHttpTargetConfig):
-1
View File
@@ -2,7 +2,6 @@ from __future__ import annotations
from .models import ExplainCard
EXPLAIN_CARDS: tuple[ExplainCard, ...] = (
ExplainCard(
code="source_missing",