@sifxprime/krouter 0.5.144 → 0.5.146

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 (902) hide show
  1. package/README.md +219 -0
  2. package/app/.next-cli-build/BUILD_ID +1 -1
  3. package/app/.next-cli-build/app-path-routes-manifest.json +13 -11
  4. package/app/.next-cli-build/build-manifest.json +2 -2
  5. package/app/.next-cli-build/prerender-manifest.json +46 -18
  6. package/app/.next-cli-build/routes-manifest.json +12 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page.js +13 -0
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page_client-reference-manifest.js +1 -0
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  58. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  61. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  63. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  64. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  65. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  67. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  68. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  69. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  70. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  71. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +3 -3
  80. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  81. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  83. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  84. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  87. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  88. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  89. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  90. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  91. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  93. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  94. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/import/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/mitm/cert/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/models/live/route.js +3 -3
  123. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/providers/health/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/providers/zenith/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  163. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  165. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  167. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  169. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/settings/presidio/route.js +1 -0
  172. package/app/.next-cli-build/server/app/api/settings/presidio/route_client-reference-manifest.js +1 -0
  173. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  191. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  222. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  224. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  227. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  228. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  229. package/app/.next-cli-build/server/app/callback.html +1 -1
  230. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  231. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  232. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  233. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  234. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  235. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  236. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
  237. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  238. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  239. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  240. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  241. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  242. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  243. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  244. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  245. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  246. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
  247. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  248. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  249. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  250. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  251. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
  252. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  253. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  254. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
  255. package/app/.next-cli-build/server/app/dashboard/environment.rsc +6 -6
  256. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +6 -6
  257. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +6 -6
  258. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +2 -2
  259. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  260. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  261. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
  262. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  263. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  264. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  265. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  266. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  267. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  268. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  269. package/app/.next-cli-build/server/app/dashboard/presidio.html +1 -0
  270. package/app/.next-cli-build/server/app/dashboard/presidio.meta +36 -0
  271. package/app/.next-cli-build/server/app/dashboard/presidio.rsc +26 -0
  272. package/app/.next-cli-build/server/app/dashboard/presidio.segments/!KGRhc2hib2FyZCk/dashboard/presidio/__PAGE__.segment.rsc +32 -0
  273. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_full.segment.rsc +26 -0
  274. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_tree.segment.rsc +5 -0
  275. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  276. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  277. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
  278. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  279. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  280. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  281. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  282. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
  283. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  284. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  285. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  286. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  287. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
  288. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  289. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  290. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  291. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  292. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
  293. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  294. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  295. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  296. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  297. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
  298. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  299. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  300. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  301. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  302. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
  303. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  304. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  305. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  306. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  309. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  310. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  311. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  312. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  313. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  314. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
  315. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  316. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  317. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  318. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  319. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
  320. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  321. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  322. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  323. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  324. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  325. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  326. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  327. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  328. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  329. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
  330. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  331. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  332. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  333. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  334. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  335. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  336. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  337. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  338. package/app/.next-cli-build/server/app/index.html +1 -1
  339. package/app/.next-cli-build/server/app/index.rsc +4 -4
  340. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  341. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  342. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  343. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  344. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  345. package/app/.next-cli-build/server/app/landing.html +1 -1
  346. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  347. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  348. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  349. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  350. package/app/.next-cli-build/server/app/login/page.js +1 -1
  351. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  352. package/app/.next-cli-build/server/app/login.html +1 -1
  353. package/app/.next-cli-build/server/app/login.rsc +5 -5
  354. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  355. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  356. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  357. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  358. package/app/.next-cli-build/server/app/page.js +1 -1
  359. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  360. package/app/.next-cli-build/server/app-paths-manifest.json +13 -11
  361. package/app/.next-cli-build/server/chunks/2365.js +1 -1
  362. package/app/.next-cli-build/server/chunks/412.js +2 -2
  363. package/app/.next-cli-build/server/chunks/5330.js +11 -11
  364. package/app/.next-cli-build/server/chunks/6182.js +4 -4
  365. package/app/.next-cli-build/server/chunks/6200.js +3 -0
  366. package/app/.next-cli-build/server/chunks/706.js +1 -1
  367. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  368. package/app/.next-cli-build/server/chunks/7276.js +1 -1
  369. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  370. package/app/.next-cli-build/server/chunks/8361.js +1 -1
  371. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  372. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  373. package/app/.next-cli-build/server/middleware.js +5 -5
  374. package/app/.next-cli-build/server/pages/404.html +1 -1
  375. package/app/.next-cli-build/server/pages/500.html +1 -1
  376. package/app/.next-cli-build/server/prefetch-hints.json +24 -0
  377. package/app/.next-cli-build/static/alT51K3CdFyFBv27IY7wb/_buildManifest.js +1 -0
  378. package/app/.next-cli-build/static/chunks/{1321-7abcf5df16effef0.js → 1321-6c49a954d60cdf8d.js} +1 -1
  379. package/app/.next-cli-build/static/chunks/5497-df084be192db340d.js +7 -0
  380. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/presidio/page-d99bb3a54c3dbb50.js +13 -0
  381. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-b1182e42595e08ba.js +1 -0
  382. package/app/.next-cli-build/static/chunks/app/_global-error/{page-679268ce464db514.js → page-0a9962733d0ef748.js} +1 -1
  383. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-679268ce464db514.js → route-0a9962733d0ef748.js} +1 -1
  384. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-679268ce464db514.js → route-0a9962733d0ef748.js} +1 -1
  385. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-679268ce464db514.js → route-0a9962733d0ef748.js} +1 -1
  386. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-0a9962733d0ef748.js +1 -0
  387. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-0a9962733d0ef748.js +1 -0
  388. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-0a9962733d0ef748.js +1 -0
  389. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-0a9962733d0ef748.js +1 -0
  390. package/app/.next-cli-build/static/chunks/app/api/cache/route-0a9962733d0ef748.js +1 -0
  391. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-0a9962733d0ef748.js +1 -0
  392. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-0a9962733d0ef748.js +1 -0
  393. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-0a9962733d0ef748.js +1 -0
  394. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-0a9962733d0ef748.js +1 -0
  395. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-0a9962733d0ef748.js +1 -0
  396. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-0a9962733d0ef748.js +1 -0
  397. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-0a9962733d0ef748.js +1 -0
  398. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-0a9962733d0ef748.js +1 -0
  399. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-0a9962733d0ef748.js +1 -0
  400. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-0a9962733d0ef748.js +1 -0
  401. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-0a9962733d0ef748.js +1 -0
  402. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-0a9962733d0ef748.js +1 -0
  403. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-0a9962733d0ef748.js +1 -0
  404. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-0a9962733d0ef748.js +1 -0
  405. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-0a9962733d0ef748.js +1 -0
  406. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-0a9962733d0ef748.js +1 -0
  407. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-0a9962733d0ef748.js +1 -0
  408. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-0a9962733d0ef748.js +1 -0
  409. package/app/.next-cli-build/static/chunks/app/api/combos/route-0a9962733d0ef748.js +1 -0
  410. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-0a9962733d0ef748.js +1 -0
  411. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-0a9962733d0ef748.js +1 -0
  412. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-0a9962733d0ef748.js +1 -0
  413. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-0a9962733d0ef748.js +1 -0
  414. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-0a9962733d0ef748.js +1 -0
  415. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-0a9962733d0ef748.js +1 -0
  416. package/app/.next-cli-build/static/chunks/app/api/health/route-0a9962733d0ef748.js +1 -0
  417. package/app/.next-cli-build/static/chunks/app/api/import/route-0a9962733d0ef748.js +1 -0
  418. package/app/.next-cli-build/static/chunks/app/api/init/route-0a9962733d0ef748.js +1 -0
  419. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-0a9962733d0ef748.js +1 -0
  420. package/app/.next-cli-build/static/chunks/app/api/keys/route-0a9962733d0ef748.js +1 -0
  421. package/app/.next-cli-build/static/chunks/app/api/locale/route-0a9962733d0ef748.js +1 -0
  422. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-0a9962733d0ef748.js +1 -0
  423. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-0a9962733d0ef748.js +1 -0
  424. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-0a9962733d0ef748.js +1 -0
  425. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-0a9962733d0ef748.js +1 -0
  426. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-0a9962733d0ef748.js +1 -0
  427. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-0a9962733d0ef748.js +1 -0
  428. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-0a9962733d0ef748.js +1 -0
  429. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-0a9962733d0ef748.js +1 -0
  430. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-0a9962733d0ef748.js +1 -0
  431. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-0a9962733d0ef748.js +1 -0
  432. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-0a9962733d0ef748.js +1 -0
  433. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-0a9962733d0ef748.js +1 -0
  434. package/app/.next-cli-build/static/chunks/app/api/models/live/route-0a9962733d0ef748.js +1 -0
  435. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-0a9962733d0ef748.js +1 -0
  436. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-0a9962733d0ef748.js +1 -0
  437. package/app/.next-cli-build/static/chunks/app/api/models/route-0a9962733d0ef748.js +1 -0
  438. package/app/.next-cli-build/static/chunks/app/api/models/test/route-0a9962733d0ef748.js +1 -0
  439. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-0a9962733d0ef748.js +1 -0
  440. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-0a9962733d0ef748.js +1 -0
  441. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-0a9962733d0ef748.js +1 -0
  442. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-0a9962733d0ef748.js +1 -0
  443. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-0a9962733d0ef748.js +1 -0
  444. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-0a9962733d0ef748.js +1 -0
  445. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-0a9962733d0ef748.js +1 -0
  446. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-0a9962733d0ef748.js +1 -0
  447. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-0a9962733d0ef748.js +1 -0
  448. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-0a9962733d0ef748.js +1 -0
  449. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-0a9962733d0ef748.js +1 -0
  450. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-0a9962733d0ef748.js +1 -0
  451. package/app/.next-cli-build/static/chunks/app/api/pricing/route-0a9962733d0ef748.js +1 -0
  452. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-0a9962733d0ef748.js +1 -0
  453. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-0a9962733d0ef748.js +1 -0
  454. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-0a9962733d0ef748.js +1 -0
  455. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-0a9962733d0ef748.js +1 -0
  456. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-0a9962733d0ef748.js +1 -0
  457. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-0a9962733d0ef748.js +1 -0
  458. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-0a9962733d0ef748.js +1 -0
  459. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-0a9962733d0ef748.js +1 -0
  460. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-0a9962733d0ef748.js +1 -0
  461. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-0a9962733d0ef748.js +1 -0
  462. package/app/.next-cli-build/static/chunks/app/api/providers/route-0a9962733d0ef748.js +1 -0
  463. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-0a9962733d0ef748.js +1 -0
  464. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-0a9962733d0ef748.js +1 -0
  465. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-0a9962733d0ef748.js +1 -0
  466. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-0a9962733d0ef748.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-0a9962733d0ef748.js +1 -0
  468. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-0a9962733d0ef748.js +1 -0
  469. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-0a9962733d0ef748.js +1 -0
  470. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-0a9962733d0ef748.js +1 -0
  471. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-0a9962733d0ef748.js +1 -0
  472. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-0a9962733d0ef748.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-0a9962733d0ef748.js +1 -0
  474. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-0a9962733d0ef748.js +1 -0
  475. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-0a9962733d0ef748.js +1 -0
  476. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-0a9962733d0ef748.js +1 -0
  477. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-0a9962733d0ef748.js +1 -0
  478. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-0a9962733d0ef748.js +1 -0
  479. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-0a9962733d0ef748.js +1 -0
  480. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-0a9962733d0ef748.js +1 -0
  481. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-0a9962733d0ef748.js +1 -0
  482. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-0a9962733d0ef748.js +1 -0
  483. package/app/.next-cli-build/static/chunks/app/api/settings/presidio/route-0a9962733d0ef748.js +1 -0
  484. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-0a9962733d0ef748.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-0a9962733d0ef748.js +1 -0
  486. package/app/.next-cli-build/static/chunks/app/api/settings/route-0a9962733d0ef748.js +1 -0
  487. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-0a9962733d0ef748.js +1 -0
  488. package/app/.next-cli-build/static/chunks/app/api/tags/route-0a9962733d0ef748.js +1 -0
  489. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-0a9962733d0ef748.js +1 -0
  490. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-0a9962733d0ef748.js +1 -0
  491. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-0a9962733d0ef748.js +1 -0
  492. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-0a9962733d0ef748.js +1 -0
  493. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-0a9962733d0ef748.js +1 -0
  494. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-0a9962733d0ef748.js +1 -0
  495. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-0a9962733d0ef748.js +1 -0
  496. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-0a9962733d0ef748.js +1 -0
  497. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-0a9962733d0ef748.js +1 -0
  498. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-0a9962733d0ef748.js +1 -0
  499. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-0a9962733d0ef748.js +1 -0
  500. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-0a9962733d0ef748.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-0a9962733d0ef748.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-0a9962733d0ef748.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-0a9962733d0ef748.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-0a9962733d0ef748.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-0a9962733d0ef748.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-0a9962733d0ef748.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-0a9962733d0ef748.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-0a9962733d0ef748.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-0a9962733d0ef748.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-0a9962733d0ef748.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-0a9962733d0ef748.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-0a9962733d0ef748.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-0a9962733d0ef748.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-0a9962733d0ef748.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-0a9962733d0ef748.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-0a9962733d0ef748.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-0a9962733d0ef748.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-0a9962733d0ef748.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-0a9962733d0ef748.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-0a9962733d0ef748.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-0a9962733d0ef748.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-0a9962733d0ef748.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-0a9962733d0ef748.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/v1/route-0a9962733d0ef748.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-0a9962733d0ef748.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-0a9962733d0ef748.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-0a9962733d0ef748.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-0a9962733d0ef748.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-0a9962733d0ef748.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-0a9962733d0ef748.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-0a9962733d0ef748.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-0a9962733d0ef748.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/version/route-0a9962733d0ef748.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-0a9962733d0ef748.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/version/update/route-0a9962733d0ef748.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-045957f92dd4e66b.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-0a9962733d0ef748.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/page-0a9962733d0ef748.js +1 -0
  539. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-0a9962733d0ef748.js +1 -0
  540. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-0a9962733d0ef748.js +1 -0
  541. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-0a9962733d0ef748.js +1 -0
  542. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-0a9962733d0ef748.js +1 -0
  543. package/app/.next-cli-build/static/css/ec08ba27b16d57e9.css +1 -0
  544. package/app/cli/package.json +1 -1
  545. package/app/package.json +2 -1
  546. package/app/src/mitm/server.js +1 -1
  547. package/package.json +1 -1
  548. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +0 -1
  549. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +0 -1
  550. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +0 -1
  551. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +0 -1
  552. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +0 -1
  553. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +0 -1
  554. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js.nft.json +0 -1
  555. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +0 -1
  556. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +0 -1
  557. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +0 -1
  558. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +0 -1
  559. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +0 -1
  560. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +0 -1
  561. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +0 -1
  562. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +0 -1
  563. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +0 -1
  564. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +0 -1
  565. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +0 -1
  566. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +0 -1
  567. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +0 -1
  568. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +0 -1
  569. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +0 -1
  570. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +0 -1
  571. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +0 -1
  572. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +0 -1
  573. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +0 -1
  574. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +0 -1
  575. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +0 -1
  576. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +0 -1
  577. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +0 -1
  578. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +0 -1
  579. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +0 -1
  580. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +0 -1
  581. package/app/.next-cli-build/server/app/api/cache/route.js.nft.json +0 -1
  582. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +0 -1
  583. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +0 -1
  584. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +0 -1
  585. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +0 -1
  586. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +0 -1
  587. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +0 -1
  588. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +0 -1
  589. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +0 -1
  590. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +0 -1
  591. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +0 -1
  592. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +0 -1
  593. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +0 -1
  594. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +0 -1
  595. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +0 -1
  596. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +0 -1
  597. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +0 -1
  598. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +0 -1
  599. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +0 -1
  600. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +0 -1
  601. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +0 -1
  602. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +0 -1
  603. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +0 -1
  604. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +0 -1
  605. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +0 -1
  606. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +0 -1
  607. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +0 -1
  608. package/app/.next-cli-build/server/app/api/import/route.js.nft.json +0 -1
  609. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +0 -1
  610. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +0 -1
  611. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +0 -1
  612. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +0 -1
  613. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +0 -1
  614. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +0 -1
  615. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +0 -1
  616. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +0 -1
  617. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +0 -1
  618. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +0 -1
  619. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +0 -1
  620. package/app/.next-cli-build/server/app/api/mitm/cert/route.js.nft.json +0 -1
  621. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +0 -1
  622. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +0 -1
  623. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +0 -1
  624. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +0 -1
  625. package/app/.next-cli-build/server/app/api/models/live/route.js.nft.json +0 -1
  626. package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js.nft.json +0 -1
  627. package/app/.next-cli-build/server/app/api/models/preview/route.js.nft.json +0 -1
  628. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +0 -1
  629. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +0 -1
  630. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +0 -1
  631. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +0 -1
  632. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +0 -1
  633. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +0 -1
  634. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +0 -1
  635. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +0 -1
  636. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +0 -1
  637. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +0 -1
  638. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +0 -1
  639. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +0 -1
  640. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +0 -1
  641. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +0 -1
  642. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +0 -1
  643. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +0 -1
  644. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +0 -1
  645. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +0 -1
  646. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +0 -1
  647. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +0 -1
  648. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +0 -1
  649. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +0 -1
  650. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +0 -1
  651. package/app/.next-cli-build/server/app/api/providers/health/route.js.nft.json +0 -1
  652. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +0 -1
  653. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +0 -1
  654. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +0 -1
  655. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +0 -1
  656. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +0 -1
  657. package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js.nft.json +0 -1
  658. package/app/.next-cli-build/server/app/api/providers/zenith/route.js.nft.json +0 -1
  659. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +0 -1
  660. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +0 -1
  661. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +0 -1
  662. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +0 -1
  663. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +0 -1
  664. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +0 -1
  665. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +0 -1
  666. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +0 -1
  667. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +0 -1
  668. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +0 -1
  669. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +0 -1
  670. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +0 -1
  671. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +0 -1
  672. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +0 -1
  673. package/app/.next-cli-build/server/app/api/settings/environment/route.js.nft.json +0 -1
  674. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +0 -1
  675. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +0 -1
  676. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +0 -1
  677. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +0 -1
  678. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +0 -1
  679. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +0 -1
  680. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +0 -1
  681. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +0 -1
  682. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +0 -1
  683. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +0 -1
  684. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +0 -1
  685. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +0 -1
  686. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +0 -1
  687. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +0 -1
  688. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +0 -1
  689. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +0 -1
  690. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +0 -1
  691. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +0 -1
  692. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +0 -1
  693. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +0 -1
  694. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +0 -1
  695. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +0 -1
  696. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +0 -1
  697. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +0 -1
  698. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +0 -1
  699. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +0 -1
  700. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +0 -1
  701. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +0 -1
  702. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +0 -1
  703. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +0 -1
  704. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +0 -1
  705. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +0 -1
  706. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +0 -1
  707. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +0 -1
  708. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +0 -1
  709. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +0 -1
  710. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +0 -1
  711. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +0 -1
  712. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +0 -1
  713. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +0 -1
  714. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +0 -1
  715. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +0 -1
  716. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +0 -1
  717. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +0 -1
  718. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +0 -1
  719. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +0 -1
  720. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +0 -1
  721. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +0 -1
  722. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +0 -1
  723. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +0 -1
  724. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +0 -1
  725. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +0 -1
  726. package/app/.next-cli-build/server/app/callback/page.js.nft.json +0 -1
  727. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +0 -1
  728. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +0 -1
  729. package/app/.next-cli-build/server/app/landing/page.js.nft.json +0 -1
  730. package/app/.next-cli-build/server/app/login/page.js.nft.json +0 -1
  731. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +0 -1
  732. package/app/.next-cli-build/server/app/page.js.nft.json +0 -1
  733. package/app/.next-cli-build/server/chunks/9489.js +0 -3
  734. package/app/.next-cli-build/static/chunks/5497-15b03497ab8e5fce.js +0 -7
  735. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-64fc5c6c998f5551.js +0 -1
  736. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-679268ce464db514.js +0 -1
  737. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-679268ce464db514.js +0 -1
  738. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-679268ce464db514.js +0 -1
  739. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-679268ce464db514.js +0 -1
  740. package/app/.next-cli-build/static/chunks/app/api/cache/route-679268ce464db514.js +0 -1
  741. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-679268ce464db514.js +0 -1
  742. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-679268ce464db514.js +0 -1
  743. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-679268ce464db514.js +0 -1
  744. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-679268ce464db514.js +0 -1
  745. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-679268ce464db514.js +0 -1
  746. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-679268ce464db514.js +0 -1
  747. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-679268ce464db514.js +0 -1
  748. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-679268ce464db514.js +0 -1
  749. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-679268ce464db514.js +0 -1
  750. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-679268ce464db514.js +0 -1
  751. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-679268ce464db514.js +0 -1
  752. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-679268ce464db514.js +0 -1
  753. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-679268ce464db514.js +0 -1
  754. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-679268ce464db514.js +0 -1
  755. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-679268ce464db514.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-679268ce464db514.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-679268ce464db514.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-679268ce464db514.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/api/combos/route-679268ce464db514.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-679268ce464db514.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-679268ce464db514.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-679268ce464db514.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-679268ce464db514.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-679268ce464db514.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-679268ce464db514.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/health/route-679268ce464db514.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/import/route-679268ce464db514.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/init/route-679268ce464db514.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-679268ce464db514.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/api/keys/route-679268ce464db514.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/api/locale/route-679268ce464db514.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-679268ce464db514.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-679268ce464db514.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-679268ce464db514.js +0 -1
  775. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-679268ce464db514.js +0 -1
  776. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-679268ce464db514.js +0 -1
  777. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-679268ce464db514.js +0 -1
  778. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-679268ce464db514.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/api/mitm/cert/route-679268ce464db514.js +0 -1
  780. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-679268ce464db514.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-679268ce464db514.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-679268ce464db514.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-679268ce464db514.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/models/live/route-679268ce464db514.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/models/live-by-connection/route-679268ce464db514.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/models/preview/route-679268ce464db514.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/models/route-679268ce464db514.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/models/test/route-679268ce464db514.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-679268ce464db514.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-679268ce464db514.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-679268ce464db514.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-679268ce464db514.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-679268ce464db514.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-679268ce464db514.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-679268ce464db514.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-679268ce464db514.js +0 -1
  797. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-679268ce464db514.js +0 -1
  798. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-679268ce464db514.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-679268ce464db514.js +0 -1
  800. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-679268ce464db514.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/api/pricing/route-679268ce464db514.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-679268ce464db514.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-679268ce464db514.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-679268ce464db514.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-679268ce464db514.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-679268ce464db514.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-679268ce464db514.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-679268ce464db514.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-679268ce464db514.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/providers/health/route-679268ce464db514.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-679268ce464db514.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/providers/route-679268ce464db514.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-679268ce464db514.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-679268ce464db514.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-679268ce464db514.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/log/route-679268ce464db514.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/providers/zenith/route-679268ce464db514.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-679268ce464db514.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-679268ce464db514.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-679268ce464db514.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-679268ce464db514.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-679268ce464db514.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-679268ce464db514.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-679268ce464db514.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-679268ce464db514.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-679268ce464db514.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-679268ce464db514.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-679268ce464db514.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-679268ce464db514.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-679268ce464db514.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-679268ce464db514.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/settings/environment/route-679268ce464db514.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-679268ce464db514.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-679268ce464db514.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/settings/route-679268ce464db514.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-679268ce464db514.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/tags/route-679268ce464db514.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-679268ce464db514.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-679268ce464db514.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-679268ce464db514.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-679268ce464db514.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-679268ce464db514.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-679268ce464db514.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-679268ce464db514.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-679268ce464db514.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-679268ce464db514.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-679268ce464db514.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-679268ce464db514.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-679268ce464db514.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-679268ce464db514.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-679268ce464db514.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-679268ce464db514.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-679268ce464db514.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-679268ce464db514.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-679268ce464db514.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-679268ce464db514.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-679268ce464db514.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-679268ce464db514.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-679268ce464db514.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-679268ce464db514.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-679268ce464db514.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-679268ce464db514.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-679268ce464db514.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-679268ce464db514.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-679268ce464db514.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-679268ce464db514.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-679268ce464db514.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-679268ce464db514.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-679268ce464db514.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-679268ce464db514.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-679268ce464db514.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-679268ce464db514.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/v1/route-679268ce464db514.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-679268ce464db514.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-679268ce464db514.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-679268ce464db514.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-679268ce464db514.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-679268ce464db514.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-679268ce464db514.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-679268ce464db514.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-679268ce464db514.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/version/route-679268ce464db514.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-679268ce464db514.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/version/update/route-679268ce464db514.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-016fc417daafa8c4.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-679268ce464db514.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/page-679268ce464db514.js +0 -1
  888. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-679268ce464db514.js +0 -1
  889. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-679268ce464db514.js +0 -1
  890. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-679268ce464db514.js +0 -1
  891. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-679268ce464db514.js +0 -1
  892. package/app/.next-cli-build/static/css/c2f5122f40c47e19.css +0 -1
  893. package/app/.next-cli-build/static/p4jE6g-j-05K8E74ySO-I/_buildManifest.js +0 -1
  894. package/app/cli/.build-home/.krouter/db/backups/upgrade-0.5.115-to-0.5.116-0.5.116-20260718-013135/data.sqlite +0 -0
  895. package/app/cli/.build-home/.krouter/db/backups/upgrade-0.5.116-to-0.5.117-0.5.117-20260718-032541/data.sqlite +0 -0
  896. package/app/cli/.build-home/.krouter/db/backups/upgrade-0.5.117-to-0.5.118-0.5.118-20260718-064958/data.sqlite +0 -0
  897. package/app/cli/.build-home/.krouter/db/backups/upgrade-0.5.118-to-0.5.143-0.5.143-20260822-000036/data.sqlite +0 -0
  898. package/app/cli/.build-home/.krouter/db/data.sqlite +0 -0
  899. package/app/cli/.build-home/.krouter/jwt-secret +0 -1
  900. package/app/cli/.build-home/.krouter/machine-id +0 -1
  901. package/app/cli/.build-home/Library/Preferences/nextjs-nodejs/config.json +0 -7
  902. /package/app/.next-cli-build/static/{p4jE6g-j-05K8E74ySO-I → alT51K3CdFyFBv27IY7wb}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2734,a.ids=[2734],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15106:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>k,dynamic:()=>h,runtime:()=>g});var d=c(23211),e=c(89718),f=c(92765);let g="nodejs",h="force-dynamic",i=new Map;async function j(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}async function k(a){let b,c=new URL(a.url),g=c.searchParams.get("connectionId"),h="1"===c.searchParams.get("force");if(!g)return d.NextResponse.json({success:!1,error:"connectionId is required"},{status:400});if(!h){let a,b=(a=i.get(g))?Date.now()>=a.expiresAt?(i.delete(g),null):a.data:null;if(b)return d.NextResponse.json({...b,cached:!0})}try{b=(await (0,e.getProviderConnections)()).find(a=>a.id===g)}catch(a){return d.NextResponse.json({success:!1,error:`DB read failed: ${a.message}`},{status:500})}if(!b)return d.NextResponse.json({success:!1,error:"Connection not found"},{status:404});let k=b.provider,l=(0,f.UF)(k);if(!l){let a=/^openai-compatible/.test(k),c=/^anthropic-compatible/.test(k),d=b.providerSpecificData?.baseUrl||b.baseUrl;if((a||c)&&d){let a=String(d).replace(/\/$/,""),b=/\/models$/.test(a)?a:`${a}/models`;l=c?{url:b,authHeader:"x-api-key",authPrefix:"",extraHeaders:{"anthropic-version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]}:{url:b,authHeader:"Authorization",authPrefix:"Bearer ",parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}}}if(!l)return d.NextResponse.json({success:!1,error:`No live fetcher for ${k}`,code:"no_fetcher",provider:k},{status:200});let m=b.apiKey||b.accessToken;if(!m)return d.NextResponse.json({success:!1,error:"Connection has no apiKey or accessToken",provider:k},{status:200});try{var n;let{url:a,headers:b}=function(a,b){let c={"Content-Type":"application/json","User-Agent":f.qU,...a.extraHeaders||{}},d=a.url;if(a.authQuery){let c=new URL(d);c.searchParams.set(a.authQuery,b),d=c.toString()}else a.authHeader&&(c[a.authHeader]=`${a.authPrefix||""}${b}`);return{url:d,headers:c}}(l,m),c=await j(a,{method:"GET",headers:b});if(!c.ok){let a=await c.text().catch(()=>"");return d.NextResponse.json({success:!1,provider:k,status:c.status,error:401===c.status||403===c.status?"Invalid credential":`Provider returned ${c.status}`,detail:a.slice(0,200)},{status:200})}let e=await c.json(),h=(n=l.parse?l.parse(e):e?.data||e?.models||[],(Array.isArray(n)?n:[]).filter(a=>a&&(a.id||a.name||a.model)).map(a=>({id:a.id||a.name||a.model,name:a.name||a.displayName||a.id}))),o={success:!0,source:"live",provider:k,count:h.length,models:h,fetchedAtMs:Date.now()};if(i.size>200){let a=i.keys().next().value;a&&i.delete(a)}return i.set(g,{data:o,expiresAt:Date.now()+6e5}),d.NextResponse.json(o)}catch(a){return d.NextResponse.json({success:!1,provider:k,error:a?.name==="AbortError"?"Provider timed out":a?.message||"Fetch failed"},{status:200})}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},35268:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/live-by-connection/route",pathname:"/api/models/live-by-connection",filename:"route",bundlePath:"app/api/models/live-by-connection/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/live-by-connection/route.js",nextConfigOutput:"standalone",userland:()=>c(15106),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/live-by-connection/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q9:()=>d.Q9,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(9248)},92765:(a,b,c)=>{c.d(b,{UF:()=>g,listLiveFetchProviders:()=>h,qU:()=>d});let d="krouter/1.0 (+https://github.com/sifxprime/krouter)",e=(a,b=null)=>({url:a,authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:b,parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}),f={openai:e("https://api.openai.com/v1/models"),openrouter:e("https://openrouter.ai/api/v1/models"),atomesus:e("https://api.atomesus.com/v1/models"),deepseek:e("https://api.deepseek.com/models"),groq:e("https://api.groq.com/openai/v1/models"),xai:e("https://api.x.ai/v1/models"),mistral:e("https://api.mistral.ai/v1/models"),perplexity:e("https://api.perplexity.ai/v1/models"),together:e("https://api.together.xyz/v1/models"),fireworks:e("https://api.fireworks.ai/inference/v1/models"),cerebras:e("https://api.cerebras.ai/v1/models"),cohere:e("https://api.cohere.ai/v1/models"),nebius:e("https://api.studio.nebius.ai/v1/models"),siliconflow:e("https://api.siliconflow.com/v1/models"),hyperbolic:e("https://api.hyperbolic.xyz/v1/models"),featherless:e("https://api.featherless.ai/v1/models"),venice:e("https://api.venice.ai/api/v1/models"),"perplexity-agent":e("https://api.perplexity.ai/v1/models"),chutes:e("https://llm.chutes.ai/v1/models"),nvidia:e("https://integrate.api.nvidia.com/v1/models"),nanobanana:e("https://api.nanobananaapi.ai/v1/models"),assemblyai:e("https://api.assemblyai.com/v1/models"),byteplus:e("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),"volcengine-ark":e("https://ark.cn-beijing.volces.com/api/coding/v3/models"),"vercel-ai-gateway":e("https://ai-gateway.vercel.sh/v1/models"),alicode:e("https://coding.dashscope.aliyuncs.com/v1/models"),"alicode-intl":e("https://coding-intl.dashscope.aliyuncs.com/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},claude:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",authQuery:"key",parse:a=>Array.isArray(a?.models)?a.models.map(a=>({id:a.name?.replace("models/","")||a.id,name:a.displayName||a.name})):[]},glm:e("https://api.z.ai/api/paas/v4/models"),"glm-cn":e("https://open.bigmodel.cn/api/paas/v4/models"),kimi:e("https://api.moonshot.ai/v1/models"),minimax:e("https://api.minimaxi.com/v1/models"),"minimax-cn":e("https://api.minimaxi.com/v1/models"),"xiaomi-mimo":e("https://api.xiaomimimo.com/v1/models"),blackbox:e("https://api.blackbox.ai/v1/models"),commandcode:e("https://api.commandcode.ai/v1/models"),"opencode-go":e("https://opencode.ai/zen/v1/models"),"voyage-ai":e("https://api.voyageai.com/v1/models"),deepgram:{url:"https://api.deepgram.com/v1/models",authHeader:"Authorization",authPrefix:"Token ",parse:a=>Array.isArray(a?.stt)?a.stt.map(a=>({id:a.canonical_name||a.name,name:a.name})):[]},elevenlabs:{url:"https://api.elevenlabs.io/v1/models",authHeader:"xi-api-key",authPrefix:"",parse:a=>Array.isArray(a)?a.map(a=>({id:a.model_id,name:a.name})):[]},cartesia:{url:"https://api.cartesia.ai/voices",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Cartesia-Version":"2024-06-10"},parse:a=>Array.isArray(a)?a.map(a=>({id:a.id,name:a.name})):[]}};function g(a){return f[a]||null}function h(){return Object.keys(f)}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,4884],()=>b(b.s=35268));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2734,a.ids=[2734],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15106:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>k,dynamic:()=>h,runtime:()=>g});var d=c(23211),e=c(89718),f=c(92765);let g="nodejs",h="force-dynamic",i=new Map;async function j(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}async function k(a){let b,c=new URL(a.url),g=c.searchParams.get("connectionId"),h="1"===c.searchParams.get("force");if(!g)return d.NextResponse.json({success:!1,error:"connectionId is required"},{status:400});if(!h){let a,b=(a=i.get(g))?Date.now()>=a.expiresAt?(i.delete(g),null):a.data:null;if(b)return d.NextResponse.json({...b,cached:!0})}try{b=(await (0,e.getProviderConnections)()).find(a=>a.id===g)}catch(a){return d.NextResponse.json({success:!1,error:`DB read failed: ${a.message}`},{status:500})}if(!b)return d.NextResponse.json({success:!1,error:"Connection not found"},{status:404});let k=b.provider,l=(0,f.UF)(k);if(!l){let a=/^openai-compatible/.test(k),c=/^anthropic-compatible/.test(k),d=b.providerSpecificData?.baseUrl||b.baseUrl;if((a||c)&&d){let a=String(d).replace(/\/$/,""),b=/\/models$/.test(a)?a:`${a}/models`;l=c?{url:b,authHeader:"x-api-key",authPrefix:"",extraHeaders:{"anthropic-version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]}:{url:b,authHeader:"Authorization",authPrefix:"Bearer ",parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}}}if(!l)return d.NextResponse.json({success:!1,error:`No live fetcher for ${k}`,code:"no_fetcher",provider:k},{status:200});let m=b.apiKey||b.accessToken;if(!m)return d.NextResponse.json({success:!1,error:"Connection has no apiKey or accessToken",provider:k},{status:200});try{var n;let{url:a,headers:b}=function(a,b){let c={"Content-Type":"application/json","User-Agent":f.qU,...a.extraHeaders||{}},d=a.url;if(a.authQuery){let c=new URL(d);c.searchParams.set(a.authQuery,b),d=c.toString()}else a.authHeader&&(c[a.authHeader]=`${a.authPrefix||""}${b}`);return{url:d,headers:c}}(l,m),c=await j(a,{method:"GET",headers:b});if(!c.ok){let a=await c.text().catch(()=>"");return d.NextResponse.json({success:!1,provider:k,status:c.status,error:401===c.status||403===c.status?"Invalid credential":`Provider returned ${c.status}`,detail:a.slice(0,200)},{status:200})}let e=await c.json(),h=(n=l.parse?l.parse(e):e?.data||e?.models||[],(Array.isArray(n)?n:[]).filter(a=>a&&(a.id||a.name||a.model)).map(a=>({id:a.id||a.name||a.model,name:a.name||a.displayName||a.id}))),o={success:!0,source:"live",provider:k,count:h.length,models:h,fetchedAtMs:Date.now()};if(i.size>200){let a=i.keys().next().value;a&&i.delete(a)}return i.set(g,{data:o,expiresAt:Date.now()+6e5}),d.NextResponse.json(o)}catch(a){return d.NextResponse.json({success:!1,provider:k,error:a?.name==="AbortError"?"Provider timed out":a?.message||"Fetch failed"},{status:200})}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},77766:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/live-by-connection/route",pathname:"/api/models/live-by-connection",filename:"route",bundlePath:"app/api/models/live-by-connection/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/live-by-connection/route.js",nextConfigOutput:"standalone",userland:()=>c(15106),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/live-by-connection/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q9:()=>d.Q9,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(9248)},92765:(a,b,c)=>{c.d(b,{UF:()=>g,listLiveFetchProviders:()=>h,qU:()=>d});let d="krouter/1.0 (+https://github.com/sifxprime/krouter)",e=(a,b=null)=>({url:a,authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:b,parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}),f={openai:e("https://api.openai.com/v1/models"),openrouter:e("https://openrouter.ai/api/v1/models"),atomesus:e("https://api.atomesus.com/v1/models"),deepseek:e("https://api.deepseek.com/models"),groq:e("https://api.groq.com/openai/v1/models"),xai:e("https://api.x.ai/v1/models"),mistral:e("https://api.mistral.ai/v1/models"),perplexity:e("https://api.perplexity.ai/v1/models"),together:e("https://api.together.xyz/v1/models"),fireworks:e("https://api.fireworks.ai/inference/v1/models"),cerebras:e("https://api.cerebras.ai/v1/models"),cohere:e("https://api.cohere.ai/v1/models"),nebius:e("https://api.studio.nebius.ai/v1/models"),siliconflow:e("https://api.siliconflow.com/v1/models"),hyperbolic:e("https://api.hyperbolic.xyz/v1/models"),featherless:e("https://api.featherless.ai/v1/models"),venice:e("https://api.venice.ai/api/v1/models"),"perplexity-agent":e("https://api.perplexity.ai/v1/models"),chutes:e("https://llm.chutes.ai/v1/models"),nvidia:e("https://integrate.api.nvidia.com/v1/models"),nanobanana:e("https://api.nanobananaapi.ai/v1/models"),assemblyai:e("https://api.assemblyai.com/v1/models"),byteplus:e("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),"volcengine-ark":e("https://ark.cn-beijing.volces.com/api/coding/v3/models"),"vercel-ai-gateway":e("https://ai-gateway.vercel.sh/v1/models"),alicode:e("https://coding.dashscope.aliyuncs.com/v1/models"),"alicode-intl":e("https://coding-intl.dashscope.aliyuncs.com/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},claude:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",authQuery:"key",parse:a=>Array.isArray(a?.models)?a.models.map(a=>({id:a.name?.replace("models/","")||a.id,name:a.displayName||a.name})):[]},glm:e("https://api.z.ai/api/paas/v4/models"),"glm-cn":e("https://open.bigmodel.cn/api/paas/v4/models"),kimi:e("https://api.moonshot.ai/v1/models"),minimax:e("https://api.minimaxi.com/v1/models"),"minimax-cn":e("https://api.minimaxi.com/v1/models"),"xiaomi-mimo":e("https://api.xiaomimimo.com/v1/models"),blackbox:e("https://api.blackbox.ai/v1/models"),commandcode:e("https://api.commandcode.ai/v1/models"),"opencode-go":e("https://opencode.ai/zen/v1/models"),"voyage-ai":e("https://api.voyageai.com/v1/models"),deepgram:{url:"https://api.deepgram.com/v1/models",authHeader:"Authorization",authPrefix:"Token ",parse:a=>Array.isArray(a?.stt)?a.stt.map(a=>({id:a.canonical_name||a.name,name:a.name})):[]},elevenlabs:{url:"https://api.elevenlabs.io/v1/models",authHeader:"xi-api-key",authPrefix:"",parse:a=>Array.isArray(a)?a.map(a=>({id:a.model_id,name:a.name})):[]},cartesia:{url:"https://api.cartesia.ai/voices",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Cartesia-Version":"2024-06-10"},parse:a=>Array.isArray(a)?a.map(a=>({id:a.id,name:a.name})):[]}};function g(a){return f[a]||null}function h(){return Object.keys(f)}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,4884],()=>b(b.s=77766));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=6045,a.ids=[6045],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4336:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/preview/route",pathname:"/api/models/preview",filename:"route",bundlePath:"app/api/models/preview/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/preview/route.js",nextConfigOutput:"standalone",userland:()=>c(21681),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/preview/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21681:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>m,POST:()=>l,dynamic:()=>i,runtime:()=>h});var d=c(23211),e=c(77598),f=c.n(e),g=c(92765);let h="nodejs",i="force-dynamic",j=new Map;async function k(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}async function l(a){let b,c,e;try{b=await a.json()}catch{return d.NextResponse.json({success:!1,error:"Invalid JSON body"},{status:400})}let{providerId:h,apiKey:i}=b||{};if(!h||!i)return d.NextResponse.json({success:!1,error:"providerId and apiKey are required"},{status:400});let l=(0,g.UF)(h);if(!l)return d.NextResponse.json({success:!1,error:`No live fetcher registered for ${h}`,code:"no_fetcher"},{status:404});let m=(c=f().createHash("sha1").update(i||"").digest("hex").slice(0,8),`${h}:${c}`),n=(e=j.get(m))?Date.now()>=e.expiresAt?(j.delete(m),null):e.data:null;if(n)return d.NextResponse.json({...n,cached:!0});try{var o;let{url:a,headers:b}=function(a,b){let c={"Content-Type":"application/json","User-Agent":g.qU,...a.extraHeaders||{}},d=a.url;if(a.authQuery){let c=new URL(d);c.searchParams.set(a.authQuery,b),d=c.toString()}else a.authHeader&&(c[a.authHeader]=`${a.authPrefix||""}${b}`);return{url:d,headers:c}}(l,i),c=await k(a,{method:"GET",headers:b});if(!c.ok){let a=await c.text().catch(()=>"");return d.NextResponse.json({success:!1,status:c.status,error:401===c.status||403===c.status?"Invalid API key":`Provider returned ${c.status}`,detail:a.slice(0,200)},{status:200})}let e=await c.json(),f=(o=l.parse?l.parse(e):e?.data||e?.models||[],(Array.isArray(o)?o:[]).filter(a=>a&&(a.id||a.name||a.model)).map(a=>({id:a.id||a.name||a.model,name:a.name||a.displayName||a.id}))),n={success:!0,source:"live",providerId:h,count:f.length,models:f,fetchedAtMs:Date.now()};if(j.size>200){let a=j.keys().next().value;a&&j.delete(a)}return j.set(m,{data:n,expiresAt:Date.now()+6e5}),d.NextResponse.json(n)}catch(a){return d.NextResponse.json({success:!1,error:a?.name==="AbortError"?"Provider timed out":a?.message||"Fetch failed"},{status:200})}}async function m(a){let b=new URL(a.url).searchParams.get("providerId");if(b)return d.NextResponse.json({providerId:b,supported:!!(0,g.UF)(b)});let{listLiveFetchProviders:e}=await Promise.resolve().then(c.bind(c,92765));return d.NextResponse.json({supported:e()})}},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92765:(a,b,c)=>{"use strict";c.d(b,{UF:()=>g,listLiveFetchProviders:()=>h,qU:()=>d});let d="krouter/1.0 (+https://github.com/sifxprime/krouter)",e=(a,b=null)=>({url:a,authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:b,parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}),f={openai:e("https://api.openai.com/v1/models"),openrouter:e("https://openrouter.ai/api/v1/models"),atomesus:e("https://api.atomesus.com/v1/models"),deepseek:e("https://api.deepseek.com/models"),groq:e("https://api.groq.com/openai/v1/models"),xai:e("https://api.x.ai/v1/models"),mistral:e("https://api.mistral.ai/v1/models"),perplexity:e("https://api.perplexity.ai/v1/models"),together:e("https://api.together.xyz/v1/models"),fireworks:e("https://api.fireworks.ai/inference/v1/models"),cerebras:e("https://api.cerebras.ai/v1/models"),cohere:e("https://api.cohere.ai/v1/models"),nebius:e("https://api.studio.nebius.ai/v1/models"),siliconflow:e("https://api.siliconflow.com/v1/models"),hyperbolic:e("https://api.hyperbolic.xyz/v1/models"),featherless:e("https://api.featherless.ai/v1/models"),venice:e("https://api.venice.ai/api/v1/models"),"perplexity-agent":e("https://api.perplexity.ai/v1/models"),chutes:e("https://llm.chutes.ai/v1/models"),nvidia:e("https://integrate.api.nvidia.com/v1/models"),nanobanana:e("https://api.nanobananaapi.ai/v1/models"),assemblyai:e("https://api.assemblyai.com/v1/models"),byteplus:e("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),"volcengine-ark":e("https://ark.cn-beijing.volces.com/api/coding/v3/models"),"vercel-ai-gateway":e("https://ai-gateway.vercel.sh/v1/models"),alicode:e("https://coding.dashscope.aliyuncs.com/v1/models"),"alicode-intl":e("https://coding-intl.dashscope.aliyuncs.com/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},claude:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",authQuery:"key",parse:a=>Array.isArray(a?.models)?a.models.map(a=>({id:a.name?.replace("models/","")||a.id,name:a.displayName||a.name})):[]},glm:e("https://api.z.ai/api/paas/v4/models"),"glm-cn":e("https://open.bigmodel.cn/api/paas/v4/models"),kimi:e("https://api.moonshot.ai/v1/models"),minimax:e("https://api.minimaxi.com/v1/models"),"minimax-cn":e("https://api.minimaxi.com/v1/models"),"xiaomi-mimo":e("https://api.xiaomimimo.com/v1/models"),blackbox:e("https://api.blackbox.ai/v1/models"),commandcode:e("https://api.commandcode.ai/v1/models"),"opencode-go":e("https://opencode.ai/zen/v1/models"),"voyage-ai":e("https://api.voyageai.com/v1/models"),deepgram:{url:"https://api.deepgram.com/v1/models",authHeader:"Authorization",authPrefix:"Token ",parse:a=>Array.isArray(a?.stt)?a.stt.map(a=>({id:a.canonical_name||a.name,name:a.name})):[]},elevenlabs:{url:"https://api.elevenlabs.io/v1/models",authHeader:"xi-api-key",authPrefix:"",parse:a=>Array.isArray(a)?a.map(a=>({id:a.model_id,name:a.name})):[]},cartesia:{url:"https://api.cartesia.ai/voices",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Cartesia-Version":"2024-06-10"},parse:a=>Array.isArray(a)?a.map(a=>({id:a.id,name:a.name})):[]}};function g(a){return f[a]||null}function h(){return Object.keys(f)}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=4336));module.exports=c})();
1
+ (()=>{var a={};a.id=6045,a.ids=[6045],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21681:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>m,POST:()=>l,dynamic:()=>i,runtime:()=>h});var d=c(23211),e=c(77598),f=c.n(e),g=c(92765);let h="nodejs",i="force-dynamic",j=new Map;async function k(a,b){let c=new AbortController,d=setTimeout(()=>c.abort(),1e4);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}async function l(a){let b,c,e;try{b=await a.json()}catch{return d.NextResponse.json({success:!1,error:"Invalid JSON body"},{status:400})}let{providerId:h,apiKey:i}=b||{};if(!h||!i)return d.NextResponse.json({success:!1,error:"providerId and apiKey are required"},{status:400});let l=(0,g.UF)(h);if(!l)return d.NextResponse.json({success:!1,error:`No live fetcher registered for ${h}`,code:"no_fetcher"},{status:404});let m=(c=f().createHash("sha1").update(i||"").digest("hex").slice(0,8),`${h}:${c}`),n=(e=j.get(m))?Date.now()>=e.expiresAt?(j.delete(m),null):e.data:null;if(n)return d.NextResponse.json({...n,cached:!0});try{var o;let{url:a,headers:b}=function(a,b){let c={"Content-Type":"application/json","User-Agent":g.qU,...a.extraHeaders||{}},d=a.url;if(a.authQuery){let c=new URL(d);c.searchParams.set(a.authQuery,b),d=c.toString()}else a.authHeader&&(c[a.authHeader]=`${a.authPrefix||""}${b}`);return{url:d,headers:c}}(l,i),c=await k(a,{method:"GET",headers:b});if(!c.ok){let a=await c.text().catch(()=>"");return d.NextResponse.json({success:!1,status:c.status,error:401===c.status||403===c.status?"Invalid API key":`Provider returned ${c.status}`,detail:a.slice(0,200)},{status:200})}let e=await c.json(),f=(o=l.parse?l.parse(e):e?.data||e?.models||[],(Array.isArray(o)?o:[]).filter(a=>a&&(a.id||a.name||a.model)).map(a=>({id:a.id||a.name||a.model,name:a.name||a.displayName||a.id}))),n={success:!0,source:"live",providerId:h,count:f.length,models:f,fetchedAtMs:Date.now()};if(j.size>200){let a=j.keys().next().value;a&&j.delete(a)}return j.set(m,{data:n,expiresAt:Date.now()+6e5}),d.NextResponse.json(n)}catch(a){return d.NextResponse.json({success:!1,error:a?.name==="AbortError"?"Provider timed out":a?.message||"Fetch failed"},{status:200})}}async function m(a){let b=new URL(a.url).searchParams.get("providerId");if(b)return d.NextResponse.json({providerId:b,supported:!!(0,g.UF)(b)});let{listLiveFetchProviders:e}=await Promise.resolve().then(c.bind(c,92765));return d.NextResponse.json({supported:e()})}},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87578:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/preview/route",pathname:"/api/models/preview",filename:"route",bundlePath:"app/api/models/preview/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/preview/route.js",nextConfigOutput:"standalone",userland:()=>c(21681),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/preview/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},92765:(a,b,c)=>{"use strict";c.d(b,{UF:()=>g,listLiveFetchProviders:()=>h,qU:()=>d});let d="krouter/1.0 (+https://github.com/sifxprime/krouter)",e=(a,b=null)=>({url:a,authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:b,parse:a=>Array.isArray(a?.data)?a.data:Array.isArray(a?.models)?a.models:[]}),f={openai:e("https://api.openai.com/v1/models"),openrouter:e("https://openrouter.ai/api/v1/models"),atomesus:e("https://api.atomesus.com/v1/models"),deepseek:e("https://api.deepseek.com/models"),groq:e("https://api.groq.com/openai/v1/models"),xai:e("https://api.x.ai/v1/models"),mistral:e("https://api.mistral.ai/v1/models"),perplexity:e("https://api.perplexity.ai/v1/models"),together:e("https://api.together.xyz/v1/models"),fireworks:e("https://api.fireworks.ai/inference/v1/models"),cerebras:e("https://api.cerebras.ai/v1/models"),cohere:e("https://api.cohere.ai/v1/models"),nebius:e("https://api.studio.nebius.ai/v1/models"),siliconflow:e("https://api.siliconflow.com/v1/models"),hyperbolic:e("https://api.hyperbolic.xyz/v1/models"),featherless:e("https://api.featherless.ai/v1/models"),venice:e("https://api.venice.ai/api/v1/models"),"perplexity-agent":e("https://api.perplexity.ai/v1/models"),chutes:e("https://llm.chutes.ai/v1/models"),nvidia:e("https://integrate.api.nvidia.com/v1/models"),nanobanana:e("https://api.nanobananaapi.ai/v1/models"),assemblyai:e("https://api.assemblyai.com/v1/models"),byteplus:e("https://ark.ap-southeast.bytepluses.com/api/coding/v3/models"),"volcengine-ark":e("https://ark.cn-beijing.volces.com/api/coding/v3/models"),"vercel-ai-gateway":e("https://ai-gateway.vercel.sh/v1/models"),alicode:e("https://coding.dashscope.aliyuncs.com/v1/models"),"alicode-intl":e("https://coding-intl.dashscope.aliyuncs.com/v1/models"),anthropic:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},claude:{url:"https://api.anthropic.com/v1/models",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Anthropic-Version":"2023-06-01"},parse:a=>Array.isArray(a?.data)?a.data:[]},gemini:{url:"https://generativelanguage.googleapis.com/v1beta/models",authQuery:"key",parse:a=>Array.isArray(a?.models)?a.models.map(a=>({id:a.name?.replace("models/","")||a.id,name:a.displayName||a.name})):[]},glm:e("https://api.z.ai/api/paas/v4/models"),"glm-cn":e("https://open.bigmodel.cn/api/paas/v4/models"),kimi:e("https://api.moonshot.ai/v1/models"),minimax:e("https://api.minimaxi.com/v1/models"),"minimax-cn":e("https://api.minimaxi.com/v1/models"),"xiaomi-mimo":e("https://api.xiaomimimo.com/v1/models"),blackbox:e("https://api.blackbox.ai/v1/models"),commandcode:e("https://api.commandcode.ai/v1/models"),"opencode-go":e("https://opencode.ai/zen/v1/models"),"voyage-ai":e("https://api.voyageai.com/v1/models"),deepgram:{url:"https://api.deepgram.com/v1/models",authHeader:"Authorization",authPrefix:"Token ",parse:a=>Array.isArray(a?.stt)?a.stt.map(a=>({id:a.canonical_name||a.name,name:a.name})):[]},elevenlabs:{url:"https://api.elevenlabs.io/v1/models",authHeader:"xi-api-key",authPrefix:"",parse:a=>Array.isArray(a)?a.map(a=>({id:a.model_id,name:a.name})):[]},cartesia:{url:"https://api.cartesia.ai/voices",authHeader:"x-api-key",authPrefix:"",extraHeaders:{"Cartesia-Version":"2024-06-10"},parse:a=>Array.isArray(a)?a.map(a=>({id:a.id,name:a.name})):[]}};function g(a){return f[a]||null}function h(){return Object.keys(f)}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=87578));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=552,a.ids=[552,1998],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15798:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>i,PUT:()=>j});var d=c(23211),e=c(71998),f=c(16655),g=c(30869),h=c(75681);async function i(){try{let a=await (0,e.OM)(),b=await (0,f.vF)(),c=g.eh.filter(a=>!(b[(0,h.wG)(a.provider)||a.provider]||b[a.provider]||[]).includes(a.model)).map(b=>{let c=`${b.provider}/${b.model}`;return{...b,fullModel:c,alias:a[c]||b.model}});return d.NextResponse.json({models:c})}catch(a){return console.log("Error fetching models:",a),d.NextResponse.json({error:"Failed to fetch models"},{status:500})}}async function j(a){try{let{model:b,alias:c}=await a.json();if(!b||!c)return d.NextResponse.json({error:"Model and alias required"},{status:400});let f=await (0,e.OM)();if(Object.entries(f).find(([a,d])=>d===c&&a!==b))return d.NextResponse.json({error:"Alias already in use"},{status:400});return await (0,e.o5)(b,c),d.NextResponse.json({success:!0,model:b,alias:c})}catch(a){return console.log("Error updating alias:",a),d.NextResponse.json({error:"Failed to update alias"},{status:500})}}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(9248)},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30869:(a,b,c)=>{c.d(b,{AA:()=>h,Rg:()=>i,UY:()=>j,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"@sifxprime/krouter",installCmd:"npm i -g @sifxprime/krouter",installCmdLatest:"npm i -g @sifxprime/krouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={settingsKey:"claudeAutoPing",tickIntervalMs:6e4,pingLeadMs:5e3,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1,refreshAheadMs:3e5,fiveHourKey:"session (5h)"},i={settingsKey:"codexAutoPing",tickIntervalMs:6e4,pingLeadMs:5e3,pingModel:"gpt-5-mini",pingText:"hi",pingMaxTokens:1,refreshAheadMs:3e5,fiveHourKey:"session"},j={maxLines:200,pollIntervalMs:1e3},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},33873:a=>{a.exports=require("path")},39006:a=>{a.exports={rE:"0.5.144"}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(44404);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q9:()=>d.Q9,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(9248)},92422:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/route",pathname:"/api/models",filename:"route",bundlePath:"app/api/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/route.js",nextConfigOutput:"standalone",userland:()=>c(15798),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,4884,5024,5681,4404],()=>b(b.s=92422));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=552,a.ids=[552,1998],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15798:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>i,PUT:()=>j});var d=c(23211),e=c(71998),f=c(16655),g=c(30869),h=c(75681);async function i(){try{let a=await (0,e.OM)(),b=await (0,f.vF)(),c=g.eh.filter(a=>!(b[(0,h.wG)(a.provider)||a.provider]||b[a.provider]||[]).includes(a.model)).map(b=>{let c=`${b.provider}/${b.model}`;return{...b,fullModel:c,alias:a[c]||b.model}});return d.NextResponse.json({models:c})}catch(a){return console.log("Error fetching models:",a),d.NextResponse.json({error:"Failed to fetch models"},{status:500})}}async function j(a){try{let{model:b,alias:c}=await a.json();if(!b||!c)return d.NextResponse.json({error:"Model and alias required"},{status:400});let f=await (0,e.OM)();if(Object.entries(f).find(([a,d])=>d===c&&a!==b))return d.NextResponse.json({error:"Alias already in use"},{status:400});return await (0,e.o5)(b,c),d.NextResponse.json({success:!0,model:b,alias:c})}catch(a){return console.log("Error updating alias:",a),d.NextResponse.json({error:"Failed to update alias"},{status:500})}}},16655:(a,b,c)=>{c.d(b,{oF:()=>d.oF,tm:()=>d.tm,vF:()=>d.vF});var d=c(9248)},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30869:(a,b,c)=>{c.d(b,{AA:()=>h,Rg:()=>i,UY:()=>j,X3:()=>k,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"@sifxprime/krouter",installCmd:"npm i -g @sifxprime/krouter",installCmdLatest:"npm i -g @sifxprime/krouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20128},h={settingsKey:"claudeAutoPing",tickIntervalMs:6e4,pingLeadMs:5e3,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1,refreshAheadMs:3e5,fiveHourKey:"session (5h)"},i={settingsKey:"codexAutoPing",tickIntervalMs:6e4,pingLeadMs:5e3,pingModel:"gpt-5-mini",pingText:"hi",pingMaxTokens:1,refreshAheadMs:3e5,fiveHourKey:"session"},j={maxLines:200,pollIntervalMs:1e3},k={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},33873:a=>{a.exports=require("path")},39006:a=>{a.exports={rE:"0.5.146"}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},52692:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/route",pathname:"/api/models",filename:"route",bundlePath:"app/api/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/route.js",nextConfigOutput:"standalone",userland:()=>c(15798),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(44404);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q9:()=>d.Q9,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(9248)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,4884,5024,5681,4404],()=>b(b.s=52692));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2919,a.ids=[2919],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50577:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(38238);async function f(a){try{let{model:b,kind:c}=await a.json();if(!b)return d.NextResponse.json({error:"Model required"},{status:400});let f=await (0,e.P)(b,c||"llm");return d.NextResponse.json(f)}catch(a){return d.NextResponse.json({ok:!1,error:a.message},{status:500})}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86066:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/test/route",pathname:"/api/models/test",filename:"route",bundlePath:"app/api/models/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/test/route.js",nextConfigOutput:"standalone",userland:()=>c(50577),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/test/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,4884,5024,5681,4404,8238],()=>b(b.s=86066));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2919,a.ids=[2919],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4712:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/test/route",pathname:"/api/models/test",filename:"route",bundlePath:"app/api/models/test/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/models/test/route.js",nextConfigOutput:"standalone",userland:()=>c(50577),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/test/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50577:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(38238);async function f(a){try{let{model:b,kind:c}=await a.json();if(!b)return d.NextResponse.json({error:"Model required"},{status:400});let f=await (0,e.P)(b,c||"llm");return d.NextResponse.json(f)}catch(a){return d.NextResponse.json({ok:!1,error:a.message},{status:500})}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,595,4884,5024,5681,4404,8238],()=>b(b.s=4712));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=9088,a.ids=[1998,9088],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},56632:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,POST:()=>l});var e=c(23211),f=c(74177),g=c(71998),h=c(22898),i=a([f]);async function j(a,b){let c=b?(0,h.ZP)(b):null;if(!c)throw Error("xAI OAuth session not found; restart the login flow and paste the code again");if(!a)throw Error("Missing xAI authorization code");try{let d=await (0,f.exchangeTokens)("xai",a,c.redirectUri,c.codeVerifier,b),e=await (0,g.createProviderConnection)({provider:"xai",authType:"oauth",...d,expiresAt:d.expiresIn?new Date(Date.now()+1e3*d.expiresIn).toISOString():null,testStatus:"active"});return(0,h.uw)(b),(0,h.nu)(),{id:e.id,provider:e.provider,email:e.email,displayName:e.displayName}}catch(a){throw(0,h.uw)(b),(0,h.nu)(),a}}async function k(a,{params:b}){try{let{provider:c,action:d}=await b,{searchParams:g}=new URL(a.url);if("authorize"===d){let a=g.get("redirect_uri")||"http://localhost:8080/callback",b=new Set(["redirect_uri"]),d={};g.forEach((a,c)=>{b.has(c)||(d[c]=a)});let h=await (0,f.kP)(c,a,Object.keys(d).length?d:void 0);return e.NextResponse.json(h)}if("start-proxy"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Proxy only supported for codex/xai"},{status:400});let a=g.get("app_port");if(!a)return e.NextResponse.json({error:"Missing app_port"},{status:400});let b=g.get("state"),d=g.get("code_verifier"),f=g.get("redirect_uri"),i="xai"===c?await (0,h.jl)(Number(a)):await (0,h.Y0)(Number(a)),j=!1;return i.success&&b&&d&&f&&(j="xai"===c?(0,h._V)({state:b,codeVerifier:d,redirectUri:f}):(0,h.Hd)({state:b,codeVerifier:d,redirectUri:f})),e.NextResponse.json({...i,serverSide:j})}if("poll-status"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Poll only supported for codex/xai"},{status:400});let a=g.get("state");if(!a)return e.NextResponse.json({error:"Missing state"},{status:400});let b="xai"===c?(0,h.ZP)(a):(0,h.cn)(a);if(!b)return e.NextResponse.json({status:"unknown"});if("done"===b.status||"error"===b.status){let d={...b};return"xai"===c?(0,h.uw)(a):(0,h.dR)(a),e.NextResponse.json(d)}return e.NextResponse.json({status:b.status})}if("stop-proxy"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Proxy only supported for codex/xai"},{status:400});return"xai"===c?(0,h.nu)():(0,h.IF)(),e.NextResponse.json({success:!0})}if("device-code"===d){let a,b=(0,f.sO)(c);if("device_code"!==b.flowType)return e.NextResponse.json({error:"Provider does not support device code flow"},{status:400});let d=await (0,f.kP)(c,null),h=g.get("start_url"),i=g.get("region"),j=g.get("auth_method"),k="kiro"===c?{...h?{startUrl:h}:{},...i?{region:i}:{},...j?{authMethod:j}:{}}:void 0;return a=["github","kiro","kimi-coding","kilocode","codebuddy-cn","qoder","grok-cli"].includes(c)?await (0,f.Re)(c,void 0,k):await (0,f.Re)(c,d.codeChallenge,k),e.NextResponse.json({...a,codeVerifier:a.codeVerifier||d.codeVerifier})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth GET error:",a),e.NextResponse.json({error:a.message},{status:500})}}async function l(a,{params:b}){try{let d,{provider:h,action:i}=await b;try{d=await a.json()}catch{return e.NextResponse.json({error:"Invalid or empty request body"},{status:400})}if("exchange"===i){let{code:a,redirectUri:b,codeVerifier:i,state:j,meta:k}=d;if(a&&a.startsWith("eyJ")&&a.includes(".")){let{extractCodexAccountInfo:b}=await Promise.resolve().then(c.bind(c,74177)),d=b(a),f={};try{let b=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);f=JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{}let i=d.chatgptAccountId||f.account_id,j=d.chatgptPlanType||f.plan_type,k=d.email||f.email,l={authMethod:"access_token"};i&&(l.chatgptAccountId=i),j&&(l.chatgptPlanType=j);let m=await (0,g.createProviderConnection)({provider:h,authType:"access_token",accessToken:a,email:k||null,providerSpecificData:l,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if(!a||!b||!i&&!["cline","clinepass","kimchi"].includes(h))return e.NextResponse.json({error:"Missing required fields"},{status:400});let l=await (0,f.exchangeTokens)(h,a,b,i,j,k),m=await (0,g.createProviderConnection)({provider:h,authType:"oauth",...l,expiresAt:l.expiresIn?new Date(Date.now()+1e3*l.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if("poll"===i){let a,{deviceCode:b,codeVerifier:c,extraData:i}=d;if(!b)return e.NextResponse.json({error:"Missing device code"},{status:400});if(["github","kimi-coding","kilocode","codebuddy-cn"].includes(h))a=await (0,f.Su)(h,b);else if("kiro"===h)a=await (0,f.Su)(h,b,null,i);else if("qoder"===h){if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(h,b,c,i)}else{if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(h,b,c)}if(a.success){let b=await (0,g.createProviderConnection)({provider:h,authType:"oauth",...a.tokens,expiresAt:a.tokens.expiresIn?new Date(Date.now()+1e3*a.tokens.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:b.id,provider:b.provider}})}let j=a.pending||"authorization_pending"===a.error||"slow_down"===a.error;return e.NextResponse.json({success:!1,error:a.error,errorDescription:a.errorDescription,pending:j})}if("manual-code"===i){if("xai"!==h)return e.NextResponse.json({error:"Manual code only supported for xai"},{status:400});let{code:a,state:b}=d,c=await j(String(a||"").trim(),String(b||"").trim());return e.NextResponse.json({success:!0,connection:c})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth POST error:",a),e.NextResponse.json({error:a.message},{status:500})}}f=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},71622:a=>{a.exports=import("open")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},97940:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/[provider]/[action]/route",pathname:"/api/oauth/[provider]/[action]",filename:"route",bundlePath:"app/api/oauth/[provider]/[action]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/oauth/[provider]/[action]/route.js",nextConfigOutput:"standalone",userland:()=>c(56632),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/[provider]/[action]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,4884,5024,4404,4315,8590,4746,6306,7276,8361,5330,8895,4177,5470],()=>b(b.s=97940));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=9088,a.ids=[1998,9088],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},56632:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,POST:()=>l});var e=c(23211),f=c(74177),g=c(71998),h=c(22898),i=a([f]);async function j(a,b){let c=b?(0,h.ZP)(b):null;if(!c)throw Error("xAI OAuth session not found; restart the login flow and paste the code again");if(!a)throw Error("Missing xAI authorization code");try{let d=await (0,f.exchangeTokens)("xai",a,c.redirectUri,c.codeVerifier,b),e=await (0,g.createProviderConnection)({provider:"xai",authType:"oauth",...d,expiresAt:d.expiresIn?new Date(Date.now()+1e3*d.expiresIn).toISOString():null,testStatus:"active"});return(0,h.uw)(b),(0,h.nu)(),{id:e.id,provider:e.provider,email:e.email,displayName:e.displayName}}catch(a){throw(0,h.uw)(b),(0,h.nu)(),a}}async function k(a,{params:b}){try{let{provider:c,action:d}=await b,{searchParams:g}=new URL(a.url);if("authorize"===d){let a=g.get("redirect_uri")||"http://localhost:8080/callback",b=new Set(["redirect_uri"]),d={};g.forEach((a,c)=>{b.has(c)||(d[c]=a)});let h=await (0,f.kP)(c,a,Object.keys(d).length?d:void 0);return e.NextResponse.json(h)}if("start-proxy"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Proxy only supported for codex/xai"},{status:400});let a=g.get("app_port");if(!a)return e.NextResponse.json({error:"Missing app_port"},{status:400});let b=g.get("state"),d=g.get("code_verifier"),f=g.get("redirect_uri"),i="xai"===c?await (0,h.jl)(Number(a)):await (0,h.Y0)(Number(a)),j=!1;return i.success&&b&&d&&f&&(j="xai"===c?(0,h._V)({state:b,codeVerifier:d,redirectUri:f}):(0,h.Hd)({state:b,codeVerifier:d,redirectUri:f})),e.NextResponse.json({...i,serverSide:j})}if("poll-status"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Poll only supported for codex/xai"},{status:400});let a=g.get("state");if(!a)return e.NextResponse.json({error:"Missing state"},{status:400});let b="xai"===c?(0,h.ZP)(a):(0,h.cn)(a);if(!b)return e.NextResponse.json({status:"unknown"});if("done"===b.status||"error"===b.status){let d={...b};return"xai"===c?(0,h.uw)(a):(0,h.dR)(a),e.NextResponse.json(d)}return e.NextResponse.json({status:b.status})}if("stop-proxy"===d){if(!["codex","xai"].includes(c))return e.NextResponse.json({error:"Proxy only supported for codex/xai"},{status:400});return"xai"===c?(0,h.nu)():(0,h.IF)(),e.NextResponse.json({success:!0})}if("device-code"===d){let a,b=(0,f.sO)(c);if("device_code"!==b.flowType)return e.NextResponse.json({error:"Provider does not support device code flow"},{status:400});let d=await (0,f.kP)(c,null),h=g.get("start_url"),i=g.get("region"),j=g.get("auth_method"),k="kiro"===c?{...h?{startUrl:h}:{},...i?{region:i}:{},...j?{authMethod:j}:{}}:void 0;return a=["github","kiro","kimi-coding","kilocode","codebuddy-cn","qoder","grok-cli"].includes(c)?await (0,f.Re)(c,void 0,k):await (0,f.Re)(c,d.codeChallenge,k),e.NextResponse.json({...a,codeVerifier:a.codeVerifier||d.codeVerifier})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth GET error:",a),e.NextResponse.json({error:a.message},{status:500})}}async function l(a,{params:b}){try{let d,{provider:h,action:i}=await b;try{d=await a.json()}catch{return e.NextResponse.json({error:"Invalid or empty request body"},{status:400})}if("exchange"===i){let{code:a,redirectUri:b,codeVerifier:i,state:j,meta:k}=d;if(a&&a.startsWith("eyJ")&&a.includes(".")){let{extractCodexAccountInfo:b}=await Promise.resolve().then(c.bind(c,74177)),d=b(a),f={};try{let b=a.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),c=b+"=".repeat((4-b.length%4)%4);f=JSON.parse(Buffer.from(c,"base64").toString("utf8"))}catch{}let i=d.chatgptAccountId||f.account_id,j=d.chatgptPlanType||f.plan_type,k=d.email||f.email,l={authMethod:"access_token"};i&&(l.chatgptAccountId=i),j&&(l.chatgptPlanType=j);let m=await (0,g.createProviderConnection)({provider:h,authType:"access_token",accessToken:a,email:k||null,providerSpecificData:l,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if(!a||!b||!i&&!["cline","clinepass","kimchi"].includes(h))return e.NextResponse.json({error:"Missing required fields"},{status:400});let l=await (0,f.exchangeTokens)(h,a,b,i,j,k),m=await (0,g.createProviderConnection)({provider:h,authType:"oauth",...l,expiresAt:l.expiresIn?new Date(Date.now()+1e3*l.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:m.id,provider:m.provider,email:m.email,displayName:m.displayName}})}if("poll"===i){let a,{deviceCode:b,codeVerifier:c,extraData:i}=d;if(!b)return e.NextResponse.json({error:"Missing device code"},{status:400});if(["github","kimi-coding","kilocode","codebuddy-cn"].includes(h))a=await (0,f.Su)(h,b);else if("kiro"===h)a=await (0,f.Su)(h,b,null,i);else if("qoder"===h){if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(h,b,c,i)}else{if(!c)return e.NextResponse.json({error:"Missing code verifier"},{status:400});a=await (0,f.Su)(h,b,c)}if(a.success){let b=await (0,g.createProviderConnection)({provider:h,authType:"oauth",...a.tokens,expiresAt:a.tokens.expiresIn?new Date(Date.now()+1e3*a.tokens.expiresIn).toISOString():null,testStatus:"active"});return e.NextResponse.json({success:!0,connection:{id:b.id,provider:b.provider}})}let j=a.pending||"authorization_pending"===a.error||"slow_down"===a.error;return e.NextResponse.json({success:!1,error:a.error,errorDescription:a.errorDescription,pending:j})}if("manual-code"===i){if("xai"!==h)return e.NextResponse.json({error:"Manual code only supported for xai"},{status:400});let{code:a,state:b}=d,c=await j(String(a||"").trim(),String(b||"").trim());return e.NextResponse.json({success:!0,connection:c})}return e.NextResponse.json({error:"Unknown action"},{status:400})}catch(a){return console.log("OAuth POST error:",a),e.NextResponse.json({error:a.message},{status:500})}}f=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},71622:a=>{a.exports=import("open")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},99126:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/[provider]/[action]/route",pathname:"/api/oauth/[provider]/[action]",filename:"route",bundlePath:"app/api/oauth/[provider]/[action]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/oauth/[provider]/[action]/route.js",nextConfigOutput:"standalone",userland:()=>c(56632),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/[provider]/[action]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,4884,5024,4404,4315,8590,4746,6306,7276,8361,5330,8895,4177,5470],()=>b(b.s=99126));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=4648,a.ids=[1998,3405,4648],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67668:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>i});var e=c(23211),f=c(71998),g=c(74177),h=a([g]);async function i(a){let b,c;try{b=await a.json()}catch(a){return e.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null,!Array.isArray(c)||0===c.length)return e.NextResponse.json({error:"No accounts provided"},{status:400});let d=[],h=0,i=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let{id:c,provider:e,authType:i,createdAt:j,updatedAt:k,...l}=b;if(!l.accessToken||"string"!=typeof l.accessToken)throw Error("Missing accessToken");let m=l.providerSpecificData||{},n=!l.email,o=!m.chatgptAccountId,p=!m.chatgptPlanType;if(n||o||p){let a=(0,g.extractCodexAccountInfo)(l.idToken||l.accessToken)||{};n&&a.email&&(l.email=a.email),o&&a.chatgptAccountId&&(m.chatgptAccountId=a.chatgptAccountId),p&&a.chatgptPlanType&&(m.chatgptPlanType=a.chatgptPlanType)}Object.keys(m).length>0&&(l.providerSpecificData=m),!l.expiresAt&&"number"==typeof l.expiresIn&&l.expiresIn>0&&(l.expiresAt=new Date(Date.now()+1e3*l.expiresIn).toISOString()),void 0===l.testStatus&&(l.testStatus="active"),void 0===l.isActive&&(l.isActive=!0),l.lastRefreshAt||(l.lastRefreshAt=new Date().toISOString());let q=await (0,f.createProviderConnection)({provider:"codex",authType:"oauth",...l});d.push({index:a,ok:!0,id:q.id}),h++}catch(b){d.push({index:a,ok:!1,error:b.message||"Unknown error"}),i++}}return e.NextResponse.json({success:h,failed:i,results:d})}g=(h.then?(await h)():h)[0],d()}catch(a){d(a)}})},71553:a=>{a.exports=require("node:dns/promises")},71622:a=>{a.exports=import("open")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73159:(a,b,c)=>{c.d(b,{Ue:()=>j,oT:()=>k,xz:()=>d});let d="b1a00492-073a-47ea-816f-4c329264a828",e="https://auth.x.ai",f="/oauth2/authorize",g="/oauth2/token",h="/.well-known/openid-configuration",i="/callback",j=96,k={clientId:d,issuer:e,authEndpointPath:f,tokenEndpointPath:g,discoveryPath:h,authorizeUrl:`${e}${f}`,tokenUrl:`${e}${g}`,discoveryUrl:`${e}${h}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${i}`,loopbackPort:56121,callbackPath:i,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},88284:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codex/bulk-import/route",pathname:"/api/oauth/codex/bulk-import",filename:"route",bundlePath:"app/api/oauth/codex/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/oauth/codex/bulk-import/route.js",nextConfigOutput:"standalone",userland:()=>c(67668),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codex/bulk-import/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},92990:(a,b,c)=>{c.d(b,{DI:()=>h,Hp:()=>j,LT:()=>i,MZ:()=>u,Nl:()=>A,Nu:()=>o,OV:()=>g,S6:()=>q,Td:()=>x,Tx:()=>r,WN:()=>s,Ww:()=>B,YT:()=>m,ZL:()=>l,cD:()=>n,f7:()=>z,hF:()=>k,lB:()=>v,qp:()=>w,t:()=>t,w1:()=>y});var d=c(21820),e=c(73159);function f(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let g={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},h={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},i={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},j={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},k={openApiBaseUrl:"https://openapi.qoder.sh",centerBaseUrl:"https://center.qoder.sh",chatBaseUrl:"https://api3.qoder.sh",deviceTokenUrl:"https://openapi.qoder.sh/api/v1/deviceToken/poll",refreshUrl:"https://center.qoder.sh/algo/api/v3/user/refresh_token",userInfoUrl:"https://openapi.qoder.sh/api/v1/userinfo",quotaUsageUrl:"https://openapi.qoder.sh/api/v2/quota/usage",loginUrl:"https://qoder.com/device/selectAccounts"},l={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},m={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:f(),pluginType:2})};function n(){return{ideType:9,platform:f(),pluginType:2}}let o={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},p=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function q(a){if("string"!=typeof a||!p.test(a))throw Error("Invalid region");return a}let r={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",socialClientId:process.env.KIRO_OAUTH_CLIENT_ID||"kiro-cli",socialDeviceAuthorizeUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/device/authorization",socialDevicePollUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/device/poll",authMethods:["builder-id","idc","google","github","import"]},s={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},t={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},u={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},v={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},w={clientId:e.xz,deviceCodeUrl:"https://auth.x.ai/oauth2/device/code",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token",scope:"openid profile email offline_access grok-cli:access api:access conversations:read conversations:write",referrer:"grok-build",pollInterval:5e3},x={webAppUrl:"https://app.kimchi.dev",validationUrl:"https://api.cast.ai/v1/llm/openai/supported-providers",userInfoUrl:"https://app.kimchi.dev/api/v1/me",modelsUrl:"https://llm.kimchi.dev/v1/models/metadata?include_in_cli=true"},y={...v},z={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},A={baseUrl:"https://copilot.tencent.com",stateUrl:"https://copilot.tencent.com/v2/plugin/auth/state",tokenUrl:"https://copilot.tencent.com/v2/plugin/auth/token",refreshUrl:"https://copilot.tencent.com/v2/plugin/auth/token/refresh",userAgent:"CLI/2.63.2 CodeBuddy/2.63.2",platform:"CLI",pollInterval:5e3},B=3e5},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,4884,5024,4404,4315,8590,4746,6306,7276,8361,5330,8895,4177],()=>b(b.s=88284));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=4648,a.ids=[1998,3405,4648],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67668:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>i});var e=c(23211),f=c(71998),g=c(74177),h=a([g]);async function i(a){let b,c;try{b=await a.json()}catch(a){return e.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null,!Array.isArray(c)||0===c.length)return e.NextResponse.json({error:"No accounts provided"},{status:400});let d=[],h=0,i=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let{id:c,provider:e,authType:i,createdAt:j,updatedAt:k,...l}=b;if(!l.accessToken||"string"!=typeof l.accessToken)throw Error("Missing accessToken");let m=l.providerSpecificData||{},n=!l.email,o=!m.chatgptAccountId,p=!m.chatgptPlanType;if(n||o||p){let a=(0,g.extractCodexAccountInfo)(l.idToken||l.accessToken)||{};n&&a.email&&(l.email=a.email),o&&a.chatgptAccountId&&(m.chatgptAccountId=a.chatgptAccountId),p&&a.chatgptPlanType&&(m.chatgptPlanType=a.chatgptPlanType)}Object.keys(m).length>0&&(l.providerSpecificData=m),!l.expiresAt&&"number"==typeof l.expiresIn&&l.expiresIn>0&&(l.expiresAt=new Date(Date.now()+1e3*l.expiresIn).toISOString()),void 0===l.testStatus&&(l.testStatus="active"),void 0===l.isActive&&(l.isActive=!0),l.lastRefreshAt||(l.lastRefreshAt=new Date().toISOString());let q=await (0,f.createProviderConnection)({provider:"codex",authType:"oauth",...l});d.push({index:a,ok:!0,id:q.id}),h++}catch(b){d.push({index:a,ok:!1,error:b.message||"Unknown error"}),i++}}return e.NextResponse.json({success:h,failed:i,results:d})}g=(h.then?(await h)():h)[0],d()}catch(a){d(a)}})},71553:a=>{a.exports=require("node:dns/promises")},71622:a=>{a.exports=import("open")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,P:()=>d.getProviderConnections,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73159:(a,b,c)=>{c.d(b,{Ue:()=>j,oT:()=>k,xz:()=>d});let d="b1a00492-073a-47ea-816f-4c329264a828",e="https://auth.x.ai",f="/oauth2/authorize",g="/oauth2/token",h="/.well-known/openid-configuration",i="/callback",j=96,k={clientId:d,issuer:e,authEndpointPath:f,tokenEndpointPath:g,discoveryPath:h,authorizeUrl:`${e}${f}`,tokenUrl:`${e}${g}`,discoveryUrl:`${e}${h}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${i}`,loopbackPort:56121,callbackPath:i,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},84670:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/codex/bulk-import/route",pathname:"/api/oauth/codex/bulk-import",filename:"route",bundlePath:"app/api/oauth/codex/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/Users/shofiqulislam/9router-master/src/app/api/oauth/codex/bulk-import/route.js",nextConfigOutput:"standalone",userland:()=>c(67668),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/codex/bulk-import/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},92990:(a,b,c)=>{c.d(b,{DI:()=>h,Hp:()=>j,LT:()=>i,MZ:()=>u,Nl:()=>A,Nu:()=>o,OV:()=>g,S6:()=>q,Td:()=>x,Tx:()=>r,WN:()=>s,Ww:()=>B,YT:()=>m,ZL:()=>l,cD:()=>n,f7:()=>z,hF:()=>k,lB:()=>v,qp:()=>w,t:()=>t,w1:()=>y});var d=c(21820),e=c(73159);function f(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let g={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},h={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},i={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},j={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},k={openApiBaseUrl:"https://openapi.qoder.sh",centerBaseUrl:"https://center.qoder.sh",chatBaseUrl:"https://api3.qoder.sh",deviceTokenUrl:"https://openapi.qoder.sh/api/v1/deviceToken/poll",refreshUrl:"https://center.qoder.sh/algo/api/v3/user/refresh_token",userInfoUrl:"https://openapi.qoder.sh/api/v1/userinfo",quotaUsageUrl:"https://openapi.qoder.sh/api/v2/quota/usage",loginUrl:"https://qoder.com/device/selectAccounts"},l={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},m={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:f(),pluginType:2})};function n(){return{ideType:9,platform:f(),pluginType:2}}let o={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},p=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function q(a){if("string"!=typeof a||!p.test(a))throw Error("Invalid region");return a}let r={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",socialClientId:process.env.KIRO_OAUTH_CLIENT_ID||"kiro-cli",socialDeviceAuthorizeUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/device/authorization",socialDevicePollUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/device/poll",authMethods:["builder-id","idc","google","github","import"]},s={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},t={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},u={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},v={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},w={clientId:e.xz,deviceCodeUrl:"https://auth.x.ai/oauth2/device/code",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token",scope:"openid profile email offline_access grok-cli:access api:access conversations:read conversations:write",referrer:"grok-build",pollInterval:5e3},x={webAppUrl:"https://app.kimchi.dev",validationUrl:"https://api.cast.ai/v1/llm/openai/supported-providers",userInfoUrl:"https://app.kimchi.dev/api/v1/me",modelsUrl:"https://llm.kimchi.dev/v1/models/metadata?include_in_cli=true"},y={...v},z={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},A={baseUrl:"https://copilot.tencent.com",stateUrl:"https://copilot.tencent.com/v2/plugin/auth/state",tokenUrl:"https://copilot.tencent.com/v2/plugin/auth/token",refreshUrl:"https://copilot.tencent.com/v2/plugin/auth/token/refresh",userAgent:"CLI/2.63.2 CodeBuddy/2.63.2",platform:"CLI",pollInterval:5e3},B=3e5},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,5433,4884,5024,4404,4315,8590,4746,6306,7276,8361,5330,8895,4177],()=>b(b.s=84670));module.exports=c})();