MCPcopy
hub / github.com/ZToolsCenter/ZTools / getEnabledPluginPaths

Function getEnabledPluginPaths

src/renderer/src/stores/commandDataStore.ts:210–218  ·  view source on GitHub ↗
(plugins: any[], disabledPaths?: string[])

Source from the content-addressed store, hash-verified

208 }
209
210 function getEnabledPluginPaths(plugins: any[], disabledPaths?: string[]): Set<string> {
211 const paths = disabledPaths ?? disabledPluginPaths.value
212 const disabledPluginPathSet = new Set(paths)
213 return new Set(
214 plugins
215 .filter((plugin: any) => !disabledPluginPathSet.has(plugin.path))
216 .map((p: any) => p.path)
217 )
218 }
219 // 搜索偏好记录(搜索词 -> 上次选中的指令标识)
220 const searchPreference = ref<
221 Record<string, { path: string; featureCode?: string; name: string }>

Callers 3

loadPinnedDataFunction · 0.85
reloadPluginCommandsFunction · 0.85
loadCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected