"use strict";(()=>{var e={};e.id=432,e.ids=[432],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7561:e=>{e.exports=require("node:fs")},9411:e=>{e.exports=require("node:path")},6296:(e,t,n)=>{n.r(t),n.d(t,{originalPathname:()=>y,patchFetch:()=>x,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>f,staticGenerationAsyncStorage:()=>h});var r={};n.r(r),n.d(r,{GET:()=>p,dynamic:()=>c});var i=n(3277),u=n(5265),s=n(5356),o=n(7076),a=n(1760);let c="force-dynamic";async function p(){let e=(0,a.gn)("external/github/sync-status.json");return e?o.NextResponse.json(e):o.NextResponse.json({},{status:204})}let l=new i.AppRouteRouteModule({definition:{kind:u.x.APP_ROUTE,page:"/api/github-status/route",pathname:"/api/github-status",filename:"route",bundlePath:"app/api/github-status/route"},resolvedPagePath:"/home/dx/Work/hex/dashboard/app/api/github-status/route.ts",nextConfigOutput:"",userland:r}),{requestAsyncStorage:d,staticGenerationAsyncStorage:h,serverHooks:f}=l,y="/api/github-status/route";function x(){return(0,s.patchFetch)({serverHooks:f,staticGenerationAsyncStorage:h})}},1760:(e,t,n)=>{n.d(t,{J1:()=>h,V9:()=>f,ZN:()=>d,au:()=>p,gn:()=>a,ki:()=>l,ws:()=>c});var r=n(7561),i=n.n(r),u=n(9411),s=n.n(u);function o(){let e=process.env.HEX_PROJECT_DIR??process.env.SOLAUDIT_PROJECT_DIR??process.cwd();try{let t=s().join(e,".hex","config.json");if(i().existsSync(t))return s().join(e,".hex");let n=s().join(e,".solaudit","config.json");if(i().existsSync(n))return s().join(e,".solaudit")}catch{}return s().join(e,".hex")}function a(e){try{let t=s().join(o(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}function c(e){try{let t=s().join(o(),e);return i().readFileSync(t,"utf-8")}catch{return null}}function p(e,t){let n=s().join(o(),e);i().writeFileSync(n,JSON.stringify(t,null,2),"utf-8")}function l(e){try{let t=s().join(o(),e);return i().existsSync(t)}catch{return!1}}function d(){return o()}function h(e){try{let t=s().join(o(),e);if(!i().existsSync(t))return[];return i().readdirSync(t,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>e.name)}catch{return[]}}function f(e){try{let t=s().join(o(),e),n=i().readFileSync(t,"utf-8");return JSON.parse(n)}catch{return null}}}};var t=require("../../../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[916,786],()=>n(6296));module.exports=r})();