9router 0.3.91 → 0.3.97

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 (667) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +7 -5
  3. package/app/.next/build-manifest.json +2 -2
  4. package/app/.next/routes-manifest.json +12 -0
  5. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  6. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  7. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  9. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  12. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  15. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  18. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +6 -6
  21. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  27. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  33. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  36. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  39. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  42. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  45. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  48. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  51. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  54. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/_global-error/page.js +2 -2
  57. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/_global-error.html +1 -1
  59. package/app/.next/server/app/_global-error.rsc +1 -1
  60. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  61. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  62. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  63. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  64. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  65. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  66. package/app/.next/server/app/_not-found/page.js +2 -2
  67. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  68. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  69. package/app/.next/server/app/_not-found.html +1 -1
  70. package/app/.next/server/app/_not-found.rsc +4 -4
  71. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  72. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  73. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  74. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  75. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  76. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  77. package/app/.next/server/app/api/auth/login/route.js +1 -1
  78. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  79. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  80. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  81. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  82. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  83. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  84. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +3 -3
  85. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  86. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  87. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  88. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  89. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  90. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  91. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  92. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  93. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  94. package/app/.next/server/app/api/combos/route.js +1 -1
  95. package/app/.next/server/app/api/health/route.js +1 -1
  96. package/app/.next/server/app/api/init/route.js +1 -1
  97. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  98. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  99. package/app/.next/server/app/api/keys/route.js +1 -1
  100. package/app/.next/server/app/api/locale/route.js +1 -1
  101. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  102. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  103. package/app/.next/server/app/api/models/alias/route.js +1 -1
  104. package/app/.next/server/app/api/models/availability/route.js +1 -1
  105. package/app/.next/server/app/api/models/custom/route.js +1 -0
  106. package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -0
  107. package/app/.next/server/app/api/models/custom/route_client-reference-manifest.js +1 -0
  108. package/app/.next/server/app/api/models/route.js +1 -1
  109. package/app/.next/server/app/api/models/test/route.js +1 -1
  110. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  111. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  112. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  113. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  114. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  115. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  116. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  117. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  118. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  119. package/app/.next/server/app/api/pricing/route.js +1 -1
  120. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  121. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  122. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  123. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  124. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  125. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  126. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  127. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  128. package/app/.next/server/app/api/providers/client/route.js +1 -1
  129. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  130. package/app/.next/server/app/api/providers/route.js +1 -1
  131. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  132. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  133. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  134. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  135. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  136. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  137. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  138. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  139. package/app/.next/server/app/api/settings/database/route.js +1 -1
  140. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  141. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  142. package/app/.next/server/app/api/settings/route.js +1 -1
  143. package/app/.next/server/app/api/shutdown/route.js +1 -1
  144. package/app/.next/server/app/api/tags/route.js +1 -1
  145. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  146. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  147. package/app/.next/server/app/api/translator/load/route.js +1 -1
  148. package/app/.next/server/app/api/translator/load/route.js.nft.json +1 -1
  149. package/app/.next/server/app/api/translator/save/route.js +1 -1
  150. package/app/.next/server/app/api/translator/save/route.js.nft.json +1 -1
  151. package/app/.next/server/app/api/translator/send/route.js +1 -1
  152. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  153. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  154. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  155. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  156. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  157. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  158. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  159. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +2 -2
  160. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  161. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  162. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  163. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  164. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +2 -2
  165. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  166. package/app/.next/server/app/api/tunnel/tailscale-login/route.js +2 -2
  167. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
  168. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  170. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  171. package/app/.next/server/app/api/usage/history/route.js +1 -1
  172. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  173. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  174. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  175. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  176. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  177. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  178. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  179. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  180. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  181. package/app/.next/server/app/api/v1/images/generations/route.js +1 -0
  182. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -0
  183. package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -0
  184. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  185. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  186. package/app/.next/server/app/api/v1/models/route.js +1 -1
  187. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  188. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  189. package/app/.next/server/app/api/v1/route.js +1 -1
  190. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  191. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  192. package/app/.next/server/app/api/version/route.js +1 -1
  193. package/app/.next/server/app/callback/page.js +2 -2
  194. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  195. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  196. package/app/.next/server/app/callback.html +1 -1
  197. package/app/.next/server/app/callback.rsc +4 -4
  198. package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
  199. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  200. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  201. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  202. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  203. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  204. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  205. package/app/.next/server/app/dashboard/basic-chat.rsc +6 -6
  206. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  207. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  208. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  209. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  210. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  211. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  212. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  213. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  214. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  215. package/app/.next/server/app/dashboard/cli-tools.rsc +6 -6
  216. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  217. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  218. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  219. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  220. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  221. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  222. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  223. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  224. package/app/.next/server/app/dashboard/combos.html +1 -1
  225. package/app/.next/server/app/dashboard/combos.rsc +6 -6
  226. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  227. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  228. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  229. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  230. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  231. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  232. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  233. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  234. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  235. package/app/.next/server/app/dashboard/endpoint.rsc +6 -6
  236. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  237. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  238. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  239. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  240. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  241. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  242. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  243. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  244. package/app/.next/server/app/dashboard/mitm.html +1 -1
  245. package/app/.next/server/app/dashboard/mitm.rsc +6 -6
  246. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  247. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  248. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  249. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  250. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  251. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  252. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  253. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  254. package/app/.next/server/app/dashboard/profile.html +1 -1
  255. package/app/.next/server/app/dashboard/profile.rsc +6 -6
  256. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  257. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  258. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  259. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  260. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  261. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  262. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  263. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  264. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  265. package/app/.next/server/app/dashboard/providers/new.rsc +6 -6
  266. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  267. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  268. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  269. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  270. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  271. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  272. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  273. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  274. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  275. package/app/.next/server/app/dashboard/providers.html +1 -1
  276. package/app/.next/server/app/dashboard/providers.rsc +6 -6
  277. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  278. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  279. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  280. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  281. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  282. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  283. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  284. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  285. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  286. package/app/.next/server/app/dashboard/proxy-pools.rsc +6 -6
  287. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  288. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  289. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  290. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  291. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  292. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  293. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  294. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  295. package/app/.next/server/app/dashboard/quota.html +2 -2
  296. package/app/.next/server/app/dashboard/quota.rsc +7 -7
  297. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  298. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  299. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  300. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  301. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  302. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  303. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  304. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  305. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  306. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  307. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  308. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  309. package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
  310. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  311. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  312. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  313. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  314. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  315. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  316. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  317. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  318. package/app/.next/server/app/dashboard/translator.html +1 -1
  319. package/app/.next/server/app/dashboard/translator.rsc +6 -6
  320. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  321. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  322. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  323. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  324. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  325. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  326. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  327. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  328. package/app/.next/server/app/dashboard/usage.html +1 -1
  329. package/app/.next/server/app/dashboard/usage.rsc +6 -6
  330. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  331. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  332. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  333. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  334. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  335. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  336. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  337. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  338. package/app/.next/server/app/dashboard.html +1 -1
  339. package/app/.next/server/app/dashboard.rsc +6 -6
  340. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  341. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  342. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  343. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +6 -6
  344. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  345. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +4 -4
  346. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  347. package/app/.next/server/app/favicon.ico/route.js +1 -1
  348. package/app/.next/server/app/index.html +1 -1
  349. package/app/.next/server/app/index.rsc +4 -4
  350. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  351. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  352. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  353. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  354. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  355. package/app/.next/server/app/landing/page.js +2 -2
  356. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  357. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  358. package/app/.next/server/app/landing.html +1 -1
  359. package/app/.next/server/app/landing.rsc +5 -5
  360. package/app/.next/server/app/landing.segments/_full.segment.rsc +5 -5
  361. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  362. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  363. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  364. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  365. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  366. package/app/.next/server/app/login/page.js +2 -2
  367. package/app/.next/server/app/login/page.js.nft.json +1 -1
  368. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  369. package/app/.next/server/app/login.html +1 -1
  370. package/app/.next/server/app/login.rsc +5 -5
  371. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  372. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  373. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  374. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  375. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  376. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  377. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  378. package/app/.next/server/app/page.js +2 -2
  379. package/app/.next/server/app/page.js.nft.json +1 -1
  380. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  381. package/app/.next/server/app-paths-manifest.json +7 -5
  382. package/app/.next/server/chunks/126.js +2 -2
  383. package/app/.next/server/chunks/1389.js +1 -1
  384. package/app/.next/server/chunks/1574.js +1 -1
  385. package/app/.next/server/chunks/1578.js +1 -1
  386. package/app/.next/server/chunks/2049.js +1 -1
  387. package/app/.next/server/chunks/253.js +1 -0
  388. package/app/.next/server/chunks/2947.js +1 -1
  389. package/app/.next/server/chunks/3030.js +1 -0
  390. package/app/.next/server/chunks/3159.js +1 -1
  391. package/app/.next/server/chunks/3774.js +3 -3
  392. package/app/.next/server/chunks/450.js +2 -2
  393. package/app/.next/server/chunks/4627.js +1 -1
  394. package/app/.next/server/chunks/5053.js +64 -0
  395. package/app/.next/server/chunks/5445.js +1 -1
  396. package/app/.next/server/chunks/6379.js +1 -1
  397. package/app/.next/server/chunks/7243.js +1 -1
  398. package/app/.next/server/chunks/7770.js +1 -1
  399. package/app/.next/server/chunks/7973.js +1 -1
  400. package/app/.next/server/chunks/8035.js +1 -0
  401. package/app/.next/server/chunks/8202.js +12 -7
  402. package/app/.next/server/chunks/8480.js +2 -2
  403. package/app/.next/server/chunks/8513.js +5 -0
  404. package/app/.next/server/chunks/9737.js +1 -1
  405. package/app/.next/server/middleware-build-manifest.js +1 -1
  406. package/app/.next/server/middleware.js +3 -3
  407. package/app/.next/server/pages/404.html +1 -1
  408. package/app/.next/server/pages/500.html +1 -1
  409. package/app/.next/static/AXp1L9TYXuSG-iT0TKIs2/_buildManifest.js +1 -0
  410. package/app/.next/static/chunks/1237-ce7cc27452c0087f.js +18 -0
  411. package/app/.next/static/chunks/4156-218a86687f643d2f.js +7 -0
  412. package/app/.next/static/chunks/505-9410e3e98f835f3f.js +1 -0
  413. package/app/.next/static/chunks/6795-3ddcc1d55c65c001.js +64 -0
  414. package/app/.next/static/chunks/8035-122ffa9582ac6dd4.js +3 -0
  415. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-2c8c481b0fc0bb1b.js → page-cd02fe7b10810144.js} +1 -1
  416. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-f2206753c04da01d.js → page-1266463402c761f6.js} +1 -1
  417. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/{page-8556b646c8002338.js → page-fcb74a9294486c9a.js} +1 -1
  418. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/{page-2ffb4689f161ca33.js → page-af58c67a4e409aad.js} +1 -1
  419. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-79a243ddf837f243.js +1 -0
  420. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-841102262fc5fd15.js → page-446fb4958f931207.js} +6 -6
  421. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-ebe4ae25d01f731a.js → page-7b7477044f123993.js} +1 -1
  422. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-21fffa0f231796e9.js → page-7ab6931e5032e32c.js} +1 -1
  423. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-87aa0d715eec8054.js +1 -0
  424. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/{page-354de24a25e94694.js → page-8d500331b6e10813.js} +1 -1
  425. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-202eec8d33670a47.js +1 -0
  426. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-426e797917337fd8.js → page-510b667ad2defe52.js} +1 -1
  427. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-d8aedd72c61ec172.js +1 -0
  428. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-34d04900ddd6932a.js → page-b675d50ce82d5577.js} +1 -1
  429. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/{page-eec871b45fffd58e.js → page-2485ee7c89798a7b.js} +1 -1
  430. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-f87aca0195ce41ad.js +1 -0
  431. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/{page-1308b9d445962823.js → page-538a897db589c145.js} +1 -1
  432. package/app/.next/static/chunks/app/(dashboard)/layout-380c1f4327a2a3bc.js +1 -0
  433. package/app/.next/static/chunks/app/_global-error/page-f301b776dca4839c.js +1 -0
  434. package/app/.next/static/chunks/app/api/auth/login/route-f301b776dca4839c.js +1 -0
  435. package/app/.next/static/chunks/app/api/auth/logout/route-f301b776dca4839c.js +1 -0
  436. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-f301b776dca4839c.js +1 -0
  437. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-f301b776dca4839c.js +1 -0
  438. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-f301b776dca4839c.js +1 -0
  439. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-f301b776dca4839c.js +1 -0
  440. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-f301b776dca4839c.js +1 -0
  441. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-f301b776dca4839c.js +1 -0
  442. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-f301b776dca4839c.js +1 -0
  443. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-f301b776dca4839c.js +1 -0
  444. package/app/.next/static/chunks/app/api/cloud/auth/route-f301b776dca4839c.js +1 -0
  445. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-f301b776dca4839c.js +1 -0
  446. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-f301b776dca4839c.js +1 -0
  447. package/app/.next/static/chunks/app/api/cloud/models/alias/route-f301b776dca4839c.js +1 -0
  448. package/app/.next/static/chunks/app/api/combos/[id]/route-f301b776dca4839c.js +1 -0
  449. package/app/.next/static/chunks/app/api/combos/route-f301b776dca4839c.js +1 -0
  450. package/app/.next/static/chunks/app/api/health/route-f301b776dca4839c.js +1 -0
  451. package/app/.next/static/chunks/app/api/init/route-f301b776dca4839c.js +1 -0
  452. package/app/.next/static/chunks/app/api/keys/[id]/route-f301b776dca4839c.js +1 -0
  453. package/app/.next/static/chunks/app/api/keys/route-f301b776dca4839c.js +1 -0
  454. package/app/.next/static/chunks/app/api/locale/route-f301b776dca4839c.js +1 -0
  455. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-f301b776dca4839c.js +1 -0
  456. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-f301b776dca4839c.js +1 -0
  457. package/app/.next/static/chunks/app/api/models/alias/route-f301b776dca4839c.js +1 -0
  458. package/app/.next/static/chunks/app/api/models/availability/route-f301b776dca4839c.js +1 -0
  459. package/app/.next/static/chunks/app/api/models/custom/route-f301b776dca4839c.js +1 -0
  460. package/app/.next/static/chunks/app/api/models/route-f301b776dca4839c.js +1 -0
  461. package/app/.next/static/chunks/app/api/models/test/route-f301b776dca4839c.js +1 -0
  462. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-f301b776dca4839c.js +1 -0
  463. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-f301b776dca4839c.js +1 -0
  464. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-f301b776dca4839c.js +1 -0
  465. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-f301b776dca4839c.js +1 -0
  466. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-f301b776dca4839c.js +1 -0
  467. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-f301b776dca4839c.js +1 -0
  468. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-f301b776dca4839c.js +1 -0
  469. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-f301b776dca4839c.js +1 -0
  470. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-f301b776dca4839c.js +1 -0
  471. package/app/.next/static/chunks/app/api/pricing/route-f301b776dca4839c.js +1 -0
  472. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-f301b776dca4839c.js +1 -0
  473. package/app/.next/static/chunks/app/api/provider-nodes/route-f301b776dca4839c.js +1 -0
  474. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-f301b776dca4839c.js +1 -0
  475. package/app/.next/static/chunks/app/api/providers/[id]/models/route-f301b776dca4839c.js +1 -0
  476. package/app/.next/static/chunks/app/api/providers/[id]/route-f301b776dca4839c.js +1 -0
  477. package/app/.next/static/chunks/app/api/providers/[id]/test/route-f301b776dca4839c.js +1 -0
  478. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-f301b776dca4839c.js +1 -0
  479. package/app/.next/static/chunks/app/api/providers/client/route-f301b776dca4839c.js +1 -0
  480. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-f301b776dca4839c.js +1 -0
  481. package/app/.next/static/chunks/app/api/providers/route-f301b776dca4839c.js +1 -0
  482. package/app/.next/static/chunks/app/api/providers/suggested-models/route-f301b776dca4839c.js +1 -0
  483. package/app/.next/static/chunks/app/api/providers/test-batch/route-f301b776dca4839c.js +1 -0
  484. package/app/.next/static/chunks/app/api/providers/validate/route-f301b776dca4839c.js +1 -0
  485. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-f301b776dca4839c.js +1 -0
  486. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-f301b776dca4839c.js +1 -0
  487. package/app/.next/static/chunks/app/api/proxy-pools/route-f301b776dca4839c.js +1 -0
  488. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-f301b776dca4839c.js +1 -0
  489. package/app/.next/static/chunks/app/api/settings/database/route-f301b776dca4839c.js +1 -0
  490. package/app/.next/static/chunks/app/api/settings/proxy-test/route-f301b776dca4839c.js +1 -0
  491. package/app/.next/static/chunks/app/api/settings/require-login/route-f301b776dca4839c.js +1 -0
  492. package/app/.next/static/chunks/app/api/settings/route-f301b776dca4839c.js +1 -0
  493. package/app/.next/static/chunks/app/api/shutdown/route-f301b776dca4839c.js +1 -0
  494. package/app/.next/static/chunks/app/api/tags/route-f301b776dca4839c.js +1 -0
  495. package/app/.next/static/chunks/app/api/translator/console-logs/route-f301b776dca4839c.js +1 -0
  496. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-f301b776dca4839c.js +1 -0
  497. package/app/.next/static/chunks/app/api/translator/load/route-f301b776dca4839c.js +1 -0
  498. package/app/.next/static/chunks/app/api/translator/save/route-f301b776dca4839c.js +1 -0
  499. package/app/.next/static/chunks/app/api/translator/send/route-f301b776dca4839c.js +1 -0
  500. package/app/.next/static/chunks/app/api/translator/translate/route-f301b776dca4839c.js +1 -0
  501. package/app/.next/static/chunks/app/api/tunnel/disable/route-f301b776dca4839c.js +1 -0
  502. package/app/.next/static/chunks/app/api/tunnel/enable/route-f301b776dca4839c.js +1 -0
  503. package/app/.next/static/chunks/app/api/tunnel/status/route-f301b776dca4839c.js +1 -0
  504. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-f301b776dca4839c.js +1 -0
  505. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-f301b776dca4839c.js +1 -0
  506. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-f301b776dca4839c.js +1 -0
  507. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-f301b776dca4839c.js +1 -0
  508. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-f301b776dca4839c.js +1 -0
  509. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-f301b776dca4839c.js +1 -0
  510. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-f301b776dca4839c.js +1 -0
  511. package/app/.next/static/chunks/app/api/usage/chart/route-f301b776dca4839c.js +1 -0
  512. package/app/.next/static/chunks/app/api/usage/history/route-f301b776dca4839c.js +1 -0
  513. package/app/.next/static/chunks/app/api/usage/providers/route-f301b776dca4839c.js +1 -0
  514. package/app/.next/static/chunks/app/api/usage/request-details/route-f301b776dca4839c.js +1 -0
  515. package/app/.next/static/chunks/app/api/usage/request-logs/route-f301b776dca4839c.js +1 -0
  516. package/app/.next/static/chunks/app/api/usage/stats/route-f301b776dca4839c.js +1 -0
  517. package/app/.next/static/chunks/app/api/usage/stream/route-f301b776dca4839c.js +1 -0
  518. package/app/.next/static/chunks/app/api/v1/api/chat/route-f301b776dca4839c.js +1 -0
  519. package/app/.next/static/chunks/app/api/v1/audio/speech/route-f301b776dca4839c.js +1 -0
  520. package/app/.next/static/chunks/app/api/v1/chat/completions/route-f301b776dca4839c.js +1 -0
  521. package/app/.next/static/chunks/app/api/v1/embeddings/route-f301b776dca4839c.js +1 -0
  522. package/app/.next/static/chunks/app/api/v1/images/generations/route-f301b776dca4839c.js +1 -0
  523. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-f301b776dca4839c.js +1 -0
  524. package/app/.next/static/chunks/app/api/v1/messages/route-f301b776dca4839c.js +1 -0
  525. package/app/.next/static/chunks/app/api/v1/models/route-f301b776dca4839c.js +1 -0
  526. package/app/.next/static/chunks/app/api/v1/responses/compact/route-f301b776dca4839c.js +1 -0
  527. package/app/.next/static/chunks/app/api/v1/responses/route-f301b776dca4839c.js +1 -0
  528. package/app/.next/static/chunks/app/api/v1/route-f301b776dca4839c.js +1 -0
  529. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-f301b776dca4839c.js +1 -0
  530. package/app/.next/static/chunks/app/api/v1beta/models/route-f301b776dca4839c.js +1 -0
  531. package/app/.next/static/chunks/app/api/version/route-f301b776dca4839c.js +1 -0
  532. package/app/.next/static/chunks/app/landing/{page-c004b08edc4d4637.js → page-297a1c9230927b6f.js} +1 -1
  533. package/app/.next/static/chunks/app/login/{page-c0d5d5c52ff7317f.js → page-2424ce8673ecf5cb.js} +1 -1
  534. package/app/.next/static/chunks/app/manifest.webmanifest/route-f301b776dca4839c.js +1 -0
  535. package/app/.next/static/chunks/app/page-f301b776dca4839c.js +1 -0
  536. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-f301b776dca4839c.js +1 -0
  537. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-f301b776dca4839c.js +1 -0
  538. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-f301b776dca4839c.js +1 -0
  539. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-f301b776dca4839c.js +1 -0
  540. package/app/.next/static/css/58f44142c32a3776.css +1 -0
  541. package/app/package.json +2 -1
  542. package/app/public/providers/opencode-go.png +0 -0
  543. package/app/src/mitm/server.js +27 -6
  544. package/cli.js +95 -39
  545. package/package.json +1 -1
  546. package/app/.next/server/chunks/149.js +0 -1
  547. package/app/.next/server/chunks/242.js +0 -1
  548. package/app/.next/server/chunks/514.js +0 -5
  549. package/app/.next/server/chunks/6502.js +0 -1
  550. package/app/.next/server/chunks/8354.js +0 -1
  551. package/app/.next/static/VI5XrgPaPsUOg-Uel9spT/_buildManifest.js +0 -1
  552. package/app/.next/static/chunks/1237-06ab8ceb0847165d.js +0 -18
  553. package/app/.next/static/chunks/2599-ef3aca3d4fdaa96d.js +0 -1
  554. package/app/.next/static/chunks/4156-e1e79523d2efa7c1.js +0 -7
  555. package/app/.next/static/chunks/505-7a55d180affbd4d3.js +0 -1
  556. package/app/.next/static/chunks/8035-0bbf141cee7024b0.js +0 -3
  557. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-0b58256fd5ccd8b7.js +0 -1
  558. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-9533adb8cd2aa0ac.js +0 -1
  559. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-77e9b2d982a01e23.js +0 -1
  560. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-09e7d6bd4d08202c.js +0 -1
  561. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-82c184348fd5c917.js +0 -1
  562. package/app/.next/static/chunks/app/(dashboard)/layout-757a35dbb4539aad.js +0 -1
  563. package/app/.next/static/chunks/app/_global-error/page-786efea7f9ddd575.js +0 -1
  564. package/app/.next/static/chunks/app/api/auth/login/route-786efea7f9ddd575.js +0 -1
  565. package/app/.next/static/chunks/app/api/auth/logout/route-786efea7f9ddd575.js +0 -1
  566. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-786efea7f9ddd575.js +0 -1
  567. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-786efea7f9ddd575.js +0 -1
  568. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-786efea7f9ddd575.js +0 -1
  569. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-786efea7f9ddd575.js +0 -1
  570. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-786efea7f9ddd575.js +0 -1
  571. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-786efea7f9ddd575.js +0 -1
  572. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-786efea7f9ddd575.js +0 -1
  573. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-786efea7f9ddd575.js +0 -1
  574. package/app/.next/static/chunks/app/api/cloud/auth/route-786efea7f9ddd575.js +0 -1
  575. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-786efea7f9ddd575.js +0 -1
  576. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-786efea7f9ddd575.js +0 -1
  577. package/app/.next/static/chunks/app/api/cloud/models/alias/route-786efea7f9ddd575.js +0 -1
  578. package/app/.next/static/chunks/app/api/combos/[id]/route-786efea7f9ddd575.js +0 -1
  579. package/app/.next/static/chunks/app/api/combos/route-786efea7f9ddd575.js +0 -1
  580. package/app/.next/static/chunks/app/api/health/route-786efea7f9ddd575.js +0 -1
  581. package/app/.next/static/chunks/app/api/init/route-786efea7f9ddd575.js +0 -1
  582. package/app/.next/static/chunks/app/api/keys/[id]/route-786efea7f9ddd575.js +0 -1
  583. package/app/.next/static/chunks/app/api/keys/route-786efea7f9ddd575.js +0 -1
  584. package/app/.next/static/chunks/app/api/locale/route-786efea7f9ddd575.js +0 -1
  585. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-786efea7f9ddd575.js +0 -1
  586. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-786efea7f9ddd575.js +0 -1
  587. package/app/.next/static/chunks/app/api/models/alias/route-786efea7f9ddd575.js +0 -1
  588. package/app/.next/static/chunks/app/api/models/availability/route-786efea7f9ddd575.js +0 -1
  589. package/app/.next/static/chunks/app/api/models/route-786efea7f9ddd575.js +0 -1
  590. package/app/.next/static/chunks/app/api/models/test/route-786efea7f9ddd575.js +0 -1
  591. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-786efea7f9ddd575.js +0 -1
  592. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-786efea7f9ddd575.js +0 -1
  593. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-786efea7f9ddd575.js +0 -1
  594. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-786efea7f9ddd575.js +0 -1
  595. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-786efea7f9ddd575.js +0 -1
  596. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-786efea7f9ddd575.js +0 -1
  597. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-786efea7f9ddd575.js +0 -1
  598. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-786efea7f9ddd575.js +0 -1
  599. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-786efea7f9ddd575.js +0 -1
  600. package/app/.next/static/chunks/app/api/pricing/route-786efea7f9ddd575.js +0 -1
  601. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-786efea7f9ddd575.js +0 -1
  602. package/app/.next/static/chunks/app/api/provider-nodes/route-786efea7f9ddd575.js +0 -1
  603. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-786efea7f9ddd575.js +0 -1
  604. package/app/.next/static/chunks/app/api/providers/[id]/models/route-786efea7f9ddd575.js +0 -1
  605. package/app/.next/static/chunks/app/api/providers/[id]/route-786efea7f9ddd575.js +0 -1
  606. package/app/.next/static/chunks/app/api/providers/[id]/test/route-786efea7f9ddd575.js +0 -1
  607. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-786efea7f9ddd575.js +0 -1
  608. package/app/.next/static/chunks/app/api/providers/client/route-786efea7f9ddd575.js +0 -1
  609. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-786efea7f9ddd575.js +0 -1
  610. package/app/.next/static/chunks/app/api/providers/route-786efea7f9ddd575.js +0 -1
  611. package/app/.next/static/chunks/app/api/providers/suggested-models/route-786efea7f9ddd575.js +0 -1
  612. package/app/.next/static/chunks/app/api/providers/test-batch/route-786efea7f9ddd575.js +0 -1
  613. package/app/.next/static/chunks/app/api/providers/validate/route-786efea7f9ddd575.js +0 -1
  614. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-786efea7f9ddd575.js +0 -1
  615. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-786efea7f9ddd575.js +0 -1
  616. package/app/.next/static/chunks/app/api/proxy-pools/route-786efea7f9ddd575.js +0 -1
  617. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-786efea7f9ddd575.js +0 -1
  618. package/app/.next/static/chunks/app/api/settings/database/route-786efea7f9ddd575.js +0 -1
  619. package/app/.next/static/chunks/app/api/settings/proxy-test/route-786efea7f9ddd575.js +0 -1
  620. package/app/.next/static/chunks/app/api/settings/require-login/route-786efea7f9ddd575.js +0 -1
  621. package/app/.next/static/chunks/app/api/settings/route-786efea7f9ddd575.js +0 -1
  622. package/app/.next/static/chunks/app/api/shutdown/route-786efea7f9ddd575.js +0 -1
  623. package/app/.next/static/chunks/app/api/tags/route-786efea7f9ddd575.js +0 -1
  624. package/app/.next/static/chunks/app/api/translator/console-logs/route-786efea7f9ddd575.js +0 -1
  625. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-786efea7f9ddd575.js +0 -1
  626. package/app/.next/static/chunks/app/api/translator/load/route-786efea7f9ddd575.js +0 -1
  627. package/app/.next/static/chunks/app/api/translator/save/route-786efea7f9ddd575.js +0 -1
  628. package/app/.next/static/chunks/app/api/translator/send/route-786efea7f9ddd575.js +0 -1
  629. package/app/.next/static/chunks/app/api/translator/translate/route-786efea7f9ddd575.js +0 -1
  630. package/app/.next/static/chunks/app/api/tunnel/disable/route-786efea7f9ddd575.js +0 -1
  631. package/app/.next/static/chunks/app/api/tunnel/enable/route-786efea7f9ddd575.js +0 -1
  632. package/app/.next/static/chunks/app/api/tunnel/status/route-786efea7f9ddd575.js +0 -1
  633. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-786efea7f9ddd575.js +0 -1
  634. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-786efea7f9ddd575.js +0 -1
  635. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-786efea7f9ddd575.js +0 -1
  636. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-786efea7f9ddd575.js +0 -1
  637. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-786efea7f9ddd575.js +0 -1
  638. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-786efea7f9ddd575.js +0 -1
  639. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-786efea7f9ddd575.js +0 -1
  640. package/app/.next/static/chunks/app/api/usage/chart/route-786efea7f9ddd575.js +0 -1
  641. package/app/.next/static/chunks/app/api/usage/history/route-786efea7f9ddd575.js +0 -1
  642. package/app/.next/static/chunks/app/api/usage/providers/route-786efea7f9ddd575.js +0 -1
  643. package/app/.next/static/chunks/app/api/usage/request-details/route-786efea7f9ddd575.js +0 -1
  644. package/app/.next/static/chunks/app/api/usage/request-logs/route-786efea7f9ddd575.js +0 -1
  645. package/app/.next/static/chunks/app/api/usage/stats/route-786efea7f9ddd575.js +0 -1
  646. package/app/.next/static/chunks/app/api/usage/stream/route-786efea7f9ddd575.js +0 -1
  647. package/app/.next/static/chunks/app/api/v1/api/chat/route-786efea7f9ddd575.js +0 -1
  648. package/app/.next/static/chunks/app/api/v1/audio/speech/route-786efea7f9ddd575.js +0 -1
  649. package/app/.next/static/chunks/app/api/v1/chat/completions/route-786efea7f9ddd575.js +0 -1
  650. package/app/.next/static/chunks/app/api/v1/embeddings/route-786efea7f9ddd575.js +0 -1
  651. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-786efea7f9ddd575.js +0 -1
  652. package/app/.next/static/chunks/app/api/v1/messages/route-786efea7f9ddd575.js +0 -1
  653. package/app/.next/static/chunks/app/api/v1/models/route-786efea7f9ddd575.js +0 -1
  654. package/app/.next/static/chunks/app/api/v1/responses/compact/route-786efea7f9ddd575.js +0 -1
  655. package/app/.next/static/chunks/app/api/v1/responses/route-786efea7f9ddd575.js +0 -1
  656. package/app/.next/static/chunks/app/api/v1/route-786efea7f9ddd575.js +0 -1
  657. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-786efea7f9ddd575.js +0 -1
  658. package/app/.next/static/chunks/app/api/v1beta/models/route-786efea7f9ddd575.js +0 -1
  659. package/app/.next/static/chunks/app/api/version/route-786efea7f9ddd575.js +0 -1
  660. package/app/.next/static/chunks/app/manifest.webmanifest/route-786efea7f9ddd575.js +0 -1
  661. package/app/.next/static/chunks/app/page-786efea7f9ddd575.js +0 -1
  662. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-786efea7f9ddd575.js +0 -1
  663. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-786efea7f9ddd575.js +0 -1
  664. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-786efea7f9ddd575.js +0 -1
  665. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-786efea7f9ddd575.js +0 -1
  666. package/app/.next/static/css/357a3570ee0fa8c1.css +0 -1
  667. /package/app/.next/static/{VI5XrgPaPsUOg-Uel9spT → AXp1L9TYXuSG-iT0TKIs2}/_ssgManifest.js +0 -0
package/cli.js CHANGED
@@ -117,6 +117,9 @@ function compareVersions(a, b) {
117
117
  function killAllAppProcesses() {
118
118
  return new Promise((resolve) => {
119
119
  try {
120
+ // Kill MITM first (admin/sudo process, needs special handling)
121
+ killMitmByPidFile();
122
+
120
123
  const platform = process.platform;
121
124
  let pids = [];
122
125
 
@@ -143,6 +146,18 @@ function killAllAppProcesses() {
143
146
  } catch (e) {
144
147
  // No processes found or error - continue
145
148
  }
149
+
150
+ // Also kill cloudflared.exe (tunnel holds file locks on Windows)
151
+ try {
152
+ const cfCmd = `powershell -NonInteractive -WindowStyle Hidden -Command "Get-Process cloudflared -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Id"`;
153
+ const cfOut = execSync(cfCmd, { encoding: "utf8", windowsHide: true, timeout: 5000 });
154
+ cfOut.split("\n").forEach(l => {
155
+ const pid = l.trim();
156
+ if (pid && !isNaN(pid)) pids.push(pid);
157
+ });
158
+ } catch (e) {
159
+ // No cloudflared running - continue
160
+ }
146
161
  } else {
147
162
  // macOS/Linux: use ps to find all matching processes
148
163
  try {
@@ -153,7 +168,7 @@ function killAllAppProcesses() {
153
168
  const lines = output.split('\n');
154
169
 
155
170
  lines.forEach(line => {
156
- const isAppProcess = line.includes("9router") || line.includes("next-server");
171
+ const isAppProcess = line.includes("9router") || line.includes("next-server") || line.includes("cloudflared");
157
172
  if (isAppProcess) {
158
173
  const parts = line.trim().split(/\s+/);
159
174
  const pid = parts[1];
@@ -193,6 +208,34 @@ function killAllAppProcesses() {
193
208
  });
194
209
  }
195
210
 
211
+ // Kill MITM server by PID file (MITM runs as admin/sudo, needs special handling)
212
+ function killMitmByPidFile() {
213
+ try {
214
+ const mitmPidFile = path.join(
215
+ process.platform === "win32"
216
+ ? path.join(process.env.APPDATA || "", "9router")
217
+ : path.join(os.homedir(), ".9router"),
218
+ "mitm", ".mitm.pid"
219
+ );
220
+ if (!fs.existsSync(mitmPidFile)) return;
221
+ const pid = parseInt(fs.readFileSync(mitmPidFile, "utf8").trim(), 10);
222
+ if (!pid) return;
223
+
224
+ if (process.platform === "win32") {
225
+ // Admin CLI → admin MITM → same token → OK
226
+ execSync(`taskkill /F /T /PID ${pid}`, { stdio: "ignore", windowsHide: true, timeout: 3000 });
227
+ } else {
228
+ // Try sudo -n first (uses cached sudo token if still valid)
229
+ try { execSync(`sudo -n kill -9 ${pid} 2>/dev/null`, { stdio: "ignore", timeout: 3000 }); }
230
+ catch {
231
+ // Fallback: direct kill (works if MITM not root, or CLI is root)
232
+ try { process.kill(pid, "SIGKILL"); } catch { }
233
+ }
234
+ }
235
+ try { fs.unlinkSync(mitmPidFile); } catch { }
236
+ } catch { }
237
+ }
238
+
196
239
  // Kill any process on specific port
197
240
  function killProcessOnPort(port) {
198
241
  return new Promise((resolve) => {
@@ -312,41 +355,31 @@ function performUpdate() {
312
355
 
313
356
  try {
314
357
  if (process.platform === "win32") {
315
- // Windows: run directly in current terminal to avoid file-lock deadlock
316
- // Remove global package dir first to prevent stale file locks
317
- try {
318
- const globalRoot = execSync("npm root -g", { encoding: "utf8", timeout: 10000 }).trim();
319
- const pkgDir = path.join(globalRoot, pkg.name);
320
- if (fs.existsSync(pkgDir)) {
321
- fs.rmSync(pkgDir, { recursive: true, force: true });
322
- }
323
- } catch (e) { /* best effort */ }
358
+ // Windows: spawn detached .bat then exit CLI to release all file locks
359
+ const updateScript = `@echo off
360
+ timeout /t 3 /nobreak >nul
361
+ echo Installing new version...
362
+ npm install -g ${pkg.name}@latest --prefer-online
363
+ if %ERRORLEVEL% EQU 0 (
364
+ echo.
365
+ echo Update completed. Run "${pkg.name}" to start.
366
+ ) else (
367
+ echo.
368
+ echo Update failed. Try manually: npm install -g ${pkg.name}@latest
369
+ )
370
+ pause
371
+ `;
372
+ const scriptPath = path.join(os.tmpdir(), `${APP_NAME}-update.bat`);
373
+ fs.writeFileSync(scriptPath, updateScript);
324
374
 
325
- const MAX_RETRIES = 3;
326
- const RETRY_DELAY_MS = 5000;
375
+ spawn("cmd", ["/c", "start", "", "cmd", "/c", scriptPath], {
376
+ detached: true,
377
+ stdio: "ignore",
378
+ windowsHide: false
379
+ }).unref();
327
380
 
328
- for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
329
- try {
330
- console.log(`šŸ“„ Installing new version... (attempt ${attempt}/${MAX_RETRIES})`);
331
- execSync(`npm install -g ${pkg.name}@latest --prefer-online`, {
332
- stdio: "inherit",
333
- timeout: 120000,
334
- windowsHide: true
335
- });
336
- console.log(`\nāœ… Update completed. Run '${pkg.name}' to start.`);
337
- process.exit(0);
338
- } catch (err) {
339
- if (attempt < MAX_RETRIES) {
340
- console.log(`ā³ Retry ${attempt}/${MAX_RETRIES} in ${RETRY_DELAY_MS / 1000}s...`);
341
- const end = Date.now() + RETRY_DELAY_MS;
342
- while (Date.now() < end) { /* wait */ }
343
- } else {
344
- console.error(`\nāŒ Update failed after ${MAX_RETRIES} attempts.`);
345
- console.log(`šŸ’” Try manually: npm install -g ${pkg.name}@latest\n`);
346
- process.exit(1);
347
- }
348
- }
349
- }
381
+ console.log("\nšŸ”„ Update started in new window. This window will close...");
382
+ process.exit(0);
350
383
  } else {
351
384
  // macOS/Linux: spawn detached update script (no file-lock issues on Unix)
352
385
  const updateScript = `#!/bin/bash
@@ -402,7 +435,7 @@ function openBrowser(url) {
402
435
  cmd = `xdg-open "${url}"`;
403
436
  }
404
437
 
405
- exec(cmd, (err) => {
438
+ exec(cmd, { windowsHide: true }, (err) => {
406
439
  if (err) {
407
440
  console.log(`Open browser manually: ${url}`);
408
441
  }
@@ -483,18 +516,31 @@ function startServer(latestVersion) {
483
516
  let restartCount = 0;
484
517
  let serverStartTime = Date.now();
485
518
 
519
+ const CRASH_LOG_LINES = 50;
520
+ let crashLog = [];
521
+
486
522
  function spawnServer() {
487
523
  serverStartTime = Date.now();
488
- return spawn(RUNTIME, [serverPath], {
524
+ crashLog = [];
525
+ const child = spawn(RUNTIME, [serverPath], {
489
526
  cwd: standaloneDir,
490
- stdio: showLog ? "inherit" : "ignore",
527
+ stdio: showLog ? "inherit" : ["ignore", "ignore", "pipe"],
491
528
  detached: true,
529
+ windowsHide: true,
492
530
  env: {
493
531
  ...process.env,
494
532
  PORT: port.toString(),
495
533
  HOSTNAME: host
496
534
  }
497
535
  });
536
+ if (!showLog && child.stderr) {
537
+ child.stderr.on("data", (data) => {
538
+ const lines = data.toString().split("\n").filter(Boolean);
539
+ crashLog.push(...lines);
540
+ if (crashLog.length > CRASH_LOG_LINES) crashLog = crashLog.slice(-CRASH_LOG_LINES);
541
+ });
542
+ }
543
+ return child;
498
544
  }
499
545
 
500
546
  let server = spawnServer();
@@ -510,6 +556,8 @@ function startServer(latestVersion) {
510
556
  const { killTray } = require("./src/cli/tray/tray");
511
557
  killTray();
512
558
  } catch (e) { }
559
+ // Kill MITM server (admin/sudo process) via PID file
560
+ killMitmByPidFile();
513
561
  // Kill server process directly
514
562
  if (server.pid) {
515
563
  process.kill(server.pid, "SIGKILL");
@@ -591,8 +639,10 @@ function startServer(latestVersion) {
591
639
 
592
640
  if (choice === "update") {
593
641
  cleanup();
594
- // Wait for server process to fully terminate before npm install
595
- await new Promise(r => setTimeout(r, 2000));
642
+ // Kill ALL lingering processes (server/next-server/cloudflared/tray) to release file locks on Windows
643
+ await killAllAppProcesses();
644
+ await killProcessOnPort(port);
645
+ await new Promise(r => setTimeout(r, 1500));
596
646
  performUpdate();
597
647
  return;
598
648
  } else if (choice === "web") {
@@ -623,6 +673,7 @@ function startServer(latestVersion) {
623
673
  const bgProcess = spawn(process.execPath, [__filename, "--tray", "--skip-update", "-p", port.toString()], {
624
674
  detached: true,
625
675
  stdio: "ignore",
676
+ windowsHide: true,
626
677
  env: { ...process.env }
627
678
  });
628
679
  bgProcess.unref();
@@ -690,6 +741,11 @@ function startServer(latestVersion) {
690
741
  restartCount++;
691
742
  const delay = Math.min(1000 * restartCount, 10000);
692
743
  console.error(`\nāš ļø Server exited (code=${code ?? "unknown"}). Restarting in ${delay / 1000}s... (${restartCount}/${MAX_RESTARTS})`);
744
+ if (crashLog.length) {
745
+ console.error("\n--- Server crash log ---");
746
+ crashLog.forEach(l => console.error(l));
747
+ console.error("--- End crash log ---\n");
748
+ }
693
749
 
694
750
  setTimeout(() => {
695
751
  server = spawnServer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "9router",
3
- "version": "0.3.91",
3
+ "version": "0.3.97",
4
4
  "description": "9Router CLI - Start and manage 9Router server",
5
5
  "bin": {
6
6
  "9router": "./cli.js"