MCPcopy
hub / github.com/codeaashu/claude-code / getExternalClaudeMdIncludes

Function getExternalClaudeMdIncludes

src/utils/claudemd.ts:1404–1414  ·  view source on GitHub ↗
(
  files: MemoryFileInfo[],
)

Source from the content-addressed store, hash-verified

1402}
1403
1404export function getExternalClaudeMdIncludes(
1405 files: MemoryFileInfo[],
1406): ExternalClaudeMdInclude[] {
1407 const externals: ExternalClaudeMdInclude[] = []
1408 for (const file of files) {
1409 if (file.type !== 'User' && file.parent && !pathInOriginalCwd(file.path)) {
1410 externals.push({ path: file.path, parent: file.parent })
1411 }
1412 }
1413 return externals
1414}
1415
1416export function hasExternalClaudeMdIncludes(files: MemoryFileInfo[]): boolean {
1417 return getExternalClaudeMdIncludes(files).length > 0

Callers 3

showSetupScreensFunction · 0.85
ConfigFunction · 0.85

Calls 2

pathInOriginalCwdFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected