MCPcopy Create free account
hub / github.com/EvoMap/evolver / isManagedProxyUpstreamResidual

Function isManagedProxyUpstreamResidual

src/proxy/clientSettings.js:151–160  ·  view source on GitHub ↗
(settings, cfg, baseValue, tokenValue, apiKeyValue)

Source from the content-addressed store, hash-verified

149}
150
151function isManagedProxyUpstreamResidual(settings, cfg, baseValue, tokenValue, apiKeyValue) {
152 const baseUrl = normalizeUrl(baseValue);
153 const token = typeof tokenValue === 'string' ? tokenValue.trim() : '';
154 const apiKey = typeof apiKeyValue === 'string' ? apiKeyValue.trim() : '';
155 if (!isLoopbackProxyUrl(baseUrl)
156 || (!isValidReusableProxyToken(token) && !isValidReusableProxyToken(apiKey))) {
157 return false;
158 }
159 return hasManagedProxyMarker(settings) || String(cfg && cfg.EVOMAP_PROXY_AUTO_INJECTED || '') === '1';
160}
161
162function safeStoredUpstreamBaseUrl(settings, cfg, value, opts = {}) {
163 const baseUrl = normalizeUrl(value);

Callers 1

syncClaudeProxySettingsFunction · 0.85

Calls 4

normalizeUrlFunction · 0.85
hasManagedProxyMarkerFunction · 0.85
isLoopbackProxyUrlFunction · 0.70

Tested by

no test coverage detected