MCPcopy Create free account
hub / github.com/github/awesome-copilot / readLocalPluginNames

Function readLocalPluginNames

eng/external-plugin-approval.mjs:67–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67function readLocalPluginNames() {
68 const pluginsDir = path.join(ROOT_FOLDER, "plugins");
69 if (!fs.existsSync(pluginsDir)) {
70 return [];
71 }
72
73 return fs.readdirSync(pluginsDir, { withFileTypes: true })
74 .filter((entry) => entry.isDirectory())
75 .map((entry) => entry.name);
76}
77
78function pluginsMatch(left, right) {
79 const leftName = normalizeValue(left?.name);

Callers 1

upsertExternalPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected