fix(delegate-task): use exact match for isPlanFamily to allow Metis/Momus
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -325,7 +325,7 @@ export const PLAN_AGENT_NAMES = ["plan"]
|
|||||||
export function isPlanAgent(agentName: string | undefined): boolean {
|
export function isPlanAgent(agentName: string | undefined): boolean {
|
||||||
if (!agentName) return false
|
if (!agentName) return false
|
||||||
const lowerName = agentName.toLowerCase().trim()
|
const lowerName = agentName.toLowerCase().trim()
|
||||||
return PLAN_AGENT_NAMES.some(name => lowerName === name || lowerName.includes(name))
|
return PLAN_AGENT_NAMES.some(name => lowerName === name)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -342,7 +342,5 @@ export function isPlanFamily(category: string | undefined): boolean
|
|||||||
export function isPlanFamily(category: string | undefined): boolean {
|
export function isPlanFamily(category: string | undefined): boolean {
|
||||||
if (!category) return false
|
if (!category) return false
|
||||||
const lowerCategory = category.toLowerCase().trim()
|
const lowerCategory = category.toLowerCase().trim()
|
||||||
return PLAN_FAMILY_NAMES.some(
|
return PLAN_FAMILY_NAMES.some((name) => lowerCategory === name)
|
||||||
(name) => lowerCategory === name || lowerCategory.includes(name)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user