MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getSdkEnv

Function getSdkEnv

sdk/src/env.ts:19–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 * Composes from getBaseEnv() + SDK-specific vars.
18 */
19export const getSdkEnv = (): SdkEnv => ({
20 ...getBaseEnv(),
21
22 // SDK-specific paths
23 CODEBUFF_RG_PATH: process.env.CODEBUFF_RG_PATH,
24 CODEBUFF_WASM_DIR: process.env.CODEBUFF_WASM_DIR,
25
26 // Build flags
27 VERBOSE: process.env.VERBOSE,
28 OVERRIDE_TARGET: process.env.OVERRIDE_TARGET,
29 OVERRIDE_PLATFORM: process.env.OVERRIDE_PLATFORM,
30 OVERRIDE_ARCH: process.env.OVERRIDE_ARCH,
31})
32
33export const getCodebuffApiKeyFromEnv = (): string | undefined => {
34 return process.env[API_KEY_ENV_VAR]

Callers 2

getBundledRgPathFunction · 0.90
env.test.tsFile · 0.90

Calls 1

getBaseEnvFunction · 0.90

Tested by

no test coverage detected