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

Function writeSkill

packages/agent-core/test/skill/scanner.test.ts:1383–1391  ·  view source on GitHub ↗
(
  root: string,
  relativePath: string,
  lines: readonly string[],
)

Source from the content-addressed store, hash-verified

1381});
1382
1383async function writeSkill(
1384 root: string,
1385 relativePath: string,
1386 lines: readonly string[],
1387): Promise<void> {
1388 const target = path.join(root, relativePath);
1389 await mkdir(path.dirname(target), { recursive: true });
1390 await writeFile(target, lines.join('\n'));
1391}

Callers 1

scanner.test.tsFile · 0.70

Calls 2

mkdirFunction · 0.50
writeFileFunction · 0.50

Tested by

no test coverage detected