(agent: AgentConfig, allowSubagents: boolean)
| 241 | } |
| 242 | |
| 243 | function isPrimaryCapableAgent(agent: AgentConfig, allowSubagents: boolean): boolean { |
| 244 | const mode = typeof agent.mode === "string" ? agent.mode : "all"; |
| 245 | if (mode === "subagent") return allowSubagents; |
| 246 | return mode === "primary" || mode === "all" || !agent.mode; |
| 247 | } |
no outgoing calls
no test coverage detected