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

Function copyDir

src/runtime/agent.ts:243–271  ·  view source on GitHub ↗
(srcDir: string, destDir: string)

Source from the content-addressed store, hash-verified

241 if (
242 !fs.existsSync(resolvedPath) ||
243 !fs.statSync(resolvedPath).isDirectory()
244 ) {
245 console.warn(
246 `[PackAgent] Warning: Ignoring missing additional skill path: ${resolvedPath}`,
247 );
248 continue;
249 }
250 } catch (error) {
251 console.warn(
252 `[PackAgent] Warning: Could not inspect additional skill path ${resolvedPath}:`,
253 error,
254 );
255 continue;
256 }
257
258 seen.add(resolvedPath);
259 paths.push(resolvedPath);
260 }
261
262 return paths;
263}
264
265export function buildSystemPromptOverrides(
266 packPromptBlock?: string,
267 env: NodeJS.ProcessEnv = process.env,
268): string[] {
269 const prompts: string[] = [];
270 const frevanaSystemPrompts = readFrevanaSystemPrompts(env);
271
272 if (frevanaSystemPrompts) {
273 prompts.push(frevanaSystemPrompts);
274 }

Callers 1

Calls 1

renderTemplateFunction · 0.85

Tested by

no test coverage detected