(filePath)
| 217 | } |
| 218 | |
| 219 | _loadSingleFile(filePath) { |
| 220 | try { |
| 221 | const manifest = JSON.parse(fs.readFileSync(filePath, 'utf-8')); |
| 222 | if (manifest.prompts) { |
| 223 | for (const p of manifest.prompts) { |
| 224 | this.prompts.push({ |
| 225 | inject: p.inject || 'always', |
| 226 | content: p.content || '', |
| 227 | plugin: manifest.name || path.basename(filePath, '.json'), |
| 228 | }); |
| 229 | } |
| 230 | } |
| 231 | } catch {} |
| 232 | } |
| 233 | |
| 234 | // Get tools to add to the model's tool list |
| 235 | getTools() { |