velesdb-memory 0.14.1

VelesDB-memory: local-first MCP memory server for AI agents (remember/recall/relate/forget/why + deterministic context compiler).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::update_os_str;
use sha2::{Digest, Sha256};
use std::ffi::OsString;
use std::os::windows::ffi::OsStringExt;

#[test]
fn path_hashing_distinguishes_non_unicode_windows_names() {
    let first = OsString::from_wide(&[0xd800]);
    let second = OsString::from_wide(&[0xd801]);
    assert_eq!(first.to_string_lossy(), second.to_string_lossy());

    let mut first_hash = Sha256::new();
    update_os_str(&mut first_hash, &first);
    let mut second_hash = Sha256::new();
    update_os_str(&mut second_hash, &second);

    assert_ne!(first_hash.finalize(), second_hash.finalize());
}