MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / readOptionalPackPromptFile

Function readOptionalPackPromptFile

src/runtime/agent.ts:315–327  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

313 .replaceAll("{{PACK_CONFIG_PATH}}", packConfigPath);
314
315 const copyDir = (srcDir: string, destDir: string): void => {
316 fs.mkdirSync(destDir, { recursive: true });
317
318 for (const entry of fs.readdirSync(srcDir, { withFileTypes: true })) {
319 if (entry.name === ".DS_Store") {
320 continue;
321 }
322
323 const srcPath = path.join(srcDir, entry.name);
324 const destPath = path.join(destDir, entry.name);
325
326 if (entry.isDirectory()) {
327 copyDir(srcPath, destPath);
328 continue;
329 }
330

Callers 1

buildPackPromptBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected