MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / restoreEnv

Function restoreEnv

packages/agent-core/test/rpc/plugins-rpc.test.ts:211–217  ·  view source on GitHub ↗
(name: string, value: string | undefined)

Source from the content-addressed store, hash-verified

209});
210
211function restoreEnv(name: string, value: string | undefined): void {
212 if (value === undefined) {
213 delete process.env[name];
214 return;
215 }
216 process.env[name] = value;
217}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected