@mcy2015/pi-web 0.17.1 → 0.17.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 (328) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +7 -6
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +4 -4
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/routes-manifest.json +6 -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 +5 -5
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +5 -5
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -4
  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/debug/route.js +2 -2
  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/app-update/route.js +1 -1
  30. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  31. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  32. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  33. package/.next/server/app/api/auth/providers/route.js +1 -1
  34. package/.next/server/app/api/auto-title/route.js +2 -2
  35. package/.next/server/app/api/automations/route.js +2 -2
  36. package/.next/server/app/api/cache-miss-notices/route.js +1 -1
  37. package/.next/server/app/api/channels/route.js +2 -2
  38. package/.next/server/app/api/cwd/browse/route.js +1 -1
  39. package/.next/server/app/api/cwd/validate/route.js +1 -1
  40. package/.next/server/app/api/default-cwd/route.js +1 -1
  41. package/.next/server/app/api/file-index/route.js +1 -1
  42. package/.next/server/app/api/files/[...path]/route.js +1 -1
  43. package/.next/server/app/api/git/commit/route.js +1 -1
  44. package/.next/server/app/api/git/diff/route.js +2 -2
  45. package/.next/server/app/api/git/graph/route.js +1 -1
  46. package/.next/server/app/api/git/status/route.js +1 -1
  47. package/.next/server/app/api/home/route.js +1 -1
  48. package/.next/server/app/api/mcp/route.js +2 -2
  49. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  50. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  51. package/.next/server/app/api/mcp/test/route.js +1 -1
  52. package/.next/server/app/api/models/default/route.js +1 -1
  53. package/.next/server/app/api/models/enabled/route.js +1 -1
  54. package/.next/server/app/api/models/refresh/route.js +1 -1
  55. package/.next/server/app/api/models/route.js +1 -1
  56. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  57. package/.next/server/app/api/models-config/discover/route.js +1 -1
  58. package/.next/server/app/api/models-config/route.js +1 -1
  59. package/.next/server/app/api/models-config/test/route.js +1 -1
  60. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  61. package/.next/server/app/api/plugins/check/route.js +1 -1
  62. package/.next/server/app/api/plugins/route.js +1 -1
  63. package/.next/server/app/api/project-trust/route.js +1 -1
  64. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  65. package/.next/server/app/api/push/config/route.js +1 -1
  66. package/.next/server/app/api/push/subscribe/route.js +1 -1
  67. package/.next/server/app/api/sessions/[id]/auto-name/route.js +1 -1
  68. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  69. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js.nft.json +1 -1
  71. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js.nft.json +1 -1
  73. package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/export/route.js.nft.json +1 -1
  75. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  76. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  77. package/.next/server/app/api/sessions/[id]/share/route.js +1 -1
  78. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  79. package/.next/server/app/api/sessions/delete/route.js +1 -1
  80. package/.next/server/app/api/sessions/route.js +1 -1
  81. package/.next/server/app/api/sessions/search/route.js +1 -1
  82. package/.next/server/app/api/sessions/stats/route.js +1 -1
  83. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  84. package/.next/server/app/api/sessions/ui-state/route.js.nft.json +1 -1
  85. package/.next/server/app/api/shares/route.js +1 -0
  86. package/.next/server/app/api/shares/route.js.nft.json +1 -0
  87. package/.next/server/app/api/shares/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/skills/check/route.js +1 -1
  89. package/.next/server/app/api/skills/content/route.js +1 -1
  90. package/.next/server/app/api/skills/install/route.js +1 -1
  91. package/.next/server/app/api/skills/route.js +1 -1
  92. package/.next/server/app/api/skills/search/route.js +1 -1
  93. package/.next/server/app/api/skills/update/route.js +1 -1
  94. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  95. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  96. package/.next/server/app/api/subagents/settings/route.js +1 -1
  97. package/.next/server/app/api/terminal/[id]/events/route.js +1 -1
  98. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  99. package/.next/server/app/api/terminal/route.js +1 -1
  100. package/.next/server/app/api/tools/settings/route.js +1 -1
  101. package/.next/server/app/api/usage/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/files/page.js +1 -1
  106. package/.next/server/app/files/page.js.nft.json +1 -1
  107. package/.next/server/app/files/page_client-reference-manifest.js +1 -1
  108. package/.next/server/app/files.html +1 -1
  109. package/.next/server/app/files.rsc +10 -10
  110. package/.next/server/app/files.segments/_full.segment.rsc +10 -10
  111. package/.next/server/app/files.segments/_tree.segment.rsc +4 -4
  112. package/.next/server/app/files.segments/files/__PAGE__.segment.rsc +10 -10
  113. package/.next/server/app/index.html +1 -1
  114. package/.next/server/app/index.rsc +11 -11
  115. package/.next/server/app/index.segments/__PAGE__.segment.rsc +11 -11
  116. package/.next/server/app/index.segments/_full.segment.rsc +11 -11
  117. package/.next/server/app/index.segments/_tree.segment.rsc +4 -4
  118. package/.next/server/app/login/page.js +1 -1
  119. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  120. package/.next/server/app/login.html +1 -1
  121. package/.next/server/app/login.rsc +6 -6
  122. package/.next/server/app/login.segments/_full.segment.rsc +6 -6
  123. package/.next/server/app/login.segments/_tree.segment.rsc +4 -4
  124. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  125. package/.next/server/app/manifest.webmanifest/route.js +1 -1
  126. package/.next/server/app/page.js +7 -7
  127. package/.next/server/app/page.js.nft.json +1 -1
  128. package/.next/server/app/page_client-reference-manifest.js +1 -1
  129. package/.next/server/app/share/[code]/page.js +1 -1
  130. package/.next/server/app/share/[code]/page_client-reference-manifest.js +1 -1
  131. package/.next/server/app-paths-manifest.json +7 -6
  132. package/.next/server/chunks/1795.js +1 -1
  133. package/.next/server/chunks/1906.js +1 -1
  134. package/.next/server/chunks/1975.js +1 -1
  135. package/.next/server/chunks/210.js +3 -3
  136. package/.next/server/chunks/2243.js +1 -1
  137. package/.next/server/chunks/{6277.js → 3314.js} +4 -4
  138. package/.next/server/chunks/6429.js +1 -1
  139. package/.next/server/middleware-build-manifest.js +1 -1
  140. package/.next/server/pages/404.html +1 -1
  141. package/.next/server/pages/500.html +1 -1
  142. package/.next/server/preview-props.json +3 -3
  143. package/.next/server/server-reference-manifest.json +1 -1
  144. package/.next/static/BwFpia-Mahfafr8weQmhE/_buildManifest.js +1 -0
  145. package/.next/static/chunks/1278-62c1807415068bca.js +1 -0
  146. package/.next/static/chunks/284-e1e783d9e5143323.js +1 -0
  147. package/.next/static/chunks/{9176-f11528109e7d83c1.js → 7676-b24da124462459f3.js} +4 -4
  148. package/.next/static/chunks/app/_global-error/{page-88c7e2580138ec1c.js → page-d609aac1f93b26f5.js} +1 -1
  149. package/.next/static/chunks/app/api/agent/[id]/bash-output/{route-88c7e2580138ec1c.js → route-d609aac1f93b26f5.js} +1 -1
  150. package/.next/static/chunks/app/api/agent/[id]/events/{route-88c7e2580138ec1c.js → route-d609aac1f93b26f5.js} +1 -1
  151. package/.next/static/chunks/app/api/agent/[id]/lease/{route-88c7e2580138ec1c.js → route-d609aac1f93b26f5.js} +1 -1
  152. package/.next/static/chunks/app/api/agent/[id]/route-d609aac1f93b26f5.js +1 -0
  153. package/.next/static/chunks/app/api/agent/debug/route-d609aac1f93b26f5.js +1 -0
  154. package/.next/static/chunks/app/api/agent/new/route-d609aac1f93b26f5.js +1 -0
  155. package/.next/static/chunks/app/api/agent/running/route-d609aac1f93b26f5.js +1 -0
  156. package/.next/static/chunks/app/api/app-update/route-d609aac1f93b26f5.js +1 -0
  157. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-d609aac1f93b26f5.js +1 -0
  158. package/.next/static/chunks/app/api/auth/login/[provider]/route-d609aac1f93b26f5.js +1 -0
  159. package/.next/static/chunks/app/api/auth/logout/[provider]/route-d609aac1f93b26f5.js +1 -0
  160. package/.next/static/chunks/app/api/auth/providers/route-d609aac1f93b26f5.js +1 -0
  161. package/.next/static/chunks/app/api/auto-title/route-d609aac1f93b26f5.js +1 -0
  162. package/.next/static/chunks/app/api/automations/route-d609aac1f93b26f5.js +1 -0
  163. package/.next/static/chunks/app/api/cache-miss-notices/route-d609aac1f93b26f5.js +1 -0
  164. package/.next/static/chunks/app/api/channels/route-d609aac1f93b26f5.js +1 -0
  165. package/.next/static/chunks/app/api/cwd/browse/route-d609aac1f93b26f5.js +1 -0
  166. package/.next/static/chunks/app/api/cwd/validate/route-d609aac1f93b26f5.js +1 -0
  167. package/.next/static/chunks/app/api/default-cwd/route-d609aac1f93b26f5.js +1 -0
  168. package/.next/static/chunks/app/api/file-index/route-d609aac1f93b26f5.js +1 -0
  169. package/.next/static/chunks/app/api/files/[...path]/route-d609aac1f93b26f5.js +1 -0
  170. package/.next/static/chunks/app/api/git/commit/route-d609aac1f93b26f5.js +1 -0
  171. package/.next/static/chunks/app/api/git/diff/route-d609aac1f93b26f5.js +1 -0
  172. package/.next/static/chunks/app/api/git/graph/route-d609aac1f93b26f5.js +1 -0
  173. package/.next/static/chunks/app/api/git/status/route-d609aac1f93b26f5.js +1 -0
  174. package/.next/static/chunks/app/api/home/route-d609aac1f93b26f5.js +1 -0
  175. package/.next/static/chunks/app/api/mcp/route-d609aac1f93b26f5.js +1 -0
  176. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-d609aac1f93b26f5.js +1 -0
  177. package/.next/static/chunks/app/api/mcp/sign-in/route-d609aac1f93b26f5.js +1 -0
  178. package/.next/static/chunks/app/api/mcp/test/route-d609aac1f93b26f5.js +1 -0
  179. package/.next/static/chunks/app/api/models/default/route-d609aac1f93b26f5.js +1 -0
  180. package/.next/static/chunks/app/api/models/enabled/route-d609aac1f93b26f5.js +1 -0
  181. package/.next/static/chunks/app/api/models/refresh/route-d609aac1f93b26f5.js +1 -0
  182. package/.next/static/chunks/app/api/models/route-d609aac1f93b26f5.js +1 -0
  183. package/.next/static/chunks/app/api/models-config/catalog/route-d609aac1f93b26f5.js +1 -0
  184. package/.next/static/chunks/app/api/models-config/discover/route-d609aac1f93b26f5.js +1 -0
  185. package/.next/static/chunks/app/api/models-config/route-d609aac1f93b26f5.js +1 -0
  186. package/.next/static/chunks/app/api/models-config/test/route-d609aac1f93b26f5.js +1 -0
  187. package/.next/static/chunks/app/api/open-in-explorer/route-d609aac1f93b26f5.js +1 -0
  188. package/.next/static/chunks/app/api/plugins/check/route-d609aac1f93b26f5.js +1 -0
  189. package/.next/static/chunks/app/api/plugins/route-d609aac1f93b26f5.js +1 -0
  190. package/.next/static/chunks/app/api/project-trust/route-d609aac1f93b26f5.js +1 -0
  191. package/.next/static/chunks/app/api/provider-usage/query/route-d609aac1f93b26f5.js +1 -0
  192. package/.next/static/chunks/app/api/push/config/route-d609aac1f93b26f5.js +1 -0
  193. package/.next/static/chunks/app/api/push/subscribe/route-d609aac1f93b26f5.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-d609aac1f93b26f5.js +1 -0
  195. package/.next/static/chunks/app/api/sessions/[id]/context/route-d609aac1f93b26f5.js +1 -0
  196. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-d609aac1f93b26f5.js +1 -0
  197. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-d609aac1f93b26f5.js +1 -0
  198. package/.next/static/chunks/app/api/sessions/[id]/export/route-d609aac1f93b26f5.js +1 -0
  199. package/.next/static/chunks/app/api/sessions/[id]/fork/route-d609aac1f93b26f5.js +1 -0
  200. package/.next/static/chunks/app/api/sessions/[id]/route-d609aac1f93b26f5.js +1 -0
  201. package/.next/static/chunks/app/api/sessions/[id]/share/route-d609aac1f93b26f5.js +1 -0
  202. package/.next/static/chunks/app/api/sessions/[id]/state/route-d609aac1f93b26f5.js +1 -0
  203. package/.next/static/chunks/app/api/sessions/delete/route-d609aac1f93b26f5.js +1 -0
  204. package/.next/static/chunks/app/api/sessions/route-d609aac1f93b26f5.js +1 -0
  205. package/.next/static/chunks/app/api/sessions/search/route-d609aac1f93b26f5.js +1 -0
  206. package/.next/static/chunks/app/api/sessions/stats/route-d609aac1f93b26f5.js +1 -0
  207. package/.next/static/chunks/app/api/sessions/ui-state/route-d609aac1f93b26f5.js +1 -0
  208. package/.next/static/chunks/app/api/shares/route-d609aac1f93b26f5.js +1 -0
  209. package/.next/static/chunks/app/api/skills/check/route-d609aac1f93b26f5.js +1 -0
  210. package/.next/static/chunks/app/api/skills/content/route-d609aac1f93b26f5.js +1 -0
  211. package/.next/static/chunks/app/api/skills/install/route-d609aac1f93b26f5.js +1 -0
  212. package/.next/static/chunks/app/api/skills/route-d609aac1f93b26f5.js +1 -0
  213. package/.next/static/chunks/app/api/skills/search/route-d609aac1f93b26f5.js +1 -0
  214. package/.next/static/chunks/app/api/skills/update/route-d609aac1f93b26f5.js +1 -0
  215. package/.next/static/chunks/app/api/subagents/[id]/route-d609aac1f93b26f5.js +1 -0
  216. package/.next/static/chunks/app/api/subagents/profiles/route-d609aac1f93b26f5.js +1 -0
  217. package/.next/static/chunks/app/api/subagents/settings/route-d609aac1f93b26f5.js +1 -0
  218. package/.next/static/chunks/app/api/terminal/[id]/events/route-d609aac1f93b26f5.js +1 -0
  219. package/.next/static/chunks/app/api/terminal/[id]/route-d609aac1f93b26f5.js +1 -0
  220. package/.next/static/chunks/app/api/terminal/route-d609aac1f93b26f5.js +1 -0
  221. package/.next/static/chunks/app/api/tools/settings/route-d609aac1f93b26f5.js +1 -0
  222. package/.next/static/chunks/app/api/usage/route-d609aac1f93b26f5.js +1 -0
  223. package/.next/static/chunks/app/api/web-auth/route-d609aac1f93b26f5.js +1 -0
  224. package/.next/static/chunks/app/api/worktrees/route-d609aac1f93b26f5.js +1 -0
  225. package/.next/static/chunks/app/files/{page-40308d21a9d1a26a.js → page-352f61869d357327.js} +1 -1
  226. package/.next/static/chunks/app/{layout-eda1fa79c5ba3062.js → layout-940cd6ecf374f9ad.js} +1 -1
  227. package/.next/static/chunks/app/manifest.webmanifest/route-d609aac1f93b26f5.js +1 -0
  228. package/.next/static/chunks/app/page-0df1a6d33c89872a.js +1457 -0
  229. package/.next/static/chunks/app/share/[code]/page-4fde087c2bde8c42.js +1 -0
  230. package/.next/static/chunks/next/dist/client/components/builtin/app-error-d609aac1f93b26f5.js +1 -0
  231. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-d609aac1f93b26f5.js +1 -0
  232. package/.next/static/chunks/next/dist/client/components/builtin/not-found-d609aac1f93b26f5.js +1 -0
  233. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-d609aac1f93b26f5.js +1 -0
  234. package/.next/static/chunks/{webpack-44982447a18652d3.js → webpack-5da211d332d8592e.js} +1 -1
  235. package/.next/static/css/{5739c029a2a29694.css → a14d8fc049aae12c.css} +1 -1
  236. package/.next/static/css/d53051ff70f97c47.css +1 -0
  237. package/.next/static/css/d948f02f49c0cac8.css +1 -0
  238. package/.next/trace +41 -208
  239. package/.next/trace-build +1 -1
  240. package/.next/types/app/api/shares/route.ts +355 -0
  241. package/.next/types/routes.d.ts +2 -1
  242. package/.next/types/validator.ts +10 -0
  243. package/package.json +1 -1
  244. package/.next/static/_884wk2ryoAjRUvJAc4GP/_buildManifest.js +0 -1
  245. package/.next/static/chunks/1278-21d0e32dd826a688.js +0 -1
  246. package/.next/static/chunks/8045-5d165548a0c7f7c5.js +0 -1
  247. package/.next/static/chunks/app/api/agent/[id]/route-88c7e2580138ec1c.js +0 -1
  248. package/.next/static/chunks/app/api/agent/debug/route-88c7e2580138ec1c.js +0 -1
  249. package/.next/static/chunks/app/api/agent/new/route-88c7e2580138ec1c.js +0 -1
  250. package/.next/static/chunks/app/api/agent/running/route-88c7e2580138ec1c.js +0 -1
  251. package/.next/static/chunks/app/api/app-update/route-88c7e2580138ec1c.js +0 -1
  252. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-88c7e2580138ec1c.js +0 -1
  253. package/.next/static/chunks/app/api/auth/login/[provider]/route-88c7e2580138ec1c.js +0 -1
  254. package/.next/static/chunks/app/api/auth/logout/[provider]/route-88c7e2580138ec1c.js +0 -1
  255. package/.next/static/chunks/app/api/auth/providers/route-88c7e2580138ec1c.js +0 -1
  256. package/.next/static/chunks/app/api/auto-title/route-88c7e2580138ec1c.js +0 -1
  257. package/.next/static/chunks/app/api/automations/route-88c7e2580138ec1c.js +0 -1
  258. package/.next/static/chunks/app/api/cache-miss-notices/route-88c7e2580138ec1c.js +0 -1
  259. package/.next/static/chunks/app/api/channels/route-88c7e2580138ec1c.js +0 -1
  260. package/.next/static/chunks/app/api/cwd/browse/route-88c7e2580138ec1c.js +0 -1
  261. package/.next/static/chunks/app/api/cwd/validate/route-88c7e2580138ec1c.js +0 -1
  262. package/.next/static/chunks/app/api/default-cwd/route-88c7e2580138ec1c.js +0 -1
  263. package/.next/static/chunks/app/api/file-index/route-88c7e2580138ec1c.js +0 -1
  264. package/.next/static/chunks/app/api/files/[...path]/route-88c7e2580138ec1c.js +0 -1
  265. package/.next/static/chunks/app/api/git/commit/route-88c7e2580138ec1c.js +0 -1
  266. package/.next/static/chunks/app/api/git/diff/route-88c7e2580138ec1c.js +0 -1
  267. package/.next/static/chunks/app/api/git/graph/route-88c7e2580138ec1c.js +0 -1
  268. package/.next/static/chunks/app/api/git/status/route-88c7e2580138ec1c.js +0 -1
  269. package/.next/static/chunks/app/api/home/route-88c7e2580138ec1c.js +0 -1
  270. package/.next/static/chunks/app/api/mcp/route-88c7e2580138ec1c.js +0 -1
  271. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-88c7e2580138ec1c.js +0 -1
  272. package/.next/static/chunks/app/api/mcp/sign-in/route-88c7e2580138ec1c.js +0 -1
  273. package/.next/static/chunks/app/api/mcp/test/route-88c7e2580138ec1c.js +0 -1
  274. package/.next/static/chunks/app/api/models/default/route-88c7e2580138ec1c.js +0 -1
  275. package/.next/static/chunks/app/api/models/enabled/route-88c7e2580138ec1c.js +0 -1
  276. package/.next/static/chunks/app/api/models/refresh/route-88c7e2580138ec1c.js +0 -1
  277. package/.next/static/chunks/app/api/models/route-88c7e2580138ec1c.js +0 -1
  278. package/.next/static/chunks/app/api/models-config/catalog/route-88c7e2580138ec1c.js +0 -1
  279. package/.next/static/chunks/app/api/models-config/discover/route-88c7e2580138ec1c.js +0 -1
  280. package/.next/static/chunks/app/api/models-config/route-88c7e2580138ec1c.js +0 -1
  281. package/.next/static/chunks/app/api/models-config/test/route-88c7e2580138ec1c.js +0 -1
  282. package/.next/static/chunks/app/api/open-in-explorer/route-88c7e2580138ec1c.js +0 -1
  283. package/.next/static/chunks/app/api/plugins/check/route-88c7e2580138ec1c.js +0 -1
  284. package/.next/static/chunks/app/api/plugins/route-88c7e2580138ec1c.js +0 -1
  285. package/.next/static/chunks/app/api/project-trust/route-88c7e2580138ec1c.js +0 -1
  286. package/.next/static/chunks/app/api/provider-usage/query/route-88c7e2580138ec1c.js +0 -1
  287. package/.next/static/chunks/app/api/push/config/route-88c7e2580138ec1c.js +0 -1
  288. package/.next/static/chunks/app/api/push/subscribe/route-88c7e2580138ec1c.js +0 -1
  289. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-88c7e2580138ec1c.js +0 -1
  290. package/.next/static/chunks/app/api/sessions/[id]/context/route-88c7e2580138ec1c.js +0 -1
  291. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-88c7e2580138ec1c.js +0 -1
  292. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-88c7e2580138ec1c.js +0 -1
  293. package/.next/static/chunks/app/api/sessions/[id]/export/route-88c7e2580138ec1c.js +0 -1
  294. package/.next/static/chunks/app/api/sessions/[id]/fork/route-88c7e2580138ec1c.js +0 -1
  295. package/.next/static/chunks/app/api/sessions/[id]/route-88c7e2580138ec1c.js +0 -1
  296. package/.next/static/chunks/app/api/sessions/[id]/share/route-88c7e2580138ec1c.js +0 -1
  297. package/.next/static/chunks/app/api/sessions/[id]/state/route-88c7e2580138ec1c.js +0 -1
  298. package/.next/static/chunks/app/api/sessions/delete/route-88c7e2580138ec1c.js +0 -1
  299. package/.next/static/chunks/app/api/sessions/route-88c7e2580138ec1c.js +0 -1
  300. package/.next/static/chunks/app/api/sessions/search/route-88c7e2580138ec1c.js +0 -1
  301. package/.next/static/chunks/app/api/sessions/stats/route-88c7e2580138ec1c.js +0 -1
  302. package/.next/static/chunks/app/api/sessions/ui-state/route-88c7e2580138ec1c.js +0 -1
  303. package/.next/static/chunks/app/api/skills/check/route-88c7e2580138ec1c.js +0 -1
  304. package/.next/static/chunks/app/api/skills/content/route-88c7e2580138ec1c.js +0 -1
  305. package/.next/static/chunks/app/api/skills/install/route-88c7e2580138ec1c.js +0 -1
  306. package/.next/static/chunks/app/api/skills/route-88c7e2580138ec1c.js +0 -1
  307. package/.next/static/chunks/app/api/skills/search/route-88c7e2580138ec1c.js +0 -1
  308. package/.next/static/chunks/app/api/skills/update/route-88c7e2580138ec1c.js +0 -1
  309. package/.next/static/chunks/app/api/subagents/[id]/route-88c7e2580138ec1c.js +0 -1
  310. package/.next/static/chunks/app/api/subagents/profiles/route-88c7e2580138ec1c.js +0 -1
  311. package/.next/static/chunks/app/api/subagents/settings/route-88c7e2580138ec1c.js +0 -1
  312. package/.next/static/chunks/app/api/terminal/[id]/events/route-88c7e2580138ec1c.js +0 -1
  313. package/.next/static/chunks/app/api/terminal/[id]/route-88c7e2580138ec1c.js +0 -1
  314. package/.next/static/chunks/app/api/terminal/route-88c7e2580138ec1c.js +0 -1
  315. package/.next/static/chunks/app/api/tools/settings/route-88c7e2580138ec1c.js +0 -1
  316. package/.next/static/chunks/app/api/usage/route-88c7e2580138ec1c.js +0 -1
  317. package/.next/static/chunks/app/api/web-auth/route-88c7e2580138ec1c.js +0 -1
  318. package/.next/static/chunks/app/api/worktrees/route-88c7e2580138ec1c.js +0 -1
  319. package/.next/static/chunks/app/manifest.webmanifest/route-88c7e2580138ec1c.js +0 -1
  320. package/.next/static/chunks/app/page-73ec0dba1c5214c8.js +0 -1457
  321. package/.next/static/chunks/app/share/[code]/page-f4850ac677cd51a1.js +0 -1
  322. package/.next/static/chunks/next/dist/client/components/builtin/app-error-88c7e2580138ec1c.js +0 -1
  323. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-88c7e2580138ec1c.js +0 -1
  324. package/.next/static/chunks/next/dist/client/components/builtin/not-found-88c7e2580138ec1c.js +0 -1
  325. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-88c7e2580138ec1c.js +0 -1
  326. package/.next/static/css/83a179aa16591ae4.css +0 -1
  327. package/.next/static/css/c99d24fe85e139cc.css +0 -1
  328. /package/.next/static/{_884wk2ryoAjRUvJAc4GP → BwFpia-Mahfafr8weQmhE}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=9523,a.ids=[9523],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")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},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")},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")},51455:a=>{a.exports=require("node:fs/promises")},52607:(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/git/graph/route",pathname:"/api/git/graph",filename:"route",bundlePath:"app/api/git/graph/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/git/graph/route.ts",nextConfigOutput:"",userland:()=>c(98386),...{}}),{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/git/graph/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},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")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79525:(a,b,c)=>{c.d(b,{BJ:()=>l,Zd:()=>g,Zw:()=>f});var d=c(79646);let e=(0,c(28354).promisify)(d.execFile);function f(a){return null===a||!Number.isFinite(a)||a<1?50:Math.min(Math.floor(a),200)}function g(a){return null===a||!Number.isFinite(a)||a<0?0:Math.floor(a)}async function h(a,b,c=8388608){let{stdout:d}=await e("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function i(a){try{return(await h(a,["rev-parse","--show-toplevel"],1048576)).trim()||null}catch{return null}}let j=["does not have any commits yet","your current branch","bad default revision","ambiguous argument 'head'"];function k(a){let b=a.trim();if(!b)return null;if("HEAD"===b)return{name:"HEAD",kind:"head"};let c="tag: ";if(b.startsWith(c)){let a=b.slice(c.length).trim().replace(/^refs\/tags\//,"");return a?{name:a,kind:"tag"}:null}if(b.startsWith("refs/heads/")){let a=b.slice(11);return a?{name:a,kind:"branch"}:null}if(b.startsWith("refs/remotes/")){let a=b.slice(13);return a?{name:a,kind:"remote"}:null}if(b.startsWith("refs/tags/")){let a=b.slice(10);return a?{name:a,kind:"tag"}:null}return{name:b,kind:b.includes("/")?"remote":"branch"}}async function l(a,b,c){let d,e=await i(a);if(!e)return{commits:[],hasMore:!1};try{d=await h(e,["log","HEAD","--branches","--tags","--remotes","--topo-order","--date-order",`--skip=${c}`,`--max-count=${b+1}`,"--format=%H%x00%P%x00%an%x00%at%x00%s%x00%D\x1e"])}catch(c){let a,b=c.stderr;if("string"==typeof b&&(a=b.toLowerCase(),j.some(b=>a.includes(b))))return{commits:[],hasMore:!1};throw c}let f=function(a){let b=[];for(let c of a.split("\x1e")){let a=c.trim();if(!a)continue;let[d,e,f,g,h,i]=a.split("\0");if(!d)continue;let j=g?Number.parseInt(g,10):0/0;b.push({hash:d,parents:e?e.split(" ").filter(Boolean):[],refs:function(a){let b=[];for(let c of a.split(",")){let a=c.trim();if(!a)continue;let d="HEAD -> ";if(a.startsWith(d)){b.push({name:"HEAD",kind:"head"});let c=k(a.slice(d.length));c&&b.push(c);continue}let e=k(a);e&&b.push(e)}return b}(i??""),subject:h??"",authorName:f||null,authoredAtMs:Number.isNaN(j)?null:1e3*j})}return b}(d);return{commits:f.slice(0,b),hasMore:f.length>b}}},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>k,B7:()=>l,mc:()=>j,uK:()=>h.uK,wz:()=>e.wz});var e=c(25252),f=c(82536),g=c(40402),h=c(58864),i=a([g]);async function j(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,g.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,e.Nw)(a.cwd)),a.projectRoot&&d.add((0,e.Nw)(a.projectRoot));for(let a of(0,e.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function k(a,b){return(0,f.o4)(a,b)}function l(a,b){return(0,f.xk)(a,b)}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},98386:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l});var e=c(29021),f=c.n(e),g=c(23211),h=c(80547),i=c(79525),j=a([h]);function k(a){if(null===a||""===a.trim())return null;let b=Number(a);return Number.isFinite(b)?b:null}async function l(a){try{let b,c=a.nextUrl.searchParams.get("cwd")?.trim()??"";if(!c||!c.startsWith("/")&&!(0,h.uK)(c))return g.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let d=await (0,h.mc)();if(!(0,h.A$)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});try{b=f().statSync(c)}catch{return g.NextResponse.json({error:"Directory not found"},{status:404})}if(!b.isDirectory())return g.NextResponse.json({error:"Not a directory"},{status:400});if(!(0,h.B7)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});let e=(0,i.Zw)(k(a.nextUrl.searchParams.get("maxCount"))),j=(0,i.Zd)(k(a.nextUrl.searchParams.get("skip")));return g.NextResponse.json(await (0,i.BJ)(c,e,j))}catch(a){return g.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}h=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,8045,5582],()=>b(b.s=52607));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=9523,a.ids=[9523],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")},11111:(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/git/graph/route",pathname:"/api/git/graph",filename:"route",bundlePath:"app/api/git/graph/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/git/graph/route.ts",nextConfigOutput:"",userland:()=>c(98386),...{}}),{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/git/graph/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},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")},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")},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")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79525:(a,b,c)=>{c.d(b,{BJ:()=>l,Zd:()=>g,Zw:()=>f});var d=c(79646);let e=(0,c(28354).promisify)(d.execFile);function f(a){return null===a||!Number.isFinite(a)||a<1?50:Math.min(Math.floor(a),200)}function g(a){return null===a||!Number.isFinite(a)||a<0?0:Math.floor(a)}async function h(a,b,c=8388608){let{stdout:d}=await e("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function i(a){try{return(await h(a,["rev-parse","--show-toplevel"],1048576)).trim()||null}catch{return null}}let j=["does not have any commits yet","your current branch","bad default revision","ambiguous argument 'head'"];function k(a){let b=a.trim();if(!b)return null;if("HEAD"===b)return{name:"HEAD",kind:"head"};let c="tag: ";if(b.startsWith(c)){let a=b.slice(c.length).trim().replace(/^refs\/tags\//,"");return a?{name:a,kind:"tag"}:null}if(b.startsWith("refs/heads/")){let a=b.slice(11);return a?{name:a,kind:"branch"}:null}if(b.startsWith("refs/remotes/")){let a=b.slice(13);return a?{name:a,kind:"remote"}:null}if(b.startsWith("refs/tags/")){let a=b.slice(10);return a?{name:a,kind:"tag"}:null}return{name:b,kind:b.includes("/")?"remote":"branch"}}async function l(a,b,c){let d,e=await i(a);if(!e)return{commits:[],hasMore:!1};try{d=await h(e,["log","HEAD","--branches","--tags","--remotes","--topo-order","--date-order",`--skip=${c}`,`--max-count=${b+1}`,"--format=%H%x00%P%x00%an%x00%at%x00%s%x00%D\x1e"])}catch(c){let a,b=c.stderr;if("string"==typeof b&&(a=b.toLowerCase(),j.some(b=>a.includes(b))))return{commits:[],hasMore:!1};throw c}let f=function(a){let b=[];for(let c of a.split("\x1e")){let a=c.trim();if(!a)continue;let[d,e,f,g,h,i]=a.split("\0");if(!d)continue;let j=g?Number.parseInt(g,10):0/0;b.push({hash:d,parents:e?e.split(" ").filter(Boolean):[],refs:function(a){let b=[];for(let c of a.split(",")){let a=c.trim();if(!a)continue;let d="HEAD -> ";if(a.startsWith(d)){b.push({name:"HEAD",kind:"head"});let c=k(a.slice(d.length));c&&b.push(c);continue}let e=k(a);e&&b.push(e)}return b}(i??""),subject:h??"",authorName:f||null,authoredAtMs:Number.isNaN(j)?null:1e3*j})}return b}(d);return{commits:f.slice(0,b),hasMore:f.length>b}}},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>k,B7:()=>l,mc:()=>j,uK:()=>h.uK,wz:()=>e.wz});var e=c(25252),f=c(82536),g=c(40402),h=c(58864),i=a([g]);async function j(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,g.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,e.Nw)(a.cwd)),a.projectRoot&&d.add((0,e.Nw)(a.projectRoot));for(let a of(0,e.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function k(a,b){return(0,f.o4)(a,b)}function l(a,b){return(0,f.xk)(a,b)}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},98386:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l});var e=c(29021),f=c.n(e),g=c(23211),h=c(80547),i=c(79525),j=a([h]);function k(a){if(null===a||""===a.trim())return null;let b=Number(a);return Number.isFinite(b)?b:null}async function l(a){try{let b,c=a.nextUrl.searchParams.get("cwd")?.trim()??"";if(!c||!c.startsWith("/")&&!(0,h.uK)(c))return g.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let d=await (0,h.mc)();if(!(0,h.A$)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});try{b=f().statSync(c)}catch{return g.NextResponse.json({error:"Directory not found"},{status:404})}if(!b.isDirectory())return g.NextResponse.json({error:"Not a directory"},{status:400});if(!(0,h.B7)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});let e=(0,i.Zw)(k(a.nextUrl.searchParams.get("maxCount"))),j=(0,i.Zd)(k(a.nextUrl.searchParams.get("skip")));return g.NextResponse.json(await (0,i.BJ)(c,e,j))}catch(a){return g.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}h=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,8045,5582],()=>b(b.s=11111));module.exports=c})();
@@ -3,4 +3,4 @@ new file mode 100644
3
3
  --- /dev/null
4
4
  +++ b/${a}
5
5
  @@ -0,0 +1,${d.length} @@
6
- ${e}${f}`}async function A(a,b,c,d=[]){try{return await o(a,[...d,"--literal-pathspecs","diff","--no-color","--no-ext-diff","--unified=3","HEAD","--",...c&&c!==b?[c,b]:[b]],4*j._4)}catch{return null}}async function B(a,b){let c=h().dirname(h().resolve(b));for(;!f().existsSync(c);){let a=h().dirname(c);if(a===c)break;c=a}return await p(c)??await p(a)}async function C(a,b){let c,d,e=await B(a,b);if(!e)return{supported:!1};let g=(0,m.V)(e),i=(0,m.V)(b);if(!q(g,i))return{supported:!1};let k=q(g,(0,m.V)(a))?[]:["-c","core.fsmonitor=false"],n=h().resolve(b),o=s(h().relative(g,i)),p=(await t(e,k)).find(a=>a.path===o);if(!p)return{supported:!1};let{status:r}=l(p);if("deleted"===r){let a=await A(e,o,p.originalPath,k);return a?.includes("\n@@ ")?{supported:!0,status:r,patch:a}:{supported:!1}}try{c=f().lstatSync(n)}catch{return{supported:!1}}if(!c.isFile()||c.size>j._4)return{supported:!1};let u=f().readFileSync(n);if(y(u))return{supported:!1};let v=u.toString("utf8");if("untracked"===r)d=z(o,v);else{let a=await A(e,o,p.originalPath,k);if(null===a){if("added"!==r)return{supported:!1};d=z(o,v)}else d=a}return d.includes("\n@@ ")?{supported:!0,status:r,patch:d}:{supported:!1}}},33873:a=>{a.exports=require("path")},35155:(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/git/status/route",pathname:"/api/git/status",filename:"route",bundlePath:"app/api/git/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/git/status/route.ts",nextConfigOutput:"",userland:()=>c(83518),...{}}),{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/git/status/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},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")},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")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>k,B7:()=>l,mc:()=>j,uK:()=>h.uK,wz:()=>e.wz});var e=c(25252),f=c(82536),g=c(40402),h=c(58864),i=a([g]);async function j(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,g.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,e.Nw)(a.cwd)),a.projectRoot&&d.add((0,e.Nw)(a.projectRoot));for(let a of(0,e.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function k(a,b){return(0,f.o4)(a,b)}function l(a,b){return(0,f.xk)(a,b)}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},83518:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(29021),f=c.n(e),g=c(23211),h=c(80547),i=c(33012),j=a([h]);async function k(a){try{let b,c=a.nextUrl.searchParams.get("cwd")??"";if(!c||!c.startsWith("/")&&!(0,h.uK)(c))return g.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let d=await (0,h.mc)();if(!(0,h.A$)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});try{b=f().statSync(c)}catch{return g.NextResponse.json({error:"Directory not found"},{status:404})}if(!b.isDirectory())return g.NextResponse.json({error:"Not a directory"},{status:400});if(!(0,h.B7)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});return g.NextResponse.json(await (0,i.$)(c,a.signal))}catch(a){return g.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}h=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,8045,5582],()=>b(b.s=35155));module.exports=c})();
6
+ ${e}${f}`}async function A(a,b,c,d=[]){try{return await o(a,[...d,"--literal-pathspecs","diff","--no-color","--no-ext-diff","--unified=3","HEAD","--",...c&&c!==b?[c,b]:[b]],4*j._4)}catch{return null}}async function B(a,b){let c=h().dirname(h().resolve(b));for(;!f().existsSync(c);){let a=h().dirname(c);if(a===c)break;c=a}return await p(c)??await p(a)}async function C(a,b){let c,d,e=await B(a,b);if(!e)return{supported:!1};let g=(0,m.V)(e),i=(0,m.V)(b);if(!q(g,i))return{supported:!1};let k=q(g,(0,m.V)(a))?[]:["-c","core.fsmonitor=false"],n=h().resolve(b),o=s(h().relative(g,i)),p=(await t(e,k)).find(a=>a.path===o);if(!p)return{supported:!1};let{status:r}=l(p);if("deleted"===r){let a=await A(e,o,p.originalPath,k);return a?.includes("\n@@ ")?{supported:!0,status:r,patch:a}:{supported:!1}}try{c=f().lstatSync(n)}catch{return{supported:!1}}if(!c.isFile()||c.size>j._4)return{supported:!1};let u=f().readFileSync(n);if(y(u))return{supported:!1};let v=u.toString("utf8");if("untracked"===r)d=z(o,v);else{let a=await A(e,o,p.originalPath,k);if(null===a){if("added"!==r)return{supported:!1};d=z(o,v)}else d=a}return d.includes("\n@@ ")?{supported:!0,status:r,patch:d}:{supported:!1}}},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")},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")},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")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>k,B7:()=>l,mc:()=>j,uK:()=>h.uK,wz:()=>e.wz});var e=c(25252),f=c(82536),g=c(40402),h=c(58864),i=a([g]);async function j(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,g.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,e.Nw)(a.cwd)),a.projectRoot&&d.add((0,e.Nw)(a.projectRoot));for(let a of(0,e.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function k(a,b){return(0,f.o4)(a,b)}function l(a,b){return(0,f.xk)(a,b)}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},83518:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(29021),f=c.n(e),g=c(23211),h=c(80547),i=c(33012),j=a([h]);async function k(a){try{let b,c=a.nextUrl.searchParams.get("cwd")??"";if(!c||!c.startsWith("/")&&!(0,h.uK)(c))return g.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let d=await (0,h.mc)();if(!(0,h.A$)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});try{b=f().statSync(c)}catch{return g.NextResponse.json({error:"Directory not found"},{status:404})}if(!b.isDirectory())return g.NextResponse.json({error:"Not a directory"},{status:400});if(!(0,h.B7)(c,d))return g.NextResponse.json({error:"Access denied"},{status:403});return g.NextResponse.json(await (0,i.$)(c,a.signal))}catch(a){return g.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}h=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},85691:(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/git/status/route",pathname:"/api/git/status",filename:"route",bundlePath:"app/api/git/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/git/status/route.ts",nextConfigOutput:"",userland:()=>c(83518),...{}}),{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/git/status/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,8045,5582],()=>b(b.s=85691));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=3851,a.ids=[3851],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")},6106:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>f});var d=c(23211),e=c(21820);async function f(){return d.NextResponse.json({home:(0,e.homedir)()})}},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")},15903:(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/home/route",pathname:"/api/home",filename:"route",bundlePath:"app/api/home/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/home/route.ts",nextConfigOutput:"",userland:()=>c(6106),...{}}),{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/home/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},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")},55511:a=>{"use strict";a.exports=require("crypto")},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=15903));module.exports=c})();
1
+ (()=>{var a={};a.id=3851,a.ids=[3851],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")},6106:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>f});var d=c(23211),e=c(21820);async function f(){return d.NextResponse.json({home:(0,e.homedir)()})}},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")},17383:(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/home/route",pathname:"/api/home",filename:"route",bundlePath:"app/api/home/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/Data Vault/PiSpace/pi-web/app/api/home/route.ts",nextConfigOutput:"",userland:()=>c(6106),...{}}),{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/home/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,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!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,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=T.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")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},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")},55511:a=>{"use strict";a.exports=require("crypto")},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=17383));module.exports=c})();