import{createRequire as q}from"node:module";var g=Object.defineProperty;var j=(c)=>c;function k(c,b){this[c]=j.bind(null,b)}var w=(c,b)=>{for(var f in b)g(c,f,{get:b[f],enumerable:!0,configurable:!0,set:k.bind(b,f)})};var x=(c,b)=>()=>(c&&(b=c(c=0)),b);var A=q(import.meta.url);function C(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{C as validateMemoryPath};
