MCPcopy Create free account
hub / github.com/QuantiaAI/helm-agents / envMap

Method envMap

apps/api/src/engine/keys.service.ts:40–50  ·  view source on GitHub ↗

Decrypted { envVar: key } map for building this user's engine.

(userId: string)

Source from the content-addressed store, hash-verified

38
39 /** Decrypted { envVar: key } map for building this user's engine. */
40 envMap(userId: string): Record<string, string> {
41 const out: Record<string, string> = {};
42 for (const row of this.store.userKeys.list(userId)) {
43 try {
44 out[row.env] = this.cipher.decrypt(row.ciphertext);
45 } catch {
46 /* skip undecryptable rows */
47 }
48 }
49 return out;
50 }
51}

Callers 1

getForUserMethod · 0.80

Calls 2

decryptMethod · 0.80
listMethod · 0.45

Tested by

no test coverage detected