MCPcopy Create free account
hub / github.com/freecodexyz/free-code / createDefaultGlobalConfig

Function createDefaultGlobalConfig

src/utils/config.ts:605–643  ·  view source on GitHub ↗

* Factory for a fresh default GlobalConfig. Used instead of deep-cloning a * shared constant — the nested containers (arrays, records) are all empty, so * a factory gives fresh refs at zero clone cost.

()

Source from the content-addressed store, hash-verified

603 * a factory gives fresh refs at zero clone cost.
604 */
605function createDefaultGlobalConfig(): GlobalConfig {
606 return {
607 numStartups: 0,
608 installMethod: undefined,
609 autoUpdates: undefined,
610 theme: 'dark',
611 preferredNotifChannel: 'auto',
612 verbose: false,
613 editorMode: 'normal',
614 autoCompactEnabled: true,
615 showTurnDuration: true,
616 hasSeenTasksHint: false,
617 hasUsedStash: false,
618 hasUsedBackgroundTask: false,
619 queuedCommandUpHintCount: 0,
620 diffTool: 'auto',
621 customApiKeyResponses: {
622 approved: [],
623 rejected: [],
624 },
625 env: {},
626 tipsHistory: {},
627 memoryUsageCount: 0,
628 promptQueueUseCount: 0,
629 btwUseCount: 0,
630 todoFeatureEnabled: true,
631 showExpandedTodos: false,
632 messageIdleNotifThresholdMs: 60000,
633 autoConnectIde: false,
634 autoInstallIdeExtension: true,
635 fileCheckpointingEnabled: true,
636 terminalProgressBarEnabled: true,
637 cachedStatsigGates: {},
638 cachedDynamicConfigs: {},
639 cachedGrowthBookFeatures: {},
640 respectGitignore: true,
641 copyFullResponse: false,
642 }
643}
644
645export const DEFAULT_GLOBAL_CONFIG: GlobalConfig = createDefaultGlobalConfig()
646

Callers 2

config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected