@qt4798/pi-web 0.9.4 → 0.9.6

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.
Files changed (228) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +15 -8
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/required-server-files.js +1 -1
  5. package/.next/required-server-files.json +1 -1
  6. package/.next/routes-manifest.json +42 -0
  7. package/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  28. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  29. package/.next/server/app/api/agent/[id]/route.js +1 -1
  30. package/.next/server/app/api/agent/new/route.js +1 -1
  31. package/.next/server/app/api/agent/running/route.js +1 -1
  32. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  33. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  34. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  35. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  36. package/.next/server/app/api/auth/providers/route.js +1 -1
  37. package/.next/server/app/api/backup/export/route.js +1 -0
  38. package/.next/server/app/api/backup/export/route.js.nft.json +1 -0
  39. package/.next/server/app/api/backup/export/route_client-reference-manifest.js +1 -0
  40. package/.next/server/app/api/backup/import/route.js +1 -0
  41. package/.next/server/app/api/backup/import/route.js.nft.json +1 -0
  42. package/.next/server/app/api/backup/import/route_client-reference-manifest.js +1 -0
  43. package/.next/server/app/api/cwd/browse/route.js +1 -1
  44. package/.next/server/app/api/cwd/validate/route.js +1 -1
  45. package/.next/server/app/api/default-cwd/route.js +1 -1
  46. package/.next/server/app/api/file-index/route.js +1 -1
  47. package/.next/server/app/api/files/[...path]/route.js +1 -1
  48. package/.next/server/app/api/git/diff/route.js +1 -1
  49. package/.next/server/app/api/git/status/route.js +1 -1
  50. package/.next/server/app/api/home/route.js +1 -1
  51. package/.next/server/app/api/import/discover/route.js +1 -0
  52. package/.next/server/app/api/import/discover/route.js.nft.json +1 -0
  53. package/.next/server/app/api/import/discover/route_client-reference-manifest.js +1 -0
  54. package/.next/server/app/api/import/execute/route.js +1 -0
  55. package/.next/server/app/api/import/execute/route.js.nft.json +1 -0
  56. package/.next/server/app/api/import/execute/route_client-reference-manifest.js +1 -0
  57. package/.next/server/app/api/import/status/route.js +1 -0
  58. package/.next/server/app/api/import/status/route.js.nft.json +1 -0
  59. package/.next/server/app/api/import/status/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/models/route.js +1 -1
  61. package/.next/server/app/api/models-config/builtin/route.js +1 -0
  62. package/.next/server/app/api/models-config/builtin/route.js.nft.json +1 -0
  63. package/.next/server/app/api/models-config/builtin/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  65. package/.next/server/app/api/models-config/discover/route.js +1 -1
  66. package/.next/server/app/api/models-config/route.js +1 -1
  67. package/.next/server/app/api/models-config/test/route.js +1 -1
  68. package/.next/server/app/api/plugins/route.js +1 -1
  69. package/.next/server/app/api/project-trust/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/auto-name/route.js +3 -3
  71. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/queue-recovery/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  76. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  77. package/.next/server/app/api/sessions/route.js +1 -1
  78. package/.next/server/app/api/settings/title-model/route.js +1 -0
  79. package/.next/server/app/api/settings/title-model/route.js.nft.json +1 -0
  80. package/.next/server/app/api/settings/title-model/route_client-reference-manifest.js +1 -0
  81. package/.next/server/app/api/skills/check/route.js +1 -1
  82. package/.next/server/app/api/skills/install/route.js +1 -1
  83. package/.next/server/app/api/skills/route.js +2 -2
  84. package/.next/server/app/api/skills/search/route.js +1 -1
  85. package/.next/server/app/api/skills/update/route.js +1 -1
  86. package/.next/server/app/api/themes/[name]/route.js +1 -1
  87. package/.next/server/app/api/themes/route.js +1 -1
  88. package/.next/server/app/api/worktrees/route.js +1 -1
  89. package/.next/server/app/icon.ico/route.js +1 -1
  90. package/.next/server/app/icon.png/route.js +1 -1
  91. package/.next/server/app/icon.svg/route.js +1 -1
  92. package/.next/server/app/index.html +1 -1
  93. package/.next/server/app/index.rsc +3 -3
  94. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  95. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  96. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  97. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  98. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  99. package/.next/server/app/page.js +5 -5
  100. package/.next/server/app/page_client-reference-manifest.js +1 -1
  101. package/.next/server/app-paths-manifest.json +15 -8
  102. package/.next/server/chunks/440.js +1 -0
  103. package/.next/server/chunks/5582.js +1 -1
  104. package/.next/server/chunks/6106.js +1 -0
  105. package/.next/server/chunks/7915.js +2 -0
  106. package/.next/server/middleware-build-manifest.js +1 -1
  107. package/.next/server/middleware.js +2 -2
  108. package/.next/server/pages/404.html +1 -1
  109. package/.next/server/pages/500.html +1 -1
  110. package/.next/static/chunks/{8112-57500b5de3c7af0d.js → 5998-7a8029f451fe2049.js} +1 -1
  111. package/.next/static/chunks/app/_global-error/page-bc5f4c047207b363.js +1 -0
  112. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-bc5f4c047207b363.js +1 -0
  113. package/.next/static/chunks/app/api/agent/[id]/events/route-bc5f4c047207b363.js +1 -0
  114. package/.next/static/chunks/app/api/agent/[id]/route-bc5f4c047207b363.js +1 -0
  115. package/.next/static/chunks/app/api/agent/new/route-bc5f4c047207b363.js +1 -0
  116. package/.next/static/chunks/app/api/agent/running/route-bc5f4c047207b363.js +1 -0
  117. package/.next/static/chunks/app/api/auth/all-providers/route-bc5f4c047207b363.js +1 -0
  118. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-bc5f4c047207b363.js +1 -0
  119. package/.next/static/chunks/app/api/auth/login/[provider]/route-bc5f4c047207b363.js +1 -0
  120. package/.next/static/chunks/app/api/auth/logout/[provider]/route-bc5f4c047207b363.js +1 -0
  121. package/.next/static/chunks/app/api/auth/providers/route-bc5f4c047207b363.js +1 -0
  122. package/.next/static/chunks/app/api/backup/export/route-bc5f4c047207b363.js +1 -0
  123. package/.next/static/chunks/app/api/backup/import/route-bc5f4c047207b363.js +1 -0
  124. package/.next/static/chunks/app/api/cwd/browse/route-bc5f4c047207b363.js +1 -0
  125. package/.next/static/chunks/app/api/cwd/validate/route-bc5f4c047207b363.js +1 -0
  126. package/.next/static/chunks/app/api/default-cwd/route-bc5f4c047207b363.js +1 -0
  127. package/.next/static/chunks/app/api/file-index/route-bc5f4c047207b363.js +1 -0
  128. package/.next/static/chunks/app/api/files/[...path]/route-bc5f4c047207b363.js +1 -0
  129. package/.next/static/chunks/app/api/git/diff/route-bc5f4c047207b363.js +1 -0
  130. package/.next/static/chunks/app/api/git/status/route-bc5f4c047207b363.js +1 -0
  131. package/.next/static/chunks/app/api/home/route-bc5f4c047207b363.js +1 -0
  132. package/.next/static/chunks/app/api/import/discover/route-bc5f4c047207b363.js +1 -0
  133. package/.next/static/chunks/app/api/import/execute/route-bc5f4c047207b363.js +1 -0
  134. package/.next/static/chunks/app/api/import/status/route-bc5f4c047207b363.js +1 -0
  135. package/.next/static/chunks/app/api/models/route-bc5f4c047207b363.js +1 -0
  136. package/.next/static/chunks/app/api/models-config/builtin/route-bc5f4c047207b363.js +1 -0
  137. package/.next/static/chunks/app/api/models-config/catalog/route-bc5f4c047207b363.js +1 -0
  138. package/.next/static/chunks/app/api/models-config/discover/route-bc5f4c047207b363.js +1 -0
  139. package/.next/static/chunks/app/api/models-config/route-bc5f4c047207b363.js +1 -0
  140. package/.next/static/chunks/app/api/models-config/test/route-bc5f4c047207b363.js +1 -0
  141. package/.next/static/chunks/app/api/plugins/route-bc5f4c047207b363.js +1 -0
  142. package/.next/static/chunks/app/api/project-trust/route-bc5f4c047207b363.js +1 -0
  143. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-bc5f4c047207b363.js +1 -0
  144. package/.next/static/chunks/app/api/sessions/[id]/context/route-bc5f4c047207b363.js +1 -0
  145. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-bc5f4c047207b363.js +1 -0
  146. package/.next/static/chunks/app/api/sessions/[id]/export/route-bc5f4c047207b363.js +1 -0
  147. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-bc5f4c047207b363.js +1 -0
  148. package/.next/static/chunks/app/api/sessions/[id]/route-bc5f4c047207b363.js +1 -0
  149. package/.next/static/chunks/app/api/sessions/[id]/state/route-bc5f4c047207b363.js +1 -0
  150. package/.next/static/chunks/app/api/sessions/route-bc5f4c047207b363.js +1 -0
  151. package/.next/static/chunks/app/api/settings/title-model/route-bc5f4c047207b363.js +1 -0
  152. package/.next/static/chunks/app/api/skills/check/route-bc5f4c047207b363.js +1 -0
  153. package/.next/static/chunks/app/api/skills/install/route-bc5f4c047207b363.js +1 -0
  154. package/.next/static/chunks/app/api/skills/route-bc5f4c047207b363.js +1 -0
  155. package/.next/static/chunks/app/api/skills/search/route-bc5f4c047207b363.js +1 -0
  156. package/.next/static/chunks/app/api/skills/update/route-bc5f4c047207b363.js +1 -0
  157. package/.next/static/chunks/app/api/themes/[name]/route-bc5f4c047207b363.js +1 -0
  158. package/.next/static/chunks/app/api/themes/route-bc5f4c047207b363.js +1 -0
  159. package/.next/static/chunks/app/api/worktrees/route-bc5f4c047207b363.js +1 -0
  160. package/.next/static/chunks/app/page-765e3f5b8229c631.js +15 -0
  161. package/.next/static/chunks/next/dist/client/components/builtin/app-error-bc5f4c047207b363.js +1 -0
  162. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-bc5f4c047207b363.js +1 -0
  163. package/.next/static/chunks/next/dist/client/components/builtin/not-found-bc5f4c047207b363.js +1 -0
  164. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bc5f4c047207b363.js +1 -0
  165. package/.next/static/xLWAKUhLB_rDfRzVV1xY2/_buildManifest.js +1 -0
  166. package/.next/trace +7 -6
  167. package/.next/trace-build +1 -1
  168. package/.next/types/app/api/backup/export/route.ts +351 -0
  169. package/.next/types/app/api/backup/import/route.ts +351 -0
  170. package/.next/types/app/api/import/discover/route.ts +351 -0
  171. package/.next/types/app/api/import/execute/route.ts +351 -0
  172. package/.next/types/app/api/import/status/route.ts +351 -0
  173. package/.next/types/app/api/models-config/builtin/route.ts +351 -0
  174. package/.next/types/app/api/settings/title-model/route.ts +351 -0
  175. package/.next/types/routes.d.ts +8 -1
  176. package/.next/types/validator.ts +63 -0
  177. package/README.en.md +5 -2
  178. package/README.md +25 -2
  179. package/package.json +19 -7
  180. package/.next/static/-RoYqrN1Mf4JD9crC9rVq/_buildManifest.js +0 -1
  181. package/.next/static/chunks/app/_global-error/page-1fddebcafb57d31a.js +0 -1
  182. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-1fddebcafb57d31a.js +0 -1
  183. package/.next/static/chunks/app/api/agent/[id]/events/route-1fddebcafb57d31a.js +0 -1
  184. package/.next/static/chunks/app/api/agent/[id]/route-1fddebcafb57d31a.js +0 -1
  185. package/.next/static/chunks/app/api/agent/new/route-1fddebcafb57d31a.js +0 -1
  186. package/.next/static/chunks/app/api/agent/running/route-1fddebcafb57d31a.js +0 -1
  187. package/.next/static/chunks/app/api/auth/all-providers/route-1fddebcafb57d31a.js +0 -1
  188. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-1fddebcafb57d31a.js +0 -1
  189. package/.next/static/chunks/app/api/auth/login/[provider]/route-1fddebcafb57d31a.js +0 -1
  190. package/.next/static/chunks/app/api/auth/logout/[provider]/route-1fddebcafb57d31a.js +0 -1
  191. package/.next/static/chunks/app/api/auth/providers/route-1fddebcafb57d31a.js +0 -1
  192. package/.next/static/chunks/app/api/cwd/browse/route-1fddebcafb57d31a.js +0 -1
  193. package/.next/static/chunks/app/api/cwd/validate/route-1fddebcafb57d31a.js +0 -1
  194. package/.next/static/chunks/app/api/default-cwd/route-1fddebcafb57d31a.js +0 -1
  195. package/.next/static/chunks/app/api/file-index/route-1fddebcafb57d31a.js +0 -1
  196. package/.next/static/chunks/app/api/files/[...path]/route-1fddebcafb57d31a.js +0 -1
  197. package/.next/static/chunks/app/api/git/diff/route-1fddebcafb57d31a.js +0 -1
  198. package/.next/static/chunks/app/api/git/status/route-1fddebcafb57d31a.js +0 -1
  199. package/.next/static/chunks/app/api/home/route-1fddebcafb57d31a.js +0 -1
  200. package/.next/static/chunks/app/api/models/route-1fddebcafb57d31a.js +0 -1
  201. package/.next/static/chunks/app/api/models-config/catalog/route-1fddebcafb57d31a.js +0 -1
  202. package/.next/static/chunks/app/api/models-config/discover/route-1fddebcafb57d31a.js +0 -1
  203. package/.next/static/chunks/app/api/models-config/route-1fddebcafb57d31a.js +0 -1
  204. package/.next/static/chunks/app/api/models-config/test/route-1fddebcafb57d31a.js +0 -1
  205. package/.next/static/chunks/app/api/plugins/route-1fddebcafb57d31a.js +0 -1
  206. package/.next/static/chunks/app/api/project-trust/route-1fddebcafb57d31a.js +0 -1
  207. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-1fddebcafb57d31a.js +0 -1
  208. package/.next/static/chunks/app/api/sessions/[id]/context/route-1fddebcafb57d31a.js +0 -1
  209. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-1fddebcafb57d31a.js +0 -1
  210. package/.next/static/chunks/app/api/sessions/[id]/export/route-1fddebcafb57d31a.js +0 -1
  211. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-1fddebcafb57d31a.js +0 -1
  212. package/.next/static/chunks/app/api/sessions/[id]/route-1fddebcafb57d31a.js +0 -1
  213. package/.next/static/chunks/app/api/sessions/[id]/state/route-1fddebcafb57d31a.js +0 -1
  214. package/.next/static/chunks/app/api/sessions/route-1fddebcafb57d31a.js +0 -1
  215. package/.next/static/chunks/app/api/skills/check/route-1fddebcafb57d31a.js +0 -1
  216. package/.next/static/chunks/app/api/skills/install/route-1fddebcafb57d31a.js +0 -1
  217. package/.next/static/chunks/app/api/skills/route-1fddebcafb57d31a.js +0 -1
  218. package/.next/static/chunks/app/api/skills/search/route-1fddebcafb57d31a.js +0 -1
  219. package/.next/static/chunks/app/api/skills/update/route-1fddebcafb57d31a.js +0 -1
  220. package/.next/static/chunks/app/api/themes/[name]/route-1fddebcafb57d31a.js +0 -1
  221. package/.next/static/chunks/app/api/themes/route-1fddebcafb57d31a.js +0 -1
  222. package/.next/static/chunks/app/api/worktrees/route-1fddebcafb57d31a.js +0 -1
  223. package/.next/static/chunks/app/page-47de6c92ff29e268.js +0 -15
  224. package/.next/static/chunks/next/dist/client/components/builtin/app-error-1fddebcafb57d31a.js +0 -1
  225. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-1fddebcafb57d31a.js +0 -1
  226. package/.next/static/chunks/next/dist/client/components/builtin/not-found-1fddebcafb57d31a.js +0 -1
  227. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1fddebcafb57d31a.js +0 -1
  228. /package/.next/static/{-RoYqrN1Mf4JD9crC9rVq → xLWAKUhLB_rDfRzVV1xY2}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/import/execute/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/import/execute/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
@@ -0,0 +1 @@
1
+ "use strict";(()=>{var a={};a.id=4558,a.ids=[4558],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},40820:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(98949),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/import/status/route",pathname:"/api/import/status",filename:"route",bundlePath:"app/api/import/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/import/status/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/import/status/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},98949:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i});var e=c(23211),f=c(66544),g=c(23097),h=a([g]);async function i(a){if(!(0,f.EN)(a))return e.NextResponse.json({error:"Access denied"},{status:403});let b=new URL(a.url).searchParams.get("jobId");if(!b)return e.NextResponse.json({error:"Missing jobId"},{status:400});let c=(0,g.Z)(b);return c?e.NextResponse.json({done:c.done,total:c.total,imported:c.imported,skipped:c.skipped,errors:c.errors,currentFile:c.currentFile,sessionIds:c.done?c.sessionIds:void 0}):e.NextResponse.json({error:"Job not found"},{status:404})}g=(h.then?(await h)():h)[0],d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5582,440],()=>b(b.s=40820));module.exports=c})();