MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / reconcileChildNoProxy

Function reconcileChildNoProxy

packages/agent-core/src/utils/proxy.ts:367–378  ·  view source on GitHub ↗
(
  childEnv: Record<string, string>,
  configEnv?: Record<string, string>,
)

Source from the content-addressed store, hash-verified

365 * `*` passes through verbatim. No-op when config sets no usable `NO_PROXY`.
366 */
367export function reconcileChildNoProxy(
368 childEnv: Record<string, string>,
369 configEnv?: Record<string, string>,
370): void {
371 const override = [configEnv?.['no_proxy'], configEnv?.['NO_PROXY']].find(
372 (value) => (value?.trim() ?? '').length > 0,
373 );
374 if (override === undefined) return;
375 const noProxy = resolveNoProxy({ no_proxy: override, NO_PROXY: override });
376 childEnv['NO_PROXY'] = noProxy;
377 childEnv['no_proxy'] = noProxy;
378}

Callers 2

proxy.test.tsFile · 0.90
mergeStdioEnvFunction · 0.90

Calls 1

resolveNoProxyFunction · 0.85

Tested by

no test coverage detected