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

Function readLocalPluginNames

eng/external-plugin-intake.mjs:130–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130function readLocalPluginNames() {
131 if (!fs.existsSync(PLUGINS_DIR)) {
132 return [];
133 }
134
135 return fs.readdirSync(PLUGINS_DIR, { withFileTypes: true })
136 .filter((entry) => entry.isDirectory())
137 .map((entry) => entry.name);
138}
139
140function toSubmissionError(message) {
141 return message.replace(/^external\.json\[0\]:\s*/, "submission: ");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected