zevairouter 1.1.80 → 1.1.82

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 (608) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +20 -20
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  74. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  77. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +2 -2
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  349. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  420. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  421. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  422. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  423. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  424. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  425. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +3 -3
  426. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
  427. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
  428. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  429. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  430. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  431. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  432. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  433. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  434. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  435. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +4 -4
  436. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +4 -4
  437. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +4 -4
  438. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  439. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  440. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  441. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  442. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  443. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  444. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  445. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
  446. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
  447. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
  448. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  449. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  450. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  451. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  452. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  453. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  454. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  455. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  456. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  457. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  458. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  459. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  460. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +4 -4
  461. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +4 -4
  462. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +4 -4
  463. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  464. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  465. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
  466. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  467. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
  468. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  469. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  470. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  472. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  473. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  474. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  475. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  476. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  477. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  478. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  479. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  480. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
  481. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  482. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
  483. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  484. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  485. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  486. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  487. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  488. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  489. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  490. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  491. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  492. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  493. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  494. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  495. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
  496. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  497. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
  498. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  499. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  500. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  501. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  502. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  503. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  504. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  505. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  506. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  507. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  508. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  509. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  510. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  511. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  512. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  513. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  514. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  515. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  516. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  517. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  518. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  519. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  520. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  521. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  522. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  523. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  524. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  525. package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  526. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  527. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  528. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  529. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  530. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  531. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  532. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  533. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  534. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  536. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  537. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  538. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  539. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  540. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  541. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  542. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  543. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  544. package/cli/app/.next-cli-build/server/app/login.rsc +3 -3
  545. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  546. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  547. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  548. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  549. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  550. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  551. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  552. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  553. package/cli/app/.next-cli-build/server/app-paths-manifest.json +20 -20
  554. package/cli/app/.next-cli-build/server/chunks/1283.js +1 -1
  555. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  556. package/cli/app/.next-cli-build/server/chunks/1509.js +1 -1
  557. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  558. package/cli/app/.next-cli-build/server/chunks/1852.js +1 -1
  559. package/cli/app/.next-cli-build/server/chunks/2025.js +1 -1
  560. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  561. package/cli/app/.next-cli-build/server/chunks/2990.js +1 -1
  562. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  563. package/cli/app/.next-cli-build/server/chunks/3815.js +1 -1
  564. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  565. package/cli/app/.next-cli-build/server/chunks/4128.js +1 -1
  566. package/cli/app/.next-cli-build/server/chunks/4177.js +1 -1
  567. package/cli/app/.next-cli-build/server/chunks/4549.js +1 -1
  568. package/cli/app/.next-cli-build/server/chunks/4631.js +1 -0
  569. package/cli/app/.next-cli-build/server/chunks/4730.js +1 -1
  570. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  571. package/cli/app/.next-cli-build/server/chunks/5330.js +4 -4
  572. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  573. package/cli/app/.next-cli-build/server/chunks/5728.js +3 -1
  574. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  575. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  576. package/cli/app/.next-cli-build/server/chunks/6396.js +1 -1
  577. package/cli/app/.next-cli-build/server/chunks/6492.js +1 -1
  578. package/cli/app/.next-cli-build/server/chunks/6936.js +1 -1
  579. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  580. package/cli/app/.next-cli-build/server/chunks/7319.js +23 -21
  581. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  582. package/cli/app/.next-cli-build/server/chunks/7404.js +1 -1
  583. package/cli/app/.next-cli-build/server/chunks/8517.js +1 -1
  584. package/cli/app/.next-cli-build/server/chunks/8725.js +1 -1
  585. package/cli/app/.next-cli-build/server/chunks/8749.js +1 -1
  586. package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
  587. package/cli/app/.next-cli-build/server/chunks/9618.js +1 -1
  588. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  589. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  590. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  591. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  592. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  593. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  594. package/cli/app/.next-cli-build/static/chunks/{5497-71a02c6639ddb92b.js → 5497-44af6e5aafe6256a.js} +1 -1
  595. package/cli/app/.next-cli-build/static/chunks/620-2e48912d07143146.js +1 -0
  596. package/cli/app/.next-cli-build/static/chunks/{7001-da01aaca36365276.js → 7001-8bbc6a14335afd88.js} +1 -1
  597. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-936f29821afd7d28.js → page-342ac0d9d2fb15c7.js} +1 -1
  598. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-808e3749cba268ff.js +1 -0
  599. package/cli/app/CHANGELOG.md +15 -0
  600. package/cli/app/package.json +1 -1
  601. package/cli/app/src/mitm/server.js +1 -1
  602. package/cli/package.json +1 -1
  603. package/package.json +1 -1
  604. package/cli/app/.next-cli-build/server/chunks/8972.js +0 -1
  605. package/cli/app/.next-cli-build/static/chunks/620-0f6bd4f59fa0cd33.js +0 -1
  606. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-926a39b841570eda.js +0 -1
  607. /package/cli/app/.next-cli-build/static/{Vbe_S3ECwU1yAXUWqmRCl → IRiQfFU12MuWje_S9vQv0}/_buildManifest.js +0 -0
  608. /package/cli/app/.next-cli-build/static/{Vbe_S3ECwU1yAXUWqmRCl → IRiQfFU12MuWje_S9vQv0}/_ssgManifest.js +0 -0
@@ -46,7 +46,7 @@ id = "${I||"cc/claude-opus-4-7"}"`},{filename:"~/.config/jcode/provider-zevairou
46
46
  api: openai-completions
47
47
  discovery:
48
48
  type: openai-models-list
49
- timeoutMs: 20000`}])})]})}let ah="/api/cli-tools/openbot-settings";function ai({tool:a,isExpanded:b,onToggle:c,initialStatus:h}){let[i,j]=(0,e.useState)(h||null),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(()=>new Set),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),w=(0,e.useCallback)(async()=>{l(!0);try{let a=await fetch(`${ah}?models=1`,{cache:"no-store"});j(await a.json())}catch(a){j({installed:!1,error:a.message})}finally{l(!1)}},[]),x=(0,e.useMemo)(()=>i?.endpoints||[],[i]),y=x.find(a=>a.id===m)||null,z=(0,e.useMemo)(()=>new Set(y?.agentModelIds||[]),[y]),A=i?.maxModels||64,B=(0,e.useMemo)(()=>i?.routerModels||[],[i]),C=(0,e.useMemo)(()=>{let a=q.trim().toLowerCase(),b=new Map;for(let c of B){if(a&&!c.id.toLowerCase().includes(a))continue;let d=function(a){let b=a.indexOf("/");return b>0?a.slice(0,b):a}(c.id);b.has(d)||b.set(d,[]),b.get(d).push(c)}return[...b.entries()]},[B,q]),D=(0,e.useMemo)(()=>new Set(B.map(a=>a.id)),[B]),E=(y?.modelIds||[]).filter(a=>!D.has(a)&&!z.has(a)),F=async()=>{if(y&&!s){t(!0),v(null);try{let a=await fetch(ah,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerId:y.id,models:[...o].filter(a=>D.has(a)||z.has(a))})}),b=await a.json();if(!a.ok)throw Error(b.error||"Sync failed");let c=[`${b.modelCount} models saved to "${y.name}"`];b.added.length&&c.push(`${b.added.length} added`),b.removed.length&&c.push(`${b.removed.length} removed`),b.rejected.length&&c.push(`${b.rejected.length} skipped`),v({type:"success",text:`${c.join(", ")}. Open OpenBot to use them.`}),await w()}catch(a){v({type:"error",text:a.message})}finally{t(!1)}}},G=i?.installed?i.hasZevai?"configured":"not_configured":null;return(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:a.image?(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:a.color},children:a.icon||"smart_toy"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===G&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===G&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[k&&!i?.routerModels&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Reading OpenBot endpoints and router models..."})]}),i&&!i.installed&&(0,d.jsxs)("div",{className:"flex items-start gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:i.message||i.error||"OpenBot not detected on this computer."})]}),i?.installed&&(0,d.jsxs)(d.Fragment,{children:[a.notes?.map(a=>(0,d.jsxs)("div",{className:`flex items-start gap-2 p-2 rounded text-xs ${"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"bg-blue-500/10 text-blue-600 dark:text-blue-400"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"warning"===a.type?"warning":"info"}),(0,d.jsx)("span",{children:a.text})]},a.text)),i.error&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"error"}),(0,d.jsx)("span",{children:i.error})]}),!i.error&&0===x.length&&(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["OpenBot has no endpoint pointing at this router yet. In OpenBot, add a custom endpoint with base URL"," ",(0,d.jsxs)("code",{className:"font-mono",children:["http://127.0.0.1:","1997","/v1"]})," ","and a ZevaiRouter API key, then come back here to pick its models."]}),y&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[x.length>1&&(0,d.jsx)("select",{value:m,onChange:a=>n(a.target.value),className:"rounded-lg border border-border bg-surface px-2 py-1.5 text-sm",children:x.map(a=>(0,d.jsxs)("option",{value:a.id,children:[a.name," (",a.id,")"]},a.id))}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Endpoint ",(0,d.jsx)("strong",{className:"text-text-main",children:y.name})," \xb7 ",y.baseUrl,!y.hasApiKey&&" \xb7 no API key saved in OpenBot"]}),(0,d.jsxs)("span",{className:`ml-auto text-xs font-semibold ${o.size>=A?"text-amber-600":"text-text-main"}`,children:[o.size," / ",A," selected"]})]}),i.running&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded text-xs bg-amber-500/10 text-amber-700 dark:text-amber-300",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"block"}),(0,d.jsx)("span",{children:"OpenBot is open. Quit it (Cmd+Q) before syncing, then press Refresh."})]}),E.length>0&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[E.length," saved model",1===E.length?" is":"s are"," no longer offered by the router and will be removed: ",E.join(", ")]}),(0,d.jsx)("input",{type:"search",value:q,onChange:a=>r(a.target.value),placeholder:"Filter models",className:"rounded-lg border border-border bg-surface px-3 py-1.5 text-sm"}),(0,d.jsx)("div",{className:"max-h-[28rem] overflow-y-auto rounded-xl border border-border custom-scrollbar",children:C.map(([a,b])=>{let c=b.filter(a=>a.openbotCompatible&&!z.has(a.id)),e=c.length>0&&c.every(a=>o.has(a.id));return(0,d.jsxs)("div",{className:"border-b border-border-subtle last:border-b-0",children:[(0,d.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between bg-surface-2 px-3 py-1.5",children:[(0,d.jsxs)("span",{className:"font-mono text-xs font-semibold text-text-main",children:[a,"/ (",b.length,")"]}),c.length>0&&(0,d.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>{var a;return a=!e,void p(c=>{let d=new Set(c);for(let c of b)if(!(!c.openbotCompatible||z.has(c.id)))if(a){if(d.size>=A)break;d.add(c.id)}else d.delete(c.id);return d})},children:e?"Clear":"Select all"})]}),b.map(a=>{let b=z.has(a.id),c=!a.openbotCompatible||b||!o.has(a.id)&&o.size>=A;return(0,d.jsxs)("label",{className:`flex items-center gap-3 px-3 py-1.5 text-sm ${c&&!b?"opacity-50":"cursor-pointer hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:o.has(a.id)||b,disabled:c,onChange:()=>{var b;return b=a.id,void(!z.has(b)&&p(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.size<A&&c.add(b),c}))},className:"accent-primary"}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:a.id}),b&&(0,d.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-medium text-blue-600 dark:text-blue-400",children:"Used by an agent"}),!a.openbotCompatible&&(0,d.jsx)("span",{className:"rounded-full bg-zinc-500/10 px-2 py-0.5 text-[10px] font-medium text-text-muted",title:"OpenBot rejects model ids with characters such as @",children:"Not supported by OpenBot"}),a.context_length&&(0,d.jsxs)("span",{className:"text-[10px] text-text-muted",children:[Math.round(a.context_length/1e3),"K"]})]},a.id)})]},a)})})]}),u&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===u.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===u.type?"check_circle":"error"}),(0,d.jsx)("span",{children:u.text})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:F,disabled:!y||i.running||0===o.size,loading:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"sync"}),"Sync to OpenBot"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:w,loading:k,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"refresh"}),"Refresh"]}),i.configPath&&(0,d.jsx)("span",{className:"truncate text-[11px] text-text-muted",children:i.configPath})]})]})]})]})}let aj="/api/cli-tools/dsh-settings",ak=`${aj}?models=1`;function al({type:a,children:b}){let c={info:["info","bg-blue-500/10 text-blue-600 dark:text-blue-400"],warning:["warning","bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"],error:["error","bg-red-500/10 text-red-600"],success:["check_circle","bg-green-500/10 text-green-600"]},[e,f]=c[a]||c.info;return(0,d.jsxs)("div",{className:`flex items-start gap-2 p-2 rounded text-xs ${f}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:e}),(0,d.jsx)("span",{className:"min-w-0 break-words",children:b})]})}function am({label:a,children:b}){return(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-1.5 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:a}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),b]})}function an({tool:a,isExpanded:b,onToggle:c,apiKeys:h,cloudEnabled:i,initialStatus:j,tunnelEnabled:k,tunnelPublicUrl:n,tailscaleEnabled:p,tailscaleUrl:q}){let r,[s,t]=(0,e.useState)(j||null),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(null),[y,z]=(0,e.useState)(null),[A,B]=(0,e.useState)(""),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)(""),[G,H]=(0,e.useState)(""),I=async()=>{v(!0);try{let a=await fetch(ak);t(await a.json())}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},J=(r=C||"http://127.0.0.1:1997").endsWith("/v1")?r:`${r}/v1`,K=A?.trim()||h?.[0]?.key||(i?null:"sk_zevai"),L=s?.models||[],M=s?.defaultModel,N=L.find(a=>a.id===E),O=s?.installed?s.hasZevai?o(s.baseUrl,{tunnelPublicUrl:n,tailscaleUrl:q})?"configured":"other":"not_configured":null,P=async(a,b,c)=>{x(a),z(null);try{let a=await fetch(aj,{method:b,headers:{"Content-Type":"application/json"},...c?{body:JSON.stringify(c)}:{}}),d=await a.json();if(!a.ok)return z({type:"error",text:d.error||"Request failed"}),null;return await I(),d}catch(a){return z({type:"error",text:a.message}),null}finally{x(null)}},Q=async()=>{let a=await P("sync","POST",{baseUrl:J,apiKey:K});a&&z({type:"success",text:`Synced ${a.modelCount} models (${a.reasoningModels} with effort levels).`})},R=async()=>{await P("default","PATCH",{model:E,reasoningEffort:G||null})&&z({type:"success",text:`Default model is now zevai / ${E}.`})},S=async()=>{await P("remove","DELETE")&&z({type:"success",text:"Removed the zevai provider from DeepSeek Harness."})};return(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-3",children:[u&&!s?.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Looking for DeepSeek Harness..."})]}),!u&&s&&!s.installed&&(0,d.jsx)(al,{type:"warning",children:s.message||"DeepSeek Harness not detected. Install the app and open it once."}),s?.installed&&(0,d.jsxs)(d.Fragment,{children:[a.notes?.map(a=>(0,d.jsx)(al,{type:a.type,children:a.text},a.text)),s.error&&(0,d.jsx)(al,{type:"error",children:s.error}),(0,d.jsx)(am,{label:"Select Endpoint",children:(0,d.jsx)(l,{value:C||J,onChange:D,requiresExternalUrl:a.requiresExternalUrl,tunnelEnabled:k,tunnelPublicUrl:n,tailscaleEnabled:p,tailscaleUrl:q})}),(0,d.jsx)(am,{label:"API Key",children:(0,d.jsx)(m,{value:A,onChange:B,apiKeys:h,cloudEnabled:i})}),s.hasZevai&&(0,d.jsx)(am,{label:"Current",children:(0,d.jsxs)("span",{className:"min-w-0 truncate rounded bg-surface/40 px-2 py-1.5 text-xs text-text-muted",children:[s.baseUrl," \xb7 ",s.modelCount," models",s.hasKeyRef?"":" \xb7 key reference missing"]})}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:Q,disabled:!K||!!s.error,loading:"sync"===w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"sync"}),"Sync models"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:S,disabled:!s.hasZevai,loading:"remove"===w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"delete"}),"Remove"]})]}),(0,d.jsxs)("div",{className:"mt-2 flex flex-col gap-2 border-t border-border pt-3",children:[(0,d.jsx)("p",{className:"text-xs font-semibold text-text-main",children:"Default model"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:M?.provider?`Now: ${M.provider} / ${M.model||"?"}${M.reasoningEffort?` (${M.reasoningEffort})`:""}`:"Now: DeepSeek Harness built-in default"}),M?.broken&&(0,d.jsxs)(al,{type:"warning",children:[M.reason,". New chats may fail until you pick a model below."]}),L.length>0?(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem_auto] sm:items-center",children:[(0,d.jsxs)("select",{className:"min-w-0 rounded border border-border bg-surface px-2 py-1.5 text-xs",value:E,onChange:a=>{let b,c=L.find(b=>b.id===a.target.value);F(a.target.value),H(c?(b=c.efforts).includes("high")?"high":b[b.length-1]||"":"")},children:[(0,d.jsx)("option",{value:"",children:"Choose a zevai model"}),L.map(a=>(0,d.jsx)("option",{value:a.id,children:a.id},a.id))]}),(0,d.jsxs)("select",{className:"rounded border border-border bg-surface px-2 py-1.5 text-xs disabled:opacity-50",value:G,onChange:a=>H(a.target.value),disabled:!N?.efforts.length,children:[(0,d.jsx)("option",{value:"",children:"No effort"}),N?.efforts.map(a=>(0,d.jsx)("option",{value:a,children:a},a))]}),(0,d.jsx)(f.$n,{variant:"secondary",size:"sm",onClick:R,disabled:!E,loading:"default"===w,children:"Set default"})]}):(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Sync models first to pick a zevai default."})]}),y&&(0,d.jsx)(al,{type:y.type,children:y.text})]})]})]})}let ao=[2e5,4e5,6e5,1e6],ap=[16e3,32e3,64e3,128e3],aq={contextWindow:2e5,maxTokens:64e3};function ar(a,b){let c=Number(a);return Number.isFinite(c)&&c>0&&c<=b?c:null}function as(a,b,c,d){if(null!=a&&""!==a){let b=ar(a,d);if(null!==b)return b}return ar(b,d)??c}function at(a){let b=Number(a);return Number.isFinite(b)?b>=1e6?`${+(b/1e6).toFixed(2)}M`:`${Math.round(b/1e3)}k`:String(a)}function au(a,b){return a.includes(b)?a:[...a,b].sort((a,b)=>a-b)}let av={pi:"npm install -g --ignore-scripts @earendil-works/pi-coding-agent",crush:"brew install charmbracelet/tap/crush",forge:"cargo install forgecode",smelt:"cargo install smelt",codewhale:"cargo install codewhale"};function aw({tool:a,apiKeys:b,activeProviders:c=[],cloudEnabled:h,initialStatus:i,tunnelPublicUrl:j,tailscaleUrl:k}){let n=`/api/cli-tools/${a.id}-settings`,[p,q]=(0,e.useState)(i||null),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)(""),[D,E]=(0,e.useState)([]),[F,G]=(0,e.useState)({}),[H,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)(""),N=()=>{let a=(L||"http://127.0.0.1:1997").replace(/\/+$/,"");return a.endsWith("/v1")?a:`${a}/v1`},O=async()=>{s(!0);try{let b,c=await fetch(n),d=await c.json();q(d);let e=(b=d?.config,b?.model||b?.openai?.model||b?.providers?.zevai?.models?.[0]?.id||b?.providers?.zevai?.models?.[0]||"");if(e&&!B&&C("string"==typeof e?e:e.id),"pi"===a.id){let a=function(a){let b=a?.providers?.zevai?.models;if(!Array.isArray(b)||0===b.length)return null;let c={};return{ids:b.map(a=>{let b="string"==typeof a?a:a?.id;return b&&"string"!=typeof a&&(c[b]={contextWindow:as(a.contextWindow,void 0,aq.contextWindow,2e6),maxTokens:as(a.maxTokens,void 0,aq.maxTokens,2e5)}),b}).filter(Boolean),caps:c}}(d?.config);a&&(E(a.ids),G(a.caps))}}catch(a){q({installed:!1,error:a.message})}finally{s(!1)}},P=p?.installed?p.hasZevai?o(p.baseUrl,{tunnelPublicUrl:j,tailscaleUrl:k})?"configured":"other":"not_configured":null,Q=z?.trim()||(b?.length>0?b[0].key:"")||(h?"":"sk_zevai"),R=async()=>{u(!0),y(null);try{let b={baseUrl:N(),apiKey:Q,model:B||"provider/model-id"};if("pi"===a.id){let a=D.length>0?D:[b.model];b.models=a.map(a=>({id:a,name:a,...aq,...F[a]}))}let c=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json();y({type:c.ok?"success":"error",text:d.message||d.error||"Failed to apply settings"}),c.ok&&await O()}catch(a){y({type:"error",text:a.message})}finally{u(!1)}},S=async()=>{w(!0),y(null);try{let a=await fetch(n,{method:"DELETE"}),b=await a.json();y({type:a.ok?"success":"error",text:b.message||b.error||"Failed to reset"}),a.ok&&await O()}catch(a){y({type:"error",text:a.message})}finally{w(!1)}},T=a=>{E(a),G(b=>{let c={};for(let d of a)c[d]=b[d]||{...aq};return c})},U=(a,b,c)=>{G(d=>({...d,[a]:{...aq,...d[a],[b]:Number(c)}}))};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[a.image?(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg"}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:a.color},children:a.icon||"terminal"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("h2",{className:"font-medium",children:a.name}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.description})]}),(0,d.jsx)("span",{className:`px-2 py-0.5 text-[10px] rounded-full ${"configured"===P?"bg-green-500/10 text-green-600":"other"===P?"bg-blue-500/10 text-blue-600":p?.installed?"bg-yellow-500/10 text-yellow-600":"bg-gray-500/10 text-gray-500"}`,children:r?"Checking":"configured"===P?"Connected":p?.installed?"Not configured":"Not installed"})]}),a.notes?.map(a=>(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.text},a.text)),!p?.installed&&(0,d.jsx)("pre",{className:"overflow-x-auto rounded-lg bg-bg-secondary p-3 text-xs",children:av[a.id]||`Install ${a.name}`}),(0,d.jsx)(l,{value:L,onChange:M,tunnelEnabled:!!j,tunnelPublicUrl:j,tailscaleEnabled:!!k,tailscaleUrl:k,cloudEnabled:h}),(0,d.jsx)(m,{value:z,onChange:A,apiKeys:b,cloudEnabled:h}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,d.jsx)("input",{value:"pi"===a.id?D.join(", "):B,onChange:b=>{"pi"===a.id?T(b.target.value.split(",").map(a=>a.trim()).filter(Boolean)):C(b.target.value)},placeholder:"provider/model-id",className:"flex-1 rounded-lg border border-border bg-bg-secondary px-3 py-2 text-sm"}),(0,d.jsx)(f.$n,{variant:"secondary",onClick:()=>I(!0),disabled:0===c.length,children:"Select model"})]}),"pi"===a.id&&D.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-1.5",children:D.map(a=>{let b={...aq,...F[a]};return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 text-xs",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,d.jsx)("select",{value:b.contextWindow,onChange:b=>U(a,"contextWindow",b.target.value),title:"Context window",className:"rounded border border-border bg-bg-secondary px-1 py-0.5",children:au(ao,b.contextWindow).map(a=>(0,d.jsxs)("option",{value:a,children:[at(a)," ctx"]},a))}),(0,d.jsx)("select",{value:b.maxTokens,onChange:b=>U(a,"maxTokens",b.target.value),title:"Max output tokens",className:"rounded border border-border bg-bg-secondary px-1 py-0.5",children:au(ap,b.maxTokens).map(a=>(0,d.jsxs)("option",{value:a,children:[at(a)," out"]},a))})]},a)})}),x&&(0,d.jsx)("p",{className:`text-sm ${"error"===x.type?"text-red-500":"text-green-600"}`,children:x.text}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{onClick:R,disabled:t||!Q,children:t?"Applying":"Apply"}),(0,d.jsx)(f.$n,{variant:"secondary",onClick:S,disabled:v,children:"Reset"}),(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>K(!0),children:"Manual"})]}),(0,d.jsx)(f.rq,{isOpen:H,onClose:()=>I(!1),onSelect:b=>{"pi"===a.id?T(D.includes(b.value)?D:[...D,b.value]):C(b.value),I(!1)},activeProviders:c,title:`Select model for ${a.name}`}),(0,d.jsx)(f.uR,{isOpen:J,onClose:()=>K(!1),title:`${a.name} manual config`,configs:[{filename:p?.configPath||`${a.name} config`,content:JSON.stringify({baseUrl:N(),apiKey:Q||"<API_KEY>",model:B||"provider/model-id"},null,2)}]})]})}let ax="http://localhost:1997";function ay({apiKeys:a,cloudEnabled:b,onStatusChange:c}){let[g,h]=(0,e.useState)(null),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(()=>a?.[0]?.key||""),[q,r]=(0,e.useState)(null),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(ax),[y,z]=(0,e.useState)(null),A=g?.isWin===!0,B=A||g?.hasCachedPassword||g?.needsSudoPassword===!1,C=g?.isAdmin!==!1;!C&&(A||g?.hasCachedPassword||g?.needsSudoPassword);let D=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();h(b),b.mitmRouterBaseUrl&&x(b.mitmRouterBaseUrl),c?.(b)}}catch{h({running:!1,certExists:!1,dnsStatus:{}})}},[c]),E=a=>{v(null),g&&(B?F(a,""):(r(a),l(!0),t(null)))},F=async(c,d,e=!1)=>{j(!0),v(null);try{let f;if("trust-cert"===c)f=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:d})});else if("start"===c){let c=o?.trim()||(a?.length>0?a[0].key:null)||(b?null:"sk_zevai");f=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:c,sudoPassword:d,mitmRouterBaseUrl:w.trim()||ax,forceKillPort443:e})})}else f=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:d})});if(!f.ok){let a=await f.json().catch(()=>({}));if("PORT_443_BUSY"===a.code&&a.portOwner){l(!1),z({owner:a.portOwner,password:d});return}v(a.error||`Failed to ${c} MITM server`);return}l(!1),n(""),z(null),await D()}catch(a){v(a.message||"Network error")}finally{j(!1),r(null)}},G=()=>{m.trim()?F(q,m):t("Sudo password is required")},H=g?.running;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Zp,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,d.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),H?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Running"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Stopped"})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:g?.certExists},{label:"Trusted",ok:g?.certTrusted},{label:"Server",ok:H}].map(({label:a,ok:b})=>(0,d.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,d.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from ZevaiRouter"]}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Antigravity/Copilot IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → ZevaiRouter → response to Antigravity/Copilot"]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"grid gap-1 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:"ZevaiRouter Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:w,onChange:a=>x(a.target.value),placeholder:ax,disabled:H,className:"flex-1 min-w-0 px-2 py-1.5 bg-surface rounded border border-border text-xs text-text-main focus:outline-none focus:ring-1 focus:ring-primary/50 disabled:opacity-50"})]}),!H&&(0,d.jsxs)("div",{className:"grid gap-1 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",list:"mitm-api-keys",value:o,onChange:a=>p(a.target.value),placeholder:b?"Enter or pick API key":"sk_zevai (default)",className:"flex-1 min-w-0 px-2 py-1.5 bg-surface rounded border border-border text-xs text-text-main focus:outline-none focus:ring-1 focus:ring-primary/50"}),a?.length>0&&(0,d.jsx)("datalist",{id:"mitm-api-keys",children:a.map(a=>(0,d.jsx)("option",{value:a.key,children:a.name||a.key},a.id))})]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center","data-i18n-skip":"true",children:[g?.certExists&&!g?.certTrusted&&(0,d.jsxs)("button",{onClick:()=>E("trust-cert"),disabled:i,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-2 text-xs font-medium text-yellow-600 transition-colors hover:bg-yellow-500/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),H?(0,d.jsxs)("button",{onClick:()=>E("stop"),disabled:i,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-2 text-xs font-medium text-red-500 transition-colors hover:bg-red-500/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}):(0,d.jsxs)("button",{onClick:()=>E("start"),disabled:i||!g||A&&!C,title:A&&!C?"Administrator required":void 0,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-primary/30 bg-primary/10 px-4 py-2 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),H&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),u&&(0,d.jsxs)("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 dark:text-red-400 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5 shrink-0",children:"error"}),(0,d.jsx)("span",{children:u})]}),A&&!C&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,d.jsx)("span",{children:"Administrator required — restart ZevaiRouter as Administrator to use MITM"})]})]})}),k&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:m,onChange:a=>n(a.target.value),onKeyDown:a=>{"Enter"!==a.key||i||G()}}),s&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:s})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{l(!1),n(""),t(null)},disabled:i,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:G,loading:i,children:"Confirm"})]})]})}),y&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Port 443 Already In Use"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 text-xs text-text-muted",children:[(0,d.jsx)("p",{children:"Port 443 is currently used by another process:"}),(0,d.jsxs)("p",{className:"font-mono text-text-main","data-i18n-skip":"true",children:[y.owner.name," (PID ",y.owner.pid,")"]}),(0,d.jsx)("p",{children:"Kill this process to start MITM Server?"})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{z(null),j(!1)},disabled:i,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:()=>{F("start",y?.password||"",!0)},loading:i,children:"Kill & Start"})]})]})})]})}var az=c(36811);function aA({tool:a,isExpanded:b,onToggle:c,serverRunning:h,dnsActive:i,hasCachedPassword:j,needsSudoPassword:k,isWin:l,apiKeys:m,activeProviders:n,hasActiveProviders:o,modelAliases:p={},cloudEnabled:q,onDnsChange:r}){let[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(null),[E,F]=(0,e.useState)({}),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(null),K=az.TOOL_HOSTS[a.id]??[],L=l||j||!1===k,M=(0,e.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),N=(a,b)=>{F(c=>({...c,[a]:b}))},O=()=>{if(!h)return;let a=i?"disable":"enable";L?P(a,""):(B(a),x(!0),D(null))},P=async(b,c)=>{t(!0),v(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b&&v(`Restart ${a.name} to apply changes`),x(!1),z(""),r?.(e)}catch{}finally{t(!1),B(null)}},Q=()=>{y.trim()?P(A,y):D("Sudo password is required")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),h?i?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(f.Ex,{variant:"warning",size:"sm",children:"DNS off"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Server off"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted sm:truncate",children:["Intercept ",a.name," requests via MITM proxy"]})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[K.length>0&&(0,d.jsxs)("div",{className:"mt-2 rounded-md border border-border bg-surface/50 px-2 py-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium tracking-wide text-text-main/80 mb-1",children:"Edit hosts file manually to add the following entries:"}),(0,d.jsx)("ul",{className:"list-none space-y-0.5 font-mono text-[10px] text-text-muted break-all",children:K.map(a=>(0,d.jsxs)("li",{children:["127.0.0.1 ",a]},a))})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,d.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through ZevaiRouter via MITM."]}),!i&&(0,d.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),a.defaultModels?.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-1.5 sm:grid-cols-[9rem_auto_1fr_auto] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsxs)("div",{className:"relative w-full min-w-0",children:[(0,d.jsx)("input",{type:"text",value:E[a.alias]||"",onChange:b=>N(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void M({...E,[c]:d})},placeholder:"provider/model-id",disabled:!i,className:`w-full min-w-0 pl-2 pr-7 py-2 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 sm:py-1.5 ${!i?"opacity-50 cursor-not-allowed":""}`}),E[a.alias]&&(0,d.jsx)("button",{onClick:()=>{N(a.alias,""),M({...E,[a.alias]:""})},className:"absolute right-1 top-1/2 -translate-y-1/2 p-0.5 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,d.jsx)("button",{onClick:()=>{J(a.alias),H(!0)},disabled:!o||!i,className:`rounded border px-2 py-2 text-xs transition-colors sm:py-1.5 ${o&&i?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"})]},a.alias))}),a.defaultModels?.length===0&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:items-start",children:[i?(0,d.jsxs)("button",{onClick:O,disabled:!h||s,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-2 text-xs font-medium text-red-500 transition-colors hover:bg-red-500/20 disabled:cursor-not-allowed disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,d.jsxs)("button",{onClick:O,disabled:!h||s,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-primary/30 bg-primary/10 px-4 py-2 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:cursor-not-allowed disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start DNS"]}),u&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs text-amber-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,d.jsx)("span",{children:u})]})]})]})]}),w&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:y,onChange:a=>z(a.target.value),onKeyDown:a=>{"Enter"!==a.key||s||Q()}}),C&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:C})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{x(!1),z(""),D(null)},disabled:s,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:Q,loading:s,children:"Confirm"})]})]})}),(0,d.jsx)(f.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{if(!I||a.isPlaceholder)return;let b={...E,[I]:a.value};F(b),M(b)},selectedModel:I?E[I]:null,activeProviders:n,modelAliases:p,title:`Select model for ${I}`})]})}var aB=c(2116),aC=c.n(aB);function aD({tool:a}){return(0,d.jsx)(aC(),{href:"/dashboard/mitm",className:"block",children:(0,d.jsx)(f.Zp,{padding:"sm",className:"overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-purple-500/10 text-purple-600 dark:text-purple-400 rounded-full",children:"MITM"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"chevron_right"})]})})})}},36811:a=>{a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},58962:(a,b,c)=>{c.d(b,{x6:()=>d.fetchJson,E2:()=>e,gs:()=>f});var d=c(86819);function e(a){if(!a)return null;let b=a.match(/\b([45]\d{2})\b/);return b?b[1]:"ERR"}function f(a){if(!a)return"";let b=Math.floor((Date.now()-new Date(a).getTime())/6e4);if(b<1)return"just now";if(b<60)return`${b}m ago`;let c=Math.floor(b/60);if(c<24)return`${c}h ago`;let d=Math.floor(c/24);return`${d}d ago`}},62911:(a,b,c)=>{c.d(b,{dM:()=>e,wn:()=>d});let d={antigravity:{id:"antigravity",name:"Antigravity",image:"/providers/antigravity.png",color:"#4285F4",description:"Google Antigravity IDE with MITM",configType:"mitm",mitmDomain:"daily-cloudcode-pa.googleapis.com",modelAliases:["gemini-4-argon-high","gemini-4-argon-medium","gemini-4-argon-low","gemini-4-carbon-high","gemini-4-carbon-medium","gemini-4-carbon-low","gemini-4-hydrogen-xhigh","gemini-4-hydrogen-high","gemini-4-hydrogen-medium","gemini-4-hydrogen-low","gemini-3.8-flash-high","gemini-3.8-flash-medium","gemini-3.8-flash-low","claude-sonnet-5-5","claude-sonnet-5-5-low","claude-sonnet-5-5-medium","claude-sonnet-5-5-high","claude-opus-5-5","claude-opus-5-5-low","claude-opus-5-5-medium","claude-opus-5-5-high","claude-sonnet-4-6","claude-opus-4-6-thinking","gpt-oss-120b-medium","gemini-3-flash"],defaultModels:[{id:"gemini-4-argon-high",name:"Gemini 4 Argon (High)",alias:"gemini-4-argon-high"},{id:"gemini-4-argon-medium",name:"Gemini 4 Argon (Medium)",alias:"gemini-4-argon-medium"},{id:"gemini-4-argon-low",name:"Gemini 4 Argon (Low)",alias:"gemini-4-argon-low"},{id:"gemini-4-carbon-high",name:"Gemini 4 Carbon (High)",alias:"gemini-4-carbon-high"},{id:"gemini-4-carbon-medium",name:"Gemini 4 Carbon (Medium)",alias:"gemini-4-carbon-medium"},{id:"gemini-4-carbon-low",name:"Gemini 4 Carbon (Low)",alias:"gemini-4-carbon-low"},{id:"gemini-4-hydrogen-xhigh",name:"Gemini 4 Hydrogen (xHigh)",alias:"gemini-4-hydrogen-xhigh"},{id:"gemini-4-hydrogen-high",name:"Gemini 4 Hydrogen (High)",alias:"gemini-4-hydrogen-high"},{id:"gemini-4-hydrogen-medium",name:"Gemini 4 Hydrogen (Medium)",alias:"gemini-4-hydrogen-medium"},{id:"gemini-4-hydrogen-low",name:"Gemini 4 Hydrogen (Low)",alias:"gemini-4-hydrogen-low"},{id:"gemini-3.8-flash-high",name:"Gemini 3.8 Flash (High)",alias:"gemini-3.8-flash-high"},{id:"gemini-3.8-flash-medium",name:"Gemini 3.8 Flash (Medium)",alias:"gemini-3.8-flash-medium"},{id:"gemini-3.8-flash-low",name:"Gemini 3.8 Flash (Low)",alias:"gemini-3.8-flash-low"},{id:"claude-sonnet-5-5",name:"Claude Sonnet 5.5 (Thinking)",alias:"claude-sonnet-5-5"},{id:"claude-sonnet-5-5-low",name:"Claude Sonnet 5.5 (Low)",alias:"claude-sonnet-5-5-low"},{id:"claude-sonnet-5-5-medium",name:"Claude Sonnet 5.5 (Medium)",alias:"claude-sonnet-5-5-medium"},{id:"claude-sonnet-5-5-high",name:"Claude Sonnet 5.5 (High)",alias:"claude-sonnet-5-5-high"},{id:"claude-opus-5-5",name:"Claude Opus 5.5 (Thinking)",alias:"claude-opus-5-5"},{id:"claude-opus-5-5-low",name:"Claude Opus 5.5 (Low)",alias:"claude-opus-5-5-low"},{id:"claude-opus-5-5-medium",name:"Claude Opus 5.5 (Medium)",alias:"claude-opus-5-5-medium"},{id:"claude-opus-5-5-high",name:"Claude Opus 5.5 (High)",alias:"claude-opus-5-5-high"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6 (Thinking)",alias:"claude-sonnet-4-6"},{id:"claude-opus-4-6-thinking",name:"Claude Opus 4.6 (Thinking)",alias:"claude-opus-4-6-thinking"},{id:"gpt-oss-120b-medium",name:"GPT-OSS 120B (Medium)",alias:"gpt-oss-120b-medium"},{id:"gemini-3-flash",name:"Gemini 3 Flash (Command)",alias:"gemini-3-flash"}]},kiro:{id:"kiro",name:"Kiro",image:"/providers/kiro.png",color:"#FF6B00",description:"Kiro IDE with MITM",configType:"mitm",mitmDomain:"q.us-east-1.amazonaws.com",defaultModels:[{id:"auto",name:"Auto (Kiro Agent)",alias:"auto"},{id:"claude-opus-5.5",name:"Claude Opus 5.5",alias:"claude-opus-5.5"},{id:"claude-sonnet-5.5",name:"Claude Sonnet 5.5",alias:"claude-sonnet-5.5"},{id:"claude-haiku-5.5",name:"Claude Haiku 5.5",alias:"claude-haiku-5.5"},{id:"gpt-5.6-sol",name:"GPT 5.6 Sol",alias:"gpt-5.6-sol"},{id:"gpt-5.6-terra",name:"GPT 5.6 Terra",alias:"gpt-5.6-terra"},{id:"gpt-5.6-luna",name:"GPT 5.6 Luna",alias:"gpt-5.6-luna"},{id:"grok-4.7",name:"Grok 4.7",alias:"grok-4.7"},{id:"kimi-k3",name:"Kimi K3",alias:"kimi-k3"},{id:"claude-opus-5",name:"Claude Opus 5",alias:"claude-opus-5"},{id:"claude-sonnet-5",name:"Claude Sonnet 5",alias:"claude-sonnet-5"},{id:"claude-opus-4.8",name:"Claude Opus 4.8",alias:"claude-opus-4.8"},{id:"claude-opus-4.7",name:"Claude Opus 4.7",alias:"claude-opus-4.7"},{id:"claude-opus-4.6",name:"Claude Opus 4.6",alias:"claude-opus-4.6"},{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",alias:"claude-sonnet-4.6"},{id:"claude-opus-4.5",name:"Claude Opus 4.5",alias:"claude-opus-4.5"},{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5",alias:"claude-sonnet-4.5"},{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",alias:"claude-haiku-4.5"},{id:"deepseek-3.2",name:"DeepSeek 3.2",alias:"deepseek-3.2"},{id:"minimax-m2.5",name:"MiniMax M2.5",alias:"minimax-m2.5"},{id:"minimax-m2.1",name:"MiniMax M2.1",alias:"minimax-m2.1"},{id:"glm-5",name:"GLM 5",alias:"glm-5"},{id:"qwen3-coder-next",name:"Qwen3 Coder Next",alias:"qwen3-coder-next"},{id:"simple-task",name:"Simple Task (background)",alias:"simple-task"}]}},e={claude:{id:"claude",name:"Claude Code",image:"/providers/claude.png",color:"#D97757",description:"Anthropic Claude Code CLI",configType:"env",envVars:{baseUrl:"ANTHROPIC_BASE_URL",model:"ANTHROPIC_MODEL",opusModel:"ANTHROPIC_DEFAULT_OPUS_MODEL",sonnetModel:"ANTHROPIC_DEFAULT_SONNET_MODEL",haikuModel:"ANTHROPIC_DEFAULT_HAIKU_MODEL"},modelAliases:["default","sonnet","opus","haiku","opusplan"],settingsFile:"~/.claude/settings.json",defaultModels:[{id:"opus",name:"Claude Opus",alias:"opus",envKey:"ANTHROPIC_DEFAULT_OPUS_MODEL",defaultValue:"cc/claude-opus-4-6"},{id:"sonnet",name:"Claude Sonnet",alias:"sonnet",envKey:"ANTHROPIC_DEFAULT_SONNET_MODEL",defaultValue:"cc/claude-sonnet-4-6"},{id:"haiku",name:"Claude Haiku",alias:"haiku",envKey:"ANTHROPIC_DEFAULT_HAIKU_MODEL",defaultValue:"cc/claude-haiku-4-5-20251001"}]},openclaw:{id:"openclaw",name:"Open Claw",image:"/providers/openclaw.png",color:"#FF6B35",description:"Open Claw AI Assistant",configType:"custom"},codex:{id:"codex",name:"OpenAI Codex CLI / App",image:"/providers/codex.png",color:"#10A37F",description:"OpenAI Codex CLI",configType:"custom"},copilot:{id:"copilot",name:"GitHub Copilot",image:"/providers/copilot.png",color:"#1F6FEB",description:"GitHub Copilot Chat in VS Code via an OpenAI-compatible model provider",configType:"guide",docsUrl:"https://code.visualstudio.com/docs/copilot/customization/language-models",guideSteps:[{step:1,title:"Open Manage Models",desc:"In VS Code, open Copilot Chat, click the model picker at the bottom, then choose 'Manage Models...' and add an 'OpenAI Compatible' provider."},{step:2,title:"Configure Server",desc:"Enter this Base URL, then paste a ZevaiRouter API key when VS Code asks for it:",value:"{{baseUrl}}",copyable:!0},{step:3,title:"Select Model in Copilot Chat",desc:"Open Copilot Chat, click the model picker at the bottom → 'Manage Models...' → check the ZevaiRouter models to use."}]},"grok-build":{id:"grok-build",name:"Grok Build",image:"/providers/grok-cli.png",color:"#111111",description:"xAI coding agent with ZevaiRouter main and subagent model routing",configType:"custom"},opencode:{id:"opencode",name:"OpenCode",image:"/providers/opencode.png",color:"#E87040",description:"OpenCode AI Terminal Assistant",configType:"custom"},cowork:{id:"cowork",name:"Claude Cowork",image:"/providers/claude.png",color:"#D97757",description:"Claude Desktop Cowork (third-party inference)",configType:"custom"},hermes:{id:"hermes",name:"Hermes Agent",image:"/providers/hermes.png",color:"#8B5CF6",description:"Nous Research self-improving AI agent",configType:"custom",roles:[{id:"delegation",label:"Delegation (subagents)"},{id:"vision",label:"Vision"},{id:"compression",label:"Compression"},{id:"title_generation",label:"Title Generation"},{id:"approval",label:"Approval"},{id:"skills_hub",label:"Skills Hub"},{id:"mcp",label:"MCP"},{id:"review",label:"Review (/review subagent)"},{id:"memory_query_rewrite",label:"Memory Query Rewrite"},{id:"background_review",label:"Background Review"},{id:"curator",label:"Curator"},{id:"monitor",label:"Monitor"},{id:"tts_audio_tags",label:"TTS Audio Tags"},{id:"triage_specifier",label:"Triage Specifier"},{id:"kanban_decomposer",label:"Kanban Decomposer"},{id:"profile_describer",label:"Profile Describer"},{id:"goal_judge",label:"Goal Judge"}]},droid:{id:"droid",name:"Factory Droid",image:"/providers/droid.png",color:"#00D4FF",description:"Factory Droid AI Assistant",configType:"custom"},cursor:{id:"cursor",name:"Cursor",image:"/providers/cursor.png",color:"#000000",description:"Cursor AI Code Editor",configType:"guide",requiresExternalUrl:!0,notes:[{type:"warning",text:"Requires Cursor Pro account to use this feature."},{type:"cloudCheck",text:"Cursor's custom OpenAI endpoint is called from Cursor's server, so a local base URL is not supported. Use Tunnel or Cloud Endpoint, or map models in the Cursor MITM tool instead."}],guideSteps:[{step:1,title:"Open Settings",desc:"Go to Settings → Models"},{step:2,title:"Enable OpenAI API",desc:'Enable "OpenAI API key" option'},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Add Custom Model",desc:'Click "View All Model" → "Add Custom Model"'},{step:6,title:"Select Model",type:"modelSelector"}]},cline:{id:"cline",name:"Cline",image:"/providers/cline.png",color:"#00D1B2",description:"Cline AI Coding Assistant",configType:"custom"},kilo:{id:"kilo",name:"Kilo Code",image:"/providers/kilocode.png",color:"#FF6B6B",description:"Kilo Code AI Assistant",configType:"custom"},roo:{id:"roo",name:"Roo",image:"/providers/roo.png",color:"#FF6B6B",description:"Roo AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Settings",desc:"Go to Roo Settings panel"},{step:2,title:"Select Provider",desc:"Choose API Provider → Ollama"},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Select Model",type:"modelSelector"}]},continue:{id:"continue",name:"Continue",image:"/providers/continue.png",color:"#7C3AED",description:"Continue AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Config",desc:"Open Continue configuration file"},{step:2,title:"API Key",type:"apiKeySelector"},{step:3,title:"Select Model",type:"modelSelector"},{step:4,title:"Add Model Config",desc:"Add the following configuration to your models array:"}],codeBlock:{language:"json",code:`{
49
+ timeoutMs: 20000`}])})]})}let ah="/api/cli-tools/openbot-settings";function ai({tool:a,isExpanded:b,onToggle:c,initialStatus:h}){let[i,j]=(0,e.useState)(h||null),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(()=>new Set),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),w=(0,e.useCallback)(async()=>{l(!0);try{let a=await fetch(`${ah}?models=1`,{cache:"no-store"});j(await a.json())}catch(a){j({installed:!1,error:a.message})}finally{l(!1)}},[]),x=(0,e.useMemo)(()=>i?.endpoints||[],[i]),y=x.find(a=>a.id===m)||null,z=(0,e.useMemo)(()=>new Set(y?.agentModelIds||[]),[y]),A=i?.maxModels||64,B=(0,e.useMemo)(()=>i?.routerModels||[],[i]),C=(0,e.useMemo)(()=>{let a=q.trim().toLowerCase(),b=new Map;for(let c of B){if(a&&!c.id.toLowerCase().includes(a))continue;let d=function(a){let b=a.indexOf("/");return b>0?a.slice(0,b):a}(c.id);b.has(d)||b.set(d,[]),b.get(d).push(c)}return[...b.entries()]},[B,q]),D=(0,e.useMemo)(()=>new Set(B.map(a=>a.id)),[B]),E=(y?.modelIds||[]).filter(a=>!D.has(a)&&!z.has(a)),F=async()=>{if(y&&!s){t(!0),v(null);try{let a=await fetch(ah,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerId:y.id,models:[...o].filter(a=>D.has(a)||z.has(a))})}),b=await a.json();if(!a.ok)throw Error(b.error||"Sync failed");let c=[`${b.modelCount} models saved to "${y.name}"`];b.added.length&&c.push(`${b.added.length} added`),b.removed.length&&c.push(`${b.removed.length} removed`),b.rejected.length&&c.push(`${b.rejected.length} skipped`),v({type:"success",text:`${c.join(", ")}. Open OpenBot to use them.`}),await w()}catch(a){v({type:"error",text:a.message})}finally{t(!1)}}},G=i?.installed?i.hasZevai?"configured":"not_configured":null;return(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:a.image?(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:a.color},children:a.icon||"smart_toy"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===G&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===G&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[k&&!i?.routerModels&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Reading OpenBot endpoints and router models..."})]}),i&&!i.installed&&(0,d.jsxs)("div",{className:"flex items-start gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,d.jsx)("p",{className:"text-sm text-text-muted",children:i.message||i.error||"OpenBot not detected on this computer."})]}),i?.installed&&(0,d.jsxs)(d.Fragment,{children:[a.notes?.map(a=>(0,d.jsxs)("div",{className:`flex items-start gap-2 p-2 rounded text-xs ${"warning"===a.type?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"bg-blue-500/10 text-blue-600 dark:text-blue-400"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"warning"===a.type?"warning":"info"}),(0,d.jsx)("span",{children:a.text})]},a.text)),i.error&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"error"}),(0,d.jsx)("span",{children:i.error})]}),!i.error&&0===x.length&&(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["OpenBot has no endpoint pointing at this router yet. In OpenBot, add a custom endpoint with base URL"," ",(0,d.jsxs)("code",{className:"font-mono",children:["http://127.0.0.1:","1997","/v1"]})," ","and a ZevaiRouter API key, then come back here to pick its models."]}),y&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[x.length>1&&(0,d.jsx)("select",{value:m,onChange:a=>n(a.target.value),className:"rounded-lg border border-border bg-surface px-2 py-1.5 text-sm",children:x.map(a=>(0,d.jsxs)("option",{value:a.id,children:[a.name," (",a.id,")"]},a.id))}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["Endpoint ",(0,d.jsx)("strong",{className:"text-text-main",children:y.name})," \xb7 ",y.baseUrl,!y.hasApiKey&&" \xb7 no API key saved in OpenBot"]}),(0,d.jsxs)("span",{className:`ml-auto text-xs font-semibold ${o.size>=A?"text-amber-600":"text-text-main"}`,children:[o.size," / ",A," selected"]})]}),i.running&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded text-xs bg-amber-500/10 text-amber-700 dark:text-amber-300",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:"block"}),(0,d.jsx)("span",{children:"OpenBot is open. Quit it (Cmd+Q) before syncing, then press Refresh."})]}),E.length>0&&(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:[E.length," saved model",1===E.length?" is":"s are"," no longer offered by the router and will be removed: ",E.join(", ")]}),(0,d.jsx)("input",{type:"search",value:q,onChange:a=>r(a.target.value),placeholder:"Filter models",className:"rounded-lg border border-border bg-surface px-3 py-1.5 text-sm"}),(0,d.jsx)("div",{className:"max-h-[28rem] overflow-y-auto rounded-xl border border-border custom-scrollbar",children:C.map(([a,b])=>{let c=b.filter(a=>a.openbotCompatible&&!z.has(a.id)),e=c.length>0&&c.every(a=>o.has(a.id));return(0,d.jsxs)("div",{className:"border-b border-border-subtle last:border-b-0",children:[(0,d.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between bg-surface-2 px-3 py-1.5",children:[(0,d.jsxs)("span",{className:"font-mono text-xs font-semibold text-text-main",children:[a,"/ (",b.length,")"]}),c.length>0&&(0,d.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>{var a;return a=!e,void p(c=>{let d=new Set(c);for(let c of b)if(!(!c.openbotCompatible||z.has(c.id)))if(a){if(d.size>=A)break;d.add(c.id)}else d.delete(c.id);return d})},children:e?"Clear":"Select all"})]}),b.map(a=>{let b=z.has(a.id),c=!a.openbotCompatible||b||!o.has(a.id)&&o.size>=A;return(0,d.jsxs)("label",{className:`flex items-center gap-3 px-3 py-1.5 text-sm ${c&&!b?"opacity-50":"cursor-pointer hover:bg-surface-2"}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:o.has(a.id)||b,disabled:c,onChange:()=>{var b;return b=a.id,void(!z.has(b)&&p(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.size<A&&c.add(b),c}))},className:"accent-primary"}),(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-xs",children:a.id}),b&&(0,d.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-medium text-blue-600 dark:text-blue-400",children:"Used by an agent"}),!a.openbotCompatible&&(0,d.jsx)("span",{className:"rounded-full bg-zinc-500/10 px-2 py-0.5 text-[10px] font-medium text-text-muted",title:"OpenBot rejects model ids with characters such as @",children:"Not supported by OpenBot"}),a.context_length&&(0,d.jsxs)("span",{className:"text-[10px] text-text-muted",children:[Math.round(a.context_length/1e3),"K"]})]},a.id)})]},a)})})]}),u&&(0,d.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===u.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===u.type?"check_circle":"error"}),(0,d.jsx)("span",{children:u.text})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:F,disabled:!y||i.running||0===o.size,loading:s,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"sync"}),"Sync to OpenBot"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:w,loading:k,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"refresh"}),"Refresh"]}),i.configPath&&(0,d.jsx)("span",{className:"truncate text-[11px] text-text-muted",children:i.configPath})]})]})]})]})}let aj="/api/cli-tools/dsh-settings",ak=`${aj}?models=1`;function al({type:a,children:b}){let c={info:["info","bg-blue-500/10 text-blue-600 dark:text-blue-400"],warning:["warning","bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"],error:["error","bg-red-500/10 text-red-600"],success:["check_circle","bg-green-500/10 text-green-600"]},[e,f]=c[a]||c.info;return(0,d.jsxs)("div",{className:`flex items-start gap-2 p-2 rounded text-xs ${f}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5",children:e}),(0,d.jsx)("span",{className:"min-w-0 break-words",children:b})]})}function am({label:a,children:b}){return(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-1.5 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:a}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),b]})}function an({tool:a,isExpanded:b,onToggle:c,apiKeys:h,cloudEnabled:i,initialStatus:j,tunnelEnabled:k,tunnelPublicUrl:n,tailscaleEnabled:p,tailscaleUrl:q}){let r,[s,t]=(0,e.useState)(j||null),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(null),[y,z]=(0,e.useState)(null),[A,B]=(0,e.useState)(""),[C,D]=(0,e.useState)(""),[E,F]=(0,e.useState)(""),[G,H]=(0,e.useState)(""),I=async()=>{v(!0);try{let a=await fetch(ak);t(await a.json())}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},J=(r=C||"http://127.0.0.1:1997").endsWith("/v1")?r:`${r}/v1`,K=A?.trim()||h?.[0]?.key||(i?null:"sk_zevai"),L=s?.models||[],M=s?.defaultModel,N=L.find(a=>a.id===E),O=s?.installed?s.hasZevai?o(s.baseUrl,{tunnelPublicUrl:n,tailscaleUrl:q})?"configured":"other":"not_configured":null,P=async(a,b,c)=>{x(a),z(null);try{let a=await fetch(aj,{method:b,headers:{"Content-Type":"application/json"},...c?{body:JSON.stringify(c)}:{}}),d=await a.json();if(!a.ok)return z({type:"error",text:d.error||"Request failed"}),null;return await I(),d}catch(a){return z({type:"error",text:a.message}),null}finally{x(null)}},Q=async()=>{let a=await P("sync","POST",{baseUrl:J,apiKey:K});a&&z({type:"success",text:`Synced ${a.modelCount} models (${a.reasoningModels} with effort levels).`})},R=async()=>{await P("default","PATCH",{model:E,reasoningEffort:G||null})&&z({type:"success",text:`Default model is now zevai / ${E}.`})},S=async()=>{await P("remove","DELETE")&&z({type:"success",text:"Removed the zevai provider from DeepSeek Harness."})};return(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px"})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===O&&(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-3",children:[u&&!s?.installed&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{children:"Looking for DeepSeek Harness..."})]}),!u&&s&&!s.installed&&(0,d.jsx)(al,{type:"warning",children:s.message||"DeepSeek Harness not detected. Install the app and open it once."}),s?.installed&&(0,d.jsxs)(d.Fragment,{children:[a.notes?.map(a=>(0,d.jsx)(al,{type:a.type,children:a.text},a.text)),s.error&&(0,d.jsx)(al,{type:"error",children:s.error}),(0,d.jsx)(am,{label:"Select Endpoint",children:(0,d.jsx)(l,{value:C||J,onChange:D,requiresExternalUrl:a.requiresExternalUrl,tunnelEnabled:k,tunnelPublicUrl:n,tailscaleEnabled:p,tailscaleUrl:q})}),(0,d.jsx)(am,{label:"API Key",children:(0,d.jsx)(m,{value:A,onChange:B,apiKeys:h,cloudEnabled:i})}),s.hasZevai&&(0,d.jsx)(am,{label:"Current",children:(0,d.jsxs)("span",{className:"min-w-0 truncate rounded bg-surface/40 px-2 py-1.5 text-xs text-text-muted",children:[s.baseUrl," \xb7 ",s.modelCount," models",s.hasKeyRef?"":" \xb7 key reference missing"]})}),(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,d.jsxs)(f.$n,{variant:"primary",size:"sm",onClick:Q,disabled:!K||!!s.error,loading:"sync"===w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"sync"}),"Sync models"]}),(0,d.jsxs)(f.$n,{variant:"outline",size:"sm",onClick:S,disabled:!s.hasZevai,loading:"remove"===w,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"delete"}),"Remove"]})]}),(0,d.jsxs)("div",{className:"mt-2 flex flex-col gap-2 border-t border-border pt-3",children:[(0,d.jsx)("p",{className:"text-xs font-semibold text-text-main",children:"Default model"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:M?.provider?`Now: ${M.provider} / ${M.model||"?"}${M.reasoningEffort?` (${M.reasoningEffort})`:""}`:"Now: DeepSeek Harness built-in default"}),M?.broken&&(0,d.jsxs)(al,{type:"warning",children:[M.reason,". New chats may fail until you pick a model below."]}),L.length>0?(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem_auto] sm:items-center",children:[(0,d.jsxs)("select",{className:"min-w-0 rounded border border-border bg-surface px-2 py-1.5 text-xs",value:E,onChange:a=>{let b,c=L.find(b=>b.id===a.target.value);F(a.target.value),H(c?(b=c.efforts).includes("high")?"high":b[b.length-1]||"":"")},children:[(0,d.jsx)("option",{value:"",children:"Choose a zevai model"}),L.map(a=>(0,d.jsx)("option",{value:a.id,children:a.id},a.id))]}),(0,d.jsxs)("select",{className:"rounded border border-border bg-surface px-2 py-1.5 text-xs disabled:opacity-50",value:G,onChange:a=>H(a.target.value),disabled:!N?.efforts.length,children:[(0,d.jsx)("option",{value:"",children:"No effort"}),N?.efforts.map(a=>(0,d.jsx)("option",{value:a,children:a},a))]}),(0,d.jsx)(f.$n,{variant:"secondary",size:"sm",onClick:R,disabled:!E,loading:"default"===w,children:"Set default"})]}):(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Sync models first to pick a zevai default."})]}),y&&(0,d.jsx)(al,{type:y.type,children:y.text})]})]})]})}let ao=[2e5,4e5,6e5,1e6],ap=[16e3,32e3,64e3,128e3],aq={contextWindow:2e5,maxTokens:64e3};function ar(a,b){let c=Number(a);return Number.isFinite(c)&&c>0&&c<=b?c:null}function as(a,b,c,d){if(null!=a&&""!==a){let b=ar(a,d);if(null!==b)return b}return ar(b,d)??c}function at(a){let b=Number(a);return Number.isFinite(b)?b>=1e6?`${+(b/1e6).toFixed(2)}M`:`${Math.round(b/1e3)}k`:String(a)}function au(a,b){return a.includes(b)?a:[...a,b].sort((a,b)=>a-b)}let av={pi:"npm install -g --ignore-scripts @earendil-works/pi-coding-agent",crush:"brew install charmbracelet/tap/crush",forge:"cargo install forgecode",smelt:"cargo install smelt",codewhale:"cargo install codewhale"};function aw({tool:a,apiKeys:b,activeProviders:c=[],cloudEnabled:h,initialStatus:i,tunnelPublicUrl:j,tailscaleUrl:k}){let n=`/api/cli-tools/${a.id}-settings`,[p,q]=(0,e.useState)(i||null),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)(""),[D,E]=(0,e.useState)([]),[F,G]=(0,e.useState)({}),[H,I]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[L,M]=(0,e.useState)(""),N=()=>{let a=(L||"http://127.0.0.1:1997").replace(/\/+$/,"");return a.endsWith("/v1")?a:`${a}/v1`},O=async()=>{s(!0);try{let b,c=await fetch(n),d=await c.json();q(d);let e=(b=d?.config,b?.model||b?.openai?.model||b?.providers?.zevai?.models?.[0]?.id||b?.providers?.zevai?.models?.[0]||"");if(e&&!B&&C("string"==typeof e?e:e.id),"pi"===a.id){let a=function(a){let b=a?.providers?.zevai?.models;if(!Array.isArray(b)||0===b.length)return null;let c={};return{ids:b.map(a=>{let b="string"==typeof a?a:a?.id;return b&&"string"!=typeof a&&(c[b]={contextWindow:as(a.contextWindow,void 0,aq.contextWindow,2e6),maxTokens:as(a.maxTokens,void 0,aq.maxTokens,2e5)}),b}).filter(Boolean),caps:c}}(d?.config);a&&(E(a.ids),G(a.caps))}}catch(a){q({installed:!1,error:a.message})}finally{s(!1)}},P=p?.installed?p.hasZevai?o(p.baseUrl,{tunnelPublicUrl:j,tailscaleUrl:k})?"configured":"other":"not_configured":null,Q=z?.trim()||(b?.length>0?b[0].key:"")||(h?"":"sk_zevai"),R=async()=>{u(!0),y(null);try{let b={baseUrl:N(),apiKey:Q,model:B||"provider/model-id"};if("pi"===a.id){let a=D.length>0?D:[b.model];b.models=a.map(a=>({id:a,name:a,...aq,...F[a]}))}let c=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),d=await c.json();y({type:c.ok?"success":"error",text:d.message||d.error||"Failed to apply settings"}),c.ok&&await O()}catch(a){y({type:"error",text:a.message})}finally{u(!1)}},S=async()=>{w(!0),y(null);try{let a=await fetch(n,{method:"DELETE"}),b=await a.json();y({type:a.ok?"success":"error",text:b.message||b.error||"Failed to reset"}),a.ok&&await O()}catch(a){y({type:"error",text:a.message})}finally{w(!1)}},T=a=>{E(a),G(b=>{let c={};for(let d of a)c[d]=b[d]||{...aq};return c})},U=(a,b,c)=>{G(d=>({...d,[a]:{...aq,...d[a],[b]:Number(c)}}))};return(0,d.jsxs)(f.Zp,{padding:"sm",className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[a.image?(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg"}):(0,d.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:a.color},children:a.icon||"terminal"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("h2",{className:"font-medium",children:a.name}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.description})]}),(0,d.jsx)("span",{className:`px-2 py-0.5 text-[10px] rounded-full ${"configured"===P?"bg-green-500/10 text-green-600":"other"===P?"bg-blue-500/10 text-blue-600":p?.installed?"bg-yellow-500/10 text-yellow-600":"bg-gray-500/10 text-gray-500"}`,children:r?"Checking":"configured"===P?"Connected":p?.installed?"Not configured":"Not installed"})]}),a.notes?.map(a=>(0,d.jsx)("p",{className:"text-xs text-text-muted",children:a.text},a.text)),!p?.installed&&(0,d.jsx)("pre",{className:"overflow-x-auto rounded-lg bg-bg-secondary p-3 text-xs",children:av[a.id]||`Install ${a.name}`}),(0,d.jsx)(l,{value:L,onChange:M,tunnelEnabled:!!j,tunnelPublicUrl:j,tailscaleEnabled:!!k,tailscaleUrl:k,cloudEnabled:h}),(0,d.jsx)(m,{value:z,onChange:A,apiKeys:b,cloudEnabled:h}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,d.jsx)("input",{value:"pi"===a.id?D.join(", "):B,onChange:b=>{"pi"===a.id?T(b.target.value.split(",").map(a=>a.trim()).filter(Boolean)):C(b.target.value)},placeholder:"provider/model-id",className:"flex-1 rounded-lg border border-border bg-bg-secondary px-3 py-2 text-sm"}),(0,d.jsx)(f.$n,{variant:"secondary",onClick:()=>I(!0),disabled:0===c.length,children:"Select model"})]}),"pi"===a.id&&D.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-1.5",children:D.map(a=>{let b={...aq,...F[a]};return(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 text-xs",children:[(0,d.jsx)("span",{className:"min-w-0 flex-1 truncate",children:a}),(0,d.jsx)("select",{value:b.contextWindow,onChange:b=>U(a,"contextWindow",b.target.value),title:"Context window",className:"rounded border border-border bg-bg-secondary px-1 py-0.5",children:au(ao,b.contextWindow).map(a=>(0,d.jsxs)("option",{value:a,children:[at(a)," ctx"]},a))}),(0,d.jsx)("select",{value:b.maxTokens,onChange:b=>U(a,"maxTokens",b.target.value),title:"Max output tokens",className:"rounded border border-border bg-bg-secondary px-1 py-0.5",children:au(ap,b.maxTokens).map(a=>(0,d.jsxs)("option",{value:a,children:[at(a)," out"]},a))})]},a)})}),x&&(0,d.jsx)("p",{className:`text-sm ${"error"===x.type?"text-red-500":"text-green-600"}`,children:x.text}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(f.$n,{onClick:R,disabled:t||!Q,children:t?"Applying":"Apply"}),(0,d.jsx)(f.$n,{variant:"secondary",onClick:S,disabled:v,children:"Reset"}),(0,d.jsx)(f.$n,{variant:"ghost",onClick:()=>K(!0),children:"Manual"})]}),(0,d.jsx)(f.rq,{isOpen:H,onClose:()=>I(!1),onSelect:b=>{"pi"===a.id?T(D.includes(b.value)?D:[...D,b.value]):C(b.value),I(!1)},activeProviders:c,title:`Select model for ${a.name}`}),(0,d.jsx)(f.uR,{isOpen:J,onClose:()=>K(!1),title:`${a.name} manual config`,configs:[{filename:p?.configPath||`${a.name} config`,content:JSON.stringify({baseUrl:N(),apiKey:Q||"<API_KEY>",model:B||"provider/model-id"},null,2)}]})]})}let ax="http://localhost:1997";function ay({apiKeys:a,cloudEnabled:b,onStatusChange:c}){let[g,h]=(0,e.useState)(null),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(""),[o,p]=(0,e.useState)(()=>a?.[0]?.key||""),[q,r]=(0,e.useState)(null),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(ax),[y,z]=(0,e.useState)(null),A=g?.isWin===!0,B=A||g?.hasCachedPassword||g?.needsSudoPassword===!1,C=g?.isAdmin!==!1;!C&&(A||g?.hasCachedPassword||g?.needsSudoPassword);let D=(0,e.useCallback)(async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();h(b),b.mitmRouterBaseUrl&&x(b.mitmRouterBaseUrl),c?.(b)}}catch{h({running:!1,certExists:!1,dnsStatus:{}})}},[c]),E=a=>{v(null),g&&(B?F(a,""):(r(a),l(!0),t(null)))},F=async(c,d,e=!1)=>{j(!0),v(null);try{let f;if("trust-cert"===c)f=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:d})});else if("start"===c){let c=o?.trim()||(a?.length>0?a[0].key:null)||(b?null:"sk_zevai");f=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:c,sudoPassword:d,mitmRouterBaseUrl:w.trim()||ax,forceKillPort443:e})})}else f=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:d})});if(!f.ok){let a=await f.json().catch(()=>({}));if("PORT_443_BUSY"===a.code&&a.portOwner){l(!1),z({owner:a.portOwner,password:d});return}v(a.error||`Failed to ${c} MITM server`);return}l(!1),n(""),z(null),await D()}catch(a){v(a.message||"Network error")}finally{j(!1),r(null)}},G=()=>{m.trim()?F(q,m):t("Sudo password is required")},H=g?.running;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Zp,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,d.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),H?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Running"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Stopped"})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:g?.certExists},{label:"Trusted",ok:g?.certTrusted},{label:"Server",ok:H}].map(({label:a,ok:b})=>(0,d.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,d.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from ZevaiRouter"]}),(0,d.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,d.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Antigravity/Copilot IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → ZevaiRouter → response to Antigravity/Copilot"]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"grid gap-1 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:"ZevaiRouter Base URL"}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",value:w,onChange:a=>x(a.target.value),placeholder:ax,disabled:H,className:"flex-1 min-w-0 px-2 py-1.5 bg-surface rounded border border-border text-xs text-text-main focus:outline-none focus:ring-1 focus:ring-primary/50 disabled:opacity-50"})]}),!H&&(0,d.jsxs)("div",{className:"grid gap-1 sm:grid-cols-[8rem_auto_1fr] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right sm:text-sm",children:"API Key"}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsx)("input",{type:"text",list:"mitm-api-keys",value:o,onChange:a=>p(a.target.value),placeholder:b?"Enter or pick API key":"sk_zevai (default)",className:"flex-1 min-w-0 px-2 py-1.5 bg-surface rounded border border-border text-xs text-text-main focus:outline-none focus:ring-1 focus:ring-primary/50"}),a?.length>0&&(0,d.jsx)("datalist",{id:"mitm-api-keys",children:a.map(a=>(0,d.jsx)("option",{value:a.key,children:a.name||a.key},a.id))})]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center","data-i18n-skip":"true",children:[g?.certExists&&!g?.certTrusted&&(0,d.jsxs)("button",{onClick:()=>E("trust-cert"),disabled:i,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-2 text-xs font-medium text-yellow-600 transition-colors hover:bg-yellow-500/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),H?(0,d.jsxs)("button",{onClick:()=>E("stop"),disabled:i,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-2 text-xs font-medium text-red-500 transition-colors hover:bg-red-500/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}):(0,d.jsxs)("button",{onClick:()=>E("start"),disabled:i||!g||A&&!C,title:A&&!C?"Administrator required":void 0,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-primary/30 bg-primary/10 px-4 py-2 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),H&&(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),u&&(0,d.jsxs)("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 dark:text-red-400 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px] mt-0.5 shrink-0",children:"error"}),(0,d.jsx)("span",{children:u})]}),A&&!C&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,d.jsx)("span",{children:"Administrator required — restart ZevaiRouter as Administrator to use MITM"})]})]})}),k&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:m,onChange:a=>n(a.target.value),onKeyDown:a=>{"Enter"!==a.key||i||G()}}),s&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:s})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{l(!1),n(""),t(null)},disabled:i,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:G,loading:i,children:"Confirm"})]})]})}),y&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Port 443 Already In Use"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsxs)("div",{className:"flex flex-col gap-1 text-xs text-text-muted",children:[(0,d.jsx)("p",{children:"Port 443 is currently used by another process:"}),(0,d.jsxs)("p",{className:"font-mono text-text-main","data-i18n-skip":"true",children:[y.owner.name," (PID ",y.owner.pid,")"]}),(0,d.jsx)("p",{children:"Kill this process to start MITM Server?"})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{z(null),j(!1)},disabled:i,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:()=>{F("start",y?.password||"",!0)},loading:i,children:"Kill & Start"})]})]})})]})}var az=c(36811);function aA({tool:a,isExpanded:b,onToggle:c,serverRunning:h,dnsActive:i,hasCachedPassword:j,needsSudoPassword:k,isWin:l,apiKeys:m,activeProviders:n,hasActiveProviders:o,modelAliases:p={},cloudEnabled:q,onDnsChange:r}){let[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)(null),[C,D]=(0,e.useState)(null),[E,F]=(0,e.useState)({}),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(null),K=az.TOOL_HOSTS[a.id]??[],L=l||j||!1===k,M=(0,e.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),N=(a,b)=>{F(c=>({...c,[a]:b}))},O=()=>{if(!h)return;let a=i?"disable":"enable";L?P(a,""):(B(a),x(!0),D(null))},P=async(b,c)=>{t(!0),v(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b&&v(`Restart ${a.name} to apply changes`),x(!1),z(""),r?.(e)}catch{}finally{t(!1),B(null)}},Q=()=>{y.trim()?P(A,y):D("Sudo password is required")};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(f.Zp,{padding:"xs",className:"overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3 hover:cursor-pointer sm:items-center",onClick:c,children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),h?i?(0,d.jsx)(f.Ex,{variant:"success",size:"sm",children:"Active"}):(0,d.jsx)(f.Ex,{variant:"warning",size:"sm",children:"DNS off"}):(0,d.jsx)(f.Ex,{variant:"default",size:"sm",children:"Server off"})]}),(0,d.jsxs)("p",{className:"text-xs text-text-muted sm:truncate",children:["Intercept ",a.name," requests via MITM proxy"]})]})]}),(0,d.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,d.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[K.length>0&&(0,d.jsxs)("div",{className:"mt-2 rounded-md border border-border bg-surface/50 px-2 py-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium tracking-wide text-text-main/80 mb-1",children:"Edit hosts file manually to add the following entries:"}),(0,d.jsx)("ul",{className:"list-none space-y-0.5 font-mono text-[10px] text-text-muted break-all",children:K.map(a=>(0,d.jsxs)("li",{children:["127.0.0.1 ",a]},a))})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,d.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through ZevaiRouter via MITM."]}),!i&&(0,d.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),a.defaultModels?.length>0&&(0,d.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,d.jsxs)("div",{className:"grid grid-cols-1 gap-1.5 sm:grid-cols-[9rem_auto_1fr_auto] sm:items-center sm:gap-2",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-main sm:text-right",children:a.name}),(0,d.jsx)("span",{className:"material-symbols-outlined hidden text-text-muted text-[14px] sm:inline",children:"arrow_forward"}),(0,d.jsxs)("div",{className:"relative w-full min-w-0",children:[(0,d.jsx)("input",{type:"text",value:E[a.alias]||"",onChange:b=>N(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void M({...E,[c]:d})},placeholder:"provider/model-id",disabled:!i,className:`w-full min-w-0 pl-2 pr-7 py-2 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 sm:py-1.5 ${!i?"opacity-50 cursor-not-allowed":""}`}),E[a.alias]&&(0,d.jsx)("button",{onClick:()=>{N(a.alias,""),M({...E,[a.alias]:""})},className:"absolute right-1 top-1/2 -translate-y-1/2 p-0.5 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),(0,d.jsx)("button",{onClick:()=>{J(a.alias),H(!0)},disabled:!o||!i,className:`rounded border px-2 py-2 text-xs transition-colors sm:py-1.5 ${o&&i?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"})]},a.alias))}),a.defaultModels?.length===0&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:items-start",children:[i?(0,d.jsxs)("button",{onClick:O,disabled:!h||s,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-2 text-xs font-medium text-red-500 transition-colors hover:bg-red-500/20 disabled:cursor-not-allowed disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,d.jsxs)("button",{onClick:O,disabled:!h||s,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-primary/30 bg-primary/10 px-4 py-2 text-xs font-medium text-primary transition-colors hover:bg-primary/20 disabled:cursor-not-allowed disabled:opacity-50 sm:w-auto sm:py-1.5",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start DNS"]}),u&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs text-amber-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,d.jsx)("span",{children:u})]})]})]})]}),w&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,d.jsxs)("div",{className:"mx-4 flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-surface p-5 shadow-xl sm:p-6",children:[(0,d.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,d.jsx)(f.pd,{type:"password",placeholder:"Enter sudo password",value:y,onChange:a=>z(a.target.value),onKeyDown:a=>{"Enter"!==a.key||s||Q()}}),C&&(0,d.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,d.jsx)("span",{children:C})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,d.jsx)(f.$n,{variant:"ghost",size:"sm",onClick:()=>{x(!1),z(""),D(null)},disabled:s,children:"Cancel"}),(0,d.jsx)(f.$n,{variant:"primary",size:"sm",onClick:Q,loading:s,children:"Confirm"})]})]})}),(0,d.jsx)(f.rq,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{if(!I||a.isPlaceholder)return;let b={...E,[I]:a.value};F(b),M(b)},selectedModel:I?E[I]:null,activeProviders:n,modelAliases:p,title:`Select model for ${I}`})]})}var aB=c(2116),aC=c.n(aB);function aD({tool:a}){return(0,d.jsx)(aC(),{href:"/dashboard/mitm",className:"block",children:(0,d.jsx)(f.Zp,{padding:"sm",className:"overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,d.jsx)(g.A,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-medium text-sm",children:a.name}),(0,d.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-purple-500/10 text-purple-600 dark:text-purple-400 rounded-full",children:"MITM"})]}),(0,d.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[20px]",children:"chevron_right"})]})})})}},36811:a=>{a.exports={TOOL_HOSTS:{antigravity:["daily-cloudcode-pa.googleapis.com","cloudcode-pa.googleapis.com"],copilot:["api.individual.githubcopilot.com"],kiro:["q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"],cursor:["api2.cursor.sh"]}}},58962:(a,b,c)=>{c.d(b,{x6:()=>d.fetchJson,E2:()=>e,gs:()=>f});var d=c(86819);function e(a){if(!a)return null;let b=a.match(/\b([45]\d{2})\b/);return b?b[1]:"ERR"}function f(a){if(!a)return"";let b=Math.floor((Date.now()-new Date(a).getTime())/6e4);if(b<1)return"just now";if(b<60)return`${b}m ago`;let c=Math.floor(b/60);if(c<24)return`${c}h ago`;let d=Math.floor(c/24);return`${d}d ago`}},62911:(a,b,c)=>{c.d(b,{dM:()=>e,wn:()=>d});let d={antigravity:{id:"antigravity",name:"Antigravity",image:"/providers/antigravity.png",color:"#4285F4",description:"Google Antigravity IDE with MITM",configType:"mitm",mitmDomain:"daily-cloudcode-pa.googleapis.com",modelAliases:["gemini-4-argon-high","gemini-4-argon-medium","gemini-4-argon-low","gemini-4-carbon-high","gemini-4-carbon-medium","gemini-4-carbon-low","gemini-4-hydrogen-xhigh","gemini-4-hydrogen-high","gemini-4-hydrogen-medium","gemini-4-hydrogen-low","gemini-4-neon-xhigh","gemini-4-neon-high","gemini-4-neon-medium","gemini-4-neon-low","gemini-3.8-flash-high","gemini-3.8-flash-medium","gemini-3.8-flash-low","claude-sonnet-5-5","claude-sonnet-5-5-low","claude-sonnet-5-5-medium","claude-sonnet-5-5-high","claude-opus-5-5","claude-opus-5-5-low","claude-opus-5-5-medium","claude-opus-5-5-high","claude-sonnet-4-6","claude-opus-4-6-thinking","gpt-oss-120b-medium","gemini-3-flash"],defaultModels:[{id:"gemini-4-argon-high",name:"Gemini 4 Argon (High)",alias:"gemini-4-argon-high"},{id:"gemini-4-argon-medium",name:"Gemini 4 Argon (Medium)",alias:"gemini-4-argon-medium"},{id:"gemini-4-argon-low",name:"Gemini 4 Argon (Low)",alias:"gemini-4-argon-low"},{id:"gemini-4-carbon-high",name:"Gemini 4 Carbon (High)",alias:"gemini-4-carbon-high"},{id:"gemini-4-carbon-medium",name:"Gemini 4 Carbon (Medium)",alias:"gemini-4-carbon-medium"},{id:"gemini-4-carbon-low",name:"Gemini 4 Carbon (Low)",alias:"gemini-4-carbon-low"},{id:"gemini-4-hydrogen-xhigh",name:"Gemini 4 Hydrogen (xHigh)",alias:"gemini-4-hydrogen-xhigh"},{id:"gemini-4-hydrogen-high",name:"Gemini 4 Hydrogen (High)",alias:"gemini-4-hydrogen-high"},{id:"gemini-4-hydrogen-medium",name:"Gemini 4 Hydrogen (Medium)",alias:"gemini-4-hydrogen-medium"},{id:"gemini-4-hydrogen-low",name:"Gemini 4 Hydrogen (Low)",alias:"gemini-4-hydrogen-low"},{id:"gemini-4-neon-xhigh",name:"Gemini 4 Neon (xHigh)",alias:"gemini-4-neon-xhigh"},{id:"gemini-4-neon-high",name:"Gemini 4 Neon (High)",alias:"gemini-4-neon-high"},{id:"gemini-4-neon-medium",name:"Gemini 4 Neon (Medium)",alias:"gemini-4-neon-medium"},{id:"gemini-4-neon-low",name:"Gemini 4 Neon (Low)",alias:"gemini-4-neon-low"},{id:"gemini-3.8-flash-high",name:"Gemini 3.8 Flash (High)",alias:"gemini-3.8-flash-high"},{id:"gemini-3.8-flash-medium",name:"Gemini 3.8 Flash (Medium)",alias:"gemini-3.8-flash-medium"},{id:"gemini-3.8-flash-low",name:"Gemini 3.8 Flash (Low)",alias:"gemini-3.8-flash-low"},{id:"claude-sonnet-5-5",name:"Claude Sonnet 5.5 (Thinking)",alias:"claude-sonnet-5-5"},{id:"claude-sonnet-5-5-low",name:"Claude Sonnet 5.5 (Low)",alias:"claude-sonnet-5-5-low"},{id:"claude-sonnet-5-5-medium",name:"Claude Sonnet 5.5 (Medium)",alias:"claude-sonnet-5-5-medium"},{id:"claude-sonnet-5-5-high",name:"Claude Sonnet 5.5 (High)",alias:"claude-sonnet-5-5-high"},{id:"claude-opus-5-5",name:"Claude Opus 5.5 (Thinking)",alias:"claude-opus-5-5"},{id:"claude-opus-5-5-low",name:"Claude Opus 5.5 (Low)",alias:"claude-opus-5-5-low"},{id:"claude-opus-5-5-medium",name:"Claude Opus 5.5 (Medium)",alias:"claude-opus-5-5-medium"},{id:"claude-opus-5-5-high",name:"Claude Opus 5.5 (High)",alias:"claude-opus-5-5-high"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6 (Thinking)",alias:"claude-sonnet-4-6"},{id:"claude-opus-4-6-thinking",name:"Claude Opus 4.6 (Thinking)",alias:"claude-opus-4-6-thinking"},{id:"gpt-oss-120b-medium",name:"GPT-OSS 120B (Medium)",alias:"gpt-oss-120b-medium"},{id:"gemini-3-flash",name:"Gemini 3 Flash (Command)",alias:"gemini-3-flash"}]},kiro:{id:"kiro",name:"Kiro",image:"/providers/kiro.png",color:"#FF6B00",description:"Kiro IDE with MITM",configType:"mitm",mitmDomain:"q.us-east-1.amazonaws.com",defaultModels:[{id:"auto",name:"Auto (Kiro Agent)",alias:"auto"},{id:"claude-opus-5.5",name:"Claude Opus 5.5",alias:"claude-opus-5.5"},{id:"claude-sonnet-5.5",name:"Claude Sonnet 5.5",alias:"claude-sonnet-5.5"},{id:"claude-haiku-5.5",name:"Claude Haiku 5.5",alias:"claude-haiku-5.5"},{id:"gpt-5.6-sol",name:"GPT 5.6 Sol",alias:"gpt-5.6-sol"},{id:"gpt-5.6-terra",name:"GPT 5.6 Terra",alias:"gpt-5.6-terra"},{id:"gpt-5.6-luna",name:"GPT 5.6 Luna",alias:"gpt-5.6-luna"},{id:"grok-4.7",name:"Grok 4.7",alias:"grok-4.7"},{id:"kimi-k3",name:"Kimi K3",alias:"kimi-k3"},{id:"claude-opus-5",name:"Claude Opus 5",alias:"claude-opus-5"},{id:"claude-sonnet-5",name:"Claude Sonnet 5",alias:"claude-sonnet-5"},{id:"claude-opus-4.8",name:"Claude Opus 4.8",alias:"claude-opus-4.8"},{id:"claude-opus-4.7",name:"Claude Opus 4.7",alias:"claude-opus-4.7"},{id:"claude-opus-4.6",name:"Claude Opus 4.6",alias:"claude-opus-4.6"},{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",alias:"claude-sonnet-4.6"},{id:"claude-opus-4.5",name:"Claude Opus 4.5",alias:"claude-opus-4.5"},{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5",alias:"claude-sonnet-4.5"},{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",alias:"claude-haiku-4.5"},{id:"deepseek-3.2",name:"DeepSeek 3.2",alias:"deepseek-3.2"},{id:"minimax-m2.5",name:"MiniMax M2.5",alias:"minimax-m2.5"},{id:"minimax-m2.1",name:"MiniMax M2.1",alias:"minimax-m2.1"},{id:"glm-5",name:"GLM 5",alias:"glm-5"},{id:"qwen3-coder-next",name:"Qwen3 Coder Next",alias:"qwen3-coder-next"},{id:"simple-task",name:"Simple Task (background)",alias:"simple-task"}]}},e={claude:{id:"claude",name:"Claude Code",image:"/providers/claude.png",color:"#D97757",description:"Anthropic Claude Code CLI",configType:"env",envVars:{baseUrl:"ANTHROPIC_BASE_URL",model:"ANTHROPIC_MODEL",opusModel:"ANTHROPIC_DEFAULT_OPUS_MODEL",sonnetModel:"ANTHROPIC_DEFAULT_SONNET_MODEL",haikuModel:"ANTHROPIC_DEFAULT_HAIKU_MODEL"},modelAliases:["default","sonnet","opus","haiku","opusplan"],settingsFile:"~/.claude/settings.json",defaultModels:[{id:"opus",name:"Claude Opus",alias:"opus",envKey:"ANTHROPIC_DEFAULT_OPUS_MODEL",defaultValue:"cc/claude-opus-4-6"},{id:"sonnet",name:"Claude Sonnet",alias:"sonnet",envKey:"ANTHROPIC_DEFAULT_SONNET_MODEL",defaultValue:"cc/claude-sonnet-4-6"},{id:"haiku",name:"Claude Haiku",alias:"haiku",envKey:"ANTHROPIC_DEFAULT_HAIKU_MODEL",defaultValue:"cc/claude-haiku-4-5-20251001"}]},openclaw:{id:"openclaw",name:"Open Claw",image:"/providers/openclaw.png",color:"#FF6B35",description:"Open Claw AI Assistant",configType:"custom"},codex:{id:"codex",name:"OpenAI Codex CLI / App",image:"/providers/codex.png",color:"#10A37F",description:"OpenAI Codex CLI",configType:"custom"},copilot:{id:"copilot",name:"GitHub Copilot",image:"/providers/copilot.png",color:"#1F6FEB",description:"GitHub Copilot Chat in VS Code via an OpenAI-compatible model provider",configType:"guide",docsUrl:"https://code.visualstudio.com/docs/copilot/customization/language-models",guideSteps:[{step:1,title:"Open Manage Models",desc:"In VS Code, open Copilot Chat, click the model picker at the bottom, then choose 'Manage Models...' and add an 'OpenAI Compatible' provider."},{step:2,title:"Configure Server",desc:"Enter this Base URL, then paste a ZevaiRouter API key when VS Code asks for it:",value:"{{baseUrl}}",copyable:!0},{step:3,title:"Select Model in Copilot Chat",desc:"Open Copilot Chat, click the model picker at the bottom → 'Manage Models...' → check the ZevaiRouter models to use."}]},"grok-build":{id:"grok-build",name:"Grok Build",image:"/providers/grok-cli.png",color:"#111111",description:"xAI coding agent with ZevaiRouter main and subagent model routing",configType:"custom"},opencode:{id:"opencode",name:"OpenCode",image:"/providers/opencode.png",color:"#E87040",description:"OpenCode AI Terminal Assistant",configType:"custom"},cowork:{id:"cowork",name:"Claude Cowork",image:"/providers/claude.png",color:"#D97757",description:"Claude Desktop Cowork (third-party inference)",configType:"custom"},hermes:{id:"hermes",name:"Hermes Agent",image:"/providers/hermes.png",color:"#8B5CF6",description:"Nous Research self-improving AI agent",configType:"custom",roles:[{id:"delegation",label:"Delegation (subagents)"},{id:"vision",label:"Vision"},{id:"compression",label:"Compression"},{id:"title_generation",label:"Title Generation"},{id:"approval",label:"Approval"},{id:"skills_hub",label:"Skills Hub"},{id:"mcp",label:"MCP"},{id:"review",label:"Review (/review subagent)"},{id:"memory_query_rewrite",label:"Memory Query Rewrite"},{id:"background_review",label:"Background Review"},{id:"curator",label:"Curator"},{id:"monitor",label:"Monitor"},{id:"tts_audio_tags",label:"TTS Audio Tags"},{id:"triage_specifier",label:"Triage Specifier"},{id:"kanban_decomposer",label:"Kanban Decomposer"},{id:"profile_describer",label:"Profile Describer"},{id:"goal_judge",label:"Goal Judge"}]},droid:{id:"droid",name:"Factory Droid",image:"/providers/droid.png",color:"#00D4FF",description:"Factory Droid AI Assistant",configType:"custom"},cursor:{id:"cursor",name:"Cursor",image:"/providers/cursor.png",color:"#000000",description:"Cursor AI Code Editor",configType:"guide",requiresExternalUrl:!0,notes:[{type:"warning",text:"Requires Cursor Pro account to use this feature."},{type:"cloudCheck",text:"Cursor's custom OpenAI endpoint is called from Cursor's server, so a local base URL is not supported. Use Tunnel or Cloud Endpoint, or map models in the Cursor MITM tool instead."}],guideSteps:[{step:1,title:"Open Settings",desc:"Go to Settings → Models"},{step:2,title:"Enable OpenAI API",desc:'Enable "OpenAI API key" option'},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Add Custom Model",desc:'Click "View All Model" → "Add Custom Model"'},{step:6,title:"Select Model",type:"modelSelector"}]},cline:{id:"cline",name:"Cline",image:"/providers/cline.png",color:"#00D1B2",description:"Cline AI Coding Assistant",configType:"custom"},kilo:{id:"kilo",name:"Kilo Code",image:"/providers/kilocode.png",color:"#FF6B6B",description:"Kilo Code AI Assistant",configType:"custom"},roo:{id:"roo",name:"Roo",image:"/providers/roo.png",color:"#FF6B6B",description:"Roo AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Settings",desc:"Go to Roo Settings panel"},{step:2,title:"Select Provider",desc:"Choose API Provider → Ollama"},{step:3,title:"Base URL",value:"{{baseUrl}}",copyable:!0},{step:4,title:"API Key",type:"apiKeySelector"},{step:5,title:"Select Model",type:"modelSelector"}]},continue:{id:"continue",name:"Continue",image:"/providers/continue.png",color:"#7C3AED",description:"Continue AI Assistant",configType:"guide",guideSteps:[{step:1,title:"Open Config",desc:"Open Continue configuration file"},{step:2,title:"API Key",type:"apiKeySelector"},{step:3,title:"Select Model",type:"modelSelector"},{step:4,title:"Add Model Config",desc:"Add the following configuration to your models array:"}],codeBlock:{language:"json",code:`{
50
50
  "apiBase": "{{baseUrl}}",
51
51
  "title": "{{model}}",
52
52
  "model": "{{model}}",