(action)
| 129 | } |
| 130 | |
| 131 | function approvalBoundaryFor(action) { |
| 132 | const command = String(action?.command || '').trim(); |
| 133 | if (!command) return 'manual-review'; |
| 134 | if (command === '/autopilot') return 'campaign-intake'; |
| 135 | if (command === '/do continue') return 'agent-continuation'; |
| 136 | if (command === '/merge-review') return 'merge-review'; |
| 137 | if (isSetupCommand(command)) return 'project-setup'; |
| 138 | if (command === '/telemetry') return 'telemetry-review'; |
| 139 | if (command.startsWith('/')) return 'agent-route'; |
| 140 | if (command.startsWith('git status')) return 'worktree-review'; |
| 141 | return 'manual-review'; |
| 142 | } |
| 143 | |
| 144 | function approvalRiskFor(action) { |
| 145 | const command = String(action?.command || '').trim(); |
no test coverage detected