refactor: remove unused runtime and WebUI helpers (#5999)

* refactor: remove unused runtime and WebUI helpers

* fix: preserve exported agent helper methods
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-02 01:41:05 +08:00
1 parent d3d70f2065
commit 6ecb74aea9
17 files changed
+26 -143

No files matched your search

-34
View File
@@ -583,40 +583,6 @@ class WebUISettingsRouter:
)
)
_coerce_channel_value = staticmethod(system_domain.coerce_channel_value)
_assign_channel_config_value = staticmethod(
system_domain.assign_channel_config_value
)
def _nanobot_features_payload(self) -> dict[str, Any]:
return nanobot_features_payload(config_path=self.settings.config.path)
def _nanobot_features_action(
self,
action: str,
query: QueryParams,
*,
allow_install: bool = True,
) -> dict[str, Any]:
return self.settings.mutate(
nanobot_features_action,
action,
query,
allow_install=allow_install,
)
def _allow_feature_package_install(
self,
connection: Any,
request: WsRequest,
) -> bool:
domain_request = self._domain_request(
connection,
request,
needs_local_browser=True,
)
return self._system.allow_feature_package_install(domain_request)
async def _handle_mcp_oauth_start(self, request: WsRequest) -> Response:
if not self._authorized(request):
return self._unauthorized()