MCPcopy
hub / github.com/codeaashu/claude-code / isPlanModeInterviewPhaseEnabled

Function isPlanModeInterviewPhaseEnabled

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

Source from the content-addressed store, hash-verified

48 * Config: ant=always_on, external=tengu_plan_mode_interview_phase gate, envVar=true
49 */
50export function isPlanModeInterviewPhaseEnabled(): boolean {
51 // Always on for ants
52 if (process.env.USER_TYPE === 'ant') return true
53
54 const env = process.env.CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE
55 if (isEnvTruthy(env)) return true
56 if (isEnvDefinedFalsy(env)) return false
57
58 return getFeatureValue_CACHED_MAY_BE_STALE(
59 'tengu_plan_mode_interview_phase',
60 false,
61 )
62}
63
64export type PewterLedgerVariant = 'trim' | 'cut' | 'cap' | null
65

Calls 3

isEnvTruthyFunction · 0.85
isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected