MCPcopy Create free account
hub / github.com/WJX20/claude-code / getEnabledPluginIdsForScope

Function getEnabledPluginIdsForScope

src/utils/plugins/dependencyResolver.ts:275–283  ·  view source on GitHub ↗
(
  settingSource: EditableSettingSource,
)

Source from the content-addressed store, hash-verified

273 * closure and the settings write would clobber the constraint with `true`.
274 */
275export function getEnabledPluginIdsForScope(
276 settingSource: EditableSettingSource,
277): Set<PluginId> {
278 return new Set(
279 Object.entries(getSettingsForSource(settingSource)?.enabledPlugins ?? {})
280 .filter(([, v]) => v === true || Array.isArray(v))
281 .map(([k]) => k),
282 )
283}
284
285/**
286 * Format the "(+ N dependencies)" suffix for install success messages.

Callers 1

installResolvedPluginFunction · 0.85

Calls 2

getSettingsForSourceFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected