(agent: AgentConfig)
| 234 | } |
| 235 | |
| 236 | function ensurePermission(agent: AgentConfig): Record<string, any> { |
| 237 | if (!agent.permission || typeof agent.permission !== "object" || Array.isArray(agent.permission)) { |
| 238 | agent.permission = {}; |
| 239 | } |
| 240 | return agent.permission; |
| 241 | } |
| 242 | |
| 243 | function isPrimaryCapableAgent(agent: AgentConfig, allowSubagents: boolean): boolean { |
| 244 | const mode = typeof agent.mode === "string" ? agent.mode : "all"; |
no outgoing calls
no test coverage detected