mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:00:43 +00:00
* feat: support operator-managed proxy routing * docs: add network proxy changelog entry * fix(proxy): restrict gateway bypass to loopback IPs * fix(cli): harden container proxy URL checks * docs(proxy): clarify gateway bypass scope * docs: remove proxy changelog entry * fix(proxy): clear startup CI guard failures * fix(proxy): harden gateway proxy policy parsing * fix(proxy): honor update shorthand proxy policy * fix(cli): redact proxy URL suffixes * test(proxy): keep gateway help off proxy startup * fix(proxy): keep overlapping lifecycle active * docs: add proxy changelog entry --------- Co-authored-by: joshavant <830519+joshavant@users.noreply.github.com>
29 lines
930 B
TypeScript
29 lines
930 B
TypeScript
/**
|
|
* Local type declaration for global-agent.
|
|
*
|
|
* The package ships TypeScript types in dist/index.d.ts but omits the
|
|
* "types" field in package.json, so TypeScript cannot resolve them
|
|
* automatically. This shim re-exports the types that OpenClaw uses.
|
|
*/
|
|
declare module "global-agent" {
|
|
/**
|
|
* Bootstraps global-agent by monkey-patching node:http and node:https.
|
|
* Must be called once before any HTTP requests are made.
|
|
* Reads proxy URL from global.GLOBAL_AGENT.HTTP_PROXY / HTTPS_PROXY at runtime.
|
|
*/
|
|
export function bootstrap(): void;
|
|
|
|
/**
|
|
* Creates a standalone proxy agent instance without setting global.GLOBAL_AGENT.
|
|
*/
|
|
export function createGlobalProxyAgent(config?: {
|
|
environmentVariableNamespace?: string;
|
|
forceGlobalAgent?: boolean;
|
|
socketConnectionTimeout?: number;
|
|
}): {
|
|
HTTP_PROXY: string | null;
|
|
HTTPS_PROXY: string | null;
|
|
NO_PROXY: string | null;
|
|
};
|
|
}
|