@rexvane/piweb 0.3.20 → 0.3.22

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 (317) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +6 -4
  3. package/.next/build-manifest.json +5 -5
  4. package/.next/next-minimal-server.js.nft.json +1 -1
  5. package/.next/next-server.js.nft.json +1 -1
  6. package/.next/prerender-manifest.json +7 -7
  7. package/.next/react-loadable-manifest.json +12 -12
  8. package/.next/required-server-files.js +18 -2
  9. package/.next/required-server-files.json +18 -2
  10. package/.next/routes-manifest.json +12 -0
  11. package/.next/server/app/_global-error/page.js +2 -2
  12. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  13. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_global-error.html +1 -1
  15. package/.next/server/app/_global-error.meta +8 -0
  16. package/.next/server/app/_global-error.rsc +15 -11
  17. package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -11
  18. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -16
  19. package/.next/server/app/_global-error.segments/_tree.segment.rsc +3 -1
  20. package/.next/server/app/_not-found/page.js +1 -1
  21. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  22. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/_not-found.html +1 -1
  24. package/.next/server/app/_not-found.meta +8 -0
  25. package/.next/server/app/_not-found.rsc +17 -13
  26. package/.next/server/app/_not-found.segments/_full.segment.rsc +17 -13
  27. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +24 -20
  28. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -2
  29. package/.next/server/app/api/agent/[id]/events/route.js +3 -3
  30. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
  31. package/.next/server/app/api/agent/[id]/route.js +1 -1
  32. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
  33. package/.next/server/app/api/agent/[id]/tree/route.js +1 -1
  34. package/.next/server/app/api/agent/[id]/tree/route.js.nft.json +1 -1
  35. package/.next/server/app/api/agent/new/route.js +1 -1
  36. package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
  37. package/.next/server/app/api/config/route.js +1 -1
  38. package/.next/server/app/api/config/route.js.nft.json +1 -1
  39. package/.next/server/app/api/files/route.js +1 -1
  40. package/.next/server/app/api/files/route.js.nft.json +1 -1
  41. package/.next/server/app/api/fs/route.js +1 -1
  42. package/.next/server/app/api/fs/route.js.nft.json +1 -1
  43. package/.next/server/app/api/git/route.js +4 -4
  44. package/.next/server/app/api/git/route.js.nft.json +1 -1
  45. package/.next/server/app/api/github/route.js +5 -0
  46. package/.next/server/app/api/github/route.js.nft.json +1 -0
  47. package/.next/server/app/api/github/route_client-reference-manifest.js +1 -0
  48. package/.next/server/app/api/growth/route.js +1 -1
  49. package/.next/server/app/api/growth/route.js.nft.json +1 -1
  50. package/.next/server/app/api/health/route.js +1 -1
  51. package/.next/server/app/api/health/route.js.nft.json +1 -1
  52. package/.next/server/app/api/models/defaults/route.js +1 -0
  53. package/.next/server/app/api/models/defaults/route.js.nft.json +1 -0
  54. package/.next/server/app/api/models/defaults/route_client-reference-manifest.js +1 -0
  55. package/.next/server/app/api/models/route.js +1 -1
  56. package/.next/server/app/api/models/route.js.nft.json +1 -1
  57. package/.next/server/app/api/pi-settings/route.js +1 -1
  58. package/.next/server/app/api/pi-settings/route.js.nft.json +1 -1
  59. package/.next/server/app/api/plugins/route.js +1 -1
  60. package/.next/server/app/api/plugins/route.js.nft.json +1 -1
  61. package/.next/server/app/api/prompts/route.js +1 -1
  62. package/.next/server/app/api/prompts/route.js.nft.json +1 -1
  63. package/.next/server/app/api/remote/route.js +3 -3
  64. package/.next/server/app/api/remote/route.js.nft.json +1 -1
  65. package/.next/server/app/api/security/route.js +1 -1
  66. package/.next/server/app/api/security/route.js.nft.json +1 -1
  67. package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
  68. package/.next/server/app/api/sessions/[id]/export/route.js.nft.json +1 -1
  69. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  71. package/.next/server/app/api/sessions/import/route.js +2 -2
  72. package/.next/server/app/api/sessions/import/route.js.nft.json +1 -1
  73. package/.next/server/app/api/sessions/route.js +1 -1
  74. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  75. package/.next/server/app/api/skills/route.js +2 -2
  76. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  77. package/.next/server/app/api/update/route.js +2 -2
  78. package/.next/server/app/api/update/route.js.nft.json +1 -1
  79. package/.next/server/app/api/version/route.js +1 -1
  80. package/.next/server/app/api/version/route.js.nft.json +1 -1
  81. package/.next/server/app/api/web-auth/route.js +1 -1
  82. package/.next/server/app/api/web-auth/route.js.nft.json +1 -1
  83. package/.next/server/app/api/workspaces/route.js +1 -1
  84. package/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  85. package/.next/server/app/icon.svg/route.js +1 -1
  86. package/.next/server/app/icon.svg/route.js.nft.json +1 -1
  87. package/.next/server/app/icon.svg.meta +1 -1
  88. package/.next/server/app/index.html +1 -1
  89. package/.next/server/app/index.meta +8 -0
  90. package/.next/server/app/index.rsc +19 -13
  91. package/.next/server/app/index.segments/__PAGE__.segment.rsc +25 -19
  92. package/.next/server/app/index.segments/_full.segment.rsc +19 -13
  93. package/.next/server/app/index.segments/_tree.segment.rsc +3 -2
  94. package/.next/server/app/login/page.js +1 -1
  95. package/.next/server/app/login/page.js.nft.json +1 -1
  96. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  97. package/.next/server/app/login.html +1 -1
  98. package/.next/server/app/login.meta +8 -0
  99. package/.next/server/app/login.rsc +23 -17
  100. package/.next/server/app/login.segments/_full.segment.rsc +23 -17
  101. package/.next/server/app/login.segments/_tree.segment.rsc +4 -2
  102. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +30 -24
  103. package/.next/server/app/page.js +1 -1
  104. package/.next/server/app/page.js.nft.json +1 -1
  105. package/.next/server/app/page_client-reference-manifest.js +1 -1
  106. package/.next/server/app-paths-manifest.json +6 -4
  107. package/.next/server/chunks/229.js +1 -1
  108. package/.next/server/chunks/421.js +1 -0
  109. package/.next/server/chunks/430.js +215 -31
  110. package/.next/server/chunks/496.js +1 -1
  111. package/.next/server/chunks/538.js +1 -1
  112. package/.next/server/chunks/662.js +2 -0
  113. package/.next/server/chunks/686.js +1 -1
  114. package/.next/server/chunks/807.js +1 -1
  115. package/.next/server/chunks/813.js +23 -1
  116. package/.next/server/chunks/920.js +2 -2
  117. package/.next/server/chunks/924.js +1 -1
  118. package/.next/server/chunks/970.js +305 -0
  119. package/.next/server/instrumentation.js +1 -1
  120. package/.next/server/instrumentation.js.nft.json +1 -1
  121. package/.next/server/middleware-build-manifest.js +1 -1
  122. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  123. package/.next/server/middleware.js +185 -23
  124. package/.next/server/middleware.js.nft.json +1 -1
  125. package/.next/server/pages/404.html +1 -1
  126. package/.next/server/pages/500.html +1 -1
  127. package/.next/server/preview-props.json +5 -0
  128. package/.next/server/server-reference-manifest.json +1 -1
  129. package/.next/static/WMazYvD-gbeLsCUfUxvvM/_buildManifest.js +1 -0
  130. package/.next/static/chunks/316-698d10eb465bd8ef.js +1 -0
  131. package/.next/static/chunks/3794-0978865cda773008.js +52 -0
  132. package/.next/static/chunks/4673.4cf66cbdd8364c57.js +1 -0
  133. package/.next/static/chunks/4686-09fcd0028079006c.js +1 -0
  134. package/.next/static/chunks/4778.eddd3a5813f85824.js +1 -0
  135. package/.next/static/chunks/4bd1b696-e199e788e58acf79.js +1 -0
  136. package/.next/static/chunks/{5173.91ddb803785009f8.js → 5173.dfd1cbb795b9a21c.js} +1 -1
  137. package/.next/static/chunks/618.949981da99be7182.js +4 -0
  138. package/.next/static/chunks/7411.67366dc5032a141d.js +1 -0
  139. package/.next/static/chunks/8552.25c39ef4c995eba0.js +1 -0
  140. package/.next/static/chunks/app/_global-error/page-f977af7f858990a2.js +1 -0
  141. package/.next/static/chunks/app/api/agent/[id]/events/route-f977af7f858990a2.js +1 -0
  142. package/.next/static/chunks/app/api/agent/[id]/route-f977af7f858990a2.js +1 -0
  143. package/.next/static/chunks/app/api/agent/[id]/tree/route-f977af7f858990a2.js +1 -0
  144. package/.next/static/chunks/app/api/agent/new/route-f977af7f858990a2.js +1 -0
  145. package/.next/static/chunks/app/api/config/route-f977af7f858990a2.js +1 -0
  146. package/.next/static/chunks/app/api/files/route-f977af7f858990a2.js +1 -0
  147. package/.next/static/chunks/app/api/fs/route-f977af7f858990a2.js +1 -0
  148. package/.next/static/chunks/app/api/git/route-f977af7f858990a2.js +1 -0
  149. package/.next/static/chunks/app/api/github/route-f977af7f858990a2.js +1 -0
  150. package/.next/static/chunks/app/api/growth/route-f977af7f858990a2.js +1 -0
  151. package/.next/static/chunks/app/api/health/route-f977af7f858990a2.js +1 -0
  152. package/.next/static/chunks/app/api/models/defaults/route-f977af7f858990a2.js +1 -0
  153. package/.next/static/chunks/app/api/models/route-f977af7f858990a2.js +1 -0
  154. package/.next/static/chunks/app/api/pi-settings/route-f977af7f858990a2.js +1 -0
  155. package/.next/static/chunks/app/api/plugins/route-f977af7f858990a2.js +1 -0
  156. package/.next/static/chunks/app/api/prompts/route-f977af7f858990a2.js +1 -0
  157. package/.next/static/chunks/app/api/remote/route-f977af7f858990a2.js +1 -0
  158. package/.next/static/chunks/app/api/security/route-f977af7f858990a2.js +1 -0
  159. package/.next/static/chunks/app/api/sessions/[id]/export/route-f977af7f858990a2.js +1 -0
  160. package/.next/static/chunks/app/api/sessions/[id]/route-f977af7f858990a2.js +1 -0
  161. package/.next/static/chunks/app/api/sessions/import/route-f977af7f858990a2.js +1 -0
  162. package/.next/static/chunks/app/api/sessions/route-f977af7f858990a2.js +1 -0
  163. package/.next/static/chunks/app/api/skills/route-f977af7f858990a2.js +1 -0
  164. package/.next/static/chunks/app/api/update/route-f977af7f858990a2.js +1 -0
  165. package/.next/static/chunks/app/api/version/route-f977af7f858990a2.js +1 -0
  166. package/.next/static/chunks/app/api/web-auth/route-f977af7f858990a2.js +1 -0
  167. package/.next/static/chunks/app/api/workspaces/route-f977af7f858990a2.js +1 -0
  168. package/.next/static/chunks/app/page-fc4ed2ff29b6235e.js +1 -0
  169. package/.next/static/chunks/framework-47b723d27f4a4963.js +1 -0
  170. package/.next/static/chunks/main-5403f0764579e5fe.js +5 -0
  171. package/.next/static/chunks/next/dist/client/components/builtin/app-error-f977af7f858990a2.js +1 -0
  172. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-f977af7f858990a2.js +1 -0
  173. package/.next/static/chunks/next/dist/client/components/builtin/not-found-f977af7f858990a2.js +1 -0
  174. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-f977af7f858990a2.js +1 -0
  175. package/.next/static/chunks/webpack-22ebffc20adb44ae.js +1 -0
  176. package/.next/static/css/6671d0d1589fdc0e.css +1 -0
  177. package/.next/static/css/{2959bd6b626b7ffe.css → f15a853af8b5127f.css} +1 -1
  178. package/.next/types/app/api/agent/[id]/events/route.ts +3 -1
  179. package/.next/types/app/api/agent/[id]/route.ts +3 -1
  180. package/.next/types/app/api/agent/[id]/tree/route.ts +3 -1
  181. package/.next/types/app/api/agent/new/route.ts +3 -1
  182. package/.next/types/app/api/config/route.ts +3 -1
  183. package/.next/types/app/api/files/route.ts +3 -1
  184. package/.next/types/app/api/fs/route.ts +3 -1
  185. package/.next/types/app/api/git/route.ts +3 -1
  186. package/.next/types/app/api/github/route.ts +355 -0
  187. package/.next/types/app/api/growth/route.ts +3 -1
  188. package/.next/types/app/api/health/route.ts +3 -1
  189. package/.next/types/app/api/models/defaults/route.ts +355 -0
  190. package/.next/types/app/api/models/route.ts +3 -1
  191. package/.next/types/app/api/pi-settings/route.ts +3 -1
  192. package/.next/types/app/api/plugins/route.ts +3 -1
  193. package/.next/types/app/api/prompts/route.ts +3 -1
  194. package/.next/types/app/api/remote/route.ts +3 -1
  195. package/.next/types/app/api/security/route.ts +3 -1
  196. package/.next/types/app/api/sessions/[id]/export/route.ts +3 -1
  197. package/.next/types/app/api/sessions/[id]/route.ts +3 -1
  198. package/.next/types/app/api/sessions/import/route.ts +3 -1
  199. package/.next/types/app/api/sessions/route.ts +3 -1
  200. package/.next/types/app/api/skills/route.ts +3 -1
  201. package/.next/types/app/api/update/route.ts +3 -1
  202. package/.next/types/app/api/version/route.ts +3 -1
  203. package/.next/types/app/api/web-auth/route.ts +3 -1
  204. package/.next/types/app/api/workspaces/route.ts +3 -1
  205. package/.next/types/app/layout.ts +4 -1
  206. package/.next/types/app/login/page.ts +4 -1
  207. package/.next/types/app/page.ts +4 -1
  208. package/.next/types/cache-life.d.ts +11 -43
  209. package/.next/types/routes.d.ts +3 -1
  210. package/.next/types/validator.ts +76 -2
  211. package/README.md +14 -5
  212. package/next.config.ts +4 -2
  213. package/package.json +2 -2
  214. package/scripts/release.mjs +1 -1
  215. package/src/app/api/agent/[id]/events/route.ts +42 -13
  216. package/src/app/api/files/route.ts +5 -2
  217. package/src/app/api/github/route.ts +26 -0
  218. package/src/app/api/models/defaults/route.ts +18 -0
  219. package/src/app/api/models/route.ts +24 -1
  220. package/src/app/api/update/route.ts +18 -2
  221. package/src/app/globals.css +275 -0
  222. package/src/components/AppShell.tsx +89 -33
  223. package/src/components/ChatInput.tsx +245 -63
  224. package/src/components/ChatWindow.tsx +123 -108
  225. package/src/components/ContextMeter.tsx +204 -123
  226. package/src/components/DrawerPanel.tsx +19 -26
  227. package/src/components/ExtensionUI.tsx +8 -2
  228. package/src/components/GitPanel.tsx +110 -40
  229. package/src/components/MarkdownBlock.tsx +333 -37
  230. package/src/components/ProjectPanel.tsx +55 -30
  231. package/src/components/PromptPanel.tsx +2 -4
  232. package/src/components/ProviderSetupModal.module.css +20 -0
  233. package/src/components/ProviderSetupModal.tsx +134 -29
  234. package/src/components/SettingsPanel.tsx +365 -80
  235. package/src/components/TrajectoryView.tsx +4 -6
  236. package/src/components/chat/chat-scroll.ts +18 -0
  237. package/src/components/composer/ComposerImages.tsx +306 -0
  238. package/src/components/update/CopyCommand.tsx +34 -0
  239. package/src/components/update/UpdateNotice.tsx +130 -0
  240. package/src/components/update/update-store.ts +155 -0
  241. package/src/hooks/useGrowth.ts +3 -0
  242. package/src/hooks/usePiWeb.ts +54 -27
  243. package/src/hooks/useWorkspaceFiles.ts +93 -0
  244. package/src/i18n.tsx +182 -6
  245. package/src/instrumentation-node.ts +3 -0
  246. package/src/lib/agent-manager.ts +193 -119
  247. package/src/lib/chat/event-stream.ts +113 -0
  248. package/src/lib/chat/stream-settings.ts +192 -0
  249. package/src/lib/files-service.ts +100 -1
  250. package/src/lib/format.ts +56 -0
  251. package/src/lib/git-service.ts +45 -13
  252. package/src/lib/github-identity.ts +245 -0
  253. package/src/lib/growth-service.ts +6 -2
  254. package/src/lib/hero-model-memory.ts +28 -0
  255. package/src/lib/model-defaults.ts +105 -0
  256. package/src/lib/model-draft.ts +257 -9
  257. package/src/lib/model-endpoint.ts +23 -0
  258. package/src/lib/model-files.ts +33 -0
  259. package/src/lib/models-service.ts +240 -78
  260. package/src/lib/pi.ts +27 -2
  261. package/src/lib/process-format.ts +3 -2
  262. package/src/lib/session/metrics.ts +31 -0
  263. package/src/lib/thinking-level.ts +39 -0
  264. package/src/lib/trajectory.ts +17 -3
  265. package/src/lib/types.ts +19 -1
  266. package/src/lib/update/startup-check.ts +117 -0
  267. package/src/lib/update-service.ts +23 -3
  268. package/src/lib/workspace-index.ts +270 -0
  269. package/.next/server/chunks/131.js +0 -1
  270. package/.next/server/chunks/243.js +0 -1
  271. package/.next/server/chunks/741.js +0 -165
  272. package/.next/static/_Y3Lq0lI5RJ1tFSOnDi0L/_buildManifest.js +0 -1
  273. package/.next/static/chunks/316-5ea443ee6b512aa9.js +0 -1
  274. package/.next/static/chunks/3794-3679f1c05160977c.js +0 -52
  275. package/.next/static/chunks/4673.8a5a9e6855350e34.js +0 -1
  276. package/.next/static/chunks/4686-b1e9fa876d0ea671.js +0 -1
  277. package/.next/static/chunks/4778.e4c9ed093a413bc4.js +0 -1
  278. package/.next/static/chunks/4bd1b696-93bf506b236d6248.js +0 -1
  279. package/.next/static/chunks/618.ee5d5bf1c647e483.js +0 -4
  280. package/.next/static/chunks/839.d3fe337a9117c325.js +0 -1
  281. package/.next/static/chunks/8552.6bfe3e101250b20f.js +0 -1
  282. package/.next/static/chunks/app/_global-error/page-b179d9f7f6f2daf9.js +0 -1
  283. package/.next/static/chunks/app/api/agent/[id]/events/route-b179d9f7f6f2daf9.js +0 -1
  284. package/.next/static/chunks/app/api/agent/[id]/route-b179d9f7f6f2daf9.js +0 -1
  285. package/.next/static/chunks/app/api/agent/[id]/tree/route-b179d9f7f6f2daf9.js +0 -1
  286. package/.next/static/chunks/app/api/agent/new/route-b179d9f7f6f2daf9.js +0 -1
  287. package/.next/static/chunks/app/api/config/route-b179d9f7f6f2daf9.js +0 -1
  288. package/.next/static/chunks/app/api/files/route-b179d9f7f6f2daf9.js +0 -1
  289. package/.next/static/chunks/app/api/fs/route-b179d9f7f6f2daf9.js +0 -1
  290. package/.next/static/chunks/app/api/git/route-b179d9f7f6f2daf9.js +0 -1
  291. package/.next/static/chunks/app/api/growth/route-b179d9f7f6f2daf9.js +0 -1
  292. package/.next/static/chunks/app/api/health/route-b179d9f7f6f2daf9.js +0 -1
  293. package/.next/static/chunks/app/api/models/route-b179d9f7f6f2daf9.js +0 -1
  294. package/.next/static/chunks/app/api/pi-settings/route-b179d9f7f6f2daf9.js +0 -1
  295. package/.next/static/chunks/app/api/plugins/route-b179d9f7f6f2daf9.js +0 -1
  296. package/.next/static/chunks/app/api/prompts/route-b179d9f7f6f2daf9.js +0 -1
  297. package/.next/static/chunks/app/api/remote/route-b179d9f7f6f2daf9.js +0 -1
  298. package/.next/static/chunks/app/api/security/route-b179d9f7f6f2daf9.js +0 -1
  299. package/.next/static/chunks/app/api/sessions/[id]/export/route-b179d9f7f6f2daf9.js +0 -1
  300. package/.next/static/chunks/app/api/sessions/[id]/route-b179d9f7f6f2daf9.js +0 -1
  301. package/.next/static/chunks/app/api/sessions/import/route-b179d9f7f6f2daf9.js +0 -1
  302. package/.next/static/chunks/app/api/sessions/route-b179d9f7f6f2daf9.js +0 -1
  303. package/.next/static/chunks/app/api/skills/route-b179d9f7f6f2daf9.js +0 -1
  304. package/.next/static/chunks/app/api/update/route-b179d9f7f6f2daf9.js +0 -1
  305. package/.next/static/chunks/app/api/version/route-b179d9f7f6f2daf9.js +0 -1
  306. package/.next/static/chunks/app/api/web-auth/route-b179d9f7f6f2daf9.js +0 -1
  307. package/.next/static/chunks/app/api/workspaces/route-b179d9f7f6f2daf9.js +0 -1
  308. package/.next/static/chunks/app/page-2e425ef83fba0782.js +0 -1
  309. package/.next/static/chunks/framework-c4e651fe89edfa91.js +0 -1
  310. package/.next/static/chunks/main-6159b22a8cb0b7c5.js +0 -5
  311. package/.next/static/chunks/next/dist/client/components/builtin/app-error-b179d9f7f6f2daf9.js +0 -1
  312. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-b179d9f7f6f2daf9.js +0 -1
  313. package/.next/static/chunks/next/dist/client/components/builtin/not-found-b179d9f7f6f2daf9.js +0 -1
  314. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-b179d9f7f6f2daf9.js +0 -1
  315. package/.next/static/chunks/webpack-3614a8337843456b.js +0 -1
  316. package/.next/static/css/7391c42e1ae617f9.css +0 -1
  317. /package/.next/static/{_Y3Lq0lI5RJ1tFSOnDi0L → WMazYvD-gbeLsCUfUxvvM}/_ssgManifest.js +0 -0
@@ -0,0 +1,355 @@
1
+ // File: /home/runner/work/PiWeb/PiWeb/src/app/api/models/defaults/route.ts
2
+ import * as entry from '../../../../../../src/app/api/models/defaults/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('../../../../../../src/app/api/models/defaults/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__'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/models/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/models/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/pi-settings/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/pi-settings/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/plugins/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/plugins/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/prompts/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/prompts/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/remote/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/remote/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/security/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/security/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../../../src/app/api/sessions/[id]/export/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../../../src/app/api/sessions/[id]/export/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../../src/app/api/sessions/[id]/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../../src/app/api/sessions/[id]/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../../src/app/api/sessions/import/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../../src/app/api/sessions/import/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/sessions/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/sessions/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/skills/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/skills/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/update/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/update/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/version/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/version/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/web-auth/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/web-auth/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
@@ -2,7 +2,7 @@
2
2
  import * as entry from '../../../../../src/app/api/workspaces/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
- import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch, EnsureStatic } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
7
  type TEntry = typeof import('../../../../../src/app/api/workspaces/route.js')
8
8
 
@@ -21,8 +21,10 @@ checkFields<Diff<{
21
21
  PATCH?: Function
22
22
  config?: {}
23
23
  generateStaticParams?: Function
24
+
24
25
  instant?: InstantConfigForTypeCheckInternal
25
26
  prefetch?: Prefetch
27
+ ensureStatic?: EnsureStatic
26
28
  unstable_dynamicStaleTime?: number
27
29
  revalidate?: RevalidateRange<TEntry> | false
28
30
  dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'