feat(agents): add Athena council foundation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user