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

Function buildNamespace

src/tools/WorkflowTool/createWorkflowCommand.ts:23–34  ·  view source on GitHub ↗
(targetDir: string, baseDir: string)

Source from the content-addressed store, hash-verified

21}
22
23function buildNamespace(targetDir: string, baseDir: string): string {
24 const normalizedBaseDir = baseDir.endsWith(pathSep)
25 ? baseDir.slice(0, -1)
26 : baseDir
27
28 if (targetDir === normalizedBaseDir) {
29 return ''
30 }
31
32 const relativePath = targetDir.slice(normalizedBaseDir.length + 1)
33 return relativePath ? relativePath.split(pathSep).join(':') : ''
34}
35
36function getWorkflowCommandName(file: MarkdownFile): string {
37 if (isWorkflowEntrypoint(file.filePath)) {

Callers 1

getWorkflowCommandNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected