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