MCPcopy Create free account
hub / github.com/anus-dev/ANUS / settingExistsInScope

Function settingExistsInScope

packages/cli/src/utils/settingsUtils.ts:287–294  ·  view source on GitHub ↗
(
  key: string,
  scopeSettings: Settings,
)

Source from the content-addressed store, hash-verified

285 * Check if a setting exists in the original settings file for a scope
286 */
287export function settingExistsInScope(
288 key: string,
289 scopeSettings: Settings,
290): boolean {
291 const path = key.split('.');
292 const value = getNestedValue(scopeSettings as Record<string, unknown>, path);
293 return value !== undefined;
294}
295
296/**
297 * Recursively sets a value in a nested object using a key path array.

Callers 6

saveModifiedSettingsFunction · 0.85
getDisplayValueFunction · 0.85
isDefaultValueFunction · 0.85
isValueInheritedFunction · 0.85

Calls 1

getNestedValueFunction · 0.85

Tested by

no test coverage detected