zevairouter 1.1.80 → 1.1.81

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 (589) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +13 -13
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  74. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  77. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/dsh-settings/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/openbot-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/context/test/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/dashboard/models/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +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.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/json-import/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/helper/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/providers/aistudio/models/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-cn/discover-models/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy-intl/discover-models/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/providers/openrouter/discover-models/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  332. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/v1/audio/music/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  403. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  404. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  405. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  406. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  407. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  408. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +3 -3
  409. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
  410. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
  411. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  412. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  413. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  414. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  415. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  416. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  417. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  418. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +4 -4
  419. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +4 -4
  420. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +4 -4
  421. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  422. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  423. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  424. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  425. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  426. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  427. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  428. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
  429. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
  430. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
  431. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  432. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  433. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  434. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  435. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  436. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  437. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  438. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  439. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  440. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  441. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  442. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  443. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +4 -4
  444. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +4 -4
  445. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +4 -4
  446. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  447. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  448. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
  449. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  450. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
  451. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  452. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  453. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  454. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  455. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  456. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  457. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  458. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  459. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  460. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  461. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  462. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  463. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
  464. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  465. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
  466. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  467. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  468. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  469. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  470. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  472. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  473. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  474. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  475. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  476. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  477. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  478. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
  479. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  480. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
  481. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  482. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  483. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  484. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  485. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  486. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  487. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  488. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  489. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  490. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  491. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  492. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  493. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  494. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  496. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  497. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  498. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  499. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  500. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  501. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  502. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  503. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  504. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  505. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  506. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  507. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  508. package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  509. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  510. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  511. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  512. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  513. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  514. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  515. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  516. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  517. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  518. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  519. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  520. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  521. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  522. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  523. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  524. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  525. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  526. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  527. package/cli/app/.next-cli-build/server/app/login.rsc +3 -3
  528. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  529. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  530. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  531. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  532. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  533. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  534. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  536. package/cli/app/.next-cli-build/server/app-paths-manifest.json +13 -13
  537. package/cli/app/.next-cli-build/server/chunks/1257.js +1 -1
  538. package/cli/app/.next-cli-build/server/chunks/1283.js +1 -1
  539. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  540. package/cli/app/.next-cli-build/server/chunks/1509.js +1 -1
  541. package/cli/app/.next-cli-build/server/chunks/1757.js +1 -1
  542. package/cli/app/.next-cli-build/server/chunks/1852.js +1 -1
  543. package/cli/app/.next-cli-build/server/chunks/2025.js +1 -1
  544. package/cli/app/.next-cli-build/server/chunks/267.js +1 -1
  545. package/cli/app/.next-cli-build/server/chunks/2990.js +1 -1
  546. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  547. package/cli/app/.next-cli-build/server/chunks/3815.js +1 -1
  548. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  549. package/cli/app/.next-cli-build/server/chunks/4128.js +1 -1
  550. package/cli/app/.next-cli-build/server/chunks/4177.js +1 -1
  551. package/cli/app/.next-cli-build/server/chunks/4549.js +1 -1
  552. package/cli/app/.next-cli-build/server/chunks/4631.js +1 -0
  553. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  554. package/cli/app/.next-cli-build/server/chunks/5330.js +4 -2
  555. package/cli/app/.next-cli-build/server/chunks/5626.js +1 -1
  556. package/cli/app/.next-cli-build/server/chunks/5744.js +1 -1
  557. package/cli/app/.next-cli-build/server/chunks/6166.js +1 -1
  558. package/cli/app/.next-cli-build/server/chunks/6396.js +1 -1
  559. package/cli/app/.next-cli-build/server/chunks/6492.js +1 -1
  560. package/cli/app/.next-cli-build/server/chunks/6936.js +1 -1
  561. package/cli/app/.next-cli-build/server/chunks/7135.js +1 -1
  562. package/cli/app/.next-cli-build/server/chunks/7319.js +13 -11
  563. package/cli/app/.next-cli-build/server/chunks/7364.js +1 -1
  564. package/cli/app/.next-cli-build/server/chunks/7404.js +1 -1
  565. package/cli/app/.next-cli-build/server/chunks/8517.js +1 -1
  566. package/cli/app/.next-cli-build/server/chunks/8725.js +1 -1
  567. package/cli/app/.next-cli-build/server/chunks/8749.js +1 -1
  568. package/cli/app/.next-cli-build/server/chunks/9548.js +1 -1
  569. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  570. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  571. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  572. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  573. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  574. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  575. package/cli/app/.next-cli-build/static/chunks/{5497-71a02c6639ddb92b.js → 5497-44af6e5aafe6256a.js} +1 -1
  576. package/cli/app/.next-cli-build/static/chunks/620-7ee9e671a83a36e2.js +1 -0
  577. package/cli/app/.next-cli-build/static/chunks/{7001-da01aaca36365276.js → 7001-8bbc6a14335afd88.js} +1 -1
  578. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-936f29821afd7d28.js → page-342ac0d9d2fb15c7.js} +1 -1
  579. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-808e3749cba268ff.js +1 -0
  580. package/cli/app/CHANGELOG.md +10 -0
  581. package/cli/app/package.json +1 -1
  582. package/cli/app/src/mitm/server.js +1 -1
  583. package/cli/package.json +1 -1
  584. package/package.json +1 -1
  585. package/cli/app/.next-cli-build/server/chunks/8972.js +0 -1
  586. package/cli/app/.next-cli-build/static/chunks/620-0f6bd4f59fa0cd33.js +0 -1
  587. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-926a39b841570eda.js +0 -1
  588. /package/cli/app/.next-cli-build/static/{Vbe_S3ECwU1yAXUWqmRCl → 3CLejW1UKDHu2Eb5QKNoj}/_buildManifest.js +0 -0
  589. /package/cli/app/.next-cli-build/static/{Vbe_S3ECwU1yAXUWqmRCl → 3CLejW1UKDHu2Eb5QKNoj}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=2990,exports.ids=[2990],exports.modules={73159:(a,b,c)=>{c.d(b,{Ue:()=>j,oT:()=>k,qF:()=>h});let d="https://auth.x.ai",e="/oauth2/authorize",f="/oauth2/token",g="/.well-known/openid-configuration",h="openid profile email offline_access grok-cli:access api:access",i="/callback",j=96,k={clientId:"b1a00492-073a-47ea-816f-4c329264a828",issuer:d,authEndpointPath:e,tokenEndpointPath:f,discoveryPath:g,authorizeUrl:`${d}${e}`,tokenUrl:`${d}${f}`,discoveryUrl:`${d}${g}`,scope:h,apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${i}`,loopbackPort:56121,callbackPath:i,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/zevairouter",codeChallengeMethod:"S256"}},92990:(a,b,c)=>{c.d(b,{DI:()=>k,DV:()=>H,Hp:()=>m,LT:()=>l,MZ:()=>z,Nl:()=>F,Nu:()=>t,OV:()=>j,RY:()=>K,S6:()=>w,SK:()=>I,Td:()=>C,Tx:()=>u,WN:()=>x,Ww:()=>M,YT:()=>r,Z2:()=>L,ZL:()=>q,cD:()=>s,eD:()=>J,f7:()=>E,hF:()=>n,lB:()=>A,ne:()=>G,qp:()=>D,sA:()=>p,t:()=>y,t3:()=>o,w1:()=>B});var d=c(21820),e=c(73159),f=c(52060),g=c(62821),h=c(59304);function i(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let j={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},k={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",deviceCodeUrl:"https://auth.openai.com/api/accounts/deviceauth/usercode",deviceTokenUrl:"https://auth.openai.com/api/accounts/deviceauth/token",deviceVerificationUrl:"https://auth.openai.com/codex/device",deviceRedirectUri:"https://auth.openai.com/deviceauth/callback",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},l={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},m={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},n={openApiBaseUrl:"https://openapi.qoder.sh",centerBaseUrl:"https://center.qoder.sh",chatBaseUrl:"https://api3.qoder.sh",deviceTokenUrl:"https://openapi.qoder.sh/api/v1/deviceToken/poll",refreshUrl:"https://center.qoder.sh/algo/api/v3/user/refresh_token",userInfoUrl:"https://openapi.qoder.sh/api/v1/userinfo",quotaUsageUrl:"https://openapi.qoder.sh/api/v2/quota/usage",loginUrl:"https://qoder.com/device/selectAccounts"},o={...g.A.oauth},p={...h.A.oauth},q={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},r={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:i(),pluginType:2})};function s(){return{ideType:9,platform:i(),pluginType:2}}let t={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},u={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authMethods:["builder-id","idc","google","github","import"]},v=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function w(a){if("string"!=typeof a||!v.test(a))throw Error("Invalid region");return a}let x={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},y={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},z={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},A={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},B={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenUrl:"https://api.cline.bot/api/v1/auth/token",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},C={webAppUrl:"https://app.kimchi.dev",validationUrl:"https://api.cast.ai/v1/llm/openai/supported-providers",userInfoUrl:"https://app.kimchi.dev/api/v1/me",modelsUrl:"https://llm.kimchi.dev/v1/models/metadata?include_in_cli=true"},D={clientId:"b1a00492-073a-47ea-816f-4c329264a828",deviceCodeUrl:"https://auth.x.ai/oauth2/device/code",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token",scope:e.qF,referrer:"grok-build",refreshLeadMs:3e5},E={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},F={baseUrl:"https://www.codebuddy.ai",stateUrl:"https://www.codebuddy.ai/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.ai/v2/plugin/auth/token",accountUrl:"https://www.codebuddy.ai/v2/plugin/login/account",accountsUrl:"https://www.codebuddy.ai/v2/plugin/accounts",refreshUrl:"https://www.codebuddy.ai/v2/plugin/auth/token/refresh",userAgent:f.C,domain:"www.codebuddy.ai",platform:"CLI",pollInterval:5e3},G={baseUrl:"https://www.codebuddy.cn",stateUrl:"https://www.codebuddy.cn/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.cn/v2/plugin/auth/token",accountUrl:"https://www.codebuddy.cn/v2/plugin/login/account",accountsUrl:"https://www.codebuddy.cn/v2/plugin/accounts",refreshUrl:"https://www.codebuddy.cn/v2/plugin/auth/token/refresh",userAgent:f.C,domain:"www.codebuddy.cn",platform:"CLI",pollInterval:5e3},H={baseUrl:"https://www.codebuddy.ai",stateUrl:"https://www.codebuddy.ai/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.ai/v2/plugin/auth/token",refreshUrl:"https://www.codebuddy.ai/v2/plugin/auth/token/refresh",userAgent:"IDE/2.63.2 CodeBuddy/2.63.2",platform:"ide",pollInterval:5e3},I={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},J={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},K={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},L={clientId:"hermes-cli",portalBaseUrl:"https://portal.nousresearch.com",deviceCodeUrl:"https://portal.nousresearch.com/api/oauth/device/code",tokenUrl:"https://portal.nousresearch.com/api/oauth/token",agentKeyUrl:"https://portal.nousresearch.com/api/oauth/agent-key",inferenceBaseUrl:"https://inference-api.nousresearch.com/v1",scope:"inference:invoke inference:mint_agent_key"},M=3e5}};
1
+ "use strict";exports.id=2990,exports.ids=[2990],exports.modules={73159:(a,b,c)=>{c.d(b,{Ue:()=>j,oT:()=>k,qF:()=>h});let d="https://auth.x.ai",e="/oauth2/authorize",f="/oauth2/token",g="/.well-known/openid-configuration",h="openid profile email offline_access grok-cli:access api:access",i="/callback",j=96,k={clientId:"b1a00492-073a-47ea-816f-4c329264a828",issuer:d,authEndpointPath:e,tokenEndpointPath:f,discoveryPath:g,authorizeUrl:`${d}${e}`,tokenUrl:`${d}${f}`,discoveryUrl:`${d}${g}`,scope:h,apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${i}`,loopbackPort:56121,callbackPath:i,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/zevairouter",codeChallengeMethod:"S256"}},92990:(a,b,c)=>{c.d(b,{DI:()=>k,DV:()=>H,Hp:()=>m,LT:()=>l,MZ:()=>z,Nl:()=>F,Nu:()=>t,OV:()=>j,RY:()=>K,S6:()=>w,SK:()=>I,Td:()=>C,Tx:()=>u,WN:()=>x,Ww:()=>M,YT:()=>r,Z2:()=>L,ZL:()=>q,cD:()=>s,eD:()=>J,f7:()=>E,hF:()=>n,lB:()=>A,ne:()=>G,qp:()=>D,sA:()=>p,t:()=>y,t3:()=>o,w1:()=>B});var d=c(21820),e=c(73159),f=c(52060),g=c(62821),h=c(59304);function i(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let j={clientId:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",authorizeUrl:"https://claude.ai/oauth/authorize",tokenUrl:"https://api.anthropic.com/v1/oauth/token",scopes:["org:create_api_key","user:profile","user:inference"],codeChallengeMethod:"S256"},k={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",deviceCodeUrl:"https://auth.openai.com/api/accounts/deviceauth/usercode",deviceTokenUrl:"https://auth.openai.com/api/accounts/deviceauth/token",deviceVerificationUrl:"https://auth.openai.com/codex/device",deviceRedirectUri:"https://auth.openai.com/deviceauth/callback",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},l={clientId:"681255809395-oo8ft2oprdrnp9e3aqf6av3hmdib135j.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile"]},m={clientId:"f0304373b74a44d2b584a3fb70ca9e56",deviceCodeUrl:"https://chat.qwen.ai/api/v1/oauth2/device/code",tokenUrl:"https://chat.qwen.ai/api/v1/oauth2/token",scope:"openid profile email model.completion",codeChallengeMethod:"S256"},n={openApiBaseUrl:"https://openapi.qoder.sh",centerBaseUrl:"https://center.qoder.sh",chatBaseUrl:"https://api3.qoder.sh",deviceTokenUrl:"https://openapi.qoder.sh/api/v1/deviceToken/poll",refreshUrl:"https://center.qoder.sh/algo/api/v3/user/refresh_token",userInfoUrl:"https://openapi.qoder.sh/api/v1/userinfo",quotaUsageUrl:"https://openapi.qoder.sh/api/v2/quota/usage",loginUrl:"https://qoder.com/device/selectAccounts"},o={...g.A.oauth},p={...h.A.oauth},q={clientId:"10009311001",clientSecret:"4Z3YjXycVsQvyGF1etiNlIBB4RsqSDtW",authorizeUrl:"https://iflow.cn/oauth",tokenUrl:"https://iflow.cn/oauth/token",userInfoUrl:"https://iflow.cn/api/oauth/getUserInfo",extraParams:{loginMethod:"phone",type:"phone"}},r={clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",authorizeUrl:"https://accounts.google.com/o/oauth2/v2/auth",tokenUrl:"https://oauth2.googleapis.com/token",userInfoUrl:"https://www.googleapis.com/oauth2/v1/userinfo",scopes:["openid","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/cclog","https://www.googleapis.com/auth/experimentsandconfigs","https://www.googleapis.com/auth/aicode"],apiEndpoint:"https://cloudcode-pa.googleapis.com",apiVersion:"v1internal",loadCodeAssistEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUserEndpoint:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser",loadCodeAssistUserAgent:"google-api-nodejs-client/9.15.1",loadCodeAssistApiClient:"google-cloud-sdk vscode_cloudshelleditor/0.1",loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:i(),pluginType:2})};function s(){return{ideType:9,platform:i(),pluginType:2}}let t={clientId:"Iv1.b507a08c87ecfe98",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",userInfoUrl:"https://api.github.com/user",scopes:"read:user",apiVersion:"2022-11-28",copilotTokenUrl:"https://api.github.com/copilot_internal/v2/token",userAgent:"GitHubCopilotChat/0.26.7",editorVersion:"vscode/1.85.0",editorPluginVersion:"copilot-chat/0.26.7"},u={ssoOidcEndpoint:"https://oidc.us-east-1.amazonaws.com",registerClientUrl:"https://oidc.us-east-1.amazonaws.com/client/register",deviceAuthUrl:"https://oidc.us-east-1.amazonaws.com/device_authorization",tokenUrl:"https://oidc.us-east-1.amazonaws.com/token",startUrl:"https://view.awsapps.com/start",clientName:"kiro-oauth-client",clientType:"public",scopes:["codewhisperer:completions","codewhisperer:analysis","codewhisperer:conversations"],grantTypes:["urn:ietf:params:oauth:grant-type:device_code","refresh_token"],issuerUrl:"https://identitycenter.amazonaws.com/ssoins-722374e8c3c8e6c6",socialAuthEndpoint:"https://prod.us-east-1.auth.desktop.kiro.dev",socialLoginUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/login",socialTokenUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/oauth/token",socialRefreshUrl:"https://prod.us-east-1.auth.desktop.kiro.dev/refreshToken",authMethods:["builder-id","idc","google","github","import"]},v=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function w(a){if("string"!=typeof a||!v.test(a))throw Error("Invalid region");return a}let x={apiEndpoint:"https://api2.cursor.sh",chatEndpoint:"/aiserver.v1.ChatService/StreamUnifiedChatWithTools",modelsEndpoint:"/aiserver.v1.AiService/GetDefaultModelNudgeData",api3Endpoint:"https://api3.cursor.sh",agentEndpoint:"https://agent.api5.cursor.sh",agentNonPrivacyEndpoint:"https://agentn.api5.cursor.sh",clientVersion:"3.1.0",clientType:"ide",tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"},dbKeys:{accessToken:"cursorAuth/accessToken",machineId:"storage.serviceMachineId"}},y={clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||"17e5f671-d194-4dfb-9706-5516cb48c098",deviceCodeUrl:"https://auth.kimi.com/api/oauth/device_authorization",tokenUrl:"https://auth.kimi.com/api/oauth/token"},z={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},A={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},B={appBaseUrl:"https://app.cline.bot",apiBaseUrl:"https://api.cline.bot",authorizeUrl:"https://api.cline.bot/api/v1/auth/authorize",tokenUrl:"https://api.cline.bot/api/v1/auth/token",tokenExchangeUrl:"https://api.cline.bot/api/v1/auth/token",refreshUrl:"https://api.cline.bot/api/v1/auth/refresh"},C={webAppUrl:"https://app.kimchi.dev",validationUrl:"https://api.cast.ai/v1/llm/openai/supported-providers",userInfoUrl:"https://app.kimchi.dev/api/v1/me",modelsUrl:"https://llm.kimchi.dev/v1/models/metadata?include_in_cli=true"},D={clientId:"b1a00492-073a-47ea-816f-4c329264a828",deviceCodeUrl:"https://auth.x.ai/oauth2/device/code",tokenUrl:"https://auth.x.ai/oauth2/token",refreshUrl:"https://auth.x.ai/oauth2/token",scope:e.qF,referrer:"grok-build",refreshLeadMs:3e5},E={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},F={baseUrl:"https://www.codebuddy.ai",stateUrl:"https://www.codebuddy.ai/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.ai/v2/plugin/auth/token",accountUrl:"https://www.codebuddy.ai/v2/plugin/login/account",accountsUrl:"https://www.codebuddy.ai/v2/plugin/accounts",refreshUrl:"https://www.codebuddy.ai/v2/plugin/auth/token/refresh",userAgent:f.C,domain:"www.codebuddy.ai",platform:"CLI",pollInterval:5e3},G={baseUrl:"https://www.codebuddy.cn",stateUrl:"https://www.codebuddy.cn/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.cn/v2/plugin/auth/token",accountUrl:"https://www.codebuddy.cn/v2/plugin/login/account",accountsUrl:"https://www.codebuddy.cn/v2/plugin/accounts",refreshUrl:"https://www.codebuddy.cn/v2/plugin/auth/token/refresh",userAgent:f.C,domain:"www.codebuddy.cn",platform:"CLI",pollInterval:5e3},H={baseUrl:"https://www.codebuddy.ai",stateUrl:"https://www.codebuddy.ai/v2/plugin/auth/state",tokenUrl:"https://www.codebuddy.ai/v2/plugin/auth/token",refreshUrl:"https://www.codebuddy.ai/v2/plugin/auth/token/refresh",userAgent:"IDE/2.63.2 CodeBuddy/2.63.2",platform:"ide",pollInterval:5e3},I={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},J={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},K={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},L={clientId:"hermes-cli",portalBaseUrl:"https://portal.nousresearch.com",deviceCodeUrl:"https://portal.nousresearch.com/api/oauth/device/code",tokenUrl:"https://portal.nousresearch.com/api/oauth/token",agentKeyUrl:"https://portal.nousresearch.com/api/oauth/agent-key",inferenceBaseUrl:"https://inference-api.nousresearch.com/v1",scope:"inference:invoke inference:mint_agent_key"},M=3e5}};
@@ -1 +1 @@
1
- "use strict";exports.id=3792,exports.ids=[3792],exports.modules={35346:(a,b,c)=>{c.d(b,{HG:()=>k,NU:()=>g});let d={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function e(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function f(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function g(a){if(!a||!0!==a.enabled)return null;let b=e(a.anchor)||e(d.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?d.timezone:a.timezone,h=f(a.windowHours,d.windowHours,.5,24),i=Math.round(f(a.slotsPerDay,d.slotsPerDay,1,Math.max(1,Math.floor(24/h))));return{enabled:!0,anchor:c,timezone:g,windowHours:h,slotsPerDay:i}}function h(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function i(a,b){let c=h(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function j(a,b){let{hour:c,minute:d}=e(a.anchor),f=h(b,a.timezone),g=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=i(g,f),j=g-h,k=i(j,f);return k===h?j:g-k}({year:f.year,month:f.month,day:f.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let f,i;return{key:(e=a.timezone,f=h(b,e),i=`${f.year}-${String(f.month).padStart(2,"0")}-${String(f.day).padStart(2,"0")}`,`${i}#${d}`),index:d,at:g+d*a.windowHours*36e5}})}function k(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=g(a);return c?[...j(c,b-864e5),...j(c,b),...j(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}},48595:(a,b,c)=>{c.d(b,{oc:()=>g});var d=c(90053),e=c(36633),f=c(36986);new Set(Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a)),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),d.rE;let g={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},73792:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{configureQuotaAutoPing:()=>z,runQuotaAutoPingTick:()=>w,startQuotaAutoPing:()=>x,stopQuotaAutoPing:()=>y});var e=c(5210),f=c(70321),g=c(27054),h=c(65333),i=c(30395),j=c(46956),k=c(63993),l=c(46455),m=c(48595),n=c(35346),o=a([e,h,l]);[e,h,l]=o.then?(await o)():o;let A=m.oc,B=globalThis.__zevaiQuotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{}};function p(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function q(a,b=null){let c="string"==typeof a&&a.trim()?Number(a):a;return Number.isFinite(c)?c:b}function r(a){if(!a||!0===a.unlimited)return!1;let b=q(a.remaining);if(null!==b)return b<=0;let c=q(a.used),d=q(a.total);return null!==d&&d>0&&null!==c&&c>=d}function s(a,b,c=Date.now()){if(!b)return!1;let d=new Date(a.lastPingAt).getTime();return Number.isFinite(d)&&c-d<b}async function t(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;!(await b.read()).done;);}finally{b.releaseLock?.()}}async function u(a,b,c,d){let e=d.getExecutor("codex"),{response:f}=await e.execute({model:b.pingModel,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:b.pingModel,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});return f.ok?(await t(f),!0):(await f.body?.cancel?.().catch?.(()=>{}),!1)}let C={claude:async function(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...i.xq.claude.headers||{},Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);return e.ok||await e.body?.cancel?.().catch?.(()=>{}),e.ok},codex:u};async function v(a,b,c,d,e,f=null,g=!0){var h,i,j;let k=(h=a.id,`${b}:${h}`),l=e.resetCache[k];if(!f&&!c.pingWhenResetAtSlides&&l){let a=new Date(l).getTime();if(Number.isFinite(a)&&Date.now()<a-A.refreshAheadMs)return}let m=e.failureCache[k];if(m&&Date.now()-m<A.failureCooldownMs)return;let o={connectionProxyEnabled:!0===(i=await d.resolveConnectionProxyConfig(a.providerSpecificData)).connectionProxyEnabled,connectionProxyUrl:i.connectionProxyUrl||"",connectionNoProxy:i.connectionNoProxy||"",vercelRelayUrl:i.vercelRelayUrl||"",strictProxy:!1},q=(await d.refreshAndUpdateCredentials(a,!1,o)).connection,t=await d.getUsageForProvider(q,o),u=t?.quotas||{},w=u[c.quotaKey],x=w?.resetAt;if(x&&(e.resetCache[k]=x),c.skipWhenBlockingQuotaExhausted&&(j=c.quotaKey,Object.entries(u||{}).some(([a,b])=>a!==j&&!String(a).toLowerCase().includes("session")&&r(b)))||r(w))return;let y=Date.now(),z=f?(0,n.HG)(f,y):null,B=!!z&&q.lastPingedSlotKey!==z.key;if(B){if(s(q,c.minPingIntervalMs,y))return}else{if(!g||!x)return;let a=p(x),b=q.lastPingedResetKey||p(q.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){if(!b)return!1;let d=new Date(b).getTime(),e=new Date(c).getTime();return Number.isFinite(d)&&Number.isFinite(e)&&e-d>=(a.resetAtDriftMs||0)}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-A.pingLeadMs}(c,l,x,y)||s(q,c.minPingIntervalMs,y)||b===a)return}let D=x?p(x):null;if(!await C[b](q,c,o,d)){e.failureCache[k]=Date.now();return}delete e.failureCache[k];let E=new Date().toISOString();await d.updateProviderConnection(q.id,{...x?{lastPingedResetAt:x,lastPingedResetKey:D}:{},...B?{lastPingedSlotKey:z.key}:{},lastPingAt:E})}async function w(a={getSettings:f.mt,getProviderConnections:f.getProviderConnections,updateProviderConnection:f.updateProviderConnection,resolveConnectionProxyConfig:k.B,refreshAndUpdateCredentials:l.qX,getUsageForProvider:g.my,proxyAwareFetch:j.Fm,getExecutor:h.SB},b=B){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(A.providers)){var c,d;let h=e?.[g.settingsKey]?.connections||{},i=e?.[g.settingsKey]?.schedules||{};if(Object.values(h).some(Boolean)||Object.values(i).some(a=>a?.enabled===!0))for(let j of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===h[a.id]||null!==(0,n.NU)(i[a.id]))))try{await v(j,f,g,a,b,(c=j.id,(0,n.NU)(e?.[g.settingsKey]?.schedules?.[c])),!0===h[j.id])}catch(a){b.failureCache[d=j.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}/${j.id}: ${a.message}`)}}}finally{b.running=!1}}}function x(){B.interval||(w(),B.interval=setInterval(()=>void w(),A.tickIntervalMs),B.interval.unref?.())}function y(){B.interval&&(clearInterval(B.interval),B.interval=null)}function z(a){Object.values(A.providers).some(b=>{let c=a?.[b.settingsKey]||{};return Object.values(c.connections||{}).some(Boolean)||Object.values(c.schedules||{}).some(a=>a?.enabled===!0)})?x():y()}d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=3792,exports.ids=[3792],exports.modules={35346:(a,b,c)=>{c.d(b,{HG:()=>k,NU:()=>g});let d={anchor:"09:30",timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}(),windowHours:5,slotsPerDay:3};function e(a){let b=/^(\d{1,2}):(\d{2})$/.exec(String(a||"").trim());if(!b)return null;let c=Number(b[1]),d=Number(b[2]);return c>23||d>59?null:{hour:c,minute:d}}function f(a,b,c,d){let e="number"==typeof a?a:Number(a);return Number.isFinite(e)?Math.min(d,Math.max(c,e)):b}function g(a){if(!a||!0!==a.enabled)return null;let b=e(a.anchor)||e(d.anchor),c=`${String(b.hour).padStart(2,"0")}:${String(b.minute).padStart(2,"0")}`,g=!function(a){if(!a||"string"!=typeof a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}),!0}catch{return!1}}(a.timezone)?d.timezone:a.timezone,h=f(a.windowHours,d.windowHours,.5,24),i=Math.round(f(a.slotsPerDay,d.slotsPerDay,1,Math.max(1,Math.floor(24/h))));return{enabled:!0,anchor:c,timezone:g,windowHours:h,slotsPerDay:i}}function h(a,b){let c=new Intl.DateTimeFormat("en-US",{timeZone:b,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(a)),d={};for(let a of c)"literal"!==a.type&&(d[a.type]=Number(a.value));return d}function i(a,b){let c=h(a,b);return Date.UTC(c.year,c.month-1,c.day,c.hour,c.minute,c.second)-a}function j(a,b){let{hour:c,minute:d}=e(a.anchor),f=h(b,a.timezone),g=function({year:a,month:b,day:c,hour:d,minute:e},f){let g=Date.UTC(a,b-1,c,d,e),h=i(g,f),j=g-h,k=i(j,f);return k===h?j:g-k}({year:f.year,month:f.month,day:f.day,hour:c,minute:d},a.timezone);return Array.from({length:a.slotsPerDay},(c,d)=>{var e;let f,i;return{key:(e=a.timezone,f=h(b,e),i=`${f.year}-${String(f.month).padStart(2,"0")}-${String(f.day).padStart(2,"0")}`,`${i}#${d}`),index:d,at:g+d*a.windowHours*36e5}})}function k(a,b=Date.now(),c=18e5){let d=(function(a,b=Date.now()){let c=g(a);return c?[...j(c,b-864e5),...j(c,b),...j(c,b+864e5)].sort((a,b)=>a.at-b.at):[]})(a,b).filter(a=>a.at<=b&&b-a.at<=c);return d.length?d[d.length-1]:null}},48595:(a,b,c)=>{c.d(b,{oc:()=>g});var d=c(90053),e=c(36633),f=c(36986);new Set(Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a)),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),d.rE;let g={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingModel:"gpt-5.5",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},73792:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{configureQuotaAutoPing:()=>z,runQuotaAutoPingTick:()=>w,startQuotaAutoPing:()=>x,stopQuotaAutoPing:()=>y});var e=c(5210),f=c(70321),g=c(55102),h=c(65333),i=c(30395),j=c(46956),k=c(63993),l=c(46455),m=c(48595),n=c(35346),o=a([e,h,l]);[e,h,l]=o.then?(await o)():o;let A=m.oc,B=globalThis.__zevaiQuotaAutoPing??={interval:null,running:!1,resetCache:{},failureCache:{}};function p(a){let b=new Date(a).getTime();return Number.isFinite(b)?new Date(6e4*Math.floor(b/6e4)).toISOString():a}function q(a,b=null){let c="string"==typeof a&&a.trim()?Number(a):a;return Number.isFinite(c)?c:b}function r(a){if(!a||!0===a.unlimited)return!1;let b=q(a.remaining);if(null!==b)return b<=0;let c=q(a.used),d=q(a.total);return null!==d&&d>0&&null!==c&&c>=d}function s(a,b,c=Date.now()){if(!b)return!1;let d=new Date(a.lastPingAt).getTime();return Number.isFinite(d)&&c-d<b}async function t(a){if("function"==typeof a?.text)return void await a.text();let b=a?.body?.getReader?.();if(b)try{for(;!(await b.read()).done;);}finally{b.releaseLock?.()}}async function u(a,b,c,d){let e=d.getExecutor("codex"),{response:f}=await e.execute({model:b.pingModel,stream:!0,credentials:{accessToken:a.accessToken,connectionId:a.id,providerSpecificData:a.providerSpecificData},proxyOptions:c,log:console,body:{model:b.pingModel,input:[{type:"message",role:"user",content:[{type:"input_text",text:b.pingText}]}],instructions:b.pingInstructions,reasoning:b.pingReasoningEffort?{effort:b.pingReasoningEffort,summary:"auto"}:void 0,store:!1,stream:!0}});return f.ok?(await t(f),!0):(await f.body?.cancel?.().catch?.(()=>{}),!1)}let C={claude:async function(a,b,c,d){let e=await d.proxyAwareFetch("https://api.anthropic.com/v1/messages?beta=true",{method:"POST",headers:{...i.xq.claude.headers||{},Authorization:`Bearer ${a.accessToken}`,"content-type":"application/json"},body:JSON.stringify({model:b.pingModel,max_tokens:b.pingMaxTokens,messages:[{role:"user",content:b.pingText}]})},c);return e.ok||await e.body?.cancel?.().catch?.(()=>{}),e.ok},codex:u};async function v(a,b,c,d,e,f=null,g=!0){var h,i,j;let k=(h=a.id,`${b}:${h}`),l=e.resetCache[k];if(!f&&!c.pingWhenResetAtSlides&&l){let a=new Date(l).getTime();if(Number.isFinite(a)&&Date.now()<a-A.refreshAheadMs)return}let m=e.failureCache[k];if(m&&Date.now()-m<A.failureCooldownMs)return;let o={connectionProxyEnabled:!0===(i=await d.resolveConnectionProxyConfig(a.providerSpecificData)).connectionProxyEnabled,connectionProxyUrl:i.connectionProxyUrl||"",connectionNoProxy:i.connectionNoProxy||"",vercelRelayUrl:i.vercelRelayUrl||"",strictProxy:!1},q=(await d.refreshAndUpdateCredentials(a,!1,o)).connection,t=await d.getUsageForProvider(q,o),u=t?.quotas||{},w=u[c.quotaKey],x=w?.resetAt;if(x&&(e.resetCache[k]=x),c.skipWhenBlockingQuotaExhausted&&(j=c.quotaKey,Object.entries(u||{}).some(([a,b])=>a!==j&&!String(a).toLowerCase().includes("session")&&r(b)))||r(w))return;let y=Date.now(),z=f?(0,n.HG)(f,y):null,B=!!z&&q.lastPingedSlotKey!==z.key;if(B){if(s(q,c.minPingIntervalMs,y))return}else{if(!g||!x)return;let a=p(x),b=q.lastPingedResetKey||p(q.lastPingedResetAt);if(!function(a,b,c,d){if(a.pingWhenResetAtSlides){if(!b)return!1;let d=new Date(b).getTime(),e=new Date(c).getTime();return Number.isFinite(d)&&Number.isFinite(e)&&e-d>=(a.resetAtDriftMs||0)}let e=new Date(c).getTime();return Number.isFinite(e)&&d>=e-A.pingLeadMs}(c,l,x,y)||s(q,c.minPingIntervalMs,y)||b===a)return}let D=x?p(x):null;if(!await C[b](q,c,o,d)){e.failureCache[k]=Date.now();return}delete e.failureCache[k];let E=new Date().toISOString();await d.updateProviderConnection(q.id,{...x?{lastPingedResetAt:x,lastPingedResetKey:D}:{},...B?{lastPingedSlotKey:z.key}:{},lastPingAt:E})}async function w(a={getSettings:f.mt,getProviderConnections:f.getProviderConnections,updateProviderConnection:f.updateProviderConnection,resolveConnectionProxyConfig:k.B,refreshAndUpdateCredentials:l.qX,getUsageForProvider:g.my,proxyAwareFetch:j.Fm,getExecutor:h.SB},b=B){if(!b.running){b.running=!0;try{let e=await a.getSettings();for(let[f,g]of Object.entries(A.providers)){var c,d;let h=e?.[g.settingsKey]?.connections||{},i=e?.[g.settingsKey]?.schedules||{};if(Object.values(h).some(Boolean)||Object.values(i).some(a=>a?.enabled===!0))for(let j of(await a.getProviderConnections({provider:f,isActive:!0})).filter(a=>"oauth"===a.authType&&(!0===h[a.id]||null!==(0,n.NU)(i[a.id]))))try{await v(j,f,g,a,b,(c=j.id,(0,n.NU)(e?.[g.settingsKey]?.schedules?.[c])),!0===h[j.id])}catch(a){b.failureCache[d=j.id,`${f}:${d}`]=Date.now(),console.warn(`[AutoPing] ${f}/${j.id}: ${a.message}`)}}}finally{b.running=!1}}}function x(){B.interval||(w(),B.interval=setInterval(()=>void w(),A.tickIntervalMs),B.interval.unref?.())}function y(){B.interval&&(clearInterval(B.interval),B.interval=null)}function z(a){Object.values(A.providers).some(b=>{let c=a?.[b.settingsKey]||{};return Object.values(c.connections||{}).some(Boolean)||Object.values(c.schedules||{}).some(a=>a?.enabled===!0)})?x():y()}d()}catch(a){d(a)}})}};
@@ -1 +1 @@
1
- "use strict";exports.id=3815,exports.ids=[3815],exports.modules={73815:(a,b,c)=>{c.d(b,{buildProviderCredentialUpdates:()=>d}),c(87886),c(70321),c(94179),c(99939),c(79154),c(14e3);function d(a,b=Date.now()){let c={};if(a.accessToken&&(c.accessToken=a.accessToken),a.refreshToken&&(c.refreshToken=a.refreshToken),a.idToken&&(c.idToken=a.idToken),a.lastRefreshAt&&(c.lastRefreshAt=a.lastRefreshAt),a.expiresAt&&(c.expiresAt=a.expiresAt),a.expiresIn)c.expiresAt=function(a,b=Date.now()){return new Date(b+1e3*a).toISOString()}(a.expiresIn,b),c.expiresIn=a.expiresIn;else if(a.expiresAt){let d=function(a){if(!a)return null;let b=new Date(a);return Number.isFinite(b.getTime())?b.toISOString():null}(a.expiresAt);d&&(c.expiresAt=d,c.expiresIn=Math.max(1,Math.floor((new Date(d).getTime()-b)/1e3)))}return a.providerSpecificData&&(c.providerSpecificData={...a.existingProviderSpecificData||{},...a.providerSpecificData}),(a.copilotToken||a.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||a.existingProviderSpecificData||{},...a.copilotToken?{copilotToken:a.copilotToken}:{},...a.copilotTokenExpiresAt?{copilotTokenExpiresAt:a.copilotTokenExpiresAt}:{}}),a.projectId&&(c.projectId=a.projectId),c}},94179:(a,b,c)=>{c.d(b,{gQ:()=>h});var d=c(48991);let e=new Map,f=new Map,g=null;async function h(a,b={}){if(!a)return{projectId:null,tierId:null,requiresUserProject:!1,error:"missing access token"};try{return await i(a,void 0,b)}catch(a){return{projectId:null,tierId:null,requiresUserProject:!1,error:a?.message||String(a)}}}async function i(a,b,c={}){var e;let f="string"==typeof(e=c.preferredProjectId)?e.trim()||null:e&&"object"==typeof e&&"string"==typeof e.id&&e.id.trim()||null,g=await fetch(d.nZ.loadCodeAssist,{method:"POST",headers:{...d.Ic,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),l=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(l)return{projectId:l,tierId:k(h).tierId||null,requiresUserProject:!1,loadRaw:h};let m=k(h),n=m.tierId||"free-tier";if(m.userDefined)return f?{projectId:await j(a,n,b,f)||f,tierId:n,requiresUserProject:!0,loadRaw:h,error:void 0}:(console.warn("[ProjectId] GSuite/DASHER has no free-tier project from loadCodeAssist; caller should reuse a stored/peer managed project id."),{projectId:null,tierId:n,requiresUserProject:!0,loadRaw:h,error:"no managed project on account; use stored or peer projectId"});let o=await j(a,n,b,null);return{projectId:o,tierId:n,requiresUserProject:!1,loadRaw:h,error:o?void 0:"onboardUser did not return a project id"}}async function j(a,b,c,e=null){console.log(`[ProjectId] Onboarding user with tier: ${b}`+(e?` project=${e}`:""));let f={tierId:b,metadata:d.zv};e&&(f.cloudaicompanionProject=e);for(let b=1;b<=5&&!c?.aborted;b++){let g=new AbortController,h=setTimeout(()=>g.abort(),3e4),i=()=>g.abort();c?.addEventListener("abort",i);try{let c=await fetch(d.nZ.onboardUser,{method:"POST",headers:{...d.Ic,Authorization:`Bearer ${a}`},body:JSON.stringify(f),signal:g.signal});if(clearTimeout(h),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let i=await c.json();if(!0===i.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(i);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;if(e)return console.log(`[ProjectId] onboard done without id; using preferred project ${e}`),e;throw Error("onboardUser done but no project_id in response")}console.log(`[ProjectId] Onboard attempt ${b}/5: not done yet, waiting...`),await new Promise(a=>setTimeout(a,2e3))}catch(a){if(clearTimeout(h),"AbortError"===a.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(5===b)return console.warn(`[ProjectId] onboardUser failed after 5 attempts: ${a.message}`),null;console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${a.message}, retrying...`),await new Promise(a=>setTimeout(a,2e3))}finally{clearTimeout(h),c?.removeEventListener("abort",i)}}return null}function k(a){let b=null,c=!1;if(a?.currentTier?.id&&"string"==typeof a.currentTier.id&&(b=a.currentTier.id.trim(),c=!!a.currentTier.userDefinedCloudaicompanionProject),Array.isArray(a?.allowedTiers)){for(let d of a.allowedTiers)if(d&&"object"==typeof d&&!0===d.isDefault&&d.id){b=String(d.id).trim(),c=!!d.userDefinedCloudaicompanionProject;break}if(!b){let d=a.allowedTiers.find(a=>a?.id==="free-tier");d?(b="free-tier",c=!!d.userDefinedCloudaicompanionProject):a.allowedTiers[0]?.id&&(b=String(a.allowedTiers[0].id).trim(),c=!!a.allowedTiers[0].userDefinedCloudaicompanionProject)}}return"free-tier"===b&&(c=!1),{tierId:b,userDefined:c}}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()}};
1
+ "use strict";exports.id=3815,exports.ids=[3815],exports.modules={73815:(a,b,c)=>{c.d(b,{buildProviderCredentialUpdates:()=>d}),c(87886),c(70321),c(94179),c(99939),c(79154),c(14e3);function d(a,b=Date.now()){let c={};if(a.accessToken&&(c.accessToken=a.accessToken),a.apiKey&&(c.apiKey=a.apiKey),a.refreshToken&&(c.refreshToken=a.refreshToken),a.idToken&&(c.idToken=a.idToken),a.lastRefreshAt&&(c.lastRefreshAt=a.lastRefreshAt),a.expiresAt&&(c.expiresAt=a.expiresAt),a.expiresIn)c.expiresAt=function(a,b=Date.now()){return new Date(b+1e3*a).toISOString()}(a.expiresIn,b),c.expiresIn=a.expiresIn;else if(a.expiresAt){let d=function(a){if(!a)return null;let b=new Date(a);return Number.isFinite(b.getTime())?b.toISOString():null}(a.expiresAt);d&&(c.expiresAt=d,c.expiresIn=Math.max(1,Math.floor((new Date(d).getTime()-b)/1e3)))}return a.providerSpecificData&&(c.providerSpecificData={...a.existingProviderSpecificData||{},...a.providerSpecificData}),(a.copilotToken||a.copilotTokenExpiresAt)&&(c.providerSpecificData={...c.providerSpecificData||a.existingProviderSpecificData||{},...a.copilotToken?{copilotToken:a.copilotToken}:{},...a.copilotTokenExpiresAt?{copilotTokenExpiresAt:a.copilotTokenExpiresAt}:{}}),a.projectId&&(c.projectId=a.projectId),c}},94179:(a,b,c)=>{c.d(b,{gQ:()=>h});var d=c(48991);let e=new Map,f=new Map,g=null;async function h(a,b={}){if(!a)return{projectId:null,tierId:null,requiresUserProject:!1,error:"missing access token"};try{return await i(a,void 0,b)}catch(a){return{projectId:null,tierId:null,requiresUserProject:!1,error:a?.message||String(a)}}}async function i(a,b,c={}){var e;let f="string"==typeof(e=c.preferredProjectId)?e.trim()||null:e&&"object"==typeof e&&"string"==typeof e.id&&e.id.trim()||null,g=await fetch(d.nZ.loadCodeAssist,{method:"POST",headers:{...d.Ic,Authorization:`Bearer ${a}`},body:JSON.stringify({metadata:d.zv}),signal:b});if(!g.ok){let a=await g.text().catch(()=>"");throw Error(`loadCodeAssist failed: HTTP ${g.status} ${a.slice(0,200)}`)}let h=await g.json(),l=function(a){if(!a)return null;if("string"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.trim();if(b)return b}if(a.cloudaicompanionProject&&"object"==typeof a.cloudaicompanionProject){let b=a.cloudaicompanionProject.id;if("string"==typeof b&&b.trim())return b.trim()}return null}(h);if(l)return{projectId:l,tierId:k(h).tierId||null,requiresUserProject:!1,loadRaw:h};let m=k(h),n=m.tierId||"free-tier";if(m.userDefined)return f?{projectId:await j(a,n,b,f)||f,tierId:n,requiresUserProject:!0,loadRaw:h,error:void 0}:(console.warn("[ProjectId] GSuite/DASHER has no free-tier project from loadCodeAssist; caller should reuse a stored/peer managed project id."),{projectId:null,tierId:n,requiresUserProject:!0,loadRaw:h,error:"no managed project on account; use stored or peer projectId"});let o=await j(a,n,b,null);return{projectId:o,tierId:n,requiresUserProject:!1,loadRaw:h,error:o?void 0:"onboardUser did not return a project id"}}async function j(a,b,c,e=null){console.log(`[ProjectId] Onboarding user with tier: ${b}`+(e?` project=${e}`:""));let f={tierId:b,metadata:d.zv};e&&(f.cloudaicompanionProject=e);for(let b=1;b<=5&&!c?.aborted;b++){let g=new AbortController,h=setTimeout(()=>g.abort(),3e4),i=()=>g.abort();c?.addEventListener("abort",i);try{let c=await fetch(d.nZ.onboardUser,{method:"POST",headers:{...d.Ic,Authorization:`Bearer ${a}`},body:JSON.stringify(f),signal:g.signal});if(clearTimeout(h),!c.ok){let a=await c.text().catch(()=>"");throw Error(`onboardUser HTTP ${c.status}: ${a.slice(0,200)}`)}let i=await c.json();if(!0===i.done){let a=function(a){if(!a?.response)return null;let b=a.response.cloudaicompanionProject;if("string"==typeof b){let a=b.trim();if(a)return a}if(b&&"object"==typeof b){let a=b.id;if("string"==typeof a&&a.trim())return a.trim()}return null}(i);if(a)return console.log(`[ProjectId] Successfully onboarded, project ID: ${a}`),a;if(e)return console.log(`[ProjectId] onboard done without id; using preferred project ${e}`),e;throw Error("onboardUser done but no project_id in response")}console.log(`[ProjectId] Onboard attempt ${b}/5: not done yet, waiting...`),await new Promise(a=>setTimeout(a,2e3))}catch(a){if(clearTimeout(h),"AbortError"===a.name){if(console.warn(`[ProjectId] onboardUser attempt ${b} aborted (timeout or connection removed)`),c?.aborted)return null;continue}if(5===b)return console.warn(`[ProjectId] onboardUser failed after 5 attempts: ${a.message}`),null;console.warn(`[ProjectId] onboardUser attempt ${b} failed: ${a.message}, retrying...`),await new Promise(a=>setTimeout(a,2e3))}finally{clearTimeout(h),c?.removeEventListener("abort",i)}}return null}function k(a){let b=null,c=!1;if(a?.currentTier?.id&&"string"==typeof a.currentTier.id&&(b=a.currentTier.id.trim(),c=!!a.currentTier.userDefinedCloudaicompanionProject),Array.isArray(a?.allowedTiers)){for(let d of a.allowedTiers)if(d&&"object"==typeof d&&!0===d.isDefault&&d.id){b=String(d.id).trim(),c=!!d.userDefinedCloudaicompanionProject;break}if(!b){let d=a.allowedTiers.find(a=>a?.id==="free-tier");d?(b="free-tier",c=!!d.userDefinedCloudaicompanionProject):a.allowedTiers[0]?.id&&(b=String(a.allowedTiers[0].id).trim(),c=!!a.allowedTiers[0].userDefinedCloudaicompanionProject)}}return"free-tier"===b&&(c=!1),{tierId:b,userDefined:c}}g=setInterval(()=>{try{let a=Date.now();for(let[b,c]of e)(!c||a-c.fetchedAt>=36e5)&&e.delete(b);for(let[b,c]of f){if(!c||"number"!=typeof c.startedAt){f.delete(b);continue}if(a-c.startedAt>12e4){try{c.controller.abort()}catch(a){}f.delete(b)}}}catch(a){console.warn("[ProjectId] cleanup sweep error:",a?.message??a)}},6e5),g?.unref?.()}};
@@ -4,4 +4,4 @@
4
4
  `,children:[C.includes(a.name)&&(0,d.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),a.name]},a.id)})})]}),Object.entries(aa).map(([a,b])=>(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mb-1.5 sticky top-0 bg-surface py-0.5",children:[(0,d.jsx)(i.A,{src:`/providers/${a}.png`,alt:b.name,size:14,fallbackText:(b.name||a).slice(0,2).toUpperCase(),fallbackColor:b.color}),(0,d.jsx)("span",{className:"text-xs font-medium text-primary",children:b.name}),(0,d.jsxs)("span",{className:"text-[10px] text-text-muted",children:["(",b.models.length,")"]})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:b.models.map(a=>{let b=p===a.value,c=a.isPlaceholder;return(0,d.jsx)("button",{onClick:()=>ae(a),title:c?"Select to pre-fill, then edit model ID in the input":void 0,className:`
5
5
  px-2 py-1 rounded-xl text-xs font-medium transition-all border hover:cursor-pointer
6
6
  ${c?"border-dashed border-border text-text-muted hover:border-primary/50 hover:text-primary bg-surface italic":b?"bg-primary text-white border-primary":C.includes(a.value)?"bg-primary border-primary text-white hover:bg-primary-hover":"bg-surface border-border text-text-main hover:border-primary/50 hover:bg-primary/5"}
7
- `,children:(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[C.includes(a.value)&&!c&&(0,d.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),c?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),a.name]}):a.isCustom?(0,d.jsxs)(d.Fragment,{children:[a.name,(0,d.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):a.name,!c&&(0,d.jsx)(s.A,{caps:G(a.value),size:12,colorOverride:b||C.includes(a.value)?"text-white":void 0})]})},a.value)})})]},a)),0===Object.keys(aa).length&&0===_.length&&(0,d.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,d.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}function y(a){return a.isOpen?(0,d.jsx)(x,{...a}):null}y.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSelect:g().func.isRequired,onDeselect:g().func,onSelectBatch:g().func,onDeselectBatch:g().func,selectedModel:g().string,activeProviders:g().arrayOf(g().shape({provider:g().string.isRequired})),title:g().string,modelAliases:g().object,kindFilter:g().string,addedModelValues:g().arrayOf(g().string),closeOnSelect:g().bool,includeCombos:g().bool,capFilter:g().string}},67088:(a,b,c)=>{c.d(b,{F:()=>e});var d=c(67484);function e(a){let[b,c]=(0,d.useState)([]);return a?b:[]}},67738:(a,b,c)=>{c.d(b,{default:()=>i});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412);function i({isOpen:a,onClose:b,onCreated:c,onSaved:f,node:g}){let j=!!g,[k,l]=(0,e.useState)({name:"",prefix:"",baseUrl:"https://api.openai.com/v1"}),[m,n]=(0,e.useState)(!1),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),w=async()=>{if(k.name.trim()&&k.prefix.trim()&&k.baseUrl.trim()){n(!0);try{let a=j?`/api/provider-nodes/${g.id}`:"/api/provider-nodes",b={name:k.name,prefix:k.prefix,baseUrl:k.baseUrl};j||(b.type="custom-embedding");let d=await fetch(a,{method:j?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),e=await d.json();d.ok&&(j?f?.(e.node):c?.(e.node))}catch(a){console.log("Error saving custom embedding node:",a)}finally{n(!1)}}},x=async()=>{t(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:k.baseUrl,apiKey:o,type:"custom-embedding",modelId:q.trim()||void 0})}),b=await a.json();v(b)}catch{v({valid:!1,error:"Network error"})}finally{t(!1)}};return(0,d.jsx)(h.aF,{isOpen:a,title:j?"Edit Custom Embedding":"Add Custom Embedding",onClose:b,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(h.pd,{label:"Name",value:k.name,onChange:a=>l({...k,name:a.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,d.jsx)(h.pd,{label:"Prefix",value:k.prefix,onChange:a=>l({...k,prefix:a.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,d.jsx)(h.pd,{label:"Base URL",value:k.baseUrl,onChange:a=>l({...k,baseUrl:a.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,d.jsx)(h.pd,{label:"API Key (for Check)",type:"password",value:o,onChange:a=>p(a.target.value)}),(0,d.jsx)(h.pd,{label:"Model ID (for Check)",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(h.$n,{onClick:x,disabled:!o||!q.trim()||s||!k.baseUrl.trim(),variant:"secondary",children:s?"Checking...":"Check"}),(()=>{if(!u)return null;let{valid:a,error:b,dimensions:c}=u;return a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.Ex,{variant:"success",children:"Valid"}),c&&(0,d.jsxs)("span",{className:"text-sm text-text-muted",children:[c," dims"]})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)(h.Ex,{variant:"error",children:"Invalid"}),b&&(0,d.jsx)("span",{className:"text-sm text-red-500",children:b})]})})()]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:w,fullWidth:!0,disabled:!k.name.trim()||!k.prefix.trim()||!k.baseUrl.trim()||m,children:m?j?"Saving...":"Creating...":j?"Save":"Create"}),(0,d.jsx)(h.$n,{onClick:b,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}i.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onCreated:g().func,onSaved:g().func,node:g().shape({id:g().string,name:g().string,prefix:g().string,baseUrl:g().string})}},71404:(a,b,c)=>{c.d(b,{cn:()=>d});function d(...a){return a.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},72738:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f);function h({src:a,alt:b,size:c=32,className:f="",fallbackText:g="?",fallbackColor:i,loading:j="lazy",decoding:k="async"}){let[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(a),[p,q]=(0,e.useState)(a);return(p!==a&&(q(a),m(!1),o(a)),!n||l)?(0,d.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${f}`.trim(),style:{width:c,height:c,color:i,fontSize:Math.max(10,Math.floor(.38*c))},children:g}):(0,d.jsx)("img",{src:n,alt:b,width:c,height:c,className:f,loading:j,decoding:k,onError:()=>{if("string"==typeof n&&/\/providers\/[^/]+\.png$/.test(n)){let a=n.slice(n.lastIndexOf("/")+1,-4);o(`/provider-icons/${encodeURIComponent(a)}`);return}m(!0)}})}h.propTypes={src:g().string,alt:g().string,size:g().number,className:g().string,fallbackText:g().string,fallbackColor:g().string,loading:g().oneOf(["eager","lazy"]),decoding:g().oneOf(["async","auto","sync"])}},74016:(a,b,c)=>{function d(a,b,c){let d=c.height-a.bottom,e=d<(b+1)*34+8&&a.top>d;return{position:"fixed",right:c.width-a.right,...e?{bottom:c.height-a.top+4,maxHeight:Math.max(a.top-8,120)}:{top:a.bottom+4,maxHeight:Math.max(d-8,120)}}}function e(a,b,c){let d=a.left+a.width/2,e=a.top+a.height/2;return"bottom"===b?{position:"fixed",top:a.bottom+6,left:d,transform:"translateX(-50%)"}:"left"===b?{position:"fixed",right:c.width-a.left+6,top:e,transform:"translateY(-50%)"}:"right"===b?{position:"fixed",left:a.right+6,top:e,transform:"translateY(-50%)"}:{position:"fixed",bottom:c.height-a.top+6,left:d,transform:"translateX(-50%)"}}c.d(b,{Z:()=>e,x:()=>d})},74812:(a,b,c)=>{c.d(b,{CardSkeleton:()=>i,DataListSkeleton:()=>j,PageLoading:()=>g,Skeleton:()=>h,Spinner:()=>f,default:()=>k});var d=c(48249),e=c(71404);function f({size:a="md",className:b}){return(0,d.jsx)("span",{className:(0,e.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"}[a],b),children:"progress_activity"})}function g({message:a="Loading..."}){return(0,d.jsxs)("div",{role:"status","aria-live":"polite","aria-label":a,className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,d.jsx)(f,{size:"xl"}),(0,d.jsx)("p",{className:"mt-4 text-text-muted",children:a})]})}function h({className:a,...b}){return(0,d.jsx)("div",{className:(0,e.cn)("animate-pulse rounded-[10px] bg-surface-2 motion-reduce:animate-none",a),...b})}function i({className:a}){return(0,d.jsxs)("div",{"aria-hidden":"true",className:(0,e.cn)("rounded-[14px] border border-border-subtle bg-surface p-6 shadow-[var(--shadow-soft)]",a),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)(h,{className:"h-4 w-24"}),(0,d.jsx)(h,{className:"size-10 rounded-[10px]"})]}),(0,d.jsx)(h,{className:"h-8 w-16 mb-2"}),(0,d.jsx)(h,{className:"h-3 w-20"})]})}function j({rows:a=4,label:b="Loading data",className:c}){return(0,d.jsx)("div",{role:"status","aria-label":b,className:(0,e.cn)("divide-y divide-border-subtle",c),children:Array.from({length:a},(a,b)=>(0,d.jsxs)("div",{"aria-hidden":"true",className:"grid grid-cols-[minmax(6rem,0.7fr)_minmax(0,1.3fr)] gap-4 py-4",children:[(0,d.jsx)(h,{className:"h-4 w-24 max-w-full"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(h,{className:"h-4 w-2/3"}),(0,d.jsx)(h,{className:"h-3 w-1/3"})]})]},b))})}function k({type:a="spinner",...b}){switch(a){case"page":return(0,d.jsx)(g,{...b});case"skeleton":return(0,d.jsx)(h,{...b});case"card":return(0,d.jsx)(i,{...b});default:return(0,d.jsx)(f,{...b})}}},74875:(a,b,c)=>{c.d(b,{BU:()=>m,G9:()=>h,d4:()=>j,gJ:()=>d,i2:()=>k,io:()=>l});let d=[{id:"all",label:"All"},{id:"active",label:"Active",keys:["active"]},{id:"errors",label:"Errors",keys:["connection_error","auth_error","quota_exhausted","rate_limited","banned","cooldown","unknown"]},{id:"connection",label:"Connection",keys:["connection_error"]},{id:"auth",label:"Auth",keys:["auth_error"]},{id:"limit",label:"Limit",keys:["rate_limited","cooldown"]},{id:"exhausted",label:"Exhausted",keys:["quota_exhausted"]},{id:"banned",label:"Banned",keys:["banned"]},{id:"disabled",label:"Disabled",keys:["disabled"]}],e={active:{label:"active",severity:"success",terminal:!1},disabled:{label:"disabled",severity:"default",terminal:!1},connection_error:{label:"connection error",severity:"error",terminal:!1},auth_error:{label:"auth error",severity:"error",terminal:!0},quota_exhausted:{label:"exhausted",severity:"error",terminal:!0},rate_limited:{label:"rate limited",severity:"warning",terminal:!1},banned:{label:"banned",severity:"error",terminal:!0},cooldown:{label:"cooldown",severity:"warning",terminal:!1},unknown:{label:"unknown",severity:"default",terminal:!1}},f={policy_suspended:"banned",account_validation_required:"auth_error",credential_rejected:"auth_error",reauth_required:"auth_error",authentication:"auth_error",entitlement_or_quota:"quota_exhausted",rate_limited:"rate_limited",permission_denied:"auth_error",upstream_transient:"connection_error"};function g(a){if(!a)return"";if("string"==typeof a)return a.toLowerCase();try{return JSON.stringify(a).toLowerCase()}catch{return String(a).toLowerCase()}}function h(a={},b=Date.now()){let c=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>new Date(a).getTime()).filter(a=>Number.isFinite(a)&&a>b);return c.length>0?new Date(Math.min(...c)).toISOString():null}function i(a,b=""){let c=e[a]||e.unknown;return{key:a,...c,reason:b}}function j(a={}){var b;let c=(b=a).quarantinedAt?i(f[g(b.failureClass)]||"unknown",b.quarantineReason||b.lastError||"Connection is quarantined"):null;if(c)return c;if(!1===a.isActive)return i("disabled","Connection is disabled");if(function(a={}){return null!==h(a)}(a))return i("cooldown","Model cooldown is active");if(function(a){if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>Date.now()}(a.rateLimitedUntil))return i("rate_limited","Rate limit cooldown is active");if(function(a={},b=Date.now()){if("429"!==String(a.errorCode??""))return!1;let c=Date.parse(a.modelLockReason?.resetsAt);return Number.isFinite(c)&&c<=b}(a))return i("active","");let d=g(a.testStatus||a.status),e=g(a.lastErrorType||a.errorType),k=g(a.errorCode||a.statusCode),l=g(a.lastError||a.error),m=`${d} ${e} ${k} ${l}`.trim();return!m||["active","success","ok"].includes(d)?i("active",""):m.includes("ban")||m.includes("suspend")||m.includes("restricted")?i("banned",a.lastError||"Account appears restricted"):m.includes("exhaust")||m.includes("quota exceeded")||m.includes("insufficient_quota")||m.includes("payment required")||"402"===k?i("quota_exhausted",a.lastError||"Quota exhausted"):e.includes("rate_limited")||m.includes("rate limit")||m.includes("too many requests")||"429"===k?i("rate_limited",a.lastError||"Rate limited"):e.includes("auth")||e.includes("token")||m.includes("unauthorized")||m.includes("invalid api key")||m.includes("token invalid")||m.includes("token expired")||m.includes("revoked")||"401"===k||"403"===k?i("auth_error",a.lastError||"Authentication failed"):e.includes("network")||m.includes("network")||m.includes("timeout")||m.includes("fetch failed")||m.includes("econn")||m.includes("dns")||m.includes("proxy")?i("connection_error",a.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(d)?i("connection_error",a.lastError||a.testStatus||"Connection failed"):i("unknown",a.lastError||a.testStatus||"")}function k(a,b){if(!b||"all"===b)return!0;let c=d.find(a=>a.id===b);return!c||c.keys.includes(j(a).key)}function l(a){let b={};for(let c of a||[]){if(!c?.provider)continue;let a=b[c.provider]||{total:0,active:0};a.total+=1,!1!==c.isActive&&(a.active+=1),b[c.provider]=a}let c=new Set;for(let[a,d]of Object.entries(b))d.total>0&&0===d.active&&c.add(a);return c}function m(a){return a?.severity==="success"?"success":a?.severity==="error"?"error":"default"}},75171:(a,b,c)=>{c.d(b,{default:()=>h});var d=c(48249),e=c(71404);let f={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},g={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function h({children:a,variant:b="default",size:c="md",dot:i=!1,icon:j,className:k,...l}){return(0,d.jsxs)("span",{className:(0,e.cn)("inline-flex max-w-full items-center gap-1.5 rounded-full font-semibold",f[b],g[c],k),...l,children:[i&&(0,d.jsx)("span",{className:(0,e.cn)("size-1.5 rounded-full","success"===b&&"bg-green-500","warning"===b&&"bg-yellow-500","error"===b&&"bg-red-500","info"===b&&"bg-blue-500","primary"===b&&"bg-brand-500","default"===b&&"bg-gray-500"),"aria-hidden":"true"}),j&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:j}),(0,d.jsx)("span",{className:"min-w-0 truncate",children:a})]})}},77209:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(48249),e=c(49885);function f({quiet:a=!1}){return(0,d.jsxs)("div",{className:a?"shell-atmosphere shell-atmosphere-quiet":"shell-atmosphere","aria-hidden":"true",children:[(0,d.jsx)("div",{className:"shell-grid"}),(0,d.jsxs)("div",{className:"shell-ripples",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]})]})}f.propTypes={quiet:(c.n(e))().bool}},79346:(a,b,c)=>{c.d(b,{default:()=>k});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(50377);let j=new Set(["trae","windsurf","zed"]);function k({isOpen:a,provider:b,providerInfo:c,onSuccess:f,onClose:g,oauthMeta:l,idcConfig:m}){let[n,o]=(0,e.useState)("waiting"),[p,q]=(0,e.useState)(null),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(!1),B=(0,e.useRef)(null),C=(0,e.useRef)(0),D=(0,e.useRef)(f);(0,e.useRef)(null);let{copied:E,copy:F}=(0,i.C)(),[G,H]=(0,e.useState)("/callback?code=...");(0,e.useRef)(!1);let I=(0,e.useCallback)(async(a,c)=>{let d="trae"===b||"windsurf"===b;if(p||d)try{let d=await fetch(`/api/oauth/${b}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,redirectUri:p?.redirectUri,codeVerifier:p?.codeVerifier,state:c,...p?.systemId?{systemId:p.systemId}:{},...l?{meta:l}:{}})}),e=await d.json();if(!d.ok)throw Error(e.error);o("success"),D.current?.()}catch(a){u(a.message),o("error")}},[p,b,l]),J=(0,e.useCallback)(a=>{j.has(a)&&fetch(`/api/oauth/${a}/stop-proxy`,{method:"POST"}).catch(()=>{})},[]),K=(0,e.useCallback)(async a=>{let b=C.current,c=await fetch(`/api/oauth/${a}/start-proxy`),d=await c.json();if(!c.ok||!d.success||!d.callbackUrl)throw Error(d.reason||d.error||`Failed to start ${a} callback server`);if(C.current!==b)return void J(a);let e=new URL(`/api/oauth/${a}/authorize`,window.location.origin);e.searchParams.set("redirect_uri",d.callbackUrl);let f=await fetch(e),g=await f.json();if(!f.ok)throw J(a),Error(g.error||"Failed to build the sign-in URL");if(C.current!==b)return void J(a);let h={state:g.state};g.codeVerifier&&(h.codeVerifier=g.codeVerifier),g.systemId&&(h.systemId=g.systemId);let i=await fetch(`/api/oauth/${a}/register-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)}),j=await i.json().catch(()=>null);if(!i.ok||j?.success===!1)throw J(a),Error(j?.error||"Failed to register login session; please retry");C.current===b&&(q({...g,redirectUri:d.callbackUrl,proxyProvider:a}),o("waiting"),B.current=window.open(g.authUrl,"oauth_popup","width=600,height=700"),B.current||o("input"))},[J]),L=(0,e.useCallback)(async a=>{if(p?.state)try{let b=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,state:p.state})}),c=await b.json();if(!b.ok)throw Error(c.error);o("success"),D.current?.()}catch(a){u(a.message),o("error")}},[p]),M=(0,e.useCallback)(async(a,c,d,e,f)=>{let g=++C.current,h=()=>C.current===g;A(!0);let i=Date.now()+(Number.isFinite(f)&&f>0?f:12e4);for(;Date.now()<i;){if(!h())return void console.log("[OAuthModal] Polling aborted");if(await new Promise(a=>setTimeout(a,1e3*d)),!h())return void console.log("[OAuthModal] Polling aborted after sleep");try{let f=await fetch(`/api/oauth/${b}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:a,codeVerifier:c,extraData:e})}),g=await f.json();if(!h())return;if(g.success){C.current++,o("success"),A(!1),D.current?.();return}if("expired_token"===g.error||"access_denied"===g.error||g.fatal)throw Error(g.errorDescription||g.error);"slow_down"===g.error&&(d=Math.min(d+5,30))}catch(a){if(!h())return;u(a.message),o("error"),A(!1);return}}h()&&(u("Authorization timeout"),o("error"),A(!1))},[b]),N=(0,e.useCallback)(async()=>{if(b)try{let a;u(null);let c=window.location.hostname.toLowerCase(),d="localhost"===c||"127.0.0.1"===c||"::1"===c,e="codex"===b&&!d;if(["github","qwen","kiro","kimi","kimi-coding","kilocode","codebuddy","codebuddy-cn","codebuddy-intl","qoder","qoder-cn","grok-cli","muse","glm","minimax-code","minimax-code-global","nous",...e?["codex"]:[]].includes(b)){w(!0),o("waiting");let a=new URL(`/api/oauth/${b}/device-code`,window.location.origin);"kiro"===b&&m?.startUrl&&(a.searchParams.set("start_url",m.startUrl),m.region&&a.searchParams.set("region",m.region),a.searchParams.set("auth_method","idc"));let c=await fetch(a.toString()),d=await c.json();if(!c.ok)throw Error(d.error);y(d);let e=d.verification_uri_complete||d.verification_uri;e&&window.open(e,"_blank","noopener,noreferrer");let f="codex"===b?{_codexUserCode:d.user_code}:"kiro"===b?{_clientId:d._clientId,_clientSecret:d._clientSecret,_region:d._region,_authMethod:d._authMethod,_startUrl:d._startUrl}:"glm"===b?{_zcodePollToken:d._zcodePollToken}:"qoder"===b||"qoder-cn"===b?{_qoderNonce:d._qoderNonce,_qoderMachineId:d._qoderMachineId,_qoderVerifier:d.codeVerifier}:"kimi"===b||"kimi-coding"===b?{_kimiDeviceId:d._kimiDeviceId}:"minimax-code"===b||"minimax-code-global"===b?{_minimaxPollByUser:d._minimaxPollByUser}:null;M(d.device_code,d.codeVerifier,d.interval||5,f,Number.isFinite(d.expires_in)&&d.expires_in>0?1e3*d.expires_in:void 0);return}if(j.has(b))return void await K(b);let f=window.location.port||("https:"===window.location.protocol?"443":"80");a="codex"===b?"http://localhost:1455/auth/callback":"xai"===b?"http://127.0.0.1:56121/callback":`http://localhost:${f}/callback`;let g=new URL(`/api/oauth/${b}/authorize`,window.location.origin);g.searchParams.set("redirect_uri",a),l&&Object.entries(l).forEach(([a,b])=>{b&&g.searchParams.set(a,b)});let h=await fetch(g.toString()),i=await h.json();if(!h.ok)throw Error(i.error);let k=!1,n=!1;if("codex"===b)try{let b=await fetch("/api/oauth/codex/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:f,state:i.state,codeVerifier:i.codeVerifier,redirectUri:a})}),c=await b.json();k=c.success,n=!!c.serverSide}catch{k=!1}let p=!1,r=!1;if("xai"===b)try{let b=await fetch("/api/oauth/xai/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:f,state:i.state,codeVerifier:i.codeVerifier,redirectUri:a})}),c=await b.json();if(p=c.success,r=!!c.serverSide,!p&&"port_busy"===c.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(a){if(a?.message)throw a;p=!1}q({...i,redirectUri:a,codexServerSide:n,xaiServerSide:r}),"codex"===b&&k||"xai"===b&&p||d&&"codex"!==b&&"xai"!==b?(o("waiting"),B.current=window.open(i.authUrl,"oauth_popup","width=600,height=700"),B.current||o("input")):(o("input"),window.open(i.authUrl,"_blank","noopener,noreferrer"))}catch(a){u(a.message),o("error")}},[b,M,K,l,m]),O=async()=>{try{u(null);let a=r.trim();if(a.startsWith("eyJ")&&a.includes("."))return void await I(a,null);if("xai"===b&&a&&!a.includes("://")&&!a.includes("?")&&!a.includes("code="))return void await L(a);if("kimchi"===b&&a&&!a.includes("://")&&!a.includes("?"))return void await I(a,null);if("trae"===b||"windsurf"===b||"zed"===b&&(a.includes("user_id=")||a.includes("access_token=")))return void await I(a,p?.state||null);let c=new URL(a),d=c.searchParams.get("code"),e=c.searchParams.get("token"),f=c.searchParams.get("state"),g=c.searchParams.get("error");if(g)throw Error(c.searchParams.get("error_description")||g);if(!d&&!e)throw Error("xai"===b?"Paste the callback URL or copied xAI code":"kimchi"===b?"No Kimchi token found in URL":"No authorization code found in URL");await I(e||d,f)}catch(a){u(a.message),o("error")}},P=(0,e.useCallback)(()=>{"codex"===b?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===b?fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}):j.has(b)&&fetch(`/api/oauth/${b}/stop-proxy`,{method:"POST"}).catch(()=>{}),g()},[g,b]);if(!b||!c)return null;let Q="xai"===b,R="kimchi"===b,S=x?.verification_uri_complete||x?.verification_uri||"",T=Q?"Connect Grok Build OAuth":`Connect ${c.name}`,U=Q?"http://127.0.0.1:56121/callback?code=... or copied code":"trae"===b?"Cloud-IDE-JWT or http://127.0.0.1:.../callback?refreshToken=...":"windsurf"===b?"sk-ws-... key, Firebase JWT, or callback URL":"zed"===b?"http://127.0.0.1:.../?user_id=...&access_token=...":R?`${G.replace("code=...","token=...")} or copied token`:G;return(0,d.jsx)(h.aF,{isOpen:a,title:T,onClose:P,size:"lg",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===n||"input"===n)&&!v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{className:"text-sm",children:Q?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,d.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,d.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,d.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",Q?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,d.jsx)(h.$n,{variant:"secondary",icon:"auth_url"===E?"check":"content_copy",onClick:()=>F(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===b?"callback URL or copied code":"kimchi"===b?"callback URL or token":"callback URL"," here"]}),(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===b?"If xAI shows a code instead of redirecting, paste that code here.":"kimchi"===b?"After authorization, paste the callback URL (with token=…) or the raw Kimchi token.":"After authorization, copy the full URL from your browser."}),(0,d.jsx)(h.pd,{value:r,onChange:a=>s(a.target.value),placeholder:U,className:"font-mono text-xs"})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:O,fullWidth:!0,disabled:!r,children:"Connect"}),(0,d.jsx)(h.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===n&&v&&x&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"text-center py-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,d.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("code",{className:"flex-1 text-sm break-all",children:S}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"login_url"===E?"check":"content_copy",onClick:()=>F(S,"login_url"),disabled:!S}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(S,"_blank","noopener,noreferrer"),disabled:!S,children:"Open"})]})]}),x.user_code?(0,d.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,d.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:x.user_code}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"user_code"===E?"check":"content_copy",onClick:()=>F(x.user_code,"user_code")})]})]}):null]}),z&&(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===n&&(0,d.jsxs)("div",{className:"text-center py-6",children:[(0,d.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,d.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",c.name," account has been connected."]}),(0,d.jsx)(h.$n,{onClick:P,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,d.jsxs)("div",{className:"text-center py-6",children:[(0,d.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,d.jsx)("p",{className:"text-sm text-red-600 mb-4",children:t}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:N,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,d.jsx)(h.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}k.propTypes={isOpen:g().bool.isRequired,provider:g().string,providerInfo:g().shape({name:g().string}),onSuccess:g().func,onClose:g().func.isRequired,oauthMeta:g().object,idcConfig:g().shape({startUrl:g().string,region:g().string})}},79488:(a,b,c)=>{c.d(b,{default:()=>i});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412);function i({isOpen:a,onSuccess:b,onClose:c}){let[f,g]=(0,e.useState)(""),[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!1),p=async()=>{if(!f.trim())return void m("Please paste your cookie");k(!0),m(null);try{let a=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:f.trim()})}),c=await a.json();if(!a.ok)throw Error(c.error||"Authentication failed");o(!0),setTimeout(()=>{b?.(),q()},1500)}catch(a){m(a.message)}finally{k(!1)}},q=()=>{g(""),m(null),o(!1),c?.()};return(0,d.jsx)(h.aF,{isOpen:a,onClose:q,title:"iFlow Cookie Authentication",children:(0,d.jsx)("div",{className:"space-y-4",children:n?(0,d.jsxs)("div",{className:"text-center py-8",children:[(0,d.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,d.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,d.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,d.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,d.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,d.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,d.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,d.jsx)("li",{children:"Login to your account"}),(0,d.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,d.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,d.jsx)("li",{children:"Paste it below"})]})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,d.jsx)("textarea",{value:f,onChange:a=>g(a.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:j})]}),l&&(0,d.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,d.jsx)("p",{className:"text-sm text-error",children:l})}),(0,d.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:q,disabled:j,fullWidth:!0,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:p,loading:j,fullWidth:!0,children:"Authenticate"})]})]})})})}i.propTypes={isOpen:g().bool.isRequired,onSuccess:g().func,onClose:g().func}},83552:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(71404);function g({label:a,type:b="text",placeholder:c,value:h,onChange:i,error:j,hint:k,icon:l,disabled:m=!1,required:n=!1,className:o,inputClassName:p,...q}){let r=(0,e.useId)(),s=q.id||r,t=`${s}-error`,u=`${s}-hint`,v=[q["aria-describedby"],j&&t,k&&u].filter(Boolean).join(" ")||void 0;return(0,d.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-1.5",o),children:[a&&(0,d.jsxs)("label",{htmlFor:s,className:"text-sm font-medium text-text-main",children:[a,n&&(0,d.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,d.jsxs)("div",{className:"relative",children:[l&&(0,d.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,d.jsx)("input",{id:s,type:b,placeholder:c,value:h,onChange:i,disabled:m,required:n,"aria-invalid":!!j||void 0,"aria-describedby":v,className:(0,f.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",l&&"pl-10",j&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...q})]}),j&&(0,d.jsxs)("p",{id:t,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),j]}),k&&!j&&(0,d.jsx)("p",{id:u,className:"text-xs text-text-muted",children:k})]})}},85158:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(71404),f=c(99070);function g({currentPage:a,pageSize:b,totalItems:c,onPageChange:h,onPageSizeChange:i,className:j}){let k=Math.ceil(c/b),l=c>0?(a-1)*b+1:0,m=Math.min(a*b,c),n=(()=>{let b=[],c=Math.max(1,a-2),d=Math.min(k,c+5-1);d-c+1<5&&(c=Math.max(1,d-5+1));for(let a=c;a<=d;a++)b.push(a);return b})();return(0,d.jsxs)("div",{className:(0,e.cn)("flex flex-col sm:flex-row items-center justify-between gap-4 py-4 px-2",j),children:[c>0&&(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Showing ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:l})," to"," ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:m})," of"," ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:c})," results"]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[i&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-sm text-text-muted",children:"Rows:"}),(0,d.jsx)("select",{value:b,onChange:a=>i(Number(a.target.value)),className:(0,e.cn)("h-9 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","cursor-pointer"),style:{colorScheme:"auto"},children:[10,20,50].map(a=>(0,d.jsx)("option",{value:a,children:a},a))})]}),k>1&&(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(f.default,{variant:"outline",size:"sm",onClick:()=>h(a-1),disabled:1===a,className:"w-9 px-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_left"})}),n[0]>1&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.default,{variant:"ghost",size:"sm",onClick:()=>h(1),className:"w-9 px-0 hidden sm:inline-flex",children:"1"}),n[0]>2&&(0,d.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."})]}),n.map(b=>(0,d.jsx)(f.default,{variant:a===b?"primary":"ghost",size:"sm",onClick:()=>h(b),className:(0,e.cn)("w-9 px-0",a===b?"inline-flex":"hidden sm:inline-flex"),children:b},b)),n[n.length-1]<k&&(0,d.jsxs)(d.Fragment,{children:[n[n.length-1]<k-1&&(0,d.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."}),(0,d.jsx)(f.default,{variant:"ghost",size:"sm",onClick:()=>h(k),className:"w-9 px-0 hidden sm:inline-flex",children:k})]}),(0,d.jsx)(f.default,{variant:"outline",size:"sm",onClick:()=>h(a+1),disabled:a===k,className:"w-9 px-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})})]})]})]})}},85306:(a,b,c)=>{c.d(b,{default:()=>k});var d=c(48249),e=c(67484),f=c(19099),g=c(41371),h=c(42196),i=c(32456),j=c(77209);function k({children:a}){let[b,c]=(0,e.useState)(!1),l=(0,e.useRef)(null),m=(0,e.useRef)(null),n=(0,f.usePathname)(),o=(0,g.i)(a=>a.notifications),p=(0,g.i)(a=>a.removeNotification),q="/dashboard/playground"===n||"/dashboard/basic-chat"===n,r="/dashboard/terminal"===n,s=q||r;return(0,d.jsxs)("div",{className:"dashboard-shell relative isolate flex h-screen w-full overflow-hidden bg-bg",children:[(0,d.jsx)(j.A,{quiet:!0}),(0,d.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,d.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:o.map(a=>{var b;let c="success"===(b=a.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===b?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===b?{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,d.jsx)("div",{role:"error"===a.type?"alert":"status",className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${c.wrapper}`,children:(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px] leading-5",children:c.icon}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[a.title?(0,d.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:a.title}):null,(0,d.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:a.message})]}),a.dismissible?(0,d.jsx)("button",{type:"button",onClick:()=>p(a.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,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},a.id)})}),b&&(0,d.jsx)("button",{type:"button",className:"fixed inset-0 z-40 bg-black/30 backdrop-blur-[1px] lg:hidden",onClick:()=>c(!1),"aria-label":"Close dashboard navigation"}),(0,d.jsx)("div",{className:"hidden lg:flex",children:(0,d.jsx)(h.default,{})}),b&&(0,d.jsx)("div",{ref:l,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,d.jsx)(h.default,{onClose:()=>c(!1)})}),(0,d.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:[s?(0,d.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,d.jsx)("button",{ref:m,type:"button",onClick:()=>c(!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,d.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:r?"Terminal":"Playground"})]}):(0,d.jsx)(i.default,{menuButtonRef:m,onMenuClick:()=>c(!0)},n),(0,d.jsx)("div",{className:`dashboard-content-gutter flex-1 overflow-y-auto custom-scrollbar ${s?"":"px-3 py-4 sm:px-6 sm:py-7 lg:px-10 lg:py-8"} ${s?"flex flex-col overflow-hidden":""}`,children:(0,d.jsx)("div",{className:`${s?"flex-1 w-full h-full flex flex-col min-h-0":"w-full min-w-0 max-w-6xl mx-auto"}`,children:a})})]})]})}},91099:(a,b,c)=>{c.d(b,{default:()=>f});var d=c(48249),e=c(71404);function f({options:a=[],value:b,onChange:c,size:g="md",className:h,...i}){let j={sm:"h-9 text-xs sm:h-7",md:"h-10 text-sm sm:h-9",lg:"h-11 text-base"};return(0,d.jsx)("div",{role:"group",...i,className:(0,e.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",h),children:a.map(a=>(0,d.jsxs)("button",{type:"button","aria-pressed":b===a.value,onClick:()=>c(a.value),className:(0,e.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",j[g],b===a.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[a.icon&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px] mr-1.5",children:a.icon}),a.label]},a.value))})}},91809:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(17660);function g(){let[a,b]=(0,e.useState)([]),[c,g]=(0,e.useState)(!0),[h,i]=(0,e.useState)(!0);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,d.jsx)("div",{className:"flex items-center gap-2",children:(0,d.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,d.jsx)("span",{children:"Auto Refresh (3s)"}),(0,d.jsx)("div",{onClick:()=>i(!h),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${h?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,d.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${h?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,d.jsx)(f.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,d.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:c&&0===a.length?(0,d.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===a.length?(0,d.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,d.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,d.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,d.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,d.jsx)("tbody",{className:"divide-y divide-border/50",children:a.map((a,b)=>{let c=a.split(" | ");if(c.length<7)return null;let e=c[6],f=e.includes("PENDING"),g=e.includes("FAILED"),h=e.includes("OK");return(0,d.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${f?"bg-primary/5":""}`,children:[(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:c[0]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:c[1]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:c[2]})}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:c[3],children:c[3]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:c[4]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:c[5]}),(0,d.jsx)("td",{className:`px-3 py-1.5 font-bold ${h?"text-success":g?"text-error":"text-primary animate-pulse"}`,children:e})]},b)})})]})})}),(0,d.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},95145:(a,b,c)=>{c.d(b,{ConfirmModal:()=>k,default:()=>j});var d=c(48249),e=c(67484),f=c(74429),g=c(71404),h=c(99070);let i=()=>()=>{};function j({isOpen:a,onClose:b,title:c,children:h,footer:k,size:l="md",closeOnOverlay:m=!0,className:n}){let o=(0,e.useId)(),p=(0,e.useSyncExternalStore)(i,()=>!0,()=>!1),q=(0,e.useRef)(null);return((0,e.useRef)(null),(0,e.useRef)(b),a&&p)?(0,f.createPortal)((0,d.jsxs)("div",{className:"fixed inset-0 z-[1000] flex items-end justify-center p-0 sm:items-center sm:p-4",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in","aria-hidden":"true",onClick:m?b:void 0}),(0,d.jsxs)("div",{ref:q,role:"dialog","aria-modal":"true","aria-labelledby":c?o:void 0,"aria-label":c?void 0:"Dialog",tabIndex:-1,className:(0,g.cn)("relative w-full max-h-[calc(100dvh-2rem)] overflow-hidden bg-surface","border border-border-subtle","rounded-t-[18px] shadow-[var(--shadow-elev)] sm:rounded-[14px]","fade-in motion-reduce:animate-none",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[l],n),children:[(0,d.jsxs)("div",{className:"flex min-h-14 items-center justify-between gap-3 border-b border-border-subtle px-4 py-2 sm:px-3",children:[(0,d.jsx)("div",{className:"flex min-w-0 items-center",children:c&&(0,d.jsx)("h2",{id:o,className:"text-lg font-semibold text-text-main",children:c})}),(0,d.jsx)("button",{onClick:b,"aria-label":"Close",className:"grid size-11 shrink-0 place-items-center rounded-[10px] text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 motion-reduce:transition-none",children:(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,d.jsx)("div",{className:"dashboard-modal-body max-h-[calc(100dvh-8rem)] overflow-y-auto p-4 custom-scrollbar sm:max-h-[calc(85vh-100px)] sm:p-6",children:h}),k&&(0,d.jsx)("div",{className:"dashboard-modal-footer flex flex-col-reverse items-stretch justify-end gap-2 border-t border-border-subtle p-4 sm:flex-row sm:items-center sm:gap-3 sm:p-6",children:k})]})]}),document.body):null}function k({isOpen:a,onClose:b,onConfirm:c,title:e="Confirm",message:f,confirmText:g="Confirm",cancelText:i="Cancel",variant:l="danger",loading:m=!1}){return(0,d.jsx)(j,{isOpen:a,onClose:b,title:e,size:"sm",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.default,{variant:"ghost",onClick:b,disabled:m,children:i}),(0,d.jsx)(h.default,{variant:l,onClick:c,loading:m,children:g})]}),children:(0,d.jsx)("p",{className:"text-text-muted",children:f})})}},95514:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(71404);function g({checked:a=!1,onChange:b,label:c,description:h,disabled:i=!1,size:j="md",className:k,busy:l=!1,touchTarget:m=!1,...n}){let o=(0,e.useId)(),p=(0,e.useId)(),q={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}},r=()=>{i||l||!b||b(!a)},s=(0,d.jsx)("span",{className:(0,f.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out motion-reduce:transition-none",a?q[j].translate:"translate-x-0.5",q[j].thumb,"mt-0.5")});return(0,d.jsxs)("div",{className:(0,f.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",k),children:[(0,d.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-busy":l||void 0,"data-state":a?"on":"off","aria-labelledby":c?o:void 0,"aria-describedby":h?p:void 0,"aria-label":c?void 0:n["aria-label"],disabled:i||l,onClick:r,...n,className:(0,f.cn)("relative inline-flex shrink-0 cursor-pointer","transition-colors duration-200 ease-in-out motion-reduce:transition-none","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg",m?"size-11 items-center justify-center rounded-xl sm:size-8 sm:rounded-lg":"rounded-full",!m&&(a?"bg-brand-500":"bg-surface-3"),!m&&q[j].track,i&&"cursor-not-allowed"),children:m?(0,d.jsx)("span",{className:(0,f.cn)("relative inline-flex shrink-0 rounded-full",a?"bg-brand-500":"bg-surface-3",q[j].track),children:s}):s}),(c||h)&&(0,d.jsxs)("div",{className:"flex flex-col",children:[c&&(0,d.jsx)("label",{id:o,onClick:r,className:"text-sm font-medium text-text-main cursor-pointer",children:c}),h&&(0,d.jsx)("span",{id:p,className:"text-xs text-text-muted",children:h})]})]})}},99070:(a,b,c)=>{c.d(b,{default:()=>h});var d=c(48249),e=c(71404);let f={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm dark:bg-brand-600 dark:hover:bg-brand-700 disabled:bg-surface-3 disabled:text-text-muted dark:disabled:bg-surface-3",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},g={sm:"h-10 px-3 text-xs rounded-[8px] sm:h-7",md:"h-11 px-4 text-sm rounded-[10px] sm:h-9",lg:"h-12 px-6 text-sm rounded-[10px] sm:h-11"};function h({children:a,variant:b="primary",size:c="md",icon:i,iconRight:j,disabled:k=!1,loading:l=!1,fullWidth:m=!1,className:n,...o}){return(0,d.jsxs)("button",{className:(0,e.cn)("relative inline-flex items-center justify-center font-semibold transition-[background-color,border-color,color,box-shadow,transform] duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg motion-reduce:transition-none",f[b],g[c],m&&"w-full",n),disabled:k||l,"aria-busy":l||void 0,...o,children:[(0,d.jsx)("span",{className:"button-content inline-grid items-center justify-center",children:(0,d.jsxs)("span",{className:(0,e.cn)("col-start-1 row-start-1 inline-flex items-center justify-center gap-2",l&&"invisible"),children:[i&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:i}),a,j&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:j})]})}),l&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined absolute animate-spin text-[18px] motion-reduce:animate-none",children:"progress_activity"})]})}}};
7
+ `,children:(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[C.includes(a.value)&&!c&&(0,d.jsx)("span",{className:"material-symbols-outlined leading-none",style:{fontSize:"10px"},children:"check"}),c?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[11px]",children:"edit"}),a.name]}):a.isCustom?(0,d.jsxs)(d.Fragment,{children:[a.name,(0,d.jsx)("span",{className:"text-[9px] opacity-60 font-normal",children:"custom"})]}):a.name,!c&&(0,d.jsx)(s.A,{caps:G(a.value),size:12,colorOverride:b||C.includes(a.value)?"text-white":void 0})]})},a.value)})})]},a)),0===Object.keys(aa).length&&0===_.length&&(0,d.jsxs)("div",{className:"text-center py-4 text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-2xl mb-1 block",children:"search_off"}),(0,d.jsx)("p",{className:"text-xs",children:"No models found"})]})]})]})}function y(a){return a.isOpen?(0,d.jsx)(x,{...a}):null}y.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onSelect:g().func.isRequired,onDeselect:g().func,onSelectBatch:g().func,onDeselectBatch:g().func,selectedModel:g().string,activeProviders:g().arrayOf(g().shape({provider:g().string.isRequired})),title:g().string,modelAliases:g().object,kindFilter:g().string,addedModelValues:g().arrayOf(g().string),closeOnSelect:g().bool,includeCombos:g().bool,capFilter:g().string}},67088:(a,b,c)=>{c.d(b,{F:()=>e});var d=c(67484);function e(a){let[b,c]=(0,d.useState)([]);return a?b:[]}},67738:(a,b,c)=>{c.d(b,{default:()=>i});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412);function i({isOpen:a,onClose:b,onCreated:c,onSaved:f,node:g}){let j=!!g,[k,l]=(0,e.useState)({name:"",prefix:"",baseUrl:"https://api.openai.com/v1"}),[m,n]=(0,e.useState)(!1),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null),w=async()=>{if(k.name.trim()&&k.prefix.trim()&&k.baseUrl.trim()){n(!0);try{let a=j?`/api/provider-nodes/${g.id}`:"/api/provider-nodes",b={name:k.name,prefix:k.prefix,baseUrl:k.baseUrl};j||(b.type="custom-embedding");let d=await fetch(a,{method:j?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),e=await d.json();d.ok&&(j?f?.(e.node):c?.(e.node))}catch(a){console.log("Error saving custom embedding node:",a)}finally{n(!1)}}},x=async()=>{t(!0);try{let a=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:k.baseUrl,apiKey:o,type:"custom-embedding",modelId:q.trim()||void 0})}),b=await a.json();v(b)}catch{v({valid:!1,error:"Network error"})}finally{t(!1)}};return(0,d.jsx)(h.aF,{isOpen:a,title:j?"Edit Custom Embedding":"Add Custom Embedding",onClose:b,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsx)(h.pd,{label:"Name",value:k.name,onChange:a=>l({...k,name:a.target.value}),placeholder:"Voyage AI",hint:"Required. A friendly label for this embedding provider."}),(0,d.jsx)(h.pd,{label:"Prefix",value:k.prefix,onChange:a=>l({...k,prefix:a.target.value}),placeholder:"voyage",hint:"Required. Used as the provider prefix for model IDs (e.g. voyage/voyage-3)."}),(0,d.jsx)(h.pd,{label:"Base URL",value:k.baseUrl,onChange:a=>l({...k,baseUrl:a.target.value}),placeholder:"https://api.voyageai.com/v1",hint:"Most embedding APIs are OpenAI-compatible: Voyage, Cohere, Jina, Mistral, Together..."}),(0,d.jsx)(h.pd,{label:"API Key (for Check)",type:"password",value:o,onChange:a=>p(a.target.value)}),(0,d.jsx)(h.pd,{label:"Model ID (for Check)",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",hint:"Required for validation. Will send a test embeddings request."}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(h.$n,{onClick:x,disabled:!o||!q.trim()||s||!k.baseUrl.trim(),variant:"secondary",children:s?"Checking...":"Check"}),(()=>{if(!u)return null;let{valid:a,error:b,dimensions:c}=u;return a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.Ex,{variant:"success",children:"Valid"}),c&&(0,d.jsxs)("span",{className:"text-sm text-text-muted",children:[c," dims"]})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)(h.Ex,{variant:"error",children:"Invalid"}),b&&(0,d.jsx)("span",{className:"text-sm text-red-500",children:b})]})})()]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:w,fullWidth:!0,disabled:!k.name.trim()||!k.prefix.trim()||!k.baseUrl.trim()||m,children:m?j?"Saving...":"Creating...":j?"Save":"Create"}),(0,d.jsx)(h.$n,{onClick:b,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}i.propTypes={isOpen:g().bool.isRequired,onClose:g().func.isRequired,onCreated:g().func,onSaved:g().func,node:g().shape({id:g().string,name:g().string,prefix:g().string,baseUrl:g().string})}},71404:(a,b,c)=>{c.d(b,{cn:()=>d});function d(...a){return a.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}},72738:(a,b,c)=>{c.d(b,{A:()=>h});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f);function h({src:a,alt:b,size:c=32,className:f="",fallbackText:g="?",fallbackColor:i,loading:j="lazy",decoding:k="async"}){let[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(a),[p,q]=(0,e.useState)(a);return(p!==a&&(q(a),m(!1),o(a)),!n||l)?(0,d.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${f}`.trim(),style:{width:c,height:c,color:i,fontSize:Math.max(10,Math.floor(.38*c))},children:g}):(0,d.jsx)("img",{src:n,alt:b,width:c,height:c,className:f,loading:j,decoding:k,onError:()=>{if("string"==typeof n&&/\/providers\/[^/]+\.png$/.test(n)){let a=n.slice(n.lastIndexOf("/")+1,-4);o(`/provider-icons/${encodeURIComponent(a)}`);return}m(!0)}})}h.propTypes={src:g().string,alt:g().string,size:g().number,className:g().string,fallbackText:g().string,fallbackColor:g().string,loading:g().oneOf(["eager","lazy"]),decoding:g().oneOf(["async","auto","sync"])}},74016:(a,b,c)=>{function d(a,b,c){let d=c.height-a.bottom,e=d<(b+1)*34+8&&a.top>d;return{position:"fixed",right:c.width-a.right,...e?{bottom:c.height-a.top+4,maxHeight:Math.max(a.top-8,120)}:{top:a.bottom+4,maxHeight:Math.max(d-8,120)}}}function e(a,b,c){let d=a.left+a.width/2,e=a.top+a.height/2;return"bottom"===b?{position:"fixed",top:a.bottom+6,left:d,transform:"translateX(-50%)"}:"left"===b?{position:"fixed",right:c.width-a.left+6,top:e,transform:"translateY(-50%)"}:"right"===b?{position:"fixed",left:a.right+6,top:e,transform:"translateY(-50%)"}:{position:"fixed",bottom:c.height-a.top+6,left:d,transform:"translateX(-50%)"}}c.d(b,{Z:()=>e,x:()=>d})},74812:(a,b,c)=>{c.d(b,{CardSkeleton:()=>i,DataListSkeleton:()=>j,PageLoading:()=>g,Skeleton:()=>h,Spinner:()=>f,default:()=>k});var d=c(48249),e=c(71404);function f({size:a="md",className:b}){return(0,d.jsx)("span",{className:(0,e.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"}[a],b),children:"progress_activity"})}function g({message:a="Loading..."}){return(0,d.jsxs)("div",{role:"status","aria-live":"polite","aria-label":a,className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-bg",children:[(0,d.jsx)(f,{size:"xl"}),(0,d.jsx)("p",{className:"mt-4 text-text-muted",children:a})]})}function h({className:a,...b}){return(0,d.jsx)("div",{className:(0,e.cn)("animate-pulse rounded-[10px] bg-surface-2 motion-reduce:animate-none",a),...b})}function i({className:a}){return(0,d.jsxs)("div",{"aria-hidden":"true",className:(0,e.cn)("rounded-[14px] border border-border-subtle bg-surface p-6 shadow-[var(--shadow-soft)]",a),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)(h,{className:"h-4 w-24"}),(0,d.jsx)(h,{className:"size-10 rounded-[10px]"})]}),(0,d.jsx)(h,{className:"h-8 w-16 mb-2"}),(0,d.jsx)(h,{className:"h-3 w-20"})]})}function j({rows:a=4,label:b="Loading data",className:c}){return(0,d.jsx)("div",{role:"status","aria-label":b,className:(0,e.cn)("divide-y divide-border-subtle",c),children:Array.from({length:a},(a,b)=>(0,d.jsxs)("div",{"aria-hidden":"true",className:"grid grid-cols-[minmax(6rem,0.7fr)_minmax(0,1.3fr)] gap-4 py-4",children:[(0,d.jsx)(h,{className:"h-4 w-24 max-w-full"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(h,{className:"h-4 w-2/3"}),(0,d.jsx)(h,{className:"h-3 w-1/3"})]})]},b))})}function k({type:a="spinner",...b}){switch(a){case"page":return(0,d.jsx)(g,{...b});case"skeleton":return(0,d.jsx)(h,{...b});case"card":return(0,d.jsx)(i,{...b});default:return(0,d.jsx)(f,{...b})}}},74875:(a,b,c)=>{c.d(b,{BU:()=>m,G9:()=>h,d4:()=>j,gJ:()=>d,i2:()=>k,io:()=>l});let d=[{id:"all",label:"All"},{id:"active",label:"Active",keys:["active"]},{id:"errors",label:"Errors",keys:["connection_error","auth_error","quota_exhausted","rate_limited","banned","cooldown","unknown"]},{id:"connection",label:"Connection",keys:["connection_error"]},{id:"auth",label:"Auth",keys:["auth_error"]},{id:"limit",label:"Limit",keys:["rate_limited","cooldown"]},{id:"exhausted",label:"Exhausted",keys:["quota_exhausted"]},{id:"banned",label:"Banned",keys:["banned"]},{id:"disabled",label:"Disabled",keys:["disabled"]}],e={active:{label:"active",severity:"success",terminal:!1},disabled:{label:"disabled",severity:"default",terminal:!1},connection_error:{label:"connection error",severity:"error",terminal:!1},auth_error:{label:"auth error",severity:"error",terminal:!0},quota_exhausted:{label:"exhausted",severity:"error",terminal:!0},rate_limited:{label:"rate limited",severity:"warning",terminal:!1},banned:{label:"banned",severity:"error",terminal:!0},cooldown:{label:"cooldown",severity:"warning",terminal:!1},unknown:{label:"unknown",severity:"default",terminal:!1}},f={policy_suspended:"banned",tos_violation:"banned",account_validation_required:"auth_error",credential_rejected:"auth_error",reauth_required:"auth_error",authentication:"auth_error",entitlement_or_quota:"quota_exhausted",rate_limited:"rate_limited",permission_denied:"auth_error",upstream_transient:"connection_error"};function g(a){if(!a)return"";if("string"==typeof a)return a.toLowerCase();try{return JSON.stringify(a).toLowerCase()}catch{return String(a).toLowerCase()}}function h(a={},b=Date.now()){let c=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>new Date(a).getTime()).filter(a=>Number.isFinite(a)&&a>b);return c.length>0?new Date(Math.min(...c)).toISOString():null}function i(a,b=""){let c=e[a]||e.unknown;return{key:a,...c,reason:b}}function j(a={}){var b;let c=(b=a).quarantinedAt?i(f[g(b.failureClass)]||"unknown",b.quarantineReason||b.lastError||"Connection is quarantined"):null;if(c)return c;if(!1===a.isActive)return i("disabled","Connection is disabled");if(function(a={}){return null!==h(a)}(a))return i("cooldown","Model cooldown is active");if(function(a){if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>Date.now()}(a.rateLimitedUntil))return i("rate_limited","Rate limit cooldown is active");if(function(a={},b=Date.now()){if("429"!==String(a.errorCode??""))return!1;let c=Date.parse(a.modelLockReason?.resetsAt);return Number.isFinite(c)&&c<=b}(a))return i("active","");let d=g(a.testStatus||a.status),e=g(a.lastErrorType||a.errorType),k=g(a.errorCode||a.statusCode),l=g(a.lastError||a.error),m=`${d} ${e} ${k} ${l}`.trim();return!m||["active","success","ok"].includes(d)?i("active",""):m.includes("ban")||m.includes("suspend")||m.includes("restricted")?i("banned",a.lastError||"Account appears restricted"):m.includes("exhaust")||m.includes("quota exceeded")||m.includes("insufficient_quota")||m.includes("payment required")||"402"===k?i("quota_exhausted",a.lastError||"Quota exhausted"):e.includes("rate_limited")||m.includes("rate limit")||m.includes("too many requests")||"429"===k?i("rate_limited",a.lastError||"Rate limited"):e.includes("auth")||e.includes("token")||m.includes("unauthorized")||m.includes("invalid api key")||m.includes("token invalid")||m.includes("token expired")||m.includes("revoked")||"401"===k||"403"===k?i("auth_error",a.lastError||"Authentication failed"):e.includes("network")||m.includes("network")||m.includes("timeout")||m.includes("fetch failed")||m.includes("econn")||m.includes("dns")||m.includes("proxy")?i("connection_error",a.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(d)?i("connection_error",a.lastError||a.testStatus||"Connection failed"):i("unknown",a.lastError||a.testStatus||"")}function k(a,b){if(!b||"all"===b)return!0;let c=d.find(a=>a.id===b);return!c||c.keys.includes(j(a).key)}function l(a){let b={};for(let c of a||[]){if(!c?.provider)continue;let a=b[c.provider]||{total:0,active:0};a.total+=1,!1!==c.isActive&&(a.active+=1),b[c.provider]=a}let c=new Set;for(let[a,d]of Object.entries(b))d.total>0&&0===d.active&&c.add(a);return c}function m(a){return a?.severity==="success"?"success":a?.severity==="error"?"error":"default"}},75171:(a,b,c)=>{c.d(b,{default:()=>h});var d=c(48249),e=c(71404);let f={default:"bg-surface-2 text-text-muted",primary:"bg-brand-500/10 text-brand-600 dark:text-brand-300",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},g={sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-1 text-xs",lg:"px-3 py-1.5 text-sm"};function h({children:a,variant:b="default",size:c="md",dot:i=!1,icon:j,className:k,...l}){return(0,d.jsxs)("span",{className:(0,e.cn)("inline-flex max-w-full items-center gap-1.5 rounded-full font-semibold",f[b],g[c],k),...l,children:[i&&(0,d.jsx)("span",{className:(0,e.cn)("size-1.5 rounded-full","success"===b&&"bg-green-500","warning"===b&&"bg-yellow-500","error"===b&&"bg-red-500","info"===b&&"bg-blue-500","primary"===b&&"bg-brand-500","default"===b&&"bg-gray-500"),"aria-hidden":"true"}),j&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:j}),(0,d.jsx)("span",{className:"min-w-0 truncate",children:a})]})}},77209:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(48249),e=c(49885);function f({quiet:a=!1}){return(0,d.jsxs)("div",{className:a?"shell-atmosphere shell-atmosphere-quiet":"shell-atmosphere","aria-hidden":"true",children:[(0,d.jsx)("div",{className:"shell-grid"}),(0,d.jsxs)("div",{className:"shell-ripples",children:[(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{}),(0,d.jsx)("span",{})]})]})}f.propTypes={quiet:(c.n(e))().bool}},79346:(a,b,c)=>{c.d(b,{default:()=>k});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412),i=c(50377);let j=new Set(["trae","windsurf","zed"]);function k({isOpen:a,provider:b,providerInfo:c,onSuccess:f,onClose:g,oauthMeta:l,idcConfig:m}){let[n,o]=(0,e.useState)("waiting"),[p,q]=(0,e.useState)(null),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(!1),B=(0,e.useRef)(null),C=(0,e.useRef)(0),D=(0,e.useRef)(f);(0,e.useRef)(null);let{copied:E,copy:F}=(0,i.C)(),[G,H]=(0,e.useState)("/callback?code=...");(0,e.useRef)(!1);let I=(0,e.useCallback)(async(a,c)=>{let d="trae"===b||"windsurf"===b;if(p||d)try{let d=await fetch(`/api/oauth/${b}/exchange`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,redirectUri:p?.redirectUri,codeVerifier:p?.codeVerifier,state:c,...p?.systemId?{systemId:p.systemId}:{},...l?{meta:l}:{}})}),e=await d.json();if(!d.ok)throw Error(e.error);o("success"),D.current?.()}catch(a){u(a.message),o("error")}},[p,b,l]),J=(0,e.useCallback)(a=>{j.has(a)&&fetch(`/api/oauth/${a}/stop-proxy`,{method:"POST"}).catch(()=>{})},[]),K=(0,e.useCallback)(async a=>{let b=C.current,c=await fetch(`/api/oauth/${a}/start-proxy`),d=await c.json();if(!c.ok||!d.success||!d.callbackUrl)throw Error(d.reason||d.error||`Failed to start ${a} callback server`);if(C.current!==b)return void J(a);let e=new URL(`/api/oauth/${a}/authorize`,window.location.origin);e.searchParams.set("redirect_uri",d.callbackUrl);let f=await fetch(e),g=await f.json();if(!f.ok)throw J(a),Error(g.error||"Failed to build the sign-in URL");if(C.current!==b)return void J(a);let h={state:g.state};g.codeVerifier&&(h.codeVerifier=g.codeVerifier),g.systemId&&(h.systemId=g.systemId);let i=await fetch(`/api/oauth/${a}/register-session`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)}),j=await i.json().catch(()=>null);if(!i.ok||j?.success===!1)throw J(a),Error(j?.error||"Failed to register login session; please retry");C.current===b&&(q({...g,redirectUri:d.callbackUrl,proxyProvider:a}),o("waiting"),B.current=window.open(g.authUrl,"oauth_popup","width=600,height=700"),B.current||o("input"))},[J]),L=(0,e.useCallback)(async a=>{if(p?.state)try{let b=await fetch("/api/oauth/xai/manual-code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,state:p.state})}),c=await b.json();if(!b.ok)throw Error(c.error);o("success"),D.current?.()}catch(a){u(a.message),o("error")}},[p]),M=(0,e.useCallback)(async(a,c,d,e,f)=>{let g=++C.current,h=()=>C.current===g;A(!0);let i=Date.now()+(Number.isFinite(f)&&f>0?f:12e4);for(;Date.now()<i;){if(!h())return void console.log("[OAuthModal] Polling aborted");if(await new Promise(a=>setTimeout(a,1e3*d)),!h())return void console.log("[OAuthModal] Polling aborted after sleep");try{let f=await fetch(`/api/oauth/${b}/poll`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceCode:a,codeVerifier:c,extraData:e})}),g=await f.json();if(!h())return;if(g.success){C.current++,o("success"),A(!1),D.current?.();return}if("expired_token"===g.error||"access_denied"===g.error||g.fatal)throw Error(g.errorDescription||g.error);"slow_down"===g.error&&(d=Math.min(d+5,30))}catch(a){if(!h())return;u(a.message),o("error"),A(!1);return}}h()&&(u("Authorization timeout"),o("error"),A(!1))},[b]),N=(0,e.useCallback)(async()=>{if(b)try{let a;u(null);let c=window.location.hostname.toLowerCase(),d="localhost"===c||"127.0.0.1"===c||"::1"===c,e="codex"===b&&!d;if(["github","qwen","kiro","kimi","kimi-coding","kilocode","codebuddy","codebuddy-cn","codebuddy-intl","qoder","qoder-cn","grok-cli","muse","glm","minimax-code","minimax-code-global","nous",...e?["codex"]:[]].includes(b)){w(!0),o("waiting");let a=new URL(`/api/oauth/${b}/device-code`,window.location.origin);"kiro"===b&&m?.startUrl&&(a.searchParams.set("start_url",m.startUrl),m.region&&a.searchParams.set("region",m.region),a.searchParams.set("auth_method","idc"));let c=await fetch(a.toString()),d=await c.json();if(!c.ok)throw Error(d.error);y(d);let e=d.verification_uri_complete||d.verification_uri;e&&window.open(e,"_blank","noopener,noreferrer");let f="codex"===b?{_codexUserCode:d.user_code}:"kiro"===b?{_clientId:d._clientId,_clientSecret:d._clientSecret,_region:d._region,_authMethod:d._authMethod,_startUrl:d._startUrl}:"glm"===b?{_zcodePollToken:d._zcodePollToken}:"qoder"===b||"qoder-cn"===b?{_qoderNonce:d._qoderNonce,_qoderMachineId:d._qoderMachineId,_qoderVerifier:d.codeVerifier}:"kimi"===b||"kimi-coding"===b?{_kimiDeviceId:d._kimiDeviceId}:"minimax-code"===b||"minimax-code-global"===b?{_minimaxPollByUser:d._minimaxPollByUser}:null;M(d.device_code,d.codeVerifier,d.interval||5,f,Number.isFinite(d.expires_in)&&d.expires_in>0?1e3*d.expires_in:void 0);return}if(j.has(b))return void await K(b);let f=window.location.port||("https:"===window.location.protocol?"443":"80");a="codex"===b?"http://localhost:1455/auth/callback":"xai"===b?"http://127.0.0.1:56121/callback":`http://localhost:${f}/callback`;let g=new URL(`/api/oauth/${b}/authorize`,window.location.origin);g.searchParams.set("redirect_uri",a),l&&Object.entries(l).forEach(([a,b])=>{b&&g.searchParams.set(a,b)});let h=await fetch(g.toString()),i=await h.json();if(!h.ok)throw Error(i.error);let k=!1,n=!1;if("codex"===b)try{let b=await fetch("/api/oauth/codex/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:f,state:i.state,codeVerifier:i.codeVerifier,redirectUri:a})}),c=await b.json();k=c.success,n=!!c.serverSide}catch{k=!1}let p=!1,r=!1;if("xai"===b)try{let b=await fetch("/api/oauth/xai/start-proxy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({appPort:f,state:i.state,codeVerifier:i.codeVerifier,redirectUri:a})}),c=await b.json();if(p=c.success,r=!!c.serverSide,!p&&"port_busy"===c.reason)throw Error("Port 56121 in use; close the conflicting process and retry")}catch(a){if(a?.message)throw a;p=!1}q({...i,redirectUri:a,codexServerSide:n,xaiServerSide:r}),"codex"===b&&k||"xai"===b&&p||d&&"codex"!==b&&"xai"!==b?(o("waiting"),B.current=window.open(i.authUrl,"oauth_popup","width=600,height=700"),B.current||o("input")):(o("input"),window.open(i.authUrl,"_blank","noopener,noreferrer"))}catch(a){u(a.message),o("error")}},[b,M,K,l,m]),O=async()=>{try{u(null);let a=r.trim();if(a.startsWith("eyJ")&&a.includes("."))return void await I(a,null);if("xai"===b&&a&&!a.includes("://")&&!a.includes("?")&&!a.includes("code="))return void await L(a);if("kimchi"===b&&a&&!a.includes("://")&&!a.includes("?"))return void await I(a,null);if("trae"===b||"windsurf"===b||"zed"===b&&(a.includes("user_id=")||a.includes("access_token=")))return void await I(a,p?.state||null);let c=new URL(a),d=c.searchParams.get("code"),e=c.searchParams.get("token"),f=c.searchParams.get("state"),g=c.searchParams.get("error");if(g)throw Error(c.searchParams.get("error_description")||g);if(!d&&!e)throw Error("xai"===b?"Paste the callback URL or copied xAI code":"kimchi"===b?"No Kimchi token found in URL":"No authorization code found in URL");await I(e||d,f)}catch(a){u(a.message),o("error")}},P=(0,e.useCallback)(()=>{"codex"===b?fetch("/api/oauth/codex/stop-proxy",{method:"POST"}).catch(()=>{}):"xai"===b?fetch("/api/oauth/xai/stop-proxy",{method:"POST"}).catch(()=>{}):j.has(b)&&fetch(`/api/oauth/${b}/stop-proxy`,{method:"POST"}).catch(()=>{}),g()},[g,b]);if(!b||!c)return null;let Q="xai"===b,R="kimchi"===b,S=x?.verification_uri_complete||x?.verification_uri||"",T=Q?"Connect Grok Build OAuth":`Connect ${c.name}`,U=Q?"http://127.0.0.1:56121/callback?code=... or copied code":"trae"===b?"Cloud-IDE-JWT or http://127.0.0.1:.../callback?refreshToken=...":"windsurf"===b?"sk-ws-... key, Firebase JWT, or callback URL":"zed"===b?"http://127.0.0.1:.../?user_id=...&access_token=...":R?`${G.replace("code=...","token=...")} or copied token`:G;return(0,d.jsx)(h.aF,{isOpen:a,title:T,onClose:P,size:"lg",children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[("waiting"===n||"input"===n)&&!v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border border-border rounded-lg bg-sidebar/50",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-primary animate-spin",children:"progress_activity"}),(0,d.jsx)("span",{className:"text-sm",children:Q?"Waiting for Grok Build OAuth…":"Waiting for popup authorization…"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 my-1",children:[(0,d.jsx)("div",{className:"flex-1 h-px bg-border"}),(0,d.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wider",children:"Or paste callback URL manually"}),(0,d.jsx)("div",{className:"flex-1 h-px bg-border"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 1: Open this ",Q?"Grok Build OAuth URL":"URL"," in your browser"]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.pd,{value:p?.authUrl||"",readOnly:!0,className:"flex-1 font-mono text-xs"}),(0,d.jsx)(h.$n,{variant:"secondary",icon:"auth_url"===E?"check":"content_copy",onClick:()=>F(p?.authUrl,"auth_url"),disabled:!p?.authUrl,children:"Copy"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"text-sm font-medium mb-2",children:["Step 2: Paste the ","xai"===b?"callback URL or copied code":"kimchi"===b?"callback URL or token":"callback URL"," here"]}),(0,d.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"xai"===b?"If xAI shows a code instead of redirecting, paste that code here.":"kimchi"===b?"After authorization, paste the callback URL (with token=…) or the raw Kimchi token.":"After authorization, copy the full URL from your browser."}),(0,d.jsx)(h.pd,{value:r,onChange:a=>s(a.target.value),placeholder:U,className:"font-mono text-xs"})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:O,fullWidth:!0,disabled:!r,children:"Connect"}),(0,d.jsx)(h.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"waiting"===n&&v&&x&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"text-center py-4",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Visit the login URL below and authorize:"}),(0,d.jsxs)("div",{className:"bg-sidebar p-4 rounded-lg mb-4",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Login URL"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("code",{className:"flex-1 text-sm break-all",children:S}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"login_url"===E?"check":"content_copy",onClick:()=>F(S,"login_url"),disabled:!S}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"open_in_new",onClick:()=>window.open(S,"_blank","noopener,noreferrer"),disabled:!S,children:"Open"})]})]}),x.user_code?(0,d.jsxs)("div",{className:"bg-primary/10 p-4 rounded-lg",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted mb-1",children:"Your Code"}),(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,d.jsx)("p",{className:"text-2xl font-mono font-bold text-primary",children:x.user_code}),(0,d.jsx)(h.$n,{size:"sm",variant:"ghost",icon:"user_code"===E?"check":"content_copy",onClick:()=>F(x.user_code,"user_code")})]})]}):null]}),z&&(0,d.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),"Waiting for authorization..."]})]}),"success"===n&&(0,d.jsxs)("div",{className:"text-center py-6",children:[(0,d.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-green-600",children:"check_circle"})}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connected Successfully!"}),(0,d.jsxs)("p",{className:"text-sm text-text-muted mb-4",children:["Your ",c.name," account has been connected."]}),(0,d.jsx)(h.$n,{onClick:P,fullWidth:!0,children:"Done"})]}),"error"===n&&(0,d.jsxs)("div",{className:"text-center py-6",children:[(0,d.jsx)("div",{className:"size-16 mx-auto mb-4 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-3xl text-red-600",children:"error"})}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Connection Failed"}),(0,d.jsx)("p",{className:"text-sm text-red-600 mb-4",children:t}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(h.$n,{onClick:N,variant:"secondary",fullWidth:!0,children:"Try Again"}),(0,d.jsx)(h.$n,{onClick:P,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})})}k.propTypes={isOpen:g().bool.isRequired,provider:g().string,providerInfo:g().shape({name:g().string}),onSuccess:g().func,onClose:g().func.isRequired,oauthMeta:g().object,idcConfig:g().shape({startUrl:g().string,region:g().string})}},79488:(a,b,c)=>{c.d(b,{default:()=>i});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(50412);function i({isOpen:a,onSuccess:b,onClose:c}){let[f,g]=(0,e.useState)(""),[j,k]=(0,e.useState)(!1),[l,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!1),p=async()=>{if(!f.trim())return void m("Please paste your cookie");k(!0),m(null);try{let a=await fetch("/api/oauth/iflow/cookie",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cookie:f.trim()})}),c=await a.json();if(!a.ok)throw Error(c.error||"Authentication failed");o(!0),setTimeout(()=>{b?.(),q()},1500)}catch(a){m(a.message)}finally{k(!1)}},q=()=>{g(""),m(null),o(!1),c?.()};return(0,d.jsx)(h.aF,{isOpen:a,onClose:q,title:"iFlow Cookie Authentication",children:(0,d.jsx)("div",{className:"space-y-4",children:n?(0,d.jsxs)("div",{className:"text-center py-8",children:[(0,d.jsx)("div",{className:"text-6xl mb-4",children:"✅"}),(0,d.jsx)("p",{className:"text-lg font-medium text-text-primary",children:"Authentication Successful!"}),(0,d.jsx)("p",{className:"text-sm text-text-muted mt-2",children:"Fresh API key obtained"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["To get a fresh API key, paste your browser cookie from"," ",(0,d.jsx)("a",{href:"https://platform.iflow.cn",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"platform.iflow.cn"})]}),(0,d.jsxs)("div",{className:"bg-surface-secondary p-3 rounded-lg text-xs space-y-2",children:[(0,d.jsx)("p",{className:"font-medium text-text-primary",children:"How to get cookie:"}),(0,d.jsxs)("ol",{className:"list-decimal list-inside space-y-1 text-text-muted",children:[(0,d.jsx)("li",{children:"Open platform.iflow.cn in your browser"}),(0,d.jsx)("li",{children:"Login to your account"}),(0,d.jsx)("li",{children:"Open DevTools (F12) → Application/Storage → Cookies"}),(0,d.jsx)("li",{children:"Copy the entire cookie string (must include BXAuth)"}),(0,d.jsx)("li",{children:"Paste it below"})]})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("label",{className:"block text-sm font-medium text-text-primary",children:"Cookie String"}),(0,d.jsx)("textarea",{value:f,onChange:a=>g(a.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:j})]}),l&&(0,d.jsx)("div",{className:"p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,d.jsx)("p",{className:"text-sm text-error",children:l})}),(0,d.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,d.jsx)(h.$n,{variant:"secondary",onClick:q,disabled:j,fullWidth:!0,children:"Cancel"}),(0,d.jsx)(h.$n,{onClick:p,loading:j,fullWidth:!0,children:"Authenticate"})]})]})})})}i.propTypes={isOpen:g().bool.isRequired,onSuccess:g().func,onClose:g().func}},83552:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(71404);function g({label:a,type:b="text",placeholder:c,value:h,onChange:i,error:j,hint:k,icon:l,disabled:m=!1,required:n=!1,className:o,inputClassName:p,...q}){let r=(0,e.useId)(),s=q.id||r,t=`${s}-error`,u=`${s}-hint`,v=[q["aria-describedby"],j&&t,k&&u].filter(Boolean).join(" ")||void 0;return(0,d.jsxs)("div",{className:(0,f.cn)("flex flex-col gap-1.5",o),children:[a&&(0,d.jsxs)("label",{htmlFor:s,className:"text-sm font-medium text-text-main",children:[a,n&&(0,d.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,d.jsxs)("div",{className:"relative",children:[l&&(0,d.jsx)("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none text-text-muted",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,d.jsx)("input",{id:s,type:b,placeholder:c,value:h,onChange:i,disabled:m,required:n,"aria-invalid":!!j||void 0,"aria-describedby":v,className:(0,f.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",l&&"pl-10",j&&"ring-1 ring-red-500 focus:ring-2 focus:ring-red-500/40 border-red-500/40",p),...q})]}),j&&(0,d.jsxs)("p",{id:t,role:"alert",className:"text-xs text-red-500 flex items-center gap-1",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[14px]",children:"error"}),j]}),k&&!j&&(0,d.jsx)("p",{id:u,className:"text-xs text-text-muted",children:k})]})}},85158:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(71404),f=c(99070);function g({currentPage:a,pageSize:b,totalItems:c,onPageChange:h,onPageSizeChange:i,className:j}){let k=Math.ceil(c/b),l=c>0?(a-1)*b+1:0,m=Math.min(a*b,c),n=(()=>{let b=[],c=Math.max(1,a-2),d=Math.min(k,c+5-1);d-c+1<5&&(c=Math.max(1,d-5+1));for(let a=c;a<=d;a++)b.push(a);return b})();return(0,d.jsxs)("div",{className:(0,e.cn)("flex flex-col sm:flex-row items-center justify-between gap-4 py-4 px-2",j),children:[c>0&&(0,d.jsxs)("div",{className:"text-sm text-text-muted",children:["Showing ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:l})," to"," ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:m})," of"," ",(0,d.jsx)("span",{className:"font-medium text-text-main",children:c})," results"]}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 sm:gap-4",children:[i&&(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-sm text-text-muted",children:"Rows:"}),(0,d.jsx)("select",{value:b,onChange:a=>i(Number(a.target.value)),className:(0,e.cn)("h-9 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","cursor-pointer"),style:{colorScheme:"auto"},children:[10,20,50].map(a=>(0,d.jsx)("option",{value:a,children:a},a))})]}),k>1&&(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(f.default,{variant:"outline",size:"sm",onClick:()=>h(a-1),disabled:1===a,className:"w-9 px-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_left"})}),n[0]>1&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.default,{variant:"ghost",size:"sm",onClick:()=>h(1),className:"w-9 px-0 hidden sm:inline-flex",children:"1"}),n[0]>2&&(0,d.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."})]}),n.map(b=>(0,d.jsx)(f.default,{variant:a===b?"primary":"ghost",size:"sm",onClick:()=>h(b),className:(0,e.cn)("w-9 px-0",a===b?"inline-flex":"hidden sm:inline-flex"),children:b},b)),n[n.length-1]<k&&(0,d.jsxs)(d.Fragment,{children:[n[n.length-1]<k-1&&(0,d.jsx)("span",{className:"text-text-muted px-1 hidden sm:inline",children:"..."}),(0,d.jsx)(f.default,{variant:"ghost",size:"sm",onClick:()=>h(k),className:"w-9 px-0 hidden sm:inline-flex",children:k})]}),(0,d.jsx)(f.default,{variant:"outline",size:"sm",onClick:()=>h(a+1),disabled:a===k,className:"w-9 px-0",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"chevron_right"})})]})]})]})}},85306:(a,b,c)=>{c.d(b,{default:()=>k});var d=c(48249),e=c(67484),f=c(19099),g=c(41371),h=c(42196),i=c(32456),j=c(77209);function k({children:a}){let[b,c]=(0,e.useState)(!1),l=(0,e.useRef)(null),m=(0,e.useRef)(null),n=(0,f.usePathname)(),o=(0,g.i)(a=>a.notifications),p=(0,g.i)(a=>a.removeNotification),q="/dashboard/playground"===n||"/dashboard/basic-chat"===n,r="/dashboard/terminal"===n,s=q||r;return(0,d.jsxs)("div",{className:"dashboard-shell relative isolate flex h-screen w-full overflow-hidden bg-bg",children:[(0,d.jsx)(j.A,{quiet:!0}),(0,d.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,d.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:o.map(a=>{var b;let c="success"===(b=a.type)?{wrapper:"border-green-500/30 bg-green-500/10 text-green-600 dark:text-green-400",icon:"check_circle"}:"error"===b?{wrapper:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400",icon:"error"}:"warning"===b?{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,d.jsx)("div",{role:"error"===a.type?"alert":"status",className:`rounded-lg border px-3 py-2 shadow-lg backdrop-blur-sm ${c.wrapper}`,children:(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px] leading-5",children:c.icon}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[a.title?(0,d.jsx)("p",{className:"text-xs font-semibold mb-0.5",children:a.title}):null,(0,d.jsx)("p",{className:"text-xs whitespace-pre-wrap break-words",children:a.message})]}),a.dismissible?(0,d.jsx)("button",{type:"button",onClick:()=>p(a.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,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px]",children:"close"})}):null]})},a.id)})}),b&&(0,d.jsx)("button",{type:"button",className:"fixed inset-0 z-40 bg-black/30 backdrop-blur-[1px] lg:hidden",onClick:()=>c(!1),"aria-label":"Close dashboard navigation"}),(0,d.jsx)("div",{className:"hidden lg:flex",children:(0,d.jsx)(h.default,{})}),b&&(0,d.jsx)("div",{ref:l,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,d.jsx)(h.default,{onClose:()=>c(!1)})}),(0,d.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:[s?(0,d.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,d.jsx)("button",{ref:m,type:"button",onClick:()=>c(!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,d.jsx)("span",{className:"material-symbols-outlined",children:"menu"})}),(0,d.jsx)("span",{className:"text-sm font-semibold",children:r?"Terminal":"Playground"})]}):(0,d.jsx)(i.default,{menuButtonRef:m,onMenuClick:()=>c(!0)},n),(0,d.jsx)("div",{className:`dashboard-content-gutter flex-1 overflow-y-auto custom-scrollbar ${s?"":"px-3 py-4 sm:px-6 sm:py-7 lg:px-10 lg:py-8"} ${s?"flex flex-col overflow-hidden":""}`,children:(0,d.jsx)("div",{className:`${s?"flex-1 w-full h-full flex flex-col min-h-0":"w-full min-w-0 max-w-6xl mx-auto"}`,children:a})})]})]})}},91099:(a,b,c)=>{c.d(b,{default:()=>f});var d=c(48249),e=c(71404);function f({options:a=[],value:b,onChange:c,size:g="md",className:h,...i}){let j={sm:"h-9 text-xs sm:h-7",md:"h-10 text-sm sm:h-9",lg:"h-11 text-base"};return(0,d.jsx)("div",{role:"group",...i,className:(0,e.cn)("inline-flex items-center p-1 rounded-[10px] overflow-x-auto","bg-surface-2",h),children:a.map(a=>(0,d.jsxs)("button",{type:"button","aria-pressed":b===a.value,onClick:()=>c(a.value),className:(0,e.cn)("shrink-0 px-4 rounded-[8px] font-medium transition-all",j[g],b===a.value?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[a.icon&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px] mr-1.5",children:a.icon}),a.label]},a.value))})}},91809:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(17660);function g(){let[a,b]=(0,e.useState)([]),[c,g]=(0,e.useState)(!0),[h,i]=(0,e.useState)(!0);return(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("h2",{className:"text-xl font-semibold",children:"Request Logs"}),(0,d.jsx)("div",{className:"flex items-center gap-2",children:(0,d.jsxs)("label",{className:"text-sm font-medium text-text-muted flex items-center gap-2 cursor-pointer",children:[(0,d.jsx)("span",{children:"Auto Refresh (3s)"}),(0,d.jsx)("div",{onClick:()=>i(!h),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors focus:outline-none ${h?"bg-primary":"bg-bg-subtle border border-border"}`,children:(0,d.jsx)("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${h?"translate-x-5":"translate-x-1"}`})})]})})]}),(0,d.jsx)(f.default,{className:"overflow-hidden bg-black/5 dark:bg-black/20",children:(0,d.jsx)("div",{className:"p-0 overflow-x-auto max-h-[600px] overflow-y-auto font-mono text-xs",children:c&&0===a.length?(0,d.jsx)("div",{className:"p-8 text-center text-text-muted",children:"Loading logs..."}):0===a.length?(0,d.jsx)("div",{className:"p-8 text-center text-text-muted",children:"No logs recorded yet."}):(0,d.jsxs)("table",{className:"w-full text-left border-collapse whitespace-nowrap",children:[(0,d.jsx)("thead",{className:"sticky top-0 bg-bg-subtle border-b border-border z-10",children:(0,d.jsxs)("tr",{children:[(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"DateTime"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Model"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Provider"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Account"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"In"}),(0,d.jsx)("th",{className:"px-3 py-2 border-r border-border",children:"Out"}),(0,d.jsx)("th",{className:"px-3 py-2",children:"Status"})]})}),(0,d.jsx)("tbody",{className:"divide-y divide-border/50",children:a.map((a,b)=>{let c=a.split(" | ");if(c.length<7)return null;let e=c[6],f=e.includes("PENDING"),g=e.includes("FAILED"),h=e.includes("OK");return(0,d.jsxs)("tr",{className:`hover:bg-primary/5 transition-colors ${f?"bg-primary/5":""}`,children:[(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-text-muted",children:c[0]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border font-medium",children:c[1]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border",children:(0,d.jsx)("span",{className:"px-1.5 py-0.5 rounded bg-bg-subtle border border-border text-[10px] uppercase font-bold",children:c[2]})}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border truncate max-w-[150px]",title:c[3],children:c[3]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-primary",children:c[4]}),(0,d.jsx)("td",{className:"px-3 py-1.5 border-r border-border text-right text-success",children:c[5]}),(0,d.jsx)("td",{className:`px-3 py-1.5 font-bold ${h?"text-success":g?"text-error":"text-primary animate-pulse"}`,children:e})]},b)})})]})})}),(0,d.jsx)("div",{className:"text-[10px] text-text-muted italic",children:"Logs are loaded from the request history database."})]})}},95145:(a,b,c)=>{c.d(b,{ConfirmModal:()=>k,default:()=>j});var d=c(48249),e=c(67484),f=c(74429),g=c(71404),h=c(99070);let i=()=>()=>{};function j({isOpen:a,onClose:b,title:c,children:h,footer:k,size:l="md",closeOnOverlay:m=!0,className:n}){let o=(0,e.useId)(),p=(0,e.useSyncExternalStore)(i,()=>!0,()=>!1),q=(0,e.useRef)(null);return((0,e.useRef)(null),(0,e.useRef)(b),a&&p)?(0,f.createPortal)((0,d.jsxs)("div",{className:"fixed inset-0 z-[1000] flex items-end justify-center p-0 sm:items-center sm:p-4",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in","aria-hidden":"true",onClick:m?b:void 0}),(0,d.jsxs)("div",{ref:q,role:"dialog","aria-modal":"true","aria-labelledby":c?o:void 0,"aria-label":c?void 0:"Dialog",tabIndex:-1,className:(0,g.cn)("relative w-full max-h-[calc(100dvh-2rem)] overflow-hidden bg-surface","border border-border-subtle","rounded-t-[18px] shadow-[var(--shadow-elev)] sm:rounded-[14px]","fade-in motion-reduce:animate-none",{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"}[l],n),children:[(0,d.jsxs)("div",{className:"flex min-h-14 items-center justify-between gap-3 border-b border-border-subtle px-4 py-2 sm:px-3",children:[(0,d.jsx)("div",{className:"flex min-w-0 items-center",children:c&&(0,d.jsx)("h2",{id:o,className:"text-lg font-semibold text-text-main",children:c})}),(0,d.jsx)("button",{onClick:b,"aria-label":"Close",className:"grid size-11 shrink-0 place-items-center rounded-[10px] text-text-muted transition-colors hover:bg-surface-2 hover:text-text-main focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 motion-reduce:transition-none",children:(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,d.jsx)("div",{className:"dashboard-modal-body max-h-[calc(100dvh-8rem)] overflow-y-auto p-4 custom-scrollbar sm:max-h-[calc(85vh-100px)] sm:p-6",children:h}),k&&(0,d.jsx)("div",{className:"dashboard-modal-footer flex flex-col-reverse items-stretch justify-end gap-2 border-t border-border-subtle p-4 sm:flex-row sm:items-center sm:gap-3 sm:p-6",children:k})]})]}),document.body):null}function k({isOpen:a,onClose:b,onConfirm:c,title:e="Confirm",message:f,confirmText:g="Confirm",cancelText:i="Cancel",variant:l="danger",loading:m=!1}){return(0,d.jsx)(j,{isOpen:a,onClose:b,title:e,size:"sm",footer:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.default,{variant:"ghost",onClick:b,disabled:m,children:i}),(0,d.jsx)(h.default,{variant:l,onClick:c,loading:m,children:g})]}),children:(0,d.jsx)("p",{className:"text-text-muted",children:f})})}},95514:(a,b,c)=>{c.d(b,{default:()=>g});var d=c(48249),e=c(67484),f=c(71404);function g({checked:a=!1,onChange:b,label:c,description:h,disabled:i=!1,size:j="md",className:k,busy:l=!1,touchTarget:m=!1,...n}){let o=(0,e.useId)(),p=(0,e.useId)(),q={sm:{track:"w-8 h-4",thumb:"size-3",translate:"translate-x-4"},md:{track:"w-11 h-6",thumb:"size-5",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"size-6",translate:"translate-x-7"}},r=()=>{i||l||!b||b(!a)},s=(0,d.jsx)("span",{className:(0,f.cn)("pointer-events-none inline-block rounded-full bg-white shadow-sm","transform transition duration-200 ease-in-out motion-reduce:transition-none",a?q[j].translate:"translate-x-0.5",q[j].thumb,"mt-0.5")});return(0,d.jsxs)("div",{className:(0,f.cn)("flex items-center gap-3",i&&"opacity-50 cursor-not-allowed",k),children:[(0,d.jsx)("button",{type:"button",role:"switch","aria-checked":a,"aria-busy":l||void 0,"data-state":a?"on":"off","aria-labelledby":c?o:void 0,"aria-describedby":h?p:void 0,"aria-label":c?void 0:n["aria-label"],disabled:i||l,onClick:r,...n,className:(0,f.cn)("relative inline-flex shrink-0 cursor-pointer","transition-colors duration-200 ease-in-out motion-reduce:transition-none","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg",m?"size-11 items-center justify-center rounded-xl sm:size-8 sm:rounded-lg":"rounded-full",!m&&(a?"bg-brand-500":"bg-surface-3"),!m&&q[j].track,i&&"cursor-not-allowed"),children:m?(0,d.jsx)("span",{className:(0,f.cn)("relative inline-flex shrink-0 rounded-full",a?"bg-brand-500":"bg-surface-3",q[j].track),children:s}):s}),(c||h)&&(0,d.jsxs)("div",{className:"flex flex-col",children:[c&&(0,d.jsx)("label",{id:o,onClick:r,className:"text-sm font-medium text-text-main cursor-pointer",children:c}),h&&(0,d.jsx)("span",{id:p,className:"text-xs text-text-muted",children:h})]})]})}},99070:(a,b,c)=>{c.d(b,{default:()=>h});var d=c(48249),e=c(71404);let f={primary:"bg-brand-500 hover:bg-brand-600 text-white shadow-sm dark:bg-brand-600 dark:hover:bg-brand-700 disabled:bg-surface-3 disabled:text-text-muted dark:disabled:bg-surface-3",secondary:"bg-surface-2 hover:bg-surface-3 text-text-main border border-border disabled:opacity-50",outline:"border border-border text-text-main hover:bg-surface-2 hover:border-brand-500/40",ghost:"text-text-muted hover:bg-surface-2 hover:text-text-main",danger:"bg-red-500 hover:bg-red-600 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted",success:"bg-green-600 hover:bg-green-700 text-white shadow-sm disabled:bg-surface-3 disabled:text-text-muted"},g={sm:"h-10 px-3 text-xs rounded-[8px] sm:h-7",md:"h-11 px-4 text-sm rounded-[10px] sm:h-9",lg:"h-12 px-6 text-sm rounded-[10px] sm:h-11"};function h({children:a,variant:b="primary",size:c="md",icon:i,iconRight:j,disabled:k=!1,loading:l=!1,fullWidth:m=!1,className:n,...o}){return(0,d.jsxs)("button",{className:(0,e.cn)("relative inline-flex items-center justify-center font-semibold transition-[background-color,border-color,color,box-shadow,transform] duration-150 ease-out cursor-pointer","active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100","focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg motion-reduce:transition-none",f[b],g[c],m&&"w-full",n),disabled:k||l,"aria-busy":l||void 0,...o,children:[(0,d.jsx)("span",{className:"button-content inline-grid items-center justify-center",children:(0,d.jsxs)("span",{className:(0,e.cn)("col-start-1 row-start-1 inline-flex items-center justify-center gap-2",l&&"invisible"),children:[i&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:i}),a,j&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[18px]",children:j})]})}),l&&(0,d.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined absolute animate-spin text-[18px] motion-reduce:animate-none",children:"progress_activity"})]})}}};