@yina-npm/openrouterx 0.4.80 → 0.5.10

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 (1621) hide show
  1. package/LICENSE +22 -1
  2. package/README.md +72 -420
  3. package/app/.next-cli-build/BUILD_ID +1 -0
  4. package/app/.next-cli-build/app-path-routes-manifest.json +170 -0
  5. package/app/.next-cli-build/build-manifest.json +20 -0
  6. package/app/.next-cli-build/prerender-manifest.json +239 -0
  7. package/app/.next-cli-build/required-server-files.json +380 -0
  8. package/app/.next-cli-build/routes-manifest.json +1131 -0
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/keys/page.js +2 -0
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +1 -0
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +1 -0
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/users/page.js +2 -0
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +1 -0
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +1 -0
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -0
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -0
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -0
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +24 -0
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -0
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -0
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -0
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -0
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -0
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -0
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -0
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -0
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -0
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -0
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -0
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -0
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -0
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -0
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +60 -0
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -0
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -0
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -0
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -0
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -0
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +5 -0
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -0
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -0
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -0
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -0
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -0
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -0
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -0
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -0
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -0
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -0
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -0
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -0
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -0
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -0
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +11 -0
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -0
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -0
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -0
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -0
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -0
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -0
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -0
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -0
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +5 -0
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -0
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -0
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +3 -0
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -0
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -0
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -0
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -0
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -0
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -0
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -0
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -0
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -0
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -0
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -0
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/user/page.js +5 -0
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/user/page.js.nft.json +1 -0
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +1 -0
  81. package/app/.next-cli-build/server/app/_global-error/page.js +32 -0
  82. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -0
  83. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -0
  84. package/app/.next-cli-build/server/app/_global-error.html +1 -0
  85. package/app/.next-cli-build/server/app/_global-error.rsc +14 -0
  86. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +14 -0
  87. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
  88. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
  89. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +5 -0
  90. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +5 -0
  91. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  92. package/app/.next-cli-build/server/app/_not-found/page.js +2 -0
  93. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -0
  94. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -0
  95. package/app/.next-cli-build/server/app/_not-found.html +1 -0
  96. package/app/.next-cli-build/server/app/_not-found.rsc +21 -0
  97. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +21 -0
  98. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +6 -0
  99. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +9 -0
  100. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  101. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  102. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +4 -0
  103. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -0
  104. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -0
  105. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -0
  106. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -0
  107. package/app/.next-cli-build/server/app/api/auth/me/route.js +1 -0
  108. package/app/.next-cli-build/server/app/api/auth/me/route.js.nft.json +1 -0
  109. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -0
  110. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -0
  111. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -0
  112. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -0
  113. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -0
  114. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -0
  115. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -0
  116. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -0
  117. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -0
  118. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -0
  119. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +17 -0
  120. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -0
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -0
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -0
  123. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -0
  124. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -0
  125. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -0
  126. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -0
  127. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -0
  128. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -0
  129. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/activate-account/route.js +2 -0
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/activate-account/route.js.nft.json +1 -0
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -0
  132. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -0
  133. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -0
  134. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -0
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -0
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -0
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -0
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -0
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -0
  140. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -0
  141. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +9 -0
  142. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -0
  143. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -0
  144. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -0
  145. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +10 -0
  146. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -0
  147. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -0
  148. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -0
  149. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -0
  150. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -0
  151. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -0
  152. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -0
  153. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -0
  154. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -0
  155. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -0
  156. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -0
  157. package/app/.next-cli-build/server/app/api/combos/route.js +1 -0
  158. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -0
  159. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -0
  160. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -0
  161. package/app/.next-cli-build/server/app/api/headroom/start/route_client-reference-manifest.js +1 -0
  162. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -0
  163. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -0
  164. package/app/.next-cli-build/server/app/api/headroom/status/route_client-reference-manifest.js +1 -0
  165. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -0
  166. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -0
  167. package/app/.next-cli-build/server/app/api/headroom/stop/route_client-reference-manifest.js +1 -0
  168. package/app/.next-cli-build/server/app/api/health/route.js +1 -0
  169. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -0
  170. package/app/.next-cli-build/server/app/api/init/route.js +1 -0
  171. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -0
  172. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -0
  173. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -0
  174. package/app/.next-cli-build/server/app/api/keys/route.js +1 -0
  175. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -0
  176. package/app/.next-cli-build/server/app/api/locale/route.js +1 -0
  177. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -0
  178. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +7 -0
  179. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -0
  180. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +10 -0
  181. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -0
  182. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -0
  183. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -0
  184. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -0
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -0
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -0
  187. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -0
  188. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -0
  189. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -0
  190. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -0
  191. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -0
  192. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -0
  193. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -0
  194. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -0
  195. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -0
  196. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -0
  197. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -0
  198. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -0
  199. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -0
  200. package/app/.next-cli-build/server/app/api/models/route.js +1 -0
  201. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -0
  202. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -0
  203. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -0
  204. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -0
  205. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -0
  206. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -0
  207. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -0
  208. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -0
  209. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -0
  210. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +4 -0
  211. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -0
  212. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -0
  213. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -0
  214. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -0
  215. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -0
  216. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -0
  217. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -0
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -0
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -0
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route_client-reference-manifest.js +1 -0
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -0
  222. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -0
  223. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -0
  224. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -0
  225. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -0
  226. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -0
  227. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -0
  228. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -0
  229. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -0
  230. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -0
  231. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -0
  232. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -0
  233. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -0
  234. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -0
  235. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -0
  236. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -0
  237. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -0
  238. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -0
  239. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -0
  240. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -0
  241. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -0
  242. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -0
  243. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -0
  244. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -0
  245. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -0
  246. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -0
  247. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -0
  248. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -0
  249. package/app/.next-cli-build/server/app/api/providers/route.js +1 -0
  250. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -0
  251. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -0
  252. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -0
  253. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -0
  254. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -0
  255. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -0
  256. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -0
  257. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -0
  258. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -0
  259. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -0
  260. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -0
  261. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +43 -0
  262. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -0
  263. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +40 -0
  264. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -0
  265. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -0
  266. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -0
  267. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +33 -0
  268. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -0
  269. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -0
  270. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -0
  271. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -0
  272. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -0
  273. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -0
  274. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -0
  275. package/app/.next-cli-build/server/app/api/settings/route.js +1 -0
  276. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -0
  277. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -0
  278. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -0
  279. package/app/.next-cli-build/server/app/api/tags/route.js +1 -0
  280. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -0
  281. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -0
  282. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -0
  283. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +7 -0
  284. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -0
  285. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -0
  286. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -0
  287. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -0
  288. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -0
  289. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -0
  290. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -0
  291. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -0
  292. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -0
  293. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -0
  294. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -0
  295. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -0
  296. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -0
  297. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -0
  298. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -0
  299. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -0
  300. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -0
  301. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -0
  302. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -0
  303. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -0
  304. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -0
  305. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +5 -0
  306. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -0
  307. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -0
  308. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -0
  309. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route_client-reference-manifest.js +1 -0
  310. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -0
  311. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -0
  312. package/app/.next-cli-build/server/app/api/usage/api-keys/route.js +1 -0
  313. package/app/.next-cli-build/server/app/api/usage/api-keys/route.js.nft.json +1 -0
  314. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -0
  315. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -0
  316. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -0
  317. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -0
  318. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -0
  319. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -0
  320. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -0
  321. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -0
  322. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -0
  323. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -0
  324. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -0
  325. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -0
  326. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -0
  327. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -0
  328. package/app/.next-cli-build/server/app/api/usage/stream/route.js +7 -0
  329. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -0
  330. package/app/.next-cli-build/server/app/api/users/[id]/route.js +1 -0
  331. package/app/.next-cli-build/server/app/api/users/[id]/route.js.nft.json +1 -0
  332. package/app/.next-cli-build/server/app/api/users/route.js +1 -0
  333. package/app/.next-cli-build/server/app/api/users/route.js.nft.json +1 -0
  334. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -0
  335. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -0
  336. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -0
  337. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -0
  338. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -0
  339. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -0
  340. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -0
  341. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -0
  342. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -0
  343. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -0
  344. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -0
  345. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -0
  346. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +4 -0
  347. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -0
  348. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -0
  349. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -0
  350. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -0
  351. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -0
  352. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -0
  353. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -0
  354. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -0
  355. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -0
  356. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -0
  357. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -0
  358. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -0
  359. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -0
  360. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -0
  361. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -0
  362. package/app/.next-cli-build/server/app/api/v1/route.js +1 -0
  363. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -0
  364. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -0
  365. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -0
  366. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -0
  367. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -0
  368. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -0
  369. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -0
  370. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -0
  371. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -0
  372. package/app/.next-cli-build/server/app/api/version/route.js +1 -0
  373. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -0
  374. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -0
  375. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -0
  376. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -0
  377. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -0
  378. package/app/.next-cli-build/server/app/callback/page.js +2 -0
  379. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -0
  380. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -0
  381. package/app/.next-cli-build/server/app/callback.html +1 -0
  382. package/app/.next-cli-build/server/app/callback.rsc +25 -0
  383. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +25 -0
  384. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +6 -0
  385. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +9 -0
  386. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +4 -0
  387. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +9 -0
  388. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +5 -0
  389. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -0
  390. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -0
  391. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -0
  392. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -0
  393. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +25 -0
  394. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +25 -0
  395. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +6 -0
  396. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +9 -0
  397. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +4 -0
  398. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +9 -0
  399. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +5 -0
  400. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +5 -0
  401. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +5 -0
  402. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -0
  403. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -0
  404. package/app/.next-cli-build/server/app/index.html +1 -0
  405. package/app/.next-cli-build/server/app/index.rsc +20 -0
  406. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  407. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +20 -0
  408. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +6 -0
  409. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +9 -0
  410. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +4 -0
  411. package/app/.next-cli-build/server/app/landing/page.js +2 -0
  412. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -0
  413. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -0
  414. package/app/.next-cli-build/server/app/landing.html +1 -0
  415. package/app/.next-cli-build/server/app/landing.rsc +25 -0
  416. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +25 -0
  417. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +6 -0
  418. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +9 -0
  419. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +4 -0
  420. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +9 -0
  421. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +5 -0
  422. package/app/.next-cli-build/server/app/login/page.js +2 -0
  423. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -0
  424. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -0
  425. package/app/.next-cli-build/server/app/login.html +1 -0
  426. package/app/.next-cli-build/server/app/login.rsc +26 -0
  427. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +26 -0
  428. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +6 -0
  429. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +9 -0
  430. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +5 -0
  431. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +10 -0
  432. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +5 -0
  433. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +16 -0
  434. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -0
  435. package/app/.next-cli-build/server/app/page.js +2 -0
  436. package/app/.next-cli-build/server/app/page.js.nft.json +1 -0
  437. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -0
  438. package/app/.next-cli-build/server/app-paths-manifest.json +170 -0
  439. package/app/.next-cli-build/server/chunks/1220.js +3 -0
  440. package/app/.next-cli-build/server/chunks/1241.js +1 -0
  441. package/app/.next-cli-build/server/chunks/1275.js +73 -0
  442. package/app/.next-cli-build/server/chunks/1350.js +2 -0
  443. package/app/.next-cli-build/server/chunks/1832.js +1 -0
  444. package/app/.next-cli-build/server/chunks/2059.js +1 -0
  445. package/app/.next-cli-build/server/chunks/2944.js +1 -0
  446. package/app/.next-cli-build/server/chunks/319.js +45 -0
  447. package/app/.next-cli-build/server/chunks/3412.js +1 -0
  448. package/app/.next-cli-build/server/chunks/3428.js +1 -0
  449. package/app/.next-cli-build/server/chunks/3535.js +1 -0
  450. package/app/.next-cli-build/server/chunks/3546.js +1 -0
  451. package/app/.next-cli-build/server/chunks/3913.js +64 -0
  452. package/app/.next-cli-build/server/chunks/412.js +7 -0
  453. package/app/.next-cli-build/server/chunks/4632.js +1 -0
  454. package/app/.next-cli-build/server/chunks/4922.js +9 -0
  455. package/app/.next-cli-build/server/chunks/5118.js +1 -0
  456. package/app/.next-cli-build/server/chunks/5296.js +1 -0
  457. package/app/.next-cli-build/server/chunks/5592.js +1 -0
  458. package/app/.next-cli-build/server/chunks/5615.js +43 -0
  459. package/app/.next-cli-build/server/chunks/5699.js +1 -0
  460. package/app/.next-cli-build/server/chunks/5816.js +1 -0
  461. package/app/.next-cli-build/server/chunks/5961.js +1 -0
  462. package/app/.next-cli-build/server/chunks/6001.js +1 -0
  463. package/app/.next-cli-build/server/chunks/602.js +1 -0
  464. package/app/.next-cli-build/server/chunks/6070.js +1 -0
  465. package/app/.next-cli-build/server/chunks/615.js +1 -0
  466. package/app/.next-cli-build/server/chunks/6151.js +1 -0
  467. package/app/.next-cli-build/server/chunks/6182.js +63 -0
  468. package/app/.next-cli-build/server/chunks/6306.js +1 -0
  469. package/app/.next-cli-build/server/chunks/6327.js +1 -0
  470. package/app/.next-cli-build/server/chunks/6482.js +11 -0
  471. package/app/.next-cli-build/server/chunks/6688.js +1 -0
  472. package/app/.next-cli-build/server/chunks/6763.js +1 -0
  473. package/app/.next-cli-build/server/chunks/6777.js +1 -0
  474. package/app/.next-cli-build/server/chunks/7244.js +1 -0
  475. package/app/.next-cli-build/server/chunks/7259.js +53 -0
  476. package/app/.next-cli-build/server/chunks/7774.js +120 -0
  477. package/app/.next-cli-build/server/chunks/7879.js +10 -0
  478. package/app/.next-cli-build/server/chunks/7937.js +170 -0
  479. package/app/.next-cli-build/server/chunks/801.js +3 -0
  480. package/app/.next-cli-build/server/chunks/8271.js +1 -0
  481. package/app/.next-cli-build/server/chunks/8895.js +58 -0
  482. package/app/.next-cli-build/server/chunks/8910.js +2 -0
  483. package/app/.next-cli-build/server/chunks/8920.js +1 -0
  484. package/app/.next-cli-build/server/chunks/9718.js +1 -0
  485. package/app/.next-cli-build/server/chunks/9787.js +31 -0
  486. package/app/.next-cli-build/server/chunks/9833.js +1 -0
  487. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -0
  488. package/app/.next-cli-build/server/middleware.js +18 -0
  489. package/app/.next-cli-build/server/next-font-manifest.js +1 -0
  490. package/app/.next-cli-build/server/next-font-manifest.json +1 -0
  491. package/app/.next-cli-build/server/pages/404.html +1 -0
  492. package/app/.next-cli-build/server/pages/500.html +1 -0
  493. package/app/.next-cli-build/server/server-reference-manifest.js +1 -0
  494. package/app/.next-cli-build/server/server-reference-manifest.json +1 -0
  495. package/app/.next-cli-build/static/DLZR81Hq9OqOrl2Xc2iHn/_buildManifest.js +1 -0
  496. package/app/.next-cli-build/static/chunks/1321-7d926378b0f39749.js +1 -0
  497. package/app/.next-cli-build/static/chunks/4072-932473fbd266d3f5.js +3 -0
  498. package/app/.next-cli-build/static/chunks/5497-53b71597ca1b53f8.js +7 -0
  499. package/app/.next-cli-build/static/chunks/6069-b72e6803d5df6bb0.js +53 -0
  500. package/app/.next-cli-build/static/chunks/705-979ff3eb195b9023.js +1 -0
  501. package/app/.next-cli-build/static/chunks/8982-6d1803817450bcd4.js +11 -0
  502. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/admin/keys/page-770d25a6e4c1c16b.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/admin/users/page-c02ec2a52cb81f6c.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-00067a1ed47e8a1a.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-6b52a6040f91175e.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-7e1032515aa7b846.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-b0ea71f0ee7d3f0d.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-3255488cfa30dbe8.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-a803dd8339e39a59.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-248f90bb1f8438b5.js +59 -0
  511. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-f2ad20d24fffaed1.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-9b1c19519a3fcdd6.js +4 -0
  513. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-c9d255cd986ec35f.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-6783a97fcd89ff19.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-35bb7f0efeba6102.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-5cfb7ca8b362af6f.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-1e127be17d25ddd8.js +10 -0
  518. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-7c91743514149c71.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-929ab76c6137174e.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-022d3cf41ae7126d.js +4 -0
  521. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-561f95b84b06ae49.js +2 -0
  522. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-88a024a500d543fa.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-f514bcc6e633f162.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-2551a48ef918b89b.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/user/page-2bb3871609a94258.js +4 -0
  526. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-8151b85461a99f83.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/_global-error/page-f514bcc6e633f162.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-f514bcc6e633f162.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-f514bcc6e633f162.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/auth/me/route-f514bcc6e633f162.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-f514bcc6e633f162.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-f514bcc6e633f162.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-f514bcc6e633f162.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-f514bcc6e633f162.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-f514bcc6e633f162.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-f514bcc6e633f162.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-f514bcc6e633f162.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-f514bcc6e633f162.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-f514bcc6e633f162.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-f514bcc6e633f162.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-f514bcc6e633f162.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-f514bcc6e633f162.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-f514bcc6e633f162.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-f514bcc6e633f162.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-f514bcc6e633f162.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-f514bcc6e633f162.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-f514bcc6e633f162.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-f514bcc6e633f162.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-f514bcc6e633f162.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-f514bcc6e633f162.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-f514bcc6e633f162.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-f514bcc6e633f162.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-f514bcc6e633f162.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-f514bcc6e633f162.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/combos/route-f514bcc6e633f162.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-f514bcc6e633f162.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-f514bcc6e633f162.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-f514bcc6e633f162.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/health/route-f514bcc6e633f162.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/init/route-f514bcc6e633f162.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-f514bcc6e633f162.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/keys/route-f514bcc6e633f162.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/locale/route-f514bcc6e633f162.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-f514bcc6e633f162.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-f514bcc6e633f162.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-f514bcc6e633f162.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-f514bcc6e633f162.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-f514bcc6e633f162.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-f514bcc6e633f162.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-f514bcc6e633f162.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-f514bcc6e633f162.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-f514bcc6e633f162.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-f514bcc6e633f162.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-f514bcc6e633f162.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/api/models/route-f514bcc6e633f162.js +1 -0
  576. package/app/.next-cli-build/static/chunks/app/api/models/test/route-f514bcc6e633f162.js +1 -0
  577. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-f514bcc6e633f162.js +1 -0
  578. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-f514bcc6e633f162.js +1 -0
  579. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-f514bcc6e633f162.js +1 -0
  580. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-f514bcc6e633f162.js +1 -0
  581. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-f514bcc6e633f162.js +1 -0
  582. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-f514bcc6e633f162.js +1 -0
  583. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-f514bcc6e633f162.js +1 -0
  584. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-f514bcc6e633f162.js +1 -0
  585. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-f514bcc6e633f162.js +1 -0
  586. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-f514bcc6e633f162.js +1 -0
  587. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-f514bcc6e633f162.js +1 -0
  588. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-f514bcc6e633f162.js +1 -0
  589. package/app/.next-cli-build/static/chunks/app/api/pricing/route-f514bcc6e633f162.js +1 -0
  590. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-f514bcc6e633f162.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-f514bcc6e633f162.js +1 -0
  592. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-f514bcc6e633f162.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-f514bcc6e633f162.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-f514bcc6e633f162.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-f514bcc6e633f162.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-f514bcc6e633f162.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-f514bcc6e633f162.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-f514bcc6e633f162.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/providers/route-f514bcc6e633f162.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-f514bcc6e633f162.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-f514bcc6e633f162.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-f514bcc6e633f162.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-f514bcc6e633f162.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-f514bcc6e633f162.js +1 -0
  605. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-f514bcc6e633f162.js +1 -0
  606. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-f514bcc6e633f162.js +1 -0
  607. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-f514bcc6e633f162.js +1 -0
  608. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-f514bcc6e633f162.js +1 -0
  609. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-f514bcc6e633f162.js +1 -0
  610. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-f514bcc6e633f162.js +1 -0
  611. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-f514bcc6e633f162.js +1 -0
  612. package/app/.next-cli-build/static/chunks/app/api/settings/route-f514bcc6e633f162.js +1 -0
  613. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-f514bcc6e633f162.js +1 -0
  614. package/app/.next-cli-build/static/chunks/app/api/tags/route-f514bcc6e633f162.js +1 -0
  615. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-f514bcc6e633f162.js +1 -0
  616. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-f514bcc6e633f162.js +1 -0
  617. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-f514bcc6e633f162.js +1 -0
  618. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-f514bcc6e633f162.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-f514bcc6e633f162.js +1 -0
  620. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-f514bcc6e633f162.js +1 -0
  621. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-f514bcc6e633f162.js +1 -0
  622. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-f514bcc6e633f162.js +1 -0
  623. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-f514bcc6e633f162.js +1 -0
  624. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-f514bcc6e633f162.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-f514bcc6e633f162.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-f514bcc6e633f162.js +1 -0
  627. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-f514bcc6e633f162.js +1 -0
  628. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-f514bcc6e633f162.js +1 -0
  629. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-f514bcc6e633f162.js +1 -0
  630. package/app/.next-cli-build/static/chunks/app/api/usage/api-keys/route-f514bcc6e633f162.js +1 -0
  631. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-f514bcc6e633f162.js +1 -0
  632. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-f514bcc6e633f162.js +1 -0
  633. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-f514bcc6e633f162.js +1 -0
  634. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-f514bcc6e633f162.js +1 -0
  635. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-f514bcc6e633f162.js +1 -0
  636. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-f514bcc6e633f162.js +1 -0
  637. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-f514bcc6e633f162.js +1 -0
  638. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-f514bcc6e633f162.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/api/users/[id]/route-f514bcc6e633f162.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/api/users/route-f514bcc6e633f162.js +1 -0
  641. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-f514bcc6e633f162.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-f514bcc6e633f162.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-f514bcc6e633f162.js +1 -0
  644. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-f514bcc6e633f162.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-f514bcc6e633f162.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-f514bcc6e633f162.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-f514bcc6e633f162.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-f514bcc6e633f162.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-f514bcc6e633f162.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-f514bcc6e633f162.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-f514bcc6e633f162.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-f514bcc6e633f162.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-f514bcc6e633f162.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-f514bcc6e633f162.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/v1/route-f514bcc6e633f162.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-f514bcc6e633f162.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-f514bcc6e633f162.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-f514bcc6e633f162.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-f514bcc6e633f162.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/version/route-f514bcc6e633f162.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-f514bcc6e633f162.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/version/update/route-f514bcc6e633f162.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-fa3a6585ef16a942.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/layout-666059e0e271094b.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/login/page-fc66d6d071e3bcf3.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-f514bcc6e633f162.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/page-f514bcc6e633f162.js +1 -0
  668. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-f514bcc6e633f162.js +1 -0
  669. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-f514bcc6e633f162.js +1 -0
  670. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-f514bcc6e633f162.js +1 -0
  671. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-f514bcc6e633f162.js +1 -0
  672. package/app/.next-cli-build/static/chunks/webpack-786de0e184ffd859.js +1 -0
  673. package/app/.next-cli-build/static/css/d477f23f99f30ee7.css +1 -0
  674. package/app/.next-cli-build/static/css/e60401d99e3ceca2.css +1 -0
  675. package/app/.next-cli-build/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  676. package/app/.next-cli-build/static/media/21350d82a1f187e9-s.woff2 +0 -0
  677. package/app/.next-cli-build/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  678. package/app/.next-cli-build/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  679. package/app/.next-cli-build/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  680. package/app/.next-cli-build/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  681. package/app/.next-cli-build/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  682. package/app/cli/.build-home/.openrouterx/db.json +43 -0
  683. package/app/cli/.build-home/.openrouterx/jwt-secret +1 -0
  684. package/app/cli/.build-home/.openrouterx/machine-id +1 -0
  685. package/app/cli/.build-home/Library/Preferences/nextjs-nodejs/config.json +7 -0
  686. package/app/custom-server.js +32 -0
  687. package/app/package.json +11 -8
  688. package/app/public/providers/codebuddy-cn.png +0 -0
  689. package/app/server.js +1 -1
  690. package/app/src/lib/updater/updater.js +2 -2
  691. package/app/src/mitm/server.js +60 -435
  692. package/cli.js +728 -415
  693. package/hooks/postinstall.js +15 -48
  694. package/hooks/sqliteRuntime.js +156 -0
  695. package/hooks/trayRuntime.js +107 -0
  696. package/package.json +18 -7
  697. package/src/cli/api/client.js +88 -10
  698. package/src/cli/menus/cliTools.js +164 -8
  699. package/src/cli/menus/providers.js +249 -12
  700. package/src/cli/menus/settings.js +138 -31
  701. package/src/cli/terminalUI.js +37 -25
  702. package/src/cli/tray/autostart.js +168 -184
  703. package/src/cli/tray/tray.js +226 -108
  704. package/src/cli/tray/tray.ps1 +79 -0
  705. package/src/cli/tray/trayWin.js +89 -0
  706. package/src/cli/utils/input.js +64 -137
  707. package/src/cli/utils/modelSelector.js +7 -4
  708. package/app/.next/BUILD_ID +0 -1
  709. package/app/.next/app-path-routes-manifest.json +0 -165
  710. package/app/.next/build-manifest.json +0 -20
  711. package/app/.next/prerender-manifest.json +0 -239
  712. package/app/.next/required-server-files.json +0 -376
  713. package/app/.next/routes-manifest.json +0 -1094
  714. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js +0 -2
  715. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +0 -1
  716. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +0 -1
  717. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js +0 -2
  718. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +0 -1
  719. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +0 -1
  720. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +0 -2
  721. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +0 -1
  722. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +0 -1
  723. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +0 -24
  724. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +0 -1
  725. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +0 -1
  726. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +0 -2
  727. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +0 -1
  728. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +0 -1
  729. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +0 -2
  730. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +0 -1
  731. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +0 -1
  732. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +0 -2
  733. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +0 -1
  734. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +0 -1
  735. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +0 -2
  736. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +0 -1
  737. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +0 -1
  738. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +0 -60
  739. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +0 -1
  740. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +0 -1
  741. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +0 -2
  742. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +0 -1
  743. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +0 -1
  744. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +0 -5
  745. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +0 -1
  746. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +0 -1
  747. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +0 -2
  748. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +0 -1
  749. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +0 -1
  750. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +0 -2
  751. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +0 -1
  752. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +0 -1
  753. package/app/.next/server/app/(dashboard)/dashboard/page.js +0 -2
  754. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +0 -1
  755. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +0 -1
  756. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +0 -2
  757. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +0 -1
  758. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +0 -1
  759. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +0 -11
  760. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +0 -1
  761. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +0 -1
  762. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +0 -2
  763. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +0 -1
  764. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +0 -1
  765. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +0 -2
  766. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +0 -1
  767. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +0 -1
  768. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +0 -5
  769. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +0 -1
  770. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +0 -1
  771. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +0 -3
  772. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +0 -1
  773. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +0 -1
  774. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +0 -2
  775. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +0 -1
  776. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +0 -1
  777. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +0 -2
  778. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +0 -1
  779. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +0 -1
  780. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +0 -2
  781. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +0 -1
  782. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +0 -1
  783. package/app/.next/server/app/(dashboard)/dashboard/user/page.js +0 -5
  784. package/app/.next/server/app/(dashboard)/dashboard/user/page.js.nft.json +0 -1
  785. package/app/.next/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +0 -1
  786. package/app/.next/server/app/_global-error/page.js +0 -32
  787. package/app/.next/server/app/_global-error/page.js.nft.json +0 -1
  788. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +0 -1
  789. package/app/.next/server/app/_global-error.html +0 -1
  790. package/app/.next/server/app/_global-error.rsc +0 -14
  791. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +0 -14
  792. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +0 -5
  793. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +0 -5
  794. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +0 -5
  795. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +0 -5
  796. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -1
  797. package/app/.next/server/app/_not-found/page.js +0 -2
  798. package/app/.next/server/app/_not-found/page.js.nft.json +0 -1
  799. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +0 -1
  800. package/app/.next/server/app/_not-found.html +0 -1
  801. package/app/.next/server/app/_not-found.rsc +0 -19
  802. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +0 -19
  803. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +0 -6
  804. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +0 -8
  805. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
  806. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -5
  807. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +0 -3
  808. package/app/.next/server/app/api/auth/login/route.js +0 -1
  809. package/app/.next/server/app/api/auth/login/route.js.nft.json +0 -1
  810. package/app/.next/server/app/api/auth/logout/route.js +0 -1
  811. package/app/.next/server/app/api/auth/logout/route.js.nft.json +0 -1
  812. package/app/.next/server/app/api/auth/me/route.js +0 -1
  813. package/app/.next/server/app/api/auth/me/route.js.nft.json +0 -1
  814. package/app/.next/server/app/api/auth/oidc/callback/route.js +0 -1
  815. package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +0 -1
  816. package/app/.next/server/app/api/auth/oidc/start/route.js +0 -1
  817. package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +0 -1
  818. package/app/.next/server/app/api/auth/oidc/test/route.js +0 -1
  819. package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +0 -1
  820. package/app/.next/server/app/api/auth/reset-password/route.js +0 -1
  821. package/app/.next/server/app/api/auth/reset-password/route.js.nft.json +0 -1
  822. package/app/.next/server/app/api/auth/status/route.js +0 -1
  823. package/app/.next/server/app/api/auth/status/route.js.nft.json +0 -1
  824. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +0 -17
  825. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +0 -1
  826. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +0 -2
  827. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +0 -1
  828. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +0 -1
  829. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +0 -1
  830. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +0 -2
  831. package/app/.next/server/app/api/cli-tools/claude-settings/route.js.nft.json +0 -1
  832. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +0 -2
  833. package/app/.next/server/app/api/cli-tools/cline-settings/route.js.nft.json +0 -1
  834. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js +0 -2
  835. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js.nft.json +0 -1
  836. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +0 -1
  837. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +0 -1
  838. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +0 -2
  839. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +0 -1
  840. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +0 -2
  841. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +0 -1
  842. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +0 -2
  843. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +0 -1
  844. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +0 -1
  845. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +0 -1
  846. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +0 -9
  847. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +0 -1
  848. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +0 -2
  849. package/app/.next/server/app/api/cli-tools/droid-settings/route.js.nft.json +0 -1
  850. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +0 -10
  851. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js.nft.json +0 -1
  852. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +0 -3
  853. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js.nft.json +0 -1
  854. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +0 -2
  855. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js.nft.json +0 -1
  856. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +0 -2
  857. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +0 -1
  858. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +0 -2
  859. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js.nft.json +0 -1
  860. package/app/.next/server/app/api/combos/[id]/route.js +0 -1
  861. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +0 -1
  862. package/app/.next/server/app/api/combos/route.js +0 -1
  863. package/app/.next/server/app/api/combos/route.js.nft.json +0 -1
  864. package/app/.next/server/app/api/health/route.js +0 -1
  865. package/app/.next/server/app/api/health/route.js.nft.json +0 -1
  866. package/app/.next/server/app/api/init/route.js +0 -1
  867. package/app/.next/server/app/api/init/route.js.nft.json +0 -1
  868. package/app/.next/server/app/api/keys/[id]/route.js +0 -1
  869. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +0 -1
  870. package/app/.next/server/app/api/keys/route.js +0 -1
  871. package/app/.next/server/app/api/keys/route.js.nft.json +0 -1
  872. package/app/.next/server/app/api/locale/route.js +0 -1
  873. package/app/.next/server/app/api/locale/route.js.nft.json +0 -1
  874. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +0 -7
  875. package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +0 -1
  876. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +0 -10
  877. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +0 -1
  878. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +0 -1
  879. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +0 -1
  880. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +0 -1
  881. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +0 -1
  882. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +0 -1
  883. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +0 -1
  884. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +0 -1
  885. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +0 -1
  886. package/app/.next/server/app/api/media-providers/tts/voices/route.js +0 -1
  887. package/app/.next/server/app/api/media-providers/tts/voices/route.js.nft.json +0 -1
  888. package/app/.next/server/app/api/models/alias/route.js +0 -1
  889. package/app/.next/server/app/api/models/alias/route.js.nft.json +0 -1
  890. package/app/.next/server/app/api/models/availability/route.js +0 -1
  891. package/app/.next/server/app/api/models/availability/route.js.nft.json +0 -1
  892. package/app/.next/server/app/api/models/custom/route.js +0 -1
  893. package/app/.next/server/app/api/models/custom/route.js.nft.json +0 -1
  894. package/app/.next/server/app/api/models/disabled/route.js +0 -1
  895. package/app/.next/server/app/api/models/disabled/route.js.nft.json +0 -1
  896. package/app/.next/server/app/api/models/route.js +0 -1
  897. package/app/.next/server/app/api/models/route.js.nft.json +0 -1
  898. package/app/.next/server/app/api/models/test/route.js +0 -1
  899. package/app/.next/server/app/api/models/test/route.js.nft.json +0 -1
  900. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +0 -1
  901. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +0 -1
  902. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js +0 -1
  903. package/app/.next/server/app/api/oauth/codex/bulk-import/route.js.nft.json +0 -1
  904. package/app/.next/server/app/api/oauth/codex/import-token/route.js +0 -1
  905. package/app/.next/server/app/api/oauth/codex/import-token/route.js.nft.json +0 -1
  906. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +0 -4
  907. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +0 -1
  908. package/app/.next/server/app/api/oauth/cursor/import/route.js +0 -1
  909. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +0 -1
  910. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +0 -1
  911. package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +0 -1
  912. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +0 -1
  913. package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +0 -1
  914. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +0 -1
  915. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js.nft.json +0 -1
  916. package/app/.next/server/app/api/oauth/kiro/import/route.js +0 -1
  917. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +0 -1
  918. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +0 -1
  919. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +0 -1
  920. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +0 -1
  921. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +0 -1
  922. package/app/.next/server/app/api/pricing/route.js +0 -1
  923. package/app/.next/server/app/api/pricing/route.js.nft.json +0 -1
  924. package/app/.next/server/app/api/provider-nodes/[id]/route.js +0 -1
  925. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +0 -1
  926. package/app/.next/server/app/api/provider-nodes/route.js +0 -1
  927. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +0 -1
  928. package/app/.next/server/app/api/provider-nodes/validate/route.js +0 -1
  929. package/app/.next/server/app/api/provider-nodes/validate/route.js.nft.json +0 -1
  930. package/app/.next/server/app/api/providers/[id]/models/route.js +0 -1
  931. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +0 -1
  932. package/app/.next/server/app/api/providers/[id]/route.js +0 -1
  933. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +0 -1
  934. package/app/.next/server/app/api/providers/[id]/test/route.js +0 -1
  935. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +0 -1
  936. package/app/.next/server/app/api/providers/[id]/test-models/route.js +0 -1
  937. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +0 -1
  938. package/app/.next/server/app/api/providers/client/route.js +0 -1
  939. package/app/.next/server/app/api/providers/client/route.js.nft.json +0 -1
  940. package/app/.next/server/app/api/providers/kilo/free-models/route.js +0 -1
  941. package/app/.next/server/app/api/providers/kilo/free-models/route.js.nft.json +0 -1
  942. package/app/.next/server/app/api/providers/route.js +0 -1
  943. package/app/.next/server/app/api/providers/route.js.nft.json +0 -1
  944. package/app/.next/server/app/api/providers/suggested-models/route.js +0 -1
  945. package/app/.next/server/app/api/providers/suggested-models/route.js.nft.json +0 -1
  946. package/app/.next/server/app/api/providers/test-batch/route.js +0 -1
  947. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +0 -1
  948. package/app/.next/server/app/api/providers/validate/route.js +0 -1
  949. package/app/.next/server/app/api/providers/validate/route.js.nft.json +0 -1
  950. package/app/.next/server/app/api/proxy-pools/[id]/route.js +0 -1
  951. package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +0 -1
  952. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +0 -1
  953. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +0 -1
  954. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +0 -43
  955. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +0 -1
  956. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +0 -40
  957. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +0 -1
  958. package/app/.next/server/app/api/proxy-pools/route.js +0 -1
  959. package/app/.next/server/app/api/proxy-pools/route.js.nft.json +0 -1
  960. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +0 -33
  961. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +0 -1
  962. package/app/.next/server/app/api/settings/database/route.js +0 -1
  963. package/app/.next/server/app/api/settings/database/route.js.nft.json +0 -1
  964. package/app/.next/server/app/api/settings/proxy-test/route.js +0 -1
  965. package/app/.next/server/app/api/settings/proxy-test/route.js.nft.json +0 -1
  966. package/app/.next/server/app/api/settings/require-login/route.js +0 -1
  967. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +0 -1
  968. package/app/.next/server/app/api/settings/route.js +0 -1
  969. package/app/.next/server/app/api/settings/route.js.nft.json +0 -1
  970. package/app/.next/server/app/api/shutdown/route.js +0 -1
  971. package/app/.next/server/app/api/shutdown/route.js.nft.json +0 -1
  972. package/app/.next/server/app/api/tags/route.js +0 -1
  973. package/app/.next/server/app/api/tags/route.js.nft.json +0 -1
  974. package/app/.next/server/app/api/translator/console-logs/route.js +0 -1
  975. package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +0 -1
  976. package/app/.next/server/app/api/translator/console-logs/stream/route.js +0 -7
  977. package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +0 -1
  978. package/app/.next/server/app/api/translator/load/route.js +0 -1
  979. package/app/.next/server/app/api/translator/load/route.js.nft.json +0 -1
  980. package/app/.next/server/app/api/translator/save/route.js +0 -1
  981. package/app/.next/server/app/api/translator/save/route.js.nft.json +0 -1
  982. package/app/.next/server/app/api/translator/send/route.js +0 -1
  983. package/app/.next/server/app/api/translator/send/route.js.nft.json +0 -1
  984. package/app/.next/server/app/api/translator/translate/route.js +0 -1
  985. package/app/.next/server/app/api/translator/translate/route.js.nft.json +0 -1
  986. package/app/.next/server/app/api/tunnel/disable/route.js +0 -1
  987. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +0 -1
  988. package/app/.next/server/app/api/tunnel/enable/route.js +0 -1
  989. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +0 -1
  990. package/app/.next/server/app/api/tunnel/status/route.js +0 -1
  991. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +0 -1
  992. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +0 -1
  993. package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +0 -1
  994. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +0 -1
  995. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +0 -1
  996. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +0 -1
  997. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +0 -1
  998. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +0 -5
  999. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +0 -1
  1000. package/app/.next/server/app/api/usage/[connectionId]/route.js +0 -1
  1001. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +0 -1
  1002. package/app/.next/server/app/api/usage/api-keys/route.js +0 -1
  1003. package/app/.next/server/app/api/usage/api-keys/route.js.nft.json +0 -1
  1004. package/app/.next/server/app/api/usage/chart/route.js +0 -1
  1005. package/app/.next/server/app/api/usage/chart/route.js.nft.json +0 -1
  1006. package/app/.next/server/app/api/usage/history/route.js +0 -1
  1007. package/app/.next/server/app/api/usage/history/route.js.nft.json +0 -1
  1008. package/app/.next/server/app/api/usage/logs/route.js +0 -1
  1009. package/app/.next/server/app/api/usage/logs/route.js.nft.json +0 -1
  1010. package/app/.next/server/app/api/usage/providers/route.js +0 -1
  1011. package/app/.next/server/app/api/usage/providers/route.js.nft.json +0 -1
  1012. package/app/.next/server/app/api/usage/request-details/route.js +0 -1
  1013. package/app/.next/server/app/api/usage/request-details/route.js.nft.json +0 -1
  1014. package/app/.next/server/app/api/usage/request-logs/route.js +0 -1
  1015. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +0 -1
  1016. package/app/.next/server/app/api/usage/stats/route.js +0 -1
  1017. package/app/.next/server/app/api/usage/stats/route.js.nft.json +0 -1
  1018. package/app/.next/server/app/api/usage/stream/route.js +0 -7
  1019. package/app/.next/server/app/api/usage/stream/route.js.nft.json +0 -1
  1020. package/app/.next/server/app/api/users/[id]/route.js +0 -1
  1021. package/app/.next/server/app/api/users/[id]/route.js.nft.json +0 -1
  1022. package/app/.next/server/app/api/users/route.js +0 -1
  1023. package/app/.next/server/app/api/users/route.js.nft.json +0 -1
  1024. package/app/.next/server/app/api/v1/api/chat/route.js +0 -1
  1025. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +0 -1
  1026. package/app/.next/server/app/api/v1/audio/speech/route.js +0 -1
  1027. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +0 -1
  1028. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +0 -1
  1029. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +0 -1
  1030. package/app/.next/server/app/api/v1/audio/voices/route.js +0 -1
  1031. package/app/.next/server/app/api/v1/audio/voices/route.js.nft.json +0 -1
  1032. package/app/.next/server/app/api/v1/chat/completions/route.js +0 -1
  1033. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +0 -1
  1034. package/app/.next/server/app/api/v1/embeddings/route.js +0 -1
  1035. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +0 -1
  1036. package/app/.next/server/app/api/v1/images/generations/route.js +0 -4
  1037. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +0 -1
  1038. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +0 -1
  1039. package/app/.next/server/app/api/v1/messages/count_tokens/route.js.nft.json +0 -1
  1040. package/app/.next/server/app/api/v1/messages/route.js +0 -1
  1041. package/app/.next/server/app/api/v1/messages/route.js.nft.json +0 -1
  1042. package/app/.next/server/app/api/v1/models/[kind]/route.js +0 -1
  1043. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +0 -1
  1044. package/app/.next/server/app/api/v1/models/info/route.js +0 -1
  1045. package/app/.next/server/app/api/v1/models/info/route.js.nft.json +0 -1
  1046. package/app/.next/server/app/api/v1/models/route.js +0 -1
  1047. package/app/.next/server/app/api/v1/models/route.js.nft.json +0 -1
  1048. package/app/.next/server/app/api/v1/responses/compact/route.js +0 -1
  1049. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +0 -1
  1050. package/app/.next/server/app/api/v1/responses/route.js +0 -1
  1051. package/app/.next/server/app/api/v1/responses/route.js.nft.json +0 -1
  1052. package/app/.next/server/app/api/v1/route.js +0 -1
  1053. package/app/.next/server/app/api/v1/route.js.nft.json +0 -1
  1054. package/app/.next/server/app/api/v1/search/route.js +0 -1
  1055. package/app/.next/server/app/api/v1/search/route.js.nft.json +0 -1
  1056. package/app/.next/server/app/api/v1/web/fetch/route.js +0 -1
  1057. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +0 -1
  1058. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +0 -1
  1059. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +0 -1
  1060. package/app/.next/server/app/api/v1beta/models/route.js +0 -1
  1061. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +0 -1
  1062. package/app/.next/server/app/api/version/route.js +0 -1
  1063. package/app/.next/server/app/api/version/route.js.nft.json +0 -1
  1064. package/app/.next/server/app/api/version/shutdown/route.js +0 -1
  1065. package/app/.next/server/app/api/version/shutdown/route.js.nft.json +0 -1
  1066. package/app/.next/server/app/api/version/update/route.js +0 -1
  1067. package/app/.next/server/app/api/version/update/route.js.nft.json +0 -1
  1068. package/app/.next/server/app/callback/page.js +0 -2
  1069. package/app/.next/server/app/callback/page.js.nft.json +0 -1
  1070. package/app/.next/server/app/callback/page_client-reference-manifest.js +0 -1
  1071. package/app/.next/server/app/callback.html +0 -1
  1072. package/app/.next/server/app/callback.rsc +0 -23
  1073. package/app/.next/server/app/callback.segments/_full.segment.rsc +0 -23
  1074. package/app/.next/server/app/callback.segments/_head.segment.rsc +0 -6
  1075. package/app/.next/server/app/callback.segments/_index.segment.rsc +0 -8
  1076. package/app/.next/server/app/callback.segments/_tree.segment.rsc +0 -3
  1077. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +0 -9
  1078. package/app/.next/server/app/callback.segments/callback.segment.rsc +0 -5
  1079. package/app/.next/server/app/dashboard/settings/pricing/page.js +0 -2
  1080. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +0 -1
  1081. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +0 -1
  1082. package/app/.next/server/app/dashboard/settings/pricing.html +0 -1
  1083. package/app/.next/server/app/dashboard/settings/pricing.rsc +0 -23
  1084. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +0 -23
  1085. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +0 -6
  1086. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +0 -8
  1087. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +0 -3
  1088. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +0 -9
  1089. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +0 -5
  1090. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +0 -5
  1091. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +0 -5
  1092. package/app/.next/server/app/favicon.ico/route.js +0 -1
  1093. package/app/.next/server/app/favicon.ico/route.js.nft.json +0 -1
  1094. package/app/.next/server/app/index.html +0 -1
  1095. package/app/.next/server/app/index.rsc +0 -18
  1096. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -6
  1097. package/app/.next/server/app/index.segments/_full.segment.rsc +0 -18
  1098. package/app/.next/server/app/index.segments/_head.segment.rsc +0 -6
  1099. package/app/.next/server/app/index.segments/_index.segment.rsc +0 -8
  1100. package/app/.next/server/app/index.segments/_tree.segment.rsc +0 -3
  1101. package/app/.next/server/app/landing/page.js +0 -2
  1102. package/app/.next/server/app/landing/page.js.nft.json +0 -1
  1103. package/app/.next/server/app/landing/page_client-reference-manifest.js +0 -1
  1104. package/app/.next/server/app/landing.html +0 -1
  1105. package/app/.next/server/app/landing.rsc +0 -23
  1106. package/app/.next/server/app/landing.segments/_full.segment.rsc +0 -23
  1107. package/app/.next/server/app/landing.segments/_head.segment.rsc +0 -6
  1108. package/app/.next/server/app/landing.segments/_index.segment.rsc +0 -8
  1109. package/app/.next/server/app/landing.segments/_tree.segment.rsc +0 -3
  1110. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +0 -9
  1111. package/app/.next/server/app/landing.segments/landing.segment.rsc +0 -5
  1112. package/app/.next/server/app/login/page.js +0 -2
  1113. package/app/.next/server/app/login/page.js.nft.json +0 -1
  1114. package/app/.next/server/app/login/page_client-reference-manifest.js +0 -1
  1115. package/app/.next/server/app/login.html +0 -1
  1116. package/app/.next/server/app/login.rsc +0 -24
  1117. package/app/.next/server/app/login.segments/_full.segment.rsc +0 -24
  1118. package/app/.next/server/app/login.segments/_head.segment.rsc +0 -6
  1119. package/app/.next/server/app/login.segments/_index.segment.rsc +0 -8
  1120. package/app/.next/server/app/login.segments/_tree.segment.rsc +0 -4
  1121. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +0 -10
  1122. package/app/.next/server/app/login.segments/login.segment.rsc +0 -5
  1123. package/app/.next/server/app/manifest.webmanifest/route.js +0 -16
  1124. package/app/.next/server/app/manifest.webmanifest/route.js.nft.json +0 -1
  1125. package/app/.next/server/app/page.js +0 -2
  1126. package/app/.next/server/app/page.js.nft.json +0 -1
  1127. package/app/.next/server/app/page_client-reference-manifest.js +0 -1
  1128. package/app/.next/server/app-paths-manifest.json +0 -165
  1129. package/app/.next/server/chunks/1172.js +0 -1
  1130. package/app/.next/server/chunks/1350.js +0 -2
  1131. package/app/.next/server/chunks/1476.js +0 -1
  1132. package/app/.next/server/chunks/1531.js +0 -1
  1133. package/app/.next/server/chunks/1813.js +0 -1
  1134. package/app/.next/server/chunks/2059.js +0 -1
  1135. package/app/.next/server/chunks/2409.js +0 -1
  1136. package/app/.next/server/chunks/2560.js +0 -1
  1137. package/app/.next/server/chunks/2722.js +0 -53
  1138. package/app/.next/server/chunks/2750.js +0 -31
  1139. package/app/.next/server/chunks/3104.js +0 -43
  1140. package/app/.next/server/chunks/319.js +0 -45
  1141. package/app/.next/server/chunks/3205.js +0 -1
  1142. package/app/.next/server/chunks/365.js +0 -1
  1143. package/app/.next/server/chunks/3663.js +0 -1
  1144. package/app/.next/server/chunks/3913.js +0 -64
  1145. package/app/.next/server/chunks/412.js +0 -7
  1146. package/app/.next/server/chunks/4177.js +0 -1
  1147. package/app/.next/server/chunks/4404.js +0 -1
  1148. package/app/.next/server/chunks/4565.js +0 -3
  1149. package/app/.next/server/chunks/4922.js +0 -9
  1150. package/app/.next/server/chunks/5681.js +0 -1
  1151. package/app/.next/server/chunks/6001.js +0 -1
  1152. package/app/.next/server/chunks/6108.js +0 -1
  1153. package/app/.next/server/chunks/6327.js +0 -1
  1154. package/app/.next/server/chunks/7221.js +0 -1
  1155. package/app/.next/server/chunks/7341.js +0 -1
  1156. package/app/.next/server/chunks/7540.js +0 -67
  1157. package/app/.next/server/chunks/7774.js +0 -120
  1158. package/app/.next/server/chunks/7879.js +0 -10
  1159. package/app/.next/server/chunks/7937.js +0 -186
  1160. package/app/.next/server/chunks/8220.js +0 -1
  1161. package/app/.next/server/chunks/8238.js +0 -1
  1162. package/app/.next/server/chunks/8342.js +0 -1
  1163. package/app/.next/server/chunks/8895.js +0 -55
  1164. package/app/.next/server/chunks/9203.js +0 -1
  1165. package/app/.next/server/chunks/9259.js +0 -3
  1166. package/app/.next/server/chunks/9489.js +0 -1
  1167. package/app/.next/server/chunks/9501.js +0 -63
  1168. package/app/.next/server/chunks/9660.js +0 -1
  1169. package/app/.next/server/chunks/9713.js +0 -1
  1170. package/app/.next/server/chunks/9718.js +0 -1
  1171. package/app/.next/server/chunks/9856.js +0 -1
  1172. package/app/.next/server/middleware-build-manifest.js +0 -1
  1173. package/app/.next/server/middleware.js +0 -18
  1174. package/app/.next/server/next-font-manifest.js +0 -1
  1175. package/app/.next/server/next-font-manifest.json +0 -1
  1176. package/app/.next/server/pages/404.html +0 -1
  1177. package/app/.next/server/pages/500.html +0 -1
  1178. package/app/.next/server/server-reference-manifest.js +0 -1
  1179. package/app/.next/server/server-reference-manifest.json +0 -1
  1180. package/app/.next/static/MxcY0EY8eMa4ouCwsP4Cl/_buildManifest.js +0 -1
  1181. package/app/.next/static/chunks/1321-134c6f0196307f47.js +0 -1
  1182. package/app/.next/static/chunks/4072-e3cbc885320b3535.js +0 -3
  1183. package/app/.next/static/chunks/5497-61f5cbbdfc3da704.js +0 -7
  1184. package/app/.next/static/chunks/6069-130fdae38088e4e7.js +0 -53
  1185. package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/page-0d5b57da4abb6962.js +0 -1
  1186. package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/users/page-972703d59d2a3986.js +0 -1
  1187. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/page-e1bd21507327d2bc.js +0 -1
  1188. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-ba3be29df191769b.js +0 -1
  1189. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-a0eaec978d93b101.js +0 -1
  1190. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-ca6a0263fcfc70df.js +0 -1
  1191. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-57065ce85ec52703.js +0 -1
  1192. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-c8f75b084231c080.js +0 -1
  1193. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e43ee64cc1f1547c.js +0 -59
  1194. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-c64dd1d0b2bd9caf.js +0 -1
  1195. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-9586c0b67f30a21b.js +0 -4
  1196. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-c7fbf29bdbdabee9.js +0 -1
  1197. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-b52d2279e8eff62d.js +0 -1
  1198. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-8fceba7ec6407143.js +0 -1
  1199. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-96d7ec789592a2ec.js +0 -1
  1200. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-a2ec9b595a5c5600.js +0 -10
  1201. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-0bf3048423ab0128.js +0 -1
  1202. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-979e3e3663264d2b.js +0 -1
  1203. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-77e1358581cbeecd.js +0 -4
  1204. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-51f915ba68f44424.js +0 -2
  1205. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-9202b5ce0650c3ab.js +0 -1
  1206. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-8d41d89fe12ae485.js +0 -1
  1207. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-18d6399108c458a6.js +0 -1
  1208. package/app/.next/static/chunks/app/(dashboard)/dashboard/user/page-12765c664b3c1f6d.js +0 -4
  1209. package/app/.next/static/chunks/app/(dashboard)/layout-2b26025389c75878.js +0 -1
  1210. package/app/.next/static/chunks/app/_global-error/page-8d41d89fe12ae485.js +0 -1
  1211. package/app/.next/static/chunks/app/api/auth/login/route-8d41d89fe12ae485.js +0 -1
  1212. package/app/.next/static/chunks/app/api/auth/logout/route-8d41d89fe12ae485.js +0 -1
  1213. package/app/.next/static/chunks/app/api/auth/me/route-8d41d89fe12ae485.js +0 -1
  1214. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-8d41d89fe12ae485.js +0 -1
  1215. package/app/.next/static/chunks/app/api/auth/oidc/start/route-8d41d89fe12ae485.js +0 -1
  1216. package/app/.next/static/chunks/app/api/auth/oidc/test/route-8d41d89fe12ae485.js +0 -1
  1217. package/app/.next/static/chunks/app/api/auth/reset-password/route-8d41d89fe12ae485.js +0 -1
  1218. package/app/.next/static/chunks/app/api/auth/status/route-8d41d89fe12ae485.js +0 -1
  1219. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-8d41d89fe12ae485.js +0 -1
  1220. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-8d41d89fe12ae485.js +0 -1
  1221. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-8d41d89fe12ae485.js +0 -1
  1222. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-8d41d89fe12ae485.js +0 -1
  1223. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-8d41d89fe12ae485.js +0 -1
  1224. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-8d41d89fe12ae485.js +0 -1
  1225. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-8d41d89fe12ae485.js +0 -1
  1226. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-8d41d89fe12ae485.js +0 -1
  1227. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-8d41d89fe12ae485.js +0 -1
  1228. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-8d41d89fe12ae485.js +0 -1
  1229. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-8d41d89fe12ae485.js +0 -1
  1230. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-8d41d89fe12ae485.js +0 -1
  1231. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-8d41d89fe12ae485.js +0 -1
  1232. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-8d41d89fe12ae485.js +0 -1
  1233. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-8d41d89fe12ae485.js +0 -1
  1234. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-8d41d89fe12ae485.js +0 -1
  1235. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-8d41d89fe12ae485.js +0 -1
  1236. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-8d41d89fe12ae485.js +0 -1
  1237. package/app/.next/static/chunks/app/api/combos/[id]/route-8d41d89fe12ae485.js +0 -1
  1238. package/app/.next/static/chunks/app/api/combos/route-8d41d89fe12ae485.js +0 -1
  1239. package/app/.next/static/chunks/app/api/health/route-8d41d89fe12ae485.js +0 -1
  1240. package/app/.next/static/chunks/app/api/init/route-8d41d89fe12ae485.js +0 -1
  1241. package/app/.next/static/chunks/app/api/keys/[id]/route-8d41d89fe12ae485.js +0 -1
  1242. package/app/.next/static/chunks/app/api/keys/route-8d41d89fe12ae485.js +0 -1
  1243. package/app/.next/static/chunks/app/api/locale/route-8d41d89fe12ae485.js +0 -1
  1244. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-8d41d89fe12ae485.js +0 -1
  1245. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-8d41d89fe12ae485.js +0 -1
  1246. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-8d41d89fe12ae485.js +0 -1
  1247. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-8d41d89fe12ae485.js +0 -1
  1248. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-8d41d89fe12ae485.js +0 -1
  1249. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-8d41d89fe12ae485.js +0 -1
  1250. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-8d41d89fe12ae485.js +0 -1
  1251. package/app/.next/static/chunks/app/api/models/alias/route-8d41d89fe12ae485.js +0 -1
  1252. package/app/.next/static/chunks/app/api/models/availability/route-8d41d89fe12ae485.js +0 -1
  1253. package/app/.next/static/chunks/app/api/models/custom/route-8d41d89fe12ae485.js +0 -1
  1254. package/app/.next/static/chunks/app/api/models/disabled/route-8d41d89fe12ae485.js +0 -1
  1255. package/app/.next/static/chunks/app/api/models/route-8d41d89fe12ae485.js +0 -1
  1256. package/app/.next/static/chunks/app/api/models/test/route-8d41d89fe12ae485.js +0 -1
  1257. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-8d41d89fe12ae485.js +0 -1
  1258. package/app/.next/static/chunks/app/api/oauth/codex/bulk-import/route-8d41d89fe12ae485.js +0 -1
  1259. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-8d41d89fe12ae485.js +0 -1
  1260. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-8d41d89fe12ae485.js +0 -1
  1261. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-8d41d89fe12ae485.js +0 -1
  1262. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-8d41d89fe12ae485.js +0 -1
  1263. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-8d41d89fe12ae485.js +0 -1
  1264. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-8d41d89fe12ae485.js +0 -1
  1265. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-8d41d89fe12ae485.js +0 -1
  1266. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-8d41d89fe12ae485.js +0 -1
  1267. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-8d41d89fe12ae485.js +0 -1
  1268. package/app/.next/static/chunks/app/api/pricing/route-8d41d89fe12ae485.js +0 -1
  1269. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-8d41d89fe12ae485.js +0 -1
  1270. package/app/.next/static/chunks/app/api/provider-nodes/route-8d41d89fe12ae485.js +0 -1
  1271. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-8d41d89fe12ae485.js +0 -1
  1272. package/app/.next/static/chunks/app/api/providers/[id]/models/route-8d41d89fe12ae485.js +0 -1
  1273. package/app/.next/static/chunks/app/api/providers/[id]/route-8d41d89fe12ae485.js +0 -1
  1274. package/app/.next/static/chunks/app/api/providers/[id]/test/route-8d41d89fe12ae485.js +0 -1
  1275. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-8d41d89fe12ae485.js +0 -1
  1276. package/app/.next/static/chunks/app/api/providers/client/route-8d41d89fe12ae485.js +0 -1
  1277. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-8d41d89fe12ae485.js +0 -1
  1278. package/app/.next/static/chunks/app/api/providers/route-8d41d89fe12ae485.js +0 -1
  1279. package/app/.next/static/chunks/app/api/providers/suggested-models/route-8d41d89fe12ae485.js +0 -1
  1280. package/app/.next/static/chunks/app/api/providers/test-batch/route-8d41d89fe12ae485.js +0 -1
  1281. package/app/.next/static/chunks/app/api/providers/validate/route-8d41d89fe12ae485.js +0 -1
  1282. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-8d41d89fe12ae485.js +0 -1
  1283. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-8d41d89fe12ae485.js +0 -1
  1284. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-8d41d89fe12ae485.js +0 -1
  1285. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-8d41d89fe12ae485.js +0 -1
  1286. package/app/.next/static/chunks/app/api/proxy-pools/route-8d41d89fe12ae485.js +0 -1
  1287. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-8d41d89fe12ae485.js +0 -1
  1288. package/app/.next/static/chunks/app/api/settings/database/route-8d41d89fe12ae485.js +0 -1
  1289. package/app/.next/static/chunks/app/api/settings/proxy-test/route-8d41d89fe12ae485.js +0 -1
  1290. package/app/.next/static/chunks/app/api/settings/require-login/route-8d41d89fe12ae485.js +0 -1
  1291. package/app/.next/static/chunks/app/api/settings/route-8d41d89fe12ae485.js +0 -1
  1292. package/app/.next/static/chunks/app/api/shutdown/route-8d41d89fe12ae485.js +0 -1
  1293. package/app/.next/static/chunks/app/api/tags/route-8d41d89fe12ae485.js +0 -1
  1294. package/app/.next/static/chunks/app/api/translator/console-logs/route-8d41d89fe12ae485.js +0 -1
  1295. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-8d41d89fe12ae485.js +0 -1
  1296. package/app/.next/static/chunks/app/api/translator/load/route-8d41d89fe12ae485.js +0 -1
  1297. package/app/.next/static/chunks/app/api/translator/save/route-8d41d89fe12ae485.js +0 -1
  1298. package/app/.next/static/chunks/app/api/translator/send/route-8d41d89fe12ae485.js +0 -1
  1299. package/app/.next/static/chunks/app/api/translator/translate/route-8d41d89fe12ae485.js +0 -1
  1300. package/app/.next/static/chunks/app/api/tunnel/disable/route-8d41d89fe12ae485.js +0 -1
  1301. package/app/.next/static/chunks/app/api/tunnel/enable/route-8d41d89fe12ae485.js +0 -1
  1302. package/app/.next/static/chunks/app/api/tunnel/status/route-8d41d89fe12ae485.js +0 -1
  1303. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-8d41d89fe12ae485.js +0 -1
  1304. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-8d41d89fe12ae485.js +0 -1
  1305. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-8d41d89fe12ae485.js +0 -1
  1306. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-8d41d89fe12ae485.js +0 -1
  1307. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-8d41d89fe12ae485.js +0 -1
  1308. package/app/.next/static/chunks/app/api/usage/api-keys/route-8d41d89fe12ae485.js +0 -1
  1309. package/app/.next/static/chunks/app/api/usage/chart/route-8d41d89fe12ae485.js +0 -1
  1310. package/app/.next/static/chunks/app/api/usage/history/route-8d41d89fe12ae485.js +0 -1
  1311. package/app/.next/static/chunks/app/api/usage/logs/route-8d41d89fe12ae485.js +0 -1
  1312. package/app/.next/static/chunks/app/api/usage/providers/route-8d41d89fe12ae485.js +0 -1
  1313. package/app/.next/static/chunks/app/api/usage/request-details/route-8d41d89fe12ae485.js +0 -1
  1314. package/app/.next/static/chunks/app/api/usage/request-logs/route-8d41d89fe12ae485.js +0 -1
  1315. package/app/.next/static/chunks/app/api/usage/stats/route-8d41d89fe12ae485.js +0 -1
  1316. package/app/.next/static/chunks/app/api/usage/stream/route-8d41d89fe12ae485.js +0 -1
  1317. package/app/.next/static/chunks/app/api/users/[id]/route-8d41d89fe12ae485.js +0 -1
  1318. package/app/.next/static/chunks/app/api/users/route-8d41d89fe12ae485.js +0 -1
  1319. package/app/.next/static/chunks/app/api/v1/api/chat/route-8d41d89fe12ae485.js +0 -1
  1320. package/app/.next/static/chunks/app/api/v1/audio/speech/route-8d41d89fe12ae485.js +0 -1
  1321. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-8d41d89fe12ae485.js +0 -1
  1322. package/app/.next/static/chunks/app/api/v1/audio/voices/route-8d41d89fe12ae485.js +0 -1
  1323. package/app/.next/static/chunks/app/api/v1/chat/completions/route-8d41d89fe12ae485.js +0 -1
  1324. package/app/.next/static/chunks/app/api/v1/embeddings/route-8d41d89fe12ae485.js +0 -1
  1325. package/app/.next/static/chunks/app/api/v1/images/generations/route-8d41d89fe12ae485.js +0 -1
  1326. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-8d41d89fe12ae485.js +0 -1
  1327. package/app/.next/static/chunks/app/api/v1/messages/route-8d41d89fe12ae485.js +0 -1
  1328. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-8d41d89fe12ae485.js +0 -1
  1329. package/app/.next/static/chunks/app/api/v1/models/info/route-8d41d89fe12ae485.js +0 -1
  1330. package/app/.next/static/chunks/app/api/v1/models/route-8d41d89fe12ae485.js +0 -1
  1331. package/app/.next/static/chunks/app/api/v1/responses/compact/route-8d41d89fe12ae485.js +0 -1
  1332. package/app/.next/static/chunks/app/api/v1/responses/route-8d41d89fe12ae485.js +0 -1
  1333. package/app/.next/static/chunks/app/api/v1/route-8d41d89fe12ae485.js +0 -1
  1334. package/app/.next/static/chunks/app/api/v1/search/route-8d41d89fe12ae485.js +0 -1
  1335. package/app/.next/static/chunks/app/api/v1/web/fetch/route-8d41d89fe12ae485.js +0 -1
  1336. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-8d41d89fe12ae485.js +0 -1
  1337. package/app/.next/static/chunks/app/api/v1beta/models/route-8d41d89fe12ae485.js +0 -1
  1338. package/app/.next/static/chunks/app/api/version/route-8d41d89fe12ae485.js +0 -1
  1339. package/app/.next/static/chunks/app/api/version/shutdown/route-8d41d89fe12ae485.js +0 -1
  1340. package/app/.next/static/chunks/app/api/version/update/route-8d41d89fe12ae485.js +0 -1
  1341. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-9d24273d41fadd28.js +0 -1
  1342. package/app/.next/static/chunks/app/layout-2f20e93bb64f203d.js +0 -1
  1343. package/app/.next/static/chunks/app/login/page-3192fc777d7b8d4d.js +0 -1
  1344. package/app/.next/static/chunks/app/manifest.webmanifest/route-8d41d89fe12ae485.js +0 -1
  1345. package/app/.next/static/chunks/app/page-8d41d89fe12ae485.js +0 -1
  1346. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-8d41d89fe12ae485.js +0 -1
  1347. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-8d41d89fe12ae485.js +0 -1
  1348. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-8d41d89fe12ae485.js +0 -1
  1349. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-8d41d89fe12ae485.js +0 -1
  1350. package/app/.next/static/chunks/webpack-b9b0d264958323b9.js +0 -1
  1351. package/app/.next/static/css/f240ded5456043a2.css +0 -1
  1352. package/app/.next/static/css/fe3b2b4e527f4e99.css +0 -1
  1353. package/app/node_modules/@img/colour/color.cjs +0 -1596
  1354. package/app/node_modules/@img/colour/index.cjs +0 -1
  1355. package/app/node_modules/@img/colour/package.json +0 -58
  1356. package/app/node_modules/@img/sharp-darwin-arm64/LICENSE +0 -191
  1357. package/app/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  1358. package/app/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
  1359. package/app/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
  1360. package/app/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
  1361. package/app/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
  1362. package/app/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
  1363. package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  1364. package/app/node_modules/better-sqlite3/lib/database.js +0 -90
  1365. package/app/node_modules/better-sqlite3/lib/index.js +0 -3
  1366. package/app/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
  1367. package/app/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
  1368. package/app/node_modules/better-sqlite3/lib/methods/function.js +0 -31
  1369. package/app/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
  1370. package/app/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
  1371. package/app/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
  1372. package/app/node_modules/better-sqlite3/lib/methods/table.js +0 -189
  1373. package/app/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
  1374. package/app/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
  1375. package/app/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
  1376. package/app/node_modules/better-sqlite3/lib/util.js +0 -12
  1377. package/app/node_modules/better-sqlite3/package.json +0 -59
  1378. package/app/node_modules/detect-libc/lib/detect-libc.js +0 -313
  1379. package/app/node_modules/detect-libc/lib/elf.js +0 -39
  1380. package/app/node_modules/detect-libc/lib/filesystem.js +0 -51
  1381. package/app/node_modules/detect-libc/lib/process.js +0 -24
  1382. package/app/node_modules/detect-libc/package.json +0 -44
  1383. package/app/node_modules/sharp/lib/channel.js +0 -177
  1384. package/app/node_modules/sharp/lib/colour.js +0 -195
  1385. package/app/node_modules/sharp/lib/composite.js +0 -212
  1386. package/app/node_modules/sharp/lib/constructor.js +0 -499
  1387. package/app/node_modules/sharp/lib/index.js +0 -16
  1388. package/app/node_modules/sharp/lib/input.js +0 -809
  1389. package/app/node_modules/sharp/lib/is.js +0 -143
  1390. package/app/node_modules/sharp/lib/libvips.js +0 -207
  1391. package/app/node_modules/sharp/lib/operation.js +0 -1016
  1392. package/app/node_modules/sharp/lib/output.js +0 -1666
  1393. package/app/node_modules/sharp/lib/resize.js +0 -595
  1394. package/app/node_modules/sharp/lib/sharp.js +0 -121
  1395. package/app/node_modules/sharp/lib/utility.js +0 -291
  1396. package/app/node_modules/sharp/node_modules/semver/classes/comparator.js +0 -143
  1397. package/app/node_modules/sharp/node_modules/semver/classes/range.js +0 -557
  1398. package/app/node_modules/sharp/node_modules/semver/classes/semver.js +0 -333
  1399. package/app/node_modules/sharp/node_modules/semver/functions/cmp.js +0 -54
  1400. package/app/node_modules/sharp/node_modules/semver/functions/coerce.js +0 -62
  1401. package/app/node_modules/sharp/node_modules/semver/functions/compare.js +0 -7
  1402. package/app/node_modules/sharp/node_modules/semver/functions/eq.js +0 -5
  1403. package/app/node_modules/sharp/node_modules/semver/functions/gt.js +0 -5
  1404. package/app/node_modules/sharp/node_modules/semver/functions/gte.js +0 -5
  1405. package/app/node_modules/sharp/node_modules/semver/functions/lt.js +0 -5
  1406. package/app/node_modules/sharp/node_modules/semver/functions/lte.js +0 -5
  1407. package/app/node_modules/sharp/node_modules/semver/functions/neq.js +0 -5
  1408. package/app/node_modules/sharp/node_modules/semver/functions/parse.js +0 -18
  1409. package/app/node_modules/sharp/node_modules/semver/functions/satisfies.js +0 -12
  1410. package/app/node_modules/sharp/node_modules/semver/internal/constants.js +0 -37
  1411. package/app/node_modules/sharp/node_modules/semver/internal/debug.js +0 -11
  1412. package/app/node_modules/sharp/node_modules/semver/internal/identifiers.js +0 -29
  1413. package/app/node_modules/sharp/node_modules/semver/internal/lrucache.js +0 -42
  1414. package/app/node_modules/sharp/node_modules/semver/internal/parse-options.js +0 -17
  1415. package/app/node_modules/sharp/node_modules/semver/internal/re.js +0 -223
  1416. package/app/node_modules/sharp/node_modules/semver/package.json +0 -78
  1417. package/app/node_modules/sharp/package.json +0 -202
  1418. package/app/src/mitm/antigravityIdeVersion.js +0 -50
  1419. package/app/src/mitm/cert/generate.js +0 -32
  1420. package/app/src/mitm/cert/install.js +0 -269
  1421. package/app/src/mitm/cert/rootCA.js +0 -173
  1422. package/app/src/mitm/config.js +0 -89
  1423. package/app/src/mitm/dbReader.js +0 -22
  1424. package/app/src/mitm/dns/dnsConfig.js +0 -266
  1425. package/app/src/mitm/handlers/antigravity.js +0 -33
  1426. package/app/src/mitm/handlers/base.js +0 -226
  1427. package/app/src/mitm/handlers/copilot.js +0 -35
  1428. package/app/src/mitm/handlers/cursor.js +0 -15
  1429. package/app/src/mitm/handlers/kiro.js +0 -526
  1430. package/app/src/mitm/logger.js +0 -106
  1431. package/app/src/mitm/manager.js +0 -851
  1432. package/app/src/mitm/paths.js +0 -32
  1433. package/app/src/mitm/winElevated.js +0 -81
  1434. package/app/src/shared/constants/mitmToolHosts.js +0 -12
  1435. /package/app/{.next → .next-cli-build}/package.json +0 -0
  1436. /package/app/{.next → .next-cli-build}/react-loadable-manifest.json +0 -0
  1437. /package/app/{.next → .next-cli-build}/server/app/_global-error.meta +0 -0
  1438. /package/app/{.next → .next-cli-build}/server/app/_not-found.meta +0 -0
  1439. /package/app/{.next → .next-cli-build}/server/app/api/auth/login/route_client-reference-manifest.js +0 -0
  1440. /package/app/{.next → .next-cli-build}/server/app/api/auth/logout/route_client-reference-manifest.js +0 -0
  1441. /package/app/{.next → .next-cli-build}/server/app/api/auth/me/route_client-reference-manifest.js +0 -0
  1442. /package/app/{.next → .next-cli-build}/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +0 -0
  1443. /package/app/{.next → .next-cli-build}/server/app/api/auth/oidc/start/route_client-reference-manifest.js +0 -0
  1444. /package/app/{.next → .next-cli-build}/server/app/api/auth/oidc/test/route_client-reference-manifest.js +0 -0
  1445. /package/app/{.next → .next-cli-build}/server/app/api/auth/reset-password/route_client-reference-manifest.js +0 -0
  1446. /package/app/{.next → .next-cli-build}/server/app/api/auth/status/route_client-reference-manifest.js +0 -0
  1447. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +0 -0
  1448. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +0 -0
  1449. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +0 -0
  1450. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +0 -0
  1451. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +0 -0
  1452. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/codex-settings/activate-account/route_client-reference-manifest.js +0 -0
  1453. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +0 -0
  1454. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +0 -0
  1455. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +0 -0
  1456. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +0 -0
  1457. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +0 -0
  1458. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +0 -0
  1459. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +0 -0
  1460. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +0 -0
  1461. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +0 -0
  1462. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +0 -0
  1463. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +0 -0
  1464. /package/app/{.next → .next-cli-build}/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +0 -0
  1465. /package/app/{.next → .next-cli-build}/server/app/api/combos/[id]/route_client-reference-manifest.js +0 -0
  1466. /package/app/{.next → .next-cli-build}/server/app/api/combos/route_client-reference-manifest.js +0 -0
  1467. /package/app/{.next → .next-cli-build}/server/app/api/health/route_client-reference-manifest.js +0 -0
  1468. /package/app/{.next → .next-cli-build}/server/app/api/init/route_client-reference-manifest.js +0 -0
  1469. /package/app/{.next → .next-cli-build}/server/app/api/keys/[id]/route_client-reference-manifest.js +0 -0
  1470. /package/app/{.next → .next-cli-build}/server/app/api/keys/route_client-reference-manifest.js +0 -0
  1471. /package/app/{.next → .next-cli-build}/server/app/api/locale/route_client-reference-manifest.js +0 -0
  1472. /package/app/{.next → .next-cli-build}/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +0 -0
  1473. /package/app/{.next → .next-cli-build}/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +0 -0
  1474. /package/app/{.next → .next-cli-build}/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +0 -0
  1475. /package/app/{.next → .next-cli-build}/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +0 -0
  1476. /package/app/{.next → .next-cli-build}/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +0 -0
  1477. /package/app/{.next → .next-cli-build}/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +0 -0
  1478. /package/app/{.next → .next-cli-build}/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +0 -0
  1479. /package/app/{.next → .next-cli-build}/server/app/api/models/alias/route_client-reference-manifest.js +0 -0
  1480. /package/app/{.next → .next-cli-build}/server/app/api/models/availability/route_client-reference-manifest.js +0 -0
  1481. /package/app/{.next → .next-cli-build}/server/app/api/models/custom/route_client-reference-manifest.js +0 -0
  1482. /package/app/{.next → .next-cli-build}/server/app/api/models/disabled/route_client-reference-manifest.js +0 -0
  1483. /package/app/{.next → .next-cli-build}/server/app/api/models/route_client-reference-manifest.js +0 -0
  1484. /package/app/{.next → .next-cli-build}/server/app/api/models/test/route_client-reference-manifest.js +0 -0
  1485. /package/app/{.next → .next-cli-build}/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +0 -0
  1486. /package/app/{.next → .next-cli-build}/server/app/api/oauth/codex/bulk-import/route_client-reference-manifest.js +0 -0
  1487. /package/app/{.next → .next-cli-build}/server/app/api/oauth/codex/import-token/route_client-reference-manifest.js +0 -0
  1488. /package/app/{.next → .next-cli-build}/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +0 -0
  1489. /package/app/{.next → .next-cli-build}/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +0 -0
  1490. /package/app/{.next → .next-cli-build}/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +0 -0
  1491. /package/app/{.next → .next-cli-build}/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +0 -0
  1492. /package/app/{.next → .next-cli-build}/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +0 -0
  1493. /package/app/{.next → .next-cli-build}/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +0 -0
  1494. /package/app/{.next → .next-cli-build}/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +0 -0
  1495. /package/app/{.next → .next-cli-build}/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +0 -0
  1496. /package/app/{.next → .next-cli-build}/server/app/api/pricing/route_client-reference-manifest.js +0 -0
  1497. /package/app/{.next → .next-cli-build}/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +0 -0
  1498. /package/app/{.next → .next-cli-build}/server/app/api/provider-nodes/route_client-reference-manifest.js +0 -0
  1499. /package/app/{.next → .next-cli-build}/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +0 -0
  1500. /package/app/{.next → .next-cli-build}/server/app/api/providers/[id]/models/route_client-reference-manifest.js +0 -0
  1501. /package/app/{.next → .next-cli-build}/server/app/api/providers/[id]/route_client-reference-manifest.js +0 -0
  1502. /package/app/{.next → .next-cli-build}/server/app/api/providers/[id]/test/route_client-reference-manifest.js +0 -0
  1503. /package/app/{.next → .next-cli-build}/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +0 -0
  1504. /package/app/{.next → .next-cli-build}/server/app/api/providers/client/route_client-reference-manifest.js +0 -0
  1505. /package/app/{.next → .next-cli-build}/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +0 -0
  1506. /package/app/{.next → .next-cli-build}/server/app/api/providers/route_client-reference-manifest.js +0 -0
  1507. /package/app/{.next → .next-cli-build}/server/app/api/providers/suggested-models/route_client-reference-manifest.js +0 -0
  1508. /package/app/{.next → .next-cli-build}/server/app/api/providers/test-batch/route_client-reference-manifest.js +0 -0
  1509. /package/app/{.next → .next-cli-build}/server/app/api/providers/validate/route_client-reference-manifest.js +0 -0
  1510. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +0 -0
  1511. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +0 -0
  1512. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/cloudflare-deploy/route_client-reference-manifest.js +0 -0
  1513. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/deno-deploy/route_client-reference-manifest.js +0 -0
  1514. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/route_client-reference-manifest.js +0 -0
  1515. /package/app/{.next → .next-cli-build}/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +0 -0
  1516. /package/app/{.next → .next-cli-build}/server/app/api/settings/database/route_client-reference-manifest.js +0 -0
  1517. /package/app/{.next → .next-cli-build}/server/app/api/settings/proxy-test/route_client-reference-manifest.js +0 -0
  1518. /package/app/{.next → .next-cli-build}/server/app/api/settings/require-login/route_client-reference-manifest.js +0 -0
  1519. /package/app/{.next → .next-cli-build}/server/app/api/settings/route_client-reference-manifest.js +0 -0
  1520. /package/app/{.next → .next-cli-build}/server/app/api/shutdown/route_client-reference-manifest.js +0 -0
  1521. /package/app/{.next → .next-cli-build}/server/app/api/tags/route_client-reference-manifest.js +0 -0
  1522. /package/app/{.next → .next-cli-build}/server/app/api/translator/console-logs/route_client-reference-manifest.js +0 -0
  1523. /package/app/{.next → .next-cli-build}/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +0 -0
  1524. /package/app/{.next → .next-cli-build}/server/app/api/translator/load/route_client-reference-manifest.js +0 -0
  1525. /package/app/{.next → .next-cli-build}/server/app/api/translator/save/route_client-reference-manifest.js +0 -0
  1526. /package/app/{.next → .next-cli-build}/server/app/api/translator/send/route_client-reference-manifest.js +0 -0
  1527. /package/app/{.next → .next-cli-build}/server/app/api/translator/translate/route_client-reference-manifest.js +0 -0
  1528. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/disable/route_client-reference-manifest.js +0 -0
  1529. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/enable/route_client-reference-manifest.js +0 -0
  1530. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/status/route_client-reference-manifest.js +0 -0
  1531. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +0 -0
  1532. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/tailscale-disable/route_client-reference-manifest.js +0 -0
  1533. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/tailscale-enable/route_client-reference-manifest.js +0 -0
  1534. /package/app/{.next → .next-cli-build}/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +0 -0
  1535. /package/app/{.next → .next-cli-build}/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +0 -0
  1536. /package/app/{.next → .next-cli-build}/server/app/api/usage/api-keys/route_client-reference-manifest.js +0 -0
  1537. /package/app/{.next → .next-cli-build}/server/app/api/usage/chart/route_client-reference-manifest.js +0 -0
  1538. /package/app/{.next → .next-cli-build}/server/app/api/usage/history/route_client-reference-manifest.js +0 -0
  1539. /package/app/{.next → .next-cli-build}/server/app/api/usage/logs/route_client-reference-manifest.js +0 -0
  1540. /package/app/{.next → .next-cli-build}/server/app/api/usage/providers/route_client-reference-manifest.js +0 -0
  1541. /package/app/{.next → .next-cli-build}/server/app/api/usage/request-details/route_client-reference-manifest.js +0 -0
  1542. /package/app/{.next → .next-cli-build}/server/app/api/usage/request-logs/route_client-reference-manifest.js +0 -0
  1543. /package/app/{.next → .next-cli-build}/server/app/api/usage/stats/route_client-reference-manifest.js +0 -0
  1544. /package/app/{.next → .next-cli-build}/server/app/api/usage/stream/route_client-reference-manifest.js +0 -0
  1545. /package/app/{.next → .next-cli-build}/server/app/api/users/[id]/route_client-reference-manifest.js +0 -0
  1546. /package/app/{.next → .next-cli-build}/server/app/api/users/route_client-reference-manifest.js +0 -0
  1547. /package/app/{.next → .next-cli-build}/server/app/api/v1/api/chat/route_client-reference-manifest.js +0 -0
  1548. /package/app/{.next → .next-cli-build}/server/app/api/v1/audio/speech/route_client-reference-manifest.js +0 -0
  1549. /package/app/{.next → .next-cli-build}/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +0 -0
  1550. /package/app/{.next → .next-cli-build}/server/app/api/v1/audio/voices/route_client-reference-manifest.js +0 -0
  1551. /package/app/{.next → .next-cli-build}/server/app/api/v1/chat/completions/route_client-reference-manifest.js +0 -0
  1552. /package/app/{.next → .next-cli-build}/server/app/api/v1/embeddings/route_client-reference-manifest.js +0 -0
  1553. /package/app/{.next → .next-cli-build}/server/app/api/v1/images/generations/route_client-reference-manifest.js +0 -0
  1554. /package/app/{.next → .next-cli-build}/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +0 -0
  1555. /package/app/{.next → .next-cli-build}/server/app/api/v1/messages/route_client-reference-manifest.js +0 -0
  1556. /package/app/{.next → .next-cli-build}/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +0 -0
  1557. /package/app/{.next → .next-cli-build}/server/app/api/v1/models/info/route_client-reference-manifest.js +0 -0
  1558. /package/app/{.next → .next-cli-build}/server/app/api/v1/models/route_client-reference-manifest.js +0 -0
  1559. /package/app/{.next → .next-cli-build}/server/app/api/v1/responses/compact/route_client-reference-manifest.js +0 -0
  1560. /package/app/{.next → .next-cli-build}/server/app/api/v1/responses/route_client-reference-manifest.js +0 -0
  1561. /package/app/{.next → .next-cli-build}/server/app/api/v1/route_client-reference-manifest.js +0 -0
  1562. /package/app/{.next → .next-cli-build}/server/app/api/v1/search/route_client-reference-manifest.js +0 -0
  1563. /package/app/{.next → .next-cli-build}/server/app/api/v1/web/fetch/route_client-reference-manifest.js +0 -0
  1564. /package/app/{.next → .next-cli-build}/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +0 -0
  1565. /package/app/{.next → .next-cli-build}/server/app/api/v1beta/models/route_client-reference-manifest.js +0 -0
  1566. /package/app/{.next → .next-cli-build}/server/app/api/version/route_client-reference-manifest.js +0 -0
  1567. /package/app/{.next → .next-cli-build}/server/app/api/version/shutdown/route_client-reference-manifest.js +0 -0
  1568. /package/app/{.next → .next-cli-build}/server/app/api/version/update/route_client-reference-manifest.js +0 -0
  1569. /package/app/{.next → .next-cli-build}/server/app/callback.meta +0 -0
  1570. /package/app/{.next → .next-cli-build}/server/app/dashboard/settings/pricing.meta +0 -0
  1571. /package/app/{.next → .next-cli-build}/server/app/favicon.ico.body +0 -0
  1572. /package/app/{.next → .next-cli-build}/server/app/favicon.ico.meta +0 -0
  1573. /package/app/{.next → .next-cli-build}/server/app/index.meta +0 -0
  1574. /package/app/{.next → .next-cli-build}/server/app/landing.meta +0 -0
  1575. /package/app/{.next → .next-cli-build}/server/app/login.meta +0 -0
  1576. /package/app/{.next → .next-cli-build}/server/app/manifest.webmanifest/route_client-reference-manifest.js +0 -0
  1577. /package/app/{.next → .next-cli-build}/server/app/manifest.webmanifest.body +0 -0
  1578. /package/app/{.next → .next-cli-build}/server/app/manifest.webmanifest.meta +0 -0
  1579. /package/app/{.next → .next-cli-build}/server/chunks/1679.js +0 -0
  1580. /package/app/{.next → .next-cli-build}/server/chunks/1998.js +0 -0
  1581. /package/app/{.next → .next-cli-build}/server/chunks/241.js +0 -0
  1582. /package/app/{.next → .next-cli-build}/server/chunks/3593.js +0 -0
  1583. /package/app/{.next → .next-cli-build}/server/chunks/4013.js +0 -0
  1584. /package/app/{.next → .next-cli-build}/server/chunks/4739.js +0 -0
  1585. /package/app/{.next → .next-cli-build}/server/chunks/4741.js +0 -0
  1586. /package/app/{.next → .next-cli-build}/server/chunks/4989.js +0 -0
  1587. /package/app/{.next → .next-cli-build}/server/chunks/5217.js +0 -0
  1588. /package/app/{.next → .next-cli-build}/server/chunks/5258.js +0 -0
  1589. /package/app/{.next → .next-cli-build}/server/chunks/5573.js +0 -0
  1590. /package/app/{.next → .next-cli-build}/server/chunks/6457.js +0 -0
  1591. /package/app/{.next → .next-cli-build}/server/chunks/6844.js +0 -0
  1592. /package/app/{.next → .next-cli-build}/server/chunks/6936.js +0 -0
  1593. /package/app/{.next → .next-cli-build}/server/chunks/7502.js +0 -0
  1594. /package/app/{.next → .next-cli-build}/server/chunks/8473.js +0 -0
  1595. /package/app/{.next → .next-cli-build}/server/chunks/8520.js +0 -0
  1596. /package/app/{.next → .next-cli-build}/server/chunks/8971.js +0 -0
  1597. /package/app/{.next → .next-cli-build}/server/chunks/9460.js +0 -0
  1598. /package/app/{.next → .next-cli-build}/server/functions-config-manifest.json +0 -0
  1599. /package/app/{.next → .next-cli-build}/server/middleware-manifest.json +0 -0
  1600. /package/app/{.next → .next-cli-build}/server/middleware-react-loadable-manifest.js +0 -0
  1601. /package/app/{.next → .next-cli-build}/server/pages-manifest.json +0 -0
  1602. /package/app/{.next → .next-cli-build}/server/prefetch-hints.json +0 -0
  1603. /package/app/{.next → .next-cli-build}/server/webpack-runtime.js +0 -0
  1604. /package/app/{.next/static/MxcY0EY8eMa4ouCwsP4Cl → .next-cli-build/static/DLZR81Hq9OqOrl2Xc2iHn}/_ssgManifest.js +0 -0
  1605. /package/app/{.next → .next-cli-build}/static/chunks/1051-a02f07646d97d6ca.js +0 -0
  1606. /package/app/{.next → .next-cli-build}/static/chunks/1a258343-5938f676ed376386.js +0 -0
  1607. /package/app/{.next → .next-cli-build}/static/chunks/3794-ba2500baa4c52d55.js +0 -0
  1608. /package/app/{.next → .next-cli-build}/static/chunks/4bd1b696-e356ca5ba0218e27.js +0 -0
  1609. /package/app/{.next → .next-cli-build}/static/chunks/5242-bb1a1a7ec3bfb62f.js +0 -0
  1610. /package/app/{.next → .next-cli-build}/static/chunks/5772-901f1092d831ec37.js +0 -0
  1611. /package/app/{.next → .next-cli-build}/static/chunks/7055-e60e20f43bfbe5f8.js +0 -0
  1612. /package/app/{.next → .next-cli-build}/static/chunks/app/_not-found/page-7927650ca4037264.js +0 -0
  1613. /package/app/{.next → .next-cli-build}/static/chunks/app/callback/page-97a750f0d51c3dbe.js +0 -0
  1614. /package/app/{.next → .next-cli-build}/static/chunks/app/landing/page-bf42a9c80c1e6776.js +0 -0
  1615. /package/app/{.next → .next-cli-build}/static/chunks/framework-711ef29bc66f648c.js +0 -0
  1616. /package/app/{.next → .next-cli-build}/static/chunks/main-app-d5f2701c08554961.js +0 -0
  1617. /package/app/{.next → .next-cli-build}/static/chunks/main-b8d198db3858ff3e.js +0 -0
  1618. /package/app/{.next → .next-cli-build}/static/chunks/next/dist/client/components/builtin/global-error-8d51a00b6c966622.js +0 -0
  1619. /package/app/{.next → .next-cli-build}/static/chunks/polyfills-42372ed130431b0a.js +0 -0
  1620. /package/app/{.next → .next-cli-build}/static/css/599369d853c61df7.css +0 -0
  1621. /package/app/{.next → .next-cli-build}/static/media/material-symbols-outlined.1060ac06.woff2 +0 -0
@@ -1 +0,0 @@
1
- "use strict";(()=>{var a={};a.id=8453,a.ids=[1998,8453],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")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},24839:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{POST:()=>G});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998),x=c(75681),y=c(93800),z=c(44404),A=c(35024),B=c(97821),C=c(30869),D=c(57729);async function E(a,b){let c,d=x.AI_PROVIDERS[a];if(!d||!(d.serviceKinds||["llm"]).every(a=>"webSearch"===a||"webFetch"===a))return null;let e=d.searchConfig||d.fetchConfig;if(!e)return null;if("none"===e.authType)return!0;let f=e.baseUrl,g={"Content-Type":"application/json"};switch(e.authHeader){case"bearer":g.Authorization=`Bearer ${b}`;break;case"x-api-key":g["x-api-key"]=b;break;case"x-subscription-token":g["x-subscription-token"]=b;break;case"key":f+=`?key=${encodeURIComponent(b)}&q=ping&cx=test`;break;case"api_key":f+=`?api_key=${encodeURIComponent(b)}&q=ping&engine=google`}"POST"===e.method&&(c=JSON.stringify({query:"ping",q:"ping",url:"https://example.com"}));let h=await fetch(f,{method:e.method,headers:g,body:c,signal:AbortSignal.timeout(8e3)});return 401!==h.status&&403!==h.status}async function F(a,b){let c=x.AI_PROVIDERS[a];if(!c)return null;let d=new Set(["tts","embedding","stt","image","video","music","imageToText"]);if(!(c.serviceKinds||["llm"]).every(a=>d.has(a)))return null;let e=c.ttsConfig||c.sttConfig||c.embeddingConfig||c.imageConfig||c.videoConfig||c.musicConfig;if(!e||c.noAuth||"none"===e.authType||"playht"===e.authHeader||"aws-sigv4"===e.authHeader)return!0;let f={"Content-Type":"application/json",...e.extraHeaders||{}};switch(e.authHeader){case"bearer":f.Authorization=`Bearer ${b}`;break;case"key":f.Authorization=`Key ${b}`;break;case"x-api-key":f["x-api-key"]=b;break;case"x-key":f["x-key"]=b;break;case"xi-api-key":f["xi-api-key"]=b;break;case"token":f.Authorization=`Token ${b}`;break;case"basic":f.Authorization=`Basic ${b}`;break;default:return null}let g=e.method||"POST",h=await fetch(e.baseUrl,{method:g,headers:f,body:"GET"===g?void 0:JSON.stringify({input:"ping",text:"ping",prompt:"ping",model:e.models?.[0]?.id||"test"}),signal:AbortSignal.timeout(8e3)});return 401!==h.status&&403!==h.status}async function G(a){try{let b=await a.json(),c=(0,D.ob)(b.provider),{apiKey:d,providerSpecificData:e}=b,f=x.AI_PROVIDERS[c]?.noAuth===!0;if(!c||!d&&"ollama-local"!==c&&!f)return v.NextResponse.json({error:"Provider and API key required"},{status:400});let g=!1,h=null;try{if((0,x.mq)(c)){let a=await (0,w.Qu)(c);if(!a)return v.NextResponse.json({error:"OpenAI Compatible node not found"},{status:404});let b=a.baseUrl||"",e=(0,y.wl)(b,"openai-compatible"),f=`${e}/models`,h=await fetch(f,{headers:{Authorization:`Bearer ${d}`}});if(h.ok)return v.NextResponse.json({valid:!0,error:null});if(401===h.status||403===h.status)return v.NextResponse.json({valid:!1,error:"Invalid API key"});let i=(b.replace(/\/+$/,"")!==e?(0,y.Hl)({url:b}):null)||a.apiType||"chat",j=await fetch(`${e}${"responses"===i?"/responses":"/chat/completions"}`,{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify("responses"===i?{model:"test",input:"ping",max_output_tokens:1}:{model:"test",messages:[{role:"user",content:"ping"}],max_tokens:1})});return g=401!==j.status&&403!==j.status&&404!==j.status,v.NextResponse.json({valid:g,error:g?null:"Invalid API key"})}if((0,x.gC)(c)){let a=await (0,w.Qu)(c);if(!a)return v.NextResponse.json({error:"Custom Embedding node not found"},{status:404});let b=a.baseUrl?.replace(/\/$/,""),e=await fetch(`${b}/models`,{headers:{Authorization:`Bearer ${d}`}});if(e.ok)return v.NextResponse.json({valid:!0});if(401===e.status||403===e.status)return v.NextResponse.json({valid:!1,error:"Invalid API key"});let f=await fetch(`${b}/embeddings`,{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({model:"test",input:"ping"})});return g=401!==f.status&&403!==f.status,v.NextResponse.json({valid:g,error:g?null:"Invalid API key"})}if((0,x.Yg)(c)){let a=await (0,w.Qu)(c);if(!a)return v.NextResponse.json({error:"Custom Image node not found"},{status:404});let b=(0,y.wl)(a.baseUrl,"custom-image"),e=await fetch(`${b}/images/generations`,{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({model:"test",prompt:"ping",n:1,size:a.defaultSize||"1024x1024"})}),f=![401,403].includes(e.status);return v.NextResponse.json({valid:f,error:f?null:"Invalid API key"})}if((0,x.gb)(c)){let a=await (0,w.Qu)(c);if(!a)return v.NextResponse.json({error:"Anthropic Compatible node not found"},{status:404});let b=(0,y.wl)(a.baseUrl,"anthropic-compatible"),e=`${b}/models`;return g=(await fetch(e,{headers:{"x-api-key":d,"anthropic-version":"2023-06-01",Authorization:`Bearer ${d}`}})).ok,v.NextResponse.json({valid:g,error:g?null:"Invalid API key"})}if("cloudflare-ai"===c){let{providerSpecificData:a}=b,c=a?.accountId;if(!c)return v.NextResponse.json({valid:!1,error:"Missing Account ID"});let e=`https://api.cloudflare.com/client/v4/accounts/${c}/ai/v1/chat/completions`,f=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({model:(0,z.fZ)("cloudflare-ai"),messages:[{role:"user",content:"test"}],max_tokens:1})});return g=401!==f.status&&403!==f.status&&404!==f.status,v.NextResponse.json({valid:g,error:g?null:"Invalid API token or Account ID"})}if("azure"===c){let{providerSpecificData:a}=b,c=(a?.azureEndpoint||"").replace(/\/$/,""),e=a?.deployment||"gpt-4",f=a?.apiVersion||"2024-10-01-preview",h=a?.organization,i=`${c}/openai/deployments/${e}/chat/completions?api-version=${f}`,j={"api-key":d,"Content-Type":"application/json"};h&&(j["OpenAI-Organization"]=h);let k=await fetch(i,{method:"POST",headers:j,body:JSON.stringify({messages:[{role:"user",content:"test"}],max_tokens:1})});return g=401!==k.status&&403!==k.status,v.NextResponse.json({valid:g,error:g?null:"Invalid API key or Azure configuration"})}let a=await E(c,d);if(null!==a)return v.NextResponse.json({valid:a,error:a?null:"Invalid API key"});let f=await F(c,d);if(null!==f)return v.NextResponse.json({valid:f,error:f?null:"Invalid API key"});switch(c){case"openai":g=(await fetch("https://api.openai.com/v1/models",{headers:{Authorization:`Bearer ${d}`}})).ok;break;case"vercel-ai-gateway":g=(await fetch("https://ai-gateway.vercel.sh/v1/models",{headers:{Authorization:`Bearer ${d}`}})).ok;break;case"anthropic":let i=await fetch("https://api.anthropic.com/v1/messages",{method:"POST",headers:{"x-api-key":d,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-haiku-20240307",max_tokens:1,messages:[{role:"user",content:"test"}]})});g=401!==i.status;break;case"gemini":g=(await fetch(`https://generativelanguage.googleapis.com/v1/models?key=${d}`)).ok;break;case"openrouter":g=(await fetch("https://openrouter.ai/api/v1/models",{headers:{Authorization:`Bearer ${d}`}})).ok;break;case"glm":case"glm-cn":case"kimi":case"minimax":case"minimax-cn":case"alicode-intl":case"alicode":case"agentrouter":{let a=A.xq[c];if("glm-cn"===c||"alicode"===c||"alicode-intl"===c){let b=(0,z.fZ)(c),e=await fetch(a.baseUrl,{method:"POST",headers:{Authorization:`Bearer ${d}`,"content-type":"application/json"},body:JSON.stringify({model:b,max_tokens:1,messages:[{role:"user",content:"test"}]})});g=401!==e.status&&403!==e.status}else{let b=(0,z.fZ)(c)||"claude-sonnet-4-20250514",e=await fetch(a.baseUrl,{method:"POST",headers:{"x-api-key":d,"anthropic-version":"2023-06-01","content-type":"application/json",...a.headers||{}},body:JSON.stringify({model:b,max_tokens:1,messages:[{role:"user",content:"test"}]})});g=401!==e.status&&403!==e.status}break}case"volcengine-ark":case"byteplus":{let a=await fetch(C.X3[c],{method:"POST",headers:{Authorization:`Bearer ${d}`,"content-type":"application/json"},body:JSON.stringify({model:(0,z.fZ)(c),max_tokens:1,messages:[{role:"user",content:"test"}]})});g=401!==a.status&&403!==a.status;break}case"deepseek":case"groq":case"xai":case"mistral":case"perplexity":case"together":case"fireworks":case"cerebras":case"cohere":case"nebius":case"siliconflow":case"hyperbolic":case"ollama":case"ollama-local":case"assemblyai":case"nanobanana":case"chutes":case"xiaomi-mimo":case"xiaomi-tokenplan":case"nvidia":{let a={deepseek:"https://api.deepseek.com/models",groq:"https://api.groq.com/openai/v1/models",xai:"https://api.x.ai/v1/models",mistral:"https://api.mistral.ai/v1/models",perplexity:"https://api.perplexity.ai/models",together:"https://api.together.xyz/v1/models",fireworks:"https://api.fireworks.ai/inference/v1/models",cerebras:"https://api.cerebras.ai/v1/models",cohere:"https://api.cohere.ai/v1/models",nebius:"https://api.studio.nebius.ai/v1/models",siliconflow:"https://api.siliconflow.com/v1/models",hyperbolic:"https://api.hyperbolic.xyz/v1/models",ollama:"https://ollama.com/api/tags","ollama-local":`${(0,A.Ak)({providerSpecificData:e})}/api/tags`,assemblyai:"https://api.assemblyai.com/v1/account",nanobanana:"https://api.nanobananaapi.ai/v1/models",chutes:"https://llm.chutes.ai/v1/models",nvidia:"https://integrate.api.nvidia.com/v1/models","xiaomi-mimo":"https://api.xiaomimimo.com/v1/models","xiaomi-tokenplan":`${(0,A.Yg)({providerSpecificData:e})}/models`},b={};d&&(b.Authorization=`Bearer ${d}`);let f=await fetch(a[c],{headers:b});g="xai"===c?200===f.status||403===f.status:f.ok;break}case"opencode-go":{let a=await fetch("https://opencode.ai/zen/go/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify({model:(0,z.fZ)("opencode-go"),messages:[{role:"user",content:"ping"}],max_tokens:1,stream:!1})});g=401!==a.status&&403!==a.status;break}case"commandcode":{let a=A.xq.commandcode,b=(0,z.fZ)("commandcode"),c=(0,B.openaiToCommandCode)(b,{messages:[{role:"user",content:"ping"}],max_tokens:1,stream:!1},!1),e=await fetch(a.baseUrl,{method:"POST",headers:{"Content-Type":"application/json",...a.headers||{},"x-session-id":crypto.randomUUID(),Authorization:`Bearer ${d}`},body:JSON.stringify(c)});g=401!==e.status&&403!==e.status;break}case"deepgram":g=(await fetch("https://api.deepgram.com/v1/projects",{headers:{Authorization:`Token ${d}`}})).ok;break;case"blackbox":{let a=await fetch("https://api.blackbox.ai/chat/completions",{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({model:"gpt-4o",messages:[{role:"user",content:"test"}],max_tokens:10})});g=200===a.status||400===a.status;break}case"vertex":{let a=(()=>{try{let a=JSON.parse(d);return"service_account"===a.type?a:null}catch{return null}})();if(a)g=!!(a.client_email&&a.private_key&&a.project_id);else{let a=await fetch(`https://aiplatform.googleapis.com/v1/publishers/google/models/__probe__:generateContent?key=${d}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"});g=401!==a.status&&403!==a.status}break}case"vertex-partner":{let a=(()=>{try{let a=JSON.parse(d);return"service_account"===a.type?a:null}catch{return null}})();if(a)g=!!(a.client_email&&a.private_key&&a.project_id);else{let a=await fetch(`https://aiplatform.googleapis.com/v1/publishers/google/models/__probe__:generateContent?key=${d}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"});g=401!==a.status&&403!==a.status}break}case"grok-web":{let a=d.startsWith("sso=")?d.slice(4):d,b=a=>{let b=new Uint8Array(a);return crypto.getRandomValues(b),Array.from(b,a=>a.toString(16).padStart(2,"0")).join("")},c=Buffer.from("e:TypeError: Cannot read properties of null (reading 'children')").toString("base64"),e=b(16),f=b(8),i=await fetch("https://grok.com/rest/app-chat/conversations/new",{method:"POST",headers:{Accept:"*/*","Accept-Encoding":"gzip, deflate, br, zstd","Accept-Language":"en-US,en;q=0.9","Cache-Control":"no-cache","Content-Type":"application/json",Cookie:`sso=${a}`,Origin:"https://grok.com",Pragma:"no-cache",Referer:"https://grok.com/","Sec-Ch-Ua":'"Google Chrome";v="136", "Chromium";v="136", "Not(A:Brand";v="24"',"Sec-Ch-Ua-Mobile":"?0","Sec-Ch-Ua-Platform":'"macOS"',"Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":c,"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${e}-${f}-00`},body:JSON.stringify({temporary:!0,modelName:"grok-4",modelMode:"MODEL_MODE_GROK_4",message:"ping",fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,returnImageBytes:!1,returnRawGrokInXaiRequest:!1,enableImageStreaming:!1,imageGenerationCount:0,forceConcise:!1,toolOverrides:{},enableSideBySide:!0,sendFinalMetadata:!0,isReasoning:!1,disableTextFollowUps:!0,disableMemory:!0,forceSideBySide:!1,isAsyncChat:!1,disableSelfHarmShortCircuit:!1})});401===i.status||403===i.status?(g=!1,h="Invalid SSO cookie — re-paste from grok.com DevTools → Cookies → sso"):g=!0;break}case"perplexity-web":{let a=d;a.startsWith("__Secure-next-auth.session-token=")&&(a=a.slice(33));let b="u">typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:"UTC",c=await fetch("https://www.perplexity.ai/rest/sse/perplexity_ask",{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",Origin:"https://www.perplexity.ai",Referer:"https://www.perplexity.ai/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","X-App-ApiClient":"default","X-App-ApiVersion":"2.18",Cookie:`__Secure-next-auth.session-token=${a}`},body:JSON.stringify({query_str:"ping",params:{query_str:"ping",search_focus:"internet",mode:"concise",model_preference:"pplx_pro",sources:["web"],attachments:[],frontend_uuid:crypto.randomUUID(),frontend_context_uuid:crypto.randomUUID(),version:"2.18",language:"en-US",timezone:b,search_recency_filter:null,is_incognito:!0,use_schematized_api:!0,last_backend_uuid:null}})});401===c.status||403===c.status?(g=!1,h="Invalid session cookie — re-paste __Secure-next-auth.session-token from perplexity.ai"):g=!0;break}default:{let a=A.xq[c];if(!a||"openai"!==a.format||!a.baseUrl)return v.NextResponse.json({error:"Provider validation not supported"},{status:400});if(a.noAuth){g=!0;break}let b={"Content-Type":"application/json",...a.headers||{}};"x-api-key"===a.authHeader?b["X-API-Key"]=d:b.Authorization=`Bearer ${d}`;let e=a.baseUrl.replace(/\/chat\/completions$/,"/models").replace(/\/chatbot$/,"/models"),f=null;try{let a=await fetch(e,{headers:b,signal:AbortSignal.timeout(8e3)});401===a.status||403===a.status?f=!1:a.ok&&(f=!0)}catch{}if(null!==f){g=f;break}let h=(0,z.fZ)(c)||"test",i=await fetch(a.baseUrl,{method:"POST",headers:b,body:JSON.stringify({model:h,messages:[{role:"user",content:"ping"}],max_tokens:1}),signal:AbortSignal.timeout(1e4)});g=401!==i.status&&403!==i.status}}}catch(a){h=a.message,g=!1}return v.NextResponse.json({valid:g,error:g?null:h||"Invalid API key"})}catch(a){return console.log("Error validating API key:",a),v.NextResponse.json({error:"Validation failed"},{status:500})}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/providers/validate/route",pathname:"/api/providers/validate",filename:"route",bundlePath:"app/api/providers/validate/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/providers/validate/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),H.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/providers/validate/route";"/index"===d&&(d="/");let e=await H.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[E]),K=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||H.isDev||z||(L="/index"===(L=E)?"/":L);let M=!0===H.isDev||!J,N=J&&!M;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await H.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>H.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>H.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await H.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),b}},k=await H.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:C})},!1,B),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},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")},30869:(a,b,c)=>{c.d(b,{UY:()=>h,X3:()=>i,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"@yina-npm/openrouterx",installCmd:"npm i -g @yina-npm/openrouterx --registry=https://registry.npmjs.org/",installCmdLatest:"npm i -g @yina-npm/openrouterx@latest --prefer-online --registry=https://registry.npmjs.org/",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20502},h={maxLines:200,pollIntervalMs:1e3},i={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"}},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},34631:a=>{a.exports=require("tls")},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")},48161:a=>{a.exports=require("node:os")},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")},57729:(a,b,c)=>{c.d(b,{F8:()=>f,ob:()=>e});var d=c(75681);function e(a){if("string"!=typeof a)return a;let b=a.trim();if(d.AI_PROVIDERS[b])return b;let c=b.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");if(d.AI_PROVIDERS[c])return c;let e=Object.values(d.AI_PROVIDERS).find(a=>a.name?.toLowerCase()===b.toLowerCase());return e?.id||b}function f(a,b={},c=null){let d=c&&"object"==typeof c?{...c}:{};if("ollama-local"===a){let a=(d.baseUrl||b.baseUrl||b.baseURL||b.ollamaHostUrl||"").trim();a&&(d.baseUrl=a)}return Object.keys(d).length>0?d:null}},57975:a=>{a.exports=require("node:util")},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.getProviderNodes,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")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},80099:a=>{a.exports=require("node:sqlite")},81115:a=>{a.exports=require("constants")},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})))},81630:a=>{a.exports=require("http")},82996:(a,b,c)=>{c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87997:a=>{a.exports=require("node:timers")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,9718,5681,9660,4404,1172,7540],()=>b(b.s=24839));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../src/lib/oauth/services/qoder.js","../../../../../../src/lib/oauth/services/xai.js","../../../../../../src/shared/utils/apiKey.js","../../../../../package.json","../../../../chunks/1172.js","../../../../chunks/1531.js","../../../../chunks/1679.js","../../../../chunks/1813.js","../../../../chunks/1998.js","../../../../chunks/3104.js","../../../../chunks/3663.js","../../../../chunks/4177.js","../../../../chunks/4404.js","../../../../chunks/4741.js","../../../../chunks/4989.js","../../../../chunks/5681.js","../../../../chunks/6844.js","../../../../chunks/6936.js","../../../../chunks/7341.js","../../../../chunks/7502.js","../../../../chunks/7540.js","../../../../chunks/7774.js","../../../../chunks/7937.js","../../../../chunks/8473.js","../../../../chunks/8895.js","../../../../chunks/8971.js","../../../../chunks/9660.js","../../../../chunks/9713.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}
@@ -1 +0,0 @@
1
- (()=>{var a={};a.id=3562,a.ids=[1998,3562],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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{"use strict";c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{"use strict";a.exports=require("assert")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30369:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{DELETE:()=>z,GET:()=>x,PUT:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,w.hr)(a);if(!c)return v.NextResponse.json({error:"Proxy pool not found"},{status:404});return v.NextResponse.json({proxyPool:c})}catch(a){return console.log("Error fetching proxy pool:",a),v.NextResponse.json({error:"Failed to fetch proxy pool"},{status:500})}}async function y(a,{params:b}){try{let{id:c}=await b;if(!await (0,w.hr)(c))return v.NextResponse.json({error:"Proxy pool not found"},{status:404});let d=await a.json(),e=function(a={}){let b={};if(Object.prototype.hasOwnProperty.call(a,"name")){let c="string"==typeof a?.name?a.name.trim():"";if(!c)return{error:"Name is required"};b.name=c}if(Object.prototype.hasOwnProperty.call(a,"proxyUrl")){let c="string"==typeof a?.proxyUrl?a.proxyUrl.trim():"";if(!c)return{error:"Proxy URL is required"};b.proxyUrl=c}return Object.prototype.hasOwnProperty.call(a,"noProxy")&&(b.noProxy="string"==typeof a?.noProxy?a.noProxy.trim():""),Object.prototype.hasOwnProperty.call(a,"isActive")&&(b.isActive=a?.isActive===!0),Object.prototype.hasOwnProperty.call(a,"strictProxy")&&(b.strictProxy=a?.strictProxy===!0),Object.prototype.hasOwnProperty.call(a,"type")&&(b.type=["http","vercel","cloudflare"].includes(a?.type)?a.type:"http"),{updates:b}}(d);if(e.error)return v.NextResponse.json({error:e.error},{status:400});let f=await (0,w.Q_)(c,e.updates);return v.NextResponse.json({proxyPool:f})}catch(a){return console.log("Error updating proxy pool:",a),v.NextResponse.json({error:"Failed to update proxy pool"},{status:500})}}async function z(a,{params:b}){try{let{id:a}=await b;if(!await (0,w.hr)(a))return v.NextResponse.json({error:"Proxy pool not found"},{status:404});let c=await (0,w.P)(),d=function(a=[],b){return a.filter(a=>a?.providerSpecificData?.proxyPoolId===b).length}(c,a);if(d>0)return v.NextResponse.json({error:"Proxy pool is currently in use",boundConnectionCount:d},{status:409});return await (0,w.Yd)(a),v.NextResponse.json({success:!0})}catch(a){return console.log("Error deleting proxy pool:",a),v.NextResponse.json({error:"Failed to delete proxy pool"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/proxy-pools/[id]/route",pathname:"/api/proxy-pools/[id]",filename:"route",bundlePath:"app/api/proxy-pools/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/proxy-pools/[id]/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),A.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/proxy-pools/[id]/route";"/index"===d&&(d="/");let e=await A.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||A.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===A.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await A.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>A.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>A.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await A.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49120:(a,b,c)=>{"use strict";c.d(b,{c_:()=>n,nJ:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="openrouterx",k=["db.json","usage.json","log.txt","disabledModels.json","request-details.json"];function l(a){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),a):g().join(i().homedir(),`.${a}`)}let m=function(){let a=process.env.DATA_DIR;if(!a)return l(j);if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),l(j);try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable -> fallback ~/.${j}`),l(j);throw b}}(),n=g().join(m,"db.json");!function(){if(process.env.DATA_DIR)return;let a=l("9router");if(a!==m&&e().existsSync(a))for(let b of(e().existsSync(m)||e().mkdirSync(m,{recursive:!0}),k)){let c=g().join(a,b),d=g().join(m,b);e().existsSync(c)&&!e().existsSync(d)&&e().copyFileSync(c,d)}}()},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.getProviderNodes,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=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},82996:(a,b,c)=>{"use strict";c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,9718],()=>b(b.s=30369));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../src/shared/utils/apiKey.js","../../../../../package.json","../../../../chunks/1813.js","../../../../chunks/4741.js","../../../../chunks/6844.js","../../../../chunks/7341.js","../../../../chunks/7502.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}
@@ -1 +0,0 @@
1
- (()=>{var a={};a.id=7445,a.ids=[1998,7445],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{"use strict";c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{"use strict";a.exports=require("assert")},14985:a=>{"use strict";a.exports=require("dns")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},21820:a=>{"use strict";a.exports=require("os")},24945:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{POST:()=>A});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998),x=c(74926),y=c(47774);async function z(a,b=1e4){let c=new AbortController,d=Date.now(),e=setTimeout(()=>c.abort(),b);try{let b=await (0,y.hd)(a,{method:"GET",headers:{"x-relay-target":"https://httpbin.org","x-relay-path":"/get"},signal:c.signal});return{ok:b.ok,status:b.status,statusText:b.statusText,elapsedMs:Date.now()-d}}catch(a){return{ok:!1,status:500,error:a?.name==="AbortError"?"Relay test timed out":a?.message||String(a)}}finally{clearTimeout(e)}}async function A(a,{params:b}){try{let{id:a}=await b,c=await (0,w.hr)(a);if(!c)return v.NextResponse.json({error:"Proxy pool not found"},{status:404});let d="vercel"===c.type||"cloudflare"===c.type||"deno"===c.type?await z(c.proxyUrl):await (0,x.C)({proxyUrl:c.proxyUrl}),e=new Date().toISOString();return await (0,w.Q_)(a,{testStatus:d.ok?"active":"error",lastTestedAt:e,lastError:d.ok?null:d.error||`Proxy test failed with status ${d.status}`,isActive:d.ok}),v.NextResponse.json({ok:d.ok,status:d.status,statusText:d.statusText||null,error:d.error||null,elapsedMs:d.elapsedMs||0,testedAt:e})}catch(a){return console.log("Error testing proxy pool:",a),v.NextResponse.json({error:"Failed to test proxy pool"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/proxy-pools/[id]/test/route",pathname:"/api/proxy-pools/[id]/test",filename:"route",bundlePath:"app/api/proxy-pools/[id]/test/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/proxy-pools/[id]/test/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),B.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/proxy-pools/[id]/test/route";"/index"===d&&(d="/");let e=await B.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(A.dynamicRoutes[I]||A.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!A.routes[F],b=A.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||B.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===B.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await B.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>B.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>B.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await B.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},34631:a=>{"use strict";a.exports=require("tls")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44708:a=>{"use strict";a.exports=require("node:https")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49120:(a,b,c)=>{"use strict";c.d(b,{c_:()=>n,nJ:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="openrouterx",k=["db.json","usage.json","log.txt","disabledModels.json","request-details.json"];function l(a){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),a):g().join(i().homedir(),`.${a}`)}let m=function(){let a=process.env.DATA_DIR;if(!a)return l(j);if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),l(j);try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable -> fallback ~/.${j}`),l(j);throw b}}(),n=g().join(m,"db.json");!function(){if(process.env.DATA_DIR)return;let a=l("9router");if(a!==m&&e().existsSync(a))for(let b of(e().existsSync(m)||e().mkdirSync(m,{recursive:!0}),k)){let c=g().join(a,b),d=g().join(m,b);e().existsSync(c)&&!e().existsSync(d)&&e().copyFileSync(c,d)}}()},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.getProviderNodes,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=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},74926:(a,b,c)=>{"use strict";c.d(b,{C:()=>g});var d=c(47774),e=c(61679);function f(a){return null==a?"":String(a).trim()}async function g({proxyUrl:a,testUrl:b,timeoutMs:c}={}){let i,j,k=f(a);if(!k)return{ok:!1,status:400,error:"proxyUrl is required"};let l=f(b)||"https://www.gstatic.com/generate_204",m=Number(c),n=Number.isFinite(m)&&m>0?Math.min(m,3e4):8e3;try{try{!function(a){try{return new URL(a).protocol.startsWith("socks")}catch{return!1}}(k)?i=new d.ProxyAgent({uri:k}):j=new e.SocksProxyAgent(k)}catch(a){return{ok:!1,status:400,error:`Invalid proxy URL: ${a?.message||String(a)}`}}let a=new AbortController,b=Date.now(),c=setTimeout(()=>a.abort(),n);try{let c=j?await h(l,{method:"HEAD",agent:j,signal:a.signal}):await (0,d.hd)(l,{method:"HEAD",dispatcher:i,signal:a.signal,headers:{"User-Agent":"OpenrouterX"}});return{ok:!0,status:c.status,statusText:c.statusText,responseOk:c.responseOk??c.ok,url:l,elapsedMs:Date.now()-b}}catch(b){let a=b?.name==="AbortError"?"Proxy test timed out":function(a){if(!a)return"Unknown error";let b=a?.message||String(a),c=a?.cause?.code||a?.code,d=a?.cause?.message;return d&&d!==b?c?`${b}: ${d} (${c})`:`${b}: ${d}`:c&&!b.includes(c)?`${b} (${c})`:b}(b);return{ok:!1,status:500,error:a}}finally{clearTimeout(c)}}finally{try{await i?.close?.(),await j?.destroy?.()}catch{}}}async function h(a,{method:b,agent:d,signal:e}){let f=new URL(a),g="http:"===f.protocol?await Promise.resolve().then(c.t.bind(c,37067,23)):await Promise.resolve().then(c.t.bind(c,44708,23)),i=g.default??g;return new Promise((a,c)=>{let g=i.request({protocol:f.protocol,hostname:f.hostname,port:f.port||("http:"===f.protocol?80:443),path:`${f.pathname}${f.search}`,method:b,headers:{"User-Agent":"OpenrouterX"},agent:d},b=>{b.resume(),b.on("end",()=>{let c=b.statusCode;a({ok:!0,status:c,statusText:b.statusMessage,responseOk:c>=200&&c<300})})});if(g.on("error",c),e){if(e.aborted)return void g.destroy(new DOMException("This operation was aborted","AbortError"));e.addEventListener("abort",()=>{g.destroy(new DOMException("This operation was aborted","AbortError"))},{once:!0})}g.end()})}},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79428:a=>{"use strict";a.exports=require("buffer")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81115:a=>{"use strict";a.exports=require("constants")},81630:a=>{"use strict";a.exports=require("http")},82996:(a,b,c)=>{"use strict";c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},83997:a=>{"use strict";a.exports=require("tty")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,7774,1679,9718],()=>b(b.s=24945));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../package.json","../../../../../../../src/shared/utils/apiKey.js","../../../../../../package.json","../../../../../chunks/1679.js","../../../../../chunks/1813.js","../../../../../chunks/4741.js","../../../../../chunks/6844.js","../../../../../chunks/7341.js","../../../../../chunks/7502.js","../../../../../chunks/7774.js","../../../../../chunks/9718.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}
@@ -1,43 +0,0 @@
1
- (()=>{var a={};a.id=1674,a.ids=[1674,1998],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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{"use strict";c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{"use strict";a.exports=require("assert")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46064:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998);let x=`
2
- export default {
3
- async fetch(request, env, ctx) {
4
- const target = request.headers.get("x-relay-target");
5
- const relayPath = request.headers.get("x-relay-path") || "/";
6
-
7
- if (!target) {
8
- return new Response(JSON.stringify({ error: "Missing x-relay-target header" }), {
9
- status: 400,
10
- headers: { "content-type": "application/json" },
11
- });
12
- }
13
-
14
- const targetUrl = target.replace(/\\/$/, "") + relayPath;
15
- const newRequestInit = {
16
- method: request.method,
17
- headers: new Headers(request.headers),
18
- };
19
-
20
- if (request.method !== "GET" && request.method !== "HEAD") {
21
- newRequestInit.body = request.body;
22
- newRequestInit.duplex = "half";
23
- }
24
-
25
- newRequestInit.headers.delete("x-relay-target");
26
- newRequestInit.headers.delete("x-relay-path");
27
- newRequestInit.headers.delete("host");
28
-
29
- try {
30
- const response = await fetch(targetUrl, newRequestInit);
31
- return new Response(response.body, {
32
- status: response.status,
33
- headers: response.headers,
34
- });
35
- } catch (error) {
36
- return new Response(JSON.stringify({ error: error.message }), {
37
- status: 502,
38
- headers: { "content-type": "application/json" },
39
- });
40
- }
41
- },
42
- };
43
- `;async function y(a){try{let b=await a.json(),c=b.accountId?.trim(),d=b.apiToken?.trim(),e=b.projectName?.trim()||`relay-${Date.now().toString(36)}`;if(!c||!d)return v.NextResponse.json({error:"Cloudflare Account ID and API Token are required"},{status:400});let f=`https://api.cloudflare.com/client/v4/accounts/${c}/workers/scripts/${e}`,g=new FormData;g.append("index.js",new Blob([x],{type:"application/javascript+module"}),"index.js"),g.append("metadata",new Blob([JSON.stringify({main_module:"index.js",compatibility_date:"2024-03-20",observability:{enabled:!0}})],{type:"application/json"}),"metadata.json");let h=await fetch(f,{method:"PUT",headers:{Authorization:`Bearer ${d}`},body:g});if(!h.ok){let a=await h.json().catch(()=>({}));return console.error("Cloudflare upload error:",a),v.NextResponse.json({error:a.errors?.[0]?.message||"Failed to upload Worker to Cloudflare"},{status:h.status})}let i=await fetch(`${f}/subdomain`,{method:"POST",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},body:JSON.stringify({enabled:!0})});if(!i.ok){let a=await i.json().catch(()=>({}));console.error("Cloudflare subdomain enable error:",a)}let j="",k=await fetch(`https://api.cloudflare.com/client/v4/accounts/${c}/workers/subdomain`,{method:"GET",headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"}});if(k.ok){let a=await k.json();a.result&&a.result.subdomain&&(j=`https://${e}.${a.result.subdomain}.workers.dev`)}if(!j)return v.NextResponse.json({error:"Worker deployed but failed to retrieve workers.dev subdomain. Make sure you have setup a workers.dev subdomain in Cloudflare Dashboard."},{status:400});let l=await (0,w.ZO)({name:e,proxyUrl:j,type:"cloudflare",noProxy:"",isActive:!0,strictProxy:!1});return v.NextResponse.json({proxyPool:l,deployUrl:j},{status:201})}catch(a){return console.log("Error deploying Cloudflare relay:",a),v.NextResponse.json({error:a.message||"Deploy failed"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/proxy-pools/cloudflare-deploy/route",pathname:"/api/proxy-pools/cloudflare-deploy",filename:"route",bundlePath:"app/api/proxy-pools/cloudflare-deploy/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/proxy-pools/cloudflare-deploy/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/proxy-pools/cloudflare-deploy/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!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(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},49120:(a,b,c)=>{"use strict";c.d(b,{c_:()=>n,nJ:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="openrouterx",k=["db.json","usage.json","log.txt","disabledModels.json","request-details.json"];function l(a){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),a):g().join(i().homedir(),`.${a}`)}let m=function(){let a=process.env.DATA_DIR;if(!a)return l(j);if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),l(j);try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable -> fallback ~/.${j}`),l(j);throw b}}(),n=g().join(m,"db.json");!function(){if(process.env.DATA_DIR)return;let a=l("9router");if(a!==m&&e().existsSync(a))for(let b of(e().existsSync(m)||e().mkdirSync(m,{recursive:!0}),k)){let c=g().join(a,b),d=g().join(m,b);e().existsSync(c)&&!e().existsSync(d)&&e().copyFileSync(c,d)}}()},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.getProviderNodes,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=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},82996:(a,b,c)=>{"use strict";c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,9718],()=>b(b.s=46064));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../src/shared/utils/apiKey.js","../../../../../package.json","../../../../chunks/1813.js","../../../../chunks/4741.js","../../../../chunks/6844.js","../../../../chunks/7341.js","../../../../chunks/7502.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}
@@ -1,40 +0,0 @@
1
- (()=>{var a={};a.id=1077,a.ids=[1077,1998],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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{"use strict";c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{"use strict";a.exports=require("assert")},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49120:(a,b,c)=>{"use strict";c.d(b,{c_:()=>n,nJ:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="openrouterx",k=["db.json","usage.json","log.txt","disabledModels.json","request-details.json"];function l(a){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),a):g().join(i().homedir(),`.${a}`)}let m=function(){let a=process.env.DATA_DIR;if(!a)return l(j);if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),l(j);try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable -> fallback ~/.${j}`),l(j);throw b}}(),n=g().join(m,"db.json");!function(){if(process.env.DATA_DIR)return;let a=l("9router");if(a!==m&&e().existsSync(a))for(let b of(e().existsSync(m)||e().mkdirSync(m,{recursive:!0}),k)){let c=g().join(a,b),d=g().join(m,b);e().existsSync(c)&&!e().existsSync(d)&&e().copyFileSync(c,d)}}()},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.getProviderNodes,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=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},76929:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>z});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998);let x="https://api.deno.com/v2",y=`Deno.serve(async (request) => {
2
- const target = request.headers.get("x-relay-target");
3
- const relayPath = request.headers.get("x-relay-path") || "/";
4
-
5
- if (!target) {
6
- return new Response(JSON.stringify({ error: "Missing x-relay-target header" }), {
7
- status: 400,
8
- headers: { "content-type": "application/json" },
9
- });
10
- }
11
-
12
- const targetUrl = target.replace(/\\/$/, "") + relayPath;
13
- const newHeaders = new Headers(request.headers);
14
- newHeaders.delete("x-relay-target");
15
- newHeaders.delete("x-relay-path");
16
- newHeaders.delete("host");
17
-
18
- const init = {
19
- method: request.method,
20
- headers: newHeaders,
21
- };
22
-
23
- if (request.method !== "GET" && request.method !== "HEAD") {
24
- init.body = request.body;
25
- init.duplex = "half";
26
- }
27
-
28
- try {
29
- const response = await fetch(targetUrl, init);
30
- return new Response(response.body, {
31
- status: response.status,
32
- headers: response.headers,
33
- });
34
- } catch (error) {
35
- return new Response(JSON.stringify({ error: error.message }), {
36
- status: 502,
37
- headers: { "content-type": "application/json" },
38
- });
39
- }
40
- });`;async function z(a){try{let b=await a.json(),c=b.denoToken?.trim(),d=b.orgDomain?.trim(),e=b.projectName?.trim()||`relay-${Date.now().toString(36)}`;if(!d)return v.NextResponse.json({error:"Organization domain is required"},{status:400});if(!c)return v.NextResponse.json({error:"Deno Deploy API token is required"},{status:400});let f={Authorization:`Bearer ${c}`,"Content-Type":"application/json"},g=await fetch(`${x}/apps`,{method:"POST",headers:f,body:JSON.stringify({slug:e,labels:{"custom.kind":"9router-relay"},config:{install:"deno install",runtime:{type:"dynamic",entrypoint:"main.ts"}}})});if(!g.ok){let a=await g.text().catch(()=>"");if(409===g.status)return v.NextResponse.json({error:`App "${e}" already exists. Choose a different name.`},{status:409});return v.NextResponse.json({error:`Failed to create app (${g.status}): ${a}`},{status:g.status})}let h=await g.json(),i=await fetch(`${x}/apps/${h.id}/deploy`,{method:"POST",headers:f,body:JSON.stringify({assets:{"main.ts":{kind:"file",content:y,encoding:"utf-8"}}})});if(!i.ok){let a=await i.text().catch(()=>"");return console.error("Deno Deploy error:",i.status,a),await fetch(`${x}/apps/${h.id}`,{method:"DELETE",headers:{Authorization:`Bearer ${c}`}}).catch(()=>{}),v.NextResponse.json({error:`Deploy failed (${i.status}): ${a}`},{status:i.status})}let j=await i.json(),k=j.id,l=j.status,m=0;for(;"queued"===l||"building"===l;){if(m>=30)throw Error("Deploy timed out after 60 seconds");await new Promise(a=>setTimeout(a,2e3));let a=await fetch(`${x}/revisions/${k}`,{headers:{Authorization:`Bearer ${c}`}});if(!a.ok)break;l=(await a.json()).status,m++}if("succeeded"!==l)return await fetch(`${x}/apps/${h.id}`,{method:"DELETE",headers:{Authorization:`Bearer ${c}`}}).catch(()=>{}),v.NextResponse.json({error:`Deploy failed with status: ${l}`},{status:500});let n=d.split(".")[0],o=`https://${e}.${n}.deno.net`;console.log("Deno deployUrl:",o);let p=await (0,w.ZO)({name:e,proxyUrl:o,type:"deno",noProxy:"",isActive:!0,strictProxy:!1});return v.NextResponse.json({proxyPool:p,deployUrl:o},{status:201})}catch(a){return console.log("Error deploying Deno Deploy relay:",a),v.NextResponse.json({error:a.message||"Deploy failed"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/proxy-pools/deno-deploy/route",pathname:"/api/proxy-pools/deno-deploy",filename:"route",bundlePath:"app/api/proxy-pools/deno-deploy/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/proxy-pools/deno-deploy/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),A.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/proxy-pools/deno-deploy/route";"/index"===d&&(d="/");let e=await A.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||A.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===A.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await A.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>A.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>A.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await A.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},82996:(a,b,c)=>{"use strict";c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,9718],()=>b(b.s=76929));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../package.json","../../../../../../src/shared/utils/apiKey.js","../../../../../package.json","../../../../chunks/1813.js","../../../../chunks/4741.js","../../../../chunks/6844.js","../../../../chunks/7341.js","../../../../chunks/7502.js","../../../../chunks/9718.js","../../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}
@@ -1 +0,0 @@
1
- (()=>{var a={};a.id=7824,a.ids=[1998,7824],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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11259:(a,b,c)=>{"use strict";c.d(b,{Pv:()=>k}),c(73024);var d=c(51455),e=c(76760),f=c(73136);async function g(a,b,c){for(let d=0;d<b;d++)try{return await a()}catch(a){if(d<b-1)await new Promise(a=>setTimeout(a,c));else throw a}}class h{#a;#b;#c=!1;#d=null;#e=null;#f=null;#g=null;#h(a){return this.#g=a,this.#f||=new Promise((a,b)=>{this.#e=[a,b]}),new Promise((a,b)=>{this.#f?.then(a).catch(b)})}async #i(a){this.#c=!0;try{await (0,d.writeFile)(this.#b,a,"utf-8"),await g(async()=>{await (0,d.rename)(this.#b,this.#a)},10,100),this.#d?.[0]()}catch(a){throw a instanceof Error&&this.#d?.[1](a),a}finally{if(this.#c=!1,this.#d=this.#e,this.#e=this.#f=null,null!==this.#g){let a=this.#g;this.#g=null,await this.write(a)}}}constructor(a){this.#a=a,this.#b=function(a){let b=a instanceof URL?(0,f.fileURLToPath)(a):a.toString();return(0,e.join)((0,e.dirname)(b),`.${(0,e.basename)(b)}.tmp`)}(a)}async write(a){return this.#c?this.#h(a):this.#i(a)}}class i{#a;#j;constructor(a){this.#a=a,this.#j=new h(a)}async read(){let a;try{a=await (0,d.readFile)(this.#a,"utf-8")}catch(a){if("ENOENT"===a.code)return null;throw a}return a}write(a){return this.#j.write(a)}}class j{#k;#l;#m;constructor(a,{parse:b,stringify:c}){this.#k=new i(a),this.#l=b,this.#m=c}async read(){let a=await this.#k.read();return null===a?null:this.#l(a)}write(a){return this.#k.write(this.#m(a))}}class k extends j{constructor(a){super(a,{parse:JSON.parse,stringify:a=>JSON.stringify(a,null,2)})}}},12412:a=>{"use strict";a.exports=require("assert")},17324:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(23211),w=c(71998);let x=["http","vercel","cloudflare","deno"];async function y(a){try{var b;let{searchParams:c}=new URL(a.url),d=(b=c.get("isActive"),"true"===b||"false"!==b&&void 0),e="true"===c.get("includeUsage"),f={};void 0!==d&&(f.isActive=d);let g=await (0,w.ui)(f);if(!e)return v.NextResponse.json({proxyPools:g});let h=await (0,w.P)(),i=function(a=[]){let b=new Map;for(let c of a){let a=c?.providerSpecificData?.proxyPoolId;a&&b.set(a,(b.get(a)||0)+1)}return b}(h),j=g.map(a=>({...a,boundConnectionCount:i.get(a.id)||0}));return v.NextResponse.json({proxyPools:j})}catch(a){return console.log("Error fetching proxy pools:",a),v.NextResponse.json({error:"Failed to fetch proxy pools"},{status:500})}}async function z(a){try{let b=await a.json(),c=function(a={}){let b="string"==typeof a?.name?a.name.trim():"",c="string"==typeof a?.proxyUrl?a.proxyUrl.trim():"",d="string"==typeof a?.noProxy?a.noProxy.trim():"",e=a?.isActive===void 0||!0===a.isActive,f=a?.strictProxy===!0,g=x.includes(a?.type)?a.type:"http";return b?c?{name:b,proxyUrl:c,noProxy:d,isActive:e,strictProxy:f,type:g}:{error:"Proxy URL is required"}:{error:"Name is required"}}(b);if(c.error)return v.NextResponse.json({error:c.error},{status:400});let d=await (0,w.ZO)(c);return v.NextResponse.json({proxyPool:d},{status:201})}catch(a){return console.log("Error creating proxy pool:",a),v.NextResponse.json({error:"Failed to create proxy pool"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/proxy-pools/route",pathname:"/api/proxy-pools",filename:"route",bundlePath:"app/api/proxy-pools/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/bytedance/Documents/Projects/9router/src/app/api/proxy-pools/route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),A.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/proxy-pools/route";"/index"===d&&(d="/");let e=await A.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!z){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||A.isDev||z||(L="/index"===(L=F)?"/":L);let M=!0===A.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await A.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>A.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>A.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await A.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},21820:a=>{"use strict";a.exports=require("os")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49120:(a,b,c)=>{"use strict";c.d(b,{c_:()=>n,nJ:()=>m});var d=c(29021),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="openrouterx",k=["db.json","usage.json","log.txt","disabledModels.json","request-details.json"];function l(a){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),a):g().join(i().homedir(),`.${a}`)}let m=function(){let a=process.env.DATA_DIR;if(!a)return l(j);if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),l(j);try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable -> fallback ~/.${j}`),l(j);throw b}}(),n=g().join(m,"db.json");!function(){if(process.env.DATA_DIR)return;let a=l("9router");if(a!==m&&e().existsSync(a))for(let b of(e().existsSync(m)||e().mkdirSync(m,{recursive:!0}),k)){let c=g().join(a,b),d=g().join(m,b);e().existsSync(c)&&!e().existsSync(d)&&e().copyFileSync(c,d)}}()},51455:a=>{"use strict";a.exports=require("node:fs/promises")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{"use strict";c.d(b,{Fh:()=>d.getProviderNodes,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=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},82996:(a,b,c)=>{"use strict";c.d(b,{t:()=>d});class d{adapter;data;constructor(a,b){!function(a,b){if(void 0===a)throw Error("lowdb: missing adapter");if(void 0===b)throw Error("lowdb: missing default data")}(a,b),this.adapter=a,this.data=b}async read(){let a=await this.adapter.read();a&&(this.data=a)}async write(){this.data&&await this.adapter.write(this.data)}async update(a){a(this.data),await this.write()}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7502,1813,9718],()=>b(b.s=17324));module.exports=c})();
@@ -1 +0,0 @@
1
- {"version":1,"files":["../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../node_modules/next/dist/client/lib/console.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../node_modules/next/dist/server/node-environment.js","../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../node_modules/next/dist/server/require-hook.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/package.json","../../../../../package.json","../../../../../src/shared/utils/apiKey.js","../../../../package.json","../../../chunks/1813.js","../../../chunks/4741.js","../../../chunks/6844.js","../../../chunks/7341.js","../../../chunks/7502.js","../../../chunks/9718.js","../../../webpack-runtime.js","route_client-reference-manifest.js","../../../../../node_modules/sql.js/dist/sql-wasm.wasm"]}