(goal, target, status)
| 325 | } |
| 326 | |
| 327 | function createEntry(goal, target, status) { |
| 328 | const commandTargetPath = formatCommandPath(target.path); |
| 329 | const chatPrompt = chatPromptForGoal(goal, target); |
| 330 | const commands = commandsForGoal(goal, target, status); |
| 331 | return { |
| 332 | id: goal, |
| 333 | label: workflowLabel(goal, target), |
| 334 | chatPrompt, |
| 335 | summary: summaryForGoal(goal, target, status), |
| 336 | firstCommand: commands[0], |
| 337 | commands, |
| 338 | startCommand: `plugin-eval start ${commandTargetPath} --request ${shellQuote(chatPrompt)} --format markdown`, |
| 339 | }; |
| 340 | } |
| 341 | |
| 342 | export async function buildWorkflowGuide(targetPath, options = {}) { |
| 343 | const target = await resolveTarget(targetPath); |
no test coverage detected