(opencodeConfig: OpenCodeConfig, agentName: string)
| 187 | } |
| 188 | |
| 189 | function allowPlanningAgent(opencodeConfig: OpenCodeConfig, agentName: string): void { |
| 190 | const agent = ensureAgentConfig(opencodeConfig, agentName); |
| 191 | const permission = ensurePermission(agent); |
| 192 | permission.submit_plan = "allow"; |
| 193 | permission.edit = { |
| 194 | ...normalizeEditPermission(permission.edit), |
| 195 | "*.md": "allow", |
| 196 | }; |
| 197 | } |
| 198 | |
| 199 | function denySubmitPlan(opencodeConfig: OpenCodeConfig, agentName: string): void { |
| 200 | const agent = ensureAgentConfig(opencodeConfig, agentName); |
no test coverage detected