flujo-ai 3.12.0 → 3.16.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 (408) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +140 -105
  3. package/.next/app-path-routes-manifest.json +19 -14
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +15 -15
  6. package/.next/routes-manifest.json +20 -1
  7. package/.next/server/app/_not-found/page.js +2 -2
  8. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  9. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/_not-found.html +1 -1
  11. package/.next/server/app/_not-found.rsc +1 -1
  12. package/.next/server/app/api/backup/route.js +1 -1
  13. package/.next/server/app/api/backup/route.js.nft.json +1 -1
  14. package/.next/server/app/api/backup/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/browse/route.js +1 -1
  16. package/.next/server/app/api/browse/route.js.nft.json +1 -1
  17. package/.next/server/app/api/browse/route_client-reference-manifest.js +1 -1
  18. package/.next/server/app/api/cwd/route.js +1 -1
  19. package/.next/server/app/api/cwd/route.js.nft.json +1 -1
  20. package/.next/server/app/api/cwd/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/encryption/secure/route.js +1 -1
  22. package/.next/server/app/api/encryption/secure/route.js.nft.json +1 -1
  23. package/.next/server/app/api/encryption/secure/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/env/route.js +1 -1
  25. package/.next/server/app/api/env/route.js.nft.json +1 -1
  26. package/.next/server/app/api/env/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/flow/[id]/route.js +1 -1
  28. package/.next/server/app/api/flow/[id]/route.js.nft.json +1 -1
  29. package/.next/server/app/api/flow/[id]/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/flow/compile/route.js +1 -0
  31. package/.next/server/app/api/flow/compile/route.js.nft.json +1 -0
  32. package/.next/server/app/api/flow/compile/route_client-reference-manifest.js +1 -0
  33. package/.next/server/app/api/flow/generate/route.js +17 -0
  34. package/.next/server/app/api/flow/generate/route.js.nft.json +1 -0
  35. package/.next/server/app/api/flow/generate/route_client-reference-manifest.js +1 -0
  36. package/.next/server/app/api/flow/prompt-renderer/route.js +1 -1
  37. package/.next/server/app/api/flow/prompt-renderer/route.js.nft.json +1 -1
  38. package/.next/server/app/api/flow/prompt-renderer/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/flow/route.js +1 -1
  40. package/.next/server/app/api/flow/route.js.nft.json +1 -1
  41. package/.next/server/app/api/flow/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/git/route.js +2 -2
  43. package/.next/server/app/api/git/route.js.nft.json +1 -1
  44. package/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/init/route.js +1 -1
  46. package/.next/server/app/api/init/route.js.nft.json +1 -1
  47. package/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  48. package/.next/server/app/api/local-models/capability/route.js +1 -0
  49. package/.next/server/app/api/local-models/capability/route.js.nft.json +1 -0
  50. package/.next/server/app/api/local-models/capability/route_client-reference-manifest.js +1 -0
  51. package/.next/server/app/api/local-models/pull/route.js +1 -0
  52. package/.next/server/app/api/local-models/pull/route.js.nft.json +1 -0
  53. package/.next/server/app/api/local-models/pull/route_client-reference-manifest.js +1 -0
  54. package/.next/server/app/api/local-models/suggest/route.js +2 -0
  55. package/.next/server/app/api/local-models/suggest/route.js.nft.json +1 -0
  56. package/.next/server/app/api/local-models/suggest/route_client-reference-manifest.js +1 -0
  57. package/.next/server/app/api/mcp/cancel/route.js +1 -1
  58. package/.next/server/app/api/mcp/cancel/route.js.nft.json +1 -1
  59. package/.next/server/app/api/mcp/cancel/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/mcp/servers/[name]/prompts/get/route.js +1 -1
  61. package/.next/server/app/api/mcp/servers/[name]/prompts/get/route.js.nft.json +1 -1
  62. package/.next/server/app/api/mcp/servers/[name]/prompts/get/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/mcp/servers/[name]/prompts/route.js +1 -1
  64. package/.next/server/app/api/mcp/servers/[name]/prompts/route.js.nft.json +1 -1
  65. package/.next/server/app/api/mcp/servers/[name]/prompts/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/mcp/servers/[name]/resources/read/route.js +1 -1
  67. package/.next/server/app/api/mcp/servers/[name]/resources/read/route.js.nft.json +1 -1
  68. package/.next/server/app/api/mcp/servers/[name]/resources/read/route_client-reference-manifest.js +1 -1
  69. package/.next/server/app/api/mcp/servers/[name]/resources/route.js +1 -1
  70. package/.next/server/app/api/mcp/servers/[name]/resources/route.js.nft.json +1 -1
  71. package/.next/server/app/api/mcp/servers/[name]/resources/route_client-reference-manifest.js +1 -1
  72. package/.next/server/app/api/mcp/servers/[name]/route.js +1 -1
  73. package/.next/server/app/api/mcp/servers/[name]/route.js.nft.json +1 -1
  74. package/.next/server/app/api/mcp/servers/[name]/route_client-reference-manifest.js +1 -1
  75. package/.next/server/app/api/mcp/servers/[name]/status/route.js +1 -1
  76. package/.next/server/app/api/mcp/servers/[name]/status/route.js.nft.json +1 -1
  77. package/.next/server/app/api/mcp/servers/[name]/status/route_client-reference-manifest.js +1 -1
  78. package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route.js +1 -1
  79. package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route.js.nft.json +1 -1
  80. package/.next/server/app/api/mcp/servers/[name]/tools/[toolName]/route_client-reference-manifest.js +1 -1
  81. package/.next/server/app/api/mcp/servers/[name]/tools/route.js +1 -1
  82. package/.next/server/app/api/mcp/servers/[name]/tools/route.js.nft.json +1 -1
  83. package/.next/server/app/api/mcp/servers/[name]/tools/route_client-reference-manifest.js +1 -1
  84. package/.next/server/app/api/mcp/servers/route.js +1 -1
  85. package/.next/server/app/api/mcp/servers/route.js.nft.json +1 -1
  86. package/.next/server/app/api/mcp/servers/route_client-reference-manifest.js +1 -1
  87. package/.next/server/app/api/mcp/test-connection/route.js +1 -1
  88. package/.next/server/app/api/mcp/test-connection/route.js.nft.json +1 -1
  89. package/.next/server/app/api/mcp/test-connection/route_client-reference-manifest.js +1 -1
  90. package/.next/server/app/api/mcp/test-connection/stream/route.js +1 -1
  91. package/.next/server/app/api/mcp/test-connection/stream/route.js.nft.json +1 -1
  92. package/.next/server/app/api/mcp/test-connection/stream/route_client-reference-manifest.js +1 -1
  93. package/.next/server/app/api/mcp-registry/route.js +1 -1
  94. package/.next/server/app/api/mcp-registry/route.js.nft.json +1 -1
  95. package/.next/server/app/api/mcp-registry/route_client-reference-manifest.js +1 -1
  96. package/.next/server/app/api/mcp-registry/spotlight/route.js +1 -1
  97. package/.next/server/app/api/mcp-registry/spotlight/route.js.nft.json +1 -1
  98. package/.next/server/app/api/mcp-registry/spotlight/route_client-reference-manifest.js +1 -1
  99. package/.next/server/app/api/model/[id]/route.js +1 -1
  100. package/.next/server/app/api/model/[id]/route.js.nft.json +1 -1
  101. package/.next/server/app/api/model/[id]/route_client-reference-manifest.js +1 -1
  102. package/.next/server/app/api/model/provider/route.js +1 -1
  103. package/.next/server/app/api/model/provider/route.js.nft.json +1 -1
  104. package/.next/server/app/api/model/provider/route_client-reference-manifest.js +1 -1
  105. package/.next/server/app/api/model/route.js +1 -1
  106. package/.next/server/app/api/model/route.js.nft.json +1 -1
  107. package/.next/server/app/api/model/route_client-reference-manifest.js +1 -1
  108. package/.next/server/app/api/model/test/route.js +1 -1
  109. package/.next/server/app/api/model/test/route.js.nft.json +1 -1
  110. package/.next/server/app/api/model/test/route_client-reference-manifest.js +1 -1
  111. package/.next/server/app/api/oauth/callback/route.js +1 -1
  112. package/.next/server/app/api/oauth/callback/route.js.nft.json +1 -1
  113. package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
  114. package/.next/server/app/api/oauth/initiate/route.js +1 -1
  115. package/.next/server/app/api/oauth/initiate/route.js.nft.json +1 -1
  116. package/.next/server/app/api/oauth/initiate/route_client-reference-manifest.js +1 -1
  117. package/.next/server/app/api/oauth/reset/route.js +1 -1
  118. package/.next/server/app/api/oauth/reset/route.js.nft.json +1 -1
  119. package/.next/server/app/api/oauth/reset/route_client-reference-manifest.js +1 -1
  120. package/.next/server/app/api/planned-executions/[id]/route.js +2 -1
  121. package/.next/server/app/api/planned-executions/[id]/route.js.nft.json +1 -1
  122. package/.next/server/app/api/planned-executions/[id]/route_client-reference-manifest.js +1 -1
  123. package/.next/server/app/api/planned-executions/[id]/run/route.js +2 -1
  124. package/.next/server/app/api/planned-executions/[id]/run/route.js.nft.json +1 -1
  125. package/.next/server/app/api/planned-executions/[id]/run/route_client-reference-manifest.js +1 -1
  126. package/.next/server/app/api/planned-executions/[id]/runs/route.js +2 -1
  127. package/.next/server/app/api/planned-executions/[id]/runs/route.js.nft.json +1 -1
  128. package/.next/server/app/api/planned-executions/[id]/runs/route_client-reference-manifest.js +1 -1
  129. package/.next/server/app/api/planned-executions/preview-schedule/route.js +1 -1
  130. package/.next/server/app/api/planned-executions/preview-schedule/route.js.nft.json +1 -1
  131. package/.next/server/app/api/planned-executions/preview-schedule/route_client-reference-manifest.js +1 -1
  132. package/.next/server/app/api/planned-executions/route.js +1 -1
  133. package/.next/server/app/api/planned-executions/route.js.nft.json +1 -1
  134. package/.next/server/app/api/planned-executions/route_client-reference-manifest.js +1 -1
  135. package/.next/server/app/api/restore/route.js +1 -1
  136. package/.next/server/app/api/restore/route.js.nft.json +1 -1
  137. package/.next/server/app/api/restore/route_client-reference-manifest.js +1 -1
  138. package/.next/server/app/api/storage/route.js +1 -1
  139. package/.next/server/app/api/storage/route.js.nft.json +1 -1
  140. package/.next/server/app/api/storage/route_client-reference-manifest.js +1 -1
  141. package/.next/server/app/api/update/route.js +1 -1
  142. package/.next/server/app/api/update/route.js.nft.json +1 -1
  143. package/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
  144. package/.next/server/app/api/webhooks/[id]/route.js +1 -1
  145. package/.next/server/app/api/webhooks/[id]/route.js.nft.json +1 -1
  146. package/.next/server/app/api/webhooks/[id]/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/chat/page.js +1 -1
  148. package/.next/server/app/chat/page.js.nft.json +1 -1
  149. package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
  150. package/.next/server/app/chat.html +1 -1
  151. package/.next/server/app/chat.rsc +2 -2
  152. package/.next/server/app/docs/page.js +32 -2
  153. package/.next/server/app/docs/page.js.nft.json +1 -1
  154. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  155. package/.next/server/app/docs.html +1 -1
  156. package/.next/server/app/docs.rsc +2 -2
  157. package/.next/server/app/executions/page.js +3 -3
  158. package/.next/server/app/executions/page.js.nft.json +1 -1
  159. package/.next/server/app/executions/page_client-reference-manifest.js +1 -1
  160. package/.next/server/app/executions.html +1 -1
  161. package/.next/server/app/executions.rsc +2 -2
  162. package/.next/server/app/flows/page.js +10 -10
  163. package/.next/server/app/flows/page.js.nft.json +1 -1
  164. package/.next/server/app/flows/page_client-reference-manifest.js +1 -1
  165. package/.next/server/app/flows.html +1 -1
  166. package/.next/server/app/flows.rsc +2 -2
  167. package/.next/server/app/index.html +1 -1
  168. package/.next/server/app/index.rsc +1 -1
  169. package/.next/server/app/mcp/page.js +6 -6
  170. package/.next/server/app/mcp/page.js.nft.json +1 -1
  171. package/.next/server/app/mcp/page_client-reference-manifest.js +1 -1
  172. package/.next/server/app/mcp-flows/route.js +5 -1
  173. package/.next/server/app/mcp-flows/route.js.nft.json +1 -1
  174. package/.next/server/app/mcp-flows/route_client-reference-manifest.js +1 -1
  175. package/.next/server/app/mcp-proxy/[server]/route.js +1 -1
  176. package/.next/server/app/mcp-proxy/[server]/route.js.nft.json +1 -1
  177. package/.next/server/app/mcp-proxy/[server]/route_client-reference-manifest.js +1 -1
  178. package/.next/server/app/mcp.html +1 -1
  179. package/.next/server/app/mcp.rsc +2 -2
  180. package/.next/server/app/models/page.js +2 -2
  181. package/.next/server/app/models/page.js.nft.json +1 -1
  182. package/.next/server/app/models/page_client-reference-manifest.js +1 -1
  183. package/.next/server/app/page.js +2 -2
  184. package/.next/server/app/page.js.nft.json +1 -1
  185. package/.next/server/app/page_client-reference-manifest.js +1 -1
  186. package/.next/server/app/settings/page.js +1 -1
  187. package/.next/server/app/settings/page.js.nft.json +1 -1
  188. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  189. package/.next/server/app/settings.html +1 -1
  190. package/.next/server/app/settings.rsc +2 -2
  191. package/.next/server/app/v1/chat/completions/route.js +1 -1
  192. package/.next/server/app/v1/chat/completions/route.js.nft.json +1 -1
  193. package/.next/server/app/v1/chat/completions/route_client-reference-manifest.js +1 -1
  194. package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route.js +1 -1
  195. package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route.js.nft.json +1 -1
  196. package/.next/server/app/v1/chat/conversations/[conversationId]/breakpoints/route_client-reference-manifest.js +1 -1
  197. package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route.js +1 -1
  198. package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route.js.nft.json +1 -1
  199. package/.next/server/app/v1/chat/conversations/[conversationId]/cancel/route_client-reference-manifest.js +1 -1
  200. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route.js +1 -1
  201. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route.js.nft.json +1 -1
  202. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/continue/route_client-reference-manifest.js +1 -1
  203. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route.js +1 -1
  204. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route.js.nft.json +1 -1
  205. package/.next/server/app/v1/chat/conversations/[conversationId]/debug/step/route_client-reference-manifest.js +1 -1
  206. package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route.js +1 -1
  207. package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route.js.nft.json +1 -1
  208. package/.next/server/app/v1/chat/conversations/[conversationId]/edit-state/route_client-reference-manifest.js +1 -1
  209. package/.next/server/app/v1/chat/conversations/[conversationId]/events/route.js +1 -1
  210. package/.next/server/app/v1/chat/conversations/[conversationId]/events/route.js.nft.json +1 -1
  211. package/.next/server/app/v1/chat/conversations/[conversationId]/events/route_client-reference-manifest.js +1 -1
  212. package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route.js +1 -1
  213. package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route.js.nft.json +1 -1
  214. package/.next/server/app/v1/chat/conversations/[conversationId]/respond/route_client-reference-manifest.js +1 -1
  215. package/.next/server/app/v1/chat/conversations/[conversationId]/route.js +1 -1
  216. package/.next/server/app/v1/chat/conversations/[conversationId]/route.js.nft.json +1 -1
  217. package/.next/server/app/v1/chat/conversations/[conversationId]/route_client-reference-manifest.js +1 -1
  218. package/.next/server/app/v1/chat/conversations/route.js +1 -1
  219. package/.next/server/app/v1/chat/conversations/route.js.nft.json +1 -1
  220. package/.next/server/app/v1/chat/conversations/route_client-reference-manifest.js +1 -1
  221. package/.next/server/app/v1/models/route.js +1 -1
  222. package/.next/server/app/v1/models/route.js.nft.json +1 -1
  223. package/.next/server/app/v1/models/route_client-reference-manifest.js +1 -1
  224. package/.next/server/app-paths-manifest.json +19 -14
  225. package/.next/server/chunks/1403.js +1 -1
  226. package/.next/server/chunks/1690.js +1 -0
  227. package/.next/server/chunks/1877.js +31 -0
  228. package/.next/server/chunks/2776.js +1 -1
  229. package/.next/server/chunks/2859.js +7 -0
  230. package/.next/server/chunks/3243.js +1 -0
  231. package/.next/server/chunks/3304.js +1 -0
  232. package/.next/server/chunks/3984.js +4 -4
  233. package/.next/server/chunks/4681.js +1 -0
  234. package/.next/server/chunks/5504.js +1 -1
  235. package/.next/server/chunks/{1331.js → 5873.js} +3 -3
  236. package/.next/server/chunks/5935.js +2 -0
  237. package/.next/server/chunks/6195.js +37 -0
  238. package/.next/server/chunks/6523.js +1 -0
  239. package/.next/server/chunks/6936.js +6 -6
  240. package/.next/server/chunks/701.js +1 -1
  241. package/.next/server/chunks/7214.js +2 -2
  242. package/.next/server/chunks/{5389.js → 7362.js} +13 -13
  243. package/.next/server/chunks/7635.js +6 -0
  244. package/.next/server/chunks/{2287.js → 8367.js} +2 -2
  245. package/.next/server/chunks/{2253.js → 8572.js} +1 -1
  246. package/.next/server/chunks/8739.js +1 -1
  247. package/.next/server/chunks/8994.js +2 -0
  248. package/.next/server/chunks/9188.js +1 -1
  249. package/.next/server/chunks/9509.js +2 -2
  250. package/.next/server/chunks/9794.js +1 -0
  251. package/.next/server/chunks/9957.js +1 -0
  252. package/.next/server/functions-config-manifest.json +3 -0
  253. package/.next/server/instrumentation.js +1 -1
  254. package/.next/server/instrumentation.js.nft.json +1 -1
  255. package/.next/server/pages/404.html +1 -1
  256. package/.next/server/pages/500.html +1 -1
  257. package/.next/server/pages-manifest.json +1 -1
  258. package/.next/server/server-reference-manifest.js +1 -1
  259. package/.next/server/server-reference-manifest.json +1 -1
  260. package/.next/static/chunks/2403-5c26e0abd76095b1.js +1 -0
  261. package/.next/static/chunks/510-e39ad4e1fae6dd1f.js +1 -0
  262. package/.next/static/chunks/8862-1170dad1d6f3cd39.js +1 -0
  263. package/.next/static/chunks/9554-cb5bd72cb40e8dbe.js +1 -0
  264. package/.next/static/chunks/app/api/backup/route-7248529e02c31012.js +1 -0
  265. package/.next/static/chunks/app/api/browse/route-7248529e02c31012.js +1 -0
  266. package/.next/static/chunks/app/api/cwd/route-7248529e02c31012.js +1 -0
  267. package/.next/static/chunks/app/api/encryption/secure/route-7248529e02c31012.js +1 -0
  268. package/.next/static/chunks/app/api/env/route-7248529e02c31012.js +1 -0
  269. package/.next/static/chunks/app/api/flow/[id]/route-7248529e02c31012.js +1 -0
  270. package/.next/static/chunks/app/api/flow/compile/route-7248529e02c31012.js +1 -0
  271. package/.next/static/chunks/app/api/flow/generate/route-7248529e02c31012.js +1 -0
  272. package/.next/static/chunks/app/api/flow/prompt-renderer/route-7248529e02c31012.js +1 -0
  273. package/.next/static/chunks/app/api/flow/route-7248529e02c31012.js +1 -0
  274. package/.next/static/chunks/app/api/git/route-7248529e02c31012.js +1 -0
  275. package/.next/static/chunks/app/api/init/route-7248529e02c31012.js +1 -0
  276. package/.next/static/chunks/app/api/local-models/capability/route-7248529e02c31012.js +1 -0
  277. package/.next/static/chunks/app/api/local-models/pull/route-7248529e02c31012.js +1 -0
  278. package/.next/static/chunks/app/api/local-models/suggest/route-7248529e02c31012.js +1 -0
  279. package/.next/static/chunks/app/api/mcp/cancel/route-7248529e02c31012.js +1 -0
  280. package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/get/route-7248529e02c31012.js +1 -0
  281. package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/route-7248529e02c31012.js +1 -0
  282. package/.next/static/chunks/app/api/mcp/servers/[name]/resources/read/route-7248529e02c31012.js +1 -0
  283. package/.next/static/chunks/app/api/mcp/servers/[name]/resources/route-7248529e02c31012.js +1 -0
  284. package/.next/static/chunks/app/api/mcp/servers/[name]/route-7248529e02c31012.js +1 -0
  285. package/.next/static/chunks/app/api/mcp/servers/[name]/status/route-7248529e02c31012.js +1 -0
  286. package/.next/static/chunks/app/api/mcp/servers/[name]/tools/[toolName]/route-7248529e02c31012.js +1 -0
  287. package/.next/static/chunks/app/api/mcp/servers/[name]/tools/route-7248529e02c31012.js +1 -0
  288. package/.next/static/chunks/app/api/mcp/servers/route-7248529e02c31012.js +1 -0
  289. package/.next/static/chunks/app/api/mcp/test-connection/route-7248529e02c31012.js +1 -0
  290. package/.next/static/chunks/app/api/mcp/test-connection/stream/route-7248529e02c31012.js +1 -0
  291. package/.next/static/chunks/app/api/mcp-registry/route-7248529e02c31012.js +1 -0
  292. package/.next/static/chunks/app/api/mcp-registry/spotlight/route-7248529e02c31012.js +1 -0
  293. package/.next/static/chunks/app/api/model/[id]/route-7248529e02c31012.js +1 -0
  294. package/.next/static/chunks/app/api/model/provider/route-7248529e02c31012.js +1 -0
  295. package/.next/static/chunks/app/api/model/route-7248529e02c31012.js +1 -0
  296. package/.next/static/chunks/app/api/model/test/route-7248529e02c31012.js +1 -0
  297. package/.next/static/chunks/app/api/oauth/callback/route-7248529e02c31012.js +1 -0
  298. package/.next/static/chunks/app/api/oauth/initiate/route-7248529e02c31012.js +1 -0
  299. package/.next/static/chunks/app/api/oauth/reset/route-7248529e02c31012.js +1 -0
  300. package/.next/static/chunks/app/api/planned-executions/[id]/route-7248529e02c31012.js +1 -0
  301. package/.next/static/chunks/app/api/planned-executions/[id]/run/route-7248529e02c31012.js +1 -0
  302. package/.next/static/chunks/app/api/planned-executions/[id]/runs/route-7248529e02c31012.js +1 -0
  303. package/.next/static/chunks/app/api/planned-executions/preview-schedule/route-7248529e02c31012.js +1 -0
  304. package/.next/static/chunks/app/api/planned-executions/route-7248529e02c31012.js +1 -0
  305. package/.next/static/chunks/app/api/restore/route-7248529e02c31012.js +1 -0
  306. package/.next/static/chunks/app/api/storage/route-7248529e02c31012.js +1 -0
  307. package/.next/static/chunks/app/api/update/route-7248529e02c31012.js +1 -0
  308. package/.next/static/chunks/app/api/webhooks/[id]/route-7248529e02c31012.js +1 -0
  309. package/.next/static/chunks/app/chat/{page-5c838e3ce9d7a27d.js → page-c759cf382bcabd77.js} +1 -1
  310. package/.next/static/chunks/app/docs/page-1d349e2d82f7b104.js +1 -0
  311. package/.next/static/chunks/app/executions/page-4155f9f682ee6f84.js +1 -0
  312. package/.next/static/chunks/app/flows/page-375150edff9134a3.js +1 -0
  313. package/.next/static/chunks/app/mcp/page-5234695929980171.js +1 -0
  314. package/.next/static/chunks/app/mcp-flows/route-7248529e02c31012.js +1 -0
  315. package/.next/static/chunks/app/mcp-proxy/[server]/route-7248529e02c31012.js +1 -0
  316. package/.next/static/chunks/app/settings/{page-199cff457723ee57.js → page-9a2bfb8d5bdba29e.js} +1 -1
  317. package/.next/static/chunks/app/v1/chat/completions/route-7248529e02c31012.js +1 -0
  318. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/breakpoints/route-7248529e02c31012.js +1 -0
  319. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/cancel/route-7248529e02c31012.js +1 -0
  320. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/continue/route-7248529e02c31012.js +1 -0
  321. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/step/route-7248529e02c31012.js +1 -0
  322. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/edit-state/route-7248529e02c31012.js +1 -0
  323. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/events/route-7248529e02c31012.js +1 -0
  324. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/respond/route-7248529e02c31012.js +1 -0
  325. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/route-7248529e02c31012.js +1 -0
  326. package/.next/static/chunks/app/v1/chat/conversations/route-7248529e02c31012.js +1 -0
  327. package/.next/static/chunks/app/v1/models/route-7248529e02c31012.js +1 -0
  328. package/.next/static/z7fsG7kblb_yxkUhOxn-G/_buildManifest.js +1 -0
  329. package/.next/trace +7 -7
  330. package/.next/types/app/api/flow/compile/route.ts +347 -0
  331. package/.next/types/app/api/flow/generate/route.ts +347 -0
  332. package/.next/types/app/api/local-models/capability/route.ts +347 -0
  333. package/.next/types/app/api/local-models/pull/route.ts +347 -0
  334. package/.next/types/app/api/local-models/suggest/route.ts +347 -0
  335. package/.next/types/routes.d.ts +6 -1
  336. package/.next/types/validator.ts +45 -0
  337. package/README.md +1 -1
  338. package/next.config.mjs +119 -105
  339. package/package.json +90 -90
  340. package/.next/server/chunks/4239.js +0 -1
  341. package/.next/server/chunks/4706.js +0 -1
  342. package/.next/server/chunks/4729.js +0 -6
  343. package/.next/server/chunks/5443.js +0 -1
  344. package/.next/server/chunks/7485.js +0 -1
  345. package/.next/server/chunks/812.js +0 -2
  346. package/.next/static/07vmuF5x2Bs8Xj1OeV0QV/_buildManifest.js +0 -1
  347. package/.next/static/chunks/256-7f4847b6726c866c.js +0 -1
  348. package/.next/static/chunks/7329-78f54f68ea2d37e2.js +0 -1
  349. package/.next/static/chunks/8862-8f17ef601bb1fbd0.js +0 -1
  350. package/.next/static/chunks/8890-a7a8c6f1dc3cd343.js +0 -1
  351. package/.next/static/chunks/app/api/backup/route-3291f6991ce3f52c.js +0 -1
  352. package/.next/static/chunks/app/api/browse/route-3291f6991ce3f52c.js +0 -1
  353. package/.next/static/chunks/app/api/cwd/route-3291f6991ce3f52c.js +0 -1
  354. package/.next/static/chunks/app/api/encryption/secure/route-3291f6991ce3f52c.js +0 -1
  355. package/.next/static/chunks/app/api/env/route-3291f6991ce3f52c.js +0 -1
  356. package/.next/static/chunks/app/api/flow/[id]/route-3291f6991ce3f52c.js +0 -1
  357. package/.next/static/chunks/app/api/flow/prompt-renderer/route-3291f6991ce3f52c.js +0 -1
  358. package/.next/static/chunks/app/api/flow/route-3291f6991ce3f52c.js +0 -1
  359. package/.next/static/chunks/app/api/git/route-3291f6991ce3f52c.js +0 -1
  360. package/.next/static/chunks/app/api/init/route-3291f6991ce3f52c.js +0 -1
  361. package/.next/static/chunks/app/api/mcp/cancel/route-3291f6991ce3f52c.js +0 -1
  362. package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/get/route-3291f6991ce3f52c.js +0 -1
  363. package/.next/static/chunks/app/api/mcp/servers/[name]/prompts/route-3291f6991ce3f52c.js +0 -1
  364. package/.next/static/chunks/app/api/mcp/servers/[name]/resources/read/route-3291f6991ce3f52c.js +0 -1
  365. package/.next/static/chunks/app/api/mcp/servers/[name]/resources/route-3291f6991ce3f52c.js +0 -1
  366. package/.next/static/chunks/app/api/mcp/servers/[name]/route-3291f6991ce3f52c.js +0 -1
  367. package/.next/static/chunks/app/api/mcp/servers/[name]/status/route-3291f6991ce3f52c.js +0 -1
  368. package/.next/static/chunks/app/api/mcp/servers/[name]/tools/[toolName]/route-3291f6991ce3f52c.js +0 -1
  369. package/.next/static/chunks/app/api/mcp/servers/[name]/tools/route-3291f6991ce3f52c.js +0 -1
  370. package/.next/static/chunks/app/api/mcp/servers/route-3291f6991ce3f52c.js +0 -1
  371. package/.next/static/chunks/app/api/mcp/test-connection/route-3291f6991ce3f52c.js +0 -1
  372. package/.next/static/chunks/app/api/mcp/test-connection/stream/route-3291f6991ce3f52c.js +0 -1
  373. package/.next/static/chunks/app/api/mcp-registry/route-3291f6991ce3f52c.js +0 -1
  374. package/.next/static/chunks/app/api/mcp-registry/spotlight/route-3291f6991ce3f52c.js +0 -1
  375. package/.next/static/chunks/app/api/model/[id]/route-3291f6991ce3f52c.js +0 -1
  376. package/.next/static/chunks/app/api/model/provider/route-3291f6991ce3f52c.js +0 -1
  377. package/.next/static/chunks/app/api/model/route-3291f6991ce3f52c.js +0 -1
  378. package/.next/static/chunks/app/api/model/test/route-3291f6991ce3f52c.js +0 -1
  379. package/.next/static/chunks/app/api/oauth/callback/route-3291f6991ce3f52c.js +0 -1
  380. package/.next/static/chunks/app/api/oauth/initiate/route-3291f6991ce3f52c.js +0 -1
  381. package/.next/static/chunks/app/api/oauth/reset/route-3291f6991ce3f52c.js +0 -1
  382. package/.next/static/chunks/app/api/planned-executions/[id]/route-3291f6991ce3f52c.js +0 -1
  383. package/.next/static/chunks/app/api/planned-executions/[id]/run/route-3291f6991ce3f52c.js +0 -1
  384. package/.next/static/chunks/app/api/planned-executions/[id]/runs/route-3291f6991ce3f52c.js +0 -1
  385. package/.next/static/chunks/app/api/planned-executions/preview-schedule/route-3291f6991ce3f52c.js +0 -1
  386. package/.next/static/chunks/app/api/planned-executions/route-3291f6991ce3f52c.js +0 -1
  387. package/.next/static/chunks/app/api/restore/route-3291f6991ce3f52c.js +0 -1
  388. package/.next/static/chunks/app/api/storage/route-3291f6991ce3f52c.js +0 -1
  389. package/.next/static/chunks/app/api/update/route-3291f6991ce3f52c.js +0 -1
  390. package/.next/static/chunks/app/api/webhooks/[id]/route-3291f6991ce3f52c.js +0 -1
  391. package/.next/static/chunks/app/docs/page-d4005b311ead55f2.js +0 -1
  392. package/.next/static/chunks/app/executions/page-870931839b84c8d5.js +0 -1
  393. package/.next/static/chunks/app/flows/page-303dc4d2542567a6.js +0 -1
  394. package/.next/static/chunks/app/mcp/page-5012a7e5b6366207.js +0 -1
  395. package/.next/static/chunks/app/mcp-flows/route-3291f6991ce3f52c.js +0 -1
  396. package/.next/static/chunks/app/mcp-proxy/[server]/route-3291f6991ce3f52c.js +0 -1
  397. package/.next/static/chunks/app/v1/chat/completions/route-3291f6991ce3f52c.js +0 -1
  398. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/breakpoints/route-3291f6991ce3f52c.js +0 -1
  399. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/cancel/route-3291f6991ce3f52c.js +0 -1
  400. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/continue/route-3291f6991ce3f52c.js +0 -1
  401. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/debug/step/route-3291f6991ce3f52c.js +0 -1
  402. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/edit-state/route-3291f6991ce3f52c.js +0 -1
  403. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/events/route-3291f6991ce3f52c.js +0 -1
  404. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/respond/route-3291f6991ce3f52c.js +0 -1
  405. package/.next/static/chunks/app/v1/chat/conversations/[conversationId]/route-3291f6991ce3f52c.js +0 -1
  406. package/.next/static/chunks/app/v1/chat/conversations/route-3291f6991ce3f52c.js +0 -1
  407. package/.next/static/chunks/app/v1/models/route-3291f6991ce3f52c.js +0 -1
  408. /package/.next/static/{07vmuF5x2Bs8Xj1OeV0QV → z7fsG7kblb_yxkUhOxn-G}/_ssgManifest.js +0 -0
@@ -0,0 +1,347 @@
1
+ // File: C:\Users\MarioAndreschak\Documents\GitHub\FLUJO\src\app\api\flow\compile\route.ts
2
+ import * as entry from '../../../../../../src/app/api/flow/compile/route.js'
3
+ import type { NextRequest } from 'next/server.js'
4
+
5
+ type TEntry = typeof import('../../../../../../src/app/api/flow/compile/route.js')
6
+
7
+ type SegmentParams<T extends Object = any> = T extends Record<string, any>
8
+ ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
9
+ : T
10
+
11
+ // Check that the entry is a valid entry
12
+ checkFields<Diff<{
13
+ GET?: Function
14
+ HEAD?: Function
15
+ OPTIONS?: Function
16
+ POST?: Function
17
+ PUT?: Function
18
+ DELETE?: Function
19
+ PATCH?: Function
20
+ config?: {}
21
+ generateStaticParams?: Function
22
+ revalidate?: RevalidateRange<TEntry> | false
23
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
24
+ dynamicParams?: boolean
25
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
26
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
27
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
28
+ maxDuration?: number
29
+
30
+ }, TEntry, ''>>()
31
+
32
+ type RouteContext = { params: Promise<SegmentParams> }
33
+ // Check the prop type of the entry function
34
+ if ('GET' in entry) {
35
+ checkFields<
36
+ Diff<
37
+ ParamCheck<Request | NextRequest>,
38
+ {
39
+ __tag__: 'GET'
40
+ __param_position__: 'first'
41
+ __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
42
+ },
43
+ 'GET'
44
+ >
45
+ >()
46
+ checkFields<
47
+ Diff<
48
+ ParamCheck<RouteContext>,
49
+ {
50
+ __tag__: 'GET'
51
+ __param_position__: 'second'
52
+ __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
53
+ },
54
+ 'GET'
55
+ >
56
+ >()
57
+
58
+ checkFields<
59
+ Diff<
60
+ {
61
+ __tag__: 'GET',
62
+ __return_type__: Response | void | never | Promise<Response | void | never>
63
+ },
64
+ {
65
+ __tag__: 'GET',
66
+ __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
67
+ },
68
+ 'GET'
69
+ >
70
+ >()
71
+ }
72
+ // Check the prop type of the entry function
73
+ if ('HEAD' in entry) {
74
+ checkFields<
75
+ Diff<
76
+ ParamCheck<Request | NextRequest>,
77
+ {
78
+ __tag__: 'HEAD'
79
+ __param_position__: 'first'
80
+ __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
81
+ },
82
+ 'HEAD'
83
+ >
84
+ >()
85
+ checkFields<
86
+ Diff<
87
+ ParamCheck<RouteContext>,
88
+ {
89
+ __tag__: 'HEAD'
90
+ __param_position__: 'second'
91
+ __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
92
+ },
93
+ 'HEAD'
94
+ >
95
+ >()
96
+
97
+ checkFields<
98
+ Diff<
99
+ {
100
+ __tag__: 'HEAD',
101
+ __return_type__: Response | void | never | Promise<Response | void | never>
102
+ },
103
+ {
104
+ __tag__: 'HEAD',
105
+ __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
106
+ },
107
+ 'HEAD'
108
+ >
109
+ >()
110
+ }
111
+ // Check the prop type of the entry function
112
+ if ('OPTIONS' in entry) {
113
+ checkFields<
114
+ Diff<
115
+ ParamCheck<Request | NextRequest>,
116
+ {
117
+ __tag__: 'OPTIONS'
118
+ __param_position__: 'first'
119
+ __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
120
+ },
121
+ 'OPTIONS'
122
+ >
123
+ >()
124
+ checkFields<
125
+ Diff<
126
+ ParamCheck<RouteContext>,
127
+ {
128
+ __tag__: 'OPTIONS'
129
+ __param_position__: 'second'
130
+ __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
131
+ },
132
+ 'OPTIONS'
133
+ >
134
+ >()
135
+
136
+ checkFields<
137
+ Diff<
138
+ {
139
+ __tag__: 'OPTIONS',
140
+ __return_type__: Response | void | never | Promise<Response | void | never>
141
+ },
142
+ {
143
+ __tag__: 'OPTIONS',
144
+ __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
145
+ },
146
+ 'OPTIONS'
147
+ >
148
+ >()
149
+ }
150
+ // Check the prop type of the entry function
151
+ if ('POST' in entry) {
152
+ checkFields<
153
+ Diff<
154
+ ParamCheck<Request | NextRequest>,
155
+ {
156
+ __tag__: 'POST'
157
+ __param_position__: 'first'
158
+ __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
159
+ },
160
+ 'POST'
161
+ >
162
+ >()
163
+ checkFields<
164
+ Diff<
165
+ ParamCheck<RouteContext>,
166
+ {
167
+ __tag__: 'POST'
168
+ __param_position__: 'second'
169
+ __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
170
+ },
171
+ 'POST'
172
+ >
173
+ >()
174
+
175
+ checkFields<
176
+ Diff<
177
+ {
178
+ __tag__: 'POST',
179
+ __return_type__: Response | void | never | Promise<Response | void | never>
180
+ },
181
+ {
182
+ __tag__: 'POST',
183
+ __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
184
+ },
185
+ 'POST'
186
+ >
187
+ >()
188
+ }
189
+ // Check the prop type of the entry function
190
+ if ('PUT' in entry) {
191
+ checkFields<
192
+ Diff<
193
+ ParamCheck<Request | NextRequest>,
194
+ {
195
+ __tag__: 'PUT'
196
+ __param_position__: 'first'
197
+ __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
198
+ },
199
+ 'PUT'
200
+ >
201
+ >()
202
+ checkFields<
203
+ Diff<
204
+ ParamCheck<RouteContext>,
205
+ {
206
+ __tag__: 'PUT'
207
+ __param_position__: 'second'
208
+ __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
209
+ },
210
+ 'PUT'
211
+ >
212
+ >()
213
+
214
+ checkFields<
215
+ Diff<
216
+ {
217
+ __tag__: 'PUT',
218
+ __return_type__: Response | void | never | Promise<Response | void | never>
219
+ },
220
+ {
221
+ __tag__: 'PUT',
222
+ __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
223
+ },
224
+ 'PUT'
225
+ >
226
+ >()
227
+ }
228
+ // Check the prop type of the entry function
229
+ if ('DELETE' in entry) {
230
+ checkFields<
231
+ Diff<
232
+ ParamCheck<Request | NextRequest>,
233
+ {
234
+ __tag__: 'DELETE'
235
+ __param_position__: 'first'
236
+ __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
237
+ },
238
+ 'DELETE'
239
+ >
240
+ >()
241
+ checkFields<
242
+ Diff<
243
+ ParamCheck<RouteContext>,
244
+ {
245
+ __tag__: 'DELETE'
246
+ __param_position__: 'second'
247
+ __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
248
+ },
249
+ 'DELETE'
250
+ >
251
+ >()
252
+
253
+ checkFields<
254
+ Diff<
255
+ {
256
+ __tag__: 'DELETE',
257
+ __return_type__: Response | void | never | Promise<Response | void | never>
258
+ },
259
+ {
260
+ __tag__: 'DELETE',
261
+ __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
262
+ },
263
+ 'DELETE'
264
+ >
265
+ >()
266
+ }
267
+ // Check the prop type of the entry function
268
+ if ('PATCH' in entry) {
269
+ checkFields<
270
+ Diff<
271
+ ParamCheck<Request | NextRequest>,
272
+ {
273
+ __tag__: 'PATCH'
274
+ __param_position__: 'first'
275
+ __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
276
+ },
277
+ 'PATCH'
278
+ >
279
+ >()
280
+ checkFields<
281
+ Diff<
282
+ ParamCheck<RouteContext>,
283
+ {
284
+ __tag__: 'PATCH'
285
+ __param_position__: 'second'
286
+ __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
287
+ },
288
+ 'PATCH'
289
+ >
290
+ >()
291
+
292
+ checkFields<
293
+ Diff<
294
+ {
295
+ __tag__: 'PATCH',
296
+ __return_type__: Response | void | never | Promise<Response | void | never>
297
+ },
298
+ {
299
+ __tag__: 'PATCH',
300
+ __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
301
+ },
302
+ 'PATCH'
303
+ >
304
+ >()
305
+ }
306
+
307
+ // Check the arguments and return type of the generateStaticParams function
308
+ if ('generateStaticParams' in entry) {
309
+ checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
310
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
311
+ }
312
+
313
+ export interface PageProps {
314
+ params?: Promise<SegmentParams>
315
+ searchParams?: Promise<any>
316
+ }
317
+ export interface LayoutProps {
318
+ children?: React.ReactNode
319
+
320
+ params?: Promise<SegmentParams>
321
+ }
322
+
323
+ // =============
324
+ // Utility types
325
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
326
+
327
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
328
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
329
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
330
+
331
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
332
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
333
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
334
+
335
+ type ParamCheck<T> = {
336
+ __tag__: string
337
+ __param_position__: string
338
+ __param_type__: T
339
+ }
340
+
341
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
342
+
343
+ // https://github.com/sindresorhus/type-fest
344
+ type Numeric = number | bigint
345
+ type Zero = 0 | 0n
346
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
347
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -0,0 +1,347 @@
1
+ // File: C:\Users\MarioAndreschak\Documents\GitHub\FLUJO\src\app\api\flow\generate\route.ts
2
+ import * as entry from '../../../../../../src/app/api/flow/generate/route.js'
3
+ import type { NextRequest } from 'next/server.js'
4
+
5
+ type TEntry = typeof import('../../../../../../src/app/api/flow/generate/route.js')
6
+
7
+ type SegmentParams<T extends Object = any> = T extends Record<string, any>
8
+ ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
9
+ : T
10
+
11
+ // Check that the entry is a valid entry
12
+ checkFields<Diff<{
13
+ GET?: Function
14
+ HEAD?: Function
15
+ OPTIONS?: Function
16
+ POST?: Function
17
+ PUT?: Function
18
+ DELETE?: Function
19
+ PATCH?: Function
20
+ config?: {}
21
+ generateStaticParams?: Function
22
+ revalidate?: RevalidateRange<TEntry> | false
23
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
24
+ dynamicParams?: boolean
25
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
26
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
27
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
28
+ maxDuration?: number
29
+
30
+ }, TEntry, ''>>()
31
+
32
+ type RouteContext = { params: Promise<SegmentParams> }
33
+ // Check the prop type of the entry function
34
+ if ('GET' in entry) {
35
+ checkFields<
36
+ Diff<
37
+ ParamCheck<Request | NextRequest>,
38
+ {
39
+ __tag__: 'GET'
40
+ __param_position__: 'first'
41
+ __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
42
+ },
43
+ 'GET'
44
+ >
45
+ >()
46
+ checkFields<
47
+ Diff<
48
+ ParamCheck<RouteContext>,
49
+ {
50
+ __tag__: 'GET'
51
+ __param_position__: 'second'
52
+ __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
53
+ },
54
+ 'GET'
55
+ >
56
+ >()
57
+
58
+ checkFields<
59
+ Diff<
60
+ {
61
+ __tag__: 'GET',
62
+ __return_type__: Response | void | never | Promise<Response | void | never>
63
+ },
64
+ {
65
+ __tag__: 'GET',
66
+ __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
67
+ },
68
+ 'GET'
69
+ >
70
+ >()
71
+ }
72
+ // Check the prop type of the entry function
73
+ if ('HEAD' in entry) {
74
+ checkFields<
75
+ Diff<
76
+ ParamCheck<Request | NextRequest>,
77
+ {
78
+ __tag__: 'HEAD'
79
+ __param_position__: 'first'
80
+ __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
81
+ },
82
+ 'HEAD'
83
+ >
84
+ >()
85
+ checkFields<
86
+ Diff<
87
+ ParamCheck<RouteContext>,
88
+ {
89
+ __tag__: 'HEAD'
90
+ __param_position__: 'second'
91
+ __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
92
+ },
93
+ 'HEAD'
94
+ >
95
+ >()
96
+
97
+ checkFields<
98
+ Diff<
99
+ {
100
+ __tag__: 'HEAD',
101
+ __return_type__: Response | void | never | Promise<Response | void | never>
102
+ },
103
+ {
104
+ __tag__: 'HEAD',
105
+ __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
106
+ },
107
+ 'HEAD'
108
+ >
109
+ >()
110
+ }
111
+ // Check the prop type of the entry function
112
+ if ('OPTIONS' in entry) {
113
+ checkFields<
114
+ Diff<
115
+ ParamCheck<Request | NextRequest>,
116
+ {
117
+ __tag__: 'OPTIONS'
118
+ __param_position__: 'first'
119
+ __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
120
+ },
121
+ 'OPTIONS'
122
+ >
123
+ >()
124
+ checkFields<
125
+ Diff<
126
+ ParamCheck<RouteContext>,
127
+ {
128
+ __tag__: 'OPTIONS'
129
+ __param_position__: 'second'
130
+ __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
131
+ },
132
+ 'OPTIONS'
133
+ >
134
+ >()
135
+
136
+ checkFields<
137
+ Diff<
138
+ {
139
+ __tag__: 'OPTIONS',
140
+ __return_type__: Response | void | never | Promise<Response | void | never>
141
+ },
142
+ {
143
+ __tag__: 'OPTIONS',
144
+ __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
145
+ },
146
+ 'OPTIONS'
147
+ >
148
+ >()
149
+ }
150
+ // Check the prop type of the entry function
151
+ if ('POST' in entry) {
152
+ checkFields<
153
+ Diff<
154
+ ParamCheck<Request | NextRequest>,
155
+ {
156
+ __tag__: 'POST'
157
+ __param_position__: 'first'
158
+ __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
159
+ },
160
+ 'POST'
161
+ >
162
+ >()
163
+ checkFields<
164
+ Diff<
165
+ ParamCheck<RouteContext>,
166
+ {
167
+ __tag__: 'POST'
168
+ __param_position__: 'second'
169
+ __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
170
+ },
171
+ 'POST'
172
+ >
173
+ >()
174
+
175
+ checkFields<
176
+ Diff<
177
+ {
178
+ __tag__: 'POST',
179
+ __return_type__: Response | void | never | Promise<Response | void | never>
180
+ },
181
+ {
182
+ __tag__: 'POST',
183
+ __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
184
+ },
185
+ 'POST'
186
+ >
187
+ >()
188
+ }
189
+ // Check the prop type of the entry function
190
+ if ('PUT' in entry) {
191
+ checkFields<
192
+ Diff<
193
+ ParamCheck<Request | NextRequest>,
194
+ {
195
+ __tag__: 'PUT'
196
+ __param_position__: 'first'
197
+ __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
198
+ },
199
+ 'PUT'
200
+ >
201
+ >()
202
+ checkFields<
203
+ Diff<
204
+ ParamCheck<RouteContext>,
205
+ {
206
+ __tag__: 'PUT'
207
+ __param_position__: 'second'
208
+ __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
209
+ },
210
+ 'PUT'
211
+ >
212
+ >()
213
+
214
+ checkFields<
215
+ Diff<
216
+ {
217
+ __tag__: 'PUT',
218
+ __return_type__: Response | void | never | Promise<Response | void | never>
219
+ },
220
+ {
221
+ __tag__: 'PUT',
222
+ __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
223
+ },
224
+ 'PUT'
225
+ >
226
+ >()
227
+ }
228
+ // Check the prop type of the entry function
229
+ if ('DELETE' in entry) {
230
+ checkFields<
231
+ Diff<
232
+ ParamCheck<Request | NextRequest>,
233
+ {
234
+ __tag__: 'DELETE'
235
+ __param_position__: 'first'
236
+ __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
237
+ },
238
+ 'DELETE'
239
+ >
240
+ >()
241
+ checkFields<
242
+ Diff<
243
+ ParamCheck<RouteContext>,
244
+ {
245
+ __tag__: 'DELETE'
246
+ __param_position__: 'second'
247
+ __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
248
+ },
249
+ 'DELETE'
250
+ >
251
+ >()
252
+
253
+ checkFields<
254
+ Diff<
255
+ {
256
+ __tag__: 'DELETE',
257
+ __return_type__: Response | void | never | Promise<Response | void | never>
258
+ },
259
+ {
260
+ __tag__: 'DELETE',
261
+ __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
262
+ },
263
+ 'DELETE'
264
+ >
265
+ >()
266
+ }
267
+ // Check the prop type of the entry function
268
+ if ('PATCH' in entry) {
269
+ checkFields<
270
+ Diff<
271
+ ParamCheck<Request | NextRequest>,
272
+ {
273
+ __tag__: 'PATCH'
274
+ __param_position__: 'first'
275
+ __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
276
+ },
277
+ 'PATCH'
278
+ >
279
+ >()
280
+ checkFields<
281
+ Diff<
282
+ ParamCheck<RouteContext>,
283
+ {
284
+ __tag__: 'PATCH'
285
+ __param_position__: 'second'
286
+ __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
287
+ },
288
+ 'PATCH'
289
+ >
290
+ >()
291
+
292
+ checkFields<
293
+ Diff<
294
+ {
295
+ __tag__: 'PATCH',
296
+ __return_type__: Response | void | never | Promise<Response | void | never>
297
+ },
298
+ {
299
+ __tag__: 'PATCH',
300
+ __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
301
+ },
302
+ 'PATCH'
303
+ >
304
+ >()
305
+ }
306
+
307
+ // Check the arguments and return type of the generateStaticParams function
308
+ if ('generateStaticParams' in entry) {
309
+ checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
310
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
311
+ }
312
+
313
+ export interface PageProps {
314
+ params?: Promise<SegmentParams>
315
+ searchParams?: Promise<any>
316
+ }
317
+ export interface LayoutProps {
318
+ children?: React.ReactNode
319
+
320
+ params?: Promise<SegmentParams>
321
+ }
322
+
323
+ // =============
324
+ // Utility types
325
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
326
+
327
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
328
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
329
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
330
+
331
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
332
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
333
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
334
+
335
+ type ParamCheck<T> = {
336
+ __tag__: string
337
+ __param_position__: string
338
+ __param_type__: T
339
+ }
340
+
341
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
342
+
343
+ // https://github.com/sindresorhus/type-fest
344
+ type Numeric = number | bigint
345
+ type Zero = 0 | 0n
346
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
347
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'