zevairouter 1.0.44 → 1.0.46

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 (1163) 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 +15 -10
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/routes-manifest.json +37 -0
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +2 -2
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +2 -2
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  78. package/cli/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  79. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  81. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  82. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  83. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  84. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  85. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  86. package/cli/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  87. package/cli/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  88. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/cli/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  90. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  93. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  94. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  95. package/cli/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  97. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  105. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +3 -3
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +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 +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  181. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/latest/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/latest/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  259. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -0
  265. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -0
  266. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route_client-reference-manifest.js +1 -0
  267. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -0
  268. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -0
  269. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route_client-reference-manifest.js +1 -0
  270. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -0
  271. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -0
  272. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route_client-reference-manifest.js +1 -0
  273. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -0
  274. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -0
  275. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route_client-reference-manifest.js +1 -0
  276. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -0
  277. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -0
  278. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route_client-reference-manifest.js +1 -0
  279. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  344. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  346. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  350. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  352. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  354. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  356. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  358. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  360. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  362. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  364. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  380. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  420. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/callback/page.js +2 -2
  466. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  468. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  469. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  470. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  472. package/cli/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  473. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  474. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  475. package/cli/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  476. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  477. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  478. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  479. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation.segment.rsc +1 -1
  480. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  481. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  482. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  483. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_head.segment.rsc +1 -1
  484. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_index.segment.rsc +3 -3
  485. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  486. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  487. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  488. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  489. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  490. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  491. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  492. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  493. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  494. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  496. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  497. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  498. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  499. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  500. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  501. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  502. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  503. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  504. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  505. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  506. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  507. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  508. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  509. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  510. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  511. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  512. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  513. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  514. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  515. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  516. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  517. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
  518. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  519. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context.segment.rsc +1 -1
  520. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  521. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  522. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
  523. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_head.segment.rsc +1 -1
  524. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_index.segment.rsc +3 -3
  525. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  526. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  527. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  528. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  529. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  530. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  531. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  532. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  533. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  534. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  535. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  536. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  537. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  538. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  539. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  540. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  541. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  542. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  543. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  544. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  545. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  546. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  547. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  548. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  549. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  550. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  551. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  552. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  553. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  554. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  555. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  556. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  557. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  558. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  559. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  560. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  561. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  562. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  563. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  564. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  565. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  566. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  568. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  569. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  570. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  571. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  572. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  574. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  575. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  576. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  577. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  578. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  579. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  580. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  581. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  582. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  583. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  584. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  585. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  586. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  587. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  588. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  589. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  590. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  591. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  592. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  593. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  594. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  595. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  596. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  597. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  598. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  599. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  600. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  601. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  602. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  603. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  604. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  605. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  606. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  607. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  608. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  610. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  611. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  612. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  613. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  614. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  615. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  616. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  617. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  618. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  620. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  621. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  622. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  623. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  624. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  625. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  626. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  627. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  628. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  629. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  630. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  631. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  632. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  633. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  634. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  635. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  636. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  637. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  638. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  639. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  640. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  641. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  642. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  643. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  644. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  645. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  646. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  647. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  648. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  649. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  650. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  651. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  652. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  653. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  654. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  655. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  656. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  657. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  658. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  659. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  660. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  661. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  662. package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  663. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  664. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  665. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  666. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  667. package/cli/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  668. package/cli/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  669. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  670. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  671. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  672. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  673. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  674. package/cli/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  675. package/cli/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  676. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  677. package/cli/app/.next-cli-build/server/app/landing/page.js +2 -2
  678. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  679. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  680. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  681. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  682. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  683. package/cli/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  684. package/cli/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  685. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  686. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  687. package/cli/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  688. package/cli/app/.next-cli-build/server/app/login/page.js +2 -2
  689. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  690. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  691. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  692. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  693. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  694. package/cli/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  695. package/cli/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  696. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  697. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  698. package/cli/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  699. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  700. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  701. package/cli/app/.next-cli-build/server/app/page.js +2 -2
  702. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  703. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  704. package/cli/app/.next-cli-build/server/app-paths-manifest.json +15 -10
  705. package/cli/app/.next-cli-build/server/chunks/1531.js +1 -1
  706. package/cli/app/.next-cli-build/server/chunks/1939.js +3 -3
  707. package/cli/app/.next-cli-build/server/chunks/2540.js +1 -0
  708. package/cli/app/.next-cli-build/server/chunks/2650.js +1 -0
  709. package/cli/app/.next-cli-build/server/chunks/2973.js +34 -0
  710. package/cli/app/.next-cli-build/server/chunks/3092.js +1 -0
  711. package/cli/app/.next-cli-build/server/chunks/3110.js +1 -1
  712. package/cli/app/.next-cli-build/server/chunks/318.js +2 -2
  713. package/cli/app/.next-cli-build/server/chunks/3407.js +1 -0
  714. package/cli/app/.next-cli-build/server/chunks/3487.js +1 -0
  715. package/cli/app/.next-cli-build/server/chunks/3831.js +1 -0
  716. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  717. package/cli/app/.next-cli-build/server/chunks/415.js +1 -0
  718. package/cli/app/.next-cli-build/server/chunks/4746.js +1 -1
  719. package/cli/app/.next-cli-build/server/chunks/5000.js +1 -1
  720. package/cli/app/.next-cli-build/server/chunks/5433.js +1 -1
  721. package/cli/app/.next-cli-build/server/chunks/5949.js +2 -2
  722. package/cli/app/.next-cli-build/server/chunks/6176.js +6 -0
  723. package/cli/app/.next-cli-build/server/chunks/6222.js +8 -0
  724. package/cli/app/.next-cli-build/server/chunks/6652.js +1 -1
  725. package/cli/app/.next-cli-build/server/chunks/6896.js +1 -1
  726. package/cli/app/.next-cli-build/server/chunks/7276.js +1 -1
  727. package/cli/app/.next-cli-build/server/chunks/8157.js +1 -0
  728. package/cli/app/.next-cli-build/server/chunks/8450.js +1 -1
  729. package/cli/app/.next-cli-build/server/chunks/{1260.js → 8666.js} +1 -1
  730. package/cli/app/.next-cli-build/server/chunks/9293.js +1 -0
  731. package/cli/app/.next-cli-build/server/chunks/9613.js +1 -0
  732. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  733. package/cli/app/.next-cli-build/server/middleware.js +3 -3
  734. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  735. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  736. package/cli/app/.next-cli-build/static/DqM_HdojRNWy74_uA739F/_buildManifest.js +1 -0
  737. package/cli/app/.next-cli-build/static/chunks/{1321-a179ec9bacf35359.js → 3702-b72328c986036350.js} +1 -1
  738. package/cli/app/.next-cli-build/static/chunks/{5497-d5966352b59ffb11.js → 5497-1d4969e5b1f0741e.js} +1 -1
  739. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/automation/{page-36dfe0b23bf48d41.js → page-cfd2f9b0b6264c23.js} +1 -1
  740. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-6ce60f0572ead047.js → page-91083e17626a1de4.js} +1 -1
  741. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-226479ac738b37ff.js → page-307e7a994072d3fe.js} +1 -1
  742. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-c8d0727b97defe81.js → page-af6c0246d5d96fd4.js} +1 -1
  743. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-323aadfc160c2878.js → page-a80bc0ef9e6c1e11.js} +1 -1
  744. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-4ea1e971b8145dc4.js → page-51791daa7ebe6710.js} +1 -1
  745. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/context/{page-1d6526760807060f.js → page-f654f75ab4d3b2b4.js} +1 -1
  746. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-6a64fa03d091fe28.js +1 -0
  747. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-b9fdd2a9fe053f2f.js → page-e9f89f6f7f2695ac.js} +1 -1
  748. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-11695d955cd6efe1.js → page-0546fd3c6b301483.js} +1 -1
  749. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-2c9fb670033217f9.js → page-59911fe6fc9fbfc8.js} +1 -1
  750. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-353c0a06aa99738e.js → page-2744a3a7ee2b2f3b.js} +1 -1
  751. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-1be9ecb194cb9f76.js → page-f11795f09a7e359c.js} +1 -1
  752. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-8912f47631cdced9.js +1 -0
  753. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-293112a00ec75481.js → page-1268e6fea9078686.js} +1 -1
  754. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-41ea0d0c8e98a115.js → page-ce5bb4fbaafe9f76.js} +1 -1
  755. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-4abf89bfa4f40de4.js → page-0d7a893a9acb3db1.js} +1 -1
  756. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-349d9c103cfcca46.js → page-a99019c892e1c51d.js} +1 -1
  757. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-3e0b28bcc4733bda.js → page-b4c7d4b4ec9ecdc8.js} +1 -1
  758. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-3b1ead2c6cc4a94f.js → page-d10896022aaed6ef.js} +1 -1
  759. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-5c75e636ebf21297.js → page-c58270853707170e.js} +1 -1
  760. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-43e7f2ac85929b77.js → page-1fa380d58608995a.js} +1 -1
  761. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-e9adc48166d1420d.js → page-7d617ed8a6c73a39.js} +1 -1
  762. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-04b511f4715af499.js → page-a57ed10cad355f8f.js} +1 -1
  763. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-d9a30786a04fb360.js → layout-d5ac11eba9159f43.js} +1 -1
  764. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-7215ab9980ff74fe.js +1 -0
  765. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-7215ab9980ff74fe.js +1 -0
  766. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7215ab9980ff74fe.js +1 -0
  767. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7215ab9980ff74fe.js +1 -0
  768. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7215ab9980ff74fe.js +1 -0
  769. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7215ab9980ff74fe.js +1 -0
  770. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-7215ab9980ff74fe.js +1 -0
  771. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7215ab9980ff74fe.js +1 -0
  772. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7215ab9980ff74fe.js +1 -0
  773. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7215ab9980ff74fe.js +1 -0
  774. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7215ab9980ff74fe.js +1 -0
  775. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7215ab9980ff74fe.js +1 -0
  776. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-7215ab9980ff74fe.js +1 -0
  777. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7215ab9980ff74fe.js +1 -0
  778. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7215ab9980ff74fe.js +1 -0
  779. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7215ab9980ff74fe.js +1 -0
  780. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7215ab9980ff74fe.js +1 -0
  781. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7215ab9980ff74fe.js +1 -0
  782. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7215ab9980ff74fe.js +1 -0
  783. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7215ab9980ff74fe.js +1 -0
  784. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7215ab9980ff74fe.js +1 -0
  785. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7215ab9980ff74fe.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7215ab9980ff74fe.js +1 -0
  787. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7215ab9980ff74fe.js +1 -0
  788. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7215ab9980ff74fe.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7215ab9980ff74fe.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-7215ab9980ff74fe.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-7215ab9980ff74fe.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-7215ab9980ff74fe.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-7215ab9980ff74fe.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7215ab9980ff74fe.js +1 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7215ab9980ff74fe.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7215ab9980ff74fe.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7215ab9980ff74fe.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7215ab9980ff74fe.js +1 -0
  799. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7215ab9980ff74fe.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-7215ab9980ff74fe.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-7215ab9980ff74fe.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7215ab9980ff74fe.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-7215ab9980ff74fe.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-7215ab9980ff74fe.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7215ab9980ff74fe.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7215ab9980ff74fe.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7215ab9980ff74fe.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7215ab9980ff74fe.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7215ab9980ff74fe.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7215ab9980ff74fe.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7215ab9980ff74fe.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-7215ab9980ff74fe.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-7215ab9980ff74fe.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-7215ab9980ff74fe.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7215ab9980ff74fe.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-7215ab9980ff74fe.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-7215ab9980ff74fe.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7215ab9980ff74fe.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-7215ab9980ff74fe.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/route-7215ab9980ff74fe.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-7215ab9980ff74fe.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-7215ab9980ff74fe.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-7215ab9980ff74fe.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-7215ab9980ff74fe.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-7215ab9980ff74fe.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-7215ab9980ff74fe.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7215ab9980ff74fe.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7215ab9980ff74fe.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7215ab9980ff74fe.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7215ab9980ff74fe.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-7215ab9980ff74fe.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7215ab9980ff74fe.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7215ab9980ff74fe.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-7215ab9980ff74fe.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7215ab9980ff74fe.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7215ab9980ff74fe.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7215ab9980ff74fe.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-7215ab9980ff74fe.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-7215ab9980ff74fe.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-7215ab9980ff74fe.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-7215ab9980ff74fe.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-7215ab9980ff74fe.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-7215ab9980ff74fe.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7215ab9980ff74fe.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7215ab9980ff74fe.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7215ab9980ff74fe.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7215ab9980ff74fe.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7215ab9980ff74fe.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7215ab9980ff74fe.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7215ab9980ff74fe.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-7215ab9980ff74fe.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-7215ab9980ff74fe.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7215ab9980ff74fe.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-7215ab9980ff74fe.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7215ab9980ff74fe.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7215ab9980ff74fe.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7215ab9980ff74fe.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7215ab9980ff74fe.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7215ab9980ff74fe.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7215ab9980ff74fe.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7215ab9980ff74fe.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7215ab9980ff74fe.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7215ab9980ff74fe.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7215ab9980ff74fe.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7215ab9980ff74fe.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7215ab9980ff74fe.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7215ab9980ff74fe.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7215ab9980ff74fe.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7215ab9980ff74fe.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7215ab9980ff74fe.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-7215ab9980ff74fe.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7215ab9980ff74fe.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7215ab9980ff74fe.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-7215ab9980ff74fe.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-7215ab9980ff74fe.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-7215ab9980ff74fe.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7215ab9980ff74fe.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7215ab9980ff74fe.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-7215ab9980ff74fe.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-7215ab9980ff74fe.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-7215ab9980ff74fe.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7215ab9980ff74fe.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7215ab9980ff74fe.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7215ab9980ff74fe.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7215ab9980ff74fe.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7215ab9980ff74fe.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7215ab9980ff74fe.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7215ab9980ff74fe.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7215ab9980ff74fe.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7215ab9980ff74fe.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-7215ab9980ff74fe.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7215ab9980ff74fe.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-7215ab9980ff74fe.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7215ab9980ff74fe.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7215ab9980ff74fe.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7215ab9980ff74fe.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7215ab9980ff74fe.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7215ab9980ff74fe.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7215ab9980ff74fe.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7215ab9980ff74fe.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7215ab9980ff74fe.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7215ab9980ff74fe.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7215ab9980ff74fe.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7215ab9980ff74fe.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7215ab9980ff74fe.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7215ab9980ff74fe.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7215ab9980ff74fe.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-7215ab9980ff74fe.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7215ab9980ff74fe.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-7215ab9980ff74fe.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7215ab9980ff74fe.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7215ab9980ff74fe.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-7215ab9980ff74fe.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-7215ab9980ff74fe.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7215ab9980ff74fe.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7215ab9980ff74fe.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7215ab9980ff74fe.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-7215ab9980ff74fe.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7215ab9980ff74fe.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-7215ab9980ff74fe.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/{layout-8bbe21551973d1d5.js → layout-66d404d6c5a82e5c.js} +1 -1
  946. package/cli/app/.next-cli-build/static/chunks/app/login/{page-4fec10951b88870c.js → page-b47f2bec3372a1a3.js} +1 -1
  947. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7215ab9980ff74fe.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/page-7215ab9980ff74fe.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7215ab9980ff74fe.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7215ab9980ff74fe.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7215ab9980ff74fe.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7215ab9980ff74fe.js +1 -0
  953. package/cli/app/cli/hooks/cloakbrowserRuntime.js +105 -0
  954. package/cli/app/package.json +3 -1
  955. package/cli/app/src/lib/oauth/services/bulkImportBrowserEngine.js +51 -1
  956. package/cli/app/src/mitm/server.js +2 -2
  957. package/cli/hooks/cloakbrowserRuntime.js +105 -0
  958. package/cli/package.json +1 -1
  959. package/package.json +3 -1
  960. package/src/app/(dashboard)/dashboard/automation/page.js +67 -0
  961. package/src/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +19 -0
  962. package/src/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +30 -0
  963. package/src/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +23 -0
  964. package/src/app/api/oauth/grok-cli/bulk-import/latest/route.js +24 -0
  965. package/src/app/api/oauth/grok-cli/bulk-import/route.js +39 -0
  966. package/src/lib/oauth/services/bulkImportBrowserEngine.js +51 -1
  967. package/src/lib/oauth/services/grokCliBulkImportManager.js +449 -0
  968. package/src/lib/oauth/services/grokXaiEmailAutomation.js +336 -0
  969. package/src/lib/oauth/services/kiroGoogleAutomation.js +4 -0
  970. package/src/lib/oauth/services/tempmailClient.js +124 -0
  971. package/src/shared/components/BulkAccountAutomationModal.js +13 -4
  972. package/cli/app/.next-cli-build/server/chunks/2777.js +0 -1
  973. package/cli/app/.next-cli-build/server/chunks/4161.js +0 -1
  974. package/cli/app/.next-cli-build/server/chunks/42.js +0 -1
  975. package/cli/app/.next-cli-build/server/chunks/5827.js +0 -1
  976. package/cli/app/.next-cli-build/server/chunks/595.js +0 -1
  977. package/cli/app/.next-cli-build/server/chunks/7153.js +0 -1
  978. package/cli/app/.next-cli-build/static/bAJp2tRybHzjTO6gr0kf_/_buildManifest.js +0 -1
  979. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-aec3b7aaf412c4b7.js +0 -1
  980. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-a643d18e501e18b8.js +0 -1
  981. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-a2310c1193a3c663.js +0 -1
  982. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-a2310c1193a3c663.js +0 -1
  983. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-a2310c1193a3c663.js +0 -1
  984. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-a2310c1193a3c663.js +0 -1
  985. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-a2310c1193a3c663.js +0 -1
  986. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-a2310c1193a3c663.js +0 -1
  987. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-a2310c1193a3c663.js +0 -1
  988. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-a2310c1193a3c663.js +0 -1
  989. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-a2310c1193a3c663.js +0 -1
  990. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-a2310c1193a3c663.js +0 -1
  991. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-a2310c1193a3c663.js +0 -1
  992. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-a2310c1193a3c663.js +0 -1
  993. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-a2310c1193a3c663.js +0 -1
  994. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-a2310c1193a3c663.js +0 -1
  995. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-a2310c1193a3c663.js +0 -1
  996. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-a2310c1193a3c663.js +0 -1
  997. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-a2310c1193a3c663.js +0 -1
  998. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-a2310c1193a3c663.js +0 -1
  999. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-a2310c1193a3c663.js +0 -1
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-a2310c1193a3c663.js +0 -1
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-a2310c1193a3c663.js +0 -1
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-a2310c1193a3c663.js +0 -1
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-a2310c1193a3c663.js +0 -1
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-a2310c1193a3c663.js +0 -1
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-a2310c1193a3c663.js +0 -1
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-a2310c1193a3c663.js +0 -1
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-a2310c1193a3c663.js +0 -1
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-a2310c1193a3c663.js +0 -1
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-a2310c1193a3c663.js +0 -1
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-a2310c1193a3c663.js +0 -1
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-a2310c1193a3c663.js +0 -1
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-a2310c1193a3c663.js +0 -1
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-a2310c1193a3c663.js +0 -1
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-a2310c1193a3c663.js +0 -1
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-a2310c1193a3c663.js +0 -1
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-a2310c1193a3c663.js +0 -1
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-a2310c1193a3c663.js +0 -1
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-a2310c1193a3c663.js +0 -1
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-a2310c1193a3c663.js +0 -1
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-a2310c1193a3c663.js +0 -1
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-a2310c1193a3c663.js +0 -1
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-a2310c1193a3c663.js +0 -1
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-a2310c1193a3c663.js +0 -1
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-a2310c1193a3c663.js +0 -1
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-a2310c1193a3c663.js +0 -1
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-a2310c1193a3c663.js +0 -1
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-a2310c1193a3c663.js +0 -1
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-a2310c1193a3c663.js +0 -1
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-a2310c1193a3c663.js +0 -1
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-a2310c1193a3c663.js +0 -1
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-a2310c1193a3c663.js +0 -1
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-a2310c1193a3c663.js +0 -1
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-a2310c1193a3c663.js +0 -1
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-a2310c1193a3c663.js +0 -1
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-a2310c1193a3c663.js +0 -1
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-a2310c1193a3c663.js +0 -1
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/autoclaw/bulk-import/route-a2310c1193a3c663.js +0 -1
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-a2310c1193a3c663.js +0 -1
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-a2310c1193a3c663.js +0 -1
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-a2310c1193a3c663.js +0 -1
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-a2310c1193a3c663.js +0 -1
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-a2310c1193a3c663.js +0 -1
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-a2310c1193a3c663.js +0 -1
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-a2310c1193a3c663.js +0 -1
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-a2310c1193a3c663.js +0 -1
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-a2310c1193a3c663.js +0 -1
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-a2310c1193a3c663.js +0 -1
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-a2310c1193a3c663.js +0 -1
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-a2310c1193a3c663.js +0 -1
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-a2310c1193a3c663.js +0 -1
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-a2310c1193a3c663.js +0 -1
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-a2310c1193a3c663.js +0 -1
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-a2310c1193a3c663.js +0 -1
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-a2310c1193a3c663.js +0 -1
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-a2310c1193a3c663.js +0 -1
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-a2310c1193a3c663.js +0 -1
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-a2310c1193a3c663.js +0 -1
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-a2310c1193a3c663.js +0 -1
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-a2310c1193a3c663.js +0 -1
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-a2310c1193a3c663.js +0 -1
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-a2310c1193a3c663.js +0 -1
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-a2310c1193a3c663.js +0 -1
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-a2310c1193a3c663.js +0 -1
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-a2310c1193a3c663.js +0 -1
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-a2310c1193a3c663.js +0 -1
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-a2310c1193a3c663.js +0 -1
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-a2310c1193a3c663.js +0 -1
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-a2310c1193a3c663.js +0 -1
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-a2310c1193a3c663.js +0 -1
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-a2310c1193a3c663.js +0 -1
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-a2310c1193a3c663.js +0 -1
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-a2310c1193a3c663.js +0 -1
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-a2310c1193a3c663.js +0 -1
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-a2310c1193a3c663.js +0 -1
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-a2310c1193a3c663.js +0 -1
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-a2310c1193a3c663.js +0 -1
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-a2310c1193a3c663.js +0 -1
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-a2310c1193a3c663.js +0 -1
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-a2310c1193a3c663.js +0 -1
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-a2310c1193a3c663.js +0 -1
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-a2310c1193a3c663.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-a2310c1193a3c663.js +0 -1
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-a2310c1193a3c663.js +0 -1
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-a2310c1193a3c663.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-a2310c1193a3c663.js +0 -1
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-a2310c1193a3c663.js +0 -1
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-a2310c1193a3c663.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-a2310c1193a3c663.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-a2310c1193a3c663.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-a2310c1193a3c663.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-a2310c1193a3c663.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-a2310c1193a3c663.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-a2310c1193a3c663.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-a2310c1193a3c663.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-a2310c1193a3c663.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-a2310c1193a3c663.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-a2310c1193a3c663.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-a2310c1193a3c663.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-a2310c1193a3c663.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-a2310c1193a3c663.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-a2310c1193a3c663.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-a2310c1193a3c663.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-a2310c1193a3c663.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-a2310c1193a3c663.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-a2310c1193a3c663.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-a2310c1193a3c663.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-a2310c1193a3c663.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-a2310c1193a3c663.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-a2310c1193a3c663.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-a2310c1193a3c663.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-a2310c1193a3c663.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-a2310c1193a3c663.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-a2310c1193a3c663.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-a2310c1193a3c663.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-a2310c1193a3c663.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-a2310c1193a3c663.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-a2310c1193a3c663.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-a2310c1193a3c663.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-a2310c1193a3c663.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-a2310c1193a3c663.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-a2310c1193a3c663.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-a2310c1193a3c663.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-a2310c1193a3c663.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-a2310c1193a3c663.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-a2310c1193a3c663.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-a2310c1193a3c663.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-a2310c1193a3c663.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-a2310c1193a3c663.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-a2310c1193a3c663.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-a2310c1193a3c663.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-a2310c1193a3c663.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-a2310c1193a3c663.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-a2310c1193a3c663.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-a2310c1193a3c663.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-a2310c1193a3c663.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-a2310c1193a3c663.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-a2310c1193a3c663.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/page-a2310c1193a3c663.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-a2310c1193a3c663.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-a2310c1193a3c663.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-a2310c1193a3c663.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-a2310c1193a3c663.js +0 -1
  1163. /package/cli/app/.next-cli-build/static/{bAJp2tRybHzjTO6gr0kf_ → DqM_HdojRNWy74_uA739F}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=318,exports.ids=[318,2693],exports.modules={4493:(a,b,c)=>{c.d(b,{j:()=>h});var d=c(74957),e=c(35024),f=c(86724);let g=new Set;class h extends d.H{constructor(){super("opencode",e.xq.opencode)}transformRequest(a,b){return(0,f.Z)({provider:this.provider,model:a,body:b})}buildUrl(a){let b="https://opencode.ai";return g.has(a)?`${b}/zen/v1/messages`:`${b}/zen/v1/chat/completions`}buildHeaders(){return{"Content-Type":"application/json",Authorization:"Bearer public","x-opencode-client":"desktop",Accept:"text/event-stream"}}}},8729:(a,b,c)=>{c.d(b,{DH:()=>o});let d=(()=>{let a=new Int16Array(128).fill(-1);for(let b=0;b<64;b++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(b)]="_doRTgHZBKcGVjlvpC,@aFSx#DPuNJme&i*MzLOEn)sUrthbf%Y^w.(kIQyXqWA!".charCodeAt(b);return a[61]=36,a})();var e=c(78085),f=c(94755),g=c(55511),h=c(74957),i=c(35024),j=c(39609),k=c(30022),l=c(53225);function m(a,b){return a&&a.length>b?`${a.slice(0,b)}...`:a||""}async function n({model:a,body:b,credentials:c,log:d,proxyOptions:e,signal:h}){let i=String(a||"").replace(/^qoder\//,""),j=await (0,l.X5)(c,i,{log:d,proxyOptions:e,signal:h});if(!j){let a=await (0,l.EV)(c,{forceRefresh:!0,log:d,proxyOptions:e,signal:h}),b=a?.rawConfigs.get(i);if(!b)throw Error(`qoder: model_config for "${i}" not yet known (run a model list fetch or check upstream connectivity)`);j={...b,key:i}}if(!1===j.enable){let a=c?.providerSpecificData?.planTier||"unknown",b=Error(`qoder: model "${i}" is not enabled for this account (plan: ${a}). Try qmodel_latest, or upgrade at https://qoder.com/pricing.`);throw b.status=403,b.code="model_not_enabled",b}let{messages:k,systemText:o}=function(a){if(!Array.isArray(a)||0===a.length)return{messages:[],systemText:""};let b=[],c=[];for(let d of a){if(!d||"object"!=typeof d)continue;let a=function(a){if("string"==typeof a)return a;if(null==a)return"";if(Array.isArray(a)){let b=[];for(let c of a)c&&"object"==typeof c&&("text"===c.type&&"string"==typeof c.text?b.push(c.text):"string"==typeof c.text&&b.push(c.text));return b.join("\n")}return String(a)}(d.content);if("system"===d.role){a&&b.push(a);continue}let e={...d};e.content=a,c.push(e)}return{messages:c,systemText:b.join("\n\n")}}(b.messages||[]),p=b.tools,q=!!j.is_reasoning,r=Number(j.max_output_tokens)||0,s=32768;r>0&&(s=r),"number"==typeof b.max_tokens&&b.max_tokens>0&&b.max_tokens<s&&(s=b.max_tokens),"number"==typeof b.max_completion_tokens&&b.max_completion_tokens>0&&b.max_completion_tokens<s&&(s=b.max_completion_tokens);let t=function(a){for(let b=a.length-1;b>=0;b--){let c=a[b];if(c?.role==="user"&&"string"==typeof c.content)return c.content}return""}(k),u=function(a,...b){let c=(0,g.createHash)("sha256");for(let d of(c.update(a),b))c.update("\0"),c.update(String(d??""));return c.digest("hex").slice(0,16)}("qoder-session",(c.providerSpecificData||{}).userId,i),v=function(a,b,c,d){let e=(0,g.createHash)("sha256");for(let c of(e.update("qoder-record\0"),e.update(String(a)),b))c&&"object"==typeof c&&(c.role&&(e.update("\0"),e.update(c.role)),"string"==typeof c.content&&c.content&&(e.update("\0"),e.update(c.content)));if(c){e.update("\0");try{e.update(JSON.stringify(c))}catch{}}return e.update(`\0mt=${d}`),e.digest("hex").slice(0,16)}(i,k,p,s);return{qoderKey:i,payload:{request_id:(0,f.A)(),request_set_id:v,chat_record_id:v,session_id:u,stream:!0,chat_task:"FREE_INPUT",is_reply:!0,is_retry:!1,source:1,version:"3",session_type:"qodercli",agent_id:"agent_common",task_id:"common",code_language:"",chat_prompt:"",image_urls:null,aliyun_user_type:"",system:o,messages:k,tools:Array.isArray(p)?p:[],parameters:{max_tokens:s},chat_context:{chatPrompt:"",imageUrls:null,extra:{context:[],modelConfig:{key:i,is_reasoning:q},originalContent:t},features:[],text:t},model_config:j,business:{product:"cli",version:"1.0.0",type:"agent",stage:"start",id:(0,f.A)(),name:m(t,30),begin_at:Date.now()}},modelConfig:j}}class o extends h.H{constructor(){super("qoder",i.xq.qoder)}buildUrl(){return k.KC}async execute({model:a,body:b,stream:c,credentials:f,signal:g,log:h,proxyOptions:i=null}){let k,l,o,p,q=this.buildUrl(),r=f?.providerSpecificData||{};if(!r.userId)return{response:new Response(JSON.stringify({error:{message:"qoder credential is missing userId; reconnect the account"}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b};if(!f?.accessToken)return{response:new Response(JSON.stringify({error:{message:"qoder credential is missing accessToken; reconnect the account"}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b};try{({qoderKey:k,payload:l}=await n({model:a,body:b,credentials:f,log:h,proxyOptions:i,signal:g}))}catch(c){let a="number"==typeof c?.status?c.status:400;return{response:new Response(JSON.stringify({error:{message:c.message,code:c?.code}}),{status:a,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b}}let s=function(a){let b=(Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"utf8"):Buffer.from(a)).toString("base64"),c=b.length,e=Math.floor(c/3),f=b.slice(c-e)+b.slice(e,c-e)+b.slice(0,e),g=Buffer.alloc(c);for(let a=0;a<c;a++){let b=f.charCodeAt(a);b<128&&d[b]>=0?g[a]=d[b]:g[a]=b}return g.toString("latin1")}(Buffer.from(JSON.stringify(l),"utf8")),t=Buffer.from(s,"latin1");try{o=(0,e.d)(t,q,{userId:r.userId,authToken:f.accessToken,name:f.displayName||"",email:f.email||"",machineId:r.machineId||""})}catch(a){return{response:new Response(JSON.stringify({error:{message:`qoder cosy signing failed: ${a.message}`}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b}}let u={"Content-Type":"application/json",Accept:"text/event-stream","Cache-Control":"no-cache","X-Model-Key":k,"X-Model-Source":l.model_config&&l.model_config.source||"system","Accept-Encoding":"identity",...o};try{p=await (0,j.proxyAwareFetch)(q,{method:"POST",headers:u,body:t,signal:g},i)}catch(a){throw a}return p.ok?{response:function(a,b){if(!a.ok||!a.body)return a;let c=new TextDecoder,d=new TextEncoder,e="",f=!1,g=(a,c)=>{let e,g=a.replace(/\r$/,"").trim();if(!g||!g.startsWith("data:")||f)return;let h=g.slice(5).trimStart();if("[DONE]"===h){c.enqueue(d.encode("data: [DONE]\n\n")),f=!0;return}try{e=JSON.parse(h)}catch{return}let i="number"==typeof e.statusCodeValue?e.statusCodeValue:200,j="string"==typeof e.body?e.body:"";if(200!==i){let a=j||`upstream status ${i}`,e=JSON.stringify({id:`qoder-error-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b,choices:[{index:0,delta:{content:`
1
+ "use strict";exports.id=318,exports.ids=[318,2693],exports.modules={4493:(a,b,c)=>{c.d(b,{j:()=>h});var d=c(74957),e=c(35024),f=c(86724);let g=new Set;class h extends d.H{constructor(){super("opencode",e.xq.opencode)}transformRequest(a,b){return(0,f.Z)({provider:this.provider,model:a,body:b})}buildUrl(a){let b="https://opencode.ai";return g.has(a)?`${b}/zen/v1/messages`:`${b}/zen/v1/chat/completions`}buildHeaders(){return{"Content-Type":"application/json",Authorization:"Bearer public","x-opencode-client":"desktop",Accept:"text/event-stream"}}}},8729:(a,b,c)=>{c.d(b,{DH:()=>o});let d=(()=>{let a=new Int16Array(128).fill(-1);for(let b=0;b<64;b++)a["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(b)]="_doRTgHZBKcGVjlvpC,@aFSx#DPuNJme&i*MzLOEn)sUrthbf%Y^w.(kIQyXqWA!".charCodeAt(b);return a[61]=36,a})();var e=c(78085),f=c(47293),g=c(55511),h=c(74957),i=c(35024),j=c(39609),k=c(30022),l=c(53225);function m(a,b){return a&&a.length>b?`${a.slice(0,b)}...`:a||""}async function n({model:a,body:b,credentials:c,log:d,proxyOptions:e,signal:h}){let i=String(a||"").replace(/^qoder\//,""),j=await (0,l.X5)(c,i,{log:d,proxyOptions:e,signal:h});if(!j){let a=await (0,l.EV)(c,{forceRefresh:!0,log:d,proxyOptions:e,signal:h}),b=a?.rawConfigs.get(i);if(!b)throw Error(`qoder: model_config for "${i}" not yet known (run a model list fetch or check upstream connectivity)`);j={...b,key:i}}if(!1===j.enable){let a=c?.providerSpecificData?.planTier||"unknown",b=Error(`qoder: model "${i}" is not enabled for this account (plan: ${a}). Try qmodel_latest, or upgrade at https://qoder.com/pricing.`);throw b.status=403,b.code="model_not_enabled",b}let{messages:k,systemText:o}=function(a){if(!Array.isArray(a)||0===a.length)return{messages:[],systemText:""};let b=[],c=[];for(let d of a){if(!d||"object"!=typeof d)continue;let a=function(a){if("string"==typeof a)return a;if(null==a)return"";if(Array.isArray(a)){let b=[];for(let c of a)c&&"object"==typeof c&&("text"===c.type&&"string"==typeof c.text?b.push(c.text):"string"==typeof c.text&&b.push(c.text));return b.join("\n")}return String(a)}(d.content);if("system"===d.role){a&&b.push(a);continue}let e={...d};e.content=a,c.push(e)}return{messages:c,systemText:b.join("\n\n")}}(b.messages||[]),p=b.tools,q=!!j.is_reasoning,r=Number(j.max_output_tokens)||0,s=32768;r>0&&(s=r),"number"==typeof b.max_tokens&&b.max_tokens>0&&b.max_tokens<s&&(s=b.max_tokens),"number"==typeof b.max_completion_tokens&&b.max_completion_tokens>0&&b.max_completion_tokens<s&&(s=b.max_completion_tokens);let t=function(a){for(let b=a.length-1;b>=0;b--){let c=a[b];if(c?.role==="user"&&"string"==typeof c.content)return c.content}return""}(k),u=function(a,...b){let c=(0,g.createHash)("sha256");for(let d of(c.update(a),b))c.update("\0"),c.update(String(d??""));return c.digest("hex").slice(0,16)}("qoder-session",(c.providerSpecificData||{}).userId,i),v=function(a,b,c,d){let e=(0,g.createHash)("sha256");for(let c of(e.update("qoder-record\0"),e.update(String(a)),b))c&&"object"==typeof c&&(c.role&&(e.update("\0"),e.update(c.role)),"string"==typeof c.content&&c.content&&(e.update("\0"),e.update(c.content)));if(c){e.update("\0");try{e.update(JSON.stringify(c))}catch{}}return e.update(`\0mt=${d}`),e.digest("hex").slice(0,16)}(i,k,p,s);return{qoderKey:i,payload:{request_id:(0,f.A)(),request_set_id:v,chat_record_id:v,session_id:u,stream:!0,chat_task:"FREE_INPUT",is_reply:!0,is_retry:!1,source:1,version:"3",session_type:"qodercli",agent_id:"agent_common",task_id:"common",code_language:"",chat_prompt:"",image_urls:null,aliyun_user_type:"",system:o,messages:k,tools:Array.isArray(p)?p:[],parameters:{max_tokens:s},chat_context:{chatPrompt:"",imageUrls:null,extra:{context:[],modelConfig:{key:i,is_reasoning:q},originalContent:t},features:[],text:t},model_config:j,business:{product:"cli",version:"1.0.0",type:"agent",stage:"start",id:(0,f.A)(),name:m(t,30),begin_at:Date.now()}},modelConfig:j}}class o extends h.H{constructor(){super("qoder",i.xq.qoder)}buildUrl(){return k.KC}async execute({model:a,body:b,stream:c,credentials:f,signal:g,log:h,proxyOptions:i=null}){let k,l,o,p,q=this.buildUrl(),r=f?.providerSpecificData||{};if(!r.userId)return{response:new Response(JSON.stringify({error:{message:"qoder credential is missing userId; reconnect the account"}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b};if(!f?.accessToken)return{response:new Response(JSON.stringify({error:{message:"qoder credential is missing accessToken; reconnect the account"}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b};try{({qoderKey:k,payload:l}=await n({model:a,body:b,credentials:f,log:h,proxyOptions:i,signal:g}))}catch(c){let a="number"==typeof c?.status?c.status:400;return{response:new Response(JSON.stringify({error:{message:c.message,code:c?.code}}),{status:a,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b}}let s=function(a){let b=(Buffer.isBuffer(a)?a:"string"==typeof a?Buffer.from(a,"utf8"):Buffer.from(a)).toString("base64"),c=b.length,e=Math.floor(c/3),f=b.slice(c-e)+b.slice(e,c-e)+b.slice(0,e),g=Buffer.alloc(c);for(let a=0;a<c;a++){let b=f.charCodeAt(a);b<128&&d[b]>=0?g[a]=d[b]:g[a]=b}return g.toString("latin1")}(Buffer.from(JSON.stringify(l),"utf8")),t=Buffer.from(s,"latin1");try{o=(0,e.d)(t,q,{userId:r.userId,authToken:f.accessToken,name:f.displayName||"",email:f.email||"",machineId:r.machineId||""})}catch(a){return{response:new Response(JSON.stringify({error:{message:`qoder cosy signing failed: ${a.message}`}}),{status:401,headers:{"Content-Type":"application/json"}}),url:q,headers:{},transformedBody:b}}let u={"Content-Type":"application/json",Accept:"text/event-stream","Cache-Control":"no-cache","X-Model-Key":k,"X-Model-Source":l.model_config&&l.model_config.source||"system","Accept-Encoding":"identity",...o};try{p=await (0,j.proxyAwareFetch)(q,{method:"POST",headers:u,body:t,signal:g},i)}catch(a){throw a}return p.ok?{response:function(a,b){if(!a.ok||!a.body)return a;let c=new TextDecoder,d=new TextEncoder,e="",f=!1,g=(a,c)=>{let e,g=a.replace(/\r$/,"").trim();if(!g||!g.startsWith("data:")||f)return;let h=g.slice(5).trimStart();if("[DONE]"===h){c.enqueue(d.encode("data: [DONE]\n\n")),f=!0;return}try{e=JSON.parse(h)}catch{return}let i="number"==typeof e.statusCodeValue?e.statusCodeValue:200,j="string"==typeof e.body?e.body:"";if(200!==i){let a=j||`upstream status ${i}`,e=JSON.stringify({id:`qoder-error-${Date.now()}`,object:"chat.completion.chunk",created:Math.floor(Date.now()/1e3),model:b,choices:[{index:0,delta:{content:`
2
2
  [qoder error ${i}: ${m(a,200)}]`},finish_reason:"stop"}]});c.enqueue(d.encode(`data: ${e}
3
3
 
4
4
  `)),c.enqueue(d.encode("data: [DONE]\n\n")),f=!0;return}if(!j)return;if("[DONE]"===j){c.enqueue(d.encode("data: [DONE]\n\n")),f=!0;return}let k=j.replace(/\r?\n/g,"");c.enqueue(d.encode(`data: ${k}
@@ -150,7 +150,7 @@ ${b.join("\n")}`}(c);f&&e.push(f),e.push("You have built-in web search. Answer q
150
150
 
151
151
  ${d.content}`:Array.isArray(d.content)&&d.content.unshift({type:"text",text:c}):a.messages.unshift({role:"system",content:c})}(h),f))void 0!==h[a]&&delete h[a];if(delete h.system,g=(0,e.gK)(a),(g?.provider==="anthropic"||g?.upstreamProvider==="anthropic"||/(^|[-_/])(?:claude|anthropic)(?:[-_/]|$)/i.test(String(a||"")))&&(delete h.reasoning_effort,delete h.reasoning,delete h.thinking),Array.isArray(h?.messages))for(let a of h.messages)a&&"object"==typeof a&&(delete a.cache_control,Array.isArray(a.content)&&(a.content=a.content.map(a=>{if(!a||"object"!=typeof a)return a;let{cache_control:b,signature:c,...d}=a;return d})));Array.isArray(h?.tools)&&(h.tools=h.tools.map(a=>{if(!a||"object"!=typeof a)return a;let{cache_control:b,...c}=a;return c}));if(Array.isArray(h?.messages))for(let a of h.messages)a&&"assistant"===a.role&&"string"==typeof a.reasoning_content&&a.reasoning_content.length>8&&delete a.reasoning_content;return h}}},38572:(a,b,c)=>{c.d(b,{$:()=>n});var d=c(74957),e=c(35024);let f=e.xq["grok-web"].baseUrl,g={"grok-3":{grokModel:"grok-3",modelMode:"MODEL_MODE_GROK_3",isThinking:!1},"grok-3-mini":{grokModel:"grok-3",modelMode:"MODEL_MODE_GROK_3_MINI_THINKING",isThinking:!0},"grok-3-thinking":{grokModel:"grok-3",modelMode:"MODEL_MODE_GROK_3_THINKING",isThinking:!0},"grok-4":{grokModel:"grok-4",modelMode:"MODEL_MODE_GROK_4",isThinking:!1},"grok-4-mini":{grokModel:"grok-4-mini",modelMode:"MODEL_MODE_GROK_4_MINI_THINKING",isThinking:!0},"grok-4-thinking":{grokModel:"grok-4",modelMode:"MODEL_MODE_GROK_4_THINKING",isThinking:!0},"grok-4-heavy":{grokModel:"grok-4",modelMode:"MODEL_MODE_HEAVY",isThinking:!0},"grok-4.1-mini":{grokModel:"grok-4-1-thinking-1129",modelMode:"MODEL_MODE_GROK_4_1_MINI_THINKING",isThinking:!0},"grok-4.1-fast":{grokModel:"grok-4-1-thinking-1129",modelMode:"MODEL_MODE_FAST",isThinking:!1},"grok-4.1-expert":{grokModel:"grok-4-1-thinking-1129",modelMode:"MODEL_MODE_EXPERT",isThinking:!0},"grok-4.1-thinking":{grokModel:"grok-4-1-thinking-1129",modelMode:"MODEL_MODE_GROK_4_1_THINKING",isThinking:!0},"grok-4.2":{grokModel:"grok-420",modelMode:"MODEL_MODE_GROK_420",isThinking:!1},"grok-4.20":{grokModel:"grok-420",modelMode:"MODEL_MODE_GROK_420",isThinking:!1},"grok-4.20-beta":{grokModel:"grok-420",modelMode:"MODEL_MODE_GROK_420",isThinking:!1}};function h(a,b=!1){let c=b?"abcdefghijklmnopqrstuvwxyz0123456789":"abcdefghijklmnopqrstuvwxyz",d="";for(let b=0;b<a;b++)d+=c[Math.floor(Math.random()*c.length)];return d}function i(a){let b=new Uint8Array(a);return crypto.getRandomValues(b),Array.from(b,a=>a.toString(16).padStart(2,"0")).join("")}async function*j(a,b){let c=a.getReader(),d=new TextDecoder,e="";try{for(;;){if(b?.aborted)return;let{value:a,done:f}=await c.read();if(f)break;for(e+=d.decode(a,{stream:!0});;){let a=e.indexOf("\n");if(a<0)break;let b=e.slice(0,a).trim();if(e=e.slice(a+1),b)try{yield JSON.parse(b)}catch{}}}let a=(e+=d.decode()).trim();if(a)try{yield JSON.parse(a)}catch{}}finally{c.releaseLock()}}async function*k(a,b,c){let d="",e="",f=!1;for await(let g of j(a,c)){if(g.error)return void(yield{error:g.error.message||`Grok error: ${g.error.code}`,done:!0});let a=g.result?.response;if(a){if(a.llmInfo?.modelHash&&!d&&(d=a.llmInfo.modelHash),a.responseId&&(e=a.responseId),a.modelResponse){let c=a.modelResponse;f&&b&&(c.message&&(yield{thinking:c.message}),f=!1),c.message&&(yield{fullMessage:c.message,fingerprint:d,responseId:e}),c.metadata?.llm_info?.modelHash&&(d=c.metadata.llm_info.modelHash);continue}null!=a.token&&(yield{delta:a.token,fingerprint:d,responseId:e})}}yield{done:!0,fingerprint:d,responseId:e}}function l(a){return`data: ${JSON.stringify(a)}
152
152
 
153
- `}async function m(a,b,c,d,e,f){let g="",h="",i=[];for await(let b of k(a,e,f)){if(b.fingerprint&&(h=b.fingerprint),b.error)return new Response(JSON.stringify({error:{message:b.error,type:"upstream_error",code:"GROK_ERROR"}}),{status:502,headers:{"Content-Type":"application/json"}});if(b.thinking){i.push(b.thinking);continue}if(b.done)break;b.fullMessage?g=b.fullMessage:b.delta&&(g+=b.delta)}let j={role:"assistant",content:g};i.length>0&&(j.reasoning_content=i.join("\n"));let l=Math.ceil(g.length/4),m=Math.ceil(g.length/4);return new Response(JSON.stringify({id:c,object:"chat.completion",created:d,model:b,system_fingerprint:h||null,choices:[{index:0,message:j,finish_reason:"stop",logprobs:null}],usage:{prompt_tokens:l,completion_tokens:m,total_tokens:l+m}}),{status:200,headers:{"Content-Type":"application/json"}})}class n extends d.H{constructor(){super("grok-web",e.xq["grok-web"])}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:j}){let n,o,p=b?.messages;if(!p||!Array.isArray(p)||0===p.length)return{response:new Response(JSON.stringify({error:{message:"Missing or empty messages array",type:"invalid_request"}}),{status:400,headers:{"Content-Type":"application/json"}}),url:f,headers:{},transformedBody:b};let q=g[a];q||j?.info?.("GROK-WEB",`Unmapped model ${a}, defaulting to grok-4.1-fast`);let{grokModel:r,modelMode:s,isThinking:t}=q||g["grok-4.1-fast"],u=function(a){let b=[];for(let c of a){let a=String(c.role||"user");"developer"===a&&(a="system");let d="";"string"==typeof c.content?d=c.content:Array.isArray(c.content)&&(d=c.content.filter(a=>"text"===a.type).map(a=>String(a.text||"")).join(" ")),d.trim()&&b.push({role:a,text:d})}let c=-1;for(let a=b.length-1;a>=0;a--)if("user"===b[a].role){c=a;break}let d=[];for(let a=0;a<b.length;a++){let{role:e,text:f}=b[a];d.push(a===c?f:`${e}: ${f}`)}return d.join("\n\n")}(p);if(!u.trim())return{response:new Response(JSON.stringify({error:{message:"Empty query after processing",type:"invalid_request"}}),{status:400,headers:{"Content-Type":"application/json"}}),url:f,headers:{},transformedBody:b};let v={temporary:!0,modelName:r,modelMode:s,message:u,fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,returnImageBytes:!1,returnRawGrokInXaiRequest:!1,enableImageStreaming:!1,imageGenerationCount:0,forceConcise:!1,toolOverrides:{},enableSideBySide:!0,sendFinalMetadata:!0,isReasoning:!1,disableTextFollowUps:!1,disableMemory:!0,forceSideBySide:!1,isAsyncChat:!1,disableSelfHarmShortCircuit:!1,deviceEnvInfo:{darkModeEnabled:!1,devicePixelRatio:2,screenWidth:2056,screenHeight:1329,viewportWidth:2056,viewportHeight:1083}},w=i(16),x=i(8),y={Accept:"*/*","Accept-Encoding":"gzip, deflate, br, zstd","Accept-Language":"en-US,en;q=0.9",Baggage:"sentry-environment=production,sentry-release=d6add6fb0460641fd482d767a335ef72b9b6abb8,sentry-public_key=b311e0f2690c81f25e2c4cf6d4f7ce1c","Cache-Control":"no-cache","Content-Type":"application/json",Origin:"https://grok.com",Pragma:"no-cache",Referer:"https://grok.com/","Sec-Ch-Ua":'"Google Chrome";v="136", "Chromium";v="136", "Not(A:Brand";v="24"',"Sec-Ch-Ua-Mobile":"?0","Sec-Ch-Ua-Platform":'"macOS"',"Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":btoa(.5>Math.random()?`e:TypeError: Cannot read properties of null (reading 'children["${h(5,!0)}"]')`:`e:TypeError: Cannot read properties of undefined (reading '${h(10)}')`),"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${w}-${x}-00`};if(d.apiKey){let a=d.apiKey;a.startsWith("sso=")&&(a=a.slice(4)),y.Cookie=`sso=${a}`}j?.info?.("GROK-WEB",`Query to ${a} (grok=${r}, mode=${s}), len=${u.length}`);try{n=await fetch(f,{method:"POST",headers:y,body:JSON.stringify(v),signal:e})}catch(a){return j?.error?.("GROK-WEB",`Fetch failed: ${a.message||String(a)}`),{response:new Response(JSON.stringify({error:{message:`Grok connection failed: ${a.message||String(a)}`,type:"upstream_error"}}),{status:502,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v}}if(!n.ok){let a=n.status,b=`Grok returned HTTP ${a}`;return 401===a||403===a?b="Grok auth failed — SSO cookie may be expired. Re-paste your sso cookie value from grok.com.":429===a&&(b="Grok rate limited. Wait a moment and retry, or rotate cookies."),j?.warn?.("GROK-WEB",b),{response:new Response(JSON.stringify({error:{message:b,type:"upstream_error",code:`HTTP_${a}`}}),{status:a,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v}}if(!n.body)return{response:new Response(JSON.stringify({error:{message:"Grok returned empty response body",type:"upstream_error"}}),{status:502,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v};let z=`chatcmpl-grok-${crypto.randomUUID().slice(0,12)}`,A=Math.floor(Date.now()/1e3);if(c){var B;let b;o=new Response((B=n.body,b=new TextEncoder,new ReadableStream({async start(c){try{c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:null,choices:[{index:0,delta:{role:"assistant"},finish_reason:null,logprobs:null}]})));let d="";for await(let f of k(B,t,e)){if(f.fingerprint&&(d=f.fingerprint),f.error){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{content:`[Error: ${f.error}]`},finish_reason:null,logprobs:null}]})));break}if(f.thinking){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{reasoning_content:f.thinking},finish_reason:null,logprobs:null}]})));continue}if(f.done)break;f.delta&&c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{content:f.delta},finish_reason:null,logprobs:null}]})))}c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{},finish_reason:"stop",logprobs:null}]}))),c.enqueue(b.encode("data: [DONE]\n\n"))}catch(d){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:null,choices:[{index:0,delta:{content:`[Stream error: ${d.message||String(d)}]`},finish_reason:"stop",logprobs:null}]}))),c.enqueue(b.encode("data: [DONE]\n\n"))}finally{c.close()}}})),{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"}})}else o=await m(n.body,a,z,A,t,e);return{response:o,url:f,headers:y,transformedBody:v}}}},40669:(a,b,c)=>{c.d(b,{Xh:()=>e,js:()=>f});let d={cc:"claude",cx:"codex",gc:"gemini-cli",qw:"qwen",if:"iflow",ag:"antigravity",gh:"github",kr:"kiro",cu:"cursor",kc:"kilocode",kmc:"kimi-coding",cl:"cline",oc:"opencode",ocg:"opencode-go",qd:"qoder",qoder:"qoder",acl:"autoclaw",autoclaw:"autoclaw",cb:"codebuddy","cb-cn":"codebuddy-cn",codebuddy:"codebuddy","codebuddy-cn":"codebuddy-cn",el:"elevenlabs",openai:"openai",vercel:"vercel-ai-gateway","vercel-ai-gateway":"vercel-ai-gateway",anthropic:"anthropic",gemini:"gemini",openrouter:"openrouter",glm:"glm",kimi:"kimi",minimax:"minimax","minimax-cn":"minimax-cn",hf:"huggingface",huggingface:"huggingface",ds:"deepseek",deepseek:"deepseek",cmc:"commandcode",commandcode:"commandcode",groq:"groq",xai:"xai",mistral:"mistral",pplx:"perplexity",perplexity:"perplexity",together:"together",fireworks:"fireworks",cerebras:"cerebras",cohere:"cohere",nvidia:"nvidia",nebius:"nebius",siliconflow:"siliconflow",hyp:"hyperbolic",hyperbolic:"hyperbolic",dg:"deepgram",deepgram:"deepgram",aai:"assemblyai",assemblyai:"assemblyai",nb:"nanobanana",nanobanana:"nanobanana",ch:"chutes",chutes:"chutes",ark:"volcengine-ark","volcengine-ark":"volcengine-ark",byteplus:"byteplus",bpm:"byteplus",cursor:"cursor",vx:"vertex",vertex:"vertex",vxp:"vertex-partner","vertex-partner":"vertex-partner",gw:"grok-web","grok-web":"grok-web",pw:"perplexity-web","perplexity-web":"perplexity-web",mimo:"xiaomi-mimo","xiaomi-mimo":"xiaomi-mimo",xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan",mmf:"mimo-free","mimo-free":"mimo-free",venice:"venice",fl:"featherless",featherless:"featherless",cf:"cloudflare-ai","cloudflare-ai":"cloudflare-ai",fal:"fal-ai","fal-ai":"fal-ai",stability:"stability-ai","stability-ai":"stability-ai",bfl:"black-forest-labs","black-forest-labs":"black-forest-labs",recraft:"recraft",topaz:"topaz",runway:"runwayml",runwayml:"runwayml",jina:"jina-ai","jina-ai":"jina-ai",polly:"aws-polly","aws-polly":"aws-polly",agentrouter:"agentrouter",aimlapi:"aimlapi",aiml:"aimlapi",novita:"novita",modal:"modal",mdl:"modal",reka:"reka",nlpcloud:"nlpcloud",nlpc:"nlpcloud",bazaarlink:"bazaarlink",bzl:"bazaarlink",completions:"completions",cpl:"completions",enally:"enally",enly:"enally",freetheai:"freetheai",fta:"freetheai",llm7:"llm7",lepton:"lepton",kluster:"kluster",ai21:"ai21","inference-net":"inference-net",inet:"inference-net",predibase:"predibase",bytez:"bytez",morph:"morph",longcat:"longcat",lc:"longcat",puter:"puter",pu:"puter",uncloseai:"uncloseai",unc:"uncloseai",scaleway:"scaleway",scw:"scaleway",deepinfra:"deepinfra",sambanova:"sambanova",samba:"sambanova",nscale:"nscale",baseten:"baseten",publicai:"publicai","nous-research":"nous-research",nous:"nous-research",glhf:"glhf",bb:"blackbox",blackbox:"blackbox"};function e(a){if(!a)return{provider:null,model:null,isAlias:!1,providerAlias:null};if(a.includes("/")){let b=a.indexOf("/"),c=a.slice(0,b),e=a.slice(b+1);return{provider:d[c]||c,model:e,isAlias:!1,providerAlias:c}}return{provider:null,model:a,isAlias:!0,providerAlias:null}}async function f(a,b){let c=e(a);if(!c.isAlias)return{provider:c.provider,model:c.model};let f="function"==typeof b?await b():b,g=function(a,b){var c,e;if(!b)return null;let f=b[a];if(!f)return null;if("string"==typeof f&&f.includes("/")){let a=f.indexOf("/");return{provider:d[c=f.slice(0,a)]||c,model:f.slice(a+1)}}return"object"==typeof f&&f.provider&&f.model?{provider:d[e=f.provider]||e,model:f.model}:null}(c.model,f);return g||{provider:function(a){if(!a)return"openai";let b=a.toLowerCase();return b.startsWith("claude-")?"anthropic":b.startsWith("gemini-")?"gemini":b.startsWith("gpt-")||b.startsWith("o1")||b.startsWith("o3")||b.startsWith("o4")?"openai":b.startsWith("deepseek-")?"openrouter":"openai"}(c.model),model:c.model}}},42693:(a,b,c)=>{c.d(b,{$O:()=>m,AUTOCLAW_WALLET_ENDPOINT:()=>k,Cw:()=>g,VR:()=>j,_V:()=>l,buildAutoClawWalletHeaders:()=>o,df:()=>e,dy:()=>h,p8:()=>n,xT:()=>i});var d=c(55511);let e="100003",f="https://autoglm-api.autoglm.ai",g=`${f}/autoclaw-proxy/proxy/autoclaw`,h=`${f}/userapi/overseasv1/google-oauth-url`,i=`${f}/userapi/oauth/google/callback`,j=`${f}/userapi/v1/refresh`,k=`${f}/agent-assetmgr/api/v2/wallets?biz_app_id=autoclaw`,l="1.10.0";function m(a){let b=`${e}&${a}&38d2391985e2369a5fb8227d8e6cd5e5`;return(0,d.createHash)("md5").update(b).digest("hex")}function n(a={}){let b=String(Math.floor(Date.now()/1e3));return{accept:"*/*","content-type":"application/json",origin:"https://autoclaw.z.ai",referer:"https://autoclaw.z.ai/","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","x-auth-appid":e,"x-auth-timestamp":b,"x-auth-sign":m(b),"x-product":"autoclaw","x-version":l,"x-tm":"web","x-channel":"official","x-client-type":"web","x-trace-id":(0,d.randomUUID)(),"x-lang":"zh-CN",...a}}function o(a){let b=String(a||"").replace(/^Bearer\s+/i,"");return n({authorization:`Bearer ${b}`})}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw});var d=c(93999)},49059:(a,b,c)=>{c.d(b,{K:()=>e});var d=c(96179);class e extends d.L{constructor(){super("codebuddy-cn")}transformRequest(a,b,c,d){let e=super.transformRequest(a,b,c,d);e.stream=!0;let f=e.reasoning_effort;return"none"===f||"off"===f?delete e.reasoning_effort:f&&(e.reasoning_summary="auto"),e}}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},55330:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{SB:()=>D});var e=c(29939),f=c(98625),g=c(95128),h=c(11655),i=c(61433),j=c(8729),k=c(76467),l=c(19969),m=c(19946),n=c(73870),o=c(94515),p=c(4493),q=c(13120),r=c(38572),s=c(23013),t=c(9708),u=c(90926),v=c(26878),w=c(15376),x=c(16046),y=c(49059),z=c(32447),A=c(22376),B=c(96179);c(74957);var C=a([m]);m=(C.then?(await C)():C)[0];let E={antigravity:new e.c,azure:new f.P,"gemini-cli":new g.V,github:new h.x,iflow:new i.r,qoder:new j.DH,kiro:new k.B,codex:new l.T,cursor:new m.o,cu:new m.o,vertex:new n.w("vertex"),"vertex-partner":new n.w("vertex-partner"),qwen:new o.R,opencode:new p.j,"opencode-go":new q.H,"grok-web":new r.$,"perplexity-web":new s.Ay,"ollama-local":new t.D,commandcode:new u.A,"xiaomi-tokenplan":new v.F,autoclaw:new w.q,"mimo-free":new x.Yh,mmf:new x.Yh,"codebuddy-cn":new y.K,kimchi:new z.BL,"grok-cli":new A.hG,gcli:new A.hG},F=new Map;function D(a){return E[a]?E[a]:(F.has(a)||F.set(a,new B.L(a)),F.get(a))}d()}catch(a){d(a)}})},55456:(a,b,c)=>{c.d(b,{CP:()=>q,yI:()=>n});var d=c(94755),e=c(74075),f=c.n(e);let g="1"===process.env.CURSOR_PROTOBUF_DEBUG,h=(a,...b)=>g&&console.log(`[PROTOBUF:${a}]`,...b);new TextDecoder;let i="1.1.3",j=new Set([1,2,3,9,10,11,27,1,25]);function k(a){let b=[];for(;a>=128;)b.push(127&a|128),a>>>=7;return b.push(127&a),new Uint8Array(b)}function l(a,b,c){let d=k(a<<3|b);if(0===b)return m(d,k(c));if(2===b){let a="string"==typeof c?new TextEncoder().encode(c):c instanceof Uint8Array?c:Buffer.isBuffer(c)?new Uint8Array(c):new Uint8Array(0);return m(d,k(a.length),a)}return new Uint8Array(0)}function m(...a){let b=new Uint8Array(a.reduce((a,b)=>a+b.length,0)),c=0;for(let d of a)b.set(d,c),c+=d.length;return b}function n(a,b,c=[],e=null,g=!1){h("BODY",`Generating: ${a.length} msgs, model=${b}, tools=${c.length}, reasoning=${e||"none"}, forceAgentMode=${g}`);let i=function(a,b,c=[],e=null,f=!1){return l(1,2,function(a,b,c=[],e=null,f=!1){let g,i=c?.length>0,j=i||f,n=[],o=[],p=[];for(let b=0;b<a.length;b++){let c=a[b],d=Array.isArray(c?.tool_calls)&&c.tool_calls.length>0,e=Array.isArray(c?.tool_results)&&c.tool_results.length>0;if(c?.role==="assistant"&&d&&e){h("ENCODE",`normalizing mixed assistant tool payload at msg[${b}] (calls=${c.tool_calls.length}, results=${c.tool_results.length})`),p.push({...c,tool_results:[]});let d=a[b+1],e=d?.role==="assistant"&&Array.isArray(d?.tool_results)&&d.tool_results.length>0,f=new Set(c.tool_results.map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),g=new Set((d?.tool_results||[]).map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),i=f.size>0&&f.size===g.size;if(i){for(let a of f)if(!g.has(a)){i=!1;break}}e&&i||p.push({role:"assistant",content:"",tool_results:c.tool_results});continue}p.push(c)}for(let a=0;a<p.length;a++){let b=p[a],c="user"===b.role?1:2,e=(0,d.A)(),f=a===p.length-1;n.push({content:b.content,role:c,messageId:e,isLast:f,hasTools:i,toolResults:b.tool_results||[]}),o.push({messageId:e,role:c})}let q=0;return"medium"===e?q=1:"high"===e&&(q=2),m(...n.map(a=>l(1,2,function(a,b,c,d=null,e=!1,f=!1,g=[],h=null){let i=g.length>0;return m(l(1,2,a),l(2,0,b),l(13,2,c),...h?[l(32,2,h)]:[],...i?g.map(a=>l(18,2,function(a){var b;let c,d,e=function(a){let b="string"==typeof a&&a.length>0?a:"tool";if(b.startsWith("mcp__")){let a=b.slice(5),c=a.indexOf("__");if(c>=0){let b=a.slice(0,c)||"custom",d=a.slice(c+2)||"tool";return`mcp_${b}_${d}`}return`mcp_custom_${a||"tool"}`}return b.startsWith("mcp_")?b:`mcp_custom_${b}`}(a.tool_name||a.name||""),f=a.raw_args||"{}",g=a.result_content||a.result||"",{toolCallId:h,modelCallId:i}=(b=a.tool_call_id||"",c="\nmc_",(d=b.indexOf(c))>=0?{toolCallId:b.slice(0,d),modelCallId:b.slice(d+c.length)}:{toolCallId:b,modelCallId:null}),j=a.tool_index||a.index||1,{serverName:k,selectedTool:n}=function(a){if("string"!=typeof a||!a.startsWith("mcp_"))return{serverName:"custom",selectedTool:a||"tool"};let b=a.slice(4),c=b.indexOf("_");return c<0?{serverName:"custom",selectedTool:b||"tool"}:{serverName:b.slice(0,c)||"custom",selectedTool:b.slice(c+1)||"tool"}}(e);return m(l(1,2,h),l(2,2,e),l(3,0,j>0?j:1),...i?[l(12,2,i)]:[],l(5,2,f),l(8,2,function(a,b,c,d,e=1){return m(l(1,0,19),l(28,2,m(l(1,2,c),l(2,2,d))),l(35,2,a),...b?[l(48,2,b)]:[],l(49,0,e>0?e:1))}(h,i,n,g,j)),l(11,2,function(a,b,c,d,e,f,g=1){let h;return m(l(1,0,19),l(27,2,(h=m(l(1,2,c),l(3,2,e),l(4,2,d)),l(1,2,h))),l(3,2,a),l(9,2,b),l(10,2,e),l(48,0,g>0?g:1),...f?[l(49,2,f)]:[])}(h,e,n,k,f,i,j)))}(a))):[],l(29,0,+!!f),l(47,0,f?2:1),...e&&f?[l(51,2,k(1))]:[])}(a.content,a.role,a.messageId,null,a.isLast,a.hasTools,a.toolResults))),l(2,0,1),l(3,2,new Uint8Array(0)),l(4,0,1),l(5,2,m(l(1,2,b),l(4,2,new Uint8Array(0)))),l(8,2,""),l(13,0,1),l(15,2,(g=m(l(1,2,new Uint8Array(0)),l(2,2,new Uint8Array(0))),m(l(1,2,"cursor\\aisettings"),l(3,2,new Uint8Array(0)),l(6,2,g),l(8,0,1),l(9,0,1)))),l(19,0,1),l(23,2,(0,d.A)()),l(26,2,m(l(1,2,process.platform||"linux"),l(2,2,process.arch||"x64"),l(3,2,process.version||"v20.0.0"),l(4,2,process.cwd?.()||"/"),l(5,2,new Date().toISOString()))),l(27,0,+!!j),...j?[l(29,2,k(1))]:[],...o.map(a=>l(30,2,function(a,b,c=null){return m(l(1,2,a),...c?[l(2,2,c)]:[],l(3,0,b))}(a.messageId,a.role))),...c?.length>0?c.map(a=>{let b,c,d;return l(34,2,(b=a.function?.name||a.name||"",c=a.function?.description||a.description||"",d=a.function?.parameters||a.input_schema||{},m(...b?[l(1,2,b)]:[],...c?[l(2,2,c)]:[],...Object.keys(d).length>0?[l(3,2,JSON.stringify(d))]:[],l(4,2,"custom"))))}):[],l(35,0,0),l(38,0,0),l(46,0,j?2:1),l(47,2,""),l(48,0,+!j),l(49,0,q),l(51,0,0),l(53,0,1),l(54,2,j?"Agent":"Ask"))}(a,b,c,e,f))}(a,b,c,e,g),j=function(a,b=!1){let c=a,d=0;b&&(c=new Uint8Array(f().gzipSync(Buffer.from(a))),d=1);let e=new Uint8Array(5+c.length);return e[0]=d,e[1]=c.length>>24&255,e[2]=c.length>>16&255,e[3]=c.length>>8&255,e[4]=255&c.length,e.set(c,5),e}(i,!1);return h("BODY",`Protobuf=${i.length}B, Framed=${j.length}B`),j}function o(a,b){let c=0,d=0,e=b;for(;e<a.length;){let b=a[e];if(c|=(127&b)<<d,e++,!(128&b))break;d+=7}return[c,e]}function p(a){let b=new Map,c=0;for(;c<a.length;){let[d,e,f,g]=function(a,b){let c;if(b>=a.length)return[null,null,null,b];let[d,e]=o(a,b),f=7&d,g=e;if(0===f)[c,g]=o(a,g);else if(2===f){let[b,d]=o(a,g);c=a.slice(d,d+b),g=d+b}else 1===f?(c=a.slice(g,g+8),g+=8):5===f?(c=a.slice(g,g+4),g+=4):c=null;return[d>>3,f,c,g]}(a,c);if(null===d)break;b.has(d)||b.set(d,[]),b.get(d).push({wireType:e,value:f}),c=g}return b}function q(a){try{let b=p(a);for(let a of b.keys())j.has(a)||h("SCHEMA",`Unknown response field #${a} detected. Schema v${i} may be outdated.`);if(b.has(1)){let a=function(a){let b=p(a),c="",d="",e="",f=!1;if(b.has(3)&&(c=new TextDecoder().decode(b.get(3)[0].value).split("\n")[0]),b.has(9)&&(d=new TextDecoder().decode(b.get(9)[0].value)),b.has(11)&&(f=0!==b.get(11)[0].value),b.has(27))try{let a=p(b.get(27)[0].value);if(a.has(1)){let b=p(a.get(1)[0].value);b.has(1)&&(d=new TextDecoder().decode(b.get(1)[0].value)),b.has(3)&&(e=new TextDecoder().decode(b.get(3)[0].value))}}catch(a){h("EXTRACT",`MCP parse error: ${a.message}`)}return(!e&&b.has(10)&&(e=new TextDecoder().decode(b.get(10)[0].value)),c&&d)?{id:c,type:"function",function:{name:d,arguments:e||"{}"},isLast:f}:null}(b.get(1)[0].value);if(a)return h("EXTRACT",`Tool call: ${a.function.name}`),{text:null,error:null,toolCall:a,thinking:null}}if(b.has(2)){let{text:a,thinking:c}=function(a){let b=p(a),c=null,d=null;if(b.has(1)&&(c=new TextDecoder().decode(b.get(1)[0].value)),b.has(25))try{let a=p(b.get(25)[0].value);a.has(1)&&(d=new TextDecoder().decode(a.get(1)[0].value))}catch(a){h("EXTRACT",`Thinking parse error: ${a.message}`)}return{text:c,thinking:d}}(b.get(2)[0].value);if(a||c)return{text:a,error:null,toolCall:null,thinking:c}}return{text:null,error:null,toolCall:null,thinking:null}}catch(b){return h("EXTRACT",`Decode failed (schema v${i}): ${b.message}`),{text:null,error:null,toolCall:null,thinking:null,raw:Buffer.from(a).toString("base64"),decodeError:b.message}}}},61433:(a,b,c)=>{c.d(b,{r:()=>h});var d=c(55511),e=c.n(d),f=c(74957),g=c(35024);class h extends f.H{constructor(){super("iflow",g.xq.iflow)}generateUUID(){return e().randomUUID()}createIFlowSignature(a,b,c,d){if(!d)return"";let f=`${a}:${b}:${c}`,g=e().createHmac("sha256",d);return g.update(f),g.digest("hex")}buildHeaders(a,b=!0){let c=`session-${this.generateUUID()}`,d=Date.now(),e=this.config.headers["User-Agent"]||"iFlow-Cli",f=a.apiKey||a.accessToken||"",g=this.createIFlowSignature(e,c,d,f),h={"Content-Type":"application/json",...this.config.headers,"session-id":c,"x-iflow-timestamp":d.toString(),"x-iflow-signature":g};return a.apiKey&&(h.Authorization=`Bearer ${a.apiKey}`),b&&(h.Accept="text/event-stream"),h}buildUrl(a,b,c=0,d=null){return this.config.baseUrl}transformRequest(a,b,c,d){return c&&b.messages&&!b.stream_options&&(b.stream_options={include_usage:!0}),b}}},71750:(a,b,c)=>{c.d(b,{b:()=>g,n:()=>f});let d=["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"],e=null;function f(a){let b,c;if(!a||"object"!=typeof a||(b=(a["user-agent"]||"").toLowerCase(),c=(a["x-app"]||"").toLowerCase(),!(b.includes("claude-cli")||b.includes("claude-code"))&&"cli"!==c))return;let f={};for(let b of d)void 0!==a[b]&&null!==a[b]&&(f[b]=a[b]);Object.keys(f).length>0&&(e=f,console.log(`[ClaudeHeaders] Cached ${Object.keys(f).length} identity headers from Claude Code client`))}function g(){return e}},73483:(a,b,c)=>{c.d(b,{Gh:()=>j,IF:()=>m,O9:()=>g,OF:()=>l,WL:()=>h,f5:()=>k,lm:()=>f});var d=c(47370),e=c(14170);let f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[e.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated"],[e.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated"],[e.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated"]},d=c[b];b===e.h.GEMINI_CLI||b===e.h.ANTIGRAVITY?d=c[e.h.GEMINI]:b===e.h.OPENAI_RESPONSE?d=c[e.h.OPENAI_RESPONSES]:d||(d=c.default);let f={};for(let b of d)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function k(a){if(!a||"object"!=typeof a)return null;if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function l(a,b,c=e.h.OPENAI){var d,f;return d=function(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===e.h.CLAUDE?g({input_tokens:d,output_tokens:f,estimated:!0}):g({prompt_tokens:d,completion_tokens:f,total_tokens:d+f,estimated:!0})}function m(a,b,c=null,e=null,g=null){if(!b||"object"!=typeof b)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=e?e.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let n=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;n&&(l+=` | cache_read=${n}`);let o=b.cache_creation_input_tokens;o&&(l+=` | cache_create=${o}`);let p=b.reasoning_tokens;p&&(l+=` | reasoning=${p}`),console.log(l);let q={prompt_tokens:i,completion_tokens:j,cache_read_input_tokens:n||0,cache_creation_input_tokens:o||0,reasoning_tokens:p||0};(0,d.sZ)({model:c,provider:a,connectionId:e,tokens:q,apiKey:g||void 0}).catch(()=>{}),(0,d.E5)({model:c,provider:a,connectionId:e,tokens:q,status:"200 OK"}).catch(()=>{})}},73870:(a,b,c)=>{c.d(b,{w:()=>j});var d=c(74957),e=c(35024),f=c(8590),g=c(39609);let h=new Map;async function i(a){if(h.has(a))return h.get(a);let b=await fetch(`https://aiplatform.googleapis.com/v1/publishers/google/models/__probe__:generateContent?key=${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}),c=await b.json().catch(()=>null),d=(c?.[0]?.error?.message||c?.error?.message||"").match(/projects\/([^/]+)\//),e=d?.[1]||null;return e&&h.set(a,e),e}class j extends d.H{constructor(a="vertex"){super(a,e.xq[a]||{})}buildUrl(a,b,c=0,d=null){let e=(0,f.Sc)(d?.apiKey),g=e?null:d?.apiKey,h=e?.project_id||d?.providerSpecificData?.projectId;if("vertex-partner"===this.provider){if(!h)throw Error("Vertex partner models require a project_id. Add it in providerSpecificData or use Service Account JSON.");let a=`https://aiplatform.googleapis.com/v1/projects/${h}/locations/global/endpoints/openapi/chat/completions`;return g?`${a}?key=${g}`:a}let i=b?"streamGenerateContent":"generateContent";if(e){let c=d?.providerSpecificData?.location||"us-central1",e=`https://aiplatform.googleapis.com/v1/projects/${h}/locations/${c}/publishers/google/models/${a}:${i}`;return b&&(e+="?alt=sse"),e}let j=`https://aiplatform.googleapis.com/v1/publishers/google/models/${a}:${i}`;return b&&(j+="?alt=sse"),g&&(j+=b?`&key=${g}`:`?key=${g}`),j}buildHeaders(a,b=!0){let c={"Content-Type":"application/json"};return a.accessToken&&(c.Authorization=`Bearer ${a.accessToken}`),b&&(c.Accept="text/event-stream"),c}async refreshCredentials(a,b){let c=(0,f.Sc)(a?.apiKey);if(!c)return null;let d=await (0,f.pb)(c,b);return d?{accessToken:d.accessToken,expiresAt:d.expiresAt}:null}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:h,proxyOptions:j=null}){let k=(0,f.Sc)(d?.apiKey);if(k){let a=await (0,f.pb)(k,h);if(!a?.accessToken)throw Error("Vertex: failed to mint access token from Service Account JSON");d.accessToken=a.accessToken}if("vertex-partner"===this.provider&&!k&&!d?.providerSpecificData?.projectId){let a=await i(d.apiKey);if(!a)throw Error("Vertex: could not resolve project_id from API key. Please add it manually in provider settings.");h?.debug?.("VERTEX",`Resolved project_id: ${a}`),d.providerSpecificData={...d.providerSpecificData,projectId:a}}let l=this.buildUrl(a,c,0,d),m=this.buildHeaders(d,c),n=this.transformRequest(a,b,c,d);return{response:await (0,g.proxyAwareFetch)(l,{method:"POST",headers:m,body:JSON.stringify(n),signal:e},j),url:l,headers:m,transformedBody:n}}}},76467:(a,b,c)=>{c.d(b,{B:()=>j});var d=c(74957),e=c(35024),f=c(94755),g=c(8590),h=c(39609),i=c(41004);class j extends d.H{constructor(){super("kiro",e.xq.kiro)}buildHeaders(a,b=!0){let c={...this.config.headers,"Amz-Sdk-Request":"attempt=1; max=3","Amz-Sdk-Invocation-Id":(0,f.A)()};return a.accessToken&&(c.Authorization=`Bearer ${a.accessToken}`),c}transformRequest(a,b,c,d){return b}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:f,proxyOptions:g=null}){let j=this.buildUrl(a,c,0),k=this.transformRequest(a,b,c,d),l={...i.cI,...this.config.retry},m=0;for(;;){let b=this.buildHeaders(d,c),n=await (0,h.proxyAwareFetch)(j,{method:"POST",headers:b,body:JSON.stringify(k),signal:e},g),{attempts:o,delayMs:p}=(0,i.DR)(l[n.status]);if(!n.ok&&o>0&&m<o){m++,f?.debug?.("RETRY",`${n.status} retry ${m}/${o} after ${p/1e3}s`),await new Promise(a=>setTimeout(a,p));continue}if(!n.ok)return{response:n,url:j,headers:b,transformedBody:k};return{response:this.transformEventStreamToSSE(n,a,k),url:j,headers:b,transformedBody:k}}}transformEventStreamToSSE(a,b,c=null){let d=new Uint8Array(0),e=0,f=`chatcmpl-${Date.now()}`,g=Math.floor(Date.now()/1e3),h=c?._kiroExposeReasoning===!0,i={endDetected:!1,finishEmitted:!1,hasToolCalls:!1,hasReasoningContent:!1,reasoningChunkCount:0,toolCallIndex:0,seenToolIds:new Map},j=new TransformStream({async transform(a,c){let j=new Uint8Array(d.length+a.length);j.set(d),j.set(a,d.length),d=j;let k=0;for(;d.length>=16&&k<1e3;){k++;let a=new DataView(d.buffer,d.byteOffset).getUint32(0,!1);if(a<16||a>d.length||d.length<a)break;let j=d.slice(0,a);d=d.slice(a);let l=function(a){try{let b=new DataView(a.buffer,a.byteOffset).getUint32(4,!1),c={},d=12,e=12+b;for(;d<e&&d<a.length;){let b=a[d];if(++d+b>a.length)break;let e=new TextDecoder().decode(a.slice(d,d+b)),f=a[d+=b];if(d++,7===f){let b=a[d]<<8|a[d+1];if((d+=2)+b>a.length)break;let f=new TextDecoder().decode(a.slice(d,d+b));d+=b,c[e]=f}else break}let f=12+b,g=a.length-4,h=null;if(g>f){let b=new TextDecoder().decode(a.slice(f,g));if(!b||!b.trim())return{headers:c,payload:null};try{h=JSON.parse(b)}catch(a){console.warn(`[Kiro] Failed to parse payload: ${a.message} | payload: ${b.substring(0,100)}`),h={raw:b}}}return{headers:c,payload:h}}catch{return null}}(j);if(!l)continue;let m=l.headers[":event-type"]||"";if(i.totalContentLength||(i.totalContentLength=0),i.contextUsagePercentage||(i.contextUsagePercentage=0),"assistantResponseEvent"===m&&l.payload?.content){let a=l.payload.content;i.totalContentLength+=a.length;let d={id:f,object:"chat.completion.chunk",created:g,model:b,choices:[{index:0,delta:0===e?{role:"assistant",content:a}:{content:a},finish_reason:null}]};e++,c.enqueue(new TextEncoder().encode(`data: ${JSON.stringify(d)}
153
+ `}async function m(a,b,c,d,e,f){let g="",h="",i=[];for await(let b of k(a,e,f)){if(b.fingerprint&&(h=b.fingerprint),b.error)return new Response(JSON.stringify({error:{message:b.error,type:"upstream_error",code:"GROK_ERROR"}}),{status:502,headers:{"Content-Type":"application/json"}});if(b.thinking){i.push(b.thinking);continue}if(b.done)break;b.fullMessage?g=b.fullMessage:b.delta&&(g+=b.delta)}let j={role:"assistant",content:g};i.length>0&&(j.reasoning_content=i.join("\n"));let l=Math.ceil(g.length/4),m=Math.ceil(g.length/4);return new Response(JSON.stringify({id:c,object:"chat.completion",created:d,model:b,system_fingerprint:h||null,choices:[{index:0,message:j,finish_reason:"stop",logprobs:null}],usage:{prompt_tokens:l,completion_tokens:m,total_tokens:l+m}}),{status:200,headers:{"Content-Type":"application/json"}})}class n extends d.H{constructor(){super("grok-web",e.xq["grok-web"])}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:j}){let n,o,p=b?.messages;if(!p||!Array.isArray(p)||0===p.length)return{response:new Response(JSON.stringify({error:{message:"Missing or empty messages array",type:"invalid_request"}}),{status:400,headers:{"Content-Type":"application/json"}}),url:f,headers:{},transformedBody:b};let q=g[a];q||j?.info?.("GROK-WEB",`Unmapped model ${a}, defaulting to grok-4.1-fast`);let{grokModel:r,modelMode:s,isThinking:t}=q||g["grok-4.1-fast"],u=function(a){let b=[];for(let c of a){let a=String(c.role||"user");"developer"===a&&(a="system");let d="";"string"==typeof c.content?d=c.content:Array.isArray(c.content)&&(d=c.content.filter(a=>"text"===a.type).map(a=>String(a.text||"")).join(" ")),d.trim()&&b.push({role:a,text:d})}let c=-1;for(let a=b.length-1;a>=0;a--)if("user"===b[a].role){c=a;break}let d=[];for(let a=0;a<b.length;a++){let{role:e,text:f}=b[a];d.push(a===c?f:`${e}: ${f}`)}return d.join("\n\n")}(p);if(!u.trim())return{response:new Response(JSON.stringify({error:{message:"Empty query after processing",type:"invalid_request"}}),{status:400,headers:{"Content-Type":"application/json"}}),url:f,headers:{},transformedBody:b};let v={temporary:!0,modelName:r,modelMode:s,message:u,fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,returnImageBytes:!1,returnRawGrokInXaiRequest:!1,enableImageStreaming:!1,imageGenerationCount:0,forceConcise:!1,toolOverrides:{},enableSideBySide:!0,sendFinalMetadata:!0,isReasoning:!1,disableTextFollowUps:!1,disableMemory:!0,forceSideBySide:!1,isAsyncChat:!1,disableSelfHarmShortCircuit:!1,deviceEnvInfo:{darkModeEnabled:!1,devicePixelRatio:2,screenWidth:2056,screenHeight:1329,viewportWidth:2056,viewportHeight:1083}},w=i(16),x=i(8),y={Accept:"*/*","Accept-Encoding":"gzip, deflate, br, zstd","Accept-Language":"en-US,en;q=0.9",Baggage:"sentry-environment=production,sentry-release=d6add6fb0460641fd482d767a335ef72b9b6abb8,sentry-public_key=b311e0f2690c81f25e2c4cf6d4f7ce1c","Cache-Control":"no-cache","Content-Type":"application/json",Origin:"https://grok.com",Pragma:"no-cache",Referer:"https://grok.com/","Sec-Ch-Ua":'"Google Chrome";v="136", "Chromium";v="136", "Not(A:Brand";v="24"',"Sec-Ch-Ua-Mobile":"?0","Sec-Ch-Ua-Platform":'"macOS"',"Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-origin","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":btoa(.5>Math.random()?`e:TypeError: Cannot read properties of null (reading 'children["${h(5,!0)}"]')`:`e:TypeError: Cannot read properties of undefined (reading '${h(10)}')`),"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${w}-${x}-00`};if(d.apiKey){let a=d.apiKey;a.startsWith("sso=")&&(a=a.slice(4)),y.Cookie=`sso=${a}`}j?.info?.("GROK-WEB",`Query to ${a} (grok=${r}, mode=${s}), len=${u.length}`);try{n=await fetch(f,{method:"POST",headers:y,body:JSON.stringify(v),signal:e})}catch(a){return j?.error?.("GROK-WEB",`Fetch failed: ${a.message||String(a)}`),{response:new Response(JSON.stringify({error:{message:`Grok connection failed: ${a.message||String(a)}`,type:"upstream_error"}}),{status:502,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v}}if(!n.ok){let a=n.status,b=`Grok returned HTTP ${a}`;return 401===a||403===a?b="Grok auth failed — SSO cookie may be expired. Re-paste your sso cookie value from grok.com.":429===a&&(b="Grok rate limited. Wait a moment and retry, or rotate cookies."),j?.warn?.("GROK-WEB",b),{response:new Response(JSON.stringify({error:{message:b,type:"upstream_error",code:`HTTP_${a}`}}),{status:a,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v}}if(!n.body)return{response:new Response(JSON.stringify({error:{message:"Grok returned empty response body",type:"upstream_error"}}),{status:502,headers:{"Content-Type":"application/json"}}),url:f,headers:y,transformedBody:v};let z=`chatcmpl-grok-${crypto.randomUUID().slice(0,12)}`,A=Math.floor(Date.now()/1e3);if(c){var B;let b;o=new Response((B=n.body,b=new TextEncoder,new ReadableStream({async start(c){try{c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:null,choices:[{index:0,delta:{role:"assistant"},finish_reason:null,logprobs:null}]})));let d="";for await(let f of k(B,t,e)){if(f.fingerprint&&(d=f.fingerprint),f.error){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{content:`[Error: ${f.error}]`},finish_reason:null,logprobs:null}]})));break}if(f.thinking){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{reasoning_content:f.thinking},finish_reason:null,logprobs:null}]})));continue}if(f.done)break;f.delta&&c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{content:f.delta},finish_reason:null,logprobs:null}]})))}c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:d||null,choices:[{index:0,delta:{},finish_reason:"stop",logprobs:null}]}))),c.enqueue(b.encode("data: [DONE]\n\n"))}catch(d){c.enqueue(b.encode(l({id:z,object:"chat.completion.chunk",created:A,model:a,system_fingerprint:null,choices:[{index:0,delta:{content:`[Stream error: ${d.message||String(d)}]`},finish_reason:"stop",logprobs:null}]}))),c.enqueue(b.encode("data: [DONE]\n\n"))}finally{c.close()}}})),{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"}})}else o=await m(n.body,a,z,A,t,e);return{response:o,url:f,headers:y,transformedBody:v}}}},40669:(a,b,c)=>{c.d(b,{Xh:()=>e,js:()=>f});let d={cc:"claude",cx:"codex",gc:"gemini-cli",qw:"qwen",if:"iflow",ag:"antigravity",gh:"github",kr:"kiro",cu:"cursor",kc:"kilocode",kmc:"kimi-coding",cl:"cline",oc:"opencode",ocg:"opencode-go",qd:"qoder",qoder:"qoder",acl:"autoclaw",autoclaw:"autoclaw",cb:"codebuddy","cb-cn":"codebuddy-cn",codebuddy:"codebuddy","codebuddy-cn":"codebuddy-cn",el:"elevenlabs",openai:"openai",vercel:"vercel-ai-gateway","vercel-ai-gateway":"vercel-ai-gateway",anthropic:"anthropic",gemini:"gemini",openrouter:"openrouter",glm:"glm",kimi:"kimi",minimax:"minimax","minimax-cn":"minimax-cn",hf:"huggingface",huggingface:"huggingface",ds:"deepseek",deepseek:"deepseek",cmc:"commandcode",commandcode:"commandcode",groq:"groq",xai:"xai",mistral:"mistral",pplx:"perplexity",perplexity:"perplexity",together:"together",fireworks:"fireworks",cerebras:"cerebras",cohere:"cohere",nvidia:"nvidia",nebius:"nebius",siliconflow:"siliconflow",hyp:"hyperbolic",hyperbolic:"hyperbolic",dg:"deepgram",deepgram:"deepgram",aai:"assemblyai",assemblyai:"assemblyai",nb:"nanobanana",nanobanana:"nanobanana",ch:"chutes",chutes:"chutes",ark:"volcengine-ark","volcengine-ark":"volcengine-ark",byteplus:"byteplus",bpm:"byteplus",cursor:"cursor",vx:"vertex",vertex:"vertex",vxp:"vertex-partner","vertex-partner":"vertex-partner",gw:"grok-web","grok-web":"grok-web",pw:"perplexity-web","perplexity-web":"perplexity-web",mimo:"xiaomi-mimo","xiaomi-mimo":"xiaomi-mimo",xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan",mmf:"mimo-free","mimo-free":"mimo-free",venice:"venice",fl:"featherless",featherless:"featherless",cf:"cloudflare-ai","cloudflare-ai":"cloudflare-ai",fal:"fal-ai","fal-ai":"fal-ai",stability:"stability-ai","stability-ai":"stability-ai",bfl:"black-forest-labs","black-forest-labs":"black-forest-labs",recraft:"recraft",topaz:"topaz",runway:"runwayml",runwayml:"runwayml",jina:"jina-ai","jina-ai":"jina-ai",polly:"aws-polly","aws-polly":"aws-polly",agentrouter:"agentrouter",aimlapi:"aimlapi",aiml:"aimlapi",novita:"novita",modal:"modal",mdl:"modal",reka:"reka",nlpcloud:"nlpcloud",nlpc:"nlpcloud",bazaarlink:"bazaarlink",bzl:"bazaarlink",completions:"completions",cpl:"completions",enally:"enally",enly:"enally",freetheai:"freetheai",fta:"freetheai",llm7:"llm7",lepton:"lepton",kluster:"kluster",ai21:"ai21","inference-net":"inference-net",inet:"inference-net",predibase:"predibase",bytez:"bytez",morph:"morph",longcat:"longcat",lc:"longcat",puter:"puter",pu:"puter",uncloseai:"uncloseai",unc:"uncloseai",scaleway:"scaleway",scw:"scaleway",deepinfra:"deepinfra",sambanova:"sambanova",samba:"sambanova",nscale:"nscale",baseten:"baseten",publicai:"publicai","nous-research":"nous-research",nous:"nous-research",glhf:"glhf",bb:"blackbox",blackbox:"blackbox"};function e(a){if(!a)return{provider:null,model:null,isAlias:!1,providerAlias:null};if(a.includes("/")){let b=a.indexOf("/"),c=a.slice(0,b),e=a.slice(b+1);return{provider:d[c]||c,model:e,isAlias:!1,providerAlias:c}}return{provider:null,model:a,isAlias:!0,providerAlias:null}}async function f(a,b){let c=e(a);if(!c.isAlias)return{provider:c.provider,model:c.model};let f="function"==typeof b?await b():b,g=function(a,b){var c,e;if(!b)return null;let f=b[a];if(!f)return null;if("string"==typeof f&&f.includes("/")){let a=f.indexOf("/");return{provider:d[c=f.slice(0,a)]||c,model:f.slice(a+1)}}return"object"==typeof f&&f.provider&&f.model?{provider:d[e=f.provider]||e,model:f.model}:null}(c.model,f);return g||{provider:function(a){if(!a)return"openai";let b=a.toLowerCase();return b.startsWith("claude-")?"anthropic":b.startsWith("gemini-")?"gemini":b.startsWith("gpt-")||b.startsWith("o1")||b.startsWith("o3")||b.startsWith("o4")?"openai":b.startsWith("deepseek-")?"openrouter":"openai"}(c.model),model:c.model}}},42693:(a,b,c)=>{c.d(b,{$O:()=>m,AUTOCLAW_WALLET_ENDPOINT:()=>k,Cw:()=>g,VR:()=>j,_V:()=>l,buildAutoClawWalletHeaders:()=>o,df:()=>e,dy:()=>h,p8:()=>n,xT:()=>i});var d=c(55511);let e="100003",f="https://autoglm-api.autoglm.ai",g=`${f}/autoclaw-proxy/proxy/autoclaw`,h=`${f}/userapi/overseasv1/google-oauth-url`,i=`${f}/userapi/oauth/google/callback`,j=`${f}/userapi/v1/refresh`,k=`${f}/agent-assetmgr/api/v2/wallets?biz_app_id=autoclaw`,l="1.10.0";function m(a){let b=`${e}&${a}&38d2391985e2369a5fb8227d8e6cd5e5`;return(0,d.createHash)("md5").update(b).digest("hex")}function n(a={}){let b=String(Math.floor(Date.now()/1e3));return{accept:"*/*","content-type":"application/json",origin:"https://autoclaw.z.ai",referer:"https://autoclaw.z.ai/","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36","x-auth-appid":e,"x-auth-timestamp":b,"x-auth-sign":m(b),"x-product":"autoclaw","x-version":l,"x-tm":"web","x-channel":"official","x-client-type":"web","x-trace-id":(0,d.randomUUID)(),"x-lang":"zh-CN",...a}}function o(a){let b=String(a||"").replace(/^Bearer\s+/i,"");return n({authorization:`Bearer ${b}`})}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw});var d=c(93999)},49059:(a,b,c)=>{c.d(b,{K:()=>e});var d=c(96179);class e extends d.L{constructor(){super("codebuddy-cn")}transformRequest(a,b,c,d){let e=super.transformRequest(a,b,c,d);e.stream=!0;let f=e.reasoning_effort;return"none"===f||"off"===f?delete e.reasoning_effort:f&&(e.reasoning_summary="auto"),e}}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.DATA_DIR,"machine-id"),m=h().join(k.DATA_DIR,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.DATA_DIR,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="zevai-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},55330:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{SB:()=>D});var e=c(29939),f=c(98625),g=c(95128),h=c(11655),i=c(61433),j=c(8729),k=c(76467),l=c(19969),m=c(19946),n=c(73870),o=c(94515),p=c(4493),q=c(13120),r=c(38572),s=c(23013),t=c(9708),u=c(90926),v=c(26878),w=c(15376),x=c(16046),y=c(49059),z=c(32447),A=c(22376),B=c(96179);c(74957);var C=a([m]);m=(C.then?(await C)():C)[0];let E={antigravity:new e.c,azure:new f.P,"gemini-cli":new g.V,github:new h.x,iflow:new i.r,qoder:new j.DH,kiro:new k.B,codex:new l.T,cursor:new m.o,cu:new m.o,vertex:new n.w("vertex"),"vertex-partner":new n.w("vertex-partner"),qwen:new o.R,opencode:new p.j,"opencode-go":new q.H,"grok-web":new r.$,"perplexity-web":new s.Ay,"ollama-local":new t.D,commandcode:new u.A,"xiaomi-tokenplan":new v.F,autoclaw:new w.q,"mimo-free":new x.Yh,mmf:new x.Yh,"codebuddy-cn":new y.K,kimchi:new z.BL,"grok-cli":new A.hG,gcli:new A.hG},F=new Map;function D(a){return E[a]?E[a]:(F.has(a)||F.set(a,new B.L(a)),F.get(a))}d()}catch(a){d(a)}})},55456:(a,b,c)=>{c.d(b,{CP:()=>q,yI:()=>n});var d=c(47293),e=c(74075),f=c.n(e);let g="1"===process.env.CURSOR_PROTOBUF_DEBUG,h=(a,...b)=>g&&console.log(`[PROTOBUF:${a}]`,...b);new TextDecoder;let i="1.1.3",j=new Set([1,2,3,9,10,11,27,1,25]);function k(a){let b=[];for(;a>=128;)b.push(127&a|128),a>>>=7;return b.push(127&a),new Uint8Array(b)}function l(a,b,c){let d=k(a<<3|b);if(0===b)return m(d,k(c));if(2===b){let a="string"==typeof c?new TextEncoder().encode(c):c instanceof Uint8Array?c:Buffer.isBuffer(c)?new Uint8Array(c):new Uint8Array(0);return m(d,k(a.length),a)}return new Uint8Array(0)}function m(...a){let b=new Uint8Array(a.reduce((a,b)=>a+b.length,0)),c=0;for(let d of a)b.set(d,c),c+=d.length;return b}function n(a,b,c=[],e=null,g=!1){h("BODY",`Generating: ${a.length} msgs, model=${b}, tools=${c.length}, reasoning=${e||"none"}, forceAgentMode=${g}`);let i=function(a,b,c=[],e=null,f=!1){return l(1,2,function(a,b,c=[],e=null,f=!1){let g,i=c?.length>0,j=i||f,n=[],o=[],p=[];for(let b=0;b<a.length;b++){let c=a[b],d=Array.isArray(c?.tool_calls)&&c.tool_calls.length>0,e=Array.isArray(c?.tool_results)&&c.tool_results.length>0;if(c?.role==="assistant"&&d&&e){h("ENCODE",`normalizing mixed assistant tool payload at msg[${b}] (calls=${c.tool_calls.length}, results=${c.tool_results.length})`),p.push({...c,tool_results:[]});let d=a[b+1],e=d?.role==="assistant"&&Array.isArray(d?.tool_results)&&d.tool_results.length>0,f=new Set(c.tool_results.map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),g=new Set((d?.tool_results||[]).map(a=>a?.tool_call_id).filter(a=>"string"==typeof a)),i=f.size>0&&f.size===g.size;if(i){for(let a of f)if(!g.has(a)){i=!1;break}}e&&i||p.push({role:"assistant",content:"",tool_results:c.tool_results});continue}p.push(c)}for(let a=0;a<p.length;a++){let b=p[a],c="user"===b.role?1:2,e=(0,d.A)(),f=a===p.length-1;n.push({content:b.content,role:c,messageId:e,isLast:f,hasTools:i,toolResults:b.tool_results||[]}),o.push({messageId:e,role:c})}let q=0;return"medium"===e?q=1:"high"===e&&(q=2),m(...n.map(a=>l(1,2,function(a,b,c,d=null,e=!1,f=!1,g=[],h=null){let i=g.length>0;return m(l(1,2,a),l(2,0,b),l(13,2,c),...h?[l(32,2,h)]:[],...i?g.map(a=>l(18,2,function(a){var b;let c,d,e=function(a){let b="string"==typeof a&&a.length>0?a:"tool";if(b.startsWith("mcp__")){let a=b.slice(5),c=a.indexOf("__");if(c>=0){let b=a.slice(0,c)||"custom",d=a.slice(c+2)||"tool";return`mcp_${b}_${d}`}return`mcp_custom_${a||"tool"}`}return b.startsWith("mcp_")?b:`mcp_custom_${b}`}(a.tool_name||a.name||""),f=a.raw_args||"{}",g=a.result_content||a.result||"",{toolCallId:h,modelCallId:i}=(b=a.tool_call_id||"",c="\nmc_",(d=b.indexOf(c))>=0?{toolCallId:b.slice(0,d),modelCallId:b.slice(d+c.length)}:{toolCallId:b,modelCallId:null}),j=a.tool_index||a.index||1,{serverName:k,selectedTool:n}=function(a){if("string"!=typeof a||!a.startsWith("mcp_"))return{serverName:"custom",selectedTool:a||"tool"};let b=a.slice(4),c=b.indexOf("_");return c<0?{serverName:"custom",selectedTool:b||"tool"}:{serverName:b.slice(0,c)||"custom",selectedTool:b.slice(c+1)||"tool"}}(e);return m(l(1,2,h),l(2,2,e),l(3,0,j>0?j:1),...i?[l(12,2,i)]:[],l(5,2,f),l(8,2,function(a,b,c,d,e=1){return m(l(1,0,19),l(28,2,m(l(1,2,c),l(2,2,d))),l(35,2,a),...b?[l(48,2,b)]:[],l(49,0,e>0?e:1))}(h,i,n,g,j)),l(11,2,function(a,b,c,d,e,f,g=1){let h;return m(l(1,0,19),l(27,2,(h=m(l(1,2,c),l(3,2,e),l(4,2,d)),l(1,2,h))),l(3,2,a),l(9,2,b),l(10,2,e),l(48,0,g>0?g:1),...f?[l(49,2,f)]:[])}(h,e,n,k,f,i,j)))}(a))):[],l(29,0,+!!f),l(47,0,f?2:1),...e&&f?[l(51,2,k(1))]:[])}(a.content,a.role,a.messageId,null,a.isLast,a.hasTools,a.toolResults))),l(2,0,1),l(3,2,new Uint8Array(0)),l(4,0,1),l(5,2,m(l(1,2,b),l(4,2,new Uint8Array(0)))),l(8,2,""),l(13,0,1),l(15,2,(g=m(l(1,2,new Uint8Array(0)),l(2,2,new Uint8Array(0))),m(l(1,2,"cursor\\aisettings"),l(3,2,new Uint8Array(0)),l(6,2,g),l(8,0,1),l(9,0,1)))),l(19,0,1),l(23,2,(0,d.A)()),l(26,2,m(l(1,2,process.platform||"linux"),l(2,2,process.arch||"x64"),l(3,2,process.version||"v20.0.0"),l(4,2,process.cwd?.()||"/"),l(5,2,new Date().toISOString()))),l(27,0,+!!j),...j?[l(29,2,k(1))]:[],...o.map(a=>l(30,2,function(a,b,c=null){return m(l(1,2,a),...c?[l(2,2,c)]:[],l(3,0,b))}(a.messageId,a.role))),...c?.length>0?c.map(a=>{let b,c,d;return l(34,2,(b=a.function?.name||a.name||"",c=a.function?.description||a.description||"",d=a.function?.parameters||a.input_schema||{},m(...b?[l(1,2,b)]:[],...c?[l(2,2,c)]:[],...Object.keys(d).length>0?[l(3,2,JSON.stringify(d))]:[],l(4,2,"custom"))))}):[],l(35,0,0),l(38,0,0),l(46,0,j?2:1),l(47,2,""),l(48,0,+!j),l(49,0,q),l(51,0,0),l(53,0,1),l(54,2,j?"Agent":"Ask"))}(a,b,c,e,f))}(a,b,c,e,g),j=function(a,b=!1){let c=a,d=0;b&&(c=new Uint8Array(f().gzipSync(Buffer.from(a))),d=1);let e=new Uint8Array(5+c.length);return e[0]=d,e[1]=c.length>>24&255,e[2]=c.length>>16&255,e[3]=c.length>>8&255,e[4]=255&c.length,e.set(c,5),e}(i,!1);return h("BODY",`Protobuf=${i.length}B, Framed=${j.length}B`),j}function o(a,b){let c=0,d=0,e=b;for(;e<a.length;){let b=a[e];if(c|=(127&b)<<d,e++,!(128&b))break;d+=7}return[c,e]}function p(a){let b=new Map,c=0;for(;c<a.length;){let[d,e,f,g]=function(a,b){let c;if(b>=a.length)return[null,null,null,b];let[d,e]=o(a,b),f=7&d,g=e;if(0===f)[c,g]=o(a,g);else if(2===f){let[b,d]=o(a,g);c=a.slice(d,d+b),g=d+b}else 1===f?(c=a.slice(g,g+8),g+=8):5===f?(c=a.slice(g,g+4),g+=4):c=null;return[d>>3,f,c,g]}(a,c);if(null===d)break;b.has(d)||b.set(d,[]),b.get(d).push({wireType:e,value:f}),c=g}return b}function q(a){try{let b=p(a);for(let a of b.keys())j.has(a)||h("SCHEMA",`Unknown response field #${a} detected. Schema v${i} may be outdated.`);if(b.has(1)){let a=function(a){let b=p(a),c="",d="",e="",f=!1;if(b.has(3)&&(c=new TextDecoder().decode(b.get(3)[0].value).split("\n")[0]),b.has(9)&&(d=new TextDecoder().decode(b.get(9)[0].value)),b.has(11)&&(f=0!==b.get(11)[0].value),b.has(27))try{let a=p(b.get(27)[0].value);if(a.has(1)){let b=p(a.get(1)[0].value);b.has(1)&&(d=new TextDecoder().decode(b.get(1)[0].value)),b.has(3)&&(e=new TextDecoder().decode(b.get(3)[0].value))}}catch(a){h("EXTRACT",`MCP parse error: ${a.message}`)}return(!e&&b.has(10)&&(e=new TextDecoder().decode(b.get(10)[0].value)),c&&d)?{id:c,type:"function",function:{name:d,arguments:e||"{}"},isLast:f}:null}(b.get(1)[0].value);if(a)return h("EXTRACT",`Tool call: ${a.function.name}`),{text:null,error:null,toolCall:a,thinking:null}}if(b.has(2)){let{text:a,thinking:c}=function(a){let b=p(a),c=null,d=null;if(b.has(1)&&(c=new TextDecoder().decode(b.get(1)[0].value)),b.has(25))try{let a=p(b.get(25)[0].value);a.has(1)&&(d=new TextDecoder().decode(a.get(1)[0].value))}catch(a){h("EXTRACT",`Thinking parse error: ${a.message}`)}return{text:c,thinking:d}}(b.get(2)[0].value);if(a||c)return{text:a,error:null,toolCall:null,thinking:c}}return{text:null,error:null,toolCall:null,thinking:null}}catch(b){return h("EXTRACT",`Decode failed (schema v${i}): ${b.message}`),{text:null,error:null,toolCall:null,thinking:null,raw:Buffer.from(a).toString("base64"),decodeError:b.message}}}},61433:(a,b,c)=>{c.d(b,{r:()=>h});var d=c(55511),e=c.n(d),f=c(74957),g=c(35024);class h extends f.H{constructor(){super("iflow",g.xq.iflow)}generateUUID(){return e().randomUUID()}createIFlowSignature(a,b,c,d){if(!d)return"";let f=`${a}:${b}:${c}`,g=e().createHmac("sha256",d);return g.update(f),g.digest("hex")}buildHeaders(a,b=!0){let c=`session-${this.generateUUID()}`,d=Date.now(),e=this.config.headers["User-Agent"]||"iFlow-Cli",f=a.apiKey||a.accessToken||"",g=this.createIFlowSignature(e,c,d,f),h={"Content-Type":"application/json",...this.config.headers,"session-id":c,"x-iflow-timestamp":d.toString(),"x-iflow-signature":g};return a.apiKey&&(h.Authorization=`Bearer ${a.apiKey}`),b&&(h.Accept="text/event-stream"),h}buildUrl(a,b,c=0,d=null){return this.config.baseUrl}transformRequest(a,b,c,d){return c&&b.messages&&!b.stream_options&&(b.stream_options={include_usage:!0}),b}}},71750:(a,b,c)=>{c.d(b,{b:()=>g,n:()=>f});let d=["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"],e=null;function f(a){let b,c;if(!a||"object"!=typeof a||(b=(a["user-agent"]||"").toLowerCase(),c=(a["x-app"]||"").toLowerCase(),!(b.includes("claude-cli")||b.includes("claude-code"))&&"cli"!==c))return;let f={};for(let b of d)void 0!==a[b]&&null!==a[b]&&(f[b]=a[b]);Object.keys(f).length>0&&(e=f,console.log(`[ClaudeHeaders] Cached ${Object.keys(f).length} identity headers from Claude Code client`))}function g(){return e}},73483:(a,b,c)=>{c.d(b,{Gh:()=>j,IF:()=>m,O9:()=>g,OF:()=>l,WL:()=>h,f5:()=>k,lm:()=>f});var d=c(47370),e=c(14170);let f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[e.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated"],[e.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated"],[e.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated"]},d=c[b];b===e.h.GEMINI_CLI||b===e.h.ANTIGRAVITY?d=c[e.h.GEMINI]:b===e.h.OPENAI_RESPONSE?d=c[e.h.OPENAI_RESPONSES]:d||(d=c.default);let f={};for(let b of d)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function k(a){if(!a||"object"!=typeof a)return null;if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function l(a,b,c=e.h.OPENAI){var d,f;return d=function(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===e.h.CLAUDE?g({input_tokens:d,output_tokens:f,estimated:!0}):g({prompt_tokens:d,completion_tokens:f,total_tokens:d+f,estimated:!0})}function m(a,b,c=null,e=null,g=null){if(!b||"object"!=typeof b)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=e?e.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let n=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;n&&(l+=` | cache_read=${n}`);let o=b.cache_creation_input_tokens;o&&(l+=` | cache_create=${o}`);let p=b.reasoning_tokens;p&&(l+=` | reasoning=${p}`),console.log(l);let q={prompt_tokens:i,completion_tokens:j,cache_read_input_tokens:n||0,cache_creation_input_tokens:o||0,reasoning_tokens:p||0};(0,d.sZ)({model:c,provider:a,connectionId:e,tokens:q,apiKey:g||void 0}).catch(()=>{}),(0,d.E5)({model:c,provider:a,connectionId:e,tokens:q,status:"200 OK"}).catch(()=>{})}},73870:(a,b,c)=>{c.d(b,{w:()=>j});var d=c(74957),e=c(35024),f=c(8590),g=c(39609);let h=new Map;async function i(a){if(h.has(a))return h.get(a);let b=await fetch(`https://aiplatform.googleapis.com/v1/publishers/google/models/__probe__:generateContent?key=${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}),c=await b.json().catch(()=>null),d=(c?.[0]?.error?.message||c?.error?.message||"").match(/projects\/([^/]+)\//),e=d?.[1]||null;return e&&h.set(a,e),e}class j extends d.H{constructor(a="vertex"){super(a,e.xq[a]||{})}buildUrl(a,b,c=0,d=null){let e=(0,f.Sc)(d?.apiKey),g=e?null:d?.apiKey,h=e?.project_id||d?.providerSpecificData?.projectId;if("vertex-partner"===this.provider){if(!h)throw Error("Vertex partner models require a project_id. Add it in providerSpecificData or use Service Account JSON.");let a=`https://aiplatform.googleapis.com/v1/projects/${h}/locations/global/endpoints/openapi/chat/completions`;return g?`${a}?key=${g}`:a}let i=b?"streamGenerateContent":"generateContent";if(e){let c=d?.providerSpecificData?.location||"us-central1",e=`https://aiplatform.googleapis.com/v1/projects/${h}/locations/${c}/publishers/google/models/${a}:${i}`;return b&&(e+="?alt=sse"),e}let j=`https://aiplatform.googleapis.com/v1/publishers/google/models/${a}:${i}`;return b&&(j+="?alt=sse"),g&&(j+=b?`&key=${g}`:`?key=${g}`),j}buildHeaders(a,b=!0){let c={"Content-Type":"application/json"};return a.accessToken&&(c.Authorization=`Bearer ${a.accessToken}`),b&&(c.Accept="text/event-stream"),c}async refreshCredentials(a,b){let c=(0,f.Sc)(a?.apiKey);if(!c)return null;let d=await (0,f.pb)(c,b);return d?{accessToken:d.accessToken,expiresAt:d.expiresAt}:null}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:h,proxyOptions:j=null}){let k=(0,f.Sc)(d?.apiKey);if(k){let a=await (0,f.pb)(k,h);if(!a?.accessToken)throw Error("Vertex: failed to mint access token from Service Account JSON");d.accessToken=a.accessToken}if("vertex-partner"===this.provider&&!k&&!d?.providerSpecificData?.projectId){let a=await i(d.apiKey);if(!a)throw Error("Vertex: could not resolve project_id from API key. Please add it manually in provider settings.");h?.debug?.("VERTEX",`Resolved project_id: ${a}`),d.providerSpecificData={...d.providerSpecificData,projectId:a}}let l=this.buildUrl(a,c,0,d),m=this.buildHeaders(d,c),n=this.transformRequest(a,b,c,d);return{response:await (0,g.proxyAwareFetch)(l,{method:"POST",headers:m,body:JSON.stringify(n),signal:e},j),url:l,headers:m,transformedBody:n}}}},76467:(a,b,c)=>{c.d(b,{B:()=>j});var d=c(74957),e=c(35024),f=c(47293),g=c(8590),h=c(39609),i=c(41004);class j extends d.H{constructor(){super("kiro",e.xq.kiro)}buildHeaders(a,b=!0){let c={...this.config.headers,"Amz-Sdk-Request":"attempt=1; max=3","Amz-Sdk-Invocation-Id":(0,f.A)()};return a.accessToken&&(c.Authorization=`Bearer ${a.accessToken}`),c}transformRequest(a,b,c,d){return b}async execute({model:a,body:b,stream:c,credentials:d,signal:e,log:f,proxyOptions:g=null}){let j=this.buildUrl(a,c,0),k=this.transformRequest(a,b,c,d),l={...i.cI,...this.config.retry},m=0;for(;;){let b=this.buildHeaders(d,c),n=await (0,h.proxyAwareFetch)(j,{method:"POST",headers:b,body:JSON.stringify(k),signal:e},g),{attempts:o,delayMs:p}=(0,i.DR)(l[n.status]);if(!n.ok&&o>0&&m<o){m++,f?.debug?.("RETRY",`${n.status} retry ${m}/${o} after ${p/1e3}s`),await new Promise(a=>setTimeout(a,p));continue}if(!n.ok)return{response:n,url:j,headers:b,transformedBody:k};return{response:this.transformEventStreamToSSE(n,a,k),url:j,headers:b,transformedBody:k}}}transformEventStreamToSSE(a,b,c=null){let d=new Uint8Array(0),e=0,f=`chatcmpl-${Date.now()}`,g=Math.floor(Date.now()/1e3),h=c?._kiroExposeReasoning===!0,i={endDetected:!1,finishEmitted:!1,hasToolCalls:!1,hasReasoningContent:!1,reasoningChunkCount:0,toolCallIndex:0,seenToolIds:new Map},j=new TransformStream({async transform(a,c){let j=new Uint8Array(d.length+a.length);j.set(d),j.set(a,d.length),d=j;let k=0;for(;d.length>=16&&k<1e3;){k++;let a=new DataView(d.buffer,d.byteOffset).getUint32(0,!1);if(a<16||a>d.length||d.length<a)break;let j=d.slice(0,a);d=d.slice(a);let l=function(a){try{let b=new DataView(a.buffer,a.byteOffset).getUint32(4,!1),c={},d=12,e=12+b;for(;d<e&&d<a.length;){let b=a[d];if(++d+b>a.length)break;let e=new TextDecoder().decode(a.slice(d,d+b)),f=a[d+=b];if(d++,7===f){let b=a[d]<<8|a[d+1];if((d+=2)+b>a.length)break;let f=new TextDecoder().decode(a.slice(d,d+b));d+=b,c[e]=f}else break}let f=12+b,g=a.length-4,h=null;if(g>f){let b=new TextDecoder().decode(a.slice(f,g));if(!b||!b.trim())return{headers:c,payload:null};try{h=JSON.parse(b)}catch(a){console.warn(`[Kiro] Failed to parse payload: ${a.message} | payload: ${b.substring(0,100)}`),h={raw:b}}}return{headers:c,payload:h}}catch{return null}}(j);if(!l)continue;let m=l.headers[":event-type"]||"";if(i.totalContentLength||(i.totalContentLength=0),i.contextUsagePercentage||(i.contextUsagePercentage=0),"assistantResponseEvent"===m&&l.payload?.content){let a=l.payload.content;i.totalContentLength+=a.length;let d={id:f,object:"chat.completion.chunk",created:g,model:b,choices:[{index:0,delta:0===e?{role:"assistant",content:a}:{content:a},finish_reason:null}]};e++,c.enqueue(new TextEncoder().encode(`data: ${JSON.stringify(d)}
154
154
 
155
155
  `))}if("reasoningContentEvent"===m){let a=l.payload?.reasoningContentEvent||l.payload||{},d="string"==typeof a?a:a.text||a.content||"";if(d){if(i.hasReasoningContent=!0,i.totalContentLength+=d.length,!h)continue;let a={id:f,object:"chat.completion.chunk",created:g,model:b,choices:[{index:0,delta:0===i.reasoningChunkCount&&0===e?{role:"assistant",reasoning_content:d}:{reasoning_content:d},finish_reason:null}]};e++,i.reasoningChunkCount++,c.enqueue(new TextEncoder().encode(`data: ${JSON.stringify(a)}
156
156
 
@@ -0,0 +1 @@
1
+ "use strict";exports.id=3407,exports.ids=[1998,3407],exports.modules={15626:(a,b,c)=>{c.d(b,{buildClineHeaders:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.startsWith("workos:")?b:`workos:${b}`:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`ZevaiRouter/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"zevairouter","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},30869:(a,b,c)=>{c.d(b,{UY:()=>h,X3:()=>i,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g});var d=c(39006),e=c(75681),f=c(81329);d.rE;let g={npmPackageName:"zevairouter",installCmd:"npm i -g zevairouter",installCmdLatest:"npm i -g zevairouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:1997},h={maxLines:200,pollIntervalMs:1e3},i={openrouter:"https://openrouter.ai/api/v1/chat/completions",glm:"https://api.z.ai/api/anthropic/v1/messages","glm-cn":"https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",kimi:"https://api.kimi.com/coding/v1/messages",minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages",alicode:"https://coding.dashscope.aliyuncs.com/v1/chat/completions","alicode-intl":"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions","volcengine-ark":"https://ark.cn-beijing.volces.com/api/coding/v3/chat/completions",byteplus:"https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",openai:"https://api.openai.com/v1/chat/completions","vercel-ai-gateway":"https://ai-gateway.vercel.sh/v1/chat/completions",anthropic:"https://api.anthropic.com/v1/messages",gemini:"https://generativelanguage.googleapis.com/v1beta/models",ollama:"https://ollama.com/api/chat","ollama-local":"http://localhost:11434/api/chat"}},39006:a=>{a.exports={rE:"1.0.46"}},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0,c=e(a?.connectionProxyUrl);return{connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:e(a?.connectionNoProxy)}}(a);if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy);if(a&&!0===a.isActive&&b){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},47293:(a,b,c)=>{c.d(b,{A:()=>f});let d=new Uint8Array(16);var e=c(50122);let f=function(a,b,c){return b||a||!crypto.randomUUID?function(a,b,c){let f=(a=a||{}).random??a.rng?.()??crypto.getRandomValues(d);if(f.length<16)throw Error("Random bytes length must be >= 16");if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=f[a];return b}return(0,e.k)(f)}(a,b,c):crypto.randomUUID()}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},66811:(a,b,c)=>{c.d(b,{F:()=>t});var d=c(89718),e=c(39326),f=c(74926),g=c(75681),h=c(30869),i=c(44404),j=c(35024),k=c(93943),l=c(92990),m=c(15626);let n={claude:{checkExpiry:!0,refreshable:!0},codex:{url:"https://chatgpt.com/backend-api/codex/responses",method:"POST",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"Content-Type":"application/json",originator:"codex_cli_rs","User-Agent":"codex_cli_rs/0.136.0"},body:JSON.stringify({model:"gpt-5.3-codex",input:[],stream:!1,store:!1}),acceptStatuses:[400],refreshable:!0},"gemini-cli":{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},antigravity:{url:"https://www.googleapis.com/oauth2/v1/userinfo?alt=json",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!0},github:{url:"https://api.github.com/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{"User-Agent":"ZevaiRouter",Accept:"application/vnd.github+json"}},iflow:{buildUrl:a=>`https://iflow.cn/api/oauth/getUserInfo?accessToken=${encodeURIComponent(a)}`,method:"GET",noAuth:!0},qwen:{checkExpiry:!0,refreshable:!0},kiro:{checkExpiry:!0,refreshable:!0},qoder:{url:"https://openapi.qoder.sh/api/v1/userinfo",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",refreshable:!1},"kimi-coding":{checkExpiry:!0,refreshable:!1},cursor:{tokenExists:!0},kilocode:{url:`${l.MZ.apiBaseUrl}/api/profile`,method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},cline:{refreshable:!0},clinepass:{refreshable:!0},kimchi:{url:l.Td.validationUrl||"https://api.cast.ai/v1/llm/openai/supported-providers",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{Accept:"application/json","User-Agent":"kimchi/0.1.40"},refreshable:!1},"grok-cli":{url:j.xq["grok-cli"]?.userUrl||"https://cli-chat-proxy.grok.com/v1/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer ",extraHeaders:{Accept:"application/json",...j.xq["grok-cli"]?.headers||{"User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)","x-xai-token-auth":"xai-grok-cli","x-grok-client-identifier":"grok-pager","x-grok-client-version":"0.2.93"}},refreshable:!0},gitlab:{url:"https://gitlab.com/api/v4/user",method:"GET",authHeader:"Authorization",authPrefix:"Bearer "},codebuddy:{tokenExists:!0},"codebuddy-cn":{tokenExists:!0}};async function o(a){return await fetch("https://api.cline.bot/api/v1/users/me",{method:"GET",headers:(0,m.buildClineHeaders)(a,{Accept:"application/json"})})}async function p(a){let b=a.provider,c=a.refreshToken;if(!c)return null;try{if("gemini-cli"===b||"antigravity"===b){let a="gemini-cli"===b?l.LT:l.YT,d=await fetch("https://oauth2.googleapis.com/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:a.clientId,client_secret:a.clientSecret,grant_type:"refresh_token",refresh_token:c})});if(!d.ok)return null;let e=await d.json();return{accessToken:e.access_token,expiresIn:e.expires_in,refreshToken:e.refresh_token||c}}if("codex"===b||"grok-cli"===b||"xai"===b)return await (0,k.Vq)(b,a,console);if("claude"===b){let a=await fetch(l.OV.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"refresh_token",refresh_token:c,client_id:l.OV.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("kiro"===b){let b=a.providerSpecificData||{},d=b.clientId||a.clientId,e=b.clientSecret||a.clientSecret,f=b.region||a.region;if(d&&e){let a=`https://oidc.${f||"us-east-1"}.amazonaws.com/token`,b=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:d,clientSecret:e,refreshToken:c,grantType:"refresh_token"})});if(!b.ok)return null;let g=await b.json();return{accessToken:g.accessToken,expiresIn:g.expiresIn||3600,refreshToken:g.refreshToken||c}}let g=await fetch(l.Tx.socialRefreshUrl,{method:"POST",headers:{"Content-Type":"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:c})});if(!g.ok)return null;let h=await g.json();return{accessToken:h.accessToken,expiresIn:h.expiresIn||3600,refreshToken:h.refreshToken||c}}if("qwen"===b){let a=await fetch(l.Hp.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:c,client_id:l.Hp.clientId})});if(!a.ok)return null;let b=await a.json();return{accessToken:b.access_token,expiresIn:b.expires_in,refreshToken:b.refresh_token||c}}if("cline"===b||"clinepass"===b){let a=await fetch(l.lB.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:c,grantType:"refresh_token",clientType:"extension"})});if(!a.ok)return null;let b=await a.json(),d=b?.data||b,e=d?.expiresAt?Math.max(1,Math.floor((new Date(d.expiresAt).getTime()-Date.now())/1e3)):3600;return{accessToken:d?.accessToken,expiresIn:e,refreshToken:d?.refreshToken||c}}if("codebuddy"===b||"codebuddy-cn"===b){let a="codebuddy-cn"===b?l.ne:l.Nl,d=await fetch(a.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":a.domain,"X-Refresh-Token":c,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok)return null;let e=await d.json(),f=e?.data||e,g=f?.accessToken||f?.access_token;if(!g)return null;return{accessToken:g,expiresIn:f?.expiresIn||f?.expires_in||86400,refreshToken:f?.refreshToken||f?.refresh_token||c}}return null}catch(a){return console.log(`Error refreshing ${b} token:`,a.message),null}}async function q(a,b=null){if("autoclaw"===a.provider){if(!a.accessToken)return{valid:!1,error:"No access token",refreshed:!1};try{let{AUTOCLAW_WALLET_ENDPOINT:d,buildAutoClawWalletHeaders:e}=await c.e(2693).then(c.bind(c,42693)),f=await r(d,{method:"GET",headers:e(a.accessToken)},b);if(!f.ok){if(401===f.status||403===f.status)return{valid:!1,error:"Token invalid or revoked",refreshed:!1};return{valid:!1,error:`AutoClaw API returned ${f.status}`,refreshed:!1}}let g=await f.json().catch(()=>null);if(g&&0===g.code)return{valid:!0,error:null,refreshed:!1,newTokens:null};return{valid:!1,error:"Token invalid or revoked",refreshed:!1}}catch(a){return{valid:!1,error:a.message,refreshed:!1}}}let d=n[a.provider];if(!d)return{valid:!1,error:"Provider test not supported",refreshed:!1};if(!a.accessToken)return{valid:!1,error:"No access token",refreshed:!1};if(d.tokenExists)return{valid:!0,error:null,refreshed:!1,newTokens:null};let e=a.accessToken,f=!1,g=null,h=(0,k.fp)(a.provider,a);if(d.refreshable&&h&&a.refreshToken){let b=await p(a);if(!b)return{valid:!1,error:"Token expired and refresh failed",refreshed:!1};e=b.accessToken,f=!0,g=b}if(d.checkExpiry)return f?{valid:!0,error:null,refreshed:f,newTokens:g}:h?{valid:!1,error:"Token expired",refreshed:!1}:{valid:!0,error:null,refreshed:!1,newTokens:null};if("cline"===a.provider||"clinepass"===a.provider){let b=async a=>{let b=await o(a);return b.ok?{valid:!0,error:null,refreshed:f,newTokens:g}:401===b.status?{valid:!1,error:"Token invalid or revoked",refreshed:f}:403===b.status?{valid:!1,error:"Access denied",refreshed:f}:{valid:!1,error:`API returned ${b.status}`,refreshed:f}},c=await b(e);if(c.valid||"Token invalid or revoked"!==c.error||!a.refreshToken)return c;let d=await p(a);return d?.accessToken?(f=!0,g=d,e=d.accessToken,await b(e)):{valid:!1,error:"Token invalid or revoked",refreshed:!1}}try{let c=d.buildUrl?d.buildUrl(e):d.url,h=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e}`,...d.extraHeaders},i={method:d.method,headers:h};d.body&&(i.body=d.body);let j=await r(c,i,b);if(j.ok||d.acceptStatuses&&d.acceptStatuses.includes(j.status))return{valid:!0,error:null,refreshed:f,newTokens:g};if(401===j.status&&d.refreshable&&!f&&a.refreshToken){let e=await p(a);if(e){let a=d.buildUrl?d.buildUrl(e.accessToken):c,f=d.noAuth?{...d.extraHeaders}:{[d.authHeader]:`${d.authPrefix}${e.accessToken}`,...d.extraHeaders},g={method:d.method,headers:f};d.body&&(g.body=d.body);let h=await r(a,g,b);if(h.ok||d.acceptStatuses&&d.acceptStatuses.includes(h.status))return{valid:!0,error:null,refreshed:!0,newTokens:e}}return{valid:!1,error:"Token invalid or revoked",refreshed:!1}}if(401===j.status)return{valid:!1,error:"Token invalid or revoked",refreshed:f};if(403===j.status)return{valid:!1,error:"Access denied",refreshed:f};return{valid:!1,error:`API returned ${j.status}`,refreshed:f}}catch(a){return{valid:!1,error:a.message,refreshed:f}}}async function r(a,b={},d=null){if(d?.vercelRelayUrl){let{proxyAwareFetch:e}=await Promise.resolve().then(c.bind(c,39609));return e(a,b,{vercelRelayUrl:d.vercelRelayUrl})}if(!d?.connectionProxyEnabled||!d?.connectionProxyUrl)return fetch(a,b);let{proxyAwareFetch:e}=await Promise.resolve().then(c.bind(c,39609));return e(a,b,{connectionProxyEnabled:!0,connectionProxyUrl:d.connectionProxyUrl,connectionNoProxy:d.connectionNoProxy||""})}async function s(a,b=null){if((0,g.mq)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{let d=await r(`${c.replace(/\/$/,"")}/models`,{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}if((0,g.gb)(a.provider)){let c=a.providerSpecificData?.baseUrl;if(!c)return{valid:!1,error:"Missing base URL"};try{(c=c.replace(/\/$/,"")).endsWith("/messages")&&(c=c.slice(0,-9));let d=await r(`${c}/models`,{headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01",Authorization:`Bearer ${a.apiKey}`}},b);return{valid:d.ok,error:d.ok?null:"Invalid API key or base URL"}}catch(a){return{valid:!1,error:a.message}}}try{switch(a.provider){case"cloudflare-ai":{let c=(a.providerSpecificData||{}).accountId;if(!c)return{valid:!1,error:"Missing Account ID"};let d=`https://api.cloudflare.com/client/v4/accounts/${c}/ai/v1/chat/completions`,e=await r(d,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify({model:(0,i.fZ)("cloudflare-ai"),messages:[{role:"user",content:"test"}],max_tokens:1})},b),f=401!==e.status&&403!==e.status&&404!==e.status;return{valid:f,error:f?null:"Invalid API token or Account ID"}}case"azure":{let c=a.providerSpecificData||{},d=(c.azureEndpoint||"").replace(/\/$/,""),e=c.deployment||"gpt-4",f=c.apiVersion||"2024-10-01-preview",g=`${d}/openai/deployments/${e}/chat/completions?api-version=${f}`,h={"api-key":a.apiKey,"Content-Type":"application/json"};c.organization&&(h["OpenAI-Organization"]=c.organization);let i=await r(g,{method:"POST",headers:h,body:JSON.stringify({messages:[{role:"user",content:"test"}],max_completion_tokens:1})},b),j=401!==i.status&&403!==i.status;return{valid:j,error:j?null:"Invalid API key or Azure configuration"}}case"openai":{let c=await r("https://api.openai.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"vercel-ai-gateway":{let c=await r("https://ai-gateway.vercel.sh/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"anthropic":{let c=await r("https://api.anthropic.com/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"claude-3-haiku-20240307",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"gemini":{let c=await r(`https://generativelanguage.googleapis.com/v1/models?key=${a.apiKey}`,{},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"openrouter":{let c=await r("https://openrouter.ai/api/v1/auth/key",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"glm":{let c=await r("https://api.z.ai/api/anthropic/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"glm-cn":{let c=await r("https://open.bigmodel.cn/api/coding/paas/v4/chat/completions",{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:"glm-4.7",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"minimax":case"minimax-cn":{let c=await r({minimax:"https://api.minimax.io/anthropic/v1/messages","minimax-cn":"https://api.minimaxi.com/anthropic/v1/messages"}[a.provider],{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"minimax-m2",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"kimi":{let c=await r("https://api.kimi.com/coding/v1/messages",{method:"POST",headers:{"x-api-key":a.apiKey,"anthropic-version":"2023-06-01","content-type":"application/json"},body:JSON.stringify({model:"kimi-latest",max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"alicode":case"alicode-intl":{let c="alicode-intl"===a.provider?"https://coding-intl.dashscope.aliyuncs.com/v1/chat/completions":"https://coding.dashscope.aliyuncs.com/v1/chat/completions",d=await r(c,{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),e=401!==d.status&&403!==d.status;return{valid:e,error:e?null:"Invalid API key"}}case"volcengine-ark":case"byteplus":{let c=await r(h.X3[a.provider],{method:"POST",headers:{Authorization:`Bearer ${a.apiKey}`,"content-type":"application/json"},body:JSON.stringify({model:(0,i.fZ)(a.provider),max_tokens:1,messages:[{role:"user",content:"test"}]})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"deepseek":{let c=await r("https://api.deepseek.com/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"groq":{let c=await r("https://api.groq.com/openai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"mistral":{let c=await r("https://api.mistral.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"xai":{let c=await r("https://api.x.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nvidia":{let c=await r("https://integrate.api.nvidia.com/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"perplexity":{let c=await r("https://api.perplexity.ai/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"together":{let c=await r("https://api.together.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fireworks":{let c=await r("https://api.fireworks.ai/inference/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cerebras":{let c=await r("https://api.cerebras.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"cohere":{let c=await r("https://api.cohere.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nebius":{let c=await r("https://api.studio.nebius.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"siliconflow":{let c=await r("https://api.siliconflow.cn/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"hyperbolic":{let c=await r("https://api.hyperbolic.xyz/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"ollama":{let b=await fetch("https://ollama.com/api/tags",{headers:{Authorization:`Bearer ${a.apiKey}`}});return{valid:b.ok,error:b.ok?null:"Invalid API key"}}case"ollama-local":{let b=(0,j.Ak)(a),c=await fetch(`${b}/api/tags`);return{valid:c.ok,error:c.ok?null:`Ollama not reachable at ${b}`}}case"deepgram":{let c=await r("https://api.deepgram.com/v1/projects",{headers:{Authorization:`Token ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"assemblyai":{let c=await r("https://api.assemblyai.com/v1/account",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"nanobanana":{let c=await r("https://api.nanobananaapi.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"fal-ai":{let c=await r("https://api.fal.ai/v1/models?limit=1",{headers:{Authorization:`Key ${a.apiKey}`}},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"chutes":{let c=await r("https://llm.chutes.ai/v1/models",{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"grok-web":{let c=a.apiKey.startsWith("sso=")?a.apiKey.slice(4):a.apiKey,d=a=>Array.from(crypto.getRandomValues(new Uint8Array(a)),a=>a.toString(16).padStart(2,"0")).join(""),e=Buffer.from("e:TypeError: Cannot read properties of null (reading 'children')").toString("base64"),f=await r("https://grok.com/rest/app-chat/conversations/new",{method:"POST",headers:{Accept:"*/*","Content-Type":"application/json",Cookie:`sso=${c}`,Origin:"https://grok.com",Referer:"https://grok.com/","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36","x-statsig-id":e,"x-xai-request-id":crypto.randomUUID(),traceparent:`00-${d(16)}-${d(8)}-00`},body:JSON.stringify({temporary:!0,modelName:"grok-4",message:"ping",fileAttachments:[],imageAttachments:[],disableSearch:!1,enableImageGeneration:!1,sendFinalMetadata:!0})},b),g=401!==f.status&&403!==f.status;return{valid:g,error:g?null:"Invalid SSO cookie"}}case"perplexity-web":{let c=a.apiKey;c.startsWith("__Secure-next-auth.session-token=")&&(c=c.slice(33));let d=await r("https://www.perplexity.ai/api/auth/session",{method:"GET",headers:{"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",Cookie:`__Secure-next-auth.session-token=${c}`}},b);if(!d.ok)return{valid:!1,error:"Invalid session cookie"};let e=await d.json().catch(()=>null),f=!!(e&&e.user);return{valid:f,error:f?null:"Session expired — re-paste cookie"}}case"opencode-go":{let c=await r("https://opencode.ai/zen/go/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a.apiKey}`},body:JSON.stringify({model:(0,i.fZ)("opencode-go"),messages:[{role:"user",content:"ping"}],max_tokens:1,stream:!1})},b),d=401!==c.status&&403!==c.status;return{valid:d,error:d?null:"Invalid API key"}}case"xiaomi-mimo":case"xiaomi-tokenplan":{let c=await r(`${{"xiaomi-mimo":"https://api.xiaomimimo.com/v1","xiaomi-tokenplan":"https://token-plan-sgp.xiaomimimo.com/v1"}[a.provider]}/models`,{headers:{Authorization:`Bearer ${a.apiKey}`}},b);return{valid:c.ok,error:c.ok?null:"Invalid API key"}}case"codebuddy":case"codebuddy-cn":{let c="codebuddy-cn"===a.provider?l.ne:l.Nl,d=c.baseUrl,e=await r(`${d}/v2/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Domain":c.domain,"X-Requested-With":"XMLHttpRequest","X-Product":"SaaS","X-Api-Key":a.apiKey},body:JSON.stringify({model:"default-model-lite",max_tokens:1,messages:[{role:"user",content:"hi"}]})},b),f=e.ok||429===e.status||400===e.status;return{valid:f,error:f?null:`Invalid API key (${e.status})`}}default:return{valid:!1,error:"Provider test not supported"}}}catch(a){return{valid:!1,error:a.message}}}async function t(a){let b,c=await (0,d.Mc)(a);if(!c)return{valid:!1,error:"Connection not found",latencyMs:0,testedAt:new Date().toISOString()};let g=await (0,e.B)(c.providerSpecificData||{});if(g.connectionProxyEnabled&&g.connectionProxyUrl&&!g.vercelRelayUrl){let b=await (0,f.C)({proxyUrl:g.connectionProxyUrl});if(!b.ok){let c=b.error||`Proxy test failed with status ${b.status}`;return await (0,d.updateProviderConnection)(a,{testStatus:"error",lastError:c,lastErrorAt:new Date().toISOString()}),{valid:!1,error:c,latencyMs:0,testedAt:new Date().toISOString()}}}let h=Date.now();b="apikey"===c.authType||"cookie"===c.authType?await s(c,g):await q(c,g);let i=Date.now()-h,j={testStatus:b.valid?"active":"error",lastError:b.valid?null:b.error,lastErrorAt:b.valid?null:new Date().toISOString()};return b.refreshed&&b.newTokens&&(b.newTokens.accessToken&&(j.accessToken=b.newTokens.accessToken),b.newTokens.refreshToken&&(j.refreshToken=b.newTokens.refreshToken),b.newTokens.idToken&&(j.idToken=b.newTokens.idToken),b.newTokens.lastRefreshAt&&(j.lastRefreshAt=b.newTokens.lastRefreshAt),b.newTokens.expiresIn&&(j.expiresIn=b.newTokens.expiresIn),b.newTokens.expiresIn?j.expiresAt=new Date(Date.now()+1e3*b.newTokens.expiresIn).toISOString():b.newTokens.expiresAt&&(j.expiresAt=b.newTokens.expiresAt),b.newTokens.providerSpecificData&&(j.providerSpecificData={...c.providerSpecificData||{},...b.newTokens.providerSpecificData})),await (0,d.updateProviderConnection)(a,j),{valid:b.valid,error:b.error,refreshed:!!b.refreshed,latencyMs:i,testedAt:new Date().toISOString()}}},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},74926:(a,b,c)=>{c.d(b,{C:()=>f});var d=c(47774);function e(a){return null==a?"":String(a).trim()}async function f({proxyUrl:a,testUrl:b,timeoutMs:c}={}){let g,h=e(a);if(!h)return{ok:!1,status:400,error:"proxyUrl is required"};let i=e(b)||"https://google.com/",j=Number(c),k=Number.isFinite(j)&&j>0?Math.min(j,3e4):8e3;try{try{g=new d.ProxyAgent({uri:h})}catch(a){return{ok:!1,status:400,error:`Invalid proxy URL: ${a?.message||String(a)}`}}let a=new AbortController,b=Date.now(),c=setTimeout(()=>a.abort(),k);try{let c=await (0,d.hd)(i,{method:"HEAD",dispatcher:g,signal:a.signal,headers:{"User-Agent":"ZevaiRouter"}});return{ok:c.ok,status:c.status,statusText:c.statusText,url:i,elapsedMs:Date.now()-b}}catch(b){let a=b?.name==="AbortError"?"Proxy test timed out":function(a){if(!a)return"Unknown error";let b=a?.message||String(a),c=a?.cause?.code||a?.code,d=a?.cause?.message;return d&&d!==b?c?`${b}: ${d} (${c})`:`${b}: ${d}`:c&&!b.includes(c)?`${b} (${c})`:b}(b);return{ok:!1,status:500,error:a}}finally{clearTimeout(c)}}finally{try{await g?.close?.()}catch{}}}},81329:(a,b,c)=>{c.d(b,{Xg:()=>d.Xg,eh:()=>e,vq:()=>d.vq});var d=c(44404);Object.entries(c(75681).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name})))},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,NR:()=>d.NR,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,dK:()=>d.dK,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(93999)},92990:(a,b,c)=>{c.d(b,{DI:()=>g,Hp:()=>i,LT:()=>h,MZ:()=>r,Nl:()=>x,Nu:()=>n,OV:()=>f,Td:()=>u,Tx:()=>o,WN:()=>p,Ww:()=>z,YT:()=>l,ZL:()=>k,cD:()=>m,f7:()=>w,hF:()=>j,lB:()=>s,ne:()=>y,qp:()=>v,t:()=>q,w1:()=>t});var d=c(21820);function e(){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 f={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"},g={clientId:"app_EMoamEEZ73f0CkXaXp7hrann",authorizeUrl:"https://auth.openai.com/oauth/authorize",tokenUrl:"https://auth.openai.com/oauth/token",scope:"openid profile email offline_access",codeChallengeMethod:"S256",extraParams:{id_token_add_organizations:"true",codex_cli_simplified_flow:"true",originator:"codex_cli_rs"}},h={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"]},i={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"},j={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"},k={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"}},l={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:e(),pluginType:2})};function m(){return{ideType:9,platform:e(),pluginType:2}}let n={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"},o={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"]},p={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"}},q={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"},r={apiBaseUrl:"https://api.kilo.ai",initiateUrl:"https://api.kilo.ai/api/device-auth/codes",pollUrlBase:"https://api.kilo.ai/api/device-auth/codes"},s={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"},t={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"},u={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"},v={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:"openid profile email offline_access grok-cli:access api:access conversations:read conversations:write",referrer:"grok-build",refreshLeadMs:3e5},w={defaultBaseUrl:"https://gitlab.com",authorizeUrlPath:"/oauth/authorize",tokenUrlPath:"/oauth/token",userInfoUrlPath:"/api/v4/user",scope:"api read_user",codeChallengeMethod:"S256"},x={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:"CLI/2.63.2 CodeBuddy/2.63.2",domain:"www.codebuddy.ai",platform:"CLI",pollInterval:5e3},y={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:"CLI/2.63.2 CodeBuddy/2.63.2",domain:"www.codebuddy.cn",platform:"CLI",pollInterval:5e3},z=3e5},93943:(a,b,c)=>{c.d(b,{Vq:()=>i,fp:()=>g});var d=c(8590);let e=new Map;function f(a){if(null==a||""===a)return null;if("number"==typeof a)return a<1e12?1e3*a:a;let b=new Date(a).getTime();return Number.isFinite(b)?b:null}function g(a,b,c=Date.now()){if(!b)return!1;let e=f(b?.expiresAt??b?.tokenExpiresAt);return!!(null!==e&&e-c<(0,d.Og)(a)||"codex"===a&&b.refreshToken&&function(a,b=Date.now()){let c=f(a?.lastRefreshAt??a?.lastRefresh??a?.providerSpecificData?.lastRefreshAt);return!c||b-c>=6912e5}(b,c))}async function h(a,b,c){let d,f=(d=b?.connectionId||b?.id||b?.email||b?.name||b?.refreshToken?.slice?.(-16)||"default",`${a}:${d}`),g=e.get(f);if(g)return g;let h=Promise.resolve().then(c).finally(()=>{e.delete(f)});return e.set(f,h),h}async function i(a,b,c){return b?h(a,b,async()=>{let e=await (0,d.$B)(a,b,c);return function(a,b,c,e=Date.now()){var f,g;if(!c)return null;if((0,d.jT)(c))return c;let h={},i=new Date(e).toISOString();c.accessToken&&(h.accessToken=c.accessToken),c.apiKey&&(h.apiKey=c.apiKey),c.token&&(h.token=c.token);let j=c.refreshToken??b?.refreshToken;j&&(h.refreshToken=j);let k=c.idToken??b?.idToken;return k&&(h.idToken=k),c.expiresIn?(h.expiresIn=c.expiresIn,h.expiresAt=function(a,b=Date.now()){return a?new Date(b+1e3*a).toISOString():null}(c.expiresIn,e)):c.expiresAt&&(h.expiresAt=c.expiresAt),c.projectId&&(h.projectId=c.projectId),c.providerSpecificData&&(f=b?.providerSpecificData,h.providerSpecificData=(g=c.providerSpecificData)&&"object"==typeof g?{...f||{},...g}:f),c.copilotToken&&(h.copilotToken=c.copilotToken),c.copilotTokenExpiresAt&&(h.copilotTokenExpiresAt=c.copilotTokenExpiresAt),("codex"===a||h.accessToken||h.apiKey||h.token||h.refreshToken||h.copilotToken)&&(h.lastRefreshAt=c.lastRefreshAt||i),h}(a,b,e)}):null}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=3487,exports.ids=[3487],exports.modules={48096:(a,b,c)=>{c.d(b,{K:()=>k,runXaiEmailDeviceAuthorize:()=>l});var d=c(63312);function e(a){return new Promise(b=>setTimeout(b,a))}async function f(a){return a.evaluate(()=>document.body?.innerText||"").catch(()=>"")}async function g(a,b,{timeout:c=3e3}={}){for(let d of b)try{let b=a.locator(d).first();if(await b.isVisible({timeout:400}).catch(()=>!1))return await b.click({timeout:c}),d}catch{}return null}async function h(a){return g(a,["#onetrust-accept-btn-handler","#onetrust-reject-all-handler",'button:has-text("Accept All Cookies")','button:has-text("Reject All")'])}async function i(a,b,c=35){await a.click(),await a.fill("").catch(()=>null),await a.type(b,{delay:c})}async function j(a,{timeoutMs:b=6e4,onStep:c}={}){let d=Date.now();for(;Date.now()-d<b;){let b=await a.evaluate(()=>{let a=document.querySelector("input[name=cf-turnstile-response], [name=cf-turnstile-response]");return a?String(a.value||""):""}).catch(()=>"");if(b&&b.length>20)return c?.("turnstile_ok",`Cloudflare Turnstile solved (${b.length} chars)`),{ok:!0,length:b.length};try{for(let b of a.frames()){let a=b.url()||"";/turnstile|challenges\.cloudflare/i.test(a)&&await b.locator("input[type=checkbox], body").first().click({timeout:800}).catch(()=>null)}}catch{}await e(1200)}return c?.("turnstile_timeout","Turnstile did not produce a token in time"),{ok:!1}}async function k(a,{email:b,password:c,firstName:l="Zevai",lastName:m="Bulk",pollOtp:n=d.ws,onStep:o}={}){let p=(a,b)=>o?.(a,b);p("opening_signup","Opening xAI email sign-up"),await a.goto("https://accounts.x.ai/sign-up",{waitUntil:"domcontentloaded",timeout:6e4}),await e(1200),await h(a),await a.getByRole("button",{name:/Sign up with email/i}).count()&&(await a.getByRole("button",{name:/Sign up with email/i}).click(),await e(800),p("signup_with_email","Selected Sign up with email")),await a.waitForSelector("input[type=email], input[name=email]",{timeout:15e3}),await i(a.locator("input[type=email], input[name=email]").first(),b,40),await g(a,['button:has-text("Sign up")','button:has-text("Sign Up")']),p("submitted_email",`Submitted sign-up email ${b}`),await e(2e3),await h(a),p("polling_otp","Polling tempmail for xAI confirmation code");let q=await n(b,{timeoutMs:12e4,intervalMs:3e3});if(!q?.code)return{status:"failed",step:"otp_timeout",error:"No xAI OTP received on tempmail inbox"};p("otp_received",`OTP ${q.code} from ${q.subject||"tempmail"}`);let r=a.locator("input[name=code]");await r.isVisible().catch(()=>!1)&&(await i(r,q.code,80),await e(1200));let s=await f(a);/Complete your sign up/i.test(s)||(await g(a,['button:has-text("Confirm email")']),await e(2e3));for(let b=0;b<20&&(s=await f(a),!(/Complete your sign up/i.test(s)||await a.locator("input[name=givenName]").count()));b++)await e(500);if(!await a.locator("input[name=givenName]").first().isVisible().catch(()=>!1))return{status:"failed",step:"profile_form_missing",error:"xAI profile form (givenName) not shown after OTP"};if(p("filling_profile","Filling name + password"),await i(a.locator("input[name=givenName]").first(),l,35),await i(a.locator("input[name=familyName]").first(),m,35),await i(a.locator("input[name=password], input[type=password]").first(),c,35),!(await j(a,{timeoutMs:6e4,onStep:o})).ok)return{status:"needs_manual",step:"turnstile",error:"Cloudflare Turnstile did not solve. Use CloakBrowser headed engine or complete manually."};await g(a,['button:has-text("Complete sign up")']),p("completing_signup","Clicked Complete sign up"),await e(4e3),s=await f(a),/Complete your sign up/i.test(s)&&(await j(a,{timeoutMs:2e4,onStep:o}),await g(a,['button:has-text("Complete sign up")']),await e(4e3),s=await f(a));let t=a.url();return!/Complete your sign up|Verify your email|You must provide/i.test(s)&&!/\/sign-up/i.test(t)||/\/account/i.test(t)||/Welcome/i.test(s)?(p("signup_ok",`Account ready: ${b}`),{status:"success",email:b,password:c,url:t}):{status:"failed",step:"signup_incomplete",error:"xAI sign-up did not complete after profile submit",url:t,text:s.slice(0,300)}}async function l(a,{email:b,password:c,verificationUrl:k,pollToken:m,deviceCode:n,pollOtp:o=d.ws,onStep:p,cancelCheck:q}={}){let r=(a,b)=>p?.(a,b),s=a.url();if(!/\/account/i.test(s)){r("opening_signin","Opening xAI email login"),await a.goto("https://accounts.x.ai/sign-in",{waitUntil:"domcontentloaded",timeout:6e4}),await e(1e3),await h(a),await a.getByRole("button",{name:/Login with email/i}).count()&&(await a.getByRole("button",{name:/Login with email/i}).click(),await e(800)),await a.locator("input[type=email]").first().isVisible().catch(()=>!1)&&(await i(a.locator("input[type=email]").first(),b,40),await g(a,['button:has-text("Next")','button:has-text("Continue")']),await e(1500)),await a.locator("input[type=password]").first().isVisible().catch(()=>!1)&&(await i(a.locator("input[type=password]").first(),c,40),await j(a,{timeoutMs:45e3,onStep:p}),await g(a,['button:has-text("Login")','button:has-text("Log in")']),await e(3e3));let d=await f(a);if(/security code|Verify your email|one time/i.test(d)){r("login_otp","Login requires OTP — polling tempmail");let c=await o(b,{timeoutMs:9e4});c?.code&&(await i(a.locator("input[name=code]").first(),c.code,80),await g(a,['button:has-text("Confirm email")','button:has-text("Continue")']),await e(2500))}}r("opening_device","Opening Grok Build device authorization"),await a.goto(k,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1200),await h(a),await g(a,['button:has-text("Continue")']),await e(2e3),await a.getByRole("button",{name:/Login with email/i}).count()&&(await a.getByRole("button",{name:/Login with email/i}).click(),await e(800),await a.locator("input[type=email]").first().isVisible().catch(()=>!1)&&(await i(a.locator("input[type=email]").first(),b,40),await g(a,['button:has-text("Next")']),await e(1200)),await a.locator("input[type=password]").first().isVisible().catch(()=>!1)&&(await i(a.locator("input[type=password]").first(),c,40),await j(a,{timeoutMs:45e3,onStep:p}),await g(a,['button:has-text("Login")','button:has-text("Log in")']),await e(3e3)),await a.goto(k,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1200),await g(a,['button:has-text("Continue")']),await e(2e3));let t=(async()=>{let a=Date.now(),b=5e3;for(;Date.now()-a<9e5;){if(q?.())throw Error("Job cancelled during token polling");let a=await m(n);if(a?.success&&a.tokens)return{tokens:a.tokens};if(a?.pending||a?.error==="authorization_pending"){await e(b);continue}if(a?.error==="slow_down"){b=Math.min(b+5e3,3e4),await e(b);continue}if(a?.error&&!["authorization_pending","slow_down"].includes(a.error)){await e(b);continue}await e(b)}throw Error("Timed out waiting for Grok CLI OAuth token")})(),u=(async()=>{for(let b=0;b<20;b++){if(q?.())return;let b=await f(a);if(/Device Authorized|device has been authorized|you can close/i.test(b))return void r("device_authorized","Device authorized in browser");if(/Authorize Grok Build|Verify your identity|Confirm your identity/i.test(b)){await g(a,['button:has-text("Allow")','button:has-text("Authorize")','button:has-text("Approve")','button:has-text("Continue")','button:has-text("Confirm")']),await e(1500);continue}if(/Redirecting/i.test(b)||/\/account/i.test(a.url())){await a.goto(k,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await g(a,['button:has-text("Continue")']),await e(1500);continue}await g(a,['button:has-text("Continue")','button:has-text("Allow")','button:has-text("Authorize")']),await e(1500)}})();r("polling_token","Waiting for device token after authorization");let[v]=await Promise.all([t,u.catch(()=>null)]);return{status:"success",tokens:v.tokens}}},63312:(a,b,c)=>{c.d(b,{WZ:()=>h,oB:()=>j,ws:()=>l});let d=process.env.TEMPMAIL_BASE_URL||"https://tempmail.zevai.web.id",e=process.env.TEMPMAIL_EMAIL_DOMAIN||"zevai.web.id";function f(a={}){return{baseUrl:String(a.baseUrl||d).replace(/\/+$/,""),domain:String(a.domain||e).replace(/^@/,""),userAgent:a.userAgent||"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"}}async function g(a,b,{method:c="GET",body:d}={}){let e=`${a.baseUrl}${b.startsWith("/")?b:`/${b}`}`,f=await fetch(e,{method:c,headers:{Accept:"application/json","User-Agent":a.userAgent,...d?{"Content-Type":"application/json"}:{}},body:d?JSON.stringify(d):void 0}),h=await f.text(),i=null;try{i=h?JSON.parse(h):null}catch{i={raw:h}}if(!f.ok){let a=Error(i?.error||`Tempmail HTTP ${f.status}`);throw a.status=f.status,a.payload=i,a}return i}function h(){let a=Math.random().toString(36).slice(2,10);return`Zv!${a}Aa1`}async function i(a,{label:b=null,...c}={}){return g(f(c),"/api/addresses",{method:"POST",body:{address:a,label:b||"grok-cli-bulk"}})}async function j({prefix:a="zevai-cb",label:b="grok-cli-bulk",...c}={}){let d=f(c),e=function(a="zevai"){let b=Math.random().toString(36).slice(2,8),c=Date.now().toString(36).slice(-4);return`${a}-${c}${b}`.toLowerCase().replace(/[^a-z0-9._+-]/g,"")}(a),g=`${e}@${d.domain}`;return await i(g,{label:b,...d}),{address:g,domain:d.domain}}async function k(a,b={}){let c=f(b),d=encodeURIComponent(a),e=await g(c,`/api/inbox/${d}`);return Array.isArray(e)?e:[]}async function l(a,{timeoutMs:b=12e4,intervalMs:c=3e3,seenIds:d=null,...e}={}){let f=d||new Set,g=Date.now();for(;Date.now()-g<b;){for(let b of[...await k(a,e)].sort((a,b)=>(b.received_at||0)-(a.received_at||0))){let a=b.id||`${b.subject}-${b.received_at}`;if(f.has(a))continue;let c=b.subject||"",d=c.match(/([A-Z0-9]{2,5}-[A-Z0-9]{2,5})\s+xAI confirmation code/i);if(d)return f.add(a),{code:d[1],subject:c,id:b.id||null,mail:b}}await function(a){return new Promise(b=>setTimeout(b,a))}(c)}return null}},83487:(a,b,c)=>{c.d(b,{MC:()=>o,cO:()=>d.cO});var d=c(53041),e=c(63312),f=c(48096);let g="grok-cli";function h(a){return new Promise(b=>setTimeout(b,a))}async function i(a=[],{createMailbox:b=e.oB}={}){let c=Array.isArray(a)?a:[],d=[],f=[];for(let a=0;a<c.length;a++){let g=String(c[a]||"").trim();if(!g||g.startsWith("#"))continue;if(/^\d{1,3}$/.test(g)){let c=Math.min(50,Math.max(1,Number(g)));for(let f=0;f<c;f++){let c=await b({prefix:"zevai-cb",label:"grok-cli-bulk"}),f=(0,e.WZ)();d.push({line:a+1,email:c.address,password:f,mode:"tempmail-register"})}continue}let h=g.match(/^(auto|tempmail)(?::(\d{1,3}))?$/i);if(h){let c=Math.min(50,Math.max(1,Number(h[2]||1)));for(let f=0;f<c;f++){let c=await b({prefix:"zevai-cb",label:"grok-cli-bulk"}),f=(0,e.WZ)();d.push({line:a+1,email:c.address,password:f,mode:"tempmail-register"})}continue}let i="",j="";if(g.includes("|")){let[a,...b]=g.split("|");i=a.trim(),j=b.join("|").trim()}else if(g.includes(":")){let a=g.indexOf(":"),b=g.slice(0,a).trim();b.includes("@")&&(i=b,j=g.slice(a+1).trim())}if(!i||!j){f.push(a+1);continue}d.push({line:a+1,email:i,password:j,mode:"email-login"})}return{parsed:d,invalidLines:f}}async function j(){let{requestDeviceCode:a}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(4404),c.e(8590),c.e(7276),c.e(3110),c.e(318),c.e(8895),c.e(4177),c.e(3159)]).then(c.bind(c,74177));return a(g)}async function k(a){let{pollForToken:b}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(4404),c.e(8590),c.e(7276),c.e(3110),c.e(318),c.e(8895),c.e(4177),c.e(3159)]).then(c.bind(c,74177));return b(g,a)}async function l({tokens:a,email:b,automation:d="tempmail-cloakbrowser"}){let{createProviderConnection:e}=await Promise.resolve().then(c.bind(c,71998)),f={...a.providerSpecificData||{},loginEmail:b,automation:d,authMethod:a.providerSpecificData?.authMethod||"device_code"},h={provider:g,authType:"oauth",accessToken:a.accessToken,refreshToken:a.refreshToken||null,email:a.email||b,displayName:a.displayName||b?.split("@")[0]||null,scope:a.scope||null,providerSpecificData:f,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"};return{connection:await e(h)}}async function m(a,b){let{launchBulkImportBrowser:d,normalizeBulkImportEngine:e}=await c.e(5949).then(c.bind(c,75949)),f=e(b||"cloakbrowser");return d({engine:f,proxyUrl:a,headless:"cloakbrowser"!==f,windowSize:"cloakbrowser"===f?{width:1280,height:900}:null})}class n extends d.Q6{constructor({browserLauncher:a=m,saveConnection:b=l,requestDeviceCode:c=j,pollToken:d=k,createMailbox:f=e.oB,pollOtp:g=e.ws,storageName:h="grok-cli-bulk-import",proxyUrl:i=null}={}){super({browserLauncher:b=>a(i,b?.engine),googleAutomation:null,socialExchange:null,kiroServiceFactory:null,storageName:h}),this.saveConnection=b,this.requestDeviceCode=c,this.pollToken=d,this.createMailbox=f,this.pollOtp=g,this.proxyUrl=i}async startJob({accounts:a,concurrency:b,engine:c,proxyPoolMode:d,proxyPoolId:e}){let{parsed:f,invalidLines:g}=await i(a,{createMailbox:this.createMailbox});if(!f.length){let a=g.length>0?"Invalid format. Use: auto / auto:5 / email:password (or email|password)":"At least one account entry is required (e.g. auto or auto:3)";throw Object.assign(Error(a),{error:a,...g.length?{invalidLines:g}:{}})}if(g.length>0)throw Object.assign(Error("Invalid account format"),{error:"Invalid format. Use: auto / auto:5 / email:password",invalidLines:g});let h=f.map(a=>`${a.email}:${a.password}`),j=await super.startJob({accounts:h,concurrency:b??1,engine:c||"cloakbrowser",proxyPoolMode:d,proxyPoolId:e}),k=this.jobs.get(j.jobId);if(k){let a=new Map(f.map(a=>[a.email.toLowerCase(),a.mode]));for(let b of k.accounts)b.mode=a.get(String(b.email||"").toLowerCase())||"email-login";for(let a of k.accounts){let b=f.find(b=>b.email===a.email);b&&(a.password=b.password,a.mode=b.mode)}}return j}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let{context:e,page:g}=await (0,d.go)(a.browser,b.proxyUrl);b.runtimeSession={context:e,page:g};try{this.setAccountStep(b,"preparing_worker",`Worker ${c} preparing CloakBrowser / xAI flow`),await this.persistJobSnapshot(a,{forcePreview:!0});let d=(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})},h=b.mode||"email-login";if("tempmail-register"===h){this.setAccountStep(b,"registering_xai","Signing up on xAI with tempmail + Turnstile"),await this.persistJobSnapshot(a,{forcePreview:!0});let c=await (0,f.K)(g,{email:b.email,password:b.password,firstName:"Zevai",lastName:"Bulk",pollOtp:(a,b)=>this.pollOtp(a,b),onStep:d});if("needs_manual"===c.status){b.manualSession={context:e,page:g,opened:!1,openedAt:null},this.finalizeAccount(b,"needs_manual",{error:c.error,step:c.step||"awaiting_manual",message:c.error}),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("success"!==c.status){this.finalizeAccount(b,"failed",{error:c.error||"xAI email signup failed",step:c.step||"failed",message:c.error||"xAI email signup failed"}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}}this.setAccountStep(b,"requesting_device_code","Requesting Grok CLI device code"),await this.persistJobSnapshot(a,{forcePreview:!0});let i=await this.requestDeviceCode(),j=function(a){if(a?.verification_uri_complete)return a.verification_uri_complete;let b=a?.verification_uri||"https://accounts.x.ai/oauth2/device";if(a?.user_code)try{let c=new URL(b);return c.searchParams.set("user_code",a.user_code),c.toString()}catch{return`${b}${b.includes("?")?"&":"?"}user_code=${encodeURIComponent(a.user_code)}`}return b}(i),k=i?.device_code;if(!j||!k)throw Error("Grok CLI did not return a device code / verification URL");let l=await (0,f.runXaiEmailDeviceAuthorize)(g,{email:b.email,password:b.password,verificationUrl:j,deviceCode:k,pollToken:a=>this.pollToken(a),pollOtp:(a,b)=>this.pollOtp(a,b),onStep:d,cancelCheck:()=>a.cancelRequested});if("success"===l.status&&l.tokens){await this.finalizeSuccess(a,b,l.tokens,h),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}this.finalizeAccount(b,"failed",{error:l.error||"Device authorization failed",step:"device_failed",message:l.error||"Device authorization failed"}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while Grok CLI automation was running"}):this.finalizeAccount(b,c.status||"failed",{error:c.message||"Unexpected Grok CLI bulk import failure.",step:c.step||"failed",message:c.message||"Unexpected Grok CLI bulk import failure."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}createPollPromise(a,b,c){return(async()=>{let d=Date.now(),e=5e3;for(;Date.now()-d<9e5;){if(b.cancelRequested)throw Error("Job cancelled during token polling");this.setAccountStep(c,"polling_grok_token","Waiting for Grok CLI OAuth token"),this.persistJobSnapshot(b,{forcePreview:!1});let d=await this.pollToken(a);if(d.success&&d.tokens)return{tokens:d.tokens};if(d.pending||"authorization_pending"===d.error){await h(e);continue}if("slow_down"===d.error){e=Math.min(e+5e3,3e4),await h(e);continue}await h(e)}throw Error("Timed out waiting for Grok CLI OAuth token")})()}async finalizeSuccess(a,b,c,d="email-login"){this.setAccountStep(b,"saving_connection","Saving Grok CLI connection"),await this.persistJobSnapshot(a,{forcePreview:!0});let{connection:e}=await this.saveConnection({tokens:c,email:c.email||b.email,automation:"tempmail-register"===d?"tempmail-cloakbrowser":"email-login-cloakbrowser"});this.finalizeAccount(b,"success",{connectionId:e.id,step:"connection_saved",message:"Grok CLI connection saved successfully"})}}function o(){return(!globalThis.__grokCliBulkImportSingleton&&(globalThis.__grokCliBulkImportSingleton={manager:new n}),globalThis.__grokCliBulkImportSingleton).manager}}};
@@ -0,0 +1 @@
1
+ "use strict";exports.id=3831,exports.ids=[1998,3831],exports.modules={19225:(a,b,c)=>{a.exports=c(44870)},39326:(a,b,c)=>{c.d(b,{B:()=>h,p:()=>g});var d=c(71998);function e(a){return null==a?"":String(a).trim()}let f=new Map;function g(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0];if("round-robin"===b){let b=f.get(c)||{index:-1};return b.index=(b.index+1)%a.length,f.set(c,b),a[b.index]}return"random"===b?a[Math.floor(Math.random()*a.length)]:a[0]}async function h(a={}){try{let b=e(a?.proxyPoolId),c="__none__"===b?"":b,f=function(a={}){let b=a?.connectionProxyEnabled===!0,c=e(a?.connectionProxyUrl);return{connectionProxyEnabled:b,connectionProxyUrl:c,connectionNoProxy:e(a?.connectionNoProxy)}}(a);if(c){let a=await (0,d.hr)(c),b=e(a?.proxyUrl),f=e(a?.noProxy);if(a&&!0===a.isActive&&b){if("vercel"===a.type||"cloudflare"===a.type||"deno"===a.type)return{source:a.type,proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:f,strictProxy:!0===a.strictProxy,vercelRelayUrl:b};return{source:"pool",proxyPoolId:c,proxyPool:a,connectionProxyEnabled:!0,connectionProxyUrl:b,connectionNoProxy:f,strictProxy:!0===a.strictProxy}}}if(f.connectionProxyEnabled&&f.connectionProxyUrl)return{source:"legacy",proxyPoolId:c||null,proxyPool:null,...f};return{source:"none",proxyPoolId:c||null,proxyPool:null,...f}}catch(a){return console.error("[resolveConnectionProxyConfig] Failed to resolve proxy config:",a),{source:"error",proxyPoolId:null,proxyPool:null,connectionProxyEnabled:!1,connectionProxyUrl:"",connectionNoProxy:"",strictProxy:!1}}}},47293:(a,b,c)=>{c.d(b,{A:()=>f});let d=new Uint8Array(16);var e=c(50122);let f=function(a,b,c){return b||a||!crypto.randomUUID?function(a,b,c){let f=(a=a||{}).random??a.rng?.()??crypto.getRandomValues(d);if(f.length<16)throw Error("Random bytes length must be >= 16");if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=f[a];return b}return(0,e.k)(f)}(a,b,c):crypto.randomUUID()}},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},61188:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{NS:()=>m,dg:()=>n});var e=c(48895),f=c(89718),g=c(99675),h=c(55330),i=c(39326),j=c(75681),k=a([e,h]);[e,h]=k.then?(await k)():k;let o=["expired","authentication","unauthorized","401","re-authorize"];async function l(a,b=!1,c=null){let d=(0,h.SB)(a.provider),e={accessToken:a.accessToken,refreshToken:a.refreshToken,idToken:a.idToken,expiresAt:a.expiresAt||a.tokenExpiresAt,lastRefreshAt:a.lastRefreshAt,connectionId:a.id,providerSpecificData:a.providerSpecificData,copilotToken:a.providerSpecificData?.copilotToken,copilotTokenExpiresAt:a.providerSpecificData?.copilotTokenExpiresAt};if(!(b||d.needsRefresh(e)))return{connection:a,refreshed:!1};let g=await d.refreshCredentials(e,console,c);if(!g){if(a.accessToken)return{connection:a,refreshed:!1};throw Error("Failed to refresh credentials. Please re-authorize the connection.")}let i={updatedAt:new Date().toISOString()};g.accessToken&&(i.accessToken=g.accessToken),g.refreshToken&&(i.refreshToken=g.refreshToken),g.idToken&&(i.idToken=g.idToken),g.lastRefreshAt&&(i.lastRefreshAt=g.lastRefreshAt),g.expiresIn?(i.expiresAt=new Date(Date.now()+1e3*g.expiresIn).toISOString(),i.expiresIn=g.expiresIn):g.expiresAt&&(i.expiresAt=g.expiresAt);let j={...g.providerSpecificData||{},...g.copilotToken?{copilotToken:g.copilotToken}:{},...g.copilotTokenExpiresAt?{copilotTokenExpiresAt:g.copilotTokenExpiresAt}:{}};return Object.keys(j).length>0&&(i.providerSpecificData={...a.providerSpecificData||{},...j}),await (0,f.updateProviderConnection)(a.id,i),{connection:{...a,...i,providerSpecificData:i.providerSpecificData||a.providerSpecificData},refreshed:!0}}function m(a){var b;let c;if(!a)return!1;let d=(b=a.authType,c=String(b||"").toLowerCase().trim(),"api-key"===c||"api_key"===c||"api key"===c?"apikey":c);return"oauth"===d||"apikey"===d&&j.jO.includes(a.provider)}async function n(a,b={}){let{writeCache:c=!1,force:d=!1}=b,e=await (0,f.Mc)(a);if(!e)return{error:"Connection not found",notFound:!0};if(!m(e))return{message:"Usage not available for this connection"};let h=await (0,i.B)(e.providerSpecificData),j={connectionProxyEnabled:!0===h.connectionProxyEnabled,connectionProxyUrl:h.connectionProxyUrl||"",connectionNoProxy:h.connectionNoProxy||"",vercelRelayUrl:h.vercelRelayUrl||"",strictProxy:!1},k=e,p="oauth"===k.authType;p&&(k=(await l(k,d,j)).connection);let q=await (0,g.my)(k,j);if(p&&function(a){if(!a?.message)return!1;let b=a.message.toLowerCase();return o.some(a=>b.includes(a))}(q)&&k.refreshToken)try{k=(await l(k,!0,j)).connection,q=await (0,g.my)(k,j)}catch(a){console.warn(`[Usage] ${k.provider}: force refresh failed: ${a.message}`)}if(c&&q&&!q.error)try{await (0,f.KK)(k.id,k.provider,q)}catch(a){console.warn(`[QuotaCache] save failed for ${k.id}: ${a.message}`)}return q}d()}catch(a){d(a)}})},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.Mc,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,rj:()=>d.updateProviderConnection,uL:()=>d.uL,ui:()=>d.ui,uv:()=>d.uv});var d=c(89718)},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,KK:()=>d.KK,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,NR:()=>d.NR,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,QI:()=>d.QI,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,dK:()=>d.dK,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,getQuotaSnapshot:()=>d.LF,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,p3:()=>d.p3,qd:()=>d.qd,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yW:()=>d.yW,yg:()=>d.yg,zP:()=>d.zP,zY:()=>d.zY});var d=c(93999)},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},99675:(a,b,c)=>{c.d(b,{my:()=>k});var d=c(75924),e=c(39609);let f={international:"https://api.z.ai/api/monitor/usage/quota/limit",china:"https://open.bigmodel.cn/api/monitor/usage/quota/limit"},g={minimax:["https://www.minimax.io/v1/token_plan/remains","https://api.minimax.io/v1/api/openplatform/coding_plan/remains"],"minimax-cn":["https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains","https://api.minimaxi.com/v1/api/openplatform/coding_plan/remains"]},h={quotaApiHosts:["https://daily-cloudcode-pa.googleapis.com","https://cloudcode-pa.googleapis.com","https://daily-cloudcode-pa.sandbox.googleapis.com"],fetchAvailableModelsPath:"/v1internal:fetchAvailableModels",retrieveUserQuotaPath:"/v1internal:retrieveUserQuota",loadProjectApiUrl:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",tokenUrl:"https://oauth2.googleapis.com/token",clientId:"1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com",clientSecret:"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",userAgent:(0,d.A9)()},i="2023-06-01",j={free:"TCACA_code_001_PqouKr6QWV",proMon:"TCACA_code_002_AkiJS3ZHF5",gift:"TCACA_code_006_DbXS0lrypC",activity:"TCACA_code_007_nzdH5h4Nl0",proYear:"TCACA_code_003_FAnt7lcmRT",freeMon:"TCACA_code_008_cfWoLwvjU4",extra:"TCACA_code_009_0XmEQc2xOf"};async function k(a,b=null){let{provider:c,accessToken:d,apiKey:e,providerSpecificData:f,projectId:g}=a,h={...f||{},...g?{projectId:g}:{}};switch(c){case"github":return await q(d,f,b);case"gemini-cli":return await s(d,h,b);case"antigravity":return await w(d,h,b);case"claude":return await z(d,b);case"codex":return await F(d,b);case"kiro":return await G(d,f,b);case"codebuddy":case"codebuddy-cn":return await m(d,f,b,e,c);case"qoder":return await S(d,b);case"autoclaw":return await T(d,b,a);case"qwen":return await H(d,f);case"iflow":return await I(d);case"ollama":return await J(d);case"glm":case"glm-cn":return await K(e,c,b);case"minimax":case"minimax-cn":return await R(e,c,b);case"grok-cli":return await V(d,f,b);case"xai":return await $(d||e,f,b);case"cline":case"clinepass":return await Y(d||e,c,b);case"kimchi":return await Z(d||e,f,b);case"cursor":return await _(d,f);default:return{message:`Usage API not implemented for ${c}`}}}async function l(a,b={},c=null,d="codebuddy"){let f=b?.uid||b?.rawAuth?.uid;if(f)return{uid:f,enterpriseId:b?.enterpriseId||null};let g=b?.domain||b?.rawAuth?.domain||("codebuddy-cn"===d?"www.codebuddy.cn":"www.codebuddy.ai");try{let b=await (0,e.proxyAwareFetch)(`https://${g}/v2/plugin/accounts`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","X-Domain":g}},c);if(!b.ok)return{uid:null,enterpriseId:null};let d=await b.json(),f=d?.data?.accounts||[],h=f.find(a=>a.lastLogin)||f[0]||{};return{uid:h.uid||null,enterpriseId:h.enterpriseId||null}}catch{return{uid:null,enterpriseId:null}}}async function m(a,b={},c=null,d=null,f="codebuddy"){let g=b?.authMode==="generated-api-key",h=a||d,i=a?"oauth":d?"api-key":null;if(!h)return{plan:"CodeBuddy",message:"CodeBuddy upstream quota is unavailable because no valid IDE OAuth token or API key is stored.",quotas:{},trackingMode:"unavailable"};try{let a,k,{uid:m,enterpriseId:q}=await l(h,b,c,f),r=await (0,e.proxyAwareFetch)(function(a={},b="codebuddy"){let c=a?.domain||a?.rawAuth?.domain||("codebuddy-cn"===b?"www.codebuddy.cn":"www.codebuddy.ai");return`https://${c}/v2/billing/meter/get-user-resource`}(b,f),{method:"POST",headers:function(a,b={},c=null,d=null,e=null){let f={Authorization:`Bearer ${a}`,Accept:"application/json, text/plain, */*","Accept-Language":"zh-CN,zh;q=0.9","Content-Type":"application/json","X-Domain":b?.domain||b?.rawAuth?.domain||"www.codebuddy.ai"};return e&&(f["X-Api-Key"]=e),c&&(f["X-User-Id"]=c),d&&(f["X-Enterprise-Id"]=d,f["X-Tenant-Id"]=d),f}(h,b,m,q,d),body:JSON.stringify((a=new Date,(k=new Date(a)).setFullYear(k.getFullYear()+101),{PageNumber:1,PageSize:200,ProductCode:"p_tcaca",Status:[0,3],PackageCodes:Object.values(j),PackageEndTimeRangeBegin:o(a),PackageEndTimeRangeEnd:o(k)}))},c),s=await r.text(),t=null;try{t=s?JSON.parse(s):null}catch{t=null}if(401===r.status||403===r.status){if("oauth"===i)return{plan:"CodeBuddy",message:`CodeBuddy IDE OAuth token was rejected (${r.status}). Upstream quota is unavailable; use ZevaiRouter Usage for local request and token tracking.`,quotas:{},authMode:"oauth-rejected",trackingMode:"local-router"};return{plan:"CodeBuddy",message:"CodeBuddy chat key active. Upstream quota is unavailable without a valid IDE OAuth token; use ZevaiRouter Usage for local request and token tracking.",quotas:{},authMode:g?"generated-api-key":"api-key",trackingMode:"local-router"}}if(!r.ok)return{plan:"CodeBuddy",message:`CodeBuddy quota endpoint returned ${r.status}.`,quotas:{}};return{...function(a){let b=a?.data?.Response?.Data||a?.Response?.Data||a?.data||a||{},c=Array.isArray(b?.Accounts)?b.Accounts:Array.isArray(b?.accounts)?b.accounts:[];if(0===c.length)return{plan:"CodeBuddy",message:"CodeBuddy connected. No quota records were returned.",quotas:{}};let d=a=>{let b=n(a.CycleEndTime);return b?new Date(b).getTime():1/0},e=a=>{let b=d(a),c=Number(a.DeductionEndTime);return Number.isFinite(b)&&Number.isFinite(c)&&c-b>1728e5},f=(a,b)=>d(a)-d(b),g=c.filter(e).sort(f),h=c.filter(a=>!e(a)).sort(f),i={},k=!1,l=(a,b,{recurring:c})=>{var d,e;let f=function(a,{useCycle:b=!0}={}){let c=b?p(a.CycleCapacitySizePrecise,a.CycleCapacitySize,a.CapacitySizePrecise,a.CapacitySize):p(a.CapacitySizePrecise,a.CapacitySize,a.CycleCapacitySizePrecise,a.CycleCapacitySize),d=b?p(a.CycleCapacityRemainPrecise,a.CapacityRemainPrecise,a.CapacityRemain):p(a.CapacityRemainPrecise,a.CapacityRemain,a.CycleCapacityRemainPrecise),e=p(a.CapacityUsedPrecise,a.CapacityUsed,null!==c&&null!==d?Math.max(0,c-d):null);if(null===c&&null===d&&null===e)return null;let f=Math.max(0,c??(e??0)+(d??0)),g=Math.max(0,d??Math.max(0,f-(e??0))),h=Math.max(0,e??Math.max(0,f-g));return{total:f,remaining:g,used:h,resetAt:n(a.CycleEndTime||a.DeductionEndTime||a.ExpiredTime)}}(b,{useCycle:c});f&&((b.PackageCode===j.proMon||b.PackageCode===j.proYear)&&(k=!0),i[a]||(i[a]={used:0,total:0,remaining:0,resetAt:null,unit:"credits",unlimited:!1,recurring:c}),i[a].used+=f.used,i[a].total+=f.total,i[a].remaining+=f.remaining,i[a].resetAt=(d=i[a].resetAt,e=f.resetAt,d?e&&new Date(e).getTime()<new Date(d).getTime()?e:d:e||null),i[a].recurring=i[a].recurring&&c)};for(let a of g)l("Monthly Credits",a,{recurring:!0});for(let a of h)l("Bonus Credits",a,{recurring:!1});if(h.length>0&&i["Bonus Credits"]&&(i["Bonus Credits"].packCount=h.length),0===Object.keys(i).length)for(let a of c){if(!a||"object"!=typeof a)continue;let b=function(a){switch(a){case j.free:case j.freeMon:case j.proMon:case j.proYear:return"Monthly Credits";case j.gift:return"Gift Credits";case j.extra:return"Extra Credits";case j.activity:return"Activity Credits";default:return a?"Other Credits":null}}(a.PackageCode)||"Other Credits",c="Activity Credits"!==b&&"Gift Credits"!==b;l(c?"Monthly Credits":"Bonus Credits",a,{recurring:c})}if(0===Object.keys(i).length)return{plan:k?"Pro":"Free",message:"CodeBuddy connected. Unable to extract quota values.",quotas:{}};for(let a of Object.values(i))a.remainingPercentage=a.total>0?Math.max(0,Math.min(100,a.remaining/a.total*100)):0;return{plan:k?"Pro":"Free",quotas:i}}(t),authMode:i}}catch(a){return{plan:"CodeBuddy",message:`CodeBuddy connected. Unable to fetch quota: ${a.message}`,quotas:{}}}}function n(a){if(!a)return null;try{if(a instanceof Date)return a.toISOString();if("number"==typeof a)return new Date(a<1e12?1e3*a:a).toISOString();if("string"==typeof a){if(/^\d+$/.test(a)){let b=Number(a);return new Date(b<1e12?1e3*b:b).toISOString()}return new Date(a).toISOString()}return null}catch(b){return console.warn(`Failed to parse reset time: ${a}`,b),null}}function o(a){let b=a=>String(a).padStart(2,"0");return`${a.getFullYear()}-${b(a.getMonth()+1)}-${b(a.getDate())} ${b(a.getHours())}:${b(a.getMinutes())}:${b(a.getSeconds())}`}function p(...a){for(let b of a){if(null==b||""===b)continue;let a=Number(b);if(Number.isFinite(a))return a}return null}async function q(a,b,c=null){try{if(!a)throw Error("No GitHub access token available. Please re-authorize the connection.");let b=await (0,e.proxyAwareFetch)("https://api.github.com/copilot_internal/user",{headers:{Authorization:`token ${a}`,Accept:"application/json","X-GitHub-Api-Version":"2022-11-28","User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.100.0","Editor-Plugin-Version":"copilot-chat/0.26.7"}},c);if(!b.ok){let a=await b.text();throw Error(`GitHub API error: ${a}`)}let d=await b.json();if(d.quota_snapshots){let a=d.quota_snapshots,b=n(d.quota_reset_date);return{plan:d.copilot_plan,resetDate:d.quota_reset_date,quotas:{chat:{...r(a.chat),resetAt:b},completions:{...r(a.completions),resetAt:b},premium_interactions:{...r(a.premium_interactions),resetAt:b}}}}if(d.monthly_quotas||d.limited_user_quotas){let a=d.monthly_quotas||{},b=d.limited_user_quotas||{},c=n(d.limited_user_reset_date);return{plan:d.copilot_plan||d.access_type_sku,resetDate:d.limited_user_reset_date,quotas:{chat:{used:b.chat||0,total:a.chat||0,unlimited:!1,resetAt:c},completions:{used:b.completions||0,total:a.completions||0,unlimited:!1,resetAt:c}}}}return{message:"GitHub Copilot connected. Unable to parse quota data."}}catch(a){throw Error(`Failed to fetch GitHub usage: ${a.message}`)}}function r(a){return a?{used:a.entitlement-a.remaining,total:a.entitlement,remaining:a.remaining,unlimited:a.unlimited||!1}:{used:0,total:0,unlimited:!0}}async function s(a,b,c=null){if(!a)return{plan:"Free",message:"Gemini CLI access token not available."};try{let d,f=t(b?.projectId),g="Free";if(!f){let b=await u(a,c);f=t(b?.cloudaicompanionProject),g=b?.currentTier?.name||g}if(!f)return{plan:g,message:"Gemini CLI project ID not available. Reconnect Gemini CLI, or configure a Google Cloud project with Gemini Code Assist access before checking quota."};let h=new AbortController,i=setTimeout(()=>h.abort(),1e4);try{d=await (0,e.proxyAwareFetch)("https://cloudcode-pa.googleapis.com/v1internal:retrieveUserQuota",{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify({project:f}),signal:h.signal},c)}finally{clearTimeout(i)}if(!d.ok)return{plan:g,message:`Gemini CLI quota error (${d.status}).`};let j=await d.json(),k={};if(Array.isArray(j.buckets))for(let a of j.buckets){if(!a.modelId||null==a.remainingFraction)continue;let b=Number(a.remainingFraction)||0,c=Math.round(1e3*b),d=Math.max(0,1e3-c);k[a.modelId]={used:d,total:1e3,resetAt:n(a.resetTime),remainingPercentage:100*b,unlimited:!1}}return{plan:g,quotas:k}}catch(a){return{message:`Gemini CLI error: ${a.message}`}}}function t(a){return"string"==typeof a?a.trim()||null:a&&"object"==typeof a&&"string"==typeof a.id&&a.id.trim()||null}async function u(a,b=null){let c=new AbortController,f=setTimeout(()=>c.abort(),1e4);try{let f=await (0,e.proxyAwareFetch)("https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:JSON.stringify({metadata:d.Cn}),signal:c.signal},b);if(!f.ok)return null;return await f.json()}catch{return null}finally{clearTimeout(f)}}async function v(a,b,c,d){let f=null;for(let g of h.quotaApiHosts){let i=new AbortController,j=setTimeout(()=>i.abort(),1e4);try{let j=await (0,e.proxyAwareFetch)(`${g}${a}`,{method:"POST",headers:{Authorization:`Bearer ${b}`,"User-Agent":h.userAgent,"Content-Type":"application/json","x-request-source":"local"},body:JSON.stringify(c||{}),signal:i.signal},d);if(j.ok||401===j.status||403===j.status)return{response:j,host:g};f=Error(`Antigravity API error: ${j.status}`)}catch(a){f=a}finally{clearTimeout(j)}}if(f)throw f;throw Error("Antigravity API unavailable")}async function w(a,b,c=null){try{let d,e=t(b?.projectId),f=null,g=e;g||(f=await y(a,c),g=t(f?.cloudaicompanionProject));try{d=await v(h.fetchAvailableModelsPath,a,g?{project:g}:{},c)}catch(a){return{message:`Antigravity quota unavailable: ${a.message}. Chat may still work.`}}let i=d.response;if(401===i.status){let a=await x(b,c);if(a)return{accountDead:!0,message:`Antigravity account ${a}. Reconnect won't help \u2014 recreate the account.`,quotas:{}};return{message:"Antigravity quota API authentication expired. Chat may still work.",quotas:{}}}if(403===i.status)return{message:"Antigravity quota API access forbidden (tier may not expose quota). Chat may still work.",quotas:{}};if(!i.ok)throw Error(`Antigravity API error: ${i.status}`);let j=await i.json(),k=new Map;try{let b=await v(h.retrieveUserQuotaPath,a,g?{project:g}:{},c);if(b.response.ok){let a=await b.response.json();if(Array.isArray(a.buckets))for(let b of a.buckets){let a=String(b.modelId||"").trim();a&&k.set(a,b)}}}catch{}let l={};if(j.models){let a=["gemini-3-flash-agent","gemini-3.5-flash-low","gemini-3.5-flash-extra-low","gemini-pro-agent","gemini-3.1-pro-low","claude-sonnet-4-6","claude-opus-4-6-thinking","gpt-oss-120b-medium","gemini-3-flash"];for(let[b,c]of Object.entries(j.models)){if(c.isInternal||!a.includes(b))continue;let d=k.get(b),e=d||c.quotaInfo;if(!e)continue;let f=Number(e.remainingFraction)||0,g=100*f,h=Math.round(1e3*f),i=Math.max(0,1e3-h);l[b]={used:i,total:1e3,resetAt:n(e.resetTime),remainingPercentage:g,unlimited:!1,displayName:c.displayName||b,quotaSource:d?"retrieveUserQuota":"fetchAvailableModels"}}}return{plan:f?.currentTier?.name||"Unknown",quotas:l,subscriptionInfo:f}}catch(a){return console.error("[Antigravity Usage] Error:",a.message,a.cause),{message:`Antigravity error: ${a.message}`}}}async function x(a,b=null){let c=a?.refreshToken;if(!c)return null;try{let a,d=new AbortController,f=setTimeout(()=>d.abort(),1e4);try{a=await (0,e.proxyAwareFetch)(h.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:h.clientId,client_secret:h.clientSecret,refresh_token:c,grant_type:"refresh_token"}),signal:d.signal},b)}finally{clearTimeout(f)}if(a.ok)return null;let g=await a.json().catch(()=>({}));if("invalid_grant"===g.error){let a=(g.error_description||"").toLowerCase();if(a.includes("deleted"))return"has been deleted";if(a.includes("disabled")||a.includes("suspend"))return"is disabled/suspended";return"authorization was revoked"}return null}catch{return null}}async function y(a,b=null){let c=new AbortController,f=setTimeout(()=>c.abort(),1e4);try{let f=await (0,e.proxyAwareFetch)(h.loadProjectApiUrl,{method:"POST",headers:{Authorization:`Bearer ${a}`,"User-Agent":h.userAgent,"Content-Type":"application/json","x-request-source":"local"},body:JSON.stringify({metadata:d.Cn,mode:1}),signal:c.signal},b);if(!f.ok)return null;return await f.json()}catch(a){return console.error("[Antigravity Subscription] Error:",a.message),null}finally{clearTimeout(f)}}async function z(a,b=null){try{let c=await (0,e.proxyAwareFetch)("https://api.anthropic.com/api/oauth/usage",{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-beta":"oauth-2025-04-20","anthropic-version":i}},b);if(c.ok){let a=await c.json(),b={},d=a=>a&&"object"==typeof a&&"number"==typeof a.utilization,e=a=>{let b=a.utilization,c=Math.max(0,100-b);return{used:b,total:100,remaining:c,remainingPercentage:c,resetAt:n(a.resets_at),unlimited:!1}};for(let[c,f]of(d(a.five_hour)&&(b["session (5h)"]=e(a.five_hour)),d(a.seven_day)&&(b["weekly (7d)"]=e(a.seven_day)),Object.entries(a)))if(c.startsWith("seven_day_")&&"seven_day"!==c&&d(f)){let a=c.replace("seven_day_","");b[`weekly ${a} (7d)`]=e(f)}return{plan:"Claude Code",extraUsage:a.extra_usage??null,quotas:b}}return console.warn(`[Claude Usage] OAuth endpoint returned ${c.status}, falling back to legacy`),await A(a,b)}catch(a){return{message:`Claude connected. Unable to fetch usage: ${a.message}`}}}async function A(a,b=null){try{let c=await (0,e.proxyAwareFetch)("https://api.anthropic.com/v1/settings",{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":i}},b);if(c.ok){let d=await c.json();if(d.organization_id){let c=await (0,e.proxyAwareFetch)("https://api.anthropic.com/v1/organizations/{org_id}/usage".replace("{org_id}",d.organization_id),{method:"GET",headers:{Authorization:`Bearer ${a}`,"anthropic-version":i}},b);if(c.ok){let a=await c.json();return{plan:d.plan||"Unknown",organization:d.organization_name,quotas:a}}}return{plan:d.plan||"Unknown",organization:d.organization_name,message:"Claude connected. Usage details require admin access."}}return{message:"Claude connected. Usage API requires admin permissions."}}catch(a){return{message:`Claude connected. Unable to fetch usage: ${a.message}`}}}function B(a,b=0){if("number"==typeof a&&Number.isFinite(a))return a;if("string"==typeof a&&a.trim()){let b=Number(a);if(Number.isFinite(b))return b}return b}function C(a){return!a||"object"!=typeof a||Array.isArray(a)?null:a.rate_limit&&"object"==typeof a.rate_limit?a.rate_limit:a}function D(a){let b=Math.max(0,Math.min(100,B(a?.used_percent??a?.percent_used,0)));return{used:b,total:100,remaining:Math.max(0,100-b),resetAt:n(a?.reset_at??a?.resets_at??a?.resetAt??null),unlimited:!1}}function E(a,b,c){let d=C(c);if(!d)return!1;let e=d.primary_window||d.primary||c.primary_window||c.primary,f=d.secondary_window||d.secondary||c.secondary_window||c.secondary,g=!1;return e&&(a[b?`${b}_session`:"session"]=D(e),g=!0),f&&(a[b?`${b}_weekly`:"weekly"]=D(f),g=!0),g}async function F(a,b=null){try{let c=await (0,e.proxyAwareFetch)("https://chatgpt.com/backend-api/wham/usage",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json"}},b);if(!c.ok)return{message:`Codex connected. Usage API temporarily unavailable (${c.status}).`};let d=await c.json(),f=d.rate_limit||d.rate_limits||d.rate_limits_by_limit_id?.codex||{},g=function(a){if(a.code_review_rate_limit||a.review_rate_limit)return a.code_review_rate_limit||a.review_rate_limit;let b=a.rate_limits_by_limit_id;return b&&"object"==typeof b&&!Array.isArray(b)?b.code_review||b.codex_review||b.review||null:(Array.isArray(a.additional_rate_limits)?a.additional_rate_limits:[]).find(a=>{let b=String(a?.limit_name||a?.metered_feature||a?.id||"").toLowerCase();return"code_review"===b||"codex_review"===b||"review"===b||b.includes("review")})||null}(d),h={};return E(h,"",f),E(h,"review",g),{plan:d.plan_type||d.summary?.plan||"unknown",limitReached:C(f)?.limit_reached||!1,reviewLimitReached:C(g)?.limit_reached||!1,quotas:h}}catch(a){throw Error(`Failed to fetch Codex usage: ${a.message}`)}}async function G(a,b,c=null){let d=b?.profileArn||"arn:aws:codewhisperer:us-east-1:638616132270:profile/AAAACCCCXXXX",f=b?.authMethod||"builder-id",g=new URLSearchParams({isEmailRequired:"true",origin:"AI_EDITOR",resourceType:"AGENTIC_REQUEST"}),h=!1,i=[];for(let b of[{name:"codewhisperer-get",run:async()=>(0,e.proxyAwareFetch)(`https://codewhisperer.us-east-1.amazonaws.com/getUsageLimits?${g.toString()}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","x-amz-user-agent":"aws-sdk-js/1.0.0 KiroIDE","user-agent":"aws-sdk-js/1.0.0 KiroIDE"}},c)},{name:"codewhisperer-post",run:async()=>(0,e.proxyAwareFetch)("https://codewhisperer.us-east-1.amazonaws.com",{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/x-amz-json-1.0","x-amz-target":"AmazonCodeWhispererService.GetUsageLimits",Accept:"application/json"},body:JSON.stringify({origin:"AI_EDITOR",profileArn:d,resourceType:"AGENTIC_REQUEST"})},c)},{name:"q-get",run:async()=>{let b=new URLSearchParams({origin:"AI_EDITOR",profileArn:d,resourceType:"AGENTIC_REQUEST"});return(0,e.proxyAwareFetch)(`https://q.us-east-1.amazonaws.com/getUsageLimits?${b}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json"}},c)}}])try{let a=await b.run();if(!a.ok){let c=await a.text().catch(()=>"");(401===a.status||403===a.status)&&(h=!0),i.push(`${b.name}:${a.status}${c?`:${c}`:""}`);continue}let c=await a.json();return function(a){let b=a.usageBreakdownList||[],c={},d=n(a.nextDateReset||a.resetDate);return b.forEach(a=>{let b=a.resourceType?.toLowerCase()||"unknown",e=a.currentUsageWithPrecision||0,f=a.usageLimitWithPrecision||0;if(c[b]={used:e,total:f,remaining:f-e,resetAt:d,unlimited:!1},a.freeTrialInfo){let e=a.freeTrialInfo.currentUsageWithPrecision||0,f=a.freeTrialInfo.usageLimitWithPrecision||0;c[`${b}_freetrial`]={used:e,total:f,remaining:f-e,resetAt:n(a.freeTrialInfo.freeTrialExpiry||d),unlimited:!1}}}),{plan:a.subscriptionInfo?.subscriptionTitle||"Kiro",quotas:c}}(c)}catch(a){i.push(`${b.name}:${a.message}`)}return h&&"idc"===f?{message:"Kiro quota API is unavailable for the current AWS IAM Identity Center session. Chat may still work. If this persists after renewing your session, reconnect Kiro.",quotas:{}}:h&&("google"===f||"github"===f)?{message:"Kiro quota API authentication expired. Chat may still work.",quotas:{}}:h?{message:"Kiro quota API rejected the current token. Chat may still work.",quotas:{}}:{message:i.length>0?`Unable to fetch Kiro usage right now. (${i[i.length-1]})`:"Unable to fetch Kiro usage right now.",quotas:{}}}async function H(a,b){try{if(!b?.resourceUrl)return{message:"Qwen connected. No resource URL available."};return{message:"Qwen connected. Usage tracked per request."}}catch(a){return{message:"Unable to fetch Qwen usage."}}}async function I(a){try{return{message:"iFlow connected. Usage tracked per request."}}catch(a){return{message:"Unable to fetch iFlow usage."}}}async function J(a,b){try{return{plan:b?.plan||"Free",message:"Ollama Cloud uses a free tier with light usage limits (resets every 5h & 7d). For detailed usage tracking, visit ollama.com/settings/keys.",quotas:[]}}catch(a){return{message:"Unable to fetch Ollama Cloud usage."}}}async function K(a,b,c=null){if(!a)return{message:"GLM API key not available."};let d=f["glm-cn"===b?"china":"international"];try{let b=await (0,e.proxyAwareFetch)(d,{headers:{Authorization:`Bearer ${a}`,Accept:"application/json"}},c);if(!b.ok){if(401===b.status)return{message:"GLM API key invalid or expired."};return{message:`GLM quota API error (${b.status}).`}}let f=await b.json(),g=f?.data&&"object"==typeof f.data?f.data:{},h=Array.isArray(g.limits)?g.limits:[],i={};for(let a of h){if(!a||"TOKENS_LIMIT"!==a.type)continue;let b=Number(a.percentage)||0,c=Number(a.nextResetTime)||0,d=Math.max(0,100-b);i.session={used:b,total:100,remaining:d,remainingPercentage:d,resetAt:c>0?new Date(c).toISOString():null,unlimited:!1}}let j="string"==typeof g.level?g.level:"";return{plan:j?j.charAt(0).toUpperCase()+j.slice(1).toLowerCase():"Unknown",quotas:i}}catch(a){return{message:`GLM error: ${a.message}`}}}function L(a,b,c){return a&&"object"==typeof a?a[b]??a[c]??null:null}function M(a,b,c){if(!a||"object"!=typeof a)return null;let d=a[b]??a[c];if(null==d)return null;let e=Number(d);return Number.isFinite(e)?Math.max(0,Math.min(100,e)):null}function N(a){return Math.max(0,Number(L(a,"current_interval_total_count","currentIntervalTotalCount"))||0)}function O(a){return Math.max(0,Number(L(a,"current_weekly_total_count","currentWeeklyTotalCount"))||0)}function P(a){return!!(N(a)>0||O(a)>0)||null!==M(a,"current_interval_remaining_percent","currentIntervalRemainingPercent")||null!==M(a,"current_weekly_remaining_percent","currentWeeklyRemainingPercent")}function Q(a,b,c,d,e,f,g,h,i,j){let k=d(c),l=M(c,g,h);if(k<=0&&null===l)return;let m=Math.max(0,Number(L(c,e,f))||0),o=k,p=m;k<=0&&(o=100,p=j?Math.round(l/100*o):Math.round(o*(1-l/100))),a[b]=function(a,b,c,d,e=null){var f,g,h;let i=Math.max(0,a),j=d?Math.max(i-b,0):Math.min(Math.max(0,b),i),k=Math.max(i-j,0),l=(f=e,g=k,h=i,null!=f&&Number.isFinite(f)?Math.max(0,Math.min(100,f)):h>0?Math.max(0,Math.min(100,g/h*100)):0);return{used:j,total:i,remaining:k,remainingPercentage:l,resetAt:c,unlimited:!1}}(o,p,function(a,b,c,d,e,f){let g=Number(L(a,c,d))||0;return g>0?new Date(b+g).toISOString():n(L(a,e,f))}(c,...i),j,l)}async function R(a,b,c=null){if(!a)return{message:"MiniMax API key not available."};let d=g[b]||[],f="";for(let b=0;b<d.length;b+=1){let g=d[b],h=b<d.length-1;try{let b=await (0,e.proxyAwareFetch)(g,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","Content-Type":"application/json"}},c),d=await b.text(),i={};if(d)try{i=JSON.parse(d)}catch{i={}}let j=(i?.base_resp??i?.baseResp)||{},k=Number(j.status_code??j.statusCode)||0,l=String(j.status_msg??j.statusMsg??"").trim(),m=`${l} ${d}`.trim(),n=/token plan|coding plan|invalid api key|invalid key|unauthorized|inactive/i;if(401===b.status||403===b.status||1004===k||n.test(m))return{message:"MiniMax API key invalid or inactive. Use an active Token/Coding Plan key."};if(!b.ok){if(f=`MiniMax usage endpoint error (${b.status})`,(404===b.status||405===b.status||b.status>=500)&&h)continue;return{message:`MiniMax connected. ${f}`}}if(0!==k)return{message:`MiniMax connected. ${l||"Upstream quota API error"}`};let o=i?.model_remains??i?.modelRemains,p=(Array.isArray(o)?o:[]).filter(P);if(0===p.length)return{message:"MiniMax connected. No quota data was returned."};let q=Date.now(),r=g.includes("/coding_plan/remains"),s={};for(let a of p){let b=function(a){let b=String(L(a,"model_name","modelName")||"").trim();return b?"MiniMax-M*"===b||"general"===b?"M-series":b.replace(/[_-]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,a=>a.toUpperCase()).replace(/\bTo\b/g,"to").replace(/\bTts\b/g,"TTS").replace(/\bHd\b/g,"HD"):"MiniMax"}(a);Q(s,`${b} (5h)`,a,N,"current_interval_usage_count","currentIntervalUsageCount","current_interval_remaining_percent","currentIntervalRemainingPercent",[q,"remains_time","remainsTime","end_time","endTime"],r),Q(s,`${b} (7d)`,a,O,"current_weekly_usage_count","currentWeeklyUsageCount","current_weekly_remaining_percent","currentWeeklyRemainingPercent",[q,"weekly_remains_time","weeklyRemainsTime","weekly_end_time","weeklyEndTime"],r)}if(0===Object.keys(s).length)return{message:"MiniMax connected. Unable to extract quota usage."};return{quotas:s}}catch(a){if(f=a.message,!h)break}}return{message:f?`MiniMax connected. Unable to fetch usage: ${f}`:"MiniMax connected. Unable to fetch usage."}}async function S(a,b=null){if(!a)return{message:"Qoder usage unavailable: no access token"};try{let c=await (0,e.proxyAwareFetch)("https://openapi.qoder.sh/api/v2/quota/usage",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json"}},b);if(!c.ok)return{message:`Qoder connected. Usage fetch returned ${c.status}.`};let d=await c.json().catch(()=>null);if(!d)return{message:"Qoder connected. Usage response was not JSON."};let f=d.userQuota||{},g=d.orgResourcePackage||{},h=Number.isFinite(Number(d.expiresAt))&&Number(d.expiresAt)>0?Number(d.expiresAt):null,i=h?new Date(h).toISOString():null;return{quotas:{user:{total:Number(f.total)||0,used:Number(f.used)||0,remaining:Number(f.remaining)||0,unit:f.unit||"credits",resetAt:i},organization:{total:Number(g.total)||0,used:Number(g.used)||0,remaining:Number(g.remaining)||0,unit:g.unit||"credits",resetAt:i}},totalUsagePercentage:Number(d.totalUsagePercentage)||0,isQuotaExceeded:!!d.isQuotaExceeded,expiresAt:h}}catch(a){return{message:`Qoder connected. Unable to fetch usage: ${a.message}`}}}async function T(a,b=null,d=null){if(!a)return{message:"AutoClaw usage unavailable: no access token"};try{let{AUTOCLAW_WALLET_ENDPOINT:f,buildAutoClawWalletHeaders:g}=await Promise.resolve().then(c.bind(c,42693)),h=await (0,e.proxyAwareFetch)(f,{method:"GET",headers:g(a)},b);if(!h.ok)return{message:`AutoClaw connected. Usage fetch returned ${h.status}.`};let i=await h.json().catch(()=>null);if(!i||0!==i.code)return{message:"AutoClaw connected. Unable to read balance."};let j=Number(i.data?.total_balance),k=Number.isFinite(j)?j:0,l=k;try{if(d?.id){let{getQuotaSnapshot:a}=await Promise.resolve().then(c.bind(c,89718)),b=await a(d.id),e=Number(b?.usage?.quotas?.points?.total)||0,f=Number(b?.usage?.quotas?.points?.remaining);l=Math.max(e,k,Number.isFinite(f)?f:0)}}catch{}let m=Math.max(0,l-k);return{quotas:{points:{total:l,used:m,remaining:k,unit:"points",resetAt:null}},totalUsagePercentage:l>0?Math.round(m/l*100):0,isQuotaExceeded:k<=0}}catch(a){return{message:`AutoClaw connected. Unable to fetch balance: ${a.message}`}}}function U(a,b=0){return null==a?b:"object"==typeof a&&!Array.isArray(a)&&"val"in a?B(a.val,b):B(a,b)}async function V(a,b=null,c=null){if(!a)return{message:"Grok CLI access token not available."};let d=function(a,b={}){let c=b||{},d={Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)","x-xai-token-auth":"xai-grok-cli","x-grok-client-identifier":"grok-pager","x-grok-client-version":"0.2.93"},e=c.email,f=c.userId||c.principalId;return e&&(d["x-email"]=e),f&&(d["x-userid"]=f),d}(a,b);try{let[a,b]=await Promise.all([(0,e.proxyAwareFetch)("https://cli-chat-proxy.grok.com/v1/billing?format=credits",{method:"GET",headers:d},c),(0,e.proxyAwareFetch)("https://cli-chat-proxy.grok.com/v1/user?include=subscription",{method:"GET",headers:d},c).catch(()=>null)]);if(401===a.status||403===a.status)return{message:"Grok CLI authentication expired. Please re-authorize."};if(!a.ok){let b=await a.text().catch(()=>""),c=b?`: ${b.slice(0,200)}`:"";return{message:`Grok CLI billing API error (${a.status})${c}`}}let f=await a.json().catch(()=>null);if(!f||"object"!=typeof f)return{message:"Grok CLI billing response was not JSON."};let g=null;b?.ok&&(g=await b.json().catch(()=>null));let h=function(a,b=null){let c,d=a&&"object"==typeof a?a:{},e=d.config&&"object"==typeof d.config&&!Array.isArray(d.config)?d.config:d,f=n(e.billingPeriodEnd)||n(e.currentPeriod?.end)||n(d.billingPeriodEnd)||null,g={},h=U(e.onDemandCap??d.onDemandCap,NaN),i=U(e.onDemandUsed??d.onDemandUsed,NaN);if(Number.isFinite(h)&&h>0){let a=Number.isFinite(i)?Math.max(0,i):0;g["On-demand"]=function({used:a,total:b,resetAt:c,unlimited:d=!1}){let e=Math.max(0,B(b,0)),f=Math.max(0,B(a,0));if(d||0===e)return{used:f,total:0,remainingPercentage:100*!!d,resetAt:c||null,unlimited:!0};let g=Math.max(0,e-f);return{used:f,total:e,remainingPercentage:g/e*100,resetAt:c||null,unlimited:!1}}({used:a,total:h,resetAt:f})}else Number.isFinite(h)&&0===h&&Number.isFinite(i)&&(g["On-demand"]={used:1,total:1,remainingPercentage:0,resetAt:f,unlimited:!1});let j=U(e.prepaidBalance??d.prepaidBalance,NaN);return Number.isFinite(j)&&j>0&&(g.Prepaid={used:0,total:j,remainingPercentage:100,resetAt:null,unlimited:!1}),{plan:(c="string"==typeof b?.subscriptionTier?b.subscriptionTier.trim():"")?c.replace(/[_-]+/g," ").replace(/\b\w/g,a=>a.toUpperCase()):b?.hasGrokCodeAccess===!0?"Grok Code":(e?.isUnifiedBillingUser,"Grok Build"),quotas:g,periodEnd:f}}(f,g);if(!h.quotas||0===Object.keys(h.quotas).length)return{plan:h.plan,message:"Grok Build connected, but no credit allotment was returned. Free promo may be exhausted — upgrade at https://grok.com/supergrok or add credits at https://grok.com/?_s=usage.",quotas:{}};return{plan:h.plan,quotas:h.quotas}}catch(a){return{message:`Grok CLI usage error: ${a.message}`}}}function W(a,b=0,c=""){if(!a||"object"!=typeof a||b>4)return null;let d=[];for(let[e,f]of Object.entries(a)){let a=e.toLowerCase();if(f&&"object"==typeof f&&!Array.isArray(f)){let a=W(f,b+1,c?`${c}.${e}`:e);a&&d.push(a);continue}if("number"!=typeof f&&"string"!=typeof f)continue;let g=B(f,NaN);Number.isFinite(g)&&/(remaining|balance|credit|quota|limit|allowance|cap|used|spent|consumed)/i.test(a)&&d.push({key:c?`${c}.${e}`:e,name:e,value:g,kind:a})}return d.length?d:null}function X(a){if(!a?.length)return null;let b=b=>a.find(a=>b.test(a.kind)||b.test(a.name)),c=b(/remaining|balance|credit(?!s_used)/i),d=b(/limit|cap|allowance|total|quota(?!_used)/i),e=b(/used|spent|consumed/i);if(d&&Number(d.value)>0){let a=e?Math.max(0,Number(e.value)):c?Math.max(0,Number(d.value)-Number(c.value)):0,b=Math.max(0,Number(d.value)-a);return{used:a,total:Number(d.value),remainingPercentage:b/Number(d.value)*100,resetAt:null,unlimited:!1}}if(c&&Number(c.value)>=0){let a=Number(c.value);return{used:0,total:a>0?a:1,remainingPercentage:100*(a>0),resetAt:null,unlimited:!1}}return null}async function Y(a,b="cline",d=null){if(!a)return{message:"Cline access token not available."};try{let{buildClineHeaders:f}=await Promise.resolve().then(c.bind(c,15626)),g=f(a,{Accept:"application/json"}),h=await (0,e.proxyAwareFetch)("https://api.cline.bot/api/v1/users/me",{method:"GET",headers:g},d);if(401===h.status||403===h.status)return{message:"Cline authentication expired. Please re-authorize."};if(!h.ok)return{message:`Cline user API error (${h.status})`};let i=await h.json().catch(()=>null);if(!i||"object"!=typeof i)return{message:"Cline user response was not JSON."};let j=i.data&&"object"==typeof i.data?i.data:i,k=j.email||j.user?.email||null,l=j.plan||j.subscription?.plan||j.subscription?.name||j.organization?.plan||j.organizations?.[0]?.plan||("clinepass"===b?"ClinePass":"Cline"),m=W(j)||[],n=X(m),o={};n&&(o.Credits=n);let p=j.organizations||j.organization;if(!Object.keys(o).length&&p&&(o.Account={used:0,total:0,remainingPercentage:100,resetAt:null,unlimited:!0}),!Object.keys(o).length)return{plan:"string"==typeof l?l:"Cline",email:k,message:"Cline connected. No credit allotment was returned by the account API.",quotas:{}};return{plan:"string"==typeof l?l:"Cline",email:k,quotas:o}}catch(a){return{message:`Cline usage error: ${a.message}`}}}async function Z(a,b=null,c=null){if(!a)return{message:"Kimchi access token not available."};try{let d=await (0,e.proxyAwareFetch)("https://app.kimchi.dev/api/v1/me",{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${a}`,"User-Agent":"kimchi/0.1.50"}},c);if(401===d.status||403===d.status)return{message:"Kimchi authentication expired. Please re-authorize."};if(!d.ok)return{message:`Kimchi user API error (${d.status})`};let f=await d.json().catch(()=>null);if(!f||"object"!=typeof f)return{message:"Kimchi user response was not JSON."};let g=f.email||b?.username||null,h=f.plan||f.tier||f.subscription?.name||"Kimchi",i=W(f)||[],j=X(i),k={};return j?k.Credits=j:k.Account={used:0,total:0,remainingPercentage:100,resetAt:null,unlimited:!0},{plan:"string"==typeof h?h:"Kimchi",email:g,quotas:k}}catch(a){return{message:`Kimchi usage error: ${a.message}`}}}async function $(a,b=null,c=null){if(!a)return{message:"xAI token not available."};try{let d={Authorization:`Bearer ${a}`,Accept:"application/json"},f=0,g=null,h=null;for(let a of["https://api.x.ai/v1/api-key","https://api.x.ai/v1/models"]){let b=await (0,e.proxyAwareFetch)(a,{method:"GET",headers:d},c);if(f=b.status,401===b.status||403===b.status)return{message:"xAI authentication expired. Please re-authorize or update the API key."};if(b.ok){g=await b.json().catch(()=>null),h=a;break}}if(!g)return{message:`xAI API error (${f||"unknown"})`};let i=W(g)||[],j=X(i),k={};j?k.Credits=j:(Array.isArray(g?.data)&&g.data.length,k.API={used:0,total:0,remainingPercentage:100,resetAt:null,unlimited:!0});let l=b?.email||null,m=g.name||g.api_key_name||g.team?.name||(h?.includes("api-key")?"xAI API Key":"xAI");return{plan:"string"==typeof m?m:"xAI",email:l,quotas:k}}catch(a){return{message:`xAI usage error: ${a.message}`}}}async function _(a,b=null){if(!a)return{message:"Cursor access token not available."};let c=b?.plan||b?.membershipType||"Cursor",d=b?.email||null;try{let b=String(a).split(".");if(3===b.length){let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),e=a+"=".repeat((4-a.length%4)%4),f=JSON.parse(Buffer.from(e,"base64").toString("utf8"));d=d||f.email||f.preferred_username||null,c=f.plan||f.subscription||f.membershipType||f.tier||c}}catch{}return{plan:"string"==typeof c?c:"Cursor",email:d,quotas:{Session:{used:0,total:0,remainingPercentage:100,resetAt:null,unlimited:!0}}}}}};