* Generates plain-text Copilot CLI style summary for logs. * @param {Array} logEntries - Array of log entries with type, message, etc. * @param {Object} options - Configuration options * @param {string} [options.model] - Model name to include in the header * @param {string} [options.pars
(logEntries, options = {})
| 618 | * @returns {string} Plain text summary for console output |
| 619 | */ |
| 620 | function generatePlainTextSummary(logEntries, options = {}) { |
| 621 | const { model, parserName = "Agent" } = options; |
| 622 | const lines = []; |
| 623 | |
| 624 | lines.push(`=== ${parserName} Execution Summary ===`); |
| 625 | if (model) { |
| 626 | lines.push(`Model: ${model}`); |
| 627 | } |
| 628 | lines.push(""); |
| 629 | |
| 630 | lines.push("Conversation:"); |
| 631 | lines.push(""); |
| 632 | |
| 633 | lines.push(...generateSummaryLines(logEntries)); |
| 634 | |
| 635 | return lines.join("\n"); |
| 636 | } |
| 637 | |
| 638 | /** |
| 639 | * Generates a markdown-formatted Copilot CLI style summary for step summaries. |
no test coverage detected