@rabbi696/ezrouter 0.5.76 → 0.5.77

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 (1164) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +21 -20
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/routes-manifest.json +6 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +15 -15
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  85. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  90. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  91. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  92. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  93. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  94. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  95. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  96. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  98. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  100. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  101. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  103. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  105. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  106. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
  125. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
  133. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  135. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  139. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
  145. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  147. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  151. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  161. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  163. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  165. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  167. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  169. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  171. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  173. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  175. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/convoy/rules/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  217. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  247. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  269. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  270. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  271. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  272. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  273. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  301. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  303. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  307. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  309. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  311. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  313. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  315. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  317. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  319. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  321. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  323. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
  341. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -0
  343. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -0
  344. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route_client-reference-manifest.js +1 -0
  345. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  348. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  370. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
  378. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  392. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  422. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  454. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  455. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  460. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  461. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  462. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  464. package/app/.next-cli-build/server/app/callback.html +1 -1
  465. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  466. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  467. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  468. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  469. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  470. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  472. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  473. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  474. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  475. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  476. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  478. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  479. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  481. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  482. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  483. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  484. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  485. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  486. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  488. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  489. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  491. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  492. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  493. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  494. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  495. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  496. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  498. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  499. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  501. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  502. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  503. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
  504. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  508. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
  509. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  510. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
  511. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
  512. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  514. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  515. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  516. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  518. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  519. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  521. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  522. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  524. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  525. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  526. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  530. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  532. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  535. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  536. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  539. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  540. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  542. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  543. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  545. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  546. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  549. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  550. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  551. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  552. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  553. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  554. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  555. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  556. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  558. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  560. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  561. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  563. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  565. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  566. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  567. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  568. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  570. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  571. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  573. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  575. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  576. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  577. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  578. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  580. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  581. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  583. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  584. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  585. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  586. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  587. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  588. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  590. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  591. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  593. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  594. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  595. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  596. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  597. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  600. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  601. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  603. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  604. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  609. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  610. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
  613. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
  614. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  615. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  617. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  618. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  619. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  620. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  622. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  623. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  627. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  629. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  630. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  632. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  633. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  634. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  636. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  637. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  638. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  639. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  640. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  641. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  642. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  643. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  644. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  646. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  647. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  648. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  649. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  650. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  651. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  652. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  653. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  654. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  656. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  657. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  658. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  659. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  660. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  661. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  662. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  663. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  664. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  665. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  666. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  667. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  668. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  669. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  670. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  671. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  672. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  673. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  674. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  675. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  676. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  677. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  678. package/app/.next-cli-build/server/app/index.html +1 -1
  679. package/app/.next-cli-build/server/app/index.rsc +4 -4
  680. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  681. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  682. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  683. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  684. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  685. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  686. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  687. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  688. package/app/.next-cli-build/server/app/landing.html +1 -1
  689. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  690. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  691. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  692. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  693. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  694. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  695. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  696. package/app/.next-cli-build/server/app/login/page.js +2 -2
  697. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  698. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  699. package/app/.next-cli-build/server/app/login.html +1 -1
  700. package/app/.next-cli-build/server/app/login.rsc +5 -5
  701. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  702. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  703. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  704. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  705. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  706. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  707. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  708. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  709. package/app/.next-cli-build/server/app/page.js +2 -2
  710. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  711. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  712. package/app/.next-cli-build/server/app-paths-manifest.json +21 -20
  713. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  714. package/app/.next-cli-build/server/chunks/1329.js +1 -1
  715. package/app/.next-cli-build/server/chunks/1531.js +1 -1
  716. package/app/.next-cli-build/server/chunks/1729.js +1 -0
  717. package/app/.next-cli-build/server/chunks/1770.js +1 -1
  718. package/app/.next-cli-build/server/chunks/2031.js +1 -0
  719. package/app/.next-cli-build/server/chunks/2547.js +3 -53
  720. package/app/.next-cli-build/server/chunks/2814.js +1 -1
  721. package/app/.next-cli-build/server/chunks/3148.js +51 -0
  722. package/app/.next-cli-build/server/chunks/3593.js +1 -1
  723. package/app/.next-cli-build/server/chunks/369.js +28 -28
  724. package/app/.next-cli-build/server/chunks/3814.js +1 -1
  725. package/app/.next-cli-build/server/chunks/399.js +1 -1
  726. package/app/.next-cli-build/server/chunks/412.js +2 -2
  727. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  728. package/app/.next-cli-build/server/chunks/4730.js +2 -2
  729. package/app/.next-cli-build/server/chunks/476.js +1 -1
  730. package/app/.next-cli-build/server/chunks/4780.js +1 -1
  731. package/app/.next-cli-build/server/chunks/48.js +1 -0
  732. package/app/.next-cli-build/server/chunks/5210.js +1 -1
  733. package/app/.next-cli-build/server/chunks/5502.js +1 -1
  734. package/app/.next-cli-build/server/chunks/5615.js +3 -3
  735. package/app/.next-cli-build/server/chunks/5767.js +1 -1
  736. package/app/.next-cli-build/server/chunks/5841.js +1 -1
  737. package/app/.next-cli-build/server/chunks/615.js +1 -1
  738. package/app/.next-cli-build/server/chunks/6252.js +1 -1
  739. package/app/.next-cli-build/server/chunks/7079.js +1 -1
  740. package/app/.next-cli-build/server/chunks/{6606.js → 7281.js} +1 -1
  741. package/app/.next-cli-build/server/chunks/7362.js +2 -2
  742. package/app/.next-cli-build/server/chunks/7591.js +1 -1
  743. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  744. package/app/.next-cli-build/server/chunks/7965.js +11 -10
  745. package/app/.next-cli-build/server/chunks/8034.js +1 -1
  746. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  747. package/app/.next-cli-build/server/chunks/8243.js +2 -2
  748. package/app/.next-cli-build/server/chunks/8421.js +1 -1
  749. package/app/.next-cli-build/server/chunks/871.js +1 -0
  750. package/app/.next-cli-build/server/chunks/8749.js +2 -2
  751. package/app/.next-cli-build/server/chunks/8851.js +1 -1
  752. package/app/.next-cli-build/server/chunks/{2236.js → 8901.js} +5 -5
  753. package/app/.next-cli-build/server/chunks/8946.js +1 -0
  754. package/app/.next-cli-build/server/chunks/8976.js +1 -1
  755. package/app/.next-cli-build/server/chunks/921.js +1 -1
  756. package/app/.next-cli-build/server/chunks/9212.js +1 -1
  757. package/app/.next-cli-build/server/chunks/9217.js +1 -1
  758. package/app/.next-cli-build/server/chunks/9356.js +2 -2
  759. package/app/.next-cli-build/server/chunks/9489.js +1 -1
  760. package/app/.next-cli-build/server/chunks/9884.js +1 -0
  761. package/app/.next-cli-build/server/chunks/9998.js +2 -2
  762. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  763. package/app/.next-cli-build/server/middleware.js +1 -1
  764. package/app/.next-cli-build/server/pages/404.html +1 -1
  765. package/app/.next-cli-build/server/pages/500.html +1 -1
  766. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  767. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  768. package/app/.next-cli-build/static/chunks/{1321-9f4547351ee518f9.js → 1321-cb50b24e32b861ef.js} +1 -1
  769. package/app/.next-cli-build/static/chunks/{5497-acc549e1dfb9fdba.js → 5497-30c2637cfca081d3.js} +3 -3
  770. package/app/.next-cli-build/static/chunks/8105-2e7f8f218027f4a7.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-426c9857c515fe16.js → page-0ab40e69321978fb.js} +14 -14
  772. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-04f568d5510f26f7.js +14 -0
  773. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-38f69db60cdfe7cd.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-973240b44eb04877.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-93bca4f363f4b6f1.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/_global-error/{page-6628538ea9006a73.js → page-938edd13e0345b6e.js} +1 -1
  777. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-6628538ea9006a73.js → route-938edd13e0345b6e.js} +1 -1
  778. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-6628538ea9006a73.js → route-938edd13e0345b6e.js} +1 -1
  779. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-6628538ea9006a73.js → route-938edd13e0345b6e.js} +1 -1
  780. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-938edd13e0345b6e.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-938edd13e0345b6e.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-938edd13e0345b6e.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-938edd13e0345b6e.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-938edd13e0345b6e.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-938edd13e0345b6e.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-938edd13e0345b6e.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-938edd13e0345b6e.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/changelog/route-938edd13e0345b6e.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-938edd13e0345b6e.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-938edd13e0345b6e.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-938edd13e0345b6e.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-938edd13e0345b6e.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-938edd13e0345b6e.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-938edd13e0345b6e.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-938edd13e0345b6e.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-938edd13e0345b6e.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-938edd13e0345b6e.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-938edd13e0345b6e.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-938edd13e0345b6e.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-938edd13e0345b6e.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-938edd13e0345b6e.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-938edd13e0345b6e.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-938edd13e0345b6e.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-938edd13e0345b6e.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-938edd13e0345b6e.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-938edd13e0345b6e.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-938edd13e0345b6e.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-938edd13e0345b6e.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-938edd13e0345b6e.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-938edd13e0345b6e.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-938edd13e0345b6e.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-938edd13e0345b6e.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-938edd13e0345b6e.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-938edd13e0345b6e.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-938edd13e0345b6e.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/combos/route-938edd13e0345b6e.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-938edd13e0345b6e.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-938edd13e0345b6e.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-938edd13e0345b6e.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-938edd13e0345b6e.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-938edd13e0345b6e.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-938edd13e0345b6e.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-938edd13e0345b6e.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-938edd13e0345b6e.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/health/route-938edd13e0345b6e.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/init/route-938edd13e0345b6e.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-938edd13e0345b6e.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-938edd13e0345b6e.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/keys/route-938edd13e0345b6e.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/locale/route-938edd13e0345b6e.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-938edd13e0345b6e.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-938edd13e0345b6e.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-938edd13e0345b6e.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-938edd13e0345b6e.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-938edd13e0345b6e.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-938edd13e0345b6e.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-938edd13e0345b6e.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-938edd13e0345b6e.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-938edd13e0345b6e.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-938edd13e0345b6e.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-938edd13e0345b6e.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/models/route-938edd13e0345b6e.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/models/test/route-938edd13e0345b6e.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-938edd13e0345b6e.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-938edd13e0345b6e.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-938edd13e0345b6e.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-938edd13e0345b6e.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-938edd13e0345b6e.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-938edd13e0345b6e.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-938edd13e0345b6e.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-938edd13e0345b6e.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-938edd13e0345b6e.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-938edd13e0345b6e.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-938edd13e0345b6e.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-938edd13e0345b6e.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-938edd13e0345b6e.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/pricing/route-938edd13e0345b6e.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-938edd13e0345b6e.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-938edd13e0345b6e.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-938edd13e0345b6e.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-938edd13e0345b6e.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-938edd13e0345b6e.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-938edd13e0345b6e.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-938edd13e0345b6e.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-938edd13e0345b6e.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-938edd13e0345b6e.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-938edd13e0345b6e.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/providers/route-938edd13e0345b6e.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-938edd13e0345b6e.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-938edd13e0345b6e.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-938edd13e0345b6e.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-938edd13e0345b6e.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-938edd13e0345b6e.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-938edd13e0345b6e.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-938edd13e0345b6e.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-938edd13e0345b6e.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-938edd13e0345b6e.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-938edd13e0345b6e.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-938edd13e0345b6e.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-938edd13e0345b6e.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-938edd13e0345b6e.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-938edd13e0345b6e.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-938edd13e0345b6e.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-938edd13e0345b6e.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-938edd13e0345b6e.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-938edd13e0345b6e.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-938edd13e0345b6e.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-938edd13e0345b6e.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-938edd13e0345b6e.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/settings/route-938edd13e0345b6e.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-938edd13e0345b6e.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/tags/route-938edd13e0345b6e.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-938edd13e0345b6e.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-938edd13e0345b6e.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-938edd13e0345b6e.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-938edd13e0345b6e.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-938edd13e0345b6e.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-938edd13e0345b6e.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-938edd13e0345b6e.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-938edd13e0345b6e.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-938edd13e0345b6e.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-938edd13e0345b6e.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-938edd13e0345b6e.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-938edd13e0345b6e.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-938edd13e0345b6e.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-938edd13e0345b6e.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-938edd13e0345b6e.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-938edd13e0345b6e.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-938edd13e0345b6e.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-938edd13e0345b6e.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-938edd13e0345b6e.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-938edd13e0345b6e.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-938edd13e0345b6e.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-938edd13e0345b6e.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-938edd13e0345b6e.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-938edd13e0345b6e.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-938edd13e0345b6e.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-938edd13e0345b6e.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-938edd13e0345b6e.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-938edd13e0345b6e.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-938edd13e0345b6e.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-938edd13e0345b6e.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-938edd13e0345b6e.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-938edd13e0345b6e.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-938edd13e0345b6e.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-938edd13e0345b6e.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-938edd13e0345b6e.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-938edd13e0345b6e.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-938edd13e0345b6e.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-938edd13e0345b6e.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-938edd13e0345b6e.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-938edd13e0345b6e.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-938edd13e0345b6e.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-938edd13e0345b6e.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-938edd13e0345b6e.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-938edd13e0345b6e.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-938edd13e0345b6e.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-938edd13e0345b6e.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-938edd13e0345b6e.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-938edd13e0345b6e.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-938edd13e0345b6e.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/v1/route-938edd13e0345b6e.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-938edd13e0345b6e.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-938edd13e0345b6e.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-938edd13e0345b6e.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-938edd13e0345b6e.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-938edd13e0345b6e.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-938edd13e0345b6e.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-938edd13e0345b6e.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-938edd13e0345b6e.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/version/route-938edd13e0345b6e.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-938edd13e0345b6e.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/version/update/route-938edd13e0345b6e.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-938edd13e0345b6e.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/page-938edd13e0345b6e.js +1 -0
  956. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-938edd13e0345b6e.js +1 -0
  957. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-938edd13e0345b6e.js +1 -0
  958. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-938edd13e0345b6e.js +1 -0
  959. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-938edd13e0345b6e.js +1 -0
  960. package/app/.next-cli-build/static/css/c784a89390f4e764.css +1 -0
  961. package/app/.next-cli-build/static/j60LfKWDboRib8fA8bGf6/_buildManifest.js +1 -0
  962. package/app/CHANGELOG.md +44 -768
  963. package/app/package.json +1 -1
  964. package/app/public/CHANGELOG.md +44 -768
  965. package/app/public/ezrouter-logo.png +0 -0
  966. package/app/public/ezrouter.png +0 -0
  967. package/app/public/favicon.png +0 -0
  968. package/app/public/favicon.svg +6 -2
  969. package/app/public/i18n/literals/tr.json +0 -2
  970. package/app/public/logo.png +0 -0
  971. package/app/src/lib/db/adapters/sqljsAdapter.js +9 -1
  972. package/package.json +1 -1
  973. package/app/.next-cli-build/server/chunks/3352.js +0 -1
  974. package/app/.next-cli-build/server/chunks/4456.js +0 -1
  975. package/app/.next-cli-build/server/chunks/6982.js +0 -1
  976. package/app/.next-cli-build/server/chunks/8002.js +0 -1
  977. package/app/.next-cli-build/server/chunks/9573.js +0 -1
  978. package/app/.next-cli-build/static/PhQj0fhRg7SYaQsRbQtB4/_buildManifest.js +0 -1
  979. package/app/.next-cli-build/static/chunks/8105-82276794a3ebab29.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-965c6b2d338bdcb3.js +0 -14
  981. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-d8b0749a7237200c.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-0453d0891ec1b63a.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-831aeea67a4d2bca.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-6628538ea9006a73.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-6628538ea9006a73.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-6628538ea9006a73.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-6628538ea9006a73.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-6628538ea9006a73.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-6628538ea9006a73.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-6628538ea9006a73.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-6628538ea9006a73.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/changelog/route-6628538ea9006a73.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-6628538ea9006a73.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-6628538ea9006a73.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6628538ea9006a73.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-6628538ea9006a73.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-6628538ea9006a73.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-6628538ea9006a73.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-6628538ea9006a73.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-6628538ea9006a73.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-6628538ea9006a73.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-6628538ea9006a73.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6628538ea9006a73.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6628538ea9006a73.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-6628538ea9006a73.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6628538ea9006a73.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-6628538ea9006a73.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-6628538ea9006a73.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-6628538ea9006a73.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-6628538ea9006a73.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-6628538ea9006a73.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-6628538ea9006a73.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-6628538ea9006a73.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-6628538ea9006a73.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-6628538ea9006a73.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-6628538ea9006a73.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-6628538ea9006a73.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-6628538ea9006a73.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-6628538ea9006a73.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/combos/route-6628538ea9006a73.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-6628538ea9006a73.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-6628538ea9006a73.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-6628538ea9006a73.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-6628538ea9006a73.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-6628538ea9006a73.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-6628538ea9006a73.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-6628538ea9006a73.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-6628538ea9006a73.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/health/route-6628538ea9006a73.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/init/route-6628538ea9006a73.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-6628538ea9006a73.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-6628538ea9006a73.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/keys/route-6628538ea9006a73.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/locale/route-6628538ea9006a73.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-6628538ea9006a73.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-6628538ea9006a73.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6628538ea9006a73.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6628538ea9006a73.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-6628538ea9006a73.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-6628538ea9006a73.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-6628538ea9006a73.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-6628538ea9006a73.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-6628538ea9006a73.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-6628538ea9006a73.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-6628538ea9006a73.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/models/route-6628538ea9006a73.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/models/test/route-6628538ea9006a73.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-6628538ea9006a73.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-6628538ea9006a73.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-6628538ea9006a73.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-6628538ea9006a73.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-6628538ea9006a73.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-6628538ea9006a73.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-6628538ea9006a73.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-6628538ea9006a73.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-6628538ea9006a73.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-6628538ea9006a73.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-6628538ea9006a73.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-6628538ea9006a73.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-6628538ea9006a73.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/pricing/route-6628538ea9006a73.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-6628538ea9006a73.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-6628538ea9006a73.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-6628538ea9006a73.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-6628538ea9006a73.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-6628538ea9006a73.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-6628538ea9006a73.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-6628538ea9006a73.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-6628538ea9006a73.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-6628538ea9006a73.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-6628538ea9006a73.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/providers/route-6628538ea9006a73.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-6628538ea9006a73.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-6628538ea9006a73.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-6628538ea9006a73.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-6628538ea9006a73.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-6628538ea9006a73.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-6628538ea9006a73.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-6628538ea9006a73.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-6628538ea9006a73.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-6628538ea9006a73.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-6628538ea9006a73.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-6628538ea9006a73.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-6628538ea9006a73.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-6628538ea9006a73.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-6628538ea9006a73.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-6628538ea9006a73.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-6628538ea9006a73.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-6628538ea9006a73.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-6628538ea9006a73.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-6628538ea9006a73.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-6628538ea9006a73.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-6628538ea9006a73.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/settings/route-6628538ea9006a73.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-6628538ea9006a73.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/tags/route-6628538ea9006a73.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-6628538ea9006a73.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-6628538ea9006a73.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-6628538ea9006a73.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-6628538ea9006a73.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-6628538ea9006a73.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-6628538ea9006a73.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-6628538ea9006a73.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-6628538ea9006a73.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-6628538ea9006a73.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-6628538ea9006a73.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-6628538ea9006a73.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-6628538ea9006a73.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-6628538ea9006a73.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-6628538ea9006a73.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-6628538ea9006a73.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-6628538ea9006a73.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-6628538ea9006a73.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-6628538ea9006a73.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-6628538ea9006a73.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-6628538ea9006a73.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-6628538ea9006a73.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-6628538ea9006a73.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-6628538ea9006a73.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-6628538ea9006a73.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-6628538ea9006a73.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-6628538ea9006a73.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-6628538ea9006a73.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-6628538ea9006a73.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-6628538ea9006a73.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-6628538ea9006a73.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-6628538ea9006a73.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-6628538ea9006a73.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-6628538ea9006a73.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-6628538ea9006a73.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-6628538ea9006a73.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-6628538ea9006a73.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-6628538ea9006a73.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-6628538ea9006a73.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-6628538ea9006a73.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-6628538ea9006a73.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-6628538ea9006a73.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-6628538ea9006a73.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-6628538ea9006a73.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-6628538ea9006a73.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-6628538ea9006a73.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-6628538ea9006a73.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-6628538ea9006a73.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-6628538ea9006a73.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/api/v1/route-6628538ea9006a73.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-6628538ea9006a73.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-6628538ea9006a73.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-6628538ea9006a73.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-6628538ea9006a73.js +0 -1
  1150. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-6628538ea9006a73.js +0 -1
  1151. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-6628538ea9006a73.js +0 -1
  1152. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-6628538ea9006a73.js +0 -1
  1153. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-6628538ea9006a73.js +0 -1
  1154. package/app/.next-cli-build/static/chunks/app/api/version/route-6628538ea9006a73.js +0 -1
  1155. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-6628538ea9006a73.js +0 -1
  1156. package/app/.next-cli-build/static/chunks/app/api/version/update/route-6628538ea9006a73.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-6628538ea9006a73.js +0 -1
  1158. package/app/.next-cli-build/static/chunks/app/page-6628538ea9006a73.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-6628538ea9006a73.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-6628538ea9006a73.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-6628538ea9006a73.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-6628538ea9006a73.js +0 -1
  1163. package/app/.next-cli-build/static/css/a6043818f0c48bb5.css +0 -1
  1164. /package/app/.next-cli-build/static/{PhQj0fhRg7SYaQsRbQtB4 → j60LfKWDboRib8fA8bGf6}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=6606,exports.ids=[6606],exports.modules={17085:(a,b,c)=>{c.d(b,{PY:()=>x,exchangeTokens:()=>t,extractCodexAccountInfo:()=>n,fetchKiroProfileArn:()=>m,kP:()=>s,sO:()=>r,Su:()=>v,Re:()=>u}),c(30369);var d=c(55511),e=c.n(d),f=c(13808),g=c(92990),h=c(95540);function i(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function j(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function k(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function l(a){let b=k(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function m(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function n(a){let b=k(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}let o=null;async function p(){if(o)return o;try{let a=await fetch(h.oT.discoveryUrl,{headers:{Accept:"application/json"}});if(a.ok){let b=await a.json();return o={authorizeUrl:i(b.authorization_endpoint,"authorization_endpoint"),tokenUrl:i(b.token_endpoint,"token_endpoint")}}}catch{}return o={authorizeUrl:h.oT.authorizeUrl,tokenUrl:h.oT.tokenUrl}}let q={claude:{config:g.OV,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d)=>{let e=new URLSearchParams({code:"true",client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c});return`${a.authorizeUrl}?${e.toString()}`},exchangeToken:async(a,b,c,d,e)=>{let f=b,g="";if(f.includes("#")){let a=f.split("#");f=a[0],g=a[1]||""}let h=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code:f,state:g||e,grant_type:"authorization_code",client_id:a.clientId,redirect_uri:c,code_verifier:d})});if(!h.ok){let a=await h.text();throw Error(`Token exchange failed: ${a}`)}return await h.json()},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope})},codex:{config:g.DI,flowType:"authorization_code_pkce",fixedPort:g.DI.fixedPort,callbackPath:g.DI.callbackPath,buildAuthUrl:(a,b,c,d)=>{let e=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,...a.extraParams,state:c}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${e}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b=n(a.id_token),c={accessToken:a.access_token,refreshToken:a.refresh_token,idToken:a.id_token,expiresIn:a.expires_in,lastRefreshAt:new Date().toISOString()},d=b.email||l(a.access_token);return d&&(c.email=d),(b.chatgptAccountId||b.chatgptPlanType)&&(c.providerSpecificData={chatgptAccountId:b.chatgptAccountId,chatgptPlanType:b.chatgptPlanType}),c}},xai:{config:h.oT,flowType:"authorization_code_pkce",fixedPort:h.oT.loopbackPort,callbackPath:h.oT.callbackPath,pkceVerifierBytes:h.Ue,prepareConfig:async a=>{let b=await p();return{...a,authorizeUrl:b.authorizeUrl,tokenUrl:b.tokenUrl}},buildAuthUrl:(a,b,c,d)=>{let f=e().randomBytes(16).toString("hex"),g=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c,nonce:f,plan:"generic",referrer:"cli-proxy-api"}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${g}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`xAI token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b={accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope},c=j(a.id_token);return c&&(b.email=c),a.id_token&&(b.providerSpecificData={idToken:a.id_token}),b}},"grok-cli":{config:g.qp,flowType:"device_code",requestDeviceCode:async a=>{let b=new URLSearchParams({client_id:a.clientId,scope:a.scope});a.referrer&&b.set("referrer",a.referrer);let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:b});if(!c.ok){let a=await c.text();throw Error(`Grok CLI device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch("https://cli-chat-proxy.grok.com/v1/user",{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)","x-xai-token-auth":"xai-grok-cli","x-grok-client-version":"0.2.93"}});if(b.ok)return{user:await b.json()}}catch{}return{user:null}},mapTokens:(a,b)=>{let c=j(a.id_token)||l(a.access_token)||b?.user?.email||null,d=b?.user?.userId||b?.user?.principalId||null,e=[b?.user?.firstName,b?.user?.lastName].filter(Boolean).join(" ").trim()||null,f=a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null;return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:f,scope:a.scope,email:c||void 0,displayName:e||void 0,providerSpecificData:{authMethod:"device_code",idToken:a.id_token||null,email:c||null,userId:d,hasGrokCodeAccess:b?.user?.hasGrokCodeAccess??null,subscriptionTier:b?.user?.subscriptionTier??null}}}},"frontier-for-all":{config:g.V1,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope})});if(!b.ok){let a=await b.text();throw Error(`Frontier device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.deviceTokenUrl||a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch(g.V1.modelsUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json"}});if(b.ok){let a=await b.json();return{model:a?.data?.[0]||null}}}catch{}return{model:null}},mapTokens:(a,b)=>{let c=b?.model||null,d=c?.frontier||{};return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null,scope:a.scope,displayName:c?.id?`Frontier — ${c.id}`:void 0,providerSpecificData:{authMethod:"device_code",resolvedModel:c?.id||null,upstreamProvider:d.provider||null,eligible:d.eligible??null}}}},"gemini-cli":{config:g.LT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b=await fetch(`${g.LT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`}}),c=b.ok?await b.json():{},d="";try{let b=await fetch("https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",{method:"POST",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"},body:JSON.stringify({metadata:(0,g.cD)(),mode:1})});if(b.ok){let a=await b.json();d=a.cloudaicompanionProject?.id||a.cloudaicompanionProject||""}}catch(a){console.log("Failed to fetch project ID:",a)}return{userInfo:c,projectId:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},antigravity:{config:g.YT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b={Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","User-Agent":g.YT.loadCodeAssistUserAgent,"X-Goog-Api-Client":g.YT.loadCodeAssistApiClient,"Client-Metadata":g.YT.loadCodeAssistClientMetadata,"x-request-source":"local"},c=(0,g.cD)(),d=await fetch(`${g.YT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`,"x-request-source":"local"}}),e=d.ok?await d.json():{},f="",h="legacy-tier";try{let a=await fetch(g.YT.loadCodeAssistEndpoint,{method:"POST",headers:b,body:JSON.stringify({metadata:c})});if(a.ok){let b=await a.json();if(f=b.cloudaicompanionProject?.id||b.cloudaicompanionProject||"",Array.isArray(b.allowedTiers)){for(let a of b.allowedTiers)if(a.isDefault&&a.id){h=a.id.trim();break}}}}catch(a){console.log("Failed to load code assist:",a)}return f&&(async()=>{for(let a=0;a<10;a++){try{let a=await fetch(g.YT.onboardUserEndpoint,{method:"POST",headers:b,body:JSON.stringify({tierId:h,metadata:c})});if(a.ok){let b=await a.json();if(!0===b.done)break}}catch(a){break}await new Promise(a=>setTimeout(a,5e3))}})().catch(()=>{}),{userInfo:e,projectId:f}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},iflow:{config:g.ZL,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({loginMethod:a.extraParams.loginMethod,type:a.extraParams.type,redirect:b,state:c,client_id:a.clientId});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=Buffer.from(`${a.clientId}:${a.clientSecret}`).toString("base64"),e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",Authorization:`Basic ${d}`},body:new URLSearchParams({grant_type:"authorization_code",code:b,redirect_uri:c,client_id:a.clientId,client_secret:a.clientSecret})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},postExchange:async a=>{let b=await fetch(`${g.ZL.userInfoUrl}?accessToken=${encodeURIComponent(a.access_token)}`,{headers:{Accept:"application/json"}});if(!b.ok){let a=await b.text();throw Error(`Failed to fetch user info: ${a}`)}let c=await b.json();if(!c.success)throw Error(`User info request failed: ${c.message||"Unknown error"}`);let d=c.data||{};if(!d.apiKey||""===d.apiKey.trim())throw Error("Empty API key returned from iFlow");if(!(d.email?.trim()||d.phone?.trim()))throw Error("Missing account email/phone in user info");return{userInfo:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,apiKey:b?.userInfo?.apiKey,email:b?.userInfo?.email||b?.userInfo?.phone,displayName:b?.userInfo?.nickname||b?.userInfo?.name})},qoder:{config:g.hF,flowType:"device_code",requestDeviceCode:async a=>{let{QoderService:b}=await c.e(6769).then(c.bind(c,91531)),d=new b().initiateDeviceFlow();return{device_code:d.nonce,user_code:d.nonce.slice(0,8).toUpperCase(),verification_uri:a.loginUrl,verification_uri_complete:d.verificationUriComplete,expires_in:300,interval:2,codeVerifier:d.codeVerifier,_qoderNonce:d.nonce,_qoderMachineId:d.machineId}},pollToken:async(a,b,d,e)=>{let f,{QoderService:g}=await c.e(6769).then(c.bind(c,91531)),h=new g,i=b||e?._qoderNonce,j=d||e?._qoderVerifier;if(!i||!j)return{ok:!1,data:{error:"invalid_request",error_description:"Missing nonce/verifier"}};try{f=await h.pollDeviceToken({nonce:i,codeVerifier:j})}catch(a){return{ok:!1,data:{error:"poll_failed",error_description:a.message}}}if("pending"===f.status)return{ok:!1,data:{error:"authorization_pending"}};let k=await h.fetchUserInfo(f.accessToken),l=Math.max(86400,Math.floor((f.expireTime-Date.now())/1e3));return{ok:!0,data:{access_token:f.accessToken,refresh_token:f.refreshToken,expires_in:l,_qoderUserId:f.userId,_qoderMachineId:e?._qoderMachineId||"",_qoderName:k.name,_qoderEmail:k.email,_qoderOrganizationId:k.organizationId}}},mapTokens:a=>{let b=(a._qoderEmail||"").trim(),c=(a._qoderName||"").trim()||null,d=a._qoderUserId||"",e=b||(d?`qoder-user-${d}`:null);return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,email:e,displayName:c,providerSpecificData:{authMethod:"device",userId:d,machineId:a._qoderMachineId||"",organizationId:a._qoderOrganizationId||""}}}},qwen:{config:g.Hp,flowType:"device_code",requestDeviceCode:async(a,b)=>{let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope,code_challenge:b,code_challenge_method:a.codeChallengeMethod})});if(!c.ok){let a=await c.text();throw Error(`Device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b,code_verifier:c})});return{ok:d.ok,data:await d.json()}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{resourceUrl:a.resource_url}})},github:{config:g.Nu,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scopes})});if(!b.ok){let a=await b.text();throw Error(`Device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,device_code:b,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});try{c=await d.json()}catch(a){c={error:"invalid_response",error_description:await d.text()}}return{ok:d.ok,data:c}},postExchange:async a=>{let b=await fetch(g.Nu.copilotTokenUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}}),c=b.ok?await b.json():{},d=await fetch(g.Nu.userInfoUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}});return{copilotToken:c,userInfo:d.ok?await d.json():{}}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,name:b?.userInfo?.login||b?.userInfo?.name,displayName:b?.userInfo?.name||b?.userInfo?.login,email:b?.userInfo?.email||null,providerSpecificData:{copilotToken:b?.copilotToken?.token,copilotTokenExpiresAt:b?.copilotToken?.expires_at,githubUserId:b?.userInfo?.id,githubLogin:b?.userInfo?.login,githubName:b?.userInfo?.name,githubEmail:b?.userInfo?.email}})},kiro:{config:g.Tx,flowType:"device_code",requestDeviceCode:async(a,b,c={})=>{let d=("string"==typeof c.region?c.region.trim():"")||"us-east-1";(0,g.S6)(d);let e=("string"==typeof c.startUrl?c.startUrl.trim():"")||a.startUrl,f="idc"===c.authMethod?"idc":"builder-id",h=`https://oidc.${d}.amazonaws.com/client/register`,i=`https://oidc.${d}.amazonaws.com/device_authorization`,j=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientName:a.clientName,clientType:a.clientType,scopes:a.scopes,grantTypes:a.grantTypes,issuerUrl:a.issuerUrl})});if(!j.ok){let a=await j.text();throw Error(`Client registration failed: ${a}`)}let k=await j.json(),l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:k.clientId,clientSecret:k.clientSecret,startUrl:e})});if(!l.ok){let a=await l.text();throw Error(`Device authorization failed: ${a}`)}let m=await l.json();return{device_code:m.deviceCode,user_code:m.userCode,verification_uri:m.verificationUri,verification_uri_complete:m.verificationUriComplete,expires_in:m.expiresIn,interval:m.interval||5,_clientId:k.clientId,_clientSecret:k.clientSecret,_region:d,_authMethod:f,_startUrl:e}},pollToken:async(a,b,c,d)=>{let e,f=d?._region||"us-east-1";(0,g.S6)(f);let h=`https://oidc.${f}.amazonaws.com/token`,i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:d?._clientId,clientSecret:d?._clientSecret,deviceCode:b,grantType:"urn:ietf:params:oauth:grant-type:device_code"})});try{e=await i.json()}catch(a){e={error:"invalid_response",error_description:await i.text()}}return e.accessToken?{ok:!0,data:{access_token:e.accessToken,refresh_token:e.refreshToken,expires_in:e.expiresIn,profile_arn:e?.profileArn||null,_clientId:d?._clientId,_clientSecret:d?._clientSecret,_region:d?._region,_authMethod:d?._authMethod,_startUrl:d?._startUrl}}:{ok:!1,data:{error:e.error||"authorization_pending",error_description:e.error_description||e.message}}},mapTokens:a=>{let b=l(a.access_token);return{accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,email:b,providerSpecificData:{profileArn:a?.profile_arn||null,clientId:a._clientId,clientSecret:a._clientSecret,region:a._region||"us-east-1",authMethod:a._authMethod||"builder-id",startUrl:a._startUrl||g.Tx.startUrl}}}},cursor:{config:g.WN,flowType:"authorization_code_pkce",buildAuthUrl:()=>null,mapTokens:a=>a},kimi:{config:g.aV,flowType:"device_code",requestDeviceCode:async a=>{let{buildKimiHeaders:b}=await Promise.resolve().then(c.bind(c,28730)),d=e().randomUUID(),f={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...b(d)},g=await fetch(a.deviceCodeUrl,{method:"POST",headers:f,body:new URLSearchParams({client_id:a.clientId})});if(!g.ok){let a=await g.text();throw Error(`Device code request failed: ${a}`)}let h=await g.json(),i=a.authorizeDeviceUrl||"https://www.kimi.com/code/authorize_device";return{device_code:h.device_code,user_code:h.user_code,verification_uri:h.verification_uri||i,verification_uri_complete:h.verification_uri_complete||`${i}?user_code=${h.user_code}`,expires_in:h.expires_in,interval:h.interval||5,_kimiDeviceId:d}},pollToken:async(a,b,d,e)=>{let f,{buildKimiHeaders:g}=await Promise.resolve().then(c.bind(c,28730)),h=e?._kimiDeviceId,i={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...g(h)},j=await fetch(a.tokenUrl,{method:"POST",headers:i,body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b})});try{f=await j.json()}catch{f={error:"invalid_response",error_description:"non-json token response"}}return"authorization_pending"===f.error||"slow_down"===f.error?{ok:!0,data:f}:(f.access_token&&h&&(f._kimiDeviceId=h),{ok:j.ok||!!f.access_token||!!f.error,data:f})},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{authMethod:"device_code",...a._kimiDeviceId?{deviceId:a._kimiDeviceId}:{}}})},kilocode:{config:g.MZ,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.initiateUrl,{method:"POST",headers:{"Content-Type":"application/json"}});if(!b.ok){if(429===b.status)throw Error("Too many pending authorization requests. Please try again later.");let a=await b.text();throw Error(`Device auth initiation failed: ${a}`)}let c=await b.json();return{device_code:c.code,user_code:c.code,verification_uri:c.verificationUrl,verification_uri_complete:c.verificationUrl,expires_in:c.expiresIn||300,interval:3}},pollToken:async(a,b)=>{let c=await fetch(`${a.pollUrlBase}/${b}`);if(202===c.status)return{ok:!1,data:{error:"authorization_pending"}};if(403===c.status)return{ok:!1,data:{error:"access_denied",error_description:"Authorization denied by user"}};if(410===c.status)return{ok:!1,data:{error:"expired_token",error_description:"Authorization code expired"}};if(!c.ok)return{ok:!1,data:{error:"poll_failed",error_description:`Poll failed: ${c.status}`}};let d=await c.json();if("approved"===d.status&&d.token){let b=null;try{let c=await fetch(`${a.apiBaseUrl}/api/profile`,{headers:{Authorization:`Bearer ${d.token}`}});if(c.ok){let a=await c.json();b=a.organizations?.[0]?.id||null}}catch{}return{ok:!0,data:{access_token:d.token,_userEmail:d.userEmail,_orgId:b}}}return{ok:!1,data:{error:"authorization_pending"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:null,expiresIn:null,email:a._userEmail,...a._orgId?{providerSpecificData:{orgId:a._orgId}}:{}})},cline:{config:g.lB,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenExchangeUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Cline token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},clinepass:{config:g.w1,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`ClinePass token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},gitlab:{config:g.f7,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d,e={})=>{let f=e.baseUrl||a.defaultBaseUrl,g=new URLSearchParams({client_id:e.clientId||"",redirect_uri:b,response_type:"code",state:c,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod});return`${f}${a.authorizeUrlPath}?${g.toString()}`},exchangeToken:async(a,b,c,d,e,f={})=>{let g=f.baseUrl||a.defaultBaseUrl,h=f.clientId||"",i=f.clientSecret||"",j=new URLSearchParams({client_id:h,grant_type:"authorization_code",code:b,redirect_uri:c,code_verifier:d});i&&j.set("client_secret",i);let k=await fetch(`${g}${a.tokenUrlPath}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:j.toString()});if(!k.ok)throw Error(`GitLab token exchange failed: ${await k.text()}`);let l=await k.json(),m=await fetch(`${g}${a.userInfoUrlPath}`,{headers:{Authorization:`Bearer ${l.access_token}`}}),n=m.ok?await m.json():{};return{...l,_user:n,_baseUrl:g,_clientId:h}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,providerSpecificData:{username:a._user?.username||"",email:a._user?.email||a._user?.public_email||"",name:a._user?.name||"",baseUrl:a._baseUrl,clientId:a._clientId,authKind:"oauth"}})},"codebuddy-cn":{config:g.Nl,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(`${a.stateUrl}?platform=${a.platform}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-Product":"SaaS"},body:"{}"});if(!b.ok)throw Error(`CodeBuddy state request failed: ${await b.text()}`);let c=await b.json();if(0!==c.code||!c.data?.state||!c.data?.authUrl)throw Error(`CodeBuddy state error: ${c.msg||"missing state/authUrl"}`);return{device_code:c.data.state,verification_uri:c.data.authUrl,user_code:"",interval:a.pollInterval/1e3,_isCodeBuddy:!0}},pollToken:async(a,b)=>{let c=await fetch(`${a.tokenUrl}?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-No-Enterprise-Id":"true","X-No-Department-Info":"true","X-Product":"SaaS"}});if(!c.ok)return{ok:!1,data:{error:"request_failed"}};let d=await c.json();return 0===d.code&&d.data?.accessToken?{ok:!0,data:{access_token:d.data.accessToken,refresh_token:d.data.refreshToken||"",token_type:d.data.tokenType||"Bearer",expires_in:d.data.expiresIn}}:11217===d.code?{ok:!0,data:{error:"authorization_pending"}}:{ok:!1,data:{error:d.msg||"unknown_error"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in||86400,providerSpecificData:{}})},kimchi:{config:g.Td,flowType:"browser_token",buildAuthUrl:(a,b,c)=>{let d=(a.webAppUrl||"https://app.kimchi.dev").replace(/\/+$/,""),e=new URLSearchParams({callback:b,state:c});return`${d}/cli-auth?${e.toString()}`},exchangeToken:async(a,b)=>{let c=String(b||"").trim();if(!c)throw Error("Missing Kimchi token");let d=a.validationUrl||"https://api.cast.ai/v1/llm/openai/supported-providers",e=await fetch(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});if(!e.ok)throw Error(`Kimchi token validation failed: ${e.status}`);let f={};if(a.userInfoUrl)try{let b=await fetch(a.userInfoUrl,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});b.ok&&(f=await b.json())}catch{f={}}return{access_token:c,token_type:"Bearer",_kimchiUser:f}},mapTokens:a=>{let b=a._kimchiUser||{},c=b.id?String(b.id):"",d=b.username||"",e=b.email||(c?`kimchi-user-${c}`:null);return{accessToken:a.access_token,refreshToken:null,email:e,displayName:b.name||d||null,providerSpecificData:{authMethod:"browser_token",userId:c,username:d}}}}};function r(a){let b=q["kimi-coding"===a?"kimi":a];if(!b)throw Error(`Unknown provider: ${a}`);return b}async function s(a,b,c){let d=r(a),e=d.prepareConfig?await d.prepareConfig(d.config,c||{}):d.config,{codeVerifier:g,codeChallenge:h,state:i}=(0,f.lz)(d.pkceVerifierBytes);return{authUrl:"device_code"===d.flowType?null:"authorization_code_pkce"===d.flowType?d.buildAuthUrl(e,b,i,h,c||{}):d.buildAuthUrl(e,b,i,void 0,c||{}),state:i,codeVerifier:g,codeChallenge:h,redirectUri:b,flowType:d.flowType,fixedPort:d.fixedPort,callbackPath:d.callbackPath||"/callback"}}async function t(a,b,c,d,e,f){let g=r(a),h=g.prepareConfig?await g.prepareConfig(g.config,f||{}):g.config,i=await g.exchangeToken(h,b,c,d,e,f||{}),j=null;return g.postExchange&&(j=await g.postExchange(i)),g.mapTokens(i,j)}async function u(a,b,c){let d=r(a);if("device_code"!==d.flowType)throw Error(`Provider ${a} does not support device code flow`);return await d.requestDeviceCode(d.config,b,c||{})}async function v(a,b,c,d){let e=r(a);if("device_code"!==e.flowType)throw Error(`Provider ${a} does not support device code flow`);let f=await e.pollToken(e.config,b,c,d);if(f.ok)if(f.data.access_token){let b=null;e.postExchange&&(b=await e.postExchange(f.data));let c=e.mapTokens(f.data,b);if("kiro"===a&&!c.providerSpecificData?.profileArn){let a=await m(c.accessToken);a&&(c.providerSpecificData.profileArn=a)}return{success:!0,tokens:c}}else if("authorization_pending"===f.data.error||"slow_down"===f.data.error)return{success:!1,error:f.data.error,errorDescription:f.data.error_description||f.data.message,pending:"authorization_pending"===f.data.error};else return{success:!1,error:f.data.error||"no_access_token",errorDescription:f.data.error_description||f.data.message||"No access token received"};return{success:!1,error:f.data.error,errorDescription:f.data.error_description}}let w=!1;async function x(){if(!w){w=!0;try{let{getProviderConnections:a,updateProviderConnection:b}=await Promise.resolve().then(c.bind(c,89718));for(let c of(await a()).filter(a=>{if("codex"!==a.provider||"oauth"!==a.authType||!a.idToken)return!1;let b=!!a.email,c=!!a.providerSpecificData?.chatgptAccountId;return!b||!c})){let a=n(c.idToken);if(!a.email&&!a.chatgptAccountId)continue;let d={};!c.email&&a.email&&(d.email=a.email),(a.chatgptAccountId||a.chatgptPlanType)&&(d.providerSpecificData={...c.providerSpecificData||{},chatgptAccountId:a.chatgptAccountId,chatgptPlanType:a.chatgptPlanType}),Object.keys(d).length&&await b(c.id,d)}}catch(a){w=!1,console.log("backfillCodexEmails failed:",a?.message||a)}}}},27335:(a,b,c)=>{c.d(b,{Xg:()=>s,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>u,ez:()=>o,ux:()=>n,OA:()=>p,kt:()=>q,KC:()=>t,SM:()=>i});var d=c(4630),e=c(45502),f=c(39141),g=c(6595);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}let k=new Set(["kr","kiro"]),l=new Map;for(let[a,b]of Object.entries(f.vq)){if(!Array.isArray(b))continue;let c=new Map,d=new Map;for(let e of b)if(e?.id!=null&&(c.set(e.id,e),k.has(a))){let a=(0,g.Kq)(e.id);a!==e.id&&d.set(a,e)}l.set(a,{exact:c,normalized:d})}function m(a,b,c){if(!a)return;let d=l.get(c);if(d){let a=d.exact.get(b);return a||(d.normalized.size?d.normalized.get(b):void 0)}let e=a.find(a=>a.id===b);if(e)return e;if(!k.has(c))return;let f=(0,g.Kq)(b);if(f!==b)return a.find(a=>a.id===f)}function n(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.gr)(m(d,b,c)):null}function o(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.ec)(m(d,b,c)):null}function p(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];if(!d)return null;let e=m(d,b,c);return e?.kind||e?.type||null}function q(a,b){let c=s[a]||a,d="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,e=d?d[0]:"",g=e?b.slice(0,d.index).trim():b,i=m(f.vq[c]||f.vq[a],g,c),j=i?.upstreamModelId||i?.id;if(j){let a=j.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?j.slice(0,a.index).trim():j)+(e||b)}return"cx"===c&&"string"==typeof g&&g.endsWith(h)?g.slice(0,-h.length)+e:g+e}let r=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),s=Object.fromEntries(Object.keys(d.xq).map(a=>[a,r[a]||a]));function t(a){let b=s[a]||a;return f.vq[b]||[]}function u(a,b){return(0,g.g5)(m(f.vq[a],b,a))}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(5129)},49263:(a,b,c)=>{c.d(b,{Bl:()=>k,Ib:()=>e,Qo:()=>g,S5:()=>m,hk:()=>f,kJ:()=>l});var d=c(87252);function e(a,b=Date.now()){let c;if(!a)return null;let d="string"==typeof a?a:JSON.stringify(a);if(c=d.match(/"?retry[_-]?delay"?\s*[:=]\s*"?\s*([0-9]+(?:\.[0-9]+)?)\s*s/i))return Math.round(1e3*parseFloat(c[1]));if(c=d.match(/"?(?:resets?_at|x-?ratelimit-?reset|ratelimit-?reset)"?\s*[:=]\s*"?\s*([0-9]{9,})/i)){let a=parseInt(c[1],10);a<1e12&&(a*=1e3);let d=a-b;return d>0?d:null}return(c=d.match(/"?retry[_-]?after"?\s*[:=]\s*"?\s*([0-9]+)\b/i))?1e3*parseInt(c[1],10):null}function f(a,b,c=0){let g=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",h=g.includes("invalid_encrypted_content")||g.includes("encrypted content")&&(g.includes("could not be verified")||g.includes("could not be decrypted or parsed"));if(400===a&&h)return{shouldFallback:!1,cooldownMs:0};if(d.t2.find(b=>b.status===a&&!1===b.fallback))return{shouldFallback:!1,cooldownMs:0,newBackoffLevel:c};for(let f of d.t2)if(f.pattern&&g&&f.pattern.test(g)||f.text&&g&&g.includes(f.text)||f.status&&f.status===a){if(f.permanent||!1===f.fallback)return{shouldFallback:!1,cooldownMs:0};if(f.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a,b){let c=function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),f=e(b);return null!=f&&f>0?Math.min(Math.max(f,c),d.fh):c}(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:f.cooldownMs}}return{shouldFallback:!1,cooldownMs:0}}function g(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let h="modelLock_",i=`${h}__all`;function j(a){return a?`${h}${a}`:i}function k(a,b){let c=Date.now(),d=a=>{if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>c};return d(a[j(b)])||d(a[i])}function l(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(h)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function m(a,b){return{[j(a)]:new Date(Date.now()+b).toISOString()}}},67677:(a,b,c)=>{c.d(b,{Gh:()=>k,IF:()=>p,O9:()=>g,OF:()=>o,WL:()=>h,_6:()=>j,_L:()=>m,bC:()=>n,f5:()=>l,lm:()=>f});var d=c(19956);let e="1"===process.env.LOG_USAGE_VERBOSE,f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[d.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"]},e=c[b];b===d.h.GEMINI_CLI||b===d.h.ANTIGRAVITY?e=c[d.h.GEMINI]:b===d.h.OPENAI_RESPONSE?e=c[d.h.OPENAI_RESPONSES]:e||(e=c.default);let f={};for(let b of e)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)},d=(a,c)=>{if(null==c||""===c)return;let d=Number(c);Number.isFinite(d)&&d>=0&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),d("cost_usd",a?.cost_usd),d("cost_in_usd",a?.cost_in_usd),d("cost_in_usd_ticks",a?.cost_in_usd_ticks),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){let b;if(!a||"object"!=typeof a||Array.isArray(a))return null;let c=a=>Number.isFinite(Number(a))?Number(a):0,d=c(a.completion_tokens??a.output_tokens),e=c(a.reasoning_tokens),f=c(a.cache_creation_input_tokens??a.prompt_tokens_details?.cache_creation_tokens),g=c(a.prompt_tokens??a.input_tokens);void 0===a.cached_tokens&&(void 0!==a.cache_read_input_tokens||void 0!==a.cache_creation_input_tokens)?g=g+(b=c(a.cache_read_input_tokens))+f:b=c(a.cached_tokens??a.prompt_tokens_details?.cached_tokens);let h={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,cached_tokens:b,cache_creation_input_tokens:f},i=b=>{if(null===a[b]||void 0===a[b]||""===a[b])return;let c=Number(a[b]);Number.isFinite(c)&&c>=0&&(h[b]=c)};return i("cost_usd"),i("cost_in_usd"),i("cost_in_usd_ticks"),e>0&&(h.reasoning_tokens=e),h}function k(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function l(a){if(!a||"object"!=typeof a)return null;if("message_start"===a.type&&a.message?.usage&&"object"==typeof a.message.usage){let b=a.message.usage;return i({prompt_tokens:b.input_tokens||0,completion_tokens:b.output_tokens||0,cache_read_input_tokens:b.cache_read_input_tokens,cache_creation_input_tokens:b.cache_creation_input_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks})}if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function m(a,b){if(!a)return b||null;if(!b)return a;let c={...a};for(let[a,d]of Object.entries(b))"number"==typeof d&&Number.isFinite(d)?c[a]=Math.max("number"==typeof c[a]?c[a]:0,d):d&&"object"==typeof d&&(c[a]=d);return c}function n(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}function o(a,b,c=d.h.OPENAI){var e,f;return e=n(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===d.h.CLAUDE?g({input_tokens:e,output_tokens:f,estimated:!0}):g({prompt_tokens:e,completion_tokens:f,total_tokens:e+f,estimated:!0})}function p(a,b,c=null,d=null,g=null){if(!b||"object"!=typeof b||!e)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=d?d.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let m=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;m&&(l+=` | cache_read=${m}`);let n=b.cache_creation_input_tokens;n&&(l+=` | cache_create=${n}`);let o=b.reasoning_tokens;o&&(l+=` | reasoning=${o}`),console.log(l)}},89865:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(87252);function e(a,b,c){let e;return new Response(JSON.stringify((e=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:e.type,code:c??e.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c,e="";try{e=await a.text()}catch{e=""}let g="";try{let a=JSON.parse(e);g=a.error?.message||a.message||a.error||e,c=a.error?.code||a.code}catch{g=e}let h=("string"==typeof g?g:JSON.stringify(g))||d.O[a.status]||`Upstream error: ${a.status}`;if(b&&"function"==typeof b.parseError)try{let d=b.parseError(a,e);if(d&&"object"==typeof d){let b=d.message&&d.message!==e?d.message:h;return{statusCode:d.status||a.status,message:b,resetsAtMs:d.resetsAtMs,code:d.code??c}}}catch{}return{statusCode:a.status,message:h,code:c}}function g(a,b,c,d){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b,d)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
1
+ "use strict";exports.id=7281,exports.ids=[7281],exports.modules={17085:(a,b,c)=>{c.d(b,{PY:()=>x,exchangeTokens:()=>t,extractCodexAccountInfo:()=>n,fetchKiroProfileArn:()=>m,kP:()=>s,sO:()=>r,Su:()=>v,Re:()=>u}),c(30369);var d=c(55511),e=c.n(d),f=c(13808),g=c(92990),h=c(73159);function i(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function j(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function k(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function l(a){let b=k(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function m(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function n(a){let b=k(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}let o=null;async function p(){if(o)return o;try{let a=await fetch(h.oT.discoveryUrl,{headers:{Accept:"application/json"}});if(a.ok){let b=await a.json();return o={authorizeUrl:i(b.authorization_endpoint,"authorization_endpoint"),tokenUrl:i(b.token_endpoint,"token_endpoint")}}}catch{}return o={authorizeUrl:h.oT.authorizeUrl,tokenUrl:h.oT.tokenUrl}}let q={claude:{config:g.OV,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d)=>{let e=new URLSearchParams({code:"true",client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c});return`${a.authorizeUrl}?${e.toString()}`},exchangeToken:async(a,b,c,d,e)=>{let f=b,g="";if(f.includes("#")){let a=f.split("#");f=a[0],g=a[1]||""}let h=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code:f,state:g||e,grant_type:"authorization_code",client_id:a.clientId,redirect_uri:c,code_verifier:d})});if(!h.ok){let a=await h.text();throw Error(`Token exchange failed: ${a}`)}return await h.json()},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope})},codex:{config:g.DI,flowType:"authorization_code_pkce",fixedPort:g.DI.fixedPort,callbackPath:g.DI.callbackPath,buildAuthUrl:(a,b,c,d)=>{let e=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,...a.extraParams,state:c}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${e}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b=n(a.id_token),c={accessToken:a.access_token,refreshToken:a.refresh_token,idToken:a.id_token,expiresIn:a.expires_in,lastRefreshAt:new Date().toISOString()},d=b.email||l(a.access_token);return d&&(c.email=d),(b.chatgptAccountId||b.chatgptPlanType)&&(c.providerSpecificData={chatgptAccountId:b.chatgptAccountId,chatgptPlanType:b.chatgptPlanType}),c}},xai:{config:h.oT,flowType:"authorization_code_pkce",fixedPort:h.oT.loopbackPort,callbackPath:h.oT.callbackPath,pkceVerifierBytes:h.Ue,prepareConfig:async a=>{let b=await p();return{...a,authorizeUrl:b.authorizeUrl,tokenUrl:b.tokenUrl}},buildAuthUrl:(a,b,c,d)=>{let f=e().randomBytes(16).toString("hex"),g=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c,nonce:f,plan:"generic",referrer:"cli-proxy-api"}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${g}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`xAI token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b={accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope},c=j(a.id_token);return c&&(b.email=c),a.id_token&&(b.providerSpecificData={idToken:a.id_token}),b}},"grok-cli":{config:g.qp,flowType:"device_code",requestDeviceCode:async a=>{let b=new URLSearchParams({client_id:a.clientId,scope:a.scope});a.referrer&&b.set("referrer",a.referrer);let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:b});if(!c.ok){let a=await c.text();throw Error(`Grok CLI device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch("https://cli-chat-proxy.grok.com/v1/user",{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","User-Agent":"grok-pager/0.2.93 grok-shell/0.2.93 (linux; x86_64)","x-xai-token-auth":"xai-grok-cli","x-grok-client-version":"0.2.93"}});if(b.ok)return{user:await b.json()}}catch{}return{user:null}},mapTokens:(a,b)=>{let c=j(a.id_token)||l(a.access_token)||b?.user?.email||null,d=b?.user?.userId||b?.user?.principalId||null,e=[b?.user?.firstName,b?.user?.lastName].filter(Boolean).join(" ").trim()||null,f=a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null;return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:f,scope:a.scope,email:c||void 0,displayName:e||void 0,providerSpecificData:{authMethod:"device_code",idToken:a.id_token||null,email:c||null,userId:d,hasGrokCodeAccess:b?.user?.hasGrokCodeAccess??null,subscriptionTier:b?.user?.subscriptionTier??null}}}},"frontier-for-all":{config:g.V1,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope})});if(!b.ok){let a=await b.text();throw Error(`Frontier device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.deviceTokenUrl||a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch(g.V1.modelsUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json"}});if(b.ok){let a=await b.json();return{model:a?.data?.[0]||null}}}catch{}return{model:null}},mapTokens:(a,b)=>{let c=b?.model||null,d=c?.frontier||{};return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null,scope:a.scope,displayName:c?.id?`Frontier — ${c.id}`:void 0,providerSpecificData:{authMethod:"device_code",resolvedModel:c?.id||null,upstreamProvider:d.provider||null,eligible:d.eligible??null}}}},"gemini-cli":{config:g.LT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b=await fetch(`${g.LT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`}}),c=b.ok?await b.json():{},d="";try{let b=await fetch("https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",{method:"POST",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"},body:JSON.stringify({metadata:(0,g.cD)(),mode:1})});if(b.ok){let a=await b.json();d=a.cloudaicompanionProject?.id||a.cloudaicompanionProject||""}}catch(a){console.log("Failed to fetch project ID:",a)}return{userInfo:c,projectId:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},antigravity:{config:g.YT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b={Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","User-Agent":g.YT.loadCodeAssistUserAgent,"X-Goog-Api-Client":g.YT.loadCodeAssistApiClient,"Client-Metadata":g.YT.loadCodeAssistClientMetadata,"x-request-source":"local"},c=(0,g.cD)(),d=await fetch(`${g.YT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`,"x-request-source":"local"}}),e=d.ok?await d.json():{},f="",h="legacy-tier";try{let a=await fetch(g.YT.loadCodeAssistEndpoint,{method:"POST",headers:b,body:JSON.stringify({metadata:c})});if(a.ok){let b=await a.json();if(f=b.cloudaicompanionProject?.id||b.cloudaicompanionProject||"",Array.isArray(b.allowedTiers)){for(let a of b.allowedTiers)if(a.isDefault&&a.id){h=a.id.trim();break}}}}catch(a){console.log("Failed to load code assist:",a)}return f&&(async()=>{for(let a=0;a<10;a++){try{let a=await fetch(g.YT.onboardUserEndpoint,{method:"POST",headers:b,body:JSON.stringify({tierId:h,metadata:c})});if(a.ok){let b=await a.json();if(!0===b.done)break}}catch(a){break}await new Promise(a=>setTimeout(a,5e3))}})().catch(()=>{}),{userInfo:e,projectId:f}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},iflow:{config:g.ZL,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({loginMethod:a.extraParams.loginMethod,type:a.extraParams.type,redirect:b,state:c,client_id:a.clientId});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=Buffer.from(`${a.clientId}:${a.clientSecret}`).toString("base64"),e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",Authorization:`Basic ${d}`},body:new URLSearchParams({grant_type:"authorization_code",code:b,redirect_uri:c,client_id:a.clientId,client_secret:a.clientSecret})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},postExchange:async a=>{let b=await fetch(`${g.ZL.userInfoUrl}?accessToken=${encodeURIComponent(a.access_token)}`,{headers:{Accept:"application/json"}});if(!b.ok){let a=await b.text();throw Error(`Failed to fetch user info: ${a}`)}let c=await b.json();if(!c.success)throw Error(`User info request failed: ${c.message||"Unknown error"}`);let d=c.data||{};if(!d.apiKey||""===d.apiKey.trim())throw Error("Empty API key returned from iFlow");if(!(d.email?.trim()||d.phone?.trim()))throw Error("Missing account email/phone in user info");return{userInfo:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,apiKey:b?.userInfo?.apiKey,email:b?.userInfo?.email||b?.userInfo?.phone,displayName:b?.userInfo?.nickname||b?.userInfo?.name})},qoder:{config:g.hF,flowType:"device_code",requestDeviceCode:async a=>{let{QoderService:b}=await c.e(6769).then(c.bind(c,91531)),d=new b().initiateDeviceFlow();return{device_code:d.nonce,user_code:d.nonce.slice(0,8).toUpperCase(),verification_uri:a.loginUrl,verification_uri_complete:d.verificationUriComplete,expires_in:300,interval:2,codeVerifier:d.codeVerifier,_qoderNonce:d.nonce,_qoderMachineId:d.machineId}},pollToken:async(a,b,d,e)=>{let f,{QoderService:g}=await c.e(6769).then(c.bind(c,91531)),h=new g,i=b||e?._qoderNonce,j=d||e?._qoderVerifier;if(!i||!j)return{ok:!1,data:{error:"invalid_request",error_description:"Missing nonce/verifier"}};try{f=await h.pollDeviceToken({nonce:i,codeVerifier:j})}catch(a){return{ok:!1,data:{error:"poll_failed",error_description:a.message}}}if("pending"===f.status)return{ok:!1,data:{error:"authorization_pending"}};let k=await h.fetchUserInfo(f.accessToken),l=Math.max(86400,Math.floor((f.expireTime-Date.now())/1e3));return{ok:!0,data:{access_token:f.accessToken,refresh_token:f.refreshToken,expires_in:l,_qoderUserId:f.userId,_qoderMachineId:e?._qoderMachineId||"",_qoderName:k.name,_qoderEmail:k.email,_qoderOrganizationId:k.organizationId}}},mapTokens:a=>{let b=(a._qoderEmail||"").trim(),c=(a._qoderName||"").trim()||null,d=a._qoderUserId||"",e=b||(d?`qoder-user-${d}`:null);return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,email:e,displayName:c,providerSpecificData:{authMethod:"device",userId:d,machineId:a._qoderMachineId||"",organizationId:a._qoderOrganizationId||""}}}},qwen:{config:g.Hp,flowType:"device_code",requestDeviceCode:async(a,b)=>{let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope,code_challenge:b,code_challenge_method:a.codeChallengeMethod})});if(!c.ok){let a=await c.text();throw Error(`Device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b,code_verifier:c})});return{ok:d.ok,data:await d.json()}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{resourceUrl:a.resource_url}})},github:{config:g.Nu,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scopes})});if(!b.ok){let a=await b.text();throw Error(`Device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,device_code:b,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});try{c=await d.json()}catch(a){c={error:"invalid_response",error_description:await d.text()}}return{ok:d.ok,data:c}},postExchange:async a=>{let b=await fetch(g.Nu.copilotTokenUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}}),c=b.ok?await b.json():{},d=await fetch(g.Nu.userInfoUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":g.Nu.apiVersion,"User-Agent":g.Nu.userAgent}});return{copilotToken:c,userInfo:d.ok?await d.json():{}}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,name:b?.userInfo?.login||b?.userInfo?.name,displayName:b?.userInfo?.name||b?.userInfo?.login,email:b?.userInfo?.email||null,providerSpecificData:{copilotToken:b?.copilotToken?.token,copilotTokenExpiresAt:b?.copilotToken?.expires_at,githubUserId:b?.userInfo?.id,githubLogin:b?.userInfo?.login,githubName:b?.userInfo?.name,githubEmail:b?.userInfo?.email}})},kiro:{config:g.Tx,flowType:"device_code",requestDeviceCode:async(a,b,c={})=>{let d=("string"==typeof c.region?c.region.trim():"")||"us-east-1";(0,g.S6)(d);let e=("string"==typeof c.startUrl?c.startUrl.trim():"")||a.startUrl,f="idc"===c.authMethod?"idc":"builder-id",h=`https://oidc.${d}.amazonaws.com/client/register`,i=`https://oidc.${d}.amazonaws.com/device_authorization`,j=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientName:a.clientName,clientType:a.clientType,scopes:a.scopes,grantTypes:a.grantTypes,issuerUrl:a.issuerUrl})});if(!j.ok){let a=await j.text();throw Error(`Client registration failed: ${a}`)}let k=await j.json(),l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:k.clientId,clientSecret:k.clientSecret,startUrl:e})});if(!l.ok){let a=await l.text();throw Error(`Device authorization failed: ${a}`)}let m=await l.json();return{device_code:m.deviceCode,user_code:m.userCode,verification_uri:m.verificationUri,verification_uri_complete:m.verificationUriComplete,expires_in:m.expiresIn,interval:m.interval||5,_clientId:k.clientId,_clientSecret:k.clientSecret,_region:d,_authMethod:f,_startUrl:e}},pollToken:async(a,b,c,d)=>{let e,f=d?._region||"us-east-1";(0,g.S6)(f);let h=`https://oidc.${f}.amazonaws.com/token`,i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:d?._clientId,clientSecret:d?._clientSecret,deviceCode:b,grantType:"urn:ietf:params:oauth:grant-type:device_code"})});try{e=await i.json()}catch(a){e={error:"invalid_response",error_description:await i.text()}}return e.accessToken?{ok:!0,data:{access_token:e.accessToken,refresh_token:e.refreshToken,expires_in:e.expiresIn,profile_arn:e?.profileArn||null,_clientId:d?._clientId,_clientSecret:d?._clientSecret,_region:d?._region,_authMethod:d?._authMethod,_startUrl:d?._startUrl}}:{ok:!1,data:{error:e.error||"authorization_pending",error_description:e.error_description||e.message}}},mapTokens:a=>{let b=l(a.access_token);return{accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,email:b,providerSpecificData:{profileArn:a?.profile_arn||null,clientId:a._clientId,clientSecret:a._clientSecret,region:a._region||"us-east-1",authMethod:a._authMethod||"builder-id",startUrl:a._startUrl||g.Tx.startUrl}}}},cursor:{config:g.WN,flowType:"authorization_code_pkce",buildAuthUrl:()=>null,mapTokens:a=>a},kimi:{config:g.aV,flowType:"device_code",requestDeviceCode:async a=>{let{buildKimiHeaders:b}=await Promise.resolve().then(c.bind(c,28730)),d=e().randomUUID(),f={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...b(d)},g=await fetch(a.deviceCodeUrl,{method:"POST",headers:f,body:new URLSearchParams({client_id:a.clientId})});if(!g.ok){let a=await g.text();throw Error(`Device code request failed: ${a}`)}let h=await g.json(),i=a.authorizeDeviceUrl||"https://www.kimi.com/code/authorize_device";return{device_code:h.device_code,user_code:h.user_code,verification_uri:h.verification_uri||i,verification_uri_complete:h.verification_uri_complete||`${i}?user_code=${h.user_code}`,expires_in:h.expires_in,interval:h.interval||5,_kimiDeviceId:d}},pollToken:async(a,b,d,e)=>{let f,{buildKimiHeaders:g}=await Promise.resolve().then(c.bind(c,28730)),h=e?._kimiDeviceId,i={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...g(h)},j=await fetch(a.tokenUrl,{method:"POST",headers:i,body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b})});try{f=await j.json()}catch{f={error:"invalid_response",error_description:"non-json token response"}}return"authorization_pending"===f.error||"slow_down"===f.error?{ok:!0,data:f}:(f.access_token&&h&&(f._kimiDeviceId=h),{ok:j.ok||!!f.access_token||!!f.error,data:f})},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{authMethod:"device_code",...a._kimiDeviceId?{deviceId:a._kimiDeviceId}:{}}})},kilocode:{config:g.MZ,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.initiateUrl,{method:"POST",headers:{"Content-Type":"application/json"}});if(!b.ok){if(429===b.status)throw Error("Too many pending authorization requests. Please try again later.");let a=await b.text();throw Error(`Device auth initiation failed: ${a}`)}let c=await b.json();return{device_code:c.code,user_code:c.code,verification_uri:c.verificationUrl,verification_uri_complete:c.verificationUrl,expires_in:c.expiresIn||300,interval:3}},pollToken:async(a,b)=>{let c=await fetch(`${a.pollUrlBase}/${b}`);if(202===c.status)return{ok:!1,data:{error:"authorization_pending"}};if(403===c.status)return{ok:!1,data:{error:"access_denied",error_description:"Authorization denied by user"}};if(410===c.status)return{ok:!1,data:{error:"expired_token",error_description:"Authorization code expired"}};if(!c.ok)return{ok:!1,data:{error:"poll_failed",error_description:`Poll failed: ${c.status}`}};let d=await c.json();if("approved"===d.status&&d.token){let b=null;try{let c=await fetch(`${a.apiBaseUrl}/api/profile`,{headers:{Authorization:`Bearer ${d.token}`}});if(c.ok){let a=await c.json();b=a.organizations?.[0]?.id||null}}catch{}return{ok:!0,data:{access_token:d.token,_userEmail:d.userEmail,_orgId:b}}}return{ok:!1,data:{error:"authorization_pending"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:null,expiresIn:null,email:a._userEmail,...a._orgId?{providerSpecificData:{orgId:a._orgId}}:{}})},cline:{config:g.lB,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenExchangeUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Cline token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},clinepass:{config:g.w1,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`ClinePass token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},gitlab:{config:g.f7,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d,e={})=>{let f=e.baseUrl||a.defaultBaseUrl,g=new URLSearchParams({client_id:e.clientId||"",redirect_uri:b,response_type:"code",state:c,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod});return`${f}${a.authorizeUrlPath}?${g.toString()}`},exchangeToken:async(a,b,c,d,e,f={})=>{let g=f.baseUrl||a.defaultBaseUrl,h=f.clientId||"",i=f.clientSecret||"",j=new URLSearchParams({client_id:h,grant_type:"authorization_code",code:b,redirect_uri:c,code_verifier:d});i&&j.set("client_secret",i);let k=await fetch(`${g}${a.tokenUrlPath}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:j.toString()});if(!k.ok)throw Error(`GitLab token exchange failed: ${await k.text()}`);let l=await k.json(),m=await fetch(`${g}${a.userInfoUrlPath}`,{headers:{Authorization:`Bearer ${l.access_token}`}}),n=m.ok?await m.json():{};return{...l,_user:n,_baseUrl:g,_clientId:h}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,providerSpecificData:{username:a._user?.username||"",email:a._user?.email||a._user?.public_email||"",name:a._user?.name||"",baseUrl:a._baseUrl,clientId:a._clientId,authKind:"oauth"}})},"codebuddy-cn":{config:g.Nl,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(`${a.stateUrl}?platform=${a.platform}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-Product":"SaaS"},body:"{}"});if(!b.ok)throw Error(`CodeBuddy state request failed: ${await b.text()}`);let c=await b.json();if(0!==c.code||!c.data?.state||!c.data?.authUrl)throw Error(`CodeBuddy state error: ${c.msg||"missing state/authUrl"}`);return{device_code:c.data.state,verification_uri:c.data.authUrl,user_code:"",interval:a.pollInterval/1e3,_isCodeBuddy:!0}},pollToken:async(a,b)=>{let c=await fetch(`${a.tokenUrl}?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-No-Enterprise-Id":"true","X-No-Department-Info":"true","X-Product":"SaaS"}});if(!c.ok)return{ok:!1,data:{error:"request_failed"}};let d=await c.json();return 0===d.code&&d.data?.accessToken?{ok:!0,data:{access_token:d.data.accessToken,refresh_token:d.data.refreshToken||"",token_type:d.data.tokenType||"Bearer",expires_in:d.data.expiresIn}}:11217===d.code?{ok:!0,data:{error:"authorization_pending"}}:{ok:!1,data:{error:d.msg||"unknown_error"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in||86400,providerSpecificData:{}})},kimchi:{config:g.Td,flowType:"browser_token",buildAuthUrl:(a,b,c)=>{let d=(a.webAppUrl||"https://app.kimchi.dev").replace(/\/+$/,""),e=new URLSearchParams({callback:b,state:c});return`${d}/cli-auth?${e.toString()}`},exchangeToken:async(a,b)=>{let c=String(b||"").trim();if(!c)throw Error("Missing Kimchi token");let d=a.validationUrl||"https://api.cast.ai/v1/llm/openai/supported-providers",e=await fetch(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});if(!e.ok)throw Error(`Kimchi token validation failed: ${e.status}`);let f={};if(a.userInfoUrl)try{let b=await fetch(a.userInfoUrl,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});b.ok&&(f=await b.json())}catch{f={}}return{access_token:c,token_type:"Bearer",_kimchiUser:f}},mapTokens:a=>{let b=a._kimchiUser||{},c=b.id?String(b.id):"",d=b.username||"",e=b.email||(c?`kimchi-user-${c}`:null);return{accessToken:a.access_token,refreshToken:null,email:e,displayName:b.name||d||null,providerSpecificData:{authMethod:"browser_token",userId:c,username:d}}}}};function r(a){let b=q["kimi-coding"===a?"kimi":a];if(!b)throw Error(`Unknown provider: ${a}`);return b}async function s(a,b,c){let d=r(a),e=d.prepareConfig?await d.prepareConfig(d.config,c||{}):d.config,{codeVerifier:g,codeChallenge:h,state:i}=(0,f.lz)(d.pkceVerifierBytes);return{authUrl:"device_code"===d.flowType?null:"authorization_code_pkce"===d.flowType?d.buildAuthUrl(e,b,i,h,c||{}):d.buildAuthUrl(e,b,i,void 0,c||{}),state:i,codeVerifier:g,codeChallenge:h,redirectUri:b,flowType:d.flowType,fixedPort:d.fixedPort,callbackPath:d.callbackPath||"/callback"}}async function t(a,b,c,d,e,f){let g=r(a),h=g.prepareConfig?await g.prepareConfig(g.config,f||{}):g.config,i=await g.exchangeToken(h,b,c,d,e,f||{}),j=null;return g.postExchange&&(j=await g.postExchange(i)),g.mapTokens(i,j)}async function u(a,b,c){let d=r(a);if("device_code"!==d.flowType)throw Error(`Provider ${a} does not support device code flow`);return await d.requestDeviceCode(d.config,b,c||{})}async function v(a,b,c,d){let e=r(a);if("device_code"!==e.flowType)throw Error(`Provider ${a} does not support device code flow`);let f=await e.pollToken(e.config,b,c,d);if(f.ok)if(f.data.access_token){let b=null;e.postExchange&&(b=await e.postExchange(f.data));let c=e.mapTokens(f.data,b);if("kiro"===a&&!c.providerSpecificData?.profileArn){let a=await m(c.accessToken);a&&(c.providerSpecificData.profileArn=a)}return{success:!0,tokens:c}}else if("authorization_pending"===f.data.error||"slow_down"===f.data.error)return{success:!1,error:f.data.error,errorDescription:f.data.error_description||f.data.message,pending:"authorization_pending"===f.data.error};else return{success:!1,error:f.data.error||"no_access_token",errorDescription:f.data.error_description||f.data.message||"No access token received"};return{success:!1,error:f.data.error,errorDescription:f.data.error_description}}let w=!1;async function x(){if(!w){w=!0;try{let{getProviderConnections:a,updateProviderConnection:b}=await Promise.resolve().then(c.bind(c,89718));for(let c of(await a()).filter(a=>{if("codex"!==a.provider||"oauth"!==a.authType||!a.idToken)return!1;let b=!!a.email,c=!!a.providerSpecificData?.chatgptAccountId;return!b||!c})){let a=n(c.idToken);if(!a.email&&!a.chatgptAccountId)continue;let d={};!c.email&&a.email&&(d.email=a.email),(a.chatgptAccountId||a.chatgptPlanType)&&(d.providerSpecificData={...c.providerSpecificData||{},chatgptAccountId:a.chatgptAccountId,chatgptPlanType:a.chatgptPlanType}),Object.keys(d).length&&await b(c.id,d)}}catch(a){w=!1,console.log("backfillCodexEmails failed:",a?.message||a)}}}},27335:(a,b,c)=>{c.d(b,{Xg:()=>s,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>u,ez:()=>o,ux:()=>n,OA:()=>p,kt:()=>q,KC:()=>t,SM:()=>i});var d=c(4630),e=c(45502),f=c(39141),g=c(6595);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}let k=new Set(["kr","kiro"]),l=new Map;for(let[a,b]of Object.entries(f.vq)){if(!Array.isArray(b))continue;let c=new Map,d=new Map;for(let e of b)if(e?.id!=null&&(c.set(e.id,e),k.has(a))){let a=(0,g.Kq)(e.id);a!==e.id&&d.set(a,e)}l.set(a,{exact:c,normalized:d})}function m(a,b,c){if(!a)return;let d=l.get(c);if(d){let a=d.exact.get(b);return a||(d.normalized.size?d.normalized.get(b):void 0)}let e=a.find(a=>a.id===b);if(e)return e;if(!k.has(c))return;let f=(0,g.Kq)(b);if(f!==b)return a.find(a=>a.id===f)}function n(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.gr)(m(d,b,c)):null}function o(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];return d?(0,g.ec)(m(d,b,c)):null}function p(a,b){let c=s[a]||a,d=f.vq[c]||f.vq[a];if(!d)return null;let e=m(d,b,c);return e?.kind||e?.type||null}function q(a,b){let c=s[a]||a,d="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,e=d?d[0]:"",g=e?b.slice(0,d.index).trim():b,i=m(f.vq[c]||f.vq[a],g,c),j=i?.upstreamModelId||i?.id;if(j){let a=j.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?j.slice(0,a.index).trim():j)+(e||b)}return"cx"===c&&"string"==typeof g&&g.endsWith(h)?g.slice(0,-h.length)+e:g+e}let r=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),s=Object.fromEntries(Object.keys(d.xq).map(a=>[a,r[a]||a]));function t(a){let b=s[a]||a;return f.vq[b]||[]}function u(a,b){return(0,g.g5)(m(f.vq[a],b,a))}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(5129)},49263:(a,b,c)=>{c.d(b,{Bl:()=>k,Ib:()=>e,Qo:()=>g,S5:()=>m,hk:()=>f,kJ:()=>l});var d=c(87252);function e(a,b=Date.now()){let c;if(!a)return null;let d="string"==typeof a?a:JSON.stringify(a);if(c=d.match(/"?retry[_-]?delay"?\s*[:=]\s*"?\s*([0-9]+(?:\.[0-9]+)?)\s*s/i))return Math.round(1e3*parseFloat(c[1]));if(c=d.match(/"?(?:resets?_at|x-?ratelimit-?reset|ratelimit-?reset)"?\s*[:=]\s*"?\s*([0-9]{9,})/i)){let a=parseInt(c[1],10);a<1e12&&(a*=1e3);let d=a-b;return d>0?d:null}return(c=d.match(/"?retry[_-]?after"?\s*[:=]\s*"?\s*([0-9]+)\b/i))?1e3*parseInt(c[1],10):null}function f(a,b,c=0){let g=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",h=g.includes("invalid_encrypted_content")||g.includes("encrypted content")&&(g.includes("could not be verified")||g.includes("could not be decrypted or parsed"));if(400===a&&h)return{shouldFallback:!1,cooldownMs:0};if(d.t2.find(b=>b.status===a&&!1===b.fallback))return{shouldFallback:!1,cooldownMs:0,newBackoffLevel:c};for(let f of d.t2)if(f.pattern&&g&&f.pattern.test(g)||f.text&&g&&g.includes(f.text)||f.status&&f.status===a){if(f.permanent||!1===f.fallback)return{shouldFallback:!1,cooldownMs:0};if(f.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a,b){let c=function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),f=e(b);return null!=f&&f>0?Math.min(Math.max(f,c),d.fh):c}(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:f.cooldownMs}}return{shouldFallback:!1,cooldownMs:0}}function g(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let h="modelLock_",i=`${h}__all`;function j(a){return a?`${h}${a}`:i}function k(a,b){let c=Date.now(),d=a=>{if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>c};return d(a[j(b)])||d(a[i])}function l(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(h)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function m(a,b){return{[j(a)]:new Date(Date.now()+b).toISOString()}}},67677:(a,b,c)=>{c.d(b,{Gh:()=>k,IF:()=>p,O9:()=>g,OF:()=>o,WL:()=>h,_6:()=>j,_L:()=>m,bC:()=>n,f5:()=>l,lm:()=>f});var d=c(19956);let e="1"===process.env.LOG_USAGE_VERBOSE,f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[d.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"]},e=c[b];b===d.h.GEMINI_CLI||b===d.h.ANTIGRAVITY?e=c[d.h.GEMINI]:b===d.h.OPENAI_RESPONSE?e=c[d.h.OPENAI_RESPONSES]:e||(e=c.default);let f={};for(let b of e)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)},d=(a,c)=>{if(null==c||""===c)return;let d=Number(c);Number.isFinite(d)&&d>=0&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),d("cost_usd",a?.cost_usd),d("cost_in_usd",a?.cost_in_usd),d("cost_in_usd_ticks",a?.cost_in_usd_ticks),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){let b;if(!a||"object"!=typeof a||Array.isArray(a))return null;let c=a=>Number.isFinite(Number(a))?Number(a):0,d=c(a.completion_tokens??a.output_tokens),e=c(a.reasoning_tokens),f=c(a.cache_creation_input_tokens??a.prompt_tokens_details?.cache_creation_tokens),g=c(a.prompt_tokens??a.input_tokens);void 0===a.cached_tokens&&(void 0!==a.cache_read_input_tokens||void 0!==a.cache_creation_input_tokens)?g=g+(b=c(a.cache_read_input_tokens))+f:b=c(a.cached_tokens??a.prompt_tokens_details?.cached_tokens);let h={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,cached_tokens:b,cache_creation_input_tokens:f},i=b=>{if(null===a[b]||void 0===a[b]||""===a[b])return;let c=Number(a[b]);Number.isFinite(c)&&c>=0&&(h[b]=c)};return i("cost_usd"),i("cost_in_usd"),i("cost_in_usd_ticks"),e>0&&(h.reasoning_tokens=e),h}function k(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function l(a){if(!a||"object"!=typeof a)return null;if("message_start"===a.type&&a.message?.usage&&"object"==typeof a.message.usage){let b=a.message.usage;return i({prompt_tokens:b.input_tokens||0,completion_tokens:b.output_tokens||0,cache_read_input_tokens:b.cache_read_input_tokens,cache_creation_input_tokens:b.cache_creation_input_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks})}if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function m(a,b){if(!a)return b||null;if(!b)return a;let c={...a};for(let[a,d]of Object.entries(b))"number"==typeof d&&Number.isFinite(d)?c[a]=Math.max("number"==typeof c[a]?c[a]:0,d):d&&"object"==typeof d&&(c[a]=d);return c}function n(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}function o(a,b,c=d.h.OPENAI){var e,f;return e=n(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===d.h.CLAUDE?g({input_tokens:e,output_tokens:f,estimated:!0}):g({prompt_tokens:e,completion_tokens:f,total_tokens:e+f,estimated:!0})}function p(a,b,c=null,d=null,g=null){if(!b||"object"!=typeof b||!e)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=d?d.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let m=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;m&&(l+=` | cache_read=${m}`);let n=b.cache_creation_input_tokens;n&&(l+=` | cache_create=${n}`);let o=b.reasoning_tokens;o&&(l+=` | reasoning=${o}`),console.log(l)}},81358:(a,b,c)=>{c.d(b,{a:()=>d});function d(a={},b=null){let c=[a?.workspaceId,a?.chatgptAccountId,a?.accountId,function(a){if("string"!=typeof a)return"";try{let b=JSON.parse(Buffer.from(a.split(".")[1]||"","base64url").toString("utf8"));return b?.["https://api.openai.com/auth"]?.chatgpt_account_id||b?.account_id||""}catch{return""}}(b)];return c.find(a=>"string"==typeof a&&a.trim())?.trim()||""}},89865:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(87252);function e(a,b,c){let e;return new Response(JSON.stringify((e=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:e.type,code:c??e.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c,e="";try{e=await a.text()}catch{e=""}let g="";try{let a=JSON.parse(e);g=a.error?.message||a.message||a.error||e,c=a.error?.code||a.code}catch{g=e}let h=("string"==typeof g?g:JSON.stringify(g))||d.O[a.status]||`Upstream error: ${a.status}`;if(b&&"function"==typeof b.parseError)try{let d=b.parseError(a,e);if(d&&"object"==typeof d){let b=d.message&&d.message!==e?d.message:h;return{statusCode:d.status||a.status,message:b,resetsAtMs:d.resetsAtMs,code:d.code??c}}}catch{}return{statusCode:a.status,message:h,code:c}}function g(a,b,c,d){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b,d)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
@@ -1,2 +1,2 @@
1
- "use strict";exports.id=7362,exports.ids=[7362],exports.modules={47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(5129)},57362:(a,b,c)=>{c.d(b,{Vu:()=>y,Ao:()=>w,Pr:()=>z,vt:()=>B,UP:()=>x});var d=c(49263),e=c(89865),f=c(43904),g=c(48644),h=c(47370),i=c(60290);function j(a,b){if(!a||"object"!=typeof a||!b)return!1;let c=a.name||a.function?.name;return"string"==typeof c&&c===b}async function k(a,b){let c;if(!a?.body||!a.headers.get("content-type")?.toLowerCase().includes("text/event-stream"))return a;let{firstActionTimeoutMs:d,maxBytes:e}=(0,i.Ur)(),f=a.body.getReader(),g=new TextDecoder,h=[],k=0,l="",m=function(a){let b=a?.tool_choice;if(!b||"object"!=typeof b||Array.isArray(b)||!["custom","function","tool"].includes(b.type))return"";let c=b.name||b.function?.name;return"string"==typeof c?c.trim():""}(b),n=new Promise(a=>{c=setTimeout(()=>a({timedOut:!0}),d)});try{for(;;){let b=await Promise.race([f.read(),n]);if(b.timedOut)return await f.cancel("combo first-action timeout").catch(()=>{}),null;if(b.done)return await f.cancel("combo response ended before first action").catch(()=>{}),null;h.push(b.value),k+=b.value.byteLength,l+=g.decode(b.value,{stream:!0});let c=function(a,b=""){let c=/\r\n\r\n|\n\n|\r\r/g,d=0,e=!1;for(let f=c.exec(a);f;f=c.exec(a))e||=function(a,b=""){if(b)return function(a,b){let{event:c="",payload:d}=a||{};return!!d&&!!b&&("response.output_item.added"===c||"response.output_item.done"===c?j(d.item,b):"content_block_start"===c?j(d.content_block,b):"response.completed"===c?d.response?.output?.some(a=>j(a,b))===!0:d.choices?.some(a=>j(a?.delta?.function_call,b)||a?.delta?.tool_calls?.some(a=>j(a,b)))===!0)}(a,b);let{event:c="",payload:d}=a||{};return!!(("response.output_text.delta"===c||"response.refusal.delta"===c)&&d?.delta||"response.output_item.added"===c&&["function_call","custom_tool_call"].includes(d?.item?.type))||"content_block_start"===c&&d?.content_block?.type==="tool_use"||"content_block_delta"===c&&(d?.delta?.type==="text_delta"&&!!d.delta.text||d?.delta?.type==="input_json_delta"&&!!d.delta.partial_json)||d?.choices?.some(a=>"string"==typeof a?.delta?.content&&a.delta.content.length>0||Array.isArray(a?.delta?.tool_calls)&&a.delta.tool_calls.length>0)===!0}(function(a){let b="",c=[];for(let d of a.split(/\r\n|\n|\r/))d.startsWith("event:")&&(b=d.slice(6).trim()),d.startsWith("data:")&&c.push(d.slice(5).trimStart());if(0===c.length||"[DONE]"===c.join("\n"))return null;try{let a=JSON.parse(c.join("\n"));return{event:b||a?.type||"",payload:a}}catch{return null}}(a.slice(d,f.index)),b),d=f.index+f[0].length;return{actionable:e,remainder:a.slice(d)}}(l,m);if(l=c.remainder,c.actionable)return function(a,b,c){let d=!1;return new Response(new ReadableStream({start(a){for(let b of c)a.enqueue(b)},async pull(a){if(!d)try{let{done:c,value:e}=await b.read();c?(d=!0,a.close()):a.enqueue(e)}catch(b){d=!0,a.error(b)}},async cancel(a){d=!0,await b.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}(a,f,h);if(k>e)return await f.cancel("combo pre-action byte limit").catch(()=>{}),null}}catch{return await f.cancel("combo pre-action read failed").catch(()=>{}),null}finally{clearTimeout(c)}}let l=Object.values(i.Qn.headers);function m(a){return String(a||"").trim().replace(/[^A-Za-z0-9._:/-]+/g,"-").slice(0,i.Qn.maxTokenLength)}function n(a){return String(a||"").split(",").map(m).filter(Boolean)}function o(a){return[...new Set(a.filter(Boolean))].slice(0,i.Qn.maxAttempts)}c(67677);let p=new Set(["vision","pdf","audioInput","videoInput"]),q="[Called tools: ",r="[Tool result: ";function s(a){let b=a[a.length-1];return b?.role!=="assistant"&&b?.role!=="model"?a:[...a,{role:"user",content:"Continue from where the previous assistant message left off."}]}function t(a){return a.filter(a=>a).map(a=>{if("tool"===a.role||"function"===a.role)return{role:"user",content:`${r}${(0,g.kU)(a.content)||String(a.content??"")}]`};if("assistant"===a.role&&Array.isArray(a.tool_calls)){let{tool_calls:b,...c}=a,d=b.map(a=>a?.function?.name||a?.name||"tool").join(", "),e=(0,g.kU)(c.content)||("string"==typeof c.content?c.content:"");return{...c,content:`${e}${e?"\n":""}${q}${d}]`}}if(Array.isArray(a.content)){let b=a.content.some(a=>"tool_use"===a.type),c=a.content.some(a=>"tool_result"===a.type);if(b||c){let b=[],c=[],d=[];for(let e of a.content)"text"===e.type&&e.text&&b.push(e.text),"tool_use"===e.type&&c.push(e.name||"tool"),"tool_result"===e.type&&d.push((0,g.kU)(e.content)||String(e.content??""));let{...e}=a,f=b.join("\n");return c.length>0&&(f=`${f}${f?"\n":""}${q}${c.join(", ")}]`),d.length>0&&(f=`${f}${f?"\n":""}${r}${d.join("\n")}]`),{...e,content:f}}}return a})}let u=new Map;function v(a){if(!Array.isArray(a)||0===a.length)return[];let b=a=>"assistant"===a||"model"===a,c=a.length-1;for(;c>=0&&!b(a[c]?.role);)c--;return a.slice(c+1)}function w(a,b,c,d=1){let e;if(!a||a.length<=1||"round-robin"!==c)return a;let f=b||"__default__",g=Number.isFinite(e=Number.parseInt(d,10))&&e>0?e:1,h=u.get(f),i="number"==typeof h?{index:h,consecutiveUseCount:0}:h||{index:0,consecutiveUseCount:0},j=i.index%a.length,k=function(a,b){let c=[...a];for(let a=0;a<b;a++){let a=c.shift();c.push(a)}return c}(a,j),l=i.consecutiveUseCount+1;return l>=g?u.set(f,{index:(j+1)%a.length,consecutiveUseCount:0}):u.set(f,{index:j,consecutiveUseCount:l}),k}function x(a){a?u.delete(a):u.clear()}function y(a,b){if(a.includes("/"))return null;let c=(Array.isArray(b)?b:b?.combos||[]).find(b=>b.name===a);return c&&c.models&&c.models.length>0?c.models:null}async function z({body:a,models:b,handleSingleModel:c,log:g,comboName:j,comboStrategy:q,comboStickyLimit:r=1,autoSwitch:s=!0}){let t=w(b,j,q,r);if(s){let b=function(a){let b=new Set;if(!a||"object"!=typeof a)return b;let c=a=>{"string"==typeof a&&(a.startsWith("image/")?b.add("vision"):a.startsWith("audio/")?b.add("audioInput"):"application/pdf"===a&&b.add("pdf"))},d=a=>{if(!a||"object"!=typeof a)return;let c=a.type;("image_url"===c||"image"===c||"input_image"===c)&&b.add("vision"),("file"===c||"document"===c||"input_file"===c)&&b.add("pdf");let d=a.inlineData?.mimeType||a.fileData?.mimeType;"string"==typeof d&&d.startsWith("image/")&&b.add("vision"),"application/pdf"===d&&b.add("pdf")},e=a=>{if(Array.isArray(a))for(let b of a)d(b)},f=a=>{if(!a||"object"!=typeof a)return;Array.isArray(a.images)&&a.images.length>0&&b.add("vision");let d=a.experimental_attachments||a.attachments;if(Array.isArray(d))for(let a of d){if(!a)continue;let d=a.contentType||a.mediaType||"string"==typeof a.url&&a.url.match(/^data:([^;,]+)/)?.[1];d?c(d):(a.url||a.data)&&b.add("vision")}(a.image_url||a.image)&&b.add("vision"),(a.audio_url||a.audio)&&b.add("audioInput"),e(a.content),"string"==typeof a.content&&(a.content.includes("data:image/")?b.add("vision"):a.content.includes("data:audio/")?b.add("audioInput"):a.content.includes("data:application/pdf")&&b.add("pdf"))};for(let b of v(a.messages))f(b);for(let b of v(a.input))e(b.content);for(let b of v(a.contents||a.request?.contents))e(b.parts);return b}(a);if(b.size>0){let a=function(a,b){if(!b||0===b.size||!Array.isArray(a)||a.length<=1)return a;let c=[...b].filter(a=>p.has(a)),d=[...b].filter(a=>!p.has(a));return a.map((a,b)=>{let e,g,h,i;return{m:a,i:b,t:(g=(e="string"==typeof a?a.indexOf("/"):-1)>0?a.slice(0,e):"",h=e>0?a.slice(e+1):a,i=(0,f.nl)(g,h),c.every(a=>!0===i[a])?+!d.every(a=>!0===i[a]):2)}}).sort((a,b)=>a.t-b.t||a.i-b.i).map(a=>a.m)}(t,b);a[0]!==t[0]&&g.info("COMBO",`auto-switch for [${[...b].join(",")}] → ${a[0]}`),t=a}}let u=null,x=null,y=null;for(let b=0;b<t.length;b++){let e=t[b];g.info("COMBO",`Trying model ${b+1}/${t.length}: ${e}`);try{let f=await c(a,e);if(f.ok){let c="fallback"===q||void 0===q&&Array.isArray(a?.tools)&&a.tools.length>0?await k(f,a):f;if(c)return g.info("COMBO",`Model ${e} succeeded`),function({comboName:a,selectedModel:b,attemptedModels:c=[]},d){let e,f;if(!(d instanceof Response))return d;let g=i.Qn.headers,h=m(a),j=(f=(e=m(b)).indexOf("/"))>0?{leaf:e,provider:e.slice(0,f),model:e.slice(f+1)}:{leaf:e,provider:"",model:e},k=n(d.headers.get(g.routePath)),p=m(d.headers.get(g.resolvedProvider))||j.provider||"unknown",q=m(d.headers.get(g.resolvedModel))||j.model,r=o(c.map(m)),s=n(d.headers.get(g.attemptedModels)),t=Number.parseInt(d.headers.get(g.fallbackCount)||"0",10);var u={[g.requestedModel]:h,[g.routePath]:o([h,...k.length?k:[j.leaf]]).join(","),[g.resolvedProvider]:p,[g.resolvedModel]:q,[g.fallbackCount]:Math.max(0,Number.isFinite(t)?t:0)+Math.max(0,r.length-1),[g.attemptedModels]:o([...r,...s]).join(",")};if(!(d instanceof Response))return d;let v=new Headers(d.headers);for(let[a,b]of Object.entries(u))v.set(a,String(b));return v.set("Access-Control-Expose-Headers",o([...n(v.get("Access-Control-Expose-Headers")),...l]).join(", ")),new Response(d.body,{status:d.status,statusText:d.statusText,headers:v})}({comboName:j||a?.model,selectedModel:e,attemptedModels:t.slice(0,b+1)},c);u="Response ended before its first actionable event",y||(y=502),g.warn("COMBO",`Model ${e} produced no action, trying next`);continue}let p=f.statusText||"",r=null;try{let a=await f.clone().json();p=a?.error?.message||a?.error||a?.message||p,r=a?.retryAfter||null}catch{}if(r&&(!x||new Date(r)<new Date(x))&&(x=r),"string"!=typeof p)try{p=JSON.stringify(p)}catch{p=String(p)}let{shouldFallback:s,cooldownMs:v}=(0,d.hk)(f.status,p);if(!s)return g.warn("COMBO",`Model ${e} failed (no fallback)`,{status:f.status}),f;v&&v>0&&v<=5e3&&(503===f.status||502===f.status||504===f.status)&&(g.info("COMBO",`Model ${e} transient ${f.status}, waiting ${v}ms before next`),await new Promise(a=>setTimeout(a,v))),u=p||String(f.status),y||(y=f.status),g.warn("COMBO",`Model ${e} failed, trying next`,{status:f.status});let w=e.includes("/")?e.slice(0,e.indexOf("/")):"unknown",z=e.includes("/")?e.slice(e.indexOf("/")+1):e;(0,h.QB)({endpoint:"/v1/chat/completions",provider:w,model:z,connectionId:`combo-${j||e}`,comboName:j||null,statusCode:f.status,errorMessage:p||f.statusText,request:null,providerRequest:null,providerResponse:null,meta:{fallback:!0,retryAfter:r,retryAfterHuman:r?(0,d.Qo)(r):null,latency:{}}}).catch(()=>{})}catch(a){u=a.message||String(a),y||(y=500),g.warn("COMBO",`Model ${e} threw error, trying next`,{error:u})}}let A=u&&u.toLowerCase().includes("no credentials")?503:y||503,B=u||"All combo models unavailable";if(x){let a=(0,d.Qo)(x);return g.warn("COMBO",`All models failed | ${B} (${a})`),(0,e.wO)(A,B,x,a)}return g.warn("COMBO",`All models failed | ${B}`),new Response(JSON.stringify({error:{message:B}}),{status:A,headers:{"Content-Type":"application/json"}})}let A={minPanel:2,stragglerGraceMs:8e3,panelHardTimeoutMs:9e4};async function B({body:a,models:b,handleSingleModel:c,log:d,comboName:e,judgeModel:f,tuning:h}){var i;let j,k,l=Array.isArray(b)?b.filter(Boolean):[];if(0===l.length)return new Response(JSON.stringify({error:{message:"Fusion combo has no models"}}),{status:400,headers:{"Content-Type":"application/json"}});if(1===l.length)return c(a,l[0]);let m={...A,...h||{}},n=Math.min(Math.max(2,m.minPanel),l.length),o=f&&f.trim()?f.trim():l[0];d.info("FUSION",`Combo "${e}" | panel=${l.length} [${l.join(", ")}] | judge=${o} | quorum=${n}`);let{tools:p,tool_choice:q,stream_options:r,...u}=a,v={...u,stream:!1};Array.isArray(v.messages)?v.messages=s(t(v.messages)):Array.isArray(v.input)&&(v.input=s(t(v.input)));let w=Date.now(),x=l.map(a=>{var b,d;return b=c(v,a,!0),d=m.panelHardTimeoutMs,new Promise(a=>{let c=setTimeout(()=>a({__timeout:!0}),d);Promise.resolve(b).then(b=>{clearTimeout(c),a(b)}).catch(b=>{clearTimeout(c),a({__error:b})})})}),y=await function(a,{minPanel:b,stragglerGraceMs:c,panelHardTimeoutMs:d}){return new Promise(e=>{let f=Array(a.length),g=0,h=0,i=!1,j=null,k=()=>{i||(i=!0,clearTimeout(l),j&&clearTimeout(j),e(f))},l=setTimeout(k,d);a.forEach((d,e)=>{Promise.resolve(d).then(a=>{f[e]=a}).catch(a=>{f[e]={__error:a}}).finally(()=>{if(g++,f[e]&&f[e].ok&&h++,g===a.length)return k();h>=b&&!j&&(j=setTimeout(k,c))})})})}(x,{...m,minPanel:n});d.info("FUSION",`fan-out collected in ${Date.now()-w}ms`);let z=[];for(let a=0;a<y.length;a++){let b=y[a],c=l[a];if(!b){d.warn("FUSION",`Panel ${c} dropped (straggler/timeout)`);continue}if(b.__timeout){d.warn("FUSION",`Panel ${c} timed out`);continue}if(b.__error){d.warn("FUSION",`Panel ${c} threw`,{error:b.__error?.message||String(b.__error)});continue}if(!b.ok){d.warn("FUSION",`Panel ${c} failed`,{status:b.status});continue}try{let a=await b.clone().json(),e=function(a){if(!a||"object"!=typeof a)return"";let b=a.choices?.[0];if(b){let a=b.message??b.delta??{},c=(0,g.kU)(a.content);if(c.trim())return c;if("string"==typeof b.text&&b.text.trim())return b.text}let c=(0,g.kU)(a.content);if(c.trim())return c;let d=a.candidates?.[0]?.content?.parts;if(Array.isArray(d)){let a=d.map(a=>a?.text||"").join("");if(a.trim())return a}if(Array.isArray(a.output)){let b=a.output.flatMap(a=>Array.isArray(a.content)?a.content.map(a=>a?.text||""):[]).join("");if(b.trim())return b}return""}(a);e?(z.push({model:c,text:e}),d.info("FUSION",`Panel ${c} ok (${e.length} chars)`)):d.warn("FUSION",`Panel ${c} returned empty content`)}catch(a){d.warn("FUSION",`Panel ${c} unparseable`,{error:a.message||String(a)})}}if(0===z.length)return d.warn("FUSION","All panel models failed"),new Response(JSON.stringify({error:{message:"All fusion panel models failed"}}),{status:503,headers:{"Content-Type":"application/json"}});if(1===z.length)return d.info("FUSION",`Only ${z[0].model} succeeded — answering directly (no fusion)`),c(a,z[0].model);let C=(j=z.map((a,b)=>`[Source ${b+1}]
2
- ${a.text}`).join("\n\n"),i=[`You are the JUDGE in a model-fusion panel. ${z.length} expert models independently answered the user's most recent request. Their responses are below, anonymized by source.`,"\nDo NOT mention that multiple models were used, and do NOT refer to the sources. Produce ONE authoritative final answer addressed directly to the user.\n\nFirst, internally analyze the panel along these dimensions: consensus (points most sources agree on — treat as higher-confidence), contradictions (where they disagree — resolve with your own judgment), partial coverage, unique insights only one source surfaced, and blind spots every source missed. Then write the best possible final answer grounded in that analysis — more complete and correct than any single response, with no filler.\n\n=== PANEL RESPONSES ===",j,"=== END PANEL RESPONSES ===\n\nNow write the final answer to the user's original request."].join("\n"),k={...a},Array.isArray(a.messages)?k.messages=[...a.messages,{role:"user",content:i}]:Array.isArray(a.input)?k.input=[...a.input,{role:"user",content:i}]:Array.isArray(a.contents)?k.contents=[...a.contents,{role:"user",parts:[{text:i}]}]:k.messages=[{role:"user",content:i}],k);return d.info("FUSION",`Judging ${z.length} answers with ${o}`),c(C,o)}},67677:(a,b,c)=>{c.d(b,{Gh:()=>k,IF:()=>p,O9:()=>g,OF:()=>o,WL:()=>h,_6:()=>j,_L:()=>m,bC:()=>n,f5:()=>l,lm:()=>f});var d=c(19956);let e="1"===process.env.LOG_USAGE_VERBOSE,f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[d.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"]},e=c[b];b===d.h.GEMINI_CLI||b===d.h.ANTIGRAVITY?e=c[d.h.GEMINI]:b===d.h.OPENAI_RESPONSE?e=c[d.h.OPENAI_RESPONSES]:e||(e=c.default);let f={};for(let b of e)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)},d=(a,c)=>{if(null==c||""===c)return;let d=Number(c);Number.isFinite(d)&&d>=0&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),d("cost_usd",a?.cost_usd),d("cost_in_usd",a?.cost_in_usd),d("cost_in_usd_ticks",a?.cost_in_usd_ticks),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){let b;if(!a||"object"!=typeof a||Array.isArray(a))return null;let c=a=>Number.isFinite(Number(a))?Number(a):0,d=c(a.completion_tokens??a.output_tokens),e=c(a.reasoning_tokens),f=c(a.cache_creation_input_tokens??a.prompt_tokens_details?.cache_creation_tokens),g=c(a.prompt_tokens??a.input_tokens);void 0===a.cached_tokens&&(void 0!==a.cache_read_input_tokens||void 0!==a.cache_creation_input_tokens)?g=g+(b=c(a.cache_read_input_tokens))+f:b=c(a.cached_tokens??a.prompt_tokens_details?.cached_tokens);let h={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,cached_tokens:b,cache_creation_input_tokens:f},i=b=>{if(null===a[b]||void 0===a[b]||""===a[b])return;let c=Number(a[b]);Number.isFinite(c)&&c>=0&&(h[b]=c)};return i("cost_usd"),i("cost_in_usd"),i("cost_in_usd_ticks"),e>0&&(h.reasoning_tokens=e),h}function k(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function l(a){if(!a||"object"!=typeof a)return null;if("message_start"===a.type&&a.message?.usage&&"object"==typeof a.message.usage){let b=a.message.usage;return i({prompt_tokens:b.input_tokens||0,completion_tokens:b.output_tokens||0,cache_read_input_tokens:b.cache_read_input_tokens,cache_creation_input_tokens:b.cache_creation_input_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks})}if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function m(a,b){if(!a)return b||null;if(!b)return a;let c={...a};for(let[a,d]of Object.entries(b))"number"==typeof d&&Number.isFinite(d)?c[a]=Math.max("number"==typeof c[a]?c[a]:0,d):d&&"object"==typeof d&&(c[a]=d);return c}function n(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}function o(a,b,c=d.h.OPENAI){var e,f;return e=n(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===d.h.CLAUDE?g({input_tokens:e,output_tokens:f,estimated:!0}):g({prompt_tokens:e,completion_tokens:f,total_tokens:e+f,estimated:!0})}function p(a,b,c=null,d=null,g=null){if(!b||"object"!=typeof b||!e)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=d?d.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let m=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;m&&(l+=` | cache_read=${m}`);let n=b.cache_creation_input_tokens;n&&(l+=` | cache_create=${n}`);let o=b.reasoning_tokens;o&&(l+=` | reasoning=${o}`),console.log(l)}},89865:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(87252);function e(a,b,c){let e;return new Response(JSON.stringify((e=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:e.type,code:c??e.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c,e="";try{e=await a.text()}catch{e=""}let g="";try{let a=JSON.parse(e);g=a.error?.message||a.message||a.error||e,c=a.error?.code||a.code}catch{g=e}let h=("string"==typeof g?g:JSON.stringify(g))||d.O[a.status]||`Upstream error: ${a.status}`;if(b&&"function"==typeof b.parseError)try{let d=b.parseError(a,e);if(d&&"object"==typeof d){let b=d.message&&d.message!==e?d.message:h;return{statusCode:d.status||a.status,message:b,resetsAtMs:d.resetsAtMs,code:d.code??c}}}catch{}return{statusCode:a.status,message:h,code:c}}function g(a,b,c,d){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b,d)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};
1
+ "use strict";exports.id=7362,exports.ids=[7362],exports.modules={47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(5129)},57362:(a,b,c)=>{c.d(b,{Vu:()=>C,Ao:()=>A,Pr:()=>D,vt:()=>F,UP:()=>B});var d=c(49263),e=c(89865),f=c(43904),g=c(60290),h=c(48644),i=c(47370);function j(a,b){if(!a||"object"!=typeof a||!b)return!1;let c=a.name||a.function?.name;return"string"==typeof c&&c===b}async function k(a,b){let c;if(!a?.body||!a.headers.get("content-type")?.toLowerCase().includes("text/event-stream"))return a;let{firstActionTimeoutMs:d,maxBytes:e}=(0,g.Ur)(),f=a.body.getReader(),h=new TextDecoder,i=[],k=0,l="",m=function(a){let b=a?.tool_choice;if(!b||"object"!=typeof b||Array.isArray(b)||!["custom","function","tool"].includes(b.type))return"";let c=b.name||b.function?.name;return"string"==typeof c?c.trim():""}(b),n=new Promise(a=>{c=setTimeout(()=>a({timedOut:!0}),d)});try{for(;;){let b=await Promise.race([f.read(),n]);if(b.timedOut)return await f.cancel("combo first-action timeout").catch(()=>{}),null;if(b.done)return await f.cancel("combo response ended before first action").catch(()=>{}),null;i.push(b.value),k+=b.value.byteLength,l+=h.decode(b.value,{stream:!0});let c=function(a,b=""){let c=/\r\n\r\n|\n\n|\r\r/g,d=0,e=!1;for(let f=c.exec(a);f;f=c.exec(a))e||=function(a,b=""){if(b)return function(a,b){let{event:c="",payload:d}=a||{};return!!d&&!!b&&("response.output_item.added"===c||"response.output_item.done"===c?j(d.item,b):"content_block_start"===c?j(d.content_block,b):"response.completed"===c?d.response?.output?.some(a=>j(a,b))===!0:d.choices?.some(a=>j(a?.delta?.function_call,b)||a?.delta?.tool_calls?.some(a=>j(a,b)))===!0)}(a,b);let{event:c="",payload:d}=a||{};return!!(("response.output_text.delta"===c||"response.refusal.delta"===c)&&d?.delta||"response.output_item.added"===c&&["function_call","custom_tool_call"].includes(d?.item?.type)||"content_block_start"===c&&d?.content_block?.type==="tool_use"||"content_block_delta"===c&&(d?.delta?.type==="text_delta"&&d.delta.text||d?.delta?.type==="input_json_delta"&&d.delta.partial_json||d?.delta?.type==="thinking_delta"&&d.delta.thinking||d?.delta?.thinking)||d?.candidates?.[0]?.content?.parts?.some(a=>a?.text||a?.functionCall||a?.inlineData)||d?.message?.content||d?.response||d?.message?.tool_calls?.length||d?.usage?.completion_tokens>0||d?.usage?.output_tokens>0||d?.response?.usage?.output_tokens>0)||d?.choices?.some(a=>"string"==typeof a?.delta?.content&&a.delta.content.length>0||"string"==typeof a?.delta?.reasoning_content&&a.delta.reasoning_content.length>0||"string"==typeof a?.delta?.reasoning&&a.delta.reasoning.length>0||Array.isArray(a?.delta?.tool_calls)&&a.delta.tool_calls.length>0||!!a?.delta?.function_call)===!0}(function(a){let b="",c=[];for(let d of a.split(/\r\n|\n|\r/))d.startsWith("event:")&&(b=d.slice(6).trim()),d.startsWith("data:")&&c.push(d.slice(5).trimStart());if(0===c.length||"[DONE]"===c.join("\n"))return null;try{let a=JSON.parse(c.join("\n"));return{event:b||a?.type||"",payload:a}}catch{return null}}(a.slice(d,f.index)),b),d=f.index+f[0].length;return{actionable:e,remainder:a.slice(d)}}(l,m);if(l=c.remainder,c.actionable||k>e)return function(a,b,c){let d=!1;return new Response(new ReadableStream({start(a){for(let b of c)a.enqueue(b)},async pull(a){if(!d)try{let{done:c,value:e}=await b.read();c?(d=!0,a.close()):a.enqueue(e)}catch(b){d=!0,a.error(b)}},async cancel(a){d=!0,await b.cancel(a)}}),{status:a.status,statusText:a.statusText,headers:a.headers})}(a,f,i)}}catch{return await f.cancel("combo pre-action read failed").catch(()=>{}),null}finally{clearTimeout(c)}}let l=Object.values(g.Qn.headers);function m(a){return String(a||"").trim().replace(/[^A-Za-z0-9._:/-]+/g,"-").slice(0,g.Qn.maxTokenLength)}function n(a){return String(a||"").split(",").map(m).filter(Boolean)}function o(a){return[...new Set(a.filter(Boolean))].slice(0,g.Qn.maxAttempts)}c(67677);let p=new Set(["vision","pdf","audioInput","videoInput"]),q="[Called tools: ",r="[Tool result: ";function s(a){let b;if(!a.startsWith("data:"))return!1;let c=a.slice(5).trim();if(!c||"[DONE]"===c)return!1;try{b=JSON.parse(c)}catch{return!1}if(u(b.usage)||u(b.response?.usage))return!0;let d=b.choices?.[0]?.delta;if(t(d?.content)||t(d?.reasoning_content)||t(d?.reasoning)||d?.tool_calls?.length||d?.function_call)return!0;if("content_block_delta"===b.type){let a=b.delta;if(t(a?.text)||t(a?.partial_json)||t(a?.thinking))return!0}if("content_block_start"===b.type&&b.content_block?.type==="tool_use"||"string"==typeof b.type&&b.type.endsWith(".delta")&&t(b.delta))return!0;let e=b.candidates?.[0]?.content?.parts;return!!(Array.isArray(e)&&e.some(a=>t(a?.text)||a?.functionCall||a?.inlineData)||t(b.message?.content)||t(b.response)||b.message?.tool_calls?.length)}function t(a){return"string"==typeof a&&a.length>0}function u(a){if(!a||"object"!=typeof a)return!1;let b=Number(a.completion_tokens??a.output_tokens??a.candidatesTokenCount??0);return Number.isFinite(b)&&b>0}async function v(a,b=g.Z1){if(!(a.headers.get("content-type")||"").toLowerCase().includes("text/event-stream")||!a.body)return{hasContent:!0,body:null};let c=a.body.getReader(),d=new TextDecoder("utf-8",{fatal:!1}),e=[],f=0,h="",i=!1,j=!1,k=Date.now()+b,l=null,m=new Promise(a=>{l=setTimeout(()=>a({timedOut:!0}),b)});try{for(;!i;){let a;if(Date.now()>=k)break;let b=await Promise.race([c.read(),m]);if(b?.timedOut)break;let{done:g,value:l}=b;if(g){j=!0,(h+=d.decode()).trim()&&s(h.trim())&&(i=!0);break}for(e.push(l),f+=l.byteLength,h+=d.decode(l,{stream:!0});-1!==(a=h.indexOf("\n"));){let b=h.slice(0,a).trim();if(h=h.slice(a+1),s(b)){i=!0;break}}if(i)break;if(f>=262144){i=!0;break}}}catch{i=!1}finally{l&&clearTimeout(l)}return i?{hasContent:!0,body:new ReadableStream({start(a){for(let b of e)a.enqueue(b);e.length=0,j&&a.close()},async pull(a){if(!j)try{let{done:b,value:d}=await c.read();if(b){j=!0,a.close();return}a.enqueue(d)}catch(b){a.error(b)}},cancel(a){c.cancel(a).catch(()=>{})}})}:(await c.cancel().catch(()=>{}),{hasContent:!1,body:null})}function w(a){let b=a[a.length-1];return b?.role!=="assistant"&&b?.role!=="model"?a:[...a,{role:"user",content:"Continue from where the previous assistant message left off."}]}function x(a){return a.filter(a=>a).map(a=>{if("tool"===a.role||"function"===a.role)return{role:"user",content:`${r}${(0,h.kU)(a.content)||String(a.content??"")}]`};if("assistant"===a.role&&Array.isArray(a.tool_calls)){let{tool_calls:b,...c}=a,d=b.map(a=>a?.function?.name||a?.name||"tool").join(", "),e=(0,h.kU)(c.content)||("string"==typeof c.content?c.content:"");return{...c,content:`${e}${e?"\n":""}${q}${d}]`}}if(Array.isArray(a.content)){let b=a.content.some(a=>"tool_use"===a.type),c=a.content.some(a=>"tool_result"===a.type);if(b||c){let b=[],c=[],d=[];for(let e of a.content)"text"===e.type&&e.text&&b.push(e.text),"tool_use"===e.type&&c.push(e.name||"tool"),"tool_result"===e.type&&d.push((0,h.kU)(e.content)||String(e.content??""));let{...e}=a,f=b.join("\n");return c.length>0&&(f=`${f}${f?"\n":""}${q}${c.join(", ")}]`),d.length>0&&(f=`${f}${f?"\n":""}${r}${d.join("\n")}]`),{...e,content:f}}}return a})}let y=new Map;function z(a){if(!Array.isArray(a)||0===a.length)return[];let b=a=>"assistant"===a||"model"===a,c=a.length-1;for(;c>=0&&!b(a[c]?.role);)c--;return a.slice(c+1)}function A(a,b,c,d=1){let e;if(!a||a.length<=1||"round-robin"!==c)return a;let f=b||"__default__",g=Number.isFinite(e=Number.parseInt(d,10))&&e>0?e:1,h=y.get(f),i="number"==typeof h?{index:h,consecutiveUseCount:0}:h||{index:0,consecutiveUseCount:0},j=i.index%a.length,k=function(a,b){let c=[...a];for(let a=0;a<b;a++){let a=c.shift();c.push(a)}return c}(a,j),l=i.consecutiveUseCount+1;return l>=g?y.set(f,{index:(j+1)%a.length,consecutiveUseCount:0}):y.set(f,{index:j,consecutiveUseCount:l}),k}function B(a){a?y.delete(a):y.clear()}function C(a,b){if(a.includes("/"))return null;let c=(Array.isArray(b)?b:b?.combos||[]).find(b=>b.name===a);return c&&c.models&&c.models.length>0?c.models:null}async function D({body:a,models:b,handleSingleModel:c,log:h,comboName:j,comboStrategy:q,comboStickyLimit:r=1,autoSwitch:s=!0}){let t=A(b,j,q,r);if(s){let b=function(a){let b=new Set;if(!a||"object"!=typeof a)return b;let c=a=>{"string"==typeof a&&(a.startsWith("image/")?b.add("vision"):a.startsWith("audio/")?b.add("audioInput"):"application/pdf"===a&&b.add("pdf"))},d=a=>{if(!a||"object"!=typeof a)return;let c=a.type;("image_url"===c||"image"===c||"input_image"===c)&&b.add("vision"),("file"===c||"document"===c||"input_file"===c)&&b.add("pdf");let d=a.inlineData?.mimeType||a.fileData?.mimeType;"string"==typeof d&&d.startsWith("image/")&&b.add("vision"),"application/pdf"===d&&b.add("pdf")},e=a=>{if(Array.isArray(a))for(let b of a)d(b)},f=a=>{if(!a||"object"!=typeof a)return;Array.isArray(a.images)&&a.images.length>0&&b.add("vision");let d=a.experimental_attachments||a.attachments;if(Array.isArray(d))for(let a of d){if(!a)continue;let d=a.contentType||a.mediaType||"string"==typeof a.url&&a.url.match(/^data:([^;,]+)/)?.[1];d?c(d):(a.url||a.data)&&b.add("vision")}(a.image_url||a.image)&&b.add("vision"),(a.audio_url||a.audio)&&b.add("audioInput"),e(a.content),"string"==typeof a.content&&(a.content.includes("data:image/")?b.add("vision"):a.content.includes("data:audio/")?b.add("audioInput"):a.content.includes("data:application/pdf")&&b.add("pdf"))};for(let b of z(a.messages))f(b);for(let b of z(a.input))e(b.content);for(let b of z(a.contents||a.request?.contents))e(b.parts);return b}(a);if(b.size>0){let a=function(a,b){if(!b||0===b.size||!Array.isArray(a)||a.length<=1)return a;let c=[...b].filter(a=>p.has(a)),d=[...b].filter(a=>!p.has(a));return a.map((a,b)=>{let e,g,h,i;return{m:a,i:b,t:(g=(e="string"==typeof a?a.indexOf("/"):-1)>0?a.slice(0,e):"",h=e>0?a.slice(e+1):a,i=(0,f.nl)(g,h),c.every(a=>!0===i[a])?+!d.every(a=>!0===i[a]):2)}}).sort((a,b)=>a.t-b.t||a.i-b.i).map(a=>a.m)}(t,b);a[0]!==t[0]&&h.info("COMBO",`auto-switch for [${[...b].join(",")}] → ${a[0]}`),t=a}}let u=null,w=null,x=null;for(let b=0;b<t.length;b++){let e=t[b];h.info("COMBO",`Trying model ${b+1}/${t.length}: ${e}`);try{let f=await c(a,e);if(f.ok){let{hasContent:c,body:d}=await v(f);if(!c){u="provider returned an empty stream",x||(x=503),h.warn("COMBO",`Model ${e} returned an empty stream, trying next`);continue}let i=d?new Response(d,{status:f.status,statusText:f.statusText,headers:f.headers}):f,p="fallback"===q||void 0===q&&Array.isArray(a?.tools)&&a.tools.length>0?await k(i,a):i;if(p)return h.info("COMBO",`Model ${e} succeeded`),function({comboName:a,selectedModel:b,attemptedModels:c=[]},d){let e,f;if(!(d instanceof Response))return d;let h=g.Qn.headers,i=m(a),j=(f=(e=m(b)).indexOf("/"))>0?{leaf:e,provider:e.slice(0,f),model:e.slice(f+1)}:{leaf:e,provider:"",model:e},k=n(d.headers.get(h.routePath)),p=m(d.headers.get(h.resolvedProvider))||j.provider||"unknown",q=m(d.headers.get(h.resolvedModel))||j.model,r=o(c.map(m)),s=n(d.headers.get(h.attemptedModels)),t=Number.parseInt(d.headers.get(h.fallbackCount)||"0",10);var u={[h.requestedModel]:i,[h.routePath]:o([i,...k.length?k:[j.leaf]]).join(","),[h.resolvedProvider]:p,[h.resolvedModel]:q,[h.fallbackCount]:Math.max(0,Number.isFinite(t)?t:0)+Math.max(0,r.length-1),[h.attemptedModels]:o([...r,...s]).join(",")};if(!(d instanceof Response))return d;let v=new Headers(d.headers);for(let[a,b]of Object.entries(u))v.set(a,String(b));return v.set("Access-Control-Expose-Headers",o([...n(v.get("Access-Control-Expose-Headers")),...l]).join(", ")),new Response(d.body,{status:d.status,statusText:d.statusText,headers:v})}({comboName:j||a?.model,selectedModel:e,attemptedModels:t.slice(0,b+1)},p);u="Response ended before its first actionable event",x||(x=502),h.warn("COMBO",`Model ${e} produced no action, trying next`);continue}let p=f.statusText||"",r=null;try{let a=await f.clone().json();p=a?.error?.message||a?.error||a?.message||p,r=a?.retryAfter||null}catch{}if(r&&(!w||new Date(r)<new Date(w))&&(w=r),"string"!=typeof p)try{p=JSON.stringify(p)}catch{p=String(p)}let{shouldFallback:s,cooldownMs:y}=(0,d.hk)(f.status,p);if(!s)return h.warn("COMBO",`Model ${e} failed (no fallback)`,{status:f.status}),f;y&&y>0&&y<=5e3&&(503===f.status||502===f.status||504===f.status)&&(h.info("COMBO",`Model ${e} transient ${f.status}, waiting ${y}ms before next`),await new Promise(a=>setTimeout(a,y))),u=p||String(f.status),x||(x=f.status),h.warn("COMBO",`Model ${e} failed, trying next`,{status:f.status});let z=e.includes("/")?e.slice(0,e.indexOf("/")):"unknown",A=e.includes("/")?e.slice(e.indexOf("/")+1):e;(0,i.QB)({endpoint:"/v1/chat/completions",provider:z,model:A,connectionId:`combo-${j||e}`,comboName:j||null,statusCode:f.status,errorMessage:p||f.statusText,request:null,providerRequest:null,providerResponse:null,meta:{fallback:!0,retryAfter:r,retryAfterHuman:r?(0,d.Qo)(r):null,latency:{}}}).catch(()=>{})}catch(a){u=a.message||String(a),x||(x=500),h.warn("COMBO",`Model ${e} threw error, trying next`,{error:u})}}let y=u&&u.toLowerCase().includes("no credentials")?503:x||503,B=u||"All combo models unavailable";if(w){let a=(0,d.Qo)(w);return h.warn("COMBO",`All models failed | ${B} (${a})`),(0,e.wO)(y,B,w,a)}return h.warn("COMBO",`All models failed | ${B}`),new Response(JSON.stringify({error:{message:B}}),{status:y,headers:{"Content-Type":"application/json"}})}let E={minPanel:2,stragglerGraceMs:8e3,panelHardTimeoutMs:9e4};async function F({body:a,models:b,handleSingleModel:c,log:d,comboName:e,judgeModel:f,tuning:g}){var i;let j,k,l=Array.isArray(b)?b.filter(Boolean):[];if(0===l.length)return new Response(JSON.stringify({error:{message:"Fusion combo has no models"}}),{status:400,headers:{"Content-Type":"application/json"}});if(1===l.length)return c(a,l[0]);let m={...E,...g||{}},n=Math.min(Math.max(2,m.minPanel),l.length),o=f&&f.trim()?f.trim():l[0];d.info("FUSION",`Combo "${e}" | panel=${l.length} [${l.join(", ")}] | judge=${o} | quorum=${n}`);let{tools:p,tool_choice:q,stream_options:r,...s}=a,t={...s,stream:!1};Array.isArray(t.messages)?t.messages=w(x(t.messages)):Array.isArray(t.input)&&(t.input=w(x(t.input)));let u=Date.now(),v=l.map(a=>{var b,d;return b=c(t,a,!0),d=m.panelHardTimeoutMs,new Promise(a=>{let c=setTimeout(()=>a({__timeout:!0}),d);Promise.resolve(b).then(b=>{clearTimeout(c),a(b)}).catch(b=>{clearTimeout(c),a({__error:b})})})}),y=await function(a,{minPanel:b,stragglerGraceMs:c,panelHardTimeoutMs:d}){return new Promise(e=>{let f=Array(a.length),g=0,h=0,i=!1,j=null,k=()=>{i||(i=!0,clearTimeout(l),j&&clearTimeout(j),e(f))},l=setTimeout(k,d);a.forEach((d,e)=>{Promise.resolve(d).then(a=>{f[e]=a}).catch(a=>{f[e]={__error:a}}).finally(()=>{if(g++,f[e]&&f[e].ok&&h++,g===a.length)return k();h>=b&&!j&&(j=setTimeout(k,c))})})})}(v,{...m,minPanel:n});d.info("FUSION",`fan-out collected in ${Date.now()-u}ms`);let z=[];for(let a=0;a<y.length;a++){let b=y[a],c=l[a];if(!b){d.warn("FUSION",`Panel ${c} dropped (straggler/timeout)`);continue}if(b.__timeout){d.warn("FUSION",`Panel ${c} timed out`);continue}if(b.__error){d.warn("FUSION",`Panel ${c} threw`,{error:b.__error?.message||String(b.__error)});continue}if(!b.ok){d.warn("FUSION",`Panel ${c} failed`,{status:b.status});continue}try{let a=await b.clone().json(),e=function(a){if(!a||"object"!=typeof a)return"";let b=a.choices?.[0];if(b){let a=b.message??b.delta??{},c=(0,h.kU)(a.content);if(c.trim())return c;if("string"==typeof b.text&&b.text.trim())return b.text}let c=(0,h.kU)(a.content);if(c.trim())return c;let d=a.candidates?.[0]?.content?.parts;if(Array.isArray(d)){let a=d.map(a=>a?.text||"").join("");if(a.trim())return a}if(Array.isArray(a.output)){let b=a.output.flatMap(a=>Array.isArray(a.content)?a.content.map(a=>a?.text||""):[]).join("");if(b.trim())return b}return""}(a);e?(z.push({model:c,text:e}),d.info("FUSION",`Panel ${c} ok (${e.length} chars)`)):d.warn("FUSION",`Panel ${c} returned empty content`)}catch(a){d.warn("FUSION",`Panel ${c} unparseable`,{error:a.message||String(a)})}}if(0===z.length)return d.warn("FUSION","All panel models failed"),new Response(JSON.stringify({error:{message:"All fusion panel models failed"}}),{status:503,headers:{"Content-Type":"application/json"}});if(1===z.length)return d.info("FUSION",`Only ${z[0].model} succeeded — answering directly (no fusion)`),c(a,z[0].model);let A=(j=z.map((a,b)=>`[Source ${b+1}]
2
+ ${a.text}`).join("\n\n"),i=[`You are the JUDGE in a model-fusion panel. ${z.length} expert models independently answered the user's most recent request. Their responses are below, anonymized by source.`,"\nDo NOT mention that multiple models were used, and do NOT refer to the sources. Produce ONE authoritative final answer addressed directly to the user.\n\nFirst, internally analyze the panel along these dimensions: consensus (points most sources agree on — treat as higher-confidence), contradictions (where they disagree — resolve with your own judgment), partial coverage, unique insights only one source surfaced, and blind spots every source missed. Then write the best possible final answer grounded in that analysis — more complete and correct than any single response, with no filler.\n\n=== PANEL RESPONSES ===",j,"=== END PANEL RESPONSES ===\n\nNow write the final answer to the user's original request."].join("\n"),k={...a},Array.isArray(a.messages)?k.messages=[...a.messages,{role:"user",content:i}]:Array.isArray(a.input)?k.input=[...a.input,{role:"user",content:i}]:Array.isArray(a.contents)?k.contents=[...a.contents,{role:"user",parts:[{text:i}]}]:k.messages=[{role:"user",content:i}],k);return d.info("FUSION",`Judging ${z.length} answers with ${o}`),c(A,o)}},67677:(a,b,c)=>{c.d(b,{Gh:()=>k,IF:()=>p,O9:()=>g,OF:()=>o,WL:()=>h,_6:()=>j,_L:()=>m,bC:()=>n,f5:()=>l,lm:()=>f});var d=c(19956);let e="1"===process.env.LOG_USAGE_VERBOSE,f={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function g(a){if(!a||"object"!=typeof a)return a;let b={...a};return void 0!==b.input_tokens&&(b.input_tokens+=2e3),void 0!==b.prompt_tokens&&(b.prompt_tokens+=2e3),void 0!==b.total_tokens?b.total_tokens+=2e3:void 0!==b.prompt_tokens&&void 0!==b.completion_tokens&&(b.total_tokens=b.prompt_tokens+b.completion_tokens),b}function h(a,b){if(!a||"object"!=typeof a)return a;let c={[d.h.CLAUDE]:["input_tokens","output_tokens","cache_read_input_tokens","cache_creation_input_tokens","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.GEMINI]:["promptTokenCount","candidatesTokenCount","totalTokenCount","cachedContentTokenCount","thoughtsTokenCount","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],[d.h.OPENAI_RESPONSES]:["input_tokens","output_tokens","input_tokens_details","output_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"],default:["prompt_tokens","completion_tokens","total_tokens","cached_tokens","reasoning_tokens","prompt_tokens_details","completion_tokens_details","estimated","cost_usd","cost_in_usd","cost_in_usd_ticks"]},e=c[b];b===d.h.GEMINI_CLI||b===d.h.ANTIGRAVITY?e=c[d.h.GEMINI]:b===d.h.OPENAI_RESPONSE?e=c[d.h.OPENAI_RESPONSES]:e||(e=c.default);let f={};for(let b of e)void 0!==a[b]&&(f[b]=a[b]);return f}function i(a){if(!a||"object"!=typeof a||Array.isArray(a))return null;let b={},c=(a,c)=>{if(null==c)return;let d=Number(c);Number.isFinite(d)&&(b[a]=d)},d=(a,c)=>{if(null==c||""===c)return;let d=Number(c);Number.isFinite(d)&&d>=0&&(b[a]=d)};return(c("prompt_tokens",a?.prompt_tokens),c("completion_tokens",a?.completion_tokens),c("total_tokens",a?.total_tokens),c("cache_read_input_tokens",a?.cache_read_input_tokens),c("cache_creation_input_tokens",a?.cache_creation_input_tokens),c("cached_tokens",a?.cached_tokens),c("reasoning_tokens",a?.reasoning_tokens),d("cost_usd",a?.cost_usd),d("cost_in_usd",a?.cost_in_usd),d("cost_in_usd_ticks",a?.cost_in_usd_ticks),a?.prompt_tokens_details&&"object"==typeof a.prompt_tokens_details&&(b.prompt_tokens_details=a.prompt_tokens_details),a?.completion_tokens_details&&"object"==typeof a.completion_tokens_details&&(b.completion_tokens_details=a.completion_tokens_details),0===Object.keys(b).length)?null:b}function j(a){let b;if(!a||"object"!=typeof a||Array.isArray(a))return null;let c=a=>Number.isFinite(Number(a))?Number(a):0,d=c(a.completion_tokens??a.output_tokens),e=c(a.reasoning_tokens),f=c(a.cache_creation_input_tokens??a.prompt_tokens_details?.cache_creation_tokens),g=c(a.prompt_tokens??a.input_tokens);void 0===a.cached_tokens&&(void 0!==a.cache_read_input_tokens||void 0!==a.cache_creation_input_tokens)?g=g+(b=c(a.cache_read_input_tokens))+f:b=c(a.cached_tokens??a.prompt_tokens_details?.cached_tokens);let h={prompt_tokens:g,completion_tokens:d,total_tokens:g+d,cached_tokens:b,cache_creation_input_tokens:f},i=b=>{if(null===a[b]||void 0===a[b]||""===a[b])return;let c=Number(a[b]);Number.isFinite(c)&&c>=0&&(h[b]=c)};return i("cost_usd"),i("cost_in_usd"),i("cost_in_usd_ticks"),e>0&&(h.reasoning_tokens=e),h}function k(a){if(!a||"object"!=typeof a)return!1;for(let b of["prompt_tokens","completion_tokens","total_tokens","input_tokens","output_tokens","promptTokenCount","candidatesTokenCount"])if("number"==typeof a[b]&&a[b]>0)return!0;return!1}function l(a){if(!a||"object"!=typeof a)return null;if("message_start"===a.type&&a.message?.usage&&"object"==typeof a.message.usage){let b=a.message.usage;return i({prompt_tokens:b.input_tokens||0,completion_tokens:b.output_tokens||0,cache_read_input_tokens:b.cache_read_input_tokens,cache_creation_input_tokens:b.cache_creation_input_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks})}if("message_delta"===a.type&&a.usage&&"object"==typeof a.usage)return i({prompt_tokens:a.usage.input_tokens||0,completion_tokens:a.usage.output_tokens||0,cache_read_input_tokens:a.usage.cache_read_input_tokens,cache_creation_input_tokens:a.usage.cache_creation_input_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks});if(("response.completed"===a.type||"response.done"===a.type)&&a.response?.usage&&"object"==typeof a.response.usage){let b=a.response.usage,c=b.input_tokens_details?.cached_tokens;return i({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:c,reasoning_tokens:b.output_tokens_details?.reasoning_tokens,cost_usd:b.cost_usd,cost_in_usd:b.cost_in_usd,cost_in_usd_ticks:b.cost_in_usd_ticks,prompt_tokens_details:c?{cached_tokens:c}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return i({prompt_tokens:a.usage.prompt_tokens,completion_tokens:a.usage.completion_tokens||0,cached_tokens:a.usage.prompt_tokens_details?.cached_tokens||a.usage.prompt_cache_hit_tokens,reasoning_tokens:a.usage.completion_tokens_details?.reasoning_tokens,cost_usd:a.usage.cost_usd,cost_in_usd:a.usage.cost_in_usd,cost_in_usd_ticks:a.usage.cost_in_usd_ticks,prompt_tokens_details:a.usage.prompt_tokens_details,completion_tokens_details:a.usage.completion_tokens_details});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?i({prompt_tokens:b.promptTokenCount||0,completion_tokens:b.candidatesTokenCount||0,total_tokens:b.totalTokenCount,cached_tokens:b.cachedContentTokenCount,reasoning_tokens:b.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?i({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0)}):null}function m(a,b){if(!a)return b||null;if(!b)return a;let c={...a};for(let[a,d]of Object.entries(b))"number"==typeof d&&Number.isFinite(d)?c[a]=Math.max("number"==typeof c[a]?c[a]:0,d):d&&"object"==typeof d&&(c[a]=d);return c}function n(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a).length;return Math.ceil(b/4)}catch(a){return 0}}function o(a,b,c=d.h.OPENAI){var e,f;return e=n(a),f=b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c===d.h.CLAUDE?g({input_tokens:e,output_tokens:f,estimated:!0}):g({prompt_tokens:e,completion_tokens:f,total_tokens:e+f,estimated:!0})}function p(a,b,c=null,d=null,g=null){if(!b||"object"!=typeof b||!e)return;let h=a?.toUpperCase()||"UNKNOWN",i=b?.prompt_tokens||b?.input_tokens||0,j=b?.completion_tokens||b?.output_tokens||0,k=d?d.slice(0,8)+"...":"unknown",l=`[${new Date().toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}] 📊 ${f.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${f.reset}`;b.estimated&&(l+=` ${f.yellow}(estimated)${f.reset}`);let m=b.cache_read_input_tokens||b.cached_tokens||b.prompt_tokens_details?.cached_tokens;m&&(l+=` | cache_read=${m}`);let n=b.cache_creation_input_tokens;n&&(l+=` | cache_create=${n}`);let o=b.reasoning_tokens;o&&(l+=` | reasoning=${o}`),console.log(l)}},89865:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(87252);function e(a,b,c){let e;return new Response(JSON.stringify((e=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:e.type,code:c??e.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c,e="";try{e=await a.text()}catch{e=""}let g="";try{let a=JSON.parse(e);g=a.error?.message||a.message||a.error||e,c=a.error?.code||a.code}catch{g=e}let h=("string"==typeof g?g:JSON.stringify(g))||d.O[a.status]||`Upstream error: ${a.status}`;if(b&&"function"==typeof b.parseError)try{let d=b.parseError(a,e);if(d&&"object"==typeof d){let b=d.message&&d.message!==e?d.message:h;return{statusCode:d.status||a.status,message:b,resetsAtMs:d.resetsAtMs,code:d.code??c}}}catch{}return{statusCode:a.status,message:h,code:c}}function g(a,b,c,d){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b,d)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}}};