MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / writeAgentFile

Function writeAgentFile

sdk/src/__tests__/load-agents.test.ts:24–30  ·  view source on GitHub ↗
(
  agentsDir: string,
  fileName: string,
  contents: string,
)

Source from the content-addressed store, hash-verified

22 * @param contents - The TypeScript/JavaScript content
23 */
24const writeAgentFile = (
25 agentsDir: string,
26 fileName: string,
27 contents: string,
28): void => {
29 writeFileSync(path.join(agentsDir, fileName), contents, 'utf8')
30}
31
32describe('loadLocalAgents', () => {
33 let tempDir: string

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected