MCPcopy
hub / github.com/claude-code-best/claude-code / getManagedPluginNames

Function getManagedPluginNames

src/utils/plugins/managedPlugins.ts:9–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 * case — no policy in effect).
8 */
9export function getManagedPluginNames(): Set<string> | null {
10 const enabledPlugins = getSettingsForSource('policySettings')?.enabledPlugins
11 if (!enabledPlugins) {
12 return null
13 }
14 const names = new Set<string>()
15 for (const [pluginId, value] of Object.entries(enabledPlugins)) {
16 // Only plugin@marketplace boolean entries (true OR false) are
17 // protected. Legacy owner/repo array form is not.
18 if (typeof value !== 'boolean' || !pluginId.includes('@')) {
19 continue
20 }
21 const name = pluginId.split('@')[0]
22 if (name) {
23 names.add(name)
24 }
25 }
26 return names.size > 0 ? names : null
27}

Callers 9

logSessionTelemetryFunction · 0.85
assemblePluginLoadResultFunction · 0.85
handlePluginCommandErrorFunction · 0.85
installPluginFunction · 0.85
uninstallPluginFunction · 0.85
enablePluginFunction · 0.85
disablePluginFunction · 0.85
updatePluginCliFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
entriesMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected