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

Function assertInstallableScope

src/services/plugins/pluginOperations.ts:90–98  ·  view source on GitHub ↗
(
  scope: string,
)

Source from the content-addressed store, hash-verified

88 * @throws Error if scope is not a valid installable scope
89 */
90export function assertInstallableScope(
91 scope: string,
92): asserts scope is InstallableScope {
93 if (!VALID_INSTALLABLE_SCOPES.includes(scope as InstallableScope)) {
94 throw new Error(
95 `Invalid scope "${scope}". Must be one of: ${VALID_INSTALLABLE_SCOPES.join(', ')}`,
96 )
97 }
98}
99
100/**
101 * Type guard to check if a scope is an installable scope (not 'managed').

Callers 3

installPluginOpFunction · 0.85
uninstallPluginOpFunction · 0.85
setPluginEnabledOpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected