@yina-npm/openrouterx 0.4.33 → 0.4.35

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 (827) hide show
  1. package/README.md +0 -23
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +4 -6
  4. package/app/.next/build-manifest.json +4 -4
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/required-server-files.json +5 -5
  7. package/app/.next/routes-manifest.json +27 -13
  8. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js +2 -2
  9. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js +2 -2
  12. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  15. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  18. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  21. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  27. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  39. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  42. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  45. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js +2 -2
  48. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js.nft.json +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page_client-reference-manifest.js +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  51. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  54. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  57. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  59. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  60. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  62. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  63. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  65. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  66. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  68. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  69. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  71. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  72. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  73. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  74. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  75. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  76. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  77. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  78. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  79. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  80. package/app/.next/server/app/(dashboard)/dashboard/user/page.js +3 -3
  81. package/app/.next/server/app/(dashboard)/dashboard/user/page.js.nft.json +1 -1
  82. package/app/.next/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +1 -1
  83. package/app/.next/server/app/_global-error/page.js +3 -3
  84. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  85. package/app/.next/server/app/_global-error.html +1 -1
  86. package/app/.next/server/app/_global-error.rsc +1 -1
  87. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  88. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  89. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  90. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  91. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  92. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  93. package/app/.next/server/app/_not-found/page.js +2 -2
  94. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  95. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/_not-found.html +1 -1
  97. package/app/.next/server/app/_not-found.rsc +6 -5
  98. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +6 -5
  99. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  100. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  101. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  102. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  103. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -3
  104. package/app/.next/server/app/api/auth/login/route.js +1 -1
  105. package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  106. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  107. package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/api/auth/me/route.js +1 -1
  109. package/app/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
  110. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  111. package/app/.next/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
  112. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  113. package/app/.next/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
  114. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  115. package/app/.next/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -1
  116. package/app/.next/server/app/api/auth/status/route.js +1 -1
  117. package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  118. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +2 -2
  119. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  120. package/app/.next/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -1
  121. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  122. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  123. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js +1 -1
  124. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route_client-reference-manifest.js +1 -1
  126. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js +1 -1
  127. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route_client-reference-manifest.js +1 -1
  128. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  129. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  130. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.js +1 -1
  131. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route_client-reference-manifest.js +1 -1
  132. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  133. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  134. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  135. package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  136. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  137. package/app/.next/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  138. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  139. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  140. package/app/.next/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  141. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  142. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
  143. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  144. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
  145. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -1
  146. package/app/.next/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
  147. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  148. package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  149. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  150. package/app/.next/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
  151. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  152. package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  153. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  154. package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  155. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  156. package/app/.next/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  157. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  158. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  159. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  160. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  161. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  162. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  163. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  164. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  165. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  166. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  167. package/app/.next/server/app/api/combos/route.js +1 -1
  168. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  169. package/app/.next/server/app/api/health/route.js +1 -1
  170. package/app/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  171. package/app/.next/server/app/api/init/route.js +1 -1
  172. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  173. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  174. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  175. package/app/.next/server/app/api/keys/route.js +1 -1
  176. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  177. package/app/.next/server/app/api/locale/route.js +1 -1
  178. package/app/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
  179. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
  180. package/app/.next/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
  181. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  182. package/app/.next/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
  183. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  184. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
  185. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  186. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +1 -1
  187. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  188. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
  189. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  190. package/app/.next/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +1 -1
  191. package/app/.next/server/app/api/models/alias/route.js +1 -1
  192. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  193. package/app/.next/server/app/api/models/availability/route.js +1 -1
  194. package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  195. package/app/.next/server/app/api/models/custom/route.js +1 -1
  196. package/app/.next/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
  197. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  198. package/app/.next/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
  199. package/app/.next/server/app/api/models/route.js +1 -1
  200. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  201. package/app/.next/server/app/api/models/test/route.js +1 -1
  202. package/app/.next/server/app/api/models/test/route_client-reference-manifest.js +1 -1
  203. package/app/.next/server/app/api/network-analysis/route.js +2 -2
  204. package/app/.next/server/app/api/network-analysis/route_client-reference-manifest.js +1 -1
  205. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +2 -2
  206. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  207. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  208. package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  209. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  210. package/app/.next/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  211. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  212. package/app/.next/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +1 -1
  213. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  214. package/app/.next/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +1 -1
  215. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  216. package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  217. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  218. package/app/.next/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  219. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  220. package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  221. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  222. package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  223. package/app/.next/server/app/api/pricing/route.js +1 -1
  224. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  225. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  226. package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  227. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  228. package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  229. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  230. package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  231. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  232. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  233. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  234. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  235. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  236. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  237. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  238. package/app/.next/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  239. package/app/.next/server/app/api/providers/client/route.js +1 -1
  240. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  241. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  242. package/app/.next/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +1 -1
  243. package/app/.next/server/app/api/providers/route.js +1 -1
  244. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  245. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  246. package/app/.next/server/app/api/providers/suggested-models/route_client-reference-manifest.js +1 -1
  247. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  248. package/app/.next/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  249. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  250. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  251. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  252. package/app/.next/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +1 -1
  253. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  254. package/app/.next/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +1 -1
  255. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  256. package/app/.next/server/app/api/proxy-pools/route_client-reference-manifest.js +1 -1
  257. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  258. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
  259. package/app/.next/server/app/api/settings/database/route.js +1 -1
  260. package/app/.next/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  261. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  262. package/app/.next/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -1
  263. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  264. package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  265. package/app/.next/server/app/api/settings/route.js +1 -1
  266. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  267. package/app/.next/server/app/api/shutdown/route.js +1 -1
  268. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  269. package/app/.next/server/app/api/tags/route.js +1 -1
  270. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  271. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  272. package/app/.next/server/app/api/translator/console-logs/route_client-reference-manifest.js +1 -1
  273. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  274. package/app/.next/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
  275. package/app/.next/server/app/api/translator/load/route.js +1 -1
  276. package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  277. package/app/.next/server/app/api/translator/save/route.js +1 -1
  278. package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  279. package/app/.next/server/app/api/translator/send/route.js +1 -1
  280. package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  281. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  282. package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  283. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  284. package/app/.next/server/app/api/tunnel/disable/route_client-reference-manifest.js +1 -1
  285. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  286. package/app/.next/server/app/api/tunnel/enable/route_client-reference-manifest.js +1 -1
  287. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  288. package/app/.next/server/app/api/tunnel/status/route_client-reference-manifest.js +1 -1
  289. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  290. package/app/.next/server/app/api/tunnel/tailscale-check/route_client-reference-manifest.js +1 -1
  291. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  292. package/app/.next/server/app/api/tunnel/tailscale-disable/route_client-reference-manifest.js +1 -1
  293. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  294. package/app/.next/server/app/api/tunnel/tailscale-enable/route_client-reference-manifest.js +1 -1
  295. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
  296. package/app/.next/server/app/api/tunnel/tailscale-install/route_client-reference-manifest.js +1 -1
  297. package/app/.next/server/app/api/tunnel/tailscale-login/route.js +1 -1
  298. package/app/.next/server/app/api/tunnel/tailscale-login/route_client-reference-manifest.js +1 -1
  299. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
  300. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route_client-reference-manifest.js +1 -1
  301. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  302. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  303. package/app/.next/server/app/api/usage/api-keys/route.js +1 -1
  304. package/app/.next/server/app/api/usage/api-keys/route_client-reference-manifest.js +1 -1
  305. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  306. package/app/.next/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  307. package/app/.next/server/app/api/usage/history/route.js +1 -1
  308. package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  309. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  310. package/app/.next/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
  311. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  312. package/app/.next/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  313. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  314. package/app/.next/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  315. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  316. package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  317. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  318. package/app/.next/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
  319. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  320. package/app/.next/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  321. package/app/.next/server/app/api/users/[id]/route.js +1 -1
  322. package/app/.next/server/app/api/users/[id]/route_client-reference-manifest.js +1 -1
  323. package/app/.next/server/app/api/users/route.js +1 -1
  324. package/app/.next/server/app/api/users/route_client-reference-manifest.js +1 -1
  325. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  326. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  327. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  328. package/app/.next/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  329. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  330. package/app/.next/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  331. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  332. package/app/.next/server/app/api/v1/audio/voices/route_client-reference-manifest.js +1 -1
  333. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  334. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  335. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  336. package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  337. package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
  338. package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  339. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  340. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  341. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  342. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  343. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  344. package/app/.next/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +1 -1
  345. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  346. package/app/.next/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
  347. package/app/.next/server/app/api/v1/models/route.js +1 -1
  348. package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  349. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  350. package/app/.next/server/app/api/v1/responses/compact/route_client-reference-manifest.js +1 -1
  351. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  352. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  353. package/app/.next/server/app/api/v1/route.js +1 -1
  354. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  355. package/app/.next/server/app/api/v1/search/route.js +1 -1
  356. package/app/.next/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
  357. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  358. package/app/.next/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
  359. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  360. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  361. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  362. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  363. package/app/.next/server/app/api/version/route.js +1 -1
  364. package/app/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
  365. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  366. package/app/.next/server/app/api/version/shutdown/route_client-reference-manifest.js +1 -1
  367. package/app/.next/server/app/api/version/update/route.js +1 -1
  368. package/app/.next/server/app/api/version/update/route_client-reference-manifest.js +1 -1
  369. package/app/.next/server/app/callback/page.js +2 -2
  370. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  371. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  372. package/app/.next/server/app/callback.html +1 -1
  373. package/app/.next/server/app/callback.rsc +7 -6
  374. package/app/.next/server/app/callback.segments/_full.segment.rsc +7 -6
  375. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  376. package/app/.next/server/app/callback.segments/_index.segment.rsc +5 -5
  377. package/app/.next/server/app/callback.segments/_tree.segment.rsc +4 -3
  378. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  379. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  380. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  381. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  382. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  383. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  384. package/app/.next/server/app/dashboard/settings/pricing.rsc +7 -6
  385. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +7 -6
  386. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  387. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
  388. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +4 -3
  389. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  390. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  391. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  392. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  393. package/app/.next/server/app/favicon.ico/route.js +1 -1
  394. package/app/.next/server/app/index.html +1 -1
  395. package/app/.next/server/app/index.rsc +6 -5
  396. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  397. package/app/.next/server/app/index.segments/_full.segment.rsc +6 -5
  398. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  399. package/app/.next/server/app/index.segments/_index.segment.rsc +5 -5
  400. package/app/.next/server/app/index.segments/_tree.segment.rsc +4 -3
  401. package/app/.next/server/app/landing/page.js +2 -2
  402. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  403. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  404. package/app/.next/server/app/landing.html +1 -1
  405. package/app/.next/server/app/landing.rsc +7 -6
  406. package/app/.next/server/app/landing.segments/_full.segment.rsc +7 -6
  407. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  408. package/app/.next/server/app/landing.segments/_index.segment.rsc +5 -5
  409. package/app/.next/server/app/landing.segments/_tree.segment.rsc +4 -3
  410. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  411. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  412. package/app/.next/server/app/login/page.js +2 -2
  413. package/app/.next/server/app/login/page.js.nft.json +1 -1
  414. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  415. package/app/.next/server/app/login.html +1 -1
  416. package/app/.next/server/app/login.rsc +7 -6
  417. package/app/.next/server/app/login.segments/_full.segment.rsc +7 -6
  418. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  419. package/app/.next/server/app/login.segments/_index.segment.rsc +5 -5
  420. package/app/.next/server/app/login.segments/_tree.segment.rsc +4 -3
  421. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  422. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  423. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  424. package/app/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  425. package/app/.next/server/app/page.js +2 -2
  426. package/app/.next/server/app/page.js.nft.json +1 -1
  427. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  428. package/app/.next/server/app-paths-manifest.json +4 -6
  429. package/app/.next/server/chunks/1350.js +1 -2
  430. package/app/.next/server/chunks/1500.js +1 -0
  431. package/app/.next/server/chunks/2560.js +1 -1
  432. package/app/.next/server/chunks/3110.js +1 -1
  433. package/app/.next/server/chunks/319.js +3 -3
  434. package/app/.next/server/chunks/3493.js +1 -2
  435. package/app/.next/server/chunks/412.js +1 -1
  436. package/app/.next/server/chunks/4126.js +1 -1
  437. package/app/.next/server/chunks/4922.js +2 -2
  438. package/app/.next/server/chunks/5627.js +6 -6
  439. package/app/.next/server/chunks/6182.js +3 -3
  440. package/app/.next/server/chunks/6393.js +1 -1
  441. package/app/.next/server/chunks/702.js +1 -0
  442. package/app/.next/server/chunks/7595.js +1 -1
  443. package/app/.next/server/chunks/7774.js +3 -3
  444. package/app/.next/server/chunks/{9300.js → 8407.js} +2 -2
  445. package/app/.next/server/chunks/8520.js +1 -1
  446. package/app/.next/server/chunks/{2750.js → 9528.js} +3 -2
  447. package/app/.next/server/chunks/{4394.js → 9546.js} +1 -1
  448. package/app/.next/server/chunks/9718.js +1 -1
  449. package/app/.next/server/middleware-build-manifest.js +1 -1
  450. package/app/.next/server/middleware.js +2 -2
  451. package/app/.next/server/next-font-manifest.js +1 -1
  452. package/app/.next/server/next-font-manifest.json +1 -1
  453. package/app/.next/server/pages/404.html +1 -1
  454. package/app/.next/server/pages/500.html +1 -1
  455. package/app/.next/server/server-reference-manifest.js +1 -1
  456. package/app/.next/server/server-reference-manifest.json +1 -1
  457. package/app/.next/static/chunks/{1321-194580b028caec3a.js → 1321-b764e2be7fc92cc1.js} +1 -1
  458. package/app/.next/static/chunks/5095-ca2b12905f37ff4d.js +1 -0
  459. package/app/.next/static/chunks/5497-83030cc3d92a3519.js +7 -0
  460. package/app/.next/static/chunks/{4072-91de6609dc7e6753.js → 5769-77fa1ce7edb6f970.js} +1 -1
  461. package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/page-c74a5ba01f1699c5.js +1 -0
  462. package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/users/{page-972703d59d2a3986.js → page-2aa2cafdedb17bad.js} +1 -1
  463. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-e1bd21507327d2bc.js → page-277c4575cca57177.js} +1 -1
  464. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-211e322f002d5464.js → page-1a36c238dc35c08e.js} +1 -1
  465. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-f0bae00ac45dd4b0.js +1 -0
  466. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-55598932923e41ce.js → page-d98ac191ef4ff7e6.js} +1 -1
  467. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-d3de2fdaf4bf9b1e.js +1 -0
  468. package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/{page-fb59dea0e48968bf.js → page-90a2c72d1d8122a2.js} +1 -1
  469. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-95d31a6372622fcf.js → page-73601a7b09338418.js} +2 -2
  470. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-c64dd1d0b2bd9caf.js → page-3ab3cbba76b7cbad.js} +1 -1
  471. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-9586c0b67f30a21b.js → page-c0ea5a27a13640b9.js} +2 -2
  472. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-dcb9c64e0d95cee2.js +1 -0
  473. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-63735cb68f56f3b8.js +1 -0
  474. package/app/.next/static/chunks/app/(dashboard)/dashboard/network-analysis/page-9c41fc55ad37021e.js +1 -0
  475. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-5a350e79586a5c80.js +1 -0
  476. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-4c8ad9c53c665fe6.js +1 -0
  477. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-31a6e1cb19ebc4d8.js → page-c28344f1dd08e982.js} +1 -1
  478. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-0bf3048423ab0128.js → page-81f02e4a6ce21347.js} +1 -1
  479. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/{page-9d071b63170b7f71.js → page-a2ab26878f90c869.js} +1 -1
  480. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-7762d83be0982941.js → page-67d99d453bfd8665.js} +2 -2
  481. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/{page-e089ffa4138753d7.js → page-f30757bcda3daba7.js} +1 -1
  482. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-6dd35c79bb83388b.js +1 -0
  483. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-1172e1764d69e954.js +1 -0
  484. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/{page-f77dc916ed5a6f99.js → page-2e9ac7094c9d8bae.js} +1 -1
  485. package/app/.next/static/chunks/app/(dashboard)/dashboard/user/page-86f6c9456e2e37bf.js +4 -0
  486. package/app/.next/static/chunks/app/(dashboard)/{layout-00b66bc0e6b38a14.js → layout-823fc1c94bc15026.js} +1 -1
  487. package/app/.next/static/chunks/app/_global-error/page-1172e1764d69e954.js +1 -0
  488. package/app/.next/static/chunks/app/_not-found/page-8fcd6ba05909a2de.js +1 -0
  489. package/app/.next/static/chunks/app/api/auth/login/route-1172e1764d69e954.js +1 -0
  490. package/app/.next/static/chunks/app/api/auth/logout/route-1172e1764d69e954.js +1 -0
  491. package/app/.next/static/chunks/app/api/auth/me/route-1172e1764d69e954.js +1 -0
  492. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-1172e1764d69e954.js +1 -0
  493. package/app/.next/static/chunks/app/api/auth/oidc/start/route-1172e1764d69e954.js +1 -0
  494. package/app/.next/static/chunks/app/api/auth/oidc/test/route-1172e1764d69e954.js +1 -0
  495. package/app/.next/static/chunks/app/api/auth/status/route-1172e1764d69e954.js +1 -0
  496. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-1172e1764d69e954.js +1 -0
  497. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1172e1764d69e954.js +1 -0
  498. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-1172e1764d69e954.js +1 -0
  499. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-1172e1764d69e954.js +1 -0
  500. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-1172e1764d69e954.js +1 -0
  501. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-1172e1764d69e954.js +1 -0
  502. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-1172e1764d69e954.js +1 -0
  503. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-1172e1764d69e954.js +1 -0
  504. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-1172e1764d69e954.js +1 -0
  505. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-1172e1764d69e954.js +1 -0
  506. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1172e1764d69e954.js +1 -0
  507. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1172e1764d69e954.js +1 -0
  508. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-1172e1764d69e954.js +1 -0
  509. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-1172e1764d69e954.js +1 -0
  510. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-1172e1764d69e954.js +1 -0
  511. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-1172e1764d69e954.js +1 -0
  512. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-1172e1764d69e954.js +1 -0
  513. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-1172e1764d69e954.js +1 -0
  514. package/app/.next/static/chunks/app/api/cloud/auth/route-1172e1764d69e954.js +1 -0
  515. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-1172e1764d69e954.js +1 -0
  516. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-1172e1764d69e954.js +1 -0
  517. package/app/.next/static/chunks/app/api/cloud/models/alias/route-1172e1764d69e954.js +1 -0
  518. package/app/.next/static/chunks/app/api/combos/[id]/route-1172e1764d69e954.js +1 -0
  519. package/app/.next/static/chunks/app/api/combos/route-1172e1764d69e954.js +1 -0
  520. package/app/.next/static/chunks/app/api/health/route-1172e1764d69e954.js +1 -0
  521. package/app/.next/static/chunks/app/api/init/route-1172e1764d69e954.js +1 -0
  522. package/app/.next/static/chunks/app/api/keys/[id]/route-1172e1764d69e954.js +1 -0
  523. package/app/.next/static/chunks/app/api/keys/route-1172e1764d69e954.js +1 -0
  524. package/app/.next/static/chunks/app/api/locale/route-1172e1764d69e954.js +1 -0
  525. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-1172e1764d69e954.js +1 -0
  526. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-1172e1764d69e954.js +1 -0
  527. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1172e1764d69e954.js +1 -0
  528. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1172e1764d69e954.js +1 -0
  529. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-1172e1764d69e954.js +1 -0
  530. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-1172e1764d69e954.js +1 -0
  531. package/app/.next/static/chunks/app/api/models/alias/route-1172e1764d69e954.js +1 -0
  532. package/app/.next/static/chunks/app/api/models/availability/route-1172e1764d69e954.js +1 -0
  533. package/app/.next/static/chunks/app/api/models/custom/route-1172e1764d69e954.js +1 -0
  534. package/app/.next/static/chunks/app/api/models/disabled/route-1172e1764d69e954.js +1 -0
  535. package/app/.next/static/chunks/app/api/models/route-1172e1764d69e954.js +1 -0
  536. package/app/.next/static/chunks/app/api/models/test/route-1172e1764d69e954.js +1 -0
  537. package/app/.next/static/chunks/app/api/network-analysis/route-1172e1764d69e954.js +1 -0
  538. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-1172e1764d69e954.js +1 -0
  539. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-1172e1764d69e954.js +1 -0
  540. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-1172e1764d69e954.js +1 -0
  541. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-1172e1764d69e954.js +1 -0
  542. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-1172e1764d69e954.js +1 -0
  543. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-1172e1764d69e954.js +1 -0
  544. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-1172e1764d69e954.js +1 -0
  545. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-1172e1764d69e954.js +1 -0
  546. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-1172e1764d69e954.js +1 -0
  547. package/app/.next/static/chunks/app/api/pricing/route-1172e1764d69e954.js +1 -0
  548. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-1172e1764d69e954.js +1 -0
  549. package/app/.next/static/chunks/app/api/provider-nodes/route-1172e1764d69e954.js +1 -0
  550. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-1172e1764d69e954.js +1 -0
  551. package/app/.next/static/chunks/app/api/providers/[id]/models/route-1172e1764d69e954.js +1 -0
  552. package/app/.next/static/chunks/app/api/providers/[id]/route-1172e1764d69e954.js +1 -0
  553. package/app/.next/static/chunks/app/api/providers/[id]/test/route-1172e1764d69e954.js +1 -0
  554. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-1172e1764d69e954.js +1 -0
  555. package/app/.next/static/chunks/app/api/providers/client/route-1172e1764d69e954.js +1 -0
  556. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-1172e1764d69e954.js +1 -0
  557. package/app/.next/static/chunks/app/api/providers/route-1172e1764d69e954.js +1 -0
  558. package/app/.next/static/chunks/app/api/providers/suggested-models/route-1172e1764d69e954.js +1 -0
  559. package/app/.next/static/chunks/app/api/providers/test-batch/route-1172e1764d69e954.js +1 -0
  560. package/app/.next/static/chunks/app/api/providers/validate/route-1172e1764d69e954.js +1 -0
  561. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-1172e1764d69e954.js +1 -0
  562. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-1172e1764d69e954.js +1 -0
  563. package/app/.next/static/chunks/app/api/proxy-pools/route-1172e1764d69e954.js +1 -0
  564. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-1172e1764d69e954.js +1 -0
  565. package/app/.next/static/chunks/app/api/settings/database/route-1172e1764d69e954.js +1 -0
  566. package/app/.next/static/chunks/app/api/settings/proxy-test/route-1172e1764d69e954.js +1 -0
  567. package/app/.next/static/chunks/app/api/settings/require-login/route-1172e1764d69e954.js +1 -0
  568. package/app/.next/static/chunks/app/api/settings/route-1172e1764d69e954.js +1 -0
  569. package/app/.next/static/chunks/app/api/shutdown/route-1172e1764d69e954.js +1 -0
  570. package/app/.next/static/chunks/app/api/tags/route-1172e1764d69e954.js +1 -0
  571. package/app/.next/static/chunks/app/api/translator/console-logs/route-1172e1764d69e954.js +1 -0
  572. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-1172e1764d69e954.js +1 -0
  573. package/app/.next/static/chunks/app/api/translator/load/route-1172e1764d69e954.js +1 -0
  574. package/app/.next/static/chunks/app/api/translator/save/route-1172e1764d69e954.js +1 -0
  575. package/app/.next/static/chunks/app/api/translator/send/route-1172e1764d69e954.js +1 -0
  576. package/app/.next/static/chunks/app/api/translator/translate/route-1172e1764d69e954.js +1 -0
  577. package/app/.next/static/chunks/app/api/tunnel/disable/route-1172e1764d69e954.js +1 -0
  578. package/app/.next/static/chunks/app/api/tunnel/enable/route-1172e1764d69e954.js +1 -0
  579. package/app/.next/static/chunks/app/api/tunnel/status/route-1172e1764d69e954.js +1 -0
  580. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-1172e1764d69e954.js +1 -0
  581. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-1172e1764d69e954.js +1 -0
  582. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-1172e1764d69e954.js +1 -0
  583. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-1172e1764d69e954.js +1 -0
  584. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-1172e1764d69e954.js +1 -0
  585. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1172e1764d69e954.js +1 -0
  586. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-1172e1764d69e954.js +1 -0
  587. package/app/.next/static/chunks/app/api/usage/api-keys/route-1172e1764d69e954.js +1 -0
  588. package/app/.next/static/chunks/app/api/usage/chart/route-1172e1764d69e954.js +1 -0
  589. package/app/.next/static/chunks/app/api/usage/history/route-1172e1764d69e954.js +1 -0
  590. package/app/.next/static/chunks/app/api/usage/logs/route-1172e1764d69e954.js +1 -0
  591. package/app/.next/static/chunks/app/api/usage/providers/route-1172e1764d69e954.js +1 -0
  592. package/app/.next/static/chunks/app/api/usage/request-details/route-1172e1764d69e954.js +1 -0
  593. package/app/.next/static/chunks/app/api/usage/request-logs/route-1172e1764d69e954.js +1 -0
  594. package/app/.next/static/chunks/app/api/usage/stats/route-1172e1764d69e954.js +1 -0
  595. package/app/.next/static/chunks/app/api/usage/stream/route-1172e1764d69e954.js +1 -0
  596. package/app/.next/static/chunks/app/api/users/[id]/route-1172e1764d69e954.js +1 -0
  597. package/app/.next/static/chunks/app/api/users/route-1172e1764d69e954.js +1 -0
  598. package/app/.next/static/chunks/app/api/v1/api/chat/route-1172e1764d69e954.js +1 -0
  599. package/app/.next/static/chunks/app/api/v1/audio/speech/route-1172e1764d69e954.js +1 -0
  600. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-1172e1764d69e954.js +1 -0
  601. package/app/.next/static/chunks/app/api/v1/audio/voices/route-1172e1764d69e954.js +1 -0
  602. package/app/.next/static/chunks/app/api/v1/chat/completions/route-1172e1764d69e954.js +1 -0
  603. package/app/.next/static/chunks/app/api/v1/embeddings/route-1172e1764d69e954.js +1 -0
  604. package/app/.next/static/chunks/app/api/v1/images/generations/route-1172e1764d69e954.js +1 -0
  605. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-1172e1764d69e954.js +1 -0
  606. package/app/.next/static/chunks/app/api/v1/messages/route-1172e1764d69e954.js +1 -0
  607. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-1172e1764d69e954.js +1 -0
  608. package/app/.next/static/chunks/app/api/v1/models/info/route-1172e1764d69e954.js +1 -0
  609. package/app/.next/static/chunks/app/api/v1/models/route-1172e1764d69e954.js +1 -0
  610. package/app/.next/static/chunks/app/api/v1/responses/compact/route-1172e1764d69e954.js +1 -0
  611. package/app/.next/static/chunks/app/api/v1/responses/route-1172e1764d69e954.js +1 -0
  612. package/app/.next/static/chunks/app/api/v1/route-1172e1764d69e954.js +1 -0
  613. package/app/.next/static/chunks/app/api/v1/search/route-1172e1764d69e954.js +1 -0
  614. package/app/.next/static/chunks/app/api/v1/web/fetch/route-1172e1764d69e954.js +1 -0
  615. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-1172e1764d69e954.js +1 -0
  616. package/app/.next/static/chunks/app/api/v1beta/models/route-1172e1764d69e954.js +1 -0
  617. package/app/.next/static/chunks/app/api/version/route-1172e1764d69e954.js +1 -0
  618. package/app/.next/static/chunks/app/api/version/shutdown/route-1172e1764d69e954.js +1 -0
  619. package/app/.next/static/chunks/app/api/version/update/route-1172e1764d69e954.js +1 -0
  620. package/app/.next/static/chunks/app/callback/{page-97a750f0d51c3dbe.js → page-0b64ce6d90bfa697.js} +1 -1
  621. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-0b53c6deac19b9be.js +1 -0
  622. package/app/.next/static/chunks/app/landing/{page-bf42a9c80c1e6776.js → page-370c3195c36d6e66.js} +1 -1
  623. package/app/.next/static/chunks/app/layout-55318fbfdf7dfacb.js +1 -0
  624. package/app/.next/static/chunks/app/login/page-65d3f9612064353f.js +1 -0
  625. package/app/.next/static/chunks/app/manifest.webmanifest/route-1172e1764d69e954.js +1 -0
  626. package/app/.next/static/chunks/app/page-1172e1764d69e954.js +1 -0
  627. package/app/.next/static/chunks/main-2237af167d2c1c35.js +5 -0
  628. package/app/.next/static/chunks/main-app-5fb630e627076bfd.js +1 -0
  629. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-1172e1764d69e954.js +1 -0
  630. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-1172e1764d69e954.js +1 -0
  631. package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-8c0dda4490abacd4.js +1 -0
  632. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-1172e1764d69e954.js +1 -0
  633. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1172e1764d69e954.js +1 -0
  634. package/app/.next/static/chunks/{webpack-b9b0d264958323b9.js → webpack-786de0e184ffd859.js} +1 -1
  635. package/app/.next/static/css/16878fc1d2cbb11a.css +1 -0
  636. package/app/.next/static/css/2e1b7d528c228ec3.css +1 -0
  637. package/app/.next/static/foKo1xDQER7YWTSg2B-qB/_buildManifest.js +1 -0
  638. package/app/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  639. package/app/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  640. package/app/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  641. package/app/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  642. package/app/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  643. package/app/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  644. package/app/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  645. package/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  646. package/app/package.json +1 -1
  647. package/app/server.js +1 -1
  648. package/app/src/mitm/config.js +1 -0
  649. package/app/src/mitm/dns/dnsConfig.js +20 -73
  650. package/app/src/mitm/handlers/base.js +19 -20
  651. package/app/src/mitm/manager.js +79 -45
  652. package/app/src/mitm/server.js +36 -36
  653. package/cli.js +0 -170
  654. package/hooks/postinstall.js +0 -92
  655. package/package.json +1 -1
  656. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js +0 -2
  657. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js.nft.json +0 -1
  658. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route_client-reference-manifest.js +0 -1
  659. package/app/.next/server/app/api/startup-notices/route.js +0 -2
  660. package/app/.next/server/app/api/startup-notices/route.js.nft.json +0 -1
  661. package/app/.next/server/app/api/startup-notices/route_client-reference-manifest.js +0 -1
  662. package/app/.next/server/chunks/8866.js +0 -1
  663. package/app/.next/server/chunks/9856.js +0 -1
  664. package/app/.next/static/XHWEINo8HqIhskxHTrvjk/_buildManifest.js +0 -1
  665. package/app/.next/static/chunks/5095-fea302b55a08f07b.js +0 -2
  666. package/app/.next/static/chunks/5497-4a0f0c365aea0ea7.js +0 -7
  667. package/app/.next/static/chunks/app/(dashboard)/dashboard/admin/keys/page-0d5b57da4abb6962.js +0 -1
  668. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-69469b6440aff8d0.js +0 -1
  669. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-c8f75b084231c080.js +0 -1
  670. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-c7fbf29bdbdabee9.js +0 -1
  671. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/page-7ae37df256035f59.js +0 -1
  672. package/app/.next/static/chunks/app/(dashboard)/dashboard/network-analysis/page-0ad4db60f9d14f60.js +0 -1
  673. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-8fceba7ec6407143.js +0 -1
  674. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-f005d7a30159ce4f.js +0 -1
  675. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-9202b5ce0650c3ab.js +0 -1
  676. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-1879675a73caf73c.js +0 -1
  677. package/app/.next/static/chunks/app/(dashboard)/dashboard/user/page-12765c664b3c1f6d.js +0 -4
  678. package/app/.next/static/chunks/app/_global-error/page-1879675a73caf73c.js +0 -1
  679. package/app/.next/static/chunks/app/_not-found/page-7927650ca4037264.js +0 -1
  680. package/app/.next/static/chunks/app/api/auth/login/route-1879675a73caf73c.js +0 -1
  681. package/app/.next/static/chunks/app/api/auth/logout/route-1879675a73caf73c.js +0 -1
  682. package/app/.next/static/chunks/app/api/auth/me/route-1879675a73caf73c.js +0 -1
  683. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-1879675a73caf73c.js +0 -1
  684. package/app/.next/static/chunks/app/api/auth/oidc/start/route-1879675a73caf73c.js +0 -1
  685. package/app/.next/static/chunks/app/api/auth/oidc/test/route-1879675a73caf73c.js +0 -1
  686. package/app/.next/static/chunks/app/api/auth/status/route-1879675a73caf73c.js +0 -1
  687. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-1879675a73caf73c.js +0 -1
  688. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1879675a73caf73c.js +0 -1
  689. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-1879675a73caf73c.js +0 -1
  690. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-1879675a73caf73c.js +0 -1
  691. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-1879675a73caf73c.js +0 -1
  692. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-1879675a73caf73c.js +0 -1
  693. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-1879675a73caf73c.js +0 -1
  694. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-1879675a73caf73c.js +0 -1
  695. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-1879675a73caf73c.js +0 -1
  696. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-1879675a73caf73c.js +0 -1
  697. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-1879675a73caf73c.js +0 -1
  698. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1879675a73caf73c.js +0 -1
  699. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1879675a73caf73c.js +0 -1
  700. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-1879675a73caf73c.js +0 -1
  701. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-1879675a73caf73c.js +0 -1
  702. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-1879675a73caf73c.js +0 -1
  703. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-1879675a73caf73c.js +0 -1
  704. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-1879675a73caf73c.js +0 -1
  705. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-1879675a73caf73c.js +0 -1
  706. package/app/.next/static/chunks/app/api/cloud/auth/route-1879675a73caf73c.js +0 -1
  707. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-1879675a73caf73c.js +0 -1
  708. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-1879675a73caf73c.js +0 -1
  709. package/app/.next/static/chunks/app/api/cloud/models/alias/route-1879675a73caf73c.js +0 -1
  710. package/app/.next/static/chunks/app/api/combos/[id]/route-1879675a73caf73c.js +0 -1
  711. package/app/.next/static/chunks/app/api/combos/route-1879675a73caf73c.js +0 -1
  712. package/app/.next/static/chunks/app/api/health/route-1879675a73caf73c.js +0 -1
  713. package/app/.next/static/chunks/app/api/init/route-1879675a73caf73c.js +0 -1
  714. package/app/.next/static/chunks/app/api/keys/[id]/route-1879675a73caf73c.js +0 -1
  715. package/app/.next/static/chunks/app/api/keys/route-1879675a73caf73c.js +0 -1
  716. package/app/.next/static/chunks/app/api/locale/route-1879675a73caf73c.js +0 -1
  717. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-1879675a73caf73c.js +0 -1
  718. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-1879675a73caf73c.js +0 -1
  719. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1879675a73caf73c.js +0 -1
  720. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1879675a73caf73c.js +0 -1
  721. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-1879675a73caf73c.js +0 -1
  722. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-1879675a73caf73c.js +0 -1
  723. package/app/.next/static/chunks/app/api/models/alias/route-1879675a73caf73c.js +0 -1
  724. package/app/.next/static/chunks/app/api/models/availability/route-1879675a73caf73c.js +0 -1
  725. package/app/.next/static/chunks/app/api/models/custom/route-1879675a73caf73c.js +0 -1
  726. package/app/.next/static/chunks/app/api/models/disabled/route-1879675a73caf73c.js +0 -1
  727. package/app/.next/static/chunks/app/api/models/route-1879675a73caf73c.js +0 -1
  728. package/app/.next/static/chunks/app/api/models/test/route-1879675a73caf73c.js +0 -1
  729. package/app/.next/static/chunks/app/api/network-analysis/route-1879675a73caf73c.js +0 -1
  730. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-1879675a73caf73c.js +0 -1
  731. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-1879675a73caf73c.js +0 -1
  732. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-1879675a73caf73c.js +0 -1
  733. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-1879675a73caf73c.js +0 -1
  734. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-1879675a73caf73c.js +0 -1
  735. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-1879675a73caf73c.js +0 -1
  736. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-1879675a73caf73c.js +0 -1
  737. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-1879675a73caf73c.js +0 -1
  738. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-1879675a73caf73c.js +0 -1
  739. package/app/.next/static/chunks/app/api/pricing/route-1879675a73caf73c.js +0 -1
  740. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-1879675a73caf73c.js +0 -1
  741. package/app/.next/static/chunks/app/api/provider-nodes/route-1879675a73caf73c.js +0 -1
  742. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-1879675a73caf73c.js +0 -1
  743. package/app/.next/static/chunks/app/api/providers/[id]/models/route-1879675a73caf73c.js +0 -1
  744. package/app/.next/static/chunks/app/api/providers/[id]/route-1879675a73caf73c.js +0 -1
  745. package/app/.next/static/chunks/app/api/providers/[id]/test/route-1879675a73caf73c.js +0 -1
  746. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-1879675a73caf73c.js +0 -1
  747. package/app/.next/static/chunks/app/api/providers/client/route-1879675a73caf73c.js +0 -1
  748. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-1879675a73caf73c.js +0 -1
  749. package/app/.next/static/chunks/app/api/providers/route-1879675a73caf73c.js +0 -1
  750. package/app/.next/static/chunks/app/api/providers/suggested-models/route-1879675a73caf73c.js +0 -1
  751. package/app/.next/static/chunks/app/api/providers/test-batch/route-1879675a73caf73c.js +0 -1
  752. package/app/.next/static/chunks/app/api/providers/validate/route-1879675a73caf73c.js +0 -1
  753. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-1879675a73caf73c.js +0 -1
  754. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-1879675a73caf73c.js +0 -1
  755. package/app/.next/static/chunks/app/api/proxy-pools/route-1879675a73caf73c.js +0 -1
  756. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-1879675a73caf73c.js +0 -1
  757. package/app/.next/static/chunks/app/api/settings/database/route-1879675a73caf73c.js +0 -1
  758. package/app/.next/static/chunks/app/api/settings/proxy-test/route-1879675a73caf73c.js +0 -1
  759. package/app/.next/static/chunks/app/api/settings/require-login/route-1879675a73caf73c.js +0 -1
  760. package/app/.next/static/chunks/app/api/settings/route-1879675a73caf73c.js +0 -1
  761. package/app/.next/static/chunks/app/api/shutdown/route-1879675a73caf73c.js +0 -1
  762. package/app/.next/static/chunks/app/api/startup-notices/route-1879675a73caf73c.js +0 -1
  763. package/app/.next/static/chunks/app/api/tags/route-1879675a73caf73c.js +0 -1
  764. package/app/.next/static/chunks/app/api/translator/console-logs/route-1879675a73caf73c.js +0 -1
  765. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-1879675a73caf73c.js +0 -1
  766. package/app/.next/static/chunks/app/api/translator/load/route-1879675a73caf73c.js +0 -1
  767. package/app/.next/static/chunks/app/api/translator/save/route-1879675a73caf73c.js +0 -1
  768. package/app/.next/static/chunks/app/api/translator/send/route-1879675a73caf73c.js +0 -1
  769. package/app/.next/static/chunks/app/api/translator/translate/route-1879675a73caf73c.js +0 -1
  770. package/app/.next/static/chunks/app/api/tunnel/disable/route-1879675a73caf73c.js +0 -1
  771. package/app/.next/static/chunks/app/api/tunnel/enable/route-1879675a73caf73c.js +0 -1
  772. package/app/.next/static/chunks/app/api/tunnel/status/route-1879675a73caf73c.js +0 -1
  773. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-1879675a73caf73c.js +0 -1
  774. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-1879675a73caf73c.js +0 -1
  775. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-1879675a73caf73c.js +0 -1
  776. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-1879675a73caf73c.js +0 -1
  777. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-1879675a73caf73c.js +0 -1
  778. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-1879675a73caf73c.js +0 -1
  779. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-1879675a73caf73c.js +0 -1
  780. package/app/.next/static/chunks/app/api/usage/api-keys/route-1879675a73caf73c.js +0 -1
  781. package/app/.next/static/chunks/app/api/usage/chart/route-1879675a73caf73c.js +0 -1
  782. package/app/.next/static/chunks/app/api/usage/history/route-1879675a73caf73c.js +0 -1
  783. package/app/.next/static/chunks/app/api/usage/logs/route-1879675a73caf73c.js +0 -1
  784. package/app/.next/static/chunks/app/api/usage/providers/route-1879675a73caf73c.js +0 -1
  785. package/app/.next/static/chunks/app/api/usage/request-details/route-1879675a73caf73c.js +0 -1
  786. package/app/.next/static/chunks/app/api/usage/request-logs/route-1879675a73caf73c.js +0 -1
  787. package/app/.next/static/chunks/app/api/usage/stats/route-1879675a73caf73c.js +0 -1
  788. package/app/.next/static/chunks/app/api/usage/stream/route-1879675a73caf73c.js +0 -1
  789. package/app/.next/static/chunks/app/api/users/[id]/route-1879675a73caf73c.js +0 -1
  790. package/app/.next/static/chunks/app/api/users/route-1879675a73caf73c.js +0 -1
  791. package/app/.next/static/chunks/app/api/v1/api/chat/route-1879675a73caf73c.js +0 -1
  792. package/app/.next/static/chunks/app/api/v1/audio/speech/route-1879675a73caf73c.js +0 -1
  793. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-1879675a73caf73c.js +0 -1
  794. package/app/.next/static/chunks/app/api/v1/audio/voices/route-1879675a73caf73c.js +0 -1
  795. package/app/.next/static/chunks/app/api/v1/chat/completions/route-1879675a73caf73c.js +0 -1
  796. package/app/.next/static/chunks/app/api/v1/embeddings/route-1879675a73caf73c.js +0 -1
  797. package/app/.next/static/chunks/app/api/v1/images/generations/route-1879675a73caf73c.js +0 -1
  798. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-1879675a73caf73c.js +0 -1
  799. package/app/.next/static/chunks/app/api/v1/messages/route-1879675a73caf73c.js +0 -1
  800. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-1879675a73caf73c.js +0 -1
  801. package/app/.next/static/chunks/app/api/v1/models/info/route-1879675a73caf73c.js +0 -1
  802. package/app/.next/static/chunks/app/api/v1/models/route-1879675a73caf73c.js +0 -1
  803. package/app/.next/static/chunks/app/api/v1/responses/compact/route-1879675a73caf73c.js +0 -1
  804. package/app/.next/static/chunks/app/api/v1/responses/route-1879675a73caf73c.js +0 -1
  805. package/app/.next/static/chunks/app/api/v1/route-1879675a73caf73c.js +0 -1
  806. package/app/.next/static/chunks/app/api/v1/search/route-1879675a73caf73c.js +0 -1
  807. package/app/.next/static/chunks/app/api/v1/web/fetch/route-1879675a73caf73c.js +0 -1
  808. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-1879675a73caf73c.js +0 -1
  809. package/app/.next/static/chunks/app/api/v1beta/models/route-1879675a73caf73c.js +0 -1
  810. package/app/.next/static/chunks/app/api/version/route-1879675a73caf73c.js +0 -1
  811. package/app/.next/static/chunks/app/api/version/shutdown/route-1879675a73caf73c.js +0 -1
  812. package/app/.next/static/chunks/app/api/version/update/route-1879675a73caf73c.js +0 -1
  813. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-9d24273d41fadd28.js +0 -1
  814. package/app/.next/static/chunks/app/layout-2f20e93bb64f203d.js +0 -1
  815. package/app/.next/static/chunks/app/login/page-ef8d8c379c2ef99b.js +0 -1
  816. package/app/.next/static/chunks/app/manifest.webmanifest/route-1879675a73caf73c.js +0 -1
  817. package/app/.next/static/chunks/app/page-1879675a73caf73c.js +0 -1
  818. package/app/.next/static/chunks/main-9b9267659a73e61e.js +0 -5
  819. package/app/.next/static/chunks/main-app-d5f2701c08554961.js +0 -1
  820. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-1879675a73caf73c.js +0 -1
  821. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-1879675a73caf73c.js +0 -1
  822. package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-8d51a00b6c966622.js +0 -1
  823. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-1879675a73caf73c.js +0 -1
  824. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1879675a73caf73c.js +0 -1
  825. package/app/.next/static/css/f6642f5333f94810.css +0 -1
  826. package/app/.next/static/css/fe3b2b4e527f4e99.css +0 -1
  827. /package/app/.next/static/{XHWEINo8HqIhskxHTrvjk → foKo1xDQER7YWTSg2B-qB}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  const { log, err } = require("../logger");
2
2
 
3
- const DEFAULT_LOCAL_ROUTER = "http://127.0.0.1:20502";
3
+ const DEFAULT_LOCAL_ROUTER = "http://localhost:20502";
4
4
  const ROUTER_BASE = String(process.env.MITM_ROUTER_BASE || DEFAULT_LOCAL_ROUTER)
5
5
  .trim()
6
6
  .replace(/\/+$/, "") || DEFAULT_LOCAL_ROUTER;
@@ -12,34 +12,33 @@ const STRIP_HEADERS = new Set([
12
12
  "content-type", "authorization"
13
13
  ]);
14
14
 
15
+ function normalizeRouterPath(path) {
16
+ const rawPath = String(path || "").trim() || "/v1/chat/completions";
17
+ if (rawPath === "/v1") return "/api/v1";
18
+ if (rawPath.startsWith("/v1/")) return `/api${rawPath}`;
19
+ return rawPath;
20
+ }
21
+
15
22
  /**
16
23
  * Send body to OpenrouterX at the given path and return the fetch Response object.
17
24
  * Optionally forwards client headers (stripped of hop-by-hop / overridden keys).
18
25
  */
19
26
  async function fetchRouter(openaiBody, path = "/v1/chat/completions", clientHeaders = {}) {
27
+ const routerPath = normalizeRouterPath(path);
20
28
  const forwarded = {};
21
29
  for (const [k, v] of Object.entries(clientHeaders)) {
22
30
  if (!STRIP_HEADERS.has(k.toLowerCase())) forwarded[k] = v;
23
31
  }
24
32
 
25
- let response;
26
- try {
27
- response = await fetch(`${ROUTER_BASE}${path}`, {
28
- method: "POST",
29
- headers: {
30
- ...forwarded,
31
- "Content-Type": "application/json",
32
- ...(API_KEY && { "Authorization": `Bearer ${API_KEY}` })
33
- },
34
- body: JSON.stringify(openaiBody)
35
- });
36
- } catch (error) {
37
- const cause = error.cause;
38
- const causeDetail = cause
39
- ? ` (cause: ${cause.code || cause.name || "unknown"}: ${cause.message || cause})`
40
- : "";
41
- throw new Error(`Router fetch failed for ${ROUTER_BASE}${path}: ${error.message}${causeDetail}`);
42
- }
33
+ const response = await fetch(`${ROUTER_BASE}${routerPath}`, {
34
+ method: "POST",
35
+ headers: {
36
+ ...forwarded,
37
+ "Content-Type": "application/json",
38
+ ...(API_KEY && { "Authorization": `Bearer ${API_KEY}` })
39
+ },
40
+ body: JSON.stringify(openaiBody)
41
+ });
43
42
 
44
43
  // Forward response as-is (status + body). pipeSSE will propagate status.
45
44
  return response;
@@ -74,4 +73,4 @@ async function pipeSSE(routerRes, res, dumper) {
74
73
  }
75
74
  }
76
75
 
77
- module.exports = { fetchRouter, pipeSSE };
76
+ module.exports = { fetchRouter, normalizeRouterPath, pipeSSE };
@@ -16,31 +16,90 @@ const { isCertExpired } = require("./cert/rootCA");
16
16
  const { DATA_DIR, MITM_DIR } = require("./paths");
17
17
  const { log, err } = require("./logger");
18
18
 
19
- const DEFAULT_MITM_ROUTER_BASE = "http://127.0.0.1:20502";
20
- const LEGACY_DEFAULT_MITM_ROUTER_BASES = new Set([
21
- "http://localhost:20128",
22
- "http://127.0.0.1:20128",
23
- ]);
19
+ const DEFAULT_MITM_ROUTER_BASE = "http://localhost:20502";
24
20
 
25
21
  function shellQuoteSingle(str) {
26
22
  if (str == null || str === "") return "''";
27
23
  return `'${String(str).replace(/'/g, "'\\''")}'`;
28
24
  }
29
25
 
26
+ function normalizeHttpBaseUrl(input) {
27
+ const raw = input == null ? "" : String(input).trim();
28
+ if (!raw) return "";
29
+ try {
30
+ const u = new URL(raw.replace(/\/+$/, ""));
31
+ if (u.protocol !== "http:" && u.protocol !== "https:") return "";
32
+ return u.toString().replace(/\/+$/, "");
33
+ } catch {
34
+ return "";
35
+ }
36
+ }
37
+
38
+ function isLoopbackBaseUrl(baseUrl) {
39
+ try {
40
+ const host = new URL(baseUrl).hostname.toLowerCase();
41
+ return host === "localhost" || host === "127.0.0.1" || host === "::1";
42
+ } catch {
43
+ return false;
44
+ }
45
+ }
46
+
47
+ function readCurrentServerBaseUrl() {
48
+ try {
49
+ const file = path.join(DATA_DIR, "server.json");
50
+ if (!fs.existsSync(file)) return "";
51
+ const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
52
+ return normalizeHttpBaseUrl(parsed && parsed.baseUrl);
53
+ } catch {
54
+ return "";
55
+ }
56
+ }
57
+
58
+ function canConnectBaseUrl(baseUrl, timeoutMs = 350) {
59
+ return new Promise((resolve) => {
60
+ let u;
61
+ try {
62
+ u = new URL(baseUrl);
63
+ } catch {
64
+ resolve(false);
65
+ return;
66
+ }
67
+
68
+ const port = Number(u.port || (u.protocol === "https:" ? 443 : 80));
69
+ const socket = net.connect({ host: u.hostname, port });
70
+ const done = (ok) => {
71
+ socket.removeAllListeners();
72
+ socket.destroy();
73
+ resolve(ok);
74
+ };
75
+ socket.setTimeout(timeoutMs, () => done(false));
76
+ socket.once("connect", () => done(true));
77
+ socket.once("error", () => done(false));
78
+ });
79
+ }
80
+
30
81
  async function resolveMitmRouterBaseUrl() {
31
- if (!_getSettings) return DEFAULT_MITM_ROUTER_BASE;
82
+ const currentServerBase = readCurrentServerBaseUrl();
83
+ if (!_getSettings) return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
32
84
  try {
33
85
  const s = await _getSettings();
34
- const raw = s && s.mitmRouterBaseUrl != null ? String(s.mitmRouterBaseUrl).trim() : "";
35
- if (!raw) return DEFAULT_MITM_ROUTER_BASE;
36
- if (LEGACY_DEFAULT_MITM_ROUTER_BASES.has(raw.replace(/\/+$/, ""))) {
37
- return DEFAULT_MITM_ROUTER_BASE;
86
+ const configuredBase = normalizeHttpBaseUrl(s && s.mitmRouterBaseUrl);
87
+ if (!configuredBase) return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
88
+
89
+ if (isLoopbackBaseUrl(configuredBase) && currentServerBase && configuredBase !== currentServerBase) {
90
+ const configuredAlive = await canConnectBaseUrl(configuredBase);
91
+ if (!configuredAlive && await canConnectBaseUrl(currentServerBase)) {
92
+ if (_updateSettings) {
93
+ _updateSettings({ mitmRouterBaseUrl: currentServerBase }).catch(() => { });
94
+ }
95
+ log(`🚀 MITM router base auto-corrected: ${configuredBase} → ${currentServerBase}`);
96
+ return currentServerBase;
97
+ }
38
98
  }
39
- const u = new URL(raw);
40
- if (u.protocol !== "http:" && u.protocol !== "https:") return DEFAULT_MITM_ROUTER_BASE;
41
- return raw.replace(/\/+$/, "");
99
+
100
+ return configuredBase;
42
101
  } catch {
43
- return DEFAULT_MITM_ROUTER_BASE;
102
+ return currentServerBase || DEFAULT_MITM_ROUTER_BASE;
44
103
  }
45
104
  }
46
105
 
@@ -405,7 +464,7 @@ async function scheduleMitmRestart(apiKey) {
405
464
  mitmIsRestarting = false;
406
465
  return;
407
466
  }
408
- await startServer(apiKey, password, false, { restart: true });
467
+ await startServer(apiKey, password);
409
468
  log("🔄 Restarted successfully");
410
469
  mitmRestartCount = 0;
411
470
  mitmIsRestarting = false;
@@ -439,23 +498,7 @@ async function killPort443Owner(owner, sudoPassword) {
439
498
  await new Promise(r => setTimeout(r, 800));
440
499
  }
441
500
 
442
- async function adoptHealthyExistingServer(sudoPassword) {
443
- const health = await pollMitmHealth(1000, MITM_PORT);
444
- if (!health) return null;
445
-
446
- const pid = health.pid || serverPid || (() => {
447
- try { return parseInt(fs.readFileSync(PID_FILE, "utf-8").trim(), 10); } catch { return null; }
448
- })();
449
- if (pid) {
450
- serverPid = pid;
451
- try { fs.writeFileSync(PID_FILE, String(pid)); } catch { /* ignore */ }
452
- }
453
- await saveMitmSettings(true, sudoPassword);
454
- return { running: true, pid: serverPid || pid };
455
- }
456
-
457
- async function startServer(apiKey, sudoPassword, forceKillPort443 = false, options = {}) {
458
- const isRestart = options.restart === true;
501
+ async function startServer(apiKey, sudoPassword, forceKillPort443 = false) {
459
502
  if (!serverProcess || serverProcess.killed) {
460
503
  try {
461
504
  if (fs.existsSync(PID_FILE)) {
@@ -474,13 +517,7 @@ async function startServer(apiKey, sudoPassword, forceKillPort443 = false, optio
474
517
  }
475
518
 
476
519
  if (serverProcess && !serverProcess.killed) {
477
- const healthy = await adoptHealthyExistingServer(sudoPassword);
478
- if (healthy) return healthy;
479
- if (isRestart) {
480
- await killLeftoverMitm(sudoPassword);
481
- } else {
482
- throw new Error("MITM server is already running");
483
- }
520
+ throw new Error("MITM server is already running");
484
521
  }
485
522
 
486
523
  await killLeftoverMitm(sudoPassword);
@@ -673,18 +710,12 @@ async function startServer(apiKey, sudoPassword, forceKillPort443 = false, optio
673
710
  const health = await pollMitmHealth(8000, MITM_PORT);
674
711
  if (!health) {
675
712
  if (serverProcess && !serverProcess.killed) { try { serverProcess.kill(); } catch { /* ignore */ } serverProcess = null; }
676
- serverPid = null;
677
713
  const processUsing443 = getProcessUsingPort443();
678
714
  const portInfo = processUsing443 ? ` Port 443 already in use by ${processUsing443}.` : "";
679
715
  const reason = startError || `Check sudo password or port 443 access.${portInfo}`;
680
716
  throw new Error(`MITM server failed to start. ${reason}`);
681
717
  }
682
718
 
683
- if (health.pid && health.pid !== serverPid) {
684
- serverPid = health.pid;
685
- try { fs.writeFileSync(PID_FILE, String(serverPid)); } catch { /* ignore */ }
686
- }
687
-
688
719
  if (_updateSettings) await _updateSettings({ mitmCertInstalled: true }).catch(() => { });
689
720
 
690
721
  log(`✅ Server healthy (PID: ${serverPid || health.pid})`);
@@ -827,4 +858,7 @@ module.exports = {
827
858
  restoreToolDNS,
828
859
  hasDnsPrivilege,
829
860
  removeAllDNSEntriesSync,
861
+ resolveMitmRouterBaseUrl,
862
+ normalizeHttpBaseUrl,
863
+ readCurrentServerBaseUrl,
830
864
  };
@@ -344,47 +344,47 @@ async function passthrough(req, res, bodyBuffer, onResponse, transformResponse)
344
344
  servername: targetHost,
345
345
  rejectUnauthorized: false
346
346
  }, (forwardRes) => {
347
- // When transformResponse is provided, buffer the full response so we can
348
- // modify it before sending to the client.
349
- const shouldBuffer = transformResponse != null;
350
- if (!shouldBuffer) res.writeHead(forwardRes.statusCode, forwardRes.headers);
347
+ // When transformResponse is provided, buffer the full response so we can
348
+ // modify it before sending to the client.
349
+ const shouldBuffer = transformResponse != null;
350
+ if (!shouldBuffer) res.writeHead(forwardRes.statusCode, forwardRes.headers);
351
351
 
352
- if (!onResponse && !dumper && !shouldBuffer) {
353
- forwardRes.pipe(res);
354
- return;
355
- }
352
+ if (!onResponse && !dumper && !shouldBuffer) {
353
+ forwardRes.pipe(res);
354
+ return;
355
+ }
356
356
 
357
- const chunks = [];
358
- forwardRes.on("data", chunk => {
359
- if (dumper) dumper.writeChunk(chunk);
360
- if (onResponse || shouldBuffer) chunks.push(chunk);
361
- if (!shouldBuffer) res.write(chunk);
362
- });
363
- forwardRes.on("end", () => {
364
- const rawBuffer = Buffer.concat(chunks);
365
-
366
- if (shouldBuffer) {
367
- try {
368
- const modified = transformResponse(rawBuffer, forwardRes.headers);
369
- // Update Content-Length if present to match modified body
370
- const headers = { ...forwardRes.headers };
371
- if (headers["content-length"] != null) {
372
- headers["content-length"] = String(Buffer.byteLength(modified));
357
+ const chunks = [];
358
+ forwardRes.on("data", chunk => {
359
+ if (dumper) dumper.writeChunk(chunk);
360
+ if (onResponse || shouldBuffer) chunks.push(chunk);
361
+ if (!shouldBuffer) res.write(chunk);
362
+ });
363
+ forwardRes.on("end", () => {
364
+ const rawBuffer = Buffer.concat(chunks);
365
+
366
+ if (shouldBuffer) {
367
+ try {
368
+ const modified = transformResponse(rawBuffer, forwardRes.headers);
369
+ // Update Content-Length if present to match modified body
370
+ const headers = { ...forwardRes.headers };
371
+ if (headers["content-length"] != null) {
372
+ headers["content-length"] = String(Buffer.byteLength(modified));
373
+ }
374
+ res.writeHead(forwardRes.statusCode, headers);
375
+ res.end(modified);
376
+ } catch (e) {
377
+ err(`transformResponse error: ${e.message}`);
378
+ if (!res.headersSent) res.writeHead(502);
379
+ res.end("Bad Gateway");
373
380
  }
374
- res.writeHead(forwardRes.statusCode, headers);
375
- res.end(modified);
376
- } catch (e) {
377
- err(`transformResponse error: ${e.message}`);
378
- if (!res.headersSent) res.writeHead(502);
379
- res.end("Bad Gateway");
381
+ } else {
382
+ res.end();
380
383
  }
381
- } else {
382
- res.end();
383
- }
384
384
 
385
- if (dumper) dumper.end();
386
- if (onResponse) try { onResponse(rawBuffer, forwardRes.headers); } catch { /* ignore */ }
387
- });
385
+ if (dumper) dumper.end();
386
+ if (onResponse) try { onResponse(rawBuffer, forwardRes.headers); } catch { /* ignore */ }
387
+ });
388
388
  });
389
389
 
390
390
  forwardReq.on("error", (e) => {
package/cli.js CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  const { spawn } = require("node:child_process");
4
4
  const fs = require("node:fs");
5
- const https = require("node:https");
6
5
  const os = require("node:os");
7
6
  const path = require("node:path");
8
7
  const net = require("node:net");
@@ -18,17 +17,8 @@ const PID_FILE = path.join(DATA_DIR, "server.pid");
18
17
  const META_FILE = path.join(DATA_DIR, "server.json");
19
18
  const LOG_FILE = path.join(DATA_DIR, "server.log");
20
19
  const MITM_PID_FILE = path.join(DATA_DIR, "mitm", ".mitm.pid");
21
- const STARTUP_NOTICE_DIR = path.join(DATA_DIR, "notices");
22
- const PORT_MIGRATION_NOTICE_FILE = path.join(STARTUP_NOTICE_DIR, "port-migration.json");
23
20
  const DEFAULT_PORT = "20502";
24
21
  const DEFAULT_HOST = "0.0.0.0";
25
- const NPM_PACKAGE_NAME = "@yina-npm/openrouterx";
26
- const INSTALL_CMD_LATEST = `npm i -g ${NPM_PACKAGE_NAME}@latest --prefer-online --registry=https://registry.npmjs.org/`;
27
- const DEFAULT_MITM_ROUTER_BASE_URL = `http://localhost:${DEFAULT_PORT}`;
28
- const LEGACY_DEFAULT_MITM_ROUTER_BASE_URLS = new Set([
29
- "http://localhost:20128",
30
- "http://127.0.0.1:20128",
31
- ]);
32
22
 
33
23
  function parseArgs(argv = process.argv.slice(2)) {
34
24
  const options = {
@@ -129,156 +119,6 @@ function ensureDataDir() {
129
119
  fs.mkdirSync(DATA_DIR, { recursive: true });
130
120
  }
131
121
 
132
- function stripTrailingSlash(value) {
133
- return String(value || "").trim().replace(/\/+$/, "");
134
- }
135
-
136
- function normalizeMitmRouterBaseUrl(value) {
137
- const raw = stripTrailingSlash(value);
138
- if (!raw || LEGACY_DEFAULT_MITM_ROUTER_BASE_URLS.has(raw)) {
139
- return DEFAULT_MITM_ROUTER_BASE_URL;
140
- }
141
- return raw;
142
- }
143
-
144
- function migrateJsonSettingsFile() {
145
- const jsonDbFile = path.join(DATA_DIR, "db.json");
146
- if (!fs.existsSync(jsonDbFile)) return false;
147
-
148
- try {
149
- const data = JSON.parse(fs.readFileSync(jsonDbFile, "utf8"));
150
- if (!data || typeof data !== "object") return false;
151
- if (!data.settings || typeof data.settings !== "object" || Array.isArray(data.settings)) {
152
- data.settings = {};
153
- }
154
- const current = data.settings.mitmRouterBaseUrl;
155
- const next = normalizeMitmRouterBaseUrl(current);
156
- if (current === next) return false;
157
- data.settings.mitmRouterBaseUrl = next;
158
- fs.writeFileSync(jsonDbFile, `${JSON.stringify(data, null, 2)}\n`);
159
- return true;
160
- } catch {
161
- return false;
162
- }
163
- }
164
-
165
- function migrateSqliteSettingsFile() {
166
- const sqliteFile = path.join(DATA_DIR, "db", "data.sqlite");
167
- if (!fs.existsSync(sqliteFile)) return false;
168
-
169
- let Database;
170
- try {
171
- Database = require("better-sqlite3");
172
- } catch {
173
- return false;
174
- }
175
-
176
- let db;
177
- try {
178
- db = new Database(sqliteFile);
179
- const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'settings'").get();
180
- if (!table) return false;
181
- const row = db.prepare("SELECT id, data FROM settings WHERE id = 1").get();
182
- if (!row) return false;
183
- const settings = JSON.parse(row.data || "{}");
184
- const current = settings.mitmRouterBaseUrl;
185
- const next = normalizeMitmRouterBaseUrl(current);
186
- if (current === next) return false;
187
- settings.mitmRouterBaseUrl = next;
188
- db.prepare("UPDATE settings SET data = ? WHERE id = ?").run(JSON.stringify(settings), row.id);
189
- return true;
190
- } catch {
191
- return false;
192
- } finally {
193
- try {
194
- db?.close();
195
- } catch {}
196
- }
197
- }
198
-
199
- function writePortMigrationNotice(changedStores) {
200
- if (!changedStores.length) return;
201
- try {
202
- fs.mkdirSync(STARTUP_NOTICE_DIR, { recursive: true });
203
- fs.writeFileSync(PORT_MIGRATION_NOTICE_FILE, `${JSON.stringify({
204
- id: "port-migration-20128-20502",
205
- type: "port-migration",
206
- fromPort: 20128,
207
- toPort: Number(DEFAULT_PORT),
208
- fromBaseUrl: "http://localhost:20128",
209
- toBaseUrl: DEFAULT_MITM_ROUTER_BASE_URL,
210
- stores: changedStores,
211
- createdAt: new Date().toISOString(),
212
- }, null, 2)}\n`);
213
- } catch {}
214
- }
215
-
216
- function refreshRuntimePortSettings({ quiet = true } = {}) {
217
- ensureDataDir();
218
- const changed = [];
219
- if (migrateJsonSettingsFile()) changed.push("db.json");
220
- if (migrateSqliteSettingsFile()) changed.push("data.sqlite");
221
- writePortMigrationNotice(changed);
222
- if (!quiet && changed.length > 0) {
223
- console.log(`Refreshed MITM router port settings: ${changed.join(", ")} -> ${DEFAULT_MITM_ROUTER_BASE_URL}`);
224
- }
225
- return changed;
226
- }
227
-
228
- function compareVersions(a, b) {
229
- const pa = String(a || "").split(".").map(Number);
230
- const pb = String(b || "").split(".").map(Number);
231
- for (let i = 0; i < 3; i += 1) {
232
- const av = Number.isFinite(pa[i]) ? pa[i] : 0;
233
- const bv = Number.isFinite(pb[i]) ? pb[i] : 0;
234
- if (av > bv) return 1;
235
- if (av < bv) return -1;
236
- }
237
- return 0;
238
- }
239
-
240
- function checkForUpdate({ skipUpdate } = {}) {
241
- return new Promise((resolve) => {
242
- if (skipUpdate) {
243
- resolve(null);
244
- return;
245
- }
246
-
247
- let resolved = false;
248
- const done = (version) => {
249
- if (resolved) return;
250
- resolved = true;
251
- resolve(version);
252
- };
253
-
254
- const req = https.get(
255
- `https://registry.npmjs.org/${encodeURIComponent(NPM_PACKAGE_NAME).replace("%40", "@")}/latest`,
256
- { timeout: 3000 },
257
- (res) => {
258
- let data = "";
259
- res.on("data", (chunk) => {
260
- data += chunk;
261
- });
262
- res.on("end", () => {
263
- try {
264
- const latest = JSON.parse(data);
265
- const latestVersion = latest?.version;
266
- done(latestVersion && compareVersions(latestVersion, pkg.version) > 0 ? latestVersion : null);
267
- } catch {
268
- done(null);
269
- }
270
- });
271
- }
272
- );
273
-
274
- req.on("error", () => done(null));
275
- req.on("timeout", () => {
276
- req.destroy();
277
- done(null);
278
- });
279
- });
280
- }
281
-
282
122
  function readMeta() {
283
123
  try {
284
124
  return JSON.parse(fs.readFileSync(META_FILE, "utf8"));
@@ -548,7 +388,6 @@ function printChooser(serverUrl) {
548
388
 
549
389
  async function runCli() {
550
390
  const options = parseArgs();
551
- refreshRuntimePortSettings({ quiet: true });
552
391
 
553
392
  if (options.help) {
554
393
  console.log(formatHelp());
@@ -600,7 +439,6 @@ async function runCli() {
600
439
  const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || `http://localhost:${port}`;
601
440
  const foreground = options.foreground || (process.env.ORX_CHOOSER_ACTION !== undefined && process.env.ORX_CHOOSER_ACTION !== "hide");
602
441
  const runningPid = readPid();
603
- const latestVersion = await checkForUpdate({ skipUpdate: options.skipUpdate });
604
442
 
605
443
  if (isProcessRunning(runningPid) && options.command !== "restart") {
606
444
  const runningMeta = readMeta();
@@ -618,10 +456,6 @@ async function runCli() {
618
456
  }
619
457
 
620
458
  printChooser(baseUrl);
621
- if (latestVersion) {
622
- console.log(`Update available: v${pkg.version} -> v${latestVersion}`);
623
- console.log(`Run: ${INSTALL_CMD_LATEST}`);
624
- }
625
459
 
626
460
  const stdio = foreground ? "inherit" : createLogFileDescriptors();
627
461
  const child = spawn(process.execPath, [serverEntry], {
@@ -682,8 +516,4 @@ module.exports = {
682
516
  isProcessRunning,
683
517
  printStatus,
684
518
  stopServer,
685
- refreshRuntimePortSettings,
686
- normalizeMitmRouterBaseUrl,
687
- compareVersions,
688
- checkForUpdate,
689
519
  };
@@ -2,102 +2,10 @@
2
2
 
3
3
  const { execSync } = require("node:child_process");
4
4
  const fs = require("node:fs");
5
- const os = require("node:os");
6
5
  const path = require("node:path");
7
6
 
8
7
  const appDir = path.join(__dirname, "..", "app");
9
8
  const betterSqlitePath = path.join(appDir, "node_modules", "better-sqlite3");
10
- const defaultMitmRouterBaseUrl = "http://localhost:20502";
11
- const portMigrationNoticeName = "port-migration.json";
12
- const legacyMitmRouterBaseUrls = new Set([
13
- "http://localhost:20128",
14
- "http://127.0.0.1:20128",
15
- ]);
16
-
17
- function getDataDir() {
18
- return process.platform === "win32"
19
- ? path.join(process.env.APPDATA || os.homedir(), "openrouterx")
20
- : path.join(os.homedir(), ".openrouterx");
21
- }
22
-
23
- function normalizeMitmRouterBaseUrl(value) {
24
- const raw = String(value || "").trim().replace(/\/+$/, "");
25
- if (!raw || legacyMitmRouterBaseUrls.has(raw)) return defaultMitmRouterBaseUrl;
26
- return raw;
27
- }
28
-
29
- function refreshJsonSettings(dataDir) {
30
- const filePath = path.join(dataDir, "db.json");
31
- if (!fs.existsSync(filePath)) return false;
32
- try {
33
- const data = JSON.parse(fs.readFileSync(filePath, "utf8"));
34
- if (!data || typeof data !== "object") return false;
35
- if (!data.settings || typeof data.settings !== "object" || Array.isArray(data.settings)) {
36
- data.settings = {};
37
- }
38
- const next = normalizeMitmRouterBaseUrl(data.settings.mitmRouterBaseUrl);
39
- if (data.settings.mitmRouterBaseUrl === next) return false;
40
- data.settings.mitmRouterBaseUrl = next;
41
- fs.writeFileSync(filePath, JSON.stringify(data, null, 2) + "\n");
42
- return true;
43
- } catch {
44
- return false;
45
- }
46
- }
47
-
48
- function refreshSqliteSettings(dataDir) {
49
- const filePath = path.join(dataDir, "db", "data.sqlite");
50
- if (!fs.existsSync(filePath)) return false;
51
- let Database;
52
- try {
53
- Database = require(path.join(appDir, "node_modules", "better-sqlite3"));
54
- } catch {
55
- try { Database = require("better-sqlite3"); } catch { return false; }
56
- }
57
-
58
- let db;
59
- try {
60
- db = new Database(filePath);
61
- const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'settings'").get();
62
- if (!table) return false;
63
- const row = db.prepare("SELECT id, data FROM settings WHERE id = 1").get();
64
- if (!row) return false;
65
- const settings = JSON.parse(row.data || "{}");
66
- const next = normalizeMitmRouterBaseUrl(settings.mitmRouterBaseUrl);
67
- if (settings.mitmRouterBaseUrl === next) return false;
68
- settings.mitmRouterBaseUrl = next;
69
- db.prepare("UPDATE settings SET data = ? WHERE id = ?").run(JSON.stringify(settings), row.id);
70
- return true;
71
- } catch {
72
- return false;
73
- } finally {
74
- try { db?.close(); } catch {}
75
- }
76
- }
77
-
78
- function refreshRuntimePortSettings() {
79
- const dataDir = getDataDir();
80
- const changed = [];
81
- if (refreshJsonSettings(dataDir)) changed.push("db.json");
82
- if (refreshSqliteSettings(dataDir)) changed.push("data.sqlite");
83
- if (changed.length > 0) {
84
- const noticeDir = path.join(dataDir, "notices");
85
- fs.mkdirSync(noticeDir, { recursive: true });
86
- fs.writeFileSync(path.join(noticeDir, portMigrationNoticeName), JSON.stringify({
87
- id: "port-migration-20128-20502",
88
- type: "port-migration",
89
- fromPort: 20128,
90
- toPort: 20502,
91
- fromBaseUrl: "http://localhost:20128",
92
- toBaseUrl: defaultMitmRouterBaseUrl,
93
- stores: changed,
94
- createdAt: new Date().toISOString(),
95
- }, null, 2) + "\n");
96
- console.log("refreshed MITM router port settings: " + changed.join(", ") + " -> " + defaultMitmRouterBaseUrl);
97
- }
98
- }
99
-
100
- refreshRuntimePortSettings();
101
9
 
102
10
  if (!fs.existsSync(betterSqlitePath)) {
103
11
  console.log("better-sqlite3 not found, skipping rebuild");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yina-npm/openrouterx",
3
- "version": "0.4.33",
3
+ "version": "0.4.35",
4
4
  "description": "openrouterX CLI - Start and manage 9Router server",
5
5
  "bin": {
6
6
  "openrouterX": "./cli.js"