File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @xmz-ai/sandbox-runtime" ,
3- "version" : " 0.0.3 " ,
3+ "version" : " 0.0.4 " ,
44 "description" : " Xmz Sandbox Runtime - A general-purpose tool for wrapping security boundaries around arbitrary processes" ,
55 "type" : " module" ,
66 "main" : " ./dist/index.js" ,
3030 "@pondwader/socks5-server" : " ^1.0.10" ,
3131 "@types/lodash-es" : " ^4.17.12" ,
3232 "commander" : " ^12.1.0" ,
33+ "global-agent" : " ^3.0.0" ,
3334 "lodash-es" : " ^4.17.21" ,
3435 "shell-quote" : " ^1.8.3" ,
3536 "zod" : " ^3.24.1"
Original file line number Diff line number Diff line change 1+ import 'global-agent/bootstrap.js'
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ export const RESERVED_ENV_VARS = new Set([
4646 'CLOUDSDK_PROXY_PORT' ,
4747 'CLAUDE_CODE_HOST_HTTP_PROXY_PORT' ,
4848 'CLAUDE_CODE_HOST_SOCKS_PROXY_PORT' ,
49+ 'GLOBAL_AGENT_HTTP_PROXY' ,
50+ 'GLOBAL_AGENT_NO_PROXY' ,
4951 'SANDBOX_RUNTIME' ,
5052 'TMPDIR' ,
5153] )
@@ -190,13 +192,15 @@ export function generateProxyEnvVars(
190192 ] . join ( ',' )
191193 envVars . push ( `NO_PROXY=${ noProxyAddresses } ` )
192194 envVars . push ( `no_proxy=${ noProxyAddresses } ` )
195+ envVars . push ( `GLOBAL_AGENT_NO_PROXY=${ noProxyAddresses } ` )
193196
194197 if ( httpProxyPort ) {
195198 envVars . push ( `HTTP_PROXY=http://localhost:${ httpProxyPort } ` )
196199 envVars . push ( `HTTPS_PROXY=http://localhost:${ httpProxyPort } ` )
197200 // Lowercase versions for compatibility with some tools
198201 envVars . push ( `http_proxy=http://localhost:${ httpProxyPort } ` )
199202 envVars . push ( `https_proxy=http://localhost:${ httpProxyPort } ` )
203+ envVars . push ( `GLOBAL_AGENT_HTTP_PROXY=http://localhost:${ httpProxyPort } ` )
200204 }
201205
202206 if ( socksProxyPort ) {
You can’t perform that action at this time.
0 commit comments