(()=>{var e={};e.id=316,e.ids=[316],e.modules={20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},79348:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30412:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},92048:e=>{"use strict";e.exports=require("fs")},19801:e=>{"use strict";e.exports=require("os")},55315:e=>{"use strict";e.exports=require("path")},11417:(e,r,s)=>{"use strict";s.r(r),s.d(r,{patchFetch:()=>g,routeModule:()=>h,serverHooks:()=>f,workAsyncStorage:()=>m,workUnitAsyncStorage:()=>v});var t={};s.r(t),s.d(t,{GET:()=>x,dynamic:()=>d,runtime:()=>l});var a=s(88797),o=s(10042),n=s(58492),i=s(59540),p=s(92048),u=s(19801),c=s(55315);let d="force-dynamic",l="nodejs";async function x(e,{params:r}){try{let{runHash:s}=await r,t=(0,c.join)((0,u.homedir)(),".cache","curator",s,"responses.jsonl"),a=e.nextUrl.searchParams,o=parseInt(a.get("lastLine")||"0"),n=(await p.promises.readFile(t,"utf-8")).split("\n").filter(e=>""!==e.trim()),d=n.slice(o).map(e=>JSON.parse(e));return i.NextResponse.json({data:d,totalLines:n.length})}catch(e){return console.error("Error reading responses file:",e),i.NextResponse.json({error:"Failed to read responses file"},{status:500})}}let h=new a.AppRouteRouteModule({definition:{kind:o.RouteKind.APP_ROUTE,page:"/api/responses/[runHash]/route",pathname:"/api/responses/[runHash]",filename:"route",bundlePath:"app/api/responses/[runHash]/route"},resolvedPagePath:"/home/charlieji/workspace/bella/bespoke-dataset-viewer/app/api/responses/[runHash]/route.ts",nextConfigOutput:"",userland:t}),{workAsyncStorage:m,workUnitAsyncStorage:v,serverHooks:f}=h;function g(){return(0,n.patchFetch)({workAsyncStorage:m,workUnitAsyncStorage:v})}},78031:()=>{},35303:()=>{}};var r=require("../../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[492,661],()=>s(11417));module.exports=t})();