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

Function getExistingUserDirs

src/utils/markdownConfigLoader.ts:74–89  ·  view source on GitHub ↗
(subdir: NcodeConfigDirectory)

Source from the content-addressed store, hash-verified

72}
73
74function getExistingUserDirs(subdir: NcodeConfigDirectory): string[] {
75 const dirs: string[] = []
76 pushIfExistingDir(dirs, join(getLegacyClaudeConfigHomeDir(), subdir))
77 pushIfExistingDir(dirs, join(getCanonicalNcodeConfigHomeDir(), subdir))
78 // Codex-aligned cross-vendor user-global skills surface. `.agents/` is
79 // cross-vendor and follows $HOME, not NCODE_CONFIG_DIR/CLAUDE_CONFIG_DIR.
80 // Skills-only asymmetry: `.agents/commands` and `.agents/agents` are not
81 // loaded here.
82 if (subdir === 'skills') {
83 pushIfExistingDir(
84 dirs,
85 join(getCrossVendorAgentsHomeDir(), '.agents', subdir),
86 )
87 }
88 return dirs
89}
90
91/**
92 * Extracts a description from markdown content

Callers 1

Calls 1

pushIfExistingDirFunction · 0.85

Tested by

no test coverage detected