MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getInstalledVersionPaths

Function getInstalledVersionPaths

src/utils/plugins/cacheUtils.ts:133–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133function getInstalledVersionPaths(): Set<string> | null {
134 try {
135 const paths = new Set<string>()
136 const diskData = loadInstalledPluginsFromDisk()
137 for (const installations of Object.values(diskData.plugins)) {
138 for (const entry of installations) {
139 paths.add(entry.installPath)
140 }
141 }
142 return paths
143 } catch (error) {
144 logForDebugging(`Failed to load installed plugins: ${error}`)
145 return null
146 }
147}
148
149async function processOrphanedPluginVersion(
150 versionPath: string,

Calls 3

logForDebuggingFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected