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

Function createSharedSmokeEnv

tools/smoke/oauthHarness.mjs:19–32  ·  view source on GitHub ↗
(configDir, runtimeConfig, extraEnv = {})

Source from the content-addressed store, hash-verified

17}
18
19export function createSharedSmokeEnv(configDir, runtimeConfig, extraEnv = {}) {
20 return {
21 ...process.env,
22 NCODE_CONFIG_DIR: configDir,
23 NCODE_BUILD_MODE: process.env.NCODE_BUILD_MODE || 'noumena',
24 NOUMENA_ISSUER_BASE_URL: runtimeConfig.issuerBaseUrl,
25 NOUMENA_PLATFORM_BASE_URL: runtimeConfig.platformBaseUrl,
26 NOUMENA_BASE_URL: runtimeConfig.inferenceBaseUrl,
27 NOUMENA_MODEL: runtimeConfig.model,
28 NOUMENA_SMALL_FAST_MODEL: runtimeConfig.smallFastModel,
29 API_TIMEOUT_MS: runtimeConfig.apiTimeoutMs,
30 ...extraEnv,
31 }
32}
33
34export function resolveSmokeGlobalConfigFilename(env) {
35 if (env.CLAUDE_CODE_CUSTOM_OAUTH_URL) return '.claude-custom-oauth.json'

Callers 1

createWrapperEnvFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected