()
| 20 | const { getProxyUrl, getProxyToken } = require('../proxy/server/settings'); |
| 21 | |
| 22 | function _isProxyMode() { |
| 23 | if (process.env.EVOMAP_PROXY === '1') return true; |
| 24 | if (process.env.A2A_TRANSPORT === 'mailbox') return true; |
| 25 | return false; |
| 26 | } |
| 27 | |
| 28 | function _proxyRequest(method, path, body, timeoutMs) { |
| 29 | const proxyUrl = getProxyUrl(); |