(payload)
| 461 | } |
| 462 | |
| 463 | function renderBenchmarkTemplateInit(payload) { |
| 464 | const benchmarkPayload = ensureBenchmarkTemplatePayload(payload); |
| 465 | |
| 466 | return [ |
| 467 | `# Benchmark Template Ready: ${benchmarkPayload.target.name}`, |
| 468 | "", |
| 469 | section("At a Glance", [ |
| 470 | `- Config: \`${benchmarkPayload.configPath}\``, |
| 471 | `- Scenarios: ${benchmarkPayload.scenarioCount}`, |
| 472 | ]), |
| 473 | "", |
| 474 | section("Why It Matters", benchmarkPayload.notes.map((item) => `- ${item}`)), |
| 475 | "", |
| 476 | section("Fix First", ["- Edit the benchmark config so the scenarios match your real workflow before you trust the run."]), |
| 477 | "", |
| 478 | section("Recommended Next Step", renderNextAction(benchmarkPayload.nextAction)), |
| 479 | "", |
| 480 | section("Details", [ |
| 481 | detailsBlock( |
| 482 | "Setup questions to ask first", |
| 483 | benchmarkPayload.setupQuestions?.length > 0 |
| 484 | ? benchmarkPayload.setupQuestions.map((item) => `- ${item}`).join("\n") |
| 485 | : "- No setup questions provided.", |
| 486 | ), |
| 487 | detailsBlock("Next steps", benchmarkPayload.nextSteps.map((item) => `- ${item}`).join("\n")), |
| 488 | detailsBlock("Use From Codex Chat", renderWorkflowGuide(benchmarkPayload.workflowGuide)), |
| 489 | ]), |
| 490 | ].join("\n"); |
| 491 | } |
| 492 | |
| 493 | function renderBenchmarkScenario(scenario, mode) { |
| 494 | const lines = [ |
no test coverage detected