(nextAction)
| 135 | } |
| 136 | |
| 137 | function renderNextAction(nextAction) { |
| 138 | if (!nextAction) { |
| 139 | return "<p>No recommended next step.</p>"; |
| 140 | } |
| 141 | |
| 142 | return renderList([ |
| 143 | nextAction.label, |
| 144 | `Why: ${nextAction.why}`, |
| 145 | ...(nextAction.chatPrompt ? [`Chat request: "${nextAction.chatPrompt}"`] : []), |
| 146 | ...(nextAction.command ? [`Local command: ${nextAction.command}`] : []), |
| 147 | ]); |
| 148 | } |
| 149 | |
| 150 | export function renderHtml(result) { |
| 151 | if (result.kind === "workflow-guide") { |
no test coverage detected