MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getConditionalRulesForCwdLevelDirectory

Function getConditionalRulesForCwdLevelDirectory

src/utils/claudemd.ts:1329–1342  ·  view source on GitHub ↗
(
  dir: string,
  targetPath: string,
  processedPaths: Set<string>,
)

Source from the content-addressed store, hash-verified

1327 * @returns Array of MemoryFileInfo objects
1328 */
1329export async function getConditionalRulesForCwdLevelDirectory(
1330 dir: string,
1331 targetPath: string,
1332 processedPaths: Set<string>,
1333): Promise<MemoryFileInfo[]> {
1334 const rulesDir = join(dir, '.claude', 'rules')
1335 return processConditionedMdRules(
1336 targetPath,
1337 rulesDir,
1338 'Project',
1339 processedPaths,
1340 false,
1341 )
1342}
1343
1344/**
1345 * Processes all .md files in the .claude/rules/ directory and its subdirectories,

Callers 1

Calls 1

Tested by

no test coverage detected