//! Concept alias keys for canonical path mapping.

use super::builders::global_key;

/// Alias forward key: `\x00CA:{alias_path}`
///
/// Maps an alias path to its canonical ConceptPath.
pub fn alias_key(alias_path: &str) -> Vec<u8> {
    global_key(b"CA:", alias_path.as_bytes())
}

/// Alias reverse key: `\x00CAR:{canonical_path}`
///
/// Maps a canonical path to all alias paths (stored as Vec<String>).
pub fn alias_reverse_key(canonical_path: &str) -> Vec<u8> {
    global_key(b"CAR:", canonical_path.as_bytes())
}

/// Alias scan prefix: `\x00CA:`
///
/// Used to list all aliases in the store.
pub fn alias_scan_prefix() -> Vec<u8> {
    global_key(b"CA:", b"")
}
