@sofianedjerbi/knowledge-tree-mcp
Version:
MCP server for hierarchical project knowledge management
47 lines • 1.75 kB
TypeScript
/**
* Relationship-related constants for the Knowledge Tree system
*/
import type { RelationshipType } from '../types/KnowledgeEntry.js';
/**
* All available relationship types
*/
export declare const RELATIONSHIP_TYPES: readonly ["related", "supersedes", "superseded_by", "conflicts_with", "implements", "implemented_by"];
/**
* Bidirectional relationship types
* These automatically create reverse links when applied
*/
export declare const BIDIRECTIONAL_RELATIONSHIPS: RelationshipType[];
/**
* Inverse relationship mappings
* Used to determine the reverse relationship when creating links
*/
export declare const INVERSE_RELATIONSHIPS: Partial<Record<RelationshipType, RelationshipType>>;
/**
* Relationship display names for UI
*/
export declare const RELATIONSHIP_DISPLAY_NAMES: Record<RelationshipType, string>;
/**
* Relationship descriptions for help text
*/
export declare const RELATIONSHIP_DESCRIPTIONS: Record<RelationshipType, string>;
/**
* Relationship icons/emojis for display
*/
export declare const RELATIONSHIP_ICONS: Record<RelationshipType, string>;
/**
* Check if a value is a valid relationship type
*/
export declare function isValidRelationshipType(value: unknown): value is RelationshipType;
/**
* Check if a relationship type is bidirectional
*/
export declare function isBidirectionalRelationship(type: RelationshipType): boolean;
/**
* Get the inverse of a relationship type
*/
export declare function getInverseRelationship(type: RelationshipType): RelationshipType | undefined;
/**
* Check if two relationship types are inverses of each other
*/
export declare function areInverseRelationships(type1: RelationshipType, type2: RelationshipType): boolean;
//# sourceMappingURL=relationships.d.ts.map