MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / loadEnvFileIntoProcess

Function loadEnvFileIntoProcess

src/setup/env-writer.ts:88–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 * before the router reads any keys. Returns the number of keys loaded.
87 */
88export async function loadEnvFileIntoProcess(): Promise<number> {
89 const vars = await readEnvFile();
90 let loaded = 0;
91 for (const [k, v] of Object.entries(vars)) {
92 if (process.env[k] === undefined) {
93 process.env[k] = v;
94 loaded++;
95 }
96 }
97 return loaded;
98}

Callers 5

bootstrapFunction · 0.85
curateCandidatesFunction · 0.85
evalSkillMdFunction · 0.85
deliverRunFunction · 0.85

Calls 1

readEnvFileFunction · 0.85

Tested by

no test coverage detected