@rabbi696/ezrouter 0.6.16 → 0.6.17

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 (1381) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +28 -25
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +24 -0
  5. package/app/.next-cli-build/react-loadable-manifest.json +2 -2
  6. package/app/.next-cli-build/routes-manifest.json +18 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +2 -2
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +5 -5
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +6 -6
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +2 -2
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  94. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js +2 -0
  95. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js.nft.json +1 -0
  96. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page_client-reference-manifest.js +1 -0
  97. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  98. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  100. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  101. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  105. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  106. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  107. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  108. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  109. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  111. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  112. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  113. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  114. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  115. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  116. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  117. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  118. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  119. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  176. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  178. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  188. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  190. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  192. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  194. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  200. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/convoy/rules/route.js +2 -2
  216. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  244. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +2 -2
  256. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +2 -2
  258. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js +2 -2
  262. package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  298. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +14 -14
  368. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +14 -14
  370. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +68 -0
  372. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -0
  373. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route_client-reference-manifest.js +1 -0
  374. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  377. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  379. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  381. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  382. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  383. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  385. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  387. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  389. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  391. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  393. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +2 -2
  411. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  417. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js +2 -2
  449. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  453. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  455. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  456. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  457. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  458. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  459. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  460. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  461. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  462. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  463. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  476. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  486. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  493. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  494. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  499. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  500. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  501. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  503. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  505. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  506. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  507. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  508. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  509. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  510. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  511. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  512. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  513. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  514. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  515. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  517. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  518. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  519. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  520. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  521. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  522. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  523. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  524. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  525. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  526. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  527. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  528. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  529. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  530. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  531. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  532. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  533. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  534. package/app/.next-cli-build/server/app/api/wakeup/route.js +1 -0
  535. package/app/.next-cli-build/server/app/api/wakeup/route.js.nft.json +1 -0
  536. package/app/.next-cli-build/server/app/api/wakeup/route_client-reference-manifest.js +1 -0
  537. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  538. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  539. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  540. package/app/.next-cli-build/server/app/callback.html +1 -1
  541. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  542. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  543. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  544. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  545. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  546. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  550. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  555. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  557. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  558. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  560. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  565. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  567. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  570. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  575. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  577. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +6 -6
  580. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  581. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  584. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +6 -6
  585. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +4 -4
  587. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  590. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  591. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  594. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  595. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  596. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  597. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  598. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +6 -6
  600. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
  601. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  603. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  605. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +6 -6
  606. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +4 -4
  608. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +2 -2
  609. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +6 -6
  611. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
  612. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  616. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +6 -6
  617. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
  618. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +4 -4
  619. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +2 -2
  620. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +6 -6
  622. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
  623. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  624. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  626. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +6 -6
  627. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
  628. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +4 -4
  629. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +2 -2
  630. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  632. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  633. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  634. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  637. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  638. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  640. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  642. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  643. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  644. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  647. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  648. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  649. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  650. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  651. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  652. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  653. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  654. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  656. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  657. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  658. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  659. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  660. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  661. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  662. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  663. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  664. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  665. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  666. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  667. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  668. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  669. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  670. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  671. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  672. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  673. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  674. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  675. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  676. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  677. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  678. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  679. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  680. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  681. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  682. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  683. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  684. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  685. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  686. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  687. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  688. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  689. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  690. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  691. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  692. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  693. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  694. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  695. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  696. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  697. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  698. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  699. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  700. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  701. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  702. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  703. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  704. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  705. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  706. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  707. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  708. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  709. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  710. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  711. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  712. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  713. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +6 -6
  714. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  715. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  716. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  717. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  718. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +6 -6
  719. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  720. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +4 -4
  721. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +2 -2
  722. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  723. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  724. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  725. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  726. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  727. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  728. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  729. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  730. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  731. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  732. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  733. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  734. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  735. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  736. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  737. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  738. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  739. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  740. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  741. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  742. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  743. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  744. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  745. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  746. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  747. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  748. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  749. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  750. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  751. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  752. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  753. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  754. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  755. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  756. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  757. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  758. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  759. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  760. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  761. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  762. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  763. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  764. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  765. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  766. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  767. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  768. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  769. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  770. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  771. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  772. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  773. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  774. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  775. package/app/.next-cli-build/server/app/dashboard/wakeup.html +1 -0
  776. package/app/.next-cli-build/server/app/dashboard/wakeup.meta +17 -0
  777. package/app/.next-cli-build/server/app/dashboard/wakeup.rsc +26 -0
  778. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup/__PAGE__.segment.rsc +9 -0
  779. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup.segment.rsc +5 -0
  780. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +5 -0
  781. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  782. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_full.segment.rsc +26 -0
  783. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_head.segment.rsc +6 -0
  784. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_index.segment.rsc +8 -0
  785. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_tree.segment.rsc +4 -0
  786. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  787. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  788. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  789. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  790. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  791. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  792. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  793. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  794. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  795. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  796. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  797. package/app/.next-cli-build/server/app/index.html +1 -1
  798. package/app/.next-cli-build/server/app/index.rsc +4 -4
  799. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  800. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  801. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  802. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +4 -4
  803. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  804. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  805. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  806. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  807. package/app/.next-cli-build/server/app/landing.html +1 -1
  808. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  809. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  810. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  811. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  812. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  813. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  814. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  815. package/app/.next-cli-build/server/app/login/page.js +2 -2
  816. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  817. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  818. package/app/.next-cli-build/server/app/login.html +1 -1
  819. package/app/.next-cli-build/server/app/login.rsc +5 -5
  820. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  821. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  822. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  823. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  824. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  825. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  826. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  827. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  828. package/app/.next-cli-build/server/app/page.js +2 -2
  829. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  830. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  831. package/app/.next-cli-build/server/app-paths-manifest.json +28 -25
  832. package/app/.next-cli-build/server/chunks/1133.js +1 -1
  833. package/app/.next-cli-build/server/chunks/1198.js +1 -0
  834. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  835. package/app/.next-cli-build/server/chunks/14.js +2 -0
  836. package/app/.next-cli-build/server/chunks/1522.js +1 -1
  837. package/app/.next-cli-build/server/chunks/1641.js +1 -1
  838. package/app/.next-cli-build/server/chunks/1733.js +1 -1
  839. package/app/.next-cli-build/server/chunks/1847.js +1 -1
  840. package/app/.next-cli-build/server/chunks/{9026.js → 1942.js} +18 -18
  841. package/app/.next-cli-build/server/chunks/2180.js +1 -0
  842. package/app/.next-cli-build/server/chunks/2220.js +1 -1
  843. package/app/.next-cli-build/server/chunks/2269.js +1 -1
  844. package/app/.next-cli-build/server/chunks/2316.js +1 -0
  845. package/app/.next-cli-build/server/chunks/2348.js +1 -1
  846. package/app/.next-cli-build/server/chunks/2898.js +1 -1
  847. package/app/.next-cli-build/server/chunks/290.js +1 -1
  848. package/app/.next-cli-build/server/chunks/3092.js +1 -0
  849. package/app/.next-cli-build/server/chunks/321.js +10 -0
  850. package/app/.next-cli-build/server/chunks/3275.js +1 -1
  851. package/app/.next-cli-build/server/chunks/3547.js +1 -1
  852. package/app/.next-cli-build/server/chunks/3583.js +1 -1
  853. package/app/.next-cli-build/server/chunks/369.js +23 -23
  854. package/app/.next-cli-build/server/chunks/3874.js +1 -0
  855. package/app/.next-cli-build/server/chunks/3886.js +1 -1
  856. package/app/.next-cli-build/server/chunks/3977.js +1 -1
  857. package/app/.next-cli-build/server/chunks/412.js +3 -3
  858. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  859. package/app/.next-cli-build/server/chunks/{5704.js → 4344.js} +34 -34
  860. package/app/.next-cli-build/server/chunks/4378.js +2 -52
  861. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  862. package/app/.next-cli-build/server/chunks/4704.js +3 -53
  863. package/app/.next-cli-build/server/chunks/4803.js +1 -1
  864. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  865. package/app/.next-cli-build/server/chunks/4878.js +1 -1
  866. package/app/.next-cli-build/server/chunks/4989.js +1 -0
  867. package/app/.next-cli-build/server/chunks/5251.js +1 -1
  868. package/app/.next-cli-build/server/chunks/5460.js +2 -2
  869. package/app/.next-cli-build/server/chunks/5872.js +1 -1
  870. package/app/.next-cli-build/server/chunks/6103.js +1 -1
  871. package/app/.next-cli-build/server/chunks/615.js +1 -1
  872. package/app/.next-cli-build/server/chunks/6252.js +1 -1
  873. package/app/.next-cli-build/server/chunks/6405.js +1 -1
  874. package/app/.next-cli-build/server/chunks/6464.js +1 -0
  875. package/app/.next-cli-build/server/chunks/6569.js +1 -0
  876. package/app/.next-cli-build/server/chunks/6623.js +1 -0
  877. package/app/.next-cli-build/server/chunks/6664.js +1 -0
  878. package/app/.next-cli-build/server/chunks/6799.js +1 -1
  879. package/app/.next-cli-build/server/chunks/7362.js +1 -1
  880. package/app/.next-cli-build/server/chunks/7594.js +16 -16
  881. package/app/.next-cli-build/server/chunks/7633.js +1 -0
  882. package/app/.next-cli-build/server/chunks/7663.js +1 -1
  883. package/app/.next-cli-build/server/chunks/7677.js +1 -1
  884. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  885. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  886. package/app/.next-cli-build/server/chunks/7811.js +1 -1
  887. package/app/.next-cli-build/server/chunks/8062.js +1 -1
  888. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  889. package/app/.next-cli-build/server/chunks/823.js +1 -1
  890. package/app/.next-cli-build/server/chunks/8243.js +5 -14
  891. package/app/.next-cli-build/server/chunks/8306.js +1 -1
  892. package/app/.next-cli-build/server/chunks/8469.js +1 -1
  893. package/app/.next-cli-build/server/chunks/8644.js +1 -1
  894. package/app/.next-cli-build/server/chunks/8950.js +1 -0
  895. package/app/.next-cli-build/server/chunks/8976.js +1 -1
  896. package/app/.next-cli-build/server/chunks/9303.js +1 -1
  897. package/app/.next-cli-build/server/chunks/{4768.js → 9352.js} +1 -1
  898. package/app/.next-cli-build/server/chunks/9485.js +1 -1
  899. package/app/.next-cli-build/server/chunks/9616.js +1 -0
  900. package/app/.next-cli-build/server/chunks/9761.js +51 -0
  901. package/app/.next-cli-build/server/chunks/9865.js +1 -1
  902. package/app/.next-cli-build/server/chunks/9898.js +51 -0
  903. package/app/.next-cli-build/server/functions-config-manifest.json +2 -1
  904. package/app/.next-cli-build/server/instrumentation.js +1 -1
  905. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  906. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  907. package/app/.next-cli-build/server/middleware.js +6 -6
  908. package/app/.next-cli-build/server/pages/404.html +1 -1
  909. package/app/.next-cli-build/server/pages/500.html +1 -1
  910. package/app/.next-cli-build/static/FVexSVbOSDtcylsZCcjge/_buildManifest.js +1 -0
  911. package/app/.next-cli-build/static/chunks/{1321-73fdccd2b1bf151d.js → 1321-26e45b3f54a76b57.js} +1 -1
  912. package/app/.next-cli-build/static/chunks/5497-4241ae61f34ae4c0.js +17 -0
  913. package/app/.next-cli-build/static/chunks/6509-e4e72b0db83cac55.js +1 -0
  914. package/app/.next-cli-build/static/chunks/{801-a83c4648747b8c6a.js → 801-410b498dd92d55c0.js} +1 -1
  915. package/app/.next-cli-build/static/chunks/8105-e126b2fb1459aebd.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-6720afc00e5d9d9a.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-c35f746b4bd9fc90.js → page-948cbe61db1d6e26.js} +11 -11
  918. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-2f0ed88b5c33439a.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-7f28486bb0eb77b3.js → page-886fa42ab104c02b.js} +2 -2
  920. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-0868ecc0d2f1bd04.js → page-f9acce0bf6425bac.js} +5 -5
  921. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-7813952170842887.js +4 -0
  922. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-07467119470e1841.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-c804bcf327d3ef5a.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/wakeup/page-cc38ba001d74e072.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/_global-error/page-6152f72d0a627f31.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-6152f72d0a627f31.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-6152f72d0a627f31.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-6152f72d0a627f31.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-6152f72d0a627f31.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-6152f72d0a627f31.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-6152f72d0a627f31.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-6152f72d0a627f31.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-6152f72d0a627f31.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-6152f72d0a627f31.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-6152f72d0a627f31.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-6152f72d0a627f31.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/changelog/route-6152f72d0a627f31.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-6152f72d0a627f31.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-6152f72d0a627f31.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6152f72d0a627f31.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-6152f72d0a627f31.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-6152f72d0a627f31.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-6152f72d0a627f31.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-6152f72d0a627f31.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-6152f72d0a627f31.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-6152f72d0a627f31.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-6152f72d0a627f31.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-6152f72d0a627f31.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-6152f72d0a627f31.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6152f72d0a627f31.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6152f72d0a627f31.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-6152f72d0a627f31.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-6152f72d0a627f31.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6152f72d0a627f31.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-6152f72d0a627f31.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-6152f72d0a627f31.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-6152f72d0a627f31.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-6152f72d0a627f31.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-6152f72d0a627f31.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-6152f72d0a627f31.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-6152f72d0a627f31.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-6152f72d0a627f31.js +1 -0
  963. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-6152f72d0a627f31.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-6152f72d0a627f31.js +1 -0
  965. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-6152f72d0a627f31.js +1 -0
  966. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-6152f72d0a627f31.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-6152f72d0a627f31.js +1 -0
  968. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-6152f72d0a627f31.js +1 -0
  969. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-6152f72d0a627f31.js +1 -0
  970. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-6152f72d0a627f31.js +1 -0
  971. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-6152f72d0a627f31.js +1 -0
  972. package/app/.next-cli-build/static/chunks/app/api/combos/route-6152f72d0a627f31.js +1 -0
  973. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-6152f72d0a627f31.js +1 -0
  974. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-6152f72d0a627f31.js +1 -0
  975. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-6152f72d0a627f31.js +1 -0
  976. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-6152f72d0a627f31.js +1 -0
  977. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-6152f72d0a627f31.js +1 -0
  978. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-6152f72d0a627f31.js +1 -0
  979. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-6152f72d0a627f31.js +1 -0
  980. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-6152f72d0a627f31.js +1 -0
  981. package/app/.next-cli-build/static/chunks/app/api/health/route-6152f72d0a627f31.js +1 -0
  982. package/app/.next-cli-build/static/chunks/app/api/init/route-6152f72d0a627f31.js +1 -0
  983. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-6152f72d0a627f31.js +1 -0
  984. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-6152f72d0a627f31.js +1 -0
  985. package/app/.next-cli-build/static/chunks/app/api/keys/route-6152f72d0a627f31.js +1 -0
  986. package/app/.next-cli-build/static/chunks/app/api/locale/route-6152f72d0a627f31.js +1 -0
  987. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-6152f72d0a627f31.js +1 -0
  988. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-6152f72d0a627f31.js +1 -0
  989. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-6152f72d0a627f31.js +1 -0
  990. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-6152f72d0a627f31.js +1 -0
  991. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-6152f72d0a627f31.js +1 -0
  992. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-6152f72d0a627f31.js +1 -0
  993. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-6152f72d0a627f31.js +1 -0
  994. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-6152f72d0a627f31.js +1 -0
  995. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-6152f72d0a627f31.js +1 -0
  996. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-6152f72d0a627f31.js +1 -0
  997. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-6152f72d0a627f31.js +1 -0
  998. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6152f72d0a627f31.js +1 -0
  999. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6152f72d0a627f31.js +1 -0
  1000. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-6152f72d0a627f31.js +1 -0
  1001. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-6152f72d0a627f31.js +1 -0
  1002. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-6152f72d0a627f31.js +1 -0
  1003. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-6152f72d0a627f31.js +1 -0
  1004. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-6152f72d0a627f31.js +1 -0
  1005. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-6152f72d0a627f31.js +1 -0
  1006. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-6152f72d0a627f31.js +1 -0
  1007. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-6152f72d0a627f31.js +1 -0
  1008. package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-6152f72d0a627f31.js +1 -0
  1009. package/app/.next-cli-build/static/chunks/app/api/models/route-6152f72d0a627f31.js +1 -0
  1010. package/app/.next-cli-build/static/chunks/app/api/models/test/route-6152f72d0a627f31.js +1 -0
  1011. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-6152f72d0a627f31.js +1 -0
  1012. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-6152f72d0a627f31.js +1 -0
  1013. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-6152f72d0a627f31.js +1 -0
  1014. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-6152f72d0a627f31.js +1 -0
  1015. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-6152f72d0a627f31.js +1 -0
  1016. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-6152f72d0a627f31.js +1 -0
  1017. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-6152f72d0a627f31.js +1 -0
  1018. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-6152f72d0a627f31.js +1 -0
  1019. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-6152f72d0a627f31.js +1 -0
  1020. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-6152f72d0a627f31.js +1 -0
  1021. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-6152f72d0a627f31.js +1 -0
  1022. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-6152f72d0a627f31.js +1 -0
  1023. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-6152f72d0a627f31.js +1 -0
  1024. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-6152f72d0a627f31.js +1 -0
  1025. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-6152f72d0a627f31.js +1 -0
  1026. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-6152f72d0a627f31.js +1 -0
  1027. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-6152f72d0a627f31.js +1 -0
  1028. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-6152f72d0a627f31.js +1 -0
  1029. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-6152f72d0a627f31.js +1 -0
  1030. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-6152f72d0a627f31.js +1 -0
  1031. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-6152f72d0a627f31.js +1 -0
  1032. package/app/.next-cli-build/static/chunks/app/api/pricing/route-6152f72d0a627f31.js +1 -0
  1033. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-6152f72d0a627f31.js +1 -0
  1034. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-6152f72d0a627f31.js +1 -0
  1035. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-6152f72d0a627f31.js +1 -0
  1036. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-6152f72d0a627f31.js +1 -0
  1037. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-6152f72d0a627f31.js +1 -0
  1038. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-6152f72d0a627f31.js +1 -0
  1039. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-6152f72d0a627f31.js +1 -0
  1040. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-6152f72d0a627f31.js +1 -0
  1041. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-6152f72d0a627f31.js +1 -0
  1042. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-6152f72d0a627f31.js +1 -0
  1043. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-6152f72d0a627f31.js +1 -0
  1044. package/app/.next-cli-build/static/chunks/app/api/providers/route-6152f72d0a627f31.js +1 -0
  1045. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-6152f72d0a627f31.js +1 -0
  1046. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-6152f72d0a627f31.js +1 -0
  1047. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-6152f72d0a627f31.js +1 -0
  1048. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-6152f72d0a627f31.js +1 -0
  1049. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-6152f72d0a627f31.js +1 -0
  1050. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-6152f72d0a627f31.js +1 -0
  1051. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-6152f72d0a627f31.js +1 -0
  1052. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-6152f72d0a627f31.js +1 -0
  1053. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-6152f72d0a627f31.js +1 -0
  1054. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-6152f72d0a627f31.js +1 -0
  1055. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-6152f72d0a627f31.js +1 -0
  1056. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-6152f72d0a627f31.js +1 -0
  1057. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-6152f72d0a627f31.js +1 -0
  1058. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-6152f72d0a627f31.js +1 -0
  1059. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-6152f72d0a627f31.js +1 -0
  1060. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-6152f72d0a627f31.js +1 -0
  1061. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-6152f72d0a627f31.js +1 -0
  1062. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-6152f72d0a627f31.js +1 -0
  1063. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-6152f72d0a627f31.js +1 -0
  1064. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-6152f72d0a627f31.js +1 -0
  1065. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-6152f72d0a627f31.js +1 -0
  1066. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-6152f72d0a627f31.js +1 -0
  1067. package/app/.next-cli-build/static/chunks/app/api/settings/route-6152f72d0a627f31.js +1 -0
  1068. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-6152f72d0a627f31.js +1 -0
  1069. package/app/.next-cli-build/static/chunks/app/api/tags/route-6152f72d0a627f31.js +1 -0
  1070. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-6152f72d0a627f31.js +1 -0
  1071. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-6152f72d0a627f31.js +1 -0
  1072. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-6152f72d0a627f31.js +1 -0
  1073. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-6152f72d0a627f31.js +1 -0
  1074. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-6152f72d0a627f31.js +1 -0
  1075. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-6152f72d0a627f31.js +1 -0
  1076. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-6152f72d0a627f31.js +1 -0
  1077. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-6152f72d0a627f31.js +1 -0
  1078. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-6152f72d0a627f31.js +1 -0
  1079. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-6152f72d0a627f31.js +1 -0
  1080. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-6152f72d0a627f31.js +1 -0
  1081. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-6152f72d0a627f31.js +1 -0
  1082. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-6152f72d0a627f31.js +1 -0
  1083. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-6152f72d0a627f31.js +1 -0
  1084. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-6152f72d0a627f31.js +1 -0
  1085. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-6152f72d0a627f31.js +1 -0
  1086. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-6152f72d0a627f31.js +1 -0
  1087. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-6152f72d0a627f31.js +1 -0
  1088. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-6152f72d0a627f31.js +1 -0
  1089. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-6152f72d0a627f31.js +1 -0
  1090. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-6152f72d0a627f31.js +1 -0
  1091. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-6152f72d0a627f31.js +1 -0
  1092. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-6152f72d0a627f31.js +1 -0
  1093. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-6152f72d0a627f31.js +1 -0
  1094. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-6152f72d0a627f31.js +1 -0
  1095. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-6152f72d0a627f31.js +1 -0
  1096. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-6152f72d0a627f31.js +1 -0
  1097. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-6152f72d0a627f31.js +1 -0
  1098. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-6152f72d0a627f31.js +1 -0
  1099. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-6152f72d0a627f31.js +1 -0
  1100. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-6152f72d0a627f31.js +1 -0
  1101. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-6152f72d0a627f31.js +1 -0
  1102. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-6152f72d0a627f31.js +1 -0
  1103. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-6152f72d0a627f31.js +1 -0
  1104. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-6152f72d0a627f31.js +1 -0
  1105. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-6152f72d0a627f31.js +1 -0
  1106. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-6152f72d0a627f31.js +1 -0
  1107. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-6152f72d0a627f31.js +1 -0
  1108. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-6152f72d0a627f31.js +1 -0
  1109. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-6152f72d0a627f31.js +1 -0
  1110. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-6152f72d0a627f31.js +1 -0
  1111. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-6152f72d0a627f31.js +1 -0
  1112. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-6152f72d0a627f31.js +1 -0
  1113. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-6152f72d0a627f31.js +1 -0
  1114. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-6152f72d0a627f31.js +1 -0
  1115. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-6152f72d0a627f31.js +1 -0
  1116. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-6152f72d0a627f31.js +1 -0
  1117. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-6152f72d0a627f31.js +1 -0
  1118. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-6152f72d0a627f31.js +1 -0
  1119. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-6152f72d0a627f31.js +1 -0
  1120. package/app/.next-cli-build/static/chunks/app/api/v1/route-6152f72d0a627f31.js +1 -0
  1121. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-6152f72d0a627f31.js +1 -0
  1122. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-6152f72d0a627f31.js +1 -0
  1123. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-6152f72d0a627f31.js +1 -0
  1124. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-6152f72d0a627f31.js +1 -0
  1125. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-6152f72d0a627f31.js +1 -0
  1126. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-6152f72d0a627f31.js +1 -0
  1127. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-6152f72d0a627f31.js +1 -0
  1128. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-6152f72d0a627f31.js +1 -0
  1129. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-6152f72d0a627f31.js +1 -0
  1130. package/app/.next-cli-build/static/chunks/app/api/version/route-6152f72d0a627f31.js +1 -0
  1131. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-6152f72d0a627f31.js +1 -0
  1132. package/app/.next-cli-build/static/chunks/app/api/version/update/route-6152f72d0a627f31.js +1 -0
  1133. package/app/.next-cli-build/static/chunks/app/api/wakeup/route-6152f72d0a627f31.js +1 -0
  1134. package/app/.next-cli-build/static/chunks/app/landing/page-1317108013cd8887.js +1 -0
  1135. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-6152f72d0a627f31.js +1 -0
  1136. package/app/.next-cli-build/static/chunks/app/page-6152f72d0a627f31.js +1 -0
  1137. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-6152f72d0a627f31.js +1 -0
  1138. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-6152f72d0a627f31.js +1 -0
  1139. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-6152f72d0a627f31.js +1 -0
  1140. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-6152f72d0a627f31.js +1 -0
  1141. package/app/.next-cli-build/static/chunks/{webpack-ac71f993743961ad.js → webpack-2e234f646b31f149.js} +1 -1
  1142. package/app/.next-cli-build/static/css/9f1798df7ad706c5.css +1 -0
  1143. package/app/CHANGELOG.md +34 -0
  1144. package/app/package.json +1 -1
  1145. package/app/public/CHANGELOG.md +34 -0
  1146. package/package.json +1 -1
  1147. package/src/cli/menus/combos.js +9 -2
  1148. package/src/cli/utils/comboModelId.js +10 -0
  1149. package/app/.next-cli-build/server/chunks/5130.js +0 -1
  1150. package/app/.next-cli-build/server/chunks/6420.js +0 -1
  1151. package/app/.next-cli-build/server/chunks/7066.js +0 -1
  1152. package/app/.next-cli-build/server/chunks/7218.js +0 -1
  1153. package/app/.next-cli-build/server/chunks/8231.js +0 -1
  1154. package/app/.next-cli-build/server/chunks/8772.js +0 -1
  1155. package/app/.next-cli-build/server/chunks/9062.js +0 -1
  1156. package/app/.next-cli-build/static/Y5Sk8uSUyB0vJ-ZgW1X1U/_buildManifest.js +0 -1
  1157. package/app/.next-cli-build/static/chunks/5497-ff58e90f4053e184.js +0 -17
  1158. package/app/.next-cli-build/static/chunks/6808-93e2068e37a63896.js +0 -1
  1159. package/app/.next-cli-build/static/chunks/8105-9b41dc96e4b019cf.js +0 -1
  1160. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-72d5a02ccf63ca71.js +0 -1
  1161. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/page-56484613ccd100dd.js +0 -1
  1162. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-fd1013905d903c5c.js +0 -4
  1163. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-6cb070834a750fdd.js +0 -1
  1164. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-e54e9501bfa23e38.js +0 -1
  1165. package/app/.next-cli-build/static/chunks/app/_global-error/page-4c5cfa991861ba1b.js +0 -1
  1166. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-4c5cfa991861ba1b.js +0 -1
  1167. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-4c5cfa991861ba1b.js +0 -1
  1168. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-4c5cfa991861ba1b.js +0 -1
  1169. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-4c5cfa991861ba1b.js +0 -1
  1170. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-4c5cfa991861ba1b.js +0 -1
  1171. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-4c5cfa991861ba1b.js +0 -1
  1172. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-4c5cfa991861ba1b.js +0 -1
  1173. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-4c5cfa991861ba1b.js +0 -1
  1174. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-4c5cfa991861ba1b.js +0 -1
  1175. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-4c5cfa991861ba1b.js +0 -1
  1176. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-4c5cfa991861ba1b.js +0 -1
  1177. package/app/.next-cli-build/static/chunks/app/api/changelog/route-4c5cfa991861ba1b.js +0 -1
  1178. package/app/.next-cli-build/static/chunks/app/api/cli/providers/codex/route-4c5cfa991861ba1b.js +0 -1
  1179. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-4c5cfa991861ba1b.js +0 -1
  1180. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-4c5cfa991861ba1b.js +0 -1
  1181. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-4c5cfa991861ba1b.js +0 -1
  1182. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-4c5cfa991861ba1b.js +0 -1
  1183. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-4c5cfa991861ba1b.js +0 -1
  1184. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-4c5cfa991861ba1b.js +0 -1
  1185. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/models/route-4c5cfa991861ba1b.js +0 -1
  1186. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-native/readiness/route-4c5cfa991861ba1b.js +0 -1
  1187. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-4c5cfa991861ba1b.js +0 -1
  1188. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-4c5cfa991861ba1b.js +0 -1
  1189. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-4c5cfa991861ba1b.js +0 -1
  1190. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-4c5cfa991861ba1b.js +0 -1
  1191. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-4c5cfa991861ba1b.js +0 -1
  1192. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-4c5cfa991861ba1b.js +0 -1
  1193. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-4c5cfa991861ba1b.js +0 -1
  1194. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-4c5cfa991861ba1b.js +0 -1
  1195. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-4c5cfa991861ba1b.js +0 -1
  1196. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-4c5cfa991861ba1b.js +0 -1
  1197. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-4c5cfa991861ba1b.js +0 -1
  1198. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-4c5cfa991861ba1b.js +0 -1
  1199. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-4c5cfa991861ba1b.js +0 -1
  1200. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-4c5cfa991861ba1b.js +0 -1
  1201. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-4c5cfa991861ba1b.js +0 -1
  1202. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-4c5cfa991861ba1b.js +0 -1
  1203. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-4c5cfa991861ba1b.js +0 -1
  1204. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-4c5cfa991861ba1b.js +0 -1
  1205. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-4c5cfa991861ba1b.js +0 -1
  1206. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-4c5cfa991861ba1b.js +0 -1
  1207. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-4c5cfa991861ba1b.js +0 -1
  1208. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/test/route-4c5cfa991861ba1b.js +0 -1
  1209. package/app/.next-cli-build/static/chunks/app/api/combos/export/route-4c5cfa991861ba1b.js +0 -1
  1210. package/app/.next-cli-build/static/chunks/app/api/combos/import/route-4c5cfa991861ba1b.js +0 -1
  1211. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-4c5cfa991861ba1b.js +0 -1
  1212. package/app/.next-cli-build/static/chunks/app/api/combos/route-4c5cfa991861ba1b.js +0 -1
  1213. package/app/.next-cli-build/static/chunks/app/api/combos/test/route-4c5cfa991861ba1b.js +0 -1
  1214. package/app/.next-cli-build/static/chunks/app/api/convoy/rules/route-4c5cfa991861ba1b.js +0 -1
  1215. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-4c5cfa991861ba1b.js +0 -1
  1216. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-4c5cfa991861ba1b.js +0 -1
  1217. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-4c5cfa991861ba1b.js +0 -1
  1218. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-4c5cfa991861ba1b.js +0 -1
  1219. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-4c5cfa991861ba1b.js +0 -1
  1220. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-4c5cfa991861ba1b.js +0 -1
  1221. package/app/.next-cli-build/static/chunks/app/api/health/route-4c5cfa991861ba1b.js +0 -1
  1222. package/app/.next-cli-build/static/chunks/app/api/init/route-4c5cfa991861ba1b.js +0 -1
  1223. package/app/.next-cli-build/static/chunks/app/api/internal/codex-native/lease/[action]/route-4c5cfa991861ba1b.js +0 -1
  1224. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-4c5cfa991861ba1b.js +0 -1
  1225. package/app/.next-cli-build/static/chunks/app/api/keys/route-4c5cfa991861ba1b.js +0 -1
  1226. package/app/.next-cli-build/static/chunks/app/api/locale/route-4c5cfa991861ba1b.js +0 -1
  1227. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-4c5cfa991861ba1b.js +0 -1
  1228. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-4c5cfa991861ba1b.js +0 -1
  1229. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/route-4c5cfa991861ba1b.js +0 -1
  1230. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/[id]/test/route-4c5cfa991861ba1b.js +0 -1
  1231. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/instances/route-4c5cfa991861ba1b.js +0 -1
  1232. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/[id]/route-4c5cfa991861ba1b.js +0 -1
  1233. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/keys/route-4c5cfa991861ba1b.js +0 -1
  1234. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/message/route-4c5cfa991861ba1b.js +0 -1
  1235. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/oauth/[id]/[action]/route-4c5cfa991861ba1b.js +0 -1
  1236. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/route-4c5cfa991861ba1b.js +0 -1
  1237. package/app/.next-cli-build/static/chunks/app/api/mcp-gateway/sse/route-4c5cfa991861ba1b.js +0 -1
  1238. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-4c5cfa991861ba1b.js +0 -1
  1239. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-4c5cfa991861ba1b.js +0 -1
  1240. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-4c5cfa991861ba1b.js +0 -1
  1241. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-4c5cfa991861ba1b.js +0 -1
  1242. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-4c5cfa991861ba1b.js +0 -1
  1243. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-4c5cfa991861ba1b.js +0 -1
  1244. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-4c5cfa991861ba1b.js +0 -1
  1245. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-4c5cfa991861ba1b.js +0 -1
  1246. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-4c5cfa991861ba1b.js +0 -1
  1247. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-4c5cfa991861ba1b.js +0 -1
  1248. package/app/.next-cli-build/static/chunks/app/api/models/enabled/route-4c5cfa991861ba1b.js +0 -1
  1249. package/app/.next-cli-build/static/chunks/app/api/models/route-4c5cfa991861ba1b.js +0 -1
  1250. package/app/.next-cli-build/static/chunks/app/api/models/test/route-4c5cfa991861ba1b.js +0 -1
  1251. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-4c5cfa991861ba1b.js +0 -1
  1252. package/app/.next-cli-build/static/chunks/app/api/oauth/callback/route-4c5cfa991861ba1b.js +0 -1
  1253. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-4c5cfa991861ba1b.js +0 -1
  1254. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-4c5cfa991861ba1b.js +0 -1
  1255. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-4c5cfa991861ba1b.js +0 -1
  1256. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-4c5cfa991861ba1b.js +0 -1
  1257. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-4c5cfa991861ba1b.js +0 -1
  1258. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-4c5cfa991861ba1b.js +0 -1
  1259. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-4c5cfa991861ba1b.js +0 -1
  1260. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-4c5cfa991861ba1b.js +0 -1
  1261. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-4c5cfa991861ba1b.js +0 -1
  1262. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-4c5cfa991861ba1b.js +0 -1
  1263. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-4c5cfa991861ba1b.js +0 -1
  1264. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-4c5cfa991861ba1b.js +0 -1
  1265. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-4c5cfa991861ba1b.js +0 -1
  1266. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-4c5cfa991861ba1b.js +0 -1
  1267. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-4c5cfa991861ba1b.js +0 -1
  1268. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-4c5cfa991861ba1b.js +0 -1
  1269. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-4c5cfa991861ba1b.js +0 -1
  1270. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-4c5cfa991861ba1b.js +0 -1
  1271. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-4c5cfa991861ba1b.js +0 -1
  1272. package/app/.next-cli-build/static/chunks/app/api/pricing/route-4c5cfa991861ba1b.js +0 -1
  1273. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-4c5cfa991861ba1b.js +0 -1
  1274. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-4c5cfa991861ba1b.js +0 -1
  1275. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-4c5cfa991861ba1b.js +0 -1
  1276. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-4c5cfa991861ba1b.js +0 -1
  1277. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-4c5cfa991861ba1b.js +0 -1
  1278. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh-profile/route-4c5cfa991861ba1b.js +0 -1
  1279. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-4c5cfa991861ba1b.js +0 -1
  1280. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-4c5cfa991861ba1b.js +0 -1
  1281. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-4c5cfa991861ba1b.js +0 -1
  1282. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-4c5cfa991861ba1b.js +0 -1
  1283. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-4c5cfa991861ba1b.js +0 -1
  1284. package/app/.next-cli-build/static/chunks/app/api/providers/route-4c5cfa991861ba1b.js +0 -1
  1285. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-4c5cfa991861ba1b.js +0 -1
  1286. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-4c5cfa991861ba1b.js +0 -1
  1287. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-4c5cfa991861ba1b.js +0 -1
  1288. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-4c5cfa991861ba1b.js +0 -1
  1289. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-4c5cfa991861ba1b.js +0 -1
  1290. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-4c5cfa991861ba1b.js +0 -1
  1291. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-4c5cfa991861ba1b.js +0 -1
  1292. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-4c5cfa991861ba1b.js +0 -1
  1293. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-4c5cfa991861ba1b.js +0 -1
  1294. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-4c5cfa991861ba1b.js +0 -1
  1295. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-4c5cfa991861ba1b.js +0 -1
  1296. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-4c5cfa991861ba1b.js +0 -1
  1297. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-4c5cfa991861ba1b.js +0 -1
  1298. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-4c5cfa991861ba1b.js +0 -1
  1299. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-4c5cfa991861ba1b.js +0 -1
  1300. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-4c5cfa991861ba1b.js +0 -1
  1301. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-4c5cfa991861ba1b.js +0 -1
  1302. package/app/.next-cli-build/static/chunks/app/api/routing-health/route-4c5cfa991861ba1b.js +0 -1
  1303. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-4c5cfa991861ba1b.js +0 -1
  1304. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-4c5cfa991861ba1b.js +0 -1
  1305. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-4c5cfa991861ba1b.js +0 -1
  1306. package/app/.next-cli-build/static/chunks/app/api/settings/route-4c5cfa991861ba1b.js +0 -1
  1307. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-4c5cfa991861ba1b.js +0 -1
  1308. package/app/.next-cli-build/static/chunks/app/api/tags/route-4c5cfa991861ba1b.js +0 -1
  1309. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-4c5cfa991861ba1b.js +0 -1
  1310. package/app/.next-cli-build/static/chunks/app/api/token-saver/stream/route-4c5cfa991861ba1b.js +0 -1
  1311. package/app/.next-cli-build/static/chunks/app/api/tool-disclosure/stats/route-4c5cfa991861ba1b.js +0 -1
  1312. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-4c5cfa991861ba1b.js +0 -1
  1313. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-4c5cfa991861ba1b.js +0 -1
  1314. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-4c5cfa991861ba1b.js +0 -1
  1315. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-4c5cfa991861ba1b.js +0 -1
  1316. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-4c5cfa991861ba1b.js +0 -1
  1317. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-4c5cfa991861ba1b.js +0 -1
  1318. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-4c5cfa991861ba1b.js +0 -1
  1319. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-4c5cfa991861ba1b.js +0 -1
  1320. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-4c5cfa991861ba1b.js +0 -1
  1321. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-4c5cfa991861ba1b.js +0 -1
  1322. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-4c5cfa991861ba1b.js +0 -1
  1323. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-4c5cfa991861ba1b.js +0 -1
  1324. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-4c5cfa991861ba1b.js +0 -1
  1325. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-4c5cfa991861ba1b.js +0 -1
  1326. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-4c5cfa991861ba1b.js +0 -1
  1327. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-4c5cfa991861ba1b.js +0 -1
  1328. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-4c5cfa991861ba1b.js +0 -1
  1329. package/app/.next-cli-build/static/chunks/app/api/usage/error-logs/route-4c5cfa991861ba1b.js +0 -1
  1330. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-4c5cfa991861ba1b.js +0 -1
  1331. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-4c5cfa991861ba1b.js +0 -1
  1332. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-4c5cfa991861ba1b.js +0 -1
  1333. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-4c5cfa991861ba1b.js +0 -1
  1334. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-4c5cfa991861ba1b.js +0 -1
  1335. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-4c5cfa991861ba1b.js +0 -1
  1336. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-4c5cfa991861ba1b.js +0 -1
  1337. package/app/.next-cli-build/static/chunks/app/api/v1/alpha/search/route-4c5cfa991861ba1b.js +0 -1
  1338. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-4c5cfa991861ba1b.js +0 -1
  1339. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-4c5cfa991861ba1b.js +0 -1
  1340. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-4c5cfa991861ba1b.js +0 -1
  1341. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-4c5cfa991861ba1b.js +0 -1
  1342. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-4c5cfa991861ba1b.js +0 -1
  1343. package/app/.next-cli-build/static/chunks/app/api/v1/codex/alpha/search/route-4c5cfa991861ba1b.js +0 -1
  1344. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/edits/route-4c5cfa991861ba1b.js +0 -1
  1345. package/app/.next-cli-build/static/chunks/app/api/v1/codex/images/generations/route-4c5cfa991861ba1b.js +0 -1
  1346. package/app/.next-cli-build/static/chunks/app/api/v1/codex/memories/trace_summarize/route-4c5cfa991861ba1b.js +0 -1
  1347. package/app/.next-cli-build/static/chunks/app/api/v1/codex/models/route-4c5cfa991861ba1b.js +0 -1
  1348. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/compact/route-4c5cfa991861ba1b.js +0 -1
  1349. package/app/.next-cli-build/static/chunks/app/api/v1/codex/responses/route-4c5cfa991861ba1b.js +0 -1
  1350. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-4c5cfa991861ba1b.js +0 -1
  1351. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-4c5cfa991861ba1b.js +0 -1
  1352. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-4c5cfa991861ba1b.js +0 -1
  1353. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-4c5cfa991861ba1b.js +0 -1
  1354. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-4c5cfa991861ba1b.js +0 -1
  1355. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-4c5cfa991861ba1b.js +0 -1
  1356. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-4c5cfa991861ba1b.js +0 -1
  1357. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-4c5cfa991861ba1b.js +0 -1
  1358. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-4c5cfa991861ba1b.js +0 -1
  1359. package/app/.next-cli-build/static/chunks/app/api/v1/route-4c5cfa991861ba1b.js +0 -1
  1360. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-4c5cfa991861ba1b.js +0 -1
  1361. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-4c5cfa991861ba1b.js +0 -1
  1362. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-4c5cfa991861ba1b.js +0 -1
  1363. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-4c5cfa991861ba1b.js +0 -1
  1364. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-4c5cfa991861ba1b.js +0 -1
  1365. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-4c5cfa991861ba1b.js +0 -1
  1366. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-4c5cfa991861ba1b.js +0 -1
  1367. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-4c5cfa991861ba1b.js +0 -1
  1368. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-4c5cfa991861ba1b.js +0 -1
  1369. package/app/.next-cli-build/static/chunks/app/api/version/route-4c5cfa991861ba1b.js +0 -1
  1370. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-4c5cfa991861ba1b.js +0 -1
  1371. package/app/.next-cli-build/static/chunks/app/api/version/update/route-4c5cfa991861ba1b.js +0 -1
  1372. package/app/.next-cli-build/static/chunks/app/landing/page-7d5b31b8481d8fdd.js +0 -1
  1373. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-4c5cfa991861ba1b.js +0 -1
  1374. package/app/.next-cli-build/static/chunks/app/page-4c5cfa991861ba1b.js +0 -1
  1375. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-4c5cfa991861ba1b.js +0 -1
  1376. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-4c5cfa991861ba1b.js +0 -1
  1377. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-4c5cfa991861ba1b.js +0 -1
  1378. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-4c5cfa991861ba1b.js +0 -1
  1379. package/app/.next-cli-build/static/css/76821f2171e21e80.css +0 -1
  1380. package/app/src/shared/services/quotaAutoPing.js +0 -376
  1381. /package/app/.next-cli-build/static/{Y5Sk8uSUyB0vJ-ZgW1X1U → FVexSVbOSDtcylsZCcjge}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=7633,exports.ids=[7633],exports.modules={40014:(a,b,c)=>{c.r(b),c.d(b,{acquirePingLease:()=>t,claimWakeupRun:()=>q,deleteWakeupTask:()=>n,finishWakeupRun:()=>s,getWakeupState:()=>j,recordWakeupResult:()=>r,recoverWakeupRuns:()=>p,releasePingLease:()=>u,saveWakeupTask:()=>m,setWakeupEnabled:()=>o});var d=c(77598),e=c(24081),f=c(50743);let g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function h(a,b=Date.now()){if("interval"===a.kind)return new Date(b+6e4*a.minutes).toISOString();let c=new Intl.DateTimeFormat("en-GB",{timeZone:a.timezone,year:"numeric",month:"2-digit",day:"2-digit",weekday:"short",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),d=a=>Object.fromEntries(c.formatToParts(a).map(({type:a,value:b})=>[a,b])),e=d(b),f=`${e.year}-${e.month}-${e.day}`,i=`${e.hour}:${e.minute}`>=a.time;for(let c=6e4*Math.floor(b/6e4)+6e4;c<=b+6912e5;c+=6e4){let b=d(c);if((!i||`${b.year}-${b.month}-${b.day}`!==f)&&`${b.hour}:${b.minute}`===a.time&&a.days.includes(g.indexOf(b.weekday)))return new Date(c).toISOString()}throw Error("No upcoming wakeup time.")}let i=()=>({enabled:!0,tasks:[],runs:[],leases:{}});async function j(){let a=await (0,e.c)(),b=(0,f.q)(a.get("SELECT data FROM settings WHERE id = 1")?.data,{});return{...i(),...b.wakeupState}}async function k(a){let b,c=await (0,e.c)();return c.transaction(()=>{let d=(0,f.q)(c.get("SELECT data FROM settings WHERE id = 1")?.data,{}),e={...i(),...d.wakeupState};b=a(e),d.wakeupState=e,c.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,f.s)(d)])}),b}function l(a,b){if(a.runs.some(a=>a.taskId===b&&"running"===a.status))throw Error("Task is running; wait before editing or deleting it.")}async function m(a,b=null){let c=a.enabled?h(a.schedule):null;return k(e=>{let f=b&&e.tasks.find(a=>a.id===b);if(b&&!f)throw Error("Task not found.");if(!b&&e.tasks.length>=100)throw Error("Maximum 100 tasks.");b&&l(e,b);let g={...a,id:b||(0,d.randomUUID)(),nextRunAt:c,createdAt:f?.createdAt||new Date().toISOString()};return e.tasks=f?e.tasks.map(a=>a.id===b?g:a):[...e.tasks,g],g})}async function n(a){return k(b=>{if(l(b,a),!b.tasks.some(b=>b.id===a))throw Error("Task not found.");b.tasks=b.tasks.filter(b=>b.id!==a)})}async function o(a){return k(b=>{b.enabled=a})}async function p(a=Date.now()){return k(b=>{for(let c of b.runs)"running"===c.status&&c.expiresAt<=a&&(c.status="interrupted",c.finishedAt=new Date(a).toISOString());for(let[c,d]of Object.entries(b.leases))d.expiresAt<=a&&delete b.leases[c]})}async function q(a,b="manual",c=Date.now(),e=null){return k(f=>{let g=a?f.tasks.find(b=>b.id===a):e;if(!g)throw Error("Task not found.");if("scheduled"===b&&(!f.enabled||!g.enabled||!g.nextRunAt||Date.parse(g.nextRunAt)>c)||a&&f.runs.some(b=>b.taskId===a&&"running"===b.status))return null;if(f.runs.filter(a=>"running"===a.status).length>=20)throw Error("Too many running tasks.");"scheduled"===b&&(g.nextRunAt=h(g.schedule,c));let i={id:(0,d.randomUUID)(),taskId:a,name:g.name,trigger:b,status:"running",startedAt:new Date(c).toISOString(),expiresAt:c+65e3*g.connectionIds.length+1e4,results:[]};return f.runs=[i,...f.runs.filter(a=>"running"===a.status),...f.runs.filter(a=>"running"!==a.status).slice(0,99)],{run:i,task:{...g}}})}async function r(a,b){return k(c=>{let d=c.runs.find(b=>b.id===a);d?.status==="running"&&d.results.push(b)})}async function s(a,b=!1){return k(c=>{let d=c.runs.find(b=>b.id===a);if(d?.status!=="running")return;let e=new Set(d.results.map(a=>a.status));d.status=b||!e.size?"interrupted":1===e.size?d.results[0].status:"partial",d.finishedAt=new Date().toISOString();let f=new Set(c.runs.filter(a=>"running"!==a.status).slice(0,100).map(a=>a.id));c.runs=c.runs.filter(a=>"running"===a.status||f.has(a.id))})}async function t(a){return k(b=>{if(b.leases[a]?.expiresAt>Date.now())return null;let c=(0,d.randomUUID)();return b.leases[a]={token:c,expiresAt:Date.now()+9e4},c})}async function u(a,b){return k(c=>{c.leases[a]?.token===b&&delete c.leases[a]})}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7663,exports.ids=[7663],exports.modules={7866:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.toLowerCase().startsWith("workos:")?b:/^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/.test(b)?`workos:${b}`:b:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`9Router/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"9router","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},8730:(a,b,c)=>{c.d(b,{d:()=>f});var d=c(55511);let e="1.0.0";function f(a={}){let b=a.providerSpecificData||{},c=b.clientId||a.refreshToken||b.profileArn||a.apiKey||a.accessToken||"kiro-anonymous",g=(0,d.createHash)("sha256").update(String(c)).digest("hex"),h=`KiroIDE-0.10.32-${g}`;return{"User-Agent":`aws-sdk-js/${e} ua/2.1 os/windows#10.0.26200 lang/js md/nodejs#22.21.1 api/codewhispererruntime#${e} m/N,E ${h}`,"x-amz-user-agent":`aws-sdk-js/${e} ${h}`,"x-amzn-kiro-agent-mode":"vibe","x-amzn-codewhisperer-optout":"true"}}},39006:a=>{a.exports={rE:"0.6.16"}},58569:(a,b,c)=>{c.d(b,{cW:()=>k});var d=c(94755),e=c(55511),f=c(85640),g=c(8730);let h="us-east-1",i=new Map;async function j(a,b){let c,e=a?.providerSpecificData?.profileArn||"",f=a?.providerSpecificData?.authMethod,i=e?function(a){if(!a||"string"!=typeof a)return h;let b=a.split(":");return b.length>=4&&b[3]?b[3]:h}(e):a?.providerSpecificData?.region||h,j=new URLSearchParams;j.set("origin","AI_EDITOR"),e&&j.set("profileArn",e);let k=`https://q.${i}.amazonaws.com/ListAvailableModels?${j.toString()}`,l={...(0,g.d)(a),"amz-sdk-request":"attempt=1; max=1","amz-sdk-invocation-id":(0,d.A)(),Accept:"application/json",Authorization:`Bearer ${a?.accessToken||""}`,..."api_key"===f?{TokenType:"API_KEY"}:{}},m=new AbortController,n=setTimeout(()=>m.abort("timeout"),3e4);b&&"function"==typeof b.addEventListener&&b.addEventListener("abort",()=>m.abort(b.reason));try{c=await fetch(k,{method:"GET",headers:l,signal:m.signal})}finally{clearTimeout(n)}if(!c.ok){let a=await c.text().catch(()=>""),b=Error(`Kiro ListAvailableModels ${c.status}: ${a||c.statusText}`);throw b.status=c.status,b.body=a,b}let o=await c.json();return Array.isArray(o?.models)?o.models:[]}async function k(a,b={}){let c,d,g;if(!a||!a.accessToken)return b.log?.debug?.("KIRO_MODELS","No accessToken; skipping live fetch"),null;let h=(g=(d=a?.providerSpecificData||{}).profileArn||d.clientId||a?.refreshToken||a?.accessToken||"anonymous",(0,e.createHash)("sha256").update(`kiro:${g}`).digest("hex")),l=Date.now();if(!b.forceRefresh){let a=i.get(h);if(a&&a.expiresAt>l)return{models:a.models,rawModels:a.rawModels}}try{c=await j(a,b.signal)}catch(d){if(!d||401!==d.status||!a.refreshToken)return b.log?.warn?.("KIRO_MODELS",`ListAvailableModels failed: ${d?.message||d}`),null;{b.log?.info?.("KIRO_MODELS","Got 401 from Kiro; refreshing token");let d=await (0,f.Ql)(a.refreshToken,a.providerSpecificData,b.log);if(!d?.accessToken)return b.log?.warn?.("KIRO_MODELS","Token refresh did not return accessToken"),null;{let e={...a,...d};if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed(d)}catch(a){b.log?.warn?.("KIRO_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await j(e,b.signal),a.accessToken=e.accessToken,e.refreshToken&&(a.refreshToken=e.refreshToken)}catch(a){return b.log?.warn?.("KIRO_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}}let m=[];for(let a of c){if(!a||"object"!=typeof a)continue;let b=a.modelId||a.id;if(!b)continue;let c=function(a,b,c){let d=(a||b||"Kiro").trim(),e=Number(c);if(!Number.isFinite(e)||1e-9>Math.abs(e-1)||e<=0)return`Kiro ${d}`;let f=e.toFixed(1).replace(",",".");return`Kiro ${d} (${f}x credit)`}(a.modelName,b,a.rateMultiplier),d=Number(a?.tokenLimits?.maxInputTokens)||2e5,e=Number(a?.tokenLimits?.maxOutputTokens)||null;for(let f of function(a,b){let c,d=((c=a).endsWith("-agentic")&&(c=c.slice(0,-8)),c.endsWith("-thinking")&&(c=c.slice(0,-9)),c),e=b||`Kiro ${d}`,f=[{id:d,name:e,capabilities:{thinking:!1,agentic:!1}},{id:`${d}-thinking`,name:`${e} (Thinking)`,capabilities:{thinking:!0,agentic:!1}}];return"auto"!==d&&(f.push({id:`${d}-agentic`,name:`${e} (Agentic)`,capabilities:{thinking:!1,agentic:!0}}),f.push({id:`${d}-thinking-agentic`,name:`${e} (Thinking + Agentic)`,capabilities:{thinking:!0,agentic:!0}})),f}(b,c))m.push({...f,contextLength:d,...e?{maxOutputTokens:e}:{},rateMultiplier:Number.isFinite(Number(a.rateMultiplier))?Number(a.rateMultiplier):1,upstreamModelId:b,description:a.description||""})}return i.set(h,{expiresAt:l+3e5,models:m,rawModels:c}),{models:m,rawModels:c}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};
1
+ "use strict";exports.id=7663,exports.ids=[7663],exports.modules={7866:(a,b,c)=>{c.d(b,{w$:()=>e});let d=c(39006).rE||"0.0.0";function e(a,b={}){let c,f=(c=function(a){if("string"!=typeof a)return"";let b=a.trim();return b?b.toLowerCase().startsWith("workos:")?b:/^eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/.test(b)?`workos:${b}`:b:""}(a))?`Bearer ${c}`:"",g={"HTTP-Referer":"https://cline.bot","X-Title":"Cline","User-Agent":`9Router/${d}`,"X-PLATFORM":process.platform||"unknown","X-PLATFORM-VERSION":process.version||"unknown","X-CLIENT-TYPE":"9router","X-CLIENT-VERSION":d,"X-CORE-VERSION":d,"X-IS-MULTIROOT":"false",...b};return f&&(g.Authorization=f),g}},8730:(a,b,c)=>{c.d(b,{d:()=>f});var d=c(55511);let e="1.0.0";function f(a={}){let b=a.providerSpecificData||{},c=b.clientId||a.refreshToken||b.profileArn||a.apiKey||a.accessToken||"kiro-anonymous",g=(0,d.createHash)("sha256").update(String(c)).digest("hex"),h=`KiroIDE-0.10.32-${g}`;return{"User-Agent":`aws-sdk-js/${e} ua/2.1 os/windows#10.0.26200 lang/js md/nodejs#22.21.1 api/codewhispererruntime#${e} m/N,E ${h}`,"x-amz-user-agent":`aws-sdk-js/${e} ${h}`,"x-amzn-kiro-agent-mode":"vibe","x-amzn-codewhisperer-optout":"true"}}},39006:a=>{a.exports={rE:"0.6.17"}},58569:(a,b,c)=>{c.d(b,{cW:()=>k});var d=c(94755),e=c(55511),f=c(85640),g=c(8730);let h="us-east-1",i=new Map;async function j(a,b){let c,e=a?.providerSpecificData?.profileArn||"",f=a?.providerSpecificData?.authMethod,i=e?function(a){if(!a||"string"!=typeof a)return h;let b=a.split(":");return b.length>=4&&b[3]?b[3]:h}(e):a?.providerSpecificData?.region||h,j=new URLSearchParams;j.set("origin","AI_EDITOR"),e&&j.set("profileArn",e);let k=`https://q.${i}.amazonaws.com/ListAvailableModels?${j.toString()}`,l={...(0,g.d)(a),"amz-sdk-request":"attempt=1; max=1","amz-sdk-invocation-id":(0,d.A)(),Accept:"application/json",Authorization:`Bearer ${a?.accessToken||""}`,..."api_key"===f?{TokenType:"API_KEY"}:{}},m=new AbortController,n=setTimeout(()=>m.abort("timeout"),3e4);b&&"function"==typeof b.addEventListener&&b.addEventListener("abort",()=>m.abort(b.reason));try{c=await fetch(k,{method:"GET",headers:l,signal:m.signal})}finally{clearTimeout(n)}if(!c.ok){let a=await c.text().catch(()=>""),b=Error(`Kiro ListAvailableModels ${c.status}: ${a||c.statusText}`);throw b.status=c.status,b.body=a,b}let o=await c.json();return Array.isArray(o?.models)?o.models:[]}async function k(a,b={}){let c,d,g;if(!a||!a.accessToken)return b.log?.debug?.("KIRO_MODELS","No accessToken; skipping live fetch"),null;let h=(g=(d=a?.providerSpecificData||{}).profileArn||d.clientId||a?.refreshToken||a?.accessToken||"anonymous",(0,e.createHash)("sha256").update(`kiro:${g}`).digest("hex")),l=Date.now();if(!b.forceRefresh){let a=i.get(h);if(a&&a.expiresAt>l)return{models:a.models,rawModels:a.rawModels}}try{c=await j(a,b.signal)}catch(d){if(!d||401!==d.status||!a.refreshToken)return b.log?.warn?.("KIRO_MODELS",`ListAvailableModels failed: ${d?.message||d}`),null;{b.log?.info?.("KIRO_MODELS","Got 401 from Kiro; refreshing token");let d=await (0,f.Ql)(a.refreshToken,a.providerSpecificData,b.log);if(!d?.accessToken)return b.log?.warn?.("KIRO_MODELS","Token refresh did not return accessToken"),null;{let e={...a,...d};if("function"==typeof b.onCredentialsRefreshed)try{await b.onCredentialsRefreshed(d)}catch(a){b.log?.warn?.("KIRO_MODELS",`onCredentialsRefreshed failed: ${a?.message||a}`)}try{c=await j(e,b.signal),a.accessToken=e.accessToken,e.refreshToken&&(a.refreshToken=e.refreshToken)}catch(a){return b.log?.warn?.("KIRO_MODELS",`Retry after refresh failed: ${a?.message||a}`),null}}}}let m=[];for(let a of c){if(!a||"object"!=typeof a)continue;let b=a.modelId||a.id;if(!b)continue;let c=function(a,b,c){let d=(a||b||"Kiro").trim(),e=Number(c);if(!Number.isFinite(e)||1e-9>Math.abs(e-1)||e<=0)return`Kiro ${d}`;let f=e.toFixed(1).replace(",",".");return`Kiro ${d} (${f}x credit)`}(a.modelName,b,a.rateMultiplier),d=Number(a?.tokenLimits?.maxInputTokens)||2e5,e=Number(a?.tokenLimits?.maxOutputTokens)||null;for(let f of function(a,b){let c,d=((c=a).endsWith("-agentic")&&(c=c.slice(0,-8)),c.endsWith("-thinking")&&(c=c.slice(0,-9)),c),e=b||`Kiro ${d}`,f=[{id:d,name:e,capabilities:{thinking:!1,agentic:!1}},{id:`${d}-thinking`,name:`${e} (Thinking)`,capabilities:{thinking:!0,agentic:!1}}];return"auto"!==d&&(f.push({id:`${d}-agentic`,name:`${e} (Agentic)`,capabilities:{thinking:!1,agentic:!0}}),f.push({id:`${d}-thinking-agentic`,name:`${e} (Thinking + Agentic)`,capabilities:{thinking:!0,agentic:!0}})),f}(b,c))m.push({...f,contextLength:d,...e?{maxOutputTokens:e}:{},rateMultiplier:Number.isFinite(Number(a.rateMultiplier))?Number(a.rateMultiplier):1,upstreamModelId:b,description:a.description||""})}return i.set(h,{expiresAt:l+3e5,models:m,rawModels:c}),{models:m,rawModels:c}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};
@@ -1 +1 @@
1
- "use strict";exports.id=7677,exports.ids=[7677],exports.modules={67677:(a,b,c)=>{c.d(b,{Gh:()=>n,IF:()=>s,O9:()=>h,OF:()=>r,WL:()=>i,_6:()=>m,_L:()=>p,bC:()=>q,f5:()=>o,lm:()=>g,q7:()=>l});var d=c(19956),e=c(84646);let f="1"===process.env.LOG_USAGE_VERBOSE,g={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function h(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 i(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","cost"],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","cost"]},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 j(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)};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);let e=k(a?.cost);return(e&&(b.cost=e),0===Object.keys(b).length)?null:b}function k(a){if("number"==typeof a&&Number.isFinite(a))return{total:a};if(a&&"object"==typeof a){let b=Number(a.total);if(Number.isFinite(b))return{...a,total:b}}return null}function l(a,b,c){if(!a||"object"!=typeof a)return a;let d={...a},f=k(d.cost)?.total;if(!("number"==typeof f&&Number.isFinite(f)&&f>0)){let a=(0,e.getPricingForModel)(b,c);if(a){let b=m(d)||d;f=(0,e.calculateCostFromTokens)(b,a)}}if("number"==typeof f&&Number.isFinite(f)){let a=d.cost&&"object"==typeof d.cost?d.cost:{};d.cost={...a,total:f}}return d}function m(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??a.completion_tokens_details?.reasoning_tokens??a.output_tokens_details?.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??a.input_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 n(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 o(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 j({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 j({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 j({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 j({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,cost:a.usage.cost});let b=a.usageMetadata||a.response?.usageMetadata;return b&&"object"==typeof b?j({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?j({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 p(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 q(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a);return Math.ceil(b.length/4)}catch{return 0}}function r(a,b,c=d.h.OPENAI,e={}){return function(a,b,c,e={}){let f=!1!==e.buffer?h:a=>a;return f(c===d.h.CLAUDE?{input_tokens:a,output_tokens:b,estimated:!0}:{prompt_tokens:a,completion_tokens:b,total_tokens:a+b,estimated:!0})}(q(a),b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c,e)}function s(a,b,c=null,d=null,e=null){if(!b||"object"!=typeof b||!f)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"})}] 📊 ${g.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${g.reset}`;b.estimated&&(l+=` ${g.yellow}(estimated)${g.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)}}};
1
+ "use strict";exports.id=7677,exports.ids=[7677],exports.modules={67677:(a,b,c)=>{c.d(b,{Gh:()=>n,IF:()=>s,O9:()=>h,OF:()=>r,WL:()=>i,_6:()=>m,_L:()=>p,bC:()=>q,f5:()=>o,lm:()=>g,q7:()=>l});var d=c(19956),e=c(84646);let f="1"===process.env.LOG_USAGE_VERBOSE,g={reset:"\x1b[0m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",cyan:"\x1b[36m"};function h(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 i(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","cost"],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","cost"]},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 j(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)};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);let e=k(a?.cost);return(e&&(b.cost=e),0===Object.keys(b).length)?null:b}function k(a){if("number"==typeof a&&Number.isFinite(a))return{total:a};if(a&&"object"==typeof a){let b=Number(a.total);if(Number.isFinite(b))return{...a,total:b}}return null}function l(a,b,c){if(!a||"object"!=typeof a)return a;let d={...a},f=k(d.cost)?.total;if(!("number"==typeof f&&Number.isFinite(f)&&f>0)){let a=(0,e.getPricingForModel)(b,c);if(a){let b=m(d)||d;f=(0,e.calculateCostFromTokens)(b,a)}}if("number"==typeof f&&Number.isFinite(f)){let a=d.cost&&"object"==typeof d.cost?d.cost:{};d.cost={...a,total:f}}return d}function m(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??a.completion_tokens_details?.reasoning_tokens??a.output_tokens_details?.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??a.input_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 n(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 o(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 j({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 j({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});let b=a.response?.usage??a.usage;if(b&&"object"==typeof b&&void 0!==b.input_tokens){let a=b.input_tokens_details?.cached_tokens??b.cached_tokens;return j({prompt_tokens:b.input_tokens||b.prompt_tokens||0,completion_tokens:b.output_tokens||b.completion_tokens||0,cached_tokens:a,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:void 0!==a?{cached_tokens:a}:void 0})}if(a.usage&&"object"==typeof a.usage&&void 0!==a.usage.prompt_tokens)return j({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,cost:a.usage.cost});let c=a.usageMetadata||a.response?.usageMetadata;return c&&"object"==typeof c?j({prompt_tokens:c.promptTokenCount||0,completion_tokens:c.candidatesTokenCount||0,total_tokens:c.totalTokenCount,cached_tokens:c.cachedContentTokenCount,reasoning_tokens:c.thoughtsTokenCount}):!0===a.done&&"number"==typeof a.prompt_eval_count?j({prompt_tokens:a.prompt_eval_count||0,completion_tokens:a.eval_count||0,total_tokens:(a.prompt_eval_count||0)+(a.eval_count||0),cached_tokens:a.prompt_eval_cached_count||0}):null}function p(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 q(a){if(!a||"object"!=typeof a)return 0;try{let b=JSON.stringify(a);return Math.ceil(b.length/4)}catch{return 0}}function r(a,b,c=d.h.OPENAI,e={}){return function(a,b,c,e={}){let f=!1!==e.buffer?h:a=>a;return f(c===d.h.CLAUDE?{input_tokens:a,output_tokens:b,estimated:!0}:{prompt_tokens:a,completion_tokens:b,total_tokens:a+b,estimated:!0})}(q(a),b&&!(b<=0)?Math.max(1,Math.floor(b/4)):0,c,e)}function s(a,b,c=null,d=null,e=null){if(!b||"object"!=typeof b||!f)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"})}] 📊 ${g.green}[USAGE] ${h} | in=${i} | out=${j} | account=${k}${g.reset}`;b.estimated&&(l+=` ${g.yellow}(estimated)${g.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)}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7716,exports.ids=[6958,7716],exports.modules={26958:(a,b,c)=>{c.d(b,{$i:()=>i,Ah:()=>h,Pg:()=>q,installCatalogSource:()=>r,l9:()=>g});var d=c(73024),e=c(76760),f=c(53859);let g=e.join(f.n,"model-catalog.json"),h=e.join(f.n,"model-catalog-raw.json"),i=2,j={models:{},providers:{}},k=j,l=-1;function m(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function n(){let a;try{a=d.statSync(g).mtimeMs}catch{return l=-1,k=j}if(a===l)return k;l=a;try{let a=JSON.parse(d.readFileSync(g,"utf8"));k={models:a?.models||{},providers:a?.providers||{}}}catch{k=j}return k}function o(a,b){return a&&n().models[`${a}:${m(b)}`]||null}function p(a,b){let c=a&&n().providers[a];return c&&(c[b]||c[m(b)])||null}function q(){l=-1}async function r(){let{setCatalogSource:a}=await Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303));a({getModalities:o,getLimits:p})}},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57716:(a,b,c)=>{c.d(b,{startModelCatalogSync:()=>q});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(26958);let i={image:"vision",pdf:"pdf",audio:"audioInput",video:"videoInput"},j={github:"github-copilot",glm:"zai","glm-cn":"zhipuai",claude:"anthropic",gemini:"google",kimi:"moonshotai","kimi-cn":"moonshotai-cn",qwen:"alibaba","qwen-cn":"alibaba-cn",zhipu:"zhipuai",hunyuan:"tencent",doubao:"volcengine","cloudflare-ai":"cloudflare-workers-ai"},k={running:!1,lastSync:null,lastError:null,lastResult:null,etag:null,fileVersion:null},l=null;function m(a){return(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]}function n(a,b){e().mkdirSync(g().dirname(a),{recursive:!0}),e().writeFileSync(`${a}.tmp`,b,"utf8"),e().renameSync(`${a}.tmp`,a)}async function o(){let[{default:a},{getCapabilitiesForModel:b,setCatalogSource:d}]=await Promise.all([c.e(8772).then(c.bind(c,38772)),Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303))]);d(null);let e=[];for(let c of a)for(let a of c.models||[])e.push({provider:c.id,model:a.id,contextLength:a.contextLength,current:b(c.id,a.id)});return e}async function p(){if(k.running)return null;k.running=!0;try{let a,b={accept:"application/json"};k.etag&&k.fileVersion===h.$i&&(b["if-none-match"]=k.etag);let c=await fetch("https://models.dev/api.json",{headers:b,signal:AbortSignal.timeout(6e4)});if(304===c.status)a={status:"unchanged"};else if(c.ok){let b=await c.json(),d=c.headers.get("etag")||null,e=await o(),{models:f,providers:g}=function(a,b){let c=new Map;for(let{provider:a}of b){let b=j[a]||a,d=c.get(b);d||c.set(b,d=[]),d.includes(a)||d.push(a)}let d={},e={};for(let[b,f]of Object.entries(a)){let a=c.get(b)||[b],g={},h=new Set;for(let[c,d]of Object.entries(f?.models||{})){let f=m(c);if(g[f]=d,h.has(f))continue;h.add(f);let j={};for(let a of d?.modalities?.input||[]){let b=i[a];b&&(j[b]=!0)}if(Object.keys(j).length){for(let b of a)e[`${b}:${f}`]=j;a.includes(b)||(e[`${b}:${f}`]=j)}}d[b]=g}let f={};for(let{provider:c,model:e,contextLength:g,current:h}of b){let b=j[c],i=a[c]?c:b&&a[b]?b:null,k=i&&d[i]?.[m(e)];if(!k)continue;let l={},{context:n,output:o}=k.limit||{};n>0&&!g&&Math.abs(n-h.contextWindow)/h.contextWindow>.1&&(l.contextWindow=n),o>0&&Math.abs(o-h.maxOutput)/h.maxOutput>.1&&(l.maxOutput=o),Object.keys(l).length&&((f[c]||(f[c]={}))[e]=l)}return{models:e,providers:f}}(b,e),l=JSON.stringify({v:h.$i,etag:d,syncedAt:Date.now(),models:f,providers:g});n(h.l9,l),n(h.Ah,JSON.stringify(function(a){let b={};for(let[c,d]of Object.entries(a)){let a={};for(let[b,c]of Object.entries(d?.models||{}))a[b]={i:(c?.modalities?.input||[]).filter(a=>"text"!==a),c:c?.limit?.context,o:c?.limit?.output,r:c?.reasoning||void 0};b[c]=a}return b}(b))),k.etag=d,k.fileVersion=h.$i,(0,h.Pg)(),a={status:"updated",etag:d,bytes:Buffer.byteLength(l),models:Object.keys(f).length,providers:Object.keys(g).length},console.log(`[modelCatalog] ${a.models} models, ${a.providers} providers, ${(a.bytes/1024).toFixed(1)}KB`)}else throw Error(`HTTP ${c.status}`);return k.lastSync=Date.now(),k.lastError=null,k.lastResult=a,a}catch(a){return k.lastError=a?.message||String(a),console.log(`[modelCatalog] sync failed: ${k.lastError}`),null}finally{await (0,h.installCatalogSource)().catch(()=>{}),k.running=!1}}function q(){if(l||"off"===String(process.env.MODEL_CATALOG_SYNC||"").toLowerCase())return;try{let a=JSON.parse(e().readFileSync(h.l9,"utf8"));k.etag=a.etag||null,k.fileVersion=a.v||1,k.lastSync=e().statSync(h.l9).mtimeMs}catch{k.etag=null,k.fileVersion=null}let a=b=>{l=setTimeout(async()=>{a(await p()?864e5:18e5)},b),l.unref?.()};a(6e4)}}};
1
+ "use strict";exports.id=7716,exports.ids=[6958,7716],exports.modules={26958:(a,b,c)=>{c.d(b,{$i:()=>i,Ah:()=>h,Pg:()=>q,installCatalogSource:()=>r,l9:()=>g});var d=c(73024),e=c(76760),f=c(53859);let g=e.join(f.n,"model-catalog.json"),h=e.join(f.n,"model-catalog-raw.json"),i=2,j={models:{},providers:{}},k=j,l=-1;function m(a){return a?(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]:""}function n(){let a;try{a=d.statSync(g).mtimeMs}catch{return l=-1,k=j}if(a===l)return k;l=a;try{let a=JSON.parse(d.readFileSync(g,"utf8"));k={models:a?.models||{},providers:a?.providers||{}}}catch{k=j}return k}function o(a,b){return a&&n().models[`${a}:${m(b)}`]||null}function p(a,b){let c=a&&n().providers[a];return c&&(c[b]||c[m(b)])||null}function q(){l=-1}async function r(){let{setCatalogSource:a}=await Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303));a({getModalities:o,getLimits:p})}},53859:(a,b,c)=>{c.d(b,{n:()=>l});var d=c(73024),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h);let j="ezrouter";function k(){return"win32"===process.platform?g().join(process.env.APPDATA||g().join(i().homedir(),"AppData","Roaming"),j):g().join(i().homedir(),`.${j}`)}let l=function(){let a=process.env.DATA_DIR;if(!a)return k();if("win32"===process.platform&&/^\//.test(a))return console.warn(`[DATA_DIR] '${a}' is a Unix path on Windows → fallback to default`),k();try{return e().mkdirSync(a,{recursive:!0}),a}catch(b){if(b?.code==="EACCES"||b?.code==="EPERM")return console.warn(`[DATA_DIR] '${a}' not writable → fallback ~/.${j}`),k();throw b}}()},57716:(a,b,c)=>{c.d(b,{startModelCatalogSync:()=>q});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(26958);let i={image:"vision",pdf:"pdf",audio:"audioInput",video:"videoInput"},j={github:"github-copilot",glm:"zai","glm-cn":"zhipuai",claude:"anthropic",gemini:"google",kimi:"moonshotai","kimi-cn":"moonshotai-cn",qwen:"alibaba","qwen-cn":"alibaba-cn",zhipu:"zhipuai",hunyuan:"tencent",doubao:"volcengine","cloudflare-ai":"cloudflare-workers-ai"},k={running:!1,lastSync:null,lastError:null,lastResult:null,etag:null,fileVersion:null},l=null;function m(a){return(a.includes("/")?a.split("/").pop():a).toLowerCase().split(":")[0]}function n(a,b){e().mkdirSync(g().dirname(a),{recursive:!0}),e().writeFileSync(`${a}.tmp`,b,"utf8"),e().renameSync(`${a}.tmp`,a)}async function o(){let[{default:a},{getCapabilitiesForModel:b,setCatalogSource:d}]=await Promise.all([c.e(1198).then(c.bind(c,1198)),Promise.all([c.e(1253),c.e(9303)]).then(c.bind(c,19303))]);d(null);let e=[];for(let c of a)for(let a of c.models||[])e.push({provider:c.id,model:a.id,contextLength:a.contextLength,current:b(c.id,a.id)});return e}async function p(){if(k.running)return null;k.running=!0;try{let a,b={accept:"application/json"};k.etag&&k.fileVersion===h.$i&&(b["if-none-match"]=k.etag);let c=await fetch("https://models.dev/api.json",{headers:b,signal:AbortSignal.timeout(6e4)});if(304===c.status)a={status:"unchanged"};else if(c.ok){let b=await c.json(),d=c.headers.get("etag")||null,e=await o(),{models:f,providers:g}=function(a,b){let c=new Map;for(let{provider:a}of b){let b=j[a]||a,d=c.get(b);d||c.set(b,d=[]),d.includes(a)||d.push(a)}let d={},e={};for(let[b,f]of Object.entries(a)){let a=c.get(b)||[b],g={},h=new Set;for(let[c,d]of Object.entries(f?.models||{})){let f=m(c);if(g[f]=d,h.has(f))continue;h.add(f);let j={};for(let a of d?.modalities?.input||[]){let b=i[a];b&&(j[b]=!0)}if(Object.keys(j).length){for(let b of a)e[`${b}:${f}`]=j;a.includes(b)||(e[`${b}:${f}`]=j)}}d[b]=g}let f={};for(let{provider:c,model:e,contextLength:g,current:h}of b){let b=j[c],i=a[c]?c:b&&a[b]?b:null,k=i&&d[i]?.[m(e)];if(!k)continue;let l={},{context:n,output:o}=k.limit||{};n>0&&!g&&Math.abs(n-h.contextWindow)/h.contextWindow>.1&&(l.contextWindow=n),o>0&&Math.abs(o-h.maxOutput)/h.maxOutput>.1&&(l.maxOutput=o),Object.keys(l).length&&((f[c]||(f[c]={}))[e]=l)}return{models:e,providers:f}}(b,e),l=JSON.stringify({v:h.$i,etag:d,syncedAt:Date.now(),models:f,providers:g});n(h.l9,l),n(h.Ah,JSON.stringify(function(a){let b={};for(let[c,d]of Object.entries(a)){let a={};for(let[b,c]of Object.entries(d?.models||{}))a[b]={i:(c?.modalities?.input||[]).filter(a=>"text"!==a),c:c?.limit?.context,o:c?.limit?.output,r:c?.reasoning||void 0};b[c]=a}return b}(b))),k.etag=d,k.fileVersion=h.$i,(0,h.Pg)(),a={status:"updated",etag:d,bytes:Buffer.byteLength(l),models:Object.keys(f).length,providers:Object.keys(g).length},console.log(`[modelCatalog] ${a.models} models, ${a.providers} providers, ${(a.bytes/1024).toFixed(1)}KB`)}else throw Error(`HTTP ${c.status}`);return k.lastSync=Date.now(),k.lastError=null,k.lastResult=a,a}catch(a){return k.lastError=a?.message||String(a),console.log(`[modelCatalog] sync failed: ${k.lastError}`),null}finally{await (0,h.installCatalogSource)().catch(()=>{}),k.running=!1}}function q(){if(l||"off"===String(process.env.MODEL_CATALOG_SYNC||"").toLowerCase())return;try{let a=JSON.parse(e().readFileSync(h.l9,"utf8"));k.etag=a.etag||null,k.fileVersion=a.v||1,k.lastSync=e().statSync(h.l9).mtimeMs}catch{k.etag=null,k.fileVersion=null}let a=b=>{l=setTimeout(async()=>{a(await p()?864e5:18e5)},b),l.unref?.()};a(6e4)}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7775,exports.ids=[7775],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},63995:(a,b,c)=>{c.d(b,{Q2:()=>m});var d=c(38772);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","credentialFallback","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.fastMode?{fastMode:a.fastMode}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{},...a.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m={...h,...i,...j,...k,...l};Object.values(m).reduce((a,b)=>(a[b.alias]=b.id,a),{}),Object.values(m).reduce((a,b)=>(a[b.id]=b.alias,a),{}),d.default.filter(a=>a.features?.usage).map(a=>a.id),d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},67775:(a,b,c)=>{c.d(b,{initConsoleLogCapture:()=>l});var d=c(94735),e=c(48595);let f=["log","info","warn","error","debug"];global._consoleLogBufferState||(global._consoleLogBufferState={logs:[],revision:0,patched:!1,originals:{},emitter:new d.EventEmitter},global._consoleLogBufferState.emitter.setMaxListeners(50));let g=global._consoleLogBufferState;function h(){if(g.flushTimer=null,!g.pendingLines.length)return;let a=g.pendingLines.splice(0,g.pendingLines.length);g.emitter.emit("lines",a)}g.emitter||(g.emitter=new d.EventEmitter,g.emitter.setMaxListeners(50)),g.pendingLines||(g.pendingLines=[]),g.flushTimer||(g.flushTimer=null),Number.isSafeInteger(g.revision)||(g.revision=0);let i=/\x1b\[[0-9;]*m/g;function j(a){return a.replace(i,"")}function k(a){if("string"==typeof a)return j(a);if(a instanceof Error)return j(a.stack||a.message||String(a));try{return j(JSON.stringify(a))}catch{return j(String(a))}}function l(){if(!g.patched){for(let a of f)g.originals[a]=console[a],console[a]=(...b)=>{!function(a){g.logs.push(a),g.revision+=1;let b=e.UY.maxLines;g.logs.length>b&&(g.logs=g.logs.slice(-b)),g.pendingLines.push(a),g.pendingLines.length>=50?(g.flushTimer&&(clearTimeout(g.flushTimer),g.flushTimer=null),h()):g.flushTimer||(g.flushTimer=setTimeout(h,100),g.flushTimer?.unref?.())}(b.map(k).join(" ")),g.originals[a](...b)};g.patched=!0}}},78492:(a,b,c)=>{c.d(b,{SM:()=>j,kt:()=>n,ux:()=>m,vq:()=>e.vq});var d=c(38772),e=c(15251),f=c(97915),g=c(62397),h=c(68531);let i=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function j(a){return e.vq[a]||[]}let k=new Set(["kr","kiro"]);function l(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!k.has(c))return;let g=(0,f.Kq)(d);if(g!==d)return a.find(a=>a.id===g)}function m(a,b){if(i(a)&&(0,g.nh)(b))return h.h.OPENAI_RESPONSES;let c=e.vq[a];if(!c)return null;let d=l(c,b,a);return d?(0,f.gr)(d):i(a)&&(0,g.i8)(b)?.targetFormat||null}function n(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",f=d?b.slice(0,c.index).trim():b,h=l(e.vq[a],f,a),i=h?.upstreamModelId||h?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof f&&f.endsWith(g.d5)?f.slice(0,-g.d5.length)+d:f+d}Object.fromEntries(d.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),Object.fromEntries(d.default.map(a=>[a.id,a.alias||a.id]))},90053:a=>{a.exports={rE:"0.6.16"}}};
1
+ "use strict";exports.id=7775,exports.ids=[7775],exports.modules={48595:(a,b,c)=>{c.d(b,{UY:()=>g,oc:()=>h});var d=c(90053),e=c(63995),f=c(78492);Object.entries(e.Q2).filter(([,a])=>a.passthroughModels).map(([a])=>a),Object.entries(f.vq).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),Object.freeze(["gemini-live"]),d.rE;let g={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},h={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",pingInactiveSession:!0,inactiveMinPingIntervalMs:18e6,pingModel:"claude-haiku-4-5-20251001",pingText:"hi",pingMaxTokens:1},codex:{settingsKey:"codexAutoPing",quotaKey:"session",pingWhenResetAtSlides:!0,resetAtDriftMs:3e4,minPingIntervalMs:6e5,skipWhenBlockingQuotaExhausted:!0,pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},63995:(a,b,c)=>{c.d(b,{Q2:()=>m});var d=c(1198);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","systemoneConfig","credentialFallback","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.fastMode?{fastMode:a.fastMode}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.baseUrlField?{baseUrlField:a.baseUrlField}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.models?{models:a.models}:{},...a.authModes?{authModes:a.authModes}:{},...a.features?{features:{...a.features}}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{},...a.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m={...h,...i,...j,...k,...l};Object.values(m).reduce((a,b)=>(a[b.alias]=b.id,a),{}),Object.values(m).reduce((a,b)=>(a[b.id]=b.alias,a),{}),d.default.filter(a=>a.features?.usage).map(a=>a.id),d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},67775:(a,b,c)=>{c.d(b,{initConsoleLogCapture:()=>l});var d=c(94735),e=c(48595);let f=["log","info","warn","error","debug"];global._consoleLogBufferState||(global._consoleLogBufferState={logs:[],revision:0,patched:!1,originals:{},emitter:new d.EventEmitter},global._consoleLogBufferState.emitter.setMaxListeners(50));let g=global._consoleLogBufferState;function h(){if(g.flushTimer=null,!g.pendingLines.length)return;let a=g.pendingLines.splice(0,g.pendingLines.length);g.emitter.emit("lines",a)}g.emitter||(g.emitter=new d.EventEmitter,g.emitter.setMaxListeners(50)),g.pendingLines||(g.pendingLines=[]),g.flushTimer||(g.flushTimer=null),Number.isSafeInteger(g.revision)||(g.revision=0);let i=/\x1b\[[0-9;]*m/g;function j(a){return a.replace(i,"")}function k(a){if("string"==typeof a)return j(a);if(a instanceof Error)return j(a.stack||a.message||String(a));try{return j(JSON.stringify(a))}catch{return j(String(a))}}function l(){if(!g.patched){for(let a of f)g.originals[a]=console[a],console[a]=(...b)=>{!function(a){g.logs.push(a),g.revision+=1;let b=e.UY.maxLines;g.logs.length>b&&(g.logs=g.logs.slice(-b)),g.pendingLines.push(a),g.pendingLines.length>=50?(g.flushTimer&&(clearTimeout(g.flushTimer),g.flushTimer=null),h()):g.flushTimer||(g.flushTimer=setTimeout(h,100),g.flushTimer?.unref?.())}(b.map(k).join(" ")),g.originals[a](...b)};g.patched=!0}}},78492:(a,b,c)=>{c.d(b,{SM:()=>j,kt:()=>n,ux:()=>m,vq:()=>e.vq});var d=c(1198),e=c(15251),f=c(97915),g=c(62397),h=c(68531);let i=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function j(a){return e.vq[a]||[]}let k=new Set(["kr","kiro"]);function l(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!k.has(c))return;let g=(0,f.Kq)(d);if(g!==d)return a.find(a=>a.id===g)}function m(a,b){if(i(a)&&(0,g.nh)(b))return h.h.OPENAI_RESPONSES;let c=e.vq[a];if(!c)return null;let d=l(c,b,a);return d?(0,f.gr)(d):i(a)&&(0,g.i8)(b)?.targetFormat||null}function n(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",f=d?b.slice(0,c.index).trim():b,h=l(e.vq[a],f,a),i=h?.upstreamModelId||h?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof f&&f.endsWith(g.d5)?f.slice(0,-g.d5.length)+d:f+d}Object.fromEntries(d.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),Object.fromEntries(d.default.map(a=>[a.id,a.alias||a.id]))},90053:a=>{a.exports={rE:"0.6.17"}}};
@@ -1 +1 @@
1
- "use strict";exports.id=7811,exports.ids=[7811],exports.modules={27811:(a,b,c)=>{c.d(b,{Ge:()=>u,QU:()=>s,TM:()=>n,cI:()=>r,dR:()=>t,j:()=>v});var d=c(74452),e=c(1541),f=c(38775),g=c(40615),h=c(38606),i=c(89865),j=c(60290),k=c(7803);let l=a=>String(a).toLowerCase(),m=(a,b)=>l(`${a}/${b}`);async function n(a){let b=function(a){let b=a?.headers;if(!b?.get)return null;let c=b.get("Authorization");if(c?.startsWith("Bearer "))return c.slice(7);let d=b.get("x-api-key");if(d)return d;let e=b.get("x-goog-api-key");if(e)return e;try{return new URL(a.url).searchParams.get("key")||null}catch{return null}}(a);if(!b)return null;let c=await (0,d.getApiKeyByKey)(b);return c?.access?.restricted?{keyId:c.id,keyName:c.name||c.id,allow:c.access.allow||[],_sets:null}:null}async function o(a){if(a._sets)return a._sets;let b=new Set((await (0,e.Uv)()).map(a=>l(a.name))),c=new Set,d=new Set,h=new Set;for(let e of a.allow){let a=l(e);if(b.has(a)){c.add(a);continue}let i=await (0,f.mA)(e);i?.provider&&i.model&&d.add(m(i.provider,i.model)),e.includes("/")||h.add(l((0,g.rs)(e)))}return a._sets={combos:c,models:d,providers:h},a._sets}async function p(a,b){let c=await o(a),d=await (0,f.mA)(b);return d?.provider?c.models.has(m(d.provider,d.model)):c.combos.has(l(b))}function q(a,b){return k.warn("AUTH",`key-access: key "${a.keyName}" denied "${b}"`),(0,i.yj)(j.gx.FORBIDDEN,(0,h.Cq)(b))}async function r(a,b){if(!a)return null;if("string"!=typeof b||!b)return q(a,String(b??""));let c=await o(a);return(await (0,f.d_)(b)?c.combos.has(l(b)):await p(a,b))?null:q(a,b)}async function s(a,b,c,d){if(!a)return null;let e=b||(c?`${c}/${d??""}`:"");return c&&d&&(await o(a)).models.has(m(c,d))?null:q(a,e)}async function t(a,b,c){if(!a)return null;if("string"!=typeof b||!b)return q(a,String(b??""));let d=await o(a);return(c?d.combos.has(l(b)):d.providers.has(l((0,g.rs)(b))))?null:q(a,b)}async function u(a,b,c){if(!a||!Array.isArray(b))return b;let d=new Set(c||[]),e=[];for(let c of b)d.has(c)||await p(a,c)?e.push(c):k.info("AUTH",`key-access: key "${a.keyName}" skips adapter model "${c}" (not allowed)`);return e}async function v(a,b){if(!a||!Array.isArray(b))return b;let c=await o(a),d=[];for(let a of b){if(!a?.id)continue;if(a.owned_by===h.WR){c.combos.has(l(a.id))&&d.push(a);continue}let b=await (0,f.mA)(a.id);if(b?.provider){if(h.YR.includes(a.kind)){c.providers.has(l(b.provider))&&d.push(a);continue}c.models.has(m(b.provider,b.model))&&d.push(a)}}return d}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>h,pe:()=>k});var d=c(89718),e=c(66451),f=c(99471);c(17218);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function h(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model};let f=(await (0,d.Fh)({type:"custom-video"})).find(a=>a.prefix===c.providerAlias);return f?{provider:f.id,model:c.model}:{provider:c.provider,model:c.model}}if(await (0,d.Dj)(c.model))return{provider:null,model:c.model};let f=await i(c.model);return f||(0,e.js)(a,d.OM)}async function i(a){try{let b=(await (0,d.uv)()).find(b=>b&&b.id===a&&("llm"===b.type||!b.type));if(b&&b.providerAlias)return{provider:(0,e.g2)(b.providerAlias),model:b.id}}catch{}try{let b=await (0,d.OM)(),c=(0,e.sc)(a,b);if(c)return c}catch{}let b=(0,e.PN)(a);if(b)return{provider:b,model:a};try{let b=await (0,f.w)(a);if(b)return b}catch{}return null}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}async function k(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b?{models:b.models||[],members:b.members||(b.models||[]).map(a=>({id:a,weight:1})),policy:b.policy||null,accountPolicy:b.accountPolicy||null,fusion:b.fusion||null,config:b.config||null,name:b.name,kind:b.kind}:null}},68001:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(38071);let e=["big-pickle"],f=new Set(["deepseek-v4-flash-free"]),g={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>(a.id?.endsWith("-free")||e.includes(a.id))&&!f.has(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD,"airforce-free":a=>(Array.isArray(a)?a:[]).filter(a=>("free"===a.tier||a.id?.endsWith(":free"))&&!0===a.supports_chat&&(!a.media_type||"chat"===a.media_type||"text"===a.media_type)).map(a=>({id:a.id,name:a.name||a.id,contextLength:a.context_length})).sort((a,b)=>String(a.id).localeCompare(String(b.id)))}},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
1
+ "use strict";exports.id=7811,exports.ids=[7811],exports.modules={27811:(a,b,c)=>{c.d(b,{Ge:()=>u,QU:()=>s,TM:()=>n,cI:()=>r,dR:()=>t,j:()=>v});var d=c(74452),e=c(1541),f=c(38775),g=c(40615),h=c(38606),i=c(89865),j=c(60290),k=c(7803);let l=a=>String(a).toLowerCase(),m=(a,b)=>l(`${a}/${b}`);async function n(a){let b=function(a){let b=a?.headers;if(!b?.get)return null;let c=b.get("Authorization");if(c?.startsWith("Bearer "))return c.slice(7);let d=b.get("x-api-key");if(d)return d;let e=b.get("x-goog-api-key");if(e)return e;try{return new URL(a.url).searchParams.get("key")||null}catch{return null}}(a);if(!b)return null;let c=await (0,d.getApiKeyByKey)(b);return c?.access?.restricted?{keyId:c.id,keyName:c.name||c.id,allow:c.access.allow||[],_sets:null}:null}async function o(a){if(a._sets)return a._sets;let b=new Set((await (0,e.Uv)()).map(a=>l(a.name))),c=new Set,d=new Set,h=new Set;for(let e of a.allow){let a=l(e);if(b.has(a)){c.add(a);continue}let i=await (0,f.mA)(e);i?.provider&&i.model&&d.add(m(i.provider,i.model)),e.includes("/")||h.add(l((0,g.rs)(e)))}return a._sets={combos:c,models:d,providers:h},a._sets}async function p(a,b){let c=await o(a),d=await (0,f.mA)(b);return d?.provider?c.models.has(m(d.provider,d.model)):c.combos.has(l(b))}function q(a,b){return k.warn("AUTH",`key-access: key "${a.keyName}" denied "${b}"`),(0,i.yj)(j.gx.FORBIDDEN,(0,h.Cq)(b))}async function r(a,b){if(!a)return null;if("string"!=typeof b||!b)return q(a,String(b??""));let c=await o(a);return(await (0,f.d_)(b)?c.combos.has(l(b)):await p(a,b))?null:q(a,b)}async function s(a,b,c,d){if(!a)return null;let e=b||(c?`${c}/${d??""}`:"");return c&&d&&(await o(a)).models.has(m(c,d))?null:q(a,e)}async function t(a,b,c){if(!a)return null;if("string"!=typeof b||!b)return q(a,String(b??""));let d=await o(a);return(c?d.combos.has(l(b)):d.providers.has(l((0,g.rs)(b))))?null:q(a,b)}async function u(a,b,c){if(!a||!Array.isArray(b))return b;let d=new Set(c||[]),e=[];for(let c of b)d.has(c)||await p(a,c)?e.push(c):k.info("AUTH",`key-access: key "${a.keyName}" skips adapter model "${c}" (not allowed)`);return e}async function v(a,b){if(!a||!Array.isArray(b))return b;let c=await o(a),d=[];for(let a of b){if(!a?.id)continue;if(a.owned_by===h.WR){c.combos.has(l(a.id))&&d.push(a);continue}let b=await (0,f.mA)(a.id);if(b?.provider){if(h.YR.includes(a.kind)){c.providers.has(l(b.provider))&&d.push(a);continue}c.models.has(m(b.provider,b.model))&&d.push(a)}}return d}},38775:(a,b,c)=>{c.d(b,{d_:()=>j,mA:()=>h,pe:()=>k});var d=c(89718),e=c(66451),f=c(99471);c(52316);let g={xmtp:"xiaomi-tokenplan","xiaomi-tokenplan":"xiaomi-tokenplan"};async function h(a){let b,c=(b=(0,e.Xh)(a),b?.providerAlias&&g[b.providerAlias]?{...b,provider:g[b.providerAlias]}:b);if(!c.isAlias){let a=(await (0,d.Fh)({type:"openai-compatible"})).find(a=>a.prefix===c.providerAlias);if(a)return{provider:a.id,model:c.model};let b=(await (0,d.Fh)({type:"anthropic-compatible"})).find(a=>a.prefix===c.providerAlias);if(b)return{provider:b.id,model:c.model};let e=(await (0,d.Fh)({type:"custom-embedding"})).find(a=>a.prefix===c.providerAlias);if(e)return{provider:e.id,model:c.model};let f=(await (0,d.Fh)({type:"custom-video"})).find(a=>a.prefix===c.providerAlias);return f?{provider:f.id,model:c.model}:{provider:c.provider,model:c.model}}if(await (0,d.Dj)(c.model))return{provider:null,model:c.model};let f=await i(c.model);return f||(0,e.js)(a,d.OM)}async function i(a){try{let b=(await (0,d.uv)()).find(b=>b&&b.id===a&&("llm"===b.type||!b.type));if(b&&b.providerAlias)return{provider:(0,e.g2)(b.providerAlias),model:b.id}}catch{}try{let b=await (0,d.OM)(),c=(0,e.sc)(a,b);if(c)return c}catch{}let b=(0,e.PN)(a);if(b)return{provider:b,model:a};try{let b=await (0,f.w)(a);if(b)return b}catch{}return null}async function j(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b&&b.models&&b.models.length>0?b.models:null}async function k(a){if(a.includes("/"))return null;let b=await (0,d.Dj)(a);return b?{models:b.models||[],members:b.members||(b.models||[]).map(a=>({id:a,weight:1})),policy:b.policy||null,accountPolicy:b.accountPolicy||null,fusion:b.fusion||null,config:b.config||null,name:b.name,kind:b.kind}:null}},68001:(a,b,c)=>{c.d(b,{S:()=>g});var d=c(38071);let e=["big-pickle"],f=new Set(["deepseek-v4-flash-free"]),g={"openrouter-free":a=>a.filter(a=>a.pricing?.prompt==="0"&&a.pricing?.completion==="0"&&a.context_length>=2e5).map(a=>({id:a.id,name:a.name,contextLength:a.context_length})).sort((a,b)=>b.contextLength-a.contextLength),"opencode-free":a=>a.filter(a=>(a.id?.endsWith("-free")||e.includes(a.id))&&!f.has(a.id)).map(a=>({id:a.id,name:a.id})),"mimo-free":a=>(Array.isArray(a)?a:[]).filter(a=>a.id?.startsWith("mimo")||a.name?.toLowerCase().includes("mimo")).map(a=>({id:a.id,name:a.name||a.id})),"nous-free":d.pD,"minimax-code":a=>{let b=Array.isArray(a)?a[0]:a,c=(Array.isArray(b?.providers)?b.providers:[]).find(a=>a?.providerId==="minimax"),d=c?.config?.models;return d&&"object"==typeof d?Object.entries(d).filter(([a,b])=>"string"==typeof a&&""!==a.trim()&&b&&"object"==typeof b).map(([a,b])=>({id:a,name:b?.name||a,contextLength:Number(b?.limit?.context)||void 0})).sort((a,b)=>(b.contextLength||0)-(a.contextLength||0)):[]},"airforce-free":a=>(Array.isArray(a)?a:[]).filter(a=>("free"===a.tier||a.id?.endsWith(":free"))&&!0===a.supports_chat&&(!a.media_type||"chat"===a.media_type||"text"===a.media_type)).map(a=>({id:a.id,name:a.name||a.id,contextLength:a.context_length})).sort((a,b)=>String(a.id).localeCompare(String(b.id)))}},99471:(a,b,c)=>{c.d(b,{Y:()=>k,w:()=>j});var d=c(68001);let e=null,f=0,g=null;async function h(){let a=new AbortController,b=setTimeout(()=>a.abort(),5e3);try{let b=await fetch("https://opencode.ai/zen/v1/models",{signal:a.signal});if(!b.ok)return e||[];let c=await b.json(),g=c.data??c.models??c,h=d.S["opencode-free"](Array.isArray(g)?g:[]);return e=h,f=Date.now(),h}catch{return e||[]}finally{clearTimeout(b)}}async function i(){if(e&&Date.now()-f<6e5)return e;if(!g){g=h();try{return await g}finally{g=null}}return g}async function j(a){let b=(await i()).find(b=>b&&b.id===a);return b?{provider:"opencode",model:b.id}:"big-pickle"===a||String(a).endsWith("-free")?{provider:"opencode",model:a}:null}async function k(){return await i()}}};
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=8062,exports.ids=[8062],exports.modules={34050:(a,b,c)=>{c.d(b,{CG:()=>f,f$:()=>d,oG:()=>e,zE:()=>g});let d=7,e=`
1
+ "use strict";exports.id=8062,exports.ids=[8062],exports.modules={11356:(a,b,c)=>{c.d(b,{Bb:()=>e});let d=globalThis.__9routerShutdownState??={flushers:new Set,priorities:new Map,shutdownPromise:null,signalHandler:null,beforeExitHandler:null};function e(a,b=0){if("function"!=typeof a)throw TypeError("shutdown flusher must be a function");return d.flushers.add(a),d.priorities.set(a,Number.isFinite(b)?b:0),d.signalHandler??=()=>g(0),d.beforeExitHandler??=()=>f(),process.listeners("SIGINT").includes(d.signalHandler)||process.once("SIGINT",d.signalHandler),process.listeners("SIGTERM").includes(d.signalHandler)||process.once("SIGTERM",d.signalHandler),process.listeners("beforeExit").includes(d.beforeExitHandler)||process.once("beforeExit",d.beforeExitHandler),()=>{d.flushers.delete(a),d.priorities.delete(a)}}function f(){return d.shutdownPromise||(d.shutdownPromise=(async()=>{let a=new Map;for(let b of d.flushers){let c=d.priorities.get(b)??0;a.has(c)||a.set(c,[]),a.get(c).push(b)}for(let b of[...a.keys()].sort((a,b)=>a-b))for(let c of(await Promise.allSettled(a.get(b).map(a=>Promise.resolve().then(a)))))"rejected"===c.status&&console.error("[Shutdown] flusher failed:",c.reason?.message||c.reason)})()),d.shutdownPromise}async function g(a=0){await f(),process.exit(a)}},34050:(a,b,c)=>{c.d(b,{CG:()=>f,f$:()=>d,oG:()=>e,zE:()=>g});let d=7,e=`
2
2
  PRAGMA journal_mode = WAL;
3
3
  PRAGMA synchronous = NORMAL;
4
4
  PRAGMA temp_store = MEMORY;
@@ -1 +1 @@
1
- "use strict";exports.id=8129,exports.ids=[8129],exports.modules={4630:(a,b,c)=>{c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(39141);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},18080:(a,b,c)=>{c.d(b,{Xj:()=>j,uo:()=>k});var d=c(92990);let e=new Set(["login.microsoftonline.com","login.microsoft.com","login.windows.net"]);function f(a){return"string"==typeof a?a.trim():""}function g(a){let b,c=f(a);if(!c)throw Error("token_endpoint is required");try{b=new URL(c)}catch{throw Error("token_endpoint must be a valid URL")}if("https:"!==b.protocol)throw Error("token_endpoint must use https");let d=b.hostname.toLowerCase();if(!e.has(d))throw Error("token_endpoint must be a Microsoft login endpoint");return b.toString()}function h(a){return Array.isArray(a)?a.map(f).filter(Boolean).join(" "):f(a)}function i(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;return JSON.parse(Buffer.from(`${c}${"=".repeat(d)}`,"base64").toString("utf8"))}catch{return null}}function j(a){let b=a;if("string"==typeof b)try{b=JSON.parse(b)}catch{throw Error("CLIProxyAPI auth JSON is invalid")}if(!b||"object"!=typeof b)throw Error("CLIProxyAPI auth JSON is required");let c=f(b.auth_method||b.authMethod);if(c&&"external_idp"!==c)throw Error("Only external_idp Kiro auth is supported by this importer");let e=f(b.access_token||b.accessToken),j=f(b.refresh_token||b.refreshToken),k=f(b.client_id||b.clientId),l=g(b.token_endpoint||b.tokenEndpoint),m=f(b.profile_arn||b.profileArn),n=f(b.region)||"us-east-1",o=h(b.scopes||b.scope),p=(0,d.S6)(n);if(!e)throw Error("access_token is required");if(!j)throw Error("refresh_token is required");if(!k)throw Error("client_id is required");if(!o)throw Error("scopes is required");if(!m)throw Error("profile_arn is required");let q=i(e),r=b.email||q?.email||q?.preferred_username||q?.upn||q?.sub||null;return{accessToken:e,refreshToken:j,expiresAt:function(a){let b=a.expired||a.expires_at||a.expiresAt;if(b){let a=new Date(b).getTime();if(Number.isFinite(a))return new Date(a).toISOString()}let c=Number(a.expires_in||a.expiresIn||0);if(Number.isFinite(c)&&c>0)return new Date(Date.now()+1e3*c).toISOString();let d=i(a.access_token||a.accessToken);return d?.exp?new Date(1e3*d.exp).toISOString():new Date(Date.now()+36e5).toISOString()}(b),email:r,providerSpecificData:{profileArn:m,region:p,authMethod:"external_idp",provider:"CLIProxyAPI",clientId:k,tokenEndpoint:l,scope:o}}}function k(a,b={}){let c=f(b.clientId||b.client_id),d=g(b.tokenEndpoint||b.token_endpoint),e=h(b.scope||b.scopes);if(!a)throw Error("refresh token is required");if(!c)throw Error("clientId is required for external_idp refresh");if(!e)throw Error("scope is required for external_idp refresh");return{tokenEndpoint:d,body:new URLSearchParams({grant_type:"refresh_token",client_id:c,refresh_token:a,scope:e}),providerSpecificData:{...b,authMethod:"external_idp",clientId:c,tokenEndpoint:d,scope:e}}}},18129:(a,b,c)=>{c.d(b,{Dz:()=>j,Vq:()=>m,fp:()=>k,jR:()=>i});var d=c(85640),e=c(39141);let f=e.sr.codex?.maxRefreshAgeMs,g=new Map,h=/^\d+(\.\d+)?$/;function i(a){if(null==a||""===a)return null;if("number"==typeof a||"string"==typeof a&&h.test(a.trim())){let b=Number(a);return Number.isFinite(b)?b<1e12?1e3*b:b:null}let b=new Date(a).getTime();return Number.isFinite(b)?b:null}function j(a,b=Date.now()){let c=i(a?.expiresAt??a?.tokenExpiresAt);if(null!==c)return c;let d=a?.expiresIn;return"number"==typeof d&&d>0?b+1e3*d:null}function k(a,b,c=Date.now()){if(!b)return!1;let g=j(b);if(null!==g&&g-c<(0,d.Og)(a))return!0;let h=e.sr[a]?.maxRefreshAgeMs;return!!(h&&b.refreshToken&&function(a,b=Date.now(),c=f){let d=i(a?.lastRefreshAt??a?.lastRefresh??a?.providerSpecificData?.lastRefreshAt);return!d||b-d>=c}(b,c,h))}async function l(a,b,c){let d,e=(d=b?.connectionId||b?.id||b?.email||b?.name||b?.refreshToken?.slice?.(-16)||"default",`${a}:${d}`),f=g.get(e);if(f)return f;let h=Promise.resolve().then(c).finally(()=>{g.delete(e)});return g.set(e,h),h}async function m(a,b,c){return b?l(a,b,async()=>{let f=await (0,d.$B)(a,b,c);return function(a,b,c,f=Date.now()){var g,h;if(!c)return null;if((0,d.jT)(c))return c;let i={},j=new Date(f).toISOString();c.accessToken&&(i.accessToken=c.accessToken),c.apiKey&&(i.apiKey=c.apiKey),c.token&&(i.token=c.token);let k=c.refreshToken??b?.refreshToken;k&&(i.refreshToken=k);let l=c.idToken??b?.idToken;return l&&(i.idToken=l),c.expiresIn?(i.expiresIn=c.expiresIn,i.expiresAt=function(a,b=Date.now()){return a?new Date(b+1e3*a).toISOString():null}(c.expiresIn,f)):c.expiresAt&&(i.expiresAt=c.expiresAt),c.projectId&&(i.projectId=c.projectId),c.providerSpecificData&&(g=b?.providerSpecificData,i.providerSpecificData=(h=c.providerSpecificData)&&"object"==typeof h?{...g||{},...h}:g),c.copilotToken&&(i.copilotToken=c.copilotToken),c.copilotTokenExpiresAt&&(i.copilotTokenExpiresAt=c.copilotTokenExpiresAt),(e.sr[a]?.trackRefreshAt||i.accessToken||i.apiKey||i.token||i.refreshToken||i.copilotToken)&&(i.lastRefreshAt=c.lastRefreshAt||j),i}(a,b,f)}):null}},21362:(a,b,c)=>{c.d(b,{J1:()=>n,ge:()=>q,Il:()=>p,XB:()=>A,SO:()=>z,Wm:()=>t,jR:()=>y,ZP:()=>G,go:()=>F,EF:()=>x,I9:()=>r,AH:()=>w,ng:()=>o,Ql:()=>v,Ms:()=>E,RM:()=>B,p9:()=>D,r_:()=>l,wt:()=>C});var d=c(31024),e=c(4630),f=c(28730),g=c(89843);let h=new Map;async function i(a,b,c,d){if(!b)return c();let e=`${a}:${b}`,f=h.get(e);if(f){if(f.promise)return d?.info?.("TOKEN_REFRESH",`Reusing in-flight refresh for ${a}`),f.promise;if(f.expiresAt>Date.now())return d?.info?.("TOKEN_REFRESH",`Reusing recent refresh result for ${a}`),f.result;h.delete(e)}let g=(async()=>{try{let a=await c();return h.set(e,{result:a,expiresAt:Date.now()+1e4}),a}catch(a){throw h.delete(e),a}})();return h.set(e,{promise:g}),g}var j=c(18080);let k=null;async function l(a,b){return a?i("xai",a,async()=>{try{k||(k=new(await Promise.all([c.e(2898),c.e(4730)]).then(c.bind(c,84730))).XaiService);let b=await k.refreshAccessToken(a);return{accessToken:b.access_token,refreshToken:b.refresh_token||a,expiresIn:b.expires_in,idToken:b.id_token}}catch(c){b?.warn?.("TOKEN_REFRESH",`xai refresh failed: ${c?.message||c}`);let a=String(c?.message||"");if(a.includes("invalid_grant")||a.includes("invalid_request"))return{error:"invalid_grant"};return null}},b):null}let m={claude:{bodyFormat:"json",includeClientSecret:!1,url:()=>f.NA.anthropic.token,dedupKey:"claude"},qwen:{url:()=>f.NA.qwen.token,dedupKey:"qwen",parse:a=>a.resource_url?{providerSpecificData:{resourceUrl:a.resource_url}}:{}},iflow:{url:()=>f.NA.iflow.token,dedupKey:"iflow",extraHeaders:(a,b)=>({Authorization:`Basic ${btoa(`${b.clientId}:${b.clientSecret}`)}`})},github:{url:()=>f.NA.github.token,dedupKey:"github",includeClientSecret:a=>!!a?.clientSecret},kimi:{dedupKey:"kimi",extraHeaders:a=>(0,f.buildKimiHeaders)(a?.providerSpecificData?.deviceId)}};async function n(a,b,c,d){let f=e.xq[a],g=m[a]||{},h=function(a,b,c){if(c?.url)try{return c.url()}catch{}return b?.refreshUrl||e.sr[a]?.tokenUrl||null}(a,f,g);return f&&h?b?i(g.dedupKey||a,b,async()=>{try{let e,i,j,{format:k,body:l}=(e=g?.bodyFormat==="json"?"json":"form",i=g?.includeClientSecret===void 0||("function"==typeof g.includeClientSecret?g.includeClientSecret(f):g.includeClientSecret),j={grant_type:"refresh_token",refresh_token:b,client_id:f.clientId},(i&&f.clientSecret&&(j.client_secret=f.clientSecret),"json"===e)?{format:"json",body:JSON.stringify(j)}:{format:"form",body:new URLSearchParams(j)}),m={"Content-Type":"json"===k?"application/json":"application/x-www-form-urlencoded",Accept:"application/json",...g.extraHeaders&&g.extraHeaders(c,f)||{}},n=await fetch(h,{method:"POST",headers:m,body:l});if(!n.ok){let b=await n.text();return d?.error?.("TOKEN_REFRESH",`Failed to refresh token for ${a}`,{status:n.status,error:b}),null}let o=await n.json();return d?.info?.("TOKEN_REFRESH",`Successfully refreshed token for ${a}`,{hasNewAccessToken:!!o.access_token,hasNewRefreshToken:!!o.refresh_token,expiresIn:o.expires_in}),{accessToken:o.access_token,refreshToken:o.refresh_token||b,expiresIn:o.expires_in,...g.parse&&g.parse(o)||{}}}catch(b){return d?.error?.("TOKEN_REFRESH",`Error refreshing token for ${a}`,{error:b.message}),null}},d):(d?.warn?.("TOKEN_REFRESH",`No refresh token available for provider: ${a}`),null):(d?.warn?.("TOKEN_REFRESH",`No refresh URL configured for provider: ${a}`),null)}async function o(a,b,c){return n("kimi",a,b,c)}async function p(a,b){return a?i("cline",a,async()=>{try{let c=await fetch(e.xq.cline?.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:a,grantType:"refresh_token",clientType:"extension"})});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Cline token",{status:c.status,error:a}),null}let d=await c.json(),f=d?.data||d;if(!f?.accessToken)return null;let g=f.expiresAt?Math.max(1,Math.floor((new Date(f.expiresAt).getTime()-Date.now())/1e3)):f.expiresIn||f.expires_in||3600;return{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:g}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Cline token: ${a.message}`),null}},b):null}async function q(a,b){return n("claude",a,{},b)}async function r(a,b,c,d){return a?i(`google:${b}`,a,async()=>{try{let e=await fetch(f.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:b,client_secret:c})});if(!e.ok){let a=await e.text();return d?.error?.("TOKEN_REFRESH","Failed to refresh Google token",{status:e.status,error:a}),null}let g=await e.json();return d?.info?.("TOKEN_REFRESH","Successfully refreshed Google token",{hasNewAccessToken:!!g.access_token,expiresIn:g.expires_in}),{accessToken:g.access_token,refreshToken:g.refresh_token||a,expiresIn:g.expires_in}}catch(a){return d?.error?.("TOKEN_REFRESH",`Network error refreshing Google token: ${a.message}`),null}},d):null}function s(a="",b=0){let c=null;try{c=a?JSON.parse(a):null}catch{c=null}let d=c?.error?.code||c?.error||c?.error_code||"",e=c?.error_description||c?.message||a||"",f=`${d} ${e}`.toLowerCase();return{status:b,code:d,description:e,permanent:["refresh_token_expired","refresh_token_reused","refresh_token_invalidated","invalid_grant"].some(a=>f.includes(a))}}async function t(a,b){return a?i("codex",a,async()=>{try{let c=await fetch(f.NA.openai.token,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({client_id:e.xq.codex.clientId,grant_type:"refresh_token",refresh_token:a})});if(!c.ok){let a=await c.text(),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Codex refresh token already used or invalid. Re-auth required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Codex token",{status:c.status,error:a,code:d.code,permanent:d.permanent}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Codex token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,hasIdToken:!!d.id_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,idToken:d.id_token,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Codex token: ${a.message}`),null}},b):null}async function u(a,b,d){if(a?.profileArn)return{};let e=d?.trim?.()||null;if(!e){let{fetchKiroProfileArn:a}=await Promise.all([c.e(7774),c.e(4646),c.e(1847),c.e(4378),c.e(576),c.e(9865),c.e(1187),c.e(8644),c.e(7677),c.e(73),c.e(7594),c.e(1733),c.e(9026),c.e(369),c.e(6420)]).then(c.bind(c,36187));e=await a(b)}return e?{providerSpecificData:{profileArn:e}}:{}}async function v(a,b,c,d=null){return a?i("kiro",a,async()=>{let f=b?.authMethod,h=b?.clientId,i=b?.clientSecret,k=b?.region;if("external_idp"===f){let e;try{e=(0,j.uo)(a,b)}catch(a){return c?.warn?.("TOKEN_REFRESH",`Invalid Kiro external_idp refresh config: ${a.message}`),null}let f=await (0,g.proxyAwareFetch)(e.tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:e.body},d);if(!f.ok){let a=await f.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro external_idp token",{status:f.status,error:a}),null}let h=await f.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro external_idp token",{hasNewAccessToken:!!h.access_token,hasNewRefreshToken:!!h.refresh_token,expiresIn:h.expires_in}),{accessToken:h.access_token,refreshToken:h.refresh_token||a,expiresIn:h.expires_in,providerSpecificData:e.providerSpecificData}}if(h&&i){let e="idc"===f&&k?`https://oidc.${k}.amazonaws.com/token`:"https://oidc.us-east-1.amazonaws.com/token",j=await (0,g.proxyAwareFetch)(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:h,clientSecret:i,refreshToken:a,grantType:"refresh_token"})},d);if(!j.ok){let a=await j.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro AWS token",{status:j.status,error:a}),null}let l=await j.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro AWS token",{hasNewAccessToken:!!l.accessToken,expiresIn:l.expiresIn}),{accessToken:l.accessToken,refreshToken:l.refreshToken||a,expiresIn:l.expiresIn,...await u(b,l.accessToken,l.profileArn)}}let l=await (0,g.proxyAwareFetch)(e.xq.kiro.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:a})},d);if(!l.ok){let a=await l.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro social token",{status:l.status,error:a}),null}let m=await l.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro social token",{hasNewAccessToken:!!m.accessToken,expiresIn:m.expiresIn}),{accessToken:m.accessToken,refreshToken:m.refreshToken||a,expiresIn:m.expiresIn,...await u(b,m.accessToken,m.profileArn)}},c):null}async function w(a,b){return n("iflow",a,{},b)}async function x(a,b){return n("github",a,{},b)}async function y(a,b){return a?i("copilot",a,async()=>{try{let c=await fetch(e.sr.github?.copilotTokenUrl,{headers:{Authorization:`token ${a}`,"User-Agent":f.x0.USER_AGENT,"Editor-Version":`vscode/${f.x0.VSCODE_VERSION}`,"Editor-Plugin-Version":`copilot-chat/${f.x0.COPILOT_CHAT_VERSION}`,Accept:"application/json","x-github-api-version":f.x0.API_VERSION}});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Copilot token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Copilot token",{hasToken:!!d.token,expiresAt:d.expires_at}),{token:d.token,expiresAt:d.expires_at}}catch(a){return b?.error?.("TOKEN_REFRESH","Error refreshing Copilot token",{error:a.message}),null}},b):null}async function z(a,b){return a?i("codebuddy-cn",a,async()=>{let c=e.sr["codebuddy-cn"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function A(a,b){return a?i("codebuddy-intl",a,async()=>{let c=e.sr["codebuddy-intl"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy intl token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy intl token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy intl token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function B(a,b,c){if(!a)return null;let d=e.sr.trae||{},f=d.exchangeTokenUrl||d.tokenUrl;return f?i("trae",a,async()=>{try{let b,e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"Trae/1.0.0 antigravity-cockpit-tools"},body:JSON.stringify({ClientID:d.clientId||"ono9krqynydwx5",RefreshToken:a,ClientSecret:d.clientSecret||"-",UserID:""})});if(!e.ok){let a=await e.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Trae token",{status:e.status,error:a}),null}let g=await e.json(),h=g?.Result||g?.result||g,i=h?.AccessToken||h?.accessToken;if(!i)return c?.error?.("TOKEN_REFRESH","Trae refresh returned no AccessToken",{payload:g}),null;let j=h?.RefreshToken||h?.refreshToken||a,k=h?.ExpiresAt||h?.expiresAt;if("number"==typeof k)b=Math.max(1,k-Math.floor(Date.now()/1e3));else if("string"==typeof k){let a=new Date(k).getTime()-Date.now();b=a>0?Math.floor(a/1e3):void 0}return c?.info?.("TOKEN_REFRESH","Successfully refreshed Trae token",{hasNewAccessToken:!!i,hasNewRefreshToken:j!==a,expiresIn:b}),{accessToken:i,refreshToken:j,expiresIn:b}}catch(a){return c?.error?.("TOKEN_REFRESH",`Error refreshing Trae token: ${a.message}`),null}},c):(c?.warn?.("TOKEN_REFRESH","No Trae exchangeTokenUrl configured"),null)}function C(){return null}async function D(a,b){return b?.info?.("TOKEN_REFRESH","windsurf: apiKey is long-lived (no refresh_token flow) — skipping"),null}async function E(a,b="intl",d){return a?i(`qoder:${b||"intl"}`,a,async()=>{try{let e=new(await Promise.all([c.e(4646),c.e(1847),c.e(4378),c.e(1531)]).then(c.bind(c,91531))).QoderService({profile:b}),f=await e.refreshDeviceToken(a);return d?.info?.("TOKEN_REFRESH","Successfully refreshed Qoder device token",{profile:b,hasNewAccessToken:!!f.accessToken,hasNewRefreshToken:!!f.refreshToken,expiresIn:f.expiresIn}),{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:f.expiresIn}}catch(c){let a=c?.status;if(d?.error?.("TOKEN_REFRESH",`Qoder device refresh failed (${b})`,{error:c?.message||String(c),status:a}),401===a||403===a)return{error:"invalid_grant",message:c?.message||"Qoder refresh rejected"};return null}},d):null}async function F(a,b){return a?i("frontier-for-all",a,async()=>{try{let c=await fetch(f.NA["frontier-for-all"].token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:e.xq["frontier-for-all"].clientId})});if(!c.ok){let a=await c.text().catch(()=>""),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Frontier refresh token rotated or revoked. Re-login required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Frontier token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Frontier token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Frontier token: ${a.message}`),null}},b):null}async function G(a,b){return a?i("cursor",a,async()=>{try{let c=await new d.q().refreshToken(a);return b?.info?.("TOKEN_REFRESH","Successfully refreshed Cursor token",{hasNewAccessToken:!!c.accessToken,hasNewRefreshToken:!!c.refreshToken,expiresIn:c.expiresIn}),c}catch(a){return b?.warn?.("TOKEN_REFRESH",`Cursor refresh failed: ${a?.message||a}`),null}},b):null}},28730:(a,b,c)=>{let d;c.d(b,{Ch:()=>k,Cn:()=>p,Co:()=>z,Ic:()=>w,J5:()=>t,K:()=>u,NA:()=>C,QH:()=>q,Wu:()=>B,buildKimiHeaders:()=>D,dw:()=>s,go:()=>j,iO:()=>A,ix:()=>E,j5:()=>x,nZ:()=>v,sX:()=>l,uR:()=>r,x0:()=>n,zv:()=>y});var e=c(21820),f=c(4630),g=c(92675),h=c(8086);let i=f.xq["gemini-cli"]?.cliVersion,j=f.xq["gemini-cli"]?.apiClient,k=f.xq.codex?.cliVersion;function l(a="unknown"){let b;return`GeminiCLI/${i}/${a||"unknown"} (${(0,e.platform)()}; ${"ia32"===(b=(0,e.arch)())?"x86":b}; terminal)`}let m=f.xq.github?.copilot||{},n={VSCODE_VERSION:m.vscodeVersion,COPILOT_CHAT_VERSION:m.chatVersion,USER_AGENT:m.userAgent,API_VERSION:m.apiVersion,AUTO_API_VERSION:m.autoApiVersion,AUTO_TIMEOUT_MS:m.autoTimeoutMs,AUTO_SESSION_REFRESH_WINDOW_MS:m.autoSessionRefreshWindowMs};function o(){let a=(0,e.platform)(),b=(0,e.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let p={ideType:9,platform:o(),pluginType:2},q="_ide",r="_ide",s=new Set(["Task","TaskOutput","TaskStop","TaskCreate","TaskGet","TaskUpdate","TaskList","Bash","Glob","Grep","Read","Edit","Write","NotebookEdit","WebFetch","WebSearch","AskUserQuestion","Skill","EnterPlanMode","ExitPlanMode"]),t=new Set(["browser_subagent","command_status","find_by_name","generate_image","grep_search","list_dir","list_resources","multi_replace_file_content","notify_user","read_resource","read_terminal","read_url_content","replace_file_content","run_command","search_web","send_command_input","task_boundary","view_content_chunk","view_file","write_to_file"]),u={"User-Agent":g.Of},v={"gemini-cli":{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"},antigravity:{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"}},w={"Content-Type":"application/json","User-Agent":"google-api-nodejs-client/9.15.1","X-Goog-Api-Client":"google-cloud-sdk vscode_cloudshelleditor/0.1","Client-Metadata":JSON.stringify({ideType:9,platform:o(),pluginType:2})},x={"Content-Type":"application/json","User-Agent":g.Of},y={ideType:9,platform:o(),pluginType:2},z="You are Claude Code, Anthropic's official CLI for Claude.",A=[{from:"You are a Claude agent, built on Anthropic's Claude Agent SDK.",to:""},{from:/You are Hermes(?: Agent)?(?:,\s*(?:an intelligent AI assistant|an AI assistant|an AI agent))?(?:,?\s*(?:built|created)\s+by\s+Nous Research)?\./gi,to:"You are an AI assistant."},{from:/^x-anthropic-billing-header:[^\n]*(?:\r?\n)*/gim,to:""},{from:/opencode/gi,to:a=>"OpenCode"===a?"Antigravity":"OPENCODE"===a?"ANTIGRAVITY":"antigravity"}],B=Object.fromEntries(Object.entries(f.sr).filter(([,a])=>a.refreshLeadMs).map(([a,b])=>[a,b.refreshLeadMs])),C={google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:f.sr.codex?.tokenUrl,auth:f.sr.codex?.authorizeUrl},anthropic:{token:f.sr.claude?.tokenUrl,auth:"https://api.anthropic.com/v1/oauth/authorize"},iflow:{token:f.sr.iflow?.tokenUrl,auth:f.sr.iflow?.authorizeUrl},github:{token:f.sr.github?.tokenUrl,auth:f.sr.github?.authorizeUrl,deviceCode:f.sr.github?.deviceCodeUrl},"frontier-for-all":{token:f.sr["frontier-for-all"]?.tokenUrl,auth:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceCode:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceToken:f.sr["frontier-for-all"]?.deviceTokenUrl,revoke:f.sr["frontier-for-all"]?.revokeUrl}};function D(a){let b=(0,e.platform)(),c=(0,e.arch)(),f=`${b} ${c}`;"darwin"===b?f=`macOS ${c}`:"win32"===b?f=`Windows ${c}`:"linux"===b&&(f=`Linux ${c}`);let g="unknown";try{g=(0,e.hostname)()||"unknown"}catch{g="unknown"}let i="string"==typeof a&&a.trim()?a.trim():`kimi-${Date.now()}`;return{"X-Msh-Platform":"9router","X-Msh-Version":function(){if(d)return d;try{d=(0,h.createRequire)("file:///Volumes/Files/Projects/EzRouter/EzRouter/open-sse/config/appConstants.js")("../../package.json").version||"0.0.0"}catch{d=process.env.npm_package_version||"0.0.0"}return d}(),"X-Msh-Device-Name":g,"X-Msh-Device-Model":f,"X-Msh-Device-Id":i}}let E=64},31024:(a,b,c)=>{c.d(b,{q:()=>h});var d=c(55511),e=c.n(d),f=c(92990);function g(a){let b="string"==typeof a?a.split("."):[];if(3!==b.length||!b[1])return null;try{return JSON.parse(Buffer.from(b[1],"base64url").toString("utf8"))}catch{return null}}class h{constructor(){this.config=f.WN}getAuthorizationData(a="login"){let b=e().randomBytes(32).toString("base64url"),c=e().createHash("sha256").update(b).digest("base64url"),d=e().randomUUID(),f=new URLSearchParams({challenge:c,uuid:d,mode:a,supportsSelectedTeamLogin:"true"});return{authUrl:`${this.config.loginUrl}?${f.toString()}`,uuid:d,verifier:b,expiresIn:300}}async pollToken(a,b,c){if(!a||!b)throw Error("Cursor OAuth session is incomplete");let d=new URLSearchParams({uuid:a,verifier:b}),f=await fetch(`${this.config.pollUrl}?${d.toString()}`,{headers:{Accept:"application/json","User-Agent":"Cursor/3.12.29","x-cursor-client-type":this.config.clientType,"x-ghost-mode":"implicit-false","x-new-onboarding-completed":"false",traceparent:`00-${e().randomBytes(16).toString("hex")}-${e().randomBytes(8).toString("hex")}-01`},signal:c});if(404===f.status)return{success:!1,pending:!0,error:"authorization_pending"};if(!f.ok)throw Error(`Cursor OAuth polling failed with HTTP ${f.status}`);let g=await f.json();if(!g.accessToken||!g.refreshToken)throw Error("Cursor OAuth response was missing tokens");return{success:!0,tokens:g}}async refreshToken(a){let b;if(!a||"string"!=typeof a)throw Error("Cursor refresh token is required");for(let d=0;d<3;d+=1){var c;try{let c=await fetch(this.config.refreshUrl,{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:"{}",signal:AbortSignal.timeout(15e3)});if(c.ok){let b=await c.json();if(!b.accessToken)throw Error("Cursor refresh response was missing an access token");return this.mapTokens(b.accessToken,b.refreshToken||a)}if(429!==c.status&&c.status<500){let a=Error(`Cursor token refresh failed with HTTP ${c.status}`);throw a.retryable=!1,a}b=Error(`Cursor token refresh failed with HTTP ${c.status}`)}catch(a){if(!1===a.retryable)throw a;b=a}d<2&&await function(a){return new Promise(b=>setTimeout(b,a))}((c=d,Math.floor(300*2**c*(.8+.4*Math.random()))))}throw b||Error("Cursor token refresh failed")}mapTokens(a,b,c=null,d="oauth"){let e,f=(e=g(a),"number"==typeof e?.exp?1e3*e.exp-3e5:Date.now()+36e5),h=this.extractUserInfo(a);return{accessToken:a,refreshToken:b,...c?{machineId:c}:{},expiresAt:new Date(f).toISOString(),expiresIn:Math.max(1,Math.floor((f-Date.now())/1e3)),email:h?.email||null,providerSpecificData:{authMethod:d,...c?{machineId:c}:{},...h?.userId?{userId:h.userId}:{}}}}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return this.mapTokens(a,null,b,"imported")}extractUserInfo(a){let b=g(a);return b?{email:"string"==typeof b.email&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b.email)?b.email:null,userId:b.sub||b.user_id||null}:null}getTokenStorageInstructions(){return{title:"How to import your existing Cursor session",steps:["Open Cursor IDE and make sure you're logged in",`Linux: ${this.config.tokenStoragePaths.linux}`,`macOS: ${this.config.tokenStoragePaths.macos}`,`Windows: ${this.config.tokenStoragePaths.windows}`,"Read cursorAuth/accessToken and storage.serviceMachineId from itemTable"]}}}},85640:(a,b,c)=>{c.d(b,{$B:()=>o,I9:()=>f.I9,Og:()=>i,Ql:()=>f.Ql,Sc:()=>j,Wm:()=>f.Wm,go:()=>f.go,jR:()=>f.jR,jT:()=>h,oD:()=>g,pb:()=>l,qZ:()=>p});var d=c(4630),e=c(28730),f=c(21362);let g=3e5;function h(a){return a&&"object"==typeof a&&("unrecoverable_refresh_error"===a.error||"refresh_token_reused"===a.error||"invalid_request"===a.error||"invalid_grant"===a.error)}function i(a){return e.Wu[a]?e.Wu[a]:"kimi-coding"===a&&e.Wu.kimi?e.Wu.kimi:g}function j(a){if("string"!=typeof a)return null;try{let b=JSON.parse(a);if("service_account"===b.type&&b.client_email&&b.private_key&&b.project_id)return b;return null}catch{return null}}let k=new Map;async function l(a,b){let d=a.client_email,f=k.get(d);if(f&&f.expiresAt-Date.now()>3e5)return{accessToken:f.token,expiresAt:f.expiresAt};try{let{SignJWT:f,importPKCS8:g}=await Promise.all([c.e(4433),c.e(1455)]).then(c.bind(c,71455));b?.debug?.("TOKEN_REFRESH",`Vertex minting token for ${a.client_email}`);let h=await g(a.private_key.replace(/\\n/g,"\n"),"RS256"),i=Math.floor(Date.now()/1e3),j=await new f({scope:"https://www.googleapis.com/auth/cloud-platform"}).setProtectedHeader({alg:"RS256"}).setIssuer(a.client_email).setAudience(e.NA.google.token).setIssuedAt(i).setExpirationTime(i+3600).sign(h),l=await fetch(e.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:j})});if(!l.ok){let a=await l.text();return b?.error?.("TOKEN_REFRESH",`Vertex token mint failed: ${a}`),null}let{access_token:m,expires_in:n}=await l.json(),o=Date.now()+(n??3600)*1e3;return k.set(d,{token:m,expiresAt:o}),b?.info?.("TOKEN_REFRESH",`Vertex token minted for ${a.client_email}`),{accessToken:m,expiresAt:o}}catch(a){return b?.error?.("TOKEN_REFRESH",`Vertex token error: ${a.message}`),null}}function m(a,b){let c=j(a.apiKey);return c?l(c,b):null}let n={"frontier-for-all":(a,b)=>(0,f.go)(a.refreshToken,b),"gemini-cli":(a,b)=>(0,f.I9)(a.refreshToken,d.xq["gemini-cli"].clientId,d.xq["gemini-cli"].clientSecret,b),antigravity:(a,b)=>(0,f.I9)(a.refreshToken,d.xq.antigravity.clientId,d.xq.antigravity.clientSecret,b),claude:(a,b)=>(0,f.ge)(a.refreshToken,b),codex:(a,b)=>(0,f.Wm)(a.refreshToken,b),iflow:(a,b)=>(0,f.AH)(a.refreshToken,b),github:(a,b)=>(0,f.EF)(a.refreshToken,b),kiro:(a,b)=>(0,f.Ql)(a.refreshToken,a.providerSpecificData,b),cursor:(a,b)=>(0,f.ZP)(a.refreshToken,b),xai:(a,b)=>(0,f.r_)(a.refreshToken,b),"grok-cli":(a,b)=>(0,f.r_)(a.refreshToken,b),gcli:(a,b)=>(0,f.r_)(a.refreshToken,b),"codebuddy-cn":(a,b)=>(0,f.SO)(a.refreshToken,b),"codebuddy-intl":(a,b)=>(0,f.XB)(a.refreshToken,b),trae:(a,b)=>(0,f.RM)(a.refreshToken,a,b),cline:(a,b)=>(0,f.Il)(a.refreshToken,b),clinepass:(a,b)=>(0,f.Il)(a.refreshToken,b),zed:()=>(0,f.wt)(),windsurf:(a,b)=>(0,f.p9)(a,b),kimi:(a,b)=>(0,f.ng)(a.refreshToken,a,b),"kimi-coding":(a,b)=>(0,f.ng)(a.refreshToken,a,b),vertex:m,"vertex-partner":m};async function o(a,b,c){let d=b.refreshToken||b.providerSpecificData?.refreshToken;if(!d)return null;let e=d!==b.refreshToken?{...b,refreshToken:d}:b,g=n[a];return g?g(e,c):(0,f.J1)(a,d,e,c)}async function p(a,b=3,c=null){for(let d=0;d<b;d++){if(d>0){let a=1e3*d;c?.debug?.("TOKEN_REFRESH",`Retry ${d}/${b} after ${a}ms`),await new Promise(b=>setTimeout(b,a))}try{let b=await a();if(b)return b}catch(a){c?.warn?.("TOKEN_REFRESH",`Attempt ${d+1}/${b} failed: ${a.message}`)}}return c?.error?.("TOKEN_REFRESH",`All ${b} retry attempts failed`),null}}};
1
+ "use strict";exports.id=8129,exports.ids=[8129],exports.modules={4630:(a,b,c)=>{c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(39141);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},18080:(a,b,c)=>{c.d(b,{Xj:()=>j,uo:()=>k});var d=c(92990);let e=new Set(["login.microsoftonline.com","login.microsoft.com","login.windows.net"]);function f(a){return"string"==typeof a?a.trim():""}function g(a){let b,c=f(a);if(!c)throw Error("token_endpoint is required");try{b=new URL(c)}catch{throw Error("token_endpoint must be a valid URL")}if("https:"!==b.protocol)throw Error("token_endpoint must use https");let d=b.hostname.toLowerCase();if(!e.has(d))throw Error("token_endpoint must be a Microsoft login endpoint");return b.toString()}function h(a){return Array.isArray(a)?a.map(f).filter(Boolean).join(" "):f(a)}function i(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;return JSON.parse(Buffer.from(`${c}${"=".repeat(d)}`,"base64").toString("utf8"))}catch{return null}}function j(a){let b=a;if("string"==typeof b)try{b=JSON.parse(b)}catch{throw Error("CLIProxyAPI auth JSON is invalid")}if(!b||"object"!=typeof b)throw Error("CLIProxyAPI auth JSON is required");let c=f(b.auth_method||b.authMethod);if(c&&"external_idp"!==c)throw Error("Only external_idp Kiro auth is supported by this importer");let e=f(b.access_token||b.accessToken),j=f(b.refresh_token||b.refreshToken),k=f(b.client_id||b.clientId),l=g(b.token_endpoint||b.tokenEndpoint),m=f(b.profile_arn||b.profileArn),n=f(b.region)||"us-east-1",o=h(b.scopes||b.scope),p=(0,d.S6)(n);if(!e)throw Error("access_token is required");if(!j)throw Error("refresh_token is required");if(!k)throw Error("client_id is required");if(!o)throw Error("scopes is required");if(!m)throw Error("profile_arn is required");let q=i(e),r=b.email||q?.email||q?.preferred_username||q?.upn||q?.sub||null;return{accessToken:e,refreshToken:j,expiresAt:function(a){let b=a.expired||a.expires_at||a.expiresAt;if(b){let a=new Date(b).getTime();if(Number.isFinite(a))return new Date(a).toISOString()}let c=Number(a.expires_in||a.expiresIn||0);if(Number.isFinite(c)&&c>0)return new Date(Date.now()+1e3*c).toISOString();let d=i(a.access_token||a.accessToken);return d?.exp?new Date(1e3*d.exp).toISOString():new Date(Date.now()+36e5).toISOString()}(b),email:r,providerSpecificData:{profileArn:m,region:p,authMethod:"external_idp",provider:"CLIProxyAPI",clientId:k,tokenEndpoint:l,scope:o}}}function k(a,b={}){let c=f(b.clientId||b.client_id),d=g(b.tokenEndpoint||b.token_endpoint),e=h(b.scope||b.scopes);if(!a)throw Error("refresh token is required");if(!c)throw Error("clientId is required for external_idp refresh");if(!e)throw Error("scope is required for external_idp refresh");return{tokenEndpoint:d,body:new URLSearchParams({grant_type:"refresh_token",client_id:c,refresh_token:a,scope:e}),providerSpecificData:{...b,authMethod:"external_idp",clientId:c,tokenEndpoint:d,scope:e}}}},18129:(a,b,c)=>{c.d(b,{Dz:()=>j,Vq:()=>m,fp:()=>k,jR:()=>i});var d=c(85640),e=c(39141);let f=e.sr.codex?.maxRefreshAgeMs,g=new Map,h=/^\d+(\.\d+)?$/;function i(a){if(null==a||""===a)return null;if("number"==typeof a||"string"==typeof a&&h.test(a.trim())){let b=Number(a);return Number.isFinite(b)?b<1e12?1e3*b:b:null}let b=new Date(a).getTime();return Number.isFinite(b)?b:null}function j(a,b=Date.now()){let c=i(a?.expiresAt??a?.tokenExpiresAt);if(null!==c)return c;let d=a?.expiresIn;return"number"==typeof d&&d>0?b+1e3*d:null}function k(a,b,c=Date.now()){if(!b)return!1;let g=j(b);if(null!==g&&g-c<(0,d.Og)(a))return!0;let h=e.sr[a]?.maxRefreshAgeMs;return!!(h&&b.refreshToken&&function(a,b=Date.now(),c=f){let d=i(a?.lastRefreshAt??a?.lastRefresh??a?.providerSpecificData?.lastRefreshAt);return!d||b-d>=c}(b,c,h))}async function l(a,b,c){let d,e=(d=b?.connectionId||b?.id||b?.email||b?.name||b?.refreshToken?.slice?.(-16)||"default",`${a}:${d}`),f=g.get(e);if(f)return f;let h=Promise.resolve().then(c).finally(()=>{g.delete(e)});return g.set(e,h),h}async function m(a,b,c){return b?l(a,b,async()=>{let f=await (0,d.$B)(a,b,c);return function(a,b,c,f=Date.now()){var g,h;if(!c)return null;if((0,d.jT)(c))return c;let i={},j=new Date(f).toISOString();c.accessToken&&(i.accessToken=c.accessToken),c.apiKey&&(i.apiKey=c.apiKey),c.token&&(i.token=c.token);let k=c.refreshToken??b?.refreshToken;k&&(i.refreshToken=k);let l=c.idToken??b?.idToken;return l&&(i.idToken=l),c.expiresIn?(i.expiresIn=c.expiresIn,i.expiresAt=function(a,b=Date.now()){return a?new Date(b+1e3*a).toISOString():null}(c.expiresIn,f)):c.expiresAt&&(i.expiresAt=c.expiresAt),c.projectId&&(i.projectId=c.projectId),c.providerSpecificData&&(g=b?.providerSpecificData,i.providerSpecificData=(h=c.providerSpecificData)&&"object"==typeof h?{...g||{},...h}:g),c.copilotToken&&(i.copilotToken=c.copilotToken),c.copilotTokenExpiresAt&&(i.copilotTokenExpiresAt=c.copilotTokenExpiresAt),(e.sr[a]?.trackRefreshAt||i.accessToken||i.apiKey||i.token||i.refreshToken||i.copilotToken)&&(i.lastRefreshAt=c.lastRefreshAt||j),i}(a,b,f)}):null}},21362:(a,b,c)=>{c.d(b,{J1:()=>n,ge:()=>q,Il:()=>p,XB:()=>A,SO:()=>z,Wm:()=>t,jR:()=>y,ZP:()=>G,go:()=>F,EF:()=>x,I9:()=>r,AH:()=>w,ng:()=>o,Ql:()=>v,rE:()=>I,Ms:()=>E,RM:()=>B,p9:()=>D,r_:()=>l,wt:()=>C});var d=c(31024),e=c(4630),f=c(28730),g=c(89843);let h=new Map;async function i(a,b,c,d){if(!b)return c();let e=`${a}:${b}`,f=h.get(e);if(f){if(f.promise)return d?.info?.("TOKEN_REFRESH",`Reusing in-flight refresh for ${a}`),f.promise;if(f.expiresAt>Date.now())return d?.info?.("TOKEN_REFRESH",`Reusing recent refresh result for ${a}`),f.result;h.delete(e)}let g=(async()=>{try{let a=await c();return h.set(e,{result:a,expiresAt:Date.now()+1e4}),a}catch(a){throw h.delete(e),a}})();return h.set(e,{promise:g}),g}var j=c(18080);let k=null;async function l(a,b){return a?i("xai",a,async()=>{try{k||(k=new(await Promise.all([c.e(2898),c.e(4730)]).then(c.bind(c,84730))).XaiService);let b=await k.refreshAccessToken(a);return{accessToken:b.access_token,refreshToken:b.refresh_token||a,expiresIn:b.expires_in,idToken:b.id_token}}catch(c){b?.warn?.("TOKEN_REFRESH",`xai refresh failed: ${c?.message||c}`);let a=String(c?.message||"");if(a.includes("invalid_grant")||a.includes("invalid_request"))return{error:"invalid_grant"};return null}},b):null}let m={claude:{bodyFormat:"json",includeClientSecret:!1,url:()=>f.NA.anthropic.token,dedupKey:"claude"},qwen:{url:()=>f.NA.qwen.token,dedupKey:"qwen",parse:a=>a.resource_url?{providerSpecificData:{resourceUrl:a.resource_url}}:{}},iflow:{url:()=>f.NA.iflow.token,dedupKey:"iflow",extraHeaders:(a,b)=>({Authorization:`Basic ${btoa(`${b.clientId}:${b.clientSecret}`)}`})},github:{url:()=>f.NA.github.token,dedupKey:"github",includeClientSecret:a=>!!a?.clientSecret},kimi:{dedupKey:"kimi",extraHeaders:a=>(0,f.buildKimiHeaders)(a?.providerSpecificData?.deviceId)}};async function n(a,b,c,d){let f=e.xq[a],g=m[a]||{},h=function(a,b,c){if(c?.url)try{return c.url()}catch{}return b?.refreshUrl||e.sr[a]?.tokenUrl||null}(a,f,g);return f&&h?b?i(g.dedupKey||a,b,async()=>{try{let e,i,j,{format:k,body:l}=(e=g?.bodyFormat==="json"?"json":"form",i=g?.includeClientSecret===void 0||("function"==typeof g.includeClientSecret?g.includeClientSecret(f):g.includeClientSecret),j={grant_type:"refresh_token",refresh_token:b,client_id:f.clientId},(i&&f.clientSecret&&(j.client_secret=f.clientSecret),"json"===e)?{format:"json",body:JSON.stringify(j)}:{format:"form",body:new URLSearchParams(j)}),m={"Content-Type":"json"===k?"application/json":"application/x-www-form-urlencoded",Accept:"application/json",...g.extraHeaders&&g.extraHeaders(c,f)||{}},n=await fetch(h,{method:"POST",headers:m,body:l});if(!n.ok){let b=await n.text();return d?.error?.("TOKEN_REFRESH",`Failed to refresh token for ${a}`,{status:n.status,error:b}),null}let o=await n.json();return d?.info?.("TOKEN_REFRESH",`Successfully refreshed token for ${a}`,{hasNewAccessToken:!!o.access_token,hasNewRefreshToken:!!o.refresh_token,expiresIn:o.expires_in}),{accessToken:o.access_token,refreshToken:o.refresh_token||b,expiresIn:o.expires_in,...g.parse&&g.parse(o)||{}}}catch(b){return d?.error?.("TOKEN_REFRESH",`Error refreshing token for ${a}`,{error:b.message}),null}},d):(d?.warn?.("TOKEN_REFRESH",`No refresh token available for provider: ${a}`),null):(d?.warn?.("TOKEN_REFRESH",`No refresh URL configured for provider: ${a}`),null)}async function o(a,b,c){return n("kimi",a,b,c)}async function p(a,b){return a?i("cline",a,async()=>{try{let c=await fetch(e.xq.cline?.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({refreshToken:a,grantType:"refresh_token",clientType:"extension"})});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Cline token",{status:c.status,error:a}),null}let d=await c.json(),f=d?.data||d;if(!f?.accessToken)return null;let g=f.expiresAt?Math.max(1,Math.floor((new Date(f.expiresAt).getTime()-Date.now())/1e3)):f.expiresIn||f.expires_in||3600;return{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:g}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Cline token: ${a.message}`),null}},b):null}async function q(a,b){return n("claude",a,{},b)}async function r(a,b,c,d){return a?i(`google:${b}`,a,async()=>{try{let e=await fetch(f.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:b,client_secret:c})});if(!e.ok){let a=await e.text();return d?.error?.("TOKEN_REFRESH","Failed to refresh Google token",{status:e.status,error:a}),null}let g=await e.json();return d?.info?.("TOKEN_REFRESH","Successfully refreshed Google token",{hasNewAccessToken:!!g.access_token,expiresIn:g.expires_in}),{accessToken:g.access_token,refreshToken:g.refresh_token||a,expiresIn:g.expires_in}}catch(a){return d?.error?.("TOKEN_REFRESH",`Network error refreshing Google token: ${a.message}`),null}},d):null}function s(a="",b=0){let c=null;try{c=a?JSON.parse(a):null}catch{c=null}let d=c?.error?.code||c?.error||c?.error_code||"",e=c?.error_description||c?.message||a||"",f=`${d} ${e}`.toLowerCase();return{status:b,code:d,description:e,permanent:["refresh_token_expired","refresh_token_reused","refresh_token_invalidated","invalid_grant"].some(a=>f.includes(a))}}async function t(a,b){return a?i("codex",a,async()=>{try{let c=await fetch(f.NA.openai.token,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({client_id:e.xq.codex.clientId,grant_type:"refresh_token",refresh_token:a})});if(!c.ok){let a=await c.text(),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Codex refresh token already used or invalid. Re-auth required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Codex token",{status:c.status,error:a,code:d.code,permanent:d.permanent}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Codex token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,hasIdToken:!!d.id_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,idToken:d.id_token,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Codex token: ${a.message}`),null}},b):null}async function u(a,b,d){if(a?.profileArn)return{};let e=d?.trim?.()||null;if(!e){let{fetchKiroProfileArn:a}=await Promise.all([c.e(7774),c.e(4646),c.e(1847),c.e(9761),c.e(4378),c.e(576),c.e(9865),c.e(8644),c.e(1187),c.e(7677),c.e(73),c.e(7594),c.e(1733),c.e(1942),c.e(369),c.e(6464)]).then(c.bind(c,86103));e=await a(b)}return e?{providerSpecificData:{profileArn:e}}:{}}async function v(a,b,c,d=null){return a?i("kiro",a,async()=>{let f=b?.authMethod,h=b?.clientId,i=b?.clientSecret,k=b?.region;if("external_idp"===f){let e;try{e=(0,j.uo)(a,b)}catch(a){return c?.warn?.("TOKEN_REFRESH",`Invalid Kiro external_idp refresh config: ${a.message}`),null}let f=await (0,g.proxyAwareFetch)(e.tokenEndpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:e.body},d);if(!f.ok){let a=await f.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro external_idp token",{status:f.status,error:a}),null}let h=await f.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro external_idp token",{hasNewAccessToken:!!h.access_token,hasNewRefreshToken:!!h.refresh_token,expiresIn:h.expires_in}),{accessToken:h.access_token,refreshToken:h.refresh_token||a,expiresIn:h.expires_in,providerSpecificData:e.providerSpecificData}}if(h&&i){let e="idc"===f&&k?`https://oidc.${k}.amazonaws.com/token`:"https://oidc.us-east-1.amazonaws.com/token",j=await (0,g.proxyAwareFetch)(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:h,clientSecret:i,refreshToken:a,grantType:"refresh_token"})},d);if(!j.ok){let a=await j.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro AWS token",{status:j.status,error:a}),null}let l=await j.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro AWS token",{hasNewAccessToken:!!l.accessToken,expiresIn:l.expiresIn}),{accessToken:l.accessToken,refreshToken:l.refreshToken||a,expiresIn:l.expiresIn,...await u(b,l.accessToken,l.profileArn)}}let l=await (0,g.proxyAwareFetch)(e.xq.kiro.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"kiro-cli/1.0.0"},body:JSON.stringify({refreshToken:a})},d);if(!l.ok){let a=await l.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Kiro social token",{status:l.status,error:a}),null}let m=await l.json();return c?.info?.("TOKEN_REFRESH","Successfully refreshed Kiro social token",{hasNewAccessToken:!!m.accessToken,expiresIn:m.expiresIn}),{accessToken:m.accessToken,refreshToken:m.refreshToken||a,expiresIn:m.expiresIn,...await u(b,m.accessToken,m.profileArn)}},c):null}async function w(a,b){return n("iflow",a,{},b)}async function x(a,b){return n("github",a,{},b)}async function y(a,b){return a?i("copilot",a,async()=>{try{let c=await fetch(e.sr.github?.copilotTokenUrl,{headers:{Authorization:`token ${a}`,"User-Agent":f.x0.USER_AGENT,"Editor-Version":`vscode/${f.x0.VSCODE_VERSION}`,"Editor-Plugin-Version":`copilot-chat/${f.x0.COPILOT_CHAT_VERSION}`,Accept:"application/json","x-github-api-version":f.x0.API_VERSION}});if(!c.ok){let a=await c.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh Copilot token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Copilot token",{hasToken:!!d.token,expiresAt:d.expires_at}),{token:d.token,expiresAt:d.expires_at}}catch(a){return b?.error?.("TOKEN_REFRESH","Error refreshing Copilot token",{error:a.message}),null}},b):null}async function z(a,b){return a?i("codebuddy-cn",a,async()=>{let c=e.sr["codebuddy-cn"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function A(a,b){return a?i("codebuddy-intl",a,async()=>{let c=e.sr["codebuddy-intl"]||{},d=await fetch(c.refreshUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":c.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-Refresh-Token":a,"X-Auth-Refresh-Source":"plugin","X-Product":"SaaS"},body:"{}"});if(!d.ok){let a=await d.text();return b?.error?.("TOKEN_REFRESH","Failed to refresh CodeBuddy intl token",{status:d.status,error:a}),null}let f=await d.json();return 0===f.code&&f.data?.accessToken?(b?.info?.("TOKEN_REFRESH","Successfully refreshed CodeBuddy intl token",{hasNewAccessToken:!!f.data.accessToken,hasNewRefreshToken:!!f.data.refreshToken,expiresIn:f.data.expiresIn}),{accessToken:f.data.accessToken,refreshToken:f.data.refreshToken||a,expiresIn:f.data.expiresIn}):(b?.error?.("TOKEN_REFRESH","CodeBuddy intl token refresh returned no token",{code:f.code,msg:f.msg}),null)},b):null}async function B(a,b,c){if(!a)return null;let d=e.sr.trae||{},f=d.exchangeTokenUrl||d.tokenUrl;return f?i("trae",a,async()=>{try{let b,e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":"Trae/1.0.0 antigravity-cockpit-tools"},body:JSON.stringify({ClientID:d.clientId||"ono9krqynydwx5",RefreshToken:a,ClientSecret:d.clientSecret||"-",UserID:""})});if(!e.ok){let a=await e.text();return c?.error?.("TOKEN_REFRESH","Failed to refresh Trae token",{status:e.status,error:a}),null}let g=await e.json(),h=g?.Result||g?.result||g,i=h?.AccessToken||h?.accessToken;if(!i)return c?.error?.("TOKEN_REFRESH","Trae refresh returned no AccessToken",{payload:g}),null;let j=h?.RefreshToken||h?.refreshToken||a,k=h?.ExpiresAt||h?.expiresAt;if("number"==typeof k)b=Math.max(1,k-Math.floor(Date.now()/1e3));else if("string"==typeof k){let a=new Date(k).getTime()-Date.now();b=a>0?Math.floor(a/1e3):void 0}return c?.info?.("TOKEN_REFRESH","Successfully refreshed Trae token",{hasNewAccessToken:!!i,hasNewRefreshToken:j!==a,expiresIn:b}),{accessToken:i,refreshToken:j,expiresIn:b}}catch(a){return c?.error?.("TOKEN_REFRESH",`Error refreshing Trae token: ${a.message}`),null}},c):(c?.warn?.("TOKEN_REFRESH","No Trae exchangeTokenUrl configured"),null)}function C(){return null}async function D(a,b){return b?.info?.("TOKEN_REFRESH","windsurf: apiKey is long-lived (no refresh_token flow) — skipping"),null}async function E(a,b="intl",d){return a?i(`qoder:${b||"intl"}`,a,async()=>{try{let e=new(await Promise.all([c.e(4646),c.e(1847),c.e(9761),c.e(4378),c.e(1531)]).then(c.bind(c,91531))).QoderService({profile:b}),f=await e.refreshDeviceToken(a);return d?.info?.("TOKEN_REFRESH","Successfully refreshed Qoder device token",{profile:b,hasNewAccessToken:!!f.accessToken,hasNewRefreshToken:!!f.refreshToken,expiresIn:f.expiresIn}),{accessToken:f.accessToken,refreshToken:f.refreshToken||a,expiresIn:f.expiresIn}}catch(c){let a=c?.status;if(d?.error?.("TOKEN_REFRESH",`Qoder device refresh failed (${b})`,{error:c?.message||String(c),status:a}),401===a||403===a)return{error:"invalid_grant",message:c?.message||"Qoder refresh rejected"};return null}},d):null}async function F(a,b){return a?i("frontier-for-all",a,async()=>{try{let c=await fetch(f.NA["frontier-for-all"].token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:e.xq["frontier-for-all"].clientId})});if(!c.ok){let a=await c.text().catch(()=>""),d=s(a,c.status);if(d.permanent)return b?.error?.("TOKEN_REFRESH","Frontier refresh token rotated or revoked. Re-login required.",{status:c.status,code:d.code}),{error:"unrecoverable_refresh_error",code:d.code};return b?.error?.("TOKEN_REFRESH","Failed to refresh Frontier token",{status:c.status,error:a}),null}let d=await c.json();return b?.info?.("TOKEN_REFRESH","Successfully refreshed Frontier token",{hasNewAccessToken:!!d.access_token,hasNewRefreshToken:!!d.refresh_token,expiresIn:d.expires_in}),{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in}}catch(a){return b?.error?.("TOKEN_REFRESH",`Network error refreshing Frontier token: ${a.message}`),null}},b):null}async function G(a,b){return a?i("cursor",a,async()=>{try{let c=await new d.q().refreshToken(a);return b?.info?.("TOKEN_REFRESH","Successfully refreshed Cursor token",{hasNewAccessToken:!!c.accessToken,hasNewRefreshToken:!!c.refreshToken,expiresIn:c.expiresIn}),c}catch(a){return b?.warn?.("TOKEN_REFRESH",`Cursor refresh failed: ${a?.message||a}`),null}},b):null}let H={"minimax-code":"https://account.minimax.cn/oauth2/token","minimax-code-global":"https://account.minimax.io/oauth2/token"};async function I(a,b,c){let d=H[a];return d&&b?i(a,b,async()=>{try{let e=await fetch(d,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:b,client_id:"mcode-public",scope:"agent.default",audience:"agent-backend"}).toString(),signal:AbortSignal.timeout(3e4)}),f=await e.json().catch(()=>null);if(!e.ok||f&&"string"==typeof f.error&&f.error){let b=f?.error||`HTTP ${e.status}`;if(400===e.status&&f?.error==="invalid_grant")return c?.warn?.("TOKEN_REFRESH",`MiniMax refresh token spent/rejected (${a}) — sign-in gone`),{error:"invalid_grant"};return c?.error?.("TOKEN_REFRESH",`MiniMax token refresh failed (${a})`,{status:e.status,error:b}),null}if(!f?.access_token)return c?.error?.("TOKEN_REFRESH",`MiniMax refresh returned no access_token (${a})`),null;return{accessToken:f.access_token,refreshToken:f.refresh_token||b,expiresIn:f.expires_in}}catch(b){return c?.error?.("TOKEN_REFRESH",`Error refreshing MiniMax token (${a}): ${b.message}`),null}},c):null}},28730:(a,b,c)=>{let d;c.d(b,{Ch:()=>k,Cn:()=>p,Co:()=>z,Ic:()=>w,J5:()=>t,K:()=>u,NA:()=>C,QH:()=>q,Wu:()=>B,buildKimiHeaders:()=>D,dw:()=>s,go:()=>j,iO:()=>A,ix:()=>E,j5:()=>x,nZ:()=>v,sX:()=>l,uR:()=>r,x0:()=>n,zv:()=>y});var e=c(21820),f=c(4630),g=c(92675),h=c(8086);let i=f.xq["gemini-cli"]?.cliVersion,j=f.xq["gemini-cli"]?.apiClient,k=f.xq.codex?.cliVersion;function l(a="unknown"){let b;return`GeminiCLI/${i}/${a||"unknown"} (${(0,e.platform)()}; ${"ia32"===(b=(0,e.arch)())?"x86":b}; terminal)`}let m=f.xq.github?.copilot||{},n={VSCODE_VERSION:m.vscodeVersion,COPILOT_CHAT_VERSION:m.chatVersion,USER_AGENT:m.userAgent,API_VERSION:m.apiVersion,AUTO_API_VERSION:m.autoApiVersion,AUTO_TIMEOUT_MS:m.autoTimeoutMs,AUTO_SESSION_REFRESH_WINDOW_MS:m.autoSessionRefreshWindowMs};function o(){let a=(0,e.platform)(),b=(0,e.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let p={ideType:9,platform:o(),pluginType:2},q="_ide",r="_ide",s=new Set(["Task","TaskOutput","TaskStop","TaskCreate","TaskGet","TaskUpdate","TaskList","Bash","Glob","Grep","Read","Edit","Write","NotebookEdit","WebFetch","WebSearch","AskUserQuestion","Skill","EnterPlanMode","ExitPlanMode"]),t=new Set(["browser_subagent","command_status","find_by_name","generate_image","grep_search","list_dir","list_resources","multi_replace_file_content","notify_user","read_resource","read_terminal","read_url_content","replace_file_content","run_command","search_web","send_command_input","task_boundary","view_content_chunk","view_file","write_to_file"]),u={"User-Agent":g.Of},v={"gemini-cli":{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"},antigravity:{loadCodeAssist:"https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",onboardUser:"https://cloudcode-pa.googleapis.com/v1internal:onboardUser"}},w={"Content-Type":"application/json","User-Agent":"google-api-nodejs-client/9.15.1","X-Goog-Api-Client":"google-cloud-sdk vscode_cloudshelleditor/0.1","Client-Metadata":JSON.stringify({ideType:9,platform:o(),pluginType:2})},x={"Content-Type":"application/json","User-Agent":g.Of},y={ideType:9,platform:o(),pluginType:2},z="You are Claude Code, Anthropic's official CLI for Claude.",A=[{from:"You are a Claude agent, built on Anthropic's Claude Agent SDK.",to:""},{from:/You are Hermes(?: Agent)?(?:,\s*(?:an intelligent AI assistant|an AI assistant|an AI agent))?(?:,?\s*(?:built|created)\s+by\s+Nous Research)?\./gi,to:"You are an AI assistant."},{from:/^x-anthropic-billing-header:[^\n]*(?:\r?\n)*/gim,to:""},{from:/opencode/gi,to:a=>"OpenCode"===a?"Antigravity":"OPENCODE"===a?"ANTIGRAVITY":"antigravity"}],B=Object.fromEntries(Object.entries(f.sr).filter(([,a])=>a.refreshLeadMs).map(([a,b])=>[a,b.refreshLeadMs])),C={google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:f.sr.codex?.tokenUrl,auth:f.sr.codex?.authorizeUrl},anthropic:{token:f.sr.claude?.tokenUrl,auth:"https://api.anthropic.com/v1/oauth/authorize"},iflow:{token:f.sr.iflow?.tokenUrl,auth:f.sr.iflow?.authorizeUrl},github:{token:f.sr.github?.tokenUrl,auth:f.sr.github?.authorizeUrl,deviceCode:f.sr.github?.deviceCodeUrl},"frontier-for-all":{token:f.sr["frontier-for-all"]?.tokenUrl,auth:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceCode:f.sr["frontier-for-all"]?.deviceCodeUrl,deviceToken:f.sr["frontier-for-all"]?.deviceTokenUrl,revoke:f.sr["frontier-for-all"]?.revokeUrl}};function D(a){let b=(0,e.platform)(),c=(0,e.arch)(),f=`${b} ${c}`;"darwin"===b?f=`macOS ${c}`:"win32"===b?f=`Windows ${c}`:"linux"===b&&(f=`Linux ${c}`);let g="unknown";try{g=(0,e.hostname)()||"unknown"}catch{g="unknown"}let i="string"==typeof a&&a.trim()?a.trim():`kimi-${Date.now()}`;return{"X-Msh-Platform":"9router","X-Msh-Version":function(){if(d)return d;try{d=(0,h.createRequire)("file:///Volumes/Files/Projects/EzRouter/EzRouter/open-sse/config/appConstants.js")("../../package.json").version||"0.0.0"}catch{d=process.env.npm_package_version||"0.0.0"}return d}(),"X-Msh-Device-Name":g,"X-Msh-Device-Model":f,"X-Msh-Device-Id":i}}let E=64},31024:(a,b,c)=>{c.d(b,{q:()=>h});var d=c(55511),e=c.n(d),f=c(92990);function g(a){let b="string"==typeof a?a.split("."):[];if(3!==b.length||!b[1])return null;try{return JSON.parse(Buffer.from(b[1],"base64url").toString("utf8"))}catch{return null}}class h{constructor(){this.config=f.WN}getAuthorizationData(a="login"){let b=e().randomBytes(32).toString("base64url"),c=e().createHash("sha256").update(b).digest("base64url"),d=e().randomUUID(),f=new URLSearchParams({challenge:c,uuid:d,mode:a,supportsSelectedTeamLogin:"true"});return{authUrl:`${this.config.loginUrl}?${f.toString()}`,uuid:d,verifier:b,expiresIn:300}}async pollToken(a,b,c){if(!a||!b)throw Error("Cursor OAuth session is incomplete");let d=new URLSearchParams({uuid:a,verifier:b}),f=await fetch(`${this.config.pollUrl}?${d.toString()}`,{headers:{Accept:"application/json","User-Agent":"Cursor/3.12.29","x-cursor-client-type":this.config.clientType,"x-ghost-mode":"implicit-false","x-new-onboarding-completed":"false",traceparent:`00-${e().randomBytes(16).toString("hex")}-${e().randomBytes(8).toString("hex")}-01`},signal:c});if(404===f.status)return{success:!1,pending:!0,error:"authorization_pending"};if(!f.ok)throw Error(`Cursor OAuth polling failed with HTTP ${f.status}`);let g=await f.json();if(!g.accessToken||!g.refreshToken)throw Error("Cursor OAuth response was missing tokens");return{success:!0,tokens:g}}async refreshToken(a){let b;if(!a||"string"!=typeof a)throw Error("Cursor refresh token is required");for(let d=0;d<3;d+=1){var c;try{let c=await fetch(this.config.refreshUrl,{method:"POST",headers:{Authorization:`Bearer ${a}`,"Content-Type":"application/json"},body:"{}",signal:AbortSignal.timeout(15e3)});if(c.ok){let b=await c.json();if(!b.accessToken)throw Error("Cursor refresh response was missing an access token");return this.mapTokens(b.accessToken,b.refreshToken||a)}if(429!==c.status&&c.status<500){let a=Error(`Cursor token refresh failed with HTTP ${c.status}`);throw a.retryable=!1,a}b=Error(`Cursor token refresh failed with HTTP ${c.status}`)}catch(a){if(!1===a.retryable)throw a;b=a}d<2&&await function(a){return new Promise(b=>setTimeout(b,a))}((c=d,Math.floor(300*2**c*(.8+.4*Math.random()))))}throw b||Error("Cursor token refresh failed")}mapTokens(a,b,c=null,d="oauth"){let e,f=(e=g(a),"number"==typeof e?.exp?1e3*e.exp-3e5:Date.now()+36e5),h=this.extractUserInfo(a);return{accessToken:a,refreshToken:b,...c?{machineId:c}:{},expiresAt:new Date(f).toISOString(),expiresIn:Math.max(1,Math.floor((f-Date.now())/1e3)),email:h?.email||null,providerSpecificData:{authMethod:d,...c?{machineId:c}:{},...h?.userId?{userId:h.userId}:{}}}}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return this.mapTokens(a,null,b,"imported")}extractUserInfo(a){let b=g(a);return b?{email:"string"==typeof b.email&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b.email)?b.email:null,userId:b.sub||b.user_id||null}:null}getTokenStorageInstructions(){return{title:"How to import your existing Cursor session",steps:["Open Cursor IDE and make sure you're logged in",`Linux: ${this.config.tokenStoragePaths.linux}`,`macOS: ${this.config.tokenStoragePaths.macos}`,`Windows: ${this.config.tokenStoragePaths.windows}`,"Read cursorAuth/accessToken and storage.serviceMachineId from itemTable"]}}}},85640:(a,b,c)=>{c.d(b,{$B:()=>o,I9:()=>f.I9,Og:()=>i,Ql:()=>f.Ql,Sc:()=>j,Wm:()=>f.Wm,go:()=>f.go,jR:()=>f.jR,jT:()=>h,oD:()=>g,pb:()=>l,qZ:()=>p,rE:()=>f.rE});var d=c(4630),e=c(28730),f=c(21362);let g=3e5;function h(a){return a&&"object"==typeof a&&("unrecoverable_refresh_error"===a.error||"refresh_token_reused"===a.error||"invalid_request"===a.error||"invalid_grant"===a.error)}function i(a){return e.Wu[a]?e.Wu[a]:"kimi-coding"===a&&e.Wu.kimi?e.Wu.kimi:g}function j(a){if("string"!=typeof a)return null;try{let b=JSON.parse(a);if("service_account"===b.type&&b.client_email&&b.private_key&&b.project_id)return b;return null}catch{return null}}let k=new Map;async function l(a,b){let d=a.client_email,f=k.get(d);if(f&&f.expiresAt-Date.now()>3e5)return{accessToken:f.token,expiresAt:f.expiresAt};try{let{SignJWT:f,importPKCS8:g}=await Promise.all([c.e(4433),c.e(1455)]).then(c.bind(c,71455));b?.debug?.("TOKEN_REFRESH",`Vertex minting token for ${a.client_email}`);let h=await g(a.private_key.replace(/\\n/g,"\n"),"RS256"),i=Math.floor(Date.now()/1e3),j=await new f({scope:"https://www.googleapis.com/auth/cloud-platform"}).setProtectedHeader({alg:"RS256"}).setIssuer(a.client_email).setAudience(e.NA.google.token).setIssuedAt(i).setExpirationTime(i+3600).sign(h),l=await fetch(e.NA.google.token,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:j})});if(!l.ok){let a=await l.text();return b?.error?.("TOKEN_REFRESH",`Vertex token mint failed: ${a}`),null}let{access_token:m,expires_in:n}=await l.json(),o=Date.now()+(n??3600)*1e3;return k.set(d,{token:m,expiresAt:o}),b?.info?.("TOKEN_REFRESH",`Vertex token minted for ${a.client_email}`),{accessToken:m,expiresAt:o}}catch(a){return b?.error?.("TOKEN_REFRESH",`Vertex token error: ${a.message}`),null}}function m(a,b){let c=j(a.apiKey);return c?l(c,b):null}let n={"frontier-for-all":(a,b)=>(0,f.go)(a.refreshToken,b),"gemini-cli":(a,b)=>(0,f.I9)(a.refreshToken,d.xq["gemini-cli"].clientId,d.xq["gemini-cli"].clientSecret,b),antigravity:(a,b)=>(0,f.I9)(a.refreshToken,d.xq.antigravity.clientId,d.xq.antigravity.clientSecret,b),claude:(a,b)=>(0,f.ge)(a.refreshToken,b),codex:(a,b)=>(0,f.Wm)(a.refreshToken,b),iflow:(a,b)=>(0,f.AH)(a.refreshToken,b),github:(a,b)=>(0,f.EF)(a.refreshToken,b),kiro:(a,b)=>(0,f.Ql)(a.refreshToken,a.providerSpecificData,b),cursor:(a,b)=>(0,f.ZP)(a.refreshToken,b),xai:(a,b)=>(0,f.r_)(a.refreshToken,b),"grok-cli":(a,b)=>(0,f.r_)(a.refreshToken,b),gcli:(a,b)=>(0,f.r_)(a.refreshToken,b),"codebuddy-cn":(a,b)=>(0,f.SO)(a.refreshToken,b),"codebuddy-intl":(a,b)=>(0,f.XB)(a.refreshToken,b),trae:(a,b)=>(0,f.RM)(a.refreshToken,a,b),cline:(a,b)=>(0,f.Il)(a.refreshToken,b),clinepass:(a,b)=>(0,f.Il)(a.refreshToken,b),zed:()=>(0,f.wt)(),windsurf:(a,b)=>(0,f.p9)(a,b),kimi:(a,b)=>(0,f.ng)(a.refreshToken,a,b),"kimi-coding":(a,b)=>(0,f.ng)(a.refreshToken,a,b),"minimax-code":(a,b)=>(0,f.rE)("minimax-code",a.refreshToken,b),"minimax-code-global":(a,b)=>(0,f.rE)("minimax-code-global",a.refreshToken,b),vertex:m,"vertex-partner":m};async function o(a,b,c){let d=b.refreshToken||b.providerSpecificData?.refreshToken;if(!d)return null;let e=d!==b.refreshToken?{...b,refreshToken:d}:b,g=n[a];return g?g(e,c):(0,f.J1)(a,d,e,c)}async function p(a,b=3,c=null){for(let d=0;d<b;d++){if(d>0){let a=1e3*d;c?.debug?.("TOKEN_REFRESH",`Retry ${d}/${b} after ${a}ms`),await new Promise(b=>setTimeout(b,a))}try{let b=await a();if(b)return b}catch(a){c?.warn?.("TOKEN_REFRESH",`Attempt ${d+1}/${b} failed: ${a.message}`)}}return c?.error?.("TOKEN_REFRESH",`All ${b} retry attempts failed`),null}}};
@@ -1 +1 @@
1
- "use strict";exports.id=823,exports.ids=[823],exports.modules={20491:(a,b,c)=>{c.d(b,{NF:()=>E,Nx:()=>C,SQ:()=>A,XC:()=>B,cl:()=>D});var d=c(77598),e=c.n(d),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(49120),k=c(89718),l=c(39326),m=c(67828),n=c(30080),o=c(89843);let p=i().join(j.n,"codex-native","catalog.json");global.__codexNativeCatalogState||(global.__codexNativeCatalogState={versions:new Map,accounts:new Map,refreshes:new Map,diskLoaded:!1});let q=global.__codexNativeCatalogState;function r(a){if(null==a||""===a)return null;let b=String(a);if(b.length>128||/[\u0000-\u001f\u007f]/.test(b))throw Error("Invalid Codex client_version");return b}function s(a){return a??"__unspecified__"}function t(a,b){return`${s(a)}\u0000${b}`}function u(a){return!!a&&"object"==typeof a&&"string"==typeof a.slug&&a.slug.length>0}async function v(a,b,c){let d=await (0,m.checkAndRefreshToken)("codex",{...a,connectionId:a.id});if(!d?.accessToken)throw Error("Codex account has no access token");let e={accept:"application/json",authorization:`Bearer ${d.accessToken}`,originator:"codex_cli_rs"},f=d?.providerSpecificData?.workspaceId||d?.providerSpecificData?.chatgptAccountId||d?.providerSpecificData?.accountId||null;f&&(e["chatgpt-account-id"]=f),c?.upstreamEtag&&(e["if-none-match"]=c.upstreamEtag);let g=await (0,l.B)(d.providerSpecificData||{}),h=new URL(`${n.DT.upstreamHttpBaseUrl}/${n.DT.paths.models}`);null!=b&&h.searchParams.set("client_version",b);let i=await (0,o.proxyAwareFetch)(h,{method:"GET",headers:e,signal:AbortSignal.timeout(8e3)},{connectionProxyEnabled:!0===g.connectionProxyEnabled,connectionProxyUrl:g.connectionProxyUrl||"",connectionNoProxy:g.connectionNoProxy||"",vercelRelayUrl:g.vercelRelayUrl||"",strictProxy:!0===g.strictProxy});if(304===i.status&&c)return{...c,fetchedAt:Date.now(),notModified:!0};if(!i.ok){let a=(await i.text()).slice(0,240);throw Error(`Codex models ${i.status}${a?`: ${a}`:""}`)}let j=await i.json(),k=(Array.isArray(j?.models)?j.models:[]).filter(u);if(0===k.length)throw Error("Codex returned an empty native model catalog");return{models:k,upstreamEtag:i.headers.get("x-models-etag")||i.headers.get("etag"),fetchedAt:Date.now()}}function w(a){return`"${e().createHash("sha256").update(JSON.stringify(a)).digest("hex").slice(0,32)}"`}async function x(){await g().mkdir(i().dirname(p),{recursive:!0});let a={};for(let[b,c]of q.versions)a[b]={clientVersion:c.clientVersion,fetchedAt:c.fetchedAt,models:c.models,eligibleConnectionIds:c.eligibleConnectionIds,cohortHashes:c.cohortHashes};let b=`${p}.${process.pid}.tmp`;await g().writeFile(b,JSON.stringify({version:2,versions:a}),{mode:384}),await g().rename(b,p)}async function y(){if(!q.diskLoaded){q.diskLoaded=!0;try{let a=JSON.parse(await g().readFile(p,"utf8"));if(a?.version!==2||!a.versions)return;for(let[b,c]of Object.entries(a.versions)){let a=Number(c?.fetchedAt);if(!Number.isFinite(a)||Date.now()-a>n.DT.catalogStaleMs)continue;let d=(c.models||[]).filter(u);0!==d.length&&q.versions.set(b,{clientVersion:c.clientVersion??null,models:d,eligibleConnectionIds:c.eligibleConnectionIds||{},cohortHashes:c.cohortHashes||{},fetchedAt:a,etag:w(d),source:"last-known-good",stale:!0,accountCount:null,successfulAccountCount:null,warnings:[]})}}catch{}}}async function z(a){let b=await (0,k.getProviderConnections)({provider:"codex",isActive:!0}),c=await Promise.all(b.map(async b=>{let c=t(a,b.id),d=q.accounts.get(c);try{let e=await v(b,a,d);return q.accounts.set(c,e),{ok:!0,connectionId:b.id,...e}}catch(a){if(d&&Date.now()-d.fetchedAt<=n.DT.catalogStaleMs)return{ok:!0,stale:!0,connectionId:b.id,...d,warning:a.message};return{ok:!1,connectionId:b.id,error:a.message}}})),d=c.filter(a=>a.ok);if(0===d.length){let b=q.versions.get(s(a));if(b&&Date.now()-b.fetchedAt<=n.DT.catalogStaleMs)return{...b,source:"last-known-good",stale:!0};let c=Error("No valid native Codex catalog is available");throw c.code="codex_catalog_unavailable",c}let f=function(a,b){let c=new Map(b.map(a=>[a.id,a.priority??999])),d=new Map;for(let b of a)if(b.ok)for(let a of b.models){let c=e().createHash("sha256").update(JSON.stringify(function a(b){return Array.isArray(b)?b.map(a):b&&"object"==typeof b?Object.fromEntries(Object.keys(b).sort().map(c=>[c,a(b[c])])):b}(a))).digest("hex");d.has(a.slug)||d.set(a.slug,new Map);let f=d.get(a.slug);f.has(c)||f.set(c,{hash:c,model:a,connectionIds:[]}),f.get(c).connectionIds.push(b.connectionId)}let f=[],g={},h={};for(let[a,b]of d){let d=[...b.values()].sort((a,b)=>{let d=b.connectionIds.length-a.connectionIds.length;if(0!==d)return d;let e=Math.min(...a.connectionIds.map(a=>c.get(a)??999)),f=Math.min(...b.connectionIds.map(a=>c.get(a)??999));return e!==f?e-f:a.hash.localeCompare(b.hash)})[0];d.connectionIds.sort((a,b)=>(c.get(a)??999)-(c.get(b)??999)||a.localeCompare(b)),f.push(d.model),g[a]=d.connectionIds,h[a]=d.hash}return f.sort((a,b)=>(a.priority??999)-(b.priority??999)||a.slug.localeCompare(b.slug)),{models:f,eligibleConnectionIds:g,cohortHashes:h}}(d,b);if(0===f.models.length){let a=Error("No native Codex model metadata cohort is available");throw a.code="codex_catalog_unavailable",a}let g=c.flatMap(a=>{let b=a.error||a.warning;return b?[{connectionId:a.connectionId,message:b}]:[]}),h={...f,clientVersion:a,fetchedAt:Date.now(),source:d.some(a=>!a.stale)?"upstream":"last-known-good",stale:d.every(a=>a.stale),accountCount:b.length,successfulAccountCount:d.length,upstreamEtags:Object.fromEntries(d.map(a=>[a.connectionId,a.upstreamEtag||null])),warnings:g};return h.etag=w(h.models),q.versions.set(s(a),h),x().catch(()=>{}),h}async function A({clientVersion:a,forceRefresh:b=!1}={}){await y();let c=r(a),d=s(c),e=q.versions.get(d);return!b&&e&&Date.now()-e.fetchedAt<n.DT.catalogTtlMs?e:(q.refreshes.has(d)||q.refreshes.set(d,z(c).finally(()=>q.refreshes.delete(d))),e&&!b&&Date.now()-e.fetchedAt<=n.DT.catalogStaleMs)?(q.refreshes.get(d).catch(()=>{}),{...e,source:"upstream"===e.source?"cache":e.source}):q.refreshes.get(d)}async function B(){return await y(),[...q.versions.values()].filter(a=>a.clientVersion).sort((a,b)=>b.fetchedAt-a.fetchedAt)[0]?.clientVersion||null}async function C(a,b,c=null){let d=r(c),e=t(d,a),f=q.accounts.get(e);if(!f||!b||f.upstreamEtag!==b){f&&(f.fetchedAt=0);let a=q.versions.get(s(d));a&&(a.fetchedAt=0),A({clientVersion:d,forceRefresh:!0}).catch(()=>{})}}function D(a,b){return a?.models?.some(a=>a.slug===b)===!0}function E(a){return a?.models?.find(a=>a?.supported_in_api!==!1&&a?.visibility!=="hide")?.slug||null}},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},39276:(a,b,c)=>{c.d(b,{RM:()=>R,tf:()=>W,jR:()=>S,si:()=>Z,Z5:()=>P,P7:()=>$,Sq:()=>Y,vB:()=>M,R_:()=>U,v9:()=>O,uC:()=>X,LV:()=>V,cU:()=>T});var d=c(77598),e=c.n(d),f=c(89718),g=c(39326),h=c(67828),i=c(23433),j=c(30080),k=c(49263),l=c(49485),m=c(51455),n=c.n(m),o=c(76760),p=c.n(o),q=c(49120);let r=p().join(q.n,"codex-native","affinity.json"),s=p().join(q.n,"codex-native","affinity.key");global.__codexNativeAffinityState||(global.__codexNativeAffinityState={entries:new Map,loaded:!1,persistTimer:null,secret:null});let t=global.__codexNativeAffinityState;function u(a){if("string"!=typeof a)return null;let b=a.trim();return b&&b.length<=512?b:null}function v(a,b){return u(a?.[b]??a?.[b.toLowerCase()])}async function w(){if(t.secret)return t.secret;try{t.secret=await n().readFile(s)}catch{t.secret=e().randomBytes(32),await n().mkdir(p().dirname(s),{recursive:!0});let a=`${s}.${process.pid}.tmp`;await n().writeFile(a,t.secret,{mode:384});try{await n().rename(a,s)}catch(a){if("EEXIST"!==a.code)throw a;t.secret=await n().readFile(s)}}return t.secret}function x(){let a=Date.now();for(let[b,c]of t.entries)a-c.lastUsedAt>j.DT.affinityTtlMs&&t.entries.delete(b);for(;t.entries.size>j.DT.affinityMaxEntries;)t.entries.delete(t.entries.keys().next().value)}async function y(){if(!t.loaded){t.loaded=!0;try{let a=JSON.parse(await n().readFile(r,"utf8"));for(let[b,c]of Object.entries(a?.entries||{}))c?.connectionId&&Number.isFinite(c?.lastUsedAt)&&t.entries.set(b,c);x()}catch{}}}function z(){t.persistTimer||(t.persistTimer=setTimeout(async()=>{t.persistTimer=null,x();try{await n().mkdir(p().dirname(r),{recursive:!0});let a=`${r}.${process.pid}.tmp`;await n().writeFile(a,JSON.stringify({version:1,entries:Object.fromEntries(t.entries)}),{mode:384}),await n().rename(a,r)}catch{}},100),t.persistTimer.unref?.())}async function A({headers:a,body:b}){await y();let c=v(a,"session-id")||v(a,"thread-id")||u(b?.prompt_cache_key)||null;return c?e().createHmac("sha256",await w()).update(c).digest("hex"):null}async function B(a){await y(),x();let b=a?t.entries.get(a):null;return b?(b.lastUsedAt=Date.now(),t.entries.delete(a),t.entries.set(a,b),z(),{...b}):null}async function C(a,b){a&&b&&(await y(),t.entries.delete(a),t.entries.set(a,{connectionId:b,lastUsedAt:Date.now()}),x(),z())}async function D(a,b){if(!a)return;await y();let c=t.entries.get(a);c&&(!b||c.connectionId===b)&&(t.entries.delete(a),z())}async function E(){await y(),x();let a=new Map;for(let b of t.entries.values())a.set(b.connectionId,(a.get(b.connectionId)||0)+1);return a}var F=c(20491);global.__codexNativePoolState||(global.__codexNativePoolState={quotas:new Map,quotaRefreshes:new Map,activeTurns:new Map,activeSockets:new Map,leases:new Map,failures:new Map,httpFallbackCount:0});let G=global.__codexNativePoolState;function H(a,b,c){let d=Math.max(0,(a.get(b)||0)+c);0===d?a.delete(b):a.set(b,d)}function I(a,b){let c=j.DT.quotaThresholds;return null!==a&&Number.isFinite(a)?a<=0?"exhausted":b&&"healthy"!==b&&a<c.recoverRemainingPercent?a<c.criticalRemainingPercent?"critical":"draining":a<c.criticalRemainingPercent?"critical":a<c.drainRemainingPercent?"draining":"healthy":"unknown"}function J(a){let b;if(a?.vercelRelayUrl)return{capable:!1,reason:"relay-only proxy has no WebSocket transport"};if(!a?.connectionProxyEnabled||!a?.connectionProxyUrl)return{capable:!0,reason:null};try{b=new URL(a.connectionProxyUrl.includes("://")?a.connectionProxyUrl:`http://${a.connectionProxyUrl}`).protocol}catch{return{capable:!1,reason:"invalid proxy URL"}}return["http:","https:","socks:","socks4:","socks4a:","socks5:","socks5h:"].includes(b)?{capable:!0,reason:null}:{capable:!1,reason:`unsupported WebSocket proxy scheme ${b}`}}async function K(a){let b=G.quotas.get(a.id);if(b&&Date.now()-b.fetchedAt<j.DT.quotaTtlMs)return b;if(G.quotaRefreshes.has(a.id))return G.quotaRefreshes.get(a.id);let c=(async()=>{try{let c,d,e=await (0,h.checkAndRefreshToken)("codex",{...a,connectionId:a.id}),f=await (0,g.B)(e.providerSpecificData||{}),i=await (0,l.Tl)(e.accessToken,{connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy}),j=(c=[i?.quotas?.session,i?.quotas?.weekly].filter(Boolean).map(a=>Number(a.remaining)).filter(Number.isFinite)).length?Math.min(...c):null,k={remaining:j,status:I(j,b?.status),resetAt:(d=[i?.quotas?.session?.resetAt,i?.quotas?.weekly?.resetAt].filter(Boolean).map(a=>new Date(a).getTime()).filter(Number.isFinite)).length?new Date(Math.min(...d)).toISOString():null,fetchedAt:Date.now(),source:"poll"};return G.quotas.set(a.id,k),k}catch(a){return{...b||{remaining:null,status:"unknown",resetAt:null,fetchedAt:Date.now(),source:"poll-error"},error:a.message}}})().finally(()=>G.quotaRefreshes.delete(a.id));return G.quotaRefreshes.set(a.id,c),c}function L(a){return G.quotas.get(a)||{remaining:null,status:"unknown",resetAt:null,fetchedAt:null,source:null}}function M(a,b,c="event"){if(!a||!b)return null;let d=null,e=null;if("function"==typeof b?.get){let a=[b.get("x-codex-primary-used-percent"),b.get("x-codex-secondary-used-percent")].map(Number).filter(Number.isFinite);a.length&&(d=Math.max(0,100-Math.max(...a)));let c=[b.get("x-codex-primary-reset-at"),b.get("x-codex-secondary-reset-at")].map(Number).filter(Number.isFinite);c.length&&(e=new Date(1e3*Math.min(...c)).toISOString())}else{let a,c;a=b?.rate_limits||b?.rate_limit||b,d=(c=[a?.primary,a?.primary_window,a?.secondary,a?.secondary_window].filter(Boolean).map(a=>Number(a.remaining??100-Number(a.used_percent??a.percent_used))).filter(Number.isFinite)).length?Math.max(0,Math.min(...c)):null}if(null===d)return null;let f=G.quotas.get(a),g={remaining:d,status:I(d,f?.status),resetAt:e||f?.resetAt||null,fetchedAt:Date.now(),source:c};return G.quotas.set(a,g),g}async function N({model:a,transport:b,excludeConnectionIds:c,clientVersion:d}){let[e,h,i]=await Promise.all([(0,f.getProviderConnections)({provider:"codex",isActive:!0}),(0,F.SQ)({clientVersion:d}),E()]),j=a?new Set(h.eligibleConnectionIds?.[a]||[]):null,l=new Map,m=[];for(let d of e){let e=null;if(c.has(d.id)?e="excluded after failure":j&&!j.has(d.id)?e="different model metadata cohort":a&&(0,k.Bl)(d,a)?e="model temporarily locked":"exhausted"===L(d.id).status&&(e="quota exhausted"),!e&&"ws"===b){let a=J(await (0,g.B)(d.providerSpecificData||{}));a.capable||(e=a.reason)}e?l.set(d.id,e):m.push(d)}return{connections:e,catalog:h,counts:i,candidates:m,skipped:l}}async function O(a={}){let b=await (0,f.getProviderConnections)({provider:"codex",isActive:!0});return await Promise.all(b.map(K)),P(a)}async function P({model:a=null,clientVersion:b}={}){let{connections:c,catalog:d,counts:e,candidates:f,skipped:g}=await N({model:a,transport:"http",excludeConnectionIds:new Set,clientVersion:b}),h=new Set(f.map(a=>a.id));return c.map(b=>{let c=L(b.id);return{connectionId:b.id,name:b.displayName||b.name||b.email||b.id.slice(0,8),priority:b.priority??999,eligible:h.has(b.id),skippedReason:g.get(b.id)||null,affinityCount:e.get(b.id)||0,activeTurns:G.activeTurns.get(b.id)||0,activeSockets:G.activeSockets.get(b.id)||0,remaining:c.remaining,status:(0,k.Bl)(b,a)?"locked":c.status,resetAt:c.resetAt,quotaFetchedAt:c.fetchedAt,quotaSource:c.source,catalogEtag:d.upstreamEtags?.[b.id]||null}})}async function Q({headers:a,body:b,model:c,transport:d="http",clientVersion:e,excludeConnectionIds:f=new Set}){let g,{counts:h,candidates:i,skipped:j,catalog:k}=await N({model:c,transport:d,excludeConnectionIds:f,clientVersion:e});for(let a of i)K(a).catch(()=>{});let l=await A({headers:a,body:b,model:c}),m=l?await B(l):null,n=m?i.find(a=>a.id===m.connectionId):null;if(n){let a=L(n.id).status;if("critical"!==a&&"exhausted"!==a)return{affinityKey:l,preferredConnectionId:n.id,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}let o=(g={healthy:0,unknown:1,draining:2,critical:3,exhausted:4},[...i].sort((a,b)=>{let c=L(a.id),e=L(b.id),f=(g[c.status]??1)-(g[e.status]??1);if(0!==f)return f;let i=(e.remaining??-1)-(c.remaining??-1);if(0!==i)return i;let j="ws"===d?G.activeSockets:G.activeTurns,k=(j.get(a.id)||0)-(j.get(b.id)||0);if(0!==k)return k;let l=(h.get(a.id)||0)-(h.get(b.id)||0);if(0!==l)return l;let m=(a.priority??999)-(b.priority??999);return 0!==m?m:new Date(a.lastUsedAt||0)-new Date(b.lastUsedAt||0)})).find(a=>{let b=L(a.id).status;return"healthy"===b||"unknown"===b})||null;return l&&o&&await C(l,o.id),{affinityKey:l,preferredConnectionId:o?.id||null,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}async function R({headers:a,body:b,model:c,transport:d="http",clientVersion:i,excludeConnectionIds:j=new Set}){let k=await Q({headers:a,body:b,model:c,transport:d,clientVersion:i,excludeConnectionIds:j});if(!k.preferredConnectionId)return{...k,lease:null};let l=(await (0,f.getProviderConnections)({provider:"codex",isActive:!0})).find(a=>a.id===k.preferredConnectionId);if(!l)return{...k,lease:null};let m=await (0,h.checkAndRefreshToken)("codex",{...l,connectionId:l.id}),n=await (0,g.B)(m.providerSpecificData||{});if("ws"===d&&!J(n).capable)return{...k,lease:null};let o={id:e().randomUUID(),connectionId:l.id,connection:l,credentials:m,proxy:n,affinityKey:k.affinityKey,model:c||null,transport:d,clientVersion:i??null,createdAt:Date.now(),semanticOutput:!1};return G.leases.set(o.id,o),H("ws"===d?G.activeSockets:G.activeTurns,l.id,1),{...k,lease:o}}function S(a){let b=G.leases.get(a);return b?Date.now()-b.createdAt>j.DT.leaseTtlMs?(X(a),null):b:null}async function T(a,b){let c=S(a);if(!c||!b)return!1;let d=await (0,F.SQ)({clientVersion:c.clientVersion});return!!(d.eligibleConnectionIds?.[b]||[]).includes(c.connectionId)&&(c.model=b,c.affinityKey&&await C(c.affinityKey,c.connectionId),!0)}function U(a){let b=S(a);b&&(b.semanticOutput=!0)}async function V(a,{headers:b}={}){let c=S(a);if(c){if(b){M(c.connectionId,b,"headers");let a=b.get?.("x-models-etag");a&&(0,F.Nx)(c.connectionId,a,c.clientVersion)}await (0,i.Pt)(c.connectionId,c.connection,c.model).catch(()=>{}),c.affinityKey&&await C(c.affinityKey,c.connectionId)}}async function W(a,{status:b=503,error:c="Codex Native failure"}={}){let d=S(a);d&&(G.failures.set(d.connectionId,{status:b,message:String(c).slice(0,160),at:Date.now()}),d.affinityKey&&await D(d.affinityKey,d.connectionId),([401,429].includes(Number(b))||Number(b)>=500)&&await (0,i.vk)(d.connectionId,Number(b),String(c),"codex",d.model).catch(()=>{}))}function X(a){let b=G.leases.get(a);b&&(G.leases.delete(a),H("ws"===b.transport?G.activeSockets:G.activeTurns,b.connectionId,-1))}function Y(){G.httpFallbackCount+=1}function Z(){return{activeLeases:G.leases.size,activeSockets:[...G.activeSockets.values()].reduce((a,b)=>a+b,0),activeTurns:[...G.activeTurns.values()].reduce((a,b)=>a+b,0),httpFallbackCount:G.httpFallbackCount}}async function $({model:a=null,clientVersion:b}={}){let c=await (0,f.getProviderConnections)({provider:"codex",isActive:!0}),d=await (0,F.SQ)({clientVersion:b}),e=a?new Set(d.eligibleConnectionIds?.[a]||[]):null;return Promise.all(c.map(async a=>{let b=null;e&&!e.has(a.id)?b="different model metadata cohort":"exhausted"===L(a.id).status&&(b="quota exhausted");let c=J(await (0,g.B)(a.providerSpecificData||{}));return b||c.capable||(b=c.reason),{connectionId:a.id,eligible:!b,reason:b}}))}},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,g=null){let h=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",i=h.includes("invalid_encrypted_content")||h.includes("encrypted content")&&(h.includes("could not be verified")||h.includes("could not be decrypted or parsed"));if(400===a&&i)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.provider||f.provider===g)&&(f.pattern&&h&&f.pattern.test(h)||f.text&&h&&h.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 d.w6.has(a)?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}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()}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};
1
+ "use strict";exports.id=823,exports.ids=[823],exports.modules={20491:(a,b,c)=>{c.d(b,{NF:()=>E,Nx:()=>C,SQ:()=>A,XC:()=>B,cl:()=>D});var d=c(77598),e=c.n(d),f=c(51455),g=c.n(f),h=c(76760),i=c.n(h),j=c(49120),k=c(89718),l=c(39326),m=c(67828),n=c(30080),o=c(89843);let p=i().join(j.n,"codex-native","catalog.json");global.__codexNativeCatalogState||(global.__codexNativeCatalogState={versions:new Map,accounts:new Map,refreshes:new Map,diskLoaded:!1});let q=global.__codexNativeCatalogState;function r(a){if(null==a||""===a)return null;let b=String(a);if(b.length>128||/[\u0000-\u001f\u007f]/.test(b))throw Error("Invalid Codex client_version");return b}function s(a){return a??"__unspecified__"}function t(a,b){return`${s(a)}\u0000${b}`}function u(a){return!!a&&"object"==typeof a&&"string"==typeof a.slug&&a.slug.length>0}async function v(a,b,c){let d=await (0,m.checkAndRefreshToken)("codex",{...a,connectionId:a.id});if(!d?.accessToken)throw Error("Codex account has no access token");let e={accept:"application/json",authorization:`Bearer ${d.accessToken}`,originator:"codex_cli_rs"},f=d?.providerSpecificData?.workspaceId||d?.providerSpecificData?.chatgptAccountId||d?.providerSpecificData?.accountId||null;f&&(e["chatgpt-account-id"]=f),c?.upstreamEtag&&(e["if-none-match"]=c.upstreamEtag);let g=await (0,l.B)(d.providerSpecificData||{}),h=new URL(`${n.DT.upstreamHttpBaseUrl}/${n.DT.paths.models}`);null!=b&&h.searchParams.set("client_version",b);let i=await (0,o.proxyAwareFetch)(h,{method:"GET",headers:e,signal:AbortSignal.timeout(8e3)},{connectionProxyEnabled:!0===g.connectionProxyEnabled,connectionProxyUrl:g.connectionProxyUrl||"",connectionNoProxy:g.connectionNoProxy||"",vercelRelayUrl:g.vercelRelayUrl||"",strictProxy:!0===g.strictProxy});if(304===i.status&&c)return{...c,fetchedAt:Date.now(),notModified:!0};if(!i.ok){let a=(await i.text()).slice(0,240);throw Error(`Codex models ${i.status}${a?`: ${a}`:""}`)}let j=await i.json(),k=(Array.isArray(j?.models)?j.models:[]).filter(u);if(0===k.length)throw Error("Codex returned an empty native model catalog");return{models:k,upstreamEtag:i.headers.get("x-models-etag")||i.headers.get("etag"),fetchedAt:Date.now()}}function w(a){return`"${e().createHash("sha256").update(JSON.stringify(a)).digest("hex").slice(0,32)}"`}async function x(){await g().mkdir(i().dirname(p),{recursive:!0});let a={};for(let[b,c]of q.versions)a[b]={clientVersion:c.clientVersion,fetchedAt:c.fetchedAt,models:c.models,eligibleConnectionIds:c.eligibleConnectionIds,cohortHashes:c.cohortHashes};let b=`${p}.${process.pid}.tmp`;await g().writeFile(b,JSON.stringify({version:2,versions:a}),{mode:384}),await g().rename(b,p)}async function y(){if(!q.diskLoaded){q.diskLoaded=!0;try{let a=JSON.parse(await g().readFile(p,"utf8"));if(a?.version!==2||!a.versions)return;for(let[b,c]of Object.entries(a.versions)){let a=Number(c?.fetchedAt);if(!Number.isFinite(a)||Date.now()-a>n.DT.catalogStaleMs)continue;let d=(c.models||[]).filter(u);0!==d.length&&q.versions.set(b,{clientVersion:c.clientVersion??null,models:d,eligibleConnectionIds:c.eligibleConnectionIds||{},cohortHashes:c.cohortHashes||{},fetchedAt:a,etag:w(d),source:"last-known-good",stale:!0,accountCount:null,successfulAccountCount:null,warnings:[]})}}catch{}}}async function z(a){let b=await (0,k.getProviderConnections)({provider:"codex",isActive:!0}),c=await Promise.all(b.map(async b=>{let c=t(a,b.id),d=q.accounts.get(c);try{let e=await v(b,a,d);return q.accounts.set(c,e),{ok:!0,connectionId:b.id,...e}}catch(a){if(d&&Date.now()-d.fetchedAt<=n.DT.catalogStaleMs)return{ok:!0,stale:!0,connectionId:b.id,...d,warning:a.message};return{ok:!1,connectionId:b.id,error:a.message}}})),d=c.filter(a=>a.ok);if(0===d.length){let b=q.versions.get(s(a));if(b&&Date.now()-b.fetchedAt<=n.DT.catalogStaleMs)return{...b,source:"last-known-good",stale:!0};let c=Error("No valid native Codex catalog is available");throw c.code="codex_catalog_unavailable",c}let f=function(a,b){let c=new Map(b.map(a=>[a.id,a.priority??999])),d=new Map;for(let b of a)if(b.ok)for(let a of b.models){let c=e().createHash("sha256").update(JSON.stringify(function a(b){return Array.isArray(b)?b.map(a):b&&"object"==typeof b?Object.fromEntries(Object.keys(b).sort().map(c=>[c,a(b[c])])):b}(a))).digest("hex");d.has(a.slug)||d.set(a.slug,new Map);let f=d.get(a.slug);f.has(c)||f.set(c,{hash:c,model:a,connectionIds:[]}),f.get(c).connectionIds.push(b.connectionId)}let f=[],g={},h={};for(let[a,b]of d){let d=[...b.values()].sort((a,b)=>{let d=b.connectionIds.length-a.connectionIds.length;if(0!==d)return d;let e=Math.min(...a.connectionIds.map(a=>c.get(a)??999)),f=Math.min(...b.connectionIds.map(a=>c.get(a)??999));return e!==f?e-f:a.hash.localeCompare(b.hash)})[0];d.connectionIds.sort((a,b)=>(c.get(a)??999)-(c.get(b)??999)||a.localeCompare(b)),f.push(d.model),g[a]=d.connectionIds,h[a]=d.hash}return f.sort((a,b)=>(a.priority??999)-(b.priority??999)||a.slug.localeCompare(b.slug)),{models:f,eligibleConnectionIds:g,cohortHashes:h}}(d,b);if(0===f.models.length){let a=Error("No native Codex model metadata cohort is available");throw a.code="codex_catalog_unavailable",a}let g=c.flatMap(a=>{let b=a.error||a.warning;return b?[{connectionId:a.connectionId,message:b}]:[]}),h={...f,clientVersion:a,fetchedAt:Date.now(),source:d.some(a=>!a.stale)?"upstream":"last-known-good",stale:d.every(a=>a.stale),accountCount:b.length,successfulAccountCount:d.length,upstreamEtags:Object.fromEntries(d.map(a=>[a.connectionId,a.upstreamEtag||null])),warnings:g};return h.etag=w(h.models),q.versions.set(s(a),h),x().catch(()=>{}),h}async function A({clientVersion:a,forceRefresh:b=!1}={}){await y();let c=r(a),d=s(c),e=q.versions.get(d);return!b&&e&&Date.now()-e.fetchedAt<n.DT.catalogTtlMs?e:(q.refreshes.has(d)||q.refreshes.set(d,z(c).finally(()=>q.refreshes.delete(d))),e&&!b&&Date.now()-e.fetchedAt<=n.DT.catalogStaleMs)?(q.refreshes.get(d).catch(()=>{}),{...e,source:"upstream"===e.source?"cache":e.source}):q.refreshes.get(d)}async function B(){return await y(),[...q.versions.values()].filter(a=>a.clientVersion).sort((a,b)=>b.fetchedAt-a.fetchedAt)[0]?.clientVersion||null}async function C(a,b,c=null){let d=r(c),e=t(d,a),f=q.accounts.get(e);if(!f||!b||f.upstreamEtag!==b){f&&(f.fetchedAt=0);let a=q.versions.get(s(d));a&&(a.fetchedAt=0),A({clientVersion:d,forceRefresh:!0}).catch(()=>{})}}function D(a,b){return a?.models?.some(a=>a.slug===b)===!0}function E(a){return a?.models?.find(a=>a?.supported_in_api!==!1&&a?.visibility!=="hide")?.slug||null}},30080:(a,b,c)=>{c.d(b,{DT:()=>d,Hp:()=>h,Js:()=>i,nB:()=>f,vr:()=>g,yp:()=>e});let d=Object.freeze({providerId:"codex",providerConfigId:"9router_codex",upstreamHttpBaseUrl:"https://chatgpt.com/backend-api/codex",upstreamWebSocketUrl:"wss://chatgpt.com/backend-api/codex/responses",catalogTtlMs:9e5,catalogStaleMs:6048e5,quotaTtlMs:6e4,affinityTtlMs:6048e5,affinityMaxEntries:5e4,leaseTtlMs:39e5,quotaThresholds:Object.freeze({drainRemainingPercent:15,criticalRemainingPercent:5,recoverRemainingPercent:20}),paths:Object.freeze({models:"models",responses:"responses",compact:"responses/compact",memories:"memories/trace_summarize",search:"alpha/search",imageGenerations:"images/generations",imageEdits:"images/edits"})}),e=Object.freeze(["authorization","chatgpt-account-id","cookie","host","connection","keep-alive","proxy-authenticate","proxy-authorization","proxy-connection","te","trailer","transfer-encoding","upgrade","forwarded","via","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-real-ip","x-9r-real-ip","x-9r-via-proxy","x-9r-cli-token","x-9r-internal-secret"]),f=Object.freeze(["accept","accept-encoding","accept-language","content-type","openai-beta","originator","session-id","thread-id","traceparent","tracestate","baggage","user-agent","x-client-request-id"]),g=Object.freeze(["x-codex-","x-openai-","x-stainless-"]),h=Object.freeze(["cache-control","content-encoding","content-type","etag","openai-model","retry-after","x-codex-turn-state","x-models-etag","x-reasoning-included","x-request-id"]),i=Object.freeze(["openai-","x-codex-","x-openai-","x-ratelimit-","x-request-","x-stainless-"])},39276:(a,b,c)=>{c.d(b,{RM:()=>R,tf:()=>W,jR:()=>S,si:()=>Z,Z5:()=>P,P7:()=>$,Sq:()=>Y,vB:()=>M,R_:()=>U,v9:()=>O,uC:()=>X,LV:()=>V,cU:()=>T});var d=c(77598),e=c.n(d),f=c(89718),g=c(39326),h=c(67828),i=c(23433),j=c(30080),k=c(49263),l=c(49485),m=c(51455),n=c.n(m),o=c(76760),p=c.n(o),q=c(49120);let r=p().join(q.n,"codex-native","affinity.json"),s=p().join(q.n,"codex-native","affinity.key");global.__codexNativeAffinityState||(global.__codexNativeAffinityState={entries:new Map,loaded:!1,persistTimer:null,secret:null});let t=global.__codexNativeAffinityState;function u(a){if("string"!=typeof a)return null;let b=a.trim();return b&&b.length<=512?b:null}function v(a,b){return u(a?.[b]??a?.[b.toLowerCase()])}async function w(){if(t.secret)return t.secret;try{t.secret=await n().readFile(s)}catch{t.secret=e().randomBytes(32),await n().mkdir(p().dirname(s),{recursive:!0});let a=`${s}.${process.pid}.tmp`;await n().writeFile(a,t.secret,{mode:384});try{await n().rename(a,s)}catch(a){if("EEXIST"!==a.code)throw a;t.secret=await n().readFile(s)}}return t.secret}function x(){let a=Date.now();for(let[b,c]of t.entries)a-c.lastUsedAt>j.DT.affinityTtlMs&&t.entries.delete(b);for(;t.entries.size>j.DT.affinityMaxEntries;)t.entries.delete(t.entries.keys().next().value)}async function y(){if(!t.loaded){t.loaded=!0;try{let a=JSON.parse(await n().readFile(r,"utf8"));for(let[b,c]of Object.entries(a?.entries||{}))c?.connectionId&&Number.isFinite(c?.lastUsedAt)&&t.entries.set(b,c);x()}catch{}}}function z(){t.persistTimer||(t.persistTimer=setTimeout(async()=>{t.persistTimer=null,x();try{await n().mkdir(p().dirname(r),{recursive:!0});let a=`${r}.${process.pid}.tmp`;await n().writeFile(a,JSON.stringify({version:1,entries:Object.fromEntries(t.entries)}),{mode:384}),await n().rename(a,r)}catch{}},100),t.persistTimer.unref?.())}async function A({headers:a,body:b}){await y();let c=v(a,"session-id")||v(a,"thread-id")||u(b?.prompt_cache_key)||null;return c?e().createHmac("sha256",await w()).update(c).digest("hex"):null}async function B(a){await y(),x();let b=a?t.entries.get(a):null;return b?(b.lastUsedAt=Date.now(),t.entries.delete(a),t.entries.set(a,b),z(),{...b}):null}async function C(a,b){a&&b&&(await y(),t.entries.delete(a),t.entries.set(a,{connectionId:b,lastUsedAt:Date.now()}),x(),z())}async function D(a,b){if(!a)return;await y();let c=t.entries.get(a);c&&(!b||c.connectionId===b)&&(t.entries.delete(a),z())}async function E(){await y(),x();let a=new Map;for(let b of t.entries.values())a.set(b.connectionId,(a.get(b.connectionId)||0)+1);return a}var F=c(20491);global.__codexNativePoolState||(global.__codexNativePoolState={quotas:new Map,quotaRefreshes:new Map,activeTurns:new Map,activeSockets:new Map,leases:new Map,failures:new Map,httpFallbackCount:0});let G=global.__codexNativePoolState;function H(a,b,c){let d=Math.max(0,(a.get(b)||0)+c);0===d?a.delete(b):a.set(b,d)}function I(a,b){let c=j.DT.quotaThresholds;return null!==a&&Number.isFinite(a)?a<=0?"exhausted":b&&"healthy"!==b&&a<c.recoverRemainingPercent?a<c.criticalRemainingPercent?"critical":"draining":a<c.criticalRemainingPercent?"critical":a<c.drainRemainingPercent?"draining":"healthy":"unknown"}function J(a){let b;if(a?.vercelRelayUrl)return{capable:!1,reason:"relay-only proxy has no WebSocket transport"};if(!a?.connectionProxyEnabled||!a?.connectionProxyUrl)return{capable:!0,reason:null};try{b=new URL(a.connectionProxyUrl.includes("://")?a.connectionProxyUrl:`http://${a.connectionProxyUrl}`).protocol}catch{return{capable:!1,reason:"invalid proxy URL"}}return["http:","https:","socks:","socks4:","socks4a:","socks5:","socks5h:"].includes(b)?{capable:!0,reason:null}:{capable:!1,reason:`unsupported WebSocket proxy scheme ${b}`}}async function K(a){let b=G.quotas.get(a.id);if(b&&Date.now()-b.fetchedAt<j.DT.quotaTtlMs)return b;if(G.quotaRefreshes.has(a.id))return G.quotaRefreshes.get(a.id);let c=(async()=>{try{let c,d,e=await (0,h.checkAndRefreshToken)("codex",{...a,connectionId:a.id}),f=await (0,g.B)(e.providerSpecificData||{}),i=await (0,l.Tl)(e.accessToken,{connectionProxyEnabled:!0===f.connectionProxyEnabled,connectionProxyUrl:f.connectionProxyUrl||"",connectionNoProxy:f.connectionNoProxy||"",vercelRelayUrl:f.vercelRelayUrl||"",strictProxy:!0===f.strictProxy}),j=(c=[i?.quotas?.session,i?.quotas?.weekly].filter(Boolean).map(a=>Number(a.remaining)).filter(Number.isFinite)).length?Math.min(...c):null,k={remaining:j,status:I(j,b?.status),resetAt:(d=[i?.quotas?.session?.resetAt,i?.quotas?.weekly?.resetAt].filter(Boolean).map(a=>new Date(a).getTime()).filter(Number.isFinite)).length?new Date(Math.min(...d)).toISOString():null,fetchedAt:Date.now(),source:"poll"};return G.quotas.set(a.id,k),k}catch(a){return{...b||{remaining:null,status:"unknown",resetAt:null,fetchedAt:Date.now(),source:"poll-error"},error:a.message}}})().finally(()=>G.quotaRefreshes.delete(a.id));return G.quotaRefreshes.set(a.id,c),c}function L(a){return G.quotas.get(a)||{remaining:null,status:"unknown",resetAt:null,fetchedAt:null,source:null}}function M(a,b,c="event"){if(!a||!b)return null;let d=null,e=null;if("function"==typeof b?.get){let a=[b.get("x-codex-primary-used-percent"),b.get("x-codex-secondary-used-percent")].map(Number).filter(Number.isFinite);a.length&&(d=Math.max(0,100-Math.max(...a)));let c=[b.get("x-codex-primary-reset-at"),b.get("x-codex-secondary-reset-at")].map(Number).filter(Number.isFinite);c.length&&(e=new Date(1e3*Math.min(...c)).toISOString())}else{let a,c;a=b?.rate_limits||b?.rate_limit||b,d=(c=[a?.primary,a?.primary_window,a?.secondary,a?.secondary_window].filter(Boolean).map(a=>Number(a.remaining??100-Number(a.used_percent??a.percent_used))).filter(Number.isFinite)).length?Math.max(0,Math.min(...c)):null}if(null===d)return null;let f=G.quotas.get(a),g={remaining:d,status:I(d,f?.status),resetAt:e||f?.resetAt||null,fetchedAt:Date.now(),source:c};return G.quotas.set(a,g),g}async function N({model:a,transport:b,excludeConnectionIds:c,clientVersion:d}){let[e,h,i]=await Promise.all([(0,f.getProviderConnections)({provider:"codex",isActive:!0}),(0,F.SQ)({clientVersion:d}),E()]),j=a?new Set(h.eligibleConnectionIds?.[a]||[]):null,l=new Map,m=[];for(let d of e){let e=null;if(c.has(d.id)?e="excluded after failure":j&&!j.has(d.id)?e="different model metadata cohort":a&&(0,k.Bl)(d,a)?e="model temporarily locked":"exhausted"===L(d.id).status&&(e="quota exhausted"),!e&&"ws"===b){let a=J(await (0,g.B)(d.providerSpecificData||{}));a.capable||(e=a.reason)}e?l.set(d.id,e):m.push(d)}return{connections:e,catalog:h,counts:i,candidates:m,skipped:l}}async function O(a={}){let b=await (0,f.getProviderConnections)({provider:"codex",isActive:!0});return await Promise.all(b.map(K)),P(a)}async function P({model:a=null,clientVersion:b}={}){let{connections:c,catalog:d,counts:e,candidates:f,skipped:g}=await N({model:a,transport:"http",excludeConnectionIds:new Set,clientVersion:b}),h=new Set(f.map(a=>a.id));return c.map(b=>{let c=L(b.id);return{connectionId:b.id,name:b.displayName||b.name||b.email||b.id.slice(0,8),priority:b.priority??999,eligible:h.has(b.id),skippedReason:g.get(b.id)||null,affinityCount:e.get(b.id)||0,activeTurns:G.activeTurns.get(b.id)||0,activeSockets:G.activeSockets.get(b.id)||0,remaining:c.remaining,status:(0,k.Bl)(b,a)?"locked":c.status,resetAt:c.resetAt,quotaFetchedAt:c.fetchedAt,quotaSource:c.source,catalogEtag:d.upstreamEtags?.[b.id]||null}})}async function Q({headers:a,body:b,model:c,transport:d="http",clientVersion:e,excludeConnectionIds:f=new Set}){let g,{counts:h,candidates:i,skipped:j,catalog:k}=await N({model:c,transport:d,excludeConnectionIds:f,clientVersion:e});for(let a of i)K(a).catch(()=>{});let l=await A({headers:a,body:b,model:c}),m=l?await B(l):null,n=m?i.find(a=>a.id===m.connectionId):null;if(n){let a=L(n.id).status;if("critical"!==a&&"exhausted"!==a)return{affinityKey:l,preferredConnectionId:n.id,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}let o=(g={healthy:0,unknown:1,draining:2,critical:3,exhausted:4},[...i].sort((a,b)=>{let c=L(a.id),e=L(b.id),f=(g[c.status]??1)-(g[e.status]??1);if(0!==f)return f;let i=(e.remaining??-1)-(c.remaining??-1);if(0!==i)return i;let j="ws"===d?G.activeSockets:G.activeTurns,k=(j.get(a.id)||0)-(j.get(b.id)||0);if(0!==k)return k;let l=(h.get(a.id)||0)-(h.get(b.id)||0);if(0!==l)return l;let m=(a.priority??999)-(b.priority??999);return 0!==m?m:new Date(a.lastUsedAt||0)-new Date(b.lastUsedAt||0)})).find(a=>{let b=L(a.id).status;return"healthy"===b||"unknown"===b})||null;return l&&o&&await C(l,o.id),{affinityKey:l,preferredConnectionId:o?.id||null,eligibleConnectionIds:i.map(a=>a.id),skippedReasons:Object.fromEntries(j),catalog:k}}async function R({headers:a,body:b,model:c,transport:d="http",clientVersion:i,excludeConnectionIds:j=new Set}){let k=await Q({headers:a,body:b,model:c,transport:d,clientVersion:i,excludeConnectionIds:j});if(!k.preferredConnectionId)return{...k,lease:null};let l=(await (0,f.getProviderConnections)({provider:"codex",isActive:!0})).find(a=>a.id===k.preferredConnectionId);if(!l)return{...k,lease:null};let m=await (0,h.checkAndRefreshToken)("codex",{...l,connectionId:l.id}),n=await (0,g.B)(m.providerSpecificData||{});if("ws"===d&&!J(n).capable)return{...k,lease:null};let o={id:e().randomUUID(),connectionId:l.id,connection:l,credentials:m,proxy:n,affinityKey:k.affinityKey,model:c||null,transport:d,clientVersion:i??null,createdAt:Date.now(),semanticOutput:!1};return G.leases.set(o.id,o),H("ws"===d?G.activeSockets:G.activeTurns,l.id,1),{...k,lease:o}}function S(a){let b=G.leases.get(a);return b?Date.now()-b.createdAt>j.DT.leaseTtlMs?(X(a),null):b:null}async function T(a,b){let c=S(a);if(!c||!b)return!1;let d=await (0,F.SQ)({clientVersion:c.clientVersion});return!!(d.eligibleConnectionIds?.[b]||[]).includes(c.connectionId)&&(c.model=b,c.affinityKey&&await C(c.affinityKey,c.connectionId),!0)}function U(a){let b=S(a);b&&(b.semanticOutput=!0)}async function V(a,{headers:b}={}){let c=S(a);if(c){if(b){M(c.connectionId,b,"headers");let a=b.get?.("x-models-etag");a&&(0,F.Nx)(c.connectionId,a,c.clientVersion)}await (0,i.Pt)(c.connectionId,c.connection,c.model).catch(()=>{}),c.affinityKey&&await C(c.affinityKey,c.connectionId)}}async function W(a,{status:b=503,error:c="Codex Native failure"}={}){let d=S(a);d&&(G.failures.set(d.connectionId,{status:b,message:String(c).slice(0,160),at:Date.now()}),d.affinityKey&&await D(d.affinityKey,d.connectionId),([401,429].includes(Number(b))||Number(b)>=500)&&await (0,i.vk)(d.connectionId,Number(b),String(c),"codex",d.model).catch(()=>{}))}function X(a){let b=G.leases.get(a);b&&(G.leases.delete(a),H("ws"===b.transport?G.activeSockets:G.activeTurns,b.connectionId,-1))}function Y(){G.httpFallbackCount+=1}function Z(){return{activeLeases:G.leases.size,activeSockets:[...G.activeSockets.values()].reduce((a,b)=>a+b,0),activeTurns:[...G.activeTurns.values()].reduce((a,b)=>a+b,0),httpFallbackCount:G.httpFallbackCount}}async function $({model:a=null,clientVersion:b}={}){let c=await (0,f.getProviderConnections)({provider:"codex",isActive:!0}),d=await (0,F.SQ)({clientVersion:b}),e=a?new Set(d.eligibleConnectionIds?.[a]||[]):null;return Promise.all(c.map(async a=>{let b=null;e&&!e.has(a.id)?b="different model metadata cohort":"exhausted"===L(a.id).status&&(b="quota exhausted");let c=J(await (0,g.B)(a.providerSpecificData||{}));return b||c.capable||(b=c.reason),{connectionId:a.id,eligible:!b,reason:b}}))}},49263:(a,b,c)=>{c.d(b,{Bl:()=>l,Ib:()=>e,Qo:()=>h,S5:()=>n,hk:()=>f,kJ:()=>m,kt:()=>g});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,g=null){let h=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"",i=h.includes("invalid_encrypted_content")||h.includes("encrypted content")&&(h.includes("could not be verified")||h.includes("could not be decrypted or parsed"));if(400===a&&i)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.provider||f.provider===g)&&(f.pattern&&h&&f.pattern.test(h)||f.text&&h&&h.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 d.w6.has(a)?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function g(a,b){if(429===Number(a))return!0;let c=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";return d.t2.some(a=>a.backoff&&a.text&&c.includes(a.text))}function h(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 i="modelLock_",j=`${i}__all`;function k(a){return a?`${i}${a}`:j}function l(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[k(b)])||d(a[j])}function m(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(i)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function n(a,b){return{[k(a)]:new Date(Date.now()+b).toISOString()}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>C,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>A,Tx:()=>q,V1:()=>J,WN:()=>t,Ww:()=>K,YT:()=>n,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>B,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(92675),f=c(39141);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]};({...f.sr.qwen});let k={...f.sr.qoder};({...f.sr["qoderwork-cn"]});let l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr.kimchi},B={...f.sr["grok-cli"]},C={...f.sr["codebuddy-intl"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={...f.sr["frontier-for-all"]},K=3e5}};