// @bun
var g=Object.defineProperty;var j=(c)=>c;function k(c,b){this[c]=j.bind(null,b)}var q=(c,b)=>{for(var f in b)g(c,f,{get:b[f],enumerable:!0,configurable:!0,set:k.bind(b,f)})};var w=(c,b)=>()=>(c&&(b=c(c=0)),b);var x=import.meta.require;function A(c){let b=c.replace(/\\/g,"/").replace(/\/+/g,"/");if(!b.startsWith("/memories")||b.includes("..")||b==="/memories/.."||b.startsWith("/memories/../"))throw Error(`Invalid memory path: ${c}. Path must be under /memories and cannot contain traversal sequences.`)}export{A as validateMemoryPath};
