MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / readEnvFileRecord

Function readEnvFileRecord

packages/codex-native-api/src/daemon_manager.ts:963–970  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

961}
962
963async function readEnvFileRecord(filePath: string): Promise<Record<string, string>> {
964 try {
965 const content = await fsp.readFile(filePath, 'utf8');
966 return parseEnvText(content);
967 } catch {
968 return {};
969 }
970}
971
972async function loadEnvFileIntoProcessEnv(filePath: string): Promise<void> {
973 const record = await readEnvFileRecord(filePath);

Callers 2

buildDaemonInstallPlanFunction · 0.85

Calls 1

parseEnvTextFunction · 0.85

Tested by

no test coverage detected