| 133 | } |
| 134 | |
| 135 | function checkOrient(dashboard) { |
| 136 | const action = dashboard.nextAction || {}; |
| 137 | if (!action.command) { |
| 138 | return { |
| 139 | id: 'orient', |
| 140 | status: 'fail', |
| 141 | detail: 'dashboard did not expose a next action', |
| 142 | evidence: [], |
| 143 | }; |
| 144 | } |
| 145 | |
| 146 | return { |
| 147 | id: 'orient', |
| 148 | status: 'pass', |
| 149 | detail: `${action.label || 'next action'} -> ${action.command}`, |
| 150 | evidence: [ |
| 151 | `command=${action.command}`, |
| 152 | `runbook=${action.runbook || '(none)'}`, |
| 153 | ], |
| 154 | }; |
| 155 | } |
| 156 | |
| 157 | function checkRoute(projectRoot, routeRequest) { |
| 158 | const preview = buildPreview(routeRequest, { projectRoot }); |