-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
28 lines (23 loc) · 819 Bytes
/
index.js
File metadata and controls
28 lines (23 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const fs = require('fs');
const path = require('path');
const PROMPTS_DIR = path.join(__dirname, 'prompts');
const agents = {
developer: 'developer.md',
auditor: 'auditor.md',
'emergency-fixer': 'emergency-fixer.md',
'website-designer': 'website-designer.md',
'portal-designer': 'portal-designer.md',
'api-architect': 'api-architect.md',
'radical-visionary': 'radical-visionary.md',
lawyer: 'lawyer.md',
compliance: 'compliance.md',
};
function getPrompt(agentName) {
const file = agents[agentName];
if (!file) throw new Error(`Unknown agent: ${agentName}. Available: ${Object.keys(agents).join(', ')}`);
return fs.readFileSync(path.join(PROMPTS_DIR, file), 'utf8');
}
function listAgents() {
return Object.keys(agents);
}
module.exports = { getPrompt, listAgents, agents, PROMPTS_DIR };