@hilbras/omnihilbras 2.8.0 → 2.9.1

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 (1056) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +26 -25
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/react-loadable-manifest.json +1 -1
  5. package/app/.next-cli-build/routes-manifest.json +6 -0
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  76. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  86. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  88. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  89. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  90. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  91. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  114. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  140. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  148. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
  154. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/chat/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/chat/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/models/test-batch/route.js +2 -2
  226. package/app/.next-cli-build/server/app/api/models/test-batch/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  234. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  258. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  264. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/web-session/[id]/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/web-session/[id]/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  304. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  306. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  312. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  344. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  366. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/rate-limit/route.js +1 -0
  382. package/app/.next-cli-build/server/app/api/usage/rate-limit/route.js.nft.json +1 -0
  383. package/app/.next-cli-build/server/app/api/usage/rate-limit/route_client-reference-manifest.js +1 -0
  384. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -6
  391. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -2
  405. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -2
  437. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  447. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  449. package/app/.next-cli-build/server/app/callback.html +1 -1
  450. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  451. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  452. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  453. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
  454. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  455. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  456. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +5 -5
  457. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  458. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  459. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  461. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +5 -5
  462. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  463. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  464. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  465. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  466. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +5 -5
  467. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  468. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  471. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
  472. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  473. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  474. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  475. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  476. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +5 -5
  477. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  478. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  481. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +5 -5
  482. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  483. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  485. package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  486. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +5 -5
  487. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  488. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  491. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +5 -5
  492. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  493. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  495. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  496. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +5 -5
  497. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  498. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  501. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
  502. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  503. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  506. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +5 -5
  507. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  508. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  510. package/app/.next-cli-build/server/app/dashboard/quota.rsc +5 -5
  511. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +5 -5
  512. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +5 -5
  513. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  516. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  519. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  520. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  521. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  522. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  524. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +5 -5
  525. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  526. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  529. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +5 -5
  530. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  531. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  532. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  533. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  534. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  535. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  536. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  539. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
  540. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  541. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  542. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  543. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  544. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
  545. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  546. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  548. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  549. package/app/.next-cli-build/server/app/index.html +1 -1
  550. package/app/.next-cli-build/server/app/index.rsc +5 -5
  551. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  552. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  553. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  555. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  556. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  557. package/app/.next-cli-build/server/app/landing.html +1 -1
  558. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  559. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  560. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +5 -5
  562. package/app/.next-cli-build/server/app/login/page.js +1 -1
  563. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  564. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  565. package/app/.next-cli-build/server/app/login.html +1 -1
  566. package/app/.next-cli-build/server/app/login.rsc +5 -5
  567. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  568. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  569. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  570. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  571. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  572. package/app/.next-cli-build/server/app/page.js +1 -1
  573. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  574. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  575. package/app/.next-cli-build/server/app-paths-manifest.json +26 -25
  576. package/app/.next-cli-build/server/chunks/1004.js +1 -0
  577. package/app/.next-cli-build/server/chunks/1159.js +1 -1
  578. package/app/.next-cli-build/server/chunks/1204.js +19 -0
  579. package/app/.next-cli-build/server/chunks/1260.js +1 -1
  580. package/app/.next-cli-build/server/chunks/1640.js +1 -0
  581. package/app/.next-cli-build/server/chunks/1679.js +1 -1
  582. package/app/.next-cli-build/server/chunks/1757.js +1 -1
  583. package/app/.next-cli-build/server/chunks/199.js +1 -0
  584. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  585. package/app/.next-cli-build/server/chunks/238.js +1 -1
  586. package/app/.next-cli-build/server/chunks/24.js +1 -1
  587. package/app/.next-cli-build/server/chunks/241.js +1 -1
  588. package/app/.next-cli-build/server/chunks/2617.js +1 -0
  589. package/app/.next-cli-build/server/chunks/2881.js +1 -0
  590. package/app/.next-cli-build/server/chunks/3099.js +1 -0
  591. package/app/.next-cli-build/server/chunks/3104.js +19 -0
  592. package/app/.next-cli-build/server/chunks/3118.js +1 -1
  593. package/app/.next-cli-build/server/chunks/32.js +1 -0
  594. package/app/.next-cli-build/server/chunks/3276.js +3 -3
  595. package/app/.next-cli-build/server/chunks/{2750.js → 3278.js} +2 -2
  596. package/app/.next-cli-build/server/chunks/3593.js +2 -2
  597. package/app/.next-cli-build/server/chunks/3726.js +1 -1
  598. package/app/.next-cli-build/server/chunks/3817.js +1 -1
  599. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  600. package/app/.next-cli-build/server/chunks/3946.js +1 -0
  601. package/app/.next-cli-build/server/chunks/412.js +1 -1
  602. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  603. package/app/.next-cli-build/server/chunks/4199.js +1 -1
  604. package/app/.next-cli-build/server/chunks/{6155.js → 4217.js} +1 -1
  605. package/app/.next-cli-build/server/chunks/436.js +1 -1
  606. package/app/.next-cli-build/server/chunks/4739.js +2 -2
  607. package/app/.next-cli-build/server/chunks/4780.js +2 -2
  608. package/app/.next-cli-build/server/chunks/4785.js +6 -6
  609. package/app/.next-cli-build/server/chunks/507.js +2 -2
  610. package/app/.next-cli-build/server/chunks/5258.js +2 -2
  611. package/app/.next-cli-build/server/chunks/5537.js +1 -0
  612. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  613. package/app/.next-cli-build/server/chunks/5908.js +1 -0
  614. package/app/.next-cli-build/server/chunks/5961.js +4 -0
  615. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  616. package/app/.next-cli-build/server/chunks/6777.js +1 -1
  617. package/app/.next-cli-build/server/chunks/6844.js +1 -1
  618. package/app/.next-cli-build/server/chunks/698.js +2 -2
  619. package/app/.next-cli-build/server/chunks/7068.js +1 -1
  620. package/app/.next-cli-build/server/chunks/7073.js +1 -0
  621. package/app/.next-cli-build/server/chunks/7525.js +1 -1
  622. package/app/.next-cli-build/server/chunks/7557.js +1 -1
  623. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  624. package/app/.next-cli-build/server/chunks/7911.js +1 -1
  625. package/app/.next-cli-build/server/chunks/7955.js +1 -0
  626. package/app/.next-cli-build/server/chunks/7965.js +2 -2
  627. package/app/.next-cli-build/server/chunks/7971.js +1 -1
  628. package/app/.next-cli-build/server/chunks/8287.js +1 -0
  629. package/app/.next-cli-build/server/chunks/8401.js +1 -0
  630. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  631. package/app/.next-cli-build/server/chunks/8520.js +2 -2
  632. package/app/.next-cli-build/server/chunks/{3799.js → 8525.js} +1 -1
  633. package/app/.next-cli-build/server/chunks/8895.js +8 -8
  634. package/app/.next-cli-build/server/chunks/8910.js +2 -2
  635. package/app/.next-cli-build/server/chunks/8913.js +1 -1
  636. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  637. package/app/.next-cli-build/server/chunks/915.js +3 -3
  638. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  639. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  640. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  641. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  642. package/app/.next-cli-build/server/middleware.js +24 -16
  643. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  644. package/app/.next-cli-build/server/pages/404.html +1 -1
  645. package/app/.next-cli-build/server/pages/500.html +1 -1
  646. package/app/.next-cli-build/static/OAeFlmVsdSK27F9zlps1b/_buildManifest.js +1 -0
  647. package/app/.next-cli-build/static/chunks/{5497-813c9006563c7192.js → 5497-b25ea0870709c4a3.js} +5 -5
  648. package/app/.next-cli-build/static/chunks/{705-f07c546a169bc3d2.js → 705-b19ee360eb96fbf0.js} +1 -1
  649. package/app/.next-cli-build/static/chunks/7958-2225e7f9ffa50c55.js +5 -0
  650. package/app/.next-cli-build/static/chunks/{85-96776192c6a3a6ae.js → 85-f029a8034bfaa5f4.js} +1 -1
  651. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-fb9f4ab6f11d4816.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-5bc45ce6d914f906.js → page-c123f1f5a02afed4.js} +1 -1
  653. package/app/.next-cli-build/static/chunks/app/_global-error/page-bf2caba997335c3a.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-bf2caba997335c3a.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-bf2caba997335c3a.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-bf2caba997335c3a.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-bf2caba997335c3a.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-bf2caba997335c3a.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-bf2caba997335c3a.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-bf2caba997335c3a.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-bf2caba997335c3a.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-bf2caba997335c3a.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-bf2caba997335c3a.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-bf2caba997335c3a.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-bf2caba997335c3a.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-bf2caba997335c3a.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-bf2caba997335c3a.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-bf2caba997335c3a.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-bf2caba997335c3a.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-bf2caba997335c3a.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-bf2caba997335c3a.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-bf2caba997335c3a.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-bf2caba997335c3a.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-bf2caba997335c3a.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-bf2caba997335c3a.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-bf2caba997335c3a.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-bf2caba997335c3a.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-bf2caba997335c3a.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-bf2caba997335c3a.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-bf2caba997335c3a.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-bf2caba997335c3a.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-bf2caba997335c3a.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-bf2caba997335c3a.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-bf2caba997335c3a.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-bf2caba997335c3a.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-bf2caba997335c3a.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-bf2caba997335c3a.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-bf2caba997335c3a.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-bf2caba997335c3a.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-bf2caba997335c3a.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-bf2caba997335c3a.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-bf2caba997335c3a.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-bf2caba997335c3a.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/combos/route-bf2caba997335c3a.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-bf2caba997335c3a.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-bf2caba997335c3a.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-bf2caba997335c3a.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-bf2caba997335c3a.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-bf2caba997335c3a.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-bf2caba997335c3a.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/health/route-bf2caba997335c3a.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/init/route-bf2caba997335c3a.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-bf2caba997335c3a.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/keys/route-bf2caba997335c3a.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/locale/route-bf2caba997335c3a.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-bf2caba997335c3a.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-bf2caba997335c3a.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-bf2caba997335c3a.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-bf2caba997335c3a.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-bf2caba997335c3a.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-bf2caba997335c3a.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-bf2caba997335c3a.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-bf2caba997335c3a.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-bf2caba997335c3a.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-bf2caba997335c3a.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-bf2caba997335c3a.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-bf2caba997335c3a.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-bf2caba997335c3a.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/models/route-bf2caba997335c3a.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/models/test/route-bf2caba997335c3a.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-bf2caba997335c3a.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-bf2caba997335c3a.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-bf2caba997335c3a.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-bf2caba997335c3a.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-bf2caba997335c3a.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-bf2caba997335c3a.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-bf2caba997335c3a.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-bf2caba997335c3a.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-bf2caba997335c3a.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-bf2caba997335c3a.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-bf2caba997335c3a.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-bf2caba997335c3a.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-bf2caba997335c3a.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-bf2caba997335c3a.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-bf2caba997335c3a.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-bf2caba997335c3a.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-bf2caba997335c3a.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-bf2caba997335c3a.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-bf2caba997335c3a.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-bf2caba997335c3a.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-bf2caba997335c3a.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/pricing/route-bf2caba997335c3a.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-bf2caba997335c3a.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-bf2caba997335c3a.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-bf2caba997335c3a.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-bf2caba997335c3a.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-bf2caba997335c3a.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-bf2caba997335c3a.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-bf2caba997335c3a.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-bf2caba997335c3a.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-bf2caba997335c3a.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-bf2caba997335c3a.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/providers/route-bf2caba997335c3a.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-bf2caba997335c3a.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-bf2caba997335c3a.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-bf2caba997335c3a.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-bf2caba997335c3a.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-bf2caba997335c3a.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-bf2caba997335c3a.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-bf2caba997335c3a.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-bf2caba997335c3a.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-bf2caba997335c3a.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-bf2caba997335c3a.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-bf2caba997335c3a.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-bf2caba997335c3a.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-bf2caba997335c3a.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-bf2caba997335c3a.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-bf2caba997335c3a.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-bf2caba997335c3a.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-bf2caba997335c3a.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-bf2caba997335c3a.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-bf2caba997335c3a.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-bf2caba997335c3a.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-bf2caba997335c3a.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-bf2caba997335c3a.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/settings/route-bf2caba997335c3a.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-bf2caba997335c3a.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/tags/route-bf2caba997335c3a.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-bf2caba997335c3a.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-bf2caba997335c3a.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-bf2caba997335c3a.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-bf2caba997335c3a.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-bf2caba997335c3a.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-bf2caba997335c3a.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-bf2caba997335c3a.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-bf2caba997335c3a.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-bf2caba997335c3a.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-bf2caba997335c3a.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-bf2caba997335c3a.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-bf2caba997335c3a.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-bf2caba997335c3a.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-bf2caba997335c3a.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-bf2caba997335c3a.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-bf2caba997335c3a.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-bf2caba997335c3a.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-bf2caba997335c3a.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-bf2caba997335c3a.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-bf2caba997335c3a.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/usage/rate-limit/route-bf2caba997335c3a.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-bf2caba997335c3a.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-bf2caba997335c3a.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-bf2caba997335c3a.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-bf2caba997335c3a.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-bf2caba997335c3a.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-bf2caba997335c3a.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-bf2caba997335c3a.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-bf2caba997335c3a.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-bf2caba997335c3a.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-bf2caba997335c3a.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-bf2caba997335c3a.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-bf2caba997335c3a.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-bf2caba997335c3a.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-bf2caba997335c3a.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-bf2caba997335c3a.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-bf2caba997335c3a.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-bf2caba997335c3a.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-bf2caba997335c3a.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/v1/route-bf2caba997335c3a.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-bf2caba997335c3a.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-bf2caba997335c3a.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-bf2caba997335c3a.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-bf2caba997335c3a.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-bf2caba997335c3a.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-bf2caba997335c3a.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-bf2caba997335c3a.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-bf2caba997335c3a.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-bf2caba997335c3a.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/version/route-bf2caba997335c3a.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-bf2caba997335c3a.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/version/update/route-bf2caba997335c3a.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-bf2caba997335c3a.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/page-bf2caba997335c3a.js +1 -0
  833. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-bf2caba997335c3a.js +1 -0
  834. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-bf2caba997335c3a.js +1 -0
  835. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-bf2caba997335c3a.js +1 -0
  836. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-bf2caba997335c3a.js +1 -0
  837. package/app/.next-cli-build/static/chunks/{webpack-8547e34bc247639a.js → webpack-0c7ed5dbed92c324.js} +1 -1
  838. package/app/.next-cli-build/static/css/2aa77407ba4e4386.css +1 -0
  839. package/app/node_modules/sql.js/dist/sql-wasm.js +92 -93
  840. package/app/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
  841. package/app/node_modules/sql.js/package.json +14 -14
  842. package/app/package.json +6 -2
  843. package/app/src/lib/db/migrate.js +38 -3
  844. package/app/src/mitm/server.js +31 -31
  845. package/app/src/shared/services/usageRetention.js +72 -0
  846. package/app/src/shared/utils/apiKey.js +15 -7
  847. package/package.json +2 -3
  848. package/src/cli/menus/apiKeys.js +19 -60
  849. package/app/.next-cli-build/server/chunks/3558.js +0 -1
  850. package/app/.next-cli-build/server/chunks/3662.js +0 -1
  851. package/app/.next-cli-build/server/chunks/3770.js +0 -1
  852. package/app/.next-cli-build/server/chunks/4049.js +0 -1
  853. package/app/.next-cli-build/server/chunks/4055.js +0 -9
  854. package/app/.next-cli-build/server/chunks/4663.js +0 -1
  855. package/app/.next-cli-build/server/chunks/5182.js +0 -1
  856. package/app/.next-cli-build/server/chunks/5217.js +0 -9
  857. package/app/.next-cli-build/server/chunks/5245.js +0 -1
  858. package/app/.next-cli-build/server/chunks/5287.js +0 -1
  859. package/app/.next-cli-build/server/chunks/5919.js +0 -1
  860. package/app/.next-cli-build/server/chunks/595.js +0 -1
  861. package/app/.next-cli-build/server/chunks/7811.js +0 -1
  862. package/app/.next-cli-build/server/chunks/827.js +0 -1
  863. package/app/.next-cli-build/server/chunks/8416.js +0 -1
  864. package/app/.next-cli-build/server/chunks/9489.js +0 -3
  865. package/app/.next-cli-build/static/chunks/7958-b44b343c4ee9f7e0.js +0 -5
  866. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-f5fe96d6a397c739.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/_global-error/page-87381f52e86f81d4.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-87381f52e86f81d4.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-87381f52e86f81d4.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-87381f52e86f81d4.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-87381f52e86f81d4.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-87381f52e86f81d4.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-87381f52e86f81d4.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-87381f52e86f81d4.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-87381f52e86f81d4.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-87381f52e86f81d4.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-87381f52e86f81d4.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-87381f52e86f81d4.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-87381f52e86f81d4.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-87381f52e86f81d4.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-87381f52e86f81d4.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-87381f52e86f81d4.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-87381f52e86f81d4.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-87381f52e86f81d4.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-87381f52e86f81d4.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-87381f52e86f81d4.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-87381f52e86f81d4.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-87381f52e86f81d4.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-87381f52e86f81d4.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-87381f52e86f81d4.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-87381f52e86f81d4.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-87381f52e86f81d4.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-87381f52e86f81d4.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-87381f52e86f81d4.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-87381f52e86f81d4.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-87381f52e86f81d4.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-87381f52e86f81d4.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-87381f52e86f81d4.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-87381f52e86f81d4.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-87381f52e86f81d4.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-87381f52e86f81d4.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-87381f52e86f81d4.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-87381f52e86f81d4.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-87381f52e86f81d4.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-87381f52e86f81d4.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-87381f52e86f81d4.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-87381f52e86f81d4.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/combos/route-87381f52e86f81d4.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-87381f52e86f81d4.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-87381f52e86f81d4.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-87381f52e86f81d4.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-87381f52e86f81d4.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-87381f52e86f81d4.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-87381f52e86f81d4.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/health/route-87381f52e86f81d4.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/init/route-87381f52e86f81d4.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-87381f52e86f81d4.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/keys/route-87381f52e86f81d4.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/locale/route-87381f52e86f81d4.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-87381f52e86f81d4.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-87381f52e86f81d4.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-87381f52e86f81d4.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-87381f52e86f81d4.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-87381f52e86f81d4.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-87381f52e86f81d4.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-87381f52e86f81d4.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-87381f52e86f81d4.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-87381f52e86f81d4.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-87381f52e86f81d4.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-87381f52e86f81d4.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-87381f52e86f81d4.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-87381f52e86f81d4.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/api/models/route-87381f52e86f81d4.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/models/test/route-87381f52e86f81d4.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-87381f52e86f81d4.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-87381f52e86f81d4.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-87381f52e86f81d4.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-87381f52e86f81d4.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-87381f52e86f81d4.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-87381f52e86f81d4.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-87381f52e86f81d4.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-87381f52e86f81d4.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-87381f52e86f81d4.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-87381f52e86f81d4.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-87381f52e86f81d4.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-87381f52e86f81d4.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-87381f52e86f81d4.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-87381f52e86f81d4.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-87381f52e86f81d4.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-87381f52e86f81d4.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-87381f52e86f81d4.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-87381f52e86f81d4.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-87381f52e86f81d4.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-87381f52e86f81d4.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-87381f52e86f81d4.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/pricing/route-87381f52e86f81d4.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-87381f52e86f81d4.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-87381f52e86f81d4.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-87381f52e86f81d4.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-87381f52e86f81d4.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-87381f52e86f81d4.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-87381f52e86f81d4.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-87381f52e86f81d4.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-87381f52e86f81d4.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-87381f52e86f81d4.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-87381f52e86f81d4.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/providers/route-87381f52e86f81d4.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-87381f52e86f81d4.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-87381f52e86f81d4.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-87381f52e86f81d4.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-87381f52e86f81d4.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-87381f52e86f81d4.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-87381f52e86f81d4.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-87381f52e86f81d4.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-87381f52e86f81d4.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-87381f52e86f81d4.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-87381f52e86f81d4.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-87381f52e86f81d4.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-87381f52e86f81d4.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-87381f52e86f81d4.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-87381f52e86f81d4.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-87381f52e86f81d4.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-87381f52e86f81d4.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-87381f52e86f81d4.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-87381f52e86f81d4.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-87381f52e86f81d4.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-87381f52e86f81d4.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-87381f52e86f81d4.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-87381f52e86f81d4.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/settings/route-87381f52e86f81d4.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-87381f52e86f81d4.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/tags/route-87381f52e86f81d4.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-87381f52e86f81d4.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-87381f52e86f81d4.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-87381f52e86f81d4.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-87381f52e86f81d4.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-87381f52e86f81d4.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-87381f52e86f81d4.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-87381f52e86f81d4.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-87381f52e86f81d4.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-87381f52e86f81d4.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-87381f52e86f81d4.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-87381f52e86f81d4.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-87381f52e86f81d4.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-87381f52e86f81d4.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-87381f52e86f81d4.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-87381f52e86f81d4.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-87381f52e86f81d4.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-87381f52e86f81d4.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-87381f52e86f81d4.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-87381f52e86f81d4.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-87381f52e86f81d4.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-87381f52e86f81d4.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-87381f52e86f81d4.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-87381f52e86f81d4.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-87381f52e86f81d4.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-87381f52e86f81d4.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-87381f52e86f81d4.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-87381f52e86f81d4.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-87381f52e86f81d4.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-87381f52e86f81d4.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-87381f52e86f81d4.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-87381f52e86f81d4.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-87381f52e86f81d4.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-87381f52e86f81d4.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-87381f52e86f81d4.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-87381f52e86f81d4.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-87381f52e86f81d4.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-87381f52e86f81d4.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-87381f52e86f81d4.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/v1/route-87381f52e86f81d4.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-87381f52e86f81d4.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-87381f52e86f81d4.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-87381f52e86f81d4.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-87381f52e86f81d4.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-87381f52e86f81d4.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-87381f52e86f81d4.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-87381f52e86f81d4.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-87381f52e86f81d4.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-87381f52e86f81d4.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/version/route-87381f52e86f81d4.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-87381f52e86f81d4.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/version/update/route-87381f52e86f81d4.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-87381f52e86f81d4.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/page-87381f52e86f81d4.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-87381f52e86f81d4.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-87381f52e86f81d4.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-87381f52e86f81d4.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-87381f52e86f81d4.js +0 -1
  1050. package/app/.next-cli-build/static/css/61d1cdcdd0a69d1e.css +0 -1
  1051. package/app/.next-cli-build/static/j-vk5HBUAgUrjhq9WOvrc/_buildManifest.js +0 -1
  1052. package/app/cli/.build-home/.config/nextjs-nodejs/config.json +0 -7
  1053. package/app/cli/.build-home/.omnihilbras/db/data.sqlite +0 -0
  1054. package/app/cli/.build-home/.omnihilbras/jwt-secret +0 -1
  1055. package/app/cli/.build-home/.omnihilbras/machine-id +0 -1
  1056. /package/app/.next-cli-build/static/{j-vk5HBUAgUrjhq9WOvrc → OAeFlmVsdSK27F9zlps1b}/_ssgManifest.js +0 -0
@@ -0,0 +1,72 @@
1
+ // Periodic prune of the usage tables.
2
+ //
3
+ // usageHistory grows one row per request and nothing ever deleted one, so a
4
+ // long-running gateway accumulated rows without bound; the daily rollup
5
+ // (usageDaily) grew one row per day, forever. Both are pruned on a timer,
6
+ // with the window taken from the settings
7
+ // (src/lib/db/repos/settingsRepo.js → DEFAULT_SETTINGS.usageRetention).
8
+ //
9
+ // Fails open: a failed prune is logged and the next tick tries again — a
10
+ // retention problem must never keep the gateway from serving traffic.
11
+ import { getSettings } from "@/lib/localDb";
12
+ import { pruneUsageHistory } from "@/lib/usageDb.js";
13
+
14
+ const DEFAULT_INTERVAL_MS = 60 * 60 * 1000;
15
+ const DEFAULT_HISTORY_DAYS = 90;
16
+ const DEFAULT_DAILY_DAYS = 400;
17
+
18
+ let timer = null;
19
+
20
+ function positiveNumber(value, fallback) {
21
+ const n = Number(value);
22
+ return Number.isFinite(n) && n > 0 ? Math.floor(n) : fallback;
23
+ }
24
+
25
+ /** One prune pass. Returns the deleted row counts, or null when it failed. */
26
+ export async function runUsageRetentionOnce() {
27
+ try {
28
+ const settings = await getSettings();
29
+ const cfg = settings?.usageRetention || {};
30
+ if (cfg.enabled === false) return null;
31
+ const result = await pruneUsageHistory(
32
+ positiveNumber(cfg.historyDays, DEFAULT_HISTORY_DAYS),
33
+ positiveNumber(cfg.dailyDays, DEFAULT_DAILY_DAYS),
34
+ );
35
+ if (result && (result.history > 0 || result.daily > 0)) {
36
+ console.log(`[UsageRetention] pruned ${result.history} history rows, ${result.daily} daily rows`);
37
+ }
38
+ return result;
39
+ } catch (error) {
40
+ console.log("[UsageRetention] prune failed:", error?.message || error);
41
+ return null;
42
+ }
43
+ }
44
+
45
+ /** Start the prune timer (idempotent). */
46
+ export async function startUsageRetentionScheduler() {
47
+ if (timer) return timer;
48
+ let intervalMs = DEFAULT_INTERVAL_MS;
49
+ try {
50
+ const settings = await getSettings();
51
+ intervalMs = positiveNumber(settings?.usageRetention?.intervalMs, DEFAULT_INTERVAL_MS);
52
+ if (settings?.usageRetention?.enabled === false) return null;
53
+ } catch {
54
+ // Settings unreadable → keep the default interval; the prune itself
55
+ // re-reads the settings on every tick anyway.
56
+ }
57
+ timer = setInterval(() => {
58
+ runUsageRetentionOnce().catch(() => {});
59
+ }, intervalMs);
60
+ timer.unref?.();
61
+ // Catch up right away: a gateway that was left running for months has rows
62
+ // that are already past the window.
63
+ runUsageRetentionOnce().catch(() => {});
64
+ return timer;
65
+ }
66
+
67
+ /** Stop the prune timer. */
68
+ export function stopUsageRetentionScheduler() {
69
+ if (!timer) return;
70
+ clearInterval(timer);
71
+ timer = null;
72
+ }
@@ -3,15 +3,23 @@ import crypto from "crypto";
3
3
  const API_KEY_SECRET = process.env.API_KEY_SECRET || "endpoint-proxy-api-key-secret";
4
4
 
5
5
  /**
6
- * Generate 6-char random keyId
6
+ * Generate the key's random part.
7
+ *
8
+ * This used to be 6 characters from `Math.random()` — about 31 bits, drawn
9
+ * from a PRNG that is recoverable once a few outputs are known, and the
10
+ * machine id in front of it is public (every key listing returns it). That
11
+ * made the key guessable: 2.18e9 candidates, with nothing throttling the
12
+ * guesses.
13
+ *
14
+ * 24 characters of `crypto.randomBytes` is 144 bits — not guessable, and it
15
+ * keeps the `sk-{machineId}-{keyId}-{crc}` shape, so nothing that parses
16
+ * the key has to change.
7
17
  */
8
18
  function generateKeyId() {
9
- const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
10
- let result = "";
11
- for (let i = 0; i < 6; i++) {
12
- result += chars.charAt(Math.floor(Math.random() * chars.length));
13
- }
14
- return result;
19
+ // base64url, minus the dash: the key is dash-separated
20
+ // (sk-{machineId}-{keyId}-{crc}), so a dash inside the keyId would break
21
+ // the parse. 18 bytes → 24 characters → 144 bits.
22
+ return crypto.randomBytes(18).toString("base64url").replace(/-/g, "_");
15
23
  }
16
24
 
17
25
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilbras/omnihilbras",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "description": "OmniHilbras CLI - Start and manage OmniHilbras server",
5
5
  "bin": {
6
6
  "omnihilbras": "./cli.js"
@@ -18,13 +18,12 @@
18
18
  "build": "node scripts/build-cli.js",
19
19
  "build:tray-arm64": "node scripts/buildTrayArm64.js",
20
20
  "pack:cli": "npm run build && npm pack --pack-destination ..",
21
- "publish:cli": "npm run build && npm publish",
21
+ "publish:cli": "npm publish",
22
22
  "postinstall": "node hooks/postinstall.js",
23
23
  "prepublishOnly": "npm run build"
24
24
  },
25
25
  "dependencies": {
26
26
  "enquirer": "^2.4.1",
27
- "node-forge": "^1.3.3",
28
27
  "node-machine-id": "^1.1.12",
29
28
  "react": "19.2.1",
30
29
  "react-dom": "19.2.1",
@@ -1,7 +1,7 @@
1
1
  const api = require("../api/client");
2
2
  const { prompt, confirm, pause } = require("../utils/input");
3
3
  const { clearScreen, showStatus, showHeader } = require("../utils/display");
4
- const { maskKey, formatDate, getRelativeTime } = require("../utils/format");
4
+ const { formatDate, getRelativeTime } = require("../utils/format");
5
5
  const { showMenuWithBack } = require("../utils/menuHelper");
6
6
  const { copyToClipboard } = require("../utils/clipboard");
7
7
  const { getEndpoint } = require("../utils/endpoint");
@@ -17,22 +17,24 @@ function displayApiKeys(keys, port) {
17
17
  console.log("├─────────────────────────────────────────────────────────┤");
18
18
  // Note: This function is legacy, endpoint shown in menu header instead
19
19
  console.log("│ │");
20
-
20
+
21
21
  if (keys.length === 0) {
22
22
  console.log("│ No API keys found. │");
23
23
  } else {
24
24
  console.log(`│ Your API Keys (${keys.length}):${" ".repeat(42 - String(keys.length).length)}│`);
25
-
25
+
26
26
  keys.forEach((key, index) => {
27
27
  console.log("│ │");
28
28
  console.log(`│ ${index + 1}. ${key.name}${" ".repeat(52 - String(index + 1).length - key.name.length)}│`);
29
-
30
- const maskedKey = maskKey(key.key);
31
- console.log(`│ Key: ${maskedKey}${" ".repeat(47 - maskedKey.length)}│`);
32
-
29
+
30
+ // The server sends the display form of the key: the plaintext is shown
31
+ // once, when the key is created, and is not stored anywhere.
32
+ const shownKey = key.key || "—";
33
+ console.log(`│ Key: ${shownKey}${" ".repeat(47 - shownKey.length)}│`);
34
+
33
35
  const created = formatDate(key.createdAt);
34
36
  console.log(`│ Created: ${created}${" ".repeat(43 - created.length)}│`);
35
-
37
+
36
38
  if (key.lastUsedAt) {
37
39
  const lastUsed = getRelativeTime(key.lastUsedAt);
38
40
  console.log(`│ Last used: ${lastUsed}${" ".repeat(41 - lastUsed.length)}│`);
@@ -41,13 +43,11 @@ function displayApiKeys(keys, port) {
41
43
  }
42
44
  });
43
45
  }
44
-
46
+
45
47
  console.log("│ │");
46
48
  console.log("│ Actions: │");
47
49
  console.log("│ 1. Create New API Key │");
48
- console.log("│ 2. View Full Key (by number) │");
49
- console.log("│ 3. Copy Key to Clipboard (by number) │");
50
- console.log("│ 4. Delete Key (by number) │");
50
+ console.log("│ 2. Delete Key (by number) │");
51
51
  console.log("│ 0. ← Back to Main Menu │");
52
52
  console.log("└─────────────────────────────────────────────────────────┘");
53
53
  }
@@ -95,40 +95,6 @@ async function handleCreateKey() {
95
95
  return true;
96
96
  }
97
97
 
98
- /**
99
- * Handle viewing full API key
100
- * @param {Object} key - API key object
101
- */
102
- async function handleViewFullKey(key) {
103
- console.log("\n🔍 Full API Key");
104
- console.log("─".repeat(30));
105
- console.log(`Name: ${key.name}`);
106
- console.log(`Key: ${key.key}`);
107
- console.log(`ID: ${key.id}`);
108
- console.log(`Created: ${formatDate(key.createdAt)}`);
109
-
110
- if (key.lastUsedAt) {
111
- console.log(`Last used: ${getRelativeTime(key.lastUsedAt)}`);
112
- } else {
113
- console.log("Last used: Never");
114
- }
115
-
116
- await pause();
117
- }
118
-
119
- /**
120
- * Handle copying API key to clipboard
121
- * @param {Object} key - API key object
122
- */
123
- async function handleCopyKey(key) {
124
- if (copyToClipboard(key.key)) {
125
- showStatus(`Key "${key.name}" copied to clipboard!`, "success");
126
- } else {
127
- showStatus("Failed to copy to clipboard", "error");
128
- }
129
- await pause();
130
- }
131
-
132
98
  /**
133
99
  * Handle deleting API key
134
100
  * @param {Object} key - API key object
@@ -137,25 +103,25 @@ async function handleCopyKey(key) {
137
103
  async function handleDeleteKey(key) {
138
104
  console.log(`\n⚠️ Delete API Key: ${key.name}`);
139
105
  console.log("─".repeat(30));
140
- console.log(`Key: ${maskKey(key.key)}`);
106
+ console.log(`Key: ${key.key}`);
141
107
  console.log(`Created: ${formatDate(key.createdAt)}`);
142
-
108
+
143
109
  const confirmed = await confirm("\nAre you sure you want to delete this key?");
144
-
110
+
145
111
  if (!confirmed) {
146
112
  showStatus("Deletion cancelled", "info");
147
113
  await pause();
148
114
  return false;
149
115
  }
150
-
116
+
151
117
  const result = await api.deleteApiKey(key.id);
152
-
118
+
153
119
  if (!result.success) {
154
120
  showStatus(`Failed to delete key: ${result.error}`, "error");
155
121
  await pause();
156
122
  return false;
157
123
  }
158
-
124
+
159
125
  showStatus("API key deleted successfully", "success");
160
126
  await pause();
161
127
  return true;
@@ -174,13 +140,6 @@ async function showKeyActions(key, port, breadcrumb = []) {
174
140
  breadcrumb: [...breadcrumb, key.name],
175
141
  headerContent: `Name: ${key.name}\nKey: ${key.key}\nEndpoint: ${endpoint}`,
176
142
  items: [
177
- {
178
- label: "Copy to Clipboard",
179
- action: async () => {
180
- await handleCopyKey(key);
181
- return true;
182
- }
183
- },
184
143
  {
185
144
  label: "Delete Key",
186
145
  action: async () => {
@@ -215,7 +174,7 @@ async function showApiKeysMenu(port, breadcrumb = []) {
215
174
  }
216
175
  return { items: result.data.keys || [] };
217
176
  },
218
- formatItem: (key) => `${key.name} (${maskKey(key.key)})`,
177
+ formatItem: (key) => `${key.name} (${key.key})`,
219
178
  onSelect: async (key) => {
220
179
  await showKeyActions(key, port, breadcrumb);
221
180
  },
@@ -1 +0,0 @@
1
- "use strict";exports.id=3558,exports.ids=[3558,3662],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},62409:(a,b,c)=>{c.d(b,{v:()=>f});var d=c(92990);let e="https://prod.us-east-1.auth.desktop.kiro.dev";class f{async registerClient(a="us-east-1"){(0,d.S6)(a);let b=`https://oidc.${a}.amazonaws.com/client/register`,c=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientName:d.Tx.clientName,clientType:d.Tx.clientType,scopes:d.Tx.scopes,grantTypes:d.Tx.grantTypes,issuerUrl:d.Tx.issuerUrl})});if(!c.ok){let a=await c.text();throw Error(`Failed to register client: ${a}`)}let e=await c.json();return{clientId:e.clientId,clientSecret:e.clientSecret,clientSecretExpiresAt:e.clientSecretExpiresAt}}async startDeviceAuthorization(a,b,c,e="us-east-1"){(0,d.S6)(e);let f=`https://oidc.${e}.amazonaws.com/device_authorization`,g=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:a,clientSecret:b,startUrl:c})});if(!g.ok){let a=await g.text();throw Error(`Failed to start device authorization: ${a}`)}let h=await g.json();return{deviceCode:h.deviceCode,userCode:h.userCode,verificationUri:h.verificationUri,verificationUriComplete:h.verificationUriComplete,expiresIn:h.expiresIn,interval:h.interval||5}}async pollDeviceToken(a,b,c,e="us-east-1"){(0,d.S6)(e);let f=`https://oidc.${e}.amazonaws.com/token`,g=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:a,clientSecret:b,deviceCode:c,grantType:"urn:ietf:params:oauth:grant-type:device_code"})}),h=await g.json();return!g.ok||h.error?{success:!1,error:h.error,errorDescription:h.error_description,pending:"authorization_pending"===h.error||"slow_down"===h.error}:{success:!0,tokens:{accessToken:h.accessToken,refreshToken:h.refreshToken,expiresIn:h.expiresIn,tokenType:h.tokenType}}}buildSocialLoginUrl(a,b,c){return`${e}/login?idp=${"google"===a?"Google":"Github"}&redirect_uri=${encodeURIComponent("kiro://kiro.kiroAgent/authenticate-success")}&code_challenge=${b}&code_challenge_method=S256&state=${c}&prompt=select_account`}async exchangeSocialCode(a,b){let c=await fetch(`${e}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,code_verifier:b,redirect_uri:"kiro://kiro.kiroAgent/authenticate-success"})});if(!c.ok){let a=await c.text();throw Error(`Token exchange failed: ${a}`)}let d=await c.json();return{accessToken:d.accessToken,refreshToken:d.refreshToken,profileArn:d.profileArn,expiresIn:d.expiresIn||3600}}async refreshToken(a,b={}){let{authMethod:c,clientId:f,clientSecret:g,region:h}=b;if(f&&g){let b=h||"us-east-1";(0,d.S6)(b);let c=`https://oidc.${b}.amazonaws.com/token`,e=await fetch(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:f,clientSecret:g,refreshToken:a,grantType:"refresh_token"})});if(!e.ok){let a=await e.text();throw Error(`Token refresh failed: ${a}`)}let i=await e.json();return{accessToken:i.accessToken,refreshToken:i.refreshToken||a,profileArn:i.profileArn,expiresIn:i.expiresIn}}let i=await fetch(`${e}/refreshToken`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refreshToken:a})});if(!i.ok){let a=await i.text();throw Error(`Token refresh failed: ${a}`)}let j=await i.json();return{accessToken:j.accessToken,refreshToken:j.refreshToken||a,profileArn:j.profileArn,expiresIn:j.expiresIn||3600}}async validateImportToken(a){if(!a.startsWith("aorAAAAAG"))throw Error("Invalid token format. Token should start with aorAAAAAG...");try{let b=await this.refreshToken(a);return{accessToken:b.accessToken,refreshToken:b.refreshToken||a,profileArn:b.profileArn,expiresIn:b.expiresIn,authMethod:"imported"}}catch(a){throw Error(`Token validation failed: ${a.message}`)}}async listAvailableProfiles(a,b="us-east-1"){(0,d.S6)(b);let c=`https://codewhisperer.${b}.amazonaws.com`,e=await fetch(c,{method:"POST",headers:{"Content-Type":"application/x-amz-json-1.0","x-amz-target":"AmazonCodeWhispererService.ListAvailableProfiles",Authorization:`Bearer ${a}`,Accept:"application/json"},body:JSON.stringify({maxResults:10})});if(!e.ok){let a=await e.text();throw Error(`Failed to list profiles: ${a}`)}let f=await e.json(),g=Array.isArray(f?.profiles)?f.profiles:[],h=a=>a?.arn||a?.profileArn||null,i=g.find(a=>h(a)?.split(":")[3]===b)||g[0];return h(i)}async listAvailableApiKeyModels(a,b="us-east-1"){(0,d.S6)(b);let c=new URLSearchParams({origin:"AI_EDITOR"}),e=`https://q.${b}.amazonaws.com/ListAvailableModels?${c}`,f=await fetch(e,{method:"GET",headers:{Authorization:`Bearer ${a}`,TokenType:"API_KEY",Accept:"application/json","User-Agent":"AWS-SDK-JS/3.0.0 kiro-ide/1.0.0","X-Amz-User-Agent":"aws-sdk-js/3.0.0 kiro-ide/1.0.0"}});if(!f.ok){let a=await f.text();throw Error(`Failed to list API-key models: ${a}`)}let g=await f.json(),h=Array.isArray(g?.models)?g.models:[];if(0===h.length)throw Error("API key returned no available models");return h}async validateApiKey(a,b="us-east-1"){if(!a||"string"!=typeof a||!a.trim())throw Error("API key is required");let c=a.trim();try{await this.listAvailableApiKeyModels(c,b)}catch(a){throw Error(`API key validation failed: ${a.message}`)}return{accessToken:c,refreshToken:null,profileArn:null,region:b,authMethod:"api_key"}}async listAvailableModels(a,b){let c=await fetch("https://codewhisperer.us-east-1.amazonaws.com",{method:"POST",headers:{"Content-Type":"application/x-amz-json-1.0","x-amz-target":"AmazonCodeWhispererService.ListAvailableModels",Authorization:`Bearer ${a}`,Accept:"application/json"},body:JSON.stringify({origin:"AI_EDITOR",profileArn:b})});if(!c.ok){let a=await c.text();throw Error(`Failed to list models: ${a}`)}return((await c.json()).models||[]).map(a=>({id:a.modelId,name:a.modelName||a.modelId,description:a.description,rateMultiplier:a.rateMultiplier,rateUnit:a.rateUnit,maxInputTokens:a.tokenLimits?.maxInputTokens||0}))}extractEmailFromJWT(a){try{let b=a.split(".");if(3!==b.length)return null;let c=b[1];for(;c.length%4;)c+="=";let d=JSON.parse(atob(c.replace(/-/g,"+").replace(/_/g,"/")));return d.email||d.preferred_username||d.sub}catch{return null}}}},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>A,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>B,Tx:()=>q,WN:()=>t,Ww:()=>K,YT:()=>n,Z2:()=>J,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>C,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(74129),f=c(26070);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qoder},l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr["codebuddy-intl"]},B={...f.sr.kimchi},C={...f.sr["grok-cli"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={clientId:"hermes-cli",portalBaseUrl:"https://portal.nousresearch.com",deviceCodeUrl:"https://portal.nousresearch.com/api/oauth/device/code",tokenUrl:"https://portal.nousresearch.com/api/oauth/token",agentKeyUrl:"https://portal.nousresearch.com/api/oauth/agent-key",inferenceBaseUrl:"https://inference-api.nousresearch.com/v1",scope:"inference:invoke inference:mint_agent_key"},K=3e5}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=3662,exports.ids=[3662],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=3770,exports.ids=[615,3770],exports.modules={19225:(a,b,c)=>{a.exports=c(44870)},40615:(a,b,c)=>{c.d(b,{AI_PROVIDERS:()=>t,js:()=>x,DI:()=>o,fg:()=>k,Pd:()=>p,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>n,jO:()=>z,wb:()=>y,br:()=>l,mh:()=>m,wG:()=>w,zt:()=>u,gb:()=>r,gC:()=>s,mq:()=>q,rs:()=>v});var d=c(83817);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.default.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","credentialFallback","systemoneConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.default.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{},...a.apiKeyOptionalWith?{apiKeyOptionalWith:a.apiKeyOptionalWith}:{},...a.credentialForm?{credentialForm:a.credentialForm}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m=g("webCookieSession"),n="openai-compatible-",o="anthropic-compatible-",p="custom-embedding-";function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}function s(a){return"string"==typeof a&&a.startsWith(p)}let t={...h,...i,...j,...k,...l,...m};function u(a){for(let b of Object.values(t))if(b.alias===a||b.id===a)return b;return null}function v(a){let b=u(a);return b?.id||a}function w(a){let b=t[a];return b?.alias||a}let x=Object.values(t).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(t).reduce((a,b)=>(a[b.id]=b.alias,a),{});let y=d.default.filter(a=>a.features?.usage).map(a=>a.id),z=d.default.filter(a=>a.features?.usageApikey).map(a=>a.id)},40669:(a,b,c)=>{c.d(b,{Xh:()=>h,g2:()=>g,js:()=>j});var d=c(83817);let e={el:"elevenlabs",jina:"jina-ai","jina-ai":"jina-ai",polly:"aws-polly","aws-polly":"aws-polly"};for(let a of d.default)for(let b of(e[a.id]=a.id,a.alias&&(e[a.alias]=a.id),a.aliases||[]))e[b]=a.id;let f={"grok-build":"gcli/grok-build"};function g(a){return e[a]||a}function h(a){if(!a)return{provider:null,model:null,isAlias:!1,providerAlias:null};if(a.includes("/")){let b=a.indexOf("/"),c=a.slice(0,b),d=a.slice(b+1);return{provider:g(c),model:d,isAlias:!1,providerAlias:c}}return{provider:null,model:a,isAlias:!0,providerAlias:null}}function i(a,b){if(!b)return null;let c=b[a];if(!c)return null;if("string"==typeof c&&c.includes("/")){let a=c.indexOf("/");return{provider:g(c.slice(0,a)),model:c.slice(a+1)}}return"object"==typeof c&&c.provider&&c.model?{provider:g(c.provider),model:c.model}:null}async function j(a,b){let c=h(a);if(!c.isAlias)return{provider:c.provider,model:c.model};let d="function"==typeof b?await b():b,e=i(c.model,d)||i(c.model,f);return e||{provider:function(a){if(!a)return"openai";let b=a.toLowerCase();return k.find(([a])=>a.test(b))?.[1]||"openai"}(c.model),model:c.model}}let k=[[/^codex-auto-review$/,"codex"],[/^gpt-[56]\./,"codex"],[/^gpt-6-/,"codex"],[/^gpt-daybreak-/,"codex"],[/^gpt-reserve/,"codex"],[/^claude-/,"anthropic"],[/^(us|eu|ap|global)\.(anthropic|meta|amazon|mistral|xai)\./,"bedrock"],[/^gemini-/,"gemini"],[/^gpt-/,"openai"],[/^o[134]/,"openai"],[/^deepseek-/,"openrouter"]]},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},66581:(a,b,c)=>{c.d(b,{g:()=>D,s:()=>E});var d=c(80238),e=c(89718),f=c(38775),g=c(27811),h=c(43659),i=c(41004),j=c(8521),k=c(26070);let l=new Set(["generations"]);function m(a,b){return{Accept:"application/json",...a.headers||{},...b?{Authorization:`Bearer ${b}`}:{}}}let n=/^projects\/[^/]+\/locations\/[^/]+\/publishers\/[^/]+\/models\/[^/]+\/operations\/[^/]+$/;async function o(a,b){let c=(0,j.Sc)(a?.apiKey),d=c?.project_id||a?.projectId||a?.providerSpecificData?.projectId,e=a?.providerSpecificData?.location||"us-central1";if(!d)return{error:"Vertex video requires a project_id — use Service Account JSON or set providerSpecificData.projectId"};let f=a?.accessToken;if(c){let a=await (0,j.pb)(c,b);if(!a?.accessToken)return{error:"Vertex video: failed to mint access token from service account JSON"};f=a.accessToken}return f?{token:f,projectId:d,location:e}:{error:"Vertex video requires Service Account JSON or an OAuth access token (raw API keys are not supported)"}}let p={openrouter:{buildRequest({config:a,action:b,requestId:c,rawBody:d,contentType:e,token:f}){let g=a.baseUrl.replace(/\/$/,"");return c?{method:"GET",url:`${g}/${encodeURIComponent(c)}`,headers:m(a,f)}:l.has(b)?e&&!e.includes("application/json")?{error:"OpenRouter video requires an application/json body"}:{method:"POST",url:g,headers:{...m(a,f),"Content-Type":"application/json"},body:d}:{error:`OpenRouter video supports 'generations' only (got '${b}')`}}},vertex:{async buildRequest({config:a,action:b,requestId:c,rawBody:d,contentType:e,credentials:f,log:g}){let h;if(e&&!e.includes("application/json"))return{error:"Vertex video requires an application/json body"};let i=await o(f,g);if(i.error)return{error:i.error};let{token:j,projectId:k,location:l}=i,m=(a.baseUrl||"https://aiplatform.googleapis.com").replace(/\/$/,""),p={Accept:"application/json","Content-Type":"application/json",Authorization:`Bearer ${j}`};if(c){let a=function(a){let b=String(a??"");if(!b||b.length>1024||!/^[A-Za-z0-9_-]+$/.test(b))return null;let c=Buffer.from(b,"base64url").toString("utf8");return Buffer.from(c,"utf8").toString("base64url")!==b?null:n.test(c)?c:null}(c);return a?{method:"POST",url:`${m}/v1/${a.slice(0,a.indexOf("/operations/"))}:fetchPredictOperation`,headers:p,body:JSON.stringify({operationName:a})}:{error:"Invalid Vertex video job id"}}if("generations"!==b)return{error:`Vertex video supports 'generations' only (got '${b}')`};try{h=JSON.parse("string"==typeof d?d:d.toString("utf8"))}catch{return{error:"Invalid JSON body"}}return h.model?/^[A-Za-z0-9._-]+$/.test(h.model)?h.prompt||h.image||h.image_url?{method:"POST",url:`${m}/v1/projects/${k}/locations/${l}/publishers/google/models/${h.model}:predictLongRunning`,headers:p,body:JSON.stringify(function(a){let b={prompt:a.prompt},c=a.image??a.image_url;if(c&&"object"==typeof c)b.image=c;else if("string"==typeof c){let a=c.match(/^data:([^;]+);base64,(.*)$/s);b.image=a?{bytesBase64Encoded:a[2],mimeType:a[1]}:{gcsUri:c}}a.video&&"object"==typeof a.video&&(b.video=a.video);let d={};return null!=a.n&&(d.sampleCount=Number(a.n)),null!=a.duration&&(d.durationSeconds=Number(a.duration)),a.aspect_ratio&&(d.aspectRatio=a.aspect_ratio),a.resolution&&(d.resolution=a.resolution),null!=a.seed&&(d.seed=a.seed),a.negative_prompt&&(d.negativePrompt=a.negative_prompt),a.storage_uri&&(d.storageUri=a.storage_uri),null!=a.generate_audio&&(d.generateAudio=!!a.generate_audio),{instances:[b],...Object.keys(d).length?{parameters:d}:{}}}(h))}:{error:"Vertex video requires a prompt or an image"}:{error:"Invalid Vertex video model id"}:{error:"Vertex video requires a model (e.g. vertex/veo-3.1-generate-preview)"}},transformResponse:function(a){let b;if(!a?.name)return a;let c=(b=a.name,Buffer.from(b,"utf8").toString("base64url"));if(a.error)return{id:c,request_id:c,status:"failed",error:a.error};if(!a.done)return{id:c,request_id:c,status:"pending"};let d=(a.response?.videos||a.response?.generateVideoResponse?.generatedSamples||[]).map(a=>({url:a.gcsUri||a.video?.uri||a.uri||null,b64_json:a.bytesBase64Encoded||a.video?.bytesBase64Encoded||null,mime_type:a.mimeType||a.video?.mimeType||"video/mp4"}));return{id:c,request_id:c,status:"completed",video:d[0]||null,videos:d}}}},q=Number(process.env.VIDEO_FETCH_TIMEOUT_MS||12e4),r=new Set(["generations","edits","extensions"]);function s(a){return k.B$[a]?.videoConfig||null}function t(a,b=null){if(!a)return a;let c=String(a).replace(/Bearer\s+[A-Za-z0-9._~+/=-]{8,}/gi,"Bearer [redacted]");for(let a of["accessToken","refreshToken","apiKey"]){let d=b?.[a];"string"==typeof d&&d.length>=8&&(c=c.split(d).join("[redacted]"))}return c}async function u({provider:a,action:b=null,requestId:c=null,rawBody:d=null,contentType:e=null,idempotencyKey:f=null,credentials:g,signal:k,timeoutMs:l=q,log:m,onCredentialsRefreshed:n}){let o,v,w=s(a);if(!w)return(0,h.A1)(i.gx.BAD_REQUEST,`Provider '${a}' does not support video generation`);if(!c&&!r.has(b))return(0,h.A1)(i.gx.BAD_REQUEST,`Unknown video action: ${b}`);let x=p[a]||null,y=(v="function"==typeof AbortSignal?.timeout?AbortSignal.timeout(l):null,k&&v&&"function"==typeof AbortSignal.any?AbortSignal.any([k,v]):k||v||void 0),z=async()=>{let a,h,i=x?await x.buildRequest({config:w,action:b,requestId:c,rawBody:d,contentType:e,idempotencyKey:f,credentials:g,log:m,token:g?.accessToken||g?.apiKey}):{method:a=c?"GET":"POST",url:(h=w.baseUrl.replace(/\/$/,""),c?`${h}/${encodeURIComponent(c)}`:`${h}/${b}`),headers:function({token:a,contentType:b,idempotencyKey:c}){let d={Accept:"application/json"};return a&&(d.Authorization=`Bearer ${a}`),b&&(d["Content-Type"]=b),c&&(d["Idempotency-Key"]=c),d}({token:g?.accessToken||g?.apiKey,contentType:"POST"===a?e:null,idempotencyKey:"POST"===a?f:null}),body:"POST"===a?d:void 0};return i.error?{planError:i.error}:{response:await fetch(i.url,{method:i.method,headers:i.headers,body:i.body,signal:y})}},A=c?"GET":"POST";try{let b=await z();if(b.planError)return(0,h.A1)(i.gx.BAD_REQUEST,`[${a}] ${b.planError}`);o=b.response}catch(b){if(b?.name==="AbortError"||b?.name==="TimeoutError")return(0,h.A1)(i.gx.REQUEST_TIMEOUT,`[${a}] video ${A} aborted: ${b.message}`);return(0,h.A1)(i.gx.BAD_GATEWAY,t(`[${a}] video upstream fetch failed: ${b.message}`,g))}if((o.status===i.gx.UNAUTHORIZED||o.status===i.gx.FORBIDDEN)&&g?.refreshToken){let b=null;try{b=await (0,j.$B)(a,g,m)}catch(b){m?.warn?.("TOKEN",`${a} | video refresh error: ${t(b.message,g)}`)}if(b?.accessToken){m?.info?.("TOKEN",`${a.toUpperCase()} | refreshed for video ${A}`),Object.assign(g,b),n&&await n(b);try{await o.body?.cancel?.()}catch{}try{let b=await z();if(b.planError)return(0,h.A1)(i.gx.BAD_REQUEST,`[${a}] ${b.planError}`);o=b.response}catch(b){return(0,h.A1)(i.gx.BAD_GATEWAY,t(`[${a}] video retry after refresh failed: ${b.message}`,g))}}else m?.warn?.("TOKEN",`${a.toUpperCase()} | video refresh failed — account needs re-auth`)}let B=await o.text().catch(()=>"");if(!o.ok){let b=t(B||`HTTP ${o.status}`,g);return(0,h.A1)(o.status,`[${a}] ${b.slice(0,2e3)}`)}let C=B,D=o.headers.get("content-type")||"application/json";if(x?.transformResponse)try{C=JSON.stringify(x.transformResponse(JSON.parse(B))),D="application/json"}catch{}return{success:!0,response:new Response(C,{status:o.status,headers:{"Content-Type":D,"Access-Control-Allow-Origin":"*"}})}}var v=c(67828),w=c(7803);async function x(a,b){if(b){let a=await (0,e.getProviderConnectionById)(b).catch(()=>null);if(a?.provider&&s(a.provider))return a.provider}let c=new URL(a.url).searchParams.get("provider");return c&&s(c)?c:"xai"}let y=new Set([i.gx.UNAUTHORIZED,i.gx.FORBIDDEN,i.gx.RATE_LIMITED]);async function z(a){let b=(0,d.Tr)(a);if((await (0,e.mt)()).requireApiKey){if(!b)return(0,h.yj)(i.gx.UNAUTHORIZED,"Missing API key");if(!await (0,d.kI)(b))return(0,h.yj)(i.gx.UNAUTHORIZED,"Invalid API key")}return null}async function A(a){let b=a.headers.get("content-type")||"";if(b.includes("application/json")){let c,d=await a.text();try{c=JSON.parse(d)}catch{return{error:(0,h.yj)(i.gx.BAD_REQUEST,"Invalid JSON body")}}return{raw:d,parsed:c,contentType:b}}return{raw:Buffer.from(await a.arrayBuffer()),parsed:null,contentType:b}}async function B(a){if(!a?.model)return{provider:"xai",model:null};let b=String(a.model),c=await (0,f.mA)(b);return c.provider?s(c.provider)?{provider:c.provider,model:c.model}:b.includes("/")?{error:(0,h.yj)(i.gx.BAD_REQUEST,`Provider '${c.provider}' does not support video generation`)}:{provider:"xai",model:b}:{error:(0,h.yj)(i.gx.BAD_REQUEST,"Combos are not supported for video generation")}}function C(a,b){if(!b)return a;let c=new Headers(a.headers);return c.set("x-omnihilbras-connection-id",String(b)),new Response(a.body,{status:a.status,headers:c})}async function D(a,b){let c=await z(a);if(c)return c;let e=await A(a);if(e.error)return e.error;let f=await B(e.parsed);if(f.error)return f.error;let{provider:j,model:k}=f,l=await (0,g.QU)(await (0,g.TM)(a),e.parsed?.model?String(e.parsed.model):"",j,k);if(l)return l;let m=e.raw;e.parsed&&k&&e.parsed.model!==k&&(m=JSON.stringify({...e.parsed,model:k}));let n=a.headers.get("x-connection-id")||null,o=a.headers.get("idempotency-key")||null,p=new Set,q=null,r=null;for(;;){let c=await (0,d.c1)(j,p,k,{preferredConnectionId:n});if(!c||c.allRateLimited){if(c?.allRateLimited){let a=q||c.lastError||"Unavailable",b=r||Number(c.lastErrorCode)||i.gx.SERVICE_UNAVAILABLE;return(0,h.wO)(b,`[${j}/${k||"video"}] ${a}`,c.retryAfter,c.retryAfterHuman)}if(0===p.size)return(0,h.yj)(i.gx.BAD_REQUEST,`No credentials for provider: ${j}`);return(0,h.yj)(r||i.gx.SERVICE_UNAVAILABLE,q||"All accounts unavailable")}let f=await (0,v.checkAndRefreshToken)(j,c),g=await u({provider:j,action:b,rawBody:m,contentType:e.contentType||null,idempotencyKey:o,credentials:f,signal:a.signal,log:w,onCredentialsRefreshed:async a=>{await (0,v.vN)(c.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});if(g.success)return await (0,d.Pt)(c.connectionId,c,k),w.info("VIDEO",`${j.toUpperCase()} | ${b} accepted (connection ${c.connectionId})`),C(g.response,c.connectionId);let{shouldFallback:l}=await (0,d.vk)(c.connectionId,g.status,t(g.error,f),j,k);if(l&&y.has(g.status)){p.add(c.connectionId),q=g.error,r=g.status;continue}return g.response}}async function E(a,b){let c=await z(a);if(c)return c;if(!b)return(0,h.yj)(i.gx.BAD_REQUEST,"Missing video request id");let e=a.headers.get("x-connection-id")||null,f=await x(a,e),g=await (0,d.c1)(f,null,null,{preferredConnectionId:e});if(!g||g.allRateLimited)return(0,h.yj)(i.gx.BAD_REQUEST,`No credentials for provider: ${f}`);let j=await (0,v.checkAndRefreshToken)(f,g),k=await u({provider:f,requestId:b,credentials:j,signal:a.signal,log:w,onCredentialsRefreshed:async a=>{await (0,v.vN)(g.connectionId,{accessToken:a.accessToken,refreshToken:a.refreshToken,providerSpecificData:a.providerSpecificData,testStatus:"active"})}});return k.success?(await (0,d.Pt)(g.connectionId,g,null),C(k.response,g.connectionId)):(await (0,d.vk)(g.connectionId,k.status,t(k.error,j),f,null),k.response)}},92280:(a,b,c)=>{Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=4049,exports.ids=[4049,7247],exports.modules={220:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e={config:d.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(`${d.LT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`}}),c=b.ok?await b.json():{},e="";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,d.cD)(),mode:1})});if(b.ok){let a=await b.json();e=a.cloudaicompanionProject?.id||a.cloudaicompanionProject||""}}catch(a){console.log("Failed to fetch project ID:",a)}return{userInfo:c,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})}},3198:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(55511),e=c.n(d);let f={config:c(92990).aV,flowType:"device_code",requestDeviceCode:async a=>{let{buildKimiHeaders:b}=await Promise.resolve().then(c.bind(c,75924)),d=e().randomUUID(),f={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",...b(d)},g=await fetch(a.deviceCodeUrl,{method:"POST",headers:f,body:new URLSearchParams({client_id:a.clientId})});if(!g.ok){let a=await g.text();throw Error(`Device code request failed: ${a}`)}let h=await g.json(),i=a.authorizeDeviceUrl||"https://www.kimi.com/code/authorize_device";return{device_code:h.device_code,user_code:h.user_code,verification_uri:h.verification_uri||i,verification_uri_complete:h.verification_uri_complete||`${i}?user_code=${h.user_code}`,expires_in:h.expires_in,interval:h.interval||5,_kimiDeviceId:d}},pollToken:async(a,b,d,e)=>{let f,{buildKimiHeaders:g}=await Promise.resolve().then(c.bind(c,75924)),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}:{}}})}},5867:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e=(0,c(67377).N)(d.t3)},12557:(a,b,c)=>{c.d(b,{Bl:()=>j,Qo:()=>f,S5:()=>l,hk:()=>e,kJ:()=>k});var d=c(3662);function e(a,b,c=0,f=null){let g=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if((!b.provider||b.provider===f)&&(b.text&&g&&g.includes(b.text)||b.status&&b.status===a)){if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return a>=400&&a<500&&401!==a&&402!==a&&403!==a&&429!==a?{shouldFallback:!1,cooldownMs:0}:{shouldFallback:!0,cooldownMs:d.wf}}function f(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 g="modelLock_",h=`${g}__all`;function i(a){return a?`${g}${a}`:h}function j(a,b){let c=a[i(b)]||a[h];return!!c&&new Date(c).getTime()>Date.now()}function k(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(g)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function l(a,b){return{[i(a)]:new Date(Date.now()+b).toISOString()}}},13342:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(92990),e=c(23358);async function f(a,b,c){let e=`${a.replace(/\/$/,"")}${b}`,f=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","User-Agent":d.eD.userAgent},body:JSON.stringify(c)}),g=await f.text();if(!f.ok)throw Error(`Windsurf ${b} HTTP ${f.status}: ${g.slice(0,200)}`);try{return JSON.parse(g)}catch{throw Error(`Windsurf ${b} invalid JSON`)}}async function g(a){let b=await f(d.eD.registerApiBaseUrl,d.eD.registerPath,{firebase_id_token:a}),c=(0,e.j)(b,[["apiKey"],["api_key"]]);if(!c)throw Error("Windsurf RegisterUser missing apiKey");return{apiKey:c,apiServerUrl:(0,e.j)(b,[["apiServerUrl"],["api_server_url"]])||d.eD.defaultApiServerUrl,name:(0,e.j)(b,[["name"]])}}async function h(a,b){try{let c=await f(a,d.eD.oneTimeAuthPath,{firebaseIdToken:b}),g=(0,e.j)(c,[["authToken"],["auth_token"]]);if(!g)return{email:null,name:null};let h=await f(a,d.eD.currentUserPath,{authToken:g,includeSubscription:!0}),i=h.user||h;return{email:(0,e.j)(i,[["email"]]),name:(0,e.j)(i,[["name"]])}}catch{return{email:null,name:null}}}let i={config:d.eD,flowType:"authorization_code",callbackPath:d.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 g(b);return{accessToken:c.apiKey,refreshToken:null,expiresIn:null,apiServerUrl:c.apiServerUrl,firebaseIdToken:b,_authMethod:"imported"}}let{firebaseIdToken:h}=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),i=await g(h);return{accessToken:i.apiKey,refreshToken:null,expiresIn:null,apiServerUrl:i.apiServerUrl,firebaseIdToken:h,_authMethod:"oauth"}},postExchange:async a=>a.firebaseIdToken?{userInfo:await h(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}})}},17691:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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}}}}},18941:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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}})}},20386:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(92990);let e="1.0.0",f={config:d.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":e},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":e},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 f=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:d.ok||f,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":e},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 f=c.action_url||c.require_payment_action_url;if(!c.api_key&&(c.require_payment||f))throw Error(`Muse Code subscription required${f?`: ${f}`:""}`);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}}}}},23358:(a,b,c)=>{c.d(b,{j:()=>d});function d(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}},24329:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(92990),e=c(53129);let f={config:d.DI,flowType:"authorization_code_pkce",fixedPort:d.DI.fixedPort,callbackPath:d.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}}},24336:(a,b,c)=>{c.d(b,{A:()=>l});var d=c(55511),e=c.n(d),f=c(92990),g=c(23358);async function h(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(),h=(0,g.j)(e,[["Result","LoginHost"],["Result","loginHost"],["Result","LoginURL"],["result","loginHost"],["data","Result","LoginHost"],["data","loginHost"],["LoginHost"],["loginHost"]]);if(h)return h;c=`${a} missing LoginHost`}catch(b){c=`${a} ${b.message}`}throw Error(`Trae GetLoginGuidance failed: ${c}`)}function i(){return[...f.SK.apiOrigins]}async function j(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 i()){let h=`${e.replace(/\/$/,"")}${f.SK.exchangeTokenPath}`;try{let e,i={Accept:"application/json","Content-Type":"application/json","User-Agent":f.SK.userAgent};b&&(i["x-cloudide-token"]=b);let j=await fetch(h,{method:"POST",headers:i,body:c}),k=await j.text();if(!j.ok){d=`${h} HTTP ${j.status}`;continue}try{e=JSON.parse(k)}catch{d=`${h} invalid JSON`;continue}let l=(0,g.j)(e,[["Result","AccessToken"],["Result","accessToken"],["result","access_token"],["accessToken"]]);if(!l){let a=(0,g.j)(e,[["message"],["msg"],["error"],["Result","Message"]])||"missing AccessToken";d=`${h} ${a}`;continue}return{accessToken:l,refreshToken:(0,g.j)(e,[["Result","RefreshToken"],["result","refresh_token"],["refreshToken"]])||a,expiresIn:null,expiresAt:(0,g.j)(e,[["Result","ExpiresAt"],["Result","expiresAt"],["result","expires_at"],["expiresAt"]])}}catch(a){d=`${h} ${a.message}`}}throw Error(`Trae ExchangeToken failed: ${d}`)}async function k(a){for(let b of i()){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:(0,g.j)(d,[["Result","NonPlainTextEmail"],["Result","Email"],["Result","email"],["email"],["data","email"]]),name:(0,g.j)(d,[["Result","ScreenName"],["Result","Nickname"],["Result","Name"],["result","nickname"],["nickname"],["name"]]),aiRegion:(0,g.j)(d,[["Result","AIRegion"],["Result","aiRegion"],["aiRegion"]]),region:(0,g.j)(d,[["Result","Region"],["Result","region"],["region"]]),tenant:(0,g.j)(d,[["Result","TenantID"],["Result","tenantId"],["tenantId"]]),userId:(0,g.j)(d,[["Result","UserID"],["Result","userId"],["userId"]])}}catch{}}return{email:null,name:null}}let l={config:f.SK,flowType:"authorization_code",callbackPath:f.SK.callbackPath,prepareConfig:async a=>{let b=e().randomUUID(),c=await h(b);return{...a,loginTraceID:b,loginHost:c}},buildAuthUrl:(a,b,c)=>{var d;let g,h,i={plugin_version:f.SK.defaultPluginVersion,machine_id:e().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},j=a.loginTraceID||c;return d=a.loginHost,(g=new URL(d.startsWith("http")?d:`https://${d.replace(/^\/+/,"")}`)).pathname=f.SK.authorizationPath,(h=new URLSearchParams).set("login_version","1"),h.set("auth_from","trae"),h.set("login_channel","native_ide"),h.set("plugin_version",i.plugin_version),h.set("auth_type","local"),h.set("client_id",f.SK.clientId),h.set("redirect","0"),h.set("login_trace_id",j),h.set("auth_callback_url",b),h.set("machine_id",i.machine_id),h.set("device_id",i.device_id),h.set("x_device_id",i.device_id),h.set("x_machine_id",i.machine_id),h.set("x_device_brand",i.x_device_brand),h.set("x_device_type",i.x_device_type),h.set("x_os_version",i.x_os_version),h.set("x_env",i.x_env),h.set("x_app_version",i.x_app_version),h.set("x_app_type",i.x_app_type),g.search=h.toString(),g.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 j(d,e),_authMethod:"oauth"}},postExchange:async a=>({userInfo:await k(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"}}}}},31111:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(91365);let e=(0,d.O)(d.$.cn)},34940:(a,b,c)=>{c.d(b,{A:()=>g});var d=c(90737),e=c(92990),f=c(53129);let g={config:e.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":d.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,e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":d.hY},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:b,client_id:a.clientId})});try{c=await e.json()}catch{c={error:"invalid_response",error_description:await e.text()}}let f=c?.error==="authorization_pending"||c?.error==="slow_down";return{ok:e.ok||f,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":d.hY,"x-xai-token-auth":"xai-grok-cli","x-grok-client-version":d.uG}});if(b.ok)return{user:await b.json()}}catch{}return{user:null}},mapTokens:(a,b)=>{let c=(0,f.pG)(a.id_token)||(0,f.J_)(a.access_token)||b?.user?.email||null,d=b?.user?.userId||b?.user?.principalId||null,e=[b?.user?.firstName,b?.user?.lastName].filter(Boolean).join(" ").trim()||null,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:e||void 0,providerSpecificData:{authMethod:"device_code",idToken:a.id_token||null,email:c||null,userId:d,hasGrokCodeAccess:b?.user?.hasGrokCodeAccess??null,subscriptionTier:b?.user?.subscriptionTier??null}}}}},35152:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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}})}},40626:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(92990),e=c(49804);let f={config:d.RY,flowType:"authorization_code",callbackPath:"/",prepareConfig:async(a,b)=>{let c=Number(b?.nativeAppPort)||d.RY.defaultNativeAppPort,f=(0,e.le)(a,{nativeAppPort:c});return{...a,...f}},buildAuthUrl:(a,b,c)=>a.authUrl,exchangeToken:async(a,b,c,d,f,g)=>{let{userId:h,encryptedAccessToken:i}=(0,e.Q_)(b);return{accessToken:(0,e.Wc)(i,d),userId:h,systemId:g?.systemId||a.systemId}},postExchange:async a=>{let b={accessToken:a.accessToken,providerSpecificData:{userId:a.userId,systemId:a.systemId}},c=null;try{c=await (0,e.qJ)(b,{config:d.RY})}catch{}let f=(0,e.k9)(b,c);return{userInfo:c,organizationId:f,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||""}})}},41902:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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})}},43659:(a,b,c)=>{c.d(b,{A1:()=>h,lR:()=>j,wO:()=>i,xJ:()=>e,yj:()=>f,zL:()=>g});var d=c(3662);function e(a,b){let c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""});return{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}}}function f(a,b,c=null){return new Response(JSON.stringify(e(a,b)),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*",...c}})}async function g(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let f=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:f}}function h(a,b,c,d=null){return{success:!1,status:a,error:b,resetsAtMs:c,response:f(a,b,d)}}function i(a,b,c,d,e=null){let f=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{...e,"Content-Type":"application/json","retry-after":String(f)}})}function j(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},45891:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(91365);let e=(0,d.O)(d.$.global)},49475:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e={config:d.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(d.Nu.copilotTokenUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":d.Nu.apiVersion,"User-Agent":d.Nu.userAgent}}),c=b.ok?await b.json():{},e=await fetch(d.Nu.userInfoUrl,{headers:{Authorization:`Bearer ${a.access_token}`,Accept:"application/json","X-GitHub-Api-Version":d.Nu.apiVersion,"User-Agent":d.Nu.userAgent}});return{copilotToken:c,userInfo:e.ok?await e.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}})}},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})},56187:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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"}})}},57247:(a,b,c)=>{c.d(b,{KC:()=>t,OA:()=>p,PROVIDER_MODELS:()=>e.vq,SM:()=>j,V2:()=>q,Xg:()=>s,cY:()=>u,ez:()=>o,fZ:()=>k,kt:()=>r,ux:()=>n});var d=c(83817),e=c(26070),f=c(99511),g=c(59096),h=c(14170);let i=a=>!a||["oc","opencode","ocg","opencode-go","ocz","opencode-zen"].includes(a);function j(a){return e.vq[a]||[]}function k(a){let b=e.vq[a];return b?.[0]?.id||null}let l=new Set(["kr","kiro"]);function m(a,b,c){if(!a)return;let d="string"==typeof b?b.replace(/\([^()]+\)\s*$/,"").trim():b,e=a.find(a=>a.id===b||a.id===d);if(e)return e;if(!l.has(c))return;let g=(0,f.Kq)(d);if(g!==d)return a.find(a=>a.id===g)}function n(a,b){if(i(a)&&(0,g.nh)(b))return h.h.OPENAI_RESPONSES;let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.gr)(d):i(a)&&(0,g.i8)(b)?.targetFormat||null}function o(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?(0,f.ec)(d):i(a)?(0,g.i8)(b)?.supportedFormats||[h.h.OPENAI]:null}function p(a,b){let c=e.vq[a];if(!c)return null;let d=m(c,b,a);return d?.kind||d?.type||null}function q(a,b){return m(e.vq[a],b,a)||null}function r(a,b){let c="string"==typeof b?b.match(/\([^()]+\)\s*$/):null,d=c?c[0]:"",f=d?b.slice(0,c.index).trim():b,h=m(e.vq[a],f,a),i=h?.upstreamModelId||h?.id;if(i){let a=i.match(/\([^()]+\)\s*$/),b=a?.[0]||"";return(b?i.slice(0,a.index).trim():i)+(d||b)}return"cx"===a&&"string"==typeof f&&f.endsWith(g.d5)?f.slice(0,-g.d5.length)+d:f+d}Object.fromEntries(d.default.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias]));let s=Object.fromEntries(d.default.map(a=>[a.id,a.alias||a.id]));function t(a){let b=s[a]||a;return e.vq[b]||[]}function u(a,b){return(0,f.g5)(m(e.vq[a],b,a))}},66678:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Gj:()=>N,PY:()=>Q,Re:()=>O,Su:()=>P,YR:()=>g.YR,gR:()=>g.gR,kP:()=>M,sO:()=>L});var e=c(48895),f=c(13808),g=c(53129),h=c(41902),i=c(24329),j=c(72520),k=c(34940),l=c(20386),m=c(220),n=c(79188),o=c(86725),p=c(67377),q=c(5867),r=c(49475),s=c(93551),t=c(68446),u=c(3198),v=c(67096),w=c(18941),x=c(35152),y=c(56187),z=c(99799),A=c(86857),B=c(17691),C=c(24336),D=c(13342),E=c(40626),F=c(81884),G=c(31111),H=c(45891),I=c(67511),J=c(88271),K=a([e]);e=(K.then?(await K)():K)[0];let R={claude:h.A,codex:i.A,xai:j.A,"grok-cli":k.A,muse:l.A,"gemini-cli":m.A,antigravity:n.A,iflow:o.A,qoder:p.A,"qoder-cn":q.A,github:r.A,kiro:s.A,cursor:t.A,kimi:u.A,kilocode:v.A,cline:w.A,clinepass:x.A,gitlab:y.A,"codebuddy-cn":z.A,"codebuddy-intl":A.A,kimchi:B.A,trae:C.A,windsurf:D.A,zed:E.A,glm:F.A,"minimax-code":G.A,"minimax-code-global":H.A,nous:I.A,tokenharbor:J.A};function L(a){let b=R["kimi-coding"===a?"kimi":a];if(!b)throw Error(`Unknown provider: ${a}`);return b}async function M(a,b,c){let d=L(a),e=d.prepareConfig?await d.prepareConfig(d.config,c||{}):d.config,{codeVerifier:g,codeChallenge:h,state:i}=(0,f.lz)(d.pkceVerifierBytes),j=e.loginTraceID||i,k=e.privateKeyVerifier||g;return{authUrl:"device_code"===d.flowType?null:"authorization_code_pkce"===d.flowType?d.buildAuthUrl(e,b,j,h,c||{}):d.buildAuthUrl(e,b,j,void 0,c||{}),state:j,codeVerifier:k,codeChallenge:h,redirectUri:b,flowType:d.flowType,fixedPort:d.fixedPort,callbackPath:d.callbackPath||"/callback",...e.systemId?{systemId:e.systemId}:{}}}async function N(a,b,c,d,e,f){let g=L(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 O(a,b,c){let d=L(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 P(a,b,c,d){let e=L(a);if("device_code"!==e.flowType)throw Error(`Provider ${a} does not support device code flow`);let f=await e.pollToken(e.config,b,c,d);if(f.ok)if(f.data.access_token){let b=null;if(e.postExchange)try{b=await e.postExchange(f.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=e.mapTokens(f.data,b);if("kiro"===a&&!c.providerSpecificData?.profileArn){let a=await (0,g.gR)(c.accessToken);a&&(c.providerSpecificData.profileArn=a)}return{success:!0,tokens:c}}else if("authorization_pending"===f.data.error||"slow_down"===f.data.error)return{success:!1,error:f.data.error,errorDescription:f.data.error_description||f.data.message,pending:"authorization_pending"===f.data.error};else return{success:!1,error:f.data.error||"no_access_token",errorDescription:f.data.error_description||f.data.message||"No access token received"};return{success:!1,error:f.data.error,errorDescription:f.data.error_description}}let S=!1;async function Q(){if(!S){S=!0;try{let{getProviderConnections:a,updateProviderConnection:b}=await Promise.resolve().then(c.bind(c,89718));for(let c of(await a()).filter(a=>{if("codex"!==a.provider||"oauth"!==a.authType||!a.idToken)return!1;let b=!!a.email,c=!!a.providerSpecificData?.chatgptAccountId;return!b||!c})){let a=(0,g.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){S=!1,console.log("backfillCodexEmails failed:",a?.message||a)}}}d()}catch(a){d(a)}})},67096:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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}}:{}})}},67377:(a,b,c)=>{function d(a){return{config:a,flowType:"device_code",requestDeviceCode:async a=>{let{QoderService:b}=await c.e(3546).then(c.bind(c,73546)),d=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}},pollToken:async(a,b,d,e)=>{let f,{QoderService:g}=await c.e(3546).then(c.bind(c,73546)),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||"",_qoderName:k.name,_qoderEmail:k.email,_qoderOrganizationId:k.organizationId}}},mapTokens:a=>{let b=(a._qoderEmail||"").trim(),c=(a._qoderName||"").trim()||null,d=a._qoderUserId||"",e=b||(d?`qoder-user-${d}`:null);return{accessToken:a.access_token,refreshToken:a.refresh_token||null,expiresIn:a.expires_in,email:e,displayName:c,providerSpecificData:{authMethod:"device",userId:d,machineId:a._qoderMachineId||"",organizationId:a._qoderOrganizationId||""}}}}}c.d(b,{A:()=>e,N:()=>d});let e=d(c(92990).hF)},67511:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e={config:d.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(d.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:d.Z2.inferenceBaseUrl,...b?.agentKeyId?{agentKeyId:b.agentKeyId}:{},...b?.agentKeyExpiresAt?{agentKeyExpiresAt:b.agentKeyExpiresAt}:{}}})}},68446:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).WN,flowType:"import_token",mapTokens:a=>({accessToken:a.accessToken,refreshToken:null,expiresIn:a.expiresIn||86400,providerSpecificData:{machineId:a.machineId,authMethod:"imported"}})}},72520:(a,b,c)=>{c.d(b,{A:()=>j});var d=c(55511),e=c.n(d),f=c(73159),g=c(53129);let h=null;async function i(){if(h)return h;try{let a=await fetch(f.oT.discoveryUrl,{headers:{Accept:"application/json"}});if(a.ok){let b=await a.json();return h={authorizeUrl:(0,g.js)(b.authorization_endpoint,"authorization_endpoint"),tokenUrl:(0,g.js)(b.token_endpoint,"token_endpoint")}}}catch{}return h={authorizeUrl:f.oT.authorizeUrl,tokenUrl:f.oT.tokenUrl}}let j={config:f.oT,flowType:"authorization_code_pkce",fixedPort:f.oT.loopbackPort,callbackPath:f.oT.callbackPath,pkceVerifierBytes:f.Ue,prepareConfig:async a=>{let b=await i();return{...a,authorizeUrl:b.authorizeUrl,tokenUrl:b.tokenUrl}},buildAuthUrl:(a,b,c,d)=>{let f=e().randomBytes(16).toString("hex"),g=Object.entries({response_type:"code",client_id:a.clientId,redirect_uri:b,scope:a.scope,code_challenge:d,code_challenge_method:a.codeChallengeMethod,state:c,nonce:f,plan:"generic",referrer:"cli-proxy-api"}).map(([a,b])=>`${a}=${encodeURIComponent(b)}`).join("&");return`${a.authorizeUrl}?${g}`},exchangeToken:async(a,b,c,d)=>{let e=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,code:b,redirect_uri:c,code_verifier:d})});if(!e.ok){let a=await e.text();throw Error(`xAI token exchange failed: ${a}`)}return await e.json()},mapTokens:a=>{let b={accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,scope:a.scope},c=(0,g.pG)(a.id_token);return c&&(b.email=c),a.id_token&&(b.providerSpecificData={idToken:a.id_token}),b}}},74177:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{PY:()=>e.PY,Re:()=>e.Re,Su:()=>e.Su,exchangeTokens:()=>e.Gj,extractCodexAccountInfo:()=>e.YR,fetchKiroProfileArn:()=>e.gR,getProvider:()=>e.sO,kP:()=>e.kP});var e=c(66678),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},79188:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e={config:d.YT,flowType:"authorization_code",buildAuthUrl:(a,b,c)=>{let d=new URLSearchParams({client_id:a.clientId,response_type:"code",redirect_uri:b,scope:a.scopes.join(" "),state:c,access_type:"offline",prompt:"consent"});return`${a.authorizeUrl}?${d.toString()}`},exchangeToken:async(a,b,c)=>{let d=await fetch(a.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({grant_type:"authorization_code",client_id:a.clientId,client_secret:a.clientSecret,code:b,redirect_uri:c})});if(!d.ok){let a=await d.text();throw Error(`Token exchange failed: ${a}`)}return await d.json()},postExchange:async a=>{let b={Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json","User-Agent":d.YT.loadCodeAssistUserAgent,"x-request-source":"local"},c=(0,d.cD)(),e=await fetch(`${d.YT.userInfoUrl}?alt=json`,{headers:{Authorization:`Bearer ${a.access_token}`,"x-request-source":"local"}}),f=e.ok?await e.json():{},g="",h="legacy-tier";try{let a=await fetch(d.YT.loadCodeAssistEndpoint,{method:"POST",headers:b,body:JSON.stringify({metadata:c})});if(a.ok){let b=await a.json();if(g=b.cloudaicompanionProject?.id||b.cloudaicompanionProject||"",Array.isArray(b.allowedTiers)){for(let a of b.allowedTiers)if(a.isDefault&&a.id){h=a.id.trim();break}}}}catch(a){console.log("Failed to load code assist:",a)}return g&&(async()=>{for(let a=0;a<10;a++){try{let a=await fetch(d.YT.onboardUserEndpoint,{method:"POST",headers:b,body:JSON.stringify({tierId:h,metadata:c})});if(a.ok){let b=await a.json();if(!0===b.done)break}}catch(a){break}await new Promise(a=>setTimeout(a,5e3))}})().catch(()=>{}),{userInfo:f,projectId:g}},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})}},81884:(a,b,c)=>{c.d(b,{A:()=>k});var d=c(55511),e=c.n(d);async function f(a,b){let c=await g(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})=>i(a.organizationName))||b[0],d=c.projects.find(a=>i(a?.projectName))||c.projects[0];return c.organization?.organizationId&&d?.projectId?{organizationId:c.organization.organizationId,projectId:d.projectId}:null}(await h(`${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`,j=await h(f,{headers:d},"api keys")||[],k=Array.isArray(j)?j.find(b=>b?.name===a.planApiKeyName):null;k||(k=await h(f,{method:"POST",headers:d,body:JSON.stringify({name:a.planApiKeyName})},"api key create"));let l=k?.apiKey?.trim();if(!l)throw Error("Z.ai api_keys response is missing apiKey");let m=await h(`${f}/copy/${encodeURIComponent(l)}`,{headers:d},"api key copy"),n=m?.secretKey?.trim();if(!n)throw Error("Z.ai api key copy response is missing secretKey");return{planApiKey:`${l}.${n}`,businessToken:c}}async function g(a,b){let c=await h(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 h(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(!j(d?.code)||d?.success===!1)throw Error(d?.msg||`Z.ai ${c} returned business error ${d?.code}`);return d?.data??d??null}function i(a){let b=String(a||"").trim().toLowerCase();return b.includes("默认机构")||b.includes("默认项目")||"default"===b}function j(a){return null==a||0===a||200===a||"0"===a||"200"===a}let k={config:c(92990)._0,flowType:"device_code",requestDeviceCode:async a=>{let b=e().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(!j(d.code)||!d.data)throw Error(d.msg||"ZCode OAuth init returned no data");let f=d.data;if(!f.flow_id||!f.authorize_url)throw Error("ZCode OAuth init response missing flow_id/authorize_url");return{device_code:f.flow_id,verification_uri:f.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}(f.expires_at)??300,interval:f.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 g=await fetch(`${a.cliPollUrl}/${encodeURIComponent(b)}`,{headers:{Authorization:`Bearer ${e}`}});if(!g.ok)return{ok:!0,data:{error:"access_denied",error_description:`ZCode poll failed (HTTP ${g.status})`}};let h=await g.json();if(!j(h.code))return{ok:!0,data:{error:"access_denied",error_description:h.msg||"ZCode poll failed"}};let i=h.data||{};if("pending"===i.status)return{ok:!0,data:{error:"authorization_pending"}};if("failed"===i.status)return{ok:!0,data:{error:"access_denied",error_description:"ZCode authorization failed or was cancelled"}};if("ready"!==i.status)return{ok:!0,data:{error:"authorization_pending",error_description:`Unknown status: ${i.status}`}};let k=i[a.providerId]||i[i.providerId]||{},l=k.access_token||k.accessToken||i.accessToken||i.access_token;if(!l)return{ok:!0,data:{error:"access_denied",error_description:"ZCode poll response missing access token"}};let{planApiKey:m,businessToken:n}=await f(a,l);return{ok:!0,data:{access_token:m,_zcodeJwtToken:i.token||"",_zaiBusinessToken:n,_zaiRefreshToken:k.refresh_token||k.refreshToken||i.refresh_token||i.refreshToken||"",_zcodeUser:i.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}:{}}}}}},86725:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(92990);let e={config:d.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(`${d.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 e=c.data||{};if(!e.apiKey||""===e.apiKey.trim())throw Error("Empty API key returned from iFlow");if(!(e.email?.trim()||e.phone?.trim()))throw Error("Missing account email/phone in user info");return{userInfo:e}},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})}},86857:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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:{}})}},88271:(a,b,c)=>{c.d(b,{A:()=>k,parseReturnedCode:()=>j});var d=c(41004);let e=process.env.AGGREGATOR_WALLET_ANON_KEY||d.jk.anonKey,f={authBaseUrl:d.jk.authBaseUrl,authorizeUrlPath:"/authorize",tokenUrlPath:"/token",supabaseUrl:d.jk.supabaseUrl,anonKey:e,landingHost:"https://tokenharbor.ai",landingPath:"/robots.txt",walletTable:d.jk.walletTable,walletColumns:d.jk.walletColumns,authMethods:["google","password"],codeChallengeMethod:"s256",refreshSkewMs:6e4};async function g(a,{method:b="GET",body:c,anonKey:d}){let e=await fetch(a,{method:b,headers:{apikey:d,Accept:"application/json",...c?{"Content-Type":"application/json"}:{}},...c?{body:JSON.stringify(c)}:{}}),f=await e.text(),h=null;try{h=f?JSON.parse(f):null}catch{h=null}if(!e.ok){let a=h?.msg||h?.message||h?.error_description||f||e.status;throw Error(`Token Harbor auth failed: ${a}`)}return h}function h(a,b){if(!b)return a;try{let c=new URL(a);return c.searchParams.set("th_state",b),c.toString()}catch{return a}}function i(a,b){try{let c=new URL(b),d=a.landingHost||c.origin,e=a.landingPath||"/robots.txt";return new URL(e,d).toString()}catch{return b}}function j(a){let b=String(a||"").trim();if(!b)return null;try{let a=new URL(b),c=a.searchParams.get("code");if(c)return{code:c,state:a.searchParams.get("th_state")||null}}catch{}return{code:b,state:null}}let k={config:f,flowType:"authorization_code_pkce",prepareConfig:async(a,b={})=>({...a,redirectUri:b.redirectUri||a.redirectUri,authMethod:b.authMethod||"google"}),buildAuthUrl:(a,b,c,d,e={})=>{let f=new URLSearchParams({provider:"password"===e.authMethod?"google":e.authMethod||"google",redirect_to:h(i(a,b),c)});return d&&(f.set("code_challenge",d),f.set("code_challenge_method",a.codeChallengeMethod)),`${a.authBaseUrl}${a.authorizeUrlPath}?${f.toString()}`},exchangeToken:async(a,b,c,d,e,f={})=>({...await g(`${a.authBaseUrl}${a.tokenUrlPath}?grant_type=pkce`,{method:"POST",anonKey:a.anonKey,body:{auth_code:b,code_verifier:d,redirect_to:h(i(a,c),e)}}),_authMethod:f.authMethod||"google"}),passwordLogin:async(a,b,c)=>({...await g(`${a.authBaseUrl}${a.tokenUrlPath}?grant_type=password`,{method:"POST",anonKey:a.anonKey,body:{email:b,password:c}}),_authMethod:"password"}),refresh:async(a,b)=>await g(`${a.authBaseUrl}${a.tokenUrlPath}?grant_type=refresh_token`,{method:"POST",anonKey:a.anonKey,body:{refresh_token:b}}),mapTokens:a=>({accessToken:a.access_token,refreshToken:a.refresh_token,expiresIn:a.expires_in,email:a.user?.email||null,displayName:a.user?.user_metadata?.full_name||a.user?.email||"Token Harbor",providerSpecificData:{authMethod:a._authMethod||"google",thUserId:a.user?.id||null,thEmail:a.user?.email||null,thAuthBaseUrl:f.authBaseUrl}})}},91365:(a,b,c)=>{c.d(b,{$:()=>h,O:()=>g});let d=(a,b)=>"string"==typeof a?.[b]&&a[b].trim()?a[b].trim():void 0,e=(a,b)=>"number"==typeof a?.[b]&&Number.isFinite(a[b])&&a[b]>0?a[b]:void 0;async function f(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 g(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,g,h;if(!b)throw Error("MiniMax Code sign-in requires a PKCE code challenge");let{status:i,body:j}=await f(a.deviceUrl,{client_id:a.clientId,scope:a.scope,audience:a.audience,code_challenge:b,code_challenge_method:"S256"}),{userCode:k,deviceCode:l,uri:m}={userCode:d(j,"user_code"),deviceCode:d(j,"device_code"),uri:d(j,"verification_uri_complete")??d(j,"verification_uri")??d(j,"verification_url")};if(!k||!m)throw Error(`MiniMax device code response unusable (HTTP ${i})`);let n=!l;return{device_code:l??k,user_code:k,verification_uri:m,expires_in:(c=e(j,"expires_in"),g=e(j,"expired_in"),(c||(g?g<1e12?g:Math.max(1,Math.ceil((g-Date.now())/1e3)):void 0))??600),interval:(h=e(j,"interval"))?n&&h>=60?Math.round(h/1e3):h:5,_minimaxPollByUser:n}},async pollToken(a,b,c,e){if(!b)return{ok:!0,data:{error:"authorization_pending"}};let g={grant_type:"urn:ietf:params:oauth:grant-type:device_code",...e?._minimaxPollByUser?{user_code:b}:{device_code:b},client_id:a.clientId,code_verifier:c},{body:h}=await f(a.tokenUrl,g),i=d(h,"status");return"pending"===i?{ok:!0,data:{error:"authorization_pending"}}:"slow_down"===i?{ok:!0,data:{error:"slow_down"}}:"denied"===i||"access_denied"===i?{ok:!0,data:{error:"access_denied"}}:"expired"===i||"expired_token"===i?{ok:!0,data:{error:"expired_token"}}:i?{ok:!0,data:{error:`unexpected_status:${i}`}}:d(h,"error")?{ok:!0,data:{error:d(h,"error"),error_description:d(h,"error_description")}}:d(h,"access_token")?{ok:!0,data:h}:{ok:!0,data:{error:"no_access_token"}}},mapTokens(a){let b=e(a,"expires_in");return{accessToken:d(a,"access_token"),refreshToken:d(a,"refresh_token")??"",expiresIn:b??3600}}}}let h={cn:{account:"https://account.minimax.cn"},global:{account:"https://account.minimax.io"}}},93551:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(92990),e=c(53129);let f={config:d.Tx,flowType:"device_code",requestDeviceCode:async(a,b,c={})=>{let e=("string"==typeof c.region?c.region.trim():"")||"us-east-1";(0,d.S6)(e);let f=("string"==typeof c.startUrl?c.startUrl.trim():"")||a.startUrl,g="idc"===c.authMethod?"idc":"builder-id",h=`https://oidc.${e}.amazonaws.com/client/register`,i=`https://oidc.${e}.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:f})});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:e,_authMethod:g,_startUrl:f}},pollToken:async(a,b,c,e)=>{let f,g=e?._region||"us-east-1";(0,d.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:e?._clientId,clientSecret:e?._clientSecret,deviceCode:b,grantType:"urn:ietf:params:oauth:grant-type:device_code"})});try{f=await i.json()}catch(a){f={error:"invalid_response",error_description:await i.text()}}return f.accessToken?{ok:!0,data:{access_token:f.accessToken,refresh_token:f.refreshToken,expires_in:f.expiresIn,profile_arn:f?.profileArn||null,_clientId:e?._clientId,_clientSecret:e?._clientSecret,_region:e?._region,_authMethod:e?._authMethod,_startUrl:e?._startUrl}}:{ok:!1,data:{error:f.error||"authorization_pending",error_description:f.error_description||f.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||d.Tx.startUrl}}}}},99799:(a,b,c)=>{c.d(b,{A:()=>d});let d={config:c(92990).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:{}})}}};
@@ -1,9 +0,0 @@
1
- "use strict";exports.id=4055,exports.ids=[4055],exports.modules={4055:(a,b,c)=>{c.d(b,{runMigrationOnce:()=>w});var d=c(73024),e=c.n(d),f=c(76760),g=c.n(f),h=c(7841),i=c(76040);let j=[{version:1,name:"initial",up(a){for(let[b,c]of Object.entries(i.CG))for(let d of(a.exec((0,i.zE)(b,c)),c.indexes||[]))a.exec(d)}}].sort((a,b)=>a.version-b.version);var k=c(91117);let l=null;function m(){if(l)return l;try{let a=g().join(process.cwd(),"package.json");l=JSON.parse(e().readFileSync(a,"utf-8")).version||"0.0.0"}catch{l="0.0.0"}return l}let n=["requestDetails"];function o(a){(0,h.Jh)();let b=m(),c=`${a}-${b}-${function(a=new Date){let b=a=>String(a).padStart(2,"0");return`${a.getFullYear()}${b(a.getMonth()+1)}${b(a.getDate())}-${b(a.getHours())}${b(a.getMinutes())}${b(a.getSeconds())}`}()}`,d=g().join(h.KQ,c);return e().mkdirSync(d,{recursive:!0}),d}function p(){if(e().existsSync(h.KQ))for(let a of e().readdirSync(h.KQ,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>({name:a.name,full:g().join(h.KQ,a.name),mtime:e().statSync(g().join(h.KQ,a.name)).mtimeMs})).sort((a,b)=>b.mtime-a.mtime).slice(3))try{e().rmSync(a.full,{recursive:!0,force:!0})}catch{}}var q=c(33323);let r=g().join(h.HG,".migrated-from-json"),s=new WeakSet;class t extends Error{constructor(a,b){super(a),this.name="MigrationAborted",this.droppedRows=b}}function u(a,b,c,d,e){let f=[];for(let a of c)try{d(a)}catch(b){f.push({...e(a),reason:b.message})}let g=a.get(`SELECT COUNT(*) as c FROM ${b}`)?.c??0;if(g!==c.length)throw console.warn(`[DB][migrate] ${b} row-count mismatch: expected ${c.length}, got ${g}. Dropped:`,f),new t(`${b} row-count mismatch: expected ${c.length}, got ${g}`,f)}function v(a){if(!e().existsSync(a))return null;try{return JSON.parse(e().readFileSync(a,"utf-8"))}catch{return null}}async function w(a){if(s.has(a))return;s.add(a);let b=function(a){try{let b=a.get("SELECT COUNT(*) as c FROM _meta");return!b||0===b.c}catch{return!0}}(a);p(),a.exec((0,i.zE)("_meta",i.CG._meta));let c=parseInt((0,k.dy)(a,"backupSchemaVersion","0"),10)||0;if(!b&&c<i.f$)try{let b=o(`schema-${c}-to-${i.f$}`);!function(a,b,c="data.sqlite"){let d=g().join(b,c);try{e().rmSync(d,{force:!0})}catch{}let f=d.replace(/'/g,"''");a.exec(`ATTACH DATABASE '${f}' AS bak`);try{let b=new Set(n),c=a.all("SELECT name, sql FROM main.sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'").filter(a=>!b.has(a.name));a.transaction(()=>{for(let b of c){let c=b.sql.replace(/CREATE TABLE\s+/i,"CREATE TABLE bak.");a.exec(c),a.exec(`INSERT INTO bak.${b.name} SELECT * FROM main.${b.name}`)}})}finally{try{a.exec("DETACH DATABASE bak")}catch{}}}(a,b),p(),console.log(`[DB][migrate] pre-schema backup ${c} → ${i.f$}: ${b}`)}catch(a){console.warn(`[DB][migrate] pre-schema backup failed (continuing): ${a.message}`)}!function(a){a.exec((0,i.zE)("_meta",i.CG._meta));let b=parseInt((0,k.dy)(a,"schemaVersion","0"),10)||0;if(b>=(j.length?j[j.length-1].version:0))return;let c=j.filter(a=>a.version>b);for(let b of c)a.transaction(()=>{b.up(a),(0,k.np)(a,"schemaVersion",b.version)}),b.version,console.log(`[DB][migrate] applied #${b.version} ${b.name}`);c.length}(a);for(let[b,c]of Object.entries(i.CG)){a.exec((0,i.zE)(b,c));let d=new Set(a.all(`PRAGMA table_info(${b})`).map(a=>a.name));for(let[e,f]of Object.entries(c.columns))if(!d.has(e)){let c=f.replace(/PRIMARY KEY( AUTOINCREMENT)?/i,"").replace(/UNIQUE/i,"").trim();try{a.exec(`ALTER TABLE ${b} ADD COLUMN ${e} ${c}`),console.log(`[DB][sync] +column ${b}.${e}`)}catch(a){console.warn(`[DB][sync] add column ${b}.${e} failed: ${a.message}`)}}for(let b of c.indexes||[])try{a.exec(b)}catch{}}(0,k.np)(a,"backupSchemaVersion",i.f$);let d=e().existsSync(r),f=v(h.Or.main),l=v(h.Or.usage),w=v(h.Or.disabled),x=v(h.Or.details);if(b&&(f||l||w||x)&&!d){let b=Date.now(),c=o("migrate-from-json");for(let a of Object.values(h.Or))!function(a,b,c=null){if(!e().existsSync(a))return;let d=c||g().basename(a),f=g().join(b,d);e().copyFileSync(a,f)}(a,c);try{a.transaction(()=>{if(f&&"object"==typeof f){for(let[b,c]of(f.settings&&a.run("INSERT INTO settings(id, data) VALUES(1, ?) ON CONFLICT(id) DO UPDATE SET data = excluded.data",[(0,q.s)(f.settings)]),u(a,"providerConnections",f.providerConnections||[],b=>{let{id:c,provider:d,authType:e,name:f,email:g,priority:h,isActive:i,createdAt:j,updatedAt:k,...l}=b;a.run("INSERT OR REPLACE INTO providerConnections(id, provider, authType, name, email, priority, isActive, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[c,d,e||"oauth",f||null,g||null,h||null,+(!1!==i),(0,q.s)(l),j||new Date().toISOString(),k||new Date().toISOString()])},a=>({id:a.id??null,provider:a.provider??null,name:a.name??null})),u(a,"providerNodes",f.providerNodes||[],b=>{let{id:c,type:d,name:e,createdAt:f,updatedAt:g,...h}=b;a.run("INSERT OR REPLACE INTO providerNodes(id, type, name, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[c,d||null,e||null,(0,q.s)(h),f||new Date().toISOString(),g||new Date().toISOString()])},a=>({id:a.id??null,type:a.type??null,name:a.name??null})),u(a,"proxyPools",f.proxyPools||[],b=>{let{id:c,isActive:d,testStatus:e,createdAt:f,updatedAt:g,...h}=b;a.run("INSERT OR REPLACE INTO proxyPools(id, isActive, testStatus, data, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[c,+(!1!==d),e||"unknown",(0,q.s)(h),f||new Date().toISOString(),g||new Date().toISOString()])},a=>({id:a.id??null})),u(a,"apiKeys",f.apiKeys||[],b=>{a.run("INSERT OR REPLACE INTO apiKeys(id, key, name, machineId, isActive, createdAt) VALUES(?, ?, ?, ?, ?, ?)",[b.id,b.key,b.name||null,b.machineId||null,+(!1!==b.isActive),b.createdAt||new Date().toISOString()])},a=>({id:a.id??null,name:a.name??null})),u(a,"combos",f.combos||[],b=>{a.run("INSERT OR REPLACE INTO combos(id, name, kind, models, createdAt, updatedAt) VALUES(?, ?, ?, ?, ?, ?)",[b.id,b.name,b.kind||null,(0,q.s)(b.models||[]),b.createdAt||new Date().toISOString(),b.updatedAt||new Date().toISOString()])},a=>({id:a.id??null,name:a.name??null})),Object.entries(f.modelAliases||{})))a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('modelAliases', ?, ?)",[b,(0,q.s)(c)]);for(let b of f.customModels||[]){let c=`${b.providerAlias}|${b.id}|${b.type||"llm"}`;a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('customModels', ?, ?)",[c,(0,q.s)(b)])}for(let[b,c]of Object.entries(f.mitmAlias||{}))a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('mitmAlias', ?, ?)",[b,(0,q.s)(c||{})]);for(let[b,c]of Object.entries(f.pricing||{}))a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('pricing', ?, ?)",[b,(0,q.s)(c||{})])}if(l&&"object"==typeof l){for(let b of l.history||[]){let c=b.tokens||{};a.run("INSERT INTO usageHistory(timestamp, provider, model, connectionId, apiKey, endpoint, promptTokens, completionTokens, cost, status, tokens, meta) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[b.timestamp||new Date().toISOString(),b.provider||null,b.model||null,b.connectionId||null,b.apiKey||null,b.endpoint||null,c.prompt_tokens||c.input_tokens||0,c.completion_tokens||c.output_tokens||0,b.cost||0,b.status||"ok",(0,q.s)(c),(0,q.s)({})])}for(let[b,c]of Object.entries(l.dailySummary||{}))a.run("INSERT OR REPLACE INTO usageDaily(dateKey, data) VALUES(?, ?)",[b,(0,q.s)(c)]);"number"==typeof l.totalRequestsLifetime&&(0,k.np)(a,"totalRequestsLifetime",l.totalRequestsLifetime)}if(w&&"object"==typeof w.disabled)for(let[b,c]of Object.entries(w.disabled))a.run("INSERT OR REPLACE INTO kv(scope, key, value) VALUES('disabledModels', ?, ?)",[b,(0,q.s)(c||[])]);if(x&&Array.isArray(x.records))for(let b of x.records)a.run("INSERT OR REPLACE INTO requestDetails(id, timestamp, provider, model, connectionId, status, data) VALUES(?, ?, ?, ?, ?, ?, ?)",[b.id,b.timestamp||new Date().toISOString(),b.provider||null,b.model||null,b.connectionId||null,b.status||null,(0,q.s)(b)]);(0,k.np)(a,"appVersion",m()),(0,k.np)(a,"backupSchemaVersion",i.f$),(0,k.np)(a,"migratedAt",new Date().toISOString())})}catch(a){if(a instanceof t)return void console.error(`[DB][migrate] aborted: ${a.message} | legacy JSON kept | backup: ${c}`);throw a}try{e().writeFileSync(r,new Date().toISOString())}catch{}p(),console.log(`[DB][migrate] JSON → SQLite in ${Date.now()-b}ms | legacy JSON kept at DATA_DIR | backup: ${c}`);return}let y=m();(0,k.dy)(a,"appVersion",null)!==y&&(0,k.np)(a,"appVersion",y)}},76040:(a,b,c)=>{c.d(b,{CG:()=>f,f$:()=>d,oG:()=>e,zE:()=>g});let d=2,e=`
2
- PRAGMA journal_mode = WAL;
3
- PRAGMA synchronous = NORMAL;
4
- PRAGMA temp_store = MEMORY;
5
- PRAGMA mmap_size = 30000000;
6
- PRAGMA cache_size = -64000;
7
- PRAGMA foreign_keys = ON;
8
- PRAGMA busy_timeout = 5000;
9
- `,f={_meta:{columns:{key:"TEXT PRIMARY KEY",value:"TEXT NOT NULL"}},settings:{columns:{id:"INTEGER PRIMARY KEY CHECK (id = 1)",data:"TEXT NOT NULL"}},providerConnections:{columns:{id:"TEXT PRIMARY KEY",provider:"TEXT NOT NULL",authType:"TEXT NOT NULL",name:"TEXT",email:"TEXT",priority:"INTEGER",isActive:"INTEGER DEFAULT 1",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pc_provider ON providerConnections(provider)","CREATE INDEX IF NOT EXISTS idx_pc_provider_active ON providerConnections(provider, isActive)","CREATE INDEX IF NOT EXISTS idx_pc_priority ON providerConnections(provider, priority)"]},providerNodes:{columns:{id:"TEXT PRIMARY KEY",type:"TEXT",name:"TEXT",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pn_type ON providerNodes(type)"]},proxyPools:{columns:{id:"TEXT PRIMARY KEY",isActive:"INTEGER DEFAULT 1",testStatus:"TEXT",data:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_pp_active ON proxyPools(isActive)","CREATE INDEX IF NOT EXISTS idx_pp_status ON proxyPools(testStatus)"]},apiKeys:{columns:{id:"TEXT PRIMARY KEY",key:"TEXT UNIQUE NOT NULL",name:"TEXT",machineId:"TEXT",isActive:"INTEGER DEFAULT 1",createdAt:"TEXT NOT NULL",accessRestricted:"INTEGER DEFAULT 0",accessAllow:"TEXT"},indexes:["CREATE INDEX IF NOT EXISTS idx_ak_key ON apiKeys(key)"]},combos:{columns:{id:"TEXT PRIMARY KEY",name:"TEXT UNIQUE NOT NULL",kind:"TEXT",models:"TEXT NOT NULL",createdAt:"TEXT NOT NULL",updatedAt:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_combo_name ON combos(name)"]},kv:{columns:{scope:"TEXT NOT NULL",key:"TEXT NOT NULL",value:"TEXT NOT NULL"},primaryKey:"PRIMARY KEY (scope, key)",indexes:["CREATE INDEX IF NOT EXISTS idx_kv_scope ON kv(scope)"]},usageHistory:{columns:{id:"INTEGER PRIMARY KEY AUTOINCREMENT",timestamp:"TEXT NOT NULL",provider:"TEXT",model:"TEXT",connectionId:"TEXT",apiKey:"TEXT",endpoint:"TEXT",promptTokens:"INTEGER DEFAULT 0",completionTokens:"INTEGER DEFAULT 0",cost:"REAL DEFAULT 0",status:"TEXT",tokens:"TEXT",meta:"TEXT"},indexes:["CREATE INDEX IF NOT EXISTS idx_uh_ts ON usageHistory(timestamp DESC)","CREATE INDEX IF NOT EXISTS idx_uh_provider ON usageHistory(provider)","CREATE INDEX IF NOT EXISTS idx_uh_model ON usageHistory(model)","CREATE INDEX IF NOT EXISTS idx_uh_conn ON usageHistory(connectionId)"]},usageDaily:{columns:{dateKey:"TEXT PRIMARY KEY",data:"TEXT NOT NULL"}},requestDetails:{columns:{id:"TEXT PRIMARY KEY",timestamp:"TEXT NOT NULL",provider:"TEXT",model:"TEXT",connectionId:"TEXT",status:"TEXT",data:"TEXT NOT NULL"},indexes:["CREATE INDEX IF NOT EXISTS idx_rd_ts ON requestDetails(timestamp DESC)","CREATE INDEX IF NOT EXISTS idx_rd_provider ON requestDetails(provider)","CREATE INDEX IF NOT EXISTS idx_rd_model ON requestDetails(model)","CREATE INDEX IF NOT EXISTS idx_rd_conn ON requestDetails(connectionId)"]}};function g(a,b){let c=Object.entries(b.columns).map(([a,b])=>`${a} ${b}`);return b.primaryKey&&c.push(b.primaryKey),`CREATE TABLE IF NOT EXISTS ${a} (${c.join(", ")})`}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=4663,exports.ids=[3662,4663],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},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:"@hilbras/omnihilbras",installCmd:"npm i -g @hilbras/omnihilbras",installCmdLatest:"npm i -g @hilbras/omnihilbras@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:20128},h={maxLines:200,pollIntervalMs:1e3},i={tickIntervalMs:6e4,pingLeadMs:5e3,refreshAheadMs:3e5,failureCooldownMs:9e5,providers:{claude:{settingsKey:"claudeAutoPing",quotaKey:"session (5h)",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(54098),g=c(30869),h=c(54603);async function i(){let a=null;try{let b=(await (0,d.PX)()).filter(a=>!1!==a.isActive);a=(b.find(a=>!a.access?.restricted)||b[0])?.key||null}catch{}let b={"Content-Type":"application/json"};return a&&(b.Authorization=`Bearer ${a}`),b["x-9r-cli-token"]=await (0,h.Xj)("9r-cli-auth"),b}async function j(a,b,c=`http://127.0.0.1:${process.env.PORT||g.h0.appPort}`){let d=await i(),h=Date.now();if("embedding"===b){let b=await fetch(`${c}/api/v1/embeddings`,{method:"POST",headers:d,body:JSON.stringify({model:a,input:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-h,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}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no embedding data"}}if("image"===b){let b=await fetch(`${c}/api/v1/images/generations`,{method:"POST",headers:d,body:JSON.stringify({model:a,prompt:"test"}),signal:AbortSignal.timeout(15e3)}),e=Date.now()-h,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}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no image data for this model"}}if("stt"===b){let b,e,f,g,i=new FormData,j=(f=new DataView(e=new ArrayBuffer(44+(b=8e3))),(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+b,!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,b,!0),new Blob([e],{type:"audio/wav"}));i.append("file",j,"test.wav"),i.append("model",a);let k=await fetch(`${c}/api/v1/audio/transcriptions`,{method:"POST",headers:Object.fromEntries(Object.entries(d).filter(([a])=>"content-type"!==a.toLowerCase())),body:i,signal:AbortSignal.timeout(15e3)}),l=Date.now()-h,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}if(!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,240)}`:""}`,status:k.status}}return("string"==typeof n?.text?n.text:"").trim()?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no transcription text for this model"}}if("systemone"===b){let b=await fetch(`${c}/api/v1/systemone`,{method:"POST",headers:d,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)}),e=Date.now()-h,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 g?.answers&&"object"==typeof g.answers&&Object.keys(g.answers).length>0?{ok:!0,latencyMs:e,error:null,status:b.status}:{ok:!1,latencyMs:e,status:b.status,error:"Provider returned no answers for this model"}}let k=await fetch(`${c}/api/v1/chat/completions`,{method:"POST",headers:d,body:JSON.stringify({model:a,max_tokens:1024,stream:!1,messages:[{role:"user",content:"hi"}]}),signal:AbortSignal.timeout(15e3)}),l=Date.now()-h,m=await k.text().catch(()=>""),n=null;try{n=m?JSON.parse(m):null}catch{}let o=(0,e.rs)(String(a).split("/")[0]);if(n=(0,f.x)(n,o),!k.ok){let a=n?.error?.message||n?.msg||n?.message||n?.error||m;return{ok:!1,latencyMs:l,error:`HTTP ${k.status}${a?`: ${String(a).slice(0,500)}`:""}`,status:k.status}}let p=n?.status,q=n?.msg||n?.message;if(null!=p&&"200"!==String(p)&&"0"!==String(p)&&q)return{ok:!1,latencyMs:l,status:k.status,error:`Provider status ${p}: ${String(q).slice(0,240)}`};if(n?.error){let a=n?.error?.message||n?.error||"Provider returned an error";return{ok:!1,latencyMs:l,status:k.status,error:String(a).slice(0,240)}}let r=Array.isArray(n?.choices)&&n.choices.length>0,s=n?.choices?.[0]||{},t=s.message?.reasoning||s.message?.reasoning_content||s.message?.thinking||s.message?.thinking_content,u=!String(s.message?.content||"").trim();return r&&"length"===s.finish_reason&&u&&t?{ok:!0,latencyMs:l,error:null,status:k.status,note:"reasoning-only response (length-limited)"}:r?{ok:!0,latencyMs:l,error:null,status:k.status}:{ok:!1,latencyMs:l,status:k.status,error:"Provider returned no completion choices for this model"}}},39006:a=>{a.exports={rE:"2.8.0"}},54098:(a,b,c)=>{c.d(b,{x:()=>e});var d=c(26070);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}},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)}},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP});var d=c(47765)}};