( agentName: string | undefined, isSubagent: boolean, options: NormalizedWorkflowOptions, )
| 126 | } |
| 127 | |
| 128 | export function shouldInjectGenericPlanReminder( |
| 129 | agentName: string | undefined, |
| 130 | isSubagent: boolean, |
| 131 | options: NormalizedWorkflowOptions, |
| 132 | ): boolean { |
| 133 | if (options.workflow !== "all-agents") return false; |
| 134 | if (!agentName || isSubagent) return false; |
| 135 | if (agentName === "build") return false; |
| 136 | return !isPlanningAgent(agentName, options); |
| 137 | } |
| 138 | |
| 139 | export function shouldRejectSubmitPlanForAgent( |
| 140 | agentName: string | undefined, |
no test coverage detected