@pricening/pi-web 0.12.1 → 0.12.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.
Files changed (306) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +9 -7
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +6 -6
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/routes-manifest.json +12 -0
  8. package/.next/server/app/_global-error/page.js +2 -2
  9. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/_global-error.html +1 -1
  11. package/.next/server/app/_global-error.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found/page.js +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +4 -4
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +9 -7
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  22. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  23. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  24. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  25. package/.next/server/app/api/agent/[id]/route.js +1 -1
  26. package/.next/server/app/api/agent/new/route.js +1 -1
  27. package/.next/server/app/api/agent/running/route.js +1 -1
  28. package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
  29. package/.next/server/app/api/app-update/route.js +1 -1
  30. package/.next/server/app/api/archives/route.js +1 -1
  31. package/.next/server/app/api/archives/route.js.nft.json +1 -1
  32. package/.next/server/app/api/archives/sessions/route.js +1 -1
  33. package/.next/server/app/api/archives/sessions/route.js.nft.json +1 -1
  34. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  35. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -1
  36. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  37. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  38. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -1
  39. package/.next/server/app/api/auth/providers/route.js +1 -1
  40. package/.next/server/app/api/cache-miss-notices/route.js +1 -0
  41. package/.next/server/app/api/cache-miss-notices/route.js.nft.json +1 -0
  42. package/.next/server/app/api/cache-miss-notices/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 +2 -2
  48. package/.next/server/app/api/git/diff/route.js +2 -2
  49. package/.next/server/app/api/git/status/route.js +2 -2
  50. package/.next/server/app/api/home/route.js +1 -1
  51. package/.next/server/app/api/mcp/route.js +1 -1
  52. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  53. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  54. package/.next/server/app/api/mcp/test/route.js +1 -1
  55. package/.next/server/app/api/models/default/route.js +1 -1
  56. package/.next/server/app/api/models/enabled/route.js +1 -1
  57. package/.next/server/app/api/models/refresh/route.js +1 -1
  58. package/.next/server/app/api/models/route.js +1 -1
  59. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  60. package/.next/server/app/api/models-config/discover/route.js +1 -1
  61. package/.next/server/app/api/models-config/route.js +1 -1
  62. package/.next/server/app/api/models-config/test/route.js +1 -1
  63. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  64. package/.next/server/app/api/pins/route.js +1 -1
  65. package/.next/server/app/api/plugins/check/route.js +1 -1
  66. package/.next/server/app/api/plugins/route.js +1 -1
  67. package/.next/server/app/api/project-trust/route.js +1 -1
  68. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  69. package/.next/server/app/api/push/config/route.js +1 -1
  70. package/.next/server/app/api/push/subscribe/route.js +1 -1
  71. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  72. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  76. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  77. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  78. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  79. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  80. package/.next/server/app/api/sessions/delete/route.js +1 -1
  81. package/.next/server/app/api/sessions/delete/route.js.nft.json +1 -1
  82. package/.next/server/app/api/sessions/route.js +1 -1
  83. package/.next/server/app/api/sessions/search/route.js +1 -1
  84. package/.next/server/app/api/sessions/stats/route.js +1 -0
  85. package/.next/server/app/api/sessions/stats/route.js.nft.json +1 -0
  86. package/.next/server/app/api/sessions/stats/route_client-reference-manifest.js +1 -0
  87. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  88. package/.next/server/app/api/sessions/ui-state/route.js.nft.json +1 -1
  89. package/.next/server/app/api/skills/check/route.js +1 -1
  90. package/.next/server/app/api/skills/content/route.js +1 -1
  91. package/.next/server/app/api/skills/install/route.js +1 -1
  92. package/.next/server/app/api/skills/route.js +1 -1
  93. package/.next/server/app/api/skills/search/route.js +1 -1
  94. package/.next/server/app/api/skills/update/route.js +1 -1
  95. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  96. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  97. package/.next/server/app/api/subagents/settings/route.js +1 -1
  98. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  99. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  100. package/.next/server/app/api/terminal/route.js +1 -1
  101. package/.next/server/app/api/tools/settings/route.js +1 -1
  102. package/.next/server/app/api/web-auth/route.js +1 -1
  103. package/.next/server/app/api/worktrees/route.js +1 -1
  104. package/.next/server/app/favicon.ico/route.js +1 -1
  105. package/.next/server/app/index.html +1 -1
  106. package/.next/server/app/index.rsc +6 -6
  107. package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -6
  108. package/.next/server/app/index.segments/_full.segment.rsc +6 -6
  109. package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
  110. package/.next/server/app/login/page.js +1 -1
  111. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  112. package/.next/server/app/login.html +1 -1
  113. package/.next/server/app/login.rsc +5 -5
  114. package/.next/server/app/login.segments/_full.segment.rsc +5 -5
  115. package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
  116. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +10 -8
  117. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  118. package/.next/server/app/page.js +23 -23
  119. package/.next/server/app/page_client-reference-manifest.js +1 -1
  120. package/.next/server/app-paths-manifest.json +9 -7
  121. package/.next/server/chunks/1207.js +1 -1
  122. package/.next/server/chunks/1906.js +1 -0
  123. package/.next/server/chunks/2069.js +1 -0
  124. package/.next/server/chunks/2243.js +1 -1
  125. package/.next/server/chunks/27.js +1 -1
  126. package/.next/server/chunks/3757.js +1 -1
  127. package/.next/server/chunks/3824.js +1 -0
  128. package/.next/server/chunks/5582.js +3 -3
  129. package/.next/server/chunks/5799.js +1 -1
  130. package/.next/server/chunks/6429.js +13 -10
  131. package/.next/server/chunks/7492.js +1 -1
  132. package/.next/server/chunks/9280.js +3 -3
  133. package/.next/server/middleware-build-manifest.js +1 -1
  134. package/.next/server/middleware.js +4 -4
  135. package/.next/server/pages/404.html +1 -1
  136. package/.next/server/pages/500.html +1 -1
  137. package/.next/server/server-reference-manifest.json +1 -1
  138. package/.next/static/C866nybiMLiZSAO0s128R/_buildManifest.js +1 -0
  139. package/.next/static/chunks/1278-069285b48cad19f3.js +1 -0
  140. package/.next/static/chunks/app/{api/agent/[id]/events/route-543f76df48110b10.js → _global-error/page-e8a55ff457853821.js} +1 -1
  141. package/.next/static/chunks/app/api/agent/[id]/{lease/route-543f76df48110b10.js → bash-output/route-e8a55ff457853821.js} +1 -1
  142. package/.next/static/chunks/app/{_global-error/page-543f76df48110b10.js → api/agent/[id]/events/route-e8a55ff457853821.js} +1 -1
  143. package/.next/static/chunks/app/api/agent/[id]/{bash-output/route-543f76df48110b10.js → lease/route-e8a55ff457853821.js} +1 -1
  144. package/.next/static/chunks/app/api/agent/[id]/route-e8a55ff457853821.js +1 -0
  145. package/.next/static/chunks/app/api/agent/new/route-e8a55ff457853821.js +1 -0
  146. package/.next/static/chunks/app/api/agent/running/route-e8a55ff457853821.js +1 -0
  147. package/.next/static/chunks/app/api/app-update/route-e8a55ff457853821.js +1 -0
  148. package/.next/static/chunks/app/api/archives/route-e8a55ff457853821.js +1 -0
  149. package/.next/static/chunks/app/api/archives/sessions/route-e8a55ff457853821.js +1 -0
  150. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-e8a55ff457853821.js +1 -0
  151. package/.next/static/chunks/app/api/auth/login/[provider]/route-e8a55ff457853821.js +1 -0
  152. package/.next/static/chunks/app/api/auth/logout/[provider]/route-e8a55ff457853821.js +1 -0
  153. package/.next/static/chunks/app/api/auth/providers/route-e8a55ff457853821.js +1 -0
  154. package/.next/static/chunks/app/api/cache-miss-notices/route-e8a55ff457853821.js +1 -0
  155. package/.next/static/chunks/app/api/cwd/browse/route-e8a55ff457853821.js +1 -0
  156. package/.next/static/chunks/app/api/cwd/validate/route-e8a55ff457853821.js +1 -0
  157. package/.next/static/chunks/app/api/default-cwd/route-e8a55ff457853821.js +1 -0
  158. package/.next/static/chunks/app/api/file-index/route-e8a55ff457853821.js +1 -0
  159. package/.next/static/chunks/app/api/files/[...path]/route-e8a55ff457853821.js +1 -0
  160. package/.next/static/chunks/app/api/git/diff/route-e8a55ff457853821.js +1 -0
  161. package/.next/static/chunks/app/api/git/status/route-e8a55ff457853821.js +1 -0
  162. package/.next/static/chunks/app/api/home/route-e8a55ff457853821.js +1 -0
  163. package/.next/static/chunks/app/api/mcp/route-e8a55ff457853821.js +1 -0
  164. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-e8a55ff457853821.js +1 -0
  165. package/.next/static/chunks/app/api/mcp/sign-in/route-e8a55ff457853821.js +1 -0
  166. package/.next/static/chunks/app/api/mcp/test/route-e8a55ff457853821.js +1 -0
  167. package/.next/static/chunks/app/api/models/default/route-e8a55ff457853821.js +1 -0
  168. package/.next/static/chunks/app/api/models/enabled/route-e8a55ff457853821.js +1 -0
  169. package/.next/static/chunks/app/api/models/refresh/route-e8a55ff457853821.js +1 -0
  170. package/.next/static/chunks/app/api/models/route-e8a55ff457853821.js +1 -0
  171. package/.next/static/chunks/app/api/models-config/catalog/route-e8a55ff457853821.js +1 -0
  172. package/.next/static/chunks/app/api/models-config/discover/route-e8a55ff457853821.js +1 -0
  173. package/.next/static/chunks/app/api/models-config/route-e8a55ff457853821.js +1 -0
  174. package/.next/static/chunks/app/api/models-config/test/route-e8a55ff457853821.js +1 -0
  175. package/.next/static/chunks/app/api/open-in-explorer/route-e8a55ff457853821.js +1 -0
  176. package/.next/static/chunks/app/api/pins/route-e8a55ff457853821.js +1 -0
  177. package/.next/static/chunks/app/api/plugins/check/route-e8a55ff457853821.js +1 -0
  178. package/.next/static/chunks/app/api/plugins/route-e8a55ff457853821.js +1 -0
  179. package/.next/static/chunks/app/api/project-trust/route-e8a55ff457853821.js +1 -0
  180. package/.next/static/chunks/app/api/provider-usage/query/route-e8a55ff457853821.js +1 -0
  181. package/.next/static/chunks/app/api/push/config/route-e8a55ff457853821.js +1 -0
  182. package/.next/static/chunks/app/api/push/subscribe/route-e8a55ff457853821.js +1 -0
  183. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-e8a55ff457853821.js +1 -0
  184. package/.next/static/chunks/app/api/sessions/[id]/context/route-e8a55ff457853821.js +1 -0
  185. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-e8a55ff457853821.js +1 -0
  186. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-e8a55ff457853821.js +1 -0
  187. package/.next/static/chunks/app/api/sessions/[id]/export/route-e8a55ff457853821.js +1 -0
  188. package/.next/static/chunks/app/api/sessions/[id]/fork/route-e8a55ff457853821.js +1 -0
  189. package/.next/static/chunks/app/api/sessions/[id]/route-e8a55ff457853821.js +1 -0
  190. package/.next/static/chunks/app/api/sessions/[id]/state/route-e8a55ff457853821.js +1 -0
  191. package/.next/static/chunks/app/api/sessions/delete/route-e8a55ff457853821.js +1 -0
  192. package/.next/static/chunks/app/api/sessions/route-e8a55ff457853821.js +1 -0
  193. package/.next/static/chunks/app/api/sessions/search/route-e8a55ff457853821.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/stats/route-e8a55ff457853821.js +1 -0
  195. package/.next/static/chunks/app/api/sessions/ui-state/route-e8a55ff457853821.js +1 -0
  196. package/.next/static/chunks/app/api/skills/check/route-e8a55ff457853821.js +1 -0
  197. package/.next/static/chunks/app/api/skills/content/route-e8a55ff457853821.js +1 -0
  198. package/.next/static/chunks/app/api/skills/install/route-e8a55ff457853821.js +1 -0
  199. package/.next/static/chunks/app/api/skills/route-e8a55ff457853821.js +1 -0
  200. package/.next/static/chunks/app/api/skills/search/route-e8a55ff457853821.js +1 -0
  201. package/.next/static/chunks/app/api/skills/update/route-e8a55ff457853821.js +1 -0
  202. package/.next/static/chunks/app/api/subagents/[id]/route-e8a55ff457853821.js +1 -0
  203. package/.next/static/chunks/app/api/subagents/profiles/route-e8a55ff457853821.js +1 -0
  204. package/.next/static/chunks/app/api/subagents/settings/route-e8a55ff457853821.js +1 -0
  205. package/.next/static/chunks/app/api/terminal/[id]/events/route-e8a55ff457853821.js +1 -0
  206. package/.next/static/chunks/app/api/terminal/[id]/route-e8a55ff457853821.js +1 -0
  207. package/.next/static/chunks/app/api/terminal/route-e8a55ff457853821.js +1 -0
  208. package/.next/static/chunks/app/api/tools/settings/route-e8a55ff457853821.js +1 -0
  209. package/.next/static/chunks/app/api/web-auth/route-e8a55ff457853821.js +1 -0
  210. package/.next/static/chunks/app/api/worktrees/route-e8a55ff457853821.js +1 -0
  211. package/.next/static/chunks/app/{layout-e692afda7372fba3.js → layout-dbad4b362b46963c.js} +1 -1
  212. package/.next/static/chunks/app/manifest.webmanifest/route-e8a55ff457853821.js +1 -0
  213. package/.next/static/chunks/app/page-7a7b90ecf6408777.js +286 -0
  214. package/.next/static/chunks/next/dist/client/components/builtin/app-error-e8a55ff457853821.js +1 -0
  215. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-e8a55ff457853821.js +1 -0
  216. package/.next/static/chunks/next/dist/client/components/builtin/not-found-e8a55ff457853821.js +1 -0
  217. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-e8a55ff457853821.js +1 -0
  218. package/.next/static/css/375a9b52d89c0bac.css +1 -0
  219. package/.next/static/css/bf49b4e87f26e436.css +1 -0
  220. package/.next/trace +83 -83
  221. package/.next/trace-build +1 -1
  222. package/.next/types/app/api/cache-miss-notices/route.ts +353 -0
  223. package/.next/types/app/api/sessions/stats/route.ts +353 -0
  224. package/.next/types/routes.d.ts +3 -1
  225. package/.next/types/validator.ts +18 -0
  226. package/package.json +3 -3
  227. package/.next/server/chunks/879.js +0 -1
  228. package/.next/static/chunks/1278-55cf58be60d11a5c.js +0 -1
  229. package/.next/static/chunks/app/api/agent/[id]/route-543f76df48110b10.js +0 -1
  230. package/.next/static/chunks/app/api/agent/new/route-543f76df48110b10.js +0 -1
  231. package/.next/static/chunks/app/api/agent/running/route-543f76df48110b10.js +0 -1
  232. package/.next/static/chunks/app/api/app-update/route-543f76df48110b10.js +0 -1
  233. package/.next/static/chunks/app/api/archives/route-543f76df48110b10.js +0 -1
  234. package/.next/static/chunks/app/api/archives/sessions/route-543f76df48110b10.js +0 -1
  235. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-543f76df48110b10.js +0 -1
  236. package/.next/static/chunks/app/api/auth/login/[provider]/route-543f76df48110b10.js +0 -1
  237. package/.next/static/chunks/app/api/auth/logout/[provider]/route-543f76df48110b10.js +0 -1
  238. package/.next/static/chunks/app/api/auth/providers/route-543f76df48110b10.js +0 -1
  239. package/.next/static/chunks/app/api/cwd/browse/route-543f76df48110b10.js +0 -1
  240. package/.next/static/chunks/app/api/cwd/validate/route-543f76df48110b10.js +0 -1
  241. package/.next/static/chunks/app/api/default-cwd/route-543f76df48110b10.js +0 -1
  242. package/.next/static/chunks/app/api/file-index/route-543f76df48110b10.js +0 -1
  243. package/.next/static/chunks/app/api/files/[...path]/route-543f76df48110b10.js +0 -1
  244. package/.next/static/chunks/app/api/git/diff/route-543f76df48110b10.js +0 -1
  245. package/.next/static/chunks/app/api/git/status/route-543f76df48110b10.js +0 -1
  246. package/.next/static/chunks/app/api/home/route-543f76df48110b10.js +0 -1
  247. package/.next/static/chunks/app/api/mcp/route-543f76df48110b10.js +0 -1
  248. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-543f76df48110b10.js +0 -1
  249. package/.next/static/chunks/app/api/mcp/sign-in/route-543f76df48110b10.js +0 -1
  250. package/.next/static/chunks/app/api/mcp/test/route-543f76df48110b10.js +0 -1
  251. package/.next/static/chunks/app/api/models/default/route-543f76df48110b10.js +0 -1
  252. package/.next/static/chunks/app/api/models/enabled/route-543f76df48110b10.js +0 -1
  253. package/.next/static/chunks/app/api/models/refresh/route-543f76df48110b10.js +0 -1
  254. package/.next/static/chunks/app/api/models/route-543f76df48110b10.js +0 -1
  255. package/.next/static/chunks/app/api/models-config/catalog/route-543f76df48110b10.js +0 -1
  256. package/.next/static/chunks/app/api/models-config/discover/route-543f76df48110b10.js +0 -1
  257. package/.next/static/chunks/app/api/models-config/route-543f76df48110b10.js +0 -1
  258. package/.next/static/chunks/app/api/models-config/test/route-543f76df48110b10.js +0 -1
  259. package/.next/static/chunks/app/api/open-in-explorer/route-543f76df48110b10.js +0 -1
  260. package/.next/static/chunks/app/api/pins/route-543f76df48110b10.js +0 -1
  261. package/.next/static/chunks/app/api/plugins/check/route-543f76df48110b10.js +0 -1
  262. package/.next/static/chunks/app/api/plugins/route-543f76df48110b10.js +0 -1
  263. package/.next/static/chunks/app/api/project-trust/route-543f76df48110b10.js +0 -1
  264. package/.next/static/chunks/app/api/provider-usage/query/route-543f76df48110b10.js +0 -1
  265. package/.next/static/chunks/app/api/push/config/route-543f76df48110b10.js +0 -1
  266. package/.next/static/chunks/app/api/push/subscribe/route-543f76df48110b10.js +0 -1
  267. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-543f76df48110b10.js +0 -1
  268. package/.next/static/chunks/app/api/sessions/[id]/context/route-543f76df48110b10.js +0 -1
  269. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-543f76df48110b10.js +0 -1
  270. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-543f76df48110b10.js +0 -1
  271. package/.next/static/chunks/app/api/sessions/[id]/export/route-543f76df48110b10.js +0 -1
  272. package/.next/static/chunks/app/api/sessions/[id]/fork/route-543f76df48110b10.js +0 -1
  273. package/.next/static/chunks/app/api/sessions/[id]/route-543f76df48110b10.js +0 -1
  274. package/.next/static/chunks/app/api/sessions/[id]/state/route-543f76df48110b10.js +0 -1
  275. package/.next/static/chunks/app/api/sessions/delete/route-543f76df48110b10.js +0 -1
  276. package/.next/static/chunks/app/api/sessions/route-543f76df48110b10.js +0 -1
  277. package/.next/static/chunks/app/api/sessions/search/route-543f76df48110b10.js +0 -1
  278. package/.next/static/chunks/app/api/sessions/ui-state/route-543f76df48110b10.js +0 -1
  279. package/.next/static/chunks/app/api/skills/check/route-543f76df48110b10.js +0 -1
  280. package/.next/static/chunks/app/api/skills/content/route-543f76df48110b10.js +0 -1
  281. package/.next/static/chunks/app/api/skills/install/route-543f76df48110b10.js +0 -1
  282. package/.next/static/chunks/app/api/skills/route-543f76df48110b10.js +0 -1
  283. package/.next/static/chunks/app/api/skills/search/route-543f76df48110b10.js +0 -1
  284. package/.next/static/chunks/app/api/skills/update/route-543f76df48110b10.js +0 -1
  285. package/.next/static/chunks/app/api/subagents/[id]/route-543f76df48110b10.js +0 -1
  286. package/.next/static/chunks/app/api/subagents/profiles/route-543f76df48110b10.js +0 -1
  287. package/.next/static/chunks/app/api/subagents/settings/route-543f76df48110b10.js +0 -1
  288. package/.next/static/chunks/app/api/terminal/[id]/events/route-543f76df48110b10.js +0 -1
  289. package/.next/static/chunks/app/api/terminal/[id]/route-543f76df48110b10.js +0 -1
  290. package/.next/static/chunks/app/api/terminal/route-543f76df48110b10.js +0 -1
  291. package/.next/static/chunks/app/api/tools/settings/route-543f76df48110b10.js +0 -1
  292. package/.next/static/chunks/app/api/web-auth/route-543f76df48110b10.js +0 -1
  293. package/.next/static/chunks/app/api/worktrees/route-543f76df48110b10.js +0 -1
  294. package/.next/static/chunks/app/manifest.webmanifest/route-543f76df48110b10.js +0 -1
  295. package/.next/static/chunks/app/page-99b2f8f3deb70669.js +0 -286
  296. package/.next/static/chunks/next/dist/client/components/builtin/app-error-543f76df48110b10.js +0 -1
  297. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-543f76df48110b10.js +0 -1
  298. package/.next/static/chunks/next/dist/client/components/builtin/not-found-543f76df48110b10.js +0 -1
  299. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-543f76df48110b10.js +0 -1
  300. package/.next/static/css/50e617b3b293bda2.css +0 -1
  301. package/.next/static/css/f2a33b7e4c23b666.css +0 -1
  302. package/.next/static/gGuZClTW88ZA3nCpTpHXv/_buildManifest.js +0 -1
  303. package/README.ja.md +0 -11
  304. package/README.ru.md +0 -11
  305. package/README.zh-CN.md +0 -111
  306. /package/.next/static/{gGuZClTW88ZA3nCpTpHXv → C866nybiMLiZSAO0s128R}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2913,a.ids=[2913],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},2855:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/archives/sessions/route",pathname:"/api/archives/sessions",filename:"route",bundlePath:"app/api/archives/sessions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/archives/sessions/route.ts",nextConfigOutput:"",userland:()=>c(29900),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/archives/sessions/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I}=f,J=(0,j.normalizeAppPath)(d),K=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),L=!!(C.dynamicRoutes[J]||K),M=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(L&&!B){let a=C.dynamicRoutes[J];if(a&&!1===a.fallback&&!K){if(z.adapterPath)return await M();throw new s.NoFallbackError}}let N=null;!L||v.isDev||B||(N="/index"===(N=G)?"/":N);let O=!0===v.isDev||!L,P=L&&!O;I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let Q=a.method||"GET",R=(0,h.getTracer)(),S=R.getActiveScopeSpan(),T=!!(null==D?void 0:D.isWrappedByNextServer),U=!!(0,g.getRequestMeta)(a,"minimalMode"),V=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,C,U);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let W={params:y,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,supportsDynamicResponse:O,incrementalCache:V,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>v.onRequestError(a,b,d,e,D)},sharedContext:{buildId:w,deploymentId:x}},X=new k.NodeNextRequest(a),Y=new k.NodeNextResponse(b),Z=l.NextRequestAdapter.fromNodeNextRequest(X,(0,l.signalFromNodeResponse)(b)),$=async({previousCacheEntry:e})=>{try{if(!U&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await v.handle(Z,W);a.fetchMetrics=W.renderOpts.fetchMetrics;let f=W.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=W.renderOpts.collectedTags;if(!L)return await (0,o.I)(X,Y,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,e=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:W.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==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:E})},!1,D),b}},_=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:N,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:$,waitUntil:c.waitUntil,isMinimalMode:U});if(!L)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});U||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);U&&L||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(X,Y,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await v.onRequestError(a,b,{routerKind:"App Router",routePath:J,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:E})},!1,D),L)throw b;await (0,o.I)(X,Y,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=R.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||J,g=`${Q} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(T&&S)await _(S,void 0);else{let b=R.getActiveScopeSpan();await R.withPropagatedContext(a.headers,()=>R.trace(m.BaseServerSpan.handleRequest,{spanName:`${Q} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":Q,"http.target":a.url}},a=>_(a,b)),void 0,!T)}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},13022:(a,b,c)=>{c.d(b,{_k:()=>e});var d=c(90237);function e(a,b){return a.filter(a=>(0,d._A)(a)===b)}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21906:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Ag:()=>q,LH:()=>p,St:()=>o,jI:()=>n});var e=c(29021),f=c(33873),g=c(56429),h=c(40402),i=c(45902),j=c(10879),k=c(7048),l=a([g,h,j,k]);[g,h,j,k]=l.then?(await l)():l;let p=500;function m(a,b,c){let d=a.get(b)??[];d.push(c),a.set(b,d)}async function n(a,b={}){let c=new Map,d=[];for(let b of new Set(a)){let a=await (0,h.os)(b);a?c.set(b,a):d.push(b)}if(0===c.size)return{deleted:[],missing:d,running:[]};let l=new Map;for(let a of c.values()){let b;try{b=(0,h.eP)(a)?.parentSession}catch(a){if("ENOENT"!==a.code)throw a}l.set((0,i.$)(a),b)}let o=new Set([...c.values()].map(a=>(0,i.$)(a))),p=new Set([...c.values()].map(a=>(0,f.dirname)(a))),q=(0,h.O5)(await (0,h.dQ)({force:!0}),(0,g.Bp)({includeTransient:!0})),r=new Map;for(let a of q)a.relation?.kind==="subagent"&&m(r,a.relation.parentSessionId,a.id);let s=new Map(q.map(a=>[a.id,a.path]));for(let a of p)try{for(let b of(0,e.readdirSync)(a).filter(a=>a.endsWith(".jsonl"))){let c=(0,f.join)(a,b);if(!o.has((0,i.$)(c)))try{let a=(0,e.readFileSync)(c,"utf8").split("\n"),b=JSON.parse(a[0]);if("session"!==b.type||"string"!=typeof b.id)continue;let d=a.slice(1).flatMap(a=>{try{return[JSON.parse(a)]}catch{return[]}}),f=(0,k.$u)(d,b.id,c);if(!f)continue;m(r,f.parentSessionId,b.id),s.set(b.id,c)}catch{}}}catch{}let t=b.keepRunning?new Set((0,g.HG)()):new Set,u=new Set,v=[];for(let a of c.keys()){if(u.has(a))continue;let b=[],c=new Set,d=a=>{if(!(c.has(a)||u.has(a))){for(let b of(c.add(a),r.get(a)??[]))d(b);b.push(a)}};if(d(a),b.some(a=>t.has(a))){v.push(a);continue}for(let a of b)u.add(a)}let w=new Map;for(let a of u){let b=c.get(a)??s.get(a)??(0,g.A4)(a)?.sessionFile??await (0,h.os)(a);b&&w.set(a,b)}let x=new Map([...w.values()].map(a=>[(0,i.$)(a),a])),y=a=>{let b=new Set,c=a;for(;c;){let a=(0,i.$)(c),d=x.get(a);if(void 0===d)return c;if(b.has(a))break;if(b.add(a),!l.has(a)){let b;try{b=(0,h.eP)(d)?.parentSession}catch{b=void 0}l.set(a,b)}c=l.get(a)}};if(w.size>0)for(let a of new Set([...w.values()].map(a=>(0,f.dirname)(a))))try{for(let b of(0,e.readdirSync)(a).filter(b=>b.endsWith(".jsonl")&&!x.has((0,i.$)((0,f.join)(a,b))))){let c=(0,f.join)(a,b);try{let a,b=(0,h.eP)(c)?.parentSession;if(!b||!x.has((0,i.$)(b)))continue;let d=y(b);if(d)try{a=(0,h.eP)(d)?.id}catch{a=void 0}let f=(0,e.readFileSync)(c,"utf8").split("\n"),g=JSON.parse(f[0]);if("session"!==g.type)continue;if(g.parentSession=d,f[0]=JSON.stringify(g),d&&a)for(let b=1;b<f.length;b+=1){let c;try{c=JSON.parse(f[b])}catch{continue}if(!("custom"!==c.type||c.customType!==k.tP||"object"!=typeof c.data||null===c.data||Array.isArray(c.data))){c.data={...c.data,parentSessionId:a,parentSessionPath:d},f[b]=JSON.stringify(c);break}}(0,e.writeFileSync)(c,f.join("\n"))}catch{}}}catch{}for(let a of u){try{await (0,g.wW)(a)}catch{}await (0,g.A4)(a)?.shutdown()}for(let[a,b]of w){try{(0,e.unlinkSync)(b)}catch(a){if("ENOENT"!==a.code)throw a}(0,h.BR)(a),(0,h.j6)(b)}try{await (0,j.bA)(u)}catch(a){console.warn(`[pi-web] could not clear the sidebar state of deleted sessions: ${a instanceof Error?a.message:String(a)}`)}return(0,h.mD)(),{deleted:[...u],missing:d,running:v}}class q extends Error{constructor(a){super("Session not found"),this.sessionId=a,this.name="SessionNotFoundError"}}async function o(a){let b=await n([a]);if(b.missing.length>0)throw new q(a);return{deletedSessionIds:b.deleted}}d()}catch(a){d(a)}})},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29862:a=>{a.exports=import("@earendil-works/pi-tui")},29900:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>n,dynamic:()=>o});var e=c(23211),f=c(48067),g=c(79874),h=c(61815),i=c(40402),j=c(56429),k=c(13022),l=c(21906),m=a([g,h,i,j,l]);[g,h,i,j,l]=m.then?(await m)():m;let o="force-dynamic";async function n(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:"Invalid JSON body"},{status:400})}let c=b,d=(0,f.f5)(c.projectKey);if(!d)return e.NextResponse.json({error:"projectKey must be a non-empty string"},{status:400});let[m,n]=await Promise.all([(0,i.dQ)({force:!0}),(0,i.zH)((0,j.Bp)({includeTransient:!0}))]),o=(0,i.O5)(m,n),p=(0,k._k)(o,d),q=p.filter(a=>a.relation?.kind!=="subagent");if(0===q.length)return e.NextResponse.json({error:"No sessions found for this project"},{status:404});let r=new Set((0,j.HG)()),s=p.filter(a=>r.has(a.id));if(s.length>0)return e.NextResponse.json({error:"Cannot delete sessions while the project has a running agent",runningSessionIds:s.map(a=>a.id)},{status:409});if(!function(a){if("string"!=typeof a)return!1;let b=a.trim().toLowerCase();return"confirm"===b||"确认"===b||"確認"===b}(c.confirm))return e.NextResponse.json({error:"confirm must be confirm or 确认",sessionCount:q.length},{status:400});let t=[],u=[],v=new Set(q.map(a=>a.id));for(let a of q)if(v.has(a.id))try{for(let b of(await (0,l.St)(a.id)).deletedSessionIds)t.push(b),v.delete(b)}catch(b){if(b instanceof l.Ag){v.delete(a.id);continue}u.push({id:a.id,error:b instanceof Error?b.message:String(b)})}if(0===u.length){try{await (0,h.oW)({kind:"project",key:d,pinned:!1})}catch{}try{await (0,g._X)({key:d,archived:!1})}catch{}}return e.NextResponse.json({ok:0===u.length,deletedSessionIds:t,failed:u},{status:0===u.length?200:207,headers:{"Cache-Control":"no-store"}})}d()}catch(a){d(a)}})},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{a.exports=require("events")},98995:a=>{a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,426,974,5582,2498,3757,4698,2243,6429,879,8410],()=>b(b.s=2855));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2913,a.ids=[2913],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},13022:(a,b,c)=>{c.d(b,{_k:()=>e});var d=c(90237);function e(a,b){return a.filter(a=>(0,d._A)(a)===b)}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29862:a=>{a.exports=import("@earendil-works/pi-tui")},29900:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>n,dynamic:()=>o});var e=c(23211),f=c(48067),g=c(79874),h=c(61815),i=c(40402),j=c(56429),k=c(13022),l=c(21906),m=a([g,h,i,j,l]);[g,h,i,j,l]=m.then?(await m)():m;let o="force-dynamic";async function n(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:"Invalid JSON body"},{status:400})}let c=b,d=(0,f.f5)(c.projectKey);if(!d)return e.NextResponse.json({error:"projectKey must be a non-empty string"},{status:400});let[m,n]=await Promise.all([(0,i.dQ)({force:!0}),(0,i.zH)((0,j.Bp)({includeTransient:!0}))]),o=(0,i.O5)(m,n),p=(0,k._k)(o,d),q=p.filter(a=>a.relation?.kind!=="subagent");if(0===q.length)return e.NextResponse.json({error:"No sessions found for this project"},{status:404});let r=new Set((0,j.HG)()),s=p.filter(a=>r.has(a.id));if(s.length>0)return e.NextResponse.json({error:"Cannot delete sessions while the project has a running agent",runningSessionIds:s.map(a=>a.id)},{status:409});if(!function(a){if("string"!=typeof a)return!1;let b=a.trim().toLowerCase();return"confirm"===b||"确认"===b||"確認"===b}(c.confirm))return e.NextResponse.json({error:"confirm must be confirm or 确认",sessionCount:q.length},{status:400});let t=[],u=[],v=new Set(q.map(a=>a.id));for(let a of q)if(v.has(a.id))try{for(let b of(await (0,l.St)(a.id)).deletedSessionIds)t.push(b),v.delete(b)}catch(b){if(b instanceof l.Ag){v.delete(a.id);continue}u.push({id:a.id,error:b instanceof Error?b.message:String(b)})}if(0===u.length){try{await (0,h.oW)({kind:"project",key:d,pinned:!1})}catch{}try{await (0,g._X)({key:d,archived:!1})}catch{}}return e.NextResponse.json({ok:0===u.length,deletedSessionIds:t,failed:u},{status:0===u.length?200:207,headers:{"Cache-Control":"no-store"}})}d()}catch(a){d(a)}})},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},90931:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/archives/sessions/route",pathname:"/api/archives/sessions",filename:"route",bundlePath:"app/api/archives/sessions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/archives/sessions/route.ts",nextConfigOutput:"",userland:()=>c(29900),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/archives/sessions/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I}=f,J=(0,j.normalizeAppPath)(d),K=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),L=!!(C.dynamicRoutes[J]||K),M=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(L&&!B){let a=C.dynamicRoutes[J];if(a&&!1===a.fallback&&!K){if(z.adapterPath)return await M();throw new s.NoFallbackError}}let N=null;!L||v.isDev||B||(N="/index"===(N=G)?"/":N);let O=!0===v.isDev||!L,P=L&&!O;I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let Q=a.method||"GET",R=(0,h.getTracer)(),S=R.getActiveScopeSpan(),T=!!(null==D?void 0:D.isWrappedByNextServer),U=!!(0,g.getRequestMeta)(a,"minimalMode"),V=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,C,U);null==V||V.resetRequestCache(),globalThis.__incrementalCache=V;let W={params:y,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,supportsDynamicResponse:O,incrementalCache:V,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>v.onRequestError(a,b,d,e,D)},sharedContext:{buildId:w,deploymentId:x}},X=new k.NodeNextRequest(a),Y=new k.NodeNextResponse(b),Z=l.NextRequestAdapter.fromNodeNextRequest(X,(0,l.signalFromNodeResponse)(b)),$=async({previousCacheEntry:e})=>{try{if(!U&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await v.handle(Z,W);a.fetchMetrics=W.renderOpts.fetchMetrics;let f=W.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=W.renderOpts.collectedTags;if(!L)return await (0,o.I)(X,Y,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,e=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:W.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==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:E})},!1,D),b}},_=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:N,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:$,waitUntil:c.waitUntil,isMinimalMode:U});if(!L)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});U||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);U&&L||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(X,Y,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await v.onRequestError(a,b,{routerKind:"App Router",routePath:J,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:P,isOnDemandRevalidate:E})},!1,D),L)throw b;await (0,o.I)(X,Y,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=R.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||J,g=`${Q} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(T&&S)await _(S,void 0);else{let b=R.getActiveScopeSpan();await R.withPropagatedContext(a.headers,()=>R.trace(m.BaseServerSpan.handleRequest,{spanName:`${Q} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":Q,"http.target":a.url}},a=>_(a,b)),void 0,!T)}}},94735:a=>{a.exports=require("events")},98995:a=>{a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,426,974,5582,2498,3757,4698,2243,6429,2069,1906,8410],()=>b(b.s=90931));module.exports=c})();