@rabbi696/ezrouter 0.6.28 → 0.6.30

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 (925) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +11 -11
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +6 -6
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +18 -18
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  93. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  95. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  96. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  98. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js +1 -1
  99. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page_client-reference-manifest.js +1 -1
  101. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  104. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  105. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  106. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  107. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  108. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  109. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  110. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  111. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  112. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  114. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  115. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  116. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  117. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  118. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  119. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  120. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  121. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  148. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  174. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  176. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  178. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  191. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  193. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
  195. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  197. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  199. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  201. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/ha/resolve/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/ha/status/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
  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/caps/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/models-dev/import/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/models-dev/import/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/models-dev/refresh/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/models-dev/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/models-dev/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  305. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  307. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  365. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  367. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  368. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  369. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  370. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  371. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  372. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  373. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  374. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +1 -1
  375. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  376. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  377. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  378. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  379. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  380. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  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.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/settings/provider-order/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/settings/provider-order/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  411. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  431. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/usage/models/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/usage/models/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  454. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  455. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  460. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  461. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  462. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  464. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  465. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  466. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  467. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  468. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  469. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
  470. package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
  471. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
  472. package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
  473. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
  474. package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
  475. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
  476. package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
  477. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
  478. package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
  479. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
  480. package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
  481. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
  482. package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
  483. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  484. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  485. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
  486. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  487. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  488. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  489. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  490. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  491. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  492. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  493. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  494. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  495. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  496. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  497. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  499. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  500. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  501. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  502. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  503. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  504. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  505. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  506. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  507. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  508. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  509. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  510. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  511. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  512. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  513. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  514. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  515. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  517. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  518. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  519. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  520. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  521. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  522. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  523. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  524. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  525. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  526. package/app/.next-cli-build/server/app/api/wakeup/route.js +1 -1
  527. package/app/.next-cli-build/server/app/api/wakeup/route.js.nft.json +1 -1
  528. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  529. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  530. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  531. package/app/.next-cli-build/server/app/callback.html +1 -1
  532. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  533. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  534. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  536. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  541. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  542. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  543. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  546. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  548. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  550. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  551. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  552. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  554. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  555. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  556. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  557. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  558. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  560. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  561. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  562. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  564. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  565. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  566. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  567. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  568. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/convoy.rsc +5 -5
  571. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
  572. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  574. package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +5 -5
  576. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +3 -3
  578. package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  580. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  581. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  582. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  584. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  585. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  586. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  587. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  588. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/ha.html +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/ha.rsc +4 -4
  591. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha/__PAGE__.segment.rsc +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  594. package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  595. package/app/.next-cli-build/server/app/dashboard/ha.segments/_full.segment.rsc +4 -4
  596. package/app/.next-cli-build/server/app/dashboard/ha.segments/_head.segment.rsc +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/ha.segments/_index.segment.rsc +3 -3
  598. package/app/.next-cli-build/server/app/dashboard/ha.segments/_tree.segment.rsc +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +5 -5
  601. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
  602. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
  603. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  604. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  606. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +5 -5
  607. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +3 -3
  609. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +1 -1
  610. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
  611. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +5 -5
  612. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
  613. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  617. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +5 -5
  618. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
  619. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +3 -3
  620. package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +1 -1
  621. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +5 -5
  623. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
  624. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  627. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +5 -5
  628. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +3 -3
  630. package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +1 -1
  631. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  632. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  633. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  634. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  637. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  638. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  639. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  640. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  641. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  642. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  644. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  645. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  647. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  649. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  650. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  651. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  652. package/app/.next-cli-build/server/app/dashboard/models.html +1 -1
  653. package/app/.next-cli-build/server/app/dashboard/models.rsc +5 -5
  654. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models/__PAGE__.segment.rsc +2 -2
  655. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models.segment.rsc +1 -1
  656. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  657. package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  658. package/app/.next-cli-build/server/app/dashboard/models.segments/_full.segment.rsc +5 -5
  659. package/app/.next-cli-build/server/app/dashboard/models.segments/_head.segment.rsc +1 -1
  660. package/app/.next-cli-build/server/app/dashboard/models.segments/_index.segment.rsc +3 -3
  661. package/app/.next-cli-build/server/app/dashboard/models.segments/_tree.segment.rsc +1 -1
  662. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  663. package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  664. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  665. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  666. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  667. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  668. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  669. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  670. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  671. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  672. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  673. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  674. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  675. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  676. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  677. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  678. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  679. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  680. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  681. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  682. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  683. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  684. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  685. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  686. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  687. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  688. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  689. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  690. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  691. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  692. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  693. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  694. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  695. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  696. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  697. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  698. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  699. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  700. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  701. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  702. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  703. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  704. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  705. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  706. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  707. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  708. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  709. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  710. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  711. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  712. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  713. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  714. package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  715. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  716. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  717. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  718. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  719. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  720. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  721. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  722. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  723. package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
  724. package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +5 -5
  725. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
  726. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
  727. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  728. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  729. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +5 -5
  730. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
  731. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +3 -3
  732. package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +1 -1
  733. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  734. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  735. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  736. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  737. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  738. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  739. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  740. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  741. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  742. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  743. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  744. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  745. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  746. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  747. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  748. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  749. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  750. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  751. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  752. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  753. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  754. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
  755. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  756. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  757. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  758. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  759. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  760. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  761. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  762. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  763. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  764. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  765. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  766. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  767. package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  768. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  769. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  770. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  771. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  772. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  773. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  774. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  775. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  776. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  777. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  778. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  779. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  780. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  781. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  782. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  783. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  784. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  785. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  786. package/app/.next-cli-build/server/app/dashboard/wakeup.html +1 -1
  787. package/app/.next-cli-build/server/app/dashboard/wakeup.rsc +4 -4
  788. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup/__PAGE__.segment.rsc +1 -1
  789. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup.segment.rsc +1 -1
  790. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  791. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  792. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_full.segment.rsc +4 -4
  793. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_head.segment.rsc +1 -1
  794. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_index.segment.rsc +3 -3
  795. package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_tree.segment.rsc +1 -1
  796. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  797. package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  798. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  799. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  800. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  801. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  802. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  803. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  804. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  805. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  806. package/app/.next-cli-build/server/app/index.html +1 -1
  807. package/app/.next-cli-build/server/app/index.rsc +3 -3
  808. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  809. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  810. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  811. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  812. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  813. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  814. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  815. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  816. package/app/.next-cli-build/server/app/landing.html +1 -1
  817. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  818. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  819. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  820. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  821. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  822. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  823. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  824. package/app/.next-cli-build/server/app/login/page.js +1 -1
  825. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  826. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  827. package/app/.next-cli-build/server/app/login.html +1 -1
  828. package/app/.next-cli-build/server/app/login.rsc +4 -4
  829. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  830. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  831. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  832. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  833. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  834. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  835. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  836. package/app/.next-cli-build/server/app/page.js +1 -1
  837. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  838. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  839. package/app/.next-cli-build/server/app-paths-manifest.json +11 -11
  840. package/app/.next-cli-build/server/chunks/1253.js +1 -1
  841. package/app/.next-cli-build/server/chunks/1708.js +2 -2
  842. package/app/.next-cli-build/server/chunks/1757.js +1 -1
  843. package/app/.next-cli-build/server/chunks/1847.js +1 -1
  844. package/app/.next-cli-build/server/chunks/1923.js +1 -1
  845. package/app/.next-cli-build/server/chunks/2072.js +15 -15
  846. package/app/.next-cli-build/server/chunks/2269.js +1 -1
  847. package/app/.next-cli-build/server/chunks/2364.js +1 -1
  848. package/app/.next-cli-build/server/chunks/2452.js +1 -1
  849. package/app/.next-cli-build/server/chunks/2791.js +1 -1
  850. package/app/.next-cli-build/server/chunks/2898.js +1 -1
  851. package/app/.next-cli-build/server/chunks/2937.js +1 -1
  852. package/app/.next-cli-build/server/chunks/321.js +1 -1
  853. package/app/.next-cli-build/server/chunks/322.js +1 -0
  854. package/app/.next-cli-build/server/chunks/3378.js +1 -0
  855. package/app/.next-cli-build/server/chunks/3428.js +2 -2
  856. package/app/.next-cli-build/server/chunks/3576.js +1 -0
  857. package/app/.next-cli-build/server/chunks/369.js +24 -24
  858. package/app/.next-cli-build/server/chunks/37.js +1 -0
  859. package/app/.next-cli-build/server/chunks/412.js +1 -1
  860. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  861. package/app/.next-cli-build/server/chunks/4646.js +1 -1
  862. package/app/.next-cli-build/server/chunks/5172.js +1 -0
  863. package/app/.next-cli-build/server/chunks/5461.js +1 -1
  864. package/app/.next-cli-build/server/chunks/5578.js +1 -0
  865. package/app/.next-cli-build/server/chunks/5703.js +1 -1
  866. package/app/.next-cli-build/server/chunks/6038.js +1 -1
  867. package/app/.next-cli-build/server/chunks/615.js +1 -1
  868. package/app/.next-cli-build/server/chunks/6283.js +1 -1
  869. package/app/.next-cli-build/server/chunks/6328.js +1 -1
  870. package/app/.next-cli-build/server/chunks/6401.js +1 -1
  871. package/app/.next-cli-build/server/chunks/6723.js +2 -2
  872. package/app/.next-cli-build/server/chunks/7302.js +4 -4
  873. package/app/.next-cli-build/server/chunks/7699.js +2 -2
  874. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  875. package/app/.next-cli-build/server/chunks/7775.js +1 -1
  876. package/app/.next-cli-build/server/chunks/7811.js +1 -1
  877. package/app/.next-cli-build/server/chunks/8032.js +1 -0
  878. package/app/.next-cli-build/server/chunks/8129.js +1 -1
  879. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  880. package/app/.next-cli-build/server/chunks/8243.js +2 -2
  881. package/app/.next-cli-build/server/chunks/8391.js +1 -1
  882. package/app/.next-cli-build/server/chunks/8595.js +1 -0
  883. package/app/.next-cli-build/server/chunks/869.js +1 -0
  884. package/app/.next-cli-build/server/chunks/8881.js +1 -1
  885. package/app/.next-cli-build/server/chunks/9278.js +1 -0
  886. package/app/.next-cli-build/server/chunks/9303.js +1 -1
  887. package/app/.next-cli-build/server/chunks/9485.js +1 -1
  888. package/app/.next-cli-build/server/chunks/9726.js +1 -1
  889. package/app/.next-cli-build/server/chunks/9761.js +2 -2
  890. package/app/.next-cli-build/server/chunks/9898.js +2 -2
  891. package/app/.next-cli-build/server/chunks/9900.js +15 -15
  892. package/app/.next-cli-build/server/instrumentation.js +1 -1
  893. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  894. package/app/.next-cli-build/server/middleware.js +4 -4
  895. package/app/.next-cli-build/server/next-font-manifest.js +1 -1
  896. package/app/.next-cli-build/server/next-font-manifest.json +1 -1
  897. package/app/.next-cli-build/server/pages/404.html +1 -1
  898. package/app/.next-cli-build/server/pages/500.html +1 -1
  899. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  900. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  901. package/app/.next-cli-build/static/chunks/1321-9ec58cb59d5ecf7b.js +1 -0
  902. package/app/.next-cli-build/static/chunks/{5497-6d8e5deee33dd8c2.js → 5497-415a2bbd06f5cf8e.js} +1 -1
  903. package/app/.next-cli-build/static/chunks/8105-32d90d29662365cc.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-e5303063878dbfe5.js +93 -0
  905. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c571f1962363d85a.js +27 -0
  906. package/app/CHANGELOG.md +36 -0
  907. package/app/package.json +1 -1
  908. package/app/public/CHANGELOG.md +36 -0
  909. package/app/public/providers/nace.png +0 -0
  910. package/package.json +1 -1
  911. package/app/.next-cli-build/server/chunks/4370.js +0 -1
  912. package/app/.next-cli-build/server/chunks/447.js +0 -1
  913. package/app/.next-cli-build/server/chunks/4757.js +0 -1
  914. package/app/.next-cli-build/server/chunks/5749.js +0 -1
  915. package/app/.next-cli-build/server/chunks/5752.js +0 -1
  916. package/app/.next-cli-build/server/chunks/6587.js +0 -1
  917. package/app/.next-cli-build/server/chunks/6644.js +0 -1
  918. package/app/.next-cli-build/server/chunks/9296.js +0 -1
  919. package/app/.next-cli-build/server/chunks/9476.js +0 -1
  920. package/app/.next-cli-build/static/chunks/1321-4b31ce80e6ca3c02.js +0 -1
  921. package/app/.next-cli-build/static/chunks/8105-7223feec2e3f1a09.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-a0907899ceaf136b.js +0 -93
  923. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-f894f779f1b97e44.js +0 -27
  924. /package/app/.next-cli-build/static/{BBHPCyd1tb1Fl4SRcejMy → mFI4SG1R1XmhR9CNfZvPv}/_buildManifest.js +0 -0
  925. /package/app/.next-cli-build/static/{BBHPCyd1tb1Fl4SRcejMy → mFI4SG1R1XmhR9CNfZvPv}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";exports.id=8032,exports.ids=[5172,8032,8391],exports.modules={4905:(a,b,c)=>{c.d(b,{$U:()=>d,RK:()=>g,pb:()=>e,uB:()=>f});let d="data: [DONE]\n\n",e={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"},f={"Content-Type":"text/event-stream","Cache-Control":"no-cache","X-Accel-Buffering":"no"},g={"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive","Access-Control-Allow-Origin":"*"}},9001:(a,b,c)=>{c.d(b,{PY:()=>ak,exchangeTokens:()=>ag,extractCodexAccountInfo:()=>e.YR,fetchKiroProfileArn:()=>e.gR,kP:()=>af,sO:()=>ae,Su:()=>ai,Re:()=>ah}),c(30369);var d=c(13808),e=c(53129),f=c(92990);let g={config:f.OV,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d)=>{let e=new URLSearchParams({code:"true",client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c});return`${a.authorizeUrl}?${e.toString()}`},exchangeToken:async(a,b,c,d,e)=>{let f=b,g="";if(f.includes("#")){let a=f.split("#");f=a[0],g=a[1]||""}let h=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code:f,state:g||e,grant_type:"authorization_code",client_id:a.clientId,redirect_uri:c,code_verifier:d})});if(!h.ok){let a=await h.text();throw Error(`Token exchange failed: ${a}`)}return await h.json()},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope})},h={config:f.DI,flowType:"authorization_code_pkce",fixedPort:f.DI.fixedPort,callbackPath:f.DI.callbackPath,buildAuthUrl:(a,b,c,d)=>{let e=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,...a.extraParams,state:c}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${e}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b=(0,e.YR)(a.id_token),c={accessToken:a.access_token,refreshToken:a.refresh_token,idToken:a.id_token,expiresIn:a.expires_in,lastRefreshAt:new Date().toISOString()},d=b.email||(0,e.J_)(a.access_token);return d&&(c.email=d),(b.chatgptAccountId||b.chatgptPlanType)&&(c.providerSpecificData={chatgptAccountId:b.chatgptAccountId,chatgptPlanType:b.chatgptPlanType}),c}};var i=c(55511),j=c.n(i),k=c(73159);let l=null;async function m(){if(l)return l;try{let a=await fetch(k.oT.discoveryUrl,{headers:{Accept:"application/json"}});if(a.ok){let b=await a.json();return l={authorizeUrl:(0,e.js)(b.authorization_endpoint,"authorization_endpoint"),tokenUrl:(0,e.js)(b.token_endpoint,"token_endpoint")}}}catch{}return l={authorizeUrl:k.oT.authorizeUrl,tokenUrl:k.oT.tokenUrl}}let n={config:k.oT,flowType:"authorization_code_pkce",fixedPort:k.oT.loopbackPort,callbackPath:k.oT.callbackPath,pkceVerifierBytes:k.Ue,prepareConfig:async a=>{let b=await m();return{...a,authorizeUrl:b.authorizeUrl,tokenUrl:b.tokenUrl}},buildAuthUrl:(a,b,c,d)=>{let e=j().randomBytes(16).toString("hex"),f=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c,nonce:e,plan:"generic",referrer:"cli-proxy-api"}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${f}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`xAI token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b={accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope},c=(0,e.pG)(a.id_token);return c&&(b.email=c),a.id_token&&(b.providerSpecificData={idToken:a.id_token}),b}};var o=c(13247);let p={config:f.qp,flowType:"device_code",requestDeviceCode:async a=>{let b=new URLSearchParams({client_id:a.clientId,scope:a.scope});a.referrer&&b.set("referrer",a.referrer);let c=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":o.hY},body:b});if(!c.ok){let a=await c.text();throw Error(`Grok CLI device code request failed: ${a}`)}return await c.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":o.hY},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch("https://cli-chat-proxy.grok.com/v1/user",{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","User-Agent":o.hY,"x-xai-token-auth":"xai-grok-cli","x-grok-client-version":o.uG}});if(b.ok)return{user:await b.json()}}catch{}return{user:null}},mapTokens:(a,b)=>{let c=(0,e.pG)(a.id_token)||(0,e.J_)(a.access_token)||b?.user?.email||null,d=b?.user?.userId||b?.user?.principalId||null,f=[b?.user?.firstName,b?.user?.lastName].filter(Boolean).join(" ").trim()||null,g=a.expires_in?new Date(Date.now()+1e3*a.expires_in).toISOString():null;return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,expiresAt:g,scope:a.scope,email:c||void 0,displayName:f||void 0,providerSpecificData:{authMethod:"device_code",idToken:a.id_token||null,email:c||null,userId:d,hasGrokCodeAccess:b?.user?.hasGrokCodeAccess??null,subscriptionTier:b?.user?.subscriptionTier??null}}}},q="1.0.0",r={config:f.sA,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","x-api-version":q},body:new URLSearchParams({client_id:a.clientId})});if(!b.ok){let a=await b.text();throw Error(`Muse Code device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","x-api-version":q},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text()}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{let b,c;for(let c=0;(429===(b=await fetch("https://api.meta.ai/muse-code/key",{method:"POST",headers:{Accept:"application/json",Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","x-api-version":q},body:JSON.stringify({onboard:!0}),redirect:"error"})).status||b.status>=500)&&!(c>=2);c++)await new Promise(a=>setTimeout(a,5e3*(c+1)));let d=await b.text();if(!b.ok){let a=`${b.status} ${d.slice(0,200)}`;try{let b=JSON.parse(d);(b?.title||b?.detail)&&(a=[b.title,b.detail].filter(Boolean).join(": "),b.action_url&&(a+=` — ${b.action_url}`))}catch{}throw Error(`Muse Code key mint failed: ${a}`)}try{c=JSON.parse(d)}catch{throw Error("Muse Code key mint returned invalid JSON")}if(!1===c.is_subs_active)throw Error("Muse Code subscription is inactive — activate it on muse.ai first");let e=c.action_url||c.require_payment_action_url;if(!c.api_key&&(c.require_payment||e))throw Error(`Muse Code subscription required${e?`: ${e}`:""}`);if(!c.api_key)throw Error("Muse Code key response is missing api_key");return{key:c}},mapTokens:(a,b)=>{let c=b?.key||{};return{accessToken:c.api_key,refreshToken:null,expiresIn:null,email:c.user_email?.trim().toLowerCase()||void 0,providerSpecificData:{authMethod:"device_code",oauthAccessToken:a.access_token,subscriptionTier:c.subs_tier_name||null}}}},s={config:f.LT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b=await fetch(`${f.LT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`}}),c=b.ok?await b.json():{},d="";try{let b=await fetch("https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist",{method:"POST",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"},body:JSON.stringify({metadata:(0,f.cD)(),mode:1})});if(b.ok){let a=await b.json();d=a.cloudaicompanionProject?.id||a.cloudaicompanionProject||""}}catch(a){console.log("Failed to fetch project ID:",a)}return{userInfo:c,projectId:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},t={config:f.YT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c}),signal:AbortSignal.timeout(1e4)});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b={Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","User-Agent":f.YT.loadCodeAssistUserAgent,"x-request-source":"local"},c=(0,f.cD)(),d={};try{let b=await fetch(`${f.YT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`,"x-request-source":"local"},signal:AbortSignal.timeout(5e3)});b.ok&&(d=await b.json())}catch(a){console.log("Failed to fetch user info:",a)}let e="",g="legacy-tier";try{let a=await fetch(f.YT.loadCodeAssistEndpoint,{method:"POST",headers:b,body:JSON.stringify({metadata:c}),signal:AbortSignal.timeout(5e3)});if(a.ok){let b=await a.json();if(e=b.cloudaicompanionProject?.id||b.cloudaicompanionProject||"",Array.isArray(b.allowedTiers)){for(let a of b.allowedTiers)if(a.isDefault&&a.id){g=a.id.trim();break}}}}catch(a){console.log("Failed to load code assist:",a)}return e&&(async()=>{for(let a=0;a<10;a++){try{let a=await fetch(f.YT.onboardUserEndpoint,{method:"POST",headers:b,body:JSON.stringify({tierId:g,metadata:c})});if(a.ok){let b=await a.json();if(!0===b.done)break}}catch(a){break}await new Promise(a=>setTimeout(a,5e3))}})().catch(()=>{}),{userInfo:d,projectId:e}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,email:b?.userInfo?.email,projectId:b?.projectId})},u={config:f.ZL,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({loginMethod:a.extraParams.loginMethod,type:a.extraParams.type,redirect:b,state:c,client_id:a.clientId});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=Buffer.from(`${a.clientId}:${a.clientSecret}`).toString("base64"),e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",Authorization:`Basic ${d}`},body:new URLSearchParams({grant_type:"authorization_code",code:b,redirect_uri:c,client_id:a.clientId,client_secret:a.clientSecret})});if(!e.ok){let a=await e.text();throw Error(`Token exchange failed: ${a}`)}return await e.json()},postExchange:async a=>{let b=await fetch(`${f.ZL.userInfoUrl}?accessToken=${encodeURIComponent(a.access_token)}`,{headers:{Accept:"application/json"}});if(!b.ok){let a=await b.text();throw Error(`Failed to fetch user info: ${a}`)}let c=await b.json();if(!c.success)throw Error(`User info request failed: ${c.message||"Unknown error"}`);let d=c.data||{};if(!d.apiKey||""===d.apiKey.trim())throw Error("Empty API key returned from iFlow");if(!(d.email?.trim()||d.phone?.trim()))throw Error("Missing account email/phone in user info");return{userInfo:d}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,apiKey:b?.userInfo?.apiKey,email:b?.userInfo?.email||b?.userInfo?.phone,displayName:b?.userInfo?.nickname||b?.userInfo?.name})};function v(a){return{config:a,flowType:"device_code",requestDeviceCode:async a=>{let{QoderService:b}=await c.e(1531).then(c.bind(c,91531)),d=await new b(a).initiateDeviceFlow();return{device_code:d.nonce,user_code:d.nonce.slice(0,8).toUpperCase(),verification_uri:a.loginUrl,verification_uri_complete:d.verificationUriComplete,expires_in:300,interval:2,codeVerifier:d.codeVerifier,_qoderNonce:d.nonce,_qoderMachineId:d.machineId,_qoderMachineToken:d.machineToken}},pollToken:async(a,b,d,e)=>{let f,{QoderService:g}=await c.e(1531).then(c.bind(c,91531)),h=new g(a),i=b||e?._qoderNonce,j=d||e?._qoderVerifier;if(!i||!j)return{ok:!1,data:{error:"invalid_request",error_description:"Missing nonce/verifier"}};try{f=await h.pollDeviceToken({nonce:i,codeVerifier:j})}catch(a){return{ok:!1,data:{error:"poll_failed",error_description:a.message}}}if("pending"===f.status)return{ok:!1,data:{error:"authorization_pending"}};let k=await h.fetchUserInfo(f.accessToken),l=Math.max(86400,Math.floor((f.expireTime-Date.now())/1e3));return{ok:!0,data:{access_token:f.accessToken,refresh_token:f.refreshToken,expires_in:l,_qoderUserId:f.userId,_qoderMachineId:e?._qoderMachineId||"",_qoderMachineToken:e?._qoderMachineToken||e?._qoderMachineId||"",_qoderName:k.name,_qoderEmail:k.email,_qoderOrganizationId:k.organizationId}}},mapTokens:a=>{let b=(a._qoderEmail||"").trim(),c=(a._qoderName||"").trim()||null,d=a._qoderUserId||"",e=b||(d?`qoder-user-${d}`:null);return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,email:e,displayName:c,providerSpecificData:{authMethod:"device",userId:d,machineId:a._qoderMachineId||"",machineToken:a._qoderMachineToken||a._qoderMachineId||"",organizationId:a._qoderOrganizationId||""}}}}}let w=v(f.hF),x=v(f.t3),y={config:f.Nu,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scopes})});if(!b.ok){let a=await b.text();throw Error(`Device code request failed: ${a}`)}return await b.json()},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,device_code:b,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});try{c=await d.json()}catch(a){c={error:"invalid_response",error_description:await d.text()}}return{ok:d.ok,data:c}},postExchange:async a=>{let b=await fetch(f.Nu.copilotTokenUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":f.Nu.apiVersion,"User-Agent":f.Nu.userAgent}}),c=b.ok?await b.json():{},d=await fetch(f.Nu.userInfoUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":f.Nu.apiVersion,"User-Agent":f.Nu.userAgent}});return{copilotToken:c,userInfo:d.ok?await d.json():{}}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,name:b?.userInfo?.login||b?.userInfo?.name,displayName:b?.userInfo?.name||b?.userInfo?.login,email:b?.userInfo?.email||null,providerSpecificData:{copilotToken:b?.copilotToken?.token,copilotTokenExpiresAt:b?.copilotToken?.expires_at,githubUserId:b?.userInfo?.id,githubLogin:b?.userInfo?.login,githubName:b?.userInfo?.name,githubEmail:b?.userInfo?.email}})},z={config:f.Tx,flowType:"device_code",requestDeviceCode:async(a,b,c={})=>{let d=("string"==typeof c.region?c.region.trim():"")||"us-east-1";(0,f.S6)(d);let e=("string"==typeof c.startUrl?c.startUrl.trim():"")||a.startUrl,g="idc"===c.authMethod?"idc":"builder-id",h=`https://oidc.${d}.amazonaws.com/client/register`,i=`https://oidc.${d}.amazonaws.com/device_authorization`,j=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientName:a.clientName,clientType:a.clientType,scopes:a.scopes,grantTypes:a.grantTypes,issuerUrl:a.issuerUrl})});if(!j.ok){let a=await j.text();throw Error(`Client registration failed: ${a}`)}let k=await j.json(),l=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:k.clientId,clientSecret:k.clientSecret,startUrl:e})});if(!l.ok){let a=await l.text();throw Error(`Device authorization failed: ${a}`)}let m=await l.json();return{device_code:m.deviceCode,user_code:m.userCode,verification_uri:m.verificationUri,verification_uri_complete:m.verificationUriComplete,expires_in:m.expiresIn,interval:m.interval||5,_clientId:k.clientId,_clientSecret:k.clientSecret,_region:d,_authMethod:g,_startUrl:e}},pollToken:async(a,b,c,d)=>{let e,g=d?._region||"us-east-1";(0,f.S6)(g);let h=`https://oidc.${g}.amazonaws.com/token`,i=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({clientId:d?._clientId,clientSecret:d?._clientSecret,deviceCode:b,grantType:"urn:ietf:params:oauth:grant-type:device_code"})});try{e=await i.json()}catch(a){e={error:"invalid_response",error_description:await i.text()}}return e.accessToken?{ok:!0,data:{access_token:e.accessToken,refresh_token:e.refreshToken,expires_in:e.expiresIn,profile_arn:e?.profileArn||null,_clientId:d?._clientId,_clientSecret:d?._clientSecret,_region:d?._region,_authMethod:d?._authMethod,_startUrl:d?._startUrl}}:{ok:!1,data:{error:e.error||"authorization_pending",error_description:e.error_description||e.message}}},mapTokens:a=>{let b=(0,e.J_)(a.access_token);return{accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,email:b,providerSpecificData:{profileArn:a?.profile_arn||null,clientId:a._clientId,clientSecret:a._clientSecret,region:a._region||"us-east-1",authMethod:a._authMethod||"builder-id",startUrl:a._startUrl||f.Tx.startUrl}}}},A={config:f.WN,flowType:"import_token",mapTokens:a=>({accessToken:a.accessToken,refreshToken:null,expiresIn:a.expiresIn||86400,providerSpecificData:{machineId:a.machineId,authMethod:"imported"}})},B={config:f.aV,flowType:"device_code",requestDeviceCode:async a=>{let{buildKimiHeaders:b}=await Promise.resolve().then(c.bind(c,28730)),d=j().randomUUID(),e={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...b(d)},f=await fetch(a.deviceCodeUrl,{method:"POST",headers:e,body:new URLSearchParams({client_id:a.clientId})});if(!f.ok){let a=await f.text();throw Error(`Device code request failed: ${a}`)}let g=await f.json(),h=a.authorizeDeviceUrl||"https://www.kimi.com/code/authorize_device";return{device_code:g.device_code,user_code:g.user_code,verification_uri:g.verification_uri||h,verification_uri_complete:g.verification_uri_complete||`${h}?user_code=${g.user_code}`,expires_in:g.expires_in,interval:g.interval||5,_kimiDeviceId:d}},pollToken:async(a,b,d,e)=>{let f,{buildKimiHeaders:g}=await Promise.resolve().then(c.bind(c,28730)),h=e?._kimiDeviceId,i={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...g(h)},j=await fetch(a.tokenUrl,{method:"POST",headers:i,body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b})});try{f=await j.json()}catch{f={error:"invalid_response",error_description:"non-json token response"}}return"authorization_pending"===f.error||"slow_down"===f.error?{ok:!0,data:f}:(f.access_token&&h&&(f._kimiDeviceId=h),{ok:j.ok||!!f.access_token||!!f.error,data:f})},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,providerSpecificData:{authMethod:"device_code",...a._kimiDeviceId?{deviceId:a._kimiDeviceId}:{}}})},C={config:f.MZ,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.initiateUrl,{method:"POST",headers:{"Content-Type":"application/json"}});if(!b.ok){if(429===b.status)throw Error("Too many pending authorization requests. Please try again later.");let a=await b.text();throw Error(`Device auth initiation failed: ${a}`)}let c=await b.json();return{device_code:c.code,user_code:c.code,verification_uri:c.verificationUrl,verification_uri_complete:c.verificationUrl,expires_in:c.expiresIn||300,interval:3}},pollToken:async(a,b)=>{let c=await fetch(`${a.pollUrlBase}/${b}`);if(202===c.status)return{ok:!1,data:{error:"authorization_pending"}};if(403===c.status)return{ok:!1,data:{error:"access_denied",error_description:"Authorization denied by user"}};if(410===c.status)return{ok:!1,data:{error:"expired_token",error_description:"Authorization code expired"}};if(!c.ok)return{ok:!1,data:{error:"poll_failed",error_description:`Poll failed: ${c.status}`}};let d=await c.json();if("approved"===d.status&&d.token){let b=null;try{let c=await fetch(`${a.apiBaseUrl}/api/profile`,{headers:{Authorization:`Bearer ${d.token}`}});if(c.ok){let a=await c.json();b=a.organizations?.[0]?.id||null}}catch{}return{ok:!0,data:{access_token:d.token,_userEmail:d.userEmail,_orgId:b}}}return{ok:!1,data:{error:"authorization_pending"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:null,expiresIn:null,email:a._userEmail,...a._orgId?{providerSpecificData:{orgId:a._orgId}}:{}})},D={config:f.lB,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenExchangeUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Cline token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},E={config:f.w1,flowType:"authorization_code",buildAuthUrl:(a,b)=>{let c=new URLSearchParams({client_type:"extension",callback_url:b,redirect_uri:b});return`${a.authorizeUrl}?${c.toString()}`},exchangeToken:async(a,b,c)=>{try{let a=b,c=4-a.length%4;4!==c&&(a+="=".repeat(c));let d=Buffer.from(a,"base64").toString("utf-8"),e=d.lastIndexOf("}");if(-1===e)throw Error("No JSON found in decoded code");let f=JSON.parse(d.substring(0,e+1));return{access_token:f.accessToken,refresh_token:f.refreshToken,email:f.email,firstName:f.firstName,lastName:f.lastName,expires_at:f.expiresAt}}catch(f){let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({grant_type:"authorization_code",code:b,client_type:"extension",redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`ClinePass token exchange failed: ${a}`)}let e=await d.json();return{access_token:e.data?.accessToken||e.accessToken,refresh_token:e.data?.refreshToken||e.refreshToken,email:e.data?.userInfo?.email||"",expires_at:e.data?.expiresAt||e.expiresAt}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_at?Math.floor((new Date(a.expires_at).getTime()-Date.now())/1e3):3600,email:a.email,providerSpecificData:{firstName:a.firstName,lastName:a.lastName}})},F={config:f.f7,flowType:"authorization_code_pkce",buildAuthUrl:(a,b,c,d,e={})=>{let f=e.baseUrl||a.defaultBaseUrl,g=new URLSearchParams({client_id:e.clientId||"",redirect_uri:b,response_type:"code",state:c,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod});return`${f}${a.authorizeUrlPath}?${g.toString()}`},exchangeToken:async(a,b,c,d,e,f={})=>{let g=f.baseUrl||a.defaultBaseUrl,h=f.clientId||"",i=f.clientSecret||"",j=new URLSearchParams({client_id:h,grant_type:"authorization_code",code:b,redirect_uri:c,code_verifier:d});i&&j.set("client_secret",i);let k=await fetch(`${g}${a.tokenUrlPath}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:j.toString()});if(!k.ok)throw Error(`GitLab token exchange failed: ${await k.text()}`);let l=await k.json(),m=await fetch(`${g}${a.userInfoUrlPath}`,{headers:{Authorization:`Bearer ${l.access_token}`}}),n=m.ok?await m.json():{};return{...l,_user:n,_baseUrl:g,_clientId:h}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,providerSpecificData:{username:a._user?.username||"",email:a._user?.email||a._user?.public_email||"",name:a._user?.name||"",baseUrl:a._baseUrl,clientId:a._clientId,authKind:"oauth"}})},G={config:f.Nl,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(`${a.stateUrl}?platform=${a.platform}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-Product":"SaaS"},body:"{}"});if(!b.ok)throw Error(`CodeBuddy state request failed: ${await b.text()}`);let c=await b.json();if(0!==c.code||!c.data?.state||!c.data?.authUrl)throw Error(`CodeBuddy state error: ${c.msg||"missing state/authUrl"}`);return{device_code:c.data.state,verification_uri:c.data.authUrl,user_code:"",interval:a.pollInterval/1e3,_isCodeBuddy:!0}},pollToken:async(a,b)=>{let c=await fetch(`${a.tokenUrl}?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"copilot.tencent.com","X-No-Authorization":"true","X-No-User-Id":"true","X-No-Enterprise-Id":"true","X-No-Department-Info":"true","X-Product":"SaaS"}});if(!c.ok)return{ok:!1,data:{error:"request_failed"}};let d=await c.json();return 0===d.code&&d.data?.accessToken?{ok:!0,data:{access_token:d.data.accessToken,refresh_token:d.data.refreshToken||"",token_type:d.data.tokenType||"Bearer",expires_in:d.data.expiresIn}}:11217===d.code?{ok:!0,data:{error:"authorization_pending"}}:{ok:!1,data:{error:d.msg||"unknown_error"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in||86400,providerSpecificData:{}})},H={config:f.DV,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(`${a.stateUrl}?platform=${a.platform}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-No-Authorization":"true","X-No-User-Id":"true","X-Product":"SaaS"},body:"{}"});if(!b.ok)throw Error(`CodeBuddy Intl state request failed: ${await b.text()}`);let c=await b.json();if(0!==c.code||!c.data?.state||!c.data?.authUrl)throw Error(`CodeBuddy Intl state error: ${c.msg||"missing state/authUrl"}`);return{device_code:c.data.state,verification_uri:c.data.authUrl,user_code:"",interval:a.pollInterval/1e3,_isCodeBuddy:!0}},pollToken:async(a,b)=>{let c=await fetch(`${a.tokenUrl}?state=${encodeURIComponent(b)}`,{method:"GET",headers:{Accept:"application/json","User-Agent":a.userAgent,"X-Requested-With":"XMLHttpRequest","X-Domain":"www.codebuddy.ai","X-No-Authorization":"true","X-No-User-Id":"true","X-No-Enterprise-Id":"true","X-No-Department-Info":"true","X-Product":"SaaS"}});if(!c.ok)return{ok:!1,data:{error:"request_failed"}};let d=await c.json();return 0===d.code&&d.data?.accessToken?{ok:!0,data:{access_token:d.data.accessToken,refresh_token:d.data.refreshToken||"",token_type:d.data.tokenType||"Bearer",expires_in:d.data.expiresIn}}:11217===d.code?{ok:!0,data:{error:"authorization_pending"}}:{ok:!1,data:{error:d.msg||"unknown_error"}}},mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in||86400,providerSpecificData:{}})},I={config:f.Td,flowType:"browser_token",buildAuthUrl:(a,b,c)=>{let d=(a.webAppUrl||"https://app.kimchi.dev").replace(/\/+$/,""),e=new URLSearchParams({callback:b,state:c});return`${d}/cli-auth?${e.toString()}`},exchangeToken:async(a,b)=>{let c=String(b||"").trim();if(!c)throw Error("Missing Kimchi token");let d=a.validationUrl||"https://api.cast.ai/v1/llm/openai/supported-providers",e=await fetch(d,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});if(!e.ok)throw Error(`Kimchi token validation failed: ${e.status}`);let f={};if(a.userInfoUrl)try{let b=await fetch(a.userInfoUrl,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${c}`}});b.ok&&(f=await b.json())}catch{f={}}return{access_token:c,token_type:"Bearer",_kimchiUser:f}},mapTokens:a=>{let b=a._kimchiUser||{},c=b.id?String(b.id):"",d=b.username||"",e=b.email||(c?`kimchi-user-${c}`:null);return{accessToken:a.access_token,refreshToken:null,email:e,displayName:b.name||d||null,providerSpecificData:{authMethod:"browser_token",userId:c,username:d}}}};function J(a,b){for(let c of b){let b=a;for(let a of c){if(null==b||"object"!=typeof b){b=void 0;break}b=b[a]}if("string"==typeof b&&b.trim())return b.trim();if("number"==typeof b)return String(b)}return null}async function K(a){let b=JSON.stringify({loginTraceID:a,login_trace_id:a}),c="no successful response";for(let a of f.SK.loginGuidanceUrls)try{let d=await fetch(a,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","User-Agent":f.SK.userAgent},body:b});if(!d.ok){c=`${a} HTTP ${d.status}`;continue}let e=await d.json(),g=J(e,[["Result","LoginHost"],["Result","loginHost"],["Result","LoginURL"],["result","loginHost"],["data","Result","LoginHost"],["data","loginHost"],["LoginHost"],["loginHost"]]);if(g)return g;c=`${a} missing LoginHost`}catch(b){c=`${a} ${b.message}`}throw Error(`Trae GetLoginGuidance failed: ${c}`)}function L(){return[...f.SK.apiOrigins]}async function M(a,b){let c=JSON.stringify({ClientID:f.SK.clientId,RefreshToken:a,ClientSecret:f.SK.clientSecret,UserID:""}),d="no successful response";for(let e of L()){let g=`${e.replace(/\/$/,"")}${f.SK.exchangeTokenPath}`;try{let e,h={Accept:"application/json","Content-Type":"application/json","User-Agent":f.SK.userAgent};b&&(h["x-cloudide-token"]=b);let i=await fetch(g,{method:"POST",headers:h,body:c}),j=await i.text();if(!i.ok){d=`${g} HTTP ${i.status}`;continue}try{e=JSON.parse(j)}catch{d=`${g} invalid JSON`;continue}let k=J(e,[["Result","AccessToken"],["Result","accessToken"],["result","access_token"],["accessToken"]]);if(!k){let a=J(e,[["message"],["msg"],["error"],["Result","Message"]])||"missing AccessToken";d=`${g} ${a}`;continue}return{accessToken:k,refreshToken:J(e,[["Result","RefreshToken"],["result","refresh_token"],["refreshToken"]])||a,expiresIn:null,expiresAt:J(e,[["Result","ExpiresAt"],["Result","expiresAt"],["result","expires_at"],["expiresAt"]])}}catch(a){d=`${g} ${a.message}`}}throw Error(`Trae ExchangeToken failed: ${d}`)}async function N(a){for(let b of L()){let c=`${b.replace(/\/$/,"")}${f.SK.getUserInfoPath}`;try{let b=await fetch(c,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","User-Agent":f.SK.userAgent,"x-cloudide-token":a},body:JSON.stringify({})});if(!b.ok)continue;let d=await b.json();return{email:J(d,[["Result","NonPlainTextEmail"],["Result","Email"],["Result","email"],["email"],["data","email"]]),name:J(d,[["Result","ScreenName"],["Result","Nickname"],["Result","Name"],["result","nickname"],["nickname"],["name"]]),aiRegion:J(d,[["Result","AIRegion"],["Result","aiRegion"],["aiRegion"]]),region:J(d,[["Result","Region"],["Result","region"],["region"]]),tenant:J(d,[["Result","TenantID"],["Result","tenantId"],["tenantId"]]),userId:J(d,[["Result","UserID"],["Result","userId"],["userId"]])}}catch{}}return{email:null,name:null}}let O={config:f.SK,flowType:"authorization_code",callbackPath:f.SK.callbackPath,prepareConfig:async a=>{let b=j().randomUUID(),c=await K(b);return{...a,loginTraceID:b,loginHost:c}},buildAuthUrl:(a,b,c)=>{var d;let e,g,h={plugin_version:f.SK.defaultPluginVersion,machine_id:j().randomUUID(),device_id:f.SK.defaultDeviceId,x_device_brand:"unknown",x_device_type:"unknown",x_os_version:"unknown",x_env:"",x_app_version:f.SK.defaultAppVersion,x_app_type:f.SK.defaultAppType},i=a.loginTraceID||c;return d=a.loginHost,(e=new URL(d.startsWith("http")?d:`https://${d.replace(/^\/+/,"")}`)).pathname=f.SK.authorizationPath,(g=new URLSearchParams).set("login_version","1"),g.set("auth_from","trae"),g.set("login_channel","native_ide"),g.set("plugin_version",h.plugin_version),g.set("auth_type","local"),g.set("client_id",f.SK.clientId),g.set("redirect","0"),g.set("login_trace_id",i),g.set("auth_callback_url",b),g.set("machine_id",h.machine_id),g.set("device_id",h.device_id),g.set("x_device_id",h.device_id),g.set("x_machine_id",h.machine_id),g.set("x_device_brand",h.x_device_brand),g.set("x_device_type",h.x_device_type),g.set("x_os_version",h.x_os_version),g.set("x_env",h.x_env),g.set("x_app_version",h.x_app_version),g.set("x_app_type",h.x_app_type),e.search=g.toString(),e.toString()},exchangeToken:async(a,b)=>{let c=String(b||"").trim();if(!(/[?=&]/.test(c)&&(c.includes("refreshToken")||c.includes("refresh_token"))))return{accessToken:c.replace(/^(Cloud-IDE-JWT|Bearer)\s+/i,""),refreshToken:null,expiresIn:24*f.SK.tokenLifetimeDays*3600,_authMethod:"imported"};let{refreshToken:d,cloudideToken:e}=function(a){let b=String(a||"").trim(),c=b;b.includes("?")&&(c=b.slice(b.indexOf("?")+1)),b.startsWith("#")&&(c=b.slice(1));let d=Object.fromEntries(new URLSearchParams(c)),e=a=>{for(let b of a){let a=d[b];if(a&&String(a).trim())return String(a).trim()}return null},f=e(["error","error_code","errorCode"]);if(f){let a=e(["error_description","error_desc","message"]);throw Error(a?`Trae auth failed: ${f} (${a})`:`Trae auth failed: ${f}`)}let g=e(["refreshToken","refresh_token","RefreshToken"]);if(!g)throw Error("Trae callback missing refreshToken");let h=e(["loginHost","login_host","LoginHost","host","consoleHost"]);if(!h)throw Error("Trae callback missing loginHost");return{refreshToken:g,loginHost:h,cloudideToken:e(["x-cloudide-token","xCloudideToken","accessToken","access_token","token"])}}(c);return{...await M(d,e),_authMethod:"oauth"}},postExchange:async a=>({userInfo:await N(a.accessToken)}),mapTokens:(a,b)=>{let c,d=a.expiresIn||(a.expiresAt?Math.max(60,Number(a.expiresAt)-Math.floor(Date.now()/1e3)):24*f.SK.tokenLifetimeDays*3600),e=b?.userInfo||{},g=e.aiRegion||"US-East";return{accessToken:a.accessToken,refreshToken:a.refreshToken,expiresIn:d,email:e.email||void 0,displayName:e.name||void 0,providerSpecificData:{authMethod:a._authMethod||"oauth",aiRegion:g,region:e.region||g,tenant:e.tenant||"marscode",userId:e.userId||"",scope:"sg"===(c=(g||"").toLowerCase())||c.includes("singapore")?"marscode-sg":"cn"===c||c.includes("cn")||c.includes("china")?"marscode-cn":"marscode-us",webId:"",bizUserId:"",userUniqueId:"",appLanguage:"en",appVersion:f.SK.defaultAppVersion,userRegion:"SG"===g?"SG":"US",userIdentity:"Free"}}}};async function P(a,b,c){let d=`${a.replace(/\/$/,"")}${b}`,e=await fetch(d,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","User-Agent":f.eD.userAgent},body:JSON.stringify(c)}),g=await e.text();if(!e.ok)throw Error(`Windsurf ${b} HTTP ${e.status}: ${g.slice(0,200)}`);try{return JSON.parse(g)}catch{throw Error(`Windsurf ${b} invalid JSON`)}}async function Q(a){let b=await P(f.eD.registerApiBaseUrl,f.eD.registerPath,{firebase_id_token:a}),c=J(b,[["apiKey"],["api_key"]]);if(!c)throw Error("Windsurf RegisterUser missing apiKey");return{apiKey:c,apiServerUrl:J(b,[["apiServerUrl"],["api_server_url"]])||f.eD.defaultApiServerUrl,name:J(b,[["name"]])}}async function R(a,b){try{let c=await P(a,f.eD.oneTimeAuthPath,{firebaseIdToken:b}),d=J(c,[["authToken"],["auth_token"]]);if(!d)return{email:null,name:null};let e=await P(a,f.eD.currentUserPath,{authToken:d,includeSubscription:!0}),g=e.user||e;return{email:J(g,[["email"]]),name:J(g,[["name"]])}}catch{return{email:null,name:null}}}let S={config:f.eD,flowType:"authorization_code",callbackPath:f.eD.callbackPath,buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({response_type:"token",client_id:a.clientId,redirect_uri:b,state:c,prompt:"login",redirect_parameters_type:"query",workflow:"onboarding"});return`${a.authBaseUrl}${a.signInPath}?${d.toString()}`},exchangeToken:async(a,b,c,d,e)=>{let f=String(b||"").trim();if(!(f.includes("?")||f.includes("access_token="))){let b=f.replace(/^Bearer\s+/i,"");if(b.startsWith("sk-ws-"))return{accessToken:b,refreshToken:null,expiresIn:null,apiServerUrl:a.defaultApiServerUrl,firebaseIdToken:null,_authMethod:"imported"};let c=await Q(b);return{accessToken:c.apiKey,refreshToken:null,expiresIn:null,apiServerUrl:c.apiServerUrl,firebaseIdToken:b,_authMethod:"imported"}}let{firebaseIdToken:g}=function(a,b){let c=String(a||"").trim(),d=c;c.includes("?")&&(d=c.slice(c.indexOf("?")+1)),c.startsWith("#")&&(d=c.slice(1));let e=Object.fromEntries(new URLSearchParams(d)),f=a=>{for(let b of a){let a=e[b];if(a&&String(a).trim())return String(a).trim()}return null},g=f(["error"]);if(g){let a=f(["error_description"]);throw Error(a?`Windsurf auth failed: ${g} (${a})`:`Windsurf auth failed: ${g}`)}let h=f(["access_token","token"]);if(!h)throw Error("Windsurf callback missing access_token");let i=f(["state"]);if(b&&i&&i!==b)throw Error("Windsurf callback state mismatch");return{firebaseIdToken:h}}(f,e),h=await Q(g);return{accessToken:h.apiKey,refreshToken:null,expiresIn:null,apiServerUrl:h.apiServerUrl,firebaseIdToken:g,_authMethod:"oauth"}},postExchange:async a=>a.firebaseIdToken?{userInfo:await R(a.apiServerUrl,a.firebaseIdToken)}:{userInfo:{email:null,name:null}},mapTokens:(a,b)=>({accessToken:a.accessToken,refreshToken:null,expiresIn:null,email:b?.userInfo?.email||void 0,displayName:b?.userInfo?.name||void 0,providerSpecificData:{authMethod:a._authMethod||"oauth",apiServerUrl:a.apiServerUrl,firebaseIdToken:a.firebaseIdToken}})};var T=c(49934);let U={config:f.RY,flowType:"authorization_code",callbackPath:"/",prepareConfig:async(a,b)=>{let c=Number(b?.nativeAppPort)||f.RY.defaultNativeAppPort,d=(0,T.le)(a,{nativeAppPort:c});return{...a,...d}},buildAuthUrl:(a,b,c)=>a.authUrl,exchangeToken:async(a,b,c,d,e,f)=>{let{userId:g,encryptedAccessToken:h}=(0,T.Q_)(b);return{accessToken:(0,T.Wc)(h,d),userId:g,systemId:f?.systemId||a.systemId}},postExchange:async a=>{let b={accessToken:a.accessToken,providerSpecificData:{userId:a.userId,systemId:a.systemId}},c=null;try{c=await (0,T.qJ)(b,{config:f.RY})}catch{}let d=(0,T.k9)(b,c);return{userInfo:c,organizationId:d,email:c?.email||null,name:c?.name||c?.display_name||null}},mapTokens:(a,b)=>({accessToken:a.accessToken,refreshToken:null,expiresIn:null,email:b?.email||void 0,displayName:b?.name||void 0,providerSpecificData:{authMethod:"oauth",userId:a.userId,systemId:a.systemId,organizationId:b?.organizationId||""}})},V={config:f._0,flowType:"device_code",requestDeviceCode:async a=>{let b=j().randomBytes(32).toString("hex"),c=await fetch(a.cliInitUrl,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${b}`},body:JSON.stringify({provider:a.providerId||"zai"})});if(!c.ok){let a=await c.text();throw Error(`ZCode OAuth init failed: ${a}`)}let d=await c.json();if(!$(d.code)||!d.data)throw Error(d.msg||"ZCode OAuth init returned no data");let e=d.data;if(!e.flow_id||!e.authorize_url)throw Error("ZCode OAuth init response missing flow_id/authorize_url");return{device_code:e.flow_id,verification_uri:e.authorize_url,expires_in:function(a){let b=Number(a);if(!Number.isFinite(b)||b<=0)return null;let c=Math.floor(((b>1e12?b:1e3*b)-Date.now())/1e3);return c>0?c:null}(e.expires_at)??300,interval:e.poll_interval_sec||3,_zcodePollToken:b}},pollToken:async(a,b,c,d)=>{let e=d?._zcodePollToken;if(!e)return{ok:!0,data:{error:"access_denied",error_description:"Missing ZCode poll token — restart the login flow"}};let f=await fetch(`${a.cliPollUrl}/${encodeURIComponent(b)}`,{headers:{Authorization:`Bearer ${e}`}});if(!f.ok)return{ok:!0,data:{error:"access_denied",error_description:`ZCode poll failed (HTTP ${f.status})`}};let g=await f.json();if(!$(g.code))return{ok:!0,data:{error:"access_denied",error_description:g.msg||"ZCode poll failed"}};let h=g.data||{};if("pending"===h.status)return{ok:!0,data:{error:"authorization_pending"}};if("failed"===h.status)return{ok:!0,data:{error:"access_denied",error_description:"ZCode authorization failed or was cancelled"}};if("ready"!==h.status)return{ok:!0,data:{error:"authorization_pending",error_description:`Unknown status: ${h.status}`}};let i=h[a.providerId]||h[h.providerId]||{},j=i.access_token||i.accessToken||h.accessToken||h.access_token;if(!j)return{ok:!0,data:{error:"access_denied",error_description:"ZCode poll response missing access token"}};let{planApiKey:k,businessToken:l}=await W(a,j);return{ok:!0,data:{access_token:k,_zcodeJwtToken:h.token||"",_zaiBusinessToken:l,_zaiRefreshToken:i.refresh_token||i.refreshToken||h.refresh_token||h.refreshToken||"",_zcodeUser:h.user||{}}}},mapTokens:a=>{let b=a._zcodeUser||{},c=b.name||b.email||null;return{accessToken:a.access_token,refreshToken:null,email:b.email||null,...c?{displayName:c}:{},providerSpecificData:{authMethod:"cli_poll",username:b.name||void 0,userId:b.user_id||void 0,zcodeJwtToken:a._zcodeJwtToken||void 0,zaiBusinessToken:a._zaiBusinessToken||void 0,...a._zaiRefreshToken?{zaiRefreshToken:a._zaiRefreshToken}:{}}}}};async function W(a,b){let c=await X(a,b),d={Authorization:`Bearer ${c}`,"Content-Type":"application/json"},e=function(a){let b=(Array.isArray(a?.organizations)?a.organizations:[]).map(a=>({organization:a,projects:(a?.projects||[]).filter(a=>"2"!==String(a?.projectType??"").trim())})).filter(({organization:a,projects:b})=>!!(a?.organizationId&&b.length));if(!b.length)return null;let c=b.find(({organization:a})=>Z(a.organizationName))||b[0],d=c.projects.find(a=>Z(a?.projectName))||c.projects[0];return c.organization?.organizationId&&d?.projectId?{organizationId:c.organization.organizationId,projectId:d.projectId}:null}(await Y(`${a.apiBaseUrl}/api/biz/customer/getCustomerInfo`,{headers:d},"customer info"));if(!e)throw Error("Unable to resolve Z.ai organization and project for the coding plan");let f=`${a.apiBaseUrl}/api/biz/v1/organization/${e.organizationId}/projects/${e.projectId}/api_keys`,g=await Y(f,{headers:d},"api keys")||[],h=Array.isArray(g)?g.find(b=>b?.name===a.planApiKeyName):null;h||(h=await Y(f,{method:"POST",headers:d,body:JSON.stringify({name:a.planApiKeyName})},"api key create"));let i=h?.apiKey?.trim();if(!i)throw Error("Z.ai api_keys response is missing apiKey");let j=await Y(`${f}/copy/${encodeURIComponent(i)}`,{headers:d},"api key copy"),k=j?.secretKey?.trim();if(!k)throw Error("Z.ai api key copy response is missing secretKey");return{planApiKey:`${i}.${k}`,businessToken:c}}async function X(a,b){let c=await Y(a.businessLoginUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:b})},"Z.ai business login"),d=c?.access_token?.trim()||c?.accessToken?.trim();if(!d)throw Error("Z.ai business login response is missing access_token");return d}async function Y(a,b,c){let d,e=await fetch(a,b),f=await e.text();if(!e.ok)throw Error(`Z.ai ${c} request failed (HTTP ${e.status}): ${f.slice(0,200)}`);try{d=JSON.parse(f)}catch{throw Error(`Z.ai ${c} response is not valid JSON`)}if(!$(d?.code)||d?.success===!1)throw Error(d?.msg||`Z.ai ${c} returned business error ${d?.code}`);return d?.data??d??null}function Z(a){let b=String(a||"").trim().toLowerCase();return b.includes("默认机构")||b.includes("默认项目")||"default"===b}function $(a){return null==a||0===a||200===a||"0"===a||"200"===a}let _=(a,b)=>"string"==typeof a?.[b]&&a[b].trim()?a[b].trim():void 0,aa=(a,b)=>"number"==typeof a?.[b]&&Number.isFinite(a[b])&&a[b]>0?a[b]:void 0;async function ab(a,b){let c,d=await fetch(a,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(b).toString(),signal:AbortSignal.timeout(3e4)});try{c=JSON.parse(await d.text())}catch{}return c&&"object"==typeof c||(c={error:`invalid_json_response (HTTP ${d.status})`}),{status:d.status,body:c}}function ac(a){return{config:{clientId:"mcode-public",scope:"agent.default",audience:"agent-backend",deviceUrl:`${a.account}/oauth2/device/code`,tokenUrl:`${a.account}/oauth2/token`},flowType:"device_code",async requestDeviceCode(a,b){let c,d,e;if(!b)throw Error("MiniMax Code sign-in requires a PKCE code challenge");let{status:f,body:g}=await ab(a.deviceUrl,{client_id:a.clientId,scope:a.scope,audience:a.audience,code_challenge:b,code_challenge_method:"S256"}),{userCode:h,deviceCode:i,uri:j}={userCode:_(g,"user_code"),deviceCode:_(g,"device_code"),uri:_(g,"verification_uri_complete")??_(g,"verification_uri")??_(g,"verification_url")};if(!h||!j)throw Error(`MiniMax device code response unusable (HTTP ${f})`);let k=!i;return{device_code:i??h,user_code:h,verification_uri:j,expires_in:(c=aa(g,"expires_in"),d=aa(g,"expired_in"),(c||(d?d<1e12?d:Math.max(1,Math.ceil((d-Date.now())/1e3)):void 0))??Math.floor(600)),interval:(e=aa(g,"interval"))?k&&e>=60?Math.round(e/1e3):e:5,_minimaxPollByUser:k}},async pollToken(a,b,c,d){if(!b)return{ok:!0,data:{error:"authorization_pending"}};let e={grant_type:"urn:ietf:params:oauth:grant-type:device_code",...d?._minimaxPollByUser?{user_code:b}:{device_code:b},client_id:a.clientId,code_verifier:c},{body:f}=await ab(a.tokenUrl,e),g=_(f,"status");return"pending"===g?{ok:!0,data:{error:"authorization_pending"}}:"slow_down"===g?{ok:!0,data:{error:"slow_down"}}:"denied"===g||"access_denied"===g?{ok:!0,data:{error:"access_denied"}}:"expired"===g||"expired_token"===g?{ok:!0,data:{error:"expired_token"}}:g?{ok:!0,data:{error:`unexpected_status:${g}`}}:_(f,"error")?{ok:!0,data:{error:_(f,"error"),error_description:_(f,"error_description")}}:_(f,"access_token")?{ok:!0,data:f}:{ok:!0,data:{error:"no_access_token"}}},mapTokens(a){let b=aa(a,"expires_in");return{accessToken:_(a,"access_token"),refreshToken:_(a,"refresh_token")??"",expiresIn:b??3600}}}}let ad={claude:g,codex:h,xai:n,"grok-cli":p,muse:r,"gemini-cli":s,antigravity:t,iflow:u,qoder:w,"qoder-cn":x,github:y,kiro:z,cursor:A,kimi:B,kilocode:C,cline:D,clinepass:E,gitlab:F,"codebuddy-cn":G,"codebuddy-intl":H,kimchi:I,trae:O,windsurf:S,zed:U,glm:V,"minimax-code":ac({account:"https://account.minimax.cn"}),"minimax-code-global":ac({account:"https://account.minimax.io"}),nous:{config:f.Z2,flowType:"device_code",requestDeviceCode:async a=>{let b=await fetch(a.deviceCodeUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:a.clientId,scope:a.scope})});if(!b.ok){let a=await b.text();throw Error(`Nous device code request failed: ${a}`)}let c=await b.json();return{device_code:c.device_code,user_code:c.user_code,verification_uri:c.verification_uri,verification_uri_complete:c.verification_uri_complete,expires_in:c.expires_in,interval:c.interval}},pollToken:async(a,b)=>{let c,d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",client_id:a.clientId,device_code:b})});try{c=await d.json()}catch{c={error:"invalid_response",error_description:await d.text().catch(()=>"")}}let e=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||e,data:c}},postExchange:async a=>{try{let b=await fetch(f.Z2.agentKeyUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a.access_token}`},body:JSON.stringify({min_ttl_seconds:7200})});if(!b.ok){let a=await b.text().catch(()=>"");return console.warn(`[oauth] Nous agent key mint failed (${b.status}): ${a}`),{agentKey:null}}let c=await b.json();return{agentKey:c.api_key||null,agentKeyId:c.key_id||null,agentKeyExpiresAt:c.expires_at||null,agentKeyExpiresIn:c.expires_in||null}}catch(a){return console.warn(`[oauth] Nous agent key mint error: ${a?.message||a}`),{agentKey:null}}},mapTokens:(a,b)=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope,apiKey:b?.agentKey||a.access_token,providerSpecificData:{inferenceBaseUrl:f.Z2.inferenceBaseUrl,...b?.agentKeyId?{agentKeyId:b.agentKeyId}:{},...b?.agentKeyExpiresAt?{agentKeyExpiresAt:b.agentKeyExpiresAt}:{}}})}};function ae(a){let b=ad["kimi-coding"===a?"kimi":a];if(!b)throw Error(`Unknown provider: ${a}`);return b}async function af(a,b,c){let e=ae(a),f=e.prepareConfig?await e.prepareConfig(e.config,c||{}):e.config,{codeVerifier:g,codeChallenge:h,state:i}=(0,d.lz)(e.pkceVerifierBytes),j=f.loginTraceID||i,k=f.privateKeyVerifier||g;return{authUrl:"device_code"===e.flowType?null:"authorization_code_pkce"===e.flowType?e.buildAuthUrl(f,b,j,h,c||{}):e.buildAuthUrl(f,b,j,void 0,c||{}),state:j,codeVerifier:k,codeChallenge:h,redirectUri:b,flowType:e.flowType,fixedPort:e.fixedPort,callbackPath:e.callbackPath||"/callback",...f.systemId?{systemId:f.systemId}:{}}}async function ag(a,b,c,d,e,f){let g=ae(a),h=g.prepareConfig?await g.prepareConfig(g.config,f||{}):g.config,i=await g.exchangeToken(h,b,c,d,e,f||{}),j=null;return g.postExchange&&(j=await g.postExchange(i)),g.mapTokens(i,j)}async function ah(a,b,c){let d=ae(a);if("device_code"!==d.flowType)throw Error(`Provider ${a} does not support device code flow`);return await d.requestDeviceCode(d.config,b,c||{})}async function ai(a,b,c,d){let f=ae(a);if("device_code"!==f.flowType)throw Error(`Provider ${a} does not support device code flow`);let g=await f.pollToken(f.config,b,c,d);if(g.ok)if(g.data.access_token){let b=null;if(f.postExchange)try{b=await f.postExchange(g.data)}catch(b){return console.warn(`[oauth] ${a} postExchange failed:`,b?.message||b),{success:!1,error:"exchange_failed",errorDescription:b.message,fatal:!0}}let c=f.mapTokens(g.data,b);if("kiro"===a&&!c.providerSpecificData?.profileArn){let a=await (0,e.gR)(c.accessToken);a&&(c.providerSpecificData.profileArn=a)}return{success:!0,tokens:c}}else if("authorization_pending"===g.data.error||"slow_down"===g.data.error)return{success:!1,error:g.data.error,errorDescription:g.data.error_description||g.data.message,pending:"authorization_pending"===g.data.error};else return{success:!1,error:g.data.error||"no_access_token",errorDescription:g.data.error_description||g.data.message||"No access token received"};return{success:!1,error:g.data.error,errorDescription:g.data.error_description}}let aj=!1;async function ak(){if(!aj){aj=!0;try{let{getProviderConnections:a,updateProviderConnection:b}=await c.e(9718).then(c.bind(c,89718));for(let c of(await a()).filter(a=>{if("codex"!==a.provider||"oauth"!==a.authType||!a.idToken)return!1;let b=!!a.email,c=!!a.providerSpecificData?.chatgptAccountId;return!b||!c})){let a=(0,e.YR)(c.idToken);if(!a.email&&!a.chatgptAccountId)continue;let d={};!c.email&&a.email&&(d.email=a.email),(a.chatgptAccountId||a.chatgptPlanType)&&(d.providerSpecificData={...c.providerSpecificData||{},chatgptAccountId:a.chatgptAccountId,chatgptPlanType:a.chatgptPlanType}),Object.keys(d).length&&await b(c.id,d)}}catch(a){aj=!1,console.log("backfillCodexEmails failed:",a?.message||a)}}}},13808:(a,b,c)=>{c.d(b,{$N:()=>f,OK:()=>g,Zl:()=>h,lz:()=>i});var d=c(55511),e=c.n(d);function f(a=32){return e().randomBytes(a).toString("base64url")}function g(a){return e().createHash("sha256").update(a).digest("base64url")}function h(){return e().randomBytes(32).toString("base64url")}function i(a=32){let b=f(a),c=g(b);return{codeVerifier:b,codeChallenge:c,state:h()}}},39006:a=>{a.exports={rE:"0.6.30"}},47370:(a,b,c)=>{c.d(b,{BY:()=>d.BY,E5:()=>d.E5,QB:()=>d.QB,SL:()=>d.SL,Zx:()=>d.Zx,_V:()=>d._V,j$:()=>d.j$,ox:()=>d.ox,rg:()=>d.rg,sZ:()=>d.sZ,uw:()=>d.uw,wV:()=>d.wV});var d=c(11708)},49263:(a,b,c)=>{c.d(b,{Bl:()=>o,Ib:()=>f,Qo:()=>k,S5:()=>q,c8:()=>i,hk:()=>h,kJ:()=>p,kt:()=>j});var d=c(87252);function e(a){return a?("string"==typeof a?a:JSON.stringify(a)).toLowerCase():""}function f(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 g(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),e=f(b);return null!=e&&e>0?Math.min(Math.max(e,c),d.fh):c}function h(a,b,c=0,f=null){let i=e(b),j=i.includes("invalid_encrypted_content")||i.includes("encrypted content")&&(i.includes("could not be verified")||i.includes("could not be decrypted or parsed"));if(400===a&&j)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 e of d.t2)if(!e.provider||e.provider===f){if(e.pattern&&i&&e.pattern.test(i)){if(e.permanent||!1===e.fallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}if(e.text&&i&&i.includes(e.text)){if(e.permanent||!1===e.fallback||e.noFallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}if(e.status&&e.status===a){if(e.permanent||!1===e.fallback)return{shouldFallback:!1,cooldownMs:0};if(e.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:g(a,b),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:e.cooldownMs}}}return d.w6.has(a)?{shouldFallback:!1,cooldownMs:0,advanceChain:!0,requestScoped:!0}:{shouldFallback:!0,cooldownMs:d.wf}}function i(a,b,c=null){let f=e(b);for(let b of d.t2)if(b.modelLevel&&(!b.provider||b.provider===c)&&(b.text&&f.includes(b.text)||b.status&&b.status===a))return d.GZ;return null}function j(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 k(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 l="modelLock_",m=`${l}__all`;function n(a){return a?`${l}${a}`:m}function o(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[n(b)])||d(a[m])}function p(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(l)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function q(a,b){return{[n(a)]:new Date(Date.now()+b).toISOString()}}},53129:(a,b,c)=>{function d(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function e(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function f(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function g(a){let b=f(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function h(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function i(a){let b=f(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}c.d(b,{J_:()=>g,YR:()=>i,gR:()=>h,js:()=>d,pG:()=>e})},62320:(a,b,c)=>{c.d(b,{BW:()=>h,ET:()=>i,Ho:()=>k,ck:()=>d,kF:()=>l,rc:()=>j});let d={STREAM:"stream",JSON:"json"},e=new Map,f=(a,b,c)=>`${c}:${a}/${b}`,g=a=>!!a&&Date.now()-a<=6e5;function h(a,b){if(a?.stream===!0)return d.STREAM;if(a?.stream===!1)return d.JSON;let c=b?.accept||"";return c.includes("application/json")&&!c.includes("text/event-stream")?d.JSON:d.STREAM}function i(a,b,c,g,h){if(!a||!b||!h?.total||!(g>=20))return;let i=c===d.STREAM?h.total-h.ttft:h.total;if(!(i>=300))return;let k=g/(i/1e3),l=f(a,b,c),m=j(a,b,c);e.set(l,{...e.get(l),tps:null===m?k:m+.3*(k-m),updatedAt:Date.now()})}function j(a,b,c){let d=e.get(f(a,b,c));return g(d?.updatedAt)?d.tps:null}function k(a,b,c){let d=f(a,b,c);e.set(d,{...e.get(d),probedAt:Date.now()})}function l(a,b,c){return g(e.get(f(a,b,c))?.probedAt)}},73159:(a,b,c)=>{c.d(b,{Ue:()=>k,oT:()=>l});var d=c(39141);let e=d.xq.xai?.clientId,f="https://auth.x.ai",g="/oauth2/authorize",h="/oauth2/token",i="/.well-known/openid-configuration",j="/callback",k=96,l={clientId:e,issuer:f,authEndpointPath:g,tokenEndpointPath:h,discoveryPath:i,authorizeUrl:`${f}${g}`,tokenUrl:`${f}${h}`,discoveryUrl:`${f}${i}`,scope:"openid profile email offline_access grok-cli:access api:access",apiBaseUrl:"https://api.x.ai/v1",redirectUri:`http://127.0.0.1:56121${j}`,loopbackPort:56121,callbackPath:j,pkceVerifierBytes:96,refreshLeadSeconds:300,userAgent:"grok-cli/9router",codeChallengeMethod:"S256"}}};
@@ -1 +1 @@
1
- "use strict";exports.id=8129,exports.ids=[8129],exports.modules={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,Cw:()=>J,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(4767),c.e(5749),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(447)]).then(c.bind(c,9001));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(4767),c.e(1103)]).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}async function J(a,b){return a?i("nous",a,async()=>{try{let c=await fetch("https://portal.nousresearch.com/api/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","x-nous-refresh-token":a},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:"hermes-cli"}),signal:AbortSignal.timeout(3e4)});if(!c.ok){let a=await c.text().catch(()=>"");return b?.error?.("TOKEN_REFRESH","Failed to refresh Nous token",{status:c.status,error:a}),null}let d=await c.json();if(!d?.access_token)return b?.error?.("TOKEN_REFRESH","Nous token refresh returned no access_token"),null;let e=null,f=null,g=null;try{let a=await fetch("https://portal.nousresearch.com/api/oauth/agent-key",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${d.access_token}`},body:JSON.stringify({min_ttl_seconds:7200}),signal:AbortSignal.timeout(15e3)});if(a.ok){let c=await a.json();e=c.api_key||null,f=c.key_id||null,g=c.expires_at||null,b?.info?.("TOKEN_REFRESH","Nous agent key minted successfully")}else{let c=await a.text().catch(()=>"");b?.warn?.("TOKEN_REFRESH","Failed to mint Nous agent key, falling back to access_token",{error:c})}}catch(a){b?.warn?.("TOKEN_REFRESH",`Nous agent key mint error: ${a?.message||a}`)}return{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in,apiKey:e||d.access_token,agentKey:e,providerSpecificData:{...f?{agentKeyId:f}:{},...g?{agentKeyExpiresAt:g}:{}}}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Nous token: ${a.message}`),null}},b):null}},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(9095),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),nous:(a,b)=>(0,f.Cw)(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
+ "use strict";exports.id=8129,exports.ids=[8129],exports.modules={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,Cw:()=>J,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(4767),c.e(3378),c.e(7699),c.e(6588),c.e(6723),c.e(3759),c.e(2072),c.e(369),c.e(8032)]).then(c.bind(c,9001));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(4767),c.e(1103)]).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}async function J(a,b){return a?i("nous",a,async()=>{try{let c=await fetch("https://portal.nousresearch.com/api/oauth/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","x-nous-refresh-token":a},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:a,client_id:"hermes-cli"}),signal:AbortSignal.timeout(3e4)});if(!c.ok){let a=await c.text().catch(()=>"");return b?.error?.("TOKEN_REFRESH","Failed to refresh Nous token",{status:c.status,error:a}),null}let d=await c.json();if(!d?.access_token)return b?.error?.("TOKEN_REFRESH","Nous token refresh returned no access_token"),null;let e=null,f=null,g=null;try{let a=await fetch("https://portal.nousresearch.com/api/oauth/agent-key",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${d.access_token}`},body:JSON.stringify({min_ttl_seconds:7200}),signal:AbortSignal.timeout(15e3)});if(a.ok){let c=await a.json();e=c.api_key||null,f=c.key_id||null,g=c.expires_at||null,b?.info?.("TOKEN_REFRESH","Nous agent key minted successfully")}else{let c=await a.text().catch(()=>"");b?.warn?.("TOKEN_REFRESH","Failed to mint Nous agent key, falling back to access_token",{error:c})}}catch(a){b?.warn?.("TOKEN_REFRESH",`Nous agent key mint error: ${a?.message||a}`)}return{accessToken:d.access_token,refreshToken:d.refresh_token||a,expiresIn:d.expires_in,apiKey:e||d.access_token,agentKey:e,providerSpecificData:{...f?{agentKeyId:f}:{},...g?{agentKeyExpiresAt:g}:{}}}}catch(a){return b?.error?.("TOKEN_REFRESH",`Error refreshing Nous token: ${a.message}`),null}},b):null}},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(9095),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),nous:(a,b)=>(0,f.Cw)(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=8238,exports.ids=[8238,9718],exports.modules={21148:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(39141);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},30869:(a,b,c)=>{c.d(b,{UY:()=>h,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g,oc:()=>i});var d=c(39006),e=c(40615),f=c(81329);d.rE;let g={npmPackageName:"@rabbi696/ezrouter",installCmd:"npm i -g @rabbi696/ezrouter",installCmdLatest:"npm i -g @rabbi696/ezrouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20126},h={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},i={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,catchUpWindowMs:18e5,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,pingModel:"gpt-5.6-terra",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},38238:(a,b,c)=>{c.d(b,{P:()=>j});var d=c(89718),e=c(40615),f=c(21148),g=c(30869),h=c(54603);async function i(a=null){let b=null;try{let a=(await (0,d.PX)()).filter(a=>!1!==a.isActive);b=(a.find(a=>!a.access?.restricted)||a[0])?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-9r-cli-token"]=await (0,h.Xj)("9r-cli-auth"),a&&(c["x-9r-connection-id"]=a),c}async function j(a,b="llm",c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d=null){let h,k=d&&"object"==typeof d,l=k?d.customPrompt:d,m=k?d.connectionId:null,n=k&&"number"==typeof d.timeoutMs?d.timeoutMs:6e4,o=await i(m),p=Date.now();if("embedding"===b){let b,d="string"==typeof l&&l.trim()?l.trim():"test";try{b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:o,body:JSON.stringify({model:a,input:d}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Embedding request failed"}}let e=Date.now()-p,f=await b.text().catch(()=>""),g=null;try{g=f?JSON.parse(f):null}catch{}if(!b.ok){let a=g?.error?.message||g?.error||f;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0&&Array.isArray(g.data[0]?.embedding)?{ok:!0,latencyMs:e,error:null,status:b.status,preview:`Embedding [${g.data[0].embedding.length} dims]`}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b,d="string"==typeof l&&l.trim()?l.trim():"test";try{b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:o,body:JSON.stringify({model:a,prompt:d}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Image generation request failed"}}let e=Date.now()-p,f=await b.text().catch(()=>""),g=null;try{g=f?JSON.parse(f):null}catch{}if(!b.ok){let a=g?.error?.message||g?.msg||g?.message||g?.error||f;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0?{ok:!0,latencyMs:e,error:null,status:b.status,preview:"Image generated successfully"}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g,h=new FormData,i=(f=new DataView(e=new ArrayBuffer(44+(d=2*Math.max(1,Math.floor(4e3))))),(g=(a,b)=>{for(let c=0;c<b.length;c+=1)f.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),f.setUint32(4,36+d,!0),g(8,"WAVE"),g(12,"fmt "),f.setUint32(16,16,!0),f.setUint16(20,1,!0),f.setUint16(22,1,!0),f.setUint32(24,16e3,!0),f.setUint32(28,32e3,!0),f.setUint16(32,2,!0),f.setUint16(34,16,!0),g(36,"data"),f.setUint32(40,d,!0),new Blob([e],{type:"audio/wav"}));h.append("file",i,"test.wav"),h.append("model",a);try{b=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(o).filter(([a])=>"content-type"!==a.toLowerCase())),body:h,signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"STT request failed"}}let j=Date.now()-p,k=await b.text().catch(()=>""),l=null;try{l=k?JSON.parse(k):null}catch{}if(!b.ok){let a=l?.error?.message||l?.msg||l?.message||l?.error||k;return{ok:!1,latencyMs:j,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}let m="string"==typeof l?.text?l.text:"";return m.trim()?{ok:!0,latencyMs:j,error:null,status:b.status,preview:m}:{ok:!1,latencyMs:j,status:b.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b;try{b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:o,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:"HTTP 504: Request timed out (15s)"};return{ok:!1,latencyMs:a,status:500,error:b.message||"System One request failed"}}let d=Date.now()-p,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}if(!(f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0))return{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"};let g=JSON.stringify(f.answers);return{ok:!0,latencyMs:d,error:null,status:b.status,preview:g}}let q="string"==typeof l&&l.trim()?l.trim():"hi";try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:o,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:q}]}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Chat completion request failed"}}let r=Date.now()-p,s=await h.text().catch(()=>""),t=null;try{t=s?JSON.parse(s):null}catch{}let u=(0,e.rs)(String(a).split("/")[0]);if(t=(0,f.x)(t,u),!h.ok){let a=t?.error?.message||t?.msg||t?.message||t?.error||s;return{ok:!1,latencyMs:r,error:`HTTP ${h.status}${a?`: ${String(a).slice(0,500)}`:""}`,status:h.status}}let v=t?.status,w=t?.msg||t?.message;if(null!=v&&"200"!==String(v)&&"0"!==String(v)&&w)return{ok:!1,latencyMs:r,status:h.status,error:`Provider status ${v}: ${String(w).slice(0,240)}`};if(t?.error){let a=t?.error?.message||t?.error||"Provider returned an error";return{ok:!1,latencyMs:r,status:h.status,error:String(a).slice(0,240)}}let x=Array.isArray(t?.choices)&&t.choices.length>0,y=t?.choices?.[0]||{},z=y.message?.reasoning||y.message?.reasoning_content||y.message?.thinking||y.message?.thinking_content,A=!String(y.message?.content||"").trim();if(x&&"length"===y.finish_reason&&A&&z)return{ok:!0,latencyMs:r,error:null,status:h.status,note:"reasoning-only response (length-limited)"};if(!x)return{ok:!1,latencyMs:r,status:h.status,error:"Provider returned no completion choices for this model"};let B=t?.choices?.[0]?.message?.content||t?.choices?.[0]?.text||null;return{ok:!0,latencyMs:r,error:null,status:h.status,preview:B}}},39006:a=>{a.exports={rE:"0.6.28"}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,bs:()=>g,eh:()=>e,vq:()=>d.PROVIDER_MODELS,zc:()=>i});var d=c(29485);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b,g={vision:{icon:"visibility",label:"Vision",desc:"Supports image input",color:"text-blue-500"},reasoning:{icon:"neurology",label:"Reasoning",desc:"Supports reasoning / thinking",color:"text-amber-500"}},h={"gemini-live":{label:"Gemini Live (realtime WebSocket)",desc:"Streams audio over bidiGenerateContent and returns incremental transcription segments"}};function i(a){return"string"==typeof a&&Object.prototype.hasOwnProperty.call(h,a.trim())}Object.freeze(Object.keys(h))},89718:(a,b,c)=>{c.d(b,{$e:()=>d.$e,Br:()=>d.Br,CF:()=>d.CF,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,Ko:()=>d.Ko,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q6:()=>d.Q6,Q_:()=>d.Q_,Qu:()=>d.Qu,RT:()=>d.RT,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,__:()=>d.__,aQ:()=>d.aQ,bI:()=>d.bI,c:()=>d.c,dA:()=>d.dA,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,lk:()=>d.lk,mV:()=>d.mV,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,pO:()=>d.pO,qr:()=>d.qr,r4:()=>d.r4,sZ:()=>d.sZ,t$:()=>d.t$,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,xN:()=>d.xN,y7:()=>d.y7,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(11708)}};
1
+ "use strict";exports.id=8238,exports.ids=[869,8238,9718],exports.modules={21148:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(39141);function e(a,b){if(!b||!d.xq[b]?.quirks?.clineEnvelope)return a;let{success:c,data:e}=a||{};return!0!==c||!e||"object"!=typeof e||Array.isArray(e)?a:e}},30869:(a,b,c)=>{c.d(b,{UY:()=>i,eh:()=>f.eh,fg:()=>e.fg,h0:()=>g,hO:()=>h,oc:()=>j});var d=c(39006),e=c(40615),f=c(81329);d.rE;let g={npmPackageName:"@rabbi696/ezrouter",installCmd:"npm i -g @rabbi696/ezrouter",installCmdLatest:"npm i -g @rabbi696/ezrouter@latest --prefer-online",shutdownCountdownSec:3,exitDelayMs:500,statusPort:20129,statusPollIntervalMs:1e3,statusLogTailLines:8,installRetries:3,installRetryDelayMs:5e3,lingerAfterDoneMs:3e4,waitForExitMinMs:5e3,waitForExitMaxMs:2e4,waitForExitCheckMs:500,appPort:20126};function h(){let a=Number.parseInt(process.env.PORT,10);return Number.isFinite(a)&&a>0?a:g.appPort}let i={maxLines:200,pollIntervalMs:1e3,streamTimeoutMs:5e3},j={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,catchUpWindowMs:18e5,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,pingModel:"gpt-5.6-terra",pingText:"hi",pingInstructions:"Reply with OK.",pingReasoningEffort:"none"}}}},38238:(a,b,c)=>{c.d(b,{P:()=>j});var d=c(89718),e=c(40615),f=c(21148),g=c(30869),h=c(54603);async function i(a=null){let b=null;try{let a=(await (0,d.PX)()).filter(a=>!1!==a.isActive);b=(a.find(a=>!a.access?.restricted)||a[0])?.key||null}catch{}let c={"Content-Type":"application/json"};return b&&(c.Authorization=`Bearer ${b}`),c["x-9r-cli-token"]=await (0,h.Xj)("9r-cli-auth"),a&&(c["x-9r-connection-id"]=a),c}async function j(a,b="llm",c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`,d=null){let h,k=d&&"object"==typeof d,l=k?d.customPrompt:d,m=k?d.connectionId:null,n=k&&"number"==typeof d.timeoutMs?d.timeoutMs:6e4,o=await i(m),p=Date.now();if("embedding"===b){let b,d="string"==typeof l&&l.trim()?l.trim():"test";try{b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:o,body:JSON.stringify({model:a,input:d}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Embedding request failed"}}let e=Date.now()-p,f=await b.text().catch(()=>""),g=null;try{g=f?JSON.parse(f):null}catch{}if(!b.ok){let a=g?.error?.message||g?.error||f;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0&&Array.isArray(g.data[0]?.embedding)?{ok:!0,latencyMs:e,error:null,status:b.status,preview:`Embedding [${g.data[0].embedding.length} dims]`}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b,d="string"==typeof l&&l.trim()?l.trim():"test";try{b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:o,body:JSON.stringify({model:a,prompt:d}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Image generation request failed"}}let e=Date.now()-p,f=await b.text().catch(()=>""),g=null;try{g=f?JSON.parse(f):null}catch{}if(!b.ok){let a=g?.error?.message||g?.msg||g?.message||g?.error||f;return{ok:!1,latencyMs:e,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}return Array.isArray(g?.data)&&g.data.length>0?{ok:!0,latencyMs:e,error:null,status:b.status,preview:"Image generated successfully"}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,d,e,f,g,h=new FormData,i=(f=new DataView(e=new ArrayBuffer(44+(d=2*Math.max(1,Math.floor(4e3))))),(g=(a,b)=>{for(let c=0;c<b.length;c+=1)f.setUint8(a+c,b.charCodeAt(c))})(0,"RIFF"),f.setUint32(4,36+d,!0),g(8,"WAVE"),g(12,"fmt "),f.setUint32(16,16,!0),f.setUint16(20,1,!0),f.setUint16(22,1,!0),f.setUint32(24,16e3,!0),f.setUint32(28,32e3,!0),f.setUint16(32,2,!0),f.setUint16(34,16,!0),g(36,"data"),f.setUint32(40,d,!0),new Blob([e],{type:"audio/wav"}));h.append("file",i,"test.wav"),h.append("model",a);try{b=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(o).filter(([a])=>"content-type"!==a.toLowerCase())),body:h,signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"STT request failed"}}let j=Date.now()-p,k=await b.text().catch(()=>""),l=null;try{l=k?JSON.parse(k):null}catch{}if(!b.ok){let a=l?.error?.message||l?.msg||l?.message||l?.error||k;return{ok:!1,latencyMs:j,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}let m="string"==typeof l?.text?l.text:"";return m.trim()?{ok:!0,latencyMs:j,error:null,status:b.status,preview:m}:{ok:!1,latencyMs:j,status:b.status,error:"Provider returned no transcription text for this model"}}if("tts"===b){let b=await fetch(`${c}/api/v1/audio/speech`,{method:"POST",headers:{...o,"content-type":"application/json"},body:JSON.stringify({model:a,input:"Test.",response_format:"mp3"}),signal:AbortSignal.timeout(3e4)}),d=Date.now()-p,e=new Uint8Array(await b.arrayBuffer().catch(()=>new ArrayBuffer(0))),f=e.length>512&&123!==e[0];if(!b.ok||!f){let a=new TextDecoder().decode(e.slice(0,240)),c=a;try{c=JSON.parse(a)?.error?.message||a}catch{}return{ok:!1,latencyMs:d,status:b.status,error:`HTTP ${b.status}${c?`: ${String(c).slice(0,240)}`:""}`}}return{ok:!0,latencyMs:d,error:null,status:b.status}}if("systemone"===b){let b;try{b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:o,body:JSON.stringify({model:a,state:"Customer: I was charged twice for my order this morning.",questions:{probe:{type:"noul",instructions:"Is the customer reporting a billing problem?"}}}),signal:AbortSignal.timeout(15e3)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:"HTTP 504: Request timed out (15s)"};return{ok:!1,latencyMs:a,status:500,error:b.message||"System One request failed"}}let d=Date.now()-p,e=await b.text().catch(()=>""),f=null;try{f=e?JSON.parse(e):null}catch{}if(!b.ok){let a=f?.error?.message||f?.msg||f?.message||f?.error||e;return{ok:!1,latencyMs:d,error:`HTTP ${b.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:b.status}}if(!(f?.answers&&"object"==typeof f.answers&&Object.keys(f.answers).length>0))return{ok:!1,latencyMs:d,status:b.status,error:"Provider returned no answers for this model"};let g=JSON.stringify(f.answers);return{ok:!0,latencyMs:d,error:null,status:b.status,preview:g}}let q="string"==typeof l&&l.trim()?l.trim():"hi";try{h=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:o,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:q}]}),signal:AbortSignal.timeout(n)})}catch(b){let a=Date.now()-p;if("TimeoutError"===b.name||"AbortError"===b.name)return{ok:!1,latencyMs:a,status:504,error:`HTTP 504: Request timed out (${Math.round(n/1e3)}s)`};return{ok:!1,latencyMs:a,status:500,error:b.message||"Chat completion request failed"}}let r=Date.now()-p,s=await h.text().catch(()=>""),t=null;try{t=s?JSON.parse(s):null}catch{}let u=(0,e.rs)(String(a).split("/")[0]);if(t=(0,f.x)(t,u),!h.ok){let a=t?.error?.message||t?.msg||t?.message||t?.error||s;return{ok:!1,latencyMs:r,error:`HTTP ${h.status}${a?`: ${String(a).slice(0,500)}`:""}`,status:h.status}}let v=t?.status,w=t?.msg||t?.message;if(null!=v&&"200"!==String(v)&&"0"!==String(v)&&w)return{ok:!1,latencyMs:r,status:h.status,error:`Provider status ${v}: ${String(w).slice(0,240)}`};if(t?.error){let a=t?.error?.message||t?.error||"Provider returned an error";return{ok:!1,latencyMs:r,status:h.status,error:String(a).slice(0,240)}}let x=Array.isArray(t?.choices)&&t.choices.length>0,y=t?.choices?.[0]||{},z=y.message?.reasoning||y.message?.reasoning_content||y.message?.thinking||y.message?.thinking_content,A=!String(y.message?.content||"").trim();if(x&&"length"===y.finish_reason&&A&&z)return{ok:!0,latencyMs:r,error:null,status:h.status,note:"reasoning-only response (length-limited)"};if(!x)return{ok:!1,latencyMs:r,status:h.status,error:"Provider returned no completion choices for this model"};let B=t?.choices?.[0]?.message?.content||t?.choices?.[0]?.text||null;return{ok:!0,latencyMs:r,error:null,status:h.status,preview:B}}},39006:a=>{a.exports={rE:"0.6.30"}},54603:(a,b,c)=>{c.d(b,{Xj:()=>q});var d=c(19713),e=c(73024),f=c.n(e),g=c(76760),h=c.n(g),i=c(77598),j=c.n(i),k=c(49120);let l=h().join(k.n,"machine-id"),m=h().join(k.n,"auth"),n=h().join(m,"cli-secret"),o=null,p=null;async function q(a=null){let b=a||process.env.MACHINE_ID_SALT||"endpoint-proxy-salt",c=function(){if(o)return o;try{if(o=f().readFileSync(l,"utf8").trim())return o}catch{}try{o=(0,d.machineIdSync)()}catch{o=j().randomUUID()}try{f().mkdirSync(k.n,{recursive:!0}),f().writeFileSync(l,o,{mode:384})}catch{}return o}(),e="9r-cli-auth"===b?function(){if(p)return p;try{if(p=f().readFileSync(n,"utf8").trim())return p}catch{}p=j().randomBytes(32).toString("hex");try{f().mkdirSync(m,{recursive:!0}),f().writeFileSync(n,p,{mode:384})}catch{}return p}():"";return j().createHash("sha256").update(c+b+e).digest("hex").substring(0,16)}},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,bs:()=>g,eh:()=>e,vq:()=>d.PROVIDER_MODELS,zc:()=>i});var d=c(29485);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b,g={vision:{icon:"visibility",label:"Vision",desc:"Supports image input",color:"text-blue-500"},reasoning:{icon:"neurology",label:"Reasoning",desc:"Supports reasoning / thinking",color:"text-amber-500"}},h={"gemini-live":{label:"Gemini Live (realtime WebSocket)",desc:"Streams audio over bidiGenerateContent and returns incremental transcription segments"}};function i(a){return"string"==typeof a&&Object.prototype.hasOwnProperty.call(h,a.trim())}Object.freeze(Object.keys(h))},89718:(a,b,c)=>{c.d(b,{$e:()=>d.$e,Br:()=>d.Br,CF:()=>d.CF,CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,Ko:()=>d.Ko,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,Mc:()=>d.Mc,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q6:()=>d.Q6,Q_:()=>d.Q_,Qu:()=>d.Qu,RT:()=>d.RT,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,__:()=>d.__,aQ:()=>d.aQ,bI:()=>d.bI,c:()=>d.c,dA:()=>d.dA,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,lk:()=>d.lk,mV:()=>d.mV,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,pO:()=>d.pO,qr:()=>d.qr,r4:()=>d.r4,sZ:()=>d.sZ,t$:()=>d.t$,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,xN:()=>d.xN,y7:()=>d.y7,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(11708)}};