neural-loom 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/files/route.js +1 -1
- package/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/chunks/{[externals]__0shxiss._.js → [externals]__1334_78._.js} +2 -2
- package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js +1 -1
- package/.next/server/chunks/[root-of-the-server]__0d0pykb._.js.map +1 -1
- package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js +1 -1
- package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js.map +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/trace +1 -1
- package/.next/trace-build +1 -1
- package/bin/cli.js +4 -1
- package/package.json +1 -1
- package/src/app/api/files/route.ts +3 -1
- package/src/lib/agents/AiderRunner.ts +3 -0
- package/src/lib/agents/ClaudeRunner.ts +7 -2
- package/src/lib/agents/DockerRunner.ts +3 -0
- package/src/lib/agents/SSHRunner.ts +3 -0
- /package/.next/server/chunks/{[externals]__0shxiss._.js.map → [externals]__1334_78._.js.map} +0 -0
- /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → yb_z3YBguPNnBMLege_Cn}/_buildManifest.js +0 -0
- /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → yb_z3YBguPNnBMLege_Cn}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{7dOnbX1c746E1bCz_44Q2 → yb_z3YBguPNnBMLege_Cn}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[391,e=>{"use strict";var t=e.i(47909),r=e.i(74017),s=e.i(96250),a=e.i(59756),n=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),c=e.i(95169),d=e.i(47587),p=e.i(66012),f=e.i(70101),h=e.i(26937),m=e.i(10372),y=e.i(93695);e.i(52474);var R=e.i(220),g=e.i(89171),x=e.i(22734),v=e.i(14747);function w(e,t=0,r=3){let s=e.replace(/\\/g,"/");if(t>r)return[];try{let e=x.default.readdirSync(s,{withFileTypes:!0}),a=[];for(let n of e){if(n.name.startsWith(".")||"node_modules"===n.name||"out"===n.name||".next"===n.name||"dist"===n.name)continue;let e=v.default.join(s,n.name).replace(/\\/g,"/");n.isDirectory()?a.push({name:n.name,path:e,type:"directory",children:w(e,t+1,r)}):a.push({name:n.name,path:e,type:"file"})}return a.sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}catch(e){return console.error(`Failed to read directory tree for ${s}:`,e),[]}}function N(e,t,r=[],s=1500){let a=e.replace(/\\/g,"/"),n=t.replace(/\\/g,"/");if(r.length>=s)return r;try{for(let e of x.default.readdirSync(a,{withFileTypes:!0})){if(r.length>=s)break;if(e.name.startsWith(".")||"node_modules"===e.name||"out"===e.name||".next"===e.name||"dist"===e.name)continue;let t=v.default.join(a,e.name).replace(/\\/g,"/");if(e.isDirectory())N(t,n,r,s);else{let s=v.default.relative(n,t).replace(/\\/g,"/");r.push({name:e.name,path:t,relativePath:s})}}}catch(e){console.error(`Failed to read flat file list for ${a}:`,e)}return r}async function S(e){try{let{searchParams:t}=new URL(e.url),r=t.get("action");if("list"===r){let e=t.get("root"),r=t.get("scoped"),s=(e&&x.default.existsSync(e)?e:process.cwd()).replace(/\\/g,"/"),a=w(s),n=[];if(r)for(let e of r.split(",")){let t=e.trim().replace(/\\/g,"/");t&&x.default.existsSync(t)&&n.push({name:v.default.basename(t),path:t,tree:w(t)})}return g.NextResponse.json({success:!0,workspace:{name:v.default.basename(s)||"Workspace",path:s,tree:a},scoped:n})}if("flat_list"===r){let e=t.get("root"),r=t.get("scoped"),s=(e&&x.default.existsSync(e)?e:process.cwd()).replace(/\\/g,"/"),a=[];if(N(s,s,a),r)for(let e of r.split(",")){let t=e.trim().replace(/\\/g,"/");t&&x.default.existsSync(t)&&N(t,v.default.dirname(t).replace(/\\/g,"/"),a)}return g.NextResponse.json({success:!0,files:a})}if("browse_dirs"===r){let e=t.get("path"),r=e?v.default.resolve(e):process.cwd();if(r=r.replace(/\\/g,"/"),!x.default.existsSync(r))return g.NextResponse.json({error:"Directory does not exist"},{status:404});if(!x.default.statSync(r).isDirectory())return g.NextResponse.json({error:"Path is not a directory"},{status:400});let s=x.default.readdirSync(r,{withFileTypes:!0}),a=[];for(let e of s)if(e.isDirectory()){if(e.name.startsWith("."))continue;a.push({name:e.name,path:v.default.join(r,e.name).replace(/\\/g,"/")})}a.sort((e,t)=>e.name.localeCompare(t.name));let n=v.default.dirname(r).replace(/\\/g,"/"),o=n===r;return g.NextResponse.json({success:!0,currentPath:r,parentPath:o?null:n,directories:a})}if("read"===r){let e=t.get("path");if(!e)return g.NextResponse.json({error:"Missing required parameter 'path'"},{status:400});let r=e.replace(/\\/g,"/");if(!x.default.existsSync(r))return g.NextResponse.json({error:"File does not exist"},{status:404});let s=x.default.readFileSync(r,"utf8");return g.NextResponse.json({success:!0,content:s})}return g.NextResponse.json({error:"Invalid action. Must be 'list', 'flat_list' or 'read'"},{status:400})}catch(t){let e=t instanceof Error?t.message:"Unknown error";return g.NextResponse.json({error:e},{status:500})}}async function E(e){try{let{action:t,path:r,content:s,type:a,oldPath:n,newPath:o}=await e.json(),i=r?r.replace(/\\/g,"/"):void 0,l=n?n.replace(/\\/g,"/"):void 0,u=o?o.replace(/\\/g,"/"):void 0;if("write"===t){if(!i||void 0===s)return g.NextResponse.json({error:"Missing 'path' or 'content' in body"},{status:400});let e=v.default.dirname(i).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.writeFileSync(i,s,"utf8"),g.NextResponse.json({success:!0,message:"File saved successfully"})}if("create"===t){if(!i||!a)return g.NextResponse.json({error:"Missing 'path' or 'type' in request body"},{status:400});if(x.default.existsSync(i))return g.NextResponse.json({error:"Path already exists"},{status:400});if("directory"===a)return x.default.mkdirSync(i,{recursive:!0}),g.NextResponse.json({success:!0,message:"Directory created successfully"});{let e=v.default.dirname(i).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.writeFileSync(i,"","utf8"),g.NextResponse.json({success:!0,message:"File created successfully"})}}if("rename"===t){if(!l||!u)return g.NextResponse.json({error:"Missing 'oldPath' or 'newPath' in request body"},{status:400});if(!x.default.existsSync(l))return g.NextResponse.json({error:"Source path does not exist"},{status:404});if(x.default.existsSync(u))return g.NextResponse.json({error:"Target path already exists"},{status:400});let e=v.default.dirname(u).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.renameSync(l,u),g.NextResponse.json({success:!0,message:"Renamed successfully"})}if("delete"===t){if(!i)return g.NextResponse.json({error:"Missing 'path' in request body"},{status:400});if(!x.default.existsSync(i))return g.NextResponse.json({error:"Path does not exist"},{status:404});return x.default.rmSync(i,{recursive:!0,force:!0}),g.NextResponse.json({success:!0,message:"Deleted successfully"})}return g.NextResponse.json({error:"Invalid action."},{status:400})}catch(t){let e=t instanceof Error?t.message:"Unknown error";return g.NextResponse.json({error:e},{status:500})}}e.s(["GET",0,S,"POST",0,E],18271);var C=e.i(18271);let j=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/files/route",pathname:"/api/files",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/files/route.ts",nextConfigOutput:"",userland:C,...{}}),{workAsyncStorage:P,workUnitAsyncStorage:b,serverHooks:A}=j;async function T(e,t,s){s.requestMeta&&(0,a.setRequestMeta)(e,s.requestMeta),j.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/files/route";g=g.replace(/\/index$/,"")||"/";let x=await j.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:N,nextConfig:S,parsedUrl:E,isDraftMode:C,prerenderManifest:P,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,resolvedPathname:_,clientReferenceManifest:k,serverActionsManifest:q}=x,O=(0,i.normalizeAppPath)(g),M=!!(P.dynamicRoutes[O]||P.routes[_]),D=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,E,!1):t.end("This page could not be found"),null);if(M&&!C){let e=!!P.routes[_],t=P.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(S.adapterPath)return await D();throw new y.NoFallbackError}}let F=null;!M||j.isDev||C||(F="/index"===(F=_)?"/":F);let U=!0===j.isDev||!M,I=M&&!U;q&&k&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:k,serverActionsManifest:q});let H=e.method||"GET",$=(0,n.getTracer)(),K=$.getActiveScopeSpan(),W=!!(null==b?void 0:b.isWrappedByNextServer),B=!!(0,a.getRequestMeta)(e,"minimalMode"),L=(0,a.getRequestMeta)(e,"incrementalCache")||await j.getIncrementalCache(e,S,P,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:N,previewProps:P.preview,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:S.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>j.onRequestError(e,t,s,a,b)},sharedContext:{buildId:v,deploymentId:w}},V=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let a,o=async e=>j.handle(z,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${H} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",s),a.updateName(t))}else e.updateName(`${H} ${g}`)}),i=async a=>{var n,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&A&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&s.waitUntil&&(s.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!M)return await (0,p.sendResponse)(V,X,n,G.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,s=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await j.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),t}},u=await j.handleResponse({req:e,nextConfig:S,cacheKey:F,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:P,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:s.waitUntil,isMinimalMode:B});if(!M)return null;if((null==u||null==(n=u.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&M||c.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(V,X,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};W&&K?await i(K):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${H} ${g}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},i),void 0,!W))}catch(t){if(t instanceof y.NoFallbackError||await j.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:A})},!1,b),M)throw t;return await (0,p.sendResponse)(V,X,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,s.patchFetch)({workAsyncStorage:P,workUnitAsyncStorage:b})},"routeModule",0,j,"serverHooks",0,A,"workAsyncStorage",0,P,"workUnitAsyncStorage",0,b],391)}];
|
|
1
|
+
module.exports=[391,e=>{"use strict";var t=e.i(47909),r=e.i(74017),s=e.i(96250),a=e.i(59756),n=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),c=e.i(95169),d=e.i(47587),p=e.i(66012),f=e.i(70101),h=e.i(26937),m=e.i(10372),y=e.i(93695);e.i(52474);var R=e.i(220),g=e.i(89171),x=e.i(22734),v=e.i(14747),w=e.i(46786);function N(e,t=0,r=3){let s=e.replace(/\\/g,"/");if(t>r)return[];try{let e=x.default.readdirSync(s,{withFileTypes:!0}),a=[];for(let n of e){if(n.name.startsWith(".")||"node_modules"===n.name||"out"===n.name||".next"===n.name||"dist"===n.name)continue;let e=v.default.join(s,n.name).replace(/\\/g,"/");n.isDirectory()?a.push({name:n.name,path:e,type:"directory",children:N(e,t+1,r)}):a.push({name:n.name,path:e,type:"file"})}return a.sort((e,t)=>e.type!==t.type?"directory"===e.type?-1:1:e.name.localeCompare(t.name))}catch(e){return console.error(`Failed to read directory tree for ${s}:`,e),[]}}function S(e,t,r=[],s=1500){let a=e.replace(/\\/g,"/"),n=t.replace(/\\/g,"/");if(r.length>=s)return r;try{for(let e of x.default.readdirSync(a,{withFileTypes:!0})){if(r.length>=s)break;if(e.name.startsWith(".")||"node_modules"===e.name||"out"===e.name||".next"===e.name||"dist"===e.name)continue;let t=v.default.join(a,e.name).replace(/\\/g,"/");if(e.isDirectory())S(t,n,r,s);else{let s=v.default.relative(n,t).replace(/\\/g,"/");r.push({name:e.name,path:t,relativePath:s})}}}catch(e){console.error(`Failed to read flat file list for ${a}:`,e)}return r}async function E(e){try{let{searchParams:t}=new URL(e.url),r=t.get("action");if("list"===r){let e=t.get("root"),r=t.get("scoped"),s=(e&&x.default.existsSync(e)?e:process.cwd()).replace(/\\/g,"/"),a=N(s),n=[];if(r)for(let e of r.split(",")){let t=e.trim().replace(/\\/g,"/");t&&x.default.existsSync(t)&&n.push({name:v.default.basename(t),path:t,tree:N(t)})}return g.NextResponse.json({success:!0,workspace:{name:v.default.basename(s)||"Workspace",path:s,tree:a},scoped:n})}if("flat_list"===r){let e=t.get("root"),r=t.get("scoped"),s=(e&&x.default.existsSync(e)?e:process.cwd()).replace(/\\/g,"/"),a=[];if(S(s,s,a),r)for(let e of r.split(",")){let t=e.trim().replace(/\\/g,"/");t&&x.default.existsSync(t)&&S(t,v.default.dirname(t).replace(/\\/g,"/"),a)}return g.NextResponse.json({success:!0,files:a})}if("browse_dirs"===r){let e=t.get("path"),r=(process.env.ORIGINAL_CWD||process.cwd()||w.default.homedir()).replace(/\\/g,"/"),s=e&&e.trim()?v.default.resolve(e):r;if(s=s.replace(/\\/g,"/"),!x.default.existsSync(s))return g.NextResponse.json({error:"Directory does not exist"},{status:404});if(!x.default.statSync(s).isDirectory())return g.NextResponse.json({error:"Path is not a directory"},{status:400});let a=x.default.readdirSync(s,{withFileTypes:!0}),n=[];for(let e of a)if(e.isDirectory()){if(e.name.startsWith("."))continue;n.push({name:e.name,path:v.default.join(s,e.name).replace(/\\/g,"/")})}n.sort((e,t)=>e.name.localeCompare(t.name));let o=v.default.dirname(s).replace(/\\/g,"/"),i=o===s;return g.NextResponse.json({success:!0,currentPath:s,parentPath:i?null:o,directories:n})}if("read"===r){let e=t.get("path");if(!e)return g.NextResponse.json({error:"Missing required parameter 'path'"},{status:400});let r=e.replace(/\\/g,"/");if(!x.default.existsSync(r))return g.NextResponse.json({error:"File does not exist"},{status:404});let s=x.default.readFileSync(r,"utf8");return g.NextResponse.json({success:!0,content:s})}return g.NextResponse.json({error:"Invalid action. Must be 'list', 'flat_list' or 'read'"},{status:400})}catch(t){let e=t instanceof Error?t.message:"Unknown error";return g.NextResponse.json({error:e},{status:500})}}async function C(e){try{let{action:t,path:r,content:s,type:a,oldPath:n,newPath:o}=await e.json(),i=r?r.replace(/\\/g,"/"):void 0,l=n?n.replace(/\\/g,"/"):void 0,u=o?o.replace(/\\/g,"/"):void 0;if("write"===t){if(!i||void 0===s)return g.NextResponse.json({error:"Missing 'path' or 'content' in body"},{status:400});let e=v.default.dirname(i).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.writeFileSync(i,s,"utf8"),g.NextResponse.json({success:!0,message:"File saved successfully"})}if("create"===t){if(!i||!a)return g.NextResponse.json({error:"Missing 'path' or 'type' in request body"},{status:400});if(x.default.existsSync(i))return g.NextResponse.json({error:"Path already exists"},{status:400});if("directory"===a)return x.default.mkdirSync(i,{recursive:!0}),g.NextResponse.json({success:!0,message:"Directory created successfully"});{let e=v.default.dirname(i).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.writeFileSync(i,"","utf8"),g.NextResponse.json({success:!0,message:"File created successfully"})}}if("rename"===t){if(!l||!u)return g.NextResponse.json({error:"Missing 'oldPath' or 'newPath' in request body"},{status:400});if(!x.default.existsSync(l))return g.NextResponse.json({error:"Source path does not exist"},{status:404});if(x.default.existsSync(u))return g.NextResponse.json({error:"Target path already exists"},{status:400});let e=v.default.dirname(u).replace(/\\/g,"/");return x.default.existsSync(e)||x.default.mkdirSync(e,{recursive:!0}),x.default.renameSync(l,u),g.NextResponse.json({success:!0,message:"Renamed successfully"})}if("delete"===t){if(!i)return g.NextResponse.json({error:"Missing 'path' in request body"},{status:400});if(!x.default.existsSync(i))return g.NextResponse.json({error:"Path does not exist"},{status:404});return x.default.rmSync(i,{recursive:!0,force:!0}),g.NextResponse.json({success:!0,message:"Deleted successfully"})}return g.NextResponse.json({error:"Invalid action."},{status:400})}catch(t){let e=t instanceof Error?t.message:"Unknown error";return g.NextResponse.json({error:e},{status:500})}}e.s(["GET",0,E,"POST",0,C],18271);var j=e.i(18271);let P=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/files/route",pathname:"/api/files",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/files/route.ts",nextConfigOutput:"",userland:j,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:T}=P;async function _(e,t,s){s.requestMeta&&(0,a.setRequestMeta)(e,s.requestMeta),P.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/files/route";g=g.replace(/\/index$/,"")||"/";let x=await P.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==s.waitUntil||s.waitUntil.call(s,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:N,nextConfig:S,parsedUrl:E,isDraftMode:C,prerenderManifest:j,routerServerContext:b,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,resolvedPathname:_,clientReferenceManifest:O,serverActionsManifest:k}=x,q=(0,i.normalizeAppPath)(g),D=!!(j.dynamicRoutes[q]||j.routes[_]),M=async()=>((null==b?void 0:b.render404)?await b.render404(e,t,E,!1):t.end("This page could not be found"),null);if(D&&!C){let e=!!j.routes[_],t=j.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(S.adapterPath)return await M();throw new y.NoFallbackError}}let I=null;!D||P.isDev||C||(I="/index"===(I=_)?"/":I);let F=!0===P.isDev||!D,U=D&&!F;k&&O&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:O,serverActionsManifest:k});let H=e.method||"GET",$=(0,n.getTracer)(),K=$.getActiveScopeSpan(),W=!!(null==b?void 0:b.isWrappedByNextServer),L=!!(0,a.getRequestMeta)(e,"minimalMode"),B=(0,a.getRequestMeta)(e,"incrementalCache")||await P.getIncrementalCache(e,S,j,L);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:N,previewProps:j.preview,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:F,incrementalCache:B,cacheLifeProfiles:S.cacheLife,waitUntil:s.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,s,a)=>P.onRequestError(e,t,s,a,b)},sharedContext:{buildId:v,deploymentId:w}},V=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let a,o=async e=>P.handle(z,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let s=r.get("next.route");if(s){let t=`${H} ${s}`;e.setAttributes({"next.route":s,"http.route":s,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",s),a.updateName(t))}else e.updateName(`${H} ${g}`)}),i=async a=>{var n,i;let l=async({previousCacheEntry:r})=>{try{if(!L&&A&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&s.waitUntil&&(s.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!D)return await (0,p.sendResponse)(V,X,n,G.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(n.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,s=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:s}}}}catch(t){throw(null==r?void 0:r.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),t}},u=await P.handleResponse({req:e,nextConfig:S,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:j,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:s.waitUntil,isMinimalMode:L});if(!D)return null;if((null==u||null==(n=u.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",A?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return L&&D||c.delete(m.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(V,X,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};W&&K?await i(K):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(c.BaseServerSpan.handleRequest,{spanName:`${H} ${g}`,kind:n.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},i),void 0,!W))}catch(t){if(t instanceof y.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:A})},!1,b),D)throw t;return await (0,p.sendResponse)(V,X,new Response(null,{status:500})),null}}e.s(["handler",0,_,"patchFetch",0,function(){return(0,s.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,P,"serverHooks",0,T,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],391)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js.map
|
package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0ev3h.z.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/app/api/files/route.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { NextResponse } from \"next/server\";\nimport fs from \"fs\";\nimport path from \"path\";\n\n// Helper to recursively generate a tree nodes list for UI representation\ninterface TreeNode {\n name: string;\n path: string;\n type: \"file\" | \"directory\";\n children?: TreeNode[];\n}\n\nfunction getDirectoryTree(dirPath: string, depth = 0, maxDepth = 3): TreeNode[] {\n const normDirPath = dirPath.replace(/\\\\/g, \"/\");\n if (depth > maxDepth) return [];\n try {\n const items = fs.readdirSync(normDirPath, { withFileTypes: true });\n const nodes: TreeNode[] = [];\n\n for (const item of items) {\n // Skip hidden folders and build folders to keep explorer performant\n if (\n item.name.startsWith(\".\") ||\n item.name === \"node_modules\" ||\n item.name === \"out\" ||\n item.name === \".next\" ||\n item.name === \"dist\"\n ) {\n continue;\n }\n\n const itemPath = path.join(normDirPath, item.name).replace(/\\\\/g, \"/\");\n if (item.isDirectory()) {\n nodes.push({\n name: item.name,\n path: itemPath,\n type: \"directory\",\n children: getDirectoryTree(itemPath, depth + 1, maxDepth),\n });\n } else {\n nodes.push({\n name: item.name,\n path: itemPath,\n type: \"file\",\n });\n }\n }\n\n // Sort: directories first, then files alphabetically\n return nodes.sort((a, b) => {\n if (a.type !== b.type) {\n return a.type === \"directory\" ? -1 : 1;\n }\n return a.name.localeCompare(b.name);\n });\n } catch (err) {\n console.error(`Failed to read directory tree for ${normDirPath}:`, err);\n return [];\n }\n}\n\ninterface FlatFileItem {\n name: string;\n path: string;\n relativePath: string;\n}\n\nfunction getFlatFileList(dirPath: string, rootDir: string, list: FlatFileItem[] = [], maxFiles = 1500): FlatFileItem[] {\n const normDirPath = dirPath.replace(/\\\\/g, \"/\");\n const normRootDir = rootDir.replace(/\\\\/g, \"/\");\n if (list.length >= maxFiles) return list;\n try {\n const items = fs.readdirSync(normDirPath, { withFileTypes: true });\n for (const item of items) {\n if (list.length >= maxFiles) break;\n\n // Skip hidden folders and build folders\n if (\n item.name.startsWith(\".\") ||\n item.name === \"node_modules\" ||\n item.name === \"out\" ||\n item.name === \".next\" ||\n item.name === \"dist\"\n ) {\n continue;\n }\n\n const itemPath = path.join(normDirPath, item.name).replace(/\\\\/g, \"/\");\n if (item.isDirectory()) {\n getFlatFileList(itemPath, normRootDir, list, maxFiles);\n } else {\n const relativePath = path.relative(normRootDir, itemPath).replace(/\\\\/g, \"/\");\n list.push({\n name: item.name,\n path: itemPath,\n relativePath: relativePath,\n });\n }\n }\n } catch (err) {\n console.error(`Failed to read flat file list for ${normDirPath}:`, err);\n }\n return list;\n}\n\nexport async function GET(request: Request) {\n try {\n const { searchParams } = new URL(request.url);\n const action = searchParams.get(\"action\");\n\n if (action === \"list\") {\n const rootPath = searchParams.get(\"root\");\n const scopedStr = searchParams.get(\"scoped\");\n \n const targetRoot = ((rootPath && fs.existsSync(rootPath)) ? rootPath : process.cwd()).replace(/\\\\/g, \"/\");\n const workspaceTree = getDirectoryTree(targetRoot);\n const scopedTrees: { name: string; path: string; tree: TreeNode[] }[] = [];\n\n if (scopedStr) {\n const scopedPaths = scopedStr.split(\",\");\n for (const p of scopedPaths) {\n const trimmed = p.trim().replace(/\\\\/g, \"/\");\n if (trimmed && fs.existsSync(trimmed)) {\n scopedTrees.push({\n name: path.basename(trimmed),\n path: trimmed,\n tree: getDirectoryTree(trimmed),\n });\n }\n }\n }\n\n return NextResponse.json({\n success: true,\n workspace: {\n name: path.basename(targetRoot) || \"Workspace\",\n path: targetRoot,\n tree: workspaceTree,\n },\n scoped: scopedTrees,\n });\n }\n\n if (action === \"flat_list\") {\n const rootPath = searchParams.get(\"root\");\n const scopedStr = searchParams.get(\"scoped\");\n \n const targetRoot = ((rootPath && fs.existsSync(rootPath)) ? rootPath : process.cwd()).replace(/\\\\/g, \"/\");\n const files: FlatFileItem[] = [];\n \n getFlatFileList(targetRoot, targetRoot, files);\n\n if (scopedStr) {\n const scopedPaths = scopedStr.split(\",\");\n for (const p of scopedPaths) {\n const trimmed = p.trim().replace(/\\\\/g, \"/\");\n if (trimmed && fs.existsSync(trimmed)) {\n getFlatFileList(trimmed, path.dirname(trimmed).replace(/\\\\/g, \"/\"), files);\n }\n }\n }\n\n return NextResponse.json({\n success: true,\n files: files,\n });\n }\n\n if (action === \"browse_dirs\") {\n const targetPathRaw = searchParams.get(\"path\");\n let targetPath = targetPathRaw ? path.resolve(targetPathRaw) : process.cwd();\n targetPath = targetPath.replace(/\\\\/g, \"/\");\n\n if (!fs.existsSync(targetPath)) {\n return NextResponse.json({ error: \"Directory does not exist\" }, { status: 404 });\n }\n\n const stat = fs.statSync(targetPath);\n if (!stat.isDirectory()) {\n return NextResponse.json({ error: \"Path is not a directory\" }, { status: 400 });\n }\n\n const items = fs.readdirSync(targetPath, { withFileTypes: true });\n const directories: { name: string; path: string }[] = [];\n\n for (const item of items) {\n if (item.isDirectory()) {\n // Skip hidden directories\n if (item.name.startsWith(\".\")) continue;\n directories.push({\n name: item.name,\n path: path.join(targetPath, item.name).replace(/\\\\/g, \"/\"),\n });\n }\n }\n\n // Sort alphabetically\n directories.sort((a, b) => a.name.localeCompare(b.name));\n\n const parentPath = path.dirname(targetPath).replace(/\\\\/g, \"/\");\n const isRoot = parentPath === targetPath;\n\n return NextResponse.json({\n success: true,\n currentPath: targetPath,\n parentPath: isRoot ? null : parentPath,\n directories,\n });\n }\n\n if (action === \"read\") {\n const filePathRaw = searchParams.get(\"path\");\n if (!filePathRaw) {\n return NextResponse.json({ error: \"Missing required parameter 'path'\" }, { status: 400 });\n }\n\n const filePath = filePathRaw.replace(/\\\\/g, \"/\");\n if (!fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"File does not exist\" }, { status: 404 });\n }\n\n const content = fs.readFileSync(filePath, \"utf8\");\n return NextResponse.json({ success: true, content });\n }\n\n return NextResponse.json({ error: \"Invalid action. Must be 'list', 'flat_list' or 'read'\" }, { status: 400 });\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ error: errorMessage }, { status: 500 });\n }\n}\n\nexport async function POST(request: Request) {\n try {\n const body = await request.json();\n const { action, path: rawPath, content, type, oldPath: rawOldPath, newPath: rawNewPath } = body;\n const filePath = rawPath ? rawPath.replace(/\\\\/g, \"/\") : undefined;\n const oldPath = rawOldPath ? rawOldPath.replace(/\\\\/g, \"/\") : undefined;\n const newPath = rawNewPath ? rawNewPath.replace(/\\\\/g, \"/\") : undefined;\n\n if (action === \"write\") {\n if (!filePath || content === undefined) {\n return NextResponse.json({ error: \"Missing 'path' or 'content' in body\" }, { status: 400 });\n }\n\n // Ensure target directory exists\n const parentDir = path.dirname(filePath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n\n fs.writeFileSync(filePath, content, \"utf8\");\n return NextResponse.json({ success: true, message: \"File saved successfully\" });\n }\n\n if (action === \"create\") {\n if (!filePath || !type) {\n return NextResponse.json({ error: \"Missing 'path' or 'type' in request body\" }, { status: 400 });\n }\n\n if (fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"Path already exists\" }, { status: 400 });\n }\n\n if (type === \"directory\") {\n fs.mkdirSync(filePath, { recursive: true });\n return NextResponse.json({ success: true, message: \"Directory created successfully\" });\n } else {\n const parentDir = path.dirname(filePath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n fs.writeFileSync(filePath, \"\", \"utf8\");\n return NextResponse.json({ success: true, message: \"File created successfully\" });\n }\n }\n\n if (action === \"rename\") {\n if (!oldPath || !newPath) {\n return NextResponse.json({ error: \"Missing 'oldPath' or 'newPath' in request body\" }, { status: 400 });\n }\n\n if (!fs.existsSync(oldPath)) {\n return NextResponse.json({ error: \"Source path does not exist\" }, { status: 404 });\n }\n\n if (fs.existsSync(newPath)) {\n return NextResponse.json({ error: \"Target path already exists\" }, { status: 400 });\n }\n\n const parentDir = path.dirname(newPath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n\n fs.renameSync(oldPath, newPath);\n return NextResponse.json({ success: true, message: \"Renamed successfully\" });\n }\n\n if (action === \"delete\") {\n if (!filePath) {\n return NextResponse.json({ error: \"Missing 'path' in request body\" }, { status: 400 });\n }\n\n if (!fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"Path does not exist\" }, { status: 404 });\n }\n\n fs.rmSync(filePath, { recursive: true, force: true });\n return NextResponse.json({ success: true, message: \"Deleted successfully\" });\n }\n\n return NextResponse.json({ error: \"Invalid action.\" }, { status: 400 });\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ error: errorMessage }, { status: 500 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/files/route\",\n pathname: \"/api/files\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/src/app/api/files/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/files/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId,\n deploymentId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getDirectoryTree","dirPath","depth","maxDepth","normDirPath","replace","items","readdirSync","withFileTypes","nodes","item","name","startsWith","maxFiles","itemPath","join","isDirectory","push","path","type","children","list","error","sort","a","b","localeCompare","action","err","console","get","searchParams","targetRoot","rootPath","scopedTrees","scopedPaths","getFlatFileList","rootDir","normRootDir","length","json","basename","scoped","scopedStr","p","relativePath","relative","statSync","GET","request","URL","url","existsSync","process","cwd","workspaceTree","directories","split","trimmed","trim","tree","filePath","success","workspace","body","files","undefined","dirname","targetPathRaw","targetPath","resolve","mkdirSync","status","parentDir","stat","newPath","parentPath","isRoot","currentPath","filePathRaw","content","readFileSync","errorMessage","Error","message","POST","rawPath","oldPath","rawOldPath","rawNewPath","recursive","writeFileSync","renameSync","rmSync","force"],"mappings":"qCCAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,KDhBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAUA,SAASA,EAAiBC,CAAe,CAAEC,EAAQ,CAAC,CAAEC,EAAW,CAAC,EAChE,IAAMC,EAAcH,EAAQI,OAAO,CAAC,MAAO,KAC3C,GAAIH,EAAQC,EAAU,MAAO,EAAE,CAC/B,GAAI,CACF,IAAMG,EAAQ,EAAA,OAAE,CAACC,WAAW,CAACH,EAAa,CAAEI,eAAe,CAAK,GAC1DC,EAAoB,EAAE,CAE5B,IAAK,IAAMC,KAAQJ,EAAO,CAExB,GACEI,EAAKC,IAAI,CAACC,UAAU,CAAC,MACP,iBAAdF,EAAKC,IAAI,EACK,QAAdD,EAAKC,IAAI,EACK,AAAdD,YAAKC,IAAI,EACK,QACd,CADAD,EAAKC,IAAI,CAET,SAGF,IAAMG,EAAW,EAAA,OAAI,CAACC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/app/api/files/route.ts","../../../node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { NextResponse } from \"next/server\";\nimport fs from \"fs\";\nimport path from \"path\";\nimport os from \"os\";\n\n// Helper to recursively generate a tree nodes list for UI representation\ninterface TreeNode {\n name: string;\n path: string;\n type: \"file\" | \"directory\";\n children?: TreeNode[];\n}\n\nfunction getDirectoryTree(dirPath: string, depth = 0, maxDepth = 3): TreeNode[] {\n const normDirPath = dirPath.replace(/\\\\/g, \"/\");\n if (depth > maxDepth) return [];\n try {\n const items = fs.readdirSync(normDirPath, { withFileTypes: true });\n const nodes: TreeNode[] = [];\n\n for (const item of items) {\n // Skip hidden folders and build folders to keep explorer performant\n if (\n item.name.startsWith(\".\") ||\n item.name === \"node_modules\" ||\n item.name === \"out\" ||\n item.name === \".next\" ||\n item.name === \"dist\"\n ) {\n continue;\n }\n\n const itemPath = path.join(normDirPath, item.name).replace(/\\\\/g, \"/\");\n if (item.isDirectory()) {\n nodes.push({\n name: item.name,\n path: itemPath,\n type: \"directory\",\n children: getDirectoryTree(itemPath, depth + 1, maxDepth),\n });\n } else {\n nodes.push({\n name: item.name,\n path: itemPath,\n type: \"file\",\n });\n }\n }\n\n // Sort: directories first, then files alphabetically\n return nodes.sort((a, b) => {\n if (a.type !== b.type) {\n return a.type === \"directory\" ? -1 : 1;\n }\n return a.name.localeCompare(b.name);\n });\n } catch (err) {\n console.error(`Failed to read directory tree for ${normDirPath}:`, err);\n return [];\n }\n}\n\ninterface FlatFileItem {\n name: string;\n path: string;\n relativePath: string;\n}\n\nfunction getFlatFileList(dirPath: string, rootDir: string, list: FlatFileItem[] = [], maxFiles = 1500): FlatFileItem[] {\n const normDirPath = dirPath.replace(/\\\\/g, \"/\");\n const normRootDir = rootDir.replace(/\\\\/g, \"/\");\n if (list.length >= maxFiles) return list;\n try {\n const items = fs.readdirSync(normDirPath, { withFileTypes: true });\n for (const item of items) {\n if (list.length >= maxFiles) break;\n\n // Skip hidden folders and build folders\n if (\n item.name.startsWith(\".\") ||\n item.name === \"node_modules\" ||\n item.name === \"out\" ||\n item.name === \".next\" ||\n item.name === \"dist\"\n ) {\n continue;\n }\n\n const itemPath = path.join(normDirPath, item.name).replace(/\\\\/g, \"/\");\n if (item.isDirectory()) {\n getFlatFileList(itemPath, normRootDir, list, maxFiles);\n } else {\n const relativePath = path.relative(normRootDir, itemPath).replace(/\\\\/g, \"/\");\n list.push({\n name: item.name,\n path: itemPath,\n relativePath: relativePath,\n });\n }\n }\n } catch (err) {\n console.error(`Failed to read flat file list for ${normDirPath}:`, err);\n }\n return list;\n}\n\nexport async function GET(request: Request) {\n try {\n const { searchParams } = new URL(request.url);\n const action = searchParams.get(\"action\");\n\n if (action === \"list\") {\n const rootPath = searchParams.get(\"root\");\n const scopedStr = searchParams.get(\"scoped\");\n \n const targetRoot = ((rootPath && fs.existsSync(rootPath)) ? rootPath : process.cwd()).replace(/\\\\/g, \"/\");\n const workspaceTree = getDirectoryTree(targetRoot);\n const scopedTrees: { name: string; path: string; tree: TreeNode[] }[] = [];\n\n if (scopedStr) {\n const scopedPaths = scopedStr.split(\",\");\n for (const p of scopedPaths) {\n const trimmed = p.trim().replace(/\\\\/g, \"/\");\n if (trimmed && fs.existsSync(trimmed)) {\n scopedTrees.push({\n name: path.basename(trimmed),\n path: trimmed,\n tree: getDirectoryTree(trimmed),\n });\n }\n }\n }\n\n return NextResponse.json({\n success: true,\n workspace: {\n name: path.basename(targetRoot) || \"Workspace\",\n path: targetRoot,\n tree: workspaceTree,\n },\n scoped: scopedTrees,\n });\n }\n\n if (action === \"flat_list\") {\n const rootPath = searchParams.get(\"root\");\n const scopedStr = searchParams.get(\"scoped\");\n \n const targetRoot = ((rootPath && fs.existsSync(rootPath)) ? rootPath : process.cwd()).replace(/\\\\/g, \"/\");\n const files: FlatFileItem[] = [];\n \n getFlatFileList(targetRoot, targetRoot, files);\n\n if (scopedStr) {\n const scopedPaths = scopedStr.split(\",\");\n for (const p of scopedPaths) {\n const trimmed = p.trim().replace(/\\\\/g, \"/\");\n if (trimmed && fs.existsSync(trimmed)) {\n getFlatFileList(trimmed, path.dirname(trimmed).replace(/\\\\/g, \"/\"), files);\n }\n }\n }\n\n return NextResponse.json({\n success: true,\n files: files,\n });\n }\n\n if (action === \"browse_dirs\") {\n const targetPathRaw = searchParams.get(\"path\");\n const defaultDir = (process.env.ORIGINAL_CWD || process.cwd() || os.homedir()).replace(/\\\\/g, \"/\");\n let targetPath = (targetPathRaw && targetPathRaw.trim()) ? path.resolve(targetPathRaw) : defaultDir;\n targetPath = targetPath.replace(/\\\\/g, \"/\");\n\n if (!fs.existsSync(targetPath)) {\n return NextResponse.json({ error: \"Directory does not exist\" }, { status: 404 });\n }\n\n const stat = fs.statSync(targetPath);\n if (!stat.isDirectory()) {\n return NextResponse.json({ error: \"Path is not a directory\" }, { status: 400 });\n }\n\n const items = fs.readdirSync(targetPath, { withFileTypes: true });\n const directories: { name: string; path: string }[] = [];\n\n for (const item of items) {\n if (item.isDirectory()) {\n // Skip hidden directories\n if (item.name.startsWith(\".\")) continue;\n directories.push({\n name: item.name,\n path: path.join(targetPath, item.name).replace(/\\\\/g, \"/\"),\n });\n }\n }\n\n // Sort alphabetically\n directories.sort((a, b) => a.name.localeCompare(b.name));\n\n const parentPath = path.dirname(targetPath).replace(/\\\\/g, \"/\");\n const isRoot = parentPath === targetPath;\n\n return NextResponse.json({\n success: true,\n currentPath: targetPath,\n parentPath: isRoot ? null : parentPath,\n directories,\n });\n }\n\n if (action === \"read\") {\n const filePathRaw = searchParams.get(\"path\");\n if (!filePathRaw) {\n return NextResponse.json({ error: \"Missing required parameter 'path'\" }, { status: 400 });\n }\n\n const filePath = filePathRaw.replace(/\\\\/g, \"/\");\n if (!fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"File does not exist\" }, { status: 404 });\n }\n\n const content = fs.readFileSync(filePath, \"utf8\");\n return NextResponse.json({ success: true, content });\n }\n\n return NextResponse.json({ error: \"Invalid action. Must be 'list', 'flat_list' or 'read'\" }, { status: 400 });\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ error: errorMessage }, { status: 500 });\n }\n}\n\nexport async function POST(request: Request) {\n try {\n const body = await request.json();\n const { action, path: rawPath, content, type, oldPath: rawOldPath, newPath: rawNewPath } = body;\n const filePath = rawPath ? rawPath.replace(/\\\\/g, \"/\") : undefined;\n const oldPath = rawOldPath ? rawOldPath.replace(/\\\\/g, \"/\") : undefined;\n const newPath = rawNewPath ? rawNewPath.replace(/\\\\/g, \"/\") : undefined;\n\n if (action === \"write\") {\n if (!filePath || content === undefined) {\n return NextResponse.json({ error: \"Missing 'path' or 'content' in body\" }, { status: 400 });\n }\n\n // Ensure target directory exists\n const parentDir = path.dirname(filePath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n\n fs.writeFileSync(filePath, content, \"utf8\");\n return NextResponse.json({ success: true, message: \"File saved successfully\" });\n }\n\n if (action === \"create\") {\n if (!filePath || !type) {\n return NextResponse.json({ error: \"Missing 'path' or 'type' in request body\" }, { status: 400 });\n }\n\n if (fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"Path already exists\" }, { status: 400 });\n }\n\n if (type === \"directory\") {\n fs.mkdirSync(filePath, { recursive: true });\n return NextResponse.json({ success: true, message: \"Directory created successfully\" });\n } else {\n const parentDir = path.dirname(filePath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n fs.writeFileSync(filePath, \"\", \"utf8\");\n return NextResponse.json({ success: true, message: \"File created successfully\" });\n }\n }\n\n if (action === \"rename\") {\n if (!oldPath || !newPath) {\n return NextResponse.json({ error: \"Missing 'oldPath' or 'newPath' in request body\" }, { status: 400 });\n }\n\n if (!fs.existsSync(oldPath)) {\n return NextResponse.json({ error: \"Source path does not exist\" }, { status: 404 });\n }\n\n if (fs.existsSync(newPath)) {\n return NextResponse.json({ error: \"Target path already exists\" }, { status: 400 });\n }\n\n const parentDir = path.dirname(newPath).replace(/\\\\/g, \"/\");\n if (!fs.existsSync(parentDir)) {\n fs.mkdirSync(parentDir, { recursive: true });\n }\n\n fs.renameSync(oldPath, newPath);\n return NextResponse.json({ success: true, message: \"Renamed successfully\" });\n }\n\n if (action === \"delete\") {\n if (!filePath) {\n return NextResponse.json({ error: \"Missing 'path' in request body\" }, { status: 400 });\n }\n\n if (!fs.existsSync(filePath)) {\n return NextResponse.json({ error: \"Path does not exist\" }, { status: 404 });\n }\n\n fs.rmSync(filePath, { recursive: true, force: true });\n return NextResponse.json({ success: true, message: \"Deleted successfully\" });\n }\n\n return NextResponse.json({ error: \"Invalid action.\" }, { status: 400 });\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : \"Unknown error\";\n return NextResponse.json({ error: errorMessage }, { status: 500 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/files/route\",\n pathname: \"/api/files\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/src/app/api/files/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/files/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, deploymentId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId,\n deploymentId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getDirectoryTree","dirPath","depth","maxDepth","normDirPath","replace","items","readdirSync","withFileTypes","nodes","item","name","startsWith","itemPath","join","isDirectory","push","path","type","children","sort","a","b","localeCompare","request","err","console","error","targetRoot","split","getFlatFileList","rootDir","list","maxFiles","normRootDir","length","trimmed","scopedTrees","get","relativePath","relative","targetPathRaw","searchParams","env","ORIGINAL_CWD","GET","URL","url","targetPath","action","rootPath","scopedStr","directories","existsSync","process","cwd","workspaceTree","scopedPaths","p","parentPath","trim","basename","tree","json","success","workspace","readFileSync","content","errorMessage","scoped","POST","rawPath","files","rawNewPath","dirname","defaultDir","homedir","resolve","status","stat","statSync","oldPath","isRoot","currentPath","filePathRaw","filePath","Error","message","body","rawOldPath","newPath","undefined","parentDir","mkdirSync","recursive","writeFileSync","renameSync","rmSync","force"],"mappings":"qCCAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,KDhBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAUA,SAASA,EAAiBC,CAAe,CAAEC,EAAQ,CAAC,CAAEC,EAAW,CAAC,EAChE,IAAMC,EAAcH,EAAQI,OAAO,CAAC,MAAO,KAC3C,GAAIH,EAAQC,EAAU,MAAO,EAAE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AAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA5TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAW,AAAX,EAAY,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/yb_z3YBguPNnBMLege_Cn/_buildManifest.js",
|
|
11
|
+
"static/yb_z3YBguPNnBMLege_Cn/_ssgManifest.js",
|
|
12
|
+
"static/yb_z3YBguPNnBMLege_Cn/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0fpki3y6aj230.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/139c54uo1w7.4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fpki3y6aj230.js"/><script src="/_next/static/chunks/140ovxvjat1ch.js" async=""></script><script src="/_next/static/chunks/07lhk_q6pmm3r.js" async=""></script><script src="/_next/static/chunks/turbopack-08fpdsd.-ns2y.js" async=""></script><script src="/_next/static/chunks/0dbhjjzl8qfwv.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>NeuralLoom - Unified AI Agent Orchestrator & Context Bridge</title><meta name="description" content="Advanced console dashboard and context staging manager for Claude Code and simulated AI agents."/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fpki3y6aj230.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/139c54uo1w7.4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/139c54uo1w7.4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0dbhjjzl8qfwv.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/139c54uo1w7.4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/139c54uo1w7.4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fpki3y6aj230.js"/><script src="/_next/static/chunks/140ovxvjat1ch.js" async=""></script><script src="/_next/static/chunks/07lhk_q6pmm3r.js" async=""></script><script src="/_next/static/chunks/turbopack-08fpdsd.-ns2y.js" async=""></script><script src="/_next/static/chunks/0dbhjjzl8qfwv.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>NeuralLoom - Unified AI Agent Orchestrator & Context Bridge</title><meta name="description" content="Advanced console dashboard and context staging manager for Claude Code and simulated AI agents."/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fpki3y6aj230.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/139c54uo1w7.4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/139c54uo1w7.4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0dbhjjzl8qfwv.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/139c54uo1w7.4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"yb_z3YBguPNnBMLege_Cn\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"NeuralLoom - Unified AI Agent Orchestrator \u0026 Context Bridge\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Advanced console dashboard and context staging manager for Claude Code and simulated AI agents.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fpki3y6aj230.js"/><script src="/_next/static/chunks/140ovxvjat1ch.js" async=""></script><script src="/_next/static/chunks/07lhk_q6pmm3r.js" async=""></script><script src="/_next/static/chunks/turbopack-08fpdsd.-ns2y.js" async=""></script><script src="/_next/static/chunks/0dbhjjzl8qfwv.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fpki3y6aj230.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0fpki3y6aj230.js"/><script src="/_next/static/chunks/140ovxvjat1ch.js" async=""></script><script src="/_next/static/chunks/07lhk_q6pmm3r.js" async=""></script><script src="/_next/static/chunks/turbopack-08fpdsd.-ns2y.js" async=""></script><script src="/_next/static/chunks/0dbhjjzl8qfwv.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0fpki3y6aj230.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"yb_z3YBguPNnBMLege_Cn\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/0dbhjjzl8qfwv.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"1\",{}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"qX6sBmtR66nfPfM8MzsGjzHWn8ve+pBk0Irb2H3z/90=\"\n}"
|
package/.next/trace
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"generate-buildid","duration":
|
|
1
|
+
[{"name":"generate-buildid","duration":323,"timestamp":99033376467,"id":4,"parentId":1,"tags":{},"startTime":1781319769148,"traceId":"528f2e25d22acc4a"},{"name":"load-custom-routes","duration":405,"timestamp":99033376921,"id":5,"parentId":1,"tags":{},"startTime":1781319769148,"traceId":"528f2e25d22acc4a"},{"name":"create-dist-dir","duration":635,"timestamp":99033377360,"id":6,"parentId":1,"tags":{},"startTime":1781319769149,"traceId":"528f2e25d22acc4a"},{"name":"clean","duration":760,"timestamp":99033381127,"id":7,"parentId":1,"tags":{},"startTime":1781319769153,"traceId":"528f2e25d22acc4a"},{"name":"discover-routes","duration":9004,"timestamp":99033409095,"id":8,"parentId":1,"tags":{},"startTime":1781319769181,"traceId":"528f2e25d22acc4a"},{"name":"create-root-mapping","duration":102,"timestamp":99033418153,"id":9,"parentId":1,"tags":{},"startTime":1781319769190,"traceId":"528f2e25d22acc4a"},{"name":"generate-route-types","duration":20715,"timestamp":99033419763,"id":10,"parentId":1,"tags":{},"startTime":1781319769191,"traceId":"528f2e25d22acc4a"},{"name":"public-dir-conflict-check","duration":157,"timestamp":99033440708,"id":11,"parentId":1,"tags":{},"startTime":1781319769212,"traceId":"528f2e25d22acc4a"},{"name":"generate-routes-manifest","duration":3593,"timestamp":99033441034,"id":12,"parentId":1,"tags":{},"startTime":1781319769212,"traceId":"528f2e25d22acc4a"},{"name":"run-turbopack","duration":2414836,"timestamp":99033454518,"id":14,"parentId":1,"tags":{},"startTime":1781319769226,"traceId":"528f2e25d22acc4a"},{"name":"turbopack-build-events","duration":63,"timestamp":99033773453,"id":15,"parentId":1,"tags":{},"startTime":1781319769545,"traceId":"528f2e25d22acc4a"},{"name":"run-typescript","duration":3609953,"timestamp":99035879376,"id":16,"parentId":1,"tags":{},"startTime":1781319771651,"traceId":"528f2e25d22acc4a"},{"name":"generate-required-server-files","duration":1485,"timestamp":99039490252,"id":18,"parentId":1,"tags":{},"startTime":1781319775262,"traceId":"528f2e25d22acc4a"},{"name":"check-static-error-page","duration":7141,"timestamp":99039596030,"id":20,"parentId":19,"tags":{},"startTime":1781319775367,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":492707,"timestamp":99039608287,"id":38,"parentId":22,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":502165,"timestamp":99039598952,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1781319775370,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":609169,"timestamp":99039608527,"id":41,"parentId":25,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":618047,"timestamp":99039599715,"id":25,"parentId":19,"tags":{"page":"/api/context"},"startTime":1781319775371,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":612644,"timestamp":99039608378,"id":39,"parentId":23,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":621786,"timestamp":99039599286,"id":23,"parentId":19,"tags":{"page":"/api/context/aider"},"startTime":1781319775371,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":615588,"timestamp":99039607994,"id":37,"parentId":21,"tags":{},"startTime":1781319775379,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":625858,"timestamp":99039597769,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1781319775369,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":618105,"timestamp":99039608593,"id":42,"parentId":26,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":626804,"timestamp":99039599936,"id":26,"parentId":19,"tags":{"page":"/api/context/ssh"},"startTime":1781319775371,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":619032,"timestamp":99039608908,"id":44,"parentId":28,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":627582,"timestamp":99039600407,"id":28,"parentId":19,"tags":{"page":"/api/git"},"startTime":1781319775372,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":620765,"timestamp":99039608788,"id":43,"parentId":27,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":629441,"timestamp":99039600165,"id":27,"parentId":19,"tags":{"page":"/api/files"},"startTime":1781319775372,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":627763,"timestamp":99039609163,"id":46,"parentId":30,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":636057,"timestamp":99039600910,"id":30,"parentId":19,"tags":{"page":"/api/sessions/input"},"startTime":1781319775372,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":628732,"timestamp":99039609270,"id":47,"parentId":31,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":636915,"timestamp":99039601129,"id":31,"parentId":19,"tags":{"page":"/api/sessions/launch"},"startTime":1781319775373,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":629819,"timestamp":99039608452,"id":40,"parentId":24,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":638771,"timestamp":99039599524,"id":24,"parentId":19,"tags":{"page":"/api/context/claude"},"startTime":1781319775371,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":630754,"timestamp":99039609325,"id":48,"parentId":32,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":638775,"timestamp":99039601333,"id":32,"parentId":19,"tags":{"page":"/api/sessions"},"startTime":1781319775373,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":636553,"timestamp":99039608993,"id":45,"parentId":29,"tags":{},"startTime":1781319775380,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":644961,"timestamp":99039600627,"id":29,"parentId":19,"tags":{"page":"/api/sessions/inject"},"startTime":1781319775372,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":636359,"timestamp":99039609402,"id":50,"parentId":34,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":644013,"timestamp":99039601771,"id":34,"parentId":19,"tags":{"page":"/api/sessions/stop"},"startTime":1781319775373,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":640326,"timestamp":99039609360,"id":49,"parentId":33,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":648185,"timestamp":99039601538,"id":33,"parentId":19,"tags":{"page":"/api/sessions/stats"},"startTime":1781319775373,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":641019,"timestamp":99039609435,"id":51,"parentId":35,"tags":{},"startTime":1781319775381,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":648371,"timestamp":99039602107,"id":35,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1781319775374,"traceId":"528f2e25d22acc4a"},{"name":"is-page-static","duration":638762,"timestamp":99039612472,"id":52,"parentId":36,"tags":{},"startTime":1781319775384,"traceId":"528f2e25d22acc4a"},{"name":"check-page","duration":648460,"timestamp":99039602799,"id":36,"parentId":19,"tags":{"page":"/"},"startTime":1781319775374,"traceId":"528f2e25d22acc4a"},{"name":"static-check","duration":655661,"timestamp":99039595624,"id":19,"parentId":1,"tags":{},"startTime":1781319775367,"traceId":"528f2e25d22acc4a"},{"name":"write-routes-manifest","duration":894,"timestamp":99040252497,"id":54,"parentId":1,"tags":{},"startTime":1781319776024,"traceId":"528f2e25d22acc4a"},{"name":"load-dotenv","duration":38,"timestamp":99040269258,"id":57,"parentId":56,"tags":{},"startTime":1781319776041,"traceId":"528f2e25d22acc4a"},{"name":"run-export-path-map","duration":413,"timestamp":99040274339,"id":58,"parentId":56,"tags":{},"startTime":1781319776046,"traceId":"528f2e25d22acc4a"},{"name":"next-export","duration":645614,"timestamp":99040268297,"id":56,"parentId":1,"tags":{},"startTime":1781319776040,"traceId":"528f2e25d22acc4a"},{"name":"move-exported-app-not-found-","duration":1987,"timestamp":99040915511,"id":59,"parentId":55,"tags":{},"startTime":1781319776687,"traceId":"528f2e25d22acc4a"},{"name":"move-exported-app-global-error-","duration":1408,"timestamp":99040917599,"id":60,"parentId":55,"tags":{},"startTime":1781319776689,"traceId":"528f2e25d22acc4a"},{"name":"static-generation","duration":664229,"timestamp":99040258020,"id":55,"parentId":1,"tags":{},"startTime":1781319776029,"traceId":"528f2e25d22acc4a"},{"name":"write-routes-manifest","duration":806,"timestamp":99040922358,"id":61,"parentId":1,"tags":{},"startTime":1781319776694,"traceId":"528f2e25d22acc4a"},{"name":"print-tree-view","duration":3150,"timestamp":99040933486,"id":62,"parentId":1,"tags":{},"startTime":1781319776705,"traceId":"528f2e25d22acc4a"},{"name":"write-route-bundle-stats","duration":11629,"timestamp":99040936669,"id":63,"parentId":1,"tags":{},"startTime":1781319776708,"traceId":"528f2e25d22acc4a"},{"name":"telemetry-flush","duration":180865,"timestamp":99040948328,"id":64,"parentId":1,"tags":{},"startTime":1781319776720,"traceId":"528f2e25d22acc4a"},{"name":"next-build","duration":7808188,"timestamp":99033321033,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1781319769092,"traceId":"528f2e25d22acc4a"}]
|
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-turbopack","duration":
|
|
1
|
+
[{"name":"run-turbopack","duration":2414836,"timestamp":99033454518,"id":14,"parentId":1,"tags":{},"startTime":1781319769226,"traceId":"528f2e25d22acc4a"},{"name":"turbopack-build-events","duration":63,"timestamp":99033773453,"id":15,"parentId":1,"tags":{},"startTime":1781319769545,"traceId":"528f2e25d22acc4a"},{"name":"run-typescript","duration":3609953,"timestamp":99035879376,"id":16,"parentId":1,"tags":{},"startTime":1781319771651,"traceId":"528f2e25d22acc4a"},{"name":"static-check","duration":655661,"timestamp":99039595624,"id":19,"parentId":1,"tags":{},"startTime":1781319775367,"traceId":"528f2e25d22acc4a"},{"name":"static-generation","duration":664229,"timestamp":99040258020,"id":55,"parentId":1,"tags":{},"startTime":1781319776029,"traceId":"528f2e25d22acc4a"},{"name":"telemetry-flush","duration":180865,"timestamp":99040948328,"id":64,"parentId":1,"tags":{},"startTime":1781319776720,"traceId":"528f2e25d22acc4a"},{"name":"next-build","duration":7808188,"timestamp":99033321033,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1781319769092,"traceId":"528f2e25d22acc4a"}]
|
package/bin/cli.js
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
const { spawn } = require('child_process');
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
|
+
const originalCwd = process.cwd();
|
|
8
|
+
|
|
7
9
|
// Change working directory to the package root directory so next start can resolve built pages (.next)
|
|
8
10
|
const packageRoot = path.join(__dirname, '..');
|
|
9
11
|
process.chdir(packageRoot);
|
|
@@ -17,7 +19,8 @@ console.log("🔗 Open http://localhost:3000 in your browser to begin.");
|
|
|
17
19
|
const nextProcess = spawn(process.execPath, [nextBin, 'start', '-p', '3000'], {
|
|
18
20
|
stdio: 'inherit',
|
|
19
21
|
env: {
|
|
20
|
-
...process.env
|
|
22
|
+
...process.env,
|
|
23
|
+
ORIGINAL_CWD: originalCwd
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
26
|
|