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

Function createDefaultGlobalConfig

src/utils/config.ts:585–623  ·  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

583 * a factory gives fresh refs at zero clone cost.
584 */
585function createDefaultGlobalConfig(): GlobalConfig {
586 return {
587 numStartups: 0,
588 installMethod: undefined,
589 autoUpdates: undefined,
590 theme: 'dark',
591 preferredNotifChannel: 'auto',
592 verbose: false,
593 editorMode: 'normal',
594 autoCompactEnabled: true,
595 showTurnDuration: true,
596 hasSeenTasksHint: false,
597 hasUsedStash: false,
598 hasUsedBackgroundTask: false,
599 queuedCommandUpHintCount: 0,
600 diffTool: 'auto',
601 customApiKeyResponses: {
602 approved: [],
603 rejected: [],
604 },
605 env: {},
606 tipsHistory: {},
607 memoryUsageCount: 0,
608 promptQueueUseCount: 0,
609 btwUseCount: 0,
610 todoFeatureEnabled: true,
611 showExpandedTodos: false,
612 messageIdleNotifThresholdMs: 60000,
613 autoConnectIde: false,
614 autoInstallIdeExtension: true,
615 fileCheckpointingEnabled: true,
616 terminalProgressBarEnabled: true,
617 cachedStatsigGates: {},
618 cachedDynamicConfigs: {},
619 cachedGrowthBookFeatures: {},
620 respectGitignore: true,
621 copyFullResponse: false,
622 }
623}
624
625export const DEFAULT_GLOBAL_CONFIG: GlobalConfig = createDefaultGlobalConfig()
626

Callers 2

config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected