MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / claudeCodeCommandDirs

Function claudeCodeCommandDirs

src/integrations/claude-plugins.ts:101–114  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

99
100/** Extra command roots contributed by Claude Code, lowest-precedence first. */
101export async function claudeCodeCommandDirs(cwd: string): Promise<ClaudeAssetDir[]> {
102 if (disabled()) return [];
103 const dirs: ClaudeAssetDir[] = [];
104 try {
105 for (const p of await relevantPluginPaths(cwd)) {
106 dirs.push({ dir: path.join(p.path, 'commands'), origin: 'plugin', plugin: p.name });
107 }
108 } catch (e: any) {
109 logger.debug('claudeCodeCommandDirs: plugin scan failed', { err: e?.message });
110 }
111 dirs.push({ dir: path.join(claudeHome(), 'commands'), origin: 'user' });
112 dirs.push({ dir: path.join(cwd, '.claude', 'commands'), origin: 'project' });
113 return dirs;
114}
115
116// ───────────────────────────── Agents → roles ──────────────────────────────
117//

Callers 2

loadCustomCommandsFunction · 0.85

Calls 5

disabledFunction · 0.85
relevantPluginPathsFunction · 0.85
claudeHomeFunction · 0.85
debugMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected