module.exports=[397998,e=>{"use strict";async function r(){{let{pruneOrphanedWorktrees:r,cleanupStaleExecutions:s,ensureTowerLabel:t,ensureDefaultWorkspace:o}=await e.A(257948);await r(),await s(),await t(),await o();let{startWsServer:a}=await e.A(484221);await a();let{ensureTowerDir:i}=await e.A(204549);i(),(async()=>{try{let{providerRegistry:r}=await e.A(128761),{installAllForProvider:s}=await e.A(518092),t=parseInt(process.env.PORT||"3000",10),o=`http://localhost:${t}`;for(let e of r.getAll()){let r=e.cli?.adapter;if(r)try{if(await r.repairHookPaths?.().catch(()=>{}),!await r.isAvailable()||await r.isMcpInstalled("tower",{scope:"user"}).catch(()=>!1))continue;let t=await s(e.name,o);t.ok?console.error(`[init-tower] Auto-installed Tower MCP for ${e.name} (user scope)`):console.error(`[init-tower] Auto-install for ${e.name} reported issues:`,{mcp:t.mcp?.ok,hooks:t.hooks?.ok,skill:t.skill?.ok})}catch(r){console.error(`[init-tower] Auto-install failed for ${e.name}:`,r)}}}catch(e){console.error("[init-tower] Provider auto-install setup failed:",e)}})()}}e.s(["register",0,r])},257948,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0965p6t._.js"].map(r=>e.l(r))).then(()=>r(271856)))},484221,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0c513um._.js","server/chunks/src_lib_12xey8u._.js"].map(r=>e.l(r))).then(()=>r(336114)))},204549,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0ogh_qu._.js","server/chunks/src_lib_ai_providers_index_ts_0.y.3vp._.js"].map(r=>e.l(r))).then(()=>r(301105)))},128761,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0lioghc._.js","server/chunks/src_lib_ai_providers_index_ts_0.y.3vp._.js"].map(r=>e.l(r))).then(()=>r(136902)))},518092,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0tys9pv._.js","server/chunks/src_lib_ai_providers_index_ts_0.y.3vp._.js"].map(r=>e.l(r))).then(()=>r(760138)))}];

//# sourceMappingURL=src_0weytpz._.js.map