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

Function _readProxyTokenFromSettingsFile

index.js:152–161  ·  view source on GitHub ↗
(fs, settingsFile)

Source from the content-addressed store, hash-verified

150}
151
152function _readProxyTokenFromSettingsFile(fs, settingsFile) {
153 try {
154 const parsed = JSON.parse(fs.readFileSync(settingsFile, 'utf8'));
155 return parsed && parsed.proxy && typeof parsed.proxy.token === 'string'
156 ? parsed.proxy.token
157 : '';
158 } catch {
159 return '';
160 }
161}
162
163// `proxy-token` is a credential helper for Codex. Handle it before loading any
164// project .env so a workspace cannot change EVOLVER_SETTINGS_DIR or other local

Callers 1

index.jsFile · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected