MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / pushConfiguredDirs

Function pushConfiguredDirs

packages/agent-core/src/skill/scanner.ts:309–327  ·  view source on GitHub ↗
(
  out: SkillRoot[],
  dirs: readonly string[],
  projectRoot: string,
  userHomeDir: string,
  source: SkillSource,
  isDir: (p: string) => Promise<boolean>,
  realpath: (p: string) => Promise<string>,
)

Source from the content-addressed store, hash-verified

307}
308
309async function pushConfiguredDirs(
310 out: SkillRoot[],
311 dirs: readonly string[],
312 projectRoot: string,
313 userHomeDir: string,
314 source: SkillSource,
315 isDir: (p: string) => Promise<boolean>,
316 realpath: (p: string) => Promise<string>,
317): Promise<void> {
318 for (const dir of dirs) {
319 await pushExistingRoot(
320 out,
321 resolveConfiguredDir(dir, projectRoot, userHomeDir),
322 source,
323 isDir,
324 realpath,
325 );
326 }
327}
328
329async function pushExistingRoot(
330 out: SkillRoot[],

Callers 1

resolveSkillRootsFunction · 0.85

Calls 2

pushExistingRootFunction · 0.85
resolveConfiguredDirFunction · 0.85

Tested by

no test coverage detected