defect-inspection-tools-mcp-server
Version:
Defect inspection tools server handling defect detection, analysis, and reporting with AI/ML capabilities for quality control
60 lines (59 loc) • 1.77 kB
TypeScript
export interface MarkdownOptions {
sanitize?: boolean;
maxLength?: number;
allowHtml?: boolean;
preserveLineBreaks?: boolean;
headingLevels?: number[];
}
export interface MarkdownSection {
level: number;
title: string;
content: string;
subsections?: MarkdownSection[];
}
export interface MarkdownTable {
headers: string[];
rows: string[][];
caption?: string;
}
export interface MarkdownLink {
text: string;
url: string;
title?: string;
}
export interface MarkdownImage {
alt: string;
url: string;
title?: string;
}
export interface MarkdownCodeBlock {
language?: string;
code: string;
}
export interface MarkdownDocument {
title?: string;
sections: MarkdownSection[];
tables: MarkdownTable[];
links: MarkdownLink[];
images: MarkdownImage[];
codeBlocks: MarkdownCodeBlock[];
}
export declare class MarkdownProcessor {
private static readonly DEFAULT_OPTIONS;
static parseMarkdown(content: string, options?: MarkdownOptions): MarkdownDocument;
static generateMarkdown(document: MarkdownDocument): string;
static generateInspectionReport(vesselData: any, inspectionData: any, defects?: any[]): string;
static generateComplianceSummary(complianceData: any[]): string;
private static extractTitle;
private static extractSections;
private static extractTables;
private static extractLinks;
private static extractImages;
private static extractCodeBlocks;
private static generateSectionMarkdown;
private static generateTableMarkdown;
private static generateCodeBlockMarkdown;
private static countDefectsBySeverity;
private static determineComplianceStatus;
private static calculateComplianceStatistics;
}