feat(network): centralize proxy settings and add MCP routing (NAN-315) (#6372)

* feat(network): share proxy settings across features and MCP (NAN-315)

* fix(network): address shared proxy review regressions

* test(network): align rebased OAuth fixtures with runtime admission

* fix(webui): configure shared proxy without leaving connection drafts

* feat(webui): add optional shared proxy authentication editor

* fix(webui): align proxy save tests and loading skeleton
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-22 15:49:27 +08:00
1 parent 872a83340d
commit 084b6bb394
181 files changed
+3740 -807

No files matched your search

+4
View File
@@ -6,9 +6,12 @@ import json
from collections.abc import Iterable
from copy import deepcopy
from dataclasses import dataclass
from dataclasses import field as dataclass_field
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Literal, TypeGuard, cast
from nanobot.config.network import NetworkConfig
if TYPE_CHECKING:
from nanobot.channels.plugin import ChannelPlugin
@@ -21,6 +24,7 @@ class ChannelValidationContext:
"""Host policy passed to package-owned setup validators."""
allow_local_service_access: bool = False
network: NetworkConfig = dataclass_field(default_factory=NetworkConfig)
# Keep callback contracts precise for static consumers. The public adapters below