delegate-task: block prometheus task delegation

This commit is contained in:
YeonGyu-Kim
2026-04-10 13:42:53 +09:00
parent e86b4f4c2b
commit c173fa8f24
7 changed files with 33 additions and 16 deletions
+3 -3
View File
@@ -329,13 +329,13 @@ export function isPlanAgent(agentName: string | undefined): boolean {
}
/**
* Plan family: plan + prometheus. Shares mutual delegation blocking and task tool permission.
* Does NOT share system prompt (only isPlanAgent controls that).
* Plan family: plan + prometheus. Shares mutual delegation blocking only.
* Does NOT share system prompt or task permission (only isPlanAgent controls those).
*/
export const PLAN_FAMILY_NAMES = ["plan", "prometheus"]
/**
* Check if the given agent belongs to the plan family (blocking + task permission).
* Check if the given agent belongs to the plan family for mutual delegation blocking.
*/
export function isPlanFamily(category: string): boolean
export function isPlanFamily(category: string | undefined): boolean