@tasselx/pi-web 1.3.0 → 1.4.0

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 (440) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +9 -10
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +157 -1
  5. package/.next/required-server-files.js +6 -6
  6. package/.next/required-server-files.json +6 -6
  7. package/.next/routes-manifest.json +0 -6
  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 +2 -2
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  22. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  23. package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/agent/[id]/events/route.js +1 -1
  25. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  27. package/.next/server/app/api/agent/[id]/lease/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/agent/[id]/route.js +1 -1
  29. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/agent/debug/route.js +2 -2
  31. package/.next/server/app/api/agent/debug/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/agent/new/route.js +1 -1
  33. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/agent/running/route.js +1 -1
  35. package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/app-update/route.js +1 -1
  37. package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -1
  38. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  39. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  41. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  43. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -1
  44. package/.next/server/app/api/auth/providers/route.js +1 -1
  45. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -1
  46. package/.next/server/app/api/cache-miss-notices/route.js +1 -1
  47. package/.next/server/app/api/cache-miss-notices/route_client-reference-manifest.js +1 -1
  48. package/.next/server/app/api/cwd/browse/route.js +1 -1
  49. package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -1
  50. package/.next/server/app/api/cwd/pick/route.js +1 -1
  51. package/.next/server/app/api/cwd/pick/route_client-reference-manifest.js +1 -1
  52. package/.next/server/app/api/cwd/validate/route.js +1 -1
  53. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -1
  54. package/.next/server/app/api/default-cwd/route.js +1 -1
  55. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -1
  56. package/.next/server/app/api/file-index/route.js +1 -1
  57. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -1
  58. package/.next/server/app/api/files/[...path]/route.js +1 -1
  59. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/git/diff/route.js +1 -1
  61. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
  62. package/.next/server/app/api/git/status/route.js +2 -2
  63. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
  64. package/.next/server/app/api/home/route.js +1 -1
  65. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/mcp/route.js +2 -2
  67. package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
  68. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  69. package/.next/server/app/api/mcp/sign-in/[flowId]/route_client-reference-manifest.js +1 -1
  70. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  71. package/.next/server/app/api/mcp/sign-in/route_client-reference-manifest.js +1 -1
  72. package/.next/server/app/api/mcp/test/route.js +1 -1
  73. package/.next/server/app/api/mcp/test/route_client-reference-manifest.js +1 -1
  74. package/.next/server/app/api/models/enabled/route.js +1 -1
  75. package/.next/server/app/api/models/enabled/route.js.nft.json +1 -1
  76. package/.next/server/app/api/models/enabled/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/models/refresh/route.js +1 -1
  78. package/.next/server/app/api/models/refresh/route_client-reference-manifest.js +1 -1
  79. package/.next/server/app/api/models/route.js +1 -1
  80. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  81. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  82. package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -1
  83. package/.next/server/app/api/models-config/discover/route.js +1 -1
  84. package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -1
  85. package/.next/server/app/api/models-config/route.js +1 -1
  86. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -1
  87. package/.next/server/app/api/models-config/test/route.js +1 -1
  88. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -1
  89. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  90. package/.next/server/app/api/open-in-explorer/route_client-reference-manifest.js +1 -1
  91. package/.next/server/app/api/plugins/check/route.js +1 -1
  92. package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -1
  93. package/.next/server/app/api/plugins/route.js +1 -1
  94. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -1
  95. package/.next/server/app/api/project-trust/route.js +1 -1
  96. package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -1
  97. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  98. package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -1
  99. package/.next/server/app/api/push/config/route.js +1 -1
  100. package/.next/server/app/api/push/config/route_client-reference-manifest.js +1 -1
  101. package/.next/server/app/api/push/subscribe/route.js +1 -1
  102. package/.next/server/app/api/push/subscribe/route_client-reference-manifest.js +1 -1
  103. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  104. package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -1
  105. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  106. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -1
  107. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  108. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -1
  109. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  110. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -1
  111. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  112. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -1
  113. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  114. package/.next/server/app/api/sessions/[id]/fork/route_client-reference-manifest.js +1 -1
  115. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  116. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -1
  117. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  118. package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -1
  119. package/.next/server/app/api/sessions/delete/route.js +1 -1
  120. package/.next/server/app/api/sessions/delete/route_client-reference-manifest.js +1 -1
  121. package/.next/server/app/api/sessions/route.js +1 -1
  122. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  123. package/.next/server/app/api/sessions/search/route.js +1 -1
  124. package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -1
  125. package/.next/server/app/api/sessions/stats/route.js +1 -1
  126. package/.next/server/app/api/sessions/stats/route_client-reference-manifest.js +1 -1
  127. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  128. package/.next/server/app/api/sessions/ui-state/route_client-reference-manifest.js +1 -1
  129. package/.next/server/app/api/skills/check/route.js +1 -1
  130. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -1
  131. package/.next/server/app/api/skills/content/route.js +1 -1
  132. package/.next/server/app/api/skills/content/route_client-reference-manifest.js +1 -1
  133. package/.next/server/app/api/skills/install/route.js +1 -1
  134. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -1
  135. package/.next/server/app/api/skills/route.js +1 -1
  136. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  137. package/.next/server/app/api/skills/search/route.js +1 -1
  138. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -1
  139. package/.next/server/app/api/skills/update/route.js +1 -1
  140. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -1
  141. package/.next/server/app/api/sleep-inhibit/route.js +1 -1
  142. package/.next/server/app/api/sleep-inhibit/route_client-reference-manifest.js +1 -1
  143. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  144. package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -1
  145. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  146. package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/api/subagents/settings/route.js +1 -1
  148. package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -1
  149. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  150. package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -1
  151. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  152. package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -1
  153. package/.next/server/app/api/terminal/route.js +1 -1
  154. package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -1
  155. package/.next/server/app/api/tools/settings/route.js +1 -1
  156. package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -1
  157. package/.next/server/app/api/web-auth/route.js +1 -1
  158. package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -1
  159. package/.next/server/app/api/worktrees/route.js +1 -1
  160. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  161. package/.next/server/app/favicon.ico/route.js +1 -1
  162. package/.next/server/app/index.html +1 -1
  163. package/.next/server/app/index.rsc +5 -5
  164. package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  165. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  166. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  167. package/.next/server/app/login/page.js +1 -1
  168. package/.next/server/app/login/page.js.nft.json +1 -1
  169. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  170. package/.next/server/app/login.html +1 -1
  171. package/.next/server/app/login.rsc +4 -4
  172. package/.next/server/app/login.segments/_full.segment.rsc +4 -4
  173. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  174. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  175. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  176. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  177. package/.next/server/app/page.js +9 -11
  178. package/.next/server/app/page.js.nft.json +1 -1
  179. package/.next/server/app/page_client-reference-manifest.js +1 -1
  180. package/.next/server/app-paths-manifest.json +9 -10
  181. package/.next/server/chunks/2243.js +1 -1
  182. package/.next/server/chunks/2430.js +3 -3
  183. package/.next/server/chunks/2970.js +1 -1
  184. package/.next/server/chunks/7979.js +1 -0
  185. package/.next/server/instrumentation.js.nft.json +1 -1
  186. package/.next/server/middleware-build-manifest.js +1 -1
  187. package/.next/server/middleware.js +4 -4
  188. package/.next/server/next-font-manifest.js +1 -1
  189. package/.next/server/next-font-manifest.json +1 -1
  190. package/.next/server/pages/404.html +1 -1
  191. package/.next/server/pages/500.html +1 -1
  192. package/.next/server/preview-props.json +3 -3
  193. package/.next/server/server-reference-manifest.json +1 -1
  194. package/.next/static/2rpFMJiXXP8Ssip42zwjf/_buildManifest.js +1 -0
  195. package/.next/static/chunks/1278-2513dd213d905b76.js +1 -0
  196. package/.next/static/chunks/app/_global-error/page-285cf907c3ba74a9.js +1 -0
  197. package/.next/static/chunks/app/_not-found/{page-d4722b111eb204ad.js → page-35dee0d93253f38c.js} +1 -1
  198. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-285cf907c3ba74a9.js +1 -0
  199. package/.next/static/chunks/app/api/agent/[id]/events/route-285cf907c3ba74a9.js +1 -0
  200. package/.next/static/chunks/app/api/agent/[id]/lease/route-285cf907c3ba74a9.js +1 -0
  201. package/.next/static/chunks/app/api/agent/[id]/route-285cf907c3ba74a9.js +1 -0
  202. package/.next/static/chunks/app/api/agent/debug/route-285cf907c3ba74a9.js +1 -0
  203. package/.next/static/chunks/app/api/agent/new/route-285cf907c3ba74a9.js +1 -0
  204. package/.next/static/chunks/app/api/agent/running/route-285cf907c3ba74a9.js +1 -0
  205. package/.next/static/chunks/app/api/app-update/route-285cf907c3ba74a9.js +1 -0
  206. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-285cf907c3ba74a9.js +1 -0
  207. package/.next/static/chunks/app/api/auth/login/[provider]/route-285cf907c3ba74a9.js +1 -0
  208. package/.next/static/chunks/app/api/auth/logout/[provider]/route-285cf907c3ba74a9.js +1 -0
  209. package/.next/static/chunks/app/api/auth/providers/route-285cf907c3ba74a9.js +1 -0
  210. package/.next/static/chunks/app/api/cache-miss-notices/route-285cf907c3ba74a9.js +1 -0
  211. package/.next/static/chunks/app/api/cwd/browse/route-285cf907c3ba74a9.js +1 -0
  212. package/.next/static/chunks/app/api/cwd/pick/route-285cf907c3ba74a9.js +1 -0
  213. package/.next/static/chunks/app/api/cwd/validate/route-285cf907c3ba74a9.js +1 -0
  214. package/.next/static/chunks/app/api/default-cwd/route-285cf907c3ba74a9.js +1 -0
  215. package/.next/static/chunks/app/api/file-index/route-285cf907c3ba74a9.js +1 -0
  216. package/.next/static/chunks/app/api/files/[...path]/route-285cf907c3ba74a9.js +1 -0
  217. package/.next/static/chunks/app/api/git/diff/route-285cf907c3ba74a9.js +1 -0
  218. package/.next/static/chunks/app/api/git/status/route-285cf907c3ba74a9.js +1 -0
  219. package/.next/static/chunks/app/api/home/route-285cf907c3ba74a9.js +1 -0
  220. package/.next/static/chunks/app/api/mcp/route-285cf907c3ba74a9.js +1 -0
  221. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-285cf907c3ba74a9.js +1 -0
  222. package/.next/static/chunks/app/api/mcp/sign-in/route-285cf907c3ba74a9.js +1 -0
  223. package/.next/static/chunks/app/api/mcp/test/route-285cf907c3ba74a9.js +1 -0
  224. package/.next/static/chunks/app/api/models/enabled/route-285cf907c3ba74a9.js +1 -0
  225. package/.next/static/chunks/app/api/models/refresh/route-285cf907c3ba74a9.js +1 -0
  226. package/.next/static/chunks/app/api/models/route-285cf907c3ba74a9.js +1 -0
  227. package/.next/static/chunks/app/api/models-config/catalog/route-285cf907c3ba74a9.js +1 -0
  228. package/.next/static/chunks/app/api/models-config/discover/route-285cf907c3ba74a9.js +1 -0
  229. package/.next/static/chunks/app/api/models-config/route-285cf907c3ba74a9.js +1 -0
  230. package/.next/static/chunks/app/api/models-config/test/route-285cf907c3ba74a9.js +1 -0
  231. package/.next/static/chunks/app/api/open-in-explorer/route-285cf907c3ba74a9.js +1 -0
  232. package/.next/static/chunks/app/api/plugins/check/route-285cf907c3ba74a9.js +1 -0
  233. package/.next/static/chunks/app/api/plugins/route-285cf907c3ba74a9.js +1 -0
  234. package/.next/static/chunks/app/api/project-trust/route-285cf907c3ba74a9.js +1 -0
  235. package/.next/static/chunks/app/api/provider-usage/query/route-285cf907c3ba74a9.js +1 -0
  236. package/.next/static/chunks/app/api/push/config/route-285cf907c3ba74a9.js +1 -0
  237. package/.next/static/chunks/app/api/push/subscribe/route-285cf907c3ba74a9.js +1 -0
  238. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-285cf907c3ba74a9.js +1 -0
  239. package/.next/static/chunks/app/api/sessions/[id]/context/route-285cf907c3ba74a9.js +1 -0
  240. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-285cf907c3ba74a9.js +1 -0
  241. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-285cf907c3ba74a9.js +1 -0
  242. package/.next/static/chunks/app/api/sessions/[id]/export/route-285cf907c3ba74a9.js +1 -0
  243. package/.next/static/chunks/app/api/sessions/[id]/fork/route-285cf907c3ba74a9.js +1 -0
  244. package/.next/static/chunks/app/api/sessions/[id]/route-285cf907c3ba74a9.js +1 -0
  245. package/.next/static/chunks/app/api/sessions/[id]/state/route-285cf907c3ba74a9.js +1 -0
  246. package/.next/static/chunks/app/api/sessions/delete/route-285cf907c3ba74a9.js +1 -0
  247. package/.next/static/chunks/app/api/sessions/route-285cf907c3ba74a9.js +1 -0
  248. package/.next/static/chunks/app/api/sessions/search/route-285cf907c3ba74a9.js +1 -0
  249. package/.next/static/chunks/app/api/sessions/stats/route-285cf907c3ba74a9.js +1 -0
  250. package/.next/static/chunks/app/api/sessions/ui-state/route-285cf907c3ba74a9.js +1 -0
  251. package/.next/static/chunks/app/api/skills/check/route-285cf907c3ba74a9.js +1 -0
  252. package/.next/static/chunks/app/api/skills/content/route-285cf907c3ba74a9.js +1 -0
  253. package/.next/static/chunks/app/api/skills/install/route-285cf907c3ba74a9.js +1 -0
  254. package/.next/static/chunks/app/api/skills/route-285cf907c3ba74a9.js +1 -0
  255. package/.next/static/chunks/app/api/skills/search/route-285cf907c3ba74a9.js +1 -0
  256. package/.next/static/chunks/app/api/skills/update/route-285cf907c3ba74a9.js +1 -0
  257. package/.next/static/chunks/app/api/sleep-inhibit/route-285cf907c3ba74a9.js +1 -0
  258. package/.next/static/chunks/app/api/subagents/[id]/route-285cf907c3ba74a9.js +1 -0
  259. package/.next/static/chunks/app/api/subagents/profiles/route-285cf907c3ba74a9.js +1 -0
  260. package/.next/static/chunks/app/api/subagents/settings/route-285cf907c3ba74a9.js +1 -0
  261. package/.next/static/chunks/app/api/terminal/[id]/events/route-285cf907c3ba74a9.js +1 -0
  262. package/.next/static/chunks/app/api/terminal/[id]/route-285cf907c3ba74a9.js +1 -0
  263. package/.next/static/chunks/app/api/terminal/route-285cf907c3ba74a9.js +1 -0
  264. package/.next/static/chunks/app/api/tools/settings/route-285cf907c3ba74a9.js +1 -0
  265. package/.next/static/chunks/app/api/web-auth/route-285cf907c3ba74a9.js +1 -0
  266. package/.next/static/chunks/app/api/worktrees/route-285cf907c3ba74a9.js +1 -0
  267. package/.next/static/chunks/app/{layout-fd5067066c05f1c1.js → layout-8fe0f5be5c8c818b.js} +1 -1
  268. package/.next/static/chunks/app/login/{page-699dd04274c6737c.js → page-7d17aa0961f2fcbe.js} +1 -1
  269. package/.next/static/chunks/app/manifest.webmanifest/route-285cf907c3ba74a9.js +1 -0
  270. package/.next/static/chunks/app/page-fbf3ea7b22a83370.js +1129 -0
  271. package/.next/static/chunks/{main-app-03bab309386a7cee.js → main-app-4b56fc85be3f7823.js} +1 -1
  272. package/.next/static/chunks/next/dist/client/components/builtin/app-error-285cf907c3ba74a9.js +1 -0
  273. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-285cf907c3ba74a9.js +1 -0
  274. package/.next/static/chunks/next/dist/client/components/builtin/global-error-064e367d6001dbac.js +1 -0
  275. package/.next/static/chunks/next/dist/client/components/builtin/not-found-285cf907c3ba74a9.js +1 -0
  276. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-285cf907c3ba74a9.js +1 -0
  277. package/.next/trace +180 -181
  278. package/.next/trace-build +1 -1
  279. package/.next/types/app/api/agent/[id]/bash-output/route.ts +1 -1
  280. package/.next/types/app/api/agent/[id]/events/route.ts +1 -1
  281. package/.next/types/app/api/agent/[id]/lease/route.ts +1 -1
  282. package/.next/types/app/api/agent/[id]/route.ts +1 -1
  283. package/.next/types/app/api/agent/debug/route.ts +1 -1
  284. package/.next/types/app/api/agent/new/route.ts +1 -1
  285. package/.next/types/app/api/agent/running/route.ts +1 -1
  286. package/.next/types/app/api/app-update/route.ts +1 -1
  287. package/.next/types/app/api/auth/api-key/[provider]/route.ts +1 -1
  288. package/.next/types/app/api/auth/login/[provider]/route.ts +1 -1
  289. package/.next/types/app/api/auth/logout/[provider]/route.ts +1 -1
  290. package/.next/types/app/api/auth/providers/route.ts +1 -1
  291. package/.next/types/app/api/cache-miss-notices/route.ts +1 -1
  292. package/.next/types/app/api/cwd/browse/route.ts +1 -1
  293. package/.next/types/app/api/cwd/pick/route.ts +1 -1
  294. package/.next/types/app/api/cwd/validate/route.ts +1 -1
  295. package/.next/types/app/api/default-cwd/route.ts +1 -1
  296. package/.next/types/app/api/file-index/route.ts +1 -1
  297. package/.next/types/app/api/files/[...path]/route.ts +1 -1
  298. package/.next/types/app/api/git/diff/route.ts +1 -1
  299. package/.next/types/app/api/git/status/route.ts +1 -1
  300. package/.next/types/app/api/home/route.ts +1 -1
  301. package/.next/types/app/api/mcp/route.ts +1 -1
  302. package/.next/types/app/api/mcp/sign-in/[flowId]/route.ts +1 -1
  303. package/.next/types/app/api/mcp/sign-in/route.ts +1 -1
  304. package/.next/types/app/api/mcp/test/route.ts +1 -1
  305. package/.next/types/app/api/models/enabled/route.ts +1 -1
  306. package/.next/types/app/api/models/refresh/route.ts +1 -1
  307. package/.next/types/app/api/models/route.ts +1 -1
  308. package/.next/types/app/api/models-config/catalog/route.ts +1 -1
  309. package/.next/types/app/api/models-config/discover/route.ts +1 -1
  310. package/.next/types/app/api/models-config/route.ts +1 -1
  311. package/.next/types/app/api/models-config/test/route.ts +1 -1
  312. package/.next/types/app/api/open-in-explorer/route.ts +1 -1
  313. package/.next/types/app/api/plugins/check/route.ts +1 -1
  314. package/.next/types/app/api/plugins/route.ts +1 -1
  315. package/.next/types/app/api/project-trust/route.ts +1 -1
  316. package/.next/types/app/api/provider-usage/query/route.ts +1 -1
  317. package/.next/types/app/api/push/config/route.ts +1 -1
  318. package/.next/types/app/api/push/subscribe/route.ts +1 -1
  319. package/.next/types/app/api/sessions/[id]/auto-name/route.ts +1 -1
  320. package/.next/types/app/api/sessions/[id]/context/route.ts +1 -1
  321. package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +1 -1
  322. package/.next/types/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.ts +1 -1
  323. package/.next/types/app/api/sessions/[id]/export/route.ts +1 -1
  324. package/.next/types/app/api/sessions/[id]/fork/route.ts +1 -1
  325. package/.next/types/app/api/sessions/[id]/route.ts +1 -1
  326. package/.next/types/app/api/sessions/[id]/state/route.ts +1 -1
  327. package/.next/types/app/api/sessions/delete/route.ts +1 -1
  328. package/.next/types/app/api/sessions/route.ts +1 -1
  329. package/.next/types/app/api/sessions/search/route.ts +1 -1
  330. package/.next/types/app/api/sessions/stats/route.ts +1 -1
  331. package/.next/types/app/api/sessions/ui-state/route.ts +1 -1
  332. package/.next/types/app/api/skills/check/route.ts +1 -1
  333. package/.next/types/app/api/skills/content/route.ts +1 -1
  334. package/.next/types/app/api/skills/install/route.ts +1 -1
  335. package/.next/types/app/api/skills/route.ts +1 -1
  336. package/.next/types/app/api/skills/search/route.ts +1 -1
  337. package/.next/types/app/api/skills/update/route.ts +1 -1
  338. package/.next/types/app/api/sleep-inhibit/route.ts +1 -1
  339. package/.next/types/app/api/subagents/[id]/route.ts +1 -1
  340. package/.next/types/app/api/subagents/profiles/route.ts +1 -1
  341. package/.next/types/app/api/subagents/settings/route.ts +1 -1
  342. package/.next/types/app/api/terminal/[id]/events/route.ts +1 -1
  343. package/.next/types/app/api/terminal/[id]/route.ts +1 -1
  344. package/.next/types/app/api/terminal/route.ts +1 -1
  345. package/.next/types/app/api/tools/settings/route.ts +1 -1
  346. package/.next/types/app/api/web-auth/route.ts +1 -1
  347. package/.next/types/app/api/worktrees/route.ts +1 -1
  348. package/.next/types/app/layout.ts +1 -1
  349. package/.next/types/app/login/page.ts +1 -1
  350. package/.next/types/app/page.ts +1 -1
  351. package/.next/types/routes.d.ts +1 -2
  352. package/.next/types/validator.ts +0 -10
  353. package/package.json +2 -2
  354. package/.next/server/app/api/models/default/route.js +0 -1
  355. package/.next/server/app/api/models/default/route.js.nft.json +0 -1
  356. package/.next/server/app/api/models/default/route_client-reference-manifest.js +0 -1
  357. package/.next/server/chunks/27.js +0 -1
  358. package/.next/server/chunks/8947.js +0 -1
  359. package/.next/static/SZGRKeK7Rp-GLXlZwXVpN/_buildManifest.js +0 -1
  360. package/.next/static/chunks/1278-7900e52add02a581.js +0 -1
  361. package/.next/static/chunks/app/_global-error/page-ff5f37ea6085322e.js +0 -1
  362. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-ff5f37ea6085322e.js +0 -1
  363. package/.next/static/chunks/app/api/agent/[id]/events/route-ff5f37ea6085322e.js +0 -1
  364. package/.next/static/chunks/app/api/agent/[id]/lease/route-ff5f37ea6085322e.js +0 -1
  365. package/.next/static/chunks/app/api/agent/[id]/route-ff5f37ea6085322e.js +0 -1
  366. package/.next/static/chunks/app/api/agent/debug/route-ff5f37ea6085322e.js +0 -1
  367. package/.next/static/chunks/app/api/agent/new/route-ff5f37ea6085322e.js +0 -1
  368. package/.next/static/chunks/app/api/agent/running/route-ff5f37ea6085322e.js +0 -1
  369. package/.next/static/chunks/app/api/app-update/route-ff5f37ea6085322e.js +0 -1
  370. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-ff5f37ea6085322e.js +0 -1
  371. package/.next/static/chunks/app/api/auth/login/[provider]/route-ff5f37ea6085322e.js +0 -1
  372. package/.next/static/chunks/app/api/auth/logout/[provider]/route-ff5f37ea6085322e.js +0 -1
  373. package/.next/static/chunks/app/api/auth/providers/route-ff5f37ea6085322e.js +0 -1
  374. package/.next/static/chunks/app/api/cache-miss-notices/route-ff5f37ea6085322e.js +0 -1
  375. package/.next/static/chunks/app/api/cwd/browse/route-ff5f37ea6085322e.js +0 -1
  376. package/.next/static/chunks/app/api/cwd/pick/route-ff5f37ea6085322e.js +0 -1
  377. package/.next/static/chunks/app/api/cwd/validate/route-ff5f37ea6085322e.js +0 -1
  378. package/.next/static/chunks/app/api/default-cwd/route-ff5f37ea6085322e.js +0 -1
  379. package/.next/static/chunks/app/api/file-index/route-ff5f37ea6085322e.js +0 -1
  380. package/.next/static/chunks/app/api/files/[...path]/route-ff5f37ea6085322e.js +0 -1
  381. package/.next/static/chunks/app/api/git/diff/route-ff5f37ea6085322e.js +0 -1
  382. package/.next/static/chunks/app/api/git/status/route-ff5f37ea6085322e.js +0 -1
  383. package/.next/static/chunks/app/api/home/route-ff5f37ea6085322e.js +0 -1
  384. package/.next/static/chunks/app/api/mcp/route-ff5f37ea6085322e.js +0 -1
  385. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-ff5f37ea6085322e.js +0 -1
  386. package/.next/static/chunks/app/api/mcp/sign-in/route-ff5f37ea6085322e.js +0 -1
  387. package/.next/static/chunks/app/api/mcp/test/route-ff5f37ea6085322e.js +0 -1
  388. package/.next/static/chunks/app/api/models/default/route-ff5f37ea6085322e.js +0 -1
  389. package/.next/static/chunks/app/api/models/enabled/route-ff5f37ea6085322e.js +0 -1
  390. package/.next/static/chunks/app/api/models/refresh/route-ff5f37ea6085322e.js +0 -1
  391. package/.next/static/chunks/app/api/models/route-ff5f37ea6085322e.js +0 -1
  392. package/.next/static/chunks/app/api/models-config/catalog/route-ff5f37ea6085322e.js +0 -1
  393. package/.next/static/chunks/app/api/models-config/discover/route-ff5f37ea6085322e.js +0 -1
  394. package/.next/static/chunks/app/api/models-config/route-ff5f37ea6085322e.js +0 -1
  395. package/.next/static/chunks/app/api/models-config/test/route-ff5f37ea6085322e.js +0 -1
  396. package/.next/static/chunks/app/api/open-in-explorer/route-ff5f37ea6085322e.js +0 -1
  397. package/.next/static/chunks/app/api/plugins/check/route-ff5f37ea6085322e.js +0 -1
  398. package/.next/static/chunks/app/api/plugins/route-ff5f37ea6085322e.js +0 -1
  399. package/.next/static/chunks/app/api/project-trust/route-ff5f37ea6085322e.js +0 -1
  400. package/.next/static/chunks/app/api/provider-usage/query/route-ff5f37ea6085322e.js +0 -1
  401. package/.next/static/chunks/app/api/push/config/route-ff5f37ea6085322e.js +0 -1
  402. package/.next/static/chunks/app/api/push/subscribe/route-ff5f37ea6085322e.js +0 -1
  403. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-ff5f37ea6085322e.js +0 -1
  404. package/.next/static/chunks/app/api/sessions/[id]/context/route-ff5f37ea6085322e.js +0 -1
  405. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-ff5f37ea6085322e.js +0 -1
  406. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-ff5f37ea6085322e.js +0 -1
  407. package/.next/static/chunks/app/api/sessions/[id]/export/route-ff5f37ea6085322e.js +0 -1
  408. package/.next/static/chunks/app/api/sessions/[id]/fork/route-ff5f37ea6085322e.js +0 -1
  409. package/.next/static/chunks/app/api/sessions/[id]/route-ff5f37ea6085322e.js +0 -1
  410. package/.next/static/chunks/app/api/sessions/[id]/state/route-ff5f37ea6085322e.js +0 -1
  411. package/.next/static/chunks/app/api/sessions/delete/route-ff5f37ea6085322e.js +0 -1
  412. package/.next/static/chunks/app/api/sessions/route-ff5f37ea6085322e.js +0 -1
  413. package/.next/static/chunks/app/api/sessions/search/route-ff5f37ea6085322e.js +0 -1
  414. package/.next/static/chunks/app/api/sessions/stats/route-ff5f37ea6085322e.js +0 -1
  415. package/.next/static/chunks/app/api/sessions/ui-state/route-ff5f37ea6085322e.js +0 -1
  416. package/.next/static/chunks/app/api/skills/check/route-ff5f37ea6085322e.js +0 -1
  417. package/.next/static/chunks/app/api/skills/content/route-ff5f37ea6085322e.js +0 -1
  418. package/.next/static/chunks/app/api/skills/install/route-ff5f37ea6085322e.js +0 -1
  419. package/.next/static/chunks/app/api/skills/route-ff5f37ea6085322e.js +0 -1
  420. package/.next/static/chunks/app/api/skills/search/route-ff5f37ea6085322e.js +0 -1
  421. package/.next/static/chunks/app/api/skills/update/route-ff5f37ea6085322e.js +0 -1
  422. package/.next/static/chunks/app/api/sleep-inhibit/route-ff5f37ea6085322e.js +0 -1
  423. package/.next/static/chunks/app/api/subagents/[id]/route-ff5f37ea6085322e.js +0 -1
  424. package/.next/static/chunks/app/api/subagents/profiles/route-ff5f37ea6085322e.js +0 -1
  425. package/.next/static/chunks/app/api/subagents/settings/route-ff5f37ea6085322e.js +0 -1
  426. package/.next/static/chunks/app/api/terminal/[id]/events/route-ff5f37ea6085322e.js +0 -1
  427. package/.next/static/chunks/app/api/terminal/[id]/route-ff5f37ea6085322e.js +0 -1
  428. package/.next/static/chunks/app/api/terminal/route-ff5f37ea6085322e.js +0 -1
  429. package/.next/static/chunks/app/api/tools/settings/route-ff5f37ea6085322e.js +0 -1
  430. package/.next/static/chunks/app/api/web-auth/route-ff5f37ea6085322e.js +0 -1
  431. package/.next/static/chunks/app/api/worktrees/route-ff5f37ea6085322e.js +0 -1
  432. package/.next/static/chunks/app/manifest.webmanifest/route-ff5f37ea6085322e.js +0 -1
  433. package/.next/static/chunks/app/page-e2c75ffccae708f8.js +0 -1131
  434. package/.next/static/chunks/next/dist/client/components/builtin/app-error-ff5f37ea6085322e.js +0 -1
  435. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ff5f37ea6085322e.js +0 -1
  436. package/.next/static/chunks/next/dist/client/components/builtin/global-error-7b03c800e367b0e2.js +0 -1
  437. package/.next/static/chunks/next/dist/client/components/builtin/not-found-ff5f37ea6085322e.js +0 -1
  438. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ff5f37ea6085322e.js +0 -1
  439. package/.next/types/app/api/models/default/route.ts +0 -355
  440. /package/.next/static/{SZGRKeK7Rp-GLXlZwXVpN → 2rpFMJiXXP8Ssip42zwjf}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,243,272,552,778,976,1004,1097,1124,1337,1438,1556,1960,2053,2072,2138,2305,2403,2504,2614,2835,2837,3170,3432,3507,3851,3878,3943,3955,4016,4037,4189,4306,4524,4709,4896,5221,5322,5640,5870,5907,6021,6031,6252,6293,6324,6444,6450,6709,6734,6819,6849,6919,6945,6988,7067,7483,7521,7769,7812,7851,8167,8197,8429,8539,8658,8672,8743,8933,9156,9183,9362,9742,9747,9787,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,243,272,552,778,976,1004,1097,1124,1337,1438,1556,1960,2053,2072,2138,2305,2403,2504,2614,2835,2837,3170,3432,3507,3851,3878,3943,3955,4016,4037,4189,4306,4524,4709,4896,5221,5322,5640,5870,5907,6021,6031,6252,6293,6324,6444,6450,6709,6734,6819,6849,6919,6945,6988,7067,7483,7521,7769,7812,7851,8167,8197,8429,8539,8658,8672,8743,8933,9156,9183,9362,9742,9747,9787,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9337],{43683:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,27123,23))}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=43683)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,243,272,552,778,976,1004,1097,1124,1337,1438,1556,1960,2053,2072,2138,2305,2403,2504,2614,2835,2837,3170,3432,3507,3851,3878,3943,3955,4016,4037,4189,4306,4524,4709,4896,5221,5322,5640,5870,5907,6021,6031,6252,6293,6324,6444,6450,6709,6734,6819,6849,6919,6945,6988,7067,7483,7521,7769,7812,7851,8167,8197,8429,8539,8658,8672,8743,8933,9156,9183,9362,9742,9747,9787,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90,243,272,552,778,976,1004,1097,1124,1337,1438,1556,1960,2053,2072,2138,2305,2403,2504,2614,2835,2837,3170,3432,3507,3851,3878,3943,3955,4016,4037,4189,4306,4524,4709,4896,5221,5322,5640,5870,5907,6021,6031,6252,6293,6324,6444,6450,6709,6734,6819,6849,6919,6945,6988,7067,7483,7521,7769,7812,7851,8167,8197,8429,8539,8658,8672,8743,8933,9156,9183,9362,9742,9747,9787,9968],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1,355 +0,0 @@
1
- // File: /private/tmp/pi-web-merge/app/api/models/default/route.ts
2
- import * as entry from '../../../../../../app/api/models/default/route.js'
3
- import type { NextRequest } from 'next/server.js'
4
-
5
- import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
-
7
- type TEntry = typeof import('../../../../../../app/api/models/default/route.js')
8
-
9
- type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
- ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
11
- : T
12
-
13
- // Check that the entry is a valid entry
14
- checkFields<Diff<{
15
- GET?: Function
16
- HEAD?: Function
17
- OPTIONS?: Function
18
- POST?: Function
19
- PUT?: Function
20
- DELETE?: Function
21
- PATCH?: Function
22
- config?: {}
23
- generateStaticParams?: Function
24
-
25
- instant?: InstantConfigForTypeCheckInternal
26
- prefetch?: Prefetch
27
- ensureStatic?: EnsureStatic
28
- unstable_dynamicStaleTime?: number
29
- revalidate?: RevalidateRange<TEntry> | false
30
- dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
31
- dynamicParams?: boolean
32
- fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
33
- /** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
34
- preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
35
- runtime?: 'nodejs' | 'experimental-edge' | 'edge'
36
- maxDuration?: number
37
-
38
- }, TEntry, ''>>()
39
-
40
- type RouteContext = { params: Promise<SegmentParams> }
41
- // Check the prop type of the entry function
42
- if ('GET' in entry) {
43
- checkFields<
44
- Diff<
45
- ParamCheck<Request | NextRequest>,
46
- {
47
- __tag__: 'GET'
48
- __param_position__: 'first'
49
- __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
50
- },
51
- 'GET'
52
- >
53
- >()
54
- checkFields<
55
- Diff<
56
- ParamCheck<RouteContext>,
57
- {
58
- __tag__: 'GET'
59
- __param_position__: 'second'
60
- __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
61
- },
62
- 'GET'
63
- >
64
- >()
65
-
66
- checkFields<
67
- Diff<
68
- {
69
- __tag__: 'GET',
70
- __return_type__: Response | void | never | Promise<Response | void | never>
71
- },
72
- {
73
- __tag__: 'GET',
74
- __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
75
- },
76
- 'GET'
77
- >
78
- >()
79
- }
80
- // Check the prop type of the entry function
81
- if ('HEAD' in entry) {
82
- checkFields<
83
- Diff<
84
- ParamCheck<Request | NextRequest>,
85
- {
86
- __tag__: 'HEAD'
87
- __param_position__: 'first'
88
- __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
89
- },
90
- 'HEAD'
91
- >
92
- >()
93
- checkFields<
94
- Diff<
95
- ParamCheck<RouteContext>,
96
- {
97
- __tag__: 'HEAD'
98
- __param_position__: 'second'
99
- __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
100
- },
101
- 'HEAD'
102
- >
103
- >()
104
-
105
- checkFields<
106
- Diff<
107
- {
108
- __tag__: 'HEAD',
109
- __return_type__: Response | void | never | Promise<Response | void | never>
110
- },
111
- {
112
- __tag__: 'HEAD',
113
- __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
114
- },
115
- 'HEAD'
116
- >
117
- >()
118
- }
119
- // Check the prop type of the entry function
120
- if ('OPTIONS' in entry) {
121
- checkFields<
122
- Diff<
123
- ParamCheck<Request | NextRequest>,
124
- {
125
- __tag__: 'OPTIONS'
126
- __param_position__: 'first'
127
- __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
128
- },
129
- 'OPTIONS'
130
- >
131
- >()
132
- checkFields<
133
- Diff<
134
- ParamCheck<RouteContext>,
135
- {
136
- __tag__: 'OPTIONS'
137
- __param_position__: 'second'
138
- __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
139
- },
140
- 'OPTIONS'
141
- >
142
- >()
143
-
144
- checkFields<
145
- Diff<
146
- {
147
- __tag__: 'OPTIONS',
148
- __return_type__: Response | void | never | Promise<Response | void | never>
149
- },
150
- {
151
- __tag__: 'OPTIONS',
152
- __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
153
- },
154
- 'OPTIONS'
155
- >
156
- >()
157
- }
158
- // Check the prop type of the entry function
159
- if ('POST' in entry) {
160
- checkFields<
161
- Diff<
162
- ParamCheck<Request | NextRequest>,
163
- {
164
- __tag__: 'POST'
165
- __param_position__: 'first'
166
- __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
167
- },
168
- 'POST'
169
- >
170
- >()
171
- checkFields<
172
- Diff<
173
- ParamCheck<RouteContext>,
174
- {
175
- __tag__: 'POST'
176
- __param_position__: 'second'
177
- __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
178
- },
179
- 'POST'
180
- >
181
- >()
182
-
183
- checkFields<
184
- Diff<
185
- {
186
- __tag__: 'POST',
187
- __return_type__: Response | void | never | Promise<Response | void | never>
188
- },
189
- {
190
- __tag__: 'POST',
191
- __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
192
- },
193
- 'POST'
194
- >
195
- >()
196
- }
197
- // Check the prop type of the entry function
198
- if ('PUT' in entry) {
199
- checkFields<
200
- Diff<
201
- ParamCheck<Request | NextRequest>,
202
- {
203
- __tag__: 'PUT'
204
- __param_position__: 'first'
205
- __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
206
- },
207
- 'PUT'
208
- >
209
- >()
210
- checkFields<
211
- Diff<
212
- ParamCheck<RouteContext>,
213
- {
214
- __tag__: 'PUT'
215
- __param_position__: 'second'
216
- __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
217
- },
218
- 'PUT'
219
- >
220
- >()
221
-
222
- checkFields<
223
- Diff<
224
- {
225
- __tag__: 'PUT',
226
- __return_type__: Response | void | never | Promise<Response | void | never>
227
- },
228
- {
229
- __tag__: 'PUT',
230
- __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
231
- },
232
- 'PUT'
233
- >
234
- >()
235
- }
236
- // Check the prop type of the entry function
237
- if ('DELETE' in entry) {
238
- checkFields<
239
- Diff<
240
- ParamCheck<Request | NextRequest>,
241
- {
242
- __tag__: 'DELETE'
243
- __param_position__: 'first'
244
- __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
245
- },
246
- 'DELETE'
247
- >
248
- >()
249
- checkFields<
250
- Diff<
251
- ParamCheck<RouteContext>,
252
- {
253
- __tag__: 'DELETE'
254
- __param_position__: 'second'
255
- __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
256
- },
257
- 'DELETE'
258
- >
259
- >()
260
-
261
- checkFields<
262
- Diff<
263
- {
264
- __tag__: 'DELETE',
265
- __return_type__: Response | void | never | Promise<Response | void | never>
266
- },
267
- {
268
- __tag__: 'DELETE',
269
- __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
270
- },
271
- 'DELETE'
272
- >
273
- >()
274
- }
275
- // Check the prop type of the entry function
276
- if ('PATCH' in entry) {
277
- checkFields<
278
- Diff<
279
- ParamCheck<Request | NextRequest>,
280
- {
281
- __tag__: 'PATCH'
282
- __param_position__: 'first'
283
- __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
284
- },
285
- 'PATCH'
286
- >
287
- >()
288
- checkFields<
289
- Diff<
290
- ParamCheck<RouteContext>,
291
- {
292
- __tag__: 'PATCH'
293
- __param_position__: 'second'
294
- __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
295
- },
296
- 'PATCH'
297
- >
298
- >()
299
-
300
- checkFields<
301
- Diff<
302
- {
303
- __tag__: 'PATCH',
304
- __return_type__: Response | void | never | Promise<Response | void | never>
305
- },
306
- {
307
- __tag__: 'PATCH',
308
- __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
309
- },
310
- 'PATCH'
311
- >
312
- >()
313
- }
314
-
315
- // Check the arguments and return type of the generateStaticParams function
316
- if ('generateStaticParams' in entry) {
317
- checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
318
- checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
319
- }
320
-
321
- export interface PageProps {
322
- params?: Promise<SegmentParams>
323
- searchParams?: Promise<any>
324
- }
325
- export interface LayoutProps {
326
- children?: React.ReactNode
327
-
328
- params?: Promise<SegmentParams>
329
- }
330
-
331
- // =============
332
- // Utility types
333
- type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
334
-
335
- // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
336
- type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
337
- type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
338
-
339
- type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
340
- type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
341
- type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
342
-
343
- type ParamCheck<T> = {
344
- __tag__: string
345
- __param_position__: string
346
- __param_type__: T
347
- }
348
-
349
- function checkFields<_ extends { [k in keyof any]: never }>() {}
350
-
351
- // https://github.com/sindresorhus/type-fest
352
- type Numeric = number | bigint
353
- type Zero = 0 | 0n
354
- type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
355
- type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'