vansrouter 0.91.21 → 0.91.30

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 (1206) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +27 -20
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/react-loadable-manifest.json +19 -23
  6. package/app/.next-cli-build/routes-manifest.json +42 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -28
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +6 -6
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  80. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.rsc +2 -2
  84. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +2 -2
  85. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +2 -2
  90. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  91. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  94. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  95. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  96. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  98. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  101. package/app/.next-cli-build/server/app/api/auth/check/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/check/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +35 -16
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -2
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +4 -0
  128. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -0
  129. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route_client-reference-manifest.js +1 -0
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -2
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -2
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -0
  141. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -0
  142. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route_client-reference-manifest.js +1 -0
  143. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +4 -5
  144. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +3 -0
  150. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -0
  151. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route_client-reference-manifest.js +1 -0
  152. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +7 -8
  153. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +6 -7
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +16 -0
  161. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -0
  162. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route_client-reference-manifest.js +1 -0
  163. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -0
  168. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -0
  169. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route_client-reference-manifest.js +1 -0
  170. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -0
  171. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -0
  172. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route_client-reference-manifest.js +1 -0
  173. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -0
  176. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -0
  177. package/app/.next-cli-build/server/app/api/combos/presets/route_client-reference-manifest.js +1 -0
  178. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  203. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  205. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  237. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +2 -2
  265. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/bulk/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/bulk/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +2 -2
  289. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +3 -3
  301. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +3 -3
  303. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +3 -3
  311. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  313. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  315. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  317. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  319. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  321. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  323. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  325. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  343. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  387. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  401. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  441. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  443. package/app/.next-cli-build/server/app/callback.html +1 -1
  444. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  445. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  446. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  447. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  448. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  449. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  450. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  452. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  453. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  454. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  455. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  457. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  458. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  459. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  460. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  461. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  462. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  463. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  465. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  466. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  467. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  468. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  469. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  470. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  471. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  472. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  473. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  474. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  475. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  476. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  477. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  478. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  479. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  480. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  481. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  483. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  486. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  487. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  488. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  489. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  490. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  491. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  493. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  496. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  498. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  499. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  501. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  502. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  503. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  504. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  508. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  509. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  510. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  511. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  512. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  514. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  515. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  516. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  518. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  519. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  521. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  522. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  524. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  525. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  526. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  530. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  532. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  535. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  536. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  539. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  540. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  542. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  543. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.html +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.rsc +6 -6
  545. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness/__PAGE__.segment.rsc +2 -2
  546. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  549. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_full.segment.rsc +6 -6
  550. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_head.segment.rsc +1 -1
  551. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_index.segment.rsc +4 -4
  552. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_tree.segment.rsc +2 -2
  553. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  554. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  555. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  556. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  559. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  560. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  561. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  562. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  563. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  564. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  565. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  566. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  568. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  569. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  570. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  571. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  572. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  573. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  575. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  576. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  579. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  580. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  581. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  582. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  583. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  584. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  585. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  588. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  589. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  591. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  592. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  594. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  595. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  596. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  598. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  599. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  601. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  602. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  603. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  605. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  606. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  608. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  609. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  611. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  612. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  613. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  615. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  616. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  618. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  619. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  620. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  622. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  623. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  625. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  626. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  628. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  629. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  632. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  633. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  635. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  636. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  637. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  638. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  639. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  642. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  643. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  644. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  645. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  646. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  647. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  648. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  649. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  650. package/app/.next-cli-build/server/app/landing.html +1 -1
  651. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  652. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  653. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  654. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  655. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  656. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  657. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  658. package/app/.next-cli-build/server/app/login/page.js +2 -2
  659. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  660. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  661. package/app/.next-cli-build/server/app/login.html +1 -1
  662. package/app/.next-cli-build/server/app/login.rsc +5 -5
  663. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  664. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  665. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  666. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  667. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  668. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  669. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
  670. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  671. package/app/.next-cli-build/server/app/masuk/page.js +2 -2
  672. package/app/.next-cli-build/server/app/masuk/page.js.nft.json +1 -1
  673. package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
  674. package/app/.next-cli-build/server/app-paths-manifest.json +27 -20
  675. package/app/.next-cli-build/server/chunks/124.js +1 -0
  676. package/app/.next-cli-build/server/chunks/1248.js +1 -1
  677. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  678. package/app/.next-cli-build/server/chunks/127.js +1 -1
  679. package/app/.next-cli-build/server/chunks/{154.js → 1579.js} +26 -8
  680. package/app/.next-cli-build/server/chunks/1685.js +2 -2
  681. package/app/.next-cli-build/server/chunks/1688.js +2 -2
  682. package/app/.next-cli-build/server/chunks/1945.js +1 -1
  683. package/app/.next-cli-build/server/chunks/1950.js +66 -0
  684. package/app/.next-cli-build/server/chunks/2365.js +1 -0
  685. package/app/.next-cli-build/server/chunks/2411.js +1 -1
  686. package/app/.next-cli-build/server/chunks/2504.js +1 -1
  687. package/app/.next-cli-build/server/chunks/2557.js +11 -17
  688. package/app/.next-cli-build/server/chunks/2732.js +1 -1
  689. package/app/.next-cli-build/server/chunks/2884.js +1 -1
  690. package/app/.next-cli-build/server/chunks/2927.js +2 -2
  691. package/app/.next-cli-build/server/chunks/3040.js +2 -2
  692. package/app/.next-cli-build/server/chunks/314.js +1 -1
  693. package/app/.next-cli-build/server/chunks/3398.js +8 -8
  694. package/app/.next-cli-build/server/chunks/3405.js +2 -2
  695. package/app/.next-cli-build/server/chunks/3519.js +2 -2
  696. package/app/.next-cli-build/server/chunks/3621.js +1 -0
  697. package/app/.next-cli-build/server/chunks/3750.js +1 -1
  698. package/app/.next-cli-build/server/chunks/3912.js +9 -0
  699. package/app/.next-cli-build/server/chunks/3946.js +1 -0
  700. package/app/.next-cli-build/server/chunks/4004.js +2 -2
  701. package/app/.next-cli-build/server/chunks/4043.js +1 -0
  702. package/app/.next-cli-build/server/chunks/4105.js +1 -1
  703. package/app/.next-cli-build/server/chunks/4502.js +13 -15
  704. package/app/.next-cli-build/server/chunks/4539.js +2 -2
  705. package/app/.next-cli-build/server/chunks/{8011.js → 4549.js} +1 -2
  706. package/app/.next-cli-build/server/chunks/4574.js +53 -49
  707. package/app/.next-cli-build/server/chunks/4836.js +1 -1
  708. package/app/.next-cli-build/server/chunks/5300.js +1 -1
  709. package/app/.next-cli-build/server/chunks/5538.js +1 -0
  710. package/app/.next-cli-build/server/chunks/5570.js +1 -0
  711. package/app/.next-cli-build/server/chunks/5577.js +1 -1
  712. package/app/.next-cli-build/server/chunks/5598.js +1 -1
  713. package/app/.next-cli-build/server/chunks/{6807.js → 5860.js} +1 -1
  714. package/app/.next-cli-build/server/chunks/6165.js +2 -2
  715. package/app/.next-cli-build/server/chunks/622.js +1 -0
  716. package/app/.next-cli-build/server/chunks/6385.js +1 -1
  717. package/app/.next-cli-build/server/chunks/6589.js +7 -0
  718. package/app/.next-cli-build/server/chunks/6723.js +1 -1
  719. package/app/.next-cli-build/server/chunks/6737.js +1 -0
  720. package/app/.next-cli-build/server/chunks/7006.js +2 -2
  721. package/app/.next-cli-build/server/chunks/7074.js +3 -3
  722. package/app/.next-cli-build/server/chunks/7104.js +1 -1
  723. package/app/.next-cli-build/server/chunks/7502.js +1 -1
  724. package/app/.next-cli-build/server/chunks/7656.js +27 -0
  725. package/app/.next-cli-build/server/chunks/7693.js +2 -2
  726. package/app/.next-cli-build/server/chunks/7842.js +1 -0
  727. package/app/.next-cli-build/server/chunks/7863.js +1 -1
  728. package/app/.next-cli-build/server/chunks/7901.js +1 -0
  729. package/app/.next-cli-build/server/chunks/7938.js +2 -2
  730. package/app/.next-cli-build/server/chunks/7950.js +1 -1
  731. package/app/.next-cli-build/server/chunks/8104.js +1 -0
  732. package/app/.next-cli-build/server/chunks/8413.js +1 -1
  733. package/app/.next-cli-build/server/chunks/8691.js +2 -2
  734. package/app/.next-cli-build/server/chunks/8786.js +1 -0
  735. package/app/.next-cli-build/server/chunks/88.js +1 -1
  736. package/app/.next-cli-build/server/chunks/8941.js +1 -1
  737. package/app/.next-cli-build/server/chunks/912.js +1 -1
  738. package/app/.next-cli-build/server/chunks/{2764.js → 9306.js} +1 -1
  739. package/app/.next-cli-build/server/chunks/9404.js +1 -0
  740. package/app/.next-cli-build/server/chunks/9808.js +7 -0
  741. package/app/.next-cli-build/server/chunks/9974.js +1 -1
  742. package/app/.next-cli-build/server/instrumentation.js +1 -1
  743. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  744. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  745. package/app/.next-cli-build/server/middleware.js +5 -5
  746. package/app/.next-cli-build/server/pages/404.html +1 -1
  747. package/app/.next-cli-build/server/pages/500.html +1 -1
  748. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  749. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  750. package/app/.next-cli-build/static/E9fXOaI2LcUxzAal-qB_G/_buildManifest.js +1 -0
  751. package/app/.next-cli-build/static/chunks/1342-9835342a614a64b4.js +1 -0
  752. package/app/.next-cli-build/static/chunks/{2884.9a2db949e26c550b.js → 2884.46157ab83818a990.js} +1 -1
  753. package/app/.next-cli-build/static/chunks/3178-c8b2ded55709f2d2.js +1 -0
  754. package/app/.next-cli-build/static/chunks/{3257.4095ef9514389f69.js → 3257.562cf9b39c3d52e4.js} +1 -1
  755. package/app/.next-cli-build/static/chunks/{3386.c9a6be6fd4e818a6.js → 3386.1bfc303d22916972.js} +1 -1
  756. package/app/.next-cli-build/static/chunks/3758-f820cbe5bbed8ed5.js +66 -0
  757. package/app/.next-cli-build/static/chunks/3809.a27517d640eed59c.js +1 -0
  758. package/app/.next-cli-build/static/chunks/{406.7447d162fc1137ef.js → 406.8e37f15c32fac09d.js} +1 -1
  759. package/app/.next-cli-build/static/chunks/4385-e3eb6b7c4b7dfb22.js +1 -0
  760. package/app/.next-cli-build/static/chunks/4964.086f3a95e52cdf64.js +7 -0
  761. package/app/.next-cli-build/static/chunks/5331.128ab40951332f33.js +1 -0
  762. package/app/.next-cli-build/static/chunks/{5337.0f3e559687a6f415.js → 5337.6a61522e6c696f60.js} +1 -1
  763. package/app/.next-cli-build/static/chunks/{6474.d4e25fbe7c09068f.js → 6474.fd5dccfa8449f5f9.js} +1 -1
  764. package/app/.next-cli-build/static/chunks/{6909.20637e0929ccd959.js → 6909.929d7fd212a31a66.js} +1 -1
  765. package/app/.next-cli-build/static/chunks/{8914-58cf85ef9bb0b6e0.js → 8914-cff0fbfad05fc69b.js} +3 -3
  766. package/app/.next-cli-build/static/chunks/{9131-f4afa0414d45c1d1.js → 9131-8865c2f5b2d104bf.js} +2 -2
  767. package/app/.next-cli-build/static/chunks/{9146.7174fc5feff1bf58.js → 9146.51c9e590114c99ab.js} +1 -1
  768. package/app/.next-cli-build/static/chunks/941.1766407a48f890e1.js +1 -0
  769. package/app/.next-cli-build/static/chunks/{5338-bca3ce9343d90c4f.js → 9643-1650acc296f77253.js} +29 -11
  770. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-8d2cf057877e520c.js → page-96728a43a2ce920c.js} +1 -1
  771. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-7c93b16b43de2c8f.js → page-3004f4af215b215a.js} +1 -1
  772. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-9854c7db29f0cb69.js → page-71a1f0244d4d1287.js} +1 -1
  773. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-c15b5f331606e3aa.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-91427dc2416753e5.js → page-7cf7e96e3f12d777.js} +1 -1
  775. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-e79f5fbcbd3662d0.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-07eea31f525f94ed.js → page-7e8a0e7bafdd972d.js} +2 -2
  777. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-7caa1878034401a6.js → page-5bd5188ca9e08f60.js} +1 -1
  778. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-15c5617ad2c27966.js → page-b19583351ad0149d.js} +2 -2
  779. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-fb0d7d79c84c197c.js → page-5496dd8e8a1e4a1e.js} +1 -1
  780. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-01af83ff8590888e.js → page-6114fb82946445cb.js} +1 -1
  781. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-c30fcb1ed5f77411.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-97b63031e33bafba.js → page-202871f51690bc61.js} +1 -1
  783. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-728c2dc02d8273eb.js +27 -0
  784. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-a40e2e0af6a60760.js → page-8cf917b2f8241886.js} +1 -1
  785. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-bcd99ea45b8e3f0b.js → page-6febfa2b9b61037f.js} +1 -1
  786. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-fitness/{page-a6fbe7c554c97288.js → page-c54081ae07c59029.js} +1 -1
  787. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-c8a179ca8b3961a1.js → page-d35b045cc4d9e513.js} +2 -2
  788. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-1ccca37edb21a2c2.js → page-55629dba8eb114d7.js} +1 -1
  789. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-61d3b94595ff6592.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6b6aa4440b9bbdd4.js → page-5a509b067cce0c79.js} +1 -1
  791. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-540d37c2987cd9a7.js → page-c629e15e8e3f798f.js} +1 -1
  792. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-14b9b1f4c2cfffbb.js → page-607c073b7406e31e.js} +1 -1
  793. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-1cdf081b553a1b83.js → page-565722d50146d9d0.js} +1 -1
  794. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-829e3939151d724b.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/_global-error/page-1bef1cfa12175e17.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-1bef1cfa12175e17.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-1bef1cfa12175e17.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-1bef1cfa12175e17.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-1bef1cfa12175e17.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1bef1cfa12175e17.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1bef1cfa12175e17.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1bef1cfa12175e17.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1bef1cfa12175e17.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1bef1cfa12175e17.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1bef1cfa12175e17.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1bef1cfa12175e17.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1bef1cfa12175e17.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1bef1cfa12175e17.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-1bef1cfa12175e17.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1bef1cfa12175e17.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1bef1cfa12175e17.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1bef1cfa12175e17.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1bef1cfa12175e17.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1bef1cfa12175e17.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-1bef1cfa12175e17.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1bef1cfa12175e17.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1bef1cfa12175e17.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1bef1cfa12175e17.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-1bef1cfa12175e17.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1bef1cfa12175e17.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1bef1cfa12175e17.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1bef1cfa12175e17.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1bef1cfa12175e17.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-1bef1cfa12175e17.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1bef1cfa12175e17.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1bef1cfa12175e17.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-1bef1cfa12175e17.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-1bef1cfa12175e17.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1bef1cfa12175e17.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-1bef1cfa12175e17.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/combos/route-1bef1cfa12175e17.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1bef1cfa12175e17.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1bef1cfa12175e17.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1bef1cfa12175e17.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1bef1cfa12175e17.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1bef1cfa12175e17.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1bef1cfa12175e17.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/health/route-1bef1cfa12175e17.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/init/route-1bef1cfa12175e17.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1bef1cfa12175e17.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/keys/route-1bef1cfa12175e17.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/locale/route-1bef1cfa12175e17.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1bef1cfa12175e17.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1bef1cfa12175e17.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1bef1cfa12175e17.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1bef1cfa12175e17.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1bef1cfa12175e17.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1bef1cfa12175e17.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1bef1cfa12175e17.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1bef1cfa12175e17.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1bef1cfa12175e17.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-1bef1cfa12175e17.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1bef1cfa12175e17.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1bef1cfa12175e17.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/models/route-1bef1cfa12175e17.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/models/test/route-1bef1cfa12175e17.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1bef1cfa12175e17.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1bef1cfa12175e17.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1bef1cfa12175e17.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1bef1cfa12175e17.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1bef1cfa12175e17.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1bef1cfa12175e17.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-1bef1cfa12175e17.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1bef1cfa12175e17.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1bef1cfa12175e17.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1bef1cfa12175e17.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1bef1cfa12175e17.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1bef1cfa12175e17.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1bef1cfa12175e17.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1bef1cfa12175e17.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/pricing/route-1bef1cfa12175e17.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1bef1cfa12175e17.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1bef1cfa12175e17.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1bef1cfa12175e17.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-1bef1cfa12175e17.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1bef1cfa12175e17.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1bef1cfa12175e17.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1bef1cfa12175e17.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1bef1cfa12175e17.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-1bef1cfa12175e17.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-1bef1cfa12175e17.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-1bef1cfa12175e17.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1bef1cfa12175e17.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1bef1cfa12175e17.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/providers/route-1bef1cfa12175e17.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1bef1cfa12175e17.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1bef1cfa12175e17.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1bef1cfa12175e17.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-1bef1cfa12175e17.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1bef1cfa12175e17.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1bef1cfa12175e17.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1bef1cfa12175e17.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1bef1cfa12175e17.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-1bef1cfa12175e17.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-1bef1cfa12175e17.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1bef1cfa12175e17.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1bef1cfa12175e17.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1bef1cfa12175e17.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1bef1cfa12175e17.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1bef1cfa12175e17.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1bef1cfa12175e17.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1bef1cfa12175e17.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1bef1cfa12175e17.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1bef1cfa12175e17.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1bef1cfa12175e17.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1bef1cfa12175e17.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1bef1cfa12175e17.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1bef1cfa12175e17.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/settings/route-1bef1cfa12175e17.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1bef1cfa12175e17.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/tags/route-1bef1cfa12175e17.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1bef1cfa12175e17.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1bef1cfa12175e17.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1bef1cfa12175e17.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1bef1cfa12175e17.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1bef1cfa12175e17.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1bef1cfa12175e17.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1bef1cfa12175e17.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1bef1cfa12175e17.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1bef1cfa12175e17.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1bef1cfa12175e17.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1bef1cfa12175e17.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1bef1cfa12175e17.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1bef1cfa12175e17.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1bef1cfa12175e17.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1bef1cfa12175e17.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1bef1cfa12175e17.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1bef1cfa12175e17.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1bef1cfa12175e17.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1bef1cfa12175e17.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-1bef1cfa12175e17.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1bef1cfa12175e17.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1bef1cfa12175e17.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1bef1cfa12175e17.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1bef1cfa12175e17.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1bef1cfa12175e17.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1bef1cfa12175e17.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1bef1cfa12175e17.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1bef1cfa12175e17.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1bef1cfa12175e17.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1bef1cfa12175e17.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1bef1cfa12175e17.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1bef1cfa12175e17.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1bef1cfa12175e17.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1bef1cfa12175e17.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1bef1cfa12175e17.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1bef1cfa12175e17.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1bef1cfa12175e17.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1bef1cfa12175e17.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/v1/route-1bef1cfa12175e17.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1bef1cfa12175e17.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1bef1cfa12175e17.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1bef1cfa12175e17.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1bef1cfa12175e17.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1bef1cfa12175e17.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1bef1cfa12175e17.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1bef1cfa12175e17.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1bef1cfa12175e17.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/version/route-1bef1cfa12175e17.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1bef1cfa12175e17.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/version/update/route-1bef1cfa12175e17.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/callback/{page-501f35fcad0ae65c.js → page-7f7a73f46ef0e567.js} +1 -1
  963. package/app/.next-cli-build/static/chunks/app/landing/page-1c9aceed2518a7cf.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/{layout-02633570bc545d3b.js → layout-8ba5cd62a94327a0.js} +1 -1
  965. package/app/.next-cli-build/static/chunks/app/login/{page-3bfabe4dc89ad6c4.js → page-a3af87402da40101.js} +1 -1
  966. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1bef1cfa12175e17.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/masuk/{page-d24ad3ff5c276f36.js → page-23714324c6ceceda.js} +1 -1
  968. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1bef1cfa12175e17.js +1 -0
  969. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1bef1cfa12175e17.js +1 -0
  970. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1bef1cfa12175e17.js +1 -0
  971. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1bef1cfa12175e17.js +1 -0
  972. package/app/.next-cli-build/static/chunks/webpack-8d5df0eb3e3a6c37.js +1 -0
  973. package/app/.next-cli-build/static/css/3ad4070e34d43663.css +1 -0
  974. package/app/custom-server.js +37 -37
  975. package/app/package.json +1 -3
  976. package/app/public/i18n/literals/fa.json +17 -1
  977. package/app/public/providers/codewhale.svg +9 -0
  978. package/app/public/providers/crush.png +0 -0
  979. package/app/public/providers/forge.png +0 -0
  980. package/app/public/providers/omp.png +0 -0
  981. package/app/public/providers/pi.svg +6 -0
  982. package/app/public/providers/smelt.svg +101 -0
  983. package/app/src/lib/db/adapters/betterSqliteAdapter.js +12 -4
  984. package/app/src/lib/db/adapters/nodeSqliteAdapter.js +12 -3
  985. package/app/src/lib/db/adapters/sqljsAdapter.js +13 -6
  986. package/app/src/lib/db/migrate.js +299 -299
  987. package/app/src/mitm/server.js +27 -27
  988. package/app/src/shared/services/quotaAutoPing.js +313 -313
  989. package/hooks/sqliteRuntime.js +188 -188
  990. package/package.json +2 -5
  991. package/src/cli/api/client.js +556 -556
  992. package/src/cli/commands/xaiVideo.js +300 -300
  993. package/src/cli/menus/combos.js +0 -103
  994. package/src/cli/menus/providers.js +868 -858
  995. package/src/cli/menus/settings.js +204 -204
  996. package/src/cli/utils/modelSelector.js +189 -51
  997. package/app/.next-cli-build/server/chunks/1725.js +0 -1
  998. package/app/.next-cli-build/server/chunks/2445.js +0 -1
  999. package/app/.next-cli-build/server/chunks/32.js +0 -9
  1000. package/app/.next-cli-build/server/chunks/3539.js +0 -1
  1001. package/app/.next-cli-build/server/chunks/3736.js +0 -1
  1002. package/app/.next-cli-build/server/chunks/4029.js +0 -7
  1003. package/app/.next-cli-build/server/chunks/4816.js +0 -1
  1004. package/app/.next-cli-build/server/chunks/5006.js +0 -7
  1005. package/app/.next-cli-build/server/chunks/5009.js +0 -1
  1006. package/app/.next-cli-build/server/chunks/5050.js +0 -1
  1007. package/app/.next-cli-build/server/chunks/5198.js +0 -1
  1008. package/app/.next-cli-build/server/chunks/5302.js +0 -1
  1009. package/app/.next-cli-build/server/chunks/6120.js +0 -1
  1010. package/app/.next-cli-build/server/chunks/6793.js +0 -1
  1011. package/app/.next-cli-build/server/chunks/6931.js +0 -1
  1012. package/app/.next-cli-build/server/chunks/7425.js +0 -1
  1013. package/app/.next-cli-build/server/chunks/7592.js +0 -66
  1014. package/app/.next-cli-build/server/chunks/8356.js +0 -1
  1015. package/app/.next-cli-build/server/chunks/8695.js +0 -1
  1016. package/app/.next-cli-build/server/chunks/9162.js +0 -1
  1017. package/app/.next-cli-build/server/chunks/9614.js +0 -7
  1018. package/app/.next-cli-build/server/chunks/9784.js +0 -1
  1019. package/app/.next-cli-build/server/chunks/9984.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/1049.adc9916d5a6b95f8.js +0 -7
  1021. package/app/.next-cli-build/static/chunks/1399-71db70ab3102530f.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/2318-288d3ff89298deb7.js +0 -66
  1023. package/app/.next-cli-build/static/chunks/2940-b6dd0c5879412cea.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/4385-ce7b55264de51d47.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/5331.049b1512362de1f4.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/5334-4a80ee40870b70ae.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/5479-20746781c1de7eb2.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/6676.a4b23fc11d3037fd.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/9078.ea6aeb4af0c25e5d.js +0 -7
  1030. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-5de110c9d826db7a.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-e19a996981cbb56d.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-694ccd630a55547c.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-1fdc31375a54bb60.js +0 -27
  1034. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-fce8c9b1ef1963db.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-8f58062b0584c945.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/_global-error/page-17aa0c4536dd4f4c.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/auth/check/route-17aa0c4536dd4f4c.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-17aa0c4536dd4f4c.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-17aa0c4536dd4f4c.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-17aa0c4536dd4f4c.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-17aa0c4536dd4f4c.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-17aa0c4536dd4f4c.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-17aa0c4536dd4f4c.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-17aa0c4536dd4f4c.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-17aa0c4536dd4f4c.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-17aa0c4536dd4f4c.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-17aa0c4536dd4f4c.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-17aa0c4536dd4f4c.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-17aa0c4536dd4f4c.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-17aa0c4536dd4f4c.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-17aa0c4536dd4f4c.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-17aa0c4536dd4f4c.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-17aa0c4536dd4f4c.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-17aa0c4536dd4f4c.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-17aa0c4536dd4f4c.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-17aa0c4536dd4f4c.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-17aa0c4536dd4f4c.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-17aa0c4536dd4f4c.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-17aa0c4536dd4f4c.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-17aa0c4536dd4f4c.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-17aa0c4536dd4f4c.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-17aa0c4536dd4f4c.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-17aa0c4536dd4f4c.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/combos/route-17aa0c4536dd4f4c.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-17aa0c4536dd4f4c.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-17aa0c4536dd4f4c.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-17aa0c4536dd4f4c.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-17aa0c4536dd4f4c.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-17aa0c4536dd4f4c.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-17aa0c4536dd4f4c.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/health/route-17aa0c4536dd4f4c.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/init/route-17aa0c4536dd4f4c.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/keys/route-17aa0c4536dd4f4c.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/locale/route-17aa0c4536dd4f4c.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-17aa0c4536dd4f4c.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-17aa0c4536dd4f4c.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-17aa0c4536dd4f4c.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-17aa0c4536dd4f4c.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-17aa0c4536dd4f4c.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-17aa0c4536dd4f4c.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-17aa0c4536dd4f4c.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-17aa0c4536dd4f4c.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-17aa0c4536dd4f4c.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-17aa0c4536dd4f4c.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-17aa0c4536dd4f4c.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-17aa0c4536dd4f4c.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/models/route-17aa0c4536dd4f4c.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/models/test/route-17aa0c4536dd4f4c.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-17aa0c4536dd4f4c.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-17aa0c4536dd4f4c.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-17aa0c4536dd4f4c.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-17aa0c4536dd4f4c.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-17aa0c4536dd4f4c.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-17aa0c4536dd4f4c.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-17aa0c4536dd4f4c.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-17aa0c4536dd4f4c.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-17aa0c4536dd4f4c.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-17aa0c4536dd4f4c.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-17aa0c4536dd4f4c.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-17aa0c4536dd4f4c.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-17aa0c4536dd4f4c.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-17aa0c4536dd4f4c.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/pricing/route-17aa0c4536dd4f4c.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-17aa0c4536dd4f4c.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-17aa0c4536dd4f4c.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-17aa0c4536dd4f4c.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-17aa0c4536dd4f4c.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-17aa0c4536dd4f4c.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-17aa0c4536dd4f4c.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-17aa0c4536dd4f4c.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-17aa0c4536dd4f4c.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-17aa0c4536dd4f4c.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-17aa0c4536dd4f4c.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-17aa0c4536dd4f4c.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/providers/route-17aa0c4536dd4f4c.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-17aa0c4536dd4f4c.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-17aa0c4536dd4f4c.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-17aa0c4536dd4f4c.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-17aa0c4536dd4f4c.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-17aa0c4536dd4f4c.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-17aa0c4536dd4f4c.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-17aa0c4536dd4f4c.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-17aa0c4536dd4f4c.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-17aa0c4536dd4f4c.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-17aa0c4536dd4f4c.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-17aa0c4536dd4f4c.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-17aa0c4536dd4f4c.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-17aa0c4536dd4f4c.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-17aa0c4536dd4f4c.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-17aa0c4536dd4f4c.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-17aa0c4536dd4f4c.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-17aa0c4536dd4f4c.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-17aa0c4536dd4f4c.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-17aa0c4536dd4f4c.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-17aa0c4536dd4f4c.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-17aa0c4536dd4f4c.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-17aa0c4536dd4f4c.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/settings/route-17aa0c4536dd4f4c.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-17aa0c4536dd4f4c.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/tags/route-17aa0c4536dd4f4c.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-17aa0c4536dd4f4c.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-17aa0c4536dd4f4c.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-17aa0c4536dd4f4c.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-17aa0c4536dd4f4c.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-17aa0c4536dd4f4c.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-17aa0c4536dd4f4c.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-17aa0c4536dd4f4c.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-17aa0c4536dd4f4c.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-17aa0c4536dd4f4c.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-17aa0c4536dd4f4c.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-17aa0c4536dd4f4c.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-17aa0c4536dd4f4c.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-17aa0c4536dd4f4c.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-17aa0c4536dd4f4c.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-17aa0c4536dd4f4c.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-17aa0c4536dd4f4c.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-17aa0c4536dd4f4c.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-17aa0c4536dd4f4c.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-17aa0c4536dd4f4c.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-17aa0c4536dd4f4c.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-17aa0c4536dd4f4c.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-17aa0c4536dd4f4c.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-17aa0c4536dd4f4c.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-17aa0c4536dd4f4c.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-17aa0c4536dd4f4c.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-17aa0c4536dd4f4c.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-17aa0c4536dd4f4c.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-17aa0c4536dd4f4c.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-17aa0c4536dd4f4c.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-17aa0c4536dd4f4c.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-17aa0c4536dd4f4c.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-17aa0c4536dd4f4c.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-17aa0c4536dd4f4c.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-17aa0c4536dd4f4c.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-17aa0c4536dd4f4c.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-17aa0c4536dd4f4c.js +0 -1
  1183. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-17aa0c4536dd4f4c.js +0 -1
  1184. package/app/.next-cli-build/static/chunks/app/api/v1/route-17aa0c4536dd4f4c.js +0 -1
  1185. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-17aa0c4536dd4f4c.js +0 -1
  1186. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-17aa0c4536dd4f4c.js +0 -1
  1187. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-17aa0c4536dd4f4c.js +0 -1
  1188. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-17aa0c4536dd4f4c.js +0 -1
  1189. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-17aa0c4536dd4f4c.js +0 -1
  1190. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-17aa0c4536dd4f4c.js +0 -1
  1191. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-17aa0c4536dd4f4c.js +0 -1
  1192. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-17aa0c4536dd4f4c.js +0 -1
  1193. package/app/.next-cli-build/static/chunks/app/api/version/route-17aa0c4536dd4f4c.js +0 -1
  1194. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-17aa0c4536dd4f4c.js +0 -1
  1195. package/app/.next-cli-build/static/chunks/app/api/version/update/route-17aa0c4536dd4f4c.js +0 -1
  1196. package/app/.next-cli-build/static/chunks/app/landing/page-e42a61eee9f904dc.js +0 -1
  1197. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-17aa0c4536dd4f4c.js +0 -1
  1198. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-17aa0c4536dd4f4c.js +0 -1
  1199. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-17aa0c4536dd4f4c.js +0 -1
  1200. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-17aa0c4536dd4f4c.js +0 -1
  1201. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-17aa0c4536dd4f4c.js +0 -1
  1202. package/app/.next-cli-build/static/chunks/webpack-81a7adaed327dd6b.js +0 -1
  1203. package/app/.next-cli-build/static/css/c78f5cc987a85267.css +0 -1
  1204. package/app/.next-cli-build/static/yvUSImiXUeMIOPHHzKVq_/_buildManifest.js +0 -1
  1205. /package/app/.next-cli-build/static/{yvUSImiXUeMIOPHHzKVq_ → E9fXOaI2LcUxzAal-qB_G}/_ssgManifest.js +0 -0
  1206. /package/app/.next-cli-build/static/chunks/{2920-d6cf02087e8d0773.js → 2920.d6cf02087e8d0773.js} +0 -0
@@ -1,3 +1,3 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9131],{11512:(e,t,s)=>{Promise.resolve().then(s.bind(s,46378))},29674:(e,t,s)=>{"use strict";s.d(t,{Cp:()=>r,Hx:()=>n,Iv:()=>d,Nv:()=>x,RL:()=>c,ev:()=>m,fl:()=>i,hT:()=>a,oX:()=>l,t6:()=>o});let a=["zh-CN","zh-TW"],l=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],n=2e3,r=3e5,i=5e3,o=5,c=1e4,d=5e3,m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],x=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},46378:(e,t,s)=>{"use strict";s.d(t,{default:()=>p});var a=s(15102),l=s(82030),n=s(92940),r=s(21577),i=s(20264),o=s(29674);async function c(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(o.Iv)})).ok}catch{return!1}}async function d(...e){let t=e.filter(Boolean).map(c);return!!t.length&&new Promise(e=>{let s=t.length;t.forEach(t=>t.then(t=>{t?e(!0):0==--s&&e(!1)}))})}function m({label:e,url:t,copyId:s,copied:l,onCopy:r,badge:i,actions:o}){return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===i||"TS"===i?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:e}),(0,a.jsx)(n.Input,{value:t,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>r(t,s),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===s?"check":"content_copy"})}),o]})}function x({status:e,className:t=""}){return(0,a.jsx)("div",{className:`p-2 rounded text-sm ${t} ${"success"===e.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===e.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===e.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:e.message.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>/^https?:\/\//.test(e)?(0,a.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:e},t):e)})}function u({text:e}){return(0,a.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,a.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:e})]})}function h({message:e,action:t}){return(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,a.jsx)("p",{className:"text-xs flex-1",children:e}),t&&(0,a.jsx)("a",{href:t.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:t.href.startsWith("#")?e=>{e.preventDefault(),document.getElementById(t.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:t.label})]})}function p(){let[e,t]=(0,l.useState)([]),[s,p]=(0,l.useState)(!0),[g,b]=(0,l.useState)(!1),[f,y]=(0,l.useState)(""),[j,v]=(0,l.useState)(null),[N,w]=(0,l.useState)(null),[k,C]=(0,l.useState)(null),[S,T]=(0,l.useState)(""),[P,E]=(0,l.useState)([]),[A,_]=(0,l.useState)([]),[U,I]=(0,l.useState)([]),[O,L]=(0,l.useState)(!0),[R,B]=(0,l.useState)(!0),[D,K]=(0,l.useState)(!0),[W,F]=(0,l.useState)(!1),[$,q]=(0,l.useState)([]),[H,M]=(0,l.useState)({}),[z,J]=(0,l.useState)([]),[G,Y]=(0,l.useState)(!1),[X,Q]=(0,l.useState)(!1),[V,Z]=(0,l.useState)(!0),[ee,et]=(0,l.useState)(!0),[es,ea]=(0,l.useState)(!1),[el,en]=(0,l.useState)(!0),[er,ei]=(0,l.useState)(!1),[eo,ec]=(0,l.useState)("http://localhost:8787"),[ed,em]=(0,l.useState)(!1),[ex,eu]=(0,l.useState)({installed:!1,running:!1,python:null,loading:!0}),[eh,ep]=(0,l.useState)(!1),[eg,eb]=(0,l.useState)(!1),[ef,ey]=(0,l.useState)(""),[ej,ev]=(0,l.useState)(!1),[eN,ew]=(0,l.useState)("full"),[ek,eC]=(0,l.useState)(!1),[eS,eT]=(0,l.useState)("full"),[eP,eE]=(0,l.useState)("en"),[eA,e_]=(0,l.useState)(!0),[eU,eI]=(0,l.useState)(!1),[eO,eL]=(0,l.useState)(!1),[eR,eB]=(0,l.useState)(""),[eD,eK]=(0,l.useState)(""),[eW,eF]=(0,l.useState)(!1),[e$,eq]=(0,l.useState)(""),[eH,eM]=(0,l.useState)(null),[ez,eJ]=(0,l.useState)(!1),[eG,eY]=(0,l.useState)(!1),[eX,eQ]=(0,l.useState)(!1),[eV,eZ]=(0,l.useState)(!1),[e0,e1]=(0,l.useState)(""),[e5,e2]=(0,l.useState)(!1),[e4,e8]=(0,l.useState)(""),[e3,e6]=(0,l.useState)(null),[e7,e9]=(0,l.useState)(""),[te,tt]=(0,l.useState)(""),[ts,ta]=(0,l.useState)(null),[tl,tn]=(0,l.useState)(!1),[tr,ti]=(0,l.useState)([]),[to,tc]=(0,l.useState)(""),[td,tm]=(0,l.useState)(!1),[tx,tu]=(0,l.useState)(!1),[th,tp]=(0,l.useState)(!1),tg=(0,l.useRef)(null),tb=(0,l.useRef)(0),tf=(0,l.useRef)(0),ty=(0,l.useRef)(!1),tj=(0,l.useRef)(!1),tv=(0,l.useRef)(!1),tN=(0,l.useRef)(!1),[tw,tk]=(0,l.useState)(!1),[tC,tS]=(0,l.useState)(!1),[tT,tP]=(0,l.useState)(new Set),[tE,tA]=(0,l.useState)(!1);(0,l.useEffect)(()=>{tA(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,l.useEffect)(()=>(eE((0,i.kk)()),(0,i.oQ)(()=>eE((0,i.kk)()))),[]);let t_=o.hT.includes(eP),tU=t_?o.ev:o.ev.filter(e=>!e.wenyan);(0,l.useEffect)(()=>{let e=o.ev.find(e=>e.id===eN);e?.wenyan&&!t_&&(ew("ultra"),tH({cavemanLevel:"ultra"}))},[t_,eN]);let{copied:tI,copy:tO}=(0,r.C)(),tL=!V||!ee,tR=V?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{tg.current&&(tg.current.scrollTop=tg.current.scrollHeight)},[tr]),(0,l.useEffect)(()=>{tQ(),tK()},[]),(0,l.useEffect)(()=>{if(!(eU||eX))return;let e=!eU||eO,t=!eX||eV,s=()=>{document.hidden||tD()};if(document.addEventListener("visibilitychange",s),e&&t)return()=>document.removeEventListener("visibilitychange",s);let a=setInterval(()=>{document.hidden||tD()},o.fl);return()=>{clearInterval(a),document.removeEventListener("visibilitychange",s)}},[eU,eX,eO,eV]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(eU&&(eR||eD)){let e=await d(eD,eR);ty.current=e,e?(tb.current=0,eL(!0),tv.current||(tv.current=!0,tk(!0))):(tb.current+=1,tb.current>=o.t6&&eL(!1))}else ty.current=!1;if(eX&&e0){let e=await c(e0);tj.current=e,e?(tf.current=0,eZ(!0),tN.current||(tN.current=!0,tS(!0))):(tf.current+=1,tf.current>=o.t6&&eZ(!1))}else tj.current=!1}};if(!(eU&&(eR||eD)||eX&&e0))return;e();let t=!eX||eV;if((!eU||eO)&&t)return;let s=setInterval(e,o.RL);return()=>clearInterval(s)},[eU,eR,eD,eX,e0,eO,eV]);let tB=(0,l.useCallback)((e,t,s,a,l,n)=>{t.current?(s.current=0,a(!0),l.current||(l.current=!0,n(!0))):(s.current+=1,s.current>=o.t6&&a(!1))},[]),tD=async()=>{try{let e=await fetch("/api/tunnel/status",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),s=t.tunnel?.settingsEnabled??t.tunnel?.enabled??!1,a=t.tunnel?.tunnelUrl||"";eB(a),eK(t.tunnel?.publicUrl||""),eI(s),tB(null,ty,tb,eL,tv,tk);let l=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,n=t.tailscale?.tunnelUrl||"";e1(n),eQ(l),tB(null,tj,tf,eZ,tN,tS)}catch{}},tK=async()=>{e_(!0);try{let[e,t]=await Promise.all([fetch("/api/settings"),fetch("/api/tunnel/status",{cache:"no-store"})]);if(e.ok){let t=await e.json();Y(t.requireApiKey||!1),Q(t.allowRemoteNoApiKey||!1),Z(!1!==t.requireLogin),et(t.hasPassword||!1),ea(t.tunnelDashboardAccess||!1),en(!1!==t.rtkEnabled),ei(!!t.headroomEnabled),ec(t.headroomUrl||"http://localhost:8787"),em(!!t.headroomCompressUserMessages),tz(),ev(!!t.cavemanEnabled),ew(t.cavemanLevel||"full"),eC(!!t.ponytailEnabled),eT(t.ponytailLevel||"full")}if(t.ok){let e=await t.json(),s=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,a=e.tunnel?.tunnelUrl||"";eB(a),eK(e.tunnel?.publicUrl||""),eI(s),tB(null,ty,tb,eL,tv,tk);let l=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,n=e.tailscale?.tunnelUrl||"";e1(n),eQ(l),tB(null,tj,tf,eZ,tN,tS)}}catch(e){console.log("Error loading settings:",e)}finally{e_(!1)}},tW=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:e})})).ok&&ea(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},tF=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:e})})).ok&&Y(e)}catch(e){console.log("Error updating requireApiKey:",e)}},t$=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowRemoteNoApiKey:e})})).ok&&Q(e)}catch(e){console.log("Error updating allowRemoteNoApiKey:",e)}},tq=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&en(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},tH=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},tM=async()=>{let e=eo.trim()||"http://localhost:8787";ec(e),await tH({headroomUrl:e}),tz()},tz=(0,l.useCallback)(async()=>{eu(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();eu({...t,loading:!1})}catch{eu({installed:!1,running:!1,python:null,loading:!1})}},[]),tJ=(0,l.useCallback)(async()=>{ey(""),eb(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await tz()}catch(e){ey(e.message)}finally{eb(!1)}},[tz]),tG=(0,l.useCallback)(async()=>{eb(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await tz()}finally{eb(!1)}},[tz]),tY=async e=>{C(e),T(e.name||"");let t=e.allowedProviders,s=e.allowedCombos,a=e.allowedKinds;if(B(!t),K(!s),L(!a),I(s||[]),E(a||[]),t&&$.length>0){let e=new Set;for(let s of t){let t=$.find(e=>e.id===s);if(t){e.add(t.id);continue}let a=$.find(e=>e.alias===s);if(a){e.add(a.id);continue}let l=$.find(e=>e.prefix===s);if(l){e.add(l.id);continue}e.add(s)}_([...e])}else _([])},tX=async()=>{if(k){F(!0);try{let e={name:S.trim()||k.name||"",allowedProviders:R?null:A,allowedCombos:D?null:U,allowedKinds:O?null:P},s=await fetch(`/api/keys/${k.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(s.ok){let e=await s.json();t(t=>t.map(t=>t.id===k.id?{...t,...e.key}:t)),C(null)}}catch(e){console.log("Error saving key ACL:",e)}finally{F(!1)}}},tQ=async()=>{try{let[e,s,a,l]=await Promise.all([fetch("/api/keys",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),n=await e.json();e.ok&&t(n.keys||[]);let r=[],i=[],o=[];if(s.ok){let e=await s.json();r=e.connections||[],e.aliasMap&&M(e.aliasMap),o=e.providers||[]}if(l.ok&&(i=(await l.json()).nodes||[]),q(function(e,t,s=[]){let a={};for(let e of t||[])a[e.id]={name:e.name,prefix:e.prefix||null,type:e.type};let l={};for(let t of e||[]){let e=t.provider;l[e]||(l[e]={id:e,count:0,alias:t.alias||null}),l[e].count++}for(let e of s||[])e.noAuth&&(l[e.id]||(l[e.id]={id:e.id,count:0,alias:e.alias||null}));let n={};for(let e of s||[])n[e.id]=e;return Object.values(l).map(({id:e,count:t,alias:s})=>{let l=a[e],r=n[e],i=r?.displayName||e,o=null;return l&&(i=l.name||e,o=l.prefix||null),{id:e,displayName:i,prefix:o,alias:s,count:t,serviceKinds:r?.serviceKinds||["llm"]}}).sort((e,t)=>e.displayName.localeCompare(t.displayName))}(r,i,o)),a.ok){let e=await a.json();J(e.combos||[])}}catch(e){console.log("Error fetching data:",e)}finally{p(!1)}},tV=async(...e)=>{eF(!0),eq("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),s=Date.now();for(;Date.now()-s<o.Cp;){if(await new Promise(e=>setTimeout(e,o.Hx)),await Promise.any(t.map(async e=>{if((await fetch(e,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return eI(!0),eF(!1),eq(""),!0;if((Date.now()-s)%1e4<o.Hx)try{let e=await fetch("/api/tunnel/status");if(e.ok){let t=await e.json();if(!t.tunnel?.enabled)return eM({type:"error",message:"Tunnel process stopped unexpectedly."}),eF(!1),eq(""),!1}}catch{}}return eM({type:"error",message:"Tunnel created but not reachable. Please try again."}),eF(!1),eq(""),!1},tZ=async()=>{eJ(!1),eF(!0),eM(null),eq("Creating tunnel...");let e=!0;(async()=>{for(;e;){try{let t=await fetch("/api/tunnel/status");if(t.ok){let s=await t.json();s.download?.downloading?eq(`Downloading cloudflared... ${s.download.progress}%`):e&&eq("Creating tunnel...")}}catch{}await new Promise(e=>setTimeout(e,1e3))}})();try{let t=await fetch("/api/tunnel/enable",{method:"POST"});e=!1;let s=await t.json();if(!t.ok)return void eM({type:"error",message:s.error||"Failed to enable tunnel"});let a=s.tunnelUrl;if(!a)return void eM({type:"error",message:"No tunnel URL returned"});eB(a),eK(s.publicUrl||""),await tV(s.publicUrl,a)}catch(e){eM({type:"error",message:e.message})}finally{e=!1,eF(!1),eq("")}},t0=async()=>{eF(!0),eM(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(eI(!1),eB(""),eY(!1),eM({type:"success",message:"Tunnel disabled"})):eM({type:"error",message:t.error||"Failed to disable tunnel"})}catch(e){eM({type:"error",message:e.message})}finally{eF(!1)}},t1=async()=>{ta(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return ta(t.installed),t}}catch{}return ta(!1),{installed:!1}},t5=async()=>{tn(!0),e6(null),ti([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:to})});tc("");let t=e.body.getReader(),s=new TextDecoder,a="";for(;;){let{done:e,value:l}=await t.read();if(e)break;let n=(a+=s.decode(l,{stream:!0})).split("\n\n");for(let e of(a=n.pop()||"",n)){let t=e.split("\n"),s="progress",a=null;for(let e of t)if(e.startsWith("event: ")&&(s=e.slice(7).trim()),e.startsWith("data: "))try{a=JSON.parse(e.slice(6))}catch{}if(a)if("progress"===s)ti(e=>[...e.slice(-50),a.message]);else if("done"===s){ta(!0),tn(!1),tu(!1),t3();return}else"error"===s&&e6({type:"error",message:a.error||"Install failed"})}}}catch(e){e6({type:"error",message:e.message})}finally{tn(!1)}},t2=async e=>{e8("Waiting for Tailscale ready...");let t=`${e}/api/health`,s=Date.now();for(;Date.now()-s<o.Cp;){await new Promise(e=>setTimeout(e,o.Hx));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},t4=(e,t)=>{e9(e),tt(t)},t8=()=>{e9(""),tt("")},t3=async()=>{tu(!1),tm(!0),e2(!0),e6(null),e8("Connecting..."),t8();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){t4(t.authUrl,"Open Login Page"),e8('Login required — click "Open Login Page" to continue');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok&&(await e.json()).loggedIn){t8(),e8("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await t6(t.enableUrl):e6({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}t8(),e6({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await t6(t.enableUrl);e6({type:"error",message:t.error||"Failed to connect"})}catch(e){e6({type:"error",message:e.message})}finally{e2(!1),tm(!1),e8(""),t8()}},t6=async e=>{t4(e,"Open Funnel Settings"),e8('Click "Open Funnel Settings" to enable Funnel...');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){t8(),e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){t8(),e6({type:"error",message:t.error});return}}catch{}}t8(),e6({type:"error",message:"Timed out waiting for Funnel to be enabled."})},t7=async()=>{e2(!0),e6(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(eQ(!1),e1(""),tp(!1),e6({type:"success",message:"Tailscale disabled"})):e6({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){e6({type:"error",message:e.message})}finally{e2(!1)}},t9=async()=>{e6(null),ti([]);let e=await t1();e?.installed&&e?.hasCachedPassword?t3():tu(!0)},se=async()=>{if(f.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f})}),t=await e.json();e.ok&&(v(t.key),await tQ(),y(""),b(!1))}catch(e){console.log("Error creating key:",e)}},st=async s=>{w({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{w(null);try{(await fetch(`/api/keys/${s}`,{method:"DELETE"})).ok&&(t(e.filter(e=>e.id!==s)),tP(e=>{let t=new Set(e);return t.delete(s),t}))}catch(e){console.log("Error deleting key:",e)}}})},ss=async(e,s)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:s})})).ok&&t(t=>t.map(t=>t.id===e?{...t,isActive:s}:t))}catch(e){console.log("Error toggling key:",e)}},[sa,sl]=(0,l.useState)("/v1");if((0,l.useEffect)(()=>{sl(`${window.location.origin}/v1`)},[]),s)return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(n.CardSkeleton,{}),(0,a.jsx)(n.CardSkeleton,{})]});let sn=!!ex.running,sr=!1!==ex.localUrl,si=!!ex.canStart,so=sr&&!!ex.managedPid,sc=ex.loading?"Checking…":sn?"Running":sr&&!ex.installed?"Not installed":sr?"Proxy off":"Unreachable";return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)(n.Card,{children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(m,{label:"Local",url:sa,copyId:"local_url",copied:tI,onCopy:tO}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${eU?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),eU&&!eW&&eO?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Input,{value:`${eD||eR}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>tO(`${eD||eR}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===tI?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>eY(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eU||eW||eO?eW?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),e$||"Creating tunnel..."]}),(0,a.jsx)("button",{onClick:()=>{eF(!1),eq("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):eH?.type==="error"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),eH.message]}),(0,a.jsx)(n.Button,{size:"sm",icon:"cloud_upload",onClick:()=>eJ(!0),children:"Enable"})]}):eA?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,a.jsx)("button",{onClick:()=>e_(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,a.jsx)(n.Button,{size:"sm",icon:"cloud_upload",onClick:()=>{tL?eM({type:"error",message:`Security required: ${tR}`}):G?eJ(!0):eM({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tw?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,a.jsx)("button",{onClick:()=>eY(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${eX?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),eX&&!e5&&eV?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Input,{value:`${e0}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>tO(`${e0}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===tI?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>tp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eX||e5||eV?e5||td?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),e4||"Connecting..."]}),e7&&(0,a.jsx)(n.Button,{size:"sm",icon:"open_in_new",onClick:()=>window.open(e7,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:te||"Open"}),(0,a.jsx)("button",{onClick:()=>{e2(!1),tm(!1),e8(""),t8()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):e3?.type==="error"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),e3.message]}),(0,a.jsx)(n.Button,{size:"sm",icon:"vpn_lock",onClick:t9,children:"Enable"})]}):(0,a.jsx)(n.Button,{size:"sm",icon:"vpn_lock",onClick:()=>{tL?e6({type:"error",message:`Security required: ${tR}`}):t9()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tC?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,a.jsx)("button",{onClick:()=>tp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),tL&&!eU&&!eX&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(h,{message:tR,action:{label:"Open settings",href:"/dashboard/profile"}})}),(eU||eX)&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!G&&(0,a.jsx)(h,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!V||!ee)&&(0,a.jsx)(h,{message:V?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:V?"Change password":"Enable",href:"/dashboard/profile"}})]}),(eU||eX)&&(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,a.jsx)(n.Toggle,{checked:es,onChange:()=>tW(!es)}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,a.jsx)(u,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,a.jsxs)(n.Card,{id:"rtk",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,a.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,a.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,a.jsx)(n.Toggle,{checked:el,onChange:()=>tq(!el)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,a.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,a.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${sn?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:sc}),(0,a.jsx)("button",{type:"button",onClick:()=>ep(!0),className:"text-xs text-primary underline hover:opacity-80",children:sn?"Manage":"Setup"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,a.jsx)(n.Toggle,{checked:er,onChange:()=>{var e;let t;return e=!er,void(ec(t=eo.trim()||"http://localhost:8787"),ei(e),tH({headroomEnabled:e,headroomUrl:t}))}})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,a.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ej&&(0,a.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:tU.map(e=>(0,a.jsx)("button",{onClick:()=>{var t;ew(t=e.id),tH({cavemanLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${eN===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,a.jsx)("p",{className:"text-xs text-primary",children:o.ev.find(e=>e.id===eN)?.desc})]}),(0,a.jsx)(n.Toggle,{checked:ej,onChange:()=>{var e;ev(e=!ej),tH({cavemanEnabled:e})}})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,a.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ek&&(0,a.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:o.Nv.map(e=>(0,a.jsx)("button",{onClick:()=>{var t;eT(t=e.id),tH({ponytailLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${eS===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,a.jsx)("p",{className:"text-xs text-primary",children:o.Nv.find(e=>e.id===eS)?.desc})]}),(0,a.jsx)(n.Toggle,{checked:ek,onChange:()=>{var e;eC(e=!ek),tH({ponytailEnabled:e})}})]})]})]}),(0,a.jsxs)(n.Card,{id:"require-api-key",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,a.jsx)(n.Button,{icon:"add",onClick:()=>b(!0),children:"Create Key"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,a.jsx)(n.Toggle,{checked:G,onChange:()=>tF(!G)})]}),tE&&!G&&(0,a.jsx)("div",{className:"mb-4 -mt-2",children:(0,a.jsx)(h,{message:"Endpoint is exposed without an API key."})}),!G&&tE&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-surface/50 border border-border/30 mb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Allow Remote Access Without API Key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Let non-loopback requests reach /v1/* without a key (use with caution)"})]}),(0,a.jsx)(n.Toggle,{checked:X,onChange:()=>t$(!X)})]}),!G&&X&&(0,a.jsx)("div",{className:"mb-4 -mt-2",children:(0,a.jsx)(h,{message:"Remote access without an API key is enabled — anyone who can reach this endpoint can use your providers."})}),0===e.length?(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,a.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,a.jsx)(n.Button,{icon:"add",onClick:()=>b(!0),children:"Create Key"})]}):(0,a.jsx)("div",{className:"flex flex-col",children:e.map(e=>{var t;return(0,a.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono",children:tT.has(e.id)?e.key:(t=e.key)&&!(t.length<=10)?t.slice(0,6)+"•".repeat(t.length-10)+t.slice(-4):t||""}),(0,a.jsx)("button",{onClick:()=>{var t;return t=e.id,void tP(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:tT.has(e.id)?"Hide key":"Show key",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tT.has(e.id)?"visibility_off":"visibility"})}),(0,a.jsx)("button",{onClick:()=>tO(e.key,e.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tI===e.id?"check":"content_copy"})})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(e.createdAt).toLocaleDateString()]}),!1===e.isActive&&(0,a.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"}),(e.allowedProviders||e.allowedCombos||e.allowedKinds)&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[e.allowedProviders&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-500 dark:bg-blue-500/20",title:e.allowedProviders.join(", "),children:0===e.allowedProviders.length?"No providers":e.allowedProviders.map(e=>{let t=$.find(t=>t.id===e||t.alias===e||t.prefix===e);if(t)return t.displayName;let s=H[e];return s||e}).join(", ")}),e.allowedCombos&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-purple-500/10 text-purple-500 dark:bg-purple-500/20",children:0===e.allowedCombos.length?"No combos":e.allowedCombos.join(", ")}),e.allowedKinds&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-green-500/10 text-green-500 dark:bg-green-500/20",children:0===e.allowedKinds.length?"No kinds":e.allowedKinds.join(", ")})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>tY(e),className:"p-2 hover:bg-primary/10 rounded text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:"Edit access control",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"})}),(0,a.jsx)(n.Toggle,{size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?w({title:"Pause API Key",message:`Pause API key "${e.name}"?
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9131],{11512:(e,t,s)=>{Promise.resolve().then(s.bind(s,46378))},29674:(e,t,s)=>{"use strict";s.d(t,{Cp:()=>r,Hx:()=>n,Iv:()=>d,Nv:()=>x,RL:()=>c,ev:()=>m,fl:()=>i,hT:()=>a,oX:()=>l,t6:()=>o});let a=["zh-CN","zh-TW"],l=[{icon:"public",title:"Access Anywhere",desc:"Use your API from any network"},{icon:"group",title:"Share Endpoint",desc:"Share URL with team members"},{icon:"code",title:"Use in Cursor/Cline",desc:"Connect AI tools remotely"},{icon:"lock",title:"Encrypted",desc:"End-to-end TLS via Cloudflare"}],n=2e3,r=3e5,i=5e3,o=5,c=1e4,d=5e3,m=[{id:"lite",label:"Lite",desc:"Drop filler, keep grammar"},{id:"full",label:"Full",desc:"Drop articles, fragments OK"},{id:"ultra",label:"Ultra",desc:"Telegraphic, max compression"},{id:"wenyan-lite",label:"文 Lite",desc:"Classical Chinese, light compression",wenyan:!0},{id:"wenyan",label:"文 Full",desc:"Maximum 文言文, 80-90% reduction",wenyan:!0},{id:"wenyan-ultra",label:"文 Ultra",desc:"Extreme classical compression",wenyan:!0}],x=[{id:"lite",label:"Lite",desc:"Build asked, name lazier option"},{id:"full",label:"Full",desc:"Ladder enforced: stdlib/native first"},{id:"ultra",label:"Ultra",desc:"YAGNI extremist, deletion first"}]},46378:(e,t,s)=>{"use strict";s.d(t,{default:()=>p});var a=s(15102),l=s(82030),n=s(73178),r=s(21577),i=s(20264),o=s(29674);async function c(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(o.Iv)})).ok}catch{return!1}}async function d(...e){let t=e.filter(Boolean).map(c);return!!t.length&&new Promise(e=>{let s=t.length;t.forEach(t=>t.then(t=>{t?e(!0):0==--s&&e(!1)}))})}function m({label:e,url:t,copyId:s,copied:l,onCopy:r,badge:i,actions:o}){return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${"CF"===i||"TS"===i?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:e}),(0,a.jsx)(n.Input,{value:t,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>r(t,s),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:l===s?"check":"content_copy"})}),o]})}function x({status:e,className:t=""}){return(0,a.jsx)("div",{className:`p-2 rounded text-sm ${t} ${"success"===e.type?"bg-green-500/10 text-green-600 dark:text-green-400":"warning"===e.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"info"===e.type?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"bg-red-500/10 text-red-600 dark:text-red-400"}`,children:e.message.split(/(https?:\/\/[^\s]+)/g).map((e,t)=>/^https?:\/\//.test(e)?(0,a.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"underline font-medium",children:e},t):e)})}function u({text:e}){return(0,a.jsxs)("span",{className:"relative group inline-flex items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted cursor-help",children:"help"}),(0,a.jsx)("span",{className:"pointer-events-none absolute left-5 top-1/2 -translate-y-1/2 z-50 w-64 rounded bg-gray-900 dark:bg-gray-800 text-white text-xs px-2.5 py-1.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-lg",children:e})]})}function h({message:e,action:t}){return(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-amber-500/10 border border-amber-500/20 text-amber-700 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] shrink-0 mt-0.5",children:"warning"}),(0,a.jsx)("p",{className:"text-xs flex-1",children:e}),t&&(0,a.jsx)("a",{href:t.href,className:"text-xs font-medium underline shrink-0 hover:opacity-80",onClick:t.href.startsWith("#")?e=>{e.preventDefault(),document.getElementById(t.href.slice(1))?.scrollIntoView({behavior:"smooth"})}:void 0,children:t.label})]})}function p(){let[e,t]=(0,l.useState)([]),[s,p]=(0,l.useState)(!0),[g,b]=(0,l.useState)(!1),[f,y]=(0,l.useState)(""),[j,v]=(0,l.useState)(null),[N,w]=(0,l.useState)(null),[k,C]=(0,l.useState)(null),[S,T]=(0,l.useState)(""),[P,E]=(0,l.useState)([]),[A,_]=(0,l.useState)([]),[U,I]=(0,l.useState)([]),[O,L]=(0,l.useState)(!0),[R,B]=(0,l.useState)(!0),[D,K]=(0,l.useState)(!0),[W,F]=(0,l.useState)(!1),[$,q]=(0,l.useState)([]),[H,M]=(0,l.useState)({}),[z,J]=(0,l.useState)([]),[G,Y]=(0,l.useState)(!1),[X,Q]=(0,l.useState)(!1),[V,Z]=(0,l.useState)(!0),[ee,et]=(0,l.useState)(!0),[es,ea]=(0,l.useState)(!1),[el,en]=(0,l.useState)(!0),[er,ei]=(0,l.useState)(!1),[eo,ec]=(0,l.useState)("http://localhost:8787"),[ed,em]=(0,l.useState)(!1),[ex,eu]=(0,l.useState)({installed:!1,running:!1,python:null,loading:!0}),[eh,ep]=(0,l.useState)(!1),[eg,eb]=(0,l.useState)(!1),[ef,ey]=(0,l.useState)(""),[ej,ev]=(0,l.useState)(!1),[eN,ew]=(0,l.useState)("full"),[ek,eC]=(0,l.useState)(!1),[eS,eT]=(0,l.useState)("full"),[eP,eE]=(0,l.useState)("en"),[eA,e_]=(0,l.useState)(!0),[eU,eI]=(0,l.useState)(!1),[eO,eL]=(0,l.useState)(!1),[eR,eB]=(0,l.useState)(""),[eD,eK]=(0,l.useState)(""),[eW,eF]=(0,l.useState)(!1),[e$,eq]=(0,l.useState)(""),[eH,eM]=(0,l.useState)(null),[ez,eJ]=(0,l.useState)(!1),[eG,eY]=(0,l.useState)(!1),[eX,eQ]=(0,l.useState)(!1),[eV,eZ]=(0,l.useState)(!1),[e0,e1]=(0,l.useState)(""),[e5,e2]=(0,l.useState)(!1),[e4,e8]=(0,l.useState)(""),[e3,e6]=(0,l.useState)(null),[e7,e9]=(0,l.useState)(""),[te,tt]=(0,l.useState)(""),[ts,ta]=(0,l.useState)(null),[tl,tn]=(0,l.useState)(!1),[tr,ti]=(0,l.useState)([]),[to,tc]=(0,l.useState)(""),[td,tm]=(0,l.useState)(!1),[tx,tu]=(0,l.useState)(!1),[th,tp]=(0,l.useState)(!1),tg=(0,l.useRef)(null),tb=(0,l.useRef)(0),tf=(0,l.useRef)(0),ty=(0,l.useRef)(!1),tj=(0,l.useRef)(!1),tv=(0,l.useRef)(!1),tN=(0,l.useRef)(!1),[tw,tk]=(0,l.useState)(!1),[tC,tS]=(0,l.useState)(!1),[tT,tP]=(0,l.useState)(new Set),[tE,tA]=(0,l.useState)(!1);(0,l.useEffect)(()=>{tA(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,l.useEffect)(()=>(eE((0,i.kk)()),(0,i.oQ)(()=>eE((0,i.kk)()))),[]);let t_=o.hT.includes(eP),tU=t_?o.ev:o.ev.filter(e=>!e.wenyan);(0,l.useEffect)(()=>{let e=o.ev.find(e=>e.id===eN);e?.wenyan&&!t_&&(ew("ultra"),tH({cavemanLevel:"ultra"}))},[t_,eN]);let{copied:tI,copy:tO}=(0,r.C)(),tL=!V||!ee,tR=V?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{tg.current&&(tg.current.scrollTop=tg.current.scrollHeight)},[tr]),(0,l.useEffect)(()=>{tQ(),tK()},[]),(0,l.useEffect)(()=>{if(!(eU||eX))return;let e=!eU||eO,t=!eX||eV,s=()=>{document.hidden||tD()};if(document.addEventListener("visibilitychange",s),e&&t)return()=>document.removeEventListener("visibilitychange",s);let a=setInterval(()=>{document.hidden||tD()},o.fl);return()=>{clearInterval(a),document.removeEventListener("visibilitychange",s)}},[eU,eX,eO,eV]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(eU&&(eR||eD)){let e=await d(eD,eR);ty.current=e,e?(tb.current=0,eL(!0),tv.current||(tv.current=!0,tk(!0))):(tb.current+=1,tb.current>=o.t6&&eL(!1))}else ty.current=!1;if(eX&&e0){let e=await c(e0);tj.current=e,e?(tf.current=0,eZ(!0),tN.current||(tN.current=!0,tS(!0))):(tf.current+=1,tf.current>=o.t6&&eZ(!1))}else tj.current=!1}};if(!(eU&&(eR||eD)||eX&&e0))return;e();let t=!eX||eV;if((!eU||eO)&&t)return;let s=setInterval(e,o.RL);return()=>clearInterval(s)},[eU,eR,eD,eX,e0,eO,eV]);let tB=(0,l.useCallback)((e,t,s,a,l,n)=>{t.current?(s.current=0,a(!0),l.current||(l.current=!0,n(!0))):(s.current+=1,s.current>=o.t6&&a(!1))},[]),tD=async()=>{try{let e=await fetch("/api/tunnel/status",{cache:"no-store"});if(!e.ok)return;let t=await e.json(),s=t.tunnel?.settingsEnabled??t.tunnel?.enabled??!1,a=t.tunnel?.tunnelUrl||"";eB(a),eK(t.tunnel?.publicUrl||""),eI(s),tB(null,ty,tb,eL,tv,tk);let l=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,n=t.tailscale?.tunnelUrl||"";e1(n),eQ(l),tB(null,tj,tf,eZ,tN,tS)}catch{}},tK=async()=>{e_(!0);try{let[e,t]=await Promise.all([fetch("/api/settings"),fetch("/api/tunnel/status",{cache:"no-store"})]);if(e.ok){let t=await e.json();Y(t.requireApiKey||!1),Q(t.allowRemoteNoApiKey||!1),Z(!1!==t.requireLogin),et(t.hasPassword||!1),ea(t.tunnelDashboardAccess||!1),en(!1!==t.rtkEnabled),ei(!!t.headroomEnabled),ec(t.headroomUrl||"http://localhost:8787"),em(!!t.headroomCompressUserMessages),tz(),ev(!!t.cavemanEnabled),ew(t.cavemanLevel||"full"),eC(!!t.ponytailEnabled),eT(t.ponytailLevel||"full")}if(t.ok){let e=await t.json(),s=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,a=e.tunnel?.tunnelUrl||"";eB(a),eK(e.tunnel?.publicUrl||""),eI(s),tB(null,ty,tb,eL,tv,tk);let l=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,n=e.tailscale?.tunnelUrl||"";e1(n),eQ(l),tB(null,tj,tf,eZ,tN,tS)}}catch(e){console.log("Error loading settings:",e)}finally{e_(!1)}},tW=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:e})})).ok&&ea(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},tF=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:e})})).ok&&Y(e)}catch(e){console.log("Error updating requireApiKey:",e)}},t$=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({allowRemoteNoApiKey:e})})).ok&&Q(e)}catch(e){console.log("Error updating allowRemoteNoApiKey:",e)}},tq=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({rtkEnabled:e})})).ok&&en(e)}catch(e){console.log("Error updating rtkEnabled:",e)}},tH=async e=>{try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(e){console.log("Error updating setting:",e)}},tM=async()=>{let e=eo.trim()||"http://localhost:8787";ec(e),await tH({headroomUrl:e}),tz()},tz=(0,l.useCallback)(async()=>{eu(e=>({...e,loading:!0}));try{let e=await fetch("/api/headroom/status",{headers:{"Cache-Control":"no-store"}}),t=await e.json();eu({...t,loading:!1})}catch{eu({installed:!1,running:!1,python:null,loading:!1})}},[]),tJ=(0,l.useCallback)(async()=>{ey(""),eb(!0);try{let e=await fetch("/api/headroom/start",{method:"POST"}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Failed to start proxy");await tz()}catch(e){ey(e.message)}finally{eb(!1)}},[tz]),tG=(0,l.useCallback)(async()=>{eb(!0);try{await fetch("/api/headroom/stop",{method:"POST"}),await tz()}finally{eb(!1)}},[tz]),tY=async e=>{C(e),T(e.name||"");let t=e.allowedProviders,s=e.allowedCombos,a=e.allowedKinds;if(B(!t),K(!s),L(!a),I(s||[]),E(a||[]),t&&$.length>0){let e=new Set;for(let s of t){let t=$.find(e=>e.id===s);if(t){e.add(t.id);continue}let a=$.find(e=>e.alias===s);if(a){e.add(a.id);continue}let l=$.find(e=>e.prefix===s);if(l){e.add(l.id);continue}e.add(s)}_([...e])}else _([])},tX=async()=>{if(k){F(!0);try{let e={name:S.trim()||k.name||"",allowedProviders:R?null:A,allowedCombos:D?null:U,allowedKinds:O?null:P},s=await fetch(`/api/keys/${k.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(s.ok){let e=await s.json();t(t=>t.map(t=>t.id===k.id?{...t,...e.key}:t)),C(null)}}catch(e){console.log("Error saving key ACL:",e)}finally{F(!1)}}},tQ=async()=>{try{let[e,s,a,l]=await Promise.all([fetch("/api/keys",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),n=await e.json();e.ok&&t(n.keys||[]);let r=[],i=[],o=[];if(s.ok){let e=await s.json();r=e.connections||[],e.aliasMap&&M(e.aliasMap),o=e.providers||[]}if(l.ok&&(i=(await l.json()).nodes||[]),q(function(e,t,s=[]){let a={};for(let e of t||[])a[e.id]={name:e.name,prefix:e.prefix||null,type:e.type};let l={};for(let t of e||[]){let e=t.provider;l[e]||(l[e]={id:e,count:0,alias:t.alias||null}),l[e].count++}for(let e of s||[])e.noAuth&&(l[e.id]||(l[e.id]={id:e.id,count:0,alias:e.alias||null}));let n={};for(let e of s||[])n[e.id]=e;return Object.values(l).map(({id:e,count:t,alias:s})=>{let l=a[e],r=n[e],i=r?.displayName||e,o=null;return l&&(i=l.name||e,o=l.prefix||null),{id:e,displayName:i,prefix:o,alias:s,count:t,serviceKinds:r?.serviceKinds||["llm"]}}).sort((e,t)=>e.displayName.localeCompare(t.displayName))}(r,i,o)),a.ok){let e=await a.json();J(e.combos||[])}}catch(e){console.log("Error fetching data:",e)}finally{p(!1)}},tV=async(...e)=>{eF(!0),eq("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),s=Date.now();for(;Date.now()-s<o.Cp;){if(await new Promise(e=>setTimeout(e,o.Hx)),await Promise.any(t.map(async e=>{if((await fetch(e,{mode:"cors",cache:"no-store"})).ok)return!0;throw Error("not ready")})).catch(()=>!1))return eI(!0),eF(!1),eq(""),!0;if((Date.now()-s)%1e4<o.Hx)try{let e=await fetch("/api/tunnel/status");if(e.ok){let t=await e.json();if(!t.tunnel?.enabled)return eM({type:"error",message:"Tunnel process stopped unexpectedly."}),eF(!1),eq(""),!1}}catch{}}return eM({type:"error",message:"Tunnel created but not reachable. Please try again."}),eF(!1),eq(""),!1},tZ=async()=>{eJ(!1),eF(!0),eM(null),eq("Creating tunnel...");let e=!0;(async()=>{for(;e;){try{let t=await fetch("/api/tunnel/status");if(t.ok){let s=await t.json();s.download?.downloading?eq(`Downloading cloudflared... ${s.download.progress}%`):e&&eq("Creating tunnel...")}}catch{}await new Promise(e=>setTimeout(e,1e3))}})();try{let t=await fetch("/api/tunnel/enable",{method:"POST"});e=!1;let s=await t.json();if(!t.ok)return void eM({type:"error",message:s.error||"Failed to enable tunnel"});let a=s.tunnelUrl;if(!a)return void eM({type:"error",message:"No tunnel URL returned"});eB(a),eK(s.publicUrl||""),await tV(s.publicUrl,a)}catch(e){eM({type:"error",message:e.message})}finally{e=!1,eF(!1),eq("")}},t0=async()=>{eF(!0),eM(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(eI(!1),eB(""),eY(!1),eM({type:"success",message:"Tunnel disabled"})):eM({type:"error",message:t.error||"Failed to disable tunnel"})}catch(e){eM({type:"error",message:e.message})}finally{eF(!1)}},t1=async()=>{ta(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return ta(t.installed),t}}catch{}return ta(!1),{installed:!1}},t5=async()=>{tn(!0),e6(null),ti([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:to})});tc("");let t=e.body.getReader(),s=new TextDecoder,a="";for(;;){let{done:e,value:l}=await t.read();if(e)break;let n=(a+=s.decode(l,{stream:!0})).split("\n\n");for(let e of(a=n.pop()||"",n)){let t=e.split("\n"),s="progress",a=null;for(let e of t)if(e.startsWith("event: ")&&(s=e.slice(7).trim()),e.startsWith("data: "))try{a=JSON.parse(e.slice(6))}catch{}if(a)if("progress"===s)ti(e=>[...e.slice(-50),a.message]);else if("done"===s){ta(!0),tn(!1),tu(!1),t3();return}else"error"===s&&e6({type:"error",message:a.error||"Install failed"})}}}catch(e){e6({type:"error",message:e.message})}finally{tn(!1)}},t2=async e=>{e8("Waiting for Tailscale ready...");let t=`${e}/api/health`,s=Date.now();for(;Date.now()-s<o.Cp;){await new Promise(e=>setTimeout(e,o.Hx));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},t4=(e,t)=>{e9(e),tt(t)},t8=()=>{e9(""),tt("")},t3=async()=>{tu(!1),tm(!0),e2(!0),e6(null),e8("Connecting..."),t8();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){t4(t.authUrl,"Open Login Page"),e8('Login required — click "Open Login Page" to continue');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok&&(await e.json()).loggedIn){t8(),e8("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await t6(t.enableUrl):e6({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}t8(),e6({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await t6(t.enableUrl);e6({type:"error",message:t.error||"Failed to connect"})}catch(e){e6({type:"error",message:e.message})}finally{e2(!1),tm(!1),e8(""),t8()}},t6=async e=>{t4(e,"Open Funnel Settings"),e8('Click "Open Funnel Settings" to enable Funnel...');for(let e=0;e<40;e++){await new Promise(e=>setTimeout(e,3e3));try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){t8(),e1(t.tunnelUrl||"");let e=await t2(t.tunnelUrl);eQ(!0),e6(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){t8(),e6({type:"error",message:t.error});return}}catch{}}t8(),e6({type:"error",message:"Timed out waiting for Funnel to be enabled."})},t7=async()=>{e2(!0),e6(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(eQ(!1),e1(""),tp(!1),e6({type:"success",message:"Tailscale disabled"})):e6({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){e6({type:"error",message:e.message})}finally{e2(!1)}},t9=async()=>{e6(null),ti([]);let e=await t1();e?.installed&&e?.hasCachedPassword?t3():tu(!0)},se=async()=>{if(f.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:f})}),t=await e.json();e.ok&&(v(t.key),await tQ(),y(""),b(!1))}catch(e){console.log("Error creating key:",e)}},st=async s=>{w({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{w(null);try{(await fetch(`/api/keys/${s}`,{method:"DELETE"})).ok&&(t(e.filter(e=>e.id!==s)),tP(e=>{let t=new Set(e);return t.delete(s),t}))}catch(e){console.log("Error deleting key:",e)}}})},ss=async(e,s)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:s})})).ok&&t(t=>t.map(t=>t.id===e?{...t,isActive:s}:t))}catch(e){console.log("Error toggling key:",e)}},[sa,sl]=(0,l.useState)("/v1");if((0,l.useEffect)(()=>{sl(`${window.location.origin}/v1`)},[]),s)return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(n.CardSkeleton,{}),(0,a.jsx)(n.CardSkeleton,{})]});let sn=!!ex.running,sr=!1!==ex.localUrl,si=!!ex.canStart,so=sr&&!!ex.managedPid,sc=ex.loading?"Checking…":sn?"Running":sr&&!ex.installed?"Not installed":sr?"Proxy off":"Unreachable";return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)(n.Card,{children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"api"}),"API Endpoint"]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(m,{label:"Local",url:sa,copyId:"local_url",copied:tI,onCopy:tO}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${eU?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),eU&&!eW&&eO?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Input,{value:`${eD||eR}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>tO(`${eD||eR}/v1`,"tunnel_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tunnel_url"===tI?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>eY(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eU||eW||eO?eW?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),e$||"Creating tunnel..."]}),(0,a.jsx)("button",{onClick:()=>{eF(!1),eq("")},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):eH?.type==="error"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),eH.message]}),(0,a.jsx)(n.Button,{size:"sm",icon:"cloud_upload",onClick:()=>eJ(!0),children:"Enable"})]}):eA?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),(0,a.jsx)("button",{onClick:()=>e_(!1),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):(0,a.jsx)(n.Button,{size:"sm",icon:"cloud_upload",onClick:()=>{tL?eM({type:"error",message:`Security required: ${tR}`}):G?eJ(!0):eM({type:"error",message:'Security required: Enable "Require API key" before activating the tunnel.'})},children:"Enable"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tw?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,a.jsx)("button",{onClick:()=>eY(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tunnel",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`text-xs font-mono px-1.5 py-0.5 rounded shrink-0 min-w-[88px] text-center ${eX?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),eX&&!e5&&eV?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Input,{value:`${e0}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>tO(`${e0}/v1`,"ts_url"),className:"p-2 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary transition-colors shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"ts_url"===tI?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>tp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):!eX||e5||eV?e5||td?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-border bg-input text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),e4||"Connecting..."]}),e7&&(0,a.jsx)(n.Button,{size:"sm",icon:"open_in_new",onClick:()=>window.open(e7,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:te||"Open"}),(0,a.jsx)("button",{onClick:()=>{e2(!1),tm(!1),e8(""),t8()},className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Stop",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]}):e3?.type==="error"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-red-300 dark:border-red-800 bg-red-500/5 text-sm text-red-600 dark:text-red-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"error"}),e3.message]}),(0,a.jsx)(n.Button,{size:"sm",icon:"vpn_lock",onClick:t9,children:"Enable"})]}):(0,a.jsx)(n.Button,{size:"sm",icon:"vpn_lock",onClick:()=>{tL?e6({type:"error",message:`Security required: ${tR}`}):t9()},className:"bg-linear-to-r from-indigo-500 to-purple-500 hover:from-indigo-600 hover:to-purple-600 text-white!",children:"Enable"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex items-center gap-2 px-3 py-1.5 rounded border border-amber-300 dark:border-amber-800 bg-amber-500/5 text-sm text-amber-600 dark:text-amber-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),tC?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,a.jsx)("button",{onClick:()=>tp(!0),className:"p-2 hover:bg-red-500/10 rounded text-red-500 transition-colors shrink-0",title:"Disable Tailscale",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"power_settings_new"})})]})]})]}),tL&&!eU&&!eX&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(h,{message:tR,action:{label:"Open settings",href:"/dashboard/profile"}})}),(eU||eX)&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!G&&(0,a.jsx)(h,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!V||!ee)&&(0,a.jsx)(h,{message:V?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:V?"Change password":"Enable",href:"/dashboard/profile"}})]}),(eU||eX)&&(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,a.jsx)(n.Toggle,{checked:es,onChange:()=>tW(!es)}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("p",{className:"font-medium text-sm",children:"Allow dashboard access via tunnel"}),(0,a.jsx)(u,{text:"When enabled, the dashboard can be accessed through your tunnel or Tailscale URL (login still required). When disabled, dashboard access via tunnel/Tailscale is completely blocked."})]})]})]}),(0,a.jsxs)(n.Card,{id:"rtk",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,a.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"bolt"}),"Token Saver"]})}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 pb-4 border-b border-border gap-4",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress tool output"," ",(0,a.jsx)("a",{href:"https://github.com/rtk-ai/rtk",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(RTK)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"git/grep/ls/tree/logs → 60-90% fewer input tokens"})]}),(0,a.jsx)(n.Toggle,{checked:el,onChange:()=>tq(!el)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between py-4 border-b border-border gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress context"," ",(0,a.jsx)("a",{href:"https://github.com/chopratejas/headroom",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Headroom)"})]}),(0,a.jsx)("span",{className:`text-xs px-2 py-0.5 rounded ${sn?"bg-success/15 text-success":"bg-warning/15 text-warning"}`,children:sc}),(0,a.jsx)("button",{type:"button",onClick:()=>ep(!0),className:"text-xs text-primary underline hover:opacity-80",children:sn?"Manage":"Setup"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Compress prompts via /v1/compress before routing to the model"})]}),(0,a.jsx)(n.Toggle,{checked:er,onChange:()=>{var e;let t;return e=!er,void(ec(t=eo.trim()||"http://localhost:8787"),ei(e),tH({headroomEnabled:e,headroomUrl:t}))}})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Compress LLM output"," ",(0,a.jsx)("a",{href:"https://github.com/JuliusBrussee/caveman",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Caveman)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Terse-style system prompt → ~65% fewer output tokens (up to 87%)"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ej&&(0,a.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:tU.map(e=>(0,a.jsx)("button",{onClick:()=>{var t;ew(t=e.id),tH({cavemanLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${eN===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,a.jsx)("p",{className:"text-xs text-primary",children:o.ev.find(e=>e.id===eN)?.desc})]}),(0,a.jsx)(n.Toggle,{checked:ej,onChange:()=>{var e;ev(e=!ej),tH({cavemanEnabled:e})}})]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pt-4 mt-4 border-t border-border gap-4 flex-wrap",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("p",{className:"font-medium",children:["Lazy senior dev"," ",(0,a.jsx)("a",{href:"https://github.com/DietrichGebert/ponytail",target:"_blank",rel:"noreferrer",className:"text-xs font-normal text-primary underline hover:opacity-80",children:"(Ponytail)"})]}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Bias the model toward minimal code: YAGNI, reuse stdlib, deletion over addition"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[ek&&(0,a.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,a.jsx)("div",{className:"flex items-center gap-1.5",children:o.Nv.map(e=>(0,a.jsx)("button",{onClick:()=>{var t;eT(t=e.id),tH({ponytailLevel:t})},className:`px-3 py-1.5 rounded text-xs font-medium border transition-colors ${eS===e.id?"bg-primary text-white border-primary":"bg-transparent border-border text-text-muted hover:bg-surface-2"}`,title:e.desc,children:e.label},e.id))}),(0,a.jsx)("p",{className:"text-xs text-primary",children:o.Nv.find(e=>e.id===eS)?.desc})]}),(0,a.jsx)(n.Toggle,{checked:ek,onChange:()=>{var e;eC(e=!ek),tH({ponytailEnabled:e})}})]})]})]}),(0,a.jsxs)(n.Card,{id:"require-api-key",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"vpn_key"}),"API Keys"]}),(0,a.jsx)(n.Button,{icon:"add",onClick:()=>b(!0),children:"Create Key"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between pb-4 mb-4 border-b border-border",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Require API key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Requests without a valid key will be rejected"})]}),(0,a.jsx)(n.Toggle,{checked:G,onChange:()=>tF(!G)})]}),tE&&!G&&(0,a.jsx)("div",{className:"mb-4 -mt-2",children:(0,a.jsx)(h,{message:"Endpoint is exposed without an API key."})}),!G&&tE&&(0,a.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-surface/50 border border-border/30 mb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Allow Remote Access Without API Key"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Let non-loopback requests reach /v1/* without a key (use with caution)"})]}),(0,a.jsx)(n.Toggle,{checked:X,onChange:()=>t$(!X)})]}),!G&&X&&(0,a.jsx)("div",{className:"mb-4 -mt-2",children:(0,a.jsx)(h,{message:"Remote access without an API key is enabled — anyone who can reach this endpoint can use your providers."})}),0===e.length?(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"vpn_key"})}),(0,a.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No API keys yet"}),(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create your first API key to get started"}),(0,a.jsx)(n.Button,{icon:"add",onClick:()=>b(!0),children:"Create Key"})]}):(0,a.jsx)("div",{className:"flex flex-col",children:e.map(e=>{var t;return(0,a.jsxs)("div",{className:`group flex items-center justify-between py-3 border-b border-black/[0.03] dark:border-white/[0.03] last:border-b-0 ${!1===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.name}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono",children:tT.has(e.id)?e.key:(t=e.key)&&!(t.length<=10)?t.slice(0,6)+"•".repeat(t.length-10)+t.slice(-4):t||""}),(0,a.jsx)("button",{onClick:()=>{var t;return t=e.id,void tP(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:tT.has(e.id)?"Hide key":"Show key",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tT.has(e.id)?"visibility_off":"visibility"})}),(0,a.jsx)("button",{onClick:()=>tO(e.key,e.id),className:"p-1 hover:bg-black/5 dark:hover:bg-white/5 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:tI===e.id?"check":"content_copy"})})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(e.createdAt).toLocaleDateString()]}),!1===e.isActive&&(0,a.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"}),(e.allowedProviders||e.allowedCombos||e.allowedKinds)&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1 mt-1",children:[e.allowedProviders&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-500 dark:bg-blue-500/20",title:e.allowedProviders.join(", "),children:0===e.allowedProviders.length?"No providers":e.allowedProviders.map(e=>{let t=$.find(t=>t.id===e||t.alias===e||t.prefix===e);if(t)return t.displayName;let s=H[e];return s||e}).join(", ")}),e.allowedCombos&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-purple-500/10 text-purple-500 dark:bg-purple-500/20",children:0===e.allowedCombos.length?"No combos":e.allowedCombos.join(", ")}),e.allowedKinds&&(0,a.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-green-500/10 text-green-500 dark:bg-green-500/20",children:0===e.allowedKinds.length?"No kinds":e.allowedKinds.join(", ")})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>tY(e),className:"p-2 hover:bg-primary/10 rounded text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:"Edit access control",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"})}),(0,a.jsx)(n.Toggle,{size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?w({title:"Pause API Key",message:`Pause API key "${e.name}"?
2
2
 
3
- This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{w(null),ss(e.id,t)}}):ss(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,a.jsx)("button",{onClick:()=>st(e.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,a.jsx)(n.Modal,{isOpen:g,title:"Create API Key",onClose:()=>{b(!1),y("")},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(n.Input,{label:"Key Name",value:f,onChange:e=>y(e.target.value),placeholder:"Production Key"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:se,fullWidth:!0,disabled:!f.trim(),children:"Create"}),(0,a.jsx)(n.Button,{onClick:()=>{b(!1),y("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:!!j,title:"API Key Created",onClose:()=>v(null),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,a.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Input,{value:j||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)(n.Button,{variant:"secondary",icon:"created_key"===tI?"check":"content_copy",onClick:()=>tO(j,"created_key"),children:"created_key"===tI?"Copied!":"Copy"})]}),(0,a.jsx)(n.Button,{onClick:()=>v(null),fullWidth:!0,children:"Done"})]})}),(0,a.jsx)(n.Modal,{isOpen:!!k,title:`Edit Access: ${k?.name||""}`,onClose:()=>!W&&C(null),children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Key Name"}),(0,a.jsx)(n.Input,{value:S,onChange:e=>T(e.target.value),placeholder:"Key name"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Service Kinds"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:O,onChange:e=>L(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!O&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["llm","embedding","image","tts","stt","webSearch","webFetch"].map(e=>(0,a.jsxs)("label",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg border text-xs cursor-pointer transition-colors ${P.includes(e)?"border-primary bg-primary/10 text-primary":"border-border-subtle text-text-muted hover:border-primary/40"}`,children:[(0,a.jsx)("input",{type:"checkbox",className:"hidden",checked:P.includes(e),onChange:()=>{E(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}}),e]},e))}),O&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all service kinds."})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Providers"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:R,onChange:e=>B(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===$.length?(0,a.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No providers configured."}):$.map(e=>{let t=A.includes(e.id);return(0,a.jsxs)("label",{className:`flex items-center gap-2 px-2 py-2 rounded text-xs cursor-pointer transition-colors ${t?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:t,onChange:()=>{var t;return t=e.id,void _(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"rounded"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("span",{className:"font-medium",children:e.displayName}),e.prefix&&(0,a.jsx)("span",{className:"ml-1.5 text-[10px] px-1 py-0.5 rounded bg-surface-2 text-text-muted font-mono",children:e.prefix})]}),(0,a.jsxs)("span",{className:"text-text-muted text-[10px] shrink-0",children:[e.count," conn"]})]},e.id)})}),0===A.length&&(0,a.jsxs)("p",{className:"text-xs text-warning bg-warning/10 border border-warning/20 rounded px-2 py-1 mt-1.5 flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,a.jsx)("span",{children:"Warning: Zero providers selected. This key will have NO access to any providers (Deny All)."})]})]}),R&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["This key can access all providers (",$.length,")."]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Combos"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:D,onChange:e=>K(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!D&&(0,a.jsx)("div",{className:"max-h-40 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===z.length?(0,a.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No combos configured."}):z.map(e=>{let t=e.name||e.id,s=U.includes(t);return(0,a.jsxs)("label",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs cursor-pointer transition-colors ${s?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:s,onChange:()=>{I(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"rounded"}),(0,a.jsx)("span",{children:t}),(0,a.jsxs)("span",{className:"text-text-muted ml-auto text-[10px]",children:[Array.isArray(e.models)?e.models.length:0," models"]})]},t)})}),D&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all combos."})]}),(0,a.jsxs)("div",{className:"text-xs text-text-muted bg-surface-2 rounded-lg p-3 border border-border-subtle",children:[(0,a.jsx)("p",{className:"font-medium mb-1",children:"How it works:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"All allowed"})," = unrestricted (default). No ACL filtering."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Unchecked + empty"})," = deny everything of that type."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Checked items"})," = only those items are accessible."]})]})]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(n.Button,{onClick:()=>C(null),variant:"ghost",fullWidth:!0,disabled:W,children:"Cancel"}),(0,a.jsx)(n.Button,{onClick:tX,fullWidth:!0,disabled:W,children:W?"Saving...":"Save ACL"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:ez,title:"Enable Tunnel",onClose:()=>eJ(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:o.oX.map(e=>(0,a.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:e.icon}),(0,a.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:tZ,fullWidth:!0,children:"Start Tunnel"}),(0,a.jsx)(n.Button,{onClick:()=>eJ(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:eG,title:"Disable Tunnel",onClose:()=>!eW&&eY(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t0,fullWidth:!0,disabled:eW,variant:"danger",children:eW?"Disabling...":"Disable"}),(0,a.jsx)(n.Button,{onClick:()=>eY(!1),variant:"ghost",fullWidth:!0,disabled:eW,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:tx,title:"Tailscale Funnel",onClose:()=>{tl||(tu(!1),tc(""),e6(null))},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[null===ts&&(0,a.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===ts&&!tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t5,fullWidth:!0,children:"Install Tailscale"}),(0,a.jsx)(n.Button,{onClick:()=>tu(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),tr.length>0&&(0,a.jsx)("div",{ref:tg,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:tr.map((e,t)=>(0,a.jsx)("div",{children:e},t))})]}),!0===ts&&!tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:()=>t3(),fullWidth:!0,children:"Connect"}),(0,a.jsx)(n.Button,{onClick:()=>tu(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),e3&&(0,a.jsx)(x,{status:e3})]})}),(0,a.jsx)(n.Modal,{isOpen:th,title:"Disable Tailscale",onClose:()=>!e5&&tp(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t7,fullWidth:!0,disabled:e5,variant:"danger",children:e5?"Disabling...":"Disable"}),(0,a.jsx)(n.Button,{onClick:()=>tp(!1),variant:"ghost",fullWidth:!0,disabled:e5,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:eh,title:sn?"Headroom":"Setup Headroom",onClose:()=>ep(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,a.jsx)("span",{children:"Status"}),(0,a.jsx)("span",{className:sn?"text-success":"text-warning",children:sc})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,a.jsx)(n.Input,{value:eo,onChange:e=>ec(e.target.value),onBlur:tM,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),so?(0,a.jsx)(n.Button,{onClick:tG,variant:"ghost",fullWidth:!0,disabled:eg,children:eg?"Stopping…":"Stop Headroom"}):sn?(0,a.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):si?(0,a.jsx)(n.Button,{onClick:tJ,fullWidth:!0,disabled:eg,children:eg?"Starting…":"Start Headroom"}):sr?ex.python?(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,a.jsx)(n.Button,{size:"sm",variant:"ghost",onClick:()=>tO('pip install "headroom-ai[proxy]"'),children:tI?"Copied":"Copy"})]})]}):(0,a.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,a.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),ef&&(0,a.jsx)("p",{className:"text-sm text-warning",children:ef}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:()=>tz(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,a.jsx)(n.Button,{onClick:()=>ep(!1),fullWidth:!0,children:"Done"})]})]})}),(0,a.jsx)(n.ConfirmModal,{isOpen:!!N,onClose:()=>w(null),onConfirm:N?.onConfirm,title:N?.title||"Confirm",message:N?.message,variant:"danger"})]})}}}]);
3
+ This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{w(null),ss(e.id,t)}}):ss(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,a.jsx)("button",{onClick:()=>st(e.id),className:"p-2 hover:bg-red-500/10 rounded text-red-500 opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,a.jsx)(n.Modal,{isOpen:g,title:"Create API Key",onClose:()=>{b(!1),y("")},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(n.Input,{label:"Key Name",value:f,onChange:e=>y(e.target.value),placeholder:"Production Key"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:se,fullWidth:!0,disabled:!f.trim(),children:"Create"}),(0,a.jsx)(n.Button,{onClick:()=>{b(!1),y("")},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:!!j,title:"API Key Created",onClose:()=>v(null),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:[(0,a.jsx)("p",{className:"text-sm text-yellow-800 dark:text-yellow-200 mb-2 font-medium",children:"Save this key now!"}),(0,a.jsx)("p",{className:"text-sm text-yellow-700 dark:text-yellow-300",children:"This is the only time you will see this key. Store it securely."})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Input,{value:j||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)(n.Button,{variant:"secondary",icon:"created_key"===tI?"check":"content_copy",onClick:()=>tO(j,"created_key"),children:"created_key"===tI?"Copied!":"Copy"})]}),(0,a.jsx)(n.Button,{onClick:()=>v(null),fullWidth:!0,children:"Done"})]})}),(0,a.jsx)(n.Modal,{isOpen:!!k,title:`Edit Access: ${k?.name||""}`,onClose:()=>!W&&C(null),children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"block text-sm font-medium mb-1",children:"Key Name"}),(0,a.jsx)(n.Input,{value:S,onChange:e=>T(e.target.value),placeholder:"Key name"})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Service Kinds"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:O,onChange:e=>L(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!O&&(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["llm","embedding","image","video","tts","stt","webSearch","webFetch"].map(e=>(0,a.jsxs)("label",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg border text-xs cursor-pointer transition-colors ${P.includes(e)?"border-primary bg-primary/10 text-primary":"border-border-subtle text-text-muted hover:border-primary/40"}`,children:[(0,a.jsx)("input",{type:"checkbox",className:"hidden",checked:P.includes(e),onChange:()=>{E(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}}),e]},e))}),O&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all service kinds."})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Providers"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:R,onChange:e=>B(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===$.length?(0,a.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No providers configured."}):$.map(e=>{let t=A.includes(e.id);return(0,a.jsxs)("label",{className:`flex items-center gap-2 px-2 py-2 rounded text-xs cursor-pointer transition-colors ${t?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:t,onChange:()=>{var t;return t=e.id,void _(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"rounded"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("span",{className:"font-medium",children:e.displayName}),e.prefix&&(0,a.jsx)("span",{className:"ml-1.5 text-[10px] px-1 py-0.5 rounded bg-surface-2 text-text-muted font-mono",children:e.prefix})]}),(0,a.jsxs)("span",{className:"text-text-muted text-[10px] shrink-0",children:[e.count," conn"]})]},e.id)})}),0===A.length&&(0,a.jsxs)("p",{className:"text-xs text-warning bg-warning/10 border border-warning/20 rounded px-2 py-1 mt-1.5 flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,a.jsx)("span",{children:"Warning: Zero providers selected. This key will have NO access to any providers (Deny All)."})]})]}),R&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["This key can access all providers (",$.length,")."]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Combos"}),(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs cursor-pointer",children:[(0,a.jsx)("input",{type:"checkbox",checked:D,onChange:e=>K(e.target.checked)}),(0,a.jsx)("span",{className:"text-text-muted",children:"All allowed"})]})]}),!D&&(0,a.jsx)("div",{className:"max-h-40 overflow-y-auto border border-border-subtle rounded-lg p-2 space-y-1",children:0===z.length?(0,a.jsx)("p",{className:"text-xs text-text-muted p-2",children:"No combos configured."}):z.map(e=>{let t=e.name||e.id,s=U.includes(t);return(0,a.jsxs)("label",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs cursor-pointer transition-colors ${s?"bg-primary/10 text-primary":"hover:bg-surface-2"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:s,onChange:()=>{I(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"rounded"}),(0,a.jsx)("span",{children:t}),(0,a.jsxs)("span",{className:"text-text-muted ml-auto text-[10px]",children:[Array.isArray(e.models)?e.models.length:0," models"]})]},t)})}),D&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"This key can access all combos."})]}),(0,a.jsxs)("div",{className:"text-xs text-text-muted bg-surface-2 rounded-lg p-3 border border-border-subtle",children:[(0,a.jsx)("p",{className:"font-medium mb-1",children:"How it works:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-0.5",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"All allowed"})," = unrestricted (default). No ACL filtering."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Unchecked + empty"})," = deny everything of that type."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Checked items"})," = only those items are accessible."]})]})]}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(n.Button,{onClick:()=>C(null),variant:"ghost",fullWidth:!0,disabled:W,children:"Cancel"}),(0,a.jsx)(n.Button,{onClick:tX,fullWidth:!0,disabled:W,children:W?"Saving...":"Save ACL"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:ez,title:"Enable Tunnel",onClose:()=>eJ(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"bg-surface-2 border border-border-subtle rounded-lg p-4",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"cloud_upload"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-text-main font-medium mb-1",children:"Cloudflare Tunnel"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Expose your local 9Router to the internet. No port forwarding, no static IP needed. Share endpoint URL with your team or use it in Cursor, Cline, and other AI tools from anywhere."})]})]})}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-3",children:o.oX.map(e=>(0,a.jsxs)("div",{className:"flex flex-col items-center text-center p-3 rounded-lg bg-sidebar/50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-xl text-primary mb-1",children:e.icon}),(0,a.jsx)("p",{className:"text-xs font-semibold",children:e.title}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:e.desc})]},e.title))}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Requires outbound port 7844 (TCP/UDP). Connection may take 10-30s."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:tZ,fullWidth:!0,children:"Start Tunnel"}),(0,a.jsx)(n.Button,{onClick:()=>eJ(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:eG,title:"Disable Tunnel",onClose:()=>!eW&&eY(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"The Cloudflare tunnel will be disconnected. Remote access via tunnel URL will stop working."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t0,fullWidth:!0,disabled:eW,variant:"danger",children:eW?"Disabling...":"Disable"}),(0,a.jsx)(n.Button,{onClick:()=>eY(!1),variant:"ghost",fullWidth:!0,disabled:eW,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:tx,title:"Tailscale Funnel",onClose:()=>{tl||(tu(!1),tc(""),e6(null))},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[null===ts&&(0,a.jsxs)("p",{className:"text-sm text-text-muted flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Checking..."]}),!1===ts&&!tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale is not installed. Install it to enable Funnel."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t5,fullWidth:!0,children:"Install Tailscale"}),(0,a.jsx)(n.Button,{onClick:()=>tu(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-sm",children:"progress_activity"}),"Installing Tailscale..."]}),tr.length>0&&(0,a.jsx)("div",{ref:tg,className:"bg-black/5 dark:bg-white/5 rounded p-2 max-h-40 overflow-y-auto font-mono text-xs text-text-muted",children:tr.map((e,t)=>(0,a.jsx)("div",{children:e},t))})]}),!0===ts&&!tl&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600 dark:text-green-400",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"check_circle"}),"Tailscale installed"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:()=>t3(),fullWidth:!0,children:"Connect"}),(0,a.jsx)(n.Button,{onClick:()=>tu(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),e3&&(0,a.jsx)(x,{status:e3})]})}),(0,a.jsx)(n.Modal,{isOpen:th,title:"Disable Tailscale",onClose:()=>!e5&&tp(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Tailscale Funnel will be stopped. Remote access via Tailscale URL will stop working."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:t7,fullWidth:!0,disabled:e5,variant:"danger",children:e5?"Disabling...":"Disable"}),(0,a.jsx)(n.Button,{onClick:()=>tp(!1),variant:"ghost",fullWidth:!0,disabled:e5,children:"Cancel"})]})]})}),(0,a.jsx)(n.Modal,{isOpen:eh,title:sn?"Headroom":"Setup Headroom",onClose:()=>ep(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,a.jsx)("span",{children:"Status"}),(0,a.jsx)("span",{className:sn?"text-success":"text-warning",children:sc})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Proxy URL"}),(0,a.jsx)(n.Input,{value:eo,onChange:e=>ec(e.target.value),onBlur:tM,placeholder:"http://localhost:8787",className:"font-mono text-sm"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a local proxy for Start/Stop, or an external Docker sidecar like http://headroom:8787."})]}),so?(0,a.jsx)(n.Button,{onClick:tG,variant:"ghost",fullWidth:!0,disabled:eg,children:eg?"Stopping…":"Stop Headroom"}):sn?(0,a.jsx)("p",{className:"text-sm text-success",children:"Headroom proxy is reachable. You can enable the token saver."}):si?(0,a.jsx)(n.Button,{onClick:tJ,fullWidth:!0,disabled:eg,children:eg?"Starting…":"Start Headroom"}):sr?ex.python?(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Install then click Start:"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("pre",{className:"flex-1 rounded bg-black/5 dark:bg-white/5 p-2 text-xs font-mono overflow-x-auto",children:'pip install "headroom-ai[proxy]"'}),(0,a.jsx)(n.Button,{size:"sm",variant:"ghost",onClick:()=>tO('pip install "headroom-ai[proxy]"'),children:tI?"Copied":"Copy"})]})]}):(0,a.jsx)("p",{className:"text-sm text-warning",children:"Python ≥ 3.10 required for local managed mode. Install Python first, or use an external proxy URL."}):(0,a.jsx)("p",{className:"text-sm text-warning",children:"Start Headroom separately at the configured URL, then recheck."}),ef&&(0,a.jsx)("p",{className:"text-sm text-warning",children:ef}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(n.Button,{onClick:()=>tz(),variant:"ghost",fullWidth:!0,children:"Recheck"}),(0,a.jsx)(n.Button,{onClick:()=>ep(!1),fullWidth:!0,children:"Done"})]})]})}),(0,a.jsx)(n.ConfirmModal,{isOpen:!!N,onClose:()=>w(null),onConfirm:N?.onConfirm,title:N?.title||"Confirm",message:N?.message,variant:"danger"})]})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9146],{9146:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(15102),i=r(82030),l=r(92940);function o({isOpen:e,onSuccess:t,onClose:r}){let[a,n]=(0,i.useState)(""),[c,d]=(0,i.useState)(!1),[u,x]=(0,i.useState)(null),[m,h]=(0,i.useState)(!1),p=(0,i.useRef)(0);(0,i.useEffect)(()=>{e||(p.current+=1)},[e]);let f=async()=>{if(!a.trim())return void x("Please paste your cookie");let r=++p.current;d(!0),x(null);try{let s=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:a.trim()})}),i=await s.json();if(!s.ok)throw Error(i.error||"Authentication failed");if(r!==p.current||!e)return;h(!0),setTimeout(()=>{r===p.current&&e&&(t?.(),y())},1500)}catch(t){r===p.current&&e&&x(t.message)}finally{r===p.current&&d(!1)}},y=()=>{p.current+=1,n(""),x(null),h(!1),r?.()};return(0,s.jsx)(l.Modal,{isOpen:e,onClose:y,title:"iFlow Cookie Authentication",children:(0,s.jsx)("div",{className:"space-y-4",children:m?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,s.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,s.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,s.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,s.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,s.jsx)("li",{children:"Login to your account"}),(0,s.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,s.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,s.jsx)("li",{children:"Paste it below"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{htmlFor:"iflow-cookie-string",className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,s.jsx)("textarea",{id:"iflow-cookie-string",value:a,onChange:e=>n(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:c})]}),u&&(0,s.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error",children:u})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(l.Button,{variant:"secondary",onClick:y,disabled:c,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(l.Button,{onClick:f,loading:c,fullWidth:!0,children:"Authenticate"})]})]})})})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9146],{9146:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(15102),i=r(82030),l=r(73178);function o({isOpen:e,onSuccess:t,onClose:r}){let[a,n]=(0,i.useState)(""),[c,d]=(0,i.useState)(!1),[u,x]=(0,i.useState)(null),[m,h]=(0,i.useState)(!1),p=(0,i.useRef)(0);(0,i.useEffect)(()=>{e||(p.current+=1)},[e]);let f=async()=>{if(!a.trim())return void x("Please paste your cookie");let r=++p.current;d(!0),x(null);try{let s=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:a.trim()})}),i=await s.json();if(!s.ok)throw Error(i.error||"Authentication failed");if(r!==p.current||!e)return;h(!0),setTimeout(()=>{r===p.current&&e&&(t?.(),y())},1500)}catch(t){r===p.current&&e&&x(t.message)}finally{r===p.current&&d(!1)}},y=()=>{p.current+=1,n(""),x(null),h(!1),r?.()};return(0,s.jsx)(l.Modal,{isOpen:e,onClose:y,title:"iFlow Cookie Authentication",children:(0,s.jsx)("div",{className:"space-y-4",children:m?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,s.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,s.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,s.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,s.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,s.jsx)("li",{children:"Login to your account"}),(0,s.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,s.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,s.jsx)("li",{children:"Paste it below"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{htmlFor:"iflow-cookie-string",className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,s.jsx)("textarea",{id:"iflow-cookie-string",value:a,onChange:e=>n(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:c})]}),u&&(0,s.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error",children:u})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(l.Button,{variant:"secondary",onClick:y,disabled:c,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(l.Button,{onClick:f,loading:c,fullWidth:!0,children:"Authenticate"})]})]})})})}}}]);