module.exports=[26279,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(51515)},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},44376,(a,b,c)=>{b.exports=a.x("node:module",()=>require("node:module"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},90963,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},83153,a=>{"use strict";var b=a.i(26279),c=a.i(2157),d=a.i(44376),e=a.i(50227);let f=[{id:"local",displayName:"Local",packageName:null,description:"Local file-based storage with no dependencies, ideal for development",isBuiltIn:!0},{id:"vercel",displayName:"Vercel",packageName:null,description:"Vercel-managed storage and queue",isBuiltIn:!0},{id:"postgres",displayName:"PostgreSQL",packageName:"@workflow/world-postgres",description:"PostgreSQL-based storage with pg-boss queue",isBuiltIn:!1}];var g=a.i(90963);let h=(0,d.createRequire)((0,e.join)(process.cwd(),"index.js"));async function i(){return f.map(a=>{let b={id:a.id,displayName:a.displayName,packageName:a.packageName,description:a.description,isBuiltIn:a.isBuiltIn,isInstalled:a.isBuiltIn};if(!a.isBuiltIn&&a.packageName)try{h.resolve(a.packageName),b.isInstalled=!0}catch{b.isInstalled=!1,b.installCommand=`npm install ${a.packageName}`}return b})}async function j(a){let b=[],d=a.backend||"local";if("local"===d){if(a.dataDir){let d=(0,e.resolve)(a.dataDir);(0,c.existsSync)(d)||b.push({field:"dataDir",message:`Data directory does not exist: ${d}`})}if(a.port){let c=Number.parseInt(a.port,10);(Number.isNaN(c)||c<1||c>65535)&&b.push({field:"port",message:"Port must be a number between 1 and 65535"})}}return"postgres"===d&&(a.postgresUrl?a.postgresUrl.startsWith("postgres://")||a.postgresUrl.startsWith("postgresql://")||b.push({field:"postgresUrl",message:"Invalid PostgreSQL connection string format (must start with postgres:// or postgresql://)"}):b.push({field:"postgresUrl",message:"PostgreSQL connection string is required"})),b}(0,g.ensureServerEntryExports)([i,j]),(0,b.registerServerReference)(i,"00f5d87d587abb8bf9946a0329993411ba974058eb",null),(0,b.registerServerReference)(j,"402c83f68f97c6b3738088f54e0bdd5b1c5f202248",null),a.s(["checkWorldsAvailability",()=>i,"validateWorldConfig",()=>j],83153)},30474,a=>{"use strict";var b=a.i(83153);a.s([],56560),a.i(56560),a.s(["00f5d87d587abb8bf9946a0329993411ba974058eb",()=>b.checkWorldsAvailability,"402c83f68f97c6b3738088f54e0bdd5b1c5f202248",()=>b.validateWorldConfig],30474)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__90c30d21._.js.map