(definitions: WorkflowDefinition[])
| 31 | } |
| 32 | |
| 33 | function formatWorkflowList(definitions: WorkflowDefinition[]): string { |
| 34 | const lines = ['Available workflow commands:'] |
| 35 | |
| 36 | for (const { command } of definitions) { |
| 37 | if (command.type !== 'prompt') { |
| 38 | continue |
| 39 | } |
| 40 | lines.push(`- ${formatWorkflowSummary(command)}`) |
| 41 | } |
| 42 | |
| 43 | lines.push('', 'Use /workflows <name> to inspect a workflow.') |
| 44 | return lines.join('\n') |
| 45 | } |
| 46 | |
| 47 | function formatWorkflowDetail(definition: WorkflowDefinition): string { |
| 48 | const { command, filePath, baseDir } = definition |
no test coverage detected