zevairouter 1.1.71 → 1.1.73

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 (587) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +7 -7
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  70. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  73. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  74. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  76. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  77. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  90. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  345. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  413. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  414. package/cli/app/.next-cli-build/server/app/callback.rsc +4 -4
  415. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  416. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  417. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  418. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  419. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +4 -4
  420. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +4 -4
  421. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +4 -4
  422. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
  423. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  424. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +4 -4
  425. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +4 -4
  426. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +4 -4
  427. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  428. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  429. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +4 -4
  430. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +4 -4
  431. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +4 -4
  432. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  433. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  434. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +4 -4
  435. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +4 -4
  436. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +4 -4
  437. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  438. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  439. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +4 -4
  440. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +4 -4
  441. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +4 -4
  442. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +2 -2
  443. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  444. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +4 -4
  445. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +4 -4
  446. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +4 -4
  447. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  448. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  449. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +4 -4
  450. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +4 -4
  451. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +4 -4
  452. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  453. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  454. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +4 -4
  455. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +4 -4
  456. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +4 -4
  457. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  458. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  459. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +4 -4
  460. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +4 -4
  461. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +4 -4
  462. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
  463. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  464. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +4 -4
  465. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
  466. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +4 -4
  467. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  468. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  469. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +4 -4
  470. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
  471. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +4 -4
  472. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  473. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  474. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
  475. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  476. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
  477. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  478. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  479. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +4 -4
  480. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +4 -4
  481. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +4 -4
  482. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  483. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  484. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +4 -4
  485. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +4 -4
  486. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +4 -4
  487. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  488. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  489. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
  490. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  491. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
  492. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  493. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  494. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  495. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
  496. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  497. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  498. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  499. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +4 -4
  500. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +4 -4
  501. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +4 -4
  502. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  503. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  504. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +4 -4
  505. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +4 -4
  506. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +4 -4
  507. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  508. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  509. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +4 -4
  510. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
  511. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +4 -4
  512. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  513. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  514. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +4 -4
  515. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +4 -4
  516. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +4 -4
  517. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  518. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  519. package/cli/app/.next-cli-build/server/app/dashboard.rsc +4 -4
  520. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +4 -4
  521. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +4 -4
  522. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  523. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  524. package/cli/app/.next-cli-build/server/app/index.rsc +4 -4
  525. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  526. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  527. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  528. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  529. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  530. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  531. package/cli/app/.next-cli-build/server/app/landing.rsc +4 -4
  532. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  533. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  534. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  535. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  537. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  538. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  539. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  540. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  541. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  542. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  543. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  544. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  545. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  546. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  547. package/cli/app/.next-cli-build/server/app-paths-manifest.json +7 -7
  548. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  549. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  550. package/cli/app/.next-cli-build/server/chunks/24.js +1 -1
  551. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  552. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  553. package/cli/app/.next-cli-build/server/chunks/4128.js +1 -1
  554. package/cli/app/.next-cli-build/server/chunks/4730.js +1 -1
  555. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  556. package/cli/app/.next-cli-build/server/chunks/5330.js +61 -44
  557. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  558. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  559. package/cli/app/.next-cli-build/server/chunks/5819.js +357 -0
  560. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  561. package/cli/app/.next-cli-build/server/chunks/627.js +1 -1
  562. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  563. package/cli/app/.next-cli-build/server/chunks/7319.js +402 -61
  564. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  565. package/cli/app/.next-cli-build/server/chunks/7525.js +1 -1
  566. package/cli/app/.next-cli-build/server/chunks/7557.js +1 -1
  567. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
  568. package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
  569. package/cli/app/.next-cli-build/server/chunks/9609.js +1 -1
  570. package/cli/app/.next-cli-build/server/chunks/9618.js +1 -1
  571. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  572. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  573. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  574. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  575. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  576. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  577. package/cli/app/.next-cli-build/static/chunks/{5497-4d168d9cd210bd34.js → 5497-71a02c6639ddb92b.js} +1 -1
  578. package/cli/app/.next-cli-build/static/chunks/{620-45fd6acdac66cff7.js → 620-5b28c7cb880945f8.js} +1 -1
  579. package/cli/app/.next-cli-build/static/css/a0638083939bf113.css +1 -0
  580. package/cli/app/CHANGELOG.md +14 -0
  581. package/cli/app/package.json +1 -1
  582. package/cli/package.json +1 -1
  583. package/package.json +1 -1
  584. package/cli/app/.next-cli-build/server/chunks/3184.js +0 -33
  585. package/cli/app/.next-cli-build/static/css/7a10846ca034238f.css +0 -1
  586. /package/cli/app/.next-cli-build/static/{tpHxuRs-vEIWrvVD8nkv3 → WZO5flg0UOsDeLokBauKB}/_buildManifest.js +0 -0
  587. /package/cli/app/.next-cli-build/static/{tpHxuRs-vEIWrvVD8nkv3 → WZO5flg0UOsDeLokBauKB}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"node":{"0047d78ea9d8e3080c158641a454be464a8a37780f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false}},"filename":"app/api/cli-tools/all-statuses/route.js","exportedName":"GET"},"00b14e354854a9ffae8f6649366fb75c419d9c6287":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"33845","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"GET"},"00b19a7108e2eef45b6f99dc6eb26be31cd17ce6fe":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"33845","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"DELETE"},"40af8234f96bc9a20f29c20f9e741d3ac7e60422e8":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"33845","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"POST"},"00bf13728e234fafb3396e3eb346e816813c65b960":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"71197","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"DELETE"},"00e57a1ecf4e75177a13e6b6e5ba137e863fcc43e7":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"71197","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"GET"},"4025210316d3143c358c2c3e59234e8573ad598aac":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"71197","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"POST"},"00b33ed997e7654723b7dd91206aac4f5ed4e43536":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"62358","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"DELETE"},"00efc2e92ca5ec8a11da25a92e02eeb82da6d0e7c0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"62358","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"GET"},"408fab72c360d2496134ace640a73fc7dd53b79b07":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"62358","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"POST"},"00750ee11c630f76fd83140cbf4aeace5c07677668":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"85230","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"GET"},"4077e7109be78a5c53a91549f08babfbf3268ec4d4":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"85230","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"DELETE"},"40b407b3a0cc83abb3c0c7773ec6c43414624765c3":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"85230","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"PATCH"},"40c6f6e275e0c7b837d21024c6f704fa8b2c3822da":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"85230","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"POST"},"001e548ab829f23cbcd154ef9f459b16fd486748cc":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"66244","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"DELETE"},"005882d28c6e576a807883626c391ed78e45fc6cb9":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"66244","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"GET"},"40c8e99c79fc57b5ec675aac93a48f2b87b304a90d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"66244","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"POST"},"0081a2c0fcd43db3371932233f84046297689727fd":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"45546","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"DELETE"},"0087f6f1ecfcf0d8f7f28f7e1ec942b37e14c314c4":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"45546","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"GET"},"40b77c4e87f8aa011bca3eb599f065d8e24465c02d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"45546","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"POST"},"400cadeb5f34beda0504e432e13b7eae117517e26f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"18911","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"DELETE"},"40e0bf923278efee26bad08eaabd415baf05db1c64":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"18911","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"POST"},"40f77854bf520a4cc07caafaca919a42b10d58d3c2":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"18911","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"GET"},"002d5ba0520f7807f15fa18f73728ecfe880f3809b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"98713","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"GET"},"003d1c4f9400e3eac65cdd753408a73365bdb0252f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"98713","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"DELETE"},"402465fc70f5a31cf9426cc0196b66c8d6399937b4":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"98713","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"POST"},"0099a557c217499f8b3a5af94628e29fc9823e9378":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"92339","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"GET"},"00b56119808f251ce5b6eebe507e87f8ba2058f6b5":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"92339","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"DELETE"},"40281e4945ba8fe5c85af955380eda70fd99de6de0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"92339","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"POST"},"00174517708541f4da196828e3bdca6765d66db8ee":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"41429","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"DELETE"},"0033d6a438dc186ae7e43741e34412930e9e7255f2":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"41429","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"GET"},"408efdad2c81a3f0e68cd5370b0ee29cc327944623":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"41429","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"POST"},"003b6130d6749f4160cac1f06822b5aa5ad4083b10":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"57149","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"DELETE"},"0040347eaf99616ea3cc7ab26ff057c5d017051db9":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"57149","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"GET"},"40e1b1d980cc1d8b4291b568ca5b6b045ff99610d8":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"57149","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"POST"},"0001d45869966c7c1617b509f6d53b2a69a013e33a":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"76051","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"DELETE"},"00a703d32492d2edca854182cba4ce1e6f6a00cb06":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"76051","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"GET"},"4079e9334b7b2d45950b105fb87601d8393ff9b6f0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"76051","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"POST"},"005b6d94e853d58448c41383c5998f40fe62527745":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"79281","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"GET"},"0071ad4035d787dbd1a62743e2f0ff7b9b761b08f4":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"79281","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"DELETE"},"40503632bd1ae97ed6d15fc7a3d707c5e5aac84fea":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"79281","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"POST"},"0013b8a6c2493c61b07030bd2204a41772e9b991a8":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"54808","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"GET"},"00e66bb3e1ba7312226d7e11c150c607e3d4784b16":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"54808","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"DELETE"},"40ff611251119a7c1278de49c9ea03c0c87b486edd":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"54808","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"POST"},"407eda37b0bffd28180ebc2fdbc9b4e7f8407f3737":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/openbot-settings/route":{"moduleId":"32779","async":false}},"filename":"app/api/cli-tools/openbot-settings/route.js","exportedName":"GET"},"40bcffb0f174601d334d1871687d68014ec2feabc4":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/openbot-settings/route":{"moduleId":"32779","async":false}},"filename":"app/api/cli-tools/openbot-settings/route.js","exportedName":"POST"},"00819f8269025622ad6dbd526fac3e63850937975c":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"84489","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"DELETE"},"40509c0bb180c0f23821f89ecb4e79b8ea8f870f6d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"84489","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"PATCH"},"4052975b6b03e898cb4e9f652a7989392c6f91d38f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"84489","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"GET"},"40d794a04b029ad3a77b2d20c24fdafd63e56f824d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"84489","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"POST"},"004cd4b7fd87515f97263078f3f0e43be4791d9db0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"74113","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"GET"},"00f8e41663fadfe84cd503fa95fe94b9ed7c161ef3":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"74113","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"DELETE"},"40c4ee017ca4f5b568e0f33a39e6ce0beb3fb7ccfa":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"74113","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"POST"},"0037b5c93d1c9a4985e3348e6920b7380f07700d71":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"97366","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"DELETE"},"004adb12f9830d842e9000ed09abea45620349e372":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"97366","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"GET"},"40a0fd00ffcf8f101443da4144fb9b754f6524a637":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"97366","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"POST"},"0004542daebaf975348ada3437910e70a7c2b5a6c3":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"27441","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"DELETE"},"008d2889588fa4919ed5a56ec0681071ba68587add":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"27441","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"GET"},"40dd019678f30f9671ae03c2963f992eaa032efe65":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"27441","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"POST"},"006fefdb4b719364ffa97958339d0d83240ca4f42d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"5334","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"GET"},"0083a45bdf924b78e9d2eef80690be857cc57eb0de":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"5334","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"DELETE"},"40a8db5a0c28cdbbc76d3821319f40d8491a6d1d8c":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"5334","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"POST"},"007435237b43179f30c9782a04e321c29c69a5e8ee":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"81540","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"GET"},"00fb332548c7980c3f14e4ae9b7e918c7670876a2b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"81540","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"DELETE"},"40e2faab4d5aaa109703cabe520ebac64017dfaed8":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"18652","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"81540","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"POST"},"4055672e0d7ac7ca0a6867df96e411d51f84703f07":{"workers":{"app/api/cli-tools/antigravity-mitm/alias/route":{"moduleId":"52306","async":false}},"filename":"app/api/cli-tools/antigravity-mitm/alias/route.js","exportedName":"PUT"},"4091afa91f57407ba60a90ac0bde47e05cd4a5ccc2":{"workers":{"app/api/cli-tools/antigravity-mitm/alias/route":{"moduleId":"52306","async":false}},"filename":"app/api/cli-tools/antigravity-mitm/alias/route.js","exportedName":"GET"},"405a86a372b86d6fef9ff703fb248c3485ec11acb3":{"workers":{"app/api/cli-tools/cowork-mcp-registry/route":{"moduleId":"46556","async":false}},"filename":"app/api/cli-tools/cowork-mcp-registry/route.js","exportedName":"GET"},"40d49872db119a332f75efcb00183094e2fc7f149a":{"workers":{"app/api/cli-tools/cowork-mcp-tools/route":{"moduleId":"10702","async":false}},"filename":"app/api/cli-tools/cowork-mcp-tools/route.js","exportedName":"POST"},"4022571ff3100192a50fe69f38099e71991c883ad0":{"workers":{"app/api/tunnel/tailscale-install/route":{"moduleId":"61712","async":false}},"filename":"app/api/tunnel/tailscale-install/route.js","exportedName":"POST"},"00fc6d5fce8118971373bf6712138fa54308b98b87":{"workers":{"app/api/cli-tools/devin-settings/route":{"moduleId":"30386","async":false}},"filename":"app/api/cli-tools/devin-settings/route.js","exportedName":"GET"}},"edge":{},"encryptionKey":"KBRIfr6UVe/Y3I3l/wYOKHvJp8G5YNJIgtpeLHnJdnc="}
1
+ {"node":{"00ede9e51f366d600e386e7f54b5e37a1be5f38e7a":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false}},"filename":"app/api/cli-tools/all-statuses/route.js","exportedName":"GET"},"008e80092fc3c3d8f448a9262d1a5d37d211dccb5e":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"41847","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"GET"},"00fb9b33e32c69ebb012685b6ca4635b07ed61e1c2":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"41847","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"DELETE"},"406012d19c32102870c9a9adfc888397df7ceb7440":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/claude-settings/route":{"moduleId":"41847","async":false}},"filename":"app/api/cli-tools/claude-settings/route.js","exportedName":"POST"},"000001acb4a0331c14b14791d3cad037d8f3e0cdd0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"34560","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"GET"},"00b8264991dacc74167c02b9ef330cedbc36b01692":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"34560","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"DELETE"},"4063fa098acc0723e7d8833383184529c5cf45a62a":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codex-settings/route":{"moduleId":"34560","async":false}},"filename":"app/api/cli-tools/codex-settings/route.js","exportedName":"POST"},"005e07499bd09e440f1130f0061d4b74de48335747":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"19777","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"DELETE"},"00fbd6c1eac16a62bb7f0ebfb7cdb3c7aae195d775":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"19777","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"GET"},"407d1d4ad977641019419dcb1776eeaffe1bb1ee8a":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/grok-build-settings/route":{"moduleId":"19777","async":false}},"filename":"app/api/cli-tools/grok-build-settings/route.js","exportedName":"POST"},"001608fadc4a3d93a283c1cfaa206344efb4b069c6":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"62233","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"GET"},"40293664239f58a948126ef3be3ab4a8a9103afe84":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"62233","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"POST"},"403c238bcee79cf25323a7320ae1af86be6d135d81":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"62233","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"DELETE"},"406bff9e3869bb45cd34e8dcb8ce91a97ee64a10f2":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/opencode-settings/route":{"moduleId":"62233","async":false}},"filename":"app/api/cli-tools/opencode-settings/route.js","exportedName":"PATCH"},"00b87a063d2421eeaa942f126bf18bcab342835da5":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"9571","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"GET"},"00e027a3b65c8a0e105a96ff88da610f9048fece13":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"9571","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"DELETE"},"4056672199a486a1954ed1031c2fd4f3fb9cce67b0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/droid-settings/route":{"moduleId":"9571","async":false}},"filename":"app/api/cli-tools/droid-settings/route.js","exportedName":"POST"},"00149466fb2c555bbedb15b98e35a4e31fadfbba7d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"21367","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"GET"},"0044a9cb5833aefaa6ea3cbef9c2da852fc50454b0":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"21367","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"DELETE"},"40ad5e3f2ab369cb4b484b551a79048ba22b5b46cf":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/openclaw-settings/route":{"moduleId":"21367","async":false}},"filename":"app/api/cli-tools/openclaw-settings/route.js","exportedName":"POST"},"40186062299bafa31d53b9a762be9b0c5b0cc36604":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"22582","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"DELETE"},"405e43fa3f8b472988eafebf908aa91a14e47a4f6f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"22582","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"GET"},"40e8d21b8ee6ed3182587108ff95b110a0ac25993b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/hermes-settings/route":{"moduleId":"22582","async":false}},"filename":"app/api/cli-tools/hermes-settings/route.js","exportedName":"POST"},"005dcfdf470e0202893d931bac541ffaa7ecfb787f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"52379","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"DELETE"},"008ec69eacaa730ffc6b890fafe846f96d49e36e8f":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"52379","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"GET"},"40798fb276bca919f42351be35d4a0440567cb4e76":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cowork-settings/route":{"moduleId":"52379","async":false}},"filename":"app/api/cli-tools/cowork-settings/route.js","exportedName":"POST"},"0064f086a1bd13a2492a91ce38d31e3cf7bebad80d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"37380","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"GET"},"00c47f49591a7da90ce77bdf37ea7aa4478e7ec62d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"37380","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"DELETE"},"40ac3ddc4cc52c2d5769165dbe1ff85a79dc2555d3":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/copilot-settings/route":{"moduleId":"37380","async":false}},"filename":"app/api/cli-tools/copilot-settings/route.js","exportedName":"POST"},"005a8bc1c506fdab89c0441fe25e31d290fa0e0ad5":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"89420","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"DELETE"},"00d1138ce06d48692f9f590b7f074048fca24c6769":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"89420","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"GET"},"40e8faedef3ea2fd309edfabc28510be6a5b4db42c":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/cline-settings/route":{"moduleId":"89420","async":false}},"filename":"app/api/cli-tools/cline-settings/route.js","exportedName":"POST"},"000409520650159fdfe6af3fefbbb97ef459e6feb6":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"78146","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"DELETE"},"000b476aace2a55c32072be459ab16d6005f06f2f9":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"78146","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"GET"},"408e29aa9230bdedad33dd17896df79bdba6a50209":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/kilo-settings/route":{"moduleId":"78146","async":false}},"filename":"app/api/cli-tools/kilo-settings/route.js","exportedName":"POST"},"007cbe25f9b5ddb6aeed60456d07a4043d4c7b44db":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"43085","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"DELETE"},"00c859ef37d480e3b31d76ba982be1b3c51785e79c":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"43085","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"GET"},"40a62c892d5e91df00cce13e556a4dd7d69d2396c2":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/deepseek-tui-settings/route":{"moduleId":"43085","async":false}},"filename":"app/api/cli-tools/deepseek-tui-settings/route.js","exportedName":"POST"},"003640bb7ce31ad390ed139a97fe4cd7ddf21590b6":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"96626","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"GET"},"009a5f9ab4a7d94cd17498ed038167c1860df73e07":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"96626","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"DELETE"},"40409a599d9fe26fa257822add1a040651adeab1e8":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/jcode-settings/route":{"moduleId":"96626","async":false}},"filename":"app/api/cli-tools/jcode-settings/route.js","exportedName":"POST"},"005e3c0f0a144bc63219459bdfd18a35a7f77581de":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"970","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"GET"},"00fedab8e3f66b74290b75d0059a8f61273684628c":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"970","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"DELETE"},"400bd7600dbe07779b4b4d36f7e89a98a6b36849af":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/omp-settings/route":{"moduleId":"970","async":false}},"filename":"app/api/cli-tools/omp-settings/route.js","exportedName":"POST"},"4086d13f37333cb8e4ebd8eba6bb88b35d3d35b119":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/openbot-settings/route":{"moduleId":"74454","async":false}},"filename":"app/api/cli-tools/openbot-settings/route.js","exportedName":"GET"},"40ca007816f7976f95d53a4bd6ab18e546156049cb":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/openbot-settings/route":{"moduleId":"74454","async":false}},"filename":"app/api/cli-tools/openbot-settings/route.js","exportedName":"POST"},"00ff06b02faa548fbd7636866160aedd3d78962a8b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"26120","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"DELETE"},"402c78a18fc7c5314530b258ff03e4178c83565b54":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"26120","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"GET"},"4036448f3ffb159a00eae1e312e3718ca109367459":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"26120","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"PATCH"},"4099592134404fa5091f1c8291079d2293c8330b92":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/dsh-settings/route":{"moduleId":"26120","async":false}},"filename":"app/api/cli-tools/dsh-settings/route.js","exportedName":"POST"},"002b6b250dad1d0a6ed3667e8ab960c5f2bef8b05b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"45056","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"GET"},"00d14dd8fc3ba823fa30236a8b2832ff7ffc1001fe":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"45056","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"DELETE"},"40f6486a03ba9c9402077b2b54e9a15c670b9dae28":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/pi-settings/route":{"moduleId":"45056","async":false}},"filename":"app/api/cli-tools/pi-settings/route.js","exportedName":"POST"},"0055feef1e4b345d96279835272f99eeb6ea838018":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"24097","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"DELETE"},"009f499da01676609c6b4da6cb78a0820fbbc2853d":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"24097","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"GET"},"40413f564b795a48e2d8693d8f197e77da647195f7":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/crush-settings/route":{"moduleId":"24097","async":false}},"filename":"app/api/cli-tools/crush-settings/route.js","exportedName":"POST"},"003bcf4d310ae268c129031eea76ea4ad370e0d521":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"87111","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"DELETE"},"00ced1199ae2879aef76341770a9a79f152b1ee15b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"87111","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"GET"},"409b401f7b99ce5060d519dab66b7330df141e5e70":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/forge-settings/route":{"moduleId":"87111","async":false}},"filename":"app/api/cli-tools/forge-settings/route.js","exportedName":"POST"},"007d12b69b562ab4e9275721d8d7274f80b7e333ca":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"38824","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"GET"},"00c0519e3172dbe7ed383d960e2ae5798bde1c207b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"38824","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"DELETE"},"40e56c50bb615e8be6bff130d41965f0c292ec82eb":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/smelt-settings/route":{"moduleId":"38824","async":false}},"filename":"app/api/cli-tools/smelt-settings/route.js","exportedName":"POST"},"007da3cc489a351741de4351c9689cf6e4bcc73c14":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"10329","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"GET"},"00a94771501f71d21a030827072c06a9d6f163b70b":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"10329","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"DELETE"},"40693814f6d5799f85c7429977268e1bca67fe6367":{"workers":{"app/api/cli-tools/all-statuses/route":{"moduleId":"81896","async":false},"app/api/cli-tools/codewhale-settings/route":{"moduleId":"10329","async":false}},"filename":"app/api/cli-tools/codewhale-settings/route.js","exportedName":"POST"},"40997dc51701257de6fcef65927f0e7644241c5c66":{"workers":{"app/api/cli-tools/antigravity-mitm/alias/route":{"moduleId":"93430","async":false}},"filename":"app/api/cli-tools/antigravity-mitm/alias/route.js","exportedName":"PUT"},"40a7f0e2769e609d31232312c6d4aeb2e6d99a3685":{"workers":{"app/api/cli-tools/antigravity-mitm/alias/route":{"moduleId":"93430","async":false}},"filename":"app/api/cli-tools/antigravity-mitm/alias/route.js","exportedName":"GET"},"40193483ab5372b5d8b77714f397ed5a6c8a9ecd13":{"workers":{"app/api/cli-tools/cowork-mcp-registry/route":{"moduleId":"64009","async":false}},"filename":"app/api/cli-tools/cowork-mcp-registry/route.js","exportedName":"GET"},"401d47a7945d7b91b9c255e18032d2e0dfbdef71ad":{"workers":{"app/api/cli-tools/cowork-mcp-tools/route":{"moduleId":"24222","async":false}},"filename":"app/api/cli-tools/cowork-mcp-tools/route.js","exportedName":"POST"},"40a7e79103ffb68fc3639824178970d44da29808ab":{"workers":{"app/api/tunnel/tailscale-install/route":{"moduleId":"47365","async":false}},"filename":"app/api/tunnel/tailscale-install/route.js","exportedName":"POST"},"004c3b4a4e353f2a98dde86ce8acb27d2478c615a2":{"workers":{"app/api/cli-tools/devin-settings/route":{"moduleId":"93739","async":false}},"filename":"app/api/cli-tools/devin-settings/route.js","exportedName":"GET"}},"edge":{},"encryptionKey":"n9FqlEvIZkh3aqQVPGmx2l1Hx12hcMl0HBYK22Udujw="}
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{98:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(31474);function i({label:e,options:t=[],value:r,onChange:n,placeholder:o="Select an option",error:d,hint:c,disabled:u=!1,required:m=!1,className:x,selectClassName:p,...h}){let b=(0,a.useId)(),f=h.id||b,g=`${f}-error`,v=`${f}-hint`,j=[h["aria-describedby"],d&&g,c&&v].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5",x),children:[e&&(0,s.jsxs)("label",{htmlFor:f,className:"text-sm font-medium text-text-main",children:[e,m&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("select",{id:f,value:r,onChange:n,disabled:u,required:m,"aria-invalid":!!d||void 0,"aria-describedby":j,className:(0,l.cn)("w-full py-2.5 px-3 pr-10 text-sm text-text-main","bg-surface-2 border border-transparent rounded-[10px] appearance-none","focus:outline-none focus:border-brand-500/40 focus-visible:ring-2 focus-visible:ring-brand-500/30","transition-[border-color,box-shadow,background-color] duration-150 disabled:opacity-50 disabled:cursor-not-allowed motion-reduce:transition-none","text-[16px] sm:text-sm",d&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...h,children:[(0,s.jsx)("option",{value:"",disabled:!0,children:o}),t.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,s.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),d&&(0,s.jsxs)("p",{id:g,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),d]}),c&&!d&&(0,s.jsx)("p",{id:v,className:"text-xs text-text-muted",children:c})]})}},929:(e,t,r)=>{r.d(t,{y:()=>d});var s=r(12115),a=r(67899),l=r(1791);let i=null,n=null;function o(){return i?Promise.resolve(i):n||(n=fetch("/api/models").then(async e=>{if(!e.ok)throw Error(`models ${e.status}`);return i=function(e){let t={},r={};for(let s of e||[])s.caps&&(s.fullModel&&(t[s.fullModel]=s.caps),s.routedModel&&(t[s.routedModel]=s.caps),s.model&&(r[s.model]=s.caps));return{byFull:t,byId:r}}((await e.json()).models)}).catch(()=>({byFull:{},byId:{}})).finally(()=>{n=null}))}function d(){let[e,t]=(0,s.useState)(()=>i?.byFull||{}),[r,n]=(0,s.useState)(()=>i?.byId||{});return(0,s.useEffect)(()=>{let e=!0,r=r=>{e&&(t(r.byFull||{}),n(r.byId||{}))};i?r(i):o().then(r);let s=()=>{i=null,o().then(r)};return window.addEventListener("customModelChanged",s),()=>{e=!1,window.removeEventListener("customModelChanged",s)}},[]),{getCaps:(0,s.useCallback)(t=>(function(e,t,r){if(!r)return null;if(e[r])return e[r];let s=r.includes("/")?r.slice(r.indexOf("/")+1):r;if(t[s])return t[s];let i=r.includes("/")?r.slice(0,r.indexOf("/")):null,n=i?l.js[i]||i:null,o=(0,a.nl)(n,s);return{vision:o.vision,pdf:o.pdf,audioInput:o.audioInput,videoInput:o.videoInput,search:o.search,reasoning:o.reasoning,contextWindow:o.contextWindow,maxOutput:o.maxOutput,thinkingFormat:o.thinkingFormat}})(e,r,t),[e,r])}}},1620:(e,t,r)=>{r.d(t,{D:()=>o});var s=r(12115),a=r(90085);function l(e){let t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function n(){return!1}function o(){let{theme:e,setTheme:t,toggleTheme:r,initTheme:o}=(0,a.A)(),d=(0,s.useSyncExternalStore)(l,i,n);(0,s.useEffect)(()=>{o()},[o]),(0,s.useEffect)(()=>{if("system"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>o();return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e,o]);let c="dark"===e||"system"===e&&d;return{theme:e,setTheme:t,toggleTheme:r,isDark:c}}},4823:(e,t,r)=>{r.d(t,{default:()=>m});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(84588),o=r(98),d=r(56061);let c="__none__",u=[{value:"none",label:"None (single pool)"},{value:"round-robin",label:"Round-robin"},{value:"random",label:"Random"}];function m({providerId:e}){let[t,r]=(0,a.useState)([]),[l,i]=(0,a.useState)(c),[x,p]=(0,a.useState)("none"),[h,b]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let t=!1;return Promise.all([fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.ok?e.json():{proxyPools:[]}),fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{})]).then(([s,a])=>{if(t)return;r(s.proxyPools||[]);let l=(a.providerStrategies||{})[e]||{};i(l.proxyPoolId||c),p(l.rotateStrategy||"none")}).catch(()=>{}),()=>{t=!0}},[e]);let v=(0,a.useCallback)(async(t,r)=>{b(!0);try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},l={...a[e]||{}};t===c?delete l.proxyPoolId:l.proxyPoolId=t,"none"===r?delete l.rotateStrategy:l.rotateStrategy=r;let i={...a};0===Object.keys(l).length?delete i[e]:i[e]=l,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:i})}),g(!0),setTimeout(()=>g(!1),1500)}catch(e){console.log("Save proxy config error:",e)}finally{b(!1)}},[e]),j=t.length>=2,y="none"!==x;return(0,s.jsxs)(n.default,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-green-500/10 text-green-500",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"No authentication required"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"This provider is ready to use. Optionally route requests through a proxy pool to bypass IP-based limits."})]}),f&&(0,s.jsx)(d.default,{variant:"success",size:"sm",children:"Saved"})]}),(0,s.jsx)(o.default,{label:"Proxy Pool",value:l,onChange:e=>{var t;i(t=e.target.value),v(t,x)},disabled:h||y,options:[{value:c,label:"None (direct)"},...t.map(e=>({value:e.id,label:e.name}))],hint:y?"Pool selector is ignored when rotation is active — all active pools are used.":void 0}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-text-main",children:"Rotation Strategy"}),(0,s.jsx)("select",{value:x,onChange:e=>{var t;p(t=e.target.value),v(l,t)},disabled:h,className:"py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all disabled:opacity-50",children:u.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"none"!==e.value&&!j,children:e.label},e.value))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:j?y?"round-robin"===x?`Rotating through all ${t.length} active pools in order. State is in-memory (resets on restart).`:`Picking a random pool from ${t.length} active pools each request.`:"Uses the selected pool above. Set to Round-robin or Random to rotate across all active pools.":"Need at least 2 active proxy pools for rotation."})]})]})}m.propTypes={providerId:i().string.isRequired}},7648:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(95155),a=r(12115),l=r(73321),i=r(65921),n=r(92622),o=r(8823),d=r(91852);function c({children:e}){let[t,r]=(0,a.useState)(!1),u=(0,a.useRef)(null),m=(0,a.useRef)(null),x=(0,l.usePathname)(),p=(0,i.i)(e=>e.notifications),h=(0,i.i)(e=>e.removeNotification),b="/dashboard/playground"===x||"/dashboard/basic-chat"===x,f="/dashboard/terminal"===x,g=b||f;return(0,a.useEffect)(()=>{if(!t)return;let e=m.current;u.current?.focus();let s=e=>{if("Escape"===e.key)return void r(!1);if("Tab"!==e.key||!u.current)return;let t=[...u.current.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')],s=t[0],a=t[t.length-1];s?e.shiftKey&&(document.activeElement===s||document.activeElement===u.current)?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),s.focus()):e.preventDefault()};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s),e?.focus()}},[t]),(0,s.jsxs)("div",{className:"dashboard-shell relative isolate flex h-screen w-full overflow-hidden bg-bg",children:[(0,s.jsx)(d.A,{quiet:!0}),(0,s.jsx)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:rounded-lg focus:bg-surface focus:px-4 focus:py-2 focus:text-text-main focus:shadow-lg",children:"Skip to main content"}),(0,s.jsx)("div",{"aria-live":"polite","aria-relevant":"additions text",className:"fixed top-3 right-3 z-[80] flex w-[min(calc(100vw-1.5rem),380px)] flex-col gap-2 sm:top-4 sm:right-4",children:p.map(e=>{var t;let r="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,s.jsx)("div",{role:"error"===e.type?"alert":"status",className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${r.wrapper}`,children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px] leading-5",children:r.icon}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,s.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:e.title}):null,(0,s.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:e.message})]}),e.dismissible?(0,s.jsx)("button",{type:"button",onClick:()=>h(e.id),className:"-m-2 grid size-11 shrink-0 place-items-center rounded-lg text-current/70 transition-colors hover:bg-current/10 hover:text-current focus:outline-none focus-visible:ring-2 focus-visible:ring-current/40 sm:-m-1 sm:size-9","aria-label":"Dismiss notification",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},e.id)})}),t&&(0,s.jsx)("button",{type:"button",className:"fixed inset-0 z-40 bg-black/30 backdrop-blur-[1px] lg:hidden",onClick:()=>r(!1),"aria-label":"Close dashboard navigation"}),(0,s.jsx)("div",{className:"hidden lg:flex",children:(0,s.jsx)(n.default,{})}),t&&(0,s.jsx)("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":"Dashboard navigation",tabIndex:-1,className:"fixed inset-y-0 left-0 z-50 h-dvh min-h-0 max-h-dvh lg:hidden focus:outline-none",children:(0,s.jsx)(n.default,{onClose:()=>r(!1)})}),(0,s.jsxs)("main",{id:"main-content",tabIndex:-1,className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300 isolate",children:[g?(0,s.jsxs)("div",{className:"lg:hidden shrink-0 flex min-h-12 items-center gap-2 px-2 py-1 border-b border-border-subtle bg-surface/60",children:[(0,s.jsx)("button",{ref:m,type:"button",onClick:()=>r(!0),className:"flex size-11 shrink-0 items-center justify-center rounded-lg text-text-main hover:bg-surface-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40","aria-label":"Open dashboard navigation",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}),(0,s.jsx)("span",{className:"text-sm font-semibold",children:f?"Terminal":"Playground"})]}):(0,s.jsx)(o.default,{menuButtonRef:m,onMenuClick:()=>r(!0)},x),(0,s.jsx)("div",{className:`dashboard-content-gutter flex-1 overflow-y-auto custom-scrollbar ${g?"":"px-3 py-4 sm:px-6 sm:py-7 lg:px-10 lg:py-8"} ${g?"flex flex-col overflow-hidden":""}`,children:(0,s.jsx)("div",{className:`${g?"flex-1 w-full h-full flex flex-col min-h-0":"w-full min-w-0 max-w-6xl mx-auto"}`,children:e})})]})]})}},8823:(e,t,r)=>{r.d(t,{default:()=>y});var s=r(95155),a=r(12115),l=r(73321),i=r(98500),n=r.n(i),o=r(14051),d=r.n(o),c=r(57250),u=r(80752),m=r(93308),x=r(38202),p=r(21931);function h(){let[e,t]=(0,a.useState)(!1),[r,l]=(0,a.useState)("en");return(0,a.useEffect)(()=>{l(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${m.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,m.QC)(t)}())},[e]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),className:"flex size-11 items-center justify-center rounded-xl text-text-muted transition-all hover:bg-black/5 hover:text-text-main dark:hover:bg-white/5 sm:size-10 sm:rounded-lg",title:"Language","aria-label":"Change language","data-i18n-skip":"true",children:(0,s.jsx)("span",{className:"text-lg leading-none",children:x.h[r]||"\uD83C\uDF10"})}),(0,s.jsx)(p.default,{hideTrigger:!0,isOpen:e,onClose:e=>{t(!1),l(e)}})]})}var b=r(38587),f=r(38003),g=r(90620),v=r(1791),j=r(73006);function y({onMenuClick:e,showMenuButton:t=!0,menuButtonRef:r}){let i=(0,l.usePathname)(),o=(0,l.useRouter)(),[d,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(""),{title:f,description:k,icon:w,breadcrumbs:C}=(0,a.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],r=t[2],s=v.rj.find(t=>t.id===e),a=v.Q2[r];return{title:a?.name||r,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:s?.label||e,href:`/dashboard/media-providers/${e}`},{label:a?.name||r,image:`/providers/${r}.png`}]}}let r=e.match(/\/media-providers\/([^/]+)$/);if(r){let e=r[1],t=v.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let s=e.match(/\/providers\/([^/]+)$/);if(s){let e=s[1],t=g.zN[e]||g.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"MITM Proxy",description:"Intercept CLI tool traffic and route through ZevaiRouter",icon:"security",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"handyman",breadcrumbs:[]}:e.includes("/terminal")?{title:"Terminal",description:"Host web shell — requires a second password",icon:"terminal",breadcrumbs:[]}:e.includes("/automation")?{title:"Automation",description:"Bulk account and workflow automation",icon:"automation",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver",description:"Reduce prompt tokens before they hit providers",icon:"savings",breadcrumbs:[]}:e.includes("/context")?{title:"Context Inject",description:"Inject shared context into routed requests",icon:"psychology",breadcrumbs:[]}:e.includes("/pxpipe")?{title:"PxPipe",description:"Proxy pipeline status and controls",icon:"cable",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use ZevaiRouter — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"terminal",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:e.includes("/playground")||e.includes("/basic-chat")?{title:"Playground",description:"Chat with any connected model through ZevaiRouter",icon:"forum",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"terminal",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(i),[i]);(0,a.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch("/api/auth/status",{cache:"no-store"});if(!t.ok)return;let r=await t.json();e||(m(r?.displayName||r?.oidcName||r?.oidcEmail||""),p(r?.loginMethod||""))}catch{e||(m(""),p(""))}}(),()=>{e=!0}},[]);let S=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch(e){console.error("Failed to logout:",e)}o.push("/login"),o.refresh()};return(0,s.jsxs)("header",{className:"dashboard-topbar relative z-20 shrink-0 flex min-h-16 flex-wrap items-center justify-between gap-2 border-b border-border-subtle bg-surface/90 px-3 py-2.5 shadow-[0_12px_35px_-34px_rgba(15,23,42,0.8)] backdrop-blur-sm sm:gap-3 sm:px-4 sm:py-3 lg:min-h-[76px] lg:px-8",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 lg:hidden shrink-0",children:t&&(0,s.jsx)("button",{ref:r,type:"button",onClick:e,className:"flex size-11 items-center justify-center rounded-xl text-text-main transition-colors hover:bg-surface-2 hover:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 sm:size-10 sm:rounded-lg","aria-label":"Open dashboard navigation",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,s.jsx)("div",{className:"flex flex-col min-w-0 flex-1",children:C.length>0?(0,s.jsx)("div",{className:"flex items-center gap-2",children:C.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t>0&&(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base",children:"chevron_right"}),e.href?(0,s.jsx)(n(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors",children:e.label}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e.image&&(0,s.jsx)(c.A,{src:e.image,alt:e.label,size:28,className:"object-contain rounded max-w-[28px] max-h-[28px]",fallbackText:e.label.slice(0,2).toUpperCase()}),(0,s.jsx)("h1",{className:"text-base lg:text-2xl font-semibold text-text-main tracking-tight truncate",children:(0,j.Tl)(e.label)})]})]},`${e.label}-${e.href||"current"}`))}):f?(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[w&&(0,s.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-[10px] bg-primary/10 text-primary ring-1 ring-primary/15 lg:size-10 lg:rounded-xl",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-lg lg:text-[22px]",children:w})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h1",{className:"truncate text-base font-semibold tracking-tight lg:text-[22px]",children:(0,j.Tl)(f)}),k&&(0,s.jsx)("p",{className:"hidden truncate text-sm text-text-muted lg:block",children:(0,j.Tl)(k)})]})]})}):null}),(0,s.jsxs)("div",{className:"dashboard-header-actions order-2 flex shrink-0 flex-wrap items-center justify-end gap-0.5 sm:order-none sm:gap-1 lg:rounded-xl lg:border lg:border-border-subtle lg:bg-surface-2/60 lg:p-1",children:[d&&"OIDC"===x&&(0,s.jsxs)("div",{className:"hidden sm:flex items-center max-w-[220px] px-3 py-1.5 rounded-full border border-border bg-surface/70 text-xs text-text-muted truncate",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1.5 text-primary",children:"person"}),(0,s.jsx)("span",{className:"truncate",children:d}),(0,s.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:"OIDC"})]}),(0,s.jsx)(b.default,{className:"size-11 sm:size-10"}),(0,s.jsx)(h,{}),(0,s.jsx)(u.default,{onLogout:S})]}),(0,s.jsx)(N,{})]})}function N(){let e=(0,f.C)(e=>e.visible),t=(0,f.C)(e=>e.query),r=(0,f.C)(e=>e.placeholder),a=(0,f.C)(e=>e.setQuery);return e?(0,s.jsxs)("div",{className:"relative order-3 w-full sm:order-none sm:w-[220px]",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2 top-1/2 -translate-y-1/2 text-text-muted text-[16px] pointer-events-none",children:"search"}),(0,s.jsx)("input",{type:"text",value:t,onChange:e=>a(e.target.value),placeholder:r,"aria-label":r||"Search",className:"h-11 w-full rounded-xl border border-border bg-surface/80 pl-9 pr-11 text-sm shadow-sm transition-colors focus:border-primary/50 focus:outline-none focus:ring-2 focus:ring-primary/10 sm:h-9 sm:pl-8 sm:pr-8"}),t&&(0,s.jsx)("button",{type:"button",onClick:()=>a(""),className:"absolute right-0 top-1/2 flex size-11 -translate-y-1/2 items-center justify-center rounded-xl text-text-muted hover:text-text-main sm:right-0.5 sm:size-8 sm:rounded-lg","aria-label":"Clear search",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]}):null}y.propTypes={onMenuClick:d().func,showMenuButton:d().bool,menuButtonRef:d().shape({current:d().object})}},11059:(e,t,r)=>{r.d(t,{C:()=>a});var s=r(12115);function a(e=2e3){let[t,r]=(0,s.useState)(null),l=(0,s.useRef)(null),i=(0,s.useRef)(!0);function n(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),document.execCommand("copy")}finally{document.body.removeChild(t)}}return(0,s.useEffect)(()=>(i.current=!0,()=>{i.current=!1,l.current&&clearTimeout(l.current)}),[]),{copied:t,copy:(0,s.useCallback)(async(t,s="default")=>{let a=!1;try{navigator?.clipboard?.writeText?(await navigator.clipboard.writeText(t),a=!0):a=n(t)}catch{try{a=n(t)}catch{a=!1}}return a&&i.current&&(r(s),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{i.current&&r(null)},e)),a},[e])}}},11910:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(31474);function i({label:e,type:t="text",placeholder:r,value:n,onChange:o,error:d,hint:c,icon:u,disabled:m=!1,required:x=!1,className:p,inputClassName:h,...b}){let f=(0,a.useId)(),g=b.id||f,v=`${g}-error`,j=`${g}-hint`,y=[b["aria-describedby"],d&&v,c&&j].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5",p),children:[e&&(0,s.jsxs)("label",{htmlFor:g,className:"text-sm font-medium text-text-main",children:[e,x&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[u&&(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:u})}),(0,s.jsx)("input",{id:g,type:t,placeholder:r,value:n,onChange:o,disabled:m,required:x,"aria-invalid":!!d||void 0,"aria-describedby":y,className:(0,l.cn)("w-full py-2.5 px-3 text-sm text-text-main bg-surface-2 rounded-[10px]","border border-transparent placeholder-text-muted/70","focus:outline-none focus:border-brand-500/40 focus-visible:ring-2 focus-visible:ring-brand-500/30","transition-[border-color,box-shadow,background-color] duration-150 ease-out disabled:opacity-50 disabled:cursor-not-allowed motion-reduce:transition-none","text-[16px] sm:text-sm",u&&"pl-10",d&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",h),...b})]}),d&&(0,s.jsxs)("p",{id:v,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),d]}),c&&!d&&(0,s.jsx)("p",{id:j,className:"text-xs text-text-muted",children:c})]})}},12252:(e,t,r)=>{r.d(t,{F:()=>a});var s=r(12115);function a(e){let[t,r]=(0,s.useState)([]);return(0,s.useEffect)(()=>{if(!e)return;let t=new AbortController;return fetch("/api/providers/kiro/models",{cache:"no-store",signal:t.signal}).then(e=>e.ok?e.json():{models:[]}).then(e=>r(Array.isArray(e?.models)?e.models:[])).catch(e=>{e?.name!=="AbortError"&&r([])}),()=>t.abort()},[e]),e?t:[]}},21110:(e,t,r)=>{r.d(t,{ThemeProvider:()=>i});var s=r(95155),a=r(12115),l=r(90085);function i({children:e}){let{initTheme:t}=(0,l.A)();return(0,a.useEffect)(()=>{t()},[t]),(0,s.jsx)(s.Fragment,{children:e})}},21286:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,connectionIds:t,onSuccess:r,onClose:l,endpoint:i="/api/oauth/codebuddy/quota-cookie"}){let[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),[x,p]=(0,a.useState)(""),[h,b]=(0,a.useState)(!1),f=async()=>{if(!d.trim())return void p("Paste your CodeBuddy web cookie first.");m(!0),p("");try{let e=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:d.trim(),connectionIds:t})}),s=await e.json().catch(()=>({}));if(!e.ok)throw Error(s.error||"Failed to save CodeBuddy quota cookie.");b(!0),setTimeout(()=>{r?.(),g()},900)}catch(e){p(e.message||"Failed to save CodeBuddy quota cookie.")}finally{m(!1)}},g=()=>{c(""),p(""),b(!1),l?.()};return(0,s.jsx)(n.aF,{isOpen:e,onClose:g,title:"CodeBuddy Quota Cookie",children:(0,s.jsx)("div",{className:"space-y-4",children:h?(0,s.jsxs)("div",{className:"py-6 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Quota cookie saved."}),(0,s.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:"Quota Tracker can now read CodeBuddy credits for the selected connection."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2 text-sm text-text-muted",children:[(0,s.jsx)("p",{children:"Paste the cookie string from a logged-in CodeBuddy web session. This is only used for the quota endpoint; your existing OAuth token still handles chat."}),(0,s.jsx)("div",{className:"rounded-lg bg-surface-secondary p-3 text-xs",children:"Open codebuddy.ai, sign in, then copy the request cookie from DevTools Network for a request to codebuddy.ai."})]}),(0,s.jsx)("textarea",{value:d,onChange:e=>c(e.target.value),placeholder:"session=...; AUTH_SESSION_ID=...; ...",className:"h-28 w-full resize-none rounded-lg border border-border bg-surface-secondary px-3 py-2 text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary",disabled:u}),x&&(0,s.jsx)("div",{className:"rounded-lg border border-error/20 bg-error/10 p-3",children:(0,s.jsx)("p",{className:"text-sm text-error",children:x})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(n.$n,{variant:"secondary",onClick:g,disabled:u,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(n.$n,{onClick:f,loading:u,fullWidth:!0,children:"Save Cookie"})]})]})})})}o.propTypes={isOpen:i().bool.isRequired,connectionIds:i().arrayOf(i().string).isRequired,onSuccess:i().func,onClose:i().func,endpoint:i().string}},21931:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(47650),i=r(93308),n=r(73006);let o=e=>({en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (Brasil)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (Portugal)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},km:{name:"ខ្មែរ",flag:"\uD83C\uDDF0\uD83C\uDDED"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"},fa:{name:"فارسی",flag:"\uD83C\uDDEE\uD83C\uDDF7"}})[e]||{name:e,flag:"\uD83C\uDF10"};function d({className:e="",isOpen:t,onClose:r,hideTrigger:c=!1}){let[u,m]=(0,a.useState)("en"),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),f=(0,a.useRef)(null),g="boolean"==typeof t,v=g?t:h,j=e=>{g?!e&&r&&r(u):b(e)};(0,a.useEffect)(()=>{m(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${i.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,i.QC)(t)}())},[]),(0,a.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&j(!1)}if(v)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v]);let y=async e=>{if(e!==u&&!x){p(!0),j(!1);try{let t=await fetch("/api/locale",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})});if(!t.ok)throw Error(`Locale change rejected (${t.status})`);await (0,n.wn)(),m(e)}catch(e){console.error("Failed to set locale:",e)}finally{p(!1)}}};return(0,s.jsxs)("div",{className:e,children:[!c&&(0,s.jsxs)("button",{onClick:()=>j(!v),disabled:x,className:"flex items-center gap-2 px-3 py-2 rounded-lg text-text-muted hover:text-text-main hover:bg-surface/60 transition-colors",title:"Language","data-i18n-skip":"true",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:o(u).name}),(0,s.jsx)("span",{className:"text-lg",children:o(u).flag})]}),v&&(0,l.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","data-i18n-skip":"true",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>j(!1)}),(0,s.jsxs)("div",{ref:f,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-2xl flex flex-col max-h-[80vh]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Select Language"}),(0,s.jsx)("button",{onClick:()=>j(!1),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 overflow-y-auto flex-1",children:(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-2",children:i.YZ.map(e=>{let t=u===e,r=o(e);return(0,s.jsxs)("button",{onClick:()=>y(e),disabled:x,className:`flex flex-col items-center justify-start gap-1 px-2 py-3 rounded-lg text-xs font-medium transition-colors w-full ${t?"bg-primary/15 text-primary ring-2 ring-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"} ${x?"opacity-70 cursor-wait":""}`,title:r.name,children:[(0,s.jsx)("span",{className:"text-2xl",children:r.flag}),(0,s.jsx)("span",{className:"text-center leading-tight line-clamp-2 h-8 flex items-center",children:r.name}),t&&(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check"})]},e)})})})]})]}),document.body)]})}},22942:(e,t,r)=>{function s(e,t,r){let s=r.height-e.bottom,a=s<(t+1)*34+8&&e.top>s;return{position:"fixed",right:r.width-e.right,...a?{bottom:r.height-e.top+4,maxHeight:Math.max(e.top-8,120)}:{top:e.bottom+4,maxHeight:Math.max(s-8,120)}}}function a(e,t,r){let s=e.left+e.width/2,a=e.top+e.height/2;return"bottom"===t?{position:"fixed",top:e.bottom+6,left:s,transform:"translateX(-50%)"}:"left"===t?{position:"fixed",right:r.width-e.left+6,top:a,transform:"translateY(-50%)"}:"right"===t?{position:"fixed",left:e.right+6,top:a,transform:"translateY(-50%)"}:{position:"fixed",bottom:r.height-e.top+6,left:s,transform:"translateX(-50%)"}}r.d(t,{Z:()=>a,x:()=>s})},23615:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(84588);function i(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)(!0),[n,o]=(0,a.useState)(!0);(0,a.useEffect)(()=>{d()},[]),(0,a.useEffect)(()=>{let e;return n&&(e=setInterval(()=>{d(!1)},3e3)),()=>clearInterval(e)},[n]);let d=async(e=!0)=>{e&&i(!0);try{let e=await fetch("/api/usage/request-logs");if(e.ok){let r=await e.json();t(r)}}catch(e){console.error("Failed to fetch logs:",e)}finally{e&&i(!1)}};return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("span",{children:"Auto Refresh (3s)"}),(0,s.jsx)("div",{onClick:()=>o(!n),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${n?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,s.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${n?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,s.jsx)(l.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,s.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:r&&0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,s.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,s.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,s.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,s.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let r=e.split(" | ");if(r.length<7)return null;let a=r[6],l=a.includes("PENDING"),i=a.includes("FAILED"),n=a.includes("OK");return(0,s.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${l?"bg-primary/5":""}`,children:[(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:r[0]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:r[1]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,s.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:r[2]})}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:r[3],children:r[3]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:r[4]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:r[5]}),(0,s.jsx)("td",{className:`px-3 py-1.5 font-bold ${n?"text-success":i?"text-error":"text-primary animate-pulse"}`,children:a})]},t)})})]})})}),(0,s.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},23936:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,i]=(0,a.useState)(""),[d,c]=(0,a.useState)(!1),[u,m]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),h=async()=>{if(!l.trim())return void m("Please paste your cookie");c(!0),m(null);try{let e=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:l.trim()})}),r=await e.json();if(!e.ok)throw Error(r.error||"Authentication failed");p(!0),setTimeout(()=>{t?.(),b()},1500)}catch(e){m(e.message)}finally{c(!1)}},b=()=>{i(""),m(null),p(!1),r?.()};return(0,s.jsx)(n.aF,{isOpen:e,onClose:b,title:"iFlow Cookie Authentication",children:(0,s.jsx)("div",{className:"space-y-4",children:x?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,s.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,s.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,s.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,s.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,s.jsx)("li",{children:"Login to your account"}),(0,s.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,s.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,s.jsx)("li",{children:"Paste it below"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,s.jsx)("textarea",{value:l,onChange:e=>i(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:d})]}),u&&(0,s.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error",children:u})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(n.$n,{variant:"secondary",onClick:b,disabled:d,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(n.$n,{onClick:h,loading:d,fullWidth:!0,children:"Authenticate"})]})]})})})}o.propTypes={isOpen:i().bool.isRequired,onSuccess:i().func,onClose:i().func}},25086:(e,t,r)=>{r.d(t,{CardSkeleton:()=>o,DataListSkeleton:()=>d,PageLoading:()=>i,Skeleton:()=>n,Spinner:()=>l,default:()=>c});var s=r(95155),a=r(31474);function l({size:e="md",className:t}){return(0,s.jsx)("span",{className:(0,a.cn)("material-symbols-outlined animate-spin text-brand-500 motion-reduce:animate-none",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[e],t),children:"progress_activity"})}function i({message:e="Loading..."}){return(0,s.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e,className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,s.jsx)(l,{size:"xl"}),(0,s.jsx)("p",{className:"mt-4 text-text-muted",children:e})]})}function n({className:e,...t}){return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-[10px] bg-surface-2 motion-reduce:animate-none",e),...t})}function o({className:e}){return(0,s.jsxs)("div",{"aria-hidden":"true",className:(0,a.cn)("rounded-[14px] border border-border-subtle bg-surface p-6 shadow-[var(--shadow-soft)]",e),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)(n,{className:"h-4 w-24"}),(0,s.jsx)(n,{className:"size-10 rounded-[10px]"})]}),(0,s.jsx)(n,{className:"h-8 w-16 mb-2"}),(0,s.jsx)(n,{className:"h-3 w-20"})]})}function d({rows:e=4,label:t="Loading data",className:r}){return(0,s.jsx)("div",{role:"status","aria-label":t,className:(0,a.cn)("divide-y divide-border-subtle",r),children:Array.from({length:e},(e,t)=>(0,s.jsxs)("div",{"aria-hidden":"true",className:"grid grid-cols-[minmax(6rem,0.7fr)_minmax(0,1.3fr)] gap-4 py-4",children:[(0,s.jsx)(n,{className:"h-4 w-24 max-w-full"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n,{className:"h-4 w-2/3"}),(0,s.jsx)(n,{className:"h-3 w-1/3"})]})]},t))})}function c({type:e="spinner",...t}){switch(e){case"page":return(0,s.jsx)(i,{...t});case"skeleton":return(0,s.jsx)(n,{...t});case"card":return(0,s.jsx)(o,{...t});default:return(0,s.jsx)(l,{...t})}}},28058:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(81127);function i({isOpen:e,onClose:t,onAdd:r,addedNames:n=[]}){let[o,d]=(0,a.useState)([]),[c,u]=(0,a.useState)(!1),[m,x]=(0,a.useState)(""),[p,h]=(0,a.useState)("all"),[b,f]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),[j,y]=(0,a.useState)({}),[N,k]=(0,a.useState)({}),[w,C]=(0,a.useState)({});(0,a.useEffect)(()=>{!e||o.length>0||(u(!0),fetch("/api/cli-tools/cowork-mcp-registry").then(e=>e.json()).then(e=>{e.error?f(e.error):d(e.servers||[])}).catch(e=>f(e.message)).finally(()=>u(!1)))},[e,o.length]);let S=(0,a.useMemo)(()=>new Set(n),[n]),T=(0,a.useMemo)(()=>{let e=m.trim().toLowerCase();return o.filter(t=>("authless"!==p||!t.oauth)&&("oauth"!==p||!!t.oauth)&&(!e||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)))},[o,m,p]),I=async e=>{if(!j[e.url]){k(t=>({...t,[e.url]:!0}));try{let t=await fetch("/api/cli-tools/cowork-mcp-tools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.url})}),r=await t.json(),s=r.tools||[],a=Array.isArray(e.toolNames)?e.toolNames:[],l=s.length>0?s.map(e=>e.name):a;y(t=>({...t,[e.url]:{tools:s,requiresAuth:!!r.requiresAuth,error:r.error}})),C(t=>({...t,[e.url]:Object.fromEntries(l.map(e=>[e,!0]))}))}catch(t){y(r=>({...r,[e.url]:{tools:[],error:t.message}}))}finally{k(t=>({...t,[e.url]:!1}))}}},$=(e,t)=>{let r=w[e]||{};C(s=>({...s,[e]:Object.fromEntries(Object.keys(r).map(e=>[e,t]))}))};return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:"Browse MCP Marketplace",size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",value:m,onChange:e=>x(e.target.value),placeholder:"Search by name or description...",className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,s.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:[(0,s.jsx)("option",{value:"all",children:"All"}),(0,s.jsx)("option",{value:"authless",children:"Authless"}),(0,s.jsx)("option",{value:"oauth",children:"OAuth"})]})]}),b&&(0,s.jsx)("div",{className:"px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:b}),c&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-xs py-4 justify-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Loading registry..."})]}),!c&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 max-h-[60vh] overflow-y-auto",children:[0===T.length&&(0,s.jsx)("div",{className:"text-center text-xs text-text-muted py-6",children:"No servers match filter"}),T.map(e=>{let t=S.has(e.slug||e.name),a=g===e.url,l=j[e.url],i=N[e.url],n=w[e.url]||{},o=Object.keys(n),d=Object.values(n).filter(Boolean).length;return(0,s.jsxs)("div",{className:"rounded border border-transparent hover:border-border",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5",children:[e.iconUrl?(0,s.jsx)("img",{src:e.iconUrl,alt:"",className:"size-7 rounded shrink-0 object-contain",onError:e=>{e.target.style.display="none"}}):(0,s.jsx)("div",{className:"size-7 rounded bg-surface shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,s.jsx)("span",{className:"font-medium text-xs",children:e.title}),e.oauth?(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-amber-500/10 text-amber-600",children:"OAuth"}):(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-green-500/10 text-green-600",children:"Authless"}),e.toolCount>0&&(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.toolCount," tools"]})]}),e.description&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted line-clamp-2 mt-0.5",children:e.description})]}),(0,s.jsx)("button",{onClick:()=>t?null:void(g===e.url?v(null):(v(e.url),I(e))),disabled:t,className:`shrink-0 px-2 py-1 rounded text-[10px] font-medium transition-colors ${t?"bg-green-500/10 text-green-600 cursor-default":a?"bg-surface border border-border text-text-muted hover:bg-black/5":"bg-primary/10 border border-primary/40 text-primary hover:bg-primary/20"}`,children:t?"Added":a?"Cancel":"+ Add"})]}),a&&(0,s.jsxs)("div",{className:"px-3 py-2 bg-surface/40 border-t border-border flex flex-col gap-2",children:[i&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-[10px] py-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Probing server for tools..."})]}),!i&&l?.requiresAuth&&(0,s.jsx)("p",{className:"text-[10px] text-amber-600 bg-amber-500/10 px-2 py-1 rounded",children:"\uD83D\uDD10 OAuth required. Add now and authenticate after Apply; tool list will be discovered after first connect."}),!i&&l?.error&&!l?.requiresAuth&&(0,s.jsxs)("p",{className:"text-[10px] text-red-600 bg-red-500/10 px-2 py-1 rounded",children:["Probe failed: ",l.error]}),!i&&0===o.length&&!l?.requiresAuth&&!l?.error&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted",children:"No tools advertised by server."}),!i&&o.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[d,"/",o.length," tools enabled"]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)("button",{onClick:()=>$(e.url,!0),className:"text-[10px] text-primary hover:underline",children:"All"}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>$(e.url,!1),className:"text-[10px] text-primary hover:underline",children:"None"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-1 max-h-40 overflow-y-auto",children:o.map(t=>(0,s.jsxs)("label",{className:"flex items-center gap-1.5 text-[10px] cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-1 rounded",children:[(0,s.jsx)("input",{type:"checkbox",checked:!!n[t],onChange:()=>{var r;return r=e.url,void C(e=>({...e,[r]:{...e[r],[t]:!e[r]?.[t]}}))},className:"size-3"}),(0,s.jsx)("span",{className:"truncate",children:t})]},t))})]}),(0,s.jsx)("button",{onClick:()=>{let t,s;return s=Object.keys(t=w[e.url]||{}).filter(e=>t[e]),void(r?.({name:e.slug||e.name,title:e.title,description:e.description,url:e.url,transport:e.transport,oauth:e.oauth,toolNames:s}),v(null))},className:"self-end px-2 py-1 rounded text-[10px] font-medium bg-primary text-white hover:bg-primary/90",children:"✓ Confirm Add"})]})]},e.url)})]}),(0,s.jsxs)("div",{className:"text-[10px] text-text-muted text-right",children:[T.length," of ",o.length," servers"]})]})})}},28067:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(95155),a=r(31474);function l({options:e=[],value:t,onChange:r,size:i="md",className:n,...o}){let d={sm:"h-9 text-xs sm:h-7",md:"h-10 text-sm sm:h-9",lg:"h-11 text-base"};return(0,s.jsx)("div",{role:"group",...o,className:(0,a.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",n),children:e.map(e=>(0,s.jsxs)("button",{type:"button","aria-pressed":t===e.value,onClick:()=>r(e.value),className:(0,a.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",d[i],t===e.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[e.icon&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px] mr-1.5",children:e.icon}),e.label]},e.value))})}},28815:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(81127),i=r(92542),n=r(11059);function o({isOpen:e,onClose:t,title:r="Manual Configuration",description:d="",requirements:c=[],configs:u=[],instructions:m=[],note:x=""}){let{copy:p}=(0,n.C)(),[h,b]=(0,a.useState)(null);return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:r,size:"xl",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[d&&(0,s.jsx)("p",{className:"text-sm leading-6 text-text-muted",children:d}),c.length>0&&(0,s.jsx)("div",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2.5",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-[17px] text-yellow-600 dark:text-yellow-400",children:"warning"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium text-yellow-700 dark:text-yellow-300",children:"Configuration is not copy-ready yet"}),(0,s.jsx)("ul",{className:"mt-1 list-disc space-y-1 pl-4 text-xs leading-5 text-text-muted",children:c.map(e=>(0,s.jsx)("li",{children:e},e))})]})]})}),u.map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"break-words text-sm font-medium text-text-main",children:e.label||e.filename}),e.label&&e.filename&&(0,s.jsx)("p",{className:"mt-0.5 break-all font-mono text-[11px] text-text-muted",children:e.filename}),e.description&&(0,s.jsx)("p",{className:"mt-1 text-xs leading-5 text-text-muted",children:e.description})]}),(0,s.jsxs)(i.default,{variant:"ghost",size:"sm",onClick:()=>{var r;return r=e.content,void(p(r,`manualconfig-${t}`),b(t),setTimeout(()=>b(null),2e3))},className:"shrink-0",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:h===t?"check":"content_copy"}),h===t?"Copied!":"Copy"]})]}),(0,s.jsx)("pre",{className:"px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs overflow-x-auto whitespace-pre-wrap break-all max-h-60 overflow-y-auto border border-border",children:e.content})]},e.id||e.filename||t)),m.length>0&&(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-surface/40 px-3 py-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Finish setup"}),(0,s.jsx)("ol",{className:"mt-2 list-decimal space-y-1.5 pl-5 text-xs leading-5 text-text-muted",children:m.map(e=>(0,s.jsx)("li",{children:e},e))})]}),x&&(0,s.jsx)("p",{className:"text-xs leading-5 text-text-muted",children:x})]})})}},29366:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(95155),a=r(14051),l=r.n(a),i=r(28777),n=r(97677);function o({caps:e,className:t="",colorOverride:r,size:a=16}){if(!e)return null;let l=Object.keys(i.bs).filter(t=>e[t]);return 0===l.length?null:(0,s.jsx)("span",{className:`inline-flex items-center gap-0.5 ${t}`,children:l.map(e=>(0,s.jsx)(n.default,{text:`${i.bs[e].label} — ${i.bs[e].desc}`,children:(0,s.jsx)("span",{className:`material-symbols-outlined leading-none cursor-help ${r||i.bs[e].color}`,style:{fontSize:`${a}px`},children:i.bs[e].icon})},e))})}o.propTypes={caps:l().object,className:l().string,colorOverride:l().string,size:l().number}},30815:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,i]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),y=(0,a.useRef)(0),N=(0,a.useCallback)(async()=>{let e=++y.current;b(!0),m(null),g(!1),j(!1);try{let t=await fetch("/api/oauth/cursor/auto-import"),r=await t.json();if(y.current!==e)return;r.found?(i(r.accessToken),c(r.machineId),g(!0)):r.windowsManual?j(!0):m(r.error||"Could not auto-detect tokens")}catch(t){y.current===e&&m("Failed to auto-detect tokens")}finally{y.current===e&&b(!1)}},[]);(0,a.useEffect)(()=>{e?(i(""),c(""),m(null),g(!1),j(!1),N()):y.current++},[e,N]);let k=async()=>{if(!l.trim())return void m("Please enter an access token");if(!d.trim())return void m("Please enter a machine ID");p(!0),m(null);try{let e=await fetch("/api/oauth/cursor/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:l.trim(),machineId:d.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t?.(),r()}catch(e){m(e.message)}finally{p(!1)}};return(0,s.jsx)(n.aF,{isOpen:e,title:"Connect Cursor IDE",onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[h&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting tokens..."}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from Cursor IDE database"})]}),!h&&(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,s.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Tokens auto-detected from Cursor IDE successfully!"})]})}),v&&(0,s.jsxs)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-3 rounded-lg border border-amber-200 dark:border-amber-800 flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:"Could not read Cursor database automatically."})]}),(0,s.jsxs)("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:["Make sure Cursor IDE has been opened at least once, then click ",(0,s.jsx)("strong",{children:"Retry"}),". If the problem persists, paste your tokens manually below."]}),(0,s.jsx)(n.$n,{onClick:N,variant:"outline",fullWidth:!0,children:"Retry"})]}),!f&&!v&&!u&&(0,s.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Cursor IDE not detected. Please paste your tokens manually."})]})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Access Token ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:l,onChange:e=>i(e.target.value),placeholder:"Access token will be auto-filled...",rows:3,className:"w-full px-3 py-2 text-sm font-mono border border-border rounded-lg bg-background focus:outline-none focus:border-primary resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Machine ID ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(n.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"Machine ID will be auto-filled...",className:"font-mono text-sm"})]}),u&&(0,s.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:u})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.$n,{onClick:k,fullWidth:!0,disabled:x||!l.trim()||!d.trim(),children:x?"Importing...":"Import Token"}),(0,s.jsx)(n.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}o.propTypes={isOpen:i().bool.isRequired,onSuccess:i().func,onClose:i().func.isRequired}},31474:(e,t,r)=>{r.d(t,{cn:()=>s});function s(...e){return e.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},33315:(e,t,r)=>{r.d(t,{o:()=>a});let s="[redacted]";function a(e,t=[]){if("string"!=typeof e)return"";let r=e.replace(/\s+/g," ").trim();if(!r)return"";let l=(Array.isArray(t)?t:[t]).filter(e=>"string"==typeof e&&e.trim()),i=new Set;for(let e of l){let t=e.trim();for(let e of(t.length>=4&&i.add(t),t.split(/[\s"'`;,:=&?{}[\]()<>]+/)))e.length>=8&&i.add(e)}for(let e of[...i].sort((e,t)=>t.length-e.length))r=r.replace(RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),s);return(r=r.replace(/([?&](?:key|api_key|token|access_token)=)[^&\s]+/gi,`$1${s}`)).length>240?`${r.slice(0,239)}…`:r}},35497:(e,t,r)=>{r.d(t,{x0:()=>I.default,Ex:()=>d.default,Go:()=>c.default,$n:()=>s.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,zE:()=>w.default,xl:()=>k.default,CK:()=>b.default,uo:()=>n.ConfirmModal,mz:()=>x.default,G9:()=>y.default,i5:()=>P.DashboardToolbar,wI:()=>T.default,pp:()=>P.EmptyState,Gi:()=>P.FeedbackPanel,vj:()=>C.default,vE:()=>N.default,pd:()=>a.default,Mh:()=>j.default,uR:()=>h.default,Nf:()=>f.default,aF:()=>n.default,rq:()=>p.default,gw:()=>$.default,LF:()=>m.default,dK:()=>E.default,Wx:()=>R.default,gM:()=>v.default,w:()=>P.SectionHeading,Iz:()=>A.default,l6:()=>l.default,lM:()=>u.default,m_:()=>O.default,jK:()=>g.default,LH:()=>S.default});var s=r(92542),a=r(11910),l=r(98),i=r(84588),n=r(81127),o=r(25086);r(56319);var d=r(56061),c=r(39835),u=r(98542);r(38587),r(21110),r(92622),r(8823),r(92173);var m=r(90882),x=r(67597),p=r(37384),h=r(28815),b=r(45455),f=r(28058),g=r(55060);r(21931),r(80752),r(40197);var v=r(23615);r(61500);var j=r(62899);r(94230);var y=r(30815),N=r(23936),k=r(21286),w=r(65428),C=r(95088),S=r(40684),T=r(73579),I=r(96748),$=r(4823),A=r(28067),O=r(97677),R=r(51825),E=r(50378),P=r(58041);r(7648),r(91450)},37384:(e,t,r)=>{r.d(t,{default:()=>w});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(81127),o=r(57250),d=r(28777),c=r(1791),u=r(12252),m=r(40671);function x(){return{raw:"",isEmpty:!0,isRegex:!1,regex:null,positiveTerms:[],negativeTerms:[]}}function p(e){if(!e||"string"!=typeof e)return x();let t=e.trim();if(!t)return x();if(t.startsWith("/")){let e=t.match(/^\/(.+)\/([a-z]*)$/i);try{if(e)return{raw:t,isEmpty:!1,isRegex:!0,regex:new RegExp(e[1],e[2]||"i"),positiveTerms:[],negativeTerms:[]};if(t.length>1)return{raw:t,isEmpty:!1,isRegex:!0,regex:RegExp(t.slice(1),"i"),positiveTerms:[],negativeTerms:[]}}catch{}}let r=[],s=[];for(let e of t.split(/\s+/))e&&((e.startsWith("!")||e.startsWith("-"))&&e.length>1?s.push(e.slice(1).toLowerCase()):r.push(e.toLowerCase()));return{raw:t,isEmpty:0===r.length&&0===s.length,isRegex:!1,regex:null,positiveTerms:r,negativeTerms:s}}function h(e,t){return e.lastIndex=0,e.test(t)}function b(e,t){let r="string"!=typeof t&&t?t:p(t);if(r.isEmpty)return!0;let s=[];if("string"==typeof e?s=[e]:Array.isArray(e)?s=e.filter(e=>"string"==typeof e):e&&"object"==typeof e&&(s=[e.name,e.id,e.value,e.alias,e.provider].filter(e=>"string"==typeof e)),0===s.length)return!1;if(r.isRegex&&r.regex){let e=s.join(" ");return/\(\?!|\(\?<!/.test(r.raw)?h(r.regex,e):s.some(e=>h(r.regex,e))||h(r.regex,e)}let a=s.map(e=>e.toLowerCase());return!r.negativeTerms.some(e=>a.some(t=>t.includes(e)))&&r.positiveTerms.every(e=>a.some(t=>t.includes(e)))}var f=r(929),g=r(29366);function v(e){return(0,c.mq)(e)||(0,c.gb)(e)}var j=r(70217);let y=[...Object.keys(c.zN),...Object.keys(c.IS),...Object.keys(c.nJ),...Object.keys(c.fg)],N=Object.keys(c.IS).filter(e=>c.IS[e].noAuth);function k({isOpen:e,onClose:t,onSelect:r,onDeselect:l,onSelectBatch:i,onDeselectBatch:x,selectedModel:h,activeProviders:w=[],title:C="Select Model",modelAliases:S={},kindFilter:T=null,addedModelValues:I=[],closeOnSelect:$=!0,includeCombos:A=!0,capFilter:O=null}){let{getCaps:R}=(0,f.y)(),E=(0,a.useMemo)(()=>T?w.filter(e=>{let t=c.Q2[e.provider];return(t?.serviceKinds||["llm"]).includes(T)}):w,[w,T]),[P,_]=(0,a.useState)(""),[M,z]=(0,a.useState)([]),[q,L]=(0,a.useState)([]),[U,D]=(0,a.useState)([]),[F,W]=(0,a.useState)({}),[B,K]=(0,a.useState)(null),J=(0,u.F)(e&&w.some(e=>"kiro"===e.provider)),V=(0,m.M)(e&&w.some(e=>"aistudio"===e.provider)),G=async e=>{try{let t=await fetch("/api/combos",{signal:e});if(!t.ok)throw Error(`Failed to fetch combos: ${t.status}`);let r=await t.json();z(r.combos||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching combos:",e),z([])}},H=async e=>{try{let t=await fetch("/api/provider-nodes",{signal:e});if(!t.ok)throw Error(`Failed to fetch provider nodes: ${t.status}`);let r=await t.json();L(r.nodes||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching provider nodes:",e),L([])}},Q=async e=>{try{let t=await fetch("/api/models/custom",{signal:e});if(!t.ok)throw Error(`Failed to fetch custom models: ${t.status}`);let r=await t.json();D(r.models||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching custom models:",e),D([])}},X=async e=>{try{let t=await fetch("/api/models/disabled",{signal:e});if(!t.ok)throw Error(`Failed to fetch disabled models: ${t.status}`);let r=await t.json();W(r.disabled||{})}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching disabled models:",e),W({})}},Z=async e=>{try{let t=await fetch("/api/providers",{signal:e,cache:"no-store"});if(!t.ok)throw Error(`Failed to fetch providers: ${t.status}`);let r=await t.json();K(r.connections||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching providers in ModelSelectModal:",e),K([])}};(0,a.useEffect)(()=>{if(!e)return;let t=new AbortController;return Z(t.signal),()=>t.abort()},[e]);let Y=null!==B?B:w||[],ee=(0,a.useMemo)(()=>(0,j.io)(Y),[Y]);(0,a.useEffect)(()=>{let e=new AbortController;return Promise.all([G(e.signal),H(e.signal),Q(e.signal),X(e.signal)]),()=>e.abort()},[]);let et=(0,a.useMemo)(()=>({...c.zN,...c.IS,...c.nJ,...c.fg}),[]),er=(0,a.useMemo)(()=>{let t={};if(!e)return t;let r=new Set(["webSearch","webFetch"]),s=new Set(["image","tts","stt","embedding","imageToText","systemone"]),a=new Set(["tts","image","webFetch"]);return[...new Set([...E.map(e=>e.provider),...T?N.filter(e=>(c.Q2[e]?.serviceKinds||["llm"]).includes(T)):N,...(function({kindFilter:e=null,providerNodes:t=[],customModels:r=[],modelAliases:s={}}={}){if(e)return[];let a=new Set((t||[]).map(e=>e?.id).filter(Boolean)),l=new Set;for(let e of r||[]){let t=e?.providerAlias;a.has(t)&&v(t)&&l.add(t)}for(let e of Object.values(s||{})){let t=String(e||"").split("/")[0];a.has(t)&&v(t)&&l.add(t)}return[...l]})({kindFilter:T,providerNodes:q,customModels:U,modelAliases:S}).filter(e=>!ee.has(e))].filter(e=>!ee.has(e)))].sort((e,t)=>{let r=y.indexOf(e),s=y.indexOf(t);return(-1===r?999:r)-(-1===s?999:s)}).forEach(e=>{let l=(0,c.wG)(e),i=et[e]||{name:e,color:"#666"},n=(0,c.mq)(e)||(0,c.gb)(e);if(T&&r.has(T)){t[e]={name:i.name,alias:l,color:i.color,models:[{id:e,name:i.name,value:e}]};return}if(i.passthroughModels){let r=Object.entries(S).filter(([,e])=>e.startsWith(`${l}/`)).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t}));if(T&&s.has(T)&&0===(r=(0,d.KC)(e).filter(e=>e.type===T).map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type}))).length&&a.has(T)&&(i.serviceKinds||["llm"]).includes(T)&&(r=[{id:e,name:i.name,value:l}]),r.length>0){let s=q.find(t=>t.id===e),a=s?.name||i.name;t[e]={name:a,alias:l,color:i.color,models:r}}}else if(n){if(T&&s.has(T))return;let r=w.find(t=>t.provider===e),a=q.find(t=>t.id===e),l=r?.name||a?.name||i.name,n=r?.providerSpecificData?.prefix||a?.prefix||e,o=function({providerId:e,nodePrefix:t,modelAliases:r={},customModels:s=[]}){let a=t||e,l=Object.entries(r).filter(([,t])=>String(t||"").startsWith(`${e}/`)).map(([t,r])=>{let s=String(r).slice(e.length+1);return{id:s,name:t,value:`${a}/${s}`}}),i=new Set(l.map(e=>e.value));return[...l,...(s||[]).filter(t=>t?.providerAlias===e&&t?.id).map(e=>({id:e.id,name:e.name||e.id,value:`${a}/${e.id}`,isCustom:!0})).filter(e=>!i.has(e.value))]}({providerId:e,nodePrefix:n,modelAliases:S,customModels:U}),d=o.length>0?o:[{id:`__placeholder__${e}`,name:`${n}/model-id`,value:`${n}/model-id`,isPlaceholder:!0}];t[e]={name:l,alias:n,color:i.color,models:d,isCustom:!0,hasModels:o.length>0}}else{var o;let r="kiro"===e?J:(0,m.Q)(e,V,(0,d.KC)(e)),n=new Set(r.map(e=>e.id)),c=r.length>0,u=Object.entries(S).filter(([e,t])=>t.startsWith(`${l}/`)&&(!c||e===t.replace(`${l}/`,""))&&!n.has(t.replace(`${l}/`,""))).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t,isCustom:!0})),x=new Set(u.map(e=>e.id)),p=U.filter(e=>e.providerAlias===l&&!n.has(e.id)&&!x.has(e.id)).map(e=>({id:e.id,name:e.name||e.id,value:`${l}/${e.id}`,isCustom:!0})),h=[...r.map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type})),...u,...p],b=new Set,f=(o=h.filter(e=>!b.has(e.value)&&(b.add(e.value),!0)),T?s.has(T)?o.filter(e=>e.isPlaceholder||e.type===T):o:o.filter(e=>e.isPlaceholder||!e.type||"llm"===e.type));0===f.length&&T&&a.has(T)&&(i.serviceKinds||["llm"]).includes(T)&&(f=[{id:e,name:i.name,value:l}]),f.length>0&&(t[e]={name:i.name,alias:l,color:i.color,models:f})}}),Object.entries(t).forEach(([e,r])=>{let s=new Set([...F[(0,c.wG)(e)]||[],...F[e]||[]]);0!==s.size&&(r.models=r.models.filter(e=>!s.has(e.id)),0===r.models.length&&delete t[e])}),t},[e,E,S,et,q,U,F,T,w,J,V,ee]),es=(0,a.useMemo)(()=>p(P),[P]),ea=(0,a.useMemo)(()=>T||O||!1===A?[]:es.isEmpty?M:M.filter(e=>b(e.name,es)),[M,es,T,O,A]),el=(0,a.useMemo)(()=>{let e={};return Object.entries(er).forEach(([t,r])=>{var s;let a=r.models;if(!O||0!==(a=a.filter(e=>R(e.value)?.[O]===!0)).length){if(!es.isEmpty){let e=b(r.name,es),s=b(r.alias,es)||b(t,es)||b(`${r.alias}/*`,es);if(0===(a=a.filter(t=>!!b(t,es)||(!!e||!!s)&&(!(es.negativeTerms.length>0)||b(t,{...es,positiveTerms:[]})))).length)return}e[t]={...r,models:[...(s=a).filter(e=>I.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name)),...s.filter(e=>!I.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name))]}}}),e},[er,es,I,O,R]),ei=(0,a.useMemo)(()=>{let e=[];return Object.values(el).forEach(t=>{t.models.forEach(t=>{t.isPlaceholder||e.push(t)})}),e},[el]),en=ei.filter(e=>!I.includes(e.value)),eo=ei.filter(e=>I.includes(e.value)),ed=e=>{let s=e?.value||e?.name||e;I.includes(s)&&l?l(e):r(e),$&&(t(),_(""))};return(0,s.jsxs)(n.default,{isOpen:e,onClose:()=>{t(),_("")},title:C,size:"md",className:"p-4!",footer:null,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2.5 py-2 bg-primary/8 border border-primary/20 rounded-lg text-xs text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary shrink-0",style:{fontSize:"14px"},children:"info"}),(0,s.jsx)("span",{children:"Click to add, click again to remove. Search supports exclusions and /regex/."})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,s.jsx)("input",{type:"text",placeholder:"Search models (e.g. claude -haiku, !embed, /regex/)...",value:P,onChange:e=>_(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),!$&&ei.length>0&&(0,s.jsxs)("div",{className:"mt-2 flex items-center justify-between px-1 text-[11px] text-text-muted",children:[(0,s.jsxs)("span",{children:[ei.length," models"]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[en.length>0&&(0,s.jsxs)("button",{type:"button",onClick:()=>{0!==en.length&&(i?i(en):en.forEach(e=>r(e)))},className:"cursor-pointer rounded bg-primary/10 px-2 py-0.5 font-medium text-primary",children:["Select All (",en.length,")"]}),eo.length>0&&l&&(0,s.jsxs)("button",{type:"button",onClick:()=>{0!==eo.length&&l&&(x?x(eo):eo.forEach(e=>l(e)))},className:"cursor-pointer rounded bg-border/40 px-2 py-0.5 font-medium text-text-muted",children:["Deselect All (",eo.length,")"]})]})]})]}),(0,s.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:[ea.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-[14px]",children:"layers"}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:"Combos"}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",ea.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:ea.map(e=>{let t=h===e.name;return(0,s.jsxs)("button",{onClick:()=>ed({id:e.name,name:e.name,value:e.name}),className:`
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5497],{98:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(31474);function i({label:e,options:t=[],value:r,onChange:n,placeholder:o="Select an option",error:d,hint:c,disabled:u=!1,required:m=!1,className:x,selectClassName:p,...h}){let b=(0,a.useId)(),f=h.id||b,g=`${f}-error`,v=`${f}-hint`,j=[h["aria-describedby"],d&&g,c&&v].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5",x),children:[e&&(0,s.jsxs)("label",{htmlFor:f,className:"text-sm font-medium text-text-main",children:[e,m&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsxs)("select",{id:f,value:r,onChange:n,disabled:u,required:m,"aria-invalid":!!d||void 0,"aria-describedby":j,className:(0,l.cn)("w-full py-2.5 px-3 pr-10 text-sm text-text-main","bg-surface-2 border border-transparent rounded-[10px] appearance-none","focus:outline-none focus:border-brand-500/40 focus-visible:ring-2 focus-visible:ring-brand-500/30","transition-[border-color,box-shadow,background-color] duration-150 disabled:opacity-50 disabled:cursor-not-allowed motion-reduce:transition-none","text-[16px] sm:text-sm",d&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...h,children:[(0,s.jsx)("option",{value:"",disabled:!0,children:o}),t.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,s.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"expand_more"})})]}),d&&(0,s.jsxs)("p",{id:g,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),d]}),c&&!d&&(0,s.jsx)("p",{id:v,className:"text-xs text-text-muted",children:c})]})}},929:(e,t,r)=>{r.d(t,{y:()=>d});var s=r(12115),a=r(67899),l=r(1791);let i=null,n=null;function o(){return i?Promise.resolve(i):n||(n=fetch("/api/models").then(async e=>{if(!e.ok)throw Error(`models ${e.status}`);return i=function(e){let t={},r={};for(let s of e||[])s.caps&&(s.fullModel&&(t[s.fullModel]=s.caps),s.routedModel&&(t[s.routedModel]=s.caps),s.model&&(r[s.model]=s.caps));return{byFull:t,byId:r}}((await e.json()).models)}).catch(()=>({byFull:{},byId:{}})).finally(()=>{n=null}))}function d(){let[e,t]=(0,s.useState)(()=>i?.byFull||{}),[r,n]=(0,s.useState)(()=>i?.byId||{});return(0,s.useEffect)(()=>{let e=!0,r=r=>{e&&(t(r.byFull||{}),n(r.byId||{}))};i?r(i):o().then(r);let s=()=>{i=null,o().then(r)};return window.addEventListener("customModelChanged",s),()=>{e=!1,window.removeEventListener("customModelChanged",s)}},[]),{getCaps:(0,s.useCallback)(t=>(function(e,t,r){if(!r)return null;if(e[r])return e[r];let s=r.includes("/")?r.slice(r.indexOf("/")+1):r;if(t[s])return t[s];let i=r.includes("/")?r.slice(0,r.indexOf("/")):null,n=i?l.js[i]||i:null,o=(0,a.nl)(n,s);return{vision:o.vision,pdf:o.pdf,audioInput:o.audioInput,videoInput:o.videoInput,search:o.search,reasoning:o.reasoning,contextWindow:o.contextWindow,maxOutput:o.maxOutput,thinkingFormat:o.thinkingFormat}})(e,r,t),[e,r])}}},1620:(e,t,r)=>{r.d(t,{D:()=>o});var s=r(12115),a=r(90085);function l(e){let t=window.matchMedia("(prefers-color-scheme: dark)");return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches}function n(){return!1}function o(){let{theme:e,setTheme:t,toggleTheme:r,initTheme:o}=(0,a.A)(),d=(0,s.useSyncExternalStore)(l,i,n);(0,s.useEffect)(()=>{o()},[o]),(0,s.useEffect)(()=>{if("system"!==e)return;let t=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>o();return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e,o]);let c="dark"===e||"system"===e&&d;return{theme:e,setTheme:t,toggleTheme:r,isDark:c}}},4823:(e,t,r)=>{r.d(t,{default:()=>x});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(84588),o=r(98),d=r(56061),c=r(98542);let u="__none__",m=[{value:"none",label:"None (single pool)"},{value:"round-robin",label:"Round-robin"},{value:"random",label:"Random"}];function x({providerId:e}){let[t,r]=(0,a.useState)([]),[l,i]=(0,a.useState)(u),[p,h]=(0,a.useState)("none"),[b,f]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let t=!1;return Promise.all([fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.ok?e.json():{proxyPools:[]}),fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{})]).then(([s,a])=>{if(t)return;r(s.proxyPools||[]);let l=(a.providerStrategies||{})[e]||{};i(l.proxyPoolId||u),h(l.rotateStrategy||"none"),f(!0===l.freeWarpMode)}).catch(()=>{}),()=>{t=!0}},[e]);let N=(0,a.useCallback)(async(t,r,s)=>{v(!0);try{let a=await fetch("/api/settings",{cache:"no-store"}),l=(a.ok?await a.json():{}).providerStrategies||{},i={...l[e]||{}};t===u?delete i.proxyPoolId:i.proxyPoolId=t,"none"===r?delete i.rotateStrategy:i.rotateStrategy=r,s?i.freeWarpMode=!0:delete i.freeWarpMode;let n={...l};0===Object.keys(i).length?delete n[e]:n[e]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:n})}),y(!0),setTimeout(()=>y(!1),1500)}catch(e){console.log("Save proxy config error:",e)}finally{v(!1)}},[e]),k=t.length>=2,w="none"!==p;return(0,s.jsxs)(n.default,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-full bg-green-500/10 text-green-500",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:"No authentication required"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"This provider is ready to use. Optionally route requests through a proxy pool to bypass IP-based limits."})]}),j&&(0,s.jsx)(d.default,{variant:"success",size:"sm",children:"Saved"})]}),"opencode"===e&&(0,s.jsx)("div",{className:"mb-4 rounded-lg border border-emerald-500/30 bg-emerald-500/5 p-3.5",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsx)(c.default,{checked:b,onChange:e=>{f(e),N(l,p,e)},disabled:g,label:"Free WARP IPv6 Auto-Mint Mode ($0 Zero-Proxy Anti-429)",description:"100% Single-Model Lock (no model ping-pong). Uses Direct IP + auto-minted Cloudflare WARP /128 IPv6 tunnels (wgcf + wireproxy) on macOS, Ubuntu/Linux, and Windows whenever 429 hits — no paid proxy needed."}),b&&(0,s.jsx)(d.default,{variant:"success",size:"sm",children:"Active \xb7 Free IPv6"})]})}),(0,s.jsx)(o.default,{label:"Proxy Pool",value:l,onChange:e=>{var t;i(t=e.target.value),N(t,p,b)},disabled:g||w||b,options:[{value:u,label:"None (direct)"},...t.map(e=>({value:e.id,label:e.name}))],hint:w?"Pool selector is ignored when rotation is active — all active pools are used.":void 0}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-text-main",children:"Rotation Strategy"}),(0,s.jsx)("select",{value:p,onChange:e=>{var t;h(t=e.target.value),N(l,t,b)},disabled:g,className:"py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all disabled:opacity-50",children:m.map(e=>(0,s.jsx)("option",{value:e.value,disabled:"none"!==e.value&&!k,children:e.label},e.value))}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:k?w?"round-robin"===p?`Rotating through all ${t.length} active pools in order. State is in-memory (resets on restart).`:`Picking a random pool from ${t.length} active pools each request.`:"Uses the selected pool above. Set to Round-robin or Random to rotate across all active pools.":"Need at least 2 active proxy pools for rotation."})]})]})}x.propTypes={providerId:i().string.isRequired}},7648:(e,t,r)=>{r.d(t,{default:()=>c});var s=r(95155),a=r(12115),l=r(73321),i=r(65921),n=r(92622),o=r(8823),d=r(91852);function c({children:e}){let[t,r]=(0,a.useState)(!1),u=(0,a.useRef)(null),m=(0,a.useRef)(null),x=(0,l.usePathname)(),p=(0,i.i)(e=>e.notifications),h=(0,i.i)(e=>e.removeNotification),b="/dashboard/playground"===x||"/dashboard/basic-chat"===x,f="/dashboard/terminal"===x,g=b||f;return(0,a.useEffect)(()=>{if(!t)return;let e=m.current;u.current?.focus();let s=e=>{if("Escape"===e.key)return void r(!1);if("Tab"!==e.key||!u.current)return;let t=[...u.current.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')],s=t[0],a=t[t.length-1];s?e.shiftKey&&(document.activeElement===s||document.activeElement===u.current)?(e.preventDefault(),a.focus()):e.shiftKey||document.activeElement!==a||(e.preventDefault(),s.focus()):e.preventDefault()};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s),e?.focus()}},[t]),(0,s.jsxs)("div",{className:"dashboard-shell relative isolate flex h-screen w-full overflow-hidden bg-bg",children:[(0,s.jsx)(d.A,{quiet:!0}),(0,s.jsx)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:rounded-lg focus:bg-surface focus:px-4 focus:py-2 focus:text-text-main focus:shadow-lg",children:"Skip to main content"}),(0,s.jsx)("div",{"aria-live":"polite","aria-relevant":"additions text",className:"fixed top-3 right-3 z-[80] flex w-[min(calc(100vw-1.5rem),380px)] flex-col gap-2 sm:top-4 sm:right-4",children:p.map(e=>{var t;let r="success"===(t=e.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===t?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===t?{wrapper:"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",icon:"warning"}:{wrapper:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400",icon:"info"};return(0,s.jsx)("div",{role:"error"===e.type?"alert":"status",className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${r.wrapper}`,children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px] leading-5",children:r.icon}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,s.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:e.title}):null,(0,s.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:e.message})]}),e.dismissible?(0,s.jsx)("button",{type:"button",onClick:()=>h(e.id),className:"-m-2 grid size-11 shrink-0 place-items-center rounded-lg text-current/70 transition-colors hover:bg-current/10 hover:text-current focus:outline-none focus-visible:ring-2 focus-visible:ring-current/40 sm:-m-1 sm:size-9","aria-label":"Dismiss notification",children:(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},e.id)})}),t&&(0,s.jsx)("button",{type:"button",className:"fixed inset-0 z-40 bg-black/30 backdrop-blur-[1px] lg:hidden",onClick:()=>r(!1),"aria-label":"Close dashboard navigation"}),(0,s.jsx)("div",{className:"hidden lg:flex",children:(0,s.jsx)(n.default,{})}),t&&(0,s.jsx)("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":"Dashboard navigation",tabIndex:-1,className:"fixed inset-y-0 left-0 z-50 h-dvh min-h-0 max-h-dvh lg:hidden focus:outline-none",children:(0,s.jsx)(n.default,{onClose:()=>r(!1)})}),(0,s.jsxs)("main",{id:"main-content",tabIndex:-1,className:"flex flex-col flex-1 h-full min-w-0 relative transition-colors duration-300 isolate",children:[g?(0,s.jsxs)("div",{className:"lg:hidden shrink-0 flex min-h-12 items-center gap-2 px-2 py-1 border-b border-border-subtle bg-surface/60",children:[(0,s.jsx)("button",{ref:m,type:"button",onClick:()=>r(!0),className:"flex size-11 shrink-0 items-center justify-center rounded-lg text-text-main hover:bg-surface-2 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40","aria-label":"Open dashboard navigation",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}),(0,s.jsx)("span",{className:"text-sm font-semibold",children:f?"Terminal":"Playground"})]}):(0,s.jsx)(o.default,{menuButtonRef:m,onMenuClick:()=>r(!0)},x),(0,s.jsx)("div",{className:`dashboard-content-gutter flex-1 overflow-y-auto custom-scrollbar ${g?"":"px-3 py-4 sm:px-6 sm:py-7 lg:px-10 lg:py-8"} ${g?"flex flex-col overflow-hidden":""}`,children:(0,s.jsx)("div",{className:`${g?"flex-1 w-full h-full flex flex-col min-h-0":"w-full min-w-0 max-w-6xl mx-auto"}`,children:e})})]})]})}},8823:(e,t,r)=>{r.d(t,{default:()=>y});var s=r(95155),a=r(12115),l=r(73321),i=r(98500),n=r.n(i),o=r(14051),d=r.n(o),c=r(57250),u=r(80752),m=r(93308),x=r(38202),p=r(21931);function h(){let[e,t]=(0,a.useState)(!1),[r,l]=(0,a.useState)("en");return(0,a.useEffect)(()=>{l(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${m.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,m.QC)(t)}())},[e]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),className:"flex size-11 items-center justify-center rounded-xl text-text-muted transition-all hover:bg-black/5 hover:text-text-main dark:hover:bg-white/5 sm:size-10 sm:rounded-lg",title:"Language","aria-label":"Change language","data-i18n-skip":"true",children:(0,s.jsx)("span",{className:"text-lg leading-none",children:x.h[r]||"\uD83C\uDF10"})}),(0,s.jsx)(p.default,{hideTrigger:!0,isOpen:e,onClose:e=>{t(!1),l(e)}})]})}var b=r(38587),f=r(38003),g=r(90620),v=r(1791),j=r(73006);function y({onMenuClick:e,showMenuButton:t=!0,menuButtonRef:r}){let i=(0,l.usePathname)(),o=(0,l.useRouter)(),[d,m]=(0,a.useState)(""),[x,p]=(0,a.useState)(""),{title:f,description:k,icon:w,breadcrumbs:C}=(0,a.useMemo)(()=>(e=>{if(!e)return{title:"",description:"",breadcrumbs:[]};let t=e.match(/\/media-providers\/([^/]+)\/([^/]+)$/);if(t){let e=t[1],r=t[2],s=v.rj.find(t=>t.id===e),a=v.Q2[r];return{title:a?.name||r,description:"",breadcrumbs:[{label:"Media Providers",href:`/dashboard/media-providers/${e}`},{label:s?.label||e,href:`/dashboard/media-providers/${e}`},{label:a?.name||r,image:`/providers/${r}.png`}]}}let r=e.match(/\/media-providers\/([^/]+)$/);if(r){let e=r[1],t=v.rj.find(t=>t.id===e);return{title:t?.label||e,description:`Manage your ${t?.label||e} providers`,icon:t?.icon||"perm_media",breadcrumbs:[]}}let s=e.match(/\/providers\/([^/]+)$/);if(s){let e=s[1],t=g.zN[e]||g.fg[e];if(t)return{title:t.name,description:"",breadcrumbs:[{label:"Providers",href:"/dashboard/providers"},{label:t.name,image:`/providers/${t.id}.png`}]}}return e.includes("/providers")&&!e.includes("/media-providers")?{title:"Providers",description:"Manage your AI provider connections",icon:"dns",breadcrumbs:[]}:e.includes("/combos")?{title:"Combos",description:"Model combos with fallback",icon:"layers",breadcrumbs:[]}:e.includes("/usage")?{title:"Usage & Analytics",description:"Monitor your API usage, token consumption, and request logs",icon:"bar_chart",breadcrumbs:[]}:e.includes("/auth-files")?{title:"Auth Files",description:"Map provider credentials stored in the local database",icon:"vpn_key",breadcrumbs:[]}:e.includes("/quota")?{title:"Quota Tracker",description:"Track and manage your API quota limits",icon:"data_usage",breadcrumbs:[]}:e.includes("/mitm")?{title:"MITM Proxy",description:"Intercept CLI tool traffic and route through ZevaiRouter",icon:"security",breadcrumbs:[]}:e.includes("/cli-tools")?{title:"CLI Tools",description:"Configure CLI tools",icon:"handyman",breadcrumbs:[]}:e.includes("/terminal")?{title:"Terminal",description:"Host web shell — requires a second password",icon:"terminal",breadcrumbs:[]}:e.includes("/automation")?{title:"Automation",description:"Bulk account and workflow automation",icon:"automation",breadcrumbs:[]}:e.includes("/token-saver")?{title:"Token Saver",description:"Reduce prompt tokens before they hit providers",icon:"savings",breadcrumbs:[]}:e.includes("/context")?{title:"Context Inject",description:"Inject shared context into routed requests",icon:"psychology",breadcrumbs:[]}:e.includes("/pxpipe")?{title:"PxPipe",description:"Proxy pipeline status and controls",icon:"cable",breadcrumbs:[]}:e.includes("/proxy-pools")?{title:"Proxy Pools",description:"Manage your proxy pool configurations",icon:"lan",breadcrumbs:[]}:e.includes("/skills")?{title:"Agent Skills",description:"Copy a link and paste to your AI to use ZevaiRouter — no install needed",icon:"extension",breadcrumbs:[]}:e.includes("/endpoint")?{title:"Endpoint",description:"API endpoint configuration",icon:"terminal",breadcrumbs:[]}:e.includes("/profile")?{title:"Settings",description:"Manage your preferences",icon:"settings",breadcrumbs:[]}:e.includes("/translator")?{title:"Translator",description:"Debug translation flow between formats",icon:"translate",breadcrumbs:[]}:e.includes("/console-log")?{title:"Console Log",description:"Live server console output",icon:"monitor",breadcrumbs:[]}:e.includes("/playground")||e.includes("/basic-chat")?{title:"Playground",description:"Chat with any connected model through ZevaiRouter",icon:"forum",breadcrumbs:[]}:"/dashboard"===e?{title:"Endpoint",description:"API endpoint configuration",icon:"terminal",breadcrumbs:[]}:{title:"",description:"",breadcrumbs:[]}})(i),[i]);(0,a.useEffect)(()=>{let e=!1;return async function(){try{let t=await fetch("/api/auth/status",{cache:"no-store"});if(!t.ok)return;let r=await t.json();e||(m(r?.displayName||r?.oidcName||r?.oidcEmail||""),p(r?.loginMethod||""))}catch{e||(m(""),p(""))}}(),()=>{e=!0}},[]);let S=async()=>{try{await fetch("/api/auth/logout",{method:"POST"})}catch(e){console.error("Failed to logout:",e)}o.push("/login"),o.refresh()};return(0,s.jsxs)("header",{className:"dashboard-topbar relative z-20 shrink-0 flex min-h-16 flex-wrap items-center justify-between gap-2 border-b border-border-subtle bg-surface/90 px-3 py-2.5 shadow-[0_12px_35px_-34px_rgba(15,23,42,0.8)] backdrop-blur-sm sm:gap-3 sm:px-4 sm:py-3 lg:min-h-[76px] lg:px-8",children:[(0,s.jsx)("div",{className:"flex items-center gap-2 lg:hidden shrink-0",children:t&&(0,s.jsx)("button",{ref:r,type:"button",onClick:e,className:"flex size-11 items-center justify-center rounded-xl text-text-main transition-colors hover:bg-surface-2 hover:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 sm:size-10 sm:rounded-lg","aria-label":"Open dashboard navigation",children:(0,s.jsx)("span",{className:"material-symbols-outlined",children:"menu"})})}),(0,s.jsx)("div",{className:"flex flex-col min-w-0 flex-1",children:C.length>0?(0,s.jsx)("div",{className:"flex items-center gap-2",children:C.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t>0&&(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-base",children:"chevron_right"}),e.href?(0,s.jsx)(n(),{href:e.href,className:"text-text-muted hover:text-primary transition-colors",children:e.label}):(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e.image&&(0,s.jsx)(c.A,{src:e.image,alt:e.label,size:28,className:"object-contain rounded max-w-[28px] max-h-[28px]",fallbackText:e.label.slice(0,2).toUpperCase()}),(0,s.jsx)("h1",{className:"text-base lg:text-2xl font-semibold text-text-main tracking-tight truncate",children:(0,j.Tl)(e.label)})]})]},`${e.label}-${e.href||"current"}`))}):f?(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[w&&(0,s.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-[10px] bg-primary/10 text-primary ring-1 ring-primary/15 lg:size-10 lg:rounded-xl",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-lg lg:text-[22px]",children:w})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h1",{className:"truncate text-base font-semibold tracking-tight lg:text-[22px]",children:(0,j.Tl)(f)}),k&&(0,s.jsx)("p",{className:"hidden truncate text-sm text-text-muted lg:block",children:(0,j.Tl)(k)})]})]})}):null}),(0,s.jsxs)("div",{className:"dashboard-header-actions order-2 flex shrink-0 flex-wrap items-center justify-end gap-0.5 sm:order-none sm:gap-1 lg:rounded-xl lg:border lg:border-border-subtle lg:bg-surface-2/60 lg:p-1",children:[d&&"OIDC"===x&&(0,s.jsxs)("div",{className:"hidden sm:flex items-center max-w-[220px] px-3 py-1.5 rounded-full border border-border bg-surface/70 text-xs text-text-muted truncate",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1.5 text-primary",children:"person"}),(0,s.jsx)("span",{className:"truncate",children:d}),(0,s.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-primary",children:"OIDC"})]}),(0,s.jsx)(b.default,{className:"size-11 sm:size-10"}),(0,s.jsx)(h,{}),(0,s.jsx)(u.default,{onLogout:S})]}),(0,s.jsx)(N,{})]})}function N(){let e=(0,f.C)(e=>e.visible),t=(0,f.C)(e=>e.query),r=(0,f.C)(e=>e.placeholder),a=(0,f.C)(e=>e.setQuery);return e?(0,s.jsxs)("div",{className:"relative order-3 w-full sm:order-none sm:w-[220px]",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2 top-1/2 -translate-y-1/2 text-text-muted text-[16px] pointer-events-none",children:"search"}),(0,s.jsx)("input",{type:"text",value:t,onChange:e=>a(e.target.value),placeholder:r,"aria-label":r||"Search",className:"h-11 w-full rounded-xl border border-border bg-surface/80 pl-9 pr-11 text-sm shadow-sm transition-colors focus:border-primary/50 focus:outline-none focus:ring-2 focus:ring-primary/10 sm:h-9 sm:pl-8 sm:pr-8"}),t&&(0,s.jsx)("button",{type:"button",onClick:()=>a(""),className:"absolute right-0 top-1/2 flex size-11 -translate-y-1/2 items-center justify-center rounded-xl text-text-muted hover:text-text-main sm:right-0.5 sm:size-8 sm:rounded-lg","aria-label":"Clear search",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]}):null}y.propTypes={onMenuClick:d().func,showMenuButton:d().bool,menuButtonRef:d().shape({current:d().object})}},11059:(e,t,r)=>{r.d(t,{C:()=>a});var s=r(12115);function a(e=2e3){let[t,r]=(0,s.useState)(null),l=(0,s.useRef)(null),i=(0,s.useRef)(!0);function n(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),document.execCommand("copy")}finally{document.body.removeChild(t)}}return(0,s.useEffect)(()=>(i.current=!0,()=>{i.current=!1,l.current&&clearTimeout(l.current)}),[]),{copied:t,copy:(0,s.useCallback)(async(t,s="default")=>{let a=!1;try{navigator?.clipboard?.writeText?(await navigator.clipboard.writeText(t),a=!0):a=n(t)}catch{try{a=n(t)}catch{a=!1}}return a&&i.current&&(r(s),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{i.current&&r(null)},e)),a},[e])}}},11910:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(31474);function i({label:e,type:t="text",placeholder:r,value:n,onChange:o,error:d,hint:c,icon:u,disabled:m=!1,required:x=!1,className:p,inputClassName:h,...b}){let f=(0,a.useId)(),g=b.id||f,v=`${g}-error`,j=`${g}-hint`,y=[b["aria-describedby"],d&&v,c&&j].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-1.5",p),children:[e&&(0,s.jsxs)("label",{htmlFor:g,className:"text-sm font-medium text-text-main",children:[e,x&&(0,s.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,s.jsxs)("div",{className:"relative",children:[u&&(0,s.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:u})}),(0,s.jsx)("input",{id:g,type:t,placeholder:r,value:n,onChange:o,disabled:m,required:x,"aria-invalid":!!d||void 0,"aria-describedby":y,className:(0,l.cn)("w-full py-2.5 px-3 text-sm text-text-main bg-surface-2 rounded-[10px]","border border-transparent placeholder-text-muted/70","focus:outline-none focus:border-brand-500/40 focus-visible:ring-2 focus-visible:ring-brand-500/30","transition-[border-color,box-shadow,background-color] duration-150 ease-out disabled:opacity-50 disabled:cursor-not-allowed motion-reduce:transition-none","text-[16px] sm:text-sm",u&&"pl-10",d&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",h),...b})]}),d&&(0,s.jsxs)("p",{id:v,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),d]}),c&&!d&&(0,s.jsx)("p",{id:j,className:"text-xs text-text-muted",children:c})]})}},12252:(e,t,r)=>{r.d(t,{F:()=>a});var s=r(12115);function a(e){let[t,r]=(0,s.useState)([]);return(0,s.useEffect)(()=>{if(!e)return;let t=new AbortController;return fetch("/api/providers/kiro/models",{cache:"no-store",signal:t.signal}).then(e=>e.ok?e.json():{models:[]}).then(e=>r(Array.isArray(e?.models)?e.models:[])).catch(e=>{e?.name!=="AbortError"&&r([])}),()=>t.abort()},[e]),e?t:[]}},21110:(e,t,r)=>{r.d(t,{ThemeProvider:()=>i});var s=r(95155),a=r(12115),l=r(90085);function i({children:e}){let{initTheme:t}=(0,l.A)();return(0,a.useEffect)(()=>{t()},[t]),(0,s.jsx)(s.Fragment,{children:e})}},21286:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,connectionIds:t,onSuccess:r,onClose:l,endpoint:i="/api/oauth/codebuddy/quota-cookie"}){let[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),[x,p]=(0,a.useState)(""),[h,b]=(0,a.useState)(!1),f=async()=>{if(!d.trim())return void p("Paste your CodeBuddy web cookie first.");m(!0),p("");try{let e=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:d.trim(),connectionIds:t})}),s=await e.json().catch(()=>({}));if(!e.ok)throw Error(s.error||"Failed to save CodeBuddy quota cookie.");b(!0),setTimeout(()=>{r?.(),g()},900)}catch(e){p(e.message||"Failed to save CodeBuddy quota cookie.")}finally{m(!1)}},g=()=>{c(""),p(""),b(!1),l?.()};return(0,s.jsx)(n.aF,{isOpen:e,onClose:g,title:"CodeBuddy Quota Cookie",children:(0,s.jsx)("div",{className:"space-y-4",children:h?(0,s.jsxs)("div",{className:"py-6 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Quota cookie saved."}),(0,s.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:"Quota Tracker can now read CodeBuddy credits for the selected connection."})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2 text-sm text-text-muted",children:[(0,s.jsx)("p",{children:"Paste the cookie string from a logged-in CodeBuddy web session. This is only used for the quota endpoint; your existing OAuth token still handles chat."}),(0,s.jsx)("div",{className:"rounded-lg bg-surface-secondary p-3 text-xs",children:"Open codebuddy.ai, sign in, then copy the request cookie from DevTools Network for a request to codebuddy.ai."})]}),(0,s.jsx)("textarea",{value:d,onChange:e=>c(e.target.value),placeholder:"session=...; AUTH_SESSION_ID=...; ...",className:"h-28 w-full resize-none rounded-lg border border-border bg-surface-secondary px-3 py-2 text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary",disabled:u}),x&&(0,s.jsx)("div",{className:"rounded-lg border border-error/20 bg-error/10 p-3",children:(0,s.jsx)("p",{className:"text-sm text-error",children:x})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(n.$n,{variant:"secondary",onClick:g,disabled:u,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(n.$n,{onClick:f,loading:u,fullWidth:!0,children:"Save Cookie"})]})]})})})}o.propTypes={isOpen:i().bool.isRequired,connectionIds:i().arrayOf(i().string).isRequired,onSuccess:i().func,onClose:i().func,endpoint:i().string}},21931:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),a=r(12115),l=r(47650),i=r(93308),n=r(73006);let o=e=>({en:{name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},vi:{name:"Tiếng Việt",flag:"\uD83C\uDDFB\uD83C\uDDF3"},"zh-CN":{name:"简体中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"},"zh-TW":{name:"繁體中文",flag:"\uD83C\uDDF9\uD83C\uDDFC"},ja:{name:"日本語",flag:"\uD83C\uDDEF\uD83C\uDDF5"},"pt-BR":{name:"Portugu\xeas (Brasil)",flag:"\uD83C\uDDE7\uD83C\uDDF7"},"pt-PT":{name:"Portugu\xeas (Portugal)",flag:"\uD83C\uDDF5\uD83C\uDDF9"},ko:{name:"한국어",flag:"\uD83C\uDDF0\uD83C\uDDF7"},es:{name:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8"},de:{name:"Deutsch",flag:"\uD83C\uDDE9\uD83C\uDDEA"},fr:{name:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7"},he:{name:"עברית",flag:"\uD83C\uDDEE\uD83C\uDDF1"},ar:{name:"العربية",flag:"\uD83C\uDDF8\uD83C\uDDE6"},ru:{name:"Русский",flag:"\uD83C\uDDF7\uD83C\uDDFA"},pl:{name:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1"},cs:{name:"Čeština",flag:"\uD83C\uDDE8\uD83C\uDDFF"},nl:{name:"Nederlands",flag:"\uD83C\uDDF3\uD83C\uDDF1"},tr:{name:"T\xfcrk\xe7e",flag:"\uD83C\uDDF9\uD83C\uDDF7"},uk:{name:"Українська",flag:"\uD83C\uDDFA\uD83C\uDDE6"},tl:{name:"Tagalog",flag:"\uD83C\uDDF5\uD83C\uDDED"},id:{name:"Indonesia",flag:"\uD83C\uDDEE\uD83C\uDDE9"},km:{name:"ខ្មែរ",flag:"\uD83C\uDDF0\uD83C\uDDED"},th:{name:"ไทย",flag:"\uD83C\uDDF9\uD83C\uDDED"},hi:{name:"हिन्दी",flag:"\uD83C\uDDEE\uD83C\uDDF3"},bn:{name:"বাংলা",flag:"\uD83C\uDDE7\uD83C\uDDE9"},ur:{name:"اردو",flag:"\uD83C\uDDF5\uD83C\uDDF0"},ro:{name:"Rom\xe2nă",flag:"\uD83C\uDDF7\uD83C\uDDF4"},sv:{name:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA"},it:{name:"Italiano",flag:"\uD83C\uDDEE\uD83C\uDDF9"},el:{name:"Ελληνικά",flag:"\uD83C\uDDEC\uD83C\uDDF7"},hu:{name:"Magyar",flag:"\uD83C\uDDED\uD83C\uDDFA"},fi:{name:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE"},da:{name:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0"},no:{name:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4"},fa:{name:"فارسی",flag:"\uD83C\uDDEE\uD83C\uDDF7"}})[e]||{name:e,flag:"\uD83C\uDF10"};function d({className:e="",isOpen:t,onClose:r,hideTrigger:c=!1}){let[u,m]=(0,a.useState)("en"),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),f=(0,a.useRef)(null),g="boolean"==typeof t,v=g?t:h,j=e=>{g?!e&&r&&r(u):b(e)};(0,a.useEffect)(()=>{m(function(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${i.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,i.QC)(t)}())},[]),(0,a.useEffect)(()=>{function e(e){f.current&&!f.current.contains(e.target)&&j(!1)}if(v)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[v]);let y=async e=>{if(e!==u&&!x){p(!0),j(!1);try{let t=await fetch("/api/locale",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:e})});if(!t.ok)throw Error(`Locale change rejected (${t.status})`);await (0,n.wn)(),m(e)}catch(e){console.error("Failed to set locale:",e)}finally{p(!1)}}};return(0,s.jsxs)("div",{className:e,children:[!c&&(0,s.jsxs)("button",{onClick:()=>j(!v),disabled:x,className:"flex items-center gap-2 px-3 py-2 rounded-lg text-text-muted hover:text-text-main hover:bg-surface/60 transition-colors",title:"Language","data-i18n-skip":"true",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"}),(0,s.jsx)("span",{className:"text-sm font-medium",children:o(u).name}),(0,s.jsx)("span",{className:"text-lg",children:o(u).flag})]}),v&&(0,l.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","data-i18n-skip":"true",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/30 backdrop-blur-sm",onClick:()=>j(!1)}),(0,s.jsxs)("div",{ref:f,className:"relative w-full bg-surface border border-black/10 dark:border-white/10 rounded-xl shadow-2xl animate-in fade-in zoom-in-95 duration-200 max-w-2xl flex flex-col max-h-[80vh]",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-black/5 dark:border-white/5",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:"Select Language"}),(0,s.jsx)("button",{onClick:()=>j(!1),className:"p-1.5 rounded-lg text-text-muted hover:bg-black/5 dark:hover:bg-white/5 transition-colors","aria-label":"Close",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,s.jsx)("div",{className:"p-6 overflow-y-auto flex-1",children:(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(100px,1fr))] gap-2",children:i.YZ.map(e=>{let t=u===e,r=o(e);return(0,s.jsxs)("button",{onClick:()=>y(e),disabled:x,className:`flex flex-col items-center justify-start gap-1 px-2 py-3 rounded-lg text-xs font-medium transition-colors w-full ${t?"bg-primary/15 text-primary ring-2 ring-primary":"text-text-main hover:bg-black/5 dark:hover:bg-white/5"} ${x?"opacity-70 cursor-wait":""}`,title:r.name,children:[(0,s.jsx)("span",{className:"text-2xl",children:r.flag}),(0,s.jsx)("span",{className:"text-center leading-tight line-clamp-2 h-8 flex items-center",children:r.name}),t&&(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"check"})]},e)})})})]})]}),document.body)]})}},22942:(e,t,r)=>{function s(e,t,r){let s=r.height-e.bottom,a=s<(t+1)*34+8&&e.top>s;return{position:"fixed",right:r.width-e.right,...a?{bottom:r.height-e.top+4,maxHeight:Math.max(e.top-8,120)}:{top:e.bottom+4,maxHeight:Math.max(s-8,120)}}}function a(e,t,r){let s=e.left+e.width/2,a=e.top+e.height/2;return"bottom"===t?{position:"fixed",top:e.bottom+6,left:s,transform:"translateX(-50%)"}:"left"===t?{position:"fixed",right:r.width-e.left+6,top:a,transform:"translateY(-50%)"}:"right"===t?{position:"fixed",left:e.right+6,top:a,transform:"translateY(-50%)"}:{position:"fixed",bottom:r.height-e.top+6,left:s,transform:"translateX(-50%)"}}r.d(t,{Z:()=>a,x:()=>s})},23615:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(84588);function i(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)(!0),[n,o]=(0,a.useState)(!0);(0,a.useEffect)(()=>{d()},[]),(0,a.useEffect)(()=>{let e;return n&&(e=setInterval(()=>{d(!1)},3e3)),()=>clearInterval(e)},[n]);let d=async(e=!0)=>{e&&i(!0);try{let e=await fetch("/api/usage/request-logs");if(e.ok){let r=await e.json();t(r)}}catch(e){console.error("Failed to fetch logs:",e)}finally{e&&i(!1)}};return(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:(0,s.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,s.jsx)("span",{children:"Auto Refresh (3s)"}),(0,s.jsx)("div",{onClick:()=>o(!n),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${n?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,s.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${n?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,s.jsx)(l.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,s.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:r&&0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===e.length?(0,s.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,s.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,s.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,s.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,s.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,s.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,t)=>{let r=e.split(" | ");if(r.length<7)return null;let a=r[6],l=a.includes("PENDING"),i=a.includes("FAILED"),n=a.includes("OK");return(0,s.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${l?"bg-primary/5":""}`,children:[(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:r[0]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:r[1]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,s.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:r[2]})}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:r[3],children:r[3]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:r[4]}),(0,s.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:r[5]}),(0,s.jsx)("td",{className:`px-3 py-1.5 font-bold ${n?"text-success":i?"text-error":"text-primary animate-pulse"}`,children:a})]},t)})})]})})}),(0,s.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},23936:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,i]=(0,a.useState)(""),[d,c]=(0,a.useState)(!1),[u,m]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),h=async()=>{if(!l.trim())return void m("Please paste your cookie");c(!0),m(null);try{let e=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:l.trim()})}),r=await e.json();if(!e.ok)throw Error(r.error||"Authentication failed");p(!0),setTimeout(()=>{t?.(),b()},1500)}catch(e){m(e.message)}finally{c(!1)}},b=()=>{i(""),m(null),p(!1),r?.()};return(0,s.jsx)(n.aF,{isOpen:e,onClose:b,title:"iFlow Cookie Authentication",children:(0,s.jsx)("div",{className:"space-y-4",children:x?(0,s.jsxs)("div",{className:"text-center py-8",children:[(0,s.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,s.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,s.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,s.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,s.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,s.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,s.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,s.jsx)("li",{children:"Login to your account"}),(0,s.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,s.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,s.jsx)("li",{children:"Paste it below"})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,s.jsx)("textarea",{value:l,onChange:e=>i(e.target.value),placeholder:"BXAuth=xxx; ...",className:"w-full px-3 py-2 bg-surface-secondary border border-border rounded-lg text-sm text-text-primary placeholder-text-muted focus:outline-none focus:ring-2 focus:ring-primary resize-none",rows:4,disabled:d})]}),u&&(0,s.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,s.jsx)("p",{className:"text-sm text-error",children:u})}),(0,s.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,s.jsx)(n.$n,{variant:"secondary",onClick:b,disabled:d,fullWidth:!0,children:"Cancel"}),(0,s.jsx)(n.$n,{onClick:h,loading:d,fullWidth:!0,children:"Authenticate"})]})]})})})}o.propTypes={isOpen:i().bool.isRequired,onSuccess:i().func,onClose:i().func}},25086:(e,t,r)=>{r.d(t,{CardSkeleton:()=>o,DataListSkeleton:()=>d,PageLoading:()=>i,Skeleton:()=>n,Spinner:()=>l,default:()=>c});var s=r(95155),a=r(31474);function l({size:e="md",className:t}){return(0,s.jsx)("span",{className:(0,a.cn)("material-symbols-outlined animate-spin text-brand-500 motion-reduce:animate-none",{sm:"size-4",md:"size-6",lg:"size-8",xl:"size-12"}[e],t),children:"progress_activity"})}function i({message:e="Loading..."}){return(0,s.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e,className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,s.jsx)(l,{size:"xl"}),(0,s.jsx)("p",{className:"mt-4 text-text-muted",children:e})]})}function n({className:e,...t}){return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-[10px] bg-surface-2 motion-reduce:animate-none",e),...t})}function o({className:e}){return(0,s.jsxs)("div",{"aria-hidden":"true",className:(0,a.cn)("rounded-[14px] border border-border-subtle bg-surface p-6 shadow-[var(--shadow-soft)]",e),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)(n,{className:"h-4 w-24"}),(0,s.jsx)(n,{className:"size-10 rounded-[10px]"})]}),(0,s.jsx)(n,{className:"h-8 w-16 mb-2"}),(0,s.jsx)(n,{className:"h-3 w-20"})]})}function d({rows:e=4,label:t="Loading data",className:r}){return(0,s.jsx)("div",{role:"status","aria-label":t,className:(0,a.cn)("divide-y divide-border-subtle",r),children:Array.from({length:e},(e,t)=>(0,s.jsxs)("div",{"aria-hidden":"true",className:"grid grid-cols-[minmax(6rem,0.7fr)_minmax(0,1.3fr)] gap-4 py-4",children:[(0,s.jsx)(n,{className:"h-4 w-24 max-w-full"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(n,{className:"h-4 w-2/3"}),(0,s.jsx)(n,{className:"h-3 w-1/3"})]})]},t))})}function c({type:e="spinner",...t}){switch(e){case"page":return(0,s.jsx)(i,{...t});case"skeleton":return(0,s.jsx)(n,{...t});case"card":return(0,s.jsx)(o,{...t});default:return(0,s.jsx)(l,{...t})}}},28058:(e,t,r)=>{r.d(t,{default:()=>i});var s=r(95155),a=r(12115),l=r(81127);function i({isOpen:e,onClose:t,onAdd:r,addedNames:n=[]}){let[o,d]=(0,a.useState)([]),[c,u]=(0,a.useState)(!1),[m,x]=(0,a.useState)(""),[p,h]=(0,a.useState)("all"),[b,f]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),[j,y]=(0,a.useState)({}),[N,k]=(0,a.useState)({}),[w,C]=(0,a.useState)({});(0,a.useEffect)(()=>{!e||o.length>0||(u(!0),fetch("/api/cli-tools/cowork-mcp-registry").then(e=>e.json()).then(e=>{e.error?f(e.error):d(e.servers||[])}).catch(e=>f(e.message)).finally(()=>u(!1)))},[e,o.length]);let S=(0,a.useMemo)(()=>new Set(n),[n]),T=(0,a.useMemo)(()=>{let e=m.trim().toLowerCase();return o.filter(t=>("authless"!==p||!t.oauth)&&("oauth"!==p||!!t.oauth)&&(!e||(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e)||(t.name||"").toLowerCase().includes(e)))},[o,m,p]),I=async e=>{if(!j[e.url]){k(t=>({...t,[e.url]:!0}));try{let t=await fetch("/api/cli-tools/cowork-mcp-tools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e.url})}),r=await t.json(),s=r.tools||[],a=Array.isArray(e.toolNames)?e.toolNames:[],l=s.length>0?s.map(e=>e.name):a;y(t=>({...t,[e.url]:{tools:s,requiresAuth:!!r.requiresAuth,error:r.error}})),C(t=>({...t,[e.url]:Object.fromEntries(l.map(e=>[e,!0]))}))}catch(t){y(r=>({...r,[e.url]:{tools:[],error:t.message}}))}finally{k(t=>({...t,[e.url]:!1}))}}},$=(e,t)=>{let r=w[e]||{};C(s=>({...s,[e]:Object.fromEntries(Object.keys(r).map(e=>[e,t]))}))};return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:"Browse MCP Marketplace",size:"lg",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",value:m,onChange:e=>x(e.target.value),placeholder:"Search by name or description...",className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,s.jsxs)("select",{value:p,onChange:e=>h(e.target.value),className:"px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:[(0,s.jsx)("option",{value:"all",children:"All"}),(0,s.jsx)("option",{value:"authless",children:"Authless"}),(0,s.jsx)("option",{value:"oauth",children:"OAuth"})]})]}),b&&(0,s.jsx)("div",{className:"px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:b}),c&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-xs py-4 justify-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Loading registry..."})]}),!c&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 max-h-[60vh] overflow-y-auto",children:[0===T.length&&(0,s.jsx)("div",{className:"text-center text-xs text-text-muted py-6",children:"No servers match filter"}),T.map(e=>{let t=S.has(e.slug||e.name),a=g===e.url,l=j[e.url],i=N[e.url],n=w[e.url]||{},o=Object.keys(n),d=Object.values(n).filter(Boolean).length;return(0,s.jsxs)("div",{className:"rounded border border-transparent hover:border-border",children:[(0,s.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5",children:[e.iconUrl?(0,s.jsx)("img",{src:e.iconUrl,alt:"",className:"size-7 rounded shrink-0 object-contain",onError:e=>{e.target.style.display="none"}}):(0,s.jsx)("div",{className:"size-7 rounded bg-surface shrink-0"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,s.jsx)("span",{className:"font-medium text-xs",children:e.title}),e.oauth?(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-amber-500/10 text-amber-600",children:"OAuth"}):(0,s.jsx)("span",{className:"px-1 py-0.5 text-[9px] rounded bg-green-500/10 text-green-600",children:"Authless"}),e.toolCount>0&&(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.toolCount," tools"]})]}),e.description&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted line-clamp-2 mt-0.5",children:e.description})]}),(0,s.jsx)("button",{onClick:()=>t?null:void(g===e.url?v(null):(v(e.url),I(e))),disabled:t,className:`shrink-0 px-2 py-1 rounded text-[10px] font-medium transition-colors ${t?"bg-green-500/10 text-green-600 cursor-default":a?"bg-surface border border-border text-text-muted hover:bg-black/5":"bg-primary/10 border border-primary/40 text-primary hover:bg-primary/20"}`,children:t?"Added":a?"Cancel":"+ Add"})]}),a&&(0,s.jsxs)("div",{className:"px-3 py-2 bg-surface/40 border-t border-border flex flex-col gap-2",children:[i&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-text-muted text-[10px] py-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px]",children:"progress_activity"}),(0,s.jsx)("span",{children:"Probing server for tools..."})]}),!i&&l?.requiresAuth&&(0,s.jsx)("p",{className:"text-[10px] text-amber-600 bg-amber-500/10 px-2 py-1 rounded",children:"\uD83D\uDD10 OAuth required. Add now and authenticate after Apply; tool list will be discovered after first connect."}),!i&&l?.error&&!l?.requiresAuth&&(0,s.jsxs)("p",{className:"text-[10px] text-red-600 bg-red-500/10 px-2 py-1 rounded",children:["Probe failed: ",l.error]}),!i&&0===o.length&&!l?.requiresAuth&&!l?.error&&(0,s.jsx)("p",{className:"text-[10px] text-text-muted",children:"No tools advertised by server."}),!i&&o.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:[d,"/",o.length," tools enabled"]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)("button",{onClick:()=>$(e.url,!0),className:"text-[10px] text-primary hover:underline",children:"All"}),(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>$(e.url,!1),className:"text-[10px] text-primary hover:underline",children:"None"})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-2 gap-1 max-h-40 overflow-y-auto",children:o.map(t=>(0,s.jsxs)("label",{className:"flex items-center gap-1.5 text-[10px] cursor-pointer hover:bg-black/5 dark:hover:bg-white/5 px-1 rounded",children:[(0,s.jsx)("input",{type:"checkbox",checked:!!n[t],onChange:()=>{var r;return r=e.url,void C(e=>({...e,[r]:{...e[r],[t]:!e[r]?.[t]}}))},className:"size-3"}),(0,s.jsx)("span",{className:"truncate",children:t})]},t))})]}),(0,s.jsx)("button",{onClick:()=>{let t,s;return s=Object.keys(t=w[e.url]||{}).filter(e=>t[e]),void(r?.({name:e.slug||e.name,title:e.title,description:e.description,url:e.url,transport:e.transport,oauth:e.oauth,toolNames:s}),v(null))},className:"self-end px-2 py-1 rounded text-[10px] font-medium bg-primary text-white hover:bg-primary/90",children:"✓ Confirm Add"})]})]},e.url)})]}),(0,s.jsxs)("div",{className:"text-[10px] text-text-muted text-right",children:[T.length," of ",o.length," servers"]})]})})}},28067:(e,t,r)=>{r.d(t,{default:()=>l});var s=r(95155),a=r(31474);function l({options:e=[],value:t,onChange:r,size:i="md",className:n,...o}){let d={sm:"h-9 text-xs sm:h-7",md:"h-10 text-sm sm:h-9",lg:"h-11 text-base"};return(0,s.jsx)("div",{role:"group",...o,className:(0,a.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",n),children:e.map(e=>(0,s.jsxs)("button",{type:"button","aria-pressed":t===e.value,onClick:()=>r(e.value),className:(0,a.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",d[i],t===e.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[e.icon&&(0,s.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px] mr-1.5",children:e.icon}),e.label]},e.value))})}},28815:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(81127),i=r(92542),n=r(11059);function o({isOpen:e,onClose:t,title:r="Manual Configuration",description:d="",requirements:c=[],configs:u=[],instructions:m=[],note:x=""}){let{copy:p}=(0,n.C)(),[h,b]=(0,a.useState)(null);return(0,s.jsx)(l.default,{isOpen:e,onClose:t,title:r,size:"xl",children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[d&&(0,s.jsx)("p",{className:"text-sm leading-6 text-text-muted",children:d}),c.length>0&&(0,s.jsx)("div",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-3 py-2.5",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined mt-0.5 text-[17px] text-yellow-600 dark:text-yellow-400",children:"warning"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-medium text-yellow-700 dark:text-yellow-300",children:"Configuration is not copy-ready yet"}),(0,s.jsx)("ul",{className:"mt-1 list-disc space-y-1 pl-4 text-xs leading-5 text-text-muted",children:c.map(e=>(0,s.jsx)("li",{children:e},e))})]})]})}),u.map((e,t)=>(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"break-words text-sm font-medium text-text-main",children:e.label||e.filename}),e.label&&e.filename&&(0,s.jsx)("p",{className:"mt-0.5 break-all font-mono text-[11px] text-text-muted",children:e.filename}),e.description&&(0,s.jsx)("p",{className:"mt-1 text-xs leading-5 text-text-muted",children:e.description})]}),(0,s.jsxs)(i.default,{variant:"ghost",size:"sm",onClick:()=>{var r;return r=e.content,void(p(r,`manualconfig-${t}`),b(t),setTimeout(()=>b(null),2e3))},className:"shrink-0",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:h===t?"check":"content_copy"}),h===t?"Copied!":"Copy"]})]}),(0,s.jsx)("pre",{className:"px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs overflow-x-auto whitespace-pre-wrap break-all max-h-60 overflow-y-auto border border-border",children:e.content})]},e.id||e.filename||t)),m.length>0&&(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-surface/40 px-3 py-3",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-text-main",children:"Finish setup"}),(0,s.jsx)("ol",{className:"mt-2 list-decimal space-y-1.5 pl-5 text-xs leading-5 text-text-muted",children:m.map(e=>(0,s.jsx)("li",{children:e},e))})]}),x&&(0,s.jsx)("p",{className:"text-xs leading-5 text-text-muted",children:x})]})})}},29366:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(95155),a=r(14051),l=r.n(a),i=r(28777),n=r(97677);function o({caps:e,className:t="",colorOverride:r,size:a=16}){if(!e)return null;let l=Object.keys(i.bs).filter(t=>e[t]);return 0===l.length?null:(0,s.jsx)("span",{className:`inline-flex items-center gap-0.5 ${t}`,children:l.map(e=>(0,s.jsx)(n.default,{text:`${i.bs[e].label} — ${i.bs[e].desc}`,children:(0,s.jsx)("span",{className:`material-symbols-outlined leading-none cursor-help ${r||i.bs[e].color}`,style:{fontSize:`${a}px`},children:i.bs[e].icon})},e))})}o.propTypes={caps:l().object,className:l().string,colorOverride:l().string,size:l().number}},30815:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(35497);function o({isOpen:e,onSuccess:t,onClose:r}){let[l,i]=(0,a.useState)(""),[d,c]=(0,a.useState)(""),[u,m]=(0,a.useState)(null),[x,p]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1),[f,g]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),y=(0,a.useRef)(0),N=(0,a.useCallback)(async()=>{let e=++y.current;b(!0),m(null),g(!1),j(!1);try{let t=await fetch("/api/oauth/cursor/auto-import"),r=await t.json();if(y.current!==e)return;r.found?(i(r.accessToken),c(r.machineId),g(!0)):r.windowsManual?j(!0):m(r.error||"Could not auto-detect tokens")}catch(t){y.current===e&&m("Failed to auto-detect tokens")}finally{y.current===e&&b(!1)}},[]);(0,a.useEffect)(()=>{e?(i(""),c(""),m(null),g(!1),j(!1),N()):y.current++},[e,N]);let k=async()=>{if(!l.trim())return void m("Please enter an access token");if(!d.trim())return void m("Please enter a machine ID");p(!0),m(null);try{let e=await fetch("/api/oauth/cursor/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:l.trim(),machineId:d.trim()})}),s=await e.json();if(!e.ok)throw Error(s.error||"Import failed");t?.(),r()}catch(e){m(e.message)}finally{p(!1)}};return(0,s.jsx)(n.aF,{isOpen:e,title:"Connect Cursor IDE",onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[h&&(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-primary/10 flex items-center justify-center",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-3xl text-primary animate-spin",children:"progress_activity"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Auto-detecting tokens..."}),(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"Reading from Cursor IDE database"})]}),!h&&(0,s.jsxs)(s.Fragment,{children:[f&&(0,s.jsx)("div",{className:"bg-green-50 dark:bg-green-900/20 p-3 rounded-lg border border-green-200 dark:border-green-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-green-600 dark:text-green-400",children:"check_circle"}),(0,s.jsx)("p",{className:"text-sm text-green-800 dark:text-green-200",children:"Tokens auto-detected from Cursor IDE successfully!"})]})}),v&&(0,s.jsxs)("div",{className:"bg-amber-50 dark:bg-amber-900/20 p-3 rounded-lg border border-amber-200 dark:border-amber-800 flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-amber-600 dark:text-amber-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm font-medium text-amber-800 dark:text-amber-200",children:"Could not read Cursor database automatically."})]}),(0,s.jsxs)("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:["Make sure Cursor IDE has been opened at least once, then click ",(0,s.jsx)("strong",{children:"Retry"}),". If the problem persists, paste your tokens manually below."]}),(0,s.jsx)(n.$n,{onClick:N,variant:"outline",fullWidth:!0,children:"Retry"})]}),!f&&!v&&!u&&(0,s.jsx)("div",{className:"bg-blue-50 dark:bg-blue-900/20 p-3 rounded-lg border border-blue-200 dark:border-blue-800",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-blue-600 dark:text-blue-400",children:"info"}),(0,s.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200",children:"Cursor IDE not detected. Please paste your tokens manually."})]})}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Access Token ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)("textarea",{value:l,onChange:e=>i(e.target.value),placeholder:"Access token will be auto-filled...",rows:3,className:"w-full px-3 py-2 text-sm font-mono border border-border rounded-lg bg-background focus:outline-none focus:border-primary resize-none"})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"block text-sm font-medium mb-2",children:["Machine ID ",(0,s.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,s.jsx)(n.pd,{value:d,onChange:e=>c(e.target.value),placeholder:"Machine ID will be auto-filled...",className:"font-mono text-sm"})]}),u&&(0,s.jsx)("div",{className:"bg-red-50 dark:bg-red-900/20 p-3 rounded-lg border border-red-200 dark:border-red-800",children:(0,s.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:u})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(n.$n,{onClick:k,fullWidth:!0,disabled:x||!l.trim()||!d.trim(),children:x?"Importing...":"Import Token"}),(0,s.jsx)(n.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}o.propTypes={isOpen:i().bool.isRequired,onSuccess:i().func,onClose:i().func.isRequired}},31474:(e,t,r)=>{r.d(t,{cn:()=>s});function s(...e){return e.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},33315:(e,t,r)=>{r.d(t,{o:()=>a});let s="[redacted]";function a(e,t=[]){if("string"!=typeof e)return"";let r=e.replace(/\s+/g," ").trim();if(!r)return"";let l=(Array.isArray(t)?t:[t]).filter(e=>"string"==typeof e&&e.trim()),i=new Set;for(let e of l){let t=e.trim();for(let e of(t.length>=4&&i.add(t),t.split(/[\s"'`;,:=&?{}[\]()<>]+/)))e.length>=8&&i.add(e)}for(let e of[...i].sort((e,t)=>t.length-e.length))r=r.replace(RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),s);return(r=r.replace(/([?&](?:key|api_key|token|access_token)=)[^&\s]+/gi,`$1${s}`)).length>240?`${r.slice(0,239)}…`:r}},35497:(e,t,r)=>{r.d(t,{x0:()=>I.default,Ex:()=>d.default,Go:()=>c.default,$n:()=>s.default,Zp:()=>i.default,Qv:()=>o.CardSkeleton,zE:()=>w.default,xl:()=>k.default,CK:()=>b.default,uo:()=>n.ConfirmModal,mz:()=>x.default,G9:()=>y.default,i5:()=>P.DashboardToolbar,wI:()=>T.default,pp:()=>P.EmptyState,Gi:()=>P.FeedbackPanel,vj:()=>C.default,vE:()=>N.default,pd:()=>a.default,Mh:()=>j.default,uR:()=>h.default,Nf:()=>f.default,aF:()=>n.default,rq:()=>p.default,gw:()=>$.default,LF:()=>m.default,dK:()=>E.default,Wx:()=>R.default,gM:()=>v.default,w:()=>P.SectionHeading,Iz:()=>A.default,l6:()=>l.default,lM:()=>u.default,m_:()=>O.default,jK:()=>g.default,LH:()=>S.default});var s=r(92542),a=r(11910),l=r(98),i=r(84588),n=r(81127),o=r(25086);r(56319);var d=r(56061),c=r(39835),u=r(98542);r(38587),r(21110),r(92622),r(8823),r(92173);var m=r(90882),x=r(67597),p=r(37384),h=r(28815),b=r(45455),f=r(28058),g=r(55060);r(21931),r(80752),r(40197);var v=r(23615);r(61500);var j=r(62899);r(94230);var y=r(30815),N=r(23936),k=r(21286),w=r(65428),C=r(95088),S=r(40684),T=r(73579),I=r(96748),$=r(4823),A=r(28067),O=r(97677),R=r(51825),E=r(50378),P=r(58041);r(7648),r(91450)},37384:(e,t,r)=>{r.d(t,{default:()=>w});var s=r(95155),a=r(12115),l=r(14051),i=r.n(l),n=r(81127),o=r(57250),d=r(28777),c=r(1791),u=r(12252),m=r(40671);function x(){return{raw:"",isEmpty:!0,isRegex:!1,regex:null,positiveTerms:[],negativeTerms:[]}}function p(e){if(!e||"string"!=typeof e)return x();let t=e.trim();if(!t)return x();if(t.startsWith("/")){let e=t.match(/^\/(.+)\/([a-z]*)$/i);try{if(e)return{raw:t,isEmpty:!1,isRegex:!0,regex:new RegExp(e[1],e[2]||"i"),positiveTerms:[],negativeTerms:[]};if(t.length>1)return{raw:t,isEmpty:!1,isRegex:!0,regex:RegExp(t.slice(1),"i"),positiveTerms:[],negativeTerms:[]}}catch{}}let r=[],s=[];for(let e of t.split(/\s+/))e&&((e.startsWith("!")||e.startsWith("-"))&&e.length>1?s.push(e.slice(1).toLowerCase()):r.push(e.toLowerCase()));return{raw:t,isEmpty:0===r.length&&0===s.length,isRegex:!1,regex:null,positiveTerms:r,negativeTerms:s}}function h(e,t){return e.lastIndex=0,e.test(t)}function b(e,t){let r="string"!=typeof t&&t?t:p(t);if(r.isEmpty)return!0;let s=[];if("string"==typeof e?s=[e]:Array.isArray(e)?s=e.filter(e=>"string"==typeof e):e&&"object"==typeof e&&(s=[e.name,e.id,e.value,e.alias,e.provider].filter(e=>"string"==typeof e)),0===s.length)return!1;if(r.isRegex&&r.regex){let e=s.join(" ");return/\(\?!|\(\?<!/.test(r.raw)?h(r.regex,e):s.some(e=>h(r.regex,e))||h(r.regex,e)}let a=s.map(e=>e.toLowerCase());return!r.negativeTerms.some(e=>a.some(t=>t.includes(e)))&&r.positiveTerms.every(e=>a.some(t=>t.includes(e)))}var f=r(929),g=r(29366);function v(e){return(0,c.mq)(e)||(0,c.gb)(e)}var j=r(70217);let y=[...Object.keys(c.zN),...Object.keys(c.IS),...Object.keys(c.nJ),...Object.keys(c.fg)],N=Object.keys(c.IS).filter(e=>c.IS[e].noAuth);function k({isOpen:e,onClose:t,onSelect:r,onDeselect:l,onSelectBatch:i,onDeselectBatch:x,selectedModel:h,activeProviders:w=[],title:C="Select Model",modelAliases:S={},kindFilter:T=null,addedModelValues:I=[],closeOnSelect:$=!0,includeCombos:A=!0,capFilter:O=null}){let{getCaps:R}=(0,f.y)(),E=(0,a.useMemo)(()=>T?w.filter(e=>{let t=c.Q2[e.provider];return(t?.serviceKinds||["llm"]).includes(T)}):w,[w,T]),[P,_]=(0,a.useState)(""),[M,z]=(0,a.useState)([]),[q,L]=(0,a.useState)([]),[U,D]=(0,a.useState)([]),[F,W]=(0,a.useState)({}),[B,K]=(0,a.useState)(null),J=(0,u.F)(e&&w.some(e=>"kiro"===e.provider)),V=(0,m.M)(e&&w.some(e=>"aistudio"===e.provider)),G=async e=>{try{let t=await fetch("/api/combos",{signal:e});if(!t.ok)throw Error(`Failed to fetch combos: ${t.status}`);let r=await t.json();z(r.combos||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching combos:",e),z([])}},H=async e=>{try{let t=await fetch("/api/provider-nodes",{signal:e});if(!t.ok)throw Error(`Failed to fetch provider nodes: ${t.status}`);let r=await t.json();L(r.nodes||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching provider nodes:",e),L([])}},Q=async e=>{try{let t=await fetch("/api/models/custom",{signal:e});if(!t.ok)throw Error(`Failed to fetch custom models: ${t.status}`);let r=await t.json();D(r.models||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching custom models:",e),D([])}},X=async e=>{try{let t=await fetch("/api/models/disabled",{signal:e});if(!t.ok)throw Error(`Failed to fetch disabled models: ${t.status}`);let r=await t.json();W(r.disabled||{})}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching disabled models:",e),W({})}},Z=async e=>{try{let t=await fetch("/api/providers",{signal:e,cache:"no-store"});if(!t.ok)throw Error(`Failed to fetch providers: ${t.status}`);let r=await t.json();K(r.connections||[])}catch(e){if(e?.name==="AbortError")return;console.error("Error fetching providers in ModelSelectModal:",e),K([])}};(0,a.useEffect)(()=>{if(!e)return;let t=new AbortController;return Z(t.signal),()=>t.abort()},[e]);let Y=null!==B?B:w||[],ee=(0,a.useMemo)(()=>(0,j.io)(Y),[Y]);(0,a.useEffect)(()=>{let e=new AbortController;return Promise.all([G(e.signal),H(e.signal),Q(e.signal),X(e.signal)]),()=>e.abort()},[]);let et=(0,a.useMemo)(()=>({...c.zN,...c.IS,...c.nJ,...c.fg}),[]),er=(0,a.useMemo)(()=>{let t={};if(!e)return t;let r=new Set(["webSearch","webFetch"]),s=new Set(["image","tts","stt","embedding","imageToText","systemone"]),a=new Set(["tts","image","webFetch"]);return[...new Set([...E.map(e=>e.provider),...T?N.filter(e=>(c.Q2[e]?.serviceKinds||["llm"]).includes(T)):N,...(function({kindFilter:e=null,providerNodes:t=[],customModels:r=[],modelAliases:s={}}={}){if(e)return[];let a=new Set((t||[]).map(e=>e?.id).filter(Boolean)),l=new Set;for(let e of r||[]){let t=e?.providerAlias;a.has(t)&&v(t)&&l.add(t)}for(let e of Object.values(s||{})){let t=String(e||"").split("/")[0];a.has(t)&&v(t)&&l.add(t)}return[...l]})({kindFilter:T,providerNodes:q,customModels:U,modelAliases:S}).filter(e=>!ee.has(e))].filter(e=>!ee.has(e)))].sort((e,t)=>{let r=y.indexOf(e),s=y.indexOf(t);return(-1===r?999:r)-(-1===s?999:s)}).forEach(e=>{let l=(0,c.wG)(e),i=et[e]||{name:e,color:"#666"},n=(0,c.mq)(e)||(0,c.gb)(e);if(T&&r.has(T)){t[e]={name:i.name,alias:l,color:i.color,models:[{id:e,name:i.name,value:e}]};return}if(i.passthroughModels){let r=Object.entries(S).filter(([,e])=>e.startsWith(`${l}/`)).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t}));if(T&&s.has(T)&&0===(r=(0,d.KC)(e).filter(e=>e.type===T).map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type}))).length&&a.has(T)&&(i.serviceKinds||["llm"]).includes(T)&&(r=[{id:e,name:i.name,value:l}]),r.length>0){let s=q.find(t=>t.id===e),a=s?.name||i.name;t[e]={name:a,alias:l,color:i.color,models:r}}}else if(n){if(T&&s.has(T))return;let r=w.find(t=>t.provider===e),a=q.find(t=>t.id===e),l=r?.name||a?.name||i.name,n=r?.providerSpecificData?.prefix||a?.prefix||e,o=function({providerId:e,nodePrefix:t,modelAliases:r={},customModels:s=[]}){let a=t||e,l=Object.entries(r).filter(([,t])=>String(t||"").startsWith(`${e}/`)).map(([t,r])=>{let s=String(r).slice(e.length+1);return{id:s,name:t,value:`${a}/${s}`}}),i=new Set(l.map(e=>e.value));return[...l,...(s||[]).filter(t=>t?.providerAlias===e&&t?.id).map(e=>({id:e.id,name:e.name||e.id,value:`${a}/${e.id}`,isCustom:!0})).filter(e=>!i.has(e.value))]}({providerId:e,nodePrefix:n,modelAliases:S,customModels:U}),d=o.length>0?o:[{id:`__placeholder__${e}`,name:`${n}/model-id`,value:`${n}/model-id`,isPlaceholder:!0}];t[e]={name:l,alias:n,color:i.color,models:d,isCustom:!0,hasModels:o.length>0}}else{var o;let r="kiro"===e?J:(0,m.Q)(e,V,(0,d.KC)(e)),n=new Set(r.map(e=>e.id)),c=r.length>0,u=Object.entries(S).filter(([e,t])=>t.startsWith(`${l}/`)&&(!c||e===t.replace(`${l}/`,""))&&!n.has(t.replace(`${l}/`,""))).map(([e,t])=>({id:t.replace(`${l}/`,""),name:e,value:t,isCustom:!0})),x=new Set(u.map(e=>e.id)),p=U.filter(e=>e.providerAlias===l&&!n.has(e.id)&&!x.has(e.id)).map(e=>({id:e.id,name:e.name||e.id,value:`${l}/${e.id}`,isCustom:!0})),h=[...r.map(e=>({id:e.id,name:e.name,value:`${l}/${e.id}`,type:e.type})),...u,...p],b=new Set,f=(o=h.filter(e=>!b.has(e.value)&&(b.add(e.value),!0)),T?s.has(T)?o.filter(e=>e.isPlaceholder||e.type===T):o:o.filter(e=>e.isPlaceholder||!e.type||"llm"===e.type));0===f.length&&T&&a.has(T)&&(i.serviceKinds||["llm"]).includes(T)&&(f=[{id:e,name:i.name,value:l}]),f.length>0&&(t[e]={name:i.name,alias:l,color:i.color,models:f})}}),Object.entries(t).forEach(([e,r])=>{let s=new Set([...F[(0,c.wG)(e)]||[],...F[e]||[]]);0!==s.size&&(r.models=r.models.filter(e=>!s.has(e.id)),0===r.models.length&&delete t[e])}),t},[e,E,S,et,q,U,F,T,w,J,V,ee]),es=(0,a.useMemo)(()=>p(P),[P]),ea=(0,a.useMemo)(()=>T||O||!1===A?[]:es.isEmpty?M:M.filter(e=>b(e.name,es)),[M,es,T,O,A]),el=(0,a.useMemo)(()=>{let e={};return Object.entries(er).forEach(([t,r])=>{var s;let a=r.models;if(!O||0!==(a=a.filter(e=>R(e.value)?.[O]===!0)).length){if(!es.isEmpty){let e=b(r.name,es),s=b(r.alias,es)||b(t,es)||b(`${r.alias}/*`,es);if(0===(a=a.filter(t=>!!b(t,es)||(!!e||!!s)&&(!(es.negativeTerms.length>0)||b(t,{...es,positiveTerms:[]})))).length)return}e[t]={...r,models:[...(s=a).filter(e=>I.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name)),...s.filter(e=>!I.includes(e.value)).sort((e,t)=>e.name.localeCompare(t.name))]}}}),e},[er,es,I,O,R]),ei=(0,a.useMemo)(()=>{let e=[];return Object.values(el).forEach(t=>{t.models.forEach(t=>{t.isPlaceholder||e.push(t)})}),e},[el]),en=ei.filter(e=>!I.includes(e.value)),eo=ei.filter(e=>I.includes(e.value)),ed=e=>{let s=e?.value||e?.name||e;I.includes(s)&&l?l(e):r(e),$&&(t(),_(""))};return(0,s.jsxs)(n.default,{isOpen:e,onClose:()=>{t(),_("")},title:C,size:"md",className:"p-4!",footer:null,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3 px-2.5 py-2 bg-primary/8 border border-primary/20 rounded-lg text-xs text-text-muted",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary shrink-0",style:{fontSize:"14px"},children:"info"}),(0,s.jsx)("span",{children:"Click to add, click again to remove. Search supports exclusions and /regex/."})]}),(0,s.jsxs)("div",{className:"mb-3",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("span",{className:"material-symbols-outlined absolute left-2.5 top-1/2 -translate-y-1/2 text-text-muted text-[16px]",children:"search"}),(0,s.jsx)("input",{type:"text",placeholder:"Search models (e.g. claude -haiku, !embed, /regex/)...",value:P,onChange:e=>_(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-surface border border-border rounded text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"})]}),!$&&ei.length>0&&(0,s.jsxs)("div",{className:"mt-2 flex items-center justify-between px-1 text-[11px] text-text-muted",children:[(0,s.jsxs)("span",{children:[ei.length," models"]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[en.length>0&&(0,s.jsxs)("button",{type:"button",onClick:()=>{0!==en.length&&(i?i(en):en.forEach(e=>r(e)))},className:"cursor-pointer rounded bg-primary/10 px-2 py-0.5 font-medium text-primary",children:["Select All (",en.length,")"]}),eo.length>0&&l&&(0,s.jsxs)("button",{type:"button",onClick:()=>{0!==eo.length&&l&&(x?x(eo):eo.forEach(e=>l(e)))},className:"cursor-pointer rounded bg-border/40 px-2 py-0.5 font-medium text-text-muted",children:["Deselect All (",eo.length,")"]})]})]})]}),(0,s.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:[ea.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-[14px]",children:"layers"}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:"Combos"}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",ea.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:ea.map(e=>{let t=h===e.name;return(0,s.jsxs)("button",{onClick:()=>ed({id:e.name,name:e.name,value:e.name}),className:`
2
2
  px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer flex items-center gap-1
3
3
  ${t?"bg-primary text-white border-primary":I.includes(e.name)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
4
4
  `,children:[I.includes(e.name)&&(0,s.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),e.name]},e.id)})})]}),Object.entries(el).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,s.jsx)(o.A,{src:`/providers/${e}.png`,alt:t.name,size:14,fallbackText:(t.name||e).slice(0,2).toUpperCase(),fallbackColor:t.color}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:t.name}),(0,s.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",t.models.length,")"]})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.models.map(e=>{let t=h===e.value,r=e.isPlaceholder;return(0,s.jsx)("button",{onClick:()=>ed(e),title:r?"Select to pre-fill, then edit model ID in the input":void 0,className:`