sfcc-dev-mcp
Version:
MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools
90 lines • 2.88 kB
TypeScript
/**
* Output formatting and presentation logic for logs
*/
import type { LogSummary, LogFileInfo, LogLevel, JobLogInfo } from './log-types.js';
export declare class LogFormatter {
/**
* Format latest log entries response
*/
static formatLatestLogs(entries: string[], level: LogLevel, limit: number, files: string[]): string;
/**
* Format search results
*/
static formatSearchResults(matches: string[], pattern: string, date: string): string;
/**
* Format "no files found" message
*/
static formatNoFilesFound(level: LogLevel, date: string, availableFiles: string[]): string;
/**
* Format log summary into a readable string
*/
static formatLogSummary(summary: LogSummary): string;
/**
* Format log files list with metadata
*/
static formatLogFilesList(logFiles: LogFileInfo[]): string;
/**
* Format file processing summary
*/
static formatProcessingSummary(entriesReturned: number, filesProcessed: number, totalEntries: number): string;
/**
* Format log level statistics
*/
static formatLogLevelStats(stats: Record<LogLevel, number>): string;
/**
* Format error message with context
*/
static formatError(operation: string, error: unknown): string;
/**
* Format file list for debugging
*/
static formatFileList(files: string[], prefix?: string): string;
/**
* Format timestamp for display
*/
static formatTimestamp(date: Date): string;
/**
* Format log entry with timestamp and level highlighting
*/
static formatLogEntry(entry: string, highlightLevel?: boolean): string;
/**
* Format progress indicator
*/
static formatProgress(current: number, total: number, operation: string): string;
/**
* Format file size summary
*/
static formatFileSizes(files: Array<{
name: string;
size: number;
}>): string;
/**
* Truncate long text with ellipsis
*/
static truncateText(text: string, maxLength: number): string;
/**
* Format job log list
*/
static formatJobLogList(jobLogs: JobLogInfo[]): string;
/**
* Format job log entries with job context
*/
static formatJobLogEntries(entries: string[], level: LogLevel | 'all', limit: number, jobContext?: string): string;
/**
* Format job execution summary
*/
static formatJobExecutionSummary(summary: {
startTime?: string;
endTime?: string;
status?: string;
duration?: string;
errorCount: number;
warningCount: number;
steps: string[];
}, jobName: string): string;
/**
* Format job search results
*/
static formatJobSearchResults(matches: string[], pattern: string, jobContext?: string): string;
}
//# sourceMappingURL=log-formatter.d.ts.map