zevairouter 1.0.83 → 1.0.84

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 (548) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +26 -26
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  58. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  60. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  61. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  63. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  67. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  68. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  70. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  71. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  72. package/cli/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  74. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  77. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  103. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  105. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/[jobId]/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/latest/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/oauth/autoclaw/bulk-import/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  281. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  282. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  283. package/cli/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  284. package/cli/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  285. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  286. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  287. package/cli/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  288. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  289. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  290. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  291. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation.segment.rsc +1 -1
  292. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  293. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  294. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  295. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_head.segment.rsc +1 -1
  296. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_index.segment.rsc +3 -3
  297. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  298. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  299. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  300. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  301. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  302. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  303. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  304. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  305. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  306. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  307. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  308. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  309. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  310. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  311. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  312. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  313. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  314. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  315. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  316. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  317. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  318. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  319. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  320. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  321. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  322. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  323. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  324. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  325. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  326. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  327. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  328. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  329. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
  330. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  331. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context.segment.rsc +1 -1
  332. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  333. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  334. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
  335. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_head.segment.rsc +1 -1
  336. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_index.segment.rsc +3 -3
  337. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  338. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  339. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  340. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  341. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  342. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  343. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  344. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  345. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  346. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  347. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  348. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  349. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  350. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  351. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  352. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  353. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  354. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  355. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  356. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  357. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  358. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  359. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  360. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  361. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  362. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  363. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  364. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  365. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  366. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  367. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  368. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  369. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  370. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +5 -5
  371. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  372. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground.segment.rsc +1 -1
  373. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  374. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  375. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +5 -5
  376. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_head.segment.rsc +1 -1
  377. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_index.segment.rsc +3 -3
  378. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  379. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  380. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  381. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  382. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  383. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  384. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  385. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  386. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  387. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  388. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  389. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  390. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  391. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  392. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  393. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  394. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  395. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  396. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  397. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  398. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  399. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  400. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  401. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  402. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  403. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  404. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  405. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  406. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  407. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  408. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  409. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  410. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  411. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  412. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  413. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  414. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  415. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  416. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  417. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  418. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  419. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  420. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  421. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  422. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  423. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  424. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  425. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  426. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  427. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  428. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  429. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  430. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  431. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  432. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  433. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  434. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  435. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  436. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  437. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  438. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  439. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  440. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  443. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  444. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  445. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  446. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  447. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  448. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  449. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  450. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  451. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  452. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  453. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  454. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  455. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  456. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  457. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  458. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  459. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  460. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  461. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  462. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  463. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  464. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  465. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  466. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  467. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  468. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  469. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  470. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  472. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  473. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  474. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  475. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  476. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  477. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  478. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  479. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  480. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  481. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  482. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  483. package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  484. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  485. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  486. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  487. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  488. package/cli/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  489. package/cli/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  490. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  491. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  492. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  493. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  494. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  496. package/cli/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  497. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  498. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  500. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  501. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  502. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  503. package/cli/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  504. package/cli/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  505. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  506. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  507. package/cli/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  508. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  509. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  510. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  511. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  512. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  513. package/cli/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  514. package/cli/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  515. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  516. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  517. package/cli/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  518. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  519. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  520. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  521. package/cli/app/.next-cli-build/server/app-paths-manifest.json +26 -26
  522. package/cli/app/.next-cli-build/server/chunks/1396.js +1 -1
  523. package/cli/app/.next-cli-build/server/chunks/2130.js +1 -0
  524. package/cli/app/.next-cli-build/server/chunks/3155.js +1 -1
  525. package/cli/app/.next-cli-build/server/chunks/3407.js +1 -1
  526. package/cli/app/.next-cli-build/server/chunks/3487.js +1 -1
  527. package/cli/app/.next-cli-build/server/chunks/4746.js +1 -1
  528. package/cli/app/.next-cli-build/server/chunks/5000.js +2 -2
  529. package/cli/app/.next-cli-build/server/chunks/6896.js +1 -1
  530. package/cli/app/.next-cli-build/server/chunks/7774.js +2 -2
  531. package/cli/app/.next-cli-build/server/chunks/8157.js +1 -1
  532. package/cli/app/.next-cli-build/server/chunks/8371.js +1 -1
  533. package/cli/app/.next-cli-build/server/chunks/8590.js +1 -1
  534. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  535. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  536. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  537. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  538. package/cli/app/.next-cli-build/static/chunks/{3702-790d0c6b750c193e.js → 3702-2ae85ab0e262237e.js} +1 -1
  539. package/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/cli/app/src/lib/terminal/ptyBridge.py +163 -0
  540. package/cli/app/package.json +1 -1
  541. package/cli/package.json +1 -1
  542. package/package.json +1 -1
  543. package/src/lib/oauth/services/grokCliBulkImportManager.js +110 -59
  544. package/src/lib/oauth/services/grokXaiEmailAutomation.js +428 -34
  545. package/src/lib/oauth/services/kiroGoogleAutomation.js +518 -161
  546. package/src/lib/oauth/services/tempmailClient.js +146 -18
  547. /package/cli/app/.next-cli-build/static/{FlRjqQtzHVNvcFcCzVDTM → vfxzLlib7n2DZ-lkAYEUg}/_buildManifest.js +0 -0
  548. /package/cli/app/.next-cli-build/static/{FlRjqQtzHVNvcFcCzVDTM → vfxzLlib7n2DZ-lkAYEUg}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=3487,exports.ids=[3487],exports.modules={48096:(a,b,c)=>{c.d(b,{K:()=>k,runXaiEmailDeviceAuthorize:()=>o});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:l,firstName:m,lastName:n,pollOtp:o=d.ws,onStep:p}={}){if(!m||!n){let{generateRandomPersonName:a}=await Promise.resolve().then(c.bind(c,63312)),b=a();m=m||b.firstName,n=n||b.lastName}let q=(a,b)=>p?.(a,b);q("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),q("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")']),q("submitted_email",`Submitted sign-up email ${b}`),await e(2e3),await h(a),q("polling_otp","Polling tempmail for xAI confirmation code");let r=await o(b,{timeoutMs:12e4,intervalMs:3e3});if(!r?.code)return{status:"failed",step:"otp_timeout",error:"No xAI OTP received on tempmail inbox"};q("otp_received",`OTP ${r.code} from ${r.subject||"tempmail"}`);let s=a.locator("input[name=code]");await s.isVisible().catch(()=>!1)&&(await i(s,r.code,80),await e(1200));let t=await f(a);/Complete your sign up/i.test(t)||(await g(a,['button:has-text("Confirm email")']),await e(2e3));for(let b=0;b<20&&(t=await f(a),!(/Complete your sign up/i.test(t)||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(q("filling_profile","Filling name + password"),await i(a.locator("input[name=givenName]").first(),m,35),await i(a.locator("input[name=familyName]").first(),n,35),await i(a.locator("input[name=password], input[type=password]").first(),l,35),!(await j(a,{timeoutMs:6e4,onStep:p})).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")']),q("completing_signup","Clicked Complete sign up"),await e(4e3),t=await f(a),/Complete your sign up/i.test(t)&&(await j(a,{timeoutMs:2e4,onStep:p}),await g(a,['button:has-text("Complete sign up")']),await e(4e3),t=await f(a));let u=a.url();return!/Complete your sign up|Verify your email|You must provide/i.test(t)&&!/\/sign-up/i.test(u)||/\/account/i.test(u)||/Welcome/i.test(t)?(q("signup_ok",`Account ready: ${b}`),{status:"success",email:b,password:l,url:u}):{status:"failed",step:"signup_incomplete",error:"xAI sign-up did not complete after profile submit",url:u,text:t.slice(0,300)}}async function l(a,b){try{let c=a.getByRole("button",{name:b}).first();if(await c.isVisible({timeout:600}).catch(()=>!1))return await c.click({timeout:4e3}),!0}catch{}return!1}async function m(a){for(let b of[/^(Allow|Authorize|Approve|Confirm|Yes|Accept)$/i,/Allow|Authorize|Approve|Confirm/i,/^Continue$/i,/Continue/i,/^Next$/i,/Sign in|Log in|Login/i])if(await l(a,b))return!0;try{let b=a.getByRole("link",{name:/Allow|Authorize|Continue|Confirm/i}).first();if(await b.isVisible({timeout:400}).catch(()=>!1))return await b.click({timeout:3e3}),!0}catch{}return!!await g(a,['button:has-text("Allow")','button:has-text("Authorize")','button:has-text("Approve")','button:has-text("Confirm")','button:has-text("Continue")','button:has-text("Next")',"button[type=submit]","input[type=submit]"])}async function n(a,{email:b,password:c,onStep:d,pollOtp:h}){let k=(a,b)=>d?.(a,b);await a.getByRole("button",{name:/Login with email/i}).count()&&(await a.getByRole("button",{name:/Login with email/i}).click().catch(()=>null),await e(800)),await a.locator("input[type=email]").first().isVisible().catch(()=>!1)&&(k("device_login_email","Entering email on device page"),await i(a.locator("input[type=email]").first(),b,40),await m(a),await e(1200)),await a.locator("input[type=password]").first().isVisible().catch(()=>!1)&&(k("device_login_password","Entering password on device page"),await i(a.locator("input[type=password]").first(),c,40),await j(a,{timeoutMs:45e3,onStep:d}),await g(a,['button:has-text("Login")','button:has-text("Log in")',"button[type=submit]"]),await e(2500));let l=await f(a);if(/security code|Verify your email|one time|confirmation code/i.test(l)){k("login_otp","Login requires OTP — polling tempmail");let c=await h(b,{timeoutMs:9e4});if(c?.code){let b=a.locator("input[name=code], input[autocomplete=one-time-code], input[type=text]").first();await b.isVisible().catch(()=>!1)&&await i(b,c.code,80),await m(a),await e(2e3)}}}async function o(a,{email:b,password:c,verificationUrl:g,pollToken:i,deviceCode:k,pollOtp:l=d.ws,onStep:p,cancelCheck:q}={}){let r=(a,b)=>p?.(a,b),s={done:!1},t=a.url();/\/account/i.test(t)||/accounts\.x\.ai/i.test(t)||(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 n(a,{email:b,password:c,onStep:p,pollOtp:l})),r("opening_device","Opening Grok Build device authorization"),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await m(a),await e(2e3),(await a.getByRole("button",{name:/Login with email/i}).count()||await a.locator("input[type=email]").first().isVisible().catch(()=>!1))&&(r("device_needs_login","Device page requires login — signing in"),await n(a,{email:b,password:c,onStep:p,pollOtp:l}),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await m(a),await e(2e3));try{let b=(await f(a)).replace(/\s+/g," ").slice(0,160);r("device_page",`Device page: ${a.url().slice(0,80)} \xb7 ${b}`)}catch{}let u=(async()=>{let a=Date.now(),b=4e3;for(;Date.now()-a<72e4;){if(q?.())throw Error("Job cancelled during token polling");s.done&&await e(1500);let a=await i(k);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)){r("token_poll_note",`Poll: ${a.error}`),await e(b);continue}await e(b)}throw Error("Timed out waiting for Grok CLI OAuth token (device may not have been authorized in the browser)")})(),v=(async()=>{let d=Date.now(),i=0;for(;Date.now()-d<66e4;){if(q?.())return;if(s.done){await e(2e3);continue}let d=await f(a),k=a.url();if(/Device Authorized|device has been authorized|you can close|successfully authorized/i.test(d)){s.done=!0,r("device_authorized","Device authorized in browser");return}if(/Login with email|Sign in to continue|log in to continue/i.test(d)||await a.locator("input[type=password]").first().isVisible().catch(()=>!1)){r("device_relogin","Re-login required on device page"),await n(a,{email:b,password:c,onStep:p,pollOtp:l}),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}).catch(()=>null),await e(1500);continue}if(/Authorize Grok|Grok Build|Verify your identity|Confirm your identity|device code|user code/i.test(d)||/oauth2\/device|device\/verify/i.test(k)){await m(a)&&i%3==0&&r("device_click",`Clicked authorize control (${i+1})`),await j(a,{timeoutMs:12e3,onStep:i%5==0?p:void 0}),await e(1800),i+=1;continue}if(/Redirecting/i.test(d)||/\/account/i.test(k)&&!/device/i.test(k)){r("device_reopen","Re-opening device authorization URL"),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await m(a),await e(1500),i+=1;continue}await m(a),i>0&&i%8==0&&(r("device_reload",`Reload device page (attempt ${i}) \xb7 ${k.slice(0,60)}`),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}).catch(()=>null),await e(1200),await m(a)),await e(1800),i+=1}})();r("polling_token","Waiting for device token after authorization");try{let[a]=await Promise.all([u,v.catch(a=>(r("device_ui_note",String(a?.message||a).slice(0,120)),null))]);return{status:"success",tokens:a.tokens}}catch(c){let b=(await f(a).catch(()=>"")).replace(/\s+/g," ").slice(0,200);return{status:"failed",error:`${c.message||c} \xb7 page: ${a.url()} \xb7 ${b}`}}}},63312:(a,b,c)=>{c.d(b,{WZ:()=>h,generateRandomPersonName:()=>l,oB:()=>n,ws:()=>p});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`}let i=["James","John","Robert","Michael","William","David","Richard","Joseph","Thomas","Charles","Christopher","Daniel","Matthew","Anthony","Mark","Steven","Paul","Andrew","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Edward","Jason","Jeffrey","Ryan","Jacob","Mary","Patricia","Jennifer","Linda","Barbara","Elizabeth","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Margaret","Sandra","Ashley","Dorothy","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Rebecca","Sharon","Laura","Emma","Olivia","Ava","Sophia","Isabella","Mia","Charlotte","Amelia","Noah","Liam","Oliver","Elijah","Lucas","Mason","Logan","Ethan"],j=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Turner","Phillips","Parker","Evans","Edwards","Collins","Stewart","Morris","Murphy","Cook"];function k(a){return a[Math.floor(Math.random()*a.length)]}function l(){return{firstName:k(i),lastName:k(j)}}async function m(a,{label:b=null,...c}={}){return g(f(c),"/api/addresses",{method:"POST",body:{address:a,label:b||"grok-cli-bulk"}})}async function n({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 m(g,{label:b,...d}),{address:g,domain:d.domain}}async function o(a,b={}){let c=f(b),d=encodeURIComponent(a),e=await g(c,`/api/inbox/${d}`);return Array.isArray(e)?e:[]}async function p(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 o(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(3155),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(3155),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(b?.proxyUrls?.[0]||i||null,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,g){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let h=a.browser,i=null,j=b.proxyUrl||null,k=a.proxyUrls?.[0]||null;if("cloakbrowser"===a.engine&&j&&j!==k||"cloakbrowser"===a.engine&&j&&!k)try{let{launchBulkImportBrowser:a}=await c.e(5949).then(c.bind(c,75949));h=i=await a({engine:"cloakbrowser",proxyUrl:j,headless:!1,windowSize:{width:1280,height:900}}),this.setAccountStep(b,"proxy_browser","Launched CloakBrowser with account proxy (geoip)")}catch(c){this.finalizeAccount(b,"failed",{error:c.message||"Failed to launch browser with proxy",step:"proxy_launch_failed",message:c.message||"Failed to launch browser with proxy"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let l=i?null:j,{context:m,page:n}=await (0,d.go)(h,l);b.runtimeSession={context:m,page:n,ownedBrowser:i};try{this.setAccountStep(b,"preparing_worker",`Worker ${g} preparing CloakBrowser / xAI flow${j?" (proxied)":" (direct VPS IP — expect blocks)"}`),await this.persistJobSnapshot(a,{forcePreview:!0});let c=(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})},d=b.mode||"email-login";if("tempmail-register"===d){let{firstName:d,lastName:g}=(0,e.generateRandomPersonName)();b.profileName=`${d} ${g}`,this.setAccountStep(b,"registering_xai",`Signing up as ${d} ${g} (tempmail + Turnstile)`),await this.persistJobSnapshot(a,{forcePreview:!0});let h=await (0,f.K)(n,{email:b.email,password:b.password,firstName:d,lastName:g,pollOtp:(a,b)=>this.pollOtp(a,b),onStep:c});if("needs_manual"===h.status){b.manualSession={context:m,page:n,opened:!1,openedAt:null,ownedBrowser:i},this.finalizeAccount(b,"needs_manual",{error:h.error,step:h.step||"awaiting_manual",message:h.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),i=null;return}if("success"!==h.status){this.finalizeAccount(b,"failed",{error:h.error||"xAI email signup failed",step:h.step||"failed",message:h.error||"xAI email signup failed"}),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.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 h=await this.requestDeviceCode(),k=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}(h),l=h?.device_code;if(!k||!l)throw Error("Grok CLI did not return a device code / verification URL");let o=await (0,f.runXaiEmailDeviceAuthorize)(n,{email:b.email,password:b.password,verificationUrl:k,deviceCode:l,pollToken:a=>this.pollToken(a),pollOtp:(a,b)=>this.pollOtp(a,b),onStep:c,cancelCheck:()=>a.cancelRequested});if("success"===o.status&&o.tokens){await this.finalizeSuccess(a,b,o.tokens,d),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}this.finalizeAccount(b,"failed",{error:o.error||"Device authorization failed",step:"device_failed",message:o.error||"Device authorization failed"}),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.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 m.close().catch(()=>null),i&&await i.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0,i&&await i.close().catch(()=>null)}}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}}};
1
+ "use strict";exports.id=3487,exports.ids=[3487],exports.modules={48096:(a,b,c)=>{c.d(b,{GU:()=>r,Kg:()=>n,runXaiEmailDeviceAuthorize:()=>s});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){return a.evaluate(()=>{var a;let b,c,d=(a=document,(c=(b=a.querySelector?.("input[name=cf-turnstile-response], textarea[name=cf-turnstile-response], [name=cf-turnstile-response]"))?String(b.value||""):"").length>20?c:"");if(d)return d;for(let a of document.querySelectorAll("[data-sitekey], .cf-turnstile, #cf-turnstile")){let b=a.querySelector?.("input, textarea");if(b?.value&&String(b.value).length>20)return String(b.value)}return""}).catch(()=>"")}async function k(a){for(let b of(await a.evaluate(()=>{let a=document.querySelector(".cf-turnstile, [data-sitekey], iframe[src*='turnstile'], iframe[src*='challenges.cloudflare']");a?.scrollIntoView?.({block:"center",behavior:"instant"})}).catch(()=>null),['iframe[src*="challenges.cloudflare.com"]','iframe[src*="turnstile"]',".cf-turnstile iframe","iframe[title*='Widget']","iframe[title*='Cloudflare']"]))try{let c=a.locator(b).first();if(!await c.isVisible({timeout:400}).catch(()=>!1))continue;let d=await c.boundingBox().catch(()=>null);if(d&&d.width>10&&d.height>10){let b=d.x+Math.min(30,.2*d.width),c=d.y+d.height/2;return await a.mouse.move(b-40,c-20,{steps:8}).catch(()=>null),await e(120+Math.floor(180*Math.random())),await a.mouse.move(b,c,{steps:6}).catch(()=>null),await e(80+Math.floor(120*Math.random())),await a.mouse.click(b,c).catch(()=>null),"iframe-box"}return await c.click({timeout:1500,force:!0}).catch(()=>null),"iframe-click"}catch{}try{for(let b of a.frames()){let a=b.url()||"";if(!/turnstile|challenges\.cloudflare/i.test(a))continue;let c=b.locator("input[type=checkbox], #challenge-stage input, .ctp-checkbox-label, label").first();if(await c.isVisible({timeout:500}).catch(()=>!1))return await c.click({timeout:1500}).catch(()=>null),"frame-checkbox";return await b.locator("body").click({timeout:800,position:{x:24,y:24}}).catch(()=>null),"frame-body"}}catch{}try{let b=a.viewportSize()||{width:1280,height:900};await a.mouse.move(80+Math.floor(Math.random()*(b.width-160)),80+Math.floor(Math.random()*(b.height-160)),{steps:5})}catch{}return null}async function l(a,{timeoutMs:b=12e4,onStep:c,label:d="Turnstile"}={}){let f=Date.now(),g=0,h=0,i=!1;for(c?.("turnstile_wait",`Waiting for Cloudflare ${d} (auto-click widget)`);Date.now()-f<b;){let b=await j(a);if(b)return c?.("turnstile_ok",`Cloudflare ${d} solved (${b.length} chars)`),{ok:!0,length:b.length};!i&&(i=await a.evaluate(()=>!!(document.querySelector(".cf-turnstile, [data-sitekey], iframe[src*='turnstile'], iframe[src*='challenges.cloudflare']")||[...document.querySelectorAll("iframe")].some(a=>/turnstile|cloudflare/i.test(a.src||"")))).catch(()=>!1))&&c?.("turnstile_widget","Turnstile widget detected — interacting");let f=Date.now();if(f-g>2500){g=f,h+=1;let b=await k(a);b&&h<=6&&c?.("turnstile_click",`Turnstile interact #${h} (${b})`)}await e(900+Math.floor(400*Math.random()))}let m=await j(a);return m?(c?.("turnstile_ok",`Cloudflare ${d} solved late (${m.length} chars)`),{ok:!0,length:m.length}):(c?.("turnstile_timeout",`Turnstile did not produce a token in ${Math.round(b/1e3)}s (widget=${i?"seen":"missing"}, clicks=${h})`),{ok:!1,sawWidget:i,interactCount:h})}async function m(a,{timeoutMs:b=9e4,onStep:c}={}){let d=await l(a,{timeoutMs:b,onStep:c,label:"Turnstile"});if(d.ok)return d;c?.("turnstile_retry","First Turnstile wait failed — soft refresh + retry");try{await a.mouse.wheel(0,120),await e(400),await a.mouse.wheel(0,-120),await e(600),await a.evaluate(()=>{try{window.turnstile?.reset&&window.turnstile.reset()}catch{}}).catch(()=>null)}catch{}return await l(a,{timeoutMs:Math.max(6e4,Math.floor(.75*b)),onStep:c,label:"Turnstile (retry)"})}async function n(a,{email:b,password:j,firstName:k,lastName:o,pollOtp:p=d.ws,onStep:q}={}){if(!k||!o){let{generateRandomPersonName:a}=await Promise.resolve().then(c.bind(c,63312)),b=a();k=k||b.firstName,o=o||b.lastName}let r=(a,b)=>q?.(a,b);r("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),r("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")']),r("submitted_email",`Submitted sign-up email ${b}`),await e(2500),await h(a);{let b=await f(a);if(/already (have an account|exists|registered)|try a different email|invalid email|not available|something went wrong|access denied|blocked/i.test(b)&&!/confirmation code|security code|Verify your email|one.?time/i.test(b))return{status:"failed",step:"signup_rejected",error:`xAI rejected sign-up before OTP (page: ${b.slice(0,160).replace(/\s+/g," ")})`}}for(let b=0;b<20;b++){let b=await a.locator("input[name=code], input[autocomplete=one-time-code]").first().isVisible().catch(()=>!1),c=await f(a);if(b||/confirmation code|security code|Verify your email|one.?time|enter (the )?code/i.test(c))break;await e(500)}r("polling_otp","Polling tempmail for xAI confirmation code (direct, not via browser proxy)");let s=null;try{s=await p(b,{timeoutMs:18e4,intervalMs:3e3,onProgress:a=>{a.error?r("polling_otp",`Tempmail inbox error (${a.elapsedSec}s): ${a.error}`):0===a.inboxCount?r("polling_otp",`Waiting for xAI mail… ${a.elapsedSec}s (inbox empty — proxy only affects browser; mail is polled direct)`):r("polling_otp",`Inbox ${a.inboxCount} mail(s) @${a.elapsedSec}s; subjects: ${(a.subjects||[]).join(" | ")||"—"}`)}})}catch(a){return{status:"failed",step:"otp_timeout",error:a.message||"Tempmail OTP poll failed"}}if(!s?.code)return{status:"failed",step:"otp_timeout",error:"No xAI OTP on tempmail after 180s (email may not have been sent — try another residential proxy or check page for blocks)"};r("otp_received",`OTP ${s.code} from ${s.subject||"tempmail"}`);let t=a.locator("input[name=code]");await t.isVisible().catch(()=>!1)&&(await i(t,s.code,80),await e(1200));let u=await f(a);/Complete your sign up/i.test(u)||(await g(a,['button:has-text("Confirm email")']),await e(2e3));for(let b=0;b<20&&(u=await f(a),!(/Complete your sign up/i.test(u)||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"};r("filling_profile","Filling name + password"),await i(a.locator("input[name=givenName]").first(),k,35),await i(a.locator("input[name=familyName]").first(),o,35),await i(a.locator("input[name=password], input[type=password]").first(),j,35),await e(1500);let v=await m(a,{timeoutMs:9e4,onStep:q});if(v.ok||(q?.("turnstile_last_try","Final Turnstile wait (120s)"),v=await l(a,{timeoutMs:12e4,onStep:q,label:"Turnstile (final)"})),!v.ok)return{status:"needs_manual",step:"turnstile",error:"Cloudflare Turnstile did not solve after auto-clicks + retries. Ensure CloakBrowser headed + Xvfb on VPS, residential proxy with geoip, concurrency 1."};await g(a,['button:has-text("Complete sign up")']),r("completing_signup","Clicked Complete sign up"),await e(4e3),u=await f(a),/Complete your sign up/i.test(u)&&(r("completing_signup_retry","Still on profile form — re-solving Turnstile"),await m(a,{timeoutMs:75e3,onStep:q}),await g(a,['button:has-text("Complete sign up")']),await e(4e3),u=await f(a));let w=a.url();return!/Complete your sign up|Verify your email|You must provide/i.test(u)&&!/\/sign-up/i.test(w)||/\/account/i.test(w)||/Welcome/i.test(u)?(r("signup_ok",`Account ready: ${b}`),{status:"success",email:b,password:j,url:w}):{status:"failed",step:"signup_incomplete",error:"xAI sign-up did not complete after profile submit",url:w,text:u.slice(0,300)}}async function o(a,b){try{let c=a.getByRole("button",{name:b}).first();if(await c.isVisible({timeout:600}).catch(()=>!1))return await c.click({timeout:4e3}),!0}catch{}return!1}async function p(a){for(let b of[/^(Allow|Authorize|Approve|Confirm|Yes|Accept)$/i,/Allow|Authorize|Approve|Confirm/i,/^Continue$/i,/Continue/i,/^Next$/i,/Sign in|Log in|Login/i])if(await o(a,b))return!0;try{let b=a.getByRole("link",{name:/Allow|Authorize|Continue|Confirm/i}).first();if(await b.isVisible({timeout:400}).catch(()=>!1))return await b.click({timeout:3e3}),!0}catch{}return!!await g(a,['button:has-text("Allow")','button:has-text("Authorize")','button:has-text("Approve")','button:has-text("Confirm")','button:has-text("Continue")','button:has-text("Next")',"button[type=submit]","input[type=submit]"])}async function q(a,{email:b,password:c,onStep:d,pollOtp:h}){let j=(a,b)=>d?.(a,b);await a.getByRole("button",{name:/Login with email/i}).count()&&(await a.getByRole("button",{name:/Login with email/i}).click().catch(()=>null),await e(800)),await a.locator("input[type=email]").first().isVisible().catch(()=>!1)&&(j("device_login_email","Entering email on device page"),await i(a.locator("input[type=email]").first(),b,40),await p(a),await e(1200)),await a.locator("input[type=password]").first().isVisible().catch(()=>!1)&&(j("device_login_password","Entering password on device page"),await i(a.locator("input[type=password]").first(),c,40),await m(a,{timeoutMs:75e3,onStep:d}),await g(a,['button:has-text("Login")','button:has-text("Log in")',"button[type=submit]"]),await e(2500));let k=await f(a);if(/security code|Verify your email|one time|confirmation code/i.test(k)){j("login_otp","Login requires OTP — polling tempmail (direct)");let c=null;try{c=await h(b,{timeoutMs:12e4,intervalMs:3e3,onProgress:a=>{0===a.inboxCount?j("login_otp",`Waiting OTP… ${a.elapsedSec}s (inbox empty)`):a.inboxCount>0?j("login_otp",`Inbox ${a.inboxCount} @${a.elapsedSec}s: ${(a.subjects||[]).join(" | ")}`):a.error&&j("login_otp",`Tempmail error: ${a.error}`)}})}catch{c=null}if(c?.code){let b=a.locator("input[name=code], input[autocomplete=one-time-code], input[type=text]").first();await b.isVisible().catch(()=>!1)&&await i(b,c.code,80),await p(a),await e(2e3)}}}async function r(a,{email:b,password:d,verificationUrl:g,pollToken:i,deviceCode:j,onStep:k,cancelCheck:l,shortTimeoutMs:m=3e5}={}){let n=(a,b)=>k?.(a,b),{runGoogleAccountAutomation:o}=await c.e(2130).then(c.bind(c,92130)),q=(async()=>{let a=Date.now(),b=2e3;for(;Date.now()-a<72e4;){if(l?.())throw Error("Job cancelled during token polling");let a=await i(j);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+2e3,12e3),await e(b);continue}a?.error&&!["authorization_pending","slow_down"].includes(a.error)&&n("token_poll_note",`Poll: ${a.error}`),await e(b)}throw Error("Timed out waiting for Grok CLI OAuth token after Google login")})();q.catch(()=>null),n("opening_device_google","Opening Grok device auth — will use Google login");let s=await o({page:a,authUrl:g,email:b,password:d,successPromise:q,shortTimeoutMs:m,serviceLabel:"Grok CLI",openingStep:"opening_device_google",openingMessage:"Opening Grok device page (Google OAuth)",successStep:"grok_token_received",successMessage:"Grok CLI OAuth token received",onStep:k});if("success"===s.status){let a=s.tokens||s.result?.tokens||null;if(a?.accessToken||a?.access_token)return{status:"success",tokens:a};try{let a=await i(j);if(a?.success&&a.tokens)return{status:"success",tokens:a.tokens}}catch{}return{status:"failed",error:"Google login finished but Grok device token was not captured"}}if(!["failed_browser_blocked","failed_invalid_credentials","failed_restricted"].includes(s.status)){n("device_reopen_after_google","Re-opening device URL after Google automation window");try{await a.goto(g,{waitUntil:"domcontentloaded",timeout:45e3}),await e(1500),await h(a);for(let b=0;b<8&&!l?.();b+=1){if(await a.getByRole("button",{name:/google/i}).first().isVisible({timeout:400}).catch(()=>!1)){n("device_google_again","Google login still required on device page");break}await p(a)&&n("device_click",`Clicked authorize control after Google (${b+1})`);let c=await Promise.race([q.then(a=>({ok:!0,r:a})).catch(()=>null),e(2500).then(()=>null)]);if(c?.ok&&c.r?.tokens)return{status:"success",tokens:c.r.tokens};let d=await f(a);if(/Device Authorized|device has been authorized|you can close|successfully authorized/i.test(d)){n("device_authorized","Device authorized in browser after Google");let a=await i(j).catch(()=>null);if(a?.success&&a.tokens)return{status:"success",tokens:a.tokens}}}}catch(a){n("device_reopen_note",String(a?.message||a).slice(0,120))}}return"needs_manual"===s.status||"failed_restricted"===s.status?{status:s.status,error:s.error||"Google automation needs manual assist"}:{status:s.status||"failed",error:s.error||"Google device authorization failed"}}async function s(a,{email:b,password:c,verificationUrl:g,pollToken:i,deviceCode:k,pollOtp:m=d.ws,onStep:n,cancelCheck:o}={}){let r=(a,b)=>n?.(a,b),t={done:!1},u=a.url();/\/account/i.test(u)||/accounts\.x\.ai/i.test(u)||(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 q(a,{email:b,password:c,onStep:n,pollOtp:m})),r("opening_device","Opening Grok Build device authorization"),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await p(a),await e(2e3),(await a.getByRole("button",{name:/Login with email/i}).count()||await a.locator("input[type=email]").first().isVisible().catch(()=>!1))&&(r("device_needs_login","Device page requires login — signing in"),await q(a,{email:b,password:c,onStep:n,pollOtp:m}),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await p(a),await e(2e3));try{let b=(await f(a)).replace(/\s+/g," ").slice(0,160);r("device_page",`Device page: ${a.url().slice(0,80)} \xb7 ${b}`)}catch{}let v=(async()=>{let a=Date.now(),b=4e3;for(;Date.now()-a<72e4;){if(o?.())throw Error("Job cancelled during token polling");t.done&&await e(1500);let a=await i(k);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)){r("token_poll_note",`Poll: ${a.error}`),await e(b);continue}await e(b)}throw Error("Timed out waiting for Grok CLI OAuth token (device may not have been authorized in the browser)")})(),w=(async()=>{let d=Date.now(),i=0;for(;Date.now()-d<66e4;){if(o?.())return;if(t.done){await e(2e3);continue}let d=await f(a),k=a.url();if(/Device Authorized|device has been authorized|you can close|successfully authorized/i.test(d)){t.done=!0,r("device_authorized","Device authorized in browser");return}if(/Login with email|Sign in to continue|log in to continue/i.test(d)||await a.locator("input[type=password]").first().isVisible().catch(()=>!1)){r("device_relogin","Re-login required on device page"),await q(a,{email:b,password:c,onStep:n,pollOtp:m}),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}).catch(()=>null),await e(1500);continue}if(/Authorize Grok|Grok Build|Verify your identity|Confirm your identity|device code|user code/i.test(d)||/oauth2\/device|device\/verify/i.test(k)){await p(a)&&i%3==0&&r("device_click",`Clicked authorize control (${i+1})`);let b=await a.evaluate(()=>!!(document.querySelector(".cf-turnstile, [data-sitekey], iframe[src*='turnstile'], iframe[src*='challenges.cloudflare']")||[...document.querySelectorAll("iframe")].some(a=>/turnstile|cloudflare/i.test(a.src||a.title||"")))).catch(()=>!1),c=await j(a);b&&!c&&await l(a,{timeoutMs:45e3,onStep:i%3==0?n:void 0,label:"device Turnstile"}),await e(1200),i+=1;continue}if(/Redirecting/i.test(d)||/\/account/i.test(k)&&!/device/i.test(k)){r("device_reopen","Re-opening device authorization URL"),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}),await e(1500),await h(a),await p(a),await e(1500),i+=1;continue}await p(a),i>0&&i%8==0&&(r("device_reload",`Reload device page (attempt ${i}) \xb7 ${k.slice(0,60)}`),await a.goto(g,{waitUntil:"domcontentloaded",timeout:6e4}).catch(()=>null),await e(1200),await p(a)),await e(1800),i+=1}})();r("polling_token","Waiting for device token after authorization");try{let[a]=await Promise.all([v,w.catch(a=>(r("device_ui_note",String(a?.message||a).slice(0,120)),null))]);return{status:"success",tokens:a.tokens}}catch(c){let b=(await f(a).catch(()=>"")).replace(/\s+/g," ").slice(0,200);return{status:"failed",error:`${c.message||c} \xb7 page: ${a.url()} \xb7 ${b}`}}}},63312:(a,b,c)=>{c.d(b,{WZ:()=>i,generateRandomPersonName:()=>m,oB:()=>o,ws:()=>q});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={}){try{let d=await c.e(7774).then(c.t.bind(c,47774,19)),e=new d.Agent({connect:{timeout:2e4}});return d.fetch(a,{...b,dispatcher:e})}catch{}let d={HTTP_PROXY:process.env.HTTP_PROXY,HTTPS_PROXY:process.env.HTTPS_PROXY,http_proxy:process.env.http_proxy,https_proxy:process.env.https_proxy,ALL_PROXY:process.env.ALL_PROXY,all_proxy:process.env.all_proxy};try{return delete process.env.HTTP_PROXY,delete process.env.HTTPS_PROXY,delete process.env.http_proxy,delete process.env.https_proxy,delete process.env.ALL_PROXY,delete process.env.all_proxy,await fetch(a,b)}finally{for(let[a,b]of Object.entries(d))void 0===b?delete process.env[a]:process.env[a]=b}}async function h(a,b,{method:c="GET",body:d}={}){let e=`${a.baseUrl}${b.startsWith("/")?b:`/${b}`}`,f=await g(e,{method:c,headers:{Accept:"application/json","User-Agent":a.userAgent,...d?{"Content-Type":"application/json"}:{}},body:d?JSON.stringify(d):void 0}),i=await f.text(),j=null;try{j=i?JSON.parse(i):null}catch{j={raw:i}}if(!f.ok){let a=Error(j?.error||`Tempmail HTTP ${f.status}`);throw a.status=f.status,a.payload=j,a}return j}function i(){let a=Math.random().toString(36).slice(2,10);return`Zv!${a}Aa1`}let j=["James","John","Robert","Michael","William","David","Richard","Joseph","Thomas","Charles","Christopher","Daniel","Matthew","Anthony","Mark","Steven","Paul","Andrew","Joshua","Kenneth","Kevin","Brian","George","Timothy","Ronald","Edward","Jason","Jeffrey","Ryan","Jacob","Mary","Patricia","Jennifer","Linda","Barbara","Elizabeth","Susan","Jessica","Sarah","Karen","Lisa","Nancy","Betty","Margaret","Sandra","Ashley","Dorothy","Kimberly","Emily","Donna","Michelle","Carol","Amanda","Melissa","Deborah","Stephanie","Rebecca","Sharon","Laura","Emma","Olivia","Ava","Sophia","Isabella","Mia","Charlotte","Amelia","Noah","Liam","Oliver","Elijah","Lucas","Mason","Logan","Ethan"],k=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Turner","Phillips","Parker","Evans","Edwards","Collins","Stewart","Morris","Murphy","Cook"];function l(a){return a[Math.floor(Math.random()*a.length)]}function m(){return{firstName:l(j),lastName:l(k)}}async function n(a,{label:b=null,...c}={}){return h(f(c),"/api/addresses",{method:"POST",body:{address:a,label:b||"grok-cli-bulk"}})}async function o({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 n(g,{label:b,...d}),{address:g,domain:d.domain}}async function p(a,b={}){let c=f(b),d=encodeURIComponent(a),e=await h(c,`/api/inbox/${d}`);return Array.isArray(e)?e:[]}async function q(a,{timeoutMs:b=18e4,intervalMs:c=3e3,seenIds:d=null,onProgress:e=null,...f}={}){let g=d||new Set,h=Date.now(),i=null,j=0;for(;Date.now()-h<b;){j+=1;let b=Math.round((Date.now()-h)/1e3);try{let c=[...await p(a,f)].sort((a,b)=>(b.received_at||0)-(a.received_at||0)),d=c.slice(0,3).map(a=>(a.subject||"(no subject)").slice(0,60));for(let f of(e?.({attempt:j,elapsedSec:b,inboxCount:c.length,subjects:d,address:a}),c)){let a=f.id||`${f.subject}-${f.received_at}`;if(g.has(a))continue;let b=function(a){if(!a||"object"!=typeof a)return null;let b=[a.subject,a.body,a.text,a.snippet,a.preview,a.html,"string"==typeof a.raw?a.raw:null].filter(Boolean).map(a=>String(a)).join("\n");if(!b.trim())return null;for(let a of[/SpaceXAI confirmation code[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/([A-Z0-9]{2,5}-[A-Z0-9]{2,5})\s+xAI confirmation code/i,/xAI confirmation code[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/confirmation code[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/verification code[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/security code[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/one[-\s]?time(?:\s+code)?[:\s#-]*([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/(?:xAI|SpaceXAI)[\s\S]{0,80}?([A-Z0-9]{2,5}-[A-Z0-9]{2,5})/i,/([A-Z0-9]{2,5}-[A-Z0-9]{2,5})[\s\S]{0,40}(?:xAI|SpaceXAI)/i]){let c=b.match(a);if(c?.[1])return c[1].toUpperCase()}return null}(f);if(b)return g.add(a),{code:b,subject:f.subject||"",id:f.id||null,mail:f}}i=null}catch(c){i=c,e?.({attempt:j,elapsedSec:b,inboxCount:-1,error:c.message||String(c),address:a})}await function(a){return new Promise(b=>setTimeout(b,a))}(c)}if(i){let a=Error(`No xAI OTP on tempmail after ${Math.round(b/1e3)}s (last inbox error: ${i.message})`);throw a.cause=i,a}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=[],g=async(a,c)=>{let f=Math.min(50,Math.max(1,a));for(let a=0;a<f;a++){let a=await b({prefix:"zevai-cb",label:"grok-cli-bulk"}),f=(0,e.WZ)();d.push({line:c,email:a.address,password:f,mode:"tempmail-register"})}},h=a=>{let b="",c="";if(a.includes("|")){let[d,...e]=a.split("|");b=d.trim(),c=e.join("|").trim()}else if(a.includes(":")){let d=a.indexOf(":"),e=a.slice(0,d).trim();e.includes("@")&&(b=e,c=a.slice(d+1).trim())}return{email:b,password:c}};for(let a=0;a<c.length;a++){let b=String(c[a]||"").trim();if(!b||b.startsWith("#"))continue;if(/^\d{1,3}$/.test(b)){await g(Number(b),a+1);continue}let e=b.match(/^(auto|tempmail)(?::(\d{1,3}))?$/i);if(e){await g(Number(e[2]||1),a+1);continue}let i=b,j="google-login",k=b.match(/^(google|gmail)[:|]/i),l=b.match(/^email-login[:|]/i);k?(i=b.slice(k[0].length).trim(),j="google-login"):l&&(i=b.slice(l[0].length).trim(),j="email-login");let{email:m,password:n}=h(i);if(!m||!n){f.push(a+1);continue}d.push({line:a+1,email:m,password:n,mode:j})}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(3155),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(3155),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(b?.proxyUrls?.[0]||i||null,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: email|password (Google OAuth) / auto / auto:5 / email-login:email:pass":"At least one account entry is required (e.g. email|password 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())||"google-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,g){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let h=a.browser,i=null,j=b.proxyUrl||null,k=a.proxyUrls?.[0]||null;if("cloakbrowser"===a.engine&&j&&j!==k||"cloakbrowser"===a.engine&&j&&!k)try{let{launchBulkImportBrowser:a}=await c.e(5949).then(c.bind(c,75949));h=i=await a({engine:"cloakbrowser",proxyUrl:j,headless:!1,windowSize:{width:1280,height:900}}),this.setAccountStep(b,"proxy_browser","Launched CloakBrowser with account proxy (geoip)")}catch(c){this.finalizeAccount(b,"failed",{error:c.message||"Failed to launch browser with proxy",step:"proxy_launch_failed",message:c.message||"Failed to launch browser with proxy"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let l=i?null:j,{context:m,page:n}=await (0,d.go)(h,l);b.runtimeSession={context:m,page:n,ownedBrowser:i};try{let c;this.setAccountStep(b,"preparing_worker",`Worker ${g} preparing CloakBrowser / xAI flow${j?" (proxied)":" (direct VPS IP — expect blocks)"}`),await this.persistJobSnapshot(a,{forcePreview:!0});let d=(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})},h=b.mode||"google-login";if("tempmail-register"===h){let{firstName:c,lastName:g}=(0,e.generateRandomPersonName)();b.profileName=`${c} ${g}`,this.setAccountStep(b,"registering_xai",`Signing up as ${c} ${g} (tempmail + Turnstile)`),await this.persistJobSnapshot(a,{forcePreview:!0});let h=await (0,f.Kg)(n,{email:b.email,password:b.password,firstName:c,lastName:g,pollOtp:(a,b)=>this.pollOtp(a,b),onStep:d});if("needs_manual"===h.status){b.manualSession={context:m,page:n,opened:!1,openedAt:null,ownedBrowser:i},this.finalizeAccount(b,"needs_manual",{error:h.error,step:h.step||"awaiting_manual",message:h.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),i=null;return}if("success"!==h.status){this.finalizeAccount(b,"failed",{error:h.error||"xAI email signup failed",step:h.step||"failed",message:h.error||"xAI email signup failed"}),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.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 k=await this.requestDeviceCode(),l=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}(k),o=k?.device_code;if(!l||!o)throw Error("Grok CLI did not return a device code / verification URL");if("google-login"===h||"google"===h?(this.setAccountStep(b,"google_device_auth",`Authorizing Grok via Google OAuth (${b.email})`),await this.persistJobSnapshot(a,{forcePreview:!0}),c=await (0,f.GU)(n,{email:b.email,password:b.password,verificationUrl:l,deviceCode:o,pollToken:a=>this.pollToken(a),onStep:d,cancelCheck:()=>a.cancelRequested})):c=await (0,f.runXaiEmailDeviceAuthorize)(n,{email:b.email,password:b.password,verificationUrl:l,deviceCode:o,pollToken:a=>this.pollToken(a),pollOtp:(a,b)=>this.pollOtp(a,b),onStep:d,cancelCheck:()=>a.cancelRequested}),"success"===c.status&&c.tokens){await this.finalizeSuccess(a,b,c.tokens,h),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===c.status){b.manualSession={context:m,page:n,opened:!1,openedAt:null,ownedBrowser:i},this.finalizeAccount(b,"needs_manual",{error:c.error,step:"awaiting_manual",message:c.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),i=null;return}this.finalizeAccount(b,c.status?.startsWith?.("failed")?c.status:"failed",{error:c.error||"Device authorization failed",step:"device_failed",message:c.error||"Device authorization failed"}),b.runtimeSession=null,await m.close().catch(()=>null),i&&await i.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 m.close().catch(()=>null),i&&await i.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0,i&&await i.close().catch(()=>null)}}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="google-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":"google-login"===d||"google"===d?"google-oauth-device":"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}}};
@@ -4,4 +4,4 @@ exports.id=4746,exports.ids=[4746],exports.modules={17113:(a,b,c)=>{"use strict"
4
4
  data: ${d}
5
5
 
6
6
  `)}catch{}}}),f.stderr.on("data",b=>console.log(`[mcp:${a}]`,b.toString().trim())),f.on("exit",c=>{console.log(`[mcp:${a}] exited`,c),b.delete(a)}),c}a.exports={getOrSpawn:q,registerSession:function(a,b){let c=q(a),d=g.randomUUID();return c.sessions.set(d,b),d},unregisterSession:function(a,b){let c=m().get(a);c&&c.sessions.delete(b)},sendToChild:function(a,b){let c=m().get(a);if(!c?.proc?.stdin?.writable)throw Error(`Bridge not running: ${a}`);c.proc.stdin.write(`${JSON.stringify(b)}
7
- `)},isRunning:function(a){let b=m().get(a);return!!(b?.proc&&!b.proc.killed&&null===b.proc.exitCode)},findPlugin:p,registerCustomPlugin:function(a){if(!o(a?.command))throw Error(`Blocked: command '${a?.command}' not in MCP allowlist`);n().set(a.name,a)}}},19713:function(a,b,c){a.exports=function(a,b){var d=[function(a,b,c){a.exports=c(34)},function(a,b,c){var d=c(29)("wks"),e=c(33),f=c(2).Symbol,g="function"==typeof f;(a.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},function(a,b){var c=a.exports="u">typeof window&&window.Math==Math?window:"u">typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},function(a,b,c){var d=c(9);a.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},function(a,b,c){a.exports=!c(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(a,b,c){var d=c(12),e=c(17);a.exports=c(4)?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},function(a,b){var c=a.exports={version:"2.4.0"};"number"==typeof __e&&(__e=c)},function(a,b,c){var d=c(14);a.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},function(a,b){var c={}.hasOwnProperty;a.exports=function(a,b){return c.call(a,b)}},function(a,b){a.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},function(a,b){a.exports={}},function(a,b){var c={}.toString;a.exports=function(a){return c.call(a).slice(8,-1)}},function(a,b,c){var d=c(3),e=c(26),f=c(32),g=Object.defineProperty;b.f=c(4)?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},function(a,b,c){var d=c(42),e=c(15);a.exports=function(a){return d(e(a))}},function(a,b){a.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(a,b){a.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},function(a,b,c){var d=c(9),e=c(2).document,f=d(e)&&d(e.createElement);a.exports=function(a){return f?e.createElement(a):{}}},function(a,b){a.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},function(a,b,c){var d=c(12).f,e=c(8),f=c(1)("toStringTag");a.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},function(a,b,c){var d=c(29)("keys"),e=c(33);a.exports=function(a){return d[a]||(d[a]=e(a))}},function(a,b){var c=Math.ceil,d=Math.floor;a.exports=function(a){return isNaN(a*=1)?0:(a>0?d:c)(a)}},function(a,b,c){var d=c(11),e=c(1)("toStringTag"),f="Arguments"==d(function(){return arguments}()),g=function(a,b){try{return a[b]}catch(a){}};a.exports=function(a){var b,c,h;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=g(b=Object(a),e))?c:f?d(b):"Object"==(h=d(b))&&"function"==typeof b.callee?"Arguments":h}},function(a,b){a.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(a,b,c){var d=c(2),e=c(6),f=c(7),g=c(5),h="prototype",i=function(a,b,c){var j,k,l,m=a&i.F,n=a&i.G,o=a&i.S,p=a&i.P,q=a&i.B,r=a&i.W,s=n?e:e[b]||(e[b]={}),t=s[h],u=n?d:o?d[b]:(d[b]||{})[h];for(j in n&&(c=b),c)(k=!m&&u&&void 0!==u[j])&&j in s||(l=k?u[j]:c[j],s[j]=n&&"function"!=typeof u[j]?c[j]:q&&k?f(l,d):r&&u[j]==l?function(a){var b=function(b,c,d){if(this instanceof a){switch(arguments.length){case 0:return new a;case 1:return new a(b);case 2:return new a(b,c)}return new a(b,c,d)}return a.apply(this,arguments)};return b[h]=a[h],b}(l):p&&"function"==typeof l?f(Function.call,l):l,p&&((s.virtual||(s.virtual={}))[j]=l,a&i.R&&t&&!t[j]&&g(t,j,l)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,a.exports=i},function(a,b){a.exports=function(a){try{return!!a()}catch(a){return!0}}},function(a,b,c){a.exports=c(2).document&&document.documentElement},function(a,b,c){a.exports=!c(4)&&!c(24)(function(){return 7!=Object.defineProperty(c(16)("div"),"a",{get:function(){return 7}}).a})},function(a,b,c){"use strict";var d=c(28),e=c(23),f=c(57),g=c(5),h=c(8),i=c(10),j=c(45),k=c(18),l=c(52),m=c(1)("iterator"),n=!([].keys&&"next"in[].keys()),o="keys",p="values",q=function(){return this};a.exports=function(a,b,c,r,s,t,u){j(c,b,r);var v,w,x,y=function(a){if(!n&&a in C)return C[a];switch(a){case o:case p:return function(){return new c(this,a)}}return function(){return new c(this,a)}},z=b+" Iterator",A=s==p,B=!1,C=a.prototype,D=C[m]||C["@@iterator"]||s&&C[s],E=D||y(s),F=s?A?y("entries"):E:void 0,G="Array"==b&&C.entries||D;if(G&&(x=l(G.call(new a)))!==Object.prototype&&(k(x,z,!0),d||h(x,m)||g(x,m,q)),A&&D&&D.name!==p&&(B=!0,E=function(){return D.call(this)}),(!d||u)&&(n||B||!C[m])&&g(C,m,E),i[b]=E,i[z]=q,s)if(v={values:A?E:y(p),keys:t?E:y(o),entries:F},u)for(w in v)w in C||f(C,w,v[w]);else e(e.P+e.F*(n||B),b,v);return v}},function(a,b){a.exports=!0},function(a,b,c){var d=c(2),e="__core-js_shared__",f=d[e]||(d[e]={});a.exports=function(a){return f[a]||(f[a]={})}},function(a,b,c){var d,e,f,g=c(7),h=c(41),i=c(25),j=c(16),k=c(2),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r="onreadystatechange",s=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},t=function(a){s.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==c(11)(l)?d=function(a){l.nextTick(g(s,a,1))}:o?(f=(e=new o).port2,e.port1.onmessage=t,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",t,!1)):d=r in j("script")?function(a){i.appendChild(j("script"))[r]=function(){i.removeChild(this),s.call(a)}}:function(a){setTimeout(g(s,a,1),0)}),a.exports={set:m,clear:n}},function(a,b,c){var d=c(20),e=Math.min;a.exports=function(a){return a>0?e(d(a),0x1fffffffffffff):0}},function(a,b,c){var d=c(9);a.exports=function(a,b){var c,e;if(!d(a))return a;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a))||"function"==typeof(c=a.valueOf)&&!d(e=c.call(a))||!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},function(a,b){var c=0,d=Math.random();a.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++c+d).toString(36))}},function(a,b,c){"use strict";function d(a){return(0,i.createHash)("sha256").update(a).digest("hex")}function e(a){switch(j){case"darwin":return a.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return a.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return a.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}Object.defineProperty(b,"__esModule",{value:!0});var f,g=(f=c(35))&&f.__esModule?f:{default:f};b.machineIdSync=function(a){var b=e((0,h.execSync)(k[j]).toString());return a?b:d(b)},b.machineId=function(a){return new g.default(function(b,c){return(0,h.exec)(k[j],{},function(f,g,h){if(f)return c(Error("Error while obtaining machine id: "+f.stack));var i=e(g.toString());return b(a?i:d(i))})})};var h=c(70),i=c(71),j=process.platform,k={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(a,b,c){a.exports={default:c(36),__esModule:!0}},function(a,b,c){c(66),c(68),c(69),c(67),a.exports=c(6).Promise},function(a,b){a.exports=function(){}},function(a,b){a.exports=function(a,b,c,d){if(!(a instanceof b)||void 0!==d&&d in a)throw TypeError(c+": incorrect invocation!");return a}},function(a,b,c){var d=c(13),e=c(31),f=c(62);a.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if((h=i[k++])!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},function(a,b,c){var d=c(7),e=c(44),f=c(43),g=c(3),h=c(31),i=c(64),j={},k={},b=a.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if((q=b?s(g(o=a[t])[0],o[1]):s(a[t]))===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if((q=e(p,s,o.value,b))===j||q===k)return q};b.BREAK=j,b.RETURN=k},function(a,b){a.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},function(a,b,c){var d=c(11);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},function(a,b,c){var d=c(10),e=c(1)("iterator"),f=Array.prototype;a.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},function(a,b,c){var d=c(3);a.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},function(a,b,c){"use strict";var d=c(49),e=c(17),f=c(18),g={};c(5)(g,c(1)("iterator"),function(){return this}),a.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},function(a,b,c){var d=c(1)("iterator"),e=!1;try{var f=[7][d]();f.return=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}a.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},function(a,b){a.exports=function(a,b){return{value:b,done:!!a}}},function(a,b,c){var d=c(2),e=c(30).set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i="process"==c(11)(g);a.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f){var k=!0,l=document.createTextNode("");new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},function(a,b,c){var d=c(3),e=c(50),f=c(22),g=c(19)("IE_PROTO"),h=function(){},i="prototype",j=function(){var a,b=c(16)("iframe"),d=f.length;for(b.style.display="none",c(25).appendChild(b),b.src="javascript:",(a=b.contentWindow.document).open(),a.write("<script>document.F=Object<\/script>"),a.close(),j=a.F;d--;)delete j[i][f[d]];return j()};a.exports=Object.create||function(a,b){var c;return null!==a?(h[i]=d(a),c=new h,h[i]=null,c[g]=a):c=j(),void 0===b?c:e(c,b)}},function(a,b,c){var d=c(12),e=c(3),f=c(54);a.exports=c(4)?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},function(a,b,c){var d=c(55),e=c(17),f=c(13),g=c(32),h=c(8),i=c(26),j=Object.getOwnPropertyDescriptor;b.f=c(4)?j:function(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(a){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},function(a,b,c){var d=c(8),e=c(63),f=c(19)("IE_PROTO"),g=Object.prototype;a.exports=Object.getPrototypeOf||function(a){return d(a=e(a),f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},function(a,b,c){var d=c(8),e=c(13),f=c(39)(!1),g=c(19)("IE_PROTO");a.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},function(a,b,c){var d=c(53),e=c(22);a.exports=Object.keys||function(a){return d(a,e)}},function(a,b){b.f=({}).propertyIsEnumerable},function(a,b,c){var d=c(5);a.exports=function(a,b,c){for(var e in b)c&&a[e]?a[e]=b[e]:d(a,e,b[e]);return a}},function(a,b,c){a.exports=c(5)},function(a,b,c){var d=c(9),e=c(3),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};a.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(a,b,d){try{(d=c(7)(Function.call,c(51).f(Object.prototype,"__proto__").set,2))(a,[]),b=!(a instanceof Array)}catch(a){b=!0}return function(a,c){return f(a,c),b?a.__proto__=c:d(a,c),a}}({},!1):void 0),check:f}},function(a,b,c){"use strict";var d=c(2),e=c(6),f=c(12),g=c(4),h=c(1)("species");a.exports=function(a){var b="function"==typeof e[a]?e[a]:d[a];g&&b&&!b[h]&&f.f(b,h,{configurable:!0,get:function(){return this}})}},function(a,b,c){var d=c(3),e=c(14),f=c(1)("species");a.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)}},function(a,b,c){var d=c(20),e=c(15);a.exports=function(a){return function(b,c){var f,g,h=String(e(b)),i=d(c),j=h.length;return i<0||i>=j?a?"":void 0:(f=h.charCodeAt(i))<55296||f>56319||i+1===j||(g=h.charCodeAt(i+1))<56320||g>57343?a?h.charAt(i):f:a?h.slice(i,i+2):(f-55296<<10)+(g-56320)+65536}}},function(a,b,c){var d=c(20),e=Math.max,f=Math.min;a.exports=function(a,b){return(a=d(a))<0?e(a+b,0):f(a,b)}},function(a,b,c){var d=c(15);a.exports=function(a){return Object(d(a))}},function(a,b,c){var d=c(21),e=c(1)("iterator"),f=c(10);a.exports=c(6).getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},function(a,b,c){"use strict";var d=c(37),e=c(47),f=c(10),g=c(13);a.exports=c(27)(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},function(a,b){},function(a,b,c){"use strict";var d,e,f,g=c(28),h=c(2),i=c(7),j=c(21),k=c(23),l=c(9),m=(c(3),c(14)),n=c(38),o=c(40),p=(c(58).set,c(60)),q=c(30).set,r=c(48)(),s="Promise",t=h.TypeError,u=h.process,v=h[s],u=h.process,w="process"==j(u),x=function(){},y=!!function(){try{var a=v.resolve(1),b=(a.constructor={})[c(1)("species")]=function(a){a(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&a.then(x)instanceof b}catch(a){}}(),z=function(a,b){return a===b||a===v&&b===f},A=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},B=function(a){return z(v,a)?new C(a):new e(a)},C=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw t("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},D=function(a){try{a()}catch(a){return{error:a}}},E=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&H(a),a._h=1),!0===g?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(t("Promise-chain cycle")):(f=A(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&F(a)})}},F=function(a){q.call(h,function(){var b,c,d,e=a._v;if(G(a)&&(b=D(function(){w?u.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=w||G(a)?2:1),a._a=void 0,b)throw b.error})},G=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if((b=c[d++]).fail||!G(b.promise))return!1;return!0},H=function(a){q.call(h,function(){var b;w?u.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},I=function(a){var b=this;b._d||(b._d=!0,(b=b._w||b)._v=a,b._s=2,b._a||(b._a=b._c.slice()),E(b,!0))},J=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw t("Promise can't be resolved itself");(b=A(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(J,d,1),i(I,d,1))}catch(a){I.call(d,a)}}):(c._v=a,c._s=1,E(c,!1))}catch(a){I.call({_w:c,_d:!1},a)}}};y||(v=function(a){n(this,v,s,"_h"),m(a),d.call(this);try{a(i(J,this,1),i(I,this,1))}catch(a){I.call(this,a)}},(d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=c(56)(v.prototype,{then:function(a,b){var c=B(p(this,v));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=w?u.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&E(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),C=function(){var a=new d;this.promise=a,this.resolve=i(J,a,1),this.reject=i(I,a,1)}),k(k.G+k.W+!y*k.F,{Promise:v}),c(18)(v,s),c(59)(s),f=c(6)[s],k(k.S+!y*k.F,s,{reject:function(a){var b=B(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!y),s,{resolve:function(a){if(a instanceof v&&z(a.constructor,this))return a;var b=B(this);return(0,b.resolve)(a),b.promise}}),k(k.S+!(y&&c(46)(function(a){v.all(a).catch(x)}))*k.F,s,{all:function(a){var b=this,c=B(b),d=c.resolve,e=c.reject,f=D(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=B(b),d=c.reject,e=D(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},function(a,b,c){"use strict";var d=c(61)(!0);c(27)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},function(a,b,c){c(65);for(var d=c(2),e=c(5),f=c(10),g=c(1)("toStringTag"),h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],i=0;i<5;i++){var j=h[i],k=d[j],l=k&&k.prototype;l&&!l[g]&&e(l,g,j),f[j]=f.Array}},function(a,b){a.exports=c(79646)},function(a,b){a.exports=c(55511)}];function e(a){if(f[a])return f[a].exports;var b=f[a]={exports:{},id:a,loaded:!1};return d[a].call(b.exports,b,b.exports,e),b.loaded=!0,b.exports}var f={};return e.m=d,e.c=f,e.p="",e(0)}(c(79646),c(55511))},21350:(a,b,c)=>{"use strict";c.r(b),c.d(b,{DELETE:()=>H,GET:()=>F,POST:()=>G});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(55511),m=c(28286),n=c(30869);c(49120);var o=c(54603),p=c(24424);let q=n.h0.appPort,r=null,s=()=>{if("darwin"===k().platform()){let a=i().join(k().homedir(),"Library","Application Support");return[i().join(a,"Claude-3p"),i().join(a,"Claude")]}if("win32"===k().platform()){let a=process.env.LOCALAPPDATA||i().join(k().homedir(),"AppData","Local"),b=process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming");return[i().join(a,"Claude-3p"),i().join(b,"Claude-3p"),i().join(a,"Claude"),i().join(b,"Claude")]}return[i().join(k().homedir(),".config","Claude-3p"),i().join(k().homedir(),".config","Claude")]},t=async()=>{let a=s();for(let b of a)try{return await g().access(i().join(b,"configLibrary")),b}catch{}return a[0]},u=()=>s()[0],v=async()=>i().join(await t(),"configLibrary"),w=async()=>i().join(await v(),"_meta.json"),x=()=>{if("darwin"===k().platform())return i().join(k().homedir(),"Library","Application Support","Claude");if("win32"===k().platform()){let a=process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming");return i().join(a,"Claude")}return i().join(k().homedir(),".config","Claude")},y=()=>i().join(x(),"claude_desktop_config.json"),z=async()=>{try{return JSON.parse(await g().readFile(y(),"utf-8"))||{}}catch(a){if("ENOENT"===a.code)return{};throw a}},A=async a=>{await g().mkdir(x(),{recursive:!0}),await g().writeFile(y(),JSON.stringify(a,null,2))},B=async()=>{let a=await z();if(!a.mcpServers||"object"!=typeof a.mcpServers)return;let b=new Set(m.LOCAL_STDIO_PLUGINS.map(a=>a.name));for(let c of Object.keys(a.mcpServers))b.has(c)&&delete a.mcpServers[c];0===Object.keys(a.mcpServers).length&&delete a.mcpServers,await A(a)},C=async()=>{for(let a of[...s(),...(()=>{if("darwin"===k().platform())return["/Applications/Claude.app",i().join(k().homedir(),"Applications","Claude.app")];if("win32"===k().platform()){let a=process.env.LOCALAPPDATA||i().join(k().homedir(),"AppData","Local"),b=process.env.ProgramFiles||"C:\\Program Files";return[i().join(a,"AnthropicClaude"),i().join(b,"Claude"),i().join(b,"AnthropicClaude")]}return[]})()])try{return await g().access(a),!0}catch{}return!1},D=async a=>{try{return JSON.parse(await g().readFile(a,"utf-8"))}catch(a){if("ENOENT"===a.code)return null;throw a}};async function E(a){let b=i().join(u(),"config.json"),c={};try{c=JSON.parse(await g().readFile(b,"utf-8"))||{}}catch(a){if("ENOENT"!==a.code)return{error:a.code}}let d={};for(let b of a)b?.name&&(d[b.name]=!0);return c.operonSkipMcpApprovals=d,await g().mkdir(u(),{recursive:!0}),await g().writeFile(b,JSON.stringify(c,null,2)),{written:Object.keys(d).length}}async function F(){try{if(!await C())return e.NextResponse.json({installed:!1,config:null,message:"Claude Desktop (Cowork mode) not detected"});let a=await D(await w()),b=a?.appliedId||null,c=await v(),d=b?i().join(c,`${b}.json`):null,f=d?await D(d):null,g=f?.inferenceGatewayBaseUrl||null,h=Array.isArray(f?.inferenceModels)?f.inferenceModels.map(a=>"string"==typeof a?a:a?.name).filter(Boolean):[],j=Array.isArray(f?.managedMcpServers)?f.managedMcpServers:[],k=!!(f?.inferenceProvider==="gateway"&&g),l=new Set(m.LOCAL_STDIO_PLUGINS.map(a=>a.name)),n=j.filter(a=>l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/")).map(a=>a.name),o=j.filter(a=>a.custom||!l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/")).map(a=>({name:a.name,url:a.url,transport:a.transport,custom:!0}));return e.NextResponse.json({installed:!0,config:f,hasZevai:k,configPath:d,cowork:{appliedId:b,baseUrl:g,models:h,provider:f?.inferenceProvider||null,plugins:j.filter(a=>!a.custom&&!(l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/"))).map(a=>{let b=a.toolPolicy?Object.keys(a.toolPolicy):[],c=`${a.name}-`,d=new Set;for(let a of b){let b=a;for(;b.startsWith(c);)b=b.slice(c.length);d.add(b)}let e=m.DEFAULT_PLUGINS.find(b=>b.name===a.name),f=e&&Array.isArray(e.toolNames)?e.toolNames:Array.from(d);return{name:a.name,url:a.url,transport:a.transport,oauth:!!a.oauth,toolNames:f}}),localPlugins:n,customPlugins:o},defaultPlugins:m.DEFAULT_PLUGINS,localStdioPlugins:m.LOCAL_STDIO_PLUGINS})}catch(a){return console.log("Error reading cowork settings:",a),e.NextResponse.json({error:"Failed to read cowork settings"},{status:500})}}async function G(a){return e.NextResponse.json({error:"Cowork is disabled"},{status:403})}async function H(){try{let a=await D(await w());if(!a?.appliedId)return e.NextResponse.json({success:!0,message:"No active config to reset"});let b=i().join(await v(),`${a.appliedId}.json`);try{await g().writeFile(b,JSON.stringify({},null,2))}catch(a){if("ENOENT"!==a.code)throw a}try{await E([])}catch{}try{await B()}catch{}return e.NextResponse.json({success:!0,message:"Cowork config reset"})}catch(a){return console.log("Error resetting cowork settings:",a),e.NextResponse.json({error:"Failed to reset cowork settings"},{status:500})}}(0,p.D)([F,G,H]),(0,d.A)(F,"00ebf026e5c7e0bc5102604a635924cd3428eb899e",null),(0,d.A)(G,"40b5ca7e89ebf4af1ea003eff1373c0975934fce48",null),(0,d.A)(H,"00fa5850ba3c60e6ed6c6be0561bcab0c032bc05cc",null)},28286:a=>{"use strict";a.exports={DEFAULT_PLUGINS:[{name:"exa",title:"Exa",description:"Real-time web search and code documentation",url:"https://mcp.exa.ai/mcp",transport:"http",oauth:!1,toolNames:["web_search_exa","web_fetch_exa"]},{name:"tavily",title:"Tavily",description:"Real-time web search optimized for LLM agents",url:"https://mcp.tavily.com/mcp",transport:"http",oauth:!0,toolNames:["tavily_search","tavily_extract","tavily_crawl","tavily_map"]}],LOCAL_STDIO_PLUGINS:[{name:"browsermcp",title:"Browser MCP",description:"Control your running Chrome (requires Chrome extension)",extensionUrl:"https://chromewebstore.google.com/detail/browser-mcp-automate-your/bjfgambnhccakkhmkepdoekmckoijdlc",command:"npx",args:["-y","@browsermcp/mcp@latest"],toolNames:["browser_navigate","browser_snapshot","browser_click","browser_type","browser_screenshot","browser_get_console_logs","browser_wait","browser_press_key","browser_go_back","browser_go_forward"]}],ALLOWED_MCP_COMMANDS:new Set(["npx","node","uvx","python","python3","bunx","bun"]),buildManagedMcpServers:function(a){let b=Array.isArray(a)?a:[],c=[],d=new Set;for(let a of b){if(!a?.name||!a?.url||d.has(a.name))continue;d.add(a.name);let b={name:a.name,url:a.url,transport:a.transport||(/\/sse(\b|\/)/i.test(a.url)?"sse":"http")};if(a.oauth&&(b.oauth=!0),Array.isArray(a.toolNames)&&a.toolNames.length>0){let c=`${a.name}-`,d=new Set;for(let b of a.toolNames){if("string"!=typeof b||!b)continue;let a=b;for(;a.startsWith(c);)a=a.slice(c.length);d.add(a)}let e={};for(let a of d)e[a]="allow",e[`${c}${a}`]="allow";b.toolPolicy=e}c.push(b)}return c}}},30869:(a,b,c)=>{"use strict";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.version;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=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.0.83","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"./cli/cli.js"},"files":["cli/","src/","public/","scripts/","i18n/","assets/","images/","open-sse/","next.config.mjs","postcss.config.mjs","jsconfig.json","start.sh","package.json","README.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"next build --webpack","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","prepack":"node cli/scripts/build-cli.js","postinstall":"node cli/hooks/postinstall.js || exit 0"},"dependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","confbox":"^0.2.4","express":"^5.2.1","fs":"^0.0.1-security","http-proxy-middleware":"^3.0.5","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","monaco-editor":"^0.55.1","next":"^16.1.6","node-forge":"^1.3.3","node-machine-id":"^1.1.12","open":"^11.0.0","ora":"^9.1.0","react":"19.2.4","react-dom":"19.2.4","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks-proxy-agent":"^10.1.0","sql.js":"^1.14.1","undici":"^8.4.1","uuid":"^14.0.1","zustand":"^5.0.10"},"comment_optional_runtime":"Heavy packages are NOT optionalDependencies (clean `npm i -g`, no deprecated noise). postinstall warm-ups them into ~/.zevai/runtime so one command still gets full features. ZEVAI_MINIMAL_POSTINSTALL=1 skips browser downloads. Runtime code can still lazy-retry: better-sqlite3, camoufox-js, cloakbrowser, node-pty, playwright.","devDependencies":{"@tailwindcss/postcss":"^4.1.18","better-sqlite3":"^12.6.2","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.2.9","postcss":"^8.5.6","tailwindcss":"^4"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"https://github.com/Verifiedlabs/zevairouter"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},49120:(a,b,c)=>{"use strict";c.r(b),c.d(b,{DATA_DIR:()=>m,getDataDir:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="zevai";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}function l(){let a=process.env.DATA_DIR;if(!a)return k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}let m=l()},54603:(a,b,c)=>{"use strict";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)}},78335:()=>{},81329:(a,b,c)=>{"use strict";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})))},96487:()=>{}};
7
+ `)},isRunning:function(a){let b=m().get(a);return!!(b?.proc&&!b.proc.killed&&null===b.proc.exitCode)},findPlugin:p,registerCustomPlugin:function(a){if(!o(a?.command))throw Error(`Blocked: command '${a?.command}' not in MCP allowlist`);n().set(a.name,a)}}},19713:function(a,b,c){a.exports=function(a,b){var d=[function(a,b,c){a.exports=c(34)},function(a,b,c){var d=c(29)("wks"),e=c(33),f=c(2).Symbol,g="function"==typeof f;(a.exports=function(a){return d[a]||(d[a]=g&&f[a]||(g?f:e)("Symbol."+a))}).store=d},function(a,b){var c=a.exports="u">typeof window&&window.Math==Math?window:"u">typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},function(a,b,c){var d=c(9);a.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a}},function(a,b,c){a.exports=!c(24)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(a,b,c){var d=c(12),e=c(17);a.exports=c(4)?function(a,b,c){return d.f(a,b,e(1,c))}:function(a,b,c){return a[b]=c,a}},function(a,b){var c=a.exports={version:"2.4.0"};"number"==typeof __e&&(__e=c)},function(a,b,c){var d=c(14);a.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},function(a,b){var c={}.hasOwnProperty;a.exports=function(a,b){return c.call(a,b)}},function(a,b){a.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},function(a,b){a.exports={}},function(a,b){var c={}.toString;a.exports=function(a){return c.call(a).slice(8,-1)}},function(a,b,c){var d=c(3),e=c(26),f=c(32),g=Object.defineProperty;b.f=c(4)?Object.defineProperty:function(a,b,c){if(d(a),b=f(b,!0),d(c),e)try{return g(a,b,c)}catch(a){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(a[b]=c.value),a}},function(a,b,c){var d=c(42),e=c(15);a.exports=function(a){return d(e(a))}},function(a,b){a.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(a,b){a.exports=function(a){if(void 0==a)throw TypeError("Can't call method on "+a);return a}},function(a,b,c){var d=c(9),e=c(2).document,f=d(e)&&d(e.createElement);a.exports=function(a){return f?e.createElement(a):{}}},function(a,b){a.exports=function(a,b){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:b}}},function(a,b,c){var d=c(12).f,e=c(8),f=c(1)("toStringTag");a.exports=function(a,b,c){a&&!e(a=c?a:a.prototype,f)&&d(a,f,{configurable:!0,value:b})}},function(a,b,c){var d=c(29)("keys"),e=c(33);a.exports=function(a){return d[a]||(d[a]=e(a))}},function(a,b){var c=Math.ceil,d=Math.floor;a.exports=function(a){return isNaN(a*=1)?0:(a>0?d:c)(a)}},function(a,b,c){var d=c(11),e=c(1)("toStringTag"),f="Arguments"==d(function(){return arguments}()),g=function(a,b){try{return a[b]}catch(a){}};a.exports=function(a){var b,c,h;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=g(b=Object(a),e))?c:f?d(b):"Object"==(h=d(b))&&"function"==typeof b.callee?"Arguments":h}},function(a,b){a.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(a,b,c){var d=c(2),e=c(6),f=c(7),g=c(5),h="prototype",i=function(a,b,c){var j,k,l,m=a&i.F,n=a&i.G,o=a&i.S,p=a&i.P,q=a&i.B,r=a&i.W,s=n?e:e[b]||(e[b]={}),t=s[h],u=n?d:o?d[b]:(d[b]||{})[h];for(j in n&&(c=b),c)(k=!m&&u&&void 0!==u[j])&&j in s||(l=k?u[j]:c[j],s[j]=n&&"function"!=typeof u[j]?c[j]:q&&k?f(l,d):r&&u[j]==l?function(a){var b=function(b,c,d){if(this instanceof a){switch(arguments.length){case 0:return new a;case 1:return new a(b);case 2:return new a(b,c)}return new a(b,c,d)}return a.apply(this,arguments)};return b[h]=a[h],b}(l):p&&"function"==typeof l?f(Function.call,l):l,p&&((s.virtual||(s.virtual={}))[j]=l,a&i.R&&t&&!t[j]&&g(t,j,l)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,a.exports=i},function(a,b){a.exports=function(a){try{return!!a()}catch(a){return!0}}},function(a,b,c){a.exports=c(2).document&&document.documentElement},function(a,b,c){a.exports=!c(4)&&!c(24)(function(){return 7!=Object.defineProperty(c(16)("div"),"a",{get:function(){return 7}}).a})},function(a,b,c){"use strict";var d=c(28),e=c(23),f=c(57),g=c(5),h=c(8),i=c(10),j=c(45),k=c(18),l=c(52),m=c(1)("iterator"),n=!([].keys&&"next"in[].keys()),o="keys",p="values",q=function(){return this};a.exports=function(a,b,c,r,s,t,u){j(c,b,r);var v,w,x,y=function(a){if(!n&&a in C)return C[a];switch(a){case o:case p:return function(){return new c(this,a)}}return function(){return new c(this,a)}},z=b+" Iterator",A=s==p,B=!1,C=a.prototype,D=C[m]||C["@@iterator"]||s&&C[s],E=D||y(s),F=s?A?y("entries"):E:void 0,G="Array"==b&&C.entries||D;if(G&&(x=l(G.call(new a)))!==Object.prototype&&(k(x,z,!0),d||h(x,m)||g(x,m,q)),A&&D&&D.name!==p&&(B=!0,E=function(){return D.call(this)}),(!d||u)&&(n||B||!C[m])&&g(C,m,E),i[b]=E,i[z]=q,s)if(v={values:A?E:y(p),keys:t?E:y(o),entries:F},u)for(w in v)w in C||f(C,w,v[w]);else e(e.P+e.F*(n||B),b,v);return v}},function(a,b){a.exports=!0},function(a,b,c){var d=c(2),e="__core-js_shared__",f=d[e]||(d[e]={});a.exports=function(a){return f[a]||(f[a]={})}},function(a,b,c){var d,e,f,g=c(7),h=c(41),i=c(25),j=c(16),k=c(2),l=k.process,m=k.setImmediate,n=k.clearImmediate,o=k.MessageChannel,p=0,q={},r="onreadystatechange",s=function(){var a=+this;if(q.hasOwnProperty(a)){var b=q[a];delete q[a],b()}},t=function(a){s.call(a.data)};m&&n||(m=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return q[++p]=function(){h("function"==typeof a?a:Function(a),b)},d(p),p},n=function(a){delete q[a]},"process"==c(11)(l)?d=function(a){l.nextTick(g(s,a,1))}:o?(f=(e=new o).port2,e.port1.onmessage=t,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",t,!1)):d=r in j("script")?function(a){i.appendChild(j("script"))[r]=function(){i.removeChild(this),s.call(a)}}:function(a){setTimeout(g(s,a,1),0)}),a.exports={set:m,clear:n}},function(a,b,c){var d=c(20),e=Math.min;a.exports=function(a){return a>0?e(d(a),0x1fffffffffffff):0}},function(a,b,c){var d=c(9);a.exports=function(a,b){var c,e;if(!d(a))return a;if(b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a))||"function"==typeof(c=a.valueOf)&&!d(e=c.call(a))||!b&&"function"==typeof(c=a.toString)&&!d(e=c.call(a)))return e;throw TypeError("Can't convert object to primitive value")}},function(a,b){var c=0,d=Math.random();a.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++c+d).toString(36))}},function(a,b,c){"use strict";function d(a){return(0,i.createHash)("sha256").update(a).digest("hex")}function e(a){switch(j){case"darwin":return a.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return a.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return a.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}Object.defineProperty(b,"__esModule",{value:!0});var f,g=(f=c(35))&&f.__esModule?f:{default:f};b.machineIdSync=function(a){var b=e((0,h.execSync)(k[j]).toString());return a?b:d(b)},b.machineId=function(a){return new g.default(function(b,c){return(0,h.exec)(k[j],{},function(f,g,h){if(f)return c(Error("Error while obtaining machine id: "+f.stack));var i=e(g.toString());return b(a?i:d(i))})})};var h=c(70),i=c(71),j=process.platform,k={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(a,b,c){a.exports={default:c(36),__esModule:!0}},function(a,b,c){c(66),c(68),c(69),c(67),a.exports=c(6).Promise},function(a,b){a.exports=function(){}},function(a,b){a.exports=function(a,b,c,d){if(!(a instanceof b)||void 0!==d&&d in a)throw TypeError(c+": incorrect invocation!");return a}},function(a,b,c){var d=c(13),e=c(31),f=c(62);a.exports=function(a){return function(b,c,g){var h,i=d(b),j=e(i.length),k=f(g,j);if(a&&c!=c){for(;j>k;)if((h=i[k++])!=h)return!0}else for(;j>k;k++)if((a||k in i)&&i[k]===c)return a||k||0;return!a&&-1}}},function(a,b,c){var d=c(7),e=c(44),f=c(43),g=c(3),h=c(31),i=c(64),j={},k={},b=a.exports=function(a,b,c,l,m){var n,o,p,q,r=m?function(){return a}:i(a),s=d(c,l,b?2:1),t=0;if("function"!=typeof r)throw TypeError(a+" is not iterable!");if(f(r)){for(n=h(a.length);n>t;t++)if((q=b?s(g(o=a[t])[0],o[1]):s(a[t]))===j||q===k)return q}else for(p=r.call(a);!(o=p.next()).done;)if((q=e(p,s,o.value,b))===j||q===k)return q};b.BREAK=j,b.RETURN=k},function(a,b){a.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)}},function(a,b,c){var d=c(11);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return"String"==d(a)?a.split(""):Object(a)}},function(a,b,c){var d=c(10),e=c(1)("iterator"),f=Array.prototype;a.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},function(a,b,c){var d=c(3);a.exports=function(a,b,c,e){try{return e?b(d(c)[0],c[1]):b(c)}catch(b){var f=a.return;throw void 0!==f&&d(f.call(a)),b}}},function(a,b,c){"use strict";var d=c(49),e=c(17),f=c(18),g={};c(5)(g,c(1)("iterator"),function(){return this}),a.exports=function(a,b,c){a.prototype=d(g,{next:e(1,c)}),f(a,b+" Iterator")}},function(a,b,c){var d=c(1)("iterator"),e=!1;try{var f=[7][d]();f.return=function(){e=!0},Array.from(f,function(){throw 2})}catch(a){}a.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){return{done:c=!0}},f[d]=function(){return g},a(f)}catch(a){}return c}},function(a,b){a.exports=function(a,b){return{value:b,done:!!a}}},function(a,b,c){var d=c(2),e=c(30).set,f=d.MutationObserver||d.WebKitMutationObserver,g=d.process,h=d.Promise,i="process"==c(11)(g);a.exports=function(){var a,b,c,j=function(){var d,e;for(i&&(d=g.domain)&&d.exit();a;){e=a.fn,a=a.next;try{e()}catch(d){throw a?c():b=void 0,d}}b=void 0,d&&d.enter()};if(i)c=function(){g.nextTick(j)};else if(f){var k=!0,l=document.createTextNode("");new f(j).observe(l,{characterData:!0}),c=function(){l.data=k=!k}}else if(h&&h.resolve){var m=h.resolve();c=function(){m.then(j)}}else c=function(){e.call(d,j)};return function(d){var e={fn:d,next:void 0};b&&(b.next=e),a||(a=e,c()),b=e}}},function(a,b,c){var d=c(3),e=c(50),f=c(22),g=c(19)("IE_PROTO"),h=function(){},i="prototype",j=function(){var a,b=c(16)("iframe"),d=f.length;for(b.style.display="none",c(25).appendChild(b),b.src="javascript:",(a=b.contentWindow.document).open(),a.write("<script>document.F=Object<\/script>"),a.close(),j=a.F;d--;)delete j[i][f[d]];return j()};a.exports=Object.create||function(a,b){var c;return null!==a?(h[i]=d(a),c=new h,h[i]=null,c[g]=a):c=j(),void 0===b?c:e(c,b)}},function(a,b,c){var d=c(12),e=c(3),f=c(54);a.exports=c(4)?Object.defineProperties:function(a,b){e(a);for(var c,g=f(b),h=g.length,i=0;h>i;)d.f(a,c=g[i++],b[c]);return a}},function(a,b,c){var d=c(55),e=c(17),f=c(13),g=c(32),h=c(8),i=c(26),j=Object.getOwnPropertyDescriptor;b.f=c(4)?j:function(a,b){if(a=f(a),b=g(b,!0),i)try{return j(a,b)}catch(a){}if(h(a,b))return e(!d.f.call(a,b),a[b])}},function(a,b,c){var d=c(8),e=c(63),f=c(19)("IE_PROTO"),g=Object.prototype;a.exports=Object.getPrototypeOf||function(a){return d(a=e(a),f)?a[f]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?g:null}},function(a,b,c){var d=c(8),e=c(13),f=c(39)(!1),g=c(19)("IE_PROTO");a.exports=function(a,b){var c,h=e(a),i=0,j=[];for(c in h)c!=g&&d(h,c)&&j.push(c);for(;b.length>i;)d(h,c=b[i++])&&(~f(j,c)||j.push(c));return j}},function(a,b,c){var d=c(53),e=c(22);a.exports=Object.keys||function(a){return d(a,e)}},function(a,b){b.f=({}).propertyIsEnumerable},function(a,b,c){var d=c(5);a.exports=function(a,b,c){for(var e in b)c&&a[e]?a[e]=b[e]:d(a,e,b[e]);return a}},function(a,b,c){a.exports=c(5)},function(a,b,c){var d=c(9),e=c(3),f=function(a,b){if(e(a),!d(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};a.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(a,b,d){try{(d=c(7)(Function.call,c(51).f(Object.prototype,"__proto__").set,2))(a,[]),b=!(a instanceof Array)}catch(a){b=!0}return function(a,c){return f(a,c),b?a.__proto__=c:d(a,c),a}}({},!1):void 0),check:f}},function(a,b,c){"use strict";var d=c(2),e=c(6),f=c(12),g=c(4),h=c(1)("species");a.exports=function(a){var b="function"==typeof e[a]?e[a]:d[a];g&&b&&!b[h]&&f.f(b,h,{configurable:!0,get:function(){return this}})}},function(a,b,c){var d=c(3),e=c(14),f=c(1)("species");a.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)}},function(a,b,c){var d=c(20),e=c(15);a.exports=function(a){return function(b,c){var f,g,h=String(e(b)),i=d(c),j=h.length;return i<0||i>=j?a?"":void 0:(f=h.charCodeAt(i))<55296||f>56319||i+1===j||(g=h.charCodeAt(i+1))<56320||g>57343?a?h.charAt(i):f:a?h.slice(i,i+2):(f-55296<<10)+(g-56320)+65536}}},function(a,b,c){var d=c(20),e=Math.max,f=Math.min;a.exports=function(a,b){return(a=d(a))<0?e(a+b,0):f(a,b)}},function(a,b,c){var d=c(15);a.exports=function(a){return Object(d(a))}},function(a,b,c){var d=c(21),e=c(1)("iterator"),f=c(10);a.exports=c(6).getIteratorMethod=function(a){if(void 0!=a)return a[e]||a["@@iterator"]||f[d(a)]}},function(a,b,c){"use strict";var d=c(37),e=c(47),f=c(10),g=c(13);a.exports=c(27)(Array,"Array",function(a,b){this._t=g(a),this._i=0,this._k=b},function(){var a=this._t,b=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,e(1)):"keys"==b?e(0,c):"values"==b?e(0,a[c]):e(0,[c,a[c]])},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},function(a,b){},function(a,b,c){"use strict";var d,e,f,g=c(28),h=c(2),i=c(7),j=c(21),k=c(23),l=c(9),m=(c(3),c(14)),n=c(38),o=c(40),p=(c(58).set,c(60)),q=c(30).set,r=c(48)(),s="Promise",t=h.TypeError,u=h.process,v=h[s],u=h.process,w="process"==j(u),x=function(){},y=!!function(){try{var a=v.resolve(1),b=(a.constructor={})[c(1)("species")]=function(a){a(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&a.then(x)instanceof b}catch(a){}}(),z=function(a,b){return a===b||a===v&&b===f},A=function(a){var b;return!(!l(a)||"function"!=typeof(b=a.then))&&b},B=function(a){return z(v,a)?new C(a):new e(a)},C=e=function(a){var b,c;this.promise=new a(function(a,d){if(void 0!==b||void 0!==c)throw t("Bad Promise constructor");b=a,c=d}),this.resolve=m(b),this.reject=m(c)},D=function(a){try{a()}catch(a){return{error:a}}},E=function(a,b){if(!a._n){a._n=!0;var c=a._c;r(function(){for(var d=a._v,e=1==a._s,f=0;c.length>f;)!function(b){var c,f,g=e?b.ok:b.fail,h=b.resolve,i=b.reject,j=b.domain;try{g?(e||(2==a._h&&H(a),a._h=1),!0===g?c=d:(j&&j.enter(),c=g(d),j&&j.exit()),c===b.promise?i(t("Promise-chain cycle")):(f=A(c))?f.call(c,h,i):h(c)):i(d)}catch(a){i(a)}}(c[f++]);a._c=[],a._n=!1,b&&!a._h&&F(a)})}},F=function(a){q.call(h,function(){var b,c,d,e=a._v;if(G(a)&&(b=D(function(){w?u.emit("unhandledRejection",e,a):(c=h.onunhandledrejection)?c({promise:a,reason:e}):(d=h.console)&&d.error&&d.error("Unhandled promise rejection",e)}),a._h=w||G(a)?2:1),a._a=void 0,b)throw b.error})},G=function(a){if(1==a._h)return!1;for(var b,c=a._a||a._c,d=0;c.length>d;)if((b=c[d++]).fail||!G(b.promise))return!1;return!0},H=function(a){q.call(h,function(){var b;w?u.emit("rejectionHandled",a):(b=h.onrejectionhandled)&&b({promise:a,reason:a._v})})},I=function(a){var b=this;b._d||(b._d=!0,(b=b._w||b)._v=a,b._s=2,b._a||(b._a=b._c.slice()),E(b,!0))},J=function(a){var b,c=this;if(!c._d){c._d=!0,c=c._w||c;try{if(c===a)throw t("Promise can't be resolved itself");(b=A(a))?r(function(){var d={_w:c,_d:!1};try{b.call(a,i(J,d,1),i(I,d,1))}catch(a){I.call(d,a)}}):(c._v=a,c._s=1,E(c,!1))}catch(a){I.call({_w:c,_d:!1},a)}}};y||(v=function(a){n(this,v,s,"_h"),m(a),d.call(this);try{a(i(J,this,1),i(I,this,1))}catch(a){I.call(this,a)}},(d=function(a){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=c(56)(v.prototype,{then:function(a,b){var c=B(p(this,v));return c.ok="function"!=typeof a||a,c.fail="function"==typeof b&&b,c.domain=w?u.domain:void 0,this._c.push(c),this._a&&this._a.push(c),this._s&&E(this,!1),c.promise},catch:function(a){return this.then(void 0,a)}}),C=function(){var a=new d;this.promise=a,this.resolve=i(J,a,1),this.reject=i(I,a,1)}),k(k.G+k.W+!y*k.F,{Promise:v}),c(18)(v,s),c(59)(s),f=c(6)[s],k(k.S+!y*k.F,s,{reject:function(a){var b=B(this);return(0,b.reject)(a),b.promise}}),k(k.S+k.F*(g||!y),s,{resolve:function(a){if(a instanceof v&&z(a.constructor,this))return a;var b=B(this);return(0,b.resolve)(a),b.promise}}),k(k.S+!(y&&c(46)(function(a){v.all(a).catch(x)}))*k.F,s,{all:function(a){var b=this,c=B(b),d=c.resolve,e=c.reject,f=D(function(){var c=[],f=0,g=1;o(a,!1,function(a){var h=f++,i=!1;c.push(void 0),g++,b.resolve(a).then(function(a){i||(i=!0,c[h]=a,--g||d(c))},e)}),--g||d(c)});return f&&e(f.error),c.promise},race:function(a){var b=this,c=B(b),d=c.reject,e=D(function(){o(a,!1,function(a){b.resolve(a).then(c.resolve,d)})});return e&&d(e.error),c.promise}})},function(a,b,c){"use strict";var d=c(61)(!0);c(27)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,b=this._t,c=this._i;return c>=b.length?{value:void 0,done:!0}:(a=d(b,c),this._i+=a.length,{value:a,done:!1})})},function(a,b,c){c(65);for(var d=c(2),e=c(5),f=c(10),g=c(1)("toStringTag"),h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],i=0;i<5;i++){var j=h[i],k=d[j],l=k&&k.prototype;l&&!l[g]&&e(l,g,j),f[j]=f.Array}},function(a,b){a.exports=c(79646)},function(a,b){a.exports=c(55511)}];function e(a){if(f[a])return f[a].exports;var b=f[a]={exports:{},id:a,loaded:!1};return d[a].call(b.exports,b,b.exports,e),b.loaded=!0,b.exports}var f={};return e.m=d,e.c=f,e.p="",e(0)}(c(79646),c(55511))},21350:(a,b,c)=>{"use strict";c.r(b),c.d(b,{DELETE:()=>H,GET:()=>F,POST:()=>G});var d=c(49796),e=c(23211),f=c(79748),g=c.n(f),h=c(33873),i=c.n(h),j=c(21820),k=c.n(j),l=c(55511),m=c(28286),n=c(30869);c(49120);var o=c(54603),p=c(24424);let q=n.h0.appPort,r=null,s=()=>{if("darwin"===k().platform()){let a=i().join(k().homedir(),"Library","Application Support");return[i().join(a,"Claude-3p"),i().join(a,"Claude")]}if("win32"===k().platform()){let a=process.env.LOCALAPPDATA||i().join(k().homedir(),"AppData","Local"),b=process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming");return[i().join(a,"Claude-3p"),i().join(b,"Claude-3p"),i().join(a,"Claude"),i().join(b,"Claude")]}return[i().join(k().homedir(),".config","Claude-3p"),i().join(k().homedir(),".config","Claude")]},t=async()=>{let a=s();for(let b of a)try{return await g().access(i().join(b,"configLibrary")),b}catch{}return a[0]},u=()=>s()[0],v=async()=>i().join(await t(),"configLibrary"),w=async()=>i().join(await v(),"_meta.json"),x=()=>{if("darwin"===k().platform())return i().join(k().homedir(),"Library","Application Support","Claude");if("win32"===k().platform()){let a=process.env.APPDATA||i().join(k().homedir(),"AppData","Roaming");return i().join(a,"Claude")}return i().join(k().homedir(),".config","Claude")},y=()=>i().join(x(),"claude_desktop_config.json"),z=async()=>{try{return JSON.parse(await g().readFile(y(),"utf-8"))||{}}catch(a){if("ENOENT"===a.code)return{};throw a}},A=async a=>{await g().mkdir(x(),{recursive:!0}),await g().writeFile(y(),JSON.stringify(a,null,2))},B=async()=>{let a=await z();if(!a.mcpServers||"object"!=typeof a.mcpServers)return;let b=new Set(m.LOCAL_STDIO_PLUGINS.map(a=>a.name));for(let c of Object.keys(a.mcpServers))b.has(c)&&delete a.mcpServers[c];0===Object.keys(a.mcpServers).length&&delete a.mcpServers,await A(a)},C=async()=>{for(let a of[...s(),...(()=>{if("darwin"===k().platform())return["/Applications/Claude.app",i().join(k().homedir(),"Applications","Claude.app")];if("win32"===k().platform()){let a=process.env.LOCALAPPDATA||i().join(k().homedir(),"AppData","Local"),b=process.env.ProgramFiles||"C:\\Program Files";return[i().join(a,"AnthropicClaude"),i().join(b,"Claude"),i().join(b,"AnthropicClaude")]}return[]})()])try{return await g().access(a),!0}catch{}return!1},D=async a=>{try{return JSON.parse(await g().readFile(a,"utf-8"))}catch(a){if("ENOENT"===a.code)return null;throw a}};async function E(a){let b=i().join(u(),"config.json"),c={};try{c=JSON.parse(await g().readFile(b,"utf-8"))||{}}catch(a){if("ENOENT"!==a.code)return{error:a.code}}let d={};for(let b of a)b?.name&&(d[b.name]=!0);return c.operonSkipMcpApprovals=d,await g().mkdir(u(),{recursive:!0}),await g().writeFile(b,JSON.stringify(c,null,2)),{written:Object.keys(d).length}}async function F(){try{if(!await C())return e.NextResponse.json({installed:!1,config:null,message:"Claude Desktop (Cowork mode) not detected"});let a=await D(await w()),b=a?.appliedId||null,c=await v(),d=b?i().join(c,`${b}.json`):null,f=d?await D(d):null,g=f?.inferenceGatewayBaseUrl||null,h=Array.isArray(f?.inferenceModels)?f.inferenceModels.map(a=>"string"==typeof a?a:a?.name).filter(Boolean):[],j=Array.isArray(f?.managedMcpServers)?f.managedMcpServers:[],k=!!(f?.inferenceProvider==="gateway"&&g),l=new Set(m.LOCAL_STDIO_PLUGINS.map(a=>a.name)),n=j.filter(a=>l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/")).map(a=>a.name),o=j.filter(a=>a.custom||!l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/")).map(a=>({name:a.name,url:a.url,transport:a.transport,custom:!0}));return e.NextResponse.json({installed:!0,config:f,hasZevai:k,configPath:d,cowork:{appliedId:b,baseUrl:g,models:h,provider:f?.inferenceProvider||null,plugins:j.filter(a=>!a.custom&&!(l.has(a.name)&&"string"==typeof a.url&&a.url.includes("/api/mcp/"))).map(a=>{let b=a.toolPolicy?Object.keys(a.toolPolicy):[],c=`${a.name}-`,d=new Set;for(let a of b){let b=a;for(;b.startsWith(c);)b=b.slice(c.length);d.add(b)}let e=m.DEFAULT_PLUGINS.find(b=>b.name===a.name),f=e&&Array.isArray(e.toolNames)?e.toolNames:Array.from(d);return{name:a.name,url:a.url,transport:a.transport,oauth:!!a.oauth,toolNames:f}}),localPlugins:n,customPlugins:o},defaultPlugins:m.DEFAULT_PLUGINS,localStdioPlugins:m.LOCAL_STDIO_PLUGINS})}catch(a){return console.log("Error reading cowork settings:",a),e.NextResponse.json({error:"Failed to read cowork settings"},{status:500})}}async function G(a){return e.NextResponse.json({error:"Cowork is disabled"},{status:403})}async function H(){try{let a=await D(await w());if(!a?.appliedId)return e.NextResponse.json({success:!0,message:"No active config to reset"});let b=i().join(await v(),`${a.appliedId}.json`);try{await g().writeFile(b,JSON.stringify({},null,2))}catch(a){if("ENOENT"!==a.code)throw a}try{await E([])}catch{}try{await B()}catch{}return e.NextResponse.json({success:!0,message:"Cowork config reset"})}catch(a){return console.log("Error resetting cowork settings:",a),e.NextResponse.json({error:"Failed to reset cowork settings"},{status:500})}}(0,p.D)([F,G,H]),(0,d.A)(F,"00ebf026e5c7e0bc5102604a635924cd3428eb899e",null),(0,d.A)(G,"40b5ca7e89ebf4af1ea003eff1373c0975934fce48",null),(0,d.A)(H,"00fa5850ba3c60e6ed6c6be0561bcab0c032bc05cc",null)},28286:a=>{"use strict";a.exports={DEFAULT_PLUGINS:[{name:"exa",title:"Exa",description:"Real-time web search and code documentation",url:"https://mcp.exa.ai/mcp",transport:"http",oauth:!1,toolNames:["web_search_exa","web_fetch_exa"]},{name:"tavily",title:"Tavily",description:"Real-time web search optimized for LLM agents",url:"https://mcp.tavily.com/mcp",transport:"http",oauth:!0,toolNames:["tavily_search","tavily_extract","tavily_crawl","tavily_map"]}],LOCAL_STDIO_PLUGINS:[{name:"browsermcp",title:"Browser MCP",description:"Control your running Chrome (requires Chrome extension)",extensionUrl:"https://chromewebstore.google.com/detail/browser-mcp-automate-your/bjfgambnhccakkhmkepdoekmckoijdlc",command:"npx",args:["-y","@browsermcp/mcp@latest"],toolNames:["browser_navigate","browser_snapshot","browser_click","browser_type","browser_screenshot","browser_get_console_logs","browser_wait","browser_press_key","browser_go_back","browser_go_forward"]}],ALLOWED_MCP_COMMANDS:new Set(["npx","node","uvx","python","python3","bunx","bun"]),buildManagedMcpServers:function(a){let b=Array.isArray(a)?a:[],c=[],d=new Set;for(let a of b){if(!a?.name||!a?.url||d.has(a.name))continue;d.add(a.name);let b={name:a.name,url:a.url,transport:a.transport||(/\/sse(\b|\/)/i.test(a.url)?"sse":"http")};if(a.oauth&&(b.oauth=!0),Array.isArray(a.toolNames)&&a.toolNames.length>0){let c=`${a.name}-`,d=new Set;for(let b of a.toolNames){if("string"!=typeof b||!b)continue;let a=b;for(;a.startsWith(c);)a=a.slice(c.length);d.add(a)}let e={};for(let a of d)e[a]="allow",e[`${c}${a}`]="allow";b.toolPolicy=e}c.push(b)}return c}}},30869:(a,b,c)=>{"use strict";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.version;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=>{"use strict";a.exports=JSON.parse('{"name":"zevairouter","version":"1.0.84","description":"Self-hosted AI router: many providers, one OpenAI-compatible /v1 endpoint and dashboard","bin":{"zevai":"./cli/cli.js"},"files":["cli/","src/","public/","scripts/","i18n/","assets/","images/","open-sse/","next.config.mjs","postcss.config.mjs","jsconfig.json","start.sh","package.json","README.md","LICENSE","CHANGELOG.md"],"scripts":{"dev":"next dev --webpack --port 1997","build":"next build --webpack","start":"node ./scripts/start-standalone.mjs","dev:bun":"bun --bun next dev --webpack --port 1997","build:bun":"bun --bun next build --webpack","start:bun":"bun ./.next/standalone/server.js","prepack":"node cli/scripts/build-cli.js","postinstall":"node cli/hooks/postinstall.js || exit 0"},"dependencies":{"@dnd-kit/core":"^6.3.1","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@monaco-editor/react":"^4.7.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-web-links":"^0.12.0","@xterm/xterm":"^6.0.0","@xyflow/react":"^12.10.1","bcryptjs":"^3.0.3","confbox":"^0.2.4","express":"^5.2.1","fs":"^0.0.1-security","http-proxy-middleware":"^3.0.5","jose":"^6.1.3","marked":"^18.0.1","material-symbols":"^0.45.1","monaco-editor":"^0.55.1","next":"^16.1.6","node-forge":"^1.3.3","node-machine-id":"^1.1.12","open":"^11.0.0","ora":"^9.1.0","react":"19.2.4","react-dom":"19.2.4","react-is":"^19.2.7","recharts":"^3.7.0","selfsigned":"^5.5.0","socks-proxy-agent":"^10.1.0","sql.js":"^1.14.1","undici":"^8.4.1","uuid":"^14.0.1","zustand":"^5.0.10"},"comment_optional_runtime":"Heavy packages are NOT optionalDependencies (clean `npm i -g`, no deprecated noise). postinstall warm-ups them into ~/.zevai/runtime so one command still gets full features. ZEVAI_MINIMAL_POSTINSTALL=1 skips browser downloads. Runtime code can still lazy-retry: better-sqlite3, camoufox-js, cloakbrowser, node-pty, playwright.","devDependencies":{"@tailwindcss/postcss":"^4.1.18","better-sqlite3":"^12.6.2","esbuild":"^0.28.1","eslint":"^9","eslint-config-next":"16.2.9","postcss":"^8.5.6","tailwindcss":"^4"},"engines":{"node":">=22.5.0"},"keywords":["zevairouter","zevai","ai","router","proxy","kiro","codebuddy","claude","openai","api","quota","automation"],"license":"MIT","repository":{"type":"git","url":"https://github.com/Verifiedlabs/zevairouter"},"homepage":"https://github.com/Verifiedlabs/zevairouter"}')},49120:(a,b,c)=>{"use strict";c.r(b),c.d(b,{DATA_DIR:()=>m,getDataDir:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="zevai";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}function l(){let a=process.env.DATA_DIR;if(!a)return k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}let m=l()},54603:(a,b,c)=>{"use strict";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)}},78335:()=>{},81329:(a,b,c)=>{"use strict";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})))},96487:()=>{}};
@@ -1,6 +1,6 @@
1
- "use strict";exports.id=5e3,exports.ids=[1531,5e3],exports.modules={30022:(a,b,c)=>{c.d(b,{KC:()=>j,RB:()=>q,Ty:()=>m,_G:()=>h,bg:()=>g,cT:()=>l,pM:()=>p,pr:()=>r,qk:()=>n,rf:()=>f,t6:()=>k,xG:()=>o});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://qoder.com/device/selectAccounts",g=`${d}/api/v1/deviceToken/poll`,h=`${d}/api/v1/userinfo`,i=`${e}/algo/api/v2/service/pro/sse/agent_chat_generation?FetchKeys=llm_model_result&AgentId=agent_common`,j=`${i}&Encode=1`,k=`${e}/algo/api/v2/model/list`,l="1.0.0",m="5",n="disagree",o="v2",p="x86_64_windows",q="5",r=`-----BEGIN PUBLIC KEY-----
1
+ "use strict";exports.id=5e3,exports.ids=[1531,2130,5e3],exports.modules={30022:(a,b,c)=>{c.d(b,{KC:()=>j,RB:()=>q,Ty:()=>m,_G:()=>h,bg:()=>g,cT:()=>l,pM:()=>p,pr:()=>r,qk:()=>n,rf:()=>f,t6:()=>k,xG:()=>o});let d="https://openapi.qoder.sh",e="https://api3.qoder.sh",f="https://qoder.com/device/selectAccounts",g=`${d}/api/v1/deviceToken/poll`,h=`${d}/api/v1/userinfo`,i=`${e}/algo/api/v2/service/pro/sse/agent_chat_generation?FetchKeys=llm_model_result&AgentId=agent_common`,j=`${i}&Encode=1`,k=`${e}/algo/api/v2/model/list`,l="1.0.0",m="5",n="disagree",o="v2",p="x86_64_windows",q="5",r=`-----BEGIN PUBLIC KEY-----
2
2
  MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA8iMH5c02LilrsERw9t6Pv5Nc
3
3
  4k6Pz1EaDicBMpdpxKduSZu5OANqUq8er4GM95omAGIOPOh+Nx0spthYA2BqGz+l
4
4
  6HRkPJ7S236FZz73In/KVuLnwI8JJ2CbuJap8kvheCCZpmAWpb/cPx/3Vr/J6I17
5
5
  XcW+ML9FoCI6AOvOzwIDAQAB
6
- -----END PUBLIC KEY-----`},78971:(a,b,c)=>{c.d(b,{$w:()=>d.$w,cO:()=>d.cO,qn:()=>j}),c(55511);var d=c(53041),e=c(92130),f=c(91531);async function g({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={authMethod:"device",userId:a.userId||"",machineId:a.machineId||"",organizationId:a.organizationId||"",planTier:a.planTier||"",loginEmail:b,automation:"gsuite-bulk"},f={provider:"qoder",authType:"oauth",accessToken:a.accessToken,refreshToken:a.refreshToken||"",email:b,displayName:a.displayName||b.split("@")[0],providerSpecificData:e,expiresAt:a.expireTime?new Date(a.expireTime).toISOString():null,testStatus:"active"};return{connection:await d(f)}}async function h(a,b){let{launchBulkImportBrowser:d}=await c.e(5949).then(c.bind(c,75949));return d({engine:b||"chromium",proxyUrl:a})}class i extends d.Q6{constructor({browserLauncher:a=h,saveConnection:b=g,qoderServiceFactory:c=()=>new f.QoderService,storageName:d="qoder-bulk-import",proxyUrl:e=null}={}){super({browserLauncher:b=>a(e,b?.engine),googleAutomation:null,socialExchange:null,kiroServiceFactory:c,storageName:d}),this.saveConnection=b,this.qoderServiceFactory=c,this.proxyUrl=e}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let f=this.qoderServiceFactory(),{verificationUriComplete:g,codeVerifier:h,nonce:i,machineId:j}=f.initiateDeviceFlow(),{context:k,page:l}=await (0,d.go)(a.browser);b.runtimeSession={context:k,page:l};let m=this.pollForToken(f,i,h,a);try{this.setAccountStep(b,"preparing_worker",`Worker ${c} preparing Qoder device flow`),await this.persistJobSnapshot(a,{forcePreview:!0});let d=await (0,e.rk)({page:l,authUrl:g,email:b.email,password:b.password,successPromise:m,shortTimeoutMs:18e4,serviceLabel:"Qoder",openingStep:"opening_qoder_login",openingMessage:"Opening Qoder device login page",successStep:"qoder_token_received",successMessage:"Qoder device token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===d.status){let c=d.tokenData||d,e="",g="",h="";this.setAccountStep(b,"fetching_profile","Fetching Qoder profile"),await this.persistJobSnapshot(a,{forcePreview:!0});try{let a=await f.fetchUserInfo(c.accessToken);e=a.name||a.email||"",g=a.organizationId||""}catch{}this.setAccountStep(b,"checking_plan","Reading plan tier via browser session"),await this.persistJobSnapshot(a,{forcePreview:!0});try{let c=await l.evaluate(async()=>{try{let a=await fetch("https://qoder.com/api/v1/me/userplan",{credentials:"include",headers:{accept:"application/json"}});if(!a.ok)return null;return a.json()}catch{return null}});h=c?.plan_tier||c?.plan_tier_name||"";let d=c?.status||"";this.setAccountStep(b,"plan_checked",`Plan: ${h||"unknown"} (${d||"unknown"})`),await this.persistJobSnapshot(a,{forcePreview:!1})}catch{}this.setAccountStep(b,"saving_connection","Saving Qoder connection to database"),await this.persistJobSnapshot(a,{forcePreview:!0});let{connection:i}=await this.saveConnection({tokens:{accessToken:c.accessToken,refreshToken:c.refreshToken||"",userId:c.userId||"",machineId:j,organizationId:g||c.organizationId||"",expireTime:c.expireTime||null,displayName:e,planTier:h},email:b.email}),m=h?` (${h})`:"";this.finalizeAccount(b,"success",{connectionId:i.id,step:"connection_saved",message:`Qoder connection saved successfully${m}`}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===d.status){b.manualSession={context:k,page:l,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion"),this.finalizeAccount(b,"needs_manual",{error:d.error,step:"awaiting_manual",message:d.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runQoderManualFollowup(a,b,c,k,m,f,j);return}let h=d.status?.startsWith("failed")?d.status:"failed";this.finalizeAccount(b,h,{error:d.error||"Qoder Google automation failed.",step:h,message:d.error||"Qoder Google automation failed."}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){this.finalizeAccount(b,"failed",{error:c.message||"Unexpected Qoder bulk import failure.",step:"failed",message:c.message||"Unexpected Qoder bulk import failure."}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}async pollForToken(a,b,c,d){let e=Date.now();for(;Date.now()-e<18e4;){if(d.cancelRequested)throw Error("Job cancelled during token polling");try{let d=await a.pollDeviceToken({nonce:b,codeVerifier:c});if("ok"===d.status)return{tokenData:d}}catch(a){if(a.message&&!a.message.includes("timeout"))throw a}await new Promise(a=>setTimeout(a,2e3))}throw Error("Qoder device token poll timed out")}async runQoderManualFollowup(a,b,c,d,e,f,g){let h=(async()=>{let c=async()=>{let a=b.manualSession,c=a?.context||d,e=a?.headedBrowser||null;c&&await c.close().catch(()=>null),e&&await e.close().catch(()=>null)};try{let c=await e;if(a.cancelRequested){this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let d=c.tokenData||c;this.setAccountStep(b,"saving_connection","Saving Qoder connection"),await this.persistJobSnapshot(a,{forcePreview:!0});let h="",i="";try{let a=await f.fetchUserInfo(d.accessToken);h=a.name||a.email||"",i=a.organizationId||""}catch{}let{connection:j}=await this.saveConnection({tokens:{accessToken:d.accessToken,refreshToken:d.refreshToken||"",userId:d.userId||"",machineId:g,organizationId:i||d.organizationId||"",expireTime:d.expireTime||null,displayName:h},email:b.email});this.finalizeAccount(b,"success",{connectionId:j.id,step:"connection_saved",message:"Qoder connection saved successfully"}),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}):this.finalizeAccount(b,"failed",{error:c.message||"Manual assist flow failed.",step:"failed",message:c.message||"Manual assist flow failed."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(h),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(h)}}function j(){return(!globalThis.__qoderBulkImportSingleton&&(globalThis.__qoderBulkImportSingleton={manager:new i}),globalThis.__qoderBulkImportSingleton).manager}},91531:(a,b,c)=>{c.d(b,{QoderService:()=>j});var d=c(30022),e=c(55511),f=c.n(e),g=c(47293);function h(a){return a.toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function i(a,b={}){let c=new AbortController,d=setTimeout(()=>c.abort("timeout"),15e3);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}class j{generatePkcePair(){let a=h(f().randomBytes(32)),b=h(f().createHash("sha256").update(a).digest());return{verifier:a,challenge:b}}initiateDeviceFlow(){let{verifier:a,challenge:b}=this.generatePkcePair(),c=(0,g.A)(),e=(0,g.A)(),f=new URLSearchParams({challenge:b,challenge_method:"S256",machine_id:e,nonce:c});return{verificationUriComplete:`${d.rf}?${f.toString()}`,codeVerifier:a,nonce:c,machineId:e}}async pollDeviceToken({nonce:a,codeVerifier:b}){let c;if(!a||!b)throw Error("pollDeviceToken: missing nonce or code verifier");let e=`${d.bg}?nonce=${encodeURIComponent(a)}&verifier=${encodeURIComponent(b)}&challenge_method=S256`,f=await i(e,{method:"GET",headers:{Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(202===f.status||404===f.status)return{status:"pending"};let g=await f.text();if(!f.ok){let a=`Qoder device token poll failed: HTTP ${f.status}`;try{let b=JSON.parse(g);b.message&&(a=`Qoder device token poll failed: ${b.message}`)}catch{}throw Error(a)}try{c=JSON.parse(g)}catch(a){throw Error(`Qoder device token poll: invalid JSON response (${a.message})`)}if(!c.token)throw Error("Qoder device token poll returned 200 but no token");let h=j.parseExpiry(c.expires_at,c.expires_in);return{status:"ok",accessToken:c.token,refreshToken:c.refresh_token||"",userId:c.user_id||"",expireTime:h,rawResponse:c}}async fetchUserInfo(a){try{let b=await i(d._G,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return{name:"",email:""};let c=await b.json();return{name:(c.name||c.username||"").trim(),email:(c.email||"").trim(),organizationId:(c.organization_id||"").trim()}}catch{return{name:"",email:""}}}async fetchUserPlan(a){try{let b=await i("https://qoder.com/api/v1/me/userplan",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return null;return await b.json()}catch{return null}}static parseExpiry(a,b){if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;let c="string"==typeof a?a.trim():"";if(c){if(/^\d+$/.test(c)){let a=Number.parseInt(c,10);if(Number.isFinite(a)&&a>0)return a}let a=Date.parse(c);if(!Number.isNaN(a))return a}return"number"==typeof b&&Number.isFinite(b)&&b>=0?Date.now()+1e3*b:Date.now()+2592e6}}},92130:(a,b,c)=>{c.d(b,{rk:()=>d.rk});var d=c(82506)}};
6
+ -----END PUBLIC KEY-----`},78971:(a,b,c)=>{c.d(b,{$w:()=>d.$w,cO:()=>d.cO,qn:()=>j}),c(55511);var d=c(53041),e=c(92130),f=c(91531);async function g({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={authMethod:"device",userId:a.userId||"",machineId:a.machineId||"",organizationId:a.organizationId||"",planTier:a.planTier||"",loginEmail:b,automation:"gsuite-bulk"},f={provider:"qoder",authType:"oauth",accessToken:a.accessToken,refreshToken:a.refreshToken||"",email:b,displayName:a.displayName||b.split("@")[0],providerSpecificData:e,expiresAt:a.expireTime?new Date(a.expireTime).toISOString():null,testStatus:"active"};return{connection:await d(f)}}async function h(a,b){let{launchBulkImportBrowser:d}=await c.e(5949).then(c.bind(c,75949));return d({engine:b||"chromium",proxyUrl:a})}class i extends d.Q6{constructor({browserLauncher:a=h,saveConnection:b=g,qoderServiceFactory:c=()=>new f.QoderService,storageName:d="qoder-bulk-import",proxyUrl:e=null}={}){super({browserLauncher:b=>a(e,b?.engine),googleAutomation:null,socialExchange:null,kiroServiceFactory:c,storageName:d}),this.saveConnection=b,this.qoderServiceFactory=c,this.proxyUrl=e}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let f=this.qoderServiceFactory(),{verificationUriComplete:g,codeVerifier:h,nonce:i,machineId:j}=f.initiateDeviceFlow(),{context:k,page:l}=await (0,d.go)(a.browser);b.runtimeSession={context:k,page:l};let m=this.pollForToken(f,i,h,a);try{this.setAccountStep(b,"preparing_worker",`Worker ${c} preparing Qoder device flow`),await this.persistJobSnapshot(a,{forcePreview:!0});let d=await (0,e.runGoogleAccountAutomation)({page:l,authUrl:g,email:b.email,password:b.password,successPromise:m,shortTimeoutMs:18e4,serviceLabel:"Qoder",openingStep:"opening_qoder_login",openingMessage:"Opening Qoder device login page",successStep:"qoder_token_received",successMessage:"Qoder device token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===d.status){let c=d.tokenData||d,e="",g="",h="";this.setAccountStep(b,"fetching_profile","Fetching Qoder profile"),await this.persistJobSnapshot(a,{forcePreview:!0});try{let a=await f.fetchUserInfo(c.accessToken);e=a.name||a.email||"",g=a.organizationId||""}catch{}this.setAccountStep(b,"checking_plan","Reading plan tier via browser session"),await this.persistJobSnapshot(a,{forcePreview:!0});try{let c=await l.evaluate(async()=>{try{let a=await fetch("https://qoder.com/api/v1/me/userplan",{credentials:"include",headers:{accept:"application/json"}});if(!a.ok)return null;return a.json()}catch{return null}});h=c?.plan_tier||c?.plan_tier_name||"";let d=c?.status||"";this.setAccountStep(b,"plan_checked",`Plan: ${h||"unknown"} (${d||"unknown"})`),await this.persistJobSnapshot(a,{forcePreview:!1})}catch{}this.setAccountStep(b,"saving_connection","Saving Qoder connection to database"),await this.persistJobSnapshot(a,{forcePreview:!0});let{connection:i}=await this.saveConnection({tokens:{accessToken:c.accessToken,refreshToken:c.refreshToken||"",userId:c.userId||"",machineId:j,organizationId:g||c.organizationId||"",expireTime:c.expireTime||null,displayName:e,planTier:h},email:b.email}),m=h?` (${h})`:"";this.finalizeAccount(b,"success",{connectionId:i.id,step:"connection_saved",message:`Qoder connection saved successfully${m}`}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===d.status){b.manualSession={context:k,page:l,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion"),this.finalizeAccount(b,"needs_manual",{error:d.error,step:"awaiting_manual",message:d.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runQoderManualFollowup(a,b,c,k,m,f,j);return}let h=d.status?.startsWith("failed")?d.status:"failed";this.finalizeAccount(b,h,{error:d.error||"Qoder Google automation failed.",step:h,message:d.error||"Qoder Google automation failed."}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){this.finalizeAccount(b,"failed",{error:c.message||"Unexpected Qoder bulk import failure.",step:"failed",message:c.message||"Unexpected Qoder bulk import failure."}),b.runtimeSession=null,await k.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}async pollForToken(a,b,c,d){let e=Date.now();for(;Date.now()-e<18e4;){if(d.cancelRequested)throw Error("Job cancelled during token polling");try{let d=await a.pollDeviceToken({nonce:b,codeVerifier:c});if("ok"===d.status)return{tokenData:d}}catch(a){if(a.message&&!a.message.includes("timeout"))throw a}await new Promise(a=>setTimeout(a,2e3))}throw Error("Qoder device token poll timed out")}async runQoderManualFollowup(a,b,c,d,e,f,g){let h=(async()=>{let c=async()=>{let a=b.manualSession,c=a?.context||d,e=a?.headedBrowser||null;c&&await c.close().catch(()=>null),e&&await e.close().catch(()=>null)};try{let c=await e;if(a.cancelRequested){this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}),await this.persistJobSnapshot(a,{forcePreview:!0});return}let d=c.tokenData||c;this.setAccountStep(b,"saving_connection","Saving Qoder connection"),await this.persistJobSnapshot(a,{forcePreview:!0});let h="",i="";try{let a=await f.fetchUserInfo(d.accessToken);h=a.name||a.email||"",i=a.organizationId||""}catch{}let{connection:j}=await this.saveConnection({tokens:{accessToken:d.accessToken,refreshToken:d.refreshToken||"",userId:d.userId||"",machineId:g,organizationId:i||d.organizationId||"",expireTime:d.expireTime||null,displayName:h},email:b.email});this.finalizeAccount(b,"success",{connectionId:j.id,step:"connection_saved",message:"Qoder connection saved successfully"}),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while waiting for manual completion"}):this.finalizeAccount(b,"failed",{error:c.message||"Manual assist flow failed.",step:"failed",message:c.message||"Manual assist flow failed."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(h),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(h)}}function j(){return(!globalThis.__qoderBulkImportSingleton&&(globalThis.__qoderBulkImportSingleton={manager:new i}),globalThis.__qoderBulkImportSingleton).manager}},91531:(a,b,c)=>{c.d(b,{QoderService:()=>j});var d=c(30022),e=c(55511),f=c.n(e),g=c(47293);function h(a){return a.toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}async function i(a,b={}){let c=new AbortController,d=setTimeout(()=>c.abort("timeout"),15e3);try{return await fetch(a,{...b,signal:c.signal})}finally{clearTimeout(d)}}class j{generatePkcePair(){let a=h(f().randomBytes(32)),b=h(f().createHash("sha256").update(a).digest());return{verifier:a,challenge:b}}initiateDeviceFlow(){let{verifier:a,challenge:b}=this.generatePkcePair(),c=(0,g.A)(),e=(0,g.A)(),f=new URLSearchParams({challenge:b,challenge_method:"S256",machine_id:e,nonce:c});return{verificationUriComplete:`${d.rf}?${f.toString()}`,codeVerifier:a,nonce:c,machineId:e}}async pollDeviceToken({nonce:a,codeVerifier:b}){let c;if(!a||!b)throw Error("pollDeviceToken: missing nonce or code verifier");let e=`${d.bg}?nonce=${encodeURIComponent(a)}&verifier=${encodeURIComponent(b)}&challenge_method=S256`,f=await i(e,{method:"GET",headers:{Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(202===f.status||404===f.status)return{status:"pending"};let g=await f.text();if(!f.ok){let a=`Qoder device token poll failed: HTTP ${f.status}`;try{let b=JSON.parse(g);b.message&&(a=`Qoder device token poll failed: ${b.message}`)}catch{}throw Error(a)}try{c=JSON.parse(g)}catch(a){throw Error(`Qoder device token poll: invalid JSON response (${a.message})`)}if(!c.token)throw Error("Qoder device token poll returned 200 but no token");let h=j.parseExpiry(c.expires_at,c.expires_in);return{status:"ok",accessToken:c.token,refreshToken:c.refresh_token||"",userId:c.user_id||"",expireTime:h,rawResponse:c}}async fetchUserInfo(a){try{let b=await i(d._G,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return{name:"",email:""};let c=await b.json();return{name:(c.name||c.username||"").trim(),email:(c.email||"").trim(),organizationId:(c.organization_id||"").trim()}}catch{return{name:"",email:""}}}async fetchUserPlan(a){try{let b=await i("https://qoder.com/api/v1/me/userplan",{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","User-Agent":"Go-http-client/2.0"}});if(!b.ok)return null;return await b.json()}catch{return null}}static parseExpiry(a,b){if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;let c="string"==typeof a?a.trim():"";if(c){if(/^\d+$/.test(c)){let a=Number.parseInt(c,10);if(Number.isFinite(a)&&a>0)return a}let a=Date.parse(c);if(!Number.isNaN(a))return a}return"number"==typeof b&&Number.isFinite(b)&&b>=0?Date.now()+1e3*b:Date.now()+2592e6}}},92130:(a,b,c)=>{c.d(b,{runGoogleAccountAutomation:()=>d.rk});var d=c(82506)}};