UNPKG

@sofianedjerbi/knowledge-tree-mcp

Version:

MCP server for hierarchical project knowledge management

47 lines 1.5 kB
/** * Priority-related constants for the Knowledge Tree system */ import type { Priority } from '../types/KnowledgeEntry.js'; /** * Priority levels in order of importance */ export declare const PRIORITY_LEVELS: readonly ["CRITICAL", "REQUIRED", "COMMON", "EDGE-CASE"]; /** * Priority weights for scoring and sorting * Higher values indicate higher priority */ export declare const PRIORITY_WEIGHTS: Record<Priority, number>; /** * Priority sort order (ascending) * Lower values appear first when sorting */ export declare const PRIORITY_ORDER: Record<Priority, number>; /** * Priority display names for UI/documentation */ export declare const PRIORITY_DISPLAY_NAMES: Record<Priority, string>; /** * Priority descriptions for help text */ export declare const PRIORITY_DESCRIPTIONS: Record<Priority, string>; /** * Priority colors for UI/visualization (CSS color values) */ export declare const PRIORITY_COLORS: Record<Priority, string>; /** * Priority border colors for UI elements */ export declare const PRIORITY_BORDER_COLORS: Record<Priority, string>; /** * Check if a value is a valid priority */ export declare function isValidPriority(value: unknown): value is Priority; /** * Get priority weight for sorting */ export declare function getPriorityWeight(priority: Priority): number; /** * Compare two priorities for sorting (returns -1, 0, or 1) */ export declare function comparePriorities(a: Priority, b: Priority): number; //# sourceMappingURL=priorities.d.ts.map