MCPcopy Index your code
hub / github.com/codeaashu/claude-code / scopeToSettingSource

Function scopeToSettingSource

src/utils/plugins/pluginIdentifier.ts:104–111  ·  view source on GitHub ↗
(
  scope: PluginScope,
)

Source from the content-addressed store, hash-verified

102 * @throws Error if scope is 'managed' (cannot install plugins to managed scope)
103 */
104export function scopeToSettingSource(
105 scope: PluginScope,
106): EditableSettingSource {
107 if (scope === 'managed') {
108 throw new Error('Cannot install plugins to managed scope')
109 }
110 return SCOPE_TO_EDITABLE_SOURCE[scope]
111}
112
113/**
114 * Convert an editable setting source to its corresponding plugin scope.

Callers 6

installSelectedPluginsFunction · 0.85
installResolvedPluginFunction · 0.85
marketplaceAddHandlerFunction · 0.85
findPluginInSettingsFunction · 0.85
uninstallPluginOpFunction · 0.85
setPluginEnabledOpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected