MCPcopy Create free account
hub / github.com/Noumena-Network/code / eagerLoadSettings

Function eagerLoadSettings

src/main.tsx:564–578  ·  view source on GitHub ↗

* Parse and load settings flags early, before init() * This ensures settings are filtered from the start of initialization

()

Source from the content-addressed store, hash-verified

562 * This ensures settings are filtered from the start of initialization
563 */
564function eagerLoadSettings(): void {
565 profileCheckpoint('eagerLoadSettings_start');
566 // Parse --settings flag early to ensure settings are loaded before init()
567 const settingsFile = eagerParseCliFlag('--settings');
568 if (settingsFile) {
569 loadSettingsFromFlag(settingsFile);
570 }
571
572 // Parse --setting-sources flag early to control which sources are loaded
573 const settingSourcesArg = eagerParseCliFlag('--setting-sources');
574 if (settingSourcesArg !== undefined) {
575 loadSettingSourcesFromFlag(settingSourcesArg);
576 }
577 profileCheckpoint('eagerLoadSettings_end');
578}
579function initializeEntrypoint(isNonInteractive: boolean): void {
580 // Skip if already set (e.g., by SDK or other entrypoints)
581 if (process.env.CLAUDE_CODE_ENTRYPOINT) {

Callers 1

mainFunction · 0.85

Calls 4

profileCheckpointFunction · 0.85
eagerParseCliFlagFunction · 0.85
loadSettingsFromFlagFunction · 0.85

Tested by

no test coverage detected