zevairouter 1.1.33 → 1.1.34

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 (582) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +13 -13
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +4 -4
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  67. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  68. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  69. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  70. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  71. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  74. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  75. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  76. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  77. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  78. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  89. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -16
  91. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  92. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  93. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  95. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  96. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  97. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  99. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  100. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -2
  101. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  103. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  104. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  105. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  109. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  111. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  113. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +3 -15
  115. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -1
  117. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -3
  119. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  121. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -1
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  248. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  303. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  368. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  369. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  370. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  371. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  372. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  373. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  374. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +3 -3
  375. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
  376. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
  377. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  378. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  379. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  380. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  381. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  382. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  383. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  384. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +3 -3
  385. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
  386. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +3 -3
  387. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  388. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  389. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  390. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  391. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  392. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  393. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  394. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
  395. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
  396. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
  397. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  398. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  399. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  400. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  401. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  402. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  403. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  404. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  405. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  406. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  407. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  408. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  409. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +3 -3
  410. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
  411. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +3 -3
  412. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  413. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  414. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
  415. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  416. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
  417. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  418. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  419. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  420. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  421. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  422. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  423. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  424. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  425. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  426. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  427. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  428. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  429. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +4 -4
  430. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
  431. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +4 -4
  432. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  433. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  434. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  435. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  436. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  437. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  438. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  439. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  440. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  441. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  442. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  443. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  444. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
  445. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  446. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
  447. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  448. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  449. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  450. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  451. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  452. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  453. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  454. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  455. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  456. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  457. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  458. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  459. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  460. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  461. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  462. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  463. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  464. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  465. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  466. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  467. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  468. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  469. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  470. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  471. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  472. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  473. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  474. package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  475. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  476. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  477. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  478. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  479. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  480. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  481. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  482. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  483. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  484. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  485. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  486. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  487. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  488. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  489. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  490. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  491. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  492. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  493. package/cli/app/.next-cli-build/server/app/login.rsc +3 -3
  494. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  496. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  497. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  498. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  500. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app-paths-manifest.json +13 -13
  502. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  503. package/cli/app/.next-cli-build/server/chunks/1133.js +1 -1
  504. package/cli/app/.next-cli-build/server/chunks/1283.js +3 -3
  505. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  506. package/cli/app/.next-cli-build/server/chunks/2238.js +1 -0
  507. package/cli/app/.next-cli-build/server/chunks/2442.js +1 -1
  508. package/cli/app/.next-cli-build/server/chunks/2456.js +1 -1
  509. package/cli/app/.next-cli-build/server/chunks/{440.js → 3294.js} +3 -4
  510. package/cli/app/.next-cli-build/server/chunks/3477.js +1 -1
  511. package/cli/app/.next-cli-build/server/chunks/3593.js +1 -1
  512. package/cli/app/.next-cli-build/server/chunks/3721.js +4 -4
  513. package/cli/app/.next-cli-build/server/chunks/3792.js +1 -1
  514. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  515. package/cli/app/.next-cli-build/server/chunks/3999.js +1 -1
  516. package/cli/app/.next-cli-build/server/chunks/40.js +1 -1
  517. package/cli/app/.next-cli-build/server/chunks/4055.js +1 -1
  518. package/cli/app/.next-cli-build/server/chunks/412.js +1 -1
  519. package/cli/app/.next-cli-build/server/chunks/4322.js +1 -1
  520. package/cli/app/.next-cli-build/server/chunks/437.js +1 -1
  521. package/cli/app/.next-cli-build/server/chunks/4493.js +1 -1
  522. package/cli/app/.next-cli-build/server/chunks/4586.js +3 -3
  523. package/cli/app/.next-cli-build/server/chunks/4780.js +1 -1
  524. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  525. package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
  526. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  527. package/cli/app/.next-cli-build/server/chunks/5217.js +1 -1
  528. package/cli/app/.next-cli-build/server/chunks/5330.js +9 -11
  529. package/cli/app/.next-cli-build/server/chunks/5434.js +1 -1
  530. package/cli/app/.next-cli-build/server/chunks/5436.js +1 -1
  531. package/cli/app/.next-cli-build/server/chunks/5681.js +1 -1
  532. package/cli/app/.next-cli-build/server/chunks/5800.js +1 -1
  533. package/cli/app/.next-cli-build/server/chunks/5949.js +2 -2
  534. package/cli/app/.next-cli-build/server/chunks/6182.js +3 -3
  535. package/cli/app/.next-cli-build/server/chunks/6252.js +1 -1
  536. package/cli/app/.next-cli-build/server/chunks/6846.js +1 -1
  537. package/cli/app/.next-cli-build/server/chunks/6936.js +3 -3
  538. package/cli/app/.next-cli-build/server/chunks/7170.js +1 -1
  539. package/cli/app/.next-cli-build/server/chunks/7319.js +24 -27
  540. package/cli/app/.next-cli-build/server/chunks/773.js +1 -0
  541. package/cli/app/.next-cli-build/server/chunks/8239.js +1 -1
  542. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
  543. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  544. package/cli/app/.next-cli-build/server/chunks/8655.js +1 -1
  545. package/cli/app/.next-cli-build/server/chunks/8895.js +3 -3
  546. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  547. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
  548. package/cli/app/.next-cli-build/server/chunks/{2750.js → 9528.js} +3 -2
  549. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  550. package/cli/app/.next-cli-build/server/middleware.js +2 -2
  551. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  552. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  553. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  554. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  555. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  556. package/cli/app/.next-cli-build/static/chunks/{5497-a9a321ee476bd2ce.js → 5497-00e385b36b5faf04.js} +2 -2
  557. package/cli/app/.next-cli-build/static/chunks/620-f497c666bb6c6074.js +1 -0
  558. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-9c505cf411125a6a.js +3 -0
  559. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-4bd92dec9d25dff3.js +1 -0
  560. package/cli/app/CHANGELOG.md +35 -0
  561. package/cli/app/cli/hooks/postinstall.js +0 -12
  562. package/cli/app/cli/hooks/startupRuntime.js +0 -10
  563. package/cli/app/package.json +1 -1
  564. package/cli/app/src/lib/db/adapters/sqljsAdapter.js +82 -15
  565. package/cli/app/src/lib/db/migrate.js +27 -3
  566. package/cli/app/src/mitm/server.js +32 -34
  567. package/cli/cli.js +3 -7
  568. package/cli/hooks/postinstall.js +0 -12
  569. package/cli/hooks/startupRuntime.js +0 -10
  570. package/cli/package.json +1 -1
  571. package/cli/src/cli/terminalUI.js +21 -5
  572. package/package.json +1 -1
  573. package/cli/app/.next-cli-build/server/chunks/1585.js +0 -1
  574. package/cli/app/.next-cli-build/server/chunks/3912.js +0 -2
  575. package/cli/app/.next-cli-build/static/chunks/620-46999209a961b94a.js +0 -1
  576. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-e9fcb79ca412ea2c.js +0 -3
  577. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-7b3b291fb9d2dc65.js +0 -1
  578. package/cli/app/cli/hooks/notionTlsRuntime.js +0 -57
  579. package/cli/app/public/providers/notion-ai.png +0 -0
  580. package/cli/hooks/notionTlsRuntime.js +0 -57
  581. /package/cli/app/.next-cli-build/static/{5wTkpSETl1nKGKUkK-OM5 → QnZGjZBbNqQkbGSTiHVnz}/_buildManifest.js +0 -0
  582. /package/cli/app/.next-cli-build/static/{5wTkpSETl1nKGKUkK-OM5 → QnZGjZBbNqQkbGSTiHVnz}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=891,exports.ids=[891],exports.modules={40891:(a,b,c)=>{c.d(b,{cO:()=>d.cO,ZV:()=>n,cT:()=>m,w8:()=>o,Ol:()=>D,L_:()=>d.$w});var d=c(13868),e=c(92130),f=c(82506);let g="codebuddy",h="CodeBuddy",i=new Set(["codebuddy.ai","www.codebuddy.ai"]),j="personal-edition-user-id";function k(a){return new Promise(b=>setTimeout(b,a))}async function l({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={...a.providerSpecificData||{},loginEmail:b,automation:"gsuite-bulk"};a.webCookie&&(e.webCookie=a.webCookie,e.webCookieCapturedAt=a.webCookieCapturedAt||new Date().toISOString()),a.generatedApiKey&&(e.codebuddyApiKeyId=a.generatedApiKey.id||null,e.codebuddyApiKeyName=a.generatedApiKey.name||null,e.codebuddyApiKeyExpiresAt=a.generatedApiKey.expiresAt||null,e.authMode="generated-api-key");let f={provider:g,authType:"oauth",...a,email:b,providerSpecificData:e,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"},h=a.generatedApiKey?.key||a.apiKey;return h&&(f.apiKey=h),{connection:await d(f)}}async function m(a){let{requestDeviceCode:b}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(8590),c.e(8239),c.e(2557),c.e(3912),c.e(4586),c.e(1585),c.e(4493),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return b(a)}async function n(a,b){let{pollForToken:d}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(8590),c.e(8239),c.e(2557),c.e(3912),c.e(4586),c.e(1585),c.e(4493),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return d(a,b)}async function o(a,b,c="www.codebuddy.ai"){if(!a||!b)return null;try{let d=await fetch(`https://${c}/v2/plugin/login/account?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","X-Domain":c}});if(!d.ok)return null;let e=await d.json(),f=e?.data||e||{};if(!f||"object"!=typeof f)return null;return{uid:f.uid||null,nickname:f.nickname||null,email:f.email||null,enterpriseId:f.enterpriseId||null,enterpriseName:f.enterpriseName||null,rawAuth:f}}catch{return null}}async function p(a){if(!a)return null;try{let{getProviderConnections:b}=await Promise.resolve().then(c.bind(c,71998)),d=(await b({provider:g})).find(b=>"oauth"===b.authType&&b.email===a&&b.apiKey);return d?.apiKey||null}catch{return null}}async function q(a){if(!a?.cookies)return console.warn("[CodeBuddy] captureWebCookie: context.cookies not available"),null;try{let b=await a.cookies(["https://www.codebuddy.ai","https://codebuddy.ai"]);console.log(`[CodeBuddy] captureWebCookie: found ${b.length} raw cookies from browser context`);let c=b.filter(a=>{let b=String(a.domain||"").replace(/^\./,"").toLowerCase();return i.has(b)||b.endsWith(".codebuddy.ai")}).filter(a=>a.name&&a.value).sort((a,b)=>String(a.name).localeCompare(String(b.name)));if(0===c.length)return console.warn("[CodeBuddy] captureWebCookie: no useful cookies after filtering. Raw cookie names:",b.map(a=>`${a.name}@${a.domain}`).join(", ")),null;let d=c.map(a=>`${a.name}=${a.value}`).join("; ");return console.log(`[CodeBuddy] captureWebCookie: captured ${c.length} cookies (${d.length} chars). Names: ${c.map(a=>a.name).join(", ")}`),d}catch(a){return console.error("[CodeBuddy] captureWebCookie error:",a.message),null}}async function r(a,b={}){let c=await q(a);return c?{...b,webCookie:c,webCookieCapturedAt:new Date().toISOString()}:b}async function s(a,b,{method:c="POST",headers:d={},referrer:e,body:f}={}){return a.evaluate(async({url:a,method:b,headers:c,referrer:d,body:e})=>{let f=await fetch(a,{method:b,credentials:"include",headers:c,referrer:d,body:null==e?null:JSON.stringify(e)}),g=await f.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{h={raw:g}}return{ok:f.ok,status:f.status,payload:h,text:g}},{url:b,method:c,headers:d,referrer:e,body:f})}async function t(a,b){b?.("submitting_codebuddy_region_profile","Submitting CodeBuddy region profile via account API");let c=await s(a,"https://www.codebuddy.ai/console/login/account",{method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/register/user/complete",body:{attributes:{countryCode:["62"],countryFullName:["Indonesia"],countryName:["ID"]}}});return c.ok&&(c.payload?.code===0||c.payload?.code===200||void 0===c.payload?.code)?{ok:!0,code:c.payload?.code??0,message:c.payload?.msg||c.payload?.message||"OK"}:{ok:!1,code:c.payload?.code??c.status,message:c.payload?.msg||c.payload?.message||c.text||`HTTP ${c.status}`}}async function u(a,b){b?.("activating_codebuddy_trial","Applying or verifying CodeBuddy IDE trial");let c=()=>s(a,"https://www.codebuddy.ai/billing/ide/trial",{method:"POST",headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/profile/plan",body:null}),d=await c(),e=d?.payload?.code;if(d.ok&&14051===e)return{ok:!0,code:e,state:"already_applied",message:d.payload?.msg||"has applied trial"};if(d.ok&&(0===e||200===e||void 0===e)){await k(1200);let a=await c(),b=a?.payload?.code;return a.ok&&(0===b||200===b||14051===b||void 0===b)?{ok:!0,code:b??e??0,state:14051===b?"applied_confirmed":"applied",message:a.payload?.msg||d.payload?.msg||"OK"}:{ok:!1,code:b??a.status,message:a.payload?.msg||a.payload?.message||a.text||`HTTP ${a.status}`}}return{ok:!1,code:e??d.status,message:d.payload?.msg||d.payload?.message||d.text||`HTTP ${d.status}`}}async function v(a,b,c=45e3){let d=Date.now(),e=null;for(;Date.now()-d<c;){let c=await a.evaluate(async()=>{try{let a=await fetch("/console/accounts",{method:"GET",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","x-requested-with":"XMLHttpRequest","X-Domain":window.location.hostname||"www.codebuddy.ai"}}),b=await a.text(),c=null;try{c=b?JSON.parse(b):null}catch{c=null}let d=c?.data?.accounts||c?.accounts||[];return{ok:a.ok,status:a.status,payload:c,accounts:d}}catch(a){return{ok:!1,status:0,error:a?.message||String(a)}}});if(c?.ok&&Array.isArray(c.accounts)&&c.accounts.length>0){let a=c.accounts.find(a=>a?.lastLogin)||c.accounts[0]||{};return{account:a,userEnterpriseId:a.type&&"personal"!==a.type&&a.enterpriseId?a.enterpriseId:j}}e=c?.error||`status=${c?.status||"unknown"}`,b?.("waiting_codebuddy_key_session",`Waiting for CodeBuddy web console session (${e})`),await a.waitForTimeout(1500)}let f=Error(`CodeBuddy key session invalid: ${e||"no account session"}`);throw f.step="key_session_invalid",f.status="needs_manual",f}async function w(a,b,c){return a.evaluate(async({endpoint:a,name:b,expireInDays:c,userEnterpriseId:d})=>{let e=await fetch(a,{method:"POST",mode:"cors",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({name:b,expire_in_days:c,user_enterprise_id:d})}),f=await e.text(),g=null;try{g=f?JSON.parse(f):null}catch{g=null}return{ok:e.ok,status:e.status,payload:g,text:g?null:f.slice(0,300)}},{endpoint:"https://www.codebuddy.ai/console/api/client/v1/api-keys",name:b,expireInDays:365,userEnterpriseId:c})}async function x(a,b,c,{existingApiKey:d=null,directReplay:e=!1,userEnterpriseId:f=null}={}){let g,h;if(d)return{skipped:!0,key:d};if(!a){let a=Error("CodeBuddy browser session is not available for API key creation");throw a.step="key_session_invalid",a.status="needs_manual",a}let i=f||j;e?c?.("creating_codebuddy_api_key_direct","Replaying CodeBuddy API key creation from current web session"):(c?.("opening_codebuddy_keys","Opening CodeBuddy Access Keys page"),await a.goto("https://www.codebuddy.ai/profile/keys",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(2e3),i=(await v(a,c)).userEnterpriseId||i);let k=(g=String(b||"codebuddy").replace(/[^a-zA-Z0-9_.@-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"codebuddy",h=new Date().toISOString().replace(/[-:.TZ]/g,"").slice(0,14),`zevairouter-${g}-${h}`.slice(0,50)),l=[k,`${k.slice(0,41)}-${Math.random().toString(36).slice(2,8)}`.slice(0,50)],m=null;for(let b=0;b<l.length;b+=1){let d=l[b];c?.("creating_codebuddy_api_key",`Creating CodeBuddy API key${b?" with retry name":""}`);let e=await w(a,d,i);if(e?.ok&&(e.payload?.code===0||e.payload?.code===200||e.payload?.code===void 0)){let a=function(a,b){let c=a?.data||a||{},d=c.key||c.api_key||c.apiKey;if(!d)return null;let e=c.item||c.apiKeyItem||c;return{key:d,id:e?.key_id||e?.id||e?.keyId||null,name:e?.name||c.name||b,expiresAt:c.expires_at||c.expiresAt||e?.expires_at||e?.expiresAt||null,createdAt:e?.created_at||e?.createdAt||null}}(e.payload,d);if(a?.key)return a;let b=Error("CodeBuddy API key created but secret was not returned");throw b.step="key_create_no_secret",b.status="failed",b}let f=function(a,b){let c=b?.code??b?.error?.code??b?.data?.code,d=b?.msg||b?.message||b?.error?.message||b?.error||`HTTP ${a}`;return 401===a||403===a?{step:"key_session_invalid",status:"needs_manual",message:`CodeBuddy key session invalid (${a})`,retryable:!1}:12601===c?{step:"key_limit_reached",status:"failed",message:"CodeBuddy API key limit reached",retryable:!1}:12502===c?{step:"key_name_exists",status:"failed",message:"CodeBuddy API key name already exists",retryable:!0}:{step:"key_create_failed",status:"failed",message:d||"CodeBuddy API key creation failed",retryable:!1}}(e?.status,e?.payload||{message:e?.text});if(m=f,f.retryable&&0===b)continue;let g=Error(f.message);throw g.step=f.step,g.status=f.status,g}let n=Error(m?.message||"CodeBuddy API key creation failed");throw n.step=m?.step||"key_create_failed",n.status=m?.status||"failed",n}async function y(a,b){let c=(a,c)=>b?.(a,c);try{c("navigating_to_dashboard","Navigating to CodeBuddy to complete registration"),await a.goto("https://www.codebuddy.ai/home",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(3e3);let b=Date.now(),d=!1;for(;Date.now()-b<3e4&&(0,f.Jl)(a);){if(await (0,f.i_)(a,c)||await (0,f.np)(a,c)||await (0,f.$K)(a,c,h)){d=!0,await a.waitForTimeout(1500);continue}break}d&&c("complete_register_done","CodeBuddy registration completed, establishing session"),c("codebuddy_registration_ready","CodeBuddy registration flow is ready for API key creation")}catch(a){c("complete_register_skipped",`Could not complete registration: ${a.message}`)}}async function z({manager:a,job:b,account:c,context:d,page:e,tokens:f,email:g,createOptions:h={}}){let i=f||{};if(e){let d=await t(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyRegionSubmitOk:d.ok,codebuddyRegionSubmitCode:d.code??null,codebuddyRegionSubmitMessage:d.message||null}};let f=await u(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});if(!f.ok){let a=Error(f.message||"CodeBuddy IDE trial activation failed");throw a.step="trial_not_activated",a.status="trial_not_activated",a}i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyTrialState:f.state||null,codebuddyTrialCode:f.code??null,codebuddyTrialMessage:f.message||null}}}a.setAccountStep(c,"creating_codebuddy_api_key","Generating CodeBuddy Access Key"),await a.persistJobSnapshot(b,{forcePreview:!0});let j=i.apiKey||i.generatedApiKey?.key||await a.findExistingApiKey(g),k=j?{skipped:!0,key:j}:await a.createApiKey(e,g,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})},{existingApiKey:j,...h});a.setAccountStep(c,"saving_connection","Saving CodeBuddy connection with generated API key"),await a.persistJobSnapshot(b,{forcePreview:!0});let l=await r(d,{...i,...j?{apiKey:j}:{},...k?.skipped?{}:{generatedApiKey:k}}),{connection:m}=await a.saveConnection({tokens:l,email:g});return a.finalizeAccount(c,"success",{connectionId:m.id,step:"connection_saved",message:k?.skipped?"CodeBuddy connection already has an API key":"CodeBuddy connection saved with generated API key"}),{connection:m,generatedApiKey:k}}async function A(a,b=500){if(!a)return{};try{let c=await Promise.race([a,k(b).then(()=>null)]);return c?.tokens||{}}catch{return{}}}async function B({manager:a,job:b,account:c,context:d,page:e,successPromise:f,reason:g}){a.setAccountStep(c,"restricted_key_replay","Restricted page detected; replaying CodeBuddy Access Key creation from web session"),await a.persistJobSnapshot(b,{forcePreview:!0});let h=await A(f);return z({manager:a,job:b,account:c,context:d,page:e,tokens:{...h,providerSpecificData:{...h.providerSpecificData||{},restrictedDetected:!0,restrictedReason:g||"Account restricted page detected during automation",oauthTokenCaptured:!!h.accessToken}},email:c.email,createOptions:{directReplay:!0,userEnterpriseId:j}})}class C extends d.Q6{constructor({browserLauncher:a,googleAutomation:b=e.rk,requestDeviceCodeFn:c=m,pollToken:d=n,saveConnection:f=l,createApiKeyFn:g=x,findExistingApiKeyFn:h=p,fetchLoginAccountFn:i=o,pollIntervalMs:j=5e3}={}){super({browserLauncher:a,googleAutomation:b,storageName:"codebuddy-bulk-import"}),this.requestDeviceCode=c,this.pollToken=d,this.saveConnection=f,this.createApiKey=g,this.findExistingApiKey=h,this.fetchLoginAccount=i,this.pollIntervalMs=j}async runManualFollowup(a,b,c,d,e){let f=(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 f=b.manualSession?.page;f&&(this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})})),await z({manager:this,job:a,account:b,context:b.manualSession?.context||d,page:f||b.manualSession?.page,tokens:c.tokens,email:b.email}),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,c.status||"failed_exchange",{error:c.message||"Manual assist flow failed during token polling.",step:c.step||"exchange_failed",message:c.message||"Manual assist flow failed during token polling."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(f),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(f)}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let{context:e,page:f}=await (0,d.go)(a.browser,b.proxyUrl);b.runtimeSession={context:e,page:f};try{this.setAccountStep(b,"preparing_worker",`Worker ${c} is preparing a browser context`),await this.persistJobSnapshot(a,{forcePreview:!0}),this.setAccountStep(b,"requesting_codebuddy_state","Requesting CodeBuddy OAuth state");let d=await this.requestDeviceCode(g),i=function(a,b){if(!a&&!b)return a;let c=new URL(a||"https://www.codebuddy.ai/login"),d=c.searchParams.get("platform")||"CLI",e=b||c.searchParams.get("state"),f=new URL("https://www.codebuddy.ai/login");return f.searchParams.set("platform",d),e&&f.searchParams.set("state",e),f.toString()}(d.verification_uri,d.device_code);if(!i||!d.device_code)throw Error("CodeBuddy did not return an OAuth login URL");let j=function({deviceCode:a,pollToken:b,onStep:c,fetchLoginAccount:d=o,timeoutMs:e=9e5,pollIntervalMs:f=5e3,maxTransientErrors:h=6,providerId:i=g,domain:j="www.codebuddy.ai"}){return(async()=>{let g=Date.now(),l=0,m=0;for(;Date.now()-g<e;){Date.now()-l>f-100&&(c?.("polling_codebuddy_token","Waiting for CodeBuddy OAuth token"),l=Date.now());let e=await b(i,a);if(e.success){let b=e.tokens?.accessToken||e.tokens?.access_token,c=await d(b,a,j);return{tokens:{...e.tokens,providerSpecificData:{...e.tokens?.providerSpecificData||{},...c?.uid?{uid:c.uid}:{},...c?.nickname?{nickname:c.nickname}:{},...c?.enterpriseId?{enterpriseId:c.enterpriseId}:{},...c?.enterpriseName?{enterpriseName:c.enterpriseName}:{},...c?.rawAuth?{rawAuth:c.rawAuth}:{},domain:j,oauthState:a}}}}if(!e.pending&&"authorization_pending"!==e.error&&"slow_down"!==e.error){if("request_failed"===e.error&&m<h){m+=1,c?.("codebuddy_poll_retry",`CodeBuddy token poll failed temporarily (${m}/${h}); retrying`),await k(f);continue}throw Error(e.errorDescription||e.error||"CodeBuddy OAuth polling failed")}await k(f)}throw Error("Timed out waiting for CodeBuddy OAuth token")})()}({deviceCode:d.device_code,pollToken:this.pollToken,fetchLoginAccount:this.fetchLoginAccount,pollIntervalMs:this.pollIntervalMs,onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});j.catch(()=>null);let l=await this.googleAutomation({page:f,authUrl:i,email:b.email,password:b.password,successPromise:j,serviceLabel:h,openingStep:"opening_codebuddy_oauth",openingMessage:"Opening CodeBuddy OAuth page",successStep:"codebuddy_token_received",successMessage:"CodeBuddy OAuth token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===l.status){this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})});let{connection:c}=await z({manager:this,job:a,account:b,context:e,page:f,tokens:l.tokens,email:b.email});b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("failed_restricted"===l.status){await B({manager:this,job:a,account:b,context:e,page:f,successPromise:j,reason:l.error}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===l.status){b.manualSession={context:e,page:f,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion in the browser session"),this.finalizeAccount(b,"needs_manual",{error:l.error,step:"awaiting_manual",message:l.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runManualFollowup(a,b,c,e,j);return}this.finalizeAccount(b,l.status||"failed",{error:l.error||"CodeBuddy Google automation failed.",step:l.status||"failed",message:l.error||"CodeBuddy Google automation failed."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while CodeBuddy automation was running"}):this.finalizeAccount(b,c.status||"failed",{error:c.message||"Unexpected CodeBuddy bulk import failure.",step:c.step||"failed",message:c.message||"Unexpected CodeBuddy bulk import failure."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}}function D(){return(!globalThis.__codeBuddyBulkImportSingleton&&(globalThis.__codeBuddyBulkImportSingleton={manager:new C}),globalThis.__codeBuddyBulkImportSingleton).manager}},92130:(a,b,c)=>{c.d(b,{rk:()=>d.rk});var d=c(82506)}};
1
+ "use strict";exports.id=891,exports.ids=[891],exports.modules={40891:(a,b,c)=>{c.d(b,{cO:()=>d.cO,ZV:()=>n,cT:()=>m,w8:()=>o,Ol:()=>D,L_:()=>d.$w});var d=c(13868),e=c(92130),f=c(82506);let g="codebuddy",h="CodeBuddy",i=new Set(["codebuddy.ai","www.codebuddy.ai"]),j="personal-edition-user-id";function k(a){return new Promise(b=>setTimeout(b,a))}async function l({tokens:a,email:b}){let{createProviderConnection:d}=await Promise.resolve().then(c.bind(c,71998)),e={...a.providerSpecificData||{},loginEmail:b,automation:"gsuite-bulk"};a.webCookie&&(e.webCookie=a.webCookie,e.webCookieCapturedAt=a.webCookieCapturedAt||new Date().toISOString()),a.generatedApiKey&&(e.codebuddyApiKeyId=a.generatedApiKey.id||null,e.codebuddyApiKeyName=a.generatedApiKey.name||null,e.codebuddyApiKeyExpiresAt=a.generatedApiKey.expiresAt||null,e.authMode="generated-api-key");let f={provider:g,authType:"oauth",...a,email:b,providerSpecificData:e,expiresAt:a.expiresIn?new Date(Date.now()+1e3*a.expiresIn).toISOString():null,testStatus:"active"},h=a.generatedApiKey?.key||a.apiKey;return h&&(f.apiKey=h),{connection:await d(f)}}async function m(a){let{requestDeviceCode:b}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(8590),c.e(8239),c.e(2557),c.e(4586),c.e(773),c.e(4493),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return b(a)}async function n(a,b){let{pollForToken:d}=await Promise.all([c.e(7774),c.e(5433),c.e(5024),c.e(3477),c.e(9609),c.e(6306),c.e(8590),c.e(8239),c.e(2557),c.e(4586),c.e(773),c.e(4493),c.e(5330),c.e(5434),c.e(8895),c.e(4315),c.e(3662)]).then(c.bind(c,74177));return d(a,b)}async function o(a,b,c="www.codebuddy.ai"){if(!a||!b)return null;try{let d=await fetch(`https://${c}/v2/plugin/login/account?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Authorization:`Bearer ${a}`,Accept:"application/json","X-Domain":c}});if(!d.ok)return null;let e=await d.json(),f=e?.data||e||{};if(!f||"object"!=typeof f)return null;return{uid:f.uid||null,nickname:f.nickname||null,email:f.email||null,enterpriseId:f.enterpriseId||null,enterpriseName:f.enterpriseName||null,rawAuth:f}}catch{return null}}async function p(a){if(!a)return null;try{let{getProviderConnections:b}=await Promise.resolve().then(c.bind(c,71998)),d=(await b({provider:g})).find(b=>"oauth"===b.authType&&b.email===a&&b.apiKey);return d?.apiKey||null}catch{return null}}async function q(a){if(!a?.cookies)return console.warn("[CodeBuddy] captureWebCookie: context.cookies not available"),null;try{let b=await a.cookies(["https://www.codebuddy.ai","https://codebuddy.ai"]);console.log(`[CodeBuddy] captureWebCookie: found ${b.length} raw cookies from browser context`);let c=b.filter(a=>{let b=String(a.domain||"").replace(/^\./,"").toLowerCase();return i.has(b)||b.endsWith(".codebuddy.ai")}).filter(a=>a.name&&a.value).sort((a,b)=>String(a.name).localeCompare(String(b.name)));if(0===c.length)return console.warn("[CodeBuddy] captureWebCookie: no useful cookies after filtering. Raw cookie names:",b.map(a=>`${a.name}@${a.domain}`).join(", ")),null;let d=c.map(a=>`${a.name}=${a.value}`).join("; ");return console.log(`[CodeBuddy] captureWebCookie: captured ${c.length} cookies (${d.length} chars). Names: ${c.map(a=>a.name).join(", ")}`),d}catch(a){return console.error("[CodeBuddy] captureWebCookie error:",a.message),null}}async function r(a,b={}){let c=await q(a);return c?{...b,webCookie:c,webCookieCapturedAt:new Date().toISOString()}:b}async function s(a,b,{method:c="POST",headers:d={},referrer:e,body:f}={}){return a.evaluate(async({url:a,method:b,headers:c,referrer:d,body:e})=>{let f=await fetch(a,{method:b,credentials:"include",headers:c,referrer:d,body:null==e?null:JSON.stringify(e)}),g=await f.text().catch(()=>""),h=null;try{h=g?JSON.parse(g):null}catch{h={raw:g}}return{ok:f.ok,status:f.status,payload:h,text:g}},{url:b,method:c,headers:d,referrer:e,body:f})}async function t(a,b){b?.("submitting_codebuddy_region_profile","Submitting CodeBuddy region profile via account API");let c=await s(a,"https://www.codebuddy.ai/console/login/account",{method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/register/user/complete",body:{attributes:{countryCode:["62"],countryFullName:["Indonesia"],countryName:["ID"]}}});return c.ok&&(c.payload?.code===0||c.payload?.code===200||void 0===c.payload?.code)?{ok:!0,code:c.payload?.code??0,message:c.payload?.msg||c.payload?.message||"OK"}:{ok:!1,code:c.payload?.code??c.status,message:c.payload?.msg||c.payload?.message||c.text||`HTTP ${c.status}`}}async function u(a,b){b?.("activating_codebuddy_trial","Applying or verifying CodeBuddy IDE trial");let c=()=>s(a,"https://www.codebuddy.ai/billing/ide/trial",{method:"POST",headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-domain":"www.codebuddy.ai"},referrer:"https://www.codebuddy.ai/profile/plan",body:null}),d=await c(),e=d?.payload?.code;if(d.ok&&14051===e)return{ok:!0,code:e,state:"already_applied",message:d.payload?.msg||"has applied trial"};if(d.ok&&(0===e||200===e||void 0===e)){await k(1200);let a=await c(),b=a?.payload?.code;return a.ok&&(0===b||200===b||14051===b||void 0===b)?{ok:!0,code:b??e??0,state:14051===b?"applied_confirmed":"applied",message:a.payload?.msg||d.payload?.msg||"OK"}:{ok:!1,code:b??a.status,message:a.payload?.msg||a.payload?.message||a.text||`HTTP ${a.status}`}}return{ok:!1,code:e??d.status,message:d.payload?.msg||d.payload?.message||d.text||`HTTP ${d.status}`}}async function v(a,b,c=45e3){let d=Date.now(),e=null;for(;Date.now()-d<c;){let c=await a.evaluate(async()=>{try{let a=await fetch("/console/accounts",{method:"GET",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","x-requested-with":"XMLHttpRequest","X-Domain":window.location.hostname||"www.codebuddy.ai"}}),b=await a.text(),c=null;try{c=b?JSON.parse(b):null}catch{c=null}let d=c?.data?.accounts||c?.accounts||[];return{ok:a.ok,status:a.status,payload:c,accounts:d}}catch(a){return{ok:!1,status:0,error:a?.message||String(a)}}});if(c?.ok&&Array.isArray(c.accounts)&&c.accounts.length>0){let a=c.accounts.find(a=>a?.lastLogin)||c.accounts[0]||{};return{account:a,userEnterpriseId:a.type&&"personal"!==a.type&&a.enterpriseId?a.enterpriseId:j}}e=c?.error||`status=${c?.status||"unknown"}`,b?.("waiting_codebuddy_key_session",`Waiting for CodeBuddy web console session (${e})`),await a.waitForTimeout(1500)}let f=Error(`CodeBuddy key session invalid: ${e||"no account session"}`);throw f.step="key_session_invalid",f.status="needs_manual",f}async function w(a,b,c){return a.evaluate(async({endpoint:a,name:b,expireInDays:c,userEnterpriseId:d})=>{let e=await fetch(a,{method:"POST",mode:"cors",credentials:"include",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify({name:b,expire_in_days:c,user_enterprise_id:d})}),f=await e.text(),g=null;try{g=f?JSON.parse(f):null}catch{g=null}return{ok:e.ok,status:e.status,payload:g,text:g?null:f.slice(0,300)}},{endpoint:"https://www.codebuddy.ai/console/api/client/v1/api-keys",name:b,expireInDays:365,userEnterpriseId:c})}async function x(a,b,c,{existingApiKey:d=null,directReplay:e=!1,userEnterpriseId:f=null}={}){let g,h;if(d)return{skipped:!0,key:d};if(!a){let a=Error("CodeBuddy browser session is not available for API key creation");throw a.step="key_session_invalid",a.status="needs_manual",a}let i=f||j;e?c?.("creating_codebuddy_api_key_direct","Replaying CodeBuddy API key creation from current web session"):(c?.("opening_codebuddy_keys","Opening CodeBuddy Access Keys page"),await a.goto("https://www.codebuddy.ai/profile/keys",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(2e3),i=(await v(a,c)).userEnterpriseId||i);let k=(g=String(b||"codebuddy").replace(/[^a-zA-Z0-9_.@-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"codebuddy",h=new Date().toISOString().replace(/[-:.TZ]/g,"").slice(0,14),`zevairouter-${g}-${h}`.slice(0,50)),l=[k,`${k.slice(0,41)}-${Math.random().toString(36).slice(2,8)}`.slice(0,50)],m=null;for(let b=0;b<l.length;b+=1){let d=l[b];c?.("creating_codebuddy_api_key",`Creating CodeBuddy API key${b?" with retry name":""}`);let e=await w(a,d,i);if(e?.ok&&(e.payload?.code===0||e.payload?.code===200||e.payload?.code===void 0)){let a=function(a,b){let c=a?.data||a||{},d=c.key||c.api_key||c.apiKey;if(!d)return null;let e=c.item||c.apiKeyItem||c;return{key:d,id:e?.key_id||e?.id||e?.keyId||null,name:e?.name||c.name||b,expiresAt:c.expires_at||c.expiresAt||e?.expires_at||e?.expiresAt||null,createdAt:e?.created_at||e?.createdAt||null}}(e.payload,d);if(a?.key)return a;let b=Error("CodeBuddy API key created but secret was not returned");throw b.step="key_create_no_secret",b.status="failed",b}let f=function(a,b){let c=b?.code??b?.error?.code??b?.data?.code,d=b?.msg||b?.message||b?.error?.message||b?.error||`HTTP ${a}`;return 401===a||403===a?{step:"key_session_invalid",status:"needs_manual",message:`CodeBuddy key session invalid (${a})`,retryable:!1}:12601===c?{step:"key_limit_reached",status:"failed",message:"CodeBuddy API key limit reached",retryable:!1}:12502===c?{step:"key_name_exists",status:"failed",message:"CodeBuddy API key name already exists",retryable:!0}:{step:"key_create_failed",status:"failed",message:d||"CodeBuddy API key creation failed",retryable:!1}}(e?.status,e?.payload||{message:e?.text});if(m=f,f.retryable&&0===b)continue;let g=Error(f.message);throw g.step=f.step,g.status=f.status,g}let n=Error(m?.message||"CodeBuddy API key creation failed");throw n.step=m?.step||"key_create_failed",n.status=m?.status||"failed",n}async function y(a,b){let c=(a,c)=>b?.(a,c);try{c("navigating_to_dashboard","Navigating to CodeBuddy to complete registration"),await a.goto("https://www.codebuddy.ai/home",{waitUntil:"domcontentloaded",timeout:3e4}),await a.waitForTimeout(3e3);let b=Date.now(),d=!1;for(;Date.now()-b<3e4&&(0,f.Jl)(a);){if(await (0,f.i_)(a,c)||await (0,f.np)(a,c)||await (0,f.$K)(a,c,h)){d=!0,await a.waitForTimeout(1500);continue}break}d&&c("complete_register_done","CodeBuddy registration completed, establishing session"),c("codebuddy_registration_ready","CodeBuddy registration flow is ready for API key creation")}catch(a){c("complete_register_skipped",`Could not complete registration: ${a.message}`)}}async function z({manager:a,job:b,account:c,context:d,page:e,tokens:f,email:g,createOptions:h={}}){let i=f||{};if(e){let d=await t(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyRegionSubmitOk:d.ok,codebuddyRegionSubmitCode:d.code??null,codebuddyRegionSubmitMessage:d.message||null}};let f=await u(e,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})});if(!f.ok){let a=Error(f.message||"CodeBuddy IDE trial activation failed");throw a.step="trial_not_activated",a.status="trial_not_activated",a}i={...i,providerSpecificData:{...i.providerSpecificData||{},codebuddyTrialState:f.state||null,codebuddyTrialCode:f.code??null,codebuddyTrialMessage:f.message||null}}}a.setAccountStep(c,"creating_codebuddy_api_key","Generating CodeBuddy Access Key"),await a.persistJobSnapshot(b,{forcePreview:!0});let j=i.apiKey||i.generatedApiKey?.key||await a.findExistingApiKey(g),k=j?{skipped:!0,key:j}:await a.createApiKey(e,g,(d,e)=>{a.setAccountStep(c,d,e),a.persistJobSnapshot(b,{forcePreview:!1})},{existingApiKey:j,...h});a.setAccountStep(c,"saving_connection","Saving CodeBuddy connection with generated API key"),await a.persistJobSnapshot(b,{forcePreview:!0});let l=await r(d,{...i,...j?{apiKey:j}:{},...k?.skipped?{}:{generatedApiKey:k}}),{connection:m}=await a.saveConnection({tokens:l,email:g});return a.finalizeAccount(c,"success",{connectionId:m.id,step:"connection_saved",message:k?.skipped?"CodeBuddy connection already has an API key":"CodeBuddy connection saved with generated API key"}),{connection:m,generatedApiKey:k}}async function A(a,b=500){if(!a)return{};try{let c=await Promise.race([a,k(b).then(()=>null)]);return c?.tokens||{}}catch{return{}}}async function B({manager:a,job:b,account:c,context:d,page:e,successPromise:f,reason:g}){a.setAccountStep(c,"restricted_key_replay","Restricted page detected; replaying CodeBuddy Access Key creation from web session"),await a.persistJobSnapshot(b,{forcePreview:!0});let h=await A(f);return z({manager:a,job:b,account:c,context:d,page:e,tokens:{...h,providerSpecificData:{...h.providerSpecificData||{},restrictedDetected:!0,restrictedReason:g||"Account restricted page detected during automation",oauthTokenCaptured:!!h.accessToken}},email:c.email,createOptions:{directReplay:!0,userEnterpriseId:j}})}class C extends d.Q6{constructor({browserLauncher:a,googleAutomation:b=e.rk,requestDeviceCodeFn:c=m,pollToken:d=n,saveConnection:f=l,createApiKeyFn:g=x,findExistingApiKeyFn:h=p,fetchLoginAccountFn:i=o,pollIntervalMs:j=5e3}={}){super({browserLauncher:a,googleAutomation:b,storageName:"codebuddy-bulk-import"}),this.requestDeviceCode=c,this.pollToken=d,this.saveConnection=f,this.createApiKey=g,this.findExistingApiKey=h,this.fetchLoginAccount=i,this.pollIntervalMs=j}async runManualFollowup(a,b,c,d,e){let f=(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 f=b.manualSession?.page;f&&(this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})})),await z({manager:this,job:a,account:b,context:b.manualSession?.context||d,page:f||b.manualSession?.page,tokens:c.tokens,email:b.email}),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,c.status||"failed_exchange",{error:c.message||"Manual assist flow failed during token polling.",step:c.step||"exchange_failed",message:c.message||"Manual assist flow failed during token polling."}),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{await c(),b.manualSession=null,b.runtimeSession=null,a.manualFollowups.delete(f),await this.persistJobSnapshot(a,{forcePreview:!0})}})();a.manualFollowups.add(f)}async processAccount(a,b,c){if(a.cancelRequested||!a.browser)return void this.finalizeAccount(b,"cancelled",{error:"Job cancelled"});let{context:e,page:f}=await (0,d.go)(a.browser,b.proxyUrl);b.runtimeSession={context:e,page:f};try{this.setAccountStep(b,"preparing_worker",`Worker ${c} is preparing a browser context`),await this.persistJobSnapshot(a,{forcePreview:!0}),this.setAccountStep(b,"requesting_codebuddy_state","Requesting CodeBuddy OAuth state");let d=await this.requestDeviceCode(g),i=function(a,b){if(!a&&!b)return a;let c=new URL(a||"https://www.codebuddy.ai/login"),d=c.searchParams.get("platform")||"CLI",e=b||c.searchParams.get("state"),f=new URL("https://www.codebuddy.ai/login");return f.searchParams.set("platform",d),e&&f.searchParams.set("state",e),f.toString()}(d.verification_uri,d.device_code);if(!i||!d.device_code)throw Error("CodeBuddy did not return an OAuth login URL");let j=function({deviceCode:a,pollToken:b,onStep:c,fetchLoginAccount:d=o,timeoutMs:e=9e5,pollIntervalMs:f=5e3,maxTransientErrors:h=6,providerId:i=g,domain:j="www.codebuddy.ai"}){return(async()=>{let g=Date.now(),l=0,m=0;for(;Date.now()-g<e;){Date.now()-l>f-100&&(c?.("polling_codebuddy_token","Waiting for CodeBuddy OAuth token"),l=Date.now());let e=await b(i,a);if(e.success){let b=e.tokens?.accessToken||e.tokens?.access_token,c=await d(b,a,j);return{tokens:{...e.tokens,providerSpecificData:{...e.tokens?.providerSpecificData||{},...c?.uid?{uid:c.uid}:{},...c?.nickname?{nickname:c.nickname}:{},...c?.enterpriseId?{enterpriseId:c.enterpriseId}:{},...c?.enterpriseName?{enterpriseName:c.enterpriseName}:{},...c?.rawAuth?{rawAuth:c.rawAuth}:{},domain:j,oauthState:a}}}}if(!e.pending&&"authorization_pending"!==e.error&&"slow_down"!==e.error){if("request_failed"===e.error&&m<h){m+=1,c?.("codebuddy_poll_retry",`CodeBuddy token poll failed temporarily (${m}/${h}); retrying`),await k(f);continue}throw Error(e.errorDescription||e.error||"CodeBuddy OAuth polling failed")}await k(f)}throw Error("Timed out waiting for CodeBuddy OAuth token")})()}({deviceCode:d.device_code,pollToken:this.pollToken,fetchLoginAccount:this.fetchLoginAccount,pollIntervalMs:this.pollIntervalMs,onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});j.catch(()=>null);let l=await this.googleAutomation({page:f,authUrl:i,email:b.email,password:b.password,successPromise:j,serviceLabel:h,openingStep:"opening_codebuddy_oauth",openingMessage:"Opening CodeBuddy OAuth page",successStep:"codebuddy_token_received",successMessage:"CodeBuddy OAuth token received",onStep:(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})}});if("success"===l.status){this.setAccountStep(b,"completing_registration","Completing CodeBuddy registration"),await this.persistJobSnapshot(a,{forcePreview:!0}),await y(f,(c,d)=>{this.setAccountStep(b,c,d),this.persistJobSnapshot(a,{forcePreview:!1})});let{connection:c}=await z({manager:this,job:a,account:b,context:e,page:f,tokens:l.tokens,email:b.email});b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("failed_restricted"===l.status){await B({manager:this,job:a,account:b,context:e,page:f,successPromise:j,reason:l.error}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0});return}if("needs_manual"===l.status){b.manualSession={context:e,page:f,opened:!1,openedAt:null},this.setAccountStep(b,"awaiting_manual","Waiting for manual completion in the browser session"),this.finalizeAccount(b,"needs_manual",{error:l.error,step:"awaiting_manual",message:l.error}),await this.persistJobSnapshot(a,{forcePreview:!0}),await this.runManualFollowup(a,b,c,e,j);return}this.finalizeAccount(b,l.status||"failed",{error:l.error||"CodeBuddy Google automation failed.",step:l.status||"failed",message:l.error||"CodeBuddy Google automation failed."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}catch(c){a.cancelRequested?this.finalizeAccount(b,"cancelled",{error:"Job cancelled",step:"cancelled",message:"Job cancelled while CodeBuddy automation was running"}):this.finalizeAccount(b,c.status||"failed",{error:c.message||"Unexpected CodeBuddy bulk import failure.",step:c.step||"failed",message:c.message||"Unexpected CodeBuddy bulk import failure."}),b.runtimeSession=null,await e.close().catch(()=>null),await this.persistJobSnapshot(a,{forcePreview:!0})}finally{b.password=void 0}}}function D(){return(!globalThis.__codeBuddyBulkImportSingleton&&(globalThis.__codeBuddyBulkImportSingleton={manager:new C}),globalThis.__codeBuddyBulkImportSingleton).manager}},92130:(a,b,c)=>{c.d(b,{rk:()=>d.rk});var d=c(82506)}};
@@ -1 +1 @@
1
- "use strict";exports.id=9489,exports.ids=[9489],exports.modules={3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(83477);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},7444:(a,b,c)=>{c.d(b,{m:()=>e});let d=Object.freeze({kiroIntegrity:"ZEVAI_V11_KIRO_INTEGRITY",outboundPolicy:"ZEVAI_V11_OUTBOUND_POLICY",compatV11:"ZEVAI_V11_COMPAT",refreshLanes:"ZEVAI_V11_REFRESH_LANES",adaptiveShadow:"ZEVAI_V11_ADAPTIVE_SHADOW",adaptiveRoute:"ZEVAI_V11_ADAPTIVE_ROUTE",registryV2:"ZEVAI_V11_REGISTRY_V2",quotaStreamV2:"ZEVAI_V11_QUOTA_STREAM_V2"});function e(a={},b=process.env){let c=a?.v11Flags&&"object"==typeof a.v11Flags?a.v11Flags:{};return Object.freeze(Object.fromEntries(Object.entries(d).map(([a,d])=>{var e;return[a,("true"===(e=b?.[d])||"1"===e||"false"!==e&&"0"!==e&&null)??!0===c[a]]})))}},7912:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(93930);let e=Object.freeze({health:35,priority:20,quota:20,latency:15,stability:10}),f=Object.freeze({healthy:1,degraded:.25,probing:.4,unhealthy:0});function g(a){return Math.min(1,Math.max(0,a))}function h(a,b,c=!1){if(!Number.isFinite(a))return .5;let d=Number(b?.min),e=Number(b?.max);if(!Number.isFinite(d)||!Number.isFinite(e)||e<=d)return .5;let f=g((a-d)/(e-d));return c?1-f:f}function i({candidates:a=[],legacyCandidateId:b=null,flags:c={},providerActivation:j=!1,context:k={}}={}){let l=function(a=[],b={}){return a.map(a=>{let c=(0,d.Z)(a,b);return c.eligible?Object.freeze({candidate:a,eligibility:c,score:function(a={},b={}){var c;if(!1===(a.eligibility||b.eligibility||(0,d.Z)(a,b)).eligible)return null;let i=Object.freeze({health:Number.isFinite(c=a.health)?g(c):f[c]??.5,priority:h(a.priority,b.priorityRange,!0),quota:function(a){if(!a||"object"!=typeof a)return .5;let b=Number(a.remaining),c=Number(a.total);return Number.isFinite(b)&&Number.isFinite(c)&&!(c<=0)?g(b/c):.5}(a.quota),latency:h(a.latency,b.latencyRange,!0),stability:!0===a.sticky?1:.5}),j=Object.entries(e).reduce((a,[b,c])=>a+i[b]*c,0);return Object.freeze({total:Math.round(1e3*(100*g(("degraded"===a.health?Math.min(j,e.health-.001):j)/100)))/1e3,components:i})}(a,{...b,eligibility:c})}):null}).filter(Boolean).sort((a,b)=>b.score.total-a.score.total||Number(a.candidate.legacyOrder||0)-Number(b.candidate.legacyOrder||0)||String(a.candidate.id||"").localeCompare(String(b.candidate.id||"")))}(a,k),m=Object.freeze(l.map(({candidate:a,score:b})=>Object.freeze({id:a.id,score:b.total,components:b.components}))),n=k.pinnedConnectionId&&a.find(a=>a.id===k.pinnedConnectionId)||a.find(a=>a.id===b)||l[0]?.candidate||null,o=l[0]?.candidate||n,p=!0===c.adaptiveRoute&&!0===j&&!!o,q=!p&&!0===c.adaptiveShadow;return Object.freeze({mode:p?"active":q?"shadow":"legacy",selected:p?o:n,legacyCandidateId:n?.id||null,adaptiveCandidateId:o?.id||null,ranked:m})}},14262:(a,b,c)=>{function d(a){let b=String(a||"").trim();if(!b)return"";let c=b.replace(/\/+$/,"");return c.endsWith("/v1")?c:`${c}/v1`}function e(a){let b=String(a||"").trim();return b?"auto-codex"===b||b.startsWith("router/")||b.startsWith("original/")||b.startsWith("account/")||b.startsWith("codex-account/")?b:b.startsWith("codex/")?`cx/${b.slice(6)}`:b.includes("/")?b:b.startsWith("gpt-")||/^o[134]/i.test(b)?`cx/${b}`:b:"cx/gpt-5.6-sol"}function f(a){let b=e(a);return b.startsWith("cx/")?b.slice(3):b}function g(a,b){return"codex"===b?e(a):a}c.d(b,{Fq:()=>f,Ow:()=>e,eR:()=>g,tb:()=>d})},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>k,vB:()=>h});var d=c(66306);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){let c=b?.capacityAdapter?.[a];if(!c)return{enabled:!1,roundRobin:!1,models:[]};if(Array.isArray(c)){let a=c.filter(a=>a&&!1!==a.enabled&&"string"==typeof a.model).map(a=>a.model);return{enabled:a.length>0,roundRobin:!1,models:a}}let d=Array.isArray(c.models)?c.models.filter(a=>"string"==typeof a&&a.trim()):[];return{enabled:!0===c.enabled&&d.length>0,roundRobin:!0===c.roundRobin,models:d}}function h(a,b){for(let c of e){if(!a||!a.has?.(c))continue;let{enabled:d}=g(c,b);if(d)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c="string"==typeof a?a.indexOf("/"):-1,e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.nl)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a,b){let c=new Set(b||[]);return 0===c.size?a:(b,e,...f)=>{if(!c.has(e))return a(b,e,...f);let g="string"==typeof e?e.indexOf("/"):-1,h=g>0?e.slice(0,g):"",i=g>0?e.slice(g+1):e,j=(0,d.nl)(h,i);return a(function(a,b){if(!a||"object"!=typeof a||!Array.isArray(a.messages)||!Number.isFinite(b)||b<=0)return a;let c=a.messages;if(c.length<=7)return a;let d=Math.floor(.8*b*4),e=a=>{try{return JSON.stringify(a).length}catch{return 0}};if(c.reduce((a,b)=>a+e(b),0)<=d)return a;let f=c.slice(0,6),g=[c[c.length-1]],h=[...f,...g].reduce((a,b)=>a+e(b),0),i=[];for(let a=c.length-2;a>=6;a--){let b=e(c[a]);if(h+b>d)break;h+=b,i.unshift(c[a])}return{...a,messages:[...f,...i,...g]}}(b,j?.contextWindow),e,...f)}}},29240:(a,b,c)=>{function d(a){let b="string"==typeof a?a.trim():"";return b.startsWith("models/")?b.slice(7):b}function e(a){let b=a?.headers?.get?.("Authorization");return b?.startsWith("Bearer ")?b.slice(7):a?.headers?.get?.("x-api-key")||null}function f(a,b){if(!b)return!0;if(!0!==b.active)return!1;let c=Array.isArray(b.allowedModels)?b.allowedModels:[];if(0===c.length)return!0;let e=d(a);return c.some(a=>d(a)===e)}function g(a,b,c=new Map){if(!b)return[...a];let e=new Set(Array.isArray(b.allowedConnectionIds)?b.allowedConnectionIds:[]);return a.filter(a=>!!f(a?.id,b)&&(0===e.size||(c.get(d(a?.id))||c.get(a?.id)||[]).some(a=>e.has(a))))}c.d(b,{Dw:()=>g,GJ:()=>f,MZ:()=>e})},35893:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(79761);let e=new Set(["STREAM_FIRST_CHUNK_TIMEOUT","STREAM_STALL_TIMEOUT","STREAM_CONNECT_TIMEOUT","STREAM_ABSOLUTE_TIMEOUT","STREAM_MISSING_TERMINAL","KIRO_STREAM_PROTOCOL_ERROR","AWS_EVENTSTREAM_PRELUDE_CRC_MISMATCH","AWS_EVENTSTREAM_MESSAGE_CRC_MISMATCH","AWS_EVENTSTREAM_INVALID_LENGTH","AWS_EVENTSTREAM_MESSAGE_TOO_LARGE","AWS_EVENTSTREAM_INVALID_HEADERS","AWS_EVENTSTREAM_UNSUPPORTED_HEADER_TYPE","AWS_EVENTSTREAM_DECODER_FINISHED","KIRO_STREAM_MISSING_TERMINAL","KIRO_STREAM_TRUNCATED","KIRO_STREAM_INVALID_TOOL_CALL","KIRO_STREAM_TRANSPORT_READ_FAILED","KIRO_VERIFIED_SPOOL_LIMIT","KIRO_VERIFIED_SPOOL_FAILED"]),f=Object.freeze({account_auth:"account",account_quota:"account",authentication:"account",credential_rejected:"account",reauth_required:"account",policy_suspended:"account",account_validation_required:"account",entitlement_or_quota:"account",rate_limited:"account",provider_transient:"provider",upstream_transient:"provider",shared_egress:"egress",shared_egress_waf:"egress",protocol_corruption:"integrity",upstream_protocol:"integrity"});function g({connectionId:a,connectionName:b,provider:c,model:h,markUnavailable:i,selectedConnection:j,logger:k,egressId:l="direct",recordCircuitFailure:m=d.hb}){let n=!1;return async(d={})=>{if(n)return{duplicate:!0};n=!0;let g=d.failureMetadata?.providerErrorCode,o=d.failureMetadata?.failureClass,p=f[o];if(p)try{await m({scope:p,provider:c,model:h,accountId:a,egressId:l,failureClass:o,providerErrorCode:g})}catch(a){k?.warn?.("CIRCUIT",`Failed to record scoped circuit evidence: ${a?.message||a}`)}if(e.has(g)){let a="STREAM_CONNECT_TIMEOUT"===g;return k?.info?.("STREAM",`${g} left account health unchanged for ${c}/${h}`),{shouldFallback:a,cooldownMs:0,accountUnaffected:!0}}let q=Number.isInteger(d.status)?d.status:502,r=[a,q,d.errorText||d.message||"Provider stream failed",c,h,d.resetsAtMs||null];d.failureMetadata&&"object"==typeof d.failureMetadata&&r.push(d.failureMetadata),j&&(6===r.length&&r.push(null),r.push(j));let s=await i(...r);return s?.shouldFallback&&k?.warn?.("AUTH",`Account ${b||a||"unknown"} unavailable after stream failure (${q})`),s}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(3359),g=c(32693);let h={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function i(a){let b,c=(0,g.kP)(a),j=(0,f.s9)(c);if(j)return{...await i(j.modelString),gateway:{mode:j.mode,accountRef:j.accountRef||null,strictAccount:!!j.strictAccount,requestedModel:a,modelString:(0,g.kP)(j.modelString)}};let k=(b=(0,e.Xh)(c),b?.providerAlias&&h[b.providerAlias]?{...b,provider:h[b.providerAlias]}:b);if(!k.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===k.providerAlias);if(a)return{provider:a.id,model:k.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===k.providerAlias);if(b)return{provider:b.id,model:k.model};let c=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===k.providerAlias);return c?{provider:c.id,model:k.model}:{provider:k.provider,model:k.model}}return await (0,d.Dj)(k.model)?{provider:null,model:k.model}:(0,e.js)(c,d.getModelAliases)}async function j(a){if((a=(0,g.kP)(a)).includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},49216:(a,b,c)=>{c.d(b,{P2:()=>f});let d=new Map(Object.freeze(["admitted","acquired","upstream_open","semantic_commit","terminal","finalized"]).map((a,b)=>[a,b]));function e(a={}){return Object.freeze({...a})}function f(a={}){let b=Number(a.maxAttempts),c=Number.isInteger(b)&&b>0?b:3,g=0;return Object.freeze({get maxAttempts(){return c},get attemptsUsed(){return g},get remaining(){return Math.max(0,c-g)},acquire:(a={})=>g>=c?null:(g+=1,function(a={}){let b,c="admitted",f=!1,g=null,h=!1,i="function"==typeof a.finalize?a.finalize:async()=>{},j=Object.freeze({id:a.candidate?.id||null,provider:a.candidate?.provider||null,egressId:a.candidate?.egressId||null}),k={id:a.id||null,attemptIndex:Number(a.attemptIndex)||1,candidate:j,get state(){return c},get terminal(){return g},get finalizationResult(){return b},get semanticCommitted(){return f},transition(a){if(h||!d.has(a))return!1;let b=d.get(c);return d.get(a)===b+1&&"terminal"!==a&&"finalized"!==a&&(c=a,"semantic_commit"===a&&(f=!0),!0)},acceptTerminal:a=>!h&&!g&&"finalized"!==c&&(g=e(a),c="terminal",!0),finish:async a=>!h&&(h=!0,g||(g=e(a)),c="finalized",b=await i(g,k),!0)};return Object.freeze(k)}({...a,id:a.id||`attempt-${g}`,attemptIndex:g})),grantReplacement(a=1){let b=Number(a),d=Number.isInteger(b)&&b>0?b:0;return c+=d,d}})}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>J,P:()=>I});var e=c(48895),f=c(80238),g=c(90982),h=c(89718),i=c(29240),j=c(38775),k=c(92500),l=c(43659),m=c(18910),n=c(17603),o=c(27349),p=c(41004),q=c(14170),r=c(7803),s=c(58136),t=c(38160),u=c(3359),v=c(35893),w=c(324),x=c(14262),y=c(54603),z=c(49216),A=c(7912),B=c(75434),C=c(79761),D=c(7444),E=a([e,k]);[e,k]=E.then?(await E)():E;let M=new Set(["account_auth","account_quota","authentication","credential_rejected","reauth_required","policy_suspended","account_validation_required","entitlement_or_quota","permission_denied","rate_limited"]);function F(a){return(0,B.cN)(a)}function G(a,b){let c=Object.entries(a?.circuits||{}).find(([,a])=>a?.probeAcquired===!0&&a?.probeLeaseId);if(!c)return null;let[d,e]=c;return{dimensions:"account"===d?{scope:d,provider:a.provider,accountId:a.id}:"provider"===d?{scope:d,provider:a.provider}:"egress"===d?{scope:d,egressId:a.egressId}:{scope:d,provider:a.provider,model:b,egressId:a.egressId},leaseId:e.probeLeaseId}}async function H(a){let b=a?.headers?.get("x-zevai-connection-id")||null;if(!b)return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,y.Xj)("zevai-cli-auth")?b:null}async function I(a,b=null){let d;try{d=await a.json()}catch{return r.warn("CHAT","Invalid JSON body"),(0,l.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}if(!d||"object"!=typeof d||Array.isArray(d))return(0,l.yj)(p.gx.BAD_REQUEST,"Request body must be a JSON object");if(void 0!==d.model&&"string"!=typeof d.model)return(0,l.yj)(p.gx.BAD_REQUEST,"Field 'model' must be a string");if(void 0!==d.messages&&!Array.isArray(d.messages))return(0,l.yj)(p.gx.BAD_REQUEST,"Field 'messages' must be an array");b||(b={endpoint:new URL(a.url).pathname,body:d,headers:Object.fromEntries(a.headers.entries())});let e=d.model,g=Object.fromEntries(a.headers.entries()),k=(0,w.J)(g,d),q=(0,x.eR)(e,k);e&&q!==e&&r.info("ROUTING",`Codex CLI ${e} → ${q}`);let s=a.headers.get("Authorization"),t=(0,f.Tr)(a);if(s&&t){let a=r.maskKey(t);r.debug("AUTH",`API Key: ${a}`)}else r.debug("AUTH","No API key provided (local mode)");let u=await (0,h.mt)(),v=t?await (0,h.uH)(t):null;if(u.requireApiKey){if(!t)return r.warn("AUTH","Missing API key (requireApiKey=true)"),(0,l.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(t))return r.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,l.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(t){let{checkApiKeyBudget:a}=await Promise.resolve().then(c.bind(c,93999)),b=await a(t);if(!b.allowed)return r.warn("BUDGET",`Blocked: ${b.reason}`),(0,l.yj)(b.error?p.gx.SERVICE_UNAVAILABLE:p.gx.PAYMENT_REQUIRED,b.reason||"Budget exceeded")}if(!e)return r.warn("CHAT","Missing model"),(0,l.yj)(p.gx.BAD_REQUEST,"Missing model");if(!(0,i.GJ)(e,v))return(0,l.yj)(p.gx.FORBIDDEN,`Model ${e} is not allowed for this API key`);let y=null;if(t){let{admitApiKeyRequest:a}=await Promise.resolve().then(c.bind(c,93999));if(!(y=await a(t)).allowed){let a=y.retryAfter?{"Retry-After":String(y.retryAfter)}:void 0;return new Response(JSON.stringify({error:{message:y.reason}}),{status:y.status||429,headers:{"Content-Type":"application/json",...a}})}}let z=a=>J(a,y?.release,y?.touch);q!==e&&(d={...d,model:q});try{let{responseCache:e,isCacheableRequest:f}=await c.e(5236).then(c.bind(c,45236)),g=!0===u.responseCacheEnabled?f(d,a.headers):{cacheable:!1,reason:"disabled"},h=null;if(g.cacheable){let a=(h=e.buildKey(d,t||"local"))?e.get(h):null;if(a)return r.info("CACHE",`HIT ${q} | age=${Math.round((Date.now()-a.storedAt)/1e3)}s | hits=${a.hits}`),z(new Response(JSON.stringify(a.body),{status:a.status,headers:{"Content-Type":"application/json","X-ZevAI-Cache":"HIT","X-ZevAI-Cache-Age":String(Math.round((Date.now()-a.storedAt)/1e3))}}));r.debug("CACHE",`MISS ${q} (${g.reason||"new"})`)}let i=a?.headers?.get("user-agent")||"",k=(0,o.c)(d,q,i,!!u.ccFilterNaming);if(k)return z(k.response||k);let l=await (0,j.d_)(q);if(l){let c=u.comboStrategies||{},e=c[q]?.fallbackStrategy||u.comboStrategy||"fallback";if("fusion"===e){r.info("CHAT",`Combo "${q}" with ${l.length} models (strategy: fusion)`);let e=await (0,m.vt)({body:d,models:l,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return L(c,d,f,a,t,v)},log:r,comboName:q,judgeModel:c[q]?.judgeModel,tuning:c[q]?.fusionTuning});return z(await K(e,h,q))}let f=u.comboStickyRoundRobinLimit;r.info("CHAT",`Combo "${q}" with ${l.length} models (strategy: ${e}, sticky: ${f})`);let g=await (0,m.Pr)({body:d,models:l,handleSingleModel:(c,d)=>L(c,d,b,a,t,v),log:r,comboName:q,comboStrategy:e,comboStickyLimit:f});return z(await K(g,h,q))}let p=(0,m.t8)(d),s=(0,n.R8)([q],p,u);if(s.length>1){let c=s.filter(a=>a!==q);r.info("CAPACITY",`[${[...p].join(",")}] ${q} → +${c.length} fallback model(s)`);let e=await (0,m.Pr)({body:d,models:s,handleSingleModel:(0,n.ar)((c,d)=>L(c,d,b,a,t,v),c),log:r,comboName:q,comboStrategy:(0,n.vB)(p,u)});return z(await K(e,h,q))}let w=await L(d,q,b,a,t,v);return z(await K(w,h,q))}catch(a){throw y?.release?.(),a}}function J(a,b,c){if(!b)return a;if(!a?.body||!a.headers.get("content-type")?.includes("text/event-stream"))return b(),a;let d=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:e,value:f}=await d.read();e?(b(),a.close()):(c?.(),a.enqueue(f))}catch(c){b(),a.error(c)}},async cancel(a){b(),await d.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}async function K(a,b,d){if(!b||!a||!a.ok||!(a.headers.get("content-type")||"").includes("application/json"))return a;try{let{responseCache:e,isCacheableResponse:f}=await c.e(5236).then(c.bind(c,45236)),g=await a.clone().json();if(!f(g,a.status))return a;e.set(b,{body:g,status:a.status,model:d}),r.debug("CACHE",`STORE ${d} (key ${b.slice(0,8)}…)`)}catch{}return a}async function L(a,b,d=null,e=null,i=null,n=null){let o=await (0,j.mA)(b);if(!o.provider){let c=await (0,j.d_)(b);if(c){let f=await (0,h.mt)(),g=f.comboStrategies||{},j=g[b]?.fallbackStrategy||f.comboStrategy||"fallback";if("fusion"===j)return r.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let f=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};f={...d,body:c}}return L(a,b,f,e,i,n)},log:r,comboName:b,judgeModel:g[b]?.judgeModel,tuning:g[b]?.fusionTuning});let k=f.comboStickyRoundRobinLimit;return r.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: ${j}, sticky: ${k})`),(0,m.Pr)({body:a,models:c,handleSingleModel:(a,b)=>L(a,b,d,e,i,n),log:r,comboName:b,comboStrategy:j,comboStickyLimit:k})}return r.warn("CHAT","Invalid model format",{model:b}),(0,l.yj)(p.gx.BAD_REQUEST,"Invalid model format")}let{provider:w,model:x}=o,y=o.gateway||null,B="claude"===w||w?.startsWith?.("anthropic-compatible-")?(0,g.J)(d?.headers):null,E=e?.headers?.get("user-agent")||"",I=new Set,J=(0,z.P2)({maxAttempts:3}),K=await (0,h.mt)(),N=(0,D.m)(K),O=`route-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,P=null,Q=null,R=null,S={};i&&(S.apiKey=i),n?.allowedConnectionIds&&(S.allowedConnectionIds=n.allowedConnectionIds);let T=await H(e);if(T&&(S.preferredConnectionId=T,S.strictPreferred=!0),y&&"codex"===w&&("original"===y.mode||"account"===y.mode)){let a=await (0,u.c9)(y);if(!a){let a="account"===y.mode?`account "${y.accountRef}"`:"original Codex account";return r.warn("AUTH",`Codex gateway could not resolve ${a}`),(0,l.yj)(p.gx.NOT_FOUND,`Codex gateway could not resolve ${a}`)}S.preferredConnectionId=a.id,S.strictPreferred=!!y.strictAccount,r.info("ROUTING",`Codex gateway ${y.mode} pinned to ${(0,u.K0)(a)}`)}for(;;){let b;if(0===J.remaining)return R||(0,l.yj)(Q||p.gx.SERVICE_UNAVAILABLE,P||"Upstream attempt budget exhausted");let g=await (0,f.c1)(w,I,x,S);if(g?.modelUnavailable){let a=`${w}/${x}`;return r.warn("AUTH",`No known eligible account supports model: ${a}`),(0,l.yj)(p.gx.NOT_FOUND,`Model ${a} is not available on any known eligible account`)}if(!g||g.allRateLimited){if(g?.allRateLimited){let a=P||g.lastError||"Unavailable",b=Q||Number(g.lastErrorCode)||p.gx.SERVICE_UNAVAILABLE;return r.warn("CHAT",`[${w}/${x}] ${a} (${g.retryAfterHuman})`),(0,l.wO)(b,`[${w}/${x}] ${a}`,g.retryAfter,g.retryAfterHuman)}if(0===I.size)return r.warn("AUTH",`No active credentials for provider: ${w}`),(0,l.yj)(p.gx.NOT_FOUND,`No active credentials for provider: ${w}`);return r.warn("CHAT","No more accounts available",{provider:w}),(0,l.yj)(Q||p.gx.SERVICE_UNAVAILABLE,P||"All accounts unavailable")}let h=null,j=null;if((N.adaptiveShadow||N.adaptiveRoute)&&"function"==typeof f.uT)try{let b=[...(0,m.t8)(a)],c=K.providerStrategies?.[w]?.adaptiveRoute===!0,d=await f.uT(w,x,{...S,operation:"chat",requiredCapabilities:b,acquireCircuitProbes:!0===N.adaptiveRoute&&c}),e=d.filter(a=>!I.has(a.id)),i=(0,A.J)({candidates:e,legacyCandidateId:g.connectionId,flags:N,providerActivation:c,context:{provider:w,model:x,operation:"chat",requiredCapabilities:b,allowedConnectionIds:S.allowedConnectionIds,pinnedConnectionId:S.strictPreferred?S.preferredConnectionId:null,priorityRange:{min:Math.min(...e.map(a=>a.priority).filter(Number.isFinite)),max:Math.max(...e.map(a=>a.priority).filter(Number.isFinite))}}});if("active"===i.mode&&i.selected?.id!==g.connectionId){let a=await (0,f.c1)(w,I,x,{...S,preferredConnectionId:i.selected.id,strictPreferred:!0});!a||a.allRateLimited||a.modelUnavailable||(g=a)}let k=e.find(a=>a.id===g.connectionId);for(let a of((j=G(k,x))&&F({type:"probe",requestTag:O,provider:w,model:x,connectionId:g.connectionId,phase:"open"}),d)){let b=G(a,x);b&&b.leaseId!==j?.leaseId&&(0,C.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}let l=i.ranked.find(a=>a.id===i.adaptiveCandidateId);h={mode:i.mode,candidateCount:e.length,connectionId:g.connectionId,score:l?.score,scoreComponents:l?.components},F({type:"decision",requestTag:O,provider:w,model:x,connectionId:g.connectionId,...h})}catch(a){r.warn("ADAPTIVE",`Planner unavailable for ${w}/${x}; using legacy route (${a?.message||a})`),h={mode:"legacy",candidateCount:0}}try{b=await (0,s.eU)(w,g)}catch(e){let a=e?.permanent===!0;if("kiro"!==w&&!a)throw e;let b=Number.isInteger(e?.status)?e.status:a?p.gx.UNAUTHORIZED:p.gx.BAD_GATEWAY,c="kiro"===w?a?"Kiro rejected the refresh credential.":"Kiro credential refresh failed temporarily.":`${w} refresh token rejected (token invalid); reconnect this account.`,{shouldFallback:d}=await (0,f.vk)(g.connectionId,b,c,w,x,null,{failureClass:a?"reauth_required":"upstream_transient",providerErrorCode:e?.code||null,upstreamRequestId:e?.requestId||null,authLifecycle:{initialStatus:null,refreshAttempted:!0,refreshOutcome:a?"rejected":"transient_failed",retryStatus:null}},..."codebuddy"===w||"codebuddy-cn"===w?[g._connection]:[]);if(d){I.add(g.connectionId),P=c,Q=b,r.warn("AUTH",`${w} refresh failed for ${g.connectionName}; trying fallback`);continue}return(0,l.yj)(b,c)}if("antigravity"===w||"gemini-cli"===w){let a=b.projectId||g.projectId||g.providerSpecificData?.projectId||null;if(a&&(b.projectId=a),!b.projectId){let d=await (0,t.eG)(g.connectionId,b.accessToken,{preferredProjectId:a});if(!d&&"antigravity"===w)try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,71998));for(let b of await a({provider:"antigravity",isActive:!0})||[]){if(b.id===g.connectionId)continue;let a=b.projectId||b.providerSpecificData?.projectId;if(a){d=a;break}}}catch{}d&&(b.projectId=d,(0,s.vN)(g.connectionId,{projectId:d}).catch(()=>{}))}}let n=(K.providerThinking||{})[w]||null,o=null;if(K.pxpipeEnabled)try{let{getTransform:a}=await c.e(4253).then(c.bind(c,24253));o=await a()}catch{o=null}let u=B?{...b,rawHeaders:B}:b,y=(0,v.S)({connectionId:g.connectionId,connectionName:g.connectionName,provider:w,model:x,markUnavailable:f.vk,selectedConnection:"codebuddy"===w||"codebuddy-cn"===w?g._connection:null,egressId:g.providerSpecificData?.connectionProxyPoolId||(g.providerSpecificData?.vercelRelayUrl?"relay":"direct"),logger:r}),z=()=>{let a=!1,b=J.acquire({candidate:{id:g.connectionId,provider:w,egressId:g.providerSpecificData?.connectionProxyPoolId||(g.providerSpecificData?.vercelRelayUrl?"relay":"direct")},async finalize(c){if(F({type:"terminal",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:b?.attemptIndex,failureClass:c.success?void 0:c.failure?.failureMetadata?.failureClass}),!j||a||c.retrying||(a=!0,(0,C.BU)(j.dimensions,{leaseId:j.leaseId,success:!0===c.success}),F({type:"probe",requestTag:O,provider:w,model:x,connectionId:g.connectionId,phase:c.success?"success":"failure"})),c.retrying)return{shouldFallback:!1,cooldownMs:0};if(c.lifecycleHandled)return{shouldFallback:!0===c.shouldFallback,cooldownMs:0};let d=c.failure?.failureMetadata?.failureClass||c.failureClass;return"client_abort"===d||"policy_rejection"===d?{shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}:c.success?(await (0,f.Pt)(g.connectionId,g,x),{shouldFallback:!1,cooldownMs:0}):y(c.failure||c)}});return b?.transition("acquired"),b&&F({type:"attempt_open",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:b.attemptIndex}),b},D=J.attemptsUsed,H=z(),L=await (0,k.wk)({body:{...a,model:`${w}/${x}`},modelInfo:{provider:w,model:x},credentials:u,log:r,clientRawRequest:d,connectionId:g.connectionId,userAgent:E,apiKey:i,ccFilterNaming:!!K.ccFilterNaming,rtkEnabled:!!K.rtkEnabled,headroomEnabled:!!K.headroomEnabled,headroomUrl:K.headroomUrl||"http://localhost:8787",headroomCompressUserMessages:!!K.headroomCompressUserMessages,cavemanEnabled:!!K.cavemanEnabled,cavemanLevel:K.cavemanLevel||"full",ponytailEnabled:!!K.ponytailEnabled,ponytailLevel:K.ponytailLevel||"full",pxpipeEnabled:!!K.pxpipeEnabled,pxpipeMinChars:K.pxpipeMinChars,pxpipeTimeoutMs:K.pxpipeTimeoutMs,pxpipeTransform:o,onPxpipeEvent:async a=>{try{let{appendPxpipeEvent:b}=await c.e(2007).then(c.bind(c,74388));b(a)}catch{}},contextInjectionEnabled:!!K.contextInjectionEnabled,providerThinking:n,signal:e?.signal,attemptBudget:J,attemptLease:H,acquireAttemptLease:z,adaptiveMetadata:h,onAdaptiveLifecycle:a=>F({...a,requestTag:O,provider:w,model:x,connectionId:g.connectionId}),sourceFormatOverride:e?.url?(0,q.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>(0,s.vN)(g.connectionId,{...a,existingProviderSpecificData:g.providerSpecificData,testStatus:"active"}),onRequestSuccess:async(a=H)=>{await a.finish({success:!0})},onStreamFailure:async(a,b=H)=>(await b.finish({success:!1,failure:a}),b.finalizationResult)});if(L.success)return L.response;await H.finish({success:!1,lifecycleHandled:!0===L.lifecycleHandled,shouldFallback:!0===L.shouldFallback,failure:{status:L.status,message:L.error,errorText:L.error,resetsAtMs:L.resetsAtMs,failureMetadata:L.failureMetadata}});let T=H.finalizationResult;if(!0===L.lifecycleHandled?!0===L.shouldFallback:T?.shouldFallback===!0){(function(a){let b=a?.failureMetadata?.failureClass;return b?M.has(b):[401,402,403,429].includes(Number(a?.status))})(L)&&J.grantReplacement(J.attemptsUsed-D),F({type:"failover",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:H.attemptIndex,failureClass:L.failureMetadata?.failureClass,code:L.failureMetadata?.providerErrorCode}),r.warn("FALLBACK",`ACC:${g.connectionName} unavailable (${L.status}) → next account`),I.add(g.connectionId),P=L.error,Q=L.status,R=L.response;continue}return L.response}}d()}catch(a){d(a)}})},90982:(a,b,c)=>{c.d(b,{J:()=>e});let d=new Set(["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"]);function e(a){if(!a||"object"!=typeof a)return{};let b={};for(let[c,e]of Object.entries(a)){let a=c.toLowerCase();d.has(a)&&("string"==typeof e||"number"==typeof e)&&(b[a]=String(e))}return b}}};
1
+ "use strict";exports.id=9489,exports.ids=[9489],exports.modules={3359:(a,b,c)=>{c.d(b,{K0:()=>j,Oh:()=>n,c9:()=>q,lL:()=>r,s9:()=>i});var d=c(89718),e=c(83477);let f="gpt-5.6";function g(a){return String(a||"").trim().replace(/^\/+|\/+$/g,"")}function h(a){let b;return`cx/${(b=g(a)).startsWith("cx/")?b.slice(3):b.startsWith("codex/")?b.slice(6):b||f}`}function i(a){let b=g(a);if(!b)return null;if("auto-codex"===b)return{mode:"router",modelString:`cx/${f}`,strictAccount:!1,label:"Auto Codex"};if(b.startsWith("router/")){let a;return{mode:"router",modelString:(a=g(b.slice(7))||f).includes("/")?a:`cx/${a}`,strictAccount:!1,label:"Router Pool"}}if(b.startsWith("original/"))return{mode:"original",modelString:h(b.slice(9)),strictAccount:!0,label:"Original Codex"};if("original"===b)return{mode:"original",modelString:`cx/${f}`,strictAccount:!0,label:"Original Codex"};let c=b.startsWith("account/")?"account/":b.startsWith("codex-account/")?"codex-account/":null;if(c){let a=b.slice(c.length),d=a.indexOf("/"),e=-1===d?a:a.slice(0,d),g=-1===d?f:a.slice(d+1);return e?{mode:"account",accountRef:e,modelString:h(g),strictAccount:!0,label:"Pinned Codex Account"}:null}return null}function j(a){return a?.displayName||a?.name||a?.email||a?.id||"Codex account"}function k(a){let b=String(j(a)).toLowerCase().replace(/@/g,"-").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"account";return`${b}-${String(a?.id||"").slice(0,8)}`}function l(a){return String(a||"").trim().toLowerCase()}function m(a){let b=a?.providerSpecificData||{};return"GPTJson"===b.importedFrom||String(b.tokenSource||"").startsWith("ChatGPT_team")}async function n(a=5e3){let b=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),c=b.slice(0,a).map(a=>({id:a.id,slug:k(a),label:j(a),email:a.email||null,imported:m(a),priority:a.priority||null})),e=o(b);return{accounts:c,original:e?{id:e.id,slug:k(e),label:j(e),email:e.email||null,imported:m(e),priority:e.priority||null}:null}}function o(a){return Array.isArray(a)&&0!==a.length?a.find(a=>!m(a))||a[0]:null}async function p(a){let b=l(a);if(!b)return null;let c=await (0,d.getProviderConnections)({provider:"codex",isActive:!0}),e=c.find(a=>l(a.id)===b||k(a)===b||l(a.email)===b||l(a.name)===b||l(a.displayName)===b);if(e)return e;let f=c.filter(a=>l(a.id).startsWith(b)||k(a).startsWith(b));return 1===f.length?f[0]:null}async function q(a){if(!a||"original"!==a.mode&&"account"!==a.mode)return null;if("account"===a.mode)return p(a.accountRef);let b=await (0,d.mt)(),c=b.codexGatewayOriginalConnectionId||b.codexOriginalConnectionId||"";if(c){let a=await p(c);if(a)return a}return o(await (0,d.getProviderConnections)({provider:"codex",isActive:!0}))}function r(a=[]){if(!a.some(a=>"codex"===a.provider&&!1!==a.isActive))return[];let b=[{id:"auto-codex",object:"model",owned_by:"zevai-codex-gateway"},...(e.vq.cx||[]).filter(a=>!a.type||"llm"===a.type).map(a=>a.id).flatMap(a=>[{id:`router/${a}`,object:"model",owned_by:"zevai-codex-gateway"},{id:`original/${a}`,object:"model",owned_by:"zevai-codex-gateway"}])];for(let c of a.filter(a=>"codex"===a.provider&&!1!==a.isActive))b.push({id:`account/${k(c)}`,object:"model",owned_by:"zevai-codex-account"});return b}},7444:(a,b,c)=>{c.d(b,{m:()=>e});let d=Object.freeze({kiroIntegrity:"ZEVAI_V11_KIRO_INTEGRITY",outboundPolicy:"ZEVAI_V11_OUTBOUND_POLICY",compatV11:"ZEVAI_V11_COMPAT",refreshLanes:"ZEVAI_V11_REFRESH_LANES",adaptiveShadow:"ZEVAI_V11_ADAPTIVE_SHADOW",adaptiveRoute:"ZEVAI_V11_ADAPTIVE_ROUTE",registryV2:"ZEVAI_V11_REGISTRY_V2",quotaStreamV2:"ZEVAI_V11_QUOTA_STREAM_V2"});function e(a={},b=process.env){let c=a?.v11Flags&&"object"==typeof a.v11Flags?a.v11Flags:{};return Object.freeze(Object.fromEntries(Object.entries(d).map(([a,d])=>{var e;return[a,("true"===(e=b?.[d])||"1"===e||"false"!==e&&"0"!==e&&null)??!0===c[a]]})))}},7912:(a,b,c)=>{c.d(b,{J:()=>i});var d=c(93930);let e=Object.freeze({health:35,priority:20,quota:20,latency:15,stability:10}),f=Object.freeze({healthy:1,degraded:.25,probing:.4,unhealthy:0});function g(a){return Math.min(1,Math.max(0,a))}function h(a,b,c=!1){if(!Number.isFinite(a))return .5;let d=Number(b?.min),e=Number(b?.max);if(!Number.isFinite(d)||!Number.isFinite(e)||e<=d)return .5;let f=g((a-d)/(e-d));return c?1-f:f}function i({candidates:a=[],legacyCandidateId:b=null,flags:c={},providerActivation:j=!1,context:k={}}={}){let l=function(a=[],b={}){return a.map(a=>{let c=(0,d.Z)(a,b);return c.eligible?Object.freeze({candidate:a,eligibility:c,score:function(a={},b={}){var c;if(!1===(a.eligibility||b.eligibility||(0,d.Z)(a,b)).eligible)return null;let i=Object.freeze({health:Number.isFinite(c=a.health)?g(c):f[c]??.5,priority:h(a.priority,b.priorityRange,!0),quota:function(a){if(!a||"object"!=typeof a)return .5;let b=Number(a.remaining),c=Number(a.total);return Number.isFinite(b)&&Number.isFinite(c)&&!(c<=0)?g(b/c):.5}(a.quota),latency:h(a.latency,b.latencyRange,!0),stability:!0===a.sticky?1:.5}),j=Object.entries(e).reduce((a,[b,c])=>a+i[b]*c,0);return Object.freeze({total:Math.round(1e3*(100*g(("degraded"===a.health?Math.min(j,e.health-.001):j)/100)))/1e3,components:i})}(a,{...b,eligibility:c})}):null}).filter(Boolean).sort((a,b)=>b.score.total-a.score.total||Number(a.candidate.legacyOrder||0)-Number(b.candidate.legacyOrder||0)||String(a.candidate.id||"").localeCompare(String(b.candidate.id||"")))}(a,k),m=Object.freeze(l.map(({candidate:a,score:b})=>Object.freeze({id:a.id,score:b.total,components:b.components}))),n=k.pinnedConnectionId&&a.find(a=>a.id===k.pinnedConnectionId)||a.find(a=>a.id===b)||l[0]?.candidate||null,o=l[0]?.candidate||n,p=!0===c.adaptiveRoute&&!0===j&&!!o,q=!p&&!0===c.adaptiveShadow;return Object.freeze({mode:p?"active":q?"shadow":"legacy",selected:p?o:n,legacyCandidateId:n?.id||null,adaptiveCandidateId:o?.id||null,ranked:m})}},14262:(a,b,c)=>{function d(a){let b=String(a||"").trim();if(!b)return"";let c=b.replace(/\/+$/,"");return c.endsWith("/v1")?c:`${c}/v1`}function e(a){let b=String(a||"").trim();return b?"auto-codex"===b||b.startsWith("router/")||b.startsWith("original/")||b.startsWith("account/")||b.startsWith("codex-account/")?b:b.startsWith("codex/")?`cx/${b.slice(6)}`:b.includes("/")?b:b.startsWith("gpt-")||/^o[134]/i.test(b)?`cx/${b}`:b:"cx/gpt-5.6-sol"}function f(a){let b=e(a);return b.startsWith("cx/")?b.slice(3):b}function g(a,b){return"codex"===b?e(a):a}c.d(b,{Fq:()=>f,Ow:()=>e,eR:()=>g,tb:()=>d})},17603:(a,b,c)=>{c.d(b,{R8:()=>j,ar:()=>k,vB:()=>h});var d=c(66306);let e=["vision","pdf","audioInput","videoInput"],f=new Set(e);function g(a,b){let c=b?.capacityAdapter?.[a];if(!c)return{enabled:!1,roundRobin:!1,models:[]};if(Array.isArray(c)){let a=c.filter(a=>a&&!1!==a.enabled&&"string"==typeof a.model).map(a=>a.model);return{enabled:a.length>0,roundRobin:!1,models:a}}let d=Array.isArray(c.models)?c.models.filter(a=>"string"==typeof a&&a.trim()):[];return{enabled:!0===c.enabled&&d.length>0,roundRobin:!0===c.roundRobin,models:d}}function h(a,b){for(let c of e){if(!a||!a.has?.(c))continue;let{enabled:d}=g(c,b);if(d)return function(a,b){let{enabled:c,roundRobin:d}=g(a,b);return c&&d?"round-robin":"fallback"}(c,b)}return"fallback"}function i(a,b){let c="string"==typeof a?a.indexOf("/"):-1,e=c>0?a.slice(0,c):"",f=c>0?a.slice(c+1):a,g=(0,d.nl)(e,f);return b.every(a=>!0===g[a])}function j(a,b,c){let d=[...b||[]].filter(a=>f.has(a));if(0===d.length||!Array.isArray(a)||0===a.length||a.some(a=>i(a,d)))return a;let h=(function(a){let b=new Set,c=[];for(let d of e){let{enabled:e,models:f}=g(d,a);if(e)for(let a of f)b.has(a)||(b.add(a),c.push(a))}return c})(c).filter(b=>!a.includes(b)&&i(b,d));return 0===h.length?a:[...h,...a]}function k(a,b){let c=new Set(b||[]);return 0===c.size?a:(b,e,...f)=>{if(!c.has(e))return a(b,e,...f);let g="string"==typeof e?e.indexOf("/"):-1,h=g>0?e.slice(0,g):"",i=g>0?e.slice(g+1):e,j=(0,d.nl)(h,i);return a(function(a,b){if(!a||"object"!=typeof a||!Array.isArray(a.messages)||!Number.isFinite(b)||b<=0)return a;let c=a.messages;if(c.length<=7)return a;let d=Math.floor(.8*b*4),e=a=>{try{return JSON.stringify(a).length}catch{return 0}};if(c.reduce((a,b)=>a+e(b),0)<=d)return a;let f=c.slice(0,6),g=[c[c.length-1]],h=[...f,...g].reduce((a,b)=>a+e(b),0),i=[];for(let a=c.length-2;a>=6;a--){let b=e(c[a]);if(h+b>d)break;h+=b,i.unshift(c[a])}return{...a,messages:[...f,...i,...g]}}(b,j?.contextWindow),e,...f)}}},29240:(a,b,c)=>{function d(a){let b="string"==typeof a?a.trim():"";return b.startsWith("models/")?b.slice(7):b}function e(a){let b=a?.headers?.get?.("Authorization");return b?.startsWith("Bearer ")?b.slice(7):a?.headers?.get?.("x-api-key")||null}function f(a,b){if(!b)return!0;if(!0!==b.active)return!1;let c=Array.isArray(b.allowedModels)?b.allowedModels:[];if(0===c.length)return!0;let e=d(a);return c.some(a=>d(a)===e)}function g(a,b,c=new Map){if(!b)return[...a];let e=new Set(Array.isArray(b.allowedConnectionIds)?b.allowedConnectionIds:[]);return a.filter(a=>!!f(a?.id,b)&&(0===e.size||(c.get(d(a?.id))||c.get(a?.id)||[]).some(a=>e.has(a))))}c.d(b,{Dw:()=>g,GJ:()=>f,MZ:()=>e})},35893:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(79761);let e=new Set(["STREAM_FIRST_CHUNK_TIMEOUT","STREAM_STALL_TIMEOUT","STREAM_CONNECT_TIMEOUT","STREAM_ABSOLUTE_TIMEOUT","STREAM_MISSING_TERMINAL","KIRO_STREAM_PROTOCOL_ERROR","AWS_EVENTSTREAM_PRELUDE_CRC_MISMATCH","AWS_EVENTSTREAM_MESSAGE_CRC_MISMATCH","AWS_EVENTSTREAM_INVALID_LENGTH","AWS_EVENTSTREAM_MESSAGE_TOO_LARGE","AWS_EVENTSTREAM_INVALID_HEADERS","AWS_EVENTSTREAM_UNSUPPORTED_HEADER_TYPE","AWS_EVENTSTREAM_DECODER_FINISHED","KIRO_STREAM_MISSING_TERMINAL","KIRO_STREAM_TRUNCATED","KIRO_STREAM_INVALID_TOOL_CALL","KIRO_STREAM_TRANSPORT_READ_FAILED","KIRO_VERIFIED_SPOOL_LIMIT","KIRO_VERIFIED_SPOOL_FAILED"]),f=Object.freeze({account_auth:"account",account_quota:"account",authentication:"account",credential_rejected:"account",reauth_required:"account",policy_suspended:"account",account_validation_required:"account",entitlement_or_quota:"account",rate_limited:"account",provider_transient:"provider",upstream_transient:"provider",shared_egress:"egress",shared_egress_waf:"egress",protocol_corruption:"integrity",upstream_protocol:"integrity"});function g({connectionId:a,connectionName:b,provider:c,model:h,markUnavailable:i,selectedConnection:j,logger:k,egressId:l="direct",recordCircuitFailure:m=d.hb}){let n=!1;return async(d={})=>{if(n)return{duplicate:!0};n=!0;let g=d.failureMetadata?.providerErrorCode,o=d.failureMetadata?.failureClass,p=f[o];if(p)try{await m({scope:p,provider:c,model:h,accountId:a,egressId:l,failureClass:o,providerErrorCode:g})}catch(a){k?.warn?.("CIRCUIT",`Failed to record scoped circuit evidence: ${a?.message||a}`)}if(e.has(g)){let a="STREAM_CONNECT_TIMEOUT"===g;return k?.info?.("STREAM",`${g} left account health unchanged for ${c}/${h}`),{shouldFallback:a,cooldownMs:0,accountUnaffected:!0}}let q=Number.isInteger(d.status)?d.status:502,r=[a,q,d.errorText||d.message||"Provider stream failed",c,h,d.resetsAtMs||null];d.failureMetadata&&"object"==typeof d.failureMetadata&&r.push(d.failureMetadata),j&&(6===r.length&&r.push(null),r.push(j));let s=await i(...r);return s?.shouldFallback&&k?.warn?.("AUTH",`Account ${b||a||"unknown"} unavailable after stream failure (${q})`),s}}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>i});var d=c(89718),e=c(40669),f=c(3359),g=c(32693);let h={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function i(a){let b,c=(0,g.kP)(a),j=(0,f.s9)(c);if(j)return{...await i(j.modelString),gateway:{mode:j.mode,accountRef:j.accountRef||null,strictAccount:!!j.strictAccount,requestedModel:a,modelString:(0,g.kP)(j.modelString)}};let k=(b=(0,e.Xh)(c),b?.providerAlias&&h[b.providerAlias]?{...b,provider:h[b.providerAlias]}:b);if(!k.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===k.providerAlias);if(a)return{provider:a.id,model:k.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===k.providerAlias);if(b)return{provider:b.id,model:k.model};let c=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===k.providerAlias);return c?{provider:c.id,model:k.model}:{provider:k.provider,model:k.model}}return await (0,d.Dj)(k.model)?{provider:null,model:k.model}:(0,e.js)(c,d.getModelAliases)}async function j(a){if((a=(0,g.kP)(a)).includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}},49216:(a,b,c)=>{c.d(b,{P2:()=>f});let d=new Map(Object.freeze(["admitted","acquired","upstream_open","semantic_commit","terminal","finalized"]).map((a,b)=>[a,b]));function e(a={}){return Object.freeze({...a})}function f(a={}){let b=Number(a.maxAttempts),c=Number.isInteger(b)&&b>0?b:3,g=0;return Object.freeze({get maxAttempts(){return c},get attemptsUsed(){return g},get remaining(){return Math.max(0,c-g)},acquire:(a={})=>g>=c?null:(g+=1,function(a={}){let b,c="admitted",f=!1,g=null,h=!1,i="function"==typeof a.finalize?a.finalize:async()=>{},j=Object.freeze({id:a.candidate?.id||null,provider:a.candidate?.provider||null,egressId:a.candidate?.egressId||null}),k={id:a.id||null,attemptIndex:Number(a.attemptIndex)||1,candidate:j,get state(){return c},get terminal(){return g},get finalizationResult(){return b},get semanticCommitted(){return f},transition(a){if(h||!d.has(a))return!1;let b=d.get(c);return d.get(a)===b+1&&"terminal"!==a&&"finalized"!==a&&(c=a,"semantic_commit"===a&&(f=!0),!0)},acceptTerminal:a=>!h&&!g&&"finalized"!==c&&(g=e(a),c="terminal",!0),finish:async a=>!h&&(h=!0,g||(g=e(a)),c="finalized",b=await i(g,k),!0)};return Object.freeze(k)}({...a,id:a.id||`attempt-${g}`,attemptIndex:g})),grantReplacement(a=1){let b=Number(a),d=Number.isInteger(b)&&b>0?b:0;return c+=d,d}})}},79489:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>J,P:()=>I});var e=c(48895),f=c(80238),g=c(90982),h=c(89718),i=c(29240),j=c(38775),k=c(92500),l=c(43659),m=c(18910),n=c(17603),o=c(27349),p=c(41004),q=c(14170),r=c(7803),s=c(58136),t=c(38160),u=c(3359),v=c(35893),w=c(324),x=c(14262),y=c(54603),z=c(49216),A=c(7912),B=c(75434),C=c(79761),D=c(7444),E=a([e,k]);[e,k]=E.then?(await E)():E;let M=new Set(["account_auth","account_quota","authentication","credential_rejected","reauth_required","policy_suspended","account_validation_required","entitlement_or_quota","permission_denied","rate_limited"]);function F(a){return(0,B.cN)(a)}function G(a,b){let c=Object.entries(a?.circuits||{}).find(([,a])=>a?.probeAcquired===!0&&a?.probeLeaseId);if(!c)return null;let[d,e]=c;return{dimensions:"account"===d?{scope:d,provider:a.provider,accountId:a.id}:"provider"===d?{scope:d,provider:a.provider}:"egress"===d?{scope:d,egressId:a.egressId}:{scope:d,provider:a.provider,model:b,egressId:a.egressId},leaseId:e.probeLeaseId}}async function H(a){let b=a?.headers?.get("x-zevai-connection-id")||null;if(!b)return null;let c=a.headers.get("x-zevai-cli-token");return c&&c===await (0,y.Xj)("zevai-cli-auth")?b:null}async function I(a,b=null){let d;try{d=await a.json()}catch{return r.warn("CHAT","Invalid JSON body"),(0,l.yj)(p.gx.BAD_REQUEST,"Invalid JSON body")}if(!d||"object"!=typeof d||Array.isArray(d))return(0,l.yj)(p.gx.BAD_REQUEST,"Request body must be a JSON object");if(void 0!==d.model&&"string"!=typeof d.model)return(0,l.yj)(p.gx.BAD_REQUEST,"Field 'model' must be a string");if(void 0!==d.messages&&!Array.isArray(d.messages))return(0,l.yj)(p.gx.BAD_REQUEST,"Field 'messages' must be an array");b||(b={endpoint:new URL(a.url).pathname,body:d,headers:Object.fromEntries(a.headers.entries())});let e=d.model,g=Object.fromEntries(a.headers.entries()),k=(0,w.J)(g,d),q=(0,x.eR)(e,k);e&&q!==e&&r.info("ROUTING",`Codex CLI ${e} → ${q}`);let s=a.headers.get("Authorization"),t=(0,f.Tr)(a);if(s&&t){let a=r.maskKey(t);r.debug("AUTH",`API Key: ${a}`)}else r.debug("AUTH","No API key provided (local mode)");let u=await (0,h.mt)(),v=t?await (0,h.uH)(t):null;if(u.requireApiKey){if(!t)return r.warn("AUTH","Missing API key (requireApiKey=true)"),(0,l.yj)(p.gx.UNAUTHORIZED,"Missing API key");if(!await (0,f.kI)(t))return r.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,l.yj)(p.gx.UNAUTHORIZED,"Invalid API key")}if(t){let{checkApiKeyBudget:a}=await Promise.resolve().then(c.bind(c,93999)),b=await a(t);if(!b.allowed)return r.warn("BUDGET",`Blocked: ${b.reason}`),(0,l.yj)(b.error?p.gx.SERVICE_UNAVAILABLE:p.gx.PAYMENT_REQUIRED,b.reason||"Budget exceeded")}if(!e)return r.warn("CHAT","Missing model"),(0,l.yj)(p.gx.BAD_REQUEST,"Missing model");if(!(0,i.GJ)(e,v))return(0,l.yj)(p.gx.FORBIDDEN,`Model ${e} is not allowed for this API key`);let y=null;if(t){let{admitApiKeyRequest:a}=await Promise.resolve().then(c.bind(c,93999));if(!(y=await a(t)).allowed){let a=y.retryAfter?{"Retry-After":String(y.retryAfter)}:void 0;return new Response(JSON.stringify({error:{message:y.reason}}),{status:y.status||429,headers:{"Content-Type":"application/json",...a}})}}let z=a=>J(a,y?.release,y?.touch);q!==e&&(d={...d,model:q});try{let{responseCache:e,isCacheableRequest:f}=await c.e(5236).then(c.bind(c,45236)),g=!0===u.responseCacheEnabled?f(d,a.headers):{cacheable:!1,reason:"disabled"},h=null;if(g.cacheable){let a=(h=e.buildKey(d,t||"local"))?e.get(h):null;if(a)return r.info("CACHE",`HIT ${q} | age=${Math.round((Date.now()-a.storedAt)/1e3)}s | hits=${a.hits}`),z(new Response(JSON.stringify(a.body),{status:a.status,headers:{"Content-Type":"application/json","X-ZevAI-Cache":"HIT","X-ZevAI-Cache-Age":String(Math.round((Date.now()-a.storedAt)/1e3))}}));r.debug("CACHE",`MISS ${q} (${g.reason||"new"})`)}let i=a?.headers?.get("user-agent")||"",k=(0,o.c)(d,q,i,!!u.ccFilterNaming);if(k)return z(k.response||k);let l=await (0,j.d_)(q);if(l){let c=u.comboStrategies||{},e=c[q]?.fallbackStrategy||u.comboStrategy||"fallback";if("fusion"===e){r.info("CHAT",`Combo "${q}" with ${l.length} models (strategy: fusion)`);let e=await (0,m.vt)({body:d,models:l,handleSingleModel:(c,d,e)=>{let f=b;if(e&&b){let{tools:a,tool_choice:c,...d}=b.body||{};f={...b,body:d}}return L(c,d,f,a,t,v)},log:r,comboName:q,judgeModel:c[q]?.judgeModel,tuning:c[q]?.fusionTuning});return z(await K(e,h,q))}let f=u.comboStickyRoundRobinLimit;r.info("CHAT",`Combo "${q}" with ${l.length} models (strategy: ${e}, sticky: ${f})`);let g=await (0,m.Pr)({body:d,models:l,handleSingleModel:(c,d)=>L(c,d,b,a,t,v),log:r,comboName:q,comboStrategy:e,comboStickyLimit:f});return z(await K(g,h,q))}let p=(0,m.t8)(d),s=(0,n.R8)([q],p,u);if(s.length>1){let c=s.filter(a=>a!==q);r.info("CAPACITY",`[${[...p].join(",")}] ${q} → +${c.length} fallback model(s)`);let e=await (0,m.Pr)({body:d,models:s,handleSingleModel:(0,n.ar)((c,d)=>L(c,d,b,a,t,v),c),log:r,comboName:q,comboStrategy:(0,n.vB)(p,u)});return z(await K(e,h,q))}let w=await L(d,q,b,a,t,v);return z(await K(w,h,q))}catch(a){throw y?.release?.(),a}}function J(a,b,c){if(!b)return a;if(!a?.body||!a.headers.get("content-type")?.includes("text/event-stream"))return b(),a;let d=a.body.getReader();return new Response(new ReadableStream({async pull(a){try{let{done:e,value:f}=await d.read();e?(b(),a.close()):(c?.(),a.enqueue(f))}catch(c){b(),a.error(c)}},async cancel(a){b(),await d.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}async function K(a,b,d){if(!b||!a||!a.ok||!(a.headers.get("content-type")||"").includes("application/json"))return a;try{let{responseCache:e,isCacheableResponse:f}=await c.e(5236).then(c.bind(c,45236)),g=await a.clone().json();if(!f(g,a.status))return a;e.set(b,{body:g,status:a.status,model:d}),r.debug("CACHE",`STORE ${d} (key ${b.slice(0,8)}…)`)}catch{}return a}async function L(a,b,d=null,e=null,i=null,n=null){let o=await (0,j.mA)(b);if(!o.provider){let c=await (0,j.d_)(b);if(c){let f=await (0,h.mt)(),g=f.comboStrategies||{},j=g[b]?.fallbackStrategy||f.comboStrategy||"fallback";if("fusion"===j)return r.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: fusion)`),(0,m.vt)({body:a,models:c,handleSingleModel:(a,b,c)=>{let f=d;if(c&&d){let{tools:a,tool_choice:b,...c}=d.body||{};f={...d,body:c}}return L(a,b,f,e,i,n)},log:r,comboName:b,judgeModel:g[b]?.judgeModel,tuning:g[b]?.fusionTuning});let k=f.comboStickyRoundRobinLimit;return r.info("CHAT",`Combo "${b}" with ${c.length} models (strategy: ${j}, sticky: ${k})`),(0,m.Pr)({body:a,models:c,handleSingleModel:(a,b)=>L(a,b,d,e,i,n),log:r,comboName:b,comboStrategy:j,comboStickyLimit:k})}return r.warn("CHAT","Invalid model format",{model:b}),(0,l.yj)(p.gx.BAD_REQUEST,"Invalid model format")}let{provider:w,model:x}=o,y=o.gateway||null,B="claude"===w||w?.startsWith?.("anthropic-compatible-")?(0,g.J)(d?.headers):null,E=e?.headers?.get("user-agent")||"",I=new Set,J=(0,z.P2)({maxAttempts:3}),K=await (0,h.mt)(),N=(0,D.m)(K),O=`route-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,P=null,Q=null,R=null,S={};i&&(S.apiKey=i),n?.allowedConnectionIds&&(S.allowedConnectionIds=n.allowedConnectionIds);let T=await H(e);if(T&&(S.preferredConnectionId=T,S.strictPreferred=!0),y&&"codex"===w&&("original"===y.mode||"account"===y.mode)){let a=await (0,u.c9)(y);if(!a){let a="account"===y.mode?`account "${y.accountRef}"`:"original Codex account";return r.warn("AUTH",`Codex gateway could not resolve ${a}`),(0,l.yj)(p.gx.NOT_FOUND,`Codex gateway could not resolve ${a}`)}S.preferredConnectionId=a.id,S.strictPreferred=!!y.strictAccount,r.info("ROUTING",`Codex gateway ${y.mode} pinned to ${(0,u.K0)(a)}`)}for(;;){let b;if(0===J.remaining)return R||(0,l.yj)(Q||p.gx.SERVICE_UNAVAILABLE,P||"Upstream attempt budget exhausted");let g=await (0,f.c1)(w,I,x,S);if(g?.modelUnavailable){let a=`${w}/${x}`;return r.warn("AUTH",`No known eligible account supports model: ${a}`),(0,l.yj)(p.gx.NOT_FOUND,`Model ${a} is not available on any known eligible account`)}if(!g||g.allRateLimited){if(g?.allRateLimited){let a=P||g.lastError||"Unavailable",b=Q||Number(g.lastErrorCode)||p.gx.SERVICE_UNAVAILABLE;return r.warn("CHAT",`[${w}/${x}] ${a} (${g.retryAfterHuman})`),(0,l.wO)(b,`[${w}/${x}] ${a}`,g.retryAfter,g.retryAfterHuman)}if(0===I.size)return r.warn("AUTH",`No active credentials for provider: ${w}`),(0,l.yj)(p.gx.NOT_FOUND,`No active credentials for provider: ${w}`);return r.warn("CHAT","No more accounts available",{provider:w}),(0,l.yj)(Q||p.gx.SERVICE_UNAVAILABLE,P||"All accounts unavailable")}let h=null,j=null,n=[],o=()=>{j&&((0,C.BU)(j.dimensions,{leaseId:j.leaseId,cancelled:!0}),j=null)};if((N.adaptiveShadow||N.adaptiveRoute)&&"function"==typeof f.uT)try{let b=[...(0,m.t8)(a)],c=K.providerStrategies?.[w]?.adaptiveRoute===!0,d=(n=await f.uT(w,x,{...S,operation:"chat",requiredCapabilities:b,acquireCircuitProbes:!0===N.adaptiveRoute&&c})).filter(a=>!I.has(a.id)),e=(0,A.J)({candidates:d,legacyCandidateId:g.connectionId,flags:N,providerActivation:c,context:{provider:w,model:x,operation:"chat",requiredCapabilities:b,allowedConnectionIds:S.allowedConnectionIds,pinnedConnectionId:S.strictPreferred?S.preferredConnectionId:null,priorityRange:{min:Math.min(...d.map(a=>a.priority).filter(Number.isFinite)),max:Math.max(...d.map(a=>a.priority).filter(Number.isFinite))}}});if("active"===e.mode&&e.selected?.id!==g.connectionId){let a=await (0,f.c1)(w,I,x,{...S,preferredConnectionId:e.selected.id,strictPreferred:!0});!a||a.allRateLimited||a.modelUnavailable||(g=a)}let i=d.find(a=>a.id===g.connectionId);for(let a of((j=G(i,x))&&F({type:"probe",requestTag:O,provider:w,model:x,connectionId:g.connectionId,phase:"open"}),n)){let b=G(a,x);b&&b.leaseId!==j?.leaseId&&(0,C.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}let k=e.ranked.find(a=>a.id===e.adaptiveCandidateId);h={mode:e.mode,candidateCount:d.length,connectionId:g.connectionId,score:k?.score,scoreComponents:k?.components},F({type:"decision",requestTag:O,provider:w,model:x,connectionId:g.connectionId,...h})}catch(a){for(let a of n){let b=G(a,x);b&&(0,C.BU)(b.dimensions,{leaseId:b.leaseId,cancelled:!0})}j=null,r.warn("ADAPTIVE",`Planner unavailable for ${w}/${x}; using legacy route (${a?.message||a})`),h={mode:"legacy",candidateCount:0}}try{b=await (0,s.eU)(w,g)}catch(e){o();let a=e?.permanent===!0;if("kiro"!==w&&!a)throw e;let b=Number.isInteger(e?.status)?e.status:a?p.gx.UNAUTHORIZED:p.gx.BAD_GATEWAY,c="kiro"===w?a?"Kiro rejected the refresh credential.":"Kiro credential refresh failed temporarily.":`${w} refresh token rejected (token invalid); reconnect this account.`,{shouldFallback:d}=await (0,f.vk)(g.connectionId,b,c,w,x,null,{failureClass:a?"reauth_required":"upstream_transient",providerErrorCode:e?.code||null,upstreamRequestId:e?.requestId||null,authLifecycle:{initialStatus:null,refreshAttempted:!0,refreshOutcome:a?"rejected":"transient_failed",retryStatus:null}},..."codebuddy"===w||"codebuddy-cn"===w?[g._connection]:[]);if(d){I.add(g.connectionId),P=c,Q=b,r.warn("AUTH",`${w} refresh failed for ${g.connectionName}; trying fallback`);continue}return(0,l.yj)(b,c)}if("antigravity"===w||"gemini-cli"===w){let a=b.projectId||g.projectId||g.providerSpecificData?.projectId||null;if(a&&(b.projectId=a),!b.projectId){let d=await (0,t.eG)(g.connectionId,b.accessToken,{preferredProjectId:a});if(!d&&"antigravity"===w)try{let{getProviderConnections:a}=await Promise.resolve().then(c.bind(c,71998));for(let b of await a({provider:"antigravity",isActive:!0})||[]){if(b.id===g.connectionId)continue;let a=b.projectId||b.providerSpecificData?.projectId;if(a){d=a;break}}}catch{}d&&(b.projectId=d,(0,s.vN)(g.connectionId,{projectId:d}).catch(()=>{}))}}let u=(K.providerThinking||{})[w]||null,y=null;if(K.pxpipeEnabled)try{let{getTransform:a}=await c.e(4253).then(c.bind(c,24253));y=await a()}catch{y=null}let z=B?{...b,rawHeaders:B}:b,D=(0,v.S)({connectionId:g.connectionId,connectionName:g.connectionName,provider:w,model:x,markUnavailable:f.vk,selectedConnection:"codebuddy"===w||"codebuddy-cn"===w?g._connection:null,egressId:g.providerSpecificData?.connectionProxyPoolId||(g.providerSpecificData?.vercelRelayUrl?"relay":"direct"),logger:r}),H=()=>{let a=!1,b=J.acquire({candidate:{id:g.connectionId,provider:w,egressId:g.providerSpecificData?.connectionProxyPoolId||(g.providerSpecificData?.vercelRelayUrl?"relay":"direct")},async finalize(c){if(F({type:"terminal",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:b?.attemptIndex,failureClass:c.success?void 0:c.failure?.failureMetadata?.failureClass}),!j||a||c.retrying||(a=!0,(0,C.BU)(j.dimensions,{leaseId:j.leaseId,success:!0===c.success}),F({type:"probe",requestTag:O,provider:w,model:x,connectionId:g.connectionId,phase:c.success?"success":"failure"})),c.retrying)return{shouldFallback:!1,cooldownMs:0};if(c.lifecycleHandled)return{shouldFallback:!0===c.shouldFallback,cooldownMs:0};let d=c.failure?.failureMetadata?.failureClass||c.failureClass;return"client_abort"===d||"policy_rejection"===d?{shouldFallback:!1,cooldownMs:0,accountUnaffected:!0}:c.success?(await (0,f.Pt)(g.connectionId,g,x),{shouldFallback:!1,cooldownMs:0}):D(c.failure||c)}});return b?.transition("acquired"),b&&F({type:"attempt_open",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:b.attemptIndex}),b},L=J.attemptsUsed,T=H();T||o();let U=await (0,k.wk)({body:{...a,model:`${w}/${x}`},modelInfo:{provider:w,model:x},credentials:z,log:r,clientRawRequest:d,connectionId:g.connectionId,userAgent:E,apiKey:i,ccFilterNaming:!!K.ccFilterNaming,rtkEnabled:!!K.rtkEnabled,headroomEnabled:!!K.headroomEnabled,headroomUrl:K.headroomUrl||"http://localhost:8787",headroomCompressUserMessages:!!K.headroomCompressUserMessages,cavemanEnabled:!!K.cavemanEnabled,cavemanLevel:K.cavemanLevel||"full",ponytailEnabled:!!K.ponytailEnabled,ponytailLevel:K.ponytailLevel||"full",pxpipeEnabled:!!K.pxpipeEnabled,pxpipeMinChars:K.pxpipeMinChars,pxpipeTimeoutMs:K.pxpipeTimeoutMs,pxpipeTransform:y,onPxpipeEvent:async a=>{try{let{appendPxpipeEvent:b}=await c.e(2007).then(c.bind(c,74388));b(a)}catch{}},contextInjectionEnabled:!!K.contextInjectionEnabled,providerThinking:u,signal:e?.signal,attemptBudget:J,attemptLease:T,acquireAttemptLease:H,adaptiveMetadata:h,onAdaptiveLifecycle:a=>F({...a,requestTag:O,provider:w,model:x,connectionId:g.connectionId}),sourceFormatOverride:e?.url?(0,q.t)(new URL(e.url).pathname,a):null,onCredentialsRefreshed:async a=>(0,s.vN)(g.connectionId,{...a,existingProviderSpecificData:g.providerSpecificData,testStatus:"active"}),onRequestSuccess:async(a=T)=>{await a.finish({success:!0})},onStreamFailure:async(a,b=T)=>(await b.finish({success:!1,failure:a}),b.finalizationResult)});if(U.success)return U.response;await T.finish({success:!1,lifecycleHandled:!0===U.lifecycleHandled,shouldFallback:!0===U.shouldFallback,failure:{status:U.status,message:U.error,errorText:U.error,resetsAtMs:U.resetsAtMs,failureMetadata:U.failureMetadata}});let V=T.finalizationResult;if(!0===U.lifecycleHandled?!0===U.shouldFallback:V?.shouldFallback===!0){(function(a){let b=a?.failureMetadata?.failureClass;return b?M.has(b):[401,402,403,429].includes(Number(a?.status))})(U)&&J.grantReplacement(J.attemptsUsed-L),F({type:"failover",requestTag:O,provider:w,model:x,connectionId:g.connectionId,attemptIndex:T.attemptIndex,failureClass:U.failureMetadata?.failureClass,code:U.failureMetadata?.providerErrorCode}),r.warn("FALLBACK",`ACC:${g.connectionName} unavailable (${U.status}) → next account`),I.add(g.connectionId),P=U.error,Q=U.status,R=U.response;continue}return U.response}}d()}catch(a){d(a)}})},90982:(a,b,c)=>{c.d(b,{J:()=>e});let d=new Set(["user-agent","anthropic-beta","anthropic-version","anthropic-dangerous-direct-browser-access","x-app","x-stainless-helper-method","x-stainless-retry-count","x-stainless-runtime-version","x-stainless-package-version","x-stainless-runtime","x-stainless-lang","x-stainless-arch","x-stainless-os","x-stainless-timeout","x-claude-code-session-id","package-version","runtime-version","os","arch"]);function e(a){if(!a||"object"!=typeof a)return{};let b={};for(let[c,e]of Object.entries(a)){let a=c.toLowerCase();d.has(a)&&("string"==typeof e||"number"==typeof e)&&(b[a]=String(e))}return b}}};
@@ -1,4 +1,5 @@
1
- "use strict";exports.id=2750,exports.ids=[2750],exports.modules={52750:(a,b,c)=>{c.d(b,{M:()=>C,q:()=>D});let d=/^(?:( )+|\t+)/,e="space";function f(a,b){let c=new Map,f=0,g,h;for(let i of a.split(/\n/g)){if(!i)continue;let a=i.match(d);if(null===a)f=0,g="";else{let d=a[0].length,i=a[1]?e:"tab";if(b&&i===e&&1===d)continue;i!==g&&(f=0),g=i;let j=1,k=0,l=d-f;if(f=d,0===l)j=0,k=1;else{let a=Math.abs(l);if(b&&i===e&&1===a)continue;h=(i===e?"s":"t")+String(a)}let m=c.get(h);c.set(h,void 0===m?[1,0]:[m[0]+j,m[1]+k])}}return c}let g=Symbol.for("__confbox_fmt__"),h=/^(\s+)/,i=/(\s+)$/;var j=class extends Error{line;column;codeblock;constructor(a,b){var c,d;let e,[f,g]=(c=b.toml,d=b.ptr,[(e=c.slice(0,d).split(/\r\n|\n|\r/g)).length,e.pop().length+1]),h=function(a,b,c){let d=a.split(/\r\n|\n|\r/g),e="",f=(0|Math.log10(b+1))+1;for(let a=b-1;a<=b+1;a++){let g=d[a-1];g&&(e+=a.toString().padEnd(f," "),e+=": ",e+=g,e+=`
1
+ "use strict";exports.id=9528,exports.ids=[9528],exports.modules={24424:(a,b)=>{function c(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Error(`A "use server" file can only export async functions, found ${typeof c}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`)}}Object.defineProperty(b,"D",{enumerable:!0,get:function(){return c}})},49796:(a,b,c)=>{Object.defineProperty(b,"A",{enumerable:!0,get:function(){return d.registerServerReference}});let d=c(77943)},52750:(a,b,c)=>{c.d(b,{M:()=>C,q:()=>D});let d=/^(?:( )+|\t+)/,e="space";function f(a,b){let c=new Map,f=0,g,h;for(let i of a.split(/\n/g)){if(!i)continue;let a=i.match(d);if(null===a)f=0,g="";else{let d=a[0].length,i=a[1]?e:"tab";if(b&&i===e&&1===d)continue;i!==g&&(f=0),g=i;let j=1,k=0,l=d-f;if(f=d,0===l)j=0,k=1;else{let a=Math.abs(l);if(b&&i===e&&1===a)continue;h=(i===e?"s":"t")+String(a)}let m=c.get(h);c.set(h,void 0===m?[1,0]:[m[0]+j,m[1]+k])}}return c}let g=Symbol.for("__confbox_fmt__"),h=/^(\s+)/,i=/(\s+)$/;var j=class extends Error{line;column;codeblock;constructor(a,b){var c,d;let e,[f,g]=(c=b.toml,d=b.ptr,[(e=c.slice(0,d).split(/\r\n|\n|\r/g)).length,e.pop().length+1]),h=function(a,b,c){let d=a.split(/\r\n|\n|\r/g),e="",f=(0|Math.log10(b+1))+1;for(let a=b-1;a<=b+1;a++){let g=d[a-1];g&&(e+=a.toString().padEnd(f," "),e+=": ",e+=g,e+=`
2
3
  `,a===b&&(e+=" ".repeat(f+c+2),e+=`^
3
4
  `))}return e}(b.toml,f,g);super(`Invalid TOML document: ${a}
4
5
 
@@ -28,4 +29,4 @@ ${h}`,b),this.line=f,this.column=g,this.codeblock=h}};function k(a,b=0,c=a.lengt
28
29
  ${g}`:`[${b}]`),g&&h?`${g}
29
30
  ${h}`:g||h}(0,a,"",b,c);return d[d.length-1]===`
30
31
  `?d:d+`
31
- `}(a);return b.whitespace.start+c+b.whitespace.end}}};
32
+ `}(a);return b.whitespace.start+c+b.whitespace.end}},77943:(a,b,c)=>{a.exports=c(7553).vendored["react-rsc"].ReactServerDOMWebpackServer}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/5wTkpSETl1nKGKUkK-OM5/_buildManifest.js","static/5wTkpSETl1nKGKUkK-OM5/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-b041c9a7d1b8c64f.js","static/chunks/4bd1b696-8cd12253b448cc13.js","static/chunks/3794-04350b0fcecd82e5.js","static/chunks/main-app-88e09177034d71e7.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/QnZGjZBbNqQkbGSTiHVnz/_buildManifest.js","static/QnZGjZBbNqQkbGSTiHVnz/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-b041c9a7d1b8c64f.js","static/chunks/4bd1b696-8cd12253b448cc13.js","static/chunks/3794-04350b0fcecd82e5.js","static/chunks/main-app-88e09177034d71e7.js"],rootMainFilesTree:{},pages:{"/_app":[]}};