MCPcopy Create free account
hub / github.com/Noumena-Network/code / approveApiKey

Function approveApiKey

src/services/api/bootstrap.test.ts:122–131  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

120}
121
122function approveApiKey(apiKey: string): void {
123 process.env.ANTHROPIC_API_KEY = apiKey
124 saveGlobalConfig(current => ({
125 ...current,
126 customApiKeyResponses: {
127 approved: [apiKey],
128 rejected: [],
129 },
130 }))
131}
132
133beforeAll(async () => {
134 tempConfigDir = await mkdtemp(join(tmpdir(), 'ncode-bootstrap-test-'))

Callers 1

bootstrap.test.tsFile · 0.85

Calls 1

saveGlobalConfigFunction · 0.50

Tested by

no test coverage detected