// @bun
var{defineProperty:y,getOwnPropertyNames:C,getOwnPropertyDescriptor:E}=Object,F=Object.prototype.hasOwnProperty;function G(g){return this[g]}var M=(g)=>{var j=(A??=new WeakMap).get(g),q;if(j)return j;if(j=y({},"__esModule",{value:!0}),g&&typeof g==="object"||typeof g==="function"){for(var w of C(g))if(!F.call(j,w))y(j,w,{get:G.bind(g,w),enumerable:!(q=E(g,w))||q.enumerable})}return A.set(g,j),j},A;var H=(g)=>g;function I(g,j){this[g]=H.bind(null,j)}var N=(g,j)=>{for(var q in j)y(g,q,{get:j[q],enumerable:!0,configurable:!0,set:I.bind(j,q)})};var J=(g,j)=>()=>(g&&(j=g(g=0)),j);var O=import.meta.require;import z from"fs";import B from"path";function U(g,j,q){return{version:1,buildTime:new Date().toISOString(),routes:g,assets:j,outputDir:q}}function V(g,j){let q=B.join(j,"manifest.json");z.writeFileSync(q,JSON.stringify(g,null,2))}function W(g){let j=B.join(g,"manifest.json");if(!z.existsSync(j))return null;try{let q=z.readFileSync(j,"utf-8"),w=JSON.parse(q);if(w.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${w.version}`),null;return w}catch(q){return console.warn("[stx] Failed to load manifest:",q),null}}var K=()=>{};K();export{V as writeManifest,W as loadManifest,U as generateManifest};
