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

Function isPlanModeInterviewPhaseEnabled

src/utils/planModeV2.ts:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 * Config: ant=always_on, external=ncode_plan_mode_interview_phase gate, envVar=true
66 */
67export function isPlanModeInterviewPhaseEnabled(): boolean {
68 // Always on for ants
69 if (isInternalBuild()) return true
70
71 const env = process.env.CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE
72 if (isEnvTruthy(env)) return true
73 if (isEnvDefinedFalsy(env)) return false
74
75 return getFeatureValue_CACHED_MAY_BE_STALE(
76 'ncode_plan_mode_interview_phase',
77 false,
78 )
79}
80
81export type PewterLedgerVariant = 'trim' | 'cut' | 'cap' | null
82

Calls 4

isEnvTruthyFunction · 0.90
isInternalBuildFunction · 0.85
isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected