feat(agents): add Athena council foundation

This commit is contained in:
YeonGyu-Kim
2026-03-26 12:59:22 +09:00
parent a391f44420
commit 647f691fe2
39 changed files with 1710 additions and 12 deletions
+19
View File
@@ -42,15 +42,34 @@ const AGENT_RESTRICTIONS: Record<string, Record<string, boolean>> = {
"sisyphus-junior": {
task: false,
},
"council-member": {
write: false,
edit: false,
apply_patch: false,
task: false,
"task_*": false,
teammate: false,
call_omo_agent: false,
switch_agent: false,
},
}
export function getAgentToolRestrictions(agentName: string): Record<string, boolean> {
if (agentName.toLowerCase().startsWith("council-member-")) {
return AGENT_RESTRICTIONS["council-member"]
}
return AGENT_RESTRICTIONS[agentName]
?? Object.entries(AGENT_RESTRICTIONS).find(([key]) => key.toLowerCase() === agentName.toLowerCase())?.[1]
?? {}
}
export function hasAgentToolRestrictions(agentName: string): boolean {
if (agentName.toLowerCase().startsWith("council-member-")) {
return true
}
const restrictions = AGENT_RESTRICTIONS[agentName]
?? Object.entries(AGENT_RESTRICTIONS).find(([key]) => key.toLowerCase() === agentName.toLowerCase())?.[1]
return restrictions !== undefined && Object.keys(restrictions).length > 0