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

Function getUseAutoModeDuringPlan

src/utils/settings/settings.ts:1005–1015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1003 * projectSettings is excluded so a malicious project can't control this.
1004 */
1005export function getUseAutoModeDuringPlan(): boolean {
1006 if (feature('TRANSCRIPT_CLASSIFIER')) {
1007 return (
1008 getSettingsForSource('policySettings')?.useAutoModeDuringPlan !== false &&
1009 getSettingsForSource('flagSettings')?.useAutoModeDuringPlan !== false &&
1010 getSettingsForSource('userSettings')?.useAutoModeDuringPlan !== false &&
1011 getSettingsForSource('localSettings')?.useAutoModeDuringPlan !== false
1012 )
1013 }
1014 return true
1015}
1016
1017/**
1018 * Returns the merged autoMode config from trusted settings sources.

Callers 1

shouldPlanUseAutoModeFunction · 0.85

Calls 1

getSettingsForSourceFunction · 0.85

Tested by

no test coverage detected