MCPcopy Create free account
hub / github.com/github/gh-aw / generatePlainTextSummary

Function generatePlainTextSummary

actions/setup/js/log_parser_format.cjs:620–636  ·  view source on GitHub ↗

* 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 = {})

Source from the content-addressed store, hash-verified

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.

Callers 3

runLogParserFunction · 0.70

Calls 1

generateSummaryLinesFunction · 0.85

Tested by

no test coverage detected