MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / qualifyDependency

Function qualifyDependency

src/utils/plugins/dependencyResolver.ts:38–46  ·  view source on GitHub ↗
(
  dep: string,
  declaringPluginId: string,
)

Source from the content-addressed store, hash-verified

36 * verifyAndDemote handles bare deps via name-only matching.
37 */
38export function qualifyDependency(
39 dep: string,
40 declaringPluginId: string,
41): string {
42 if (parsePluginIdentifier(dep).marketplace) return dep
43 const mkt = parsePluginIdentifier(declaringPluginId).marketplace
44 if (!mkt || mkt === INLINE_MARKETPLACE) return dep
45 return `${dep}@${mkt}`
46}
47
48/**
49 * Minimal shape the resolver needs from a marketplace lookup. Keeping this

Callers 3

walkFunction · 0.85
verifyAndDemoteFunction · 0.85
findReverseDependentsFunction · 0.85

Calls 1

parsePluginIdentifierFunction · 0.85

Tested by

no test coverage detected