Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
892 B · 21 lines
TypeScript
at main
12345678910111213141516171819202122// Leaf config module — intentionally minimal imports so UI components// can read the auto-dream enabled state without dragging in the forked// agent / task registry / message builder chain that autoDream.ts pulls in.
import { getInitialSettings } from '../../utils/settings/settings.js'import { getFeatureValue_CACHED_MAY_BE_STALE } from '../analytics/growthbook.js'
/** * Whether background memory consolidation should run. User setting * (autoDreamEnabled in settings.json) overrides the GrowthBook default * when explicitly set; otherwise falls through to tengu_onyx_plover. */export function isAutoDreamEnabled(): boolean { const setting = getInitialSettings().autoDreamEnabled if (setting !== undefined) return setting const gb = getFeatureValue_CACHED_MAY_BE_STALE<{ enabled?: unknown } | null>( 'tengu_onyx_plover', null, ) return gb?.enabled === true}