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