MCPcopy Create free account
hub / github.com/arctic-cli/interface / getCodexMode

Function getCodexMode

packages/arctic/src/auth/codex-oauth/config.ts:52–60  ·  view source on GitHub ↗
(pluginConfig: PluginConfig)

Source from the content-addressed store, hash-verified

50 * @returns True if CODEX_MODE should be enabled
51 */
52export function getCodexMode(pluginConfig: PluginConfig): boolean {
53 // Environment variable takes precedence
54 if (process.env.ARCTIC_CODEX_MODE !== undefined) {
55 return process.env.ARCTIC_CODEX_MODE === "1";
56 }
57
58 // Use config setting (defaults to true)
59 return pluginConfig.codexMode ?? true;
60}

Callers 1

loaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected