MCPcopy Create free account
hub / github.com/MagicCube/agentara / downloadFile

Function downloadFile

src/boot-loader/boot-loader.ts:145–149  ·  view source on GitHub ↗
(url: string, path: string)

Source from the content-addressed store, hash-verified

143}
144
145async function downloadFile(url: string, path: string): Promise<void> {
146 const response = await fetch(url);
147 const data = await response.arrayBuffer();
148 writeFileSync(path, Buffer.from(data));
149}
150
151async function downloadSkills(): Promise<void> {
152 mkdirSync(config.paths.skills, { recursive: true });

Callers 1

_verifyIntegrityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected