()
| 78 | } |
| 79 | |
| 80 | function renderTemplates() { |
| 81 | const lines = ['Loop templates', '']; |
| 82 | for (const template of listLoopTemplates()) { |
| 83 | lines.push(`- ${template.id}: ${template.title}`); |
| 84 | lines.push(` Type: ${template.type} | Trigger: ${template.triggerKind || 'manual'} | Attempts: ${template.maxAttempts || 1}`); |
| 85 | lines.push(` Goal: ${template.goal}`); |
| 86 | } |
| 87 | return `${lines.join('\n')}\n`; |
| 88 | } |
| 89 | |
| 90 | function renderInspect(loop) { |
| 91 | if (!loop) return 'Loop not found.\n'; |
no test coverage detected