(srcDir: string, destDir: string)
| 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 | |
| 265 | export 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 | } |
no test coverage detected