@rabbi696/ezrouter 0.6.3 → 0.6.5

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 (1316) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +44 -32
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +72 -0
  5. package/app/.next-cli-build/routes-manifest.json +81 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +2 -0
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -0
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -0
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -0
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -0
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -0
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -0
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -0
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -0
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  93. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  94. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  96. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  97. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  98. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  101. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  105. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  107. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  108. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  109. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  110. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  111. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  112. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  113. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  114. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  115. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  132. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  148. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  172. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
  198. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  226. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -0
  228. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -0
  229. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route_client-reference-manifest.js +1 -0
  230. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -0
  231. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -0
  232. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route_client-reference-manifest.js +1 -0
  233. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -0
  234. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -0
  235. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route_client-reference-manifest.js +1 -0
  236. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -0
  237. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -0
  238. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route_client-reference-manifest.js +1 -0
  239. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -0
  240. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -0
  241. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route_client-reference-manifest.js +1 -0
  242. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +4 -0
  243. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -0
  244. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route_client-reference-manifest.js +1 -0
  245. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +5 -0
  246. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -0
  247. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route_client-reference-manifest.js +1 -0
  248. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -0
  249. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -0
  250. package/app/.next-cli-build/server/app/api/mcp-gateway/route_client-reference-manifest.js +1 -0
  251. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +4 -0
  252. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -0
  253. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route_client-reference-manifest.js +1 -0
  254. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  287. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +19 -9
  343. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +16 -5
  345. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +16 -5
  349. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  351. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  353. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  355. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  357. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  359. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  361. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  363. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  365. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  381. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
  383. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  389. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +3 -3
  419. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  433. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  463. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  476. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  494. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  499. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  500. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  501. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  503. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  505. package/app/.next-cli-build/server/app/callback.html +1 -1
  506. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  507. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  508. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  510. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  511. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  512. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  515. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  516. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  519. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  520. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  521. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  522. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  524. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  525. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  526. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  530. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  532. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  535. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  536. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  539. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  540. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  542. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  543. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
  545. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  546. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  549. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
  550. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  551. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
  552. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
  553. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  554. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  555. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  556. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  559. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  560. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  561. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  562. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  563. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -0
  564. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.meta +18 -0
  565. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +27 -0
  566. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +9 -0
  567. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +5 -0
  568. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +6 -0
  569. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  570. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  571. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +27 -0
  572. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +6 -0
  573. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +8 -0
  574. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +4 -0
  575. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -0
  576. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.meta +18 -0
  577. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +27 -0
  578. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +9 -0
  579. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +5 -0
  580. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +6 -0
  581. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  582. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  583. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +27 -0
  584. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +6 -0
  585. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +8 -0
  586. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +4 -0
  587. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -0
  588. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.meta +17 -0
  589. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +27 -0
  590. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +9 -0
  591. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +6 -0
  592. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  593. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  594. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +27 -0
  595. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +6 -0
  596. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +8 -0
  597. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +4 -0
  598. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  600. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  601. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  603. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  605. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  608. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  609. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  612. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  615. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  616. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  618. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  619. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  620. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  621. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  622. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  623. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  625. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  626. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  628. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  629. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  630. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  631. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  632. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  636. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  637. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  638. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  639. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  640. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  641. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  642. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  643. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  644. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  646. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  647. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  648. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  649. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  650. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  651. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  652. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  653. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  654. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  656. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  657. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  658. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  659. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  660. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  661. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  662. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  663. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  664. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  665. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  666. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  667. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  668. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  669. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  670. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  671. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  672. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  673. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  674. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  675. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  676. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  677. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  678. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  679. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  680. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  681. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
  682. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  683. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  684. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  685. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  686. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
  687. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  688. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
  689. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
  690. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  691. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  692. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  693. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  694. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  695. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  696. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  697. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  698. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  699. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  700. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  701. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  702. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  703. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  704. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  705. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  706. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  707. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  708. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  709. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  710. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  711. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  712. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  713. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  714. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  715. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  716. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  717. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  718. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  719. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  720. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  721. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  722. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  723. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  724. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  725. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  726. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  727. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  728. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  729. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  730. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  731. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  732. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  733. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  734. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  735. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  736. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  737. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  738. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  739. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  740. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  741. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  742. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  743. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  744. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  745. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  746. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  747. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  748. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  749. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  750. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  751. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  752. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  753. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  754. package/app/.next-cli-build/server/app/index.html +1 -1
  755. package/app/.next-cli-build/server/app/index.rsc +4 -4
  756. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  757. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  758. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  759. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  760. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  761. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  762. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  763. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  764. package/app/.next-cli-build/server/app/landing.html +1 -1
  765. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  766. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  767. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  768. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  769. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  770. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  771. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  772. package/app/.next-cli-build/server/app/login/page.js +2 -2
  773. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  774. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  775. package/app/.next-cli-build/server/app/login.html +1 -1
  776. package/app/.next-cli-build/server/app/login.rsc +5 -5
  777. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  778. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  779. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  780. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  781. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  782. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  783. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  784. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  785. package/app/.next-cli-build/server/app/page.js +2 -2
  786. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  787. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  788. package/app/.next-cli-build/server/app-paths-manifest.json +44 -32
  789. package/app/.next-cli-build/server/chunks/1012.js +1 -0
  790. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  791. package/app/.next-cli-build/server/chunks/1482.js +2 -2
  792. package/app/.next-cli-build/server/chunks/1531.js +1 -1
  793. package/app/.next-cli-build/server/chunks/1847.js +1 -1
  794. package/app/.next-cli-build/server/chunks/2021.js +1 -0
  795. package/app/.next-cli-build/server/chunks/2221.js +300 -0
  796. package/app/.next-cli-build/server/chunks/2348.js +1 -0
  797. package/app/.next-cli-build/server/chunks/2892.js +1 -1
  798. package/app/.next-cli-build/server/chunks/2898.js +2 -2
  799. package/app/.next-cli-build/server/chunks/3148.js +1 -1
  800. package/app/.next-cli-build/server/chunks/3245.js +1 -0
  801. package/app/.next-cli-build/server/chunks/3311.js +9 -0
  802. package/app/.next-cli-build/server/chunks/3433.js +6 -6
  803. package/app/.next-cli-build/server/chunks/3547.js +1 -1
  804. package/app/.next-cli-build/server/chunks/3583.js +3 -0
  805. package/app/.next-cli-build/server/chunks/3593.js +2 -2
  806. package/app/.next-cli-build/server/chunks/369.js +29 -23
  807. package/app/.next-cli-build/server/chunks/3698.js +9 -0
  808. package/app/.next-cli-build/server/chunks/3886.js +1 -1
  809. package/app/.next-cli-build/server/chunks/3977.js +2 -0
  810. package/app/.next-cli-build/server/chunks/412.js +1 -1
  811. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  812. package/app/.next-cli-build/server/chunks/4485.js +1 -1
  813. package/app/.next-cli-build/server/chunks/4574.js +1 -1
  814. package/app/.next-cli-build/server/chunks/4739.js +2 -2
  815. package/app/.next-cli-build/server/chunks/4755.js +1 -0
  816. package/app/.next-cli-build/server/chunks/4780.js +2 -2
  817. package/app/.next-cli-build/server/chunks/4803.js +2 -2
  818. package/app/.next-cli-build/server/chunks/4807.js +1 -1
  819. package/app/.next-cli-build/server/chunks/4827.js +1 -0
  820. package/app/.next-cli-build/server/chunks/4878.js +1 -0
  821. package/app/.next-cli-build/server/chunks/5011.js +1 -1
  822. package/app/.next-cli-build/server/chunks/507.js +2 -2
  823. package/app/.next-cli-build/server/chunks/5209.js +3 -0
  824. package/app/.next-cli-build/server/chunks/5258.js +2 -2
  825. package/app/.next-cli-build/server/chunks/5364.js +1 -0
  826. package/app/.next-cli-build/server/chunks/5681.js +1 -0
  827. package/app/.next-cli-build/server/chunks/5822.js +1 -0
  828. package/app/.next-cli-build/server/chunks/5875.js +1 -1
  829. package/app/.next-cli-build/server/chunks/595.js +1 -1
  830. package/app/.next-cli-build/server/chunks/6030.js +1 -0
  831. package/app/.next-cli-build/server/chunks/615.js +1 -1
  832. package/app/.next-cli-build/server/chunks/6252.js +2 -2
  833. package/app/.next-cli-build/server/chunks/6535.js +1 -1
  834. package/app/.next-cli-build/server/chunks/6790.js +1 -0
  835. package/app/.next-cli-build/server/chunks/6816.js +40 -0
  836. package/app/.next-cli-build/server/chunks/6892.js +1 -0
  837. package/app/.next-cli-build/server/chunks/6947.js +1 -1
  838. package/app/.next-cli-build/server/chunks/698.js +2 -2
  839. package/app/.next-cli-build/server/chunks/7239.js +2 -2
  840. package/app/.next-cli-build/server/chunks/7306.js +221 -0
  841. package/app/.next-cli-build/server/chunks/7321.js +1 -0
  842. package/app/.next-cli-build/server/chunks/7362.js +2 -2
  843. package/app/.next-cli-build/server/chunks/7603.js +1 -1
  844. package/app/.next-cli-build/server/chunks/7677.js +1 -0
  845. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  846. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  847. package/app/.next-cli-build/server/chunks/7965.js +2 -2
  848. package/app/.next-cli-build/server/chunks/8062.js +2 -2
  849. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  850. package/app/.next-cli-build/server/chunks/823.js +1 -0
  851. package/app/.next-cli-build/server/chunks/8243.js +4 -4
  852. package/app/.next-cli-build/server/chunks/8306.js +1 -0
  853. package/app/.next-cli-build/server/chunks/8459.js +1 -0
  854. package/app/.next-cli-build/server/chunks/8469.js +2 -2
  855. package/app/.next-cli-build/server/chunks/8520.js +2 -2
  856. package/app/.next-cli-build/server/chunks/8586.js +9 -0
  857. package/app/.next-cli-build/server/chunks/880.js +30 -0
  858. package/app/.next-cli-build/server/chunks/8946.js +1 -1
  859. package/app/.next-cli-build/server/chunks/8976.js +1 -1
  860. package/app/.next-cli-build/server/chunks/9062.js +1 -0
  861. package/app/.next-cli-build/server/chunks/9217.js +1 -1
  862. package/app/.next-cli-build/server/chunks/9303.js +1 -1
  863. package/app/.next-cli-build/server/chunks/9485.js +1 -1
  864. package/app/.next-cli-build/server/chunks/{7054.js → 9637.js} +1 -1
  865. package/app/.next-cli-build/server/chunks/9718.js +1 -1
  866. package/app/.next-cli-build/server/chunks/9865.js +1 -0
  867. package/app/.next-cli-build/server/functions-config-manifest.json +5 -0
  868. package/app/.next-cli-build/server/instrumentation.js +1 -1
  869. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  870. package/app/.next-cli-build/server/middleware.js +6 -6
  871. package/app/.next-cli-build/server/pages/404.html +1 -1
  872. package/app/.next-cli-build/server/pages/500.html +1 -1
  873. package/app/.next-cli-build/static/chunks/{1321-04a5de50abe02d2f.js → 1321-a626f5925042a939.js} +1 -1
  874. package/app/.next-cli-build/static/chunks/{2595-2d703efb995163a7.js → 2595-96495a92ee7de154.js} +7 -7
  875. package/app/.next-cli-build/static/chunks/5497-f328c487bfcc0d0e.js +17 -0
  876. package/app/.next-cli-build/static/chunks/8105-b488efe0a830e2a7.js +1 -0
  877. package/app/.next-cli-build/static/chunks/9227-bb7d883d6cd67632.js +3 -0
  878. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-69c121887e473261.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mcp-gateway/error-8838c952fdd7eda6.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mcp-gateway/keys/page-f08a0a114048e6a2.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mcp-gateway/page-5d48568153ad3d87.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mcp-gateway/servers/page-64874ce3b8ea9143.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-85950757e9505005.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c2fb956227849ef3.js +27 -0
  885. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-73fe7ee1ecd1bd52.js → page-e38b4f8ebf6a3d47.js} +1 -1
  886. package/app/.next-cli-build/static/chunks/app/_global-error/page-25eef5877853a92d.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-25eef5877853a92d.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-25eef5877853a92d.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-25eef5877853a92d.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-25eef5877853a92d.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-25eef5877853a92d.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-25eef5877853a92d.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-25eef5877853a92d.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-25eef5877853a92d.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-25eef5877853a92d.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-25eef5877853a92d.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-25eef5877853a92d.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/changelog/route-25eef5877853a92d.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-25eef5877853a92d.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-25eef5877853a92d.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-25eef5877853a92d.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-25eef5877853a92d.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-25eef5877853a92d.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-25eef5877853a92d.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-25eef5877853a92d.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-25eef5877853a92d.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-25eef5877853a92d.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-25eef5877853a92d.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-25eef5877853a92d.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-25eef5877853a92d.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-25eef5877853a92d.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-25eef5877853a92d.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-25eef5877853a92d.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-25eef5877853a92d.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-25eef5877853a92d.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-25eef5877853a92d.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-25eef5877853a92d.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-25eef5877853a92d.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-25eef5877853a92d.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-25eef5877853a92d.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-25eef5877853a92d.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-25eef5877853a92d.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-25eef5877853a92d.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-25eef5877853a92d.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-25eef5877853a92d.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/combos/route-25eef5877853a92d.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-25eef5877853a92d.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-25eef5877853a92d.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-25eef5877853a92d.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-25eef5877853a92d.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-25eef5877853a92d.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-25eef5877853a92d.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-25eef5877853a92d.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-25eef5877853a92d.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/health/route-25eef5877853a92d.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/init/route-25eef5877853a92d.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-25eef5877853a92d.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-25eef5877853a92d.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/keys/route-25eef5877853a92d.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/locale/route-25eef5877853a92d.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-25eef5877853a92d.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-25eef5877853a92d.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-25eef5877853a92d.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-25eef5877853a92d.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-25eef5877853a92d.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-25eef5877853a92d.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-25eef5877853a92d.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-25eef5877853a92d.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-25eef5877853a92d.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-25eef5877853a92d.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-25eef5877853a92d.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-25eef5877853a92d.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-25eef5877853a92d.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-25eef5877853a92d.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-25eef5877853a92d.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-25eef5877853a92d.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-25eef5877853a92d.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-25eef5877853a92d.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-25eef5877853a92d.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-25eef5877853a92d.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-25eef5877853a92d.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/api/models/route-25eef5877853a92d.js +1 -0
  963. package/app/.next-cli-build/static/chunks/app/api/models/test/route-25eef5877853a92d.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-25eef5877853a92d.js +1 -0
  965. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-25eef5877853a92d.js +1 -0
  966. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-25eef5877853a92d.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-25eef5877853a92d.js +1 -0
  968. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-25eef5877853a92d.js +1 -0
  969. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-25eef5877853a92d.js +1 -0
  970. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-25eef5877853a92d.js +1 -0
  971. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-25eef5877853a92d.js +1 -0
  972. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-25eef5877853a92d.js +1 -0
  973. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-25eef5877853a92d.js +1 -0
  974. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-25eef5877853a92d.js +1 -0
  975. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-25eef5877853a92d.js +1 -0
  976. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-25eef5877853a92d.js +1 -0
  977. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-25eef5877853a92d.js +1 -0
  978. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-25eef5877853a92d.js +1 -0
  979. package/app/.next-cli-build/static/chunks/app/api/pricing/route-25eef5877853a92d.js +1 -0
  980. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-25eef5877853a92d.js +1 -0
  981. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-25eef5877853a92d.js +1 -0
  982. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-25eef5877853a92d.js +1 -0
  983. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-25eef5877853a92d.js +1 -0
  984. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-25eef5877853a92d.js +1 -0
  985. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-25eef5877853a92d.js +1 -0
  986. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-25eef5877853a92d.js +1 -0
  987. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-25eef5877853a92d.js +1 -0
  988. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-25eef5877853a92d.js +1 -0
  989. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-25eef5877853a92d.js +1 -0
  990. package/app/.next-cli-build/static/chunks/app/api/providers/route-25eef5877853a92d.js +1 -0
  991. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-25eef5877853a92d.js +1 -0
  992. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-25eef5877853a92d.js +1 -0
  993. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-25eef5877853a92d.js +1 -0
  994. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-25eef5877853a92d.js +1 -0
  995. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-25eef5877853a92d.js +1 -0
  996. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-25eef5877853a92d.js +1 -0
  997. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-25eef5877853a92d.js +1 -0
  998. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-25eef5877853a92d.js +1 -0
  999. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-25eef5877853a92d.js +1 -0
  1000. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-25eef5877853a92d.js +1 -0
  1001. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-25eef5877853a92d.js +1 -0
  1002. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-25eef5877853a92d.js +1 -0
  1003. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-25eef5877853a92d.js +1 -0
  1004. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-25eef5877853a92d.js +1 -0
  1005. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-25eef5877853a92d.js +1 -0
  1006. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-25eef5877853a92d.js +1 -0
  1007. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-25eef5877853a92d.js +1 -0
  1008. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-25eef5877853a92d.js +1 -0
  1009. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-25eef5877853a92d.js +1 -0
  1010. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-25eef5877853a92d.js +1 -0
  1011. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-25eef5877853a92d.js +1 -0
  1012. package/app/.next-cli-build/static/chunks/app/api/settings/route-25eef5877853a92d.js +1 -0
  1013. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-25eef5877853a92d.js +1 -0
  1014. package/app/.next-cli-build/static/chunks/app/api/tags/route-25eef5877853a92d.js +1 -0
  1015. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-25eef5877853a92d.js +1 -0
  1016. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-25eef5877853a92d.js +1 -0
  1017. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-25eef5877853a92d.js +1 -0
  1018. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-25eef5877853a92d.js +1 -0
  1019. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-25eef5877853a92d.js +1 -0
  1020. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-25eef5877853a92d.js +1 -0
  1021. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-25eef5877853a92d.js +1 -0
  1022. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-25eef5877853a92d.js +1 -0
  1023. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-25eef5877853a92d.js +1 -0
  1024. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-25eef5877853a92d.js +1 -0
  1025. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-25eef5877853a92d.js +1 -0
  1026. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-25eef5877853a92d.js +1 -0
  1027. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-25eef5877853a92d.js +1 -0
  1028. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-25eef5877853a92d.js +1 -0
  1029. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-25eef5877853a92d.js +1 -0
  1030. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-25eef5877853a92d.js +1 -0
  1031. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-25eef5877853a92d.js +1 -0
  1032. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-25eef5877853a92d.js +1 -0
  1033. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-25eef5877853a92d.js +1 -0
  1034. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-25eef5877853a92d.js +1 -0
  1035. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-25eef5877853a92d.js +1 -0
  1036. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-25eef5877853a92d.js +1 -0
  1037. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-25eef5877853a92d.js +1 -0
  1038. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-25eef5877853a92d.js +1 -0
  1039. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-25eef5877853a92d.js +1 -0
  1040. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-25eef5877853a92d.js +1 -0
  1041. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-25eef5877853a92d.js +1 -0
  1042. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-25eef5877853a92d.js +1 -0
  1043. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-25eef5877853a92d.js +1 -0
  1044. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-25eef5877853a92d.js +1 -0
  1045. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-25eef5877853a92d.js +1 -0
  1046. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-25eef5877853a92d.js +1 -0
  1047. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-25eef5877853a92d.js +1 -0
  1048. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-25eef5877853a92d.js +1 -0
  1049. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-25eef5877853a92d.js +1 -0
  1050. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-25eef5877853a92d.js +1 -0
  1051. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-25eef5877853a92d.js +1 -0
  1052. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-25eef5877853a92d.js +1 -0
  1053. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-25eef5877853a92d.js +1 -0
  1054. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-25eef5877853a92d.js +1 -0
  1055. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-25eef5877853a92d.js +1 -0
  1056. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-25eef5877853a92d.js +1 -0
  1057. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-25eef5877853a92d.js +1 -0
  1058. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-25eef5877853a92d.js +1 -0
  1059. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-25eef5877853a92d.js +1 -0
  1060. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-25eef5877853a92d.js +1 -0
  1061. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-25eef5877853a92d.js +1 -0
  1062. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-25eef5877853a92d.js +1 -0
  1063. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-25eef5877853a92d.js +1 -0
  1064. package/app/.next-cli-build/static/chunks/app/api/v1/route-25eef5877853a92d.js +1 -0
  1065. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-25eef5877853a92d.js +1 -0
  1066. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-25eef5877853a92d.js +1 -0
  1067. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-25eef5877853a92d.js +1 -0
  1068. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-25eef5877853a92d.js +1 -0
  1069. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-25eef5877853a92d.js +1 -0
  1070. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-25eef5877853a92d.js +1 -0
  1071. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-25eef5877853a92d.js +1 -0
  1072. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-25eef5877853a92d.js +1 -0
  1073. package/app/.next-cli-build/static/chunks/app/api/version/route-25eef5877853a92d.js +1 -0
  1074. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-25eef5877853a92d.js +1 -0
  1075. package/app/.next-cli-build/static/chunks/app/api/version/update/route-25eef5877853a92d.js +1 -0
  1076. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-25eef5877853a92d.js +1 -0
  1077. package/app/.next-cli-build/static/chunks/app/page-25eef5877853a92d.js +1 -0
  1078. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-25eef5877853a92d.js +1 -0
  1079. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-25eef5877853a92d.js +1 -0
  1080. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-25eef5877853a92d.js +1 -0
  1081. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-25eef5877853a92d.js +1 -0
  1082. package/app/.next-cli-build/static/css/23be8b98c2bbb37d.css +1 -0
  1083. package/app/.next-cli-build/static/qsXzWv5JlaT6jDweqTxnT/_buildManifest.js +1 -0
  1084. package/app/CHANGELOG.md +22 -0
  1085. package/app/package.json +5 -3
  1086. package/app/public/CHANGELOG.md +22 -0
  1087. package/app/src/lib/mcp/gateway/aggregator.js +96 -0
  1088. package/app/src/lib/tokenizer.js +104 -0
  1089. package/app/src/lib/updater/updater.js +1 -1
  1090. package/app/src/mitm/server.js +1 -1
  1091. package/app/src/sse/services/backgroundTokenRefresh.js +28 -17
  1092. package/package.json +1 -1
  1093. package/src/cli/menus/providers.js +2 -1
  1094. package/app/.next-cli-build/server/chunks/1329.js +0 -1
  1095. package/app/.next-cli-build/server/chunks/1714.js +0 -1
  1096. package/app/.next-cli-build/server/chunks/2177.js +0 -1
  1097. package/app/.next-cli-build/server/chunks/2382.js +0 -1
  1098. package/app/.next-cli-build/server/chunks/2547.js +0 -30
  1099. package/app/.next-cli-build/server/chunks/290.js +0 -1
  1100. package/app/.next-cli-build/server/chunks/3647.js +0 -1
  1101. package/app/.next-cli-build/server/chunks/4562.js +0 -1
  1102. package/app/.next-cli-build/server/chunks/4611.js +0 -9
  1103. package/app/.next-cli-build/server/chunks/4704.js +0 -3
  1104. package/app/.next-cli-build/server/chunks/476.js +0 -1
  1105. package/app/.next-cli-build/server/chunks/4928.js +0 -1
  1106. package/app/.next-cli-build/server/chunks/4999.js +0 -1
  1107. package/app/.next-cli-build/server/chunks/5083.js +0 -9
  1108. package/app/.next-cli-build/server/chunks/5129.js +0 -39
  1109. package/app/.next-cli-build/server/chunks/6112.js +0 -1
  1110. package/app/.next-cli-build/server/chunks/6436.js +0 -1
  1111. package/app/.next-cli-build/server/chunks/7413.js +0 -2
  1112. package/app/.next-cli-build/server/chunks/7438.js +0 -221
  1113. package/app/.next-cli-build/server/chunks/7467.js +0 -1
  1114. package/app/.next-cli-build/server/chunks/7734.js +0 -1
  1115. package/app/.next-cli-build/server/chunks/7785.js +0 -9
  1116. package/app/.next-cli-build/server/chunks/8326.js +0 -1
  1117. package/app/.next-cli-build/server/chunks/88.js +0 -1
  1118. package/app/.next-cli-build/server/chunks/8901.js +0 -300
  1119. package/app/.next-cli-build/server/chunks/9043.js +0 -1
  1120. package/app/.next-cli-build/server/chunks/9276.js +0 -1
  1121. package/app/.next-cli-build/static/GcwAw1-IZk3PMzf0bTeWl/_buildManifest.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/5497-675887789aaf2c43.js +0 -17
  1123. package/app/.next-cli-build/static/chunks/8105-e46089480e63b1a9.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/9227-8c6b5f001d34748c.js +0 -3
  1125. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-78c78a3108fbe60e.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-e996175d559e9e5a.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f3d9a84f9e04119e.js +0 -27
  1128. package/app/.next-cli-build/static/chunks/app/_global-error/page-b71f397798104162.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-b71f397798104162.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-b71f397798104162.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-b71f397798104162.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-b71f397798104162.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-b71f397798104162.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-b71f397798104162.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-b71f397798104162.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-b71f397798104162.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-b71f397798104162.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-b71f397798104162.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-b71f397798104162.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/changelog/route-b71f397798104162.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-b71f397798104162.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-b71f397798104162.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-b71f397798104162.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-b71f397798104162.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-b71f397798104162.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-b71f397798104162.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-b71f397798104162.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-b71f397798104162.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-b71f397798104162.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-b71f397798104162.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-b71f397798104162.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-b71f397798104162.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-b71f397798104162.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-b71f397798104162.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-b71f397798104162.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-b71f397798104162.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-b71f397798104162.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-b71f397798104162.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-b71f397798104162.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-b71f397798104162.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-b71f397798104162.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-b71f397798104162.js +0 -1
  1163. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-b71f397798104162.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-b71f397798104162.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-b71f397798104162.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-b71f397798104162.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-b71f397798104162.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/combos/route-b71f397798104162.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-b71f397798104162.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-b71f397798104162.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-b71f397798104162.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-b71f397798104162.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-b71f397798104162.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-b71f397798104162.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-b71f397798104162.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-b71f397798104162.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/api/health/route-b71f397798104162.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/app/api/init/route-b71f397798104162.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-b71f397798104162.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-b71f397798104162.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/app/api/keys/route-b71f397798104162.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/app/api/locale/route-b71f397798104162.js +0 -1
  1183. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-b71f397798104162.js +0 -1
  1184. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-b71f397798104162.js +0 -1
  1185. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-b71f397798104162.js +0 -1
  1186. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-b71f397798104162.js +0 -1
  1187. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-b71f397798104162.js +0 -1
  1188. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-b71f397798104162.js +0 -1
  1189. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-b71f397798104162.js +0 -1
  1190. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-b71f397798104162.js +0 -1
  1191. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-b71f397798104162.js +0 -1
  1192. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-b71f397798104162.js +0 -1
  1193. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-b71f397798104162.js +0 -1
  1194. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-b71f397798104162.js +0 -1
  1195. package/app/.next-cli-build/static/chunks/app/api/models/route-b71f397798104162.js +0 -1
  1196. package/app/.next-cli-build/static/chunks/app/api/models/test/route-b71f397798104162.js +0 -1
  1197. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-b71f397798104162.js +0 -1
  1198. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-b71f397798104162.js +0 -1
  1199. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-b71f397798104162.js +0 -1
  1200. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-b71f397798104162.js +0 -1
  1201. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-b71f397798104162.js +0 -1
  1202. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-b71f397798104162.js +0 -1
  1203. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-b71f397798104162.js +0 -1
  1204. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-b71f397798104162.js +0 -1
  1205. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-b71f397798104162.js +0 -1
  1206. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-b71f397798104162.js +0 -1
  1207. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-b71f397798104162.js +0 -1
  1208. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-b71f397798104162.js +0 -1
  1209. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-b71f397798104162.js +0 -1
  1210. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-b71f397798104162.js +0 -1
  1211. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-b71f397798104162.js +0 -1
  1212. package/app/.next-cli-build/static/chunks/app/api/pricing/route-b71f397798104162.js +0 -1
  1213. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-b71f397798104162.js +0 -1
  1214. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-b71f397798104162.js +0 -1
  1215. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-b71f397798104162.js +0 -1
  1216. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-b71f397798104162.js +0 -1
  1217. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-b71f397798104162.js +0 -1
  1218. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-b71f397798104162.js +0 -1
  1219. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-b71f397798104162.js +0 -1
  1220. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-b71f397798104162.js +0 -1
  1221. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-b71f397798104162.js +0 -1
  1222. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-b71f397798104162.js +0 -1
  1223. package/app/.next-cli-build/static/chunks/app/api/providers/route-b71f397798104162.js +0 -1
  1224. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-b71f397798104162.js +0 -1
  1225. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-b71f397798104162.js +0 -1
  1226. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-b71f397798104162.js +0 -1
  1227. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-b71f397798104162.js +0 -1
  1228. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-b71f397798104162.js +0 -1
  1229. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-b71f397798104162.js +0 -1
  1230. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-b71f397798104162.js +0 -1
  1231. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-b71f397798104162.js +0 -1
  1232. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-b71f397798104162.js +0 -1
  1233. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-b71f397798104162.js +0 -1
  1234. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-b71f397798104162.js +0 -1
  1235. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-b71f397798104162.js +0 -1
  1236. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-b71f397798104162.js +0 -1
  1237. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-b71f397798104162.js +0 -1
  1238. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-b71f397798104162.js +0 -1
  1239. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-b71f397798104162.js +0 -1
  1240. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-b71f397798104162.js +0 -1
  1241. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-b71f397798104162.js +0 -1
  1242. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-b71f397798104162.js +0 -1
  1243. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-b71f397798104162.js +0 -1
  1244. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-b71f397798104162.js +0 -1
  1245. package/app/.next-cli-build/static/chunks/app/api/settings/route-b71f397798104162.js +0 -1
  1246. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-b71f397798104162.js +0 -1
  1247. package/app/.next-cli-build/static/chunks/app/api/tags/route-b71f397798104162.js +0 -1
  1248. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-b71f397798104162.js +0 -1
  1249. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-b71f397798104162.js +0 -1
  1250. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-b71f397798104162.js +0 -1
  1251. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-b71f397798104162.js +0 -1
  1252. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-b71f397798104162.js +0 -1
  1253. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-b71f397798104162.js +0 -1
  1254. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-b71f397798104162.js +0 -1
  1255. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-b71f397798104162.js +0 -1
  1256. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-b71f397798104162.js +0 -1
  1257. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-b71f397798104162.js +0 -1
  1258. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-b71f397798104162.js +0 -1
  1259. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-b71f397798104162.js +0 -1
  1260. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-b71f397798104162.js +0 -1
  1261. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-b71f397798104162.js +0 -1
  1262. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-b71f397798104162.js +0 -1
  1263. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-b71f397798104162.js +0 -1
  1264. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-b71f397798104162.js +0 -1
  1265. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-b71f397798104162.js +0 -1
  1266. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-b71f397798104162.js +0 -1
  1267. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-b71f397798104162.js +0 -1
  1268. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-b71f397798104162.js +0 -1
  1269. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-b71f397798104162.js +0 -1
  1270. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-b71f397798104162.js +0 -1
  1271. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-b71f397798104162.js +0 -1
  1272. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-b71f397798104162.js +0 -1
  1273. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-b71f397798104162.js +0 -1
  1274. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-b71f397798104162.js +0 -1
  1275. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-b71f397798104162.js +0 -1
  1276. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-b71f397798104162.js +0 -1
  1277. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-b71f397798104162.js +0 -1
  1278. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-b71f397798104162.js +0 -1
  1279. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-b71f397798104162.js +0 -1
  1280. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-b71f397798104162.js +0 -1
  1281. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-b71f397798104162.js +0 -1
  1282. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-b71f397798104162.js +0 -1
  1283. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-b71f397798104162.js +0 -1
  1284. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-b71f397798104162.js +0 -1
  1285. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-b71f397798104162.js +0 -1
  1286. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-b71f397798104162.js +0 -1
  1287. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-b71f397798104162.js +0 -1
  1288. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-b71f397798104162.js +0 -1
  1289. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-b71f397798104162.js +0 -1
  1290. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-b71f397798104162.js +0 -1
  1291. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-b71f397798104162.js +0 -1
  1292. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-b71f397798104162.js +0 -1
  1293. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-b71f397798104162.js +0 -1
  1294. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-b71f397798104162.js +0 -1
  1295. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-b71f397798104162.js +0 -1
  1296. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-b71f397798104162.js +0 -1
  1297. package/app/.next-cli-build/static/chunks/app/api/v1/route-b71f397798104162.js +0 -1
  1298. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-b71f397798104162.js +0 -1
  1299. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-b71f397798104162.js +0 -1
  1300. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-b71f397798104162.js +0 -1
  1301. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-b71f397798104162.js +0 -1
  1302. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-b71f397798104162.js +0 -1
  1303. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-b71f397798104162.js +0 -1
  1304. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-b71f397798104162.js +0 -1
  1305. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-b71f397798104162.js +0 -1
  1306. package/app/.next-cli-build/static/chunks/app/api/version/route-b71f397798104162.js +0 -1
  1307. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-b71f397798104162.js +0 -1
  1308. package/app/.next-cli-build/static/chunks/app/api/version/update/route-b71f397798104162.js +0 -1
  1309. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-b71f397798104162.js +0 -1
  1310. package/app/.next-cli-build/static/chunks/app/page-b71f397798104162.js +0 -1
  1311. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-b71f397798104162.js +0 -1
  1312. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-b71f397798104162.js +0 -1
  1313. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-b71f397798104162.js +0 -1
  1314. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-b71f397798104162.js +0 -1
  1315. package/app/.next-cli-build/static/css/abc246bcd6eb079c.css +0 -1
  1316. /package/app/.next-cli-build/static/{GcwAw1-IZk3PMzf0bTeWl → qsXzWv5JlaT6jDweqTxnT}/_ssgManifest.js +0 -0
@@ -1,3 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9227],{15536:(e,t,s)=>{"use strict";s.d(t,{Cp:()=>n,Hx:()=>r,Iv:()=>c,Nv:()=>u,RL:()=>d,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"}],r=2e3,n=3e5,i=5e3,o=5,d=1e4,c=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}],u=[{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"}]},20242:(e,t,s)=>{"use strict";s.d(t,{default:()=>j});var a=s(95155),l=s(12115),r=s(14051),n=s.n(r),i=s(35497),o=s(11059),d=s(15536);async function c(e){if(!e)return!1;try{return(await fetch(`${e}/api/health`,{mode:"cors",cache:"no-store",signal:AbortSignal.timeout(d.Iv)})).ok}catch{return!1}}async function m(...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 u({label:e,url:t,copyId:s,copied:l,onCopy:r,badge:n,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"===n||"TS"===n?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:e}),(0,a.jsx)(i.pd,{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 p({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})]})}let b=[{label:"100K",value:"100000"},{label:"500K",value:"500000"},{label:"1M",value:"1000000"},{label:"5M",value:"5000000"},{label:"10M",value:"10000000"}];function y(e){let t=Math.max(0,Number(e)||0);return t>=1e6?`${(t/1e6).toFixed(+(t%1e6!=0))}M`:t>=1e3?`${(t/1e3).toFixed(+(t%1e3!=0))}K`:String(t)}function g({used:e,limit:t}){let s=Math.max(1,Number(t)||1),l=Math.max(0,Number(e)||0),r=Math.min(100,Math.round(l/s*100)),n=Math.max(0,s-l),i=r>=90?{bar:"bg-red-500",text:"text-red-600 dark:text-red-400"}:r>=75?{bar:"bg-amber-500",text:"text-amber-600 dark:text-amber-400"}:{bar:"bg-emerald-500",text:"text-text-muted"};return(0,a.jsxs)("div",{className:"mt-2 max-w-sm",title:`${y(l)} of ${y(s)} tokens used`,children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center justify-between gap-3 text-[11px]",children:[(0,a.jsxs)("span",{className:i.text,children:[r,"% used"]}),(0,a.jsxs)("span",{className:"text-text-muted",children:[y(n)," remaining"]})]}),(0,a.jsx)("div",{className:"h-1.5 overflow-hidden rounded-full bg-black/10 dark:bg-white/10",role:"progressbar","aria-label":`Token usage: ${r}% used, ${y(n)} remaining`,"aria-valuemin":0,"aria-valuemax":s,"aria-valuenow":Math.min(l,s),children:(0,a.jsx)("div",{className:`h-full rounded-full transition-[width] duration-300 ${i.bar}`,style:{width:`${r}%`}})})]})}function f({apiKey:e,activeProviders:t,modelAliases:s,onClose:r,onSave:n}){let[o,d]=(0,l.useState)(e.expiresAt?e.expiresAt.slice(0,16):""),[c,m]=(0,l.useState)(e.allowedModels||[]),[u,x]=(0,l.useState)(""),[p,h]=(0,l.useState)(null==e.tokenLimit?"unlimited":"unchanged"),[g,j]=(0,l.useState)(!1),[v,k]=(0,l.useState)(!1),w=null!=e.tokenLimit,N=async()=>{k(!0),await n({expiresAt:o||null,allowedModels:c,..."unlimited"===p?{tokenLimit:null}:u?{[w?"tokenLimitIncrement":"tokenLimit"]:u}:{}}),k(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.aF,{isOpen:!0,onClose:r,title:`Edit ${e.name}`,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.pd,{label:"Expires at (optional)",type:"datetime-local",value:o,onChange:e=>d(e.target.value),hint:"Leave blank for no expiry."}),(0,a.jsx)(i.pd,{label:w?"Add tokens":"Set token limit",type:"number",min:"1",step:"1",value:u,onChange:e=>{let t=e.target.value;x(t),h(t?"amount":w?"unchanged":"unlimited")},placeholder:w?"e.g. 500000":"e.g. 1000000",hint:w?`Added to the current ${y(e.tokenLimit)} limit; usage is preserved.`:"Choose Unlimited to remove the limit."}),(0,a.jsxs)("div",{className:"-mt-2 flex flex-wrap gap-1.5","aria-label":"Token limit presets",children:[b.map(e=>{let t="amount"===p&&u===e.value;return(0,a.jsx)("button",{type:"button",onClick:()=>{x(e.value),h("amount")},"aria-pressed":t,className:`rounded-full border px-2.5 py-1 text-xs font-medium transition-colors ${t?"border-primary bg-primary text-white":"border-border bg-surface-2 text-text-muted hover:border-primary/50 hover:text-primary"}`,children:e.label},e.value)}),(0,a.jsx)("button",{type:"button",onClick:()=>{x(""),h("unlimited")},"aria-pressed":"unlimited"===p,className:`rounded-full border px-2.5 py-1 text-xs font-medium transition-colors ${"unlimited"===p?"border-primary bg-primary text-white":"border-border bg-surface-2 text-text-muted hover:border-primary/50 hover:text-primary"}`,children:"Unlimited"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-1.5 block text-sm font-medium text-text-main",children:"Allowed models"}),(0,a.jsx)("div",{className:"flex min-h-12 flex-wrap gap-1 rounded-lg border border-border bg-surface-2 p-2",children:c.length?c.map(e=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md bg-primary/10 px-2 py-1 text-xs text-primary",children:[(0,a.jsx)("span",{children:e}),(0,a.jsx)("button",{type:"button",onClick:()=>m(t=>t.filter(t=>t!==e)),"aria-label":`Remove ${e}`,className:"material-symbols-outlined text-[14px]",children:"close"})]},e)):(0,a.jsx)("span",{className:"p-1 text-xs text-text-muted",children:"All models allowed"})}),(0,a.jsxs)("button",{type:"button",onClick:()=>j(!0),className:"mt-2 flex w-full items-center justify-center gap-1 rounded-lg border border-dashed border-black/10 py-2 text-xs font-medium text-primary dark:border-white/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"edit"}),"Edit model access"]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:N,fullWidth:!0,disabled:v,children:v?"Saving...":"Save changes"}),(0,a.jsx)(i.$n,{onClick:r,variant:"ghost",fullWidth:!0,disabled:v,children:"Cancel"})]})]})}),g&&(0,a.jsx)(i.rq,{isOpen:!0,onClose:()=>j(!1),onSelect:e=>m(t=>t.includes(e.value)?t:[...t,e.value]),onDeselect:e=>m(t=>t.filter(t=>t!==e.value)),activeProviders:t,modelAliases:s,addedModelValues:c,closeOnSelect:!1,title:"Edit allowed models"})]})}function j({machineId:e}){let[t,s]=(0,l.useState)([]),[r,n]=(0,l.useState)(!0),[y,v]=(0,l.useState)(!1),[k,w]=(0,l.useState)(""),[N,C]=(0,l.useState)(""),[S,T]=(0,l.useState)(""),[$,P]=(0,l.useState)([]),[E,A]=(0,l.useState)(!1),[_,U]=(0,l.useState)([]),[L,O]=(0,l.useState)({}),[F,I]=(0,l.useState)(null),[R,D]=(0,l.useState)(null),[q,M]=(0,l.useState)(null),[W,K]=(0,l.useState)(!1),[z,H]=(0,l.useState)(!0),[J,B]=(0,l.useState)(!0),[V,Q]=(0,l.useState)(!1),[X,Z]=(0,l.useState)(!0),[G,Y]=(0,l.useState)(!1),[ee,et]=(0,l.useState)(!1),[es,ea]=(0,l.useState)(""),[el,er]=(0,l.useState)(""),[en,ei]=(0,l.useState)(!1),[eo,ed]=(0,l.useState)(""),[ec,em]=(0,l.useState)(null),[eu,ex]=(0,l.useState)(!1),[ep,eh]=(0,l.useState)(!1),[eb,ey]=(0,l.useState)(!1),[eg,ef]=(0,l.useState)(!1),[ej,ev]=(0,l.useState)(""),[ek,ew]=(0,l.useState)(!1),[eN,eC]=(0,l.useState)(""),[eS,eT]=(0,l.useState)(null),[e$,eP]=(0,l.useState)(""),[eE,eA]=(0,l.useState)(""),[e_,eU]=(0,l.useState)(null),[eL,eO]=(0,l.useState)(!1),[eF,eI]=(0,l.useState)([]),[eR,eD]=(0,l.useState)(""),[eq,eM]=(0,l.useState)(!1),[eW,eK]=(0,l.useState)(!1),[ez,eH]=(0,l.useState)(!1),eJ=(0,l.useRef)(null),eB=(0,l.useRef)(0),eV=(0,l.useRef)(0),eQ=(0,l.useRef)(!1),eX=(0,l.useRef)(!1),eZ=(0,l.useRef)(!1),eG=(0,l.useRef)(!1),[eY,e0]=(0,l.useState)(!1),[e1,e5]=(0,l.useState)(!1),[e2,e4]=(0,l.useState)(new Set),[e3,e6]=(0,l.useState)(!1);(0,l.useEffect)(()=>{e6(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]);let{copied:e8,copy:e7}=(0,o.C)(),e9=!z||!J,te=z?"Change the default dashboard password before activating the tunnel.":'Enable "Require login" and set a custom password before activating the tunnel.';(0,l.useEffect)(()=>{eJ.current&&(eJ.current.scrollTop=eJ.current.scrollHeight)},[eF]),(0,l.useEffect)(()=>{tn(),ta()},[]),(0,l.useEffect)(()=>{if(!y&&!R)return;let e=!1;return Promise.all([fetch("/api/providers"),fetch("/api/models/alias")]).then(async([t,s])=>{let[a,l]=await Promise.all([t.ok?t.json():{},s.ok?s.json():{}]);e||(U(a.connections||[]),O(l.aliases||{}))}).catch(e=>console.log("Error loading model picker:",e)),()=>{e=!0}},[y,R]),(0,l.useEffect)(()=>{if(!(G||eb))return;let e=!G||ee,t=!eb||eg,s=()=>{document.hidden||ts()};if(document.addEventListener("visibilitychange",s),e&&t)return()=>document.removeEventListener("visibilitychange",s);let a=setInterval(()=>{document.hidden||ts()},d.fl);return()=>{clearInterval(a),document.removeEventListener("visibilitychange",s)}},[G,eb,ee,eg]),(0,l.useEffect)(()=>{let e=async()=>{if(!document.hidden){if(G&&(es||el)){let e=await m(el,es);eQ.current=e,e?(eB.current=0,et(!0),eZ.current||(eZ.current=!0,e0(!0))):(eB.current+=1,eB.current>=d.t6&&et(!1))}else eQ.current=!1;if(eb&&ej){let e=await c(ej);eX.current=e,e?(eV.current=0,ef(!0),eG.current||(eG.current=!0,e5(!0))):(eV.current+=1,eV.current>=d.t6&&ef(!1))}else eX.current=!1}};if(!(G&&(es||el)||eb&&ej))return;e();let t=!eb||eg;if((!G||ee)&&t)return;let s=setInterval(e,d.RL);return()=>clearInterval(s)},[G,es,el,eb,ej,ee,eg]);let tt=(0,l.useCallback)((e,t,s,a,l,r)=>{t.current?(s.current=0,a(!0),l.current||(l.current=!0,r(!0))):(s.current+=1,s.current>=d.t6&&a(!1))},[]),ts=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||"";ea(a),er(t.tunnel?.publicUrl||""),Y(s),tt(null,eQ,eB,et,eZ,e0);let l=t.tailscale?.settingsEnabled??t.tailscale?.enabled??!1,r=t.tailscale?.tunnelUrl||"";ev(r),ey(l),tt(null,eX,eV,ef,eG,e5)}catch{}},ta=async()=>{Z(!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();K(t.requireApiKey||!1),H(!1!==t.requireLogin),B(t.hasPassword||!1),Q(t.tunnelDashboardAccess||!1)}if(t.ok){let e=await t.json(),s=e.tunnel?.settingsEnabled??e.tunnel?.enabled??!1,a=e.tunnel?.tunnelUrl||"";ea(a),er(e.tunnel?.publicUrl||""),Y(s),tt(null,eQ,eB,et,eZ,e0);let l=e.tailscale?.settingsEnabled??e.tailscale?.enabled??!1,r=e.tailscale?.tunnelUrl||"";ev(r),ey(l),tt(null,eX,eV,ef,eG,e5)}}catch(e){console.log("Error loading settings:",e)}finally{Z(!1)}},tl=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tunnelDashboardAccess:e})})).ok&&Q(e)}catch(e){console.log("Error updating tunnelDashboardAccess:",e)}},tr=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireApiKey:e})})).ok&&K(e)}catch(e){console.log("Error updating requireApiKey:",e)}},tn=async()=>{try{let e=await fetch("/api/keys"),t=await e.json();e.ok&&s(t.keys||[])}catch(e){console.log("Error fetching data:",e)}finally{n(!1)}},ti=async(...e)=>{ei(!0),ed("Waiting for tunnel ready...");let t=e.filter(Boolean).map(e=>`${e}/api/health`),s=Date.now();for(;Date.now()-s<d.Cp;){if(await new Promise(e=>setTimeout(e,d.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 Y(!0),ei(!1),ed(""),!0;if((Date.now()-s)%1e4<d.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."}),ei(!1),ed(""),!1}}catch{}}return em({type:"error",message:"Tunnel created but not reachable. Please try again."}),ei(!1),ed(""),!1},to=async()=>{ex(!1),ei(!0),em(null),ed("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?ed(`Downloading cloudflared... ${s.download.progress}%`):e&&ed("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"});ea(a),er(s.publicUrl||""),await ti(s.publicUrl,a)}catch(e){em({type:"error",message:e.message})}finally{e=!1,ei(!1),ed("")}},td=async()=>{ei(!0),em(null);try{let e=await fetch("/api/tunnel/disable",{method:"POST"}),t=await e.json();e.ok?(Y(!1),ea(""),eh(!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{ei(!1)}},tc=async()=>{eU(null);try{let e=await fetch("/api/tunnel/tailscale-check");if(e.ok){let t=await e.json();return eU(t.installed),t}}catch{}return eU(!1),{installed:!1}},tm=async()=>{eO(!0),eT(null),eI([]);try{let e=await fetch("/api/tunnel/tailscale-install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:eR})});eD("");let t=e.body.getReader(),s=new TextDecoder,a="";for(;;){let{done:e,value:l}=await t.read();if(e)break;let r=(a+=s.decode(l,{stream:!0})).split("\n\n");for(let e of(a=r.pop()||"",r)){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)eI(e=>[...e.slice(-50),a.message]);else if("done"===s){eU(!0),eO(!1),eK(!1),th();return}else"error"===s&&eT({type:"error",message:a.error||"Install failed"})}}}catch(e){eT({type:"error",message:e.message})}finally{eO(!1)}},tu=async e=>{eC("Waiting for Tailscale ready...");let t=`${e}/api/health`,s=Date.now();for(;Date.now()-s<d.Cp;){await new Promise(e=>setTimeout(e,d.Hx));try{let e=await fetch(t,{mode:"no-cors",cache:"no-store"});if(e.ok||"opaque"===e.type)return!0}catch{}}return!1},tx=(e,t)=>{eP(e),eA(t)},tp=()=>{eP(""),eA("")},th=async()=>{eK(!1),eM(!0),ew(!0),eT(null),eC("Connecting..."),tp();try{let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){ev(t.tunnelUrl||"");let e=await tu(t.tunnelUrl);ey(!0),eT(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.needsLogin&&t.authUrl){tx(t.authUrl,"Open Login Page"),eC('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){tp(),eC("Starting funnel...");let e=await fetch("/api/tunnel/tailscale-enable",{method:"POST"}),t=await e.json();if(e.ok&&t.success){ev(t.tunnelUrl||"");let e=await tu(t.tunnelUrl);ey(!0),eT(e?null:{type:"warning",message:"Connected but not reachable yet."})}else t.funnelNotEnabled&&t.enableUrl?await tb(t.enableUrl):eT({type:"error",message:t.error||"Failed to start funnel"});return}}catch{}}tp(),eT({type:"error",message:"Login timed out. Please try again."});return}if(t.funnelNotEnabled&&t.enableUrl)return void await tb(t.enableUrl);eT({type:"error",message:t.error||"Failed to connect"})}catch(e){eT({type:"error",message:e.message})}finally{ew(!1),eM(!1),eC(""),tp()}},tb=async e=>{tx(e,"Open Funnel Settings"),eC('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){tp(),ev(t.tunnelUrl||"");let e=await tu(t.tunnelUrl);ey(!0),eT(e?null:{type:"warning",message:"Connected but not reachable yet."});return}if(t.funnelNotEnabled)continue;if(t.error){tp(),eT({type:"error",message:t.error});return}}catch{}}tp(),eT({type:"error",message:"Timed out waiting for Funnel to be enabled."})},ty=async()=>{ew(!0),eT(null);try{let e=await fetch("/api/tunnel/tailscale-disable",{method:"POST"}),t=await e.json();e.ok?(ey(!1),ev(""),eH(!1),eT({type:"success",message:"Tailscale disabled"})):eT({type:"error",message:t.error||"Failed to disable Tailscale"})}catch(e){eT({type:"error",message:e.message})}finally{ew(!1)}},tg=async()=>{eT(null),eI([]);let e=await tc();e?.installed&&e?.hasCachedPassword?th():eK(!0)},tf=async()=>{if(k.trim())try{let e=await fetch("/api/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:k,expiresAt:N||null,tokenLimit:S||null,allowedModels:$})}),t=await e.json();e.ok&&(I(t.key),await tn(),w(""),C(""),T(""),P([]),A(!1),v(!1))}catch(e){console.log("Error creating key:",e)}},tj=async e=>{M({title:"Delete API Key",message:"Delete this API key?",onConfirm:async()=>{M(null);try{(await fetch(`/api/keys/${e}`,{method:"DELETE"})).ok&&(s(t.filter(t=>t.id!==e)),e4(t=>{let s=new Set(t);return s.delete(e),s}))}catch(e){console.log("Error deleting key:",e)}}})},tv=async(e,t)=>{try{(await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&s(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error toggling key:",e)}},tk=async(e,t)=>{let s=await fetch(`/api/keys/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!s.ok)throw Error((await s.json()).error||"Failed to update key");await tn(),D(null)},[tw,tN]=(0,l.useState)("/v1");return((0,l.useEffect)(()=>{tN(`${window.location.origin}/v1`)},[]),r)?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(i.Qv,{}),(0,a.jsx)(i.Qv,{})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsxs)(i.Zp,{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)(u,{label:"Local",url:tw,copyId:"local_url",copied:e8,onCopy:e7}),(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 ${G?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tunnel"}),G&&!en&&ee?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.pd,{value:`${el||es}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>e7(`${el||es}/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"===e8?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>eh(!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"})})]}):!G||en||ee?en?(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"}),eo||"Creating tunnel..."]}),(0,a.jsx)("button",{onClick:()=>{ei(!1),ed("")},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"})})]}):ec?.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"}),ec.message]}),(0,a.jsx)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>ex(!0),children:"Enable"})]}):X?(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:()=>Z(!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)(i.$n,{size:"sm",icon:"cloud_upload",onClick:()=>{e9?em({type:"error",message:`Security required: ${te}`}):W?ex(!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"}),eY?"Tunnel reconnecting...":"Tunnel checking..."]}),(0,a.jsx)("button",{onClick:()=>eh(!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 ${eb?"bg-primary/10 text-primary":"bg-surface-2 text-text-muted"}`,children:"Tailscale"}),eb&&!ek&&eg?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.pd,{value:`${ej}/v1`,readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)("button",{onClick:()=>e7(`${ej}/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"===e8?"check":"content_copy"})}),(0,a.jsx)("button",{onClick:()=>eH(!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"})})]}):!eb||ek||eg?ek||eq?(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"}),eN||"Connecting..."]}),e$&&(0,a.jsx)(i.$n,{size:"sm",icon:"open_in_new",onClick:()=>window.open(e$,"tailscale_auth","width=600,height=700,noopener,noreferrer"),children:eE||"Open"}),(0,a.jsx)("button",{onClick:()=>{ew(!1),eM(!1),eC(""),tp()},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"})})]}):eS?.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"}),eS.message]}),(0,a.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:tg,children:"Enable"})]}):(0,a.jsx)(i.$n,{size:"sm",icon:"vpn_lock",onClick:()=>{e9?eT({type:"error",message:`Security required: ${te}`}):tg()},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"}),e1?"Tailscale reconnecting...":"Tailscale checking..."]}),(0,a.jsx)("button",{onClick:()=>eH(!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"})})]})]})]}),e9&&!G&&!eb&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(h,{message:te,action:{label:"Open settings",href:"/dashboard/profile"}})}),(G||eb)&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[!W&&(0,a.jsx)(h,{message:"Require API key is disabled — your endpoint is publicly accessible without authentication.",action:{label:"Enable",href:"#require-api-key"}}),(!z||!J)&&(0,a.jsx)(h,{message:z?"Dashboard uses the default password — change it in Profile settings.":"Require login is disabled — anyone can access your dashboard via tunnel.",action:{label:z?"Change password":"Enable",href:"/dashboard/profile"}})]}),(G||eb)&&(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center gap-3",children:[(0,a.jsx)(i.lM,{checked:V,onChange:()=>tl(!V)}),(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)(p,{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)(i.Zp,{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)(i.$n,{icon:"add",onClick:()=>v(!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)(i.lM,{checked:W,onChange:()=>tr(!W)})]}),e3&&!W&&(0,a.jsx)("div",{className:"mb-4 -mt-2",children:(0,a.jsx)(h,{message:"Endpoint is exposed without an API key."})}),0===t.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)(i.$n,{icon:"add",onClick:()=>v(!0),children:"Create Key"})]}):(0,a.jsx)("div",{className:"flex flex-col",children:t.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:e2.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 e4(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:e2.has(e.id)?"Hide key":"Show key",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:e2.has(e.id)?"visibility_off":"visibility"})}),(0,a.jsx)("button",{onClick:()=>e7(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:e8===e.id?"check":"content_copy"})})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Created ",new Date(e.createdAt).toLocaleDateString(),e.expiresAt?` \xb7 Expires ${new Date(e.expiresAt).toLocaleString()}`:" \xb7 No expiry",null!=e.tokenLimit?` \xb7 ${e.tokensUsed}/${e.tokenLimit} tokens`:" \xb7 Unlimited tokens"]}),null!=e.tokenLimit&&(0,a.jsx)(g,{used:e.tokensUsed,limit:e.tokenLimit}),Array.isArray(e.allowedModels)&&e.allowedModels.length>0&&(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1 truncate",title:e.allowedModels.join(", "),children:["Models: ",e.allowedModels.join(", ")]}),!1===e.isActive&&(0,a.jsx)("p",{className:"text-xs text-orange-500 mt-1",children:"Paused"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(i.lM,{size:"sm",checked:e.isActive??!0,onChange:t=>{e.isActive&&!t?M({title:"Pause API Key",message:`Pause API key "${e.name}"?
2
-
3
- This key will stop working immediately but can be resumed later.`,onConfirm:async()=>{M(null),tv(e.id,t)}}):tv(e.id,t)},title:e.isActive?"Pause key":"Resume key"}),(0,a.jsx)("button",{onClick:()=>D(e),className:"p-2 hover:bg-primary/10 rounded text-text-muted hover:text-primary opacity-100 sm:opacity-0 sm:group-hover:opacity-100 transition-all",title:"Edit key",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,a.jsx)("button",{onClick:()=>tj(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)})})]}),R&&(0,a.jsx)(f,{apiKey:R,activeProviders:_,modelAliases:L,onClose:()=>D(null),onSave:e=>tk(R.id,e)},R.id),(0,a.jsx)(i.aF,{isOpen:y,title:"Create API Key",onClose:()=>{v(!1),w(""),C(""),T(""),P([]),A(!1)},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.pd,{label:"Key Name",value:k,onChange:e=>w(e.target.value),placeholder:"Production Key"}),(0,a.jsx)(i.pd,{label:"Expires at (optional)",type:"datetime-local",value:N,onChange:e=>C(e.target.value),hint:"Leave blank for no expiry."}),(0,a.jsx)(i.pd,{label:"Token limit (optional)",type:"number",min:"1",step:"1",value:S,onChange:e=>T(e.target.value),placeholder:"Unlimited",hint:"Total input and output tokens. Strictly enforced."}),(0,a.jsxs)("div",{className:"-mt-2 flex flex-wrap gap-1.5","aria-label":"Token limit presets",children:[b.map(e=>{let t=S===e.value;return(0,a.jsx)("button",{type:"button",onClick:()=>T(e.value),"aria-pressed":t,className:`rounded-full border px-2.5 py-1 text-xs font-medium transition-colors ${t?"border-primary bg-primary text-white":"border-border bg-surface-2 text-text-muted hover:border-primary/50 hover:text-primary"}`,children:e.label},e.value)}),(0,a.jsx)("button",{type:"button",onClick:()=>T(""),"aria-pressed":!S,className:`rounded-full border px-2.5 py-1 text-xs font-medium transition-colors ${!S?"border-primary bg-primary text-white":"border-border bg-surface-2 text-text-muted hover:border-primary/50 hover:text-primary"}`,children:"Unlimited"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,a.jsx)("label",{className:"text-sm font-medium text-text-main",children:"Allowed models (optional)"}),0===$.length?(0,a.jsxs)("div",{className:"rounded-lg border border-dashed border-black/10 bg-black/[0.01] px-3 py-4 text-center dark:border-white/10 dark:bg-white/[0.01]",children:[(0,a.jsx)("span",{className:"material-symbols-outlined mb-1 text-xl text-text-muted",children:"layers"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"All models are allowed"})]}):(0,a.jsx)("div",{className:"flex max-h-28 flex-wrap gap-1 overflow-y-auto rounded-lg border border-border bg-surface-2 p-2",children:$.map(e=>(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md bg-primary/10 px-2 py-1 text-xs text-primary",children:[(0,a.jsx)("span",{className:"max-w-48 truncate",children:e}),(0,a.jsx)("button",{type:"button",onClick:()=>P(t=>t.filter(t=>t!==e)),"aria-label":`Remove ${e}`,className:"material-symbols-outlined text-[14px] hover:text-red-500",children:"close"})]},e))}),(0,a.jsxs)("button",{type:"button",onClick:()=>A(!0),className:"flex w-full items-center justify-center gap-1 rounded-lg border border-dashed border-black/10 py-2 text-xs font-medium text-primary transition-colors hover:border-primary/50 dark:border-white/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),$.length?"Add another model":"Choose models"]}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Leave empty to allow every model."})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i.$n,{onClick:tf,fullWidth:!0,disabled:!k.trim(),children:"Create"}),(0,a.jsx)(i.$n,{onClick:()=>{v(!1),w(""),C(""),T(""),P([]),A(!1)},variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),E&&(0,a.jsx)(i.rq,{isOpen:E,onClose:()=>A(!1),onSelect:e=>P(t=>t.includes(e.value)?t:[...t,e.value]),onDeselect:e=>P(t=>t.filter(t=>t!==e.value)),activeProviders:_,modelAliases:L,addedModelValues:$,closeOnSelect:!1,title:"Choose models for this API key"}),(0,a.jsx)(i.aF,{isOpen:!!F,title:"API Key Created",onClose:()=>I(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)(i.pd,{value:F||"",readOnly:!0,className:"flex-1 font-mono text-sm"}),(0,a.jsx)(i.$n,{variant:"secondary",icon:"created_key"===e8?"check":"content_copy",onClick:()=>e7(F,"created_key"),children:"created_key"===e8?"Copied!":"Copy"})]}),(0,a.jsx)(i.$n,{onClick:()=>I(null),fullWidth:!0,children:"Done"})]})}),(0,a.jsx)(i.aF,{isOpen:eu,title:"Enable Tunnel",onClose:()=>ex(!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:d.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)(i.$n,{onClick:to,fullWidth:!0,children:"Start Tunnel"}),(0,a.jsx)(i.$n,{onClick:()=>ex(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}),(0,a.jsx)(i.aF,{isOpen:ep,title:"Disable Tunnel",onClose:()=>!en&&eh(!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)(i.$n,{onClick:td,fullWidth:!0,disabled:en,variant:"danger",children:en?"Disabling...":"Disable"}),(0,a.jsx)(i.$n,{onClick:()=>eh(!1),variant:"ghost",fullWidth:!0,disabled:en,children:"Cancel"})]})]})}),(0,a.jsx)(i.aF,{isOpen:eW,title:"Tailscale Funnel",onClose:()=>{eL||(eK(!1),eD(""),eT(null))},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[null===e_&&(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===e_&&!eL&&(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)(i.$n,{onClick:tm,fullWidth:!0,children:"Install Tailscale"}),(0,a.jsx)(i.$n,{onClick:()=>eK(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eL&&(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..."]}),eF.length>0&&(0,a.jsx)("div",{ref:eJ,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:eF.map((e,t)=>(0,a.jsx)("div",{children:e},t))})]}),!0===e_&&!eL&&(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)(i.$n,{onClick:()=>th(),fullWidth:!0,children:"Connect"}),(0,a.jsx)(i.$n,{onClick:()=>eK(!1),variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),eS&&(0,a.jsx)(x,{status:eS})]})}),(0,a.jsx)(i.aF,{isOpen:ez,title:"Disable Tailscale",onClose:()=>!ek&&eH(!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)(i.$n,{onClick:ty,fullWidth:!0,disabled:ek,variant:"danger",children:ek?"Disabling...":"Disable"}),(0,a.jsx)(i.$n,{onClick:()=>eH(!1),variant:"ghost",fullWidth:!0,disabled:ek,children:"Cancel"})]})]})}),(0,a.jsx)(i.uo,{isOpen:!!q,onClose:()=>M(null),onConfirm:q?.onConfirm,title:q?.title||"Confirm",message:q?.message,variant:"danger"})]})}g.propTypes={used:n().number,limit:n().number.isRequired},f.propTypes={apiKey:n().object.isRequired,activeProviders:n().array.isRequired,modelAliases:n().object.isRequired,onClose:n().func.isRequired,onSave:n().func.isRequired},j.propTypes={machineId:n().string.isRequired}},59227:(e,t,s)=>{Promise.resolve().then(s.bind(s,20242))}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{25100:(e,t,s)=>{Promise.resolve().then(s.bind(s,80191))},80191:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var l=s(95155),a=s(12115),i=s(44923),n=s(87256),r=s(39768),o=s(5020),d=s(35497),c=s(11059),m=s(929),x=s(88105);let p=/^[a-zA-Z0-9_.\-]+$/,u=[{key:"vision",label:"Vision",icon:"visibility",desc:"Images"},{key:"audioInput",label:"Audio",icon:"graphic_eq",desc:"Audio input"}],h={enabled:!0,roundRobin:!1,models:[]},b={vision:{...h},pdf:{...h},audioInput:{...h},videoInput:{...h}};function f(){let[e,t]=(0,a.useState)([]),[s,i]=(0,a.useState)(!0),[n,r]=(0,a.useState)(!1),[o,p]=(0,a.useState)(null),[f,g]=(0,a.useState)(null),[v,N]=(0,a.useState)([]),[k,C]=(0,a.useState)({}),[S,$]=(0,a.useState)(b),{getCaps:M}=(0,m.y)(),[A,E]=(0,a.useState)(null),{copied:O,copy:P}=(0,c.C)();(0,a.useEffect)(()=>{R()},[]);let R=async()=>{try{let[s,l,a]=await Promise.all([fetch("/api/combos"),fetch("/api/providers"),fetch("/api/settings")]),i=await s.json(),n=await l.json(),r=a.ok?await a.json():{};s.ok&&t((i.combos||[]).filter(e=>!x.rj.some(({id:t})=>t===e.kind))),l.ok&&N(n.connections||[]),C(r.comboStrategies||{});let o=r.capacityAdapter||{},d={};for(let t of u){var e;d[t.key]=(e=o[t.key],Array.isArray(e)?{enabled:!0,roundRobin:!1,models:e.map(e=>e?.model||e).filter(Boolean)}:e&&"object"==typeof e?{enabled:!1!==e.enabled,roundRobin:!!e.roundRobin,models:Array.isArray(e.models)?e.models.filter(Boolean):[]}:{...h})}$(d)}catch(e){console.log("Error fetching data:",e)}finally{i(!1)}},_=async e=>{$(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({capacityAdapter:e})})}catch(e){console.log("Error updating capacity adapter:",e)}},F=async e=>{try{let t=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)await R(),r(!1);else{let e=await t.json();alert(e.error||"Failed to create combo")}}catch(e){console.log("Error creating combo:",e)}},T=async(e,t)=>{try{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(s.ok)await R(),p(null);else{let e=await s.json();alert(e.error||"Failed to update combo")}}catch(e){console.log("Error updating combo:",e)}},D=async s=>{E({title:"Delete Combo",message:"Delete this combo?",onConfirm:async()=>{E(null);try{(await fetch(`/api/combos/${s}`,{method:"DELETE"})).ok&&t(e.filter(e=>e.id!==s))}catch(e){console.log("Error deleting combo:",e)}}})},z=async(e,t)=>{try{let s={...k},l={...s[e]||{},...t};l.fallbackStrategy&&"fallback"!==l.fallbackStrategy?s[e]=l:delete s[e],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})}),C(s)}catch(e){console.log("Error updating combo strategy:",e)}};return s?(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(d.Qv,{}),(0,l.jsx)(d.Qv,{})]}):(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Group models under one name, then pick a strategy per combo:"}),(0,l.jsxs)("ul",{className:"text-sm text-text-muted mt-2 flex flex-col gap-1",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Fallback"})," — tries models in order (next on failure)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Round Robin"})," — rotates models across requests to spread load"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Fusion"})," — queries all models in parallel, then a judge synthesizes one answer. Best quality, but costs the most: every request bills all panel models + the judge (N+1 calls)"]})]})]}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>r(!0),className:"w-full sm:w-auto whitespace-nowrap",children:"Create Combo"})]}),0===e.length?(0,l.jsx)(d.Zp,{children:(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"layers"})}),(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No combos yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create model combos with fallback support"}),(0,l.jsx)(d.$n,{icon:"add",onClick:()=>r(!0),className:"w-full sm:w-auto",children:"Create Combo"})]})}):(0,l.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,l.jsx)(j,{combo:e,getCaps:M,activeProviders:v,copied:O,onCopy:P,onEdit:()=>p(e),onDelete:()=>D(e.id),onTest:()=>g(e),strategy:k[e.name]||{},onSetStrategy:t=>z(e.name,t)},e.id))}),(0,l.jsx)(y,{capacityAdapter:S,onChange:_,activeProviders:v,getCaps:M}),f&&(0,l.jsx)(d.St,{isOpen:!!f,combo:f,onClose:()=>g(null),strategy:k[f.name]||{}}),n&&(0,l.jsx)(w,{isOpen:n,onClose:()=>r(!1),onSave:F,onTestDraft:e=>g(e),activeProviders:v},"create"),o&&(0,l.jsx)(w,{isOpen:!!o,combo:o,onClose:()=>p(null),onSave:e=>T(o.id,e),onTestDraft:e=>g(e),activeProviders:v},o.id),(0,l.jsx)(d.uo,{isOpen:!!A,onClose:()=>E(null),onConfirm:A?.onConfirm,title:A?.title||"Confirm",message:A?.message,variant:"danger"})]})}let g=[{value:"fallback",label:"Fallback — try in order"},{value:"round-robin",label:"Round Robin — rotate"},{value:"fusion",label:"Fusion — panel + judge"}];function j({combo:e,getCaps:t,activeProviders:s=[],copied:i,onCopy:n,onEdit:r,onDelete:o,onTest:c,strategy:m={},onSetStrategy:x}){let[p,u]=(0,a.useState)(!1),h=m.fallbackStrategy||"fallback",b=m.judgeModel||"";return(0,l.jsxs)(d.Zp,{padding:"sm",className:"group",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("code",{className:"block truncate font-mono text-sm font-medium",children:e.name}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===e.models.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:"No models"}):e.models.slice(0,3).map((e,s)=>(0,l.jsxs)("code",{className:"inline-flex items-center gap-1 rounded bg-black/5 px-1.5 py-0.5 font-mono text-xs text-text-muted dark:bg-white/5",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(d.nh,{caps:t?.(e)})]},s)),e.models.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",e.models.length-3," more"]})]}),"fusion"===h&&(0,l.jsxs)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-[11px] font-medium text-text-muted",children:"Judge"}),(0,l.jsxs)("button",{onClick:()=>u(!0),className:"inline-flex max-w-full items-center gap-1 rounded border border-dashed border-primary/40 px-1.5 py-0.5 font-mono text-[11px] text-primary hover:border-primary hover:bg-primary/5 transition-colors",title:"Pick the model that fuses panel answers",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"gavel"}),(0,l.jsx)("span",{className:"truncate",children:b||`Auto — ${e.models[0]||"first model"}`})]}),b&&(0,l.jsx)("button",{onClick:()=>x({judgeModel:""}),className:"p-0.5 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Reset judge to Auto",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"close"})})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsx)("div",{className:"w-full sm:w-[200px]",children:(0,l.jsx)(d.l6,{options:g,value:h,onChange:e=>x({fallbackStrategy:e.target.value}),selectClassName:"py-1.5 text-xs"})}),(0,l.jsxs)("div",{className:"grid grid-cols-4 gap-1 sm:flex",children:[(0,l.jsxs)("button",{onClick:c,className:"flex flex-col items-center rounded px-2 py-1 text-primary transition-colors hover:bg-primary/10",title:"Test Run Combo",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"play_circle"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight font-medium",children:"Test"})]}),(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),n(e.name,`combo-${e.id}`)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Copy combo name",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:i===`combo-${e.id}`?"check":"content_copy"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Copy"})]}),(0,l.jsxs)("button",{onClick:r,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Edit",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:o,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 transition-colors hover:bg-red-500/10",title:"Delete",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]})]})]}),p&&(0,l.jsx)(d.rq,{isOpen:p,onClose:()=>u(!1),onSelect:e=>{x({judgeModel:e?.value||""}),u(!1)},activeProviders:s,title:"Select Judge Model",addedModelValues:b?[b]:[],closeOnSelect:!0})]})}function y({capacityAdapter:e,onChange:t,activeProviders:s,getCaps:a}){return(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-medium",children:"Vision Adapter"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:"Your model can't read image/audio? Auto-switches to a model in the pool below."}),(0,l.jsxs)("ul",{className:"mt-1.5 text-[11px] text-text-muted flex flex-col gap-0.5",children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Vision"})," — images (png, jpg, webp, …)"]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-medium text-text-main",children:"Audio"})," — audio input"]})]})]})}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:u.map(i=>(0,l.jsx)(v,{cap:i,entry:e[i.key]||h,onChange:s=>t({...e,[i.key]:s}),activeProviders:s,getCaps:a},i.key))})]})}function v({cap:e,entry:t,onChange:s,activeProviders:i,getCaps:n}){let[r,o]=(0,a.useState)(!1),{enabled:c,roundRobin:m,models:x}=t,p=e=>s({...t,...e}),u=(e,t)=>{let s=e+t;if(s<0||s>=x.length)return;let l=[...x];[l[e],l[s]]=[l[s],l[e]],p({models:l})};return(0,l.jsxs)(d.Zp,{padding:"sm",className:`group ${!c?"opacity-50":""}`,children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2.5 sm:items-center",children:[(0,l.jsx)(d.lM,{checked:c,onChange:e=>p({enabled:e}),"aria-label":`Enable ${e.label} adapter`}),(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:e.icon})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("code",{className:"font-mono text-sm font-medium",children:e.label}),(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["— ",e.desc]})]}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===x.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:"No models"}):x.slice(0,3).map((e,t)=>(0,l.jsxs)("code",{className:"group/chip inline-flex items-center gap-1 rounded bg-black/5 px-1.5 py-0.5 font-mono text-xs text-text-muted dark:bg-white/5",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(d.nh,{caps:n?.(e)}),(0,l.jsx)("button",{onClick:()=>u(t,-1),disabled:0===t,className:`leading-none opacity-0 group-hover/chip:opacity-100 ${0===t?"text-text-muted/20":"text-text-muted hover:text-primary"}`,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:()=>u(t,1),disabled:t===x.length-1,className:`leading-none opacity-0 group-hover/chip:opacity-100 ${t===x.length-1?"text-text-muted/20":"text-text-muted hover:text-primary"}`,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})}),(0,l.jsx)("button",{onClick:()=>{let e;p({models:0===(e=x.filter((e,s)=>s!==t)).length?["oc/mimo-v2.5-free"]:e})},className:"leading-none opacity-0 group-hover/chip:opacity-100 text-text-muted hover:text-red-500",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]},`${e}-${t}`)),x.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",x.length-3," more"]})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer select-none",children:[(0,l.jsx)(d.lM,{checked:m,onChange:e=>p({roundRobin:e}),disabled:!c,"aria-label":`Round-robin ${e.label} adapter`}),(0,l.jsx)("span",{children:"Round"})]}),(0,l.jsx)(d.$n,{icon:"add",variant:"ghost",size:"sm",onClick:()=>o(!0),disabled:!c,title:`Add ${e.label} model`,children:"Add Model"})]})]}),r&&(0,l.jsx)(d.rq,{isOpen:r,onClose:()=>o(!1),onSelect:e=>{x.includes(e.value)||p({models:[...x,e.value]})},activeProviders:i,title:`Add ${e.label} Model`,addedModelValues:x,capFilter:e.key,closeOnSelect:!1})]})}function N({id:e,index:t,model:s,isFirst:i,isLast:o,onEdit:d,onMoveUp:c,onMoveDown:m,onRemove:x}){let{attributes:p,listeners:u,setNodeRef:h,transform:b,isDragging:f}=(0,n.gl)({id:e}),g={transform:r.Ks.Transform.toString(b),opacity:f?.4:1,zIndex:f?999:void 0},[j,y]=(0,a.useState)(!1),[v,w]=(0,a.useState)(s),k=()=>{let e=v.trim();e&&e!==s?d(e):w(s),y(!1)};return(0,l.jsxs)("div",{ref:h,style:g,className:`group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 bg-black/[0.02] hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04] transition-colors ${f?"shadow-md ring-1 ring-primary/30":""}`,children:[(0,l.jsx)("button",{...p,...u,type:"button",className:"cursor-grab touch-none p-0.5 rounded text-text-muted hover:text-primary active:cursor-grabbing shrink-0",title:"Drag to reorder",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})}),(0,l.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:t+1}),j?(0,l.jsx)("input",{autoFocus:!0,value:v,onChange:e=>w(e.target.value),onBlur:k,onKeyDown:e=>{"Enter"===e.key&&k(),"Escape"===e.key&&(w(s),y(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,l.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>y(!0),title:"Click to edit",children:s}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,l.jsx)("button",{onClick:c,disabled:i,className:`p-0.5 rounded ${i?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:m,disabled:o,className:`p-0.5 rounded ${o?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,l.jsx)("button",{onClick:x,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function w({isOpen:e,combo:t,onClose:s,onSave:r,onTestDraft:c,activeProviders:m,kindFilter:x=null}){let[u,h]=(0,a.useState)(t?.name||""),[b,f]=(0,a.useState)(t?.models||[]),[g,j]=(0,a.useState)(!1),[y,v]=(0,a.useState)(!1),[k,C]=(0,a.useState)(""),[S,$]=(0,a.useState)({}),M=(0,i.FR)((0,i.MS)(i.AN,{activationConstraint:{distance:5}}),(0,i.MS)(i.uN,{coordinateGetter:n.JR})),A=b.map((e,t)=>({uid:`item-${t}`,model:e})),E=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)return;let t=await e.json();$(t.aliases||{})}catch(e){console.error("Error fetching modal data:",e)}};(0,a.useEffect)(()=>{e&&E()},[e]);let O=e=>e.trim()?p.test(e)?(C(""),!0):(C("Only letters, numbers, -, _ and . allowed"),!1):(C("Name is required"),!1),P=async()=>{O(u)&&(v(!0),await r({name:u.trim(),models:b}),v(!1))},R=!!t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.aF,{isOpen:e,onClose:s,title:R?"Edit Combo":"Create Combo",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(d.pd,{label:"Combo Name",value:u,onChange:e=>{let t=e.target.value;h(t),t?O(t):C("")},placeholder:"my-combo",error:k}),(0,l.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and . allowed"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===b.length?(0,l.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,l.jsx)(i.Mp,{sensors:M,collisionDetection:i.fp,onDragEnd:e=>{let{active:t,over:s}=e;if(s&&t.id!==s.id){let e=A.findIndex(e=>e.uid===t.id),l=A.findIndex(e=>e.uid===s.id);-1!==e&&-1!==l&&f(t=>(0,n.be)(t,e,l))}},modifiers:[o.FN,o.gj],children:(0,l.jsx)(n.gB,{items:A.map(e=>e.uid),strategy:n._G,children:(0,l.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:A.map(({uid:e,model:t},s)=>(0,l.jsx)(N,{id:e,index:s,model:t,isFirst:0===s,isLast:s===A.length-1,onEdit:e=>{let t=[...b];t[s]=e,f(t)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...b];[t[e-1],t[e]]=[t[e],t[e-1]],f(t)})(s),onMoveDown:()=>(e=>{if(e===b.length-1)return;let t=[...b];[t[e],t[e+1]]=[t[e+1],t[e]],f(t)})(s),onRemove:()=>{f(b.filter((e,t)=>t!==s))}},e))})})}),(0,l.jsxs)("button",{onClick:()=>j(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,l.jsx)(d.$n,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),c&&b.length>0&&(0,l.jsx)(d.$n,{type:"button",onClick:()=>c({id:t?.id,name:u||"Draft Combo",models:b,kind:x||"llm"}),variant:"outline",fullWidth:!0,size:"sm",icon:"play_circle",children:"Test Run"}),(0,l.jsx)(d.$n,{onClick:P,fullWidth:!0,size:"sm",disabled:!u.trim()||!!k||y,children:y?"Saving...":R?"Save":"Create"})]})]})}),g&&(0,l.jsx)(d.rq,{isOpen:g,onClose:()=>j(!1),onSelect:e=>{b.includes(e.value)||f([...b,e.value])},onDeselect:e=>{f(b.filter(t=>t!==e.value))},activeProviders:m,modelAliases:S,title:"Add Model to Combo",kindFilter:x,addedModelValues:b,closeOnSelect:!1})]})}},84680:(e,t,s)=>{"use strict";s.d(t,{PM:()=>l.PM,Sj:()=>l.Sj,Vy:()=>l.Vy,fF:()=>l.fF,sl:()=>l.sl,vL:()=>l.vL,y$:()=>l.y$,zM:()=>l.zM});var l=s(44923)}},e=>{e.O(0,[8010,5353,8105,801,1321,5497,8441,3794,7358],()=>e(e.s=25100)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{32376:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))},64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>h});var a=s(95155),r=s(12115),l=s(98500),i=s.n(l),o=s(35497),n=s(81127),d=s(21931),c=s(1620),m=s(31474),x=s(90620),p=s(93308),u=s(38202);function h(){let{theme:e,setTheme:t,isDark:s}=(0,c.D)(),[l,h]=(0,r.useState)(()=>(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${p.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,p.QC)(t)})()),[b,g]=(0,r.useState)(!1),[f,y]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!1),[w,v]=(0,r.useState)({fallbackStrategy:"fill-first"}),[S,C]=(0,r.useState)(!0),[k,L]=(0,r.useState)({current:"",new:"",confirm:""}),[I,A]=(0,r.useState)({type:"",message:""}),[P,O]=(0,r.useState)(!1),[M,E]=(0,r.useState)(!1),[R,D]=(0,r.useState)({type:"",message:""}),[T,U]=(0,r.useState)({open:!1,mode:"",password:""}),$=(0,r.useRef)(null),[F,q]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[_,J]=(0,r.useState)(""),[X,H]=(0,r.useState)({type:"",message:""}),[z,B]=(0,r.useState)(!1),[K,Z]=(0,r.useState)(!1),[W,Q]=(0,r.useState)({type:"",message:""}),[G,V]=(0,r.useState)(!1),Y=window.location.origin,ee=Y?`${Y}/api/auth/oidc/callback`:"/api/auth/oidc/callback",et=Y?`${Y}/api/auth/saml/acs`:"/api/auth/saml/acs",es=Y?`${Y}/api/auth/saml/metadata`:"/api/auth/saml/metadata",[ea,er]=(0,r.useState)("saml"),[el,ei]=(0,r.useState)({samlEntryPoint:"",samlIssuer:"urn:9router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name"}),[eo,en]=(0,r.useState)({type:"",message:""}),[ed,ec]=(0,r.useState)(!1),[em,ex]=(0,r.useState)(!1),[ep,eu]=(0,r.useState)({type:"",message:""}),[eh,eb]=(0,r.useState)(!1),eg=(0,r.useRef)(null),ef=(0,r.useRef)(null),ey=(0,r.useRef)(null),[ej,eN]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[ew,ev]=(0,r.useState)({type:"",message:""}),[eS,eC]=(0,r.useState)(!1),[ek,eL]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{v(e),q({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),J(""),er(e?.ssoType||"saml"),ei({samlEntryPoint:e?.samlEntryPoint||"",samlIssuer:e?.samlIssuer||"urn:9router:sp",samlCert:e?.samlCert||"",samlLoginLabel:e?.samlLoginLabel||"Sign in with SAML SSO",samlAttributeEmail:e?.samlAttributeEmail||"email",samlAttributeName:e?.samlAttributeName||"name"}),(e?.authMode==="sso"||e?.authMode==="saml"||e?.authMode==="oidc"||e?.authMode==="both")&&V(!0),eN({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),C(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),C(!1)})},[]);let eI=async e=>{if(e.preventDefault(),!0===w.outboundProxyEnabled){eC(!0),ev({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:ej.outboundProxyUrl,outboundNoProxy:ej.outboundNoProxy})}),t=await e.json();e.ok?(v(e=>({...e,...t})),ev({type:"success",message:"Proxy settings applied"})):ev({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){ev({type:"error",message:"An error occurred"})}finally{eC(!1)}}},eA=async()=>{if(!0!==w.outboundProxyEnabled)return;let e=(ej.outboundProxyUrl||"").trim();if(!e)return void ev({type:"error",message:"Please enter a Proxy URL to test"});eL(!0),ev({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?ev({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):ev({type:"error",message:s?.error||"Proxy test failed"})}catch(e){ev({type:"error",message:"An error occurred"})}finally{eL(!1)}},eP=async e=>{eC(!0),ev({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(v(e=>({...e,...s})),eN(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),ev({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):ev({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){ev({type:"error",message:"An error occurred"})}finally{eC(!1)}},eO=async e=>{if(e.preventDefault(),k.new!==k.confirm)return void A({type:"error",message:"Passwords do not match"});O(!0),A({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:k.current,newPassword:k.new})}),t=await e.json();e.ok?(A({type:"success",message:"Password updated successfully"}),L({current:"",new:"",confirm:""})):A({type:"error",message:t.error||"Failed to update password"})}catch(e){A({type:"error",message:"An error occurred"})}finally{O(!1)}},eM=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&v(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},eE=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&v(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},eR=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&v(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},eD=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&v(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},eT=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})})).ok&&v(t=>({...t,requireLogin:e}))}catch(e){console.error("Failed to update require login:",e)}},eU=(e,t)=>{q(s=>({...s,[e]:t}))},e$=async(e=F.authMode||"password")=>{let t=F.oidcIssuerUrl.trim(),s=F.oidcClientId.trim(),a=F.oidcScopes.trim(),r=F.oidcLoginLabel.trim(),l=_.trim();if("password"!==e&&(!t||!s||!l)&&!w.oidcConfigured)return void H({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});B(!0),H({type:"",message:""}),Q({type:"",message:""});try{let i={authMode:e,ssoType:"oidc",oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};l&&(i.oidcClientSecret=l);let o=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await o.json();o.ok?(v(e=>({...e,...n})),q({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),J(""),H({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):H({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){H({type:"error",message:"An error occurred"})}finally{B(!1)}},eF=async()=>{let e=F.oidcIssuerUrl.trim(),t=F.oidcClientId.trim(),s=F.oidcScopes.trim(),a=_.trim();if(!e||!t)return void Q({type:"error",message:"Issuer URL and client ID are required to test the connection."});Z(!0),H({type:"",message:""}),Q({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:F.authMode||w.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:F.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),l=await r.json().catch(()=>({}));if(!r.ok)return void Q({type:"error",message:l.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:l.oidcIssuerUrl||e,clientId:l.oidcClientId||t,scopes:l.oidcScopes||s||"openid profile email"})}),o=await i.json().catch(()=>({}));if(i.ok&&o?.ok){let e=o.clientSecretTested?!0===o.clientSecretValid?`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${o.issuerUrl}.`;Q({type:"success",message:e})}else Q({type:"error",message:o.error||"OIDC connection test failed"})}catch(e){Q({type:"error",message:"An error occurred"})}finally{Z(!1)}},eq=(e,t)=>{ei(s=>({...s,[e]:t}))},e_=async(e=F.authMode||"password")=>{ec(!0),en({type:"",message:""}),eu({type:"",message:""});try{let t={authMode:e,ssoType:"saml",samlEntryPoint:el.samlEntryPoint.trim(),samlIssuer:el.samlIssuer.trim()||"urn:9router:sp",samlCert:el.samlCert.trim(),samlLoginLabel:el.samlLoginLabel.trim()||"Sign in with SAML SSO",samlAttributeEmail:el.samlAttributeEmail.trim()||"email",samlAttributeName:el.samlAttributeName.trim()||"name"},s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();s.ok?(v(e=>({...e,...a})),ei({samlEntryPoint:a?.samlEntryPoint||t.samlEntryPoint,samlIssuer:a?.samlIssuer||t.samlIssuer,samlCert:a?.samlCert||t.samlCert,samlLoginLabel:a?.samlLoginLabel||t.samlLoginLabel,samlAttributeEmail:a?.samlAttributeEmail||t.samlAttributeEmail,samlAttributeName:a?.samlAttributeName||t.samlAttributeName}),en({type:"success",message:"sso"===e||"saml"===e?"SAML SSO login enabled":"both"===e?"Password and SAML SSO login enabled":"SAML 2.0 settings saved"})):en({type:"error",message:a.error||"Failed to save SAML settings"})}catch{en({type:"error",message:"An error occurred while saving SAML settings"})}finally{ec(!1)}},eJ=async()=>{ex(!0),en({type:"",message:""}),eu({type:"",message:""});try{let e=await fetch("/api/auth/saml/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({samlEntryPoint:el.samlEntryPoint.trim(),samlIssuer:el.samlIssuer.trim(),samlCert:el.samlCert.trim()})}),t=await e.json();e.ok&&t.ok?eu({type:"success",message:t.message||"SAML configuration verified!"}):eu({type:"error",message:t.error||"SAML configuration test failed"})}catch{eu({type:"error",message:"An error occurred while testing SAML configuration"})}finally{ex(!1)}},eX=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&v(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},eH=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({exposeComboOnly:e})})).ok&&v(t=>({...t,exposeComboOnly:e}))}catch(e){console.error("Failed update exposeComboOnly:",e)}},ez=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();v(t)}catch(e){console.error("Failed to reload settings:",e)}},eB=async e=>{E(!0),D({type:"",message:""});try{let t=await fetch("/api/settings/database",{headers:{"x-9r-password":e}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"Failed to export database")}let s=await t.json(),a=JSON.stringify(s,null,2),r=new Blob([a],{type:"application/json"}),l=URL.createObjectURL(r),i=document.createElement("a"),o=new Date().toISOString().replace(/[.:]/g,"-");i.href=l,i.download=`9router-backup-${o}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l),D({type:"success",message:"Database backup downloaded"})}catch(e){D({type:"error",message:e.message||"Failed to export database"})}finally{E(!1)}},eK=async e=>{let t=$.current;if(t){E(!0);try{let s=await t.text(),a=JSON.parse(s),r=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,password:e})}),l=await r.json().catch(()=>({}));if(!r.ok)throw Error(l.error||"Failed to import database");await ez(),D({type:"success",message:"Database imported successfully"})}catch(e){D({type:"error",message:e.message||"Invalid backup file"})}finally{$.current=null,E(!1)}}},eZ=async()=>{let{mode:e,password:t}=T;U({open:!1,mode:"",password:""}),"export"===e?await eB(t):"import"===e&&await eK(t)},eW=!0===w.enableObservability,eQ=async()=>{N(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}N(!1),y(!1)},eG=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,m.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.ezrouter/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"secondary",icon:"download",onClick:()=>U({open:!0,mode:"export",password:""}),loading:M,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(o.$n,{variant:"outline",icon:"upload",onClick:()=>ey.current?.click(),disabled:M,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:ey,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];ey.current&&(ey.current.value=""),t&&($.current=t,D({type:"",message:""}),U({open:!0,mode:"import",password:""}))}})]}),R.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===R.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:R.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Language"})]}),(0,a.jsxs)("button",{onClick:()=>g(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"Display language"}),(0,a.jsx)("span",{className:"text-2xl",children:u.h[l]||"\uD83C\uDF10"})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Security"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Require login"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"When ON, dashboard requires password. When OFF, access without login."})]}),(0,a.jsx)(o.lM,{checked:!0===w.requireLogin,onChange:()=>eT(!w.requireLogin),disabled:S})]}),!0===w.requireLogin&&(0,a.jsxs)("form",{onSubmit:eO,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[w.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter current password",value:k.current,onChange:e=>L({...k,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter new password",value:k.new,onChange:e=>L({...k,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Confirm new password",value:k.confirm,onChange:e=>L({...k,confirm:e.target.value}),required:!0})]})]}),I.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===I.type?"text-red-500":"text-green-500"}`,children:I.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:P,className:"w-full sm:w-auto",children:w.hasPassword?"Update Password":"Set Password"})})]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>V(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Single Sign-On (SSO)"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"sso"===w.authMode||"oidc"===w.authMode||"saml"===w.authMode?`${"saml"===w.ssoType?"SAML 2.0":"OIDC"} SSO active`:"both"===w.authMode?`Password + ${"saml"===w.ssoType?"SAML 2.0":"OIDC"} active`:"Optional SSO via Okta, Entra ID, Keycloak, or OIDC"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:G?"expand_less":"expand_more"})]}),G&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Configure enterprise Single Sign-On (SSO) for dashboard access using SAML 2.0 or OIDC."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SSO Protocol"}),(0,a.jsxs)("div",{className:"flex p-1 rounded-lg bg-black/5 dark:bg-white/5 border border-border",children:[(0,a.jsx)("button",{type:"button",onClick:()=>er("saml"),className:(0,m.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","saml"===ea?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"SAML 2.0"}),(0,a.jsx)("button",{type:"button",onClick:()=>er("oidc"),className:(0,m.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","oidc"===ea?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"OIDC"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep legacy password login."},{value:"sso",title:`${"saml"===ea?"SAML":"OIDC"} only`,desc:"Require SSO for dashboard access."},{value:"both",title:"Both",desc:"Allow password or SSO login."}].map(e=>{let t=F.authMode,s="password"===e.value?"password"===t:"sso"===e.value?"sso"===t||"saml"===t||"oidc"===t:"both"===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>eU("authMode",e.value),className:(0,m.cn)("text-left rounded-lg border p-3 transition-colors",s?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:S||z||ed,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),"saml"===ea?(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg/80 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eb(e=>!e),className:"w-full p-3 flex items-center justify-between gap-2 text-left hover:bg-surface/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-lg",children:"menu_book"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-xs sm:text-sm text-text-main",children:"IdP Setup Guidelines & Provider Configuration Instructions"}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:"Click to view setup steps for AWS IAM Identity Center, Okta, Entra ID, Keycloak, & Authentik"})]})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted transition-transform text-lg",style:{transform:eh?"rotate(180deg)":"none"},children:"expand_more"})]}),eh&&(0,a.jsxs)("div",{className:"p-4 border-t border-border bg-surface/30 text-xs text-text-main flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"p-2.5 rounded border border-primary/20 bg-primary/5 text-primary text-xs",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"\uD83D\uDD11 Required Service Provider (SP) Values for your IdP Setup:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-1 font-mono text-[11px]",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Assertion Consumer Service (ACS) URL:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:et})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"SP Entity ID / Audience URI:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:el.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"NameID Format:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"EmailAddress"})," or ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"Unspecified"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-1",children:[(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"☁️"})," AWS IAM Identity Center"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Add application"})," → Select ",(0,a.jsx)("b",{children:"Add custom SAML 2.0 application"}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application ACS URL"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:et}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application SAML audience"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:el.samlIssuer||"urn:9router:sp"}),"."]}),(0,a.jsxs)("li",{children:["Under ",(0,a.jsx)("i",{children:"Attribute mappings"}),", map ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"Subject"})," or ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"email"})," to ",(0,a.jsxs)("code",{className:"text-text-main font-mono",children:["$","{user:email}"]}),"."]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"IAM Identity Center SAML metadata XML"})," file and use 1-Click Import below!"]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDD37"})," Microsoft Entra ID (Azure AD)"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Enterprise Applications → ",(0,a.jsx)("b",{children:"New application"})," → ",(0,a.jsx)("b",{children:"Create your own application"}),"."]}),(0,a.jsxs)("li",{children:["Select ",(0,a.jsx)("b",{children:"Single sign-on"})," → ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Identifier (Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:el.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Reply URL (ACS):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:et})]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"Federation Metadata XML"})," and import or copy X.509 Certificate."]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDFE2"})," Okta / Auth0"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Create App Integration"})," → Select ",(0,a.jsx)("b",{children:"SAML 2.0"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Single Sign-On URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:et})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Audience URI (SP Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:el.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:["Name ID format: ",(0,a.jsx)("i",{children:"EmailAddress"}),"."]}),(0,a.jsx)("li",{children:"Download Identity Provider metadata XML or copy the X.509 cert."})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDEE1️"})," Keycloak / Authentik"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Clients → ",(0,a.jsx)("b",{children:"Create client"})," → Select ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Client ID:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:el.samlIssuer||"urn:9router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Master SAML Processing URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:et})]}),(0,a.jsx)("li",{children:"Export SAML Descriptor XML or copy IDP Certificate PEM."})]})]})]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg border border-dashed border-primary/40 bg-primary/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text-main",children:"1-Click IdP Metadata XML Import"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Auto-fill SSO URL, Issuer & Cert from XML metadata"})]}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",size:"sm",icon:"upload_file",onClick:()=>eg.current?.click(),children:"Upload Metadata XML"}),(0,a.jsx)("input",{ref:eg,type:"file",accept:".xml,application/xml,text/xml",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eg.current&&(eg.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{try{let t=e.target?.result||"",s=new DOMParser().parseFromString(t,"text/xml");if(s.querySelector("parsererror"))return void en({type:"error",message:"Unable to parse valid SAML IdP metadata from XML file"});let a=s.documentElement.getAttribute("entityID")||"",r=Array.from(s.querySelectorAll("SingleSignOnService, *|SingleSignOnService")),l="";for(let e of r){let t=e.getAttribute("Binding")||"",s=e.getAttribute("Location")||"";if(s&&(l=s,t.includes("HTTP-Redirect")))break}let i=Array.from(s.querySelectorAll("X509Certificate, *|X509Certificate")),o="";i.length>0&&(o=i[0].textContent.trim()),ei(e=>({...e,samlEntryPoint:l||e.samlEntryPoint,samlIssuer:e.samlIssuer||"urn:9router:sp",samlCert:o||e.samlCert})),en({type:"success",message:`IdP Metadata imported! (SSO URL: ${l?"found":"not found"}, EntityID: ${a?"found":"not found"}, Cert: ${o?"found":"not found"})`})}catch(e){en({type:"error",message:"Error reading IdP Metadata XML file"})}},s.readAsText(t)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Single Sign-On Service URL (samlEntryPoint)"}),(0,a.jsx)(o.pd,{placeholder:"https://idp.example.com/app/saml/sso/...",value:el.samlEntryPoint,onChange:e=>eq("samlEntryPoint",e.target.value),disabled:S||ed})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SP Entity ID / Audience (samlIssuer)"}),(0,a.jsx)(o.pd,{placeholder:"urn:9router:sp",value:el.samlIssuer,onChange:e=>eq("samlIssuer",e.target.value),disabled:S||ed})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"IdP X.509 Certificate (samlCert)"}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",size:"sm",icon:"file_upload",onClick:()=>ef.current?.click(),children:"Upload Certificate"}),(0,a.jsx)("input",{ref:ef,type:"file",accept:".crt,.pem,.cer,text/plain",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(ef.current&&(ef.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{let t=e.target?.result||"";ei(e=>({...e,samlCert:t.trim()})),en({type:"success",message:"Certificate file loaded into configuration."})},s.readAsText(t)}})]}),(0,a.jsx)("textarea",{rows:4,placeholder:"-----BEGIN CERTIFICATE----- MIIC... -----END CERTIFICATE-----",value:el.samlCert,onChange:e=>eq("samlCert",e.target.value),className:"w-full p-2.5 rounded-lg border border-border bg-bg text-xs font-mono text-text-main focus:outline-none focus:border-primary",disabled:S||ed}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Paste raw Base64 certificate or PEM block."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(o.pd,{placeholder:"Sign in with SAML SSO",value:el.samlLoginLabel,onChange:e=>eq("samlLoginLabel",e.target.value),disabled:S||ed})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Email Claim Attribute"}),(0,a.jsx)(o.pd,{placeholder:"email",value:el.samlAttributeEmail,onChange:e=>eq("samlAttributeEmail",e.target.value),disabled:S||ed})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Display Name Claim"}),(0,a.jsx)(o.pd,{placeholder:"name",value:el.samlAttributeName,onChange:e=>eq("samlAttributeName",e.target.value),disabled:S||ed})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-3 rounded-lg border border-border bg-bg text-xs sm:text-sm text-text-muted",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"ACS Callback URL"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:et})]}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",size:"sm",icon:"content_copy",onClick:()=>{navigator.clipboard.writeText(et),en({type:"success",message:"ACS URL copied to clipboard!"})},children:"Copy"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"SP XML Metadata"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:es})]}),(0,a.jsxs)("a",{href:es,target:"_blank",rel:"noopener noreferrer",download:"9router-sp-metadata.xml",className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"download"}),"Download XML"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(o.$n,{type:"button",variant:"primary",loading:ed,onClick:()=>e_(F.authMode),className:"w-full sm:w-auto",children:"Save SAML settings"}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",loading:em,onClick:eJ,className:"w-full sm:w-auto",children:"Test SAML settings"})]}),ep.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ep.type?"text-red-500":"text-green-500"}`,children:ep.message}),eo.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eo.type?"text-red-500":"text-green-500"}`,children:eo.message})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(o.pd,{placeholder:"https://auth.example.com/application/o/9router/",value:F.oidcIssuerUrl,onChange:e=>eU("oidcIssuerUrl",e.target.value),disabled:S||z})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(o.pd,{placeholder:"9router-dashboard",value:F.oidcClientId,onChange:e=>eU("oidcClientId",e.target.value),disabled:S||z})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:_,onChange:e=>J(e.target.value),disabled:S||z}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(o.pd,{placeholder:"openid profile email",value:F.oidcScopes,onChange:e=>eU("oidcScopes",e.target.value),disabled:S||z})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(o.pd,{placeholder:"Sign in with OIDC",value:F.oidcLoginLabel,onChange:e=>eU("oidcLoginLabel",e.target.value),disabled:S||z})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:ee})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(o.$n,{type:"button",variant:"primary",loading:z,onClick:()=>e$(),className:"w-full sm:w-auto",children:"Save OIDC settings"}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",loading:K,onClick:eF,className:"w-full sm:w-auto",children:"Test connection"})]}),W.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===W.type?"text-red-500":"text-green-500"}`,children:W.message}),X.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===X.type?"text-red-500":"text-green-500"}`,children:X.message})]}),"oidc"===w.authMode||"saml"===w.authMode||"sso"===w.authMode?(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["SSO login (","saml"===w.ssoType?"SAML 2.0":"OIDC",") is currently active. Password login is disabled until you switch back."]}):null,"both"===w.authMode&&(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["Password and SSO login (","saml"===w.ssoType?"SAML 2.0":"OIDC",") are both active."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"model_training"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Model"})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Expose Combo Only"}),(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-text-muted",children:["Only configured Combo models exposed through ",(0,a.jsx)("code",{className:"bg-bg px-1 rounded text-xs",children:"/v1/models"})]})]}),(0,a.jsx)(o.lM,{checked:!0===w.exposeComboOnly,onChange:()=>eH(!w.exposeComboOnly),disabled:S})]})})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===w.fallbackStrategy,onChange:()=>eM("round-robin"===w.fallbackStrategy?"fill-first":"round-robin"),disabled:S})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Latency-Aware"}),(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-text-muted",children:["Prefer the fastest healthy account and skip ones that are currently failing"," \xb7 ",(0,a.jsx)(i(),{href:"/dashboard/routing-health",className:"text-primary hover:underline",children:"view stats"})]})]}),(0,a.jsx)(o.lM,{checked:"latency-aware"===w.fallbackStrategy,onChange:()=>eM("latency-aware"===w.fallbackStrategy?"fill-first":"latency-aware"),disabled:S})]}),"round-robin"===w.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"10",value:w.stickyRoundRobinLimit||3,onChange:e=>eR(e.target.value),disabled:S,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===w.comboStrategy,onChange:()=>eE("round-robin"===w.comboStrategy?"fallback":"round-robin"),disabled:S})]}),"round-robin"===w.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"100",value:w.comboStickyRoundRobinLimit||1,onChange:e=>eD(e.target.value),disabled:S,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===w.fallbackStrategy?`Currently distributing requests across all available accounts with ${w.stickyRoundRobinLimit||3} calls per account.`:"latency-aware"===w.fallbackStrategy?"Currently ranking accounts by live latency and error rate.":"Currently using accounts in priority order (Fill First).","round-robin"===w.comboStrategy?` Combos rotate after ${w.comboStickyRoundRobinLimit||1} call${1===(w.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(o.lM,{checked:!0===w.outboundProxyEnabled,onChange:()=>eP(!0!==w.outboundProxyEnabled),disabled:S||eS})]}),!0===w.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:eI,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(o.pd,{placeholder:"http://127.0.0.1:7897",value:ej.outboundProxyUrl,onChange:e=>eN(t=>({...t,outboundProxyUrl:e.target.value})),disabled:S||eS}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(o.pd,{placeholder:"localhost,127.0.0.1",value:ej.outboundNoProxy,onChange:e=>eN(t=>({...t,outboundNoProxy:e.target.value})),disabled:S||eS}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(o.$n,{type:"button",variant:"secondary",loading:ek,disabled:S||eS,onClick:eA,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:eS,className:"w-full sm:w-auto",children:"Apply"})]})]}),ew.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ew.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:ew.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(o.lM,{checked:eW,onChange:eX,disabled:S})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>y(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"}),(0,a.jsx)(o.$n,{variant:"outline",fullWidth:!0,icon:"logout",onClick:eG,children:"Logout"})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[x.vQ.name," v",x.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(d.default,{hideTrigger:!0,isOpen:b,onClose:e=>{g(!1),h(e)}}),(0,a.jsx)(n.ConfirmModal,{isOpen:f,onClose:()=>y(!1),onConfirm:eQ,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:j}),(0,a.jsxs)(n.default,{isOpen:T.open,onClose:()=>U({open:!1,mode:"",password:""}),title:"Confirm Password",size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.$n,{variant:"ghost",onClick:()=>U({open:!1,mode:"",password:""}),disabled:M,children:"Cancel"}),(0,a.jsx)(o.$n,{variant:"primary",onClick:eZ,loading:M,disabled:!T.password,children:"Confirm"})]}),children:[(0,a.jsxs)("p",{className:"text-text-muted mb-3 text-sm",children:["Enter your current password to ","export"===T.mode?"export":"import"," the database."]}),(0,a.jsx)(o.pd,{type:"password",value:T.password,onChange:e=>U(t=>({...t,password:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&T.password&&eZ()},placeholder:"Current password",autoFocus:!0})]})]})}}},e=>{e.O(0,[8010,8105,801,1321,5497,8441,3794,7358],()=>e(e.s=32376)),_N_E=e.O()}]);