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

Function write

packages/agent-core/test/profile/agent-profile-loader.test.ts:239–243  ·  view source on GitHub ↗
(fileName: string, content: string)

Source from the content-addressed store, hash-verified

237});
238
239async function write(fileName: string, content: string): Promise<string> {
240 const filePath = join(workDir, fileName);
241 await writeFile(filePath, content.trimStart(), 'utf-8');
242 return filePath;
243}
244
245function fileName(filePath: string): string {
246 return filePath.slice(workDir.length + 1);

Callers 1

Calls 1

writeFileFunction · 0.50

Tested by

no test coverage detected