UNPKG

llmxml

Version:

Convert between markdown and LLM-friendly pseudo-XML

33 lines (31 loc) 944 B
/** * Default threshold for fuzzy matching section titles * Range: 0-1, where 1 requires exact matches */ export const DEFAULT_FUZZY_THRESHOLD = 0.7; /** * Warning level configuration options */ export const WARNING_LEVELS = { /** Emit all warnings */ ALL: 'all', /** Suppress all warnings */ NONE: 'none', /** Only emit warnings for ambiguous matches */ AMBIGUOUS_ONLY: 'ambiguous-only', } as const; /** * Standard error messages for common error conditions */ export const ERROR_MESSAGES = { /** Document parsing failed */ PARSE_ERROR: 'Failed to parse document', /** Requested section was not found */ SECTION_NOT_FOUND: 'Section not found', /** Document format is not valid */ INVALID_FORMAT: 'Invalid document format', /** Header level is out of valid range */ INVALID_LEVEL: 'Invalid header level', /** Multiple sections have the same ID */ DUPLICATE_ID: 'Duplicate section ID found', } as const;