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

Function restoreLogEnv

packages/node-sdk/test/local-logging.test.ts:56–65  ·  view source on GitHub ↗
(snapshot: Record<(typeof LOG_ENV_KEYS)[number], string | undefined>)

Source from the content-addressed store, hash-verified

54}
55
56function restoreLogEnv(snapshot: Record<(typeof LOG_ENV_KEYS)[number], string | undefined>): void {
57 for (const key of LOG_ENV_KEYS) {
58 const value = snapshot[key];
59 if (value === undefined) {
60 delete process.env[key];
61 } else {
62 process.env[key] = value;
63 }
64 }
65}
66
67function readZipEntries(buf: Buffer): Map<string, Buffer> {
68 let eocd = -1;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected