@pricening/pi-web 0.12.1 → 0.12.3

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 (308) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -5
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/next-server.js.nft.json +1 -1
  5. package/.next/prerender-manifest.json +6 -6
  6. package/.next/required-server-files.js +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +12 -0
  9. package/.next/server/app/_global-error/page.js +2 -2
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  16. package/.next/server/app/_not-found/page.js +1 -1
  17. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/_not-found.html +1 -1
  19. package/.next/server/app/_not-found.rsc +4 -4
  20. package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  21. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +9 -7
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  23. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  24. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  25. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  26. package/.next/server/app/api/agent/[id]/route.js +1 -1
  27. package/.next/server/app/api/agent/new/route.js +1 -1
  28. package/.next/server/app/api/agent/running/route.js +1 -1
  29. package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
  30. package/.next/server/app/api/app-update/route.js +1 -1
  31. package/.next/server/app/api/archives/route.js +1 -1
  32. package/.next/server/app/api/archives/route.js.nft.json +1 -1
  33. package/.next/server/app/api/archives/sessions/route.js +1 -1
  34. package/.next/server/app/api/archives/sessions/route.js.nft.json +1 -1
  35. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  36. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -1
  37. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  38. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  39. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/auth/providers/route.js +1 -1
  41. package/.next/server/app/api/cache-miss-notices/route.js +1 -0
  42. package/.next/server/app/api/cache-miss-notices/route.js.nft.json +1 -0
  43. package/.next/server/app/api/cache-miss-notices/route_client-reference-manifest.js +1 -0
  44. package/.next/server/app/api/cwd/browse/route.js +1 -1
  45. package/.next/server/app/api/cwd/validate/route.js +1 -1
  46. package/.next/server/app/api/default-cwd/route.js +1 -1
  47. package/.next/server/app/api/file-index/route.js +1 -1
  48. package/.next/server/app/api/files/[...path]/route.js +2 -2
  49. package/.next/server/app/api/git/diff/route.js +2 -2
  50. package/.next/server/app/api/git/status/route.js +2 -2
  51. package/.next/server/app/api/home/route.js +1 -1
  52. package/.next/server/app/api/mcp/route.js +1 -1
  53. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  54. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  55. package/.next/server/app/api/mcp/test/route.js +1 -1
  56. package/.next/server/app/api/models/default/route.js +1 -1
  57. package/.next/server/app/api/models/enabled/route.js +1 -1
  58. package/.next/server/app/api/models/refresh/route.js +1 -1
  59. package/.next/server/app/api/models/route.js +1 -1
  60. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  61. package/.next/server/app/api/models-config/discover/route.js +1 -1
  62. package/.next/server/app/api/models-config/route.js +1 -1
  63. package/.next/server/app/api/models-config/test/route.js +1 -1
  64. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  65. package/.next/server/app/api/pins/route.js +1 -1
  66. package/.next/server/app/api/plugins/check/route.js +1 -1
  67. package/.next/server/app/api/plugins/route.js +1 -1
  68. package/.next/server/app/api/project-trust/route.js +1 -1
  69. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  70. package/.next/server/app/api/push/config/route.js +1 -1
  71. package/.next/server/app/api/push/subscribe/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  73. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  76. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  77. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  78. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  79. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  80. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  81. package/.next/server/app/api/sessions/delete/route.js +1 -1
  82. package/.next/server/app/api/sessions/delete/route.js.nft.json +1 -1
  83. package/.next/server/app/api/sessions/route.js +1 -1
  84. package/.next/server/app/api/sessions/search/route.js +1 -1
  85. package/.next/server/app/api/sessions/stats/route.js +1 -0
  86. package/.next/server/app/api/sessions/stats/route.js.nft.json +1 -0
  87. package/.next/server/app/api/sessions/stats/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  89. package/.next/server/app/api/sessions/ui-state/route.js.nft.json +1 -1
  90. package/.next/server/app/api/skills/check/route.js +1 -1
  91. package/.next/server/app/api/skills/content/route.js +1 -1
  92. package/.next/server/app/api/skills/install/route.js +1 -1
  93. package/.next/server/app/api/skills/route.js +1 -1
  94. package/.next/server/app/api/skills/search/route.js +1 -1
  95. package/.next/server/app/api/skills/update/route.js +1 -1
  96. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  97. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  98. package/.next/server/app/api/subagents/settings/route.js +1 -1
  99. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  100. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  101. package/.next/server/app/api/terminal/route.js +1 -1
  102. package/.next/server/app/api/tools/settings/route.js +1 -1
  103. package/.next/server/app/api/web-auth/route.js +1 -1
  104. package/.next/server/app/api/worktrees/route.js +1 -1
  105. package/.next/server/app/favicon.ico/route.js +1 -1
  106. package/.next/server/app/index.html +1 -1
  107. package/.next/server/app/index.rsc +6 -6
  108. package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -6
  109. package/.next/server/app/index.segments/_full.segment.rsc +6 -6
  110. package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
  111. package/.next/server/app/login/page.js +1 -1
  112. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  113. package/.next/server/app/login.html +1 -1
  114. package/.next/server/app/login.rsc +5 -5
  115. package/.next/server/app/login.segments/_full.segment.rsc +5 -5
  116. package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
  117. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +10 -8
  118. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  119. package/.next/server/app/page.js +23 -23
  120. package/.next/server/app/page_client-reference-manifest.js +1 -1
  121. package/.next/server/app-paths-manifest.json +7 -5
  122. package/.next/server/chunks/1207.js +1 -1
  123. package/.next/server/chunks/1906.js +1 -0
  124. package/.next/server/chunks/2069.js +1 -0
  125. package/.next/server/chunks/2243.js +1 -1
  126. package/.next/server/chunks/27.js +1 -1
  127. package/.next/server/chunks/3757.js +1 -1
  128. package/.next/server/chunks/3824.js +1 -0
  129. package/.next/server/chunks/5582.js +3 -3
  130. package/.next/server/chunks/5799.js +1 -1
  131. package/.next/server/chunks/6429.js +13 -10
  132. package/.next/server/chunks/7492.js +1 -1
  133. package/.next/server/chunks/9280.js +3 -3
  134. package/.next/server/middleware-build-manifest.js +1 -1
  135. package/.next/server/middleware.js +4 -4
  136. package/.next/server/pages/404.html +1 -1
  137. package/.next/server/pages/500.html +1 -1
  138. package/.next/server/server-reference-manifest.json +1 -1
  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-7494b1af2d31b9d3.js} +1 -1
  212. package/.next/static/chunks/app/manifest.webmanifest/route-e8a55ff457853821.js +1 -0
  213. package/.next/static/chunks/app/page-5ba76dad2ed46124.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/static/efO5oAUn5csYLU8nsXCq7/_buildManifest.js +1 -0
  221. package/.next/trace +83 -83
  222. package/.next/trace-build +1 -1
  223. package/.next/types/app/api/cache-miss-notices/route.ts +353 -0
  224. package/.next/types/app/api/sessions/stats/route.ts +353 -0
  225. package/.next/types/routes.d.ts +3 -1
  226. package/.next/types/validator.ts +18 -0
  227. package/README.ja.md +4 -4
  228. package/README.md +1 -1
  229. package/README.ru.md +4 -4
  230. package/README.zh-CN.md +14 -12
  231. package/package.json +3 -3
  232. package/.next/server/chunks/879.js +0 -1
  233. package/.next/static/chunks/1278-55cf58be60d11a5c.js +0 -1
  234. package/.next/static/chunks/app/api/agent/[id]/route-543f76df48110b10.js +0 -1
  235. package/.next/static/chunks/app/api/agent/new/route-543f76df48110b10.js +0 -1
  236. package/.next/static/chunks/app/api/agent/running/route-543f76df48110b10.js +0 -1
  237. package/.next/static/chunks/app/api/app-update/route-543f76df48110b10.js +0 -1
  238. package/.next/static/chunks/app/api/archives/route-543f76df48110b10.js +0 -1
  239. package/.next/static/chunks/app/api/archives/sessions/route-543f76df48110b10.js +0 -1
  240. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-543f76df48110b10.js +0 -1
  241. package/.next/static/chunks/app/api/auth/login/[provider]/route-543f76df48110b10.js +0 -1
  242. package/.next/static/chunks/app/api/auth/logout/[provider]/route-543f76df48110b10.js +0 -1
  243. package/.next/static/chunks/app/api/auth/providers/route-543f76df48110b10.js +0 -1
  244. package/.next/static/chunks/app/api/cwd/browse/route-543f76df48110b10.js +0 -1
  245. package/.next/static/chunks/app/api/cwd/validate/route-543f76df48110b10.js +0 -1
  246. package/.next/static/chunks/app/api/default-cwd/route-543f76df48110b10.js +0 -1
  247. package/.next/static/chunks/app/api/file-index/route-543f76df48110b10.js +0 -1
  248. package/.next/static/chunks/app/api/files/[...path]/route-543f76df48110b10.js +0 -1
  249. package/.next/static/chunks/app/api/git/diff/route-543f76df48110b10.js +0 -1
  250. package/.next/static/chunks/app/api/git/status/route-543f76df48110b10.js +0 -1
  251. package/.next/static/chunks/app/api/home/route-543f76df48110b10.js +0 -1
  252. package/.next/static/chunks/app/api/mcp/route-543f76df48110b10.js +0 -1
  253. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-543f76df48110b10.js +0 -1
  254. package/.next/static/chunks/app/api/mcp/sign-in/route-543f76df48110b10.js +0 -1
  255. package/.next/static/chunks/app/api/mcp/test/route-543f76df48110b10.js +0 -1
  256. package/.next/static/chunks/app/api/models/default/route-543f76df48110b10.js +0 -1
  257. package/.next/static/chunks/app/api/models/enabled/route-543f76df48110b10.js +0 -1
  258. package/.next/static/chunks/app/api/models/refresh/route-543f76df48110b10.js +0 -1
  259. package/.next/static/chunks/app/api/models/route-543f76df48110b10.js +0 -1
  260. package/.next/static/chunks/app/api/models-config/catalog/route-543f76df48110b10.js +0 -1
  261. package/.next/static/chunks/app/api/models-config/discover/route-543f76df48110b10.js +0 -1
  262. package/.next/static/chunks/app/api/models-config/route-543f76df48110b10.js +0 -1
  263. package/.next/static/chunks/app/api/models-config/test/route-543f76df48110b10.js +0 -1
  264. package/.next/static/chunks/app/api/open-in-explorer/route-543f76df48110b10.js +0 -1
  265. package/.next/static/chunks/app/api/pins/route-543f76df48110b10.js +0 -1
  266. package/.next/static/chunks/app/api/plugins/check/route-543f76df48110b10.js +0 -1
  267. package/.next/static/chunks/app/api/plugins/route-543f76df48110b10.js +0 -1
  268. package/.next/static/chunks/app/api/project-trust/route-543f76df48110b10.js +0 -1
  269. package/.next/static/chunks/app/api/provider-usage/query/route-543f76df48110b10.js +0 -1
  270. package/.next/static/chunks/app/api/push/config/route-543f76df48110b10.js +0 -1
  271. package/.next/static/chunks/app/api/push/subscribe/route-543f76df48110b10.js +0 -1
  272. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-543f76df48110b10.js +0 -1
  273. package/.next/static/chunks/app/api/sessions/[id]/context/route-543f76df48110b10.js +0 -1
  274. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-543f76df48110b10.js +0 -1
  275. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-543f76df48110b10.js +0 -1
  276. package/.next/static/chunks/app/api/sessions/[id]/export/route-543f76df48110b10.js +0 -1
  277. package/.next/static/chunks/app/api/sessions/[id]/fork/route-543f76df48110b10.js +0 -1
  278. package/.next/static/chunks/app/api/sessions/[id]/route-543f76df48110b10.js +0 -1
  279. package/.next/static/chunks/app/api/sessions/[id]/state/route-543f76df48110b10.js +0 -1
  280. package/.next/static/chunks/app/api/sessions/delete/route-543f76df48110b10.js +0 -1
  281. package/.next/static/chunks/app/api/sessions/route-543f76df48110b10.js +0 -1
  282. package/.next/static/chunks/app/api/sessions/search/route-543f76df48110b10.js +0 -1
  283. package/.next/static/chunks/app/api/sessions/ui-state/route-543f76df48110b10.js +0 -1
  284. package/.next/static/chunks/app/api/skills/check/route-543f76df48110b10.js +0 -1
  285. package/.next/static/chunks/app/api/skills/content/route-543f76df48110b10.js +0 -1
  286. package/.next/static/chunks/app/api/skills/install/route-543f76df48110b10.js +0 -1
  287. package/.next/static/chunks/app/api/skills/route-543f76df48110b10.js +0 -1
  288. package/.next/static/chunks/app/api/skills/search/route-543f76df48110b10.js +0 -1
  289. package/.next/static/chunks/app/api/skills/update/route-543f76df48110b10.js +0 -1
  290. package/.next/static/chunks/app/api/subagents/[id]/route-543f76df48110b10.js +0 -1
  291. package/.next/static/chunks/app/api/subagents/profiles/route-543f76df48110b10.js +0 -1
  292. package/.next/static/chunks/app/api/subagents/settings/route-543f76df48110b10.js +0 -1
  293. package/.next/static/chunks/app/api/terminal/[id]/events/route-543f76df48110b10.js +0 -1
  294. package/.next/static/chunks/app/api/terminal/[id]/route-543f76df48110b10.js +0 -1
  295. package/.next/static/chunks/app/api/terminal/route-543f76df48110b10.js +0 -1
  296. package/.next/static/chunks/app/api/tools/settings/route-543f76df48110b10.js +0 -1
  297. package/.next/static/chunks/app/api/web-auth/route-543f76df48110b10.js +0 -1
  298. package/.next/static/chunks/app/api/worktrees/route-543f76df48110b10.js +0 -1
  299. package/.next/static/chunks/app/manifest.webmanifest/route-543f76df48110b10.js +0 -1
  300. package/.next/static/chunks/app/page-99b2f8f3deb70669.js +0 -286
  301. package/.next/static/chunks/next/dist/client/components/builtin/app-error-543f76df48110b10.js +0 -1
  302. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-543f76df48110b10.js +0 -1
  303. package/.next/static/chunks/next/dist/client/components/builtin/not-found-543f76df48110b10.js +0 -1
  304. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-543f76df48110b10.js +0 -1
  305. package/.next/static/css/50e617b3b293bda2.css +0 -1
  306. package/.next/static/css/f2a33b7e4c23b666.css +0 -1
  307. package/.next/static/gGuZClTW88ZA3nCpTpHXv/_buildManifest.js +0 -1
  308. /package/.next/static/{gGuZClTW88ZA3nCpTpHXv → efO5oAUn5csYLU8nsXCq7}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (()=>{var a={};a.id=9183,a.ids=[9183],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},35523:(a,b,c)=>{"use strict";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/app-update/route",pathname:"/api/app-update",filename:"route",bundlePath:"app/api/app-update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/app-update/route.ts",nextConfigOutput:"",userland:()=>c(62445),...{}}),{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/app-update/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)}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},62445:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>l,dynamic:()=>g});var d=c(23211);let e=/^(\d+)\.(\d+)\.(\d+)$/;function f(a){let b=e.exec(a);if(!b)return null;let c=b.slice(1).map(Number);return c.some(a=>!Number.isSafeInteger(a))?null:c}let g="force-dynamic",h="0.12.1",i="1"===process.env.PI_WEB_SKIP_VERSION_CHECK;async function j(){let a=await fetch("https://registry.npmjs.org/@pricening%2Fpi-web/latest",{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!a.ok)throw Error(`npm registry returned HTTP ${a.status}`);let b=await a.json(),c="string"==typeof b.version?b.version:"",d=f(c)?`https://github.com/PriceNing/pi-web/releases/tag/v${c}`:null;if(!d)throw Error("npm registry returned an invalid version");return{currentVersion:h,latestVersion:c,updateAvailable:function(a,b){let c=f(a),d=f(b);if(!c||!d)return!1;for(let a=0;a<c.length;a+=1)if(c[a]!==d[a])return c[a]>d[a];return!1}(c,h),releaseUrl:d}}async function k(){let a=globalThis.__piWebAppUpdateCache??={expiresAt:0};if(a.value&&a.expiresAt>Date.now())return a.value;a.inFlight||(a.inFlight=j().then(b=>(a.value=b,a.expiresAt=Date.now()+432e5,b)).finally(()=>{a.inFlight=void 0}));try{return await a.inFlight}catch(b){if(a.value)return a.value;throw b}}async function l(){if(i)return d.NextResponse.json({currentVersion:h,latestVersion:h,updateAvailable:!1,releaseUrl:""});try{return d.NextResponse.json(await k())}catch(a){return d.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:502})}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=35523));module.exports=c})();
1
+ (()=>{var a={};a.id=9183,a.ids=[9183],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45319:(a,b,c)=>{"use strict";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/app-update/route",pathname:"/api/app-update",filename:"route",bundlePath:"app/api/app-update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/app-update/route.ts",nextConfigOutput:"",userland:()=>c(62445),...{}}),{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/app-update/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)}}},55511:a=>{"use strict";a.exports=require("crypto")},62445:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>l,dynamic:()=>g});var d=c(23211);let e=/^(\d+)\.(\d+)\.(\d+)$/;function f(a){let b=e.exec(a);if(!b)return null;let c=b.slice(1).map(Number);return c.some(a=>!Number.isSafeInteger(a))?null:c}let g="force-dynamic",h="0.12.3",i="1"===process.env.PI_WEB_SKIP_VERSION_CHECK;async function j(){let a=await fetch("https://registry.npmjs.org/@pricening%2Fpi-web/latest",{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!a.ok)throw Error(`npm registry returned HTTP ${a.status}`);let b=await a.json(),c="string"==typeof b.version?b.version:"",d=f(c)?`https://github.com/PriceNing/pi-web/releases/tag/v${c}`:null;if(!d)throw Error("npm registry returned an invalid version");return{currentVersion:h,latestVersion:c,updateAvailable:function(a,b){let c=f(a),d=f(b);if(!c||!d)return!1;for(let a=0;a<c.length;a+=1)if(c[a]!==d[a])return c[a]>d[a];return!1}(c,h),releaseUrl:d}}async function k(){let a=globalThis.__piWebAppUpdateCache??={expiresAt:0};if(a.value&&a.expiresAt>Date.now())return a.value;a.inFlight||(a.inFlight=j().then(b=>(a.value=b,a.expiresAt=Date.now()+432e5,b)).finally(()=>{a.inFlight=void 0}));try{return await a.inFlight}catch(b){if(a.value)return a.value;throw b}}async function l(){if(i)return d.NextResponse.json({currentVersion:h,latestVersion:h,updateAvailable:!1,releaseUrl:""});try{return d.NextResponse.json(await k())}catch(a){return d.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:502})}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=45319));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=1059,a.ids=[1059],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")},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")},33873:a=>{a.exports=require("path")},38062:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,dynamic:()=>m});var e=c(23211),f=c(40402),g=c(56429),h=c(10879),i=c(90237),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let m="force-dynamic";function k(a,b){let c=a=>a.families.reduce((a,b)=>Math.max(a,Date.parse(b.modified)||0),0);return c(b)-c(a)}async function l(){try{let a=(0,h.ej)(),b=new Map;for(let[c,d]of Object.entries(a.sessions))"number"==typeof d.archivedAt&&b.set(c,d.archivedAt);let[c,d]=await Promise.all([(0,f.dQ)(),(0,f.zH)((0,g.Bp)({includeTransient:!0}))]),j=(0,f.O5)(c,d),l=new Map;for(let a of j){if(a.relation?.kind==="subagent")continue;let c=b.get(a.id);if(void 0===c)continue;let d=(0,i._A)(a);if(!d)continue;let e=a.projectRoot??a.cwd,f=l.get(d);f||(f={key:d,root:e,families:[]},l.set(d,f)),f.families.push({id:a.id,...a.name?{name:a.name}:{},...a.firstMessage?{firstMessage:a.firstMessage}:{},messageCount:a.messageCount,modified:a.modified,archivedAt:c})}let m={projects:[...l.values()].sort(k).map(a=>({...a,families:[...a.families].sort((a,b)=>b.archivedAt-a.archivedAt)}))};return e.NextResponse.json(m,{headers:{"Cache-Control":"no-store"}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},41787:(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/route",pathname:"/api/archives",filename:"route",bundlePath:"app/api/archives/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/archives/route.ts",nextConfigOutput:"",userland:()=>c(38062),...{}}),{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/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)}}},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")},90237:(a,b,c)=>{c.d(b,{_A:()=>d});function d(a){return a.projectKey??a.projectRoot??a.cwd}},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],()=>b(b.s=41787));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=1059,a.ids=[1059],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")},10879:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{$q:()=>x,Vy:()=>v,bA:()=>y,ej:()=>u,yh:()=>C});var e=c(73024),f=c(76760),g=c(75430),h=c(80974),i=c.n(h),j=c(8102),k=c(63108),l=c(37431),m=c(12069),n=a([g]);g=(n.then?(await n)():n)[0];let z=new Set(["version","revision","sessions","projects","projectOrder","projectNames","__proto__"]),A=Symbol.for("pi-web:session-ui-state-write-queue"),B={realpath:!1,stale:1e4,retries:{retries:10,factor:2,minTimeout:25,maxTimeout:500},onCompromised:a=>{console.warn(`[pi-web] the session UI state lock was compromised: ${a.message}`)}};class C extends Error{constructor(a="Another process holds the session UI state lock"){super(a),this.name="SessionUiStateLockedError"}}function o(){return globalThis.__piWebSessionUiStateCache??={reads:new Map,revisions:new Map}}function p(a,b){let c=o().revisions;b>(c.get(a)??-1)&&c.set(a,b)}function q(a){return structuredClone(a)}function r(a=(0,g.getAgentDir)()){return(0,f.join)(a,"pi-web-session-state.json")}function s(a){let b;try{b=JSON.parse(a)}catch{return{ok:!1}}let c=(0,m.Jx)(b);return c?{ok:!0,state:c,raw:b}:{ok:!1}}function t(a){let b,c;try{b=(0,e.statSync)(a)}catch(c){let b=c?.code;if("ENOENT"===b||"ENOTDIR"===b)return o().reads.delete(a),(0,m.ly)();throw c}let d=o().reads.get(a);if(d&&d.mtimeMs===b.mtimeMs&&d.size===b.size&&d.ino===b.ino)return d.state;let f=(0,l.y)(a,4194304);if(void 0===f)return o().reads.delete(a),(0,m.ly)();let g=s(f);return g.ok?(c=g.state,p(a,c.revision)):(console.warn(`[pi-web] ${a} is not valid session UI state; reading it as empty until the next change sets it aside`),c=(0,m.ly)()),o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:c}),c}function u(a){try{return q(t(a??r()))}catch(a){return console.warn(`[pi-web] could not read the session UI state: ${a instanceof Error?a.message:String(a)}`),(0,m.ly)()}}function v(a){try{return t(a??r()).revision}catch{return null}}function w(a,b){return(0,k.T)(A,a,async()=>{let c;(0,e.mkdirSync)((0,f.dirname)(a),{recursive:!0});try{c=await i().lock(a,B)}catch(a){if("ELOCKED"===a?.code)throw new C;throw a}try{let c,d=o().revisions.get(a)??0,f=(0,l.y)(a,4194304),g={},h=!1;if(void 0===f)c={...(0,m.ly)(),revision:d};else{let b=s(f);if(b.ok)for(let[a,d]of(c=b.state,Object.entries(b.raw)))z.has(a)||(g[a]=d);else{let b=`${a}.corrupt-${Date.now()}`;try{(0,e.renameSync)(a,b),console.warn(`[pi-web] ${a} could not be parsed; moved it to ${b} and started from an empty session UI state`)}catch(b){console.warn(`[pi-web] ${a} could not be parsed and could not be moved aside (${b instanceof Error?b.message:String(b)}); starting from an empty session UI state`)}c={...(0,m.ly)(),revision:d+1},h=!0}}let i=b(c);if(!i.changed&&!h)return q(c);let k={...i.state,version:m.fS,revision:c.revision+ +!!i.changed},n={version:k.version,revision:k.revision,sessions:k.sessions,projects:k.projects,...k.projectOrder?.length?{projectOrder:k.projectOrder}:{},...k.projectNames&&Object.keys(k.projectNames).length>0?{projectNames:k.projectNames}:{},...g};(0,j.$)(a,JSON.stringify(n,null,2)+"\n"),p(a,k.revision);try{let b=(0,e.statSync)(a);o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:q(k)})}catch{o().reads.delete(a)}return q(k)}finally{try{await c()}catch{}}})}function x(a,b){let c;try{c=b??r()}catch(a){return Promise.reject(a)}return w(c,b=>(0,m.D7)(b,a,Date.now()))}async function y(a,b){let c=b??r(),d=[...new Set(a)];if(0===d.length)return;let e=a=>d.some(b=>Object.prototype.hasOwnProperty.call(a.sessions,b));e(t(c))&&await w(c,a=>{if(!e(a))return{state:a,changed:!1};let b={...a.sessions};for(let a of d)delete b[a];return{state:{...a,sessions:b},changed:!0}})}d()}catch(a){d(a)}})},12015:(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/route",pathname:"/api/archives",filename:"route",bundlePath:"app/api/archives/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/archives/route.ts",nextConfigOutput:"",userland:()=>c(38062),...{}}),{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/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)}}},12412:a=>{a.exports=require("assert")},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")},33873:a=>{a.exports=require("path")},38062:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,dynamic:()=>m});var e=c(23211),f=c(40402),g=c(56429),h=c(10879),i=c(90237),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let m="force-dynamic";function k(a,b){let c=a=>a.families.reduce((a,b)=>Math.max(a,Date.parse(b.modified)||0),0);return c(b)-c(a)}async function l(){try{let a=(0,h.ej)(),b=new Map;for(let[c,d]of Object.entries(a.sessions))"number"==typeof d.archivedAt&&b.set(c,d.archivedAt);let[c,d]=await Promise.all([(0,f.dQ)(),(0,f.zH)((0,g.Bp)({includeTransient:!0}))]),j=(0,f.O5)(c,d),l=new Map;for(let a of j){if(a.relation?.kind==="subagent")continue;let c=b.get(a.id);if(void 0===c)continue;let d=(0,i._A)(a);if(!d)continue;let e=a.projectRoot??a.cwd,f=l.get(d);f||(f={key:d,root:e,families:[]},l.set(d,f)),f.families.push({id:a.id,...a.name?{name:a.name}:{},...a.firstMessage?{firstMessage:a.firstMessage}:{},messageCount:a.messageCount,modified:a.modified,archivedAt:c})}let m={projects:[...l.values()].sort(k).map(a=>({...a,families:[...a.families].sort((a,b)=>b.archivedAt-a.archivedAt)}))};return e.NextResponse.json(m,{headers:{"Cache-Control":"no-store"}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},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")},90237:(a,b,c)=>{c.d(b,{_A:()=>d});function d(a){return a.projectKey??a.projectRoot??a.cwd}},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],()=>b(b.s=12015));module.exports=c})();