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

Function seedDirFor

src/utils/plugins/marketplaceManager.ts:496–500  ·  view source on GitHub ↗

* If installLocation points into a configured seed directory, return that seed * directory. Seed-managed entries are admin-controlled — users can't * remove/refresh/modify them (they'd be overwritten by registerSeedMarketplaces * on next startup). Returning the specific seed lets error messages n

(installLocation: string)

Source from the content-addressed store, hash-verified

494 * on next startup). Returning the specific seed lets error messages name it.
495 */
496function seedDirFor(installLocation: string): string | undefined {
497 return getPluginSeedDirs().find(
498 d => installLocation === d || installLocation.startsWith(d + sep),
499 )
500}
501
502/**
503 * Git pull operation (exported for testing)

Callers 5

addMarketplaceSourceFunction · 0.85
removeMarketplaceSourceFunction · 0.85
refreshAllMarketplacesFunction · 0.85
refreshMarketplaceFunction · 0.85
setMarketplaceAutoUpdateFunction · 0.85

Calls 1

getPluginSeedDirsFunction · 0.85

Tested by

no test coverage detected