MCPcopy Create free account
hub / github.com/Noumena-Network/code / resolveCommandModule

Function resolveCommandModule

scripts/generate_slash_command_appendix.mjs:235–239  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

233}
234
235function resolveCommandModule(specifier) {
236 const relative = specifier.replace(/^\.\//, '')
237 const absolutePath = path.join(rootDir, 'src', relative)
238 return resolveModuleCandidatesFromAbsolute(absolutePath)
239}
240
241async function fileExists(filePath) {
242 try {

Callers 1

Tested by

no test coverage detected