zevairouter 1.1.18 → 1.1.20

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 (1193) hide show
  1. package/CHANGELOG.md +28 -6
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +32 -31
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +5 -5
  6. package/cli/app/.next-cli-build/routes-manifest.json +6 -0
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error/page.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  103. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  106. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  126. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  230. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -0
  348. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -0
  349. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route_client-reference-manifest.js +1 -0
  350. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  375. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  387. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  389. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  393. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  395. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  397. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  399. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  401. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  403. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  405. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  407. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  409. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  435. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  441. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  463. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
  485. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  491. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  500. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  506. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  528. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  542. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  543. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  544. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  545. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  546. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  547. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  548. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  549. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  550. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  551. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  552. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +5 -5
  553. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  554. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  555. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  556. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  557. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +5 -5
  558. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  559. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  560. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  561. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  562. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  563. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  564. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  565. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  566. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  567. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
  568. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  569. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  570. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  571. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
  572. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +5 -5
  573. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
  574. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  575. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  576. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  577. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +5 -5
  578. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  579. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  580. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  581. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  582. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
  583. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  584. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  585. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  586. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  587. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
  588. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  589. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  590. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  591. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +5 -5
  592. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +5 -5
  593. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +5 -5
  594. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  595. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  596. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  597. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
  598. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  599. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  600. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  601. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  602. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
  603. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  604. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  605. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  606. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  607. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
  608. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  609. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  610. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  611. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  612. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  613. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  614. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  615. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  616. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  617. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
  618. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  619. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  620. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  621. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  622. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +6 -6
  623. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  624. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  625. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  626. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  627. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  628. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  629. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  630. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  631. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  632. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
  633. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  634. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  635. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  636. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  637. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
  638. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  639. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  640. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  641. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  642. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +5 -5
  643. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  644. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  645. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  646. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  647. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  648. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  649. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  650. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  651. package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  652. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
  653. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  654. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  655. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  656. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  657. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  658. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  659. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  660. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  661. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  662. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  663. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  664. package/cli/app/.next-cli-build/server/app/landing.rsc +4 -4
  665. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  666. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  667. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  668. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  669. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  670. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  671. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  672. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  673. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  674. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  675. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  676. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  677. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  678. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  679. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  680. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  681. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  682. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  683. package/cli/app/.next-cli-build/server/app-paths-manifest.json +32 -31
  684. package/cli/app/.next-cli-build/server/chunks/1051.js +1 -1
  685. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  686. package/cli/app/.next-cli-build/server/chunks/1133.js +1 -1
  687. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  688. package/cli/app/.next-cli-build/server/chunks/1890.js +1 -1
  689. package/cli/app/.next-cli-build/server/chunks/3101.js +1 -1
  690. package/cli/app/.next-cli-build/server/chunks/3410.js +70 -0
  691. package/cli/app/.next-cli-build/server/chunks/3477.js +1 -1
  692. package/cli/app/.next-cli-build/server/chunks/3721.js +3 -3
  693. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  694. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  695. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  696. package/cli/app/.next-cli-build/server/chunks/4586.js +29 -0
  697. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  698. package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
  699. package/cli/app/.next-cli-build/server/chunks/492.js +2 -2
  700. package/cli/app/.next-cli-build/server/chunks/5000.js +1 -1
  701. package/cli/app/.next-cli-build/server/chunks/5019.js +1 -1
  702. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  703. package/cli/app/.next-cli-build/server/chunks/5295.js +1 -1
  704. package/cli/app/.next-cli-build/server/chunks/5330.js +23 -17
  705. package/cli/app/.next-cli-build/server/chunks/5434.js +1 -1
  706. package/cli/app/.next-cli-build/server/chunks/5436.js +2 -2
  707. package/cli/app/.next-cli-build/server/chunks/5681.js +1 -1
  708. package/cli/app/.next-cli-build/server/chunks/6182.js +3 -3
  709. package/cli/app/.next-cli-build/server/chunks/6306.js +1 -1
  710. package/cli/app/.next-cli-build/server/chunks/6846.js +1 -1
  711. package/cli/app/.next-cli-build/server/chunks/7319.js +160 -154
  712. package/cli/app/.next-cli-build/server/chunks/7634.js +2 -2
  713. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
  714. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  715. package/cli/app/.next-cli-build/server/chunks/8574.js +1 -1
  716. package/cli/app/.next-cli-build/server/chunks/8895.js +7 -7
  717. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  718. package/cli/app/.next-cli-build/server/chunks/8910.js +1 -1
  719. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
  720. package/cli/app/.next-cli-build/server/chunks/9835.js +1 -1
  721. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  722. package/cli/app/.next-cli-build/server/middleware.js +2 -2
  723. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  724. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  725. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  726. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  727. package/cli/app/.next-cli-build/static/chunks/{5497-27b73ecf920843b1.js → 5497-e9d1db8fdeb5d244.js} +1 -1
  728. package/cli/app/.next-cli-build/static/chunks/620-87693c86ce52cd6b.js +1 -0
  729. package/cli/app/.next-cli-build/static/chunks/756-ce6e7590e83c0743.js +70 -0
  730. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-8aaa1c79069eec02.js +1 -0
  731. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-7773ceed661bcb34.js +1 -0
  732. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a096025e3edc5150.js → page-f769b7591eebddf5.js} +1 -1
  733. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-8a3bd56e53cbbdbd.js +1 -0
  734. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-ca3d31524c44540f.js → page-00cdd20ce7dd6c79.js} +2 -2
  735. package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-db8d22293b86486b.js → page-770f86851dc3d3f5.js} +1 -1
  736. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
  737. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
  738. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-db8d22293b86486b.js → route-770f86851dc3d3f5.js} +1 -1
  739. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-770f86851dc3d3f5.js +1 -0
  740. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-770f86851dc3d3f5.js +1 -0
  741. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-770f86851dc3d3f5.js +1 -0
  742. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-770f86851dc3d3f5.js +1 -0
  743. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-770f86851dc3d3f5.js +1 -0
  744. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-770f86851dc3d3f5.js +1 -0
  745. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-770f86851dc3d3f5.js +1 -0
  746. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-770f86851dc3d3f5.js +1 -0
  747. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-770f86851dc3d3f5.js +1 -0
  748. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-770f86851dc3d3f5.js +1 -0
  749. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-770f86851dc3d3f5.js +1 -0
  750. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-770f86851dc3d3f5.js +1 -0
  751. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-770f86851dc3d3f5.js +1 -0
  752. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-770f86851dc3d3f5.js +1 -0
  753. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-770f86851dc3d3f5.js +1 -0
  754. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-770f86851dc3d3f5.js +1 -0
  755. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-770f86851dc3d3f5.js +1 -0
  756. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-770f86851dc3d3f5.js +1 -0
  757. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-770f86851dc3d3f5.js +1 -0
  758. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-770f86851dc3d3f5.js +1 -0
  759. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-770f86851dc3d3f5.js +1 -0
  760. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-770f86851dc3d3f5.js +1 -0
  761. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-770f86851dc3d3f5.js +1 -0
  762. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-770f86851dc3d3f5.js +1 -0
  763. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-770f86851dc3d3f5.js +1 -0
  764. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-770f86851dc3d3f5.js +1 -0
  765. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-770f86851dc3d3f5.js +1 -0
  766. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-770f86851dc3d3f5.js +1 -0
  767. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-770f86851dc3d3f5.js +1 -0
  768. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-770f86851dc3d3f5.js +1 -0
  769. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-770f86851dc3d3f5.js +1 -0
  770. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-770f86851dc3d3f5.js +1 -0
  771. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-770f86851dc3d3f5.js +1 -0
  772. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-770f86851dc3d3f5.js +1 -0
  773. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-770f86851dc3d3f5.js +1 -0
  774. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-770f86851dc3d3f5.js +1 -0
  775. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-770f86851dc3d3f5.js +1 -0
  776. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-770f86851dc3d3f5.js +1 -0
  777. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-770f86851dc3d3f5.js +1 -0
  778. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-770f86851dc3d3f5.js +1 -0
  779. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-770f86851dc3d3f5.js +1 -0
  780. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-770f86851dc3d3f5.js +1 -0
  781. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-770f86851dc3d3f5.js +1 -0
  782. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-770f86851dc3d3f5.js +1 -0
  783. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-770f86851dc3d3f5.js +1 -0
  784. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-770f86851dc3d3f5.js +1 -0
  785. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-770f86851dc3d3f5.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-770f86851dc3d3f5.js +1 -0
  787. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-770f86851dc3d3f5.js +1 -0
  788. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-770f86851dc3d3f5.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-770f86851dc3d3f5.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-770f86851dc3d3f5.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-770f86851dc3d3f5.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-770f86851dc3d3f5.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-770f86851dc3d3f5.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-770f86851dc3d3f5.js +1 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-770f86851dc3d3f5.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-770f86851dc3d3f5.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-770f86851dc3d3f5.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-770f86851dc3d3f5.js +1 -0
  799. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-770f86851dc3d3f5.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-770f86851dc3d3f5.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-770f86851dc3d3f5.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-770f86851dc3d3f5.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-770f86851dc3d3f5.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-770f86851dc3d3f5.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-770f86851dc3d3f5.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-770f86851dc3d3f5.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-770f86851dc3d3f5.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-770f86851dc3d3f5.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-770f86851dc3d3f5.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-770f86851dc3d3f5.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-770f86851dc3d3f5.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-770f86851dc3d3f5.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-770f86851dc3d3f5.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-770f86851dc3d3f5.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-770f86851dc3d3f5.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-770f86851dc3d3f5.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-770f86851dc3d3f5.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-770f86851dc3d3f5.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-770f86851dc3d3f5.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-770f86851dc3d3f5.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-770f86851dc3d3f5.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-770f86851dc3d3f5.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-770f86851dc3d3f5.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-770f86851dc3d3f5.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-770f86851dc3d3f5.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-770f86851dc3d3f5.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-770f86851dc3d3f5.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-770f86851dc3d3f5.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-770f86851dc3d3f5.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-770f86851dc3d3f5.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-770f86851dc3d3f5.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-770f86851dc3d3f5.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-770f86851dc3d3f5.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-770f86851dc3d3f5.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-770f86851dc3d3f5.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-770f86851dc3d3f5.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-770f86851dc3d3f5.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-770f86851dc3d3f5.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-770f86851dc3d3f5.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-770f86851dc3d3f5.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-770f86851dc3d3f5.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-770f86851dc3d3f5.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-770f86851dc3d3f5.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-770f86851dc3d3f5.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-770f86851dc3d3f5.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-770f86851dc3d3f5.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-770f86851dc3d3f5.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-770f86851dc3d3f5.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-770f86851dc3d3f5.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-770f86851dc3d3f5.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-770f86851dc3d3f5.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-770f86851dc3d3f5.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-770f86851dc3d3f5.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-770f86851dc3d3f5.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-770f86851dc3d3f5.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-770f86851dc3d3f5.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-770f86851dc3d3f5.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-770f86851dc3d3f5.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-770f86851dc3d3f5.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-770f86851dc3d3f5.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-770f86851dc3d3f5.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-770f86851dc3d3f5.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-770f86851dc3d3f5.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-770f86851dc3d3f5.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-770f86851dc3d3f5.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-770f86851dc3d3f5.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-770f86851dc3d3f5.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-770f86851dc3d3f5.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-770f86851dc3d3f5.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-770f86851dc3d3f5.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-770f86851dc3d3f5.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-770f86851dc3d3f5.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-770f86851dc3d3f5.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-770f86851dc3d3f5.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-770f86851dc3d3f5.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-770f86851dc3d3f5.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-770f86851dc3d3f5.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-770f86851dc3d3f5.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-770f86851dc3d3f5.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-770f86851dc3d3f5.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-770f86851dc3d3f5.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-770f86851dc3d3f5.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-770f86851dc3d3f5.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-770f86851dc3d3f5.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-770f86851dc3d3f5.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-770f86851dc3d3f5.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-770f86851dc3d3f5.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-770f86851dc3d3f5.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-770f86851dc3d3f5.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-770f86851dc3d3f5.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-770f86851dc3d3f5.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-770f86851dc3d3f5.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-770f86851dc3d3f5.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-770f86851dc3d3f5.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-770f86851dc3d3f5.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-770f86851dc3d3f5.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-770f86851dc3d3f5.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-770f86851dc3d3f5.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-770f86851dc3d3f5.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-770f86851dc3d3f5.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-770f86851dc3d3f5.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-770f86851dc3d3f5.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-770f86851dc3d3f5.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-770f86851dc3d3f5.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-770f86851dc3d3f5.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-770f86851dc3d3f5.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-770f86851dc3d3f5.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-770f86851dc3d3f5.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-770f86851dc3d3f5.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-770f86851dc3d3f5.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-770f86851dc3d3f5.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-770f86851dc3d3f5.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-770f86851dc3d3f5.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-770f86851dc3d3f5.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-770f86851dc3d3f5.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-770f86851dc3d3f5.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-770f86851dc3d3f5.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-770f86851dc3d3f5.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-770f86851dc3d3f5.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-770f86851dc3d3f5.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-770f86851dc3d3f5.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-770f86851dc3d3f5.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-770f86851dc3d3f5.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-770f86851dc3d3f5.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-770f86851dc3d3f5.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-770f86851dc3d3f5.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-770f86851dc3d3f5.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-770f86851dc3d3f5.js +1 -0
  953. package/cli/app/.next-cli-build/static/chunks/app/page-770f86851dc3d3f5.js +1 -0
  954. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-770f86851dc3d3f5.js +1 -0
  955. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-770f86851dc3d3f5.js +1 -0
  956. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-770f86851dc3d3f5.js +1 -0
  957. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-770f86851dc3d3f5.js +1 -0
  958. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-770f86851dc3d3f5.js +1 -0
  959. package/cli/app/.next-cli-build/static/d1_y1j8QTrpRMT0feZnO_/_buildManifest.js +1 -0
  960. package/cli/app/CHANGELOG.md +28 -6
  961. package/cli/app/package.json +1 -1
  962. package/cli/package.json +1 -1
  963. package/cli/src/cli/menus/cliTools.js +3 -5
  964. package/cli/src/cli/utils/modelSelector.js +252 -84
  965. package/package.json +1 -1
  966. package/cli/app/.next-cli-build/server/chunks/4025.js +0 -70
  967. package/cli/app/.next-cli-build/server/chunks/6651.js +0 -29
  968. package/cli/app/.next-cli-build/static/3cn8Os-pqpQO0HatsLztJ/_buildManifest.js +0 -1
  969. package/cli/app/.next-cli-build/static/chunks/4686-1b72aa88999710a7.js +0 -70
  970. package/cli/app/.next-cli-build/static/chunks/620-49fbd016da0b741e.js +0 -1
  971. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-489aca87c755610e.js +0 -1
  972. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-f4f22350020fab17.js +0 -1
  973. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-c3ec6bd67f2b1d69.js +0 -1
  974. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-db8d22293b86486b.js +0 -1
  975. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-db8d22293b86486b.js +0 -1
  976. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-db8d22293b86486b.js +0 -1
  977. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-db8d22293b86486b.js +0 -1
  978. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-db8d22293b86486b.js +0 -1
  979. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-db8d22293b86486b.js +0 -1
  980. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-db8d22293b86486b.js +0 -1
  981. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-db8d22293b86486b.js +0 -1
  982. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-db8d22293b86486b.js +0 -1
  983. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-db8d22293b86486b.js +0 -1
  984. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-db8d22293b86486b.js +0 -1
  985. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-db8d22293b86486b.js +0 -1
  986. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-db8d22293b86486b.js +0 -1
  987. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-db8d22293b86486b.js +0 -1
  988. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-db8d22293b86486b.js +0 -1
  989. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-db8d22293b86486b.js +0 -1
  990. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-db8d22293b86486b.js +0 -1
  991. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-db8d22293b86486b.js +0 -1
  992. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-db8d22293b86486b.js +0 -1
  993. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-db8d22293b86486b.js +0 -1
  994. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-db8d22293b86486b.js +0 -1
  995. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-db8d22293b86486b.js +0 -1
  996. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-db8d22293b86486b.js +0 -1
  997. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-db8d22293b86486b.js +0 -1
  998. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-db8d22293b86486b.js +0 -1
  999. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-db8d22293b86486b.js +0 -1
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-db8d22293b86486b.js +0 -1
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-db8d22293b86486b.js +0 -1
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-db8d22293b86486b.js +0 -1
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-db8d22293b86486b.js +0 -1
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-db8d22293b86486b.js +0 -1
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-db8d22293b86486b.js +0 -1
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-db8d22293b86486b.js +0 -1
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-db8d22293b86486b.js +0 -1
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-db8d22293b86486b.js +0 -1
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-db8d22293b86486b.js +0 -1
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-db8d22293b86486b.js +0 -1
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-db8d22293b86486b.js +0 -1
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-db8d22293b86486b.js +0 -1
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-db8d22293b86486b.js +0 -1
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-db8d22293b86486b.js +0 -1
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-db8d22293b86486b.js +0 -1
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-db8d22293b86486b.js +0 -1
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-db8d22293b86486b.js +0 -1
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-db8d22293b86486b.js +0 -1
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-db8d22293b86486b.js +0 -1
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-db8d22293b86486b.js +0 -1
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-db8d22293b86486b.js +0 -1
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-db8d22293b86486b.js +0 -1
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-db8d22293b86486b.js +0 -1
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-db8d22293b86486b.js +0 -1
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-db8d22293b86486b.js +0 -1
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-db8d22293b86486b.js +0 -1
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-db8d22293b86486b.js +0 -1
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-db8d22293b86486b.js +0 -1
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-db8d22293b86486b.js +0 -1
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-db8d22293b86486b.js +0 -1
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-db8d22293b86486b.js +0 -1
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-db8d22293b86486b.js +0 -1
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-db8d22293b86486b.js +0 -1
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-db8d22293b86486b.js +0 -1
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-db8d22293b86486b.js +0 -1
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-db8d22293b86486b.js +0 -1
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-db8d22293b86486b.js +0 -1
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-db8d22293b86486b.js +0 -1
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-db8d22293b86486b.js +0 -1
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-db8d22293b86486b.js +0 -1
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-db8d22293b86486b.js +0 -1
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-db8d22293b86486b.js +0 -1
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-db8d22293b86486b.js +0 -1
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-db8d22293b86486b.js +0 -1
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-db8d22293b86486b.js +0 -1
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-db8d22293b86486b.js +0 -1
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-db8d22293b86486b.js +0 -1
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-db8d22293b86486b.js +0 -1
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-db8d22293b86486b.js +0 -1
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-db8d22293b86486b.js +0 -1
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-db8d22293b86486b.js +0 -1
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-db8d22293b86486b.js +0 -1
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-db8d22293b86486b.js +0 -1
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-db8d22293b86486b.js +0 -1
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-db8d22293b86486b.js +0 -1
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-db8d22293b86486b.js +0 -1
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-db8d22293b86486b.js +0 -1
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-db8d22293b86486b.js +0 -1
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-db8d22293b86486b.js +0 -1
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-db8d22293b86486b.js +0 -1
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-db8d22293b86486b.js +0 -1
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-db8d22293b86486b.js +0 -1
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-db8d22293b86486b.js +0 -1
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-db8d22293b86486b.js +0 -1
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-db8d22293b86486b.js +0 -1
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-db8d22293b86486b.js +0 -1
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-db8d22293b86486b.js +0 -1
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-db8d22293b86486b.js +0 -1
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-db8d22293b86486b.js +0 -1
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-db8d22293b86486b.js +0 -1
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-db8d22293b86486b.js +0 -1
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-db8d22293b86486b.js +0 -1
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-db8d22293b86486b.js +0 -1
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-db8d22293b86486b.js +0 -1
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-db8d22293b86486b.js +0 -1
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-db8d22293b86486b.js +0 -1
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-db8d22293b86486b.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-db8d22293b86486b.js +0 -1
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-db8d22293b86486b.js +0 -1
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-db8d22293b86486b.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-db8d22293b86486b.js +0 -1
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-db8d22293b86486b.js +0 -1
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-db8d22293b86486b.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-db8d22293b86486b.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-db8d22293b86486b.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-db8d22293b86486b.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-db8d22293b86486b.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-db8d22293b86486b.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-db8d22293b86486b.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-db8d22293b86486b.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-db8d22293b86486b.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-db8d22293b86486b.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-db8d22293b86486b.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-db8d22293b86486b.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-db8d22293b86486b.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-db8d22293b86486b.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-db8d22293b86486b.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-db8d22293b86486b.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-db8d22293b86486b.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-db8d22293b86486b.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-db8d22293b86486b.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-db8d22293b86486b.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-db8d22293b86486b.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-db8d22293b86486b.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-db8d22293b86486b.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-db8d22293b86486b.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-db8d22293b86486b.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-db8d22293b86486b.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-db8d22293b86486b.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-db8d22293b86486b.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-db8d22293b86486b.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-db8d22293b86486b.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-db8d22293b86486b.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-db8d22293b86486b.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-db8d22293b86486b.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-db8d22293b86486b.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-db8d22293b86486b.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-db8d22293b86486b.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-db8d22293b86486b.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-db8d22293b86486b.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-db8d22293b86486b.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-db8d22293b86486b.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-db8d22293b86486b.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-db8d22293b86486b.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-db8d22293b86486b.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-db8d22293b86486b.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-db8d22293b86486b.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-db8d22293b86486b.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-db8d22293b86486b.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-db8d22293b86486b.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-db8d22293b86486b.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-db8d22293b86486b.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-db8d22293b86486b.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-db8d22293b86486b.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-db8d22293b86486b.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-db8d22293b86486b.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-db8d22293b86486b.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-db8d22293b86486b.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-db8d22293b86486b.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-db8d22293b86486b.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-db8d22293b86486b.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-db8d22293b86486b.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-db8d22293b86486b.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-db8d22293b86486b.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-db8d22293b86486b.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-db8d22293b86486b.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-db8d22293b86486b.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-db8d22293b86486b.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-db8d22293b86486b.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-db8d22293b86486b.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-db8d22293b86486b.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-db8d22293b86486b.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-db8d22293b86486b.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-db8d22293b86486b.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-db8d22293b86486b.js +0 -1
  1180. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-db8d22293b86486b.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-db8d22293b86486b.js +0 -1
  1182. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-db8d22293b86486b.js +0 -1
  1183. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-db8d22293b86486b.js +0 -1
  1184. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-db8d22293b86486b.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-db8d22293b86486b.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-db8d22293b86486b.js +0 -1
  1187. package/cli/app/.next-cli-build/static/chunks/app/page-db8d22293b86486b.js +0 -1
  1188. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-db8d22293b86486b.js +0 -1
  1189. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-db8d22293b86486b.js +0 -1
  1190. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-db8d22293b86486b.js +0 -1
  1191. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-db8d22293b86486b.js +0 -1
  1192. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-db8d22293b86486b.js +0 -1
  1193. /package/cli/app/.next-cli-build/static/{3cn8Os-pqpQO0HatsLztJ → d1_y1j8QTrpRMT0feZnO_}/_ssgManifest.js +0 -0
@@ -4,4 +4,4 @@
4
4
  `,children:[g.includes(e.name)&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(q).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=n===e.value,r=e.isPlaceholder;return(0,s.jsx)("button",{onClick:()=>L(e),title:r?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
5
  px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
6
  ${r?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":t?"bg-primary text-white border-primary":g.includes(e.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
7
- `,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[g.includes(e.value)&&!r&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):e.name]})},e.value)})})]},e)),0===Object.keys(q).length&&0===M.length&&(0,s.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,s.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}function p(e){return e.isOpen?(0,s.jsx)(x,{...e}):null}p.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSelect:n().func.isRequired,onDeselect:n().func,selectedModel:n().string,activeProviders:n().arrayOf(n().shape({provider:n().string.isRequired})),title:n().string,modelAliases:n().object,kindFilter:n().string,addedModelValues:n().arrayOf(n().string),closeOnSelect:n().bool}},73006:(e,t,r)=>{r.d(t,{FE:()=>h,Tl:()=>c,kk:()=>u,oQ:()=>m,wn:()=>b});var s=r(93308);let a={},l=s.Xn,n=[];function i(e){if("u"<typeof document)return;let t=document.documentElement,r=(0,s.il)(e);t.lang!==e&&(t.lang=e),t.dir!==r&&(t.dir=r)}function o(){if("u"<typeof document)return s.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${s.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):s.Xn;return(0,s.QC)(t)}async function d(e){if("en"===e){a={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);a=await t.json()}catch(e){console.error("Failed to load translations:",e),a={}}}function c(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==l&&a[t]||e}function u(){return l}function m(e){return n.push(e),()=>{n=n.filter(t=>t!==e)}}function x(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let r=t;for(;r;){if(r.hasAttribute&&r.hasAttribute("data-i18n-skip"))return;r=r.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let s=c(e._originalText);s!==e.nodeValue&&(e.nodeValue=s)}function p(e){let t;if(!e)return;let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),s=[];for(;t=r.nextNode();)s.push(t);s.forEach(x)}async function h(){i(l=o()),await d(l),p(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?p(e):e.nodeType===Node.TEXT_NODE&&x(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function b(){i(l=o()),await d(l),n.forEach(e=>e()),p(document.body)}},73579:(e,t,r)=>{r.d(t,{default:()=>x});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(81127),o=r(11910),d=r(92542),c=r(56061),u=r(52679);function m({isOpen:e,connection:t,proxyPools:r,onSave:l,onClose:n}){let[x,p]=(0,a.useState)({name:"",priority:1,apiKey:""}),[h,b]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[f,g]=(0,a.useState)({accountId:""}),[j,v]=(0,a.useState)({spaceId:"",spaceViewId:"",userId:"",clientVersion:"",cell:""}),[y,N]=(0,a.useState)(!1),[k,w]=(0,a.useState)(null),[C,S]=(0,a.useState)(!1),[I,T]=(0,a.useState)(null),[$,A]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t&&(p({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData?b({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}):b({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),"cloudflare-ai"===t.provider&&t.providerSpecificData?g({accountId:t.providerSpecificData.accountId||""}):g({accountId:""}),"notion-ai"===t.provider&&t.providerSpecificData?v({spaceId:t.providerSpecificData.spaceId||"",spaceViewId:t.providerSpecificData.spaceViewId||"",userId:t.providerSpecificData.userId||t.providerSpecificData.notionUserId||"",clientVersion:t.providerSpecificData.clientVersion||"",cell:t.providerSpecificData.cell||""}):v({spaceId:"",spaceViewId:"",userId:"",clientVersion:"",cell:""}),w(null),T(null))},[t]);let P=t?.authType==="oauth",O=t?.provider==="azure",R=t?.provider==="cloudflare-ai",E=t?.provider==="notion-ai",z=!!t&&((0,u.mq)(t.provider)||(0,u.gb)(t.provider)),_=()=>{let e=Object.entries({spaceId:j.spaceId.trim(),spaceViewId:j.spaceViewId.trim(),userId:j.userId.trim(),clientVersion:j.clientVersion.trim(),cell:j.cell.trim()}).filter(([,e])=>e);return e.length>0?Object.fromEntries(e):void 0},M=async()=>{if(t?.provider){N(!0),w(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),r=await e.json();w(r.valid?"success":"failed")}catch{w("failed")}finally{N(!1)}}},q=async()=>{if(t?.provider&&x.apiKey){S(!0),T(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...O?{providerSpecificData:h}:{},...R?{providerSpecificData:f}:{},...E?{providerSpecificData:_()}:{}})}),r=await e.json();T(r.valid?"success":"failed")}catch{T("failed")}finally{S(!1)}}},L=async()=>{if(t&&(P||!x.apiKey||"failed"!==I||window.confirm("The API key failed validation. Save it anyway?"))){A(!0);try{let e={name:x.name,priority:x.priority};if(!P&&x.apiKey){e.apiKey=x.apiKey;let r="success"===I;if(!r)try{S(!0),T(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...O?{providerSpecificData:h}:{},...R?{providerSpecificData:f}:{},...E?{providerSpecificData:_()}:{}})});r=!!(await e.json()).valid,T(r?"success":"failed")}catch{T("failed")}finally{S(!1)}r&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}O&&(e.providerSpecificData={azureEndpoint:h.azureEndpoint,apiVersion:h.apiVersion,deployment:h.deployment,organization:h.organization}),R&&(e.providerSpecificData={accountId:f.accountId}),E&&(e.providerSpecificData=_()),await l(e)}finally{A(!1)}}};return t?(0,s.jsx)(i.default,{isOpen:e,title:"Edit Connection",onClose:n,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.default,{label:"Name",value:x.name,onChange:e=>p({...x,name:e.target.value}),placeholder:P?"Account name":"Production Key"}),P&&t.email&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,s.jsx)("p",{className:"font-medium",children:t.email})]}),(0,s.jsx)(o.default,{label:"Priority",type:"number",value:x.priority,onChange:e=>p({...x,priority:Number.parseInt(e.target.value,10)||1})}),!P&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.default,{label:"cookie"===t.authType?"Cookie Value":"API Key",type:"cookie"===t.authType?"text":"password",value:x.apiKey,onChange:e=>p({...x,apiKey:e.target.value}),placeholder:"cookie"===t.authType?"Paste a new session cookie or cookie-export JSON":"Enter new API key",hint:"cookie"===t.authType?"Leave blank to keep the current cookie.":"Leave blank to keep the current API key.",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.default,{onClick:q,disabled:!x.apiKey||C||$,variant:"secondary",children:C?"Checking...":"Check"})})]}),I&&(0,s.jsx)(c.default,{variant:"success"===I?"success":"error",children:"success"===I?"Valid":"Invalid"})]}),E&&(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-accent/20 bg-sidebar/50 p-4",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold",children:"Notion workspace metadata (optional)"}),(0,s.jsx)("p",{className:"text-xs leading-relaxed text-text-muted",children:"Space ID and User ID are optional. The router resolves them from Notion's authenticated getSpaces endpoint; enter them only to override discovery."}),(0,s.jsx)(o.default,{label:"Space ID (optional)",value:j.spaceId,onChange:e=>v({...j,spaceId:e.target.value}),placeholder:"Auto-resolved from Notion"}),(0,s.jsx)(o.default,{label:"User ID (optional)",value:j.userId,onChange:e=>v({...j,userId:e.target.value}),placeholder:"Auto-resolved from Notion"}),(0,s.jsx)(o.default,{label:"Space View ID (optional)",value:j.spaceViewId,onChange:e=>v({...j,spaceViewId:e.target.value}),placeholder:"Leave blank to use Space ID"}),(0,s.jsx)(o.default,{label:"Notion client version (optional)",value:j.clientVersion,onChange:e=>v({...j,clientVersion:e.target.value}),placeholder:"Copy from the browser request if required"}),(0,s.jsx)(o.default,{label:"Cell (optional)",value:j.cell,onChange:e=>v({...j,cell:e.target.value}),placeholder:"Copy x-notion-cell if your request has it"})]}),O&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.default,{label:"Azure Endpoint",value:h.azureEndpoint,onChange:e=>b({...h,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,s.jsx)(o.default,{label:"Deployment Name",value:h.deployment,onChange:e=>b({...h,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,s.jsx)(o.default,{label:"API Version",value:h.apiVersion,onChange:e=>b({...h,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,s.jsx)(o.default,{label:"Organization",value:h.organization,onChange:e=>b({...h,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),!z&&!O&&!R&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{onClick:M,variant:"secondary",disabled:y,children:y?"Testing...":"Test Connection"}),k&&(0,s.jsx)(c.default,{variant:"success"===k?"success":"error",children:"success"===k?"Valid":"Failed"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.default,{onClick:L,fullWidth:!0,disabled:$,children:$?"Saving...":"Save"}),(0,s.jsx)(d.default,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function x(e){return e.isOpen?(0,s.jsx)(m,{...e}):null}x.propTypes={isOpen:n().bool.isRequired,connection:n().shape({id:n().string,name:n().string,email:n().string,priority:n().number,authType:n().string,provider:n().string,providerSpecificData:n().object}),proxyPools:n().arrayOf(n().shape({id:n().string,name:n().string})),onSave:n().func.isRequired,onClose:n().func.isRequired}},80752:(e,t,r)=>{r.d(t,{default:()=>u});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(1620),o=r(40197),d=r(81127);function c({icon:e,label:t,onClick:r,trailing:a,danger:l}){return(0,s.jsxs)("button",{onClick:r,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${l?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[20px] ${l?"":"text-text-muted"}`,children:e}),(0,s.jsx)("span",{className:"flex-1 text-left",children:t}),a&&(0,s.jsx)("span",{className:"text-base",children:a})]})}function u({onLogout:e}){let[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)(!1),[m,x]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),{toggleTheme:b,isDark:f}=(0,i.D)(),g=(0,a.useRef)(null),j=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}};return(0,a.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&r(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:g,children:[(0,s.jsx)("button",{onClick:()=>r(e=>!e),className:"flex size-11 items-center justify-center rounded-xl text-text-muted transition-all hover:bg-black/5 hover:text-text-main dark:hover:bg-white/5 sm:size-10 sm:rounded-lg",title:"Menu","aria-label":"Open dashboard menu",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,s.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{r(!1),n(!0)}}),(0,s.jsx)(c,{icon:f?"light_mode":"dark_mode",label:"Theme",onClick:()=>{b(),r(!1)}}),(0,s.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{r(!1),x(!0)}}),(0,s.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{r(!1),e()}})]})]}),(0,s.jsx)(o.default,{isOpen:l,onClose:()=>n(!1)}),(0,s.jsx)(d.ConfirmModal,{isOpen:m,onClose:()=>{p||x(!1)},onConfirm:j,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:n().string.isRequired,label:n().string.isRequired,onClick:n().func.isRequired,trailing:n().node,danger:n().bool},u.propTypes={onLogout:n().func.isRequired}},81127:(e,t,r)=>{r.d(t,{ConfirmModal:()=>d,default:()=>o});var s=r(95155),a=r(12115),l=r(31474),n=r(92542),i=r(97677);function o({isOpen:e,onClose:t,title:r,children:n,footer:d,size:c="md",closeOnOverlay:u=!0,showTrafficLights:m=!0,className:x}){let p=(0,a.useId)(),h=(0,a.useRef)(null),b=(0,a.useRef)(null),f=(0,a.useRef)(t),g='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';return((0,a.useEffect)(()=>{f.current=t},[t]),(0,a.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;b.current=document.activeElement,document.body.style.overflow="hidden";let r=h.current,s=r?.querySelector('input:not([disabled]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea:not([disabled]), select:not([disabled])'),a=r?.querySelector("[data-modal-autofocus]")||s||r?.querySelector(g);(a||r)?.focus();let l=e=>{if("Escape"===e.key)return void f.current?.();if("Tab"!==e.key||!r)return;let t=[...r.querySelectorAll(g)];if(!t.length){e.preventDefault(),r.focus();return}let s=t[0],a=t[t.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),s.focus())};return document.addEventListener("keydown",l),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",l),b.current?.focus?.()}},[e]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end justify-center p-0 sm:items-center sm:p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in","aria-hidden":"true",onClick:u?t:void 0}),(0,s.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":r?p:void 0,"aria-label":r?void 0:"Dialog",tabIndex:-1,className:(0,l.cn)("relative w-full max-h-[calc(100dvh-2rem)] overflow-hidden bg-surface","border border-border-subtle","rounded-t-[18px] shadow-[var(--shadow-elev)] sm:rounded-[14px]","fade-in motion-reduce:animate-none",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(r||m)&&(0,s.jsxs)("div",{className:"flex min-h-14 items-center justify-between gap-3 border-b border-border-subtle px-4 py-2 sm:px-3",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[m&&(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,s.jsx)(i.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,s.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"group/dot flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-[#FF5F56] transition-all hover:brightness-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 motion-reduce:transition-none",children:(0,s.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),r&&(0,s.jsx)("h2",{id:p,className:"text-lg font-semibold text-text-main",children:r})]}),(0,s.jsx)("button",{onClick:t,"aria-label":"Close",className:"grid size-11 place-items-center rounded-[10px] text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 md:hidden motion-reduce:transition-none",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"dashboard-modal-body max-h-[calc(100dvh-8rem)] overflow-y-auto p-4 custom-scrollbar sm:max-h-[calc(85vh-100px)] sm:p-6",children:n}),d&&(0,s.jsx)("div",{className:"dashboard-modal-footer flex flex-col-reverse items-stretch justify-end gap-2 border-t border-border-subtle p-4 sm:flex-row sm:items-center sm:gap-3 sm:p-6",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:r,title:a="Confirm",message:l,confirmText:i="Confirm",cancelText:c="Cancel",variant:u="danger",loading:m=!1}){return(0,s.jsx)(o,{isOpen:e,onClose:t,title:a,size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{variant:"ghost",onClick:t,disabled:m,children:c}),(0,s.jsx)(n.default,{variant:u,onClick:r,loading:m,children:i})]}),children:(0,s.jsx)("p",{className:"text-text-muted",children:l})})}},84588:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(95155),a=r(31474);function l({children:e,title:t,subtitle:r,icon:n,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:u,...m}){return(0,s.jsxs)("div",{className:(0,a.cn)("card-3d border border-border-subtle rounded-[14px] transition-[border-color,box-shadow,transform] duration-200 motion-reduce:transition-none",c&&"card-3d-elev",d&&"hover:-translate-y-0.5 hover:border-brand-500/30 hover:shadow-[var(--shadow-warm)] cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],u),...m,children:[(t||i)&&(0,s.jsxs)("div",{className:"mb-4 flex min-w-0 items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[n&&(0,s.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,s.jsxs)("div",{className:"min-w-0",children:[t&&(0,s.jsx)("h3",{className:"text-text-main font-semibold",children:t}),r&&(0,s.jsx)("p",{className:"text-sm text-text-muted",children:r})]})]}),i&&(0,s.jsx)("div",{className:"shrink-0",children:i})]}),e]})}l.Section=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...r,children:e})},l.Row=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...r,children:e})},l.ListItem=function({children:e,actions:t,className:r,...l}){return(0,s.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",r),...l,children:[(0,s.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,s.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},90085:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(1934),a=r(31692),l=r(90620);function n(e){let t=document.documentElement,r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";"dark"===("system"===e?r:e)?t.classList.add("dark"):t.classList.remove("dark")}let i=(0,s.v)((0,a.Zr)((e,t)=>({theme:l.B2.defaultTheme,setTheme:t=>{e({theme:t}),n(t)},toggleTheme:()=>{let r="dark"===t().theme?"light":"dark";e({theme:r}),n(r)},initTheme:()=>{n(t().theme)}}),{name:l.B2.storageKey}))},90882:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497),o=r(11059);function d({isOpen:e,provider:t,providerInfo:r,onSuccess:l,onClose:n,oauthMeta:c,idcConfig:u}){let[m,x]=(0,a.useState)("waiting"),[p,h]=(0,a.useState)(null),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(null),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),S=(0,a.useRef)(null),I=(0,a.useRef)(0),{copied:T,copy:$}=(0,o.C)(),[A,P]=(0,a.useState)(!1),[O,R]=(0,a.useState)("/callback?code=..."),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{P("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),R(`${window.location.origin}/callback?code=...`)},[]);let z=(0,a.useCallback)(async(e,r)=>{if(p)try{let s=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:r,...c?{meta:c}:{}})}),a=await s.json();if(!s.ok)throw Error(a.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,t,l,c]),_=(0,a.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),r=await t.json();if(!t.ok)throw Error(r.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,l]),M=(0,a.useCallback)(async(e,r,s,a,n)=>{let i=++I.current,o=()=>I.current===i;C(!0);let d=Date.now()+(Number.isFinite(n)&&n>0?n:12e4);for(;Date.now()<d;){if(!o())return void console.log("[OAuthModal] Polling aborted");if(await new Promise(e=>setTimeout(e,1e3*s)),!o())return void console.log("[OAuthModal] Polling aborted after sleep");try{let n=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:r,extraData:a})}),i=await n.json();if(!o())return;if(i.success){I.current++,x("success"),C(!1),l?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(s=Math.min(s+5,30))}catch(e){if(!o())return;j(e.message),x("error"),C(!1);return}}o()&&(j("Authorization timeout"),x("error"),C(!1))},[t,l]),q=(0,a.useCallback)(async()=>{if(t)try{let e;j(null);let r=window.location.hostname.toLowerCase(),s="codex"===t&&"localhost"!==r&&"127.0.0.1"!==r&&"::1"!==r;if(["github","qwen","kiro","kimi","kimi-coding","kilocode","codebuddy","codebuddy-cn","qoder","grok-cli",...s?["codex"]:[]].includes(t)){y(!0),x("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&u?.startUrl&&(e.searchParams.set("start_url",u.startUrl),u.region&&e.searchParams.set("region",u.region),e.searchParams.set("auth_method","idc"));let r=await fetch(e.toString()),s=await r.json();if(!r.ok)throw Error(s.error);k(s);let a=s.verification_uri_complete||s.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer");let l="codex"===t?{_codexUserCode:s.user_code}:"kiro"===t?{_clientId:s._clientId,_clientSecret:s._clientSecret,_region:s._region,_authMethod:s._authMethod,_startUrl:s._startUrl}:"qoder"===t?{_qoderNonce:s._qoderNonce,_qoderMachineId:s._qoderMachineId,_qoderVerifier:s.codeVerifier}:null;M(s.device_code,s.codeVerifier,s.interval||5,l,Number.isFinite(s.expires_in)&&s.expires_in>0?1e3*s.expires_in:void 0);return}if(["trae","windsurf","zed"].includes(t)){let e=await fetch(`/api/oauth/${t}/start-proxy`),r=await e.json();if(!e.ok||!r.success||!r.callbackUrl)throw Error(r.reason||r.error||`Failed to start ${t} callback server`);let s=new URL(`/api/oauth/${t}/authorize`,window.location.origin);s.searchParams.set("redirect_uri",r.callbackUrl);let a=await fetch(s.toString()),l=await a.json();if(!a.ok)throw Error(l.error);let n={state:l.state};l.codeVerifier&&(n.codeVerifier=l.codeVerifier),await fetch(`/api/oauth/${t}/register-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),h({...l,proxyProvider:t}),x("waiting"),S.current=window.open(l.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input");return}let a=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${a}/callback`;let l=new URL(`/api/oauth/${t}/authorize`,window.location.origin);l.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&l.searchParams.set(e,t)});let n=await fetch(l.toString()),i=await n.json();if(!n.ok)throw Error(i.error);let o=!1,d=!1;if("codex"===t)try{let t=await fetch("/api/oauth/codex/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:a,state:i.state,codeVerifier:i.codeVerifier,redirectUri:e})}),r=await t.json();o=r.success,d=!!r.serverSide}catch{o=!1}let m=!1,p=!1;if("xai"===t)try{let t=await fetch("/api/oauth/xai/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:a,state:i.state,codeVerifier:i.codeVerifier,redirectUri:e})}),r=await t.json();if(m=r.success,p=!!r.serverSide,!m&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;m=!1}h({...i,redirectUri:e,codexServerSide:d,xaiServerSide:p}),"codex"===t&&o||"xai"===t&&m||A&&"codex"!==t&&"xai"!==t?(x("waiting"),S.current=window.open(i.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input")):(x("input"),window.open(i.authUrl,"_blank","noopener,noreferrer"))}catch(e){j(e.message),x("error")}},[t,A,M,c,u]);(0,a.useEffect)(()=>{e&&t?(h(null),f(""),j(null),y(!1),k(null),C(!1),q()):!e&&(I.current++,"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t?fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}):["trae","windsurf","zed"].includes(t)&&fetch(`/api/oauth/${t}/stop-proxy`).catch(()=>{}))},[e,t,q]),(0,a.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":p?.proxyProvider||null;if(!e||!p?.state||E.current)return;let t=!1,r=null,s=0,a=async()=>{if(!t&&!E.current){s+=1;try{let r=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),s=await r.json();if(t||E.current)return;if("done"===s.status){E.current=!0,x("success"),l?.();return}if("error"===s.status){E.current=!0,j(s.error||"Authentication failed"),x("error");return}}catch{}if(s>=200){E.current=!0,j("Authentication timeout"),x("error");return}r=setTimeout(a,1500)}};return r=setTimeout(a,1500),()=>{t=!0,r&&clearTimeout(r)}},[p,l]),(0,a.useEffect)(()=>{let e;if(!p)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:r,error:s,errorDescription:a}=e;if(s){E.current=!0,j(a||s),x("error");return}t&&(E.current=!0,await z(t,r))},r=e=>{let r=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),s=e.origin===window.location.origin;(r||s)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",r);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let s=e=>{if("oauth_callback"===e.key&&e.newValue)try{let r=JSON.parse(e.newValue);t(r),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",s);try{let e=localStorage.getItem("oauth_callback");if(e){let r=JSON.parse(e);r.timestamp&&Date.now()-r.timestamp<3e4&&t(r),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",r),window.removeEventListener("storage",s),e&&e.close()}},[p,z]);let L=async()=>{try{j(null);let e=b.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await z(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await _(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await z(e,null);let r=new URL(e),s=r.searchParams.get("code"),a=r.searchParams.get("token"),l=r.searchParams.get("state"),n=r.searchParams.get("error");if(n)throw Error(r.searchParams.get("error_description")||n);if(!s&&!a)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await z(a||s,l)}catch(e){j(e.message),x("error")}},D=(0,a.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}),n()},[n,t]);if(!t||!r)return null;let U="xai"===t,F="kimchi"===t,W=N?.verification_uri_complete||N?.verification_uri||"",B=U?"Connect Grok Build OAuth":`Connect ${r.name}`,K=U?"http://127.0.0.1:56121/callback?code=... or copied code":F?`${O.replace("code=...","token=...")} or copied token`:O;return(0,s.jsx)(i.aF,{isOpen:e,title:B,onClose:D,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===m||"input"===m)&&!v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,s.jsx)("span",{className:"text-sm",children:U?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,s.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",U?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===T?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"kimchi"===t?"callback URL or token":"callback URL"," here"]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"kimchi"===t?"After authorization, paste the callback URL (with token=…) or the raw Kimchi token.":"After authorization, copy the full URL from your browser."}),(0,s.jsx)(i.pd,{value:b,onChange:e=>f(e.target.value),placeholder:K,className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:L,fullWidth:!0,disabled:!b,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:D,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===m&&v&&N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center py-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,s.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===T?"check":"content_copy",onClick:()=>$(W,"login_url"),disabled:!W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(W,"_blank","noopener,noreferrer"),disabled:!W,children:"Open"})]})]}),(0,s.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===T?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),w&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===m&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",r.name," account has been connected."]}),(0,s.jsx)(i.$n,{onClick:D,fullWidth:!0,children:"Done"})]}),"error"===m&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:q,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:D,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired,oauthMeta:n().object,idcConfig:n().shape({startUrl:n().string,region:n().string})}},91450:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(14051),l=r.n(a),n=r(38587);function i({children:e}){return(0,s.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,s.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,s.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,s.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,s.jsx)(n.default,{variant:"card"})}),(0,s.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}i.propTypes={children:l().node.isRequired}},92173:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(95155),a=r(98500),l=r.n(a),n=r(90620);let i=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,s.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,s.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)("div",{className:"size-6 text-primary",children:(0,s.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,s.jsx)("span",{className:"text-xl font-bold text-text-main",children:n.vQ.name})]}),(0,s.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,s.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",n.vQ.name," Inc. All rights reserved."]}),(0,s.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(31474);let l={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},n={sm:"h-10 px-3 text-xs rounded-[8px] sm:h-7",md:"h-11 px-4 text-sm rounded-[10px] sm:h-9",lg:"h-12 px-6 text-sm rounded-[10px] sm:h-11"};function i({children:e,variant:t="primary",size:r="md",icon:o,iconRight:d,disabled:c=!1,loading:u=!1,fullWidth:m=!1,className:x,...p}){return(0,s.jsxs)("button",{className:(0,a.cn)("relative inline-flex items-center justify-center font-semibold transition-[background-color,border-color,color,box-shadow,transform] duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg motion-reduce:transition-none",l[t],n[r],m&&"w-full",x),disabled:c||u,"aria-busy":u||void 0,...p,children:[(0,s.jsx)("span",{className:"button-content inline-grid items-center justify-center",children:(0,s.jsxs)("span",{className:(0,a.cn)("col-start-1 row-start-1 inline-flex items-center justify-center gap-2",u&&"invisible"),children:[o&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:o}),e,d&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:d})]})}),u&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined absolute animate-spin text-[18px] motion-reduce:animate-none",children:"progress_activity"})]})}},92622:(e,t,r)=>{r.d(t,{default:()=>S});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(98500),o=r.n(i),d=r(73321),c=r(31474),u=r(90620),m=r(52679),x=r(11059),p=r(92542),h=r(81127);let b=["embedding","image","tts","stt"],f="/dashboard/media-providers/web",g=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"terminal"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/playground",label:"Playground",icon:"forum"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"}],j=[{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"handyman"},{href:"/dashboard/mitm",label:"MITM",icon:"security"},{href:"/dashboard/automation",label:"Automation",icon:"automation"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/terminal",label:"Terminal",icon:"terminal"}],v=[{href:"/dashboard/console-log",label:"Console Log",icon:"receipt_long"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/context",label:"Context Inject",icon:"psychology"},{href:"/dashboard/skills",label:"Agent Skills",icon:"extension"}],N="group relative flex min-h-11 items-center gap-3 rounded-xl border border-transparent px-3 py-2 transition-all duration-200 lg:min-h-9 lg:py-1",k="border-primary/15 bg-linear-to-r from-primary/15 to-primary/5 text-primary shadow-[0_12px_26px_-22px_rgba(229,106,74,0.9)]",w="text-text-muted hover:border-border-subtle hover:bg-surface-2 hover:text-text-main";function C(e){return(0,c.cn)("material-symbols-outlined flex size-7 shrink-0 items-center justify-center rounded-lg text-[18px] transition-all duration-200",e?"fill-1 bg-primary text-white shadow-[0_7px_16px_-8px_rgba(229,106,74,0.9)]":"group-hover:bg-primary/10 group-hover:text-primary")}function S({onClose:e}){let t=(0,d.usePathname)(),r=j.some(e=>t===e.href||t.startsWith(`${e.href}/`)),[l,n]=(0,a.useState)(!1),[i,T]=(0,a.useState)(!0),[$,A]=(0,a.useState)(!1),[P,O]=(0,a.useState)(null),[R,E]=(0,a.useState)(!1),[z,_]=(0,a.useState)(!1),[M,q]=(0,a.useState)(0),[L,D]=(0,a.useState)(!1),{copied:U,copy:F}=(0,x.C)(2e3),W=(0,a.useRef)(null),B=u.h0.installCmdLatest;(0,a.useEffect)(()=>()=>{W.current&&(clearInterval(W.current),W.current=null)},[]),(0,a.useEffect)(()=>{let e=!1;return fetch("/api/settings").then(e=>e.json()).then(t=>{!e&&t.enableTranslator&&D(!0)}).catch(()=>{}),()=>{e=!0}},[]),(0,a.useEffect)(()=>{let e=!1;return fetch("/api/version",{cache:"no-store"}).then(e=>e.json()).then(t=>{e||(t?.hasUpdate?O(t):O(null))}).catch(()=>{}),()=>{e=!0}},[]),(0,a.useEffect)(()=>{r&&T(!0)},[r]);let K=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),V=async()=>{if(!await F(B))return;let e=u.h0.shutdownCountdownSec;q(e),W.current&&clearInterval(W.current),W.current=setInterval(()=>{q(e-=1),e<=0&&(clearInterval(W.current),W.current=null,fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),A(!0))},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"relative flex h-full min-h-0 w-[min(18rem,86vw)] flex-col overflow-hidden border-r border-border-subtle bg-vibrancy shadow-[8px_0_30px_-28px_rgba(0,0,0,0.45)] backdrop-blur-xl transition-colors duration-300 after:pointer-events-none after:absolute after:inset-y-0 after:right-0 after:w-px after:bg-linear-to-b after:from-transparent after:via-primary/25 after:to-transparent lg:w-72",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"}),e&&(0,s.jsx)("button",{type:"button",onClick:e,"aria-label":"Close dashboard navigation",className:"ml-auto grid size-11 place-items-center rounded-xl text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 lg:hidden",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border-subtle/70 px-6 py-4",children:[(0,s.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-[#FF9A52] via-[#F56A2A] to-[#D94716] shadow-[var(--shadow-warm)] ring-1 ring-white/20",children:(0,s.jsx)("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",children:(0,s.jsx)("path",{d:"M9 10H23L9 22H23",stroke:"white",strokeWidth:"3.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:u.vQ.name}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["v",u.vQ.version]})]})]}),P&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",P.latestVersion]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>E(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,s.jsx)("button",{onClick:()=>F(B),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,s.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:U?"✓ copied!":B})})]})]})]}),(0,s.jsxs)("nav",{"aria-label":"Main navigation",className:"min-h-0 flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[(0,s.jsx)("p",{className:"px-3 pt-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-text-muted/55",children:"Core"}),g.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,s.jsxs)("div",{className:"pt-3 mt-1 space-y-0.5",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>T(e=>!e),className:(0,c.cn)("group flex min-h-11 w-full items-center gap-2 rounded-xl px-3 py-2 transition-all lg:min-h-9 lg:py-1",r?"text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),"aria-expanded":i,"aria-controls":"advanced-navigation",children:[(0,s.jsx)("p",{className:"flex-1 text-left text-[10px] font-semibold uppercase tracking-[0.14em] text-text-muted/55",children:"Advanced"}),(0,s.jsx)("span",{className:"text-[10px] font-medium text-text-subtle tabular-nums",children:j.length}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",i&&"rotate-180"),children:"expand_more"})]}),i&&(0,s.jsx)("div",{id:"advanced-navigation",children:j.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href))})]}),(0,s.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,s.jsx)("p",{className:"px-3 text-[10px] font-semibold text-text-muted/55 uppercase tracking-[0.14em] mb-1",children:"System"}),(0,s.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),className:(0,c.cn)(N,"w-full",t.startsWith("/dashboard/media-providers")?k:w),"aria-expanded":l,"aria-controls":"media-provider-navigation",children:[(0,s.jsx)("span",{className:C(t.startsWith("/dashboard/media-providers")),children:"perm_media"}),(0,s.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",l&&"rotate-180"),children:"expand_more"})]}),l&&(0,s.jsxs)("div",{id:"media-provider-navigation",className:"pl-4",children:[m.rj.filter(e=>b.includes(e.id)).map(r=>(0,s.jsxs)(o(),{href:`/dashboard/media-providers/${r.id}`,onClick:e,"aria-current":K(`/dashboard/media-providers/${r.id}`)?"page":void 0,className:(0,c.cn)(N,"px-4",t.startsWith(`/dashboard/media-providers/${r.id}`)?k:w),children:[(0,s.jsx)("span",{className:(0,c.cn)(C(t.startsWith(`/dashboard/media-providers/${r.id}`)),"text-[16px]"),children:r.icon}),(0,s.jsx)("span",{className:"text-sm",children:r.label})]},r.id)),(0,s.jsxs)(o(),{href:f,onClick:e,"aria-current":K(f)?"page":void 0,className:(0,c.cn)(N,"px-4",t.startsWith(f)?k:w),children:[(0,s.jsx)("span",{className:(0,c.cn)(C(t.startsWith(f)),"text-[16px]"),children:"travel_explore"}),(0,s.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),v.map(t=>"/dashboard/translator"!==t.href||L?(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,s.jsxs)(o(),{href:"/dashboard/profile",onClick:e,"aria-current":K("/dashboard/profile")?"page":void 0,className:(0,c.cn)(N,K("/dashboard/profile")?k:w),children:[(0,s.jsx)("span",{className:C(K("/dashboard/profile")),children:"settings"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,s.jsx)(h.ConfirmModal,{isOpen:R,onClose:()=>E(!1),onConfirm:()=>{E(!1),_(!0)},title:"Update ZevaiRouter",message:`Show install command for v${P?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),($||z)&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:z?(0,s.jsx)(I,{latestVersion:P?.latestVersion,installCmd:B,copied:U,onCopyAndShutdown:V,onCancel:()=>{W.current&&(clearInterval(W.current),W.current=null),_(!1),q(0)},countdown:M,isDisconnected:$}):(0,s.jsxs)("div",{className:"text-center p-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,s.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,s.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function I({latestVersion:e,installCmd:t,copied:r,onCopyAndShutdown:a,onCancel:l,countdown:n,isDisconnected:i}){let o=n>0;return(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Update ZevaiRouter",e?` to v${e}`:""]}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:i?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${n}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,s.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,s.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,s.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,s.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,s.jsxs)("li",{children:["Click ",(0,s.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,s.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,s.jsxs)("li",{children:["Run ",(0,s.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"zevai"})," again after install."]})]}),i?(0,s.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.default,{variant:"secondary",onClick:l,disabled:o,children:"Cancel"}),(0,s.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:a,disabled:o,children:r?"✓ Copied — shutting down...":o?`Shutting down in ${n}s`:"Copy & Shutdown"})]})]})}S.propTypes={onClose:n().func},I.propTypes={latestVersion:n().string,installCmd:n().string.isRequired,copied:n().bool,onCopyAndShutdown:n().func.isRequired,onCancel:n().func.isRequired,countdown:n().number,isDisconnected:n().bool}},93308:(e,t,r)=>{r.d(t,{CL:()=>l,QC:()=>o,Xn:()=>a,YZ:()=>s,il:()=>i});let s=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no"],a="en",l="locale",n=["ar","he","ur"];function i(e){return n.includes(o(e))?"rtl":"ltr"}function o(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":a}},94230:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497),o=r(11059);function d({isOpen:e,provider:t,onSuccess:r,onClose:l}){let[n,c]=(0,a.useState)("loading"),[u,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(null),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(null),{copied:j,copy:v}=(0,o.C)();(0,a.useEffect)(()=>{e&&t&&(async()=>{try{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),r=await e.json();if(!e.ok)throw Error(r.error);p(r),m(r.authUrl),c("input"),window.open(r.authUrl,"_blank","noopener,noreferrer")}catch(e){g(e.message),c("error")}})()},[e,t]);let y=async()=>{try{let e;g(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let s=e.searchParams.get("code");e.searchParams.get("state");let a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!s)throw Error("No authorization code found in URL");let l=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:x.codeVerifier,provider:t})}),n=await l.json();if(!l.ok)throw Error(n.error);c("success"),r?.()}catch(e){g(e.message),c("error")}},N="google"===t?"Google":"GitHub";return(0,s.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${N}`,onClose:l,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",N," authentication"]})]}),"input"===n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:u,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===j?"check":"content_copy",onClick:()=>v(u,"auth_url"),children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,s.jsx)(i.pd,{value:h,onChange:e=>b(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:y,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",N," has been connected."]}),(0,s.jsx)(i.$n,{onClick:l,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().oneOf(["google","github"]).isRequired,onSuccess:n().func,onClose:n().func.isRequired}},95088:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:r,onClose:l}){let n,[c,u]=(0,a.useState)(null),[m,x]=(0,a.useState)(o),[p,h]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),T=()=>{u(null),x(o),h(""),f(""),j(""),k(null),y(!1),C(!1),I(null),l()},$=async()=>{if(!g.trim())return void k("Personal Access Token is required");y(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:m.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");r?.(),T()}catch(e){k(e.message)}finally{y(!1)}};return e?w&&S?(0,s.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{r?.(),T()},onClose:()=>{C(!1),I(null)}}):(0,s.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>u("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,s.jsxs)("button",{onClick:()=>u("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,s.jsx)("a",{href:`${m.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(n=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${n}/callback`)})]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,s.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:b,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>{p.trim()?(k(null),I({baseUrl:m.trim()||o,clientId:p.trim(),clientSecret:b.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,s.jsx)(i.$n,{onClick:()=>{u(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,s.jsx)("a",{href:`${m.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>j(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:$,fullWidth:!0,disabled:!g.trim()||v,loading:v,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:()=>{u(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired}},96748:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:r,onSaved:l,node:n}){let c=!!n,[u,m]=(0,a.useState)({name:"",prefix:"",baseUrl:o}),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[j,v]=(0,a.useState)(!1),[y,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(N(null),b(""),g(""),c?m({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o}):m({name:"",prefix:"",baseUrl:o}))},[e,c,n]);let k=async()=>{if(u.name.trim()&&u.prefix.trim()&&u.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",s={name:u.name,prefix:u.prefix,baseUrl:u.baseUrl};c||(s.type="custom-embedding");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await a.json();a.ok&&(c?l?.(i.node):r?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},w=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:u.baseUrl,apiKey:h,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(i.pd,{label:"Name",value:u.name,onChange:e=>m({...u,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,s.jsx)(i.pd,{label:"Prefix",value:u.prefix,onChange:e=>m({...u,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,s.jsx)(i.pd,{label:"Base URL",value:u.baseUrl,onChange:e=>m({...u,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,s.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>b(e.target.value)}),(0,s.jsx)(i.pd,{label:"Model ID (for Check)",value:f,onChange:e=>g(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(i.$n,{onClick:w,disabled:!h||!f.trim()||j||!u.baseUrl.trim(),variant:"secondary",children:j?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:r}=y;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Ex,{variant:"success",children:"Valid"}),r&&(0,s.jsxs)("span",{className:"text-sm text-text-muted",children:[r," dims"]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:k,fullWidth:!0,disabled:!u.name.trim()||!u.prefix.trim()||!u.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,s.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string})}},97677:(e,t,r)=>{r.d(t,{default:()=>a});var s=r(95155);function a({text:e,children:t,position:r="top",color:l}){let n=l?"":"bg-gray-900";return(0,s.jsxs)("div",{className:"relative inline-flex group",children:[t,(0,s.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[r]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${n} text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 whitespace-normal`,style:l?{backgroundColor:l}:{},children:e})]})}},98542:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(95155),a=r(12115),l=r(31474);function n({checked:e=!1,onChange:t,label:r,description:i,disabled:o=!1,size:d="md",className:c,busy:u=!1,touchTarget:m=!1,...x}){let p=(0,a.useId)(),h=(0,a.useId)(),b={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}},f=()=>{o||u||!t||t(!e)},g=(0,s.jsx)("span",{className:(0,l.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out motion-reduce:transition-none",e?b[d].translate:"translate-x-0.5",b[d].thumb,"mt-0.5")});return(0,s.jsxs)("div",{className:(0,l.cn)("flex items-center gap-3",o&&"opacity-50 cursor-not-allowed",c),children:[(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-busy":u||void 0,"data-state":e?"on":"off","aria-labelledby":r?p:void 0,"aria-describedby":i?h:void 0,"aria-label":r?void 0:x["aria-label"],disabled:o||u,onClick:f,...x,className:(0,l.cn)("relative inline-flex shrink-0 cursor-pointer","transition-colors duration-200 ease-in-out motion-reduce:transition-none","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg",m?"size-11 items-center justify-center rounded-xl sm:size-8 sm:rounded-lg":"rounded-full",!m&&(e?"bg-brand-500":"bg-surface-3"),!m&&b[d].track,o&&"cursor-not-allowed"),children:m?(0,s.jsx)("span",{className:(0,l.cn)("relative inline-flex shrink-0 rounded-full",e?"bg-brand-500":"bg-surface-3",b[d].track),children:g}):g}),(r||i)&&(0,s.jsxs)("div",{className:"flex flex-col",children:[r&&(0,s.jsx)("label",{id:p,onClick:f,className:"text-sm font-medium text-text-main cursor-pointer",children:r}),i&&(0,s.jsx)("span",{id:h,className:"text-xs text-text-muted",children:i})]})]})}}}]);
7
+ `,children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[g.includes(e.value)&&!r&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),e.name]}):e.isCustom?(0,s.jsxs)(s.Fragment,{children:[e.name,(0,s.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):e.name]})},e.value)})})]},e)),0===Object.keys(q).length&&0===M.length&&(0,s.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,s.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}function p(e){return e.isOpen?(0,s.jsx)(x,{...e}):null}p.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onSelect:n().func.isRequired,onDeselect:n().func,selectedModel:n().string,activeProviders:n().arrayOf(n().shape({provider:n().string.isRequired})),title:n().string,modelAliases:n().object,kindFilter:n().string,addedModelValues:n().arrayOf(n().string),closeOnSelect:n().bool}},73006:(e,t,r)=>{r.d(t,{FE:()=>h,Tl:()=>c,kk:()=>u,oQ:()=>m,wn:()=>b});var s=r(93308);let a={},l=s.Xn,n=[];function i(e){if("u"<typeof document)return;let t=document.documentElement,r=(0,s.il)(e);t.lang!==e&&(t.lang=e),t.dir!==r&&(t.dir=r)}function o(){if("u"<typeof document)return s.Xn;let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${s.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):s.Xn;return(0,s.QC)(t)}async function d(e){if("en"===e){a={};return}try{let t=await fetch(`/i18n/literals/${e}.json`);a=await t.json()}catch(e){console.error("Failed to load translations:",e),a={}}}function c(e){if(!e||"string"!=typeof e)return e;let t=e.trim();return t&&"en"!==l&&a[t]||e}function u(){return l}function m(e){return n.push(e),()=>{n=n.filter(t=>t!==e)}}function x(e){if(!e.nodeValue||!e.nodeValue.trim())return;let t=e.parentElement;if(!t)return;let r=t;for(;r;){if(r.hasAttribute&&r.hasAttribute("data-i18n-skip"))return;r=r.parentElement}if(["script","style","code","pre","colgroup","table","thead","tbody","tfoot","tr","select","datalist","optgroup"].includes(t.tagName?.toLowerCase()))return;e._originalText||(e._originalText=e.nodeValue);let s=c(e._originalText);s!==e.nodeValue&&(e.nodeValue=s)}function p(e){let t;if(!e)return;let r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),s=[];for(;t=r.nextNode();)s.push(t);s.forEach(x)}async function h(){i(l=o()),await d(l),p(document.body),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE?p(e):e.nodeType===Node.TEXT_NODE&&x(e)})})}).observe(document.body,{childList:!0,subtree:!0})}async function b(){i(l=o()),await d(l),n.forEach(e=>e()),p(document.body)}},73579:(e,t,r)=>{r.d(t,{default:()=>x});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(81127),o=r(11910),d=r(92542),c=r(56061),u=r(52679);function m({isOpen:e,connection:t,proxyPools:r,onSave:l,onClose:n}){let[x,p]=(0,a.useState)({name:"",priority:1,apiKey:""}),[h,b]=(0,a.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[f,g]=(0,a.useState)({accountId:""}),[j,v]=(0,a.useState)({spaceId:"",spaceViewId:"",userId:"",clientVersion:"",cell:""}),[y,N]=(0,a.useState)(!1),[k,w]=(0,a.useState)(null),[C,S]=(0,a.useState)(!1),[I,T]=(0,a.useState)(null),[$,A]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t&&(p({name:t.name||"",priority:t.priority||1,apiKey:""}),"azure"===t.provider&&t.providerSpecificData?b({azureEndpoint:t.providerSpecificData.azureEndpoint||"",apiVersion:t.providerSpecificData.apiVersion||"2024-10-01-preview",deployment:t.providerSpecificData.deployment||"",organization:t.providerSpecificData.organization||""}):b({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),"cloudflare-ai"===t.provider&&t.providerSpecificData?g({accountId:t.providerSpecificData.accountId||""}):g({accountId:""}),"notion-ai"===t.provider&&t.providerSpecificData?v({spaceId:t.providerSpecificData.spaceId||"",spaceViewId:t.providerSpecificData.spaceViewId||"",userId:t.providerSpecificData.userId||t.providerSpecificData.notionUserId||"",clientVersion:t.providerSpecificData.clientVersion||"",cell:t.providerSpecificData.cell||""}):v({spaceId:"",spaceViewId:"",userId:"",clientVersion:"",cell:""}),w(null),T(null))},[t]);let P=t?.authType==="oauth",O=t?.provider==="azure",R=t?.provider==="cloudflare-ai",E=t?.provider==="notion-ai",z=!!t&&((0,u.mq)(t.provider)||(0,u.gb)(t.provider)),_=()=>{let e=Object.entries({spaceId:j.spaceId.trim(),spaceViewId:j.spaceViewId.trim(),userId:j.userId.trim(),clientVersion:j.clientVersion.trim(),cell:j.cell.trim()}).filter(([,e])=>e);return e.length>0?Object.fromEntries(e):void 0},M=async()=>{if(t?.provider){N(!0),w(null);try{let e=await fetch(`/api/providers/${t.id}/test`,{method:"POST"}),r=await e.json();w(r.valid?"success":"failed")}catch{w("failed")}finally{N(!1)}}},q=async()=>{if(t?.provider&&x.apiKey){S(!0),T(null);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...O?{providerSpecificData:h}:{},...R?{providerSpecificData:f}:{},...E?{providerSpecificData:_()}:{}})}),r=await e.json();T(r.valid?"success":"failed")}catch{T("failed")}finally{S(!1)}}},L=async()=>{if(t&&(P||!x.apiKey||"failed"!==I||window.confirm("The API key failed validation. Save it anyway?"))){A(!0);try{let e={name:x.name,priority:x.priority};if(!P&&x.apiKey){e.apiKey=x.apiKey;let r="success"===I;if(!r)try{S(!0),T(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t.provider,apiKey:x.apiKey,...O?{providerSpecificData:h}:{},...R?{providerSpecificData:f}:{},...E?{providerSpecificData:_()}:{}})});r=!!(await e.json()).valid,T(r?"success":"failed")}catch{T("failed")}finally{S(!1)}r&&(e.testStatus="active",e.lastError=null,e.lastErrorAt=null)}O&&(e.providerSpecificData={azureEndpoint:h.azureEndpoint,apiVersion:h.apiVersion,deployment:h.deployment,organization:h.organization}),R&&(e.providerSpecificData={accountId:f.accountId}),E&&(e.providerSpecificData=_()),await l(e)}finally{A(!1)}}};return t?(0,s.jsx)(i.default,{isOpen:e,title:"Edit Connection",onClose:n,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(o.default,{label:"Name",value:x.name,onChange:e=>p({...x,name:e.target.value}),placeholder:P?"Account name":"Production Key"}),P&&t.email&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-3 rounded-lg",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-1",children:"Email"}),(0,s.jsx)("p",{className:"font-medium",children:t.email})]}),(0,s.jsx)(o.default,{label:"Priority",type:"number",value:x.priority,onChange:e=>p({...x,priority:Number.parseInt(e.target.value,10)||1})}),!P&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(o.default,{label:"cookie"===t.authType?"Cookie Value":"API Key",type:"cookie"===t.authType?"text":"password",value:x.apiKey,onChange:e=>p({...x,apiKey:e.target.value}),placeholder:"cookie"===t.authType?"Paste a new session cookie or cookie-export JSON":"Enter new API key",hint:"cookie"===t.authType?"Leave blank to keep the current cookie.":"Leave blank to keep the current API key.",className:"flex-1"}),(0,s.jsx)("div",{className:"pt-6",children:(0,s.jsx)(d.default,{onClick:q,disabled:!x.apiKey||C||$,variant:"secondary",children:C?"Checking...":"Check"})})]}),I&&(0,s.jsx)(c.default,{variant:"success"===I?"success":"error",children:"success"===I?"Valid":"Invalid"})]}),E&&(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-accent/20 bg-sidebar/50 p-4",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold",children:"Notion workspace metadata (optional)"}),(0,s.jsx)("p",{className:"text-xs leading-relaxed text-text-muted",children:"Space ID and User ID are optional. The router resolves them from Notion's authenticated getSpaces endpoint; enter them only to override discovery."}),(0,s.jsx)(o.default,{label:"Space ID (optional)",value:j.spaceId,onChange:e=>v({...j,spaceId:e.target.value}),placeholder:"Auto-resolved from Notion"}),(0,s.jsx)(o.default,{label:"User ID (optional)",value:j.userId,onChange:e=>v({...j,userId:e.target.value}),placeholder:"Auto-resolved from Notion"}),(0,s.jsx)(o.default,{label:"Space View ID (optional)",value:j.spaceViewId,onChange:e=>v({...j,spaceViewId:e.target.value}),placeholder:"Leave blank to use Space ID"}),(0,s.jsx)(o.default,{label:"Notion client version (optional)",value:j.clientVersion,onChange:e=>v({...j,clientVersion:e.target.value}),placeholder:"Copy from the browser request if required"}),(0,s.jsx)(o.default,{label:"Cell (optional)",value:j.cell,onChange:e=>v({...j,cell:e.target.value}),placeholder:"Copy x-notion-cell if your request has it"})]}),O&&(0,s.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,s.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.default,{label:"Azure Endpoint",value:h.azureEndpoint,onChange:e=>b({...h,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com",hint:"Your Azure OpenAI resource endpoint URL"}),(0,s.jsx)(o.default,{label:"Deployment Name",value:h.deployment,onChange:e=>b({...h,deployment:e.target.value}),placeholder:"gpt-4",hint:"The deployment name in your Azure resource"}),(0,s.jsx)(o.default,{label:"API Version",value:h.apiVersion,onChange:e=>b({...h,apiVersion:e.target.value}),placeholder:"2024-10-01-preview",hint:"Azure OpenAI API version to use"}),(0,s.jsx)(o.default,{label:"Organization",value:h.organization,onChange:e=>b({...h,organization:e.target.value}),placeholder:"Organization ID",hint:"Required for billing"})]})]}),!z&&!O&&!R&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(d.default,{onClick:M,variant:"secondary",disabled:y,children:y?"Testing...":"Test Connection"}),k&&(0,s.jsx)(c.default,{variant:"success"===k?"success":"error",children:"success"===k?"Valid":"Failed"})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(d.default,{onClick:L,fullWidth:!0,disabled:$,children:$?"Saving...":"Save"}),(0,s.jsx)(d.default,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function x(e){return e.isOpen?(0,s.jsx)(m,{...e}):null}x.propTypes={isOpen:n().bool.isRequired,connection:n().shape({id:n().string,name:n().string,email:n().string,priority:n().number,authType:n().string,provider:n().string,providerSpecificData:n().object}),proxyPools:n().arrayOf(n().shape({id:n().string,name:n().string})),onSave:n().func.isRequired,onClose:n().func.isRequired}},80752:(e,t,r)=>{r.d(t,{default:()=>u});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(1620),o=r(40197),d=r(81127);function c({icon:e,label:t,onClick:r,trailing:a,danger:l}){return(0,s.jsxs)("button",{onClick:r,className:`flex items-center gap-3 w-full px-4 py-2.5 text-sm transition-colors ${l?"text-red-500 hover:bg-red-500/10":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"}`,children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[20px] ${l?"":"text-text-muted"}`,children:e}),(0,s.jsx)("span",{className:"flex-1 text-left",children:t}),a&&(0,s.jsx)("span",{className:"text-base",children:a})]})}function u({onLogout:e}){let[t,r]=(0,a.useState)(!1),[l,n]=(0,a.useState)(!1),[m,x]=(0,a.useState)(!1),[p,h]=(0,a.useState)(!1),{toggleTheme:b,isDark:f}=(0,i.D)(),g=(0,a.useRef)(null),j=async()=>{h(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}};return(0,a.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&r(!1)};if(t)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative",ref:g,children:[(0,s.jsx)("button",{onClick:()=>r(e=>!e),className:"flex size-11 items-center justify-center rounded-xl text-text-muted transition-all hover:bg-black/5 hover:text-text-main dark:hover:bg-white/5 sm:size-10 sm:rounded-lg",title:"Menu","aria-label":"Open dashboard menu",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"grid_view"})}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-60 bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl z-50 animate-in fade-in zoom-in-95 duration-150 overflow-hidden py-1",children:[(0,s.jsx)(c,{icon:"history",label:"Change Log",onClick:()=>{r(!1),n(!0)}}),(0,s.jsx)(c,{icon:f?"light_mode":"dark_mode",label:"Theme",onClick:()=>{b(),r(!1)}}),(0,s.jsx)(c,{icon:"power_settings_new",label:"Shutdown",danger:!0,onClick:()=>{r(!1),x(!0)}}),(0,s.jsx)(c,{icon:"logout",label:"Logout",danger:!0,onClick:()=>{r(!1),e()}})]})]}),(0,s.jsx)(o.default,{isOpen:l,onClose:()=>n(!1)}),(0,s.jsx)(d.ConfirmModal,{isOpen:m,onClose:()=>{p||x(!1)},onConfirm:j,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:p})]})}c.propTypes={icon:n().string.isRequired,label:n().string.isRequired,onClick:n().func.isRequired,trailing:n().node,danger:n().bool},u.propTypes={onLogout:n().func.isRequired}},81127:(e,t,r)=>{r.d(t,{ConfirmModal:()=>d,default:()=>o});var s=r(95155),a=r(12115),l=r(31474),n=r(92542),i=r(97677);function o({isOpen:e,onClose:t,title:r,children:n,footer:d,size:c="md",closeOnOverlay:u=!0,showTrafficLights:m=!0,className:x}){let p=(0,a.useId)(),h=(0,a.useRef)(null),b=(0,a.useRef)(null),f=(0,a.useRef)(t),g='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';return((0,a.useEffect)(()=>{f.current=t},[t]),(0,a.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;b.current=document.activeElement,document.body.style.overflow="hidden";let r=h.current,s=r?.querySelector('input:not([disabled]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea:not([disabled]), select:not([disabled])'),a=r?.querySelector("[data-modal-autofocus]")||s||r?.querySelector(g);(a||r)?.focus();let l=e=>{if("Escape"===e.key)return void f.current?.();if("Tab"!==e.key||!r)return;let t=[...r.querySelectorAll(g)];if(!t.length){e.preventDefault(),r.focus();return}let s=t[0],a=t[t.length-1];e.shiftKey&&document.activeElement===s?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),s.focus())};return document.addEventListener("keydown",l),()=>{document.body.style.overflow=t,document.removeEventListener("keydown",l),b.current?.focus?.()}},[e]),e)?(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end justify-center p-0 sm:items-center sm:p-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in","aria-hidden":"true",onClick:u?t:void 0}),(0,s.jsxs)("div",{ref:h,role:"dialog","aria-modal":"true","aria-labelledby":r?p:void 0,"aria-label":r?void 0:"Dialog",tabIndex:-1,className:(0,l.cn)("relative w-full max-h-[calc(100dvh-2rem)] overflow-hidden bg-surface","border border-border-subtle","rounded-t-[18px] shadow-[var(--shadow-elev)] sm:rounded-[14px]","fade-in motion-reduce:animate-none",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[c],x),children:[(r||m)&&(0,s.jsxs)("div",{className:"flex min-h-14 items-center justify-between gap-3 border-b border-border-subtle px-4 py-2 sm:px-3",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[m&&(0,s.jsxs)("div",{className:"hidden md:flex items-center gap-2 mr-4 ml-2",children:[(0,s.jsx)(i.default,{text:"Close",position:"top",color:"#FF5F56",children:(0,s.jsx)("button",{onClick:t,"aria-label":"Close",title:"Close",className:"group/dot flex h-4 w-4 cursor-pointer items-center justify-center rounded-full bg-[#FF5F56] transition-all hover:brightness-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 motion-reduce:transition-none",children:(0,s.jsx)("span",{className:"text-[9px] font-bold text-white opacity-0 group-hover/dot:opacity-100 transition-opacity leading-none",children:"✕"})})}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"}),(0,s.jsx)("div",{className:"w-4 h-4 rounded-full bg-[#3a3a3a]/20 dark:bg-white/15 cursor-not-allowed"})]}),r&&(0,s.jsx)("h2",{id:p,className:"text-lg font-semibold text-text-main",children:r})]}),(0,s.jsx)("button",{onClick:t,"aria-label":"Close",className:"grid size-11 place-items-center rounded-[10px] text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 md:hidden motion-reduce:transition-none",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"dashboard-modal-body max-h-[calc(100dvh-8rem)] overflow-y-auto p-4 custom-scrollbar sm:max-h-[calc(85vh-100px)] sm:p-6",children:n}),d&&(0,s.jsx)("div",{className:"dashboard-modal-footer flex flex-col-reverse items-stretch justify-end gap-2 border-t border-border-subtle p-4 sm:flex-row sm:items-center sm:gap-3 sm:p-6",children:d})]})]}):null}function d({isOpen:e,onClose:t,onConfirm:r,title:a="Confirm",message:l,confirmText:i="Confirm",cancelText:c="Cancel",variant:u="danger",loading:m=!1}){return(0,s.jsx)(o,{isOpen:e,onClose:t,title:a,size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{variant:"ghost",onClick:t,disabled:m,children:c}),(0,s.jsx)(n.default,{variant:u,onClick:r,loading:m,children:i})]}),children:(0,s.jsx)("p",{className:"text-text-muted",children:l})})}},84588:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(95155),a=r(31474);function l({children:e,title:t,subtitle:r,icon:n,action:i,padding:o="md",hover:d=!1,elev:c=!1,className:u,...m}){return(0,s.jsxs)("div",{className:(0,a.cn)("card-3d border border-border-subtle rounded-[14px] transition-[border-color,box-shadow,transform] duration-200 motion-reduce:transition-none",c&&"card-3d-elev",d&&"hover:-translate-y-0.5 hover:border-brand-500/30 hover:shadow-[var(--shadow-warm)] cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[o],u),...m,children:[(t||i)&&(0,s.jsxs)("div",{className:"mb-4 flex min-w-0 items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[n&&(0,s.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:n})}),(0,s.jsxs)("div",{className:"min-w-0",children:[t&&(0,s.jsx)("h3",{className:"text-text-main font-semibold",children:t}),r&&(0,s.jsx)("p",{className:"text-sm text-text-muted",children:r})]})]}),i&&(0,s.jsx)("div",{className:"shrink-0",children:i})]}),e]})}l.Section=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...r,children:e})},l.Row=function({children:e,className:t,...r}){return(0,s.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...r,children:e})},l.ListItem=function({children:e,actions:t,className:r,...l}){return(0,s.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",r),...l,children:[(0,s.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,s.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},90085:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(1934),a=r(31692),l=r(90620);function n(e){let t=document.documentElement,r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";"dark"===("system"===e?r:e)?t.classList.add("dark"):t.classList.remove("dark")}let i=(0,s.v)((0,a.Zr)((e,t)=>({theme:l.B2.defaultTheme,setTheme:t=>{e({theme:t}),n(t)},toggleTheme:()=>{let r="dark"===t().theme?"light":"dark";e({theme:r}),n(r)},initTheme:()=>{n(t().theme)}}),{name:l.B2.storageKey}))},90882:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497),o=r(11059);function d({isOpen:e,provider:t,providerInfo:r,onSuccess:l,onClose:n,oauthMeta:c,idcConfig:u}){let[m,x]=(0,a.useState)("waiting"),[p,h]=(0,a.useState)(null),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(null),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),S=(0,a.useRef)(null),I=(0,a.useRef)(0),{copied:T,copy:$}=(0,o.C)(),[A,P]=(0,a.useState)(!1),[O,R]=(0,a.useState)("/callback?code=..."),E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{P("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname),R(`${window.location.origin}/callback?code=...`)},[]);let z=(0,a.useCallback)(async(e,r)=>{if(p)try{let s=await fetch(`/api/oauth/${t}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,redirectUri:p.redirectUri,codeVerifier:p.codeVerifier,state:r,...c?{meta:c}:{}})}),a=await s.json();if(!s.ok)throw Error(a.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,t,l,c]),_=(0,a.useCallback)(async e=>{if(p?.state)try{let t=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e,state:p.state})}),r=await t.json();if(!t.ok)throw Error(r.error);x("success"),l?.()}catch(e){j(e.message),x("error")}},[p,l]),M=(0,a.useCallback)(async(e,r,s,a,n)=>{let i=++I.current,o=()=>I.current===i;C(!0);let d=Date.now()+(Number.isFinite(n)&&n>0?n:12e4);for(;Date.now()<d;){if(!o())return void console.log("[OAuthModal] Polling aborted");if(await new Promise(e=>setTimeout(e,1e3*s)),!o())return void console.log("[OAuthModal] Polling aborted after sleep");try{let n=await fetch(`/api/oauth/${t}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:e,codeVerifier:r,extraData:a})}),i=await n.json();if(!o())return;if(i.success){I.current++,x("success"),C(!1),l?.();return}if("expired_token"===i.error||"access_denied"===i.error)throw Error(i.errorDescription||i.error);"slow_down"===i.error&&(s=Math.min(s+5,30))}catch(e){if(!o())return;j(e.message),x("error"),C(!1);return}}o()&&(j("Authorization timeout"),x("error"),C(!1))},[t,l]),q=(0,a.useCallback)(async()=>{if(t)try{let e;j(null);let r=window.location.hostname.toLowerCase(),s="codex"===t&&"localhost"!==r&&"127.0.0.1"!==r&&"::1"!==r;if(["github","qwen","kiro","kimi","kimi-coding","kilocode","codebuddy","codebuddy-cn","qoder","grok-cli",...s?["codex"]:[]].includes(t)){y(!0),x("waiting");let e=new URL(`/api/oauth/${t}/device-code`,window.location.origin);"kiro"===t&&u?.startUrl&&(e.searchParams.set("start_url",u.startUrl),u.region&&e.searchParams.set("region",u.region),e.searchParams.set("auth_method","idc"));let r=await fetch(e.toString()),s=await r.json();if(!r.ok)throw Error(s.error);k(s);let a=s.verification_uri_complete||s.verification_uri;a&&window.open(a,"_blank","noopener,noreferrer");let l="codex"===t?{_codexUserCode:s.user_code}:"kiro"===t?{_clientId:s._clientId,_clientSecret:s._clientSecret,_region:s._region,_authMethod:s._authMethod,_startUrl:s._startUrl}:"qoder"===t?{_qoderNonce:s._qoderNonce,_qoderMachineId:s._qoderMachineId,_qoderVerifier:s.codeVerifier}:null;M(s.device_code,s.codeVerifier,s.interval||5,l,Number.isFinite(s.expires_in)&&s.expires_in>0?1e3*s.expires_in:void 0);return}if(["trae","windsurf","zed"].includes(t)){let e=await fetch(`/api/oauth/${t}/start-proxy`),r=await e.json();if(!e.ok||!r.success||!r.callbackUrl)throw Error(r.reason||r.error||`Failed to start ${t} callback server`);let s=new URL(`/api/oauth/${t}/authorize`,window.location.origin);s.searchParams.set("redirect_uri",r.callbackUrl);let a=await fetch(s.toString()),l=await a.json();if(!a.ok)throw Error(l.error);let n={state:l.state};l.codeVerifier&&(n.codeVerifier=l.codeVerifier),await fetch(`/api/oauth/${t}/register-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}),h({...l,proxyProvider:t}),x("waiting"),S.current=window.open(l.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input");return}let a=window.location.port||("https:"===window.location.protocol?"443":"80");e="codex"===t?"http://localhost:1455/auth/callback":"xai"===t?"http://127.0.0.1:56121/callback":`http://localhost:${a}/callback`;let l=new URL(`/api/oauth/${t}/authorize`,window.location.origin);l.searchParams.set("redirect_uri",e),c&&Object.entries(c).forEach(([e,t])=>{t&&l.searchParams.set(e,t)});let n=await fetch(l.toString()),i=await n.json();if(!n.ok)throw Error(i.error);let o=!1,d=!1;if("codex"===t)try{let t=await fetch("/api/oauth/codex/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:a,state:i.state,codeVerifier:i.codeVerifier,redirectUri:e})}),r=await t.json();o=r.success,d=!!r.serverSide}catch{o=!1}let m=!1,p=!1;if("xai"===t)try{let t=await fetch("/api/oauth/xai/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:a,state:i.state,codeVerifier:i.codeVerifier,redirectUri:e})}),r=await t.json();if(m=r.success,p=!!r.serverSide,!m&&"port_busy"===r.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(e){if(e?.message)throw e;m=!1}h({...i,redirectUri:e,codexServerSide:d,xaiServerSide:p}),"codex"===t&&o||"xai"===t&&m||A&&"codex"!==t&&"xai"!==t?(x("waiting"),S.current=window.open(i.authUrl,"oauth_popup","width=600,height=700"),S.current||x("input")):(x("input"),window.open(i.authUrl,"_blank","noopener,noreferrer"))}catch(e){j(e.message),x("error")}},[t,A,M,c,u]);(0,a.useEffect)(()=>{e&&t?(h(null),f(""),j(null),y(!1),k(null),C(!1),q()):!e&&(I.current++,"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t?fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}):["trae","windsurf","zed"].includes(t)&&fetch(`/api/oauth/${t}/stop-proxy`).catch(()=>{}))},[e,t,q]),(0,a.useEffect)(()=>{let e=p?.codexServerSide?"codex":p?.xaiServerSide?"xai":p?.proxyProvider||null;if(!e||!p?.state||E.current)return;let t=!1,r=null,s=0,a=async()=>{if(!t&&!E.current){s+=1;try{let r=await fetch(`/api/oauth/${e}/poll-status?state=${encodeURIComponent(p.state)}`),s=await r.json();if(t||E.current)return;if("done"===s.status){E.current=!0,x("success"),l?.();return}if("error"===s.status){E.current=!0,j(s.error||"Authentication failed"),x("error");return}}catch{}if(s>=200){E.current=!0,j("Authentication timeout"),x("error");return}r=setTimeout(a,1500)}};return r=setTimeout(a,1500),()=>{t=!0,r&&clearTimeout(r)}},[p,l]),(0,a.useEffect)(()=>{let e;if(!p)return;E.current=!1;let t=async e=>{if(E.current)return;let{code:t,state:r,error:s,errorDescription:a}=e;if(s){E.current=!0,j(a||s),x("error");return}t&&(E.current=!0,await z(t,r))},r=e=>{let r=e.origin.includes("localhost")||e.origin.includes("127.0.0.1"),s=e.origin===window.location.origin;(r||s)&&e.data?.type==="oauth_callback"&&t(e.data.data)};window.addEventListener("message",r);try{(e=new BroadcastChannel("oauth_callback")).onmessage=e=>t(e.data)}catch(e){console.log("BroadcastChannel not supported")}let s=e=>{if("oauth_callback"===e.key&&e.newValue)try{let r=JSON.parse(e.newValue);t(r),localStorage.removeItem("oauth_callback")}catch(e){console.log("Failed to parse localStorage data")}};window.addEventListener("storage",s);try{let e=localStorage.getItem("oauth_callback");if(e){let r=JSON.parse(e);r.timestamp&&Date.now()-r.timestamp<3e4&&t(r),localStorage.removeItem("oauth_callback")}}catch{}return()=>{window.removeEventListener("message",r),window.removeEventListener("storage",s),e&&e.close()}},[p,z]);let L=async()=>{try{j(null);let e=b.trim();if(e.startsWith("eyJ")&&e.includes("."))return void await z(e,null);if("xai"===t&&e&&!e.includes("://")&&!e.includes("?")&&!e.includes("code="))return void await _(e);if("kimchi"===t&&e&&!e.includes("://")&&!e.includes("?"))return void await z(e,null);let r=new URL(e),s=r.searchParams.get("code"),a=r.searchParams.get("token"),l=r.searchParams.get("state"),n=r.searchParams.get("error");if(n)throw Error(r.searchParams.get("error_description")||n);if(!s&&!a)throw Error("xai"===t?"Paste the callback URL or copied xAI code":"kimchi"===t?"No Kimchi token found in URL":"No authorization code found in URL");await z(a||s,l)}catch(e){j(e.message),x("error")}},D=(0,a.useCallback)(()=>{"codex"===t?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===t&&fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}),n()},[n,t]);if(!t||!r)return null;let U="xai"===t,F="kimchi"===t,W=N?.verification_uri_complete||N?.verification_uri||"",B=U?"Connect Grok Build OAuth":`Connect ${r.name}`,K=U?"http://127.0.0.1:56121/callback?code=... or copied code":F?`${O.replace("code=...","token=...")} or copied token`:O;return(0,s.jsx)(i.aF,{isOpen:e,title:B,onClose:D,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===m||"input"===m)&&!v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,s.jsx)("span",{className:"text-sm",children:U?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,s.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,s.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",U?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===T?"check":"content_copy",onClick:()=>$(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===t?"callback URL or copied code":"kimchi"===t?"callback URL or token":"callback URL"," here"]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===t?"If xAI shows a code instead of redirecting, paste that code here.":"kimchi"===t?"After authorization, paste the callback URL (with token=…) or the raw Kimchi token.":"After authorization, copy the full URL from your browser."}),(0,s.jsx)(i.pd,{value:b,onChange:e=>f(e.target.value),placeholder:K,className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:L,fullWidth:!0,disabled:!b,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:D,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===m&&v&&N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"text-center py-4",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,s.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("code",{className:"flex-1 text-sm break-all",children:W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"login_url"===T?"check":"content_copy",onClick:()=>$(W,"login_url"),disabled:!W}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(W,"_blank","noopener,noreferrer"),disabled:!W,children:"Open"})]})]}),(0,s.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:N.user_code}),(0,s.jsx)(i.$n,{size:"sm",variant:"ghost",icon:"user_code"===T?"check":"content_copy",onClick:()=>$(N.user_code,"user_code")})]})]})]}),w&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===m&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",r.name," account has been connected."]}),(0,s.jsx)(i.$n,{onClick:D,fullWidth:!0,children:"Done"})]}),"error"===m&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:g}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:q,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:D,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().string,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired,oauthMeta:n().object,idcConfig:n().shape({startUrl:n().string,region:n().string})}},91450:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(14051),l=r.n(a),n=r(38587);function i({children:e}){return(0,s.jsxs)("div",{className:"min-h-screen flex flex-col relative bg-bg transition-colors duration-500 overflow-x-hidden selection:bg-primary/20 selection:text-primary",children:[(0,s.jsx)("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] bg-primary/5 dark:bg-primary/5 rounded-full blur-[100px] pointer-events-none z-0"}),(0,s.jsx)("div",{className:"fixed bottom-0 right-0 w-[600px] h-[600px] bg-orange-200/20 dark:bg-orange-900/10 rounded-full blur-[120px] pointer-events-none z-0 translate-y-1/3 translate-x-1/3"}),(0,s.jsx)("div",{className:"absolute top-6 right-6 z-20",children:(0,s.jsx)(n.default,{variant:"card"})}),(0,s.jsx)("main",{className:"flex-1 flex flex-col items-center justify-center p-4 sm:p-6 z-10 w-full h-full",children:e})]})}i.propTypes={children:l().node.isRequired}},92173:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(95155),a=r(98500),l=r.n(a),n=r(90620);let i=[{label:"Features",href:"#features"},{label:"Pricing",href:"#pricing"},{label:"Changelog",href:"#"}],o=[{label:"Documentation",href:"#"},{label:"API Reference",href:"#"},{label:"Help Center",href:"#"}],d=[{label:"About",href:"#"},{label:"Blog",href:"#"},{label:"Contact",href:"#"}];function c(){return(0,s.jsx)("footer",{className:"bg-bg border-t border-border pt-16 pb-12",children:(0,s.jsxs)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-12",children:[(0,s.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-6",children:[(0,s.jsx)("div",{className:"size-6 text-primary",children:(0,s.jsx)("svg",{className:"w-full h-full",fill:"currentColor",viewBox:"0 0 48 48",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M12.0799 24L4 19.2479L9.95537 8.75216L18.04 13.4961L18.0446 4H29.9554L29.96 13.4961L38.0446 8.75216L44 19.2479L35.92 24L44 28.7521L38.0446 39.2479L29.96 34.5039L29.9554 44H18.0446L18.04 34.5039L9.95537 39.2479L4 28.7521L12.0799 24Z",fillRule:"evenodd"})})}),(0,s.jsx)("span",{className:"text-xl font-bold text-text-main",children:n.vQ.name})]}),(0,s.jsx)("p",{className:"text-text-muted mb-6 max-w-sm font-light",children:"The unified interface for modern AI infrastructure. Secure, observable, and scalable."}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"Twitter",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})})}),(0,s.jsx)("a",{href:"#",className:"text-gray-400 hover:text-primary transition-colors","aria-label":"GitHub",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})})})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Product"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Resources"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:o.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-semibold text-text-main mb-4",children:"Company"}),(0,s.jsx)("ul",{className:"flex flex-col gap-3 text-sm text-text-muted font-light",children:d.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:e.href,className:"hover:text-primary transition-colors",children:e.label})},e.label))})]})]}),(0,s.jsxs)("div",{className:"border-t border-border pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["\xa9 ",new Date().getFullYear()," ",n.vQ.name," Inc. All rights reserved."]}),(0,s.jsxs)("div",{className:"flex gap-6 text-sm text-text-muted",children:[(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Privacy Policy"}),(0,s.jsx)(l(),{href:"#",className:"hover:text-primary transition-colors",children:"Terms of Service"})]})]})]})})}},92542:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(31474);let l={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},n={sm:"h-10 px-3 text-xs rounded-[8px] sm:h-7",md:"h-11 px-4 text-sm rounded-[10px] sm:h-9",lg:"h-12 px-6 text-sm rounded-[10px] sm:h-11"};function i({children:e,variant:t="primary",size:r="md",icon:o,iconRight:d,disabled:c=!1,loading:u=!1,fullWidth:m=!1,className:x,...p}){return(0,s.jsxs)("button",{className:(0,a.cn)("relative inline-flex items-center justify-center font-semibold transition-[background-color,border-color,color,box-shadow,transform] duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg motion-reduce:transition-none",l[t],n[r],m&&"w-full",x),disabled:c||u,"aria-busy":u||void 0,...p,children:[(0,s.jsx)("span",{className:"button-content inline-grid items-center justify-center",children:(0,s.jsxs)("span",{className:(0,a.cn)("col-start-1 row-start-1 inline-flex items-center justify-center gap-2",u&&"invisible"),children:[o&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:o}),e,d&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:d})]})}),u&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined absolute animate-spin text-[18px] motion-reduce:animate-none",children:"progress_activity"})]})}},92622:(e,t,r)=>{r.d(t,{default:()=>S});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(98500),o=r.n(i),d=r(73321),c=r(31474),u=r(90620),m=r(52679),x=r(11059),p=r(92542),h=r(81127);let b=["embedding","image","tts","stt","video"],f="/dashboard/media-providers/web",g=[{href:"/dashboard/endpoint",label:"Endpoint",icon:"terminal"},{href:"/dashboard/providers",label:"Providers",icon:"dns"},{href:"/dashboard/playground",label:"Playground",icon:"forum"},{href:"/dashboard/usage",label:"Usage",icon:"bar_chart"},{href:"/dashboard/quota",label:"Quota Tracker",icon:"data_usage"}],j=[{href:"/dashboard/combos",label:"Combos",icon:"layers"},{href:"/dashboard/cli-tools",label:"CLI Tools",icon:"handyman"},{href:"/dashboard/mitm",label:"MITM",icon:"security"},{href:"/dashboard/automation",label:"Automation",icon:"automation"},{href:"/dashboard/token-saver",label:"Token Saver",icon:"savings"},{href:"/dashboard/terminal",label:"Terminal",icon:"terminal"}],v=[{href:"/dashboard/console-log",label:"Console Log",icon:"receipt_long"},{href:"/dashboard/translator",label:"Translator",icon:"translate"}],y=[{href:"/dashboard/proxy-pools",label:"Proxy Pools",icon:"lan"},{href:"/dashboard/context",label:"Context Inject",icon:"psychology"},{href:"/dashboard/skills",label:"Agent Skills",icon:"extension"}],N="group relative flex min-h-11 items-center gap-3 rounded-xl border border-transparent px-3 py-2 transition-all duration-200 lg:min-h-9 lg:py-1",k="border-primary/15 bg-linear-to-r from-primary/15 to-primary/5 text-primary shadow-[0_12px_26px_-22px_rgba(229,106,74,0.9)]",w="text-text-muted hover:border-border-subtle hover:bg-surface-2 hover:text-text-main";function C(e){return(0,c.cn)("material-symbols-outlined flex size-7 shrink-0 items-center justify-center rounded-lg text-[18px] transition-all duration-200",e?"fill-1 bg-primary text-white shadow-[0_7px_16px_-8px_rgba(229,106,74,0.9)]":"group-hover:bg-primary/10 group-hover:text-primary")}function S({onClose:e}){let t=(0,d.usePathname)(),r=j.some(e=>t===e.href||t.startsWith(`${e.href}/`)),[l,n]=(0,a.useState)(!1),[i,T]=(0,a.useState)(!0),[$,A]=(0,a.useState)(!1),[P,O]=(0,a.useState)(null),[R,E]=(0,a.useState)(!1),[z,_]=(0,a.useState)(!1),[M,q]=(0,a.useState)(0),[L,D]=(0,a.useState)(!1),{copied:U,copy:F}=(0,x.C)(2e3),W=(0,a.useRef)(null),B=u.h0.installCmdLatest;(0,a.useEffect)(()=>()=>{W.current&&(clearInterval(W.current),W.current=null)},[]),(0,a.useEffect)(()=>{let e=!1;return fetch("/api/settings").then(e=>e.json()).then(t=>{!e&&t.enableTranslator&&D(!0)}).catch(()=>{}),()=>{e=!0}},[]),(0,a.useEffect)(()=>{let e=!1;return fetch("/api/version",{cache:"no-store"}).then(e=>e.json()).then(t=>{e||(t?.hasUpdate?O(t):O(null))}).catch(()=>{}),()=>{e=!0}},[]),(0,a.useEffect)(()=>{r&&T(!0)},[r]);let K=e=>"/dashboard/endpoint"===e?"/dashboard"===t||t.startsWith("/dashboard/endpoint"):t.startsWith(e),V=async()=>{if(!await F(B))return;let e=u.h0.shutdownCountdownSec;q(e),W.current&&clearInterval(W.current),W.current=setInterval(()=>{q(e-=1),e<=0&&(clearInterval(W.current),W.current=null,fetch("/api/version/shutdown",{method:"POST"}).catch(()=>{}),A(!0))},1e3)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("aside",{className:"relative flex h-full min-h-0 w-[min(18rem,86vw)] flex-col overflow-hidden border-r border-border-subtle bg-vibrancy shadow-[8px_0_30px_-28px_rgba(0,0,0,0.45)] backdrop-blur-xl transition-colors duration-300 after:pointer-events-none after:absolute after:inset-y-0 after:right-0 after:w-px after:bg-linear-to-b after:from-transparent after:via-primary/25 after:to-transparent lg:w-72",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-6 pt-5 pb-2",children:[(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FF5F56]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#FFBD2E]"}),(0,s.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#27C93F]"}),e&&(0,s.jsx)("button",{type:"button",onClick:e,"aria-label":"Close dashboard navigation",className:"ml-auto grid size-11 place-items-center rounded-xl text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 lg:hidden",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 border-b border-border-subtle/70 px-6 py-4",children:[(0,s.jsxs)(o(),{href:"/dashboard",className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-[10px] bg-gradient-to-br from-[#FF9A52] via-[#F56A2A] to-[#D94716] shadow-[var(--shadow-warm)] ring-1 ring-white/20",children:(0,s.jsx)("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-6 h-6",children:(0,s.jsx)("path",{d:"M9 10H23L9 22H23",stroke:"white",strokeWidth:"3.25",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h1",{className:"text-lg font-semibold tracking-tight text-text-main",children:u.vQ.name}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["v",u.vQ.version]})]})]}),P&&(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 rounded p-1 -m-1",children:[(0,s.jsxs)("span",{className:"text-xs font-semibold text-green-600 dark:text-amber-500",children:["↑ New version available: v",P.latestVersion]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:()=>E(!0),className:"px-2 py-1 rounded bg-green-600 hover:bg-green-700 dark:bg-amber-500 dark:hover:bg-amber-600 text-white text-[11px] font-semibold transition-colors cursor-pointer",children:"Update now"}),(0,s.jsx)("button",{onClick:()=>F(B),title:"Copy install command",className:"flex-1 text-left hover:opacity-80 transition-opacity cursor-pointer min-w-0",children:(0,s.jsx)("code",{className:"block text-[10px] text-green-600/80 dark:text-amber-400/70 font-mono truncate",children:U?"✓ copied!":B})})]})]})]}),(0,s.jsxs)("nav",{"aria-label":"Main navigation",className:"min-h-0 flex-1 px-4 py-2 space-y-0.5 overflow-y-auto custom-scrollbar",children:[(0,s.jsx)("p",{className:"px-3 pt-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.14em] text-text-muted/55",children:"Core"}),g.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),(0,s.jsxs)("div",{className:"pt-3 mt-1 space-y-0.5",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>T(e=>!e),className:(0,c.cn)("group flex min-h-11 w-full items-center gap-2 rounded-xl px-3 py-2 transition-all lg:min-h-9 lg:py-1",r?"text-primary":"text-text-muted hover:bg-surface-2 hover:text-text-main"),"aria-expanded":i,"aria-controls":"advanced-navigation",children:[(0,s.jsx)("p",{className:"flex-1 text-left text-[10px] font-semibold uppercase tracking-[0.14em] text-text-muted/55",children:"Advanced"}),(0,s.jsx)("span",{className:"text-[10px] font-medium text-text-subtle tabular-nums",children:j.length}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",i&&"rotate-180"),children:"expand_more"})]}),i&&(0,s.jsx)("div",{id:"advanced-navigation",children:j.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href))})]}),(0,s.jsxs)("div",{className:"pt-3 mt-2 space-y-0.5",children:[(0,s.jsx)("p",{className:"px-3 text-[10px] font-semibold text-text-muted/55 uppercase tracking-[0.14em] mb-1",children:"System"}),(0,s.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),className:(0,c.cn)(N,"w-full",t.startsWith("/dashboard/media-providers")?k:w),"aria-expanded":l,"aria-controls":"media-provider-navigation",children:[(0,s.jsx)("span",{className:C(t.startsWith("/dashboard/media-providers")),children:"perm_media"}),(0,s.jsx)("span",{className:"text-[13px] font-medium flex-1 text-left",children:"Media Providers"}),(0,s.jsx)("span",{className:(0,c.cn)("material-symbols-outlined text-[14px] transition-transform",l&&"rotate-180"),children:"expand_more"})]}),l&&(0,s.jsxs)("div",{id:"media-provider-navigation",className:"pl-4",children:[m.rj.filter(e=>b.includes(e.id)).map(r=>(0,s.jsxs)(o(),{href:`/dashboard/media-providers/${r.id}`,onClick:e,"aria-current":K(`/dashboard/media-providers/${r.id}`)?"page":void 0,className:(0,c.cn)(N,"px-4",t.startsWith(`/dashboard/media-providers/${r.id}`)?k:w),children:[(0,s.jsx)("span",{className:(0,c.cn)(C(t.startsWith(`/dashboard/media-providers/${r.id}`)),"text-[16px]"),children:r.icon}),(0,s.jsx)("span",{className:"text-sm",children:r.label})]},r.id)),(0,s.jsxs)(o(),{href:f,onClick:e,"aria-current":K(f)?"page":void 0,className:(0,c.cn)(N,"px-4",t.startsWith(f)?k:w),children:[(0,s.jsx)("span",{className:(0,c.cn)(C(t.startsWith(f)),"text-[16px]"),children:"travel_explore"}),(0,s.jsx)("span",{className:"text-sm",children:"Web Fetch & Search"})]},"web")]}),y.map(t=>(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href)),v.map(t=>"/dashboard/translator"!==t.href||L?(0,s.jsxs)(o(),{href:t.href,onClick:e,"aria-current":K(t.href)?"page":void 0,className:(0,c.cn)(N,K(t.href)?k:w),children:[(0,s.jsx)("span",{className:C(K(t.href)),children:t.icon}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:t.label})]},t.href):null),(0,s.jsxs)(o(),{href:"/dashboard/profile",onClick:e,"aria-current":K("/dashboard/profile")?"page":void 0,className:(0,c.cn)(N,K("/dashboard/profile")?k:w),children:[(0,s.jsx)("span",{className:C(K("/dashboard/profile")),children:"settings"}),(0,s.jsx)("span",{className:"text-[13px] font-medium",children:"Settings"})]})]})]})]}),(0,s.jsx)(h.ConfirmModal,{isOpen:R,onClose:()=>E(!1),onConfirm:()=>{E(!1),_(!0)},title:"Update ZevaiRouter",message:`Show install command for v${P?.latestVersion||""}? You can copy it and shutdown to install manually.`,confirmText:"Show Command",cancelText:"Cancel",variant:"primary"}),($||z)&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-6",children:z?(0,s.jsx)(I,{latestVersion:P?.latestVersion,installCmd:B,copied:U,onCopyAndShutdown:V,onCancel:()=>{W.current&&(clearInterval(W.current),W.current=null),_(!1),q(0)},countdown:M,isDisconnected:$}):(0,s.jsxs)("div",{className:"text-center p-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-16 rounded-full bg-red-500/20 text-red-500 mx-auto mb-4",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"power_off"})}),(0,s.jsx)("h2",{className:"text-xl font-semibold text-white mb-2",children:"Server Disconnected"}),(0,s.jsx)("p",{className:"text-text-muted mb-6",children:"The proxy server has been stopped."}),(0,s.jsx)(p.default,{variant:"secondary",onClick:()=>globalThis.location.reload(),children:"Reload Page"})]})})]})}function I({latestVersion:e,installCmd:t,copied:r,onCopyAndShutdown:a,onCancel:l,countdown:n,isDisconnected:i}){let o=n>0;return(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-xl bg-neutral-900/95 border border-white/10 p-6 text-white",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-11 rounded-full bg-amber-500/20 text-amber-400",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[24px]",children:"content_copy"})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-lg font-semibold",children:["Update ZevaiRouter",e?` to v${e}`:""]}),(0,s.jsx)("p",{className:"text-xs text-white/60",children:i?"Server stopped. Paste the command into a terminal to install.":o?`Command copied. Server will stop in ${n}s...`:"Click the button below to copy the install command and shutdown."})]})]}),(0,s.jsx)("p",{className:"text-sm text-white/80 mb-2",children:"Install command:"}),(0,s.jsx)("div",{className:"w-full px-3 py-2 rounded bg-white/5 mb-4",children:(0,s.jsx)("code",{className:"text-xs font-mono text-amber-400 break-all",children:t})}),(0,s.jsxs)("ol",{className:"text-xs text-white/70 space-y-1 list-decimal list-inside mb-4",children:[(0,s.jsxs)("li",{children:["Click ",(0,s.jsx)("strong",{children:"Copy & Shutdown"})," below."]}),(0,s.jsx)("li",{children:"Paste the command into your terminal and press Enter."}),(0,s.jsxs)("li",{children:["Run ",(0,s.jsx)("code",{className:"px-1 rounded bg-white/10 text-green-400",children:"zevai"})," again after install."]})]}),i?(0,s.jsx)(p.default,{variant:"secondary",fullWidth:!0,onClick:()=>globalThis.location.reload(),children:"Reload Page"}):(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(p.default,{variant:"secondary",onClick:l,disabled:o,children:"Cancel"}),(0,s.jsx)(p.default,{variant:"primary",fullWidth:!0,onClick:a,disabled:o,children:r?"✓ Copied — shutting down...":o?`Shutting down in ${n}s`:"Copy & Shutdown"})]})]})}S.propTypes={onClose:n().func},I.propTypes={latestVersion:n().string,installCmd:n().string.isRequired,copied:n().bool,onCopyAndShutdown:n().func.isRequired,onCancel:n().func.isRequired,countdown:n().number,isDisconnected:n().bool}},93308:(e,t,r)=>{r.d(t,{CL:()=>l,QC:()=>o,Xn:()=>a,YZ:()=>s,il:()=>i});let s=["en","vi","zh-CN","zh-TW","ja","pt-BR","pt-PT","ko","es","de","fr","he","ar","ru","pl","cs","nl","tr","uk","tl","id","th","hi","bn","ur","ro","sv","it","el","hu","fi","da","no"],a="en",l="locale",n=["ar","he","ur"];function i(e){return n.includes(o(e))?"rtl":"ltr"}function o(e){return"zh"===e||"zh-CN"===e?"zh-CN":"en"===e?"en":"vi"===e?"vi":"zh-TW"===e?"zh-TW":"ja"===e?"ja":"pt-BR"===e?"pt-BR":"pt-PT"===e?"pt-PT":"ko"===e?"ko":"es"===e?"es":"de"===e?"de":"fr"===e?"fr":"he"===e?"he":"ar"===e?"ar":"ru"===e?"ru":"pl"===e?"pl":"cs"===e?"cs":"nl"===e?"nl":"tr"===e?"tr":"uk"===e?"uk":"tl"===e?"tl":"id"===e?"id":"th"===e?"th":"hi"===e?"hi":"bn"===e?"bn":"ur"===e?"ur":"ro"===e?"ro":"sv"===e?"sv":"it"===e?"it":"el"===e?"el":"hu"===e?"hu":"fi"===e?"fi":"da"===e?"da":"no"===e?"no":a}},94230:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497),o=r(11059);function d({isOpen:e,provider:t,onSuccess:r,onClose:l}){let[n,c]=(0,a.useState)("loading"),[u,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(null),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(null),{copied:j,copy:v}=(0,o.C)();(0,a.useEffect)(()=>{e&&t&&(async()=>{try{g(null),c("loading");let e=await fetch(`/api/oauth/kiro/social-authorize?provider=${t}`),r=await e.json();if(!e.ok)throw Error(r.error);p(r),m(r.authUrl),c("input"),window.open(r.authUrl,"_blank","noopener,noreferrer")}catch(e){g(e.message),c("error")}})()},[e,t]);let y=async()=>{try{let e;g(null);try{e=new URL(h)}catch(e){throw Error("Invalid callback URL format")}let s=e.searchParams.get("code");e.searchParams.get("state");let a=e.searchParams.get("error");if(a)throw Error(e.searchParams.get("error_description")||a);if(!s)throw Error("No authorization code found in URL");let l=await fetch("/api/oauth/kiro/social-exchange",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:s,codeVerifier:x.codeVerifier,provider:t})}),n=await l.json();if(!l.ok)throw Error(n.error);c("success"),r?.()}catch(e){g(e.message),c("error")}},N="google"===t?"Google":"GitHub";return(0,s.jsx)(i.aF,{isOpen:e,title:`Connect Kiro via ${N}`,onClose:l,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:["loading"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Initializing..."}),(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["Setting up ",N," authentication"]})]}),"input"===n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 1: Open this URL in your browser"}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.pd,{value:u,readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,s.jsx)(i.$n,{variant:"secondary",icon:"auth_url"===j?"check":"content_copy",onClick:()=>v(u,"auth_url"),children:"Copy"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium mb-2",children:"Step 2: Paste the callback URL here"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"After authorization, copy the full URL from your browser address bar."}),(0,s.jsx)(i.pd,{value:h,onChange:e=>b(e.target.value),placeholder:"kiro://kiro.kiroAgent/authenticate-success?code=...",className:"font-mono text-xs"})]})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:y,fullWidth:!0,disabled:!h,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"success"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,s.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your Kiro account via ",N," has been connected."]}),(0,s.jsx)(i.$n,{onClick:l,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,s.jsx)("p",{className:"text-sm text-red-600 mb-4",children:f}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>c("input"),variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,s.jsx)(i.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}d.propTypes={isOpen:n().bool.isRequired,provider:n().oneOf(["google","github"]).isRequired,onSuccess:n().func,onClose:n().func.isRequired}},95088:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497);let o="https://gitlab.com";function d({isOpen:e,providerInfo:t,onSuccess:r,onClose:l}){let n,[c,u]=(0,a.useState)(null),[m,x]=(0,a.useState)(o),[p,h]=(0,a.useState)(""),[b,f]=(0,a.useState)(""),[g,j]=(0,a.useState)(""),[v,y]=(0,a.useState)(!1),[N,k]=(0,a.useState)(null),[w,C]=(0,a.useState)(!1),[S,I]=(0,a.useState)(null),T=()=>{u(null),x(o),h(""),f(""),j(""),k(null),y(!1),C(!1),I(null),l()},$=async()=>{if(!g.trim())return void k("Personal Access Token is required");y(!0),k(null);try{let e=await fetch("/api/oauth/gitlab/pat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:g.trim(),baseUrl:m.trim()||o})}),t=await e.json();if(!e.ok)throw Error(t.error||"Authentication failed");r?.(),T()}catch(e){k(e.message)}finally{y(!1)}};return e?w&&S?(0,s.jsx)(i.LF,{isOpen:!0,provider:"gitlab",providerInfo:t,oauthMeta:S,onSuccess:()=>{r?.(),T()},onClose:()=>{C(!1),I(null)}}):(0,s.jsx)(i.aF,{isOpen:e,title:"Connect GitLab Duo",onClose:T,size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[!c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Choose how to authenticate with GitLab Duo:"}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,s.jsxs)("button",{onClick:()=>u("oauth"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"lock_open"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"OAuth App"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab OAuth application"})]})]}),(0,s.jsxs)("button",{onClick:()=>u("pat"),className:"flex flex-col items-center gap-2 p-4 rounded-lg border border-border hover:border-primary hover:bg-primary/5 transition-colors text-left",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-2xl text-primary",children:"key"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"Personal Access Token"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Use a GitLab PAT with api scope"})]})]})]})]}),"oauth"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create an OAuth app at"," ",(0,s.jsx)("a",{href:`${m.trim()||o}/-/profile/applications`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Applications"})," ","with redirect URI"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:(n=window.location.port||("https:"===window.location.protocol?"443":"80"),`http://localhost:${n}/callback`)})]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Client ID",value:p,onChange:e=>h(e.target.value),placeholder:"Your OAuth application client ID"}),(0,s.jsx)(i.pd,{label:"Client Secret (optional for PKCE)",value:b,onChange:e=>f(e.target.value),placeholder:"Leave empty for public PKCE app"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:()=>{p.trim()?(k(null),I({baseUrl:m.trim()||o,clientId:p.trim(),clientSecret:b.trim()}),C(!0)):k("Client ID is required")},fullWidth:!0,disabled:!p.trim(),children:"Authorize"}),(0,s.jsx)(i.$n,{onClick:()=>{u(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]}),"pat"===c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Create a PAT at"," ",(0,s.jsx)("a",{href:`${m.trim()||o}/-/user_settings/personal_access_tokens`,target:"_blank",rel:"noreferrer",className:"text-primary underline",children:"GitLab Access Tokens"})," ","with scopes: ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"api"}),","," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"read_user"}),", and"," ",(0,s.jsx)("code",{className:"bg-sidebar px-1 rounded text-xs",children:"ai_features"}),"."]}),(0,s.jsx)(i.pd,{label:"GitLab Base URL",value:m,onChange:e=>x(e.target.value),placeholder:o}),(0,s.jsx)(i.pd,{label:"Personal Access Token",value:g,onChange:e=>j(e.target.value),placeholder:"glpat-xxxxxxxxxxxxxxxxxxxx",type:"password"}),N&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:N}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:$,fullWidth:!0,disabled:!g.trim()||v,loading:v,children:"Connect"}),(0,s.jsx)(i.$n,{onClick:()=>{u(null),k(null)},variant:"ghost",fullWidth:!0,children:"Back"})]})]})]})}):null}d.propTypes={isOpen:n().bool.isRequired,providerInfo:n().shape({name:n().string}),onSuccess:n().func,onClose:n().func.isRequired}},96748:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(14051),n=r.n(l),i=r(35497);let o="https://api.openai.com/v1";function d({isOpen:e,onClose:t,onCreated:r,onSaved:l,node:n}){let c=!!n,[u,m]=(0,a.useState)({name:"",prefix:"",baseUrl:o}),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[j,v]=(0,a.useState)(!1),[y,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(N(null),b(""),g(""),c?m({name:n.name||"",prefix:n.prefix||"",baseUrl:n.baseUrl||o}):m({name:"",prefix:"",baseUrl:o}))},[e,c,n]);let k=async()=>{if(u.name.trim()&&u.prefix.trim()&&u.baseUrl.trim()){p(!0);try{let e=c?`/api/provider-nodes/${n.id}`:"/api/provider-nodes",t=c?"PUT":"POST",s={name:u.name,prefix:u.prefix,baseUrl:u.baseUrl};c||(s.type="custom-embedding");let a=await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await a.json();a.ok&&(c?l?.(i.node):r?.(i.node))}catch(e){console.log("Error saving custom embedding node:",e)}finally{p(!1)}}},w=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:u.baseUrl,apiKey:h,type:"custom-embedding",modelId:f.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(i.aF,{isOpen:e,title:c?"Edit Custom Embedding":"Add Custom Embedding",onClose:t,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(i.pd,{label:"Name",value:u.name,onChange:e=>m({...u,name:e.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,s.jsx)(i.pd,{label:"Prefix",value:u.prefix,onChange:e=>m({...u,prefix:e.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,s.jsx)(i.pd,{label:"Base URL",value:u.baseUrl,onChange:e=>m({...u,baseUrl:e.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,s.jsx)(i.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>b(e.target.value)}),(0,s.jsx)(i.pd,{label:"Model ID (for Check)",value:f,onChange:e=>g(e.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(i.$n,{onClick:w,disabled:!h||!f.trim()||j||!u.baseUrl.trim(),variant:"secondary",children:j?"Checking...":"Check"}),(()=>{if(!y)return null;let{valid:e,error:t,dimensions:r}=y;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Ex,{variant:"success",children:"Valid"}),r&&(0,s.jsxs)("span",{className:"text-sm text-text-muted",children:[r," dims"]})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(i.Ex,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(i.$n,{onClick:k,fullWidth:!0,disabled:!u.name.trim()||!u.prefix.trim()||!u.baseUrl.trim()||x,children:x?c?"Saving...":"Creating...":c?"Save":"Create"}),(0,s.jsx)(i.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}d.propTypes={isOpen:n().bool.isRequired,onClose:n().func.isRequired,onCreated:n().func,onSaved:n().func,node:n().shape({id:n().string,name:n().string,prefix:n().string,baseUrl:n().string})}},97677:(e,t,r)=>{r.d(t,{default:()=>a});var s=r(95155);function a({text:e,children:t,position:r="top",color:l}){let n=l?"":"bg-gray-900";return(0,s.jsxs)("div",{className:"relative inline-flex group",children:[t,(0,s.jsx)("div",{className:`pointer-events-none absolute ${{top:"bottom-full left-1/2 -translate-x-1/2 mb-1.5",bottom:"top-full left-1/2 -translate-x-1/2 mt-1.5",left:"right-full top-1/2 -translate-y-1/2 mr-1.5",right:"left-full top-1/2 -translate-y-1/2 ml-1.5"}[r]} z-50 w-max max-w-56 rounded px-2 py-1 text-[11px] leading-snug ${n} text-white opacity-0 group-hover:opacity-100 transition-opacity duration-150 whitespace-normal`,style:l?{backgroundColor:l}:{},children:e})]})}},98542:(e,t,r)=>{r.d(t,{default:()=>n});var s=r(95155),a=r(12115),l=r(31474);function n({checked:e=!1,onChange:t,label:r,description:i,disabled:o=!1,size:d="md",className:c,busy:u=!1,touchTarget:m=!1,...x}){let p=(0,a.useId)(),h=(0,a.useId)(),b={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}},f=()=>{o||u||!t||t(!e)},g=(0,s.jsx)("span",{className:(0,l.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out motion-reduce:transition-none",e?b[d].translate:"translate-x-0.5",b[d].thumb,"mt-0.5")});return(0,s.jsxs)("div",{className:(0,l.cn)("flex items-center gap-3",o&&"opacity-50 cursor-not-allowed",c),children:[(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-busy":u||void 0,"data-state":e?"on":"off","aria-labelledby":r?p:void 0,"aria-describedby":i?h:void 0,"aria-label":r?void 0:x["aria-label"],disabled:o||u,onClick:f,...x,className:(0,l.cn)("relative inline-flex shrink-0 cursor-pointer","transition-colors duration-200 ease-in-out motion-reduce:transition-none","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg",m?"size-11 items-center justify-center rounded-xl sm:size-8 sm:rounded-lg":"rounded-full",!m&&(e?"bg-brand-500":"bg-surface-3"),!m&&b[d].track,o&&"cursor-not-allowed"),children:m?(0,s.jsx)("span",{className:(0,l.cn)("relative inline-flex shrink-0 rounded-full",e?"bg-brand-500":"bg-surface-3",b[d].track),children:g}):g}),(r||i)&&(0,s.jsxs)("div",{className:"flex flex-col",children:[r&&(0,s.jsx)("label",{id:p,onClick:f,className:"text-sm font-medium text-text-main cursor-pointer",children:r}),i&&(0,s.jsx)("span",{id:h,className:"text-xs text-text-muted",children:i})]})]})}}}]);