zevairouter 1.1.55 → 1.1.56

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 (733) hide show
  1. package/CHANGELOG.md +8 -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 +5 -5
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +8 -8
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  90. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  102. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  103. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +3 -3
  172. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/context/test/route.js +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +2 -2
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  328. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  366. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +2 -2
  406. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  458. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  459. package/cli/app/.next-cli-build/server/app/callback.rsc +4 -4
  460. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  461. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  462. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  463. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  464. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  465. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +5 -5
  466. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  467. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
  468. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  469. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  470. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +5 -5
  471. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  472. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  473. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  474. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  475. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  476. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  477. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  478. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  479. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  480. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
  481. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  482. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  483. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  484. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +4 -4
  485. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +4 -4
  486. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +4 -4
  487. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +2 -2
  488. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  489. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  490. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +5 -5
  491. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  492. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  493. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  494. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  495. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
  496. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  497. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  498. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  499. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  500. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  501. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  502. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  503. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  504. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +5 -5
  505. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +5 -5
  506. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +5 -5
  507. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
  508. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  509. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +4 -4
  510. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
  511. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +4 -4
  512. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  513. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  514. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +4 -4
  515. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
  516. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +4 -4
  517. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  518. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  519. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  520. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
  521. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  522. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  523. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  524. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +4 -4
  525. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +4 -4
  526. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +4 -4
  527. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  528. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  529. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +4 -4
  530. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +4 -4
  531. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +4 -4
  532. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  533. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  534. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +5 -5
  535. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +5 -5
  536. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +5 -5
  537. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  538. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  539. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  540. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  541. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  542. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  543. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  544. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +4 -4
  545. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +4 -4
  546. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +4 -4
  547. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  548. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  549. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +4 -4
  550. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +4 -4
  551. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +4 -4
  552. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  553. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  554. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +4 -4
  555. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
  556. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +4 -4
  557. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  558. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  559. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  560. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
  561. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  562. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  563. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  564. package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  565. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +5 -5
  566. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  567. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  568. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  569. package/cli/app/.next-cli-build/server/app/index.rsc +4 -4
  570. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  571. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  572. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  573. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  574. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  575. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  576. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  577. package/cli/app/.next-cli-build/server/app/landing.rsc +4 -4
  578. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  579. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  580. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  581. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  582. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  583. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  584. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  585. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  586. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  587. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  588. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  589. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  590. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  591. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  592. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  593. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  594. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  595. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  596. package/cli/app/.next-cli-build/server/app-paths-manifest.json +20 -20
  597. package/cli/app/.next-cli-build/server/chunks/1260.js +1 -1
  598. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  599. package/cli/app/.next-cli-build/server/chunks/1509.js +1 -1
  600. package/cli/app/.next-cli-build/server/chunks/1746.js +1 -0
  601. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  602. package/cli/app/.next-cli-build/server/chunks/2147.js +1 -1
  603. package/cli/app/.next-cli-build/server/chunks/2301.js +1 -1
  604. package/cli/app/.next-cli-build/server/chunks/24.js +1 -1
  605. package/cli/app/.next-cli-build/server/chunks/2731.js +6 -2
  606. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  607. package/cli/app/.next-cli-build/server/chunks/3966.js +6 -2
  608. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  609. package/cli/app/.next-cli-build/server/chunks/4404.js +1 -1
  610. package/cli/app/.next-cli-build/server/chunks/4721.js +2 -2
  611. package/cli/app/.next-cli-build/server/chunks/4754.js +1 -1
  612. package/cli/app/.next-cli-build/server/chunks/4780.js +1 -1
  613. package/cli/app/.next-cli-build/server/chunks/4803.js +1 -1
  614. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  615. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  616. package/cli/app/.next-cli-build/server/chunks/5241.js +1 -0
  617. package/cli/app/.next-cli-build/server/chunks/5330.js +2 -2
  618. package/cli/app/.next-cli-build/server/chunks/5434.js +1 -1
  619. package/cli/app/.next-cli-build/server/chunks/5469.js +1 -1
  620. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  621. package/cli/app/.next-cli-build/server/chunks/5999.js +1 -1
  622. package/cli/app/.next-cli-build/server/chunks/6008.js +1 -1
  623. package/cli/app/.next-cli-build/server/chunks/6630.js +1 -1
  624. package/cli/app/.next-cli-build/server/chunks/6846.js +1 -1
  625. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  626. package/cli/app/.next-cli-build/server/chunks/7319.js +14 -14
  627. package/cli/app/.next-cli-build/server/chunks/7401.js +1 -1
  628. package/cli/app/.next-cli-build/server/chunks/7404.js +1 -0
  629. package/cli/app/.next-cli-build/server/chunks/7793.js +1 -1
  630. package/cli/app/.next-cli-build/server/chunks/8028.js +1 -1
  631. package/cli/app/.next-cli-build/server/chunks/8238.js +1 -1
  632. package/cli/app/.next-cli-build/server/chunks/8590.js +1 -1
  633. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  634. package/cli/app/.next-cli-build/server/chunks/9152.js +1 -1
  635. package/cli/app/.next-cli-build/server/chunks/9367.js +1 -1
  636. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  637. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  638. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  639. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  640. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  641. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  642. package/cli/app/.next-cli-build/static/chunks/523-3899a7f5cde3f3e8.js +3 -0
  643. package/cli/app/.next-cli-build/static/chunks/5497-3c3b07d715a99cab.js +7 -0
  644. package/cli/app/.next-cli-build/static/chunks/620-deb68c62a7d77fc0.js +1 -0
  645. package/cli/app/.next-cli-build/static/chunks/{866-cb5810bc4cfbe501.js → 866-95ac0134c200c9b4.js} +13 -9
  646. package/cli/app/.next-cli-build/static/chunks/9126-704494b6d143e965.js +1 -0
  647. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/page-71a382ed81559482.js +1 -0
  648. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-a2bfbf57ba4e0369.js +1 -0
  649. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-5ea159e81960bde3.js +62 -0
  650. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-83103184cbba481f.js +1 -0
  651. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-cb5b7d41a830d58e.js → page-739bdc9961949f1b.js} +1 -1
  652. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-39062565f11d2c60.js +1 -0
  653. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-291c6ac2c795f8c8.js +1 -0
  654. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-656fbf35b150dc4c.js +15 -0
  655. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-3a704c1ae0b33a93.js +1 -0
  656. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c4b6cea2f44cd5d8.js +1 -0
  657. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-a205615e648f47a1.js +1 -0
  658. package/cli/app/.next-cli-build/static/css/5f8e06639e41002c.css +1 -0
  659. package/cli/app/CHANGELOG.md +8 -0
  660. package/cli/app/package.json +1 -1
  661. package/cli/app/public/providers/agentrouter.png +0 -0
  662. package/cli/app/public/providers/agnes.png +0 -0
  663. package/cli/app/public/providers/api-airforce.png +0 -0
  664. package/cli/app/public/providers/atria.png +0 -0
  665. package/cli/app/public/providers/bai.png +0 -0
  666. package/cli/app/public/providers/bedrock-xai.png +0 -0
  667. package/cli/app/public/providers/bedrock.png +0 -0
  668. package/cli/app/public/providers/bluesminds.png +0 -0
  669. package/cli/app/public/providers/cartesia.png +0 -0
  670. package/cli/app/public/providers/chatgpt-web.png +0 -0
  671. package/cli/app/public/providers/codebuddy-intl.png +0 -0
  672. package/cli/app/public/providers/coqui.png +0 -0
  673. package/cli/app/public/providers/crush.png +0 -0
  674. package/cli/app/public/providers/dahl.png +0 -0
  675. package/cli/app/public/providers/deepseek-web.png +0 -0
  676. package/cli/app/public/providers/devin-cli.png +0 -0
  677. package/cli/app/public/providers/gemini-web.png +0 -0
  678. package/cli/app/public/providers/gitlab.png +0 -0
  679. package/cli/app/public/providers/longcat.png +0 -0
  680. package/cli/app/public/providers/mimo-free.png +0 -0
  681. package/cli/app/public/providers/minimax-code-global.png +0 -0
  682. package/cli/app/public/providers/minimax-code.png +0 -0
  683. package/cli/app/public/providers/mmf.png +0 -0
  684. package/cli/app/public/providers/muse-web.png +0 -0
  685. package/cli/app/public/providers/muse.png +0 -0
  686. package/cli/app/public/providers/nace.png +0 -0
  687. package/cli/app/public/providers/nous.png +0 -0
  688. package/cli/app/public/providers/novita.png +0 -0
  689. package/cli/app/public/providers/opencode-zen.png +0 -0
  690. package/cli/app/public/providers/playht.png +0 -0
  691. package/cli/app/public/providers/qoder-cn.png +0 -0
  692. package/cli/app/public/providers/reka.png +0 -0
  693. package/cli/app/public/providers/runcrate.png +0 -0
  694. package/cli/app/public/providers/sambanova.png +0 -0
  695. package/cli/app/public/providers/selfhosted-embedding.png +0 -0
  696. package/cli/app/public/providers/selfhosted-stt.png +0 -0
  697. package/cli/app/public/providers/selfhosted-tts.png +0 -0
  698. package/cli/app/public/providers/sensenova.png +0 -0
  699. package/cli/app/public/providers/tinyfish.png +0 -0
  700. package/cli/app/public/providers/tokenharbor.png +0 -0
  701. package/cli/app/public/providers/tortoise.png +0 -0
  702. package/cli/app/public/providers/trae.png +0 -0
  703. package/cli/app/public/providers/uc-web.png +0 -0
  704. package/cli/app/public/providers/v1m.png +0 -0
  705. package/cli/app/public/providers/veoaifree-web.png +0 -0
  706. package/cli/app/public/providers/vercel-ai-gateway.png +0 -0
  707. package/cli/app/public/providers/vercel.png +0 -0
  708. package/cli/app/public/providers/windsurf.png +0 -0
  709. package/cli/app/public/providers/workbuddy.png +0 -0
  710. package/cli/app/public/providers/xquik.png +0 -0
  711. package/cli/app/public/providers/zed.png +0 -0
  712. package/cli/package.json +1 -1
  713. package/package.json +1 -1
  714. package/cli/app/.next-cli-build/server/chunks/6316.js +0 -1
  715. package/cli/app/.next-cli-build/server/chunks/6351.js +0 -1
  716. package/cli/app/.next-cli-build/server/chunks/8806.js +0 -1
  717. package/cli/app/.next-cli-build/static/chunks/523-555b1100ea8c36ab.js +0 -3
  718. package/cli/app/.next-cli-build/static/chunks/5497-4e44bebc378726ef.js +0 -7
  719. package/cli/app/.next-cli-build/static/chunks/620-6e8f49e5a0915d95.js +0 -1
  720. package/cli/app/.next-cli-build/static/chunks/9126-8e307fc5cf32a12b.js +0 -1
  721. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/page-c8b39a8d4d46a207.js +0 -1
  722. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-38ef7f5b88262d64.js +0 -1
  723. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-124b1160759061bf.js +0 -62
  724. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-a3aac7af48a78d0a.js +0 -1
  725. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-25329f7e043c45db.js +0 -1
  726. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-9e7522af32df1bdb.js +0 -1
  727. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-b7ad641a75eccc63.js +0 -15
  728. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-47b9590e383e3529.js +0 -1
  729. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-17f90cd42bb24199.js +0 -1
  730. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-bbcdfa6960400cb1.js +0 -1
  731. package/cli/app/.next-cli-build/static/css/1ba78f2ef5cfce32.css +0 -1
  732. /package/cli/app/.next-cli-build/static/{hTGU_ZpFVJkIvcdHRwnzH → qbIBaB7VAITknqvX7BY0D}/_buildManifest.js +0 -0
  733. /package/cli/app/.next-cli-build/static/{hTGU_ZpFVJkIvcdHRwnzH → qbIBaB7VAITknqvX7BY0D}/_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 aj="/api/cli-tools/openbot-settings";function ak({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(`${aj}?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(aj,{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 al=[2e5,4e5,6e5,1e6],am=[16e3,32e3,64e3,128e3],an={contextWindow:2e5,maxTokens:64e3};function ao(a,b){let c=Number(a);return Number.isFinite(c)&&c>0&&c<=b?c:null}function ap(a,b,c,d){if(null!=a&&""!==a){let b=ao(a,d);if(null!==b)return b}return ao(b,d)??c}function aq(a){let b=Number(a);return Number.isFinite(b)?b>=1e6?`${+(b/1e6).toFixed(2)}M`:`${Math.round(b/1e3)}k`:String(a)}function ar(a,b){return a.includes(b)?a:[...a,b].sort((a,b)=>a-b)}let as={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 at({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:ap(a.contextWindow,void 0,an.contextWindow,2e6),maxTokens:ap(a.maxTokens,void 0,an.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,...an,...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]||{...an};return c})},U=(a,b,c)=>{G(d=>({...d,[a]:{...an,...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:as[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={...an,...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:ar(al,b.contextWindow).map(a=>(0,d.jsxs)("option",{value:a,children:[aq(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:ar(am,b.maxTokens).map(a=>(0,d.jsxs)("option",{value:a,children:[aq(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 au="http://localhost:1997";function av({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)(au),[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()||au,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:au,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 aw=c(36811);function ax({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=aw.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 ay=c(2116),az=c.n(ay);function aA({tool:a}){return(0,d.jsx)(az(),{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-3.8-flash-high","gemini-3.8-flash-medium","gemini-3.8-flash-low","gemini-3.7-flash-high","gemini-3.7-flash-medium","gemini-3.7-flash-low","gemini-3.6-flash-high","gemini-3.6-flash-medium","gemini-3.6-flash-low","gemini-3-flash-agent","gemini-3.5-flash-low","gemini-3.5-flash-extra-low","gemini-3.1-pro-low","gemini-pro-agent","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-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:"gemini-3.7-flash-high",name:"Gemini 3.7 Flash (High)",alias:"gemini-3.7-flash-high"},{id:"gemini-3.7-flash-medium",name:"Gemini 3.7 Flash (Medium)",alias:"gemini-3.7-flash-medium"},{id:"gemini-3.7-flash-low",name:"Gemini 3.7 Flash (Low)",alias:"gemini-3.7-flash-low"},{id:"gemini-3.6-flash-high",name:"Gemini 3.6 Flash (High)",alias:"gemini-3.6-flash-high"},{id:"gemini-3.6-flash-medium",name:"Gemini 3.6 Flash (Medium)",alias:"gemini-3.6-flash-medium"},{id:"gemini-3.6-flash-low",name:"Gemini 3.6 Flash (Low)",alias:"gemini-3.6-flash-low"},{id:"gemini-3.5-flash-low",name:"Gemini 3.5 Flash (Medium) / Default",alias:"gemini-3.5-flash-low",mandatory:!0},{id:"gemini-3-flash-agent",name:"Gemini 3.5 Flash (High)",alias:"gemini-3-flash-agent"},{id:"gemini-3.5-flash-extra-low",name:"Gemini 3.5 Flash (Low)",alias:"gemini-3.5-flash-extra-low"},{id:"gemini-3.1-pro-low",name:"Gemini 3.1 Pro (Low)",alias:"gemini-3.1-pro-low"},{id:"gemini-pro-agent",name:"Gemini 3.1 Pro (High)",alias:"gemini-pro-agent"},{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"}]},copilot:{id:"copilot",name:"GitHub Copilot",image:"/providers/copilot.png",color:"#1F6FEB",description:"GitHub Copilot IDE with MITM",configType:"mitm",mitmDomain:"api.individual.githubcopilot.com",modelAliases:["gpt-4o-mini","claude-haiku-4.5","gpt-4o","gpt-5-mini"],defaultModels:[{id:"gpt-4o",name:"GPT-4o",alias:"gpt-4o"},{id:"gpt-4.1",name:"GPT-4.1",alias:"gpt-4.1"},{id:"gpt-5-mini",name:"GPT-5 Mini",alias:"gpt-5-mini"},{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",alias:"claude-haiku-4.5"}]},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-sonnet-5",name:"Claude Sonnet 5",alias:"claude-sonnet-5"},{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5",alias:"claude-sonnet-4.5"},{id:"claude-sonnet-4",name:"Claude Sonnet 4",alias:"claude-sonnet-4"},{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:"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:"simple-task",name:"Qwen3 Coder Next",alias:"simple-task"}]},cursor:{id:"cursor",name:"Cursor",image:"/providers/cursor.png",color:"#000000",description:"Cursor IDE with MITM. Unmapped models stay on Cursor; mapped models go through this router.",configType:"mitm",mitmDomain:"api2.cursor.sh",defaultModels:[{id:"default",name:"Default",alias:"default"},{id:"composer-1",name:"Composer",alias:"composer-1"},{id:"claude-4.5-sonnet",name:"Claude 4.5 Sonnet",alias:"claude-4.5-sonnet"},{id:"gpt-4o",name:"GPT-4o",alias:"gpt-4o"}]}},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"},"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"},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 aj="/api/cli-tools/openbot-settings";function ak({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(`${aj}?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(aj,{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 al=[2e5,4e5,6e5,1e6],am=[16e3,32e3,64e3,128e3],an={contextWindow:2e5,maxTokens:64e3};function ao(a,b){let c=Number(a);return Number.isFinite(c)&&c>0&&c<=b?c:null}function ap(a,b,c,d){if(null!=a&&""!==a){let b=ao(a,d);if(null!==b)return b}return ao(b,d)??c}function aq(a){let b=Number(a);return Number.isFinite(b)?b>=1e6?`${+(b/1e6).toFixed(2)}M`:`${Math.round(b/1e3)}k`:String(a)}function ar(a,b){return a.includes(b)?a:[...a,b].sort((a,b)=>a-b)}let as={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 at({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:ap(a.contextWindow,void 0,an.contextWindow,2e6),maxTokens:ap(a.maxTokens,void 0,an.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,...an,...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]||{...an};return c})},U=(a,b,c)=>{G(d=>({...d,[a]:{...an,...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:as[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={...an,...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:ar(al,b.contextWindow).map(a=>(0,d.jsxs)("option",{value:a,children:[aq(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:ar(am,b.maxTokens).map(a=>(0,d.jsxs)("option",{value:a,children:[aq(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 au="http://localhost:1997";function av({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)(au),[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()||au,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:au,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 aw=c(36811);function ax({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=aw.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 ay=c(2116),az=c.n(ay);function aA({tool:a}){return(0,d.jsx)(az(),{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-3.8-flash-high","gemini-3.8-flash-medium","gemini-3.8-flash-low","gemini-3.7-flash-high","gemini-3.7-flash-medium","gemini-3.7-flash-low","gemini-3.6-flash-high","gemini-3.6-flash-medium","gemini-3.6-flash-low","gemini-3-flash-agent","gemini-3.5-flash-low","gemini-3.5-flash-extra-low","gemini-3.1-pro-low","gemini-pro-agent","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-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:"gemini-3.7-flash-high",name:"Gemini 3.7 Flash (High)",alias:"gemini-3.7-flash-high"},{id:"gemini-3.7-flash-medium",name:"Gemini 3.7 Flash (Medium)",alias:"gemini-3.7-flash-medium"},{id:"gemini-3.7-flash-low",name:"Gemini 3.7 Flash (Low)",alias:"gemini-3.7-flash-low"},{id:"gemini-3.6-flash-high",name:"Gemini 3.6 Flash (High)",alias:"gemini-3.6-flash-high"},{id:"gemini-3.6-flash-medium",name:"Gemini 3.6 Flash (Medium)",alias:"gemini-3.6-flash-medium"},{id:"gemini-3.6-flash-low",name:"Gemini 3.6 Flash (Low)",alias:"gemini-3.6-flash-low"},{id:"gemini-3.5-flash-low",name:"Gemini 3.5 Flash (Medium) / Default",alias:"gemini-3.5-flash-low",mandatory:!0},{id:"gemini-3-flash-agent",name:"Gemini 3.5 Flash (High)",alias:"gemini-3-flash-agent"},{id:"gemini-3.5-flash-extra-low",name:"Gemini 3.5 Flash (Low)",alias:"gemini-3.5-flash-extra-low"},{id:"gemini-3.1-pro-low",name:"Gemini 3.1 Pro (Low)",alias:"gemini-3.1-pro-low"},{id:"gemini-pro-agent",name:"Gemini 3.1 Pro (High)",alias:"gemini-pro-agent"},{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-sonnet-5",name:"Claude Sonnet 5",alias:"claude-sonnet-5"},{id:"claude-sonnet-4.5",name:"Claude Sonnet 4.5",alias:"claude-sonnet-4.5"},{id:"claude-sonnet-4",name:"Claude Sonnet 4",alias:"claude-sonnet-4"},{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:"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:"simple-task",name:"Qwen3 Coder Next",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}}",
@@ -68,7 +68,11 @@ amp --model "{{model}}"
68
68
  "model": {
69
69
  "name": "{{model}}"
70
70
  }
71
- }`}},"deepseek-tui":{id:"deepseek-tui",name:"DeepSeek TUI",image:"/providers/deepseek-tui.png",color:"#4D6BFE",description:"DeepSeek Terminal Coding Agent (Rust TUI)",docsUrl:"https://github.com/DeepSeek-TUI/DeepSeek-TUI",configType:"custom",defaultCommand:"deepseek",modelAliases:["deepseek-v4-pro","deepseek-v4-flash","deepseek-chat","deepseek-reasoner"],defaultModels:[{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",alias:"deepseek-v4-pro"},{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",alias:"deepseek-v4-flash"},{id:"deepseek-chat",name:"DeepSeek V3 Chat",alias:"deepseek-chat"}],notes:[{type:"info",text:"DeepSeek TUI uses ~/.deepseek/config.toml for configuration. ZevaiRouter will update the provider to 'openai' mode with your base_url, api_key, and model."},{type:"warning",text:"Config path: Linux/macOS ~/.deepseek/config.toml • Windows %USERPROFILE%\\.deepseek\\config.toml"}]},jcode:{id:"jcode",name:"jcode",image:"/providers/jcode.png",color:"#FF6B35",description:"High-performance Rust-based coding agent harness",configType:"custom",docsUrl:"https://github.com/1jehuang/jcode",notes:[{type:"info",text:"jcode is a Rust-based coding agent with semantic memory, multi-agent swarms, and extreme performance (27.8 MB RAM, 14ms boot)."},{type:"info",text:"Configure zevairouter as an OpenAI-compatible provider to route all jcode requests through zevairouter's optimization layer."},{type:"warning",text:"Requires jcode installed. Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash"}],defaultModels:[{id:"claude-opus-4-7",name:"Claude Opus 4.7",alias:"opus",defaultValue:"cc/claude-opus-4-7"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",alias:"sonnet",defaultValue:"cc/claude-sonnet-4-6"},{id:"gpt-5.6",name:"GPT 5.6",alias:"gpt5",defaultValue:"cx/gpt-5.6"},{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro",alias:"gemini",defaultValue:"gemini/gemini-3.1-pro"}]},omp:{id:"omp",name:"OMP",image:"/providers/omp.png",color:"#7C3AED",description:"oh-my-pi coding agent (omp CLI)",configType:"custom",notes:[{type:"info",text:"Writes only providers.zevai into ~/.omp/agent/models.yml; other providers and comments are preserved. config.yml is not touched."}]},openbot:{id:"openbot",name:"OpenBot",image:"/providers/openbot.png",color:"#2563EB",description:"OpenBot desktop app (custom endpoints)",configType:"custom",notes:[{type:"info",text:"Rewrites only the model list of OpenBot endpoints that already point at this router. The endpoint's API key (sealed by the OS keychain) and every other endpoint stay unchanged."},{type:"warning",text:"OpenBot reads endpoints only at start and allows 64 models per endpoint. Quit OpenBot before syncing, then open it again."}]},pi:{id:"pi",name:"Pi",image:"/providers/pi.svg",color:"#6366F1",description:"Pi coding agent. Writes providers.zevai into ~/.pi/agent/models.json.",configType:"custom",docsUrl:"https://pi.dev",notes:[{type:"info",text:"After Apply, open Pi and run /model to pick the ZevaiRouter model."}]},crush:{id:"crush",name:"Crush",icon:"terminal",color:"#FB923C",description:"Charm Crush terminal coding agent. Writes providers.zevai into ~/.config/crush/crush.json.",configType:"custom",docsUrl:"https://github.com/charmbracelet/crush"},forge:{id:"forge",name:"ForgeCode",image:"/providers/forge.png",color:"#F59E0B",description:"ForgeCode CLI. Writes the openai table in ~/.forge/config.toml.",configType:"custom",docsUrl:"https://github.com/antinomyhq/forge"},smelt:{id:"smelt",name:"Smelt",image:"/providers/smelt.svg",color:"#EF4444",description:"Smelt CLI. Writes ~/.smelt/config.json and marks it managed by ZevaiRouter.",configType:"custom"},codewhale:{id:"codewhale",name:"CodeWhale",image:"/providers/codewhale.svg",color:"#0EA5E9",description:"CodeWhale CLI. Writes the openai table in ~/.codewhale/config.toml.",configType:"custom"},opendesign:{id:"opendesign",name:"OpenDesign",image:"/providers/opendesign.png",color:"#7C3AED",description:"Design skills pack for Claude Code, Cursor, Codex, Gemini CLI, and OpenCode.",docsUrl:"https://github.com/manalkaff/opendesign",configType:"guide",notes:[{type:"info",text:"OpenDesign inherits the host agent's model. If that host already points at ZevaiRouter, /opendesign traffic does too."}],guideSteps:[{step:1,title:"Install the plugin",desc:"Use the command for your host from the block below."},{step:2,title:"Point the host at ZevaiRouter",desc:"No extra OpenDesign key. The host's existing base URL and API key are reused."},{step:3,title:"Start designing",desc:"Invoke it from the host agent.",value:"/opendesign make a 10-slide pitch deck",copyable:!0}],codeBlock:{language:"bash",code:`# Claude Code
71
+ }`}},"deepseek-tui":{id:"deepseek-tui",name:"DeepSeek TUI",image:"/providers/deepseek-tui.png",color:"#4D6BFE",description:"DeepSeek Terminal Coding Agent (Rust TUI)",docsUrl:"https://github.com/DeepSeek-TUI/DeepSeek-TUI",configType:"custom",defaultCommand:"deepseek",modelAliases:["deepseek-v4-pro","deepseek-v4-flash","deepseek-chat","deepseek-reasoner"],defaultModels:[{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",alias:"deepseek-v4-pro"},{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",alias:"deepseek-v4-flash"},{id:"deepseek-chat",name:"DeepSeek V3 Chat",alias:"deepseek-chat"}],notes:[{type:"info",text:"DeepSeek TUI uses ~/.deepseek/config.toml for configuration. ZevaiRouter will update the provider to 'openai' mode with your base_url, api_key, and model."},{type:"warning",text:"Config path: Linux/macOS ~/.deepseek/config.toml • Windows %USERPROFILE%\\.deepseek\\config.toml"}]},devin:{id:"devin",name:"Devin CLI",image:"/providers/devin-cli.png",color:"#6366F1",description:"Cognition Devin CLI — local binary called by the Devin CLI provider via ACP/stdio",configType:"guide",installUrl:"https://cli.devin.ai",notes:[{type:"info",text:"This is a local dependency, not a routed CLI. The Devin CLI provider spawns `devin acp --agent-type summarizer` and relays its output."},{type:"warning",text:"Install the Devin CLI and run `devin auth login` — without it, the provider returns a spawn error on first request."}],guideSteps:[{step:1,title:"Install Devin CLI",desc:"Install via the official installer at cli.devin.ai.",docsUrl:"https://cli.devin.ai"},{step:2,title:"Authenticate",desc:"Log in once so the binary stores its own credentials."},{step:3,title:"Use the provider",desc:"Pick any Devin CLI model under the Providers tab — no API key field needed."}],codeBlock:{language:"bash",code:`# Install Devin CLI (see https://cli.devin.ai for options)
72
+ devin auth login
73
+
74
+ # Verify detection (optional)
75
+ devin --version`}},jcode:{id:"jcode",name:"jcode",image:"/providers/jcode.png",color:"#FF6B35",description:"High-performance Rust-based coding agent harness",configType:"custom",docsUrl:"https://github.com/1jehuang/jcode",notes:[{type:"info",text:"jcode is a Rust-based coding agent with semantic memory, multi-agent swarms, and extreme performance (27.8 MB RAM, 14ms boot)."},{type:"info",text:"Configure zevairouter as an OpenAI-compatible provider to route all jcode requests through zevairouter's optimization layer."},{type:"warning",text:"Requires jcode installed. Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash"}],defaultModels:[{id:"claude-opus-4-7",name:"Claude Opus 4.7",alias:"opus",defaultValue:"cc/claude-opus-4-7"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",alias:"sonnet",defaultValue:"cc/claude-sonnet-4-6"},{id:"gpt-5.6",name:"GPT 5.6",alias:"gpt5",defaultValue:"cx/gpt-5.6"},{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro",alias:"gemini",defaultValue:"gemini/gemini-3.1-pro"}]},omp:{id:"omp",name:"Oh My Pi",image:"/providers/omp.png",color:"#EC4899",description:"Oh My Pi terminal AI agent with auto-discovery support",configType:"custom",docsUrl:"https://github.com/can1357/oh-my-pi",notes:[{type:"info",text:"Writes only providers.zevai into ~/.omp/agent/models.yml; other providers and comments are preserved. config.yml is not touched."}]},openbot:{id:"openbot",name:"OpenBot",image:"/providers/openbot.png",color:"#2563EB",description:"OpenBot desktop app (custom endpoints)",configType:"custom",notes:[{type:"info",text:"Rewrites only the model list of OpenBot endpoints that already point at this router. The endpoint's API key (sealed by the OS keychain) and every other endpoint stay unchanged."},{type:"warning",text:"OpenBot reads endpoints only at start and allows 64 models per endpoint. Quit OpenBot before syncing, then open it again."}]},pi:{id:"pi",name:"Pi",image:"/providers/pi.svg",color:"#6366F1",description:"Pi coding agent. Writes providers.zevai into ~/.pi/agent/models.json.",configType:"custom",docsUrl:"https://pi.dev",notes:[{type:"info",text:"After Apply, open Pi and run /model to pick the ZevaiRouter model."}]},crush:{id:"crush",name:"Crush",icon:"terminal",color:"#FB923C",description:"Charm Crush terminal coding agent. Writes providers.zevai into ~/.config/crush/crush.json.",configType:"custom",docsUrl:"https://github.com/charmbracelet/crush"},forge:{id:"forge",name:"ForgeCode",image:"/providers/forge.png",color:"#F59E0B",description:"ForgeCode CLI. Writes the openai table in ~/.forge/config.toml.",configType:"custom",docsUrl:"https://github.com/antinomyhq/forge"},smelt:{id:"smelt",name:"Smelt",image:"/providers/smelt.svg",color:"#EF4444",description:"Smelt CLI. Writes ~/.smelt/config.json and marks it managed by ZevaiRouter.",configType:"custom"},codewhale:{id:"codewhale",name:"CodeWhale",image:"/providers/codewhale.svg",color:"#0EA5E9",description:"CodeWhale CLI. Writes the openai table in ~/.codewhale/config.toml.",configType:"custom"},opendesign:{id:"opendesign",name:"OpenDesign",image:"/providers/opendesign.png",color:"#7C3AED",description:"Design skills pack for Claude Code, Cursor, Codex, Gemini CLI, and OpenCode.",docsUrl:"https://github.com/manalkaff/opendesign",configType:"guide",notes:[{type:"info",text:"OpenDesign inherits the host agent's model. If that host already points at ZevaiRouter, /opendesign traffic does too."}],guideSteps:[{step:1,title:"Install the plugin",desc:"Use the command for your host from the block below."},{step:2,title:"Point the host at ZevaiRouter",desc:"No extra OpenDesign key. The host's existing base URL and API key are reused."},{step:3,title:"Start designing",desc:"Invoke it from the host agent.",value:"/opendesign make a 10-slide pitch deck",copyable:!0}],codeBlock:{language:"bash",code:`# Claude Code
72
76
  /plugin marketplace add manalkaff/opendesign
73
77
  /plugin install opendesign@opendesign
74
78
 
@@ -1 +1 @@
1
- "use strict";exports.id=3792,exports.ids=[3792],exports.modules={35346:(a,b,c)=>{c.d(b,{HG:()=>k,NU:()=>g});let d={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function e(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function f(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function g(a){if(!a||!0!==a.enabled)return null;let b=e(a.anchor)||e(d.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?d.timezone:a.timezone,h=f(a.windowHours,d.windowHours,.5,24),i=Math.round(f(a.slotsPerDay,d.slotsPerDay,1,Math.max(1,Math.floor(24/h))));return{enabled:!0,anchor:c,timezone:g,windowHours:h,slotsPerDay:i}}function h(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function i(a,b){let c=h(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function j(a,b){let{hour:c,minute:d}=e(a.anchor),f=h(b,a.timezone),g=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=i(g,f),j=g-h,k=i(j,f);return k===h?j:g-k}({year:f.year,month:f.month,day:f.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let f,i;return{key:(e=a.timezone,f=h(b,e),i=`${f.year}-${String(f.month).padStart(2,"0")}-${String(f.day).padStart(2,"0")}`,`${i}#${d}`),index:d,at:g+d*a.windowHours*36e5}})}function k(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=g(a);return c?[...j(c,b-864e5),...j(c,b),...j(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}},48595:(a,b,c)=>{c.d(b,{oc:()=>g});var d=c(90053),e=c(32130),f=c(14372);new Set(Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a)),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),d.rE;let g={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},73792:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{configureQuotaAutoPing:()=>z,runQuotaAutoPingTick:()=>w,startQuotaAutoPing:()=>x,stopQuotaAutoPing:()=>y});var e=c(5210),f=c(70321),g=c(93181),h=c(65333),i=c(30395),j=c(46956),k=c(63993),l=c(46455),m=c(48595),n=c(35346),o=a([e,h,l]);[e,h,l]=o.then?(await o)():o;let A=m.oc,B=globalThis.__zevaiQuotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{}};function p(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function q(a,b=null){let c="string"==typeof a&&a.trim()?Number(a):a;return Number.isFinite(c)?c:b}function r(a){if(!a||!0===a.unlimited)return!1;let b=q(a.remaining);if(null!==b)return b<=0;let c=q(a.used),d=q(a.total);return null!==d&&d>0&&null!==c&&c>=d}function s(a,b,c=Date.now()){if(!b)return!1;let d=new Date(a.lastPingAt).getTime();return Number.isFinite(d)&&c-d<b}async function t(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;!(await b.read()).done;);}finally{b.releaseLock?.()}}async function u(a,b,c,d){let e=d.getExecutor("codex"),{response:f}=await e.execute({model:b.pingModel,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:b.pingModel,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});return f.ok?(await t(f),!0):(await f.body?.cancel?.().catch?.(()=>{}),!1)}let C={claude:async function(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...i.xq.claude.headers||{},Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);return e.ok||await e.body?.cancel?.().catch?.(()=>{}),e.ok},codex:u};async function v(a,b,c,d,e,f=null,g=!0){var h,i,j;let k=(h=a.id,`${b}:${h}`),l=e.resetCache[k];if(!f&&!c.pingWhenResetAtSlides&&l){let a=new Date(l).getTime();if(Number.isFinite(a)&&Date.now()<a-A.refreshAheadMs)return}let m=e.failureCache[k];if(m&&Date.now()-m<A.failureCooldownMs)return;let o={connectionProxyEnabled:!0===(i=await d.resolveConnectionProxyConfig(a.providerSpecificData)).connectionProxyEnabled,connectionProxyUrl:i.connectionProxyUrl||"",connectionNoProxy:i.connectionNoProxy||"",vercelRelayUrl:i.vercelRelayUrl||"",strictProxy:!1},q=(await d.refreshAndUpdateCredentials(a,!1,o)).connection,t=await d.getUsageForProvider(q,o),u=t?.quotas||{},w=u[c.quotaKey],x=w?.resetAt;if(x&&(e.resetCache[k]=x),c.skipWhenBlockingQuotaExhausted&&(j=c.quotaKey,Object.entries(u||{}).some(([a,b])=>a!==j&&!String(a).toLowerCase().includes("session")&&r(b)))||r(w))return;let y=Date.now(),z=f?(0,n.HG)(f,y):null,B=!!z&&q.lastPingedSlotKey!==z.key;if(B){if(s(q,c.minPingIntervalMs,y))return}else{if(!g||!x)return;let a=p(x),b=q.lastPingedResetKey||p(q.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){if(!b)return!1;let d=new Date(b).getTime(),e=new Date(c).getTime();return Number.isFinite(d)&&Number.isFinite(e)&&e-d>=(a.resetAtDriftMs||0)}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-A.pingLeadMs}(c,l,x,y)||s(q,c.minPingIntervalMs,y)||b===a)return}let D=x?p(x):null;if(!await C[b](q,c,o,d)){e.failureCache[k]=Date.now();return}delete e.failureCache[k];let E=new Date().toISOString();await d.updateProviderConnection(q.id,{...x?{lastPingedResetAt:x,lastPingedResetKey:D}:{},...B?{lastPingedSlotKey:z.key}:{},lastPingAt:E})}async function w(a={getSettings:f.mt,getProviderConnections:f.getProviderConnections,updateProviderConnection:f.updateProviderConnection,resolveConnectionProxyConfig:k.B,refreshAndUpdateCredentials:l.qX,getUsageForProvider:g.my,proxyAwareFetch:j.Fm,getExecutor:h.SB},b=B){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(A.providers)){var c,d;let h=e?.[g.settingsKey]?.connections||{},i=e?.[g.settingsKey]?.schedules||{};if(Object.values(h).some(Boolean)||Object.values(i).some(a=>a?.enabled===!0))for(let j of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===h[a.id]||null!==(0,n.NU)(i[a.id]))))try{await v(j,f,g,a,b,(c=j.id,(0,n.NU)(e?.[g.settingsKey]?.schedules?.[c])),!0===h[j.id])}catch(a){b.failureCache[d=j.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}/${j.id}: ${a.message}`)}}}finally{b.running=!1}}}function x(){B.interval||(w(),B.interval=setInterval(()=>void w(),A.tickIntervalMs),B.interval.unref?.())}function y(){B.interval&&(clearInterval(B.interval),B.interval=null)}function z(a){Object.values(A.providers).some(b=>{let c=a?.[b.settingsKey]||{};return Object.values(c.connections||{}).some(Boolean)||Object.values(c.schedules||{}).some(a=>a?.enabled===!0)})?x():y()}d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=3792,exports.ids=[3792],exports.modules={35346:(a,b,c)=>{c.d(b,{HG:()=>k,NU:()=>g});let d={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function e(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function f(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function g(a){if(!a||!0!==a.enabled)return null;let b=e(a.anchor)||e(d.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?d.timezone:a.timezone,h=f(a.windowHours,d.windowHours,.5,24),i=Math.round(f(a.slotsPerDay,d.slotsPerDay,1,Math.max(1,Math.floor(24/h))));return{enabled:!0,anchor:c,timezone:g,windowHours:h,slotsPerDay:i}}function h(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function i(a,b){let c=h(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function j(a,b){let{hour:c,minute:d}=e(a.anchor),f=h(b,a.timezone),g=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=i(g,f),j=g-h,k=i(j,f);return k===h?j:g-k}({year:f.year,month:f.month,day:f.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let f,i;return{key:(e=a.timezone,f=h(b,e),i=`${f.year}-${String(f.month).padStart(2,"0")}-${String(f.day).padStart(2,"0")}`,`${i}#${d}`),index:d,at:g+d*a.windowHours*36e5}})}function k(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=g(a);return c?[...j(c,b-864e5),...j(c,b),...j(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}},48595:(a,b,c)=>{c.d(b,{oc:()=>g});var d=c(90053),e=c(36633),f=c(14372);new Set(Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a)),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),d.rE;let g={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},73792:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{configureQuotaAutoPing:()=>z,runQuotaAutoPingTick:()=>w,startQuotaAutoPing:()=>x,stopQuotaAutoPing:()=>y});var e=c(5210),f=c(70321),g=c(93181),h=c(65333),i=c(30395),j=c(46956),k=c(63993),l=c(46455),m=c(48595),n=c(35346),o=a([e,h,l]);[e,h,l]=o.then?(await o)():o;let A=m.oc,B=globalThis.__zevaiQuotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{}};function p(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function q(a,b=null){let c="string"==typeof a&&a.trim()?Number(a):a;return Number.isFinite(c)?c:b}function r(a){if(!a||!0===a.unlimited)return!1;let b=q(a.remaining);if(null!==b)return b<=0;let c=q(a.used),d=q(a.total);return null!==d&&d>0&&null!==c&&c>=d}function s(a,b,c=Date.now()){if(!b)return!1;let d=new Date(a.lastPingAt).getTime();return Number.isFinite(d)&&c-d<b}async function t(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;!(await b.read()).done;);}finally{b.releaseLock?.()}}async function u(a,b,c,d){let e=d.getExecutor("codex"),{response:f}=await e.execute({model:b.pingModel,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:b.pingModel,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});return f.ok?(await t(f),!0):(await f.body?.cancel?.().catch?.(()=>{}),!1)}let C={claude:async function(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...i.xq.claude.headers||{},Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);return e.ok||await e.body?.cancel?.().catch?.(()=>{}),e.ok},codex:u};async function v(a,b,c,d,e,f=null,g=!0){var h,i,j;let k=(h=a.id,`${b}:${h}`),l=e.resetCache[k];if(!f&&!c.pingWhenResetAtSlides&&l){let a=new Date(l).getTime();if(Number.isFinite(a)&&Date.now()<a-A.refreshAheadMs)return}let m=e.failureCache[k];if(m&&Date.now()-m<A.failureCooldownMs)return;let o={connectionProxyEnabled:!0===(i=await d.resolveConnectionProxyConfig(a.providerSpecificData)).connectionProxyEnabled,connectionProxyUrl:i.connectionProxyUrl||"",connectionNoProxy:i.connectionNoProxy||"",vercelRelayUrl:i.vercelRelayUrl||"",strictProxy:!1},q=(await d.refreshAndUpdateCredentials(a,!1,o)).connection,t=await d.getUsageForProvider(q,o),u=t?.quotas||{},w=u[c.quotaKey],x=w?.resetAt;if(x&&(e.resetCache[k]=x),c.skipWhenBlockingQuotaExhausted&&(j=c.quotaKey,Object.entries(u||{}).some(([a,b])=>a!==j&&!String(a).toLowerCase().includes("session")&&r(b)))||r(w))return;let y=Date.now(),z=f?(0,n.HG)(f,y):null,B=!!z&&q.lastPingedSlotKey!==z.key;if(B){if(s(q,c.minPingIntervalMs,y))return}else{if(!g||!x)return;let a=p(x),b=q.lastPingedResetKey||p(q.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){if(!b)return!1;let d=new Date(b).getTime(),e=new Date(c).getTime();return Number.isFinite(d)&&Number.isFinite(e)&&e-d>=(a.resetAtDriftMs||0)}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-A.pingLeadMs}(c,l,x,y)||s(q,c.minPingIntervalMs,y)||b===a)return}let D=x?p(x):null;if(!await C[b](q,c,o,d)){e.failureCache[k]=Date.now();return}delete e.failureCache[k];let E=new Date().toISOString();await d.updateProviderConnection(q.id,{...x?{lastPingedResetAt:x,lastPingedResetKey:D}:{},...B?{lastPingedSlotKey:z.key}:{},lastPingAt:E})}async function w(a={getSettings:f.mt,getProviderConnections:f.getProviderConnections,updateProviderConnection:f.updateProviderConnection,resolveConnectionProxyConfig:k.B,refreshAndUpdateCredentials:l.qX,getUsageForProvider:g.my,proxyAwareFetch:j.Fm,getExecutor:h.SB},b=B){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(A.providers)){var c,d;let h=e?.[g.settingsKey]?.connections||{},i=e?.[g.settingsKey]?.schedules||{};if(Object.values(h).some(Boolean)||Object.values(i).some(a=>a?.enabled===!0))for(let j of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===h[a.id]||null!==(0,n.NU)(i[a.id]))))try{await v(j,f,g,a,b,(c=j.id,(0,n.NU)(e?.[g.settingsKey]?.schedules?.[c])),!0===h[j.id])}catch(a){b.failureCache[d=j.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}/${j.id}: ${a.message}`)}}}finally{b.running=!1}}}function x(){B.interval||(w(),B.interval=setInterval(()=>void w(),A.tickIntervalMs),B.interval.unref?.())}function y(){B.interval&&(clearInterval(B.interval),B.interval=null)}function z(a){Object.values(A.providers).some(b=>{let c=a?.[b.settingsKey]||{};return Object.values(c.connections||{}).some(Boolean)||Object.values(c.schedules||{}).some(a=>a?.enabled===!0)})?x():y()}d()}catch(a){d(a)}})}};
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=3966,exports.ids=[3966],exports.modules={83966:(a,b,c)=>{c.d(b,{dM:()=>d});let d={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"},"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"},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:`{
1
+ "use strict";exports.id=3966,exports.ids=[3966],exports.modules={83966:(a,b,c)=>{c.d(b,{dM:()=>d});let d={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:`{
2
2
  "apiBase": "{{baseUrl}}",
3
3
  "title": "{{model}}",
4
4
  "model": "{{model}}",
@@ -20,7 +20,11 @@ amp --model "{{model}}"
20
20
  "model": {
21
21
  "name": "{{model}}"
22
22
  }
23
- }`}},"deepseek-tui":{id:"deepseek-tui",name:"DeepSeek TUI",image:"/providers/deepseek-tui.png",color:"#4D6BFE",description:"DeepSeek Terminal Coding Agent (Rust TUI)",docsUrl:"https://github.com/DeepSeek-TUI/DeepSeek-TUI",configType:"custom",defaultCommand:"deepseek",modelAliases:["deepseek-v4-pro","deepseek-v4-flash","deepseek-chat","deepseek-reasoner"],defaultModels:[{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",alias:"deepseek-v4-pro"},{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",alias:"deepseek-v4-flash"},{id:"deepseek-chat",name:"DeepSeek V3 Chat",alias:"deepseek-chat"}],notes:[{type:"info",text:"DeepSeek TUI uses ~/.deepseek/config.toml for configuration. ZevaiRouter will update the provider to 'openai' mode with your base_url, api_key, and model."},{type:"warning",text:"Config path: Linux/macOS ~/.deepseek/config.toml • Windows %USERPROFILE%\\.deepseek\\config.toml"}]},jcode:{id:"jcode",name:"jcode",image:"/providers/jcode.png",color:"#FF6B35",description:"High-performance Rust-based coding agent harness",configType:"custom",docsUrl:"https://github.com/1jehuang/jcode",notes:[{type:"info",text:"jcode is a Rust-based coding agent with semantic memory, multi-agent swarms, and extreme performance (27.8 MB RAM, 14ms boot)."},{type:"info",text:"Configure zevairouter as an OpenAI-compatible provider to route all jcode requests through zevairouter's optimization layer."},{type:"warning",text:"Requires jcode installed. Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash"}],defaultModels:[{id:"claude-opus-4-7",name:"Claude Opus 4.7",alias:"opus",defaultValue:"cc/claude-opus-4-7"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",alias:"sonnet",defaultValue:"cc/claude-sonnet-4-6"},{id:"gpt-5.6",name:"GPT 5.6",alias:"gpt5",defaultValue:"cx/gpt-5.6"},{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro",alias:"gemini",defaultValue:"gemini/gemini-3.1-pro"}]},omp:{id:"omp",name:"OMP",image:"/providers/omp.png",color:"#7C3AED",description:"oh-my-pi coding agent (omp CLI)",configType:"custom",notes:[{type:"info",text:"Writes only providers.zevai into ~/.omp/agent/models.yml; other providers and comments are preserved. config.yml is not touched."}]},openbot:{id:"openbot",name:"OpenBot",image:"/providers/openbot.png",color:"#2563EB",description:"OpenBot desktop app (custom endpoints)",configType:"custom",notes:[{type:"info",text:"Rewrites only the model list of OpenBot endpoints that already point at this router. The endpoint's API key (sealed by the OS keychain) and every other endpoint stay unchanged."},{type:"warning",text:"OpenBot reads endpoints only at start and allows 64 models per endpoint. Quit OpenBot before syncing, then open it again."}]},pi:{id:"pi",name:"Pi",image:"/providers/pi.svg",color:"#6366F1",description:"Pi coding agent. Writes providers.zevai into ~/.pi/agent/models.json.",configType:"custom",docsUrl:"https://pi.dev",notes:[{type:"info",text:"After Apply, open Pi and run /model to pick the ZevaiRouter model."}]},crush:{id:"crush",name:"Crush",icon:"terminal",color:"#FB923C",description:"Charm Crush terminal coding agent. Writes providers.zevai into ~/.config/crush/crush.json.",configType:"custom",docsUrl:"https://github.com/charmbracelet/crush"},forge:{id:"forge",name:"ForgeCode",image:"/providers/forge.png",color:"#F59E0B",description:"ForgeCode CLI. Writes the openai table in ~/.forge/config.toml.",configType:"custom",docsUrl:"https://github.com/antinomyhq/forge"},smelt:{id:"smelt",name:"Smelt",image:"/providers/smelt.svg",color:"#EF4444",description:"Smelt CLI. Writes ~/.smelt/config.json and marks it managed by ZevaiRouter.",configType:"custom"},codewhale:{id:"codewhale",name:"CodeWhale",image:"/providers/codewhale.svg",color:"#0EA5E9",description:"CodeWhale CLI. Writes the openai table in ~/.codewhale/config.toml.",configType:"custom"},opendesign:{id:"opendesign",name:"OpenDesign",image:"/providers/opendesign.png",color:"#7C3AED",description:"Design skills pack for Claude Code, Cursor, Codex, Gemini CLI, and OpenCode.",docsUrl:"https://github.com/manalkaff/opendesign",configType:"guide",notes:[{type:"info",text:"OpenDesign inherits the host agent's model. If that host already points at ZevaiRouter, /opendesign traffic does too."}],guideSteps:[{step:1,title:"Install the plugin",desc:"Use the command for your host from the block below."},{step:2,title:"Point the host at ZevaiRouter",desc:"No extra OpenDesign key. The host's existing base URL and API key are reused."},{step:3,title:"Start designing",desc:"Invoke it from the host agent.",value:"/opendesign make a 10-slide pitch deck",copyable:!0}],codeBlock:{language:"bash",code:`# Claude Code
23
+ }`}},"deepseek-tui":{id:"deepseek-tui",name:"DeepSeek TUI",image:"/providers/deepseek-tui.png",color:"#4D6BFE",description:"DeepSeek Terminal Coding Agent (Rust TUI)",docsUrl:"https://github.com/DeepSeek-TUI/DeepSeek-TUI",configType:"custom",defaultCommand:"deepseek",modelAliases:["deepseek-v4-pro","deepseek-v4-flash","deepseek-chat","deepseek-reasoner"],defaultModels:[{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",alias:"deepseek-v4-pro"},{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",alias:"deepseek-v4-flash"},{id:"deepseek-chat",name:"DeepSeek V3 Chat",alias:"deepseek-chat"}],notes:[{type:"info",text:"DeepSeek TUI uses ~/.deepseek/config.toml for configuration. ZevaiRouter will update the provider to 'openai' mode with your base_url, api_key, and model."},{type:"warning",text:"Config path: Linux/macOS ~/.deepseek/config.toml • Windows %USERPROFILE%\\.deepseek\\config.toml"}]},devin:{id:"devin",name:"Devin CLI",image:"/providers/devin-cli.png",color:"#6366F1",description:"Cognition Devin CLI — local binary called by the Devin CLI provider via ACP/stdio",configType:"guide",installUrl:"https://cli.devin.ai",notes:[{type:"info",text:"This is a local dependency, not a routed CLI. The Devin CLI provider spawns `devin acp --agent-type summarizer` and relays its output."},{type:"warning",text:"Install the Devin CLI and run `devin auth login` — without it, the provider returns a spawn error on first request."}],guideSteps:[{step:1,title:"Install Devin CLI",desc:"Install via the official installer at cli.devin.ai.",docsUrl:"https://cli.devin.ai"},{step:2,title:"Authenticate",desc:"Log in once so the binary stores its own credentials."},{step:3,title:"Use the provider",desc:"Pick any Devin CLI model under the Providers tab — no API key field needed."}],codeBlock:{language:"bash",code:`# Install Devin CLI (see https://cli.devin.ai for options)
24
+ devin auth login
25
+
26
+ # Verify detection (optional)
27
+ devin --version`}},jcode:{id:"jcode",name:"jcode",image:"/providers/jcode.png",color:"#FF6B35",description:"High-performance Rust-based coding agent harness",configType:"custom",docsUrl:"https://github.com/1jehuang/jcode",notes:[{type:"info",text:"jcode is a Rust-based coding agent with semantic memory, multi-agent swarms, and extreme performance (27.8 MB RAM, 14ms boot)."},{type:"info",text:"Configure zevairouter as an OpenAI-compatible provider to route all jcode requests through zevairouter's optimization layer."},{type:"warning",text:"Requires jcode installed. Install via: curl -fsSL https://raw.githubusercontent.com/1jehuang/jcode/master/scripts/install.sh | bash"}],defaultModels:[{id:"claude-opus-4-7",name:"Claude Opus 4.7",alias:"opus",defaultValue:"cc/claude-opus-4-7"},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",alias:"sonnet",defaultValue:"cc/claude-sonnet-4-6"},{id:"gpt-5.6",name:"GPT 5.6",alias:"gpt5",defaultValue:"cx/gpt-5.6"},{id:"gemini-3.1-pro",name:"Gemini 3.1 Pro",alias:"gemini",defaultValue:"gemini/gemini-3.1-pro"}]},omp:{id:"omp",name:"Oh My Pi",image:"/providers/omp.png",color:"#EC4899",description:"Oh My Pi terminal AI agent with auto-discovery support",configType:"custom",docsUrl:"https://github.com/can1357/oh-my-pi",notes:[{type:"info",text:"Writes only providers.zevai into ~/.omp/agent/models.yml; other providers and comments are preserved. config.yml is not touched."}]},openbot:{id:"openbot",name:"OpenBot",image:"/providers/openbot.png",color:"#2563EB",description:"OpenBot desktop app (custom endpoints)",configType:"custom",notes:[{type:"info",text:"Rewrites only the model list of OpenBot endpoints that already point at this router. The endpoint's API key (sealed by the OS keychain) and every other endpoint stay unchanged."},{type:"warning",text:"OpenBot reads endpoints only at start and allows 64 models per endpoint. Quit OpenBot before syncing, then open it again."}]},pi:{id:"pi",name:"Pi",image:"/providers/pi.svg",color:"#6366F1",description:"Pi coding agent. Writes providers.zevai into ~/.pi/agent/models.json.",configType:"custom",docsUrl:"https://pi.dev",notes:[{type:"info",text:"After Apply, open Pi and run /model to pick the ZevaiRouter model."}]},crush:{id:"crush",name:"Crush",icon:"terminal",color:"#FB923C",description:"Charm Crush terminal coding agent. Writes providers.zevai into ~/.config/crush/crush.json.",configType:"custom",docsUrl:"https://github.com/charmbracelet/crush"},forge:{id:"forge",name:"ForgeCode",image:"/providers/forge.png",color:"#F59E0B",description:"ForgeCode CLI. Writes the openai table in ~/.forge/config.toml.",configType:"custom",docsUrl:"https://github.com/antinomyhq/forge"},smelt:{id:"smelt",name:"Smelt",image:"/providers/smelt.svg",color:"#EF4444",description:"Smelt CLI. Writes ~/.smelt/config.json and marks it managed by ZevaiRouter.",configType:"custom"},codewhale:{id:"codewhale",name:"CodeWhale",image:"/providers/codewhale.svg",color:"#0EA5E9",description:"CodeWhale CLI. Writes the openai table in ~/.codewhale/config.toml.",configType:"custom"},opendesign:{id:"opendesign",name:"OpenDesign",image:"/providers/opendesign.png",color:"#7C3AED",description:"Design skills pack for Claude Code, Cursor, Codex, Gemini CLI, and OpenCode.",docsUrl:"https://github.com/manalkaff/opendesign",configType:"guide",notes:[{type:"info",text:"OpenDesign inherits the host agent's model. If that host already points at ZevaiRouter, /opendesign traffic does too."}],guideSteps:[{step:1,title:"Install the plugin",desc:"Use the command for your host from the block below."},{step:2,title:"Point the host at ZevaiRouter",desc:"No extra OpenDesign key. The host's existing base URL and API key are reused."},{step:3,title:"Start designing",desc:"Invoke it from the host agent.",value:"/opendesign make a 10-slide pitch deck",copyable:!0}],codeBlock:{language:"bash",code:`# Claude Code
24
28
  /plugin marketplace add manalkaff/opendesign
25
29
  /plugin install opendesign@opendesign
26
30